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

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

adding new components

  • 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, OnChanges, OnDestroy, Renderer2, SimpleChanges } 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 OnDestroy, OnChanges, CanDisable {
23 private _ngZone;
24 private _elementRef;
25 private _ariaDescriber;
26 private _renderer;
27 private _animationMode?;
28 /** Whether the badge has any content. */
29 _hasContent: boolean;
30 /** The color of the badge. Can be `primary`, `accent`, or `warn`. */
31 get color(): ThemePalette;
32 set color(value: ThemePalette);
33 private _color;
34 /** Whether the badge should overlap its contents or not */
35 get overlap(): boolean;
36 set overlap(val: boolean);
37 private _overlap;
38 /**
39 * Position the badge should reside.
40 * Accepts any combination of 'above'|'below' and 'before'|'after'
41 */
42 position: MatBadgePosition;
43 /** The content for the badge */
44 content: string | number | undefined | null;
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 private _badgeElement;
58 constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
59 /** Whether the badge is above the host or not */
60 isAbove(): boolean;
61 /** Whether the badge is after the host or not */
62 isAfter(): boolean;
63 ngOnChanges(changes: SimpleChanges): void;
64 ngOnDestroy(): void;
65 /**
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).
68 */
69 getBadgeElement(): HTMLElement | undefined;
70 /** Injects a span element into the DOM with the content. */
71 private _updateTextContent;
72 /** Creates the badge element */
73 private _createBadgeElement;
74 /** Sets the aria-label property on the element */
75 private _updateHostAriaDescription;
76 /** Adds css theme class given the color to the component host */
77 private _setColor;
78 /** Clears any existing badges that might be left over from server-side rendering. */
79 private _clearExistingBadges;
80 /** Gets the string representation of the badge content. */
81 private _stringifyContent;
82 static ngAcceptInputType_disabled: BooleanInput;
83 static ngAcceptInputType_hidden: BooleanInput;
84 static ngAcceptInputType_overlap: BooleanInput;
85 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatBadge, [null, null, null, null, { optional: true; }]>;
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>;
87}
88export {};
89
90//# sourceMappingURL=badge.d.ts.map
Note: See TracBrowser for help on using the repository browser.