Ignore:
Timestamp:
10/16/21 18:10:51 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
eed0bf8
Parents:
6a3a178
Message:

adding new components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular/material/badge/badge.d.ts

    r6a3a178 rfa375fe  
    88import { AriaDescriber } from '@angular/cdk/a11y';
    99import { BooleanInput } from '@angular/cdk/coercion';
    10 import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
     10import { ElementRef, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
    1111import { CanDisable, ThemePalette } from '@angular/material/core';
    1212/** @docs-private */
     
    2020export declare type MatBadgeSize = 'small' | 'medium' | 'large';
    2121/** Directive to display a text badge. */
    22 export declare class MatBadge extends _MatBadgeBase implements OnInit, OnDestroy, CanDisable {
     22export declare class MatBadge extends _MatBadgeBase implements OnDestroy, OnChanges, CanDisable {
    2323    private _ngZone;
    2424    private _elementRef;
     
    2626    private _renderer;
    2727    private _animationMode?;
     28    /** Whether the badge has any content. */
     29    _hasContent: boolean;
    2830    /** The color of the badge. Can be `primary`, `accent`, or `warn`. */
    2931    get color(): ThemePalette;
     
    4042    position: MatBadgePosition;
    4143    /** The content for the badge */
    42     get content(): string | number | undefined | null;
    43     set content(newContent: string | number | undefined | null);
    44     private _content;
     44    content: string | number | undefined | null;
    4545    /** Message used to describe the decorated element via aria-describedby */
    4646    get description(): string;
     
    5555    /** Unique id for the badge */
    5656    _id: number;
    57     /** Visible badge element. */
    5857    private _badgeElement;
    59     /** Whether the OnInit lifecycle hook has run yet */
    60     private _isInitialized;
    6158    constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
    6259    /** Whether the badge is above the host or not */
     
    6461    /** Whether the badge is after the host or not */
    6562    isAfter(): boolean;
     63    ngOnChanges(changes: SimpleChanges): void;
     64    ngOnDestroy(): void;
    6665    /**
    67      * Gets the element into which the badge's content is being rendered. Undefined if the element
    68      * hasn't been created (e.g. if the badge doesn't have content).
     66     * Gets the element into which the badge's content is being rendered.
     67     * Undefined if the element hasn't been created (e.g. if the badge doesn't have content).
    6968     */
    7069    getBadgeElement(): HTMLElement | undefined;
    71     ngOnInit(): void;
    72     ngOnDestroy(): void;
     70    /** Injects a span element into the DOM with the content. */
     71    private _updateTextContent;
    7372    /** Creates the badge element */
    7473    private _createBadgeElement;
    75     /** Update the text content of the badge element in the DOM, creating the element if necessary. */
    76     private _updateRenderedContent;
    77     /** Updates the host element's aria description via AriaDescriber. */
     74    /** Sets the aria-label property on the element */
    7875    private _updateHostAriaDescription;
    7976    /** Adds css theme class given the color to the component host */
     
    8178    /** Clears any existing badges that might be left over from server-side rendering. */
    8279    private _clearExistingBadges;
     80    /** Gets the string representation of the badge content. */
     81    private _stringifyContent;
    8382    static ngAcceptInputType_disabled: BooleanInput;
    8483    static ngAcceptInputType_hidden: BooleanInput;
    8584    static ngAcceptInputType_overlap: BooleanInput;
    8685    static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatBadge, [null, null, null, null, { optional: true; }]>;
    87     static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "disabled": "matBadgeDisabled"; "position": "matBadgePosition"; "size": "matBadgeSize"; "color": "matBadgeColor"; "overlap": "matBadgeOverlap"; "content": "matBadge"; "description": "matBadgeDescription"; "hidden": "matBadgeHidden"; }, {}, never>;
     86    static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "disabled": "matBadgeDisabled"; "position": "matBadgePosition"; "size": "matBadgeSize"; "color": "matBadgeColor"; "overlap": "matBadgeOverlap"; "description": "matBadgeDescription"; "hidden": "matBadgeHidden"; "content": "matBadge"; }, {}, never>;
    8887}
    8988export {};
Note: See TracChangeset for help on using the changeset viewer.