- Timestamp:
- 10/16/21 18:10:51 (3 years ago)
- Branches:
- master
- Children:
- eed0bf8
- Parents:
- 6a3a178
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@angular/material/badge/badge.d.ts
r6a3a178 rfa375fe 8 8 import { AriaDescriber } from '@angular/cdk/a11y'; 9 9 import { BooleanInput } from '@angular/cdk/coercion'; 10 import { ElementRef, NgZone, On Destroy, OnInit, Renderer2} from '@angular/core';10 import { ElementRef, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core'; 11 11 import { CanDisable, ThemePalette } from '@angular/material/core'; 12 12 /** @docs-private */ … … 20 20 export declare type MatBadgeSize = 'small' | 'medium' | 'large'; 21 21 /** Directive to display a text badge. */ 22 export declare class MatBadge extends _MatBadgeBase implements On Init, OnDestroy, CanDisable {22 export declare class MatBadge extends _MatBadgeBase implements OnDestroy, OnChanges, CanDisable { 23 23 private _ngZone; 24 24 private _elementRef; … … 26 26 private _renderer; 27 27 private _animationMode?; 28 /** Whether the badge has any content. */ 29 _hasContent: boolean; 28 30 /** The color of the badge. Can be `primary`, `accent`, or `warn`. */ 29 31 get color(): ThemePalette; … … 40 42 position: MatBadgePosition; 41 43 /** 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; 45 45 /** Message used to describe the decorated element via aria-describedby */ 46 46 get description(): string; … … 55 55 /** Unique id for the badge */ 56 56 _id: number; 57 /** Visible badge element. */58 57 private _badgeElement; 59 /** Whether the OnInit lifecycle hook has run yet */60 private _isInitialized;61 58 constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined); 62 59 /** Whether the badge is above the host or not */ … … 64 61 /** Whether the badge is after the host or not */ 65 62 isAfter(): boolean; 63 ngOnChanges(changes: SimpleChanges): void; 64 ngOnDestroy(): void; 66 65 /** 67 * Gets the element into which the badge's content is being rendered. Undefined if the element68 * 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). 69 68 */ 70 69 getBadgeElement(): HTMLElement | undefined; 71 ngOnInit(): void;72 ngOnDestroy(): void;70 /** Injects a span element into the DOM with the content. */ 71 private _updateTextContent; 73 72 /** Creates the badge element */ 74 73 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 */ 78 75 private _updateHostAriaDescription; 79 76 /** Adds css theme class given the color to the component host */ … … 81 78 /** Clears any existing badges that might be left over from server-side rendering. */ 82 79 private _clearExistingBadges; 80 /** Gets the string representation of the badge content. */ 81 private _stringifyContent; 83 82 static ngAcceptInputType_disabled: BooleanInput; 84 83 static ngAcceptInputType_hidden: BooleanInput; 85 84 static ngAcceptInputType_overlap: BooleanInput; 86 85 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>; 88 87 } 89 88 export {};
Note:
See TracChangeset
for help on using the changeset viewer.