Changeset fa375fe for trip-planner-front/node_modules/@angular/material/badge/badge.d.ts.__ivy_ngcc_bak
- 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.__ivy_ngcc_bak
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 */ … … 19 19 export declare type MatBadgeSize = 'small' | 'medium' | 'large'; 20 20 /** Directive to display a text badge. */ 21 export declare class MatBadge extends _MatBadgeBase implements On Init, OnDestroy, CanDisable {21 export declare class MatBadge extends _MatBadgeBase implements OnDestroy, OnChanges, CanDisable { 22 22 private _ngZone; 23 23 private _elementRef; … … 25 25 private _renderer; 26 26 private _animationMode?; 27 /** Whether the badge has any content. */ 28 _hasContent: boolean; 27 29 /** The color of the badge. Can be `primary`, `accent`, or `warn`. */ 28 30 get color(): ThemePalette; … … 39 41 position: MatBadgePosition; 40 42 /** The content for the badge */ 41 get content(): string | number | undefined | null; 42 set content(newContent: string | number | undefined | null); 43 private _content; 43 content: string | number | undefined | null; 44 44 /** Message used to describe the decorated element via aria-describedby */ 45 45 get description(): string; … … 54 54 /** Unique id for the badge */ 55 55 _id: number; 56 /** Visible badge element. */57 56 private _badgeElement; 58 /** Whether the OnInit lifecycle hook has run yet */59 private _isInitialized;60 57 constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined); 61 58 /** Whether the badge is above the host or not */ … … 63 60 /** Whether the badge is after the host or not */ 64 61 isAfter(): boolean; 62 ngOnChanges(changes: SimpleChanges): void; 63 ngOnDestroy(): void; 65 64 /** 66 * Gets the element into which the badge's content is being rendered. Undefined if the element67 * hasn't been created (e.g. if the badge doesn't have content).65 * Gets the element into which the badge's content is being rendered. 66 * Undefined if the element hasn't been created (e.g. if the badge doesn't have content). 68 67 */ 69 68 getBadgeElement(): HTMLElement | undefined; 70 ngOnInit(): void;71 ngOnDestroy(): void;69 /** Injects a span element into the DOM with the content. */ 70 private _updateTextContent; 72 71 /** Creates the badge element */ 73 72 private _createBadgeElement; 74 /** Update the text content of the badge element in the DOM, creating the element if necessary. */ 75 private _updateRenderedContent; 76 /** Updates the host element's aria description via AriaDescriber. */ 73 /** Sets the aria-label property on the element */ 77 74 private _updateHostAriaDescription; 78 75 /** Adds css theme class given the color to the component host */ … … 80 77 /** Clears any existing badges that might be left over from server-side rendering. */ 81 78 private _clearExistingBadges; 79 /** Gets the string representation of the badge content. */ 80 private _stringifyContent; 82 81 static ngAcceptInputType_disabled: BooleanInput; 83 82 static ngAcceptInputType_hidden: BooleanInput;
Note:
See TracChangeset
for help on using the changeset viewer.