source: trip-planner-front/node_modules/@angular/material/badge/badge.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { AriaDescriber } from '@angular/cdk/a11y';
9import { BooleanInput } from '@angular/cdk/coercion';
10import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
11import { CanDisable, ThemePalette } from '@angular/material/core';
12/** @docs-private */
13import * as ɵngcc0 from '@angular/core';
14declare const _MatBadgeBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & {
15 new (): {};
16};
17/** Allowed position options for matBadgePosition */
18export declare type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
19/** Allowed size options for matBadgeSize */
20export declare type MatBadgeSize = 'small' | 'medium' | 'large';
21/** Directive to display a text badge. */
22export declare class MatBadge extends _MatBadgeBase implements OnInit, OnDestroy, CanDisable {
23 private _ngZone;
24 private _elementRef;
25 private _ariaDescriber;
26 private _renderer;
27 private _animationMode?;
28 /** The color of the badge. Can be `primary`, `accent`, or `warn`. */
29 get color(): ThemePalette;
30 set color(value: ThemePalette);
31 private _color;
32 /** Whether the badge should overlap its contents or not */
33 get overlap(): boolean;
34 set overlap(val: boolean);
35 private _overlap;
36 /**
37 * Position the badge should reside.
38 * Accepts any combination of 'above'|'below' and 'before'|'after'
39 */
40 position: MatBadgePosition;
41 /** The content for the badge */
42 get content(): string | number | undefined | null;
43 set content(newContent: string | number | undefined | null);
44 private _content;
45 /** Message used to describe the decorated element via aria-describedby */
46 get description(): string;
47 set description(newDescription: string);
48 private _description;
49 /** Size of the badge. Can be 'small', 'medium', or 'large'. */
50 size: MatBadgeSize;
51 /** Whether the badge is hidden. */
52 get hidden(): boolean;
53 set hidden(val: boolean);
54 private _hidden;
55 /** Unique id for the badge */
56 _id: number;
57 /** Visible badge element. */
58 private _badgeElement;
59 /** Whether the OnInit lifecycle hook has run yet */
60 private _isInitialized;
61 constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
62 /** Whether the badge is above the host or not */
63 isAbove(): boolean;
64 /** Whether the badge is after the host or not */
65 isAfter(): boolean;
66 /**
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).
69 */
70 getBadgeElement(): HTMLElement | undefined;
71 ngOnInit(): void;
72 ngOnDestroy(): void;
73 /** Creates the badge element */
74 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. */
78 private _updateHostAriaDescription;
79 /** Adds css theme class given the color to the component host */
80 private _setColor;
81 /** Clears any existing badges that might be left over from server-side rendering. */
82 private _clearExistingBadges;
83 static ngAcceptInputType_disabled: BooleanInput;
84 static ngAcceptInputType_hidden: BooleanInput;
85 static ngAcceptInputType_overlap: BooleanInput;
86 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>;
88}
89export {};
90
91//# sourceMappingURL=badge.d.ts.map
Note: See TracBrowser for help on using the repository browser.