-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbadge.d-99f2424c.d.ts
executable file
·99 lines (97 loc) · 4.74 KB
/
badge.d-99f2424c.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import * as i0 from '@angular/core';
import { OnInit, OnDestroy } from '@angular/core';
import { T as ThemePalette } from './palette.d-f5ca9a2b.js';
/** Allowed position options for matBadgePosition */
type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
/** Allowed size options for matBadgeSize */
type MatBadgeSize = 'small' | 'medium' | 'large';
/**
* Component used to load the structural styles of the badge.
* @docs-private
*/
declare class _MatBadgeStyleLoader {
static ɵfac: i0.ɵɵFactoryDeclaration<_MatBadgeStyleLoader, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<_MatBadgeStyleLoader, "ng-component", never, {}, {}, never, never, true, never>;
}
/** Directive to display a text badge. */
declare class MatBadge implements OnInit, OnDestroy {
private _ngZone;
private _elementRef;
private _ariaDescriber;
private _renderer;
private _animationsDisabled;
private _idGenerator;
/**
* Theme color of the badge. This API is supported in M2 themes only, it
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/badge/styling.
*
* For information on applying color variants in M3, see
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
*/
get color(): ThemePalette;
set color(value: ThemePalette);
private _color;
/** Whether the badge should overlap its contents or not */
overlap: boolean;
/** Whether the badge is disabled. */
disabled: boolean;
/**
* Position the badge should reside.
* Accepts any combination of 'above'|'below' and 'before'|'after'
*/
position: MatBadgePosition;
/** The content for the badge */
get content(): string | number | undefined | null;
set content(newContent: string | number | undefined | null);
private _content;
/** Message used to describe the decorated element via aria-describedby */
get description(): string;
set description(newDescription: string);
private _description;
/** Size of the badge. Can be 'small', 'medium', or 'large'. */
size: MatBadgeSize;
/** Whether the badge is hidden. */
hidden: boolean;
/** Visible badge element. */
private _badgeElement;
/** Inline badge description. Used when the badge is applied to non-interactive host elements. */
private _inlineBadgeDescription;
/** Whether the OnInit lifecycle hook has run yet */
private _isInitialized;
/** InteractivityChecker to determine if the badge host is focusable. */
private _interactivityChecker;
private _document;
constructor(...args: unknown[]);
/** Whether the badge is above the host or not */
isAbove(): boolean;
/** Whether the badge is after the host or not */
isAfter(): boolean;
/**
* Gets the element into which the badge's content is being rendered. Undefined if the element
* hasn't been created (e.g. if the badge doesn't have content).
*/
getBadgeElement(): HTMLElement | undefined;
ngOnInit(): void;
ngOnDestroy(): void;
/** Gets whether the badge's host element is interactive. */
private _isHostInteractive;
/** Creates the badge element */
private _createBadgeElement;
/** Update the text content of the badge element in the DOM, creating the element if necessary. */
private _updateRenderedContent;
/** Updates the host element's aria description via AriaDescriber. */
private _updateDescription;
private _updateInlineDescription;
private _removeInlineDescription;
/** Adds css theme class given the color to the component host */
private _setColor;
/** Clears any existing badges that might be left over from server-side rendering. */
private _clearExistingBadges;
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadge, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_overlap: unknown;
static ngAcceptInputType_disabled: unknown;
static ngAcceptInputType_hidden: unknown;
}
export { MatBadge as M, _MatBadgeStyleLoader as _ };
export type { MatBadgePosition as a, MatBadgeSize as b };