source: trip-planner-front/node_modules/@angular/material/badge/badge.d.ts.__ivy_ngcc_bak@ 8d391a1

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

adding new components

  • Property mode set to 100644
File size: 3.7 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 */
13declare const _MatBadgeBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & {
14 new (): {};
15};
16/** Allowed position options for matBadgePosition */
17export declare type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
18/** Allowed size options for matBadgeSize */
19export declare type MatBadgeSize = 'small' | 'medium' | 'large';
20/** Directive to display a text badge. */
21export declare class MatBadge extends _MatBadgeBase implements OnDestroy, OnChanges, CanDisable {
22 private _ngZone;
23 private _elementRef;
24 private _ariaDescriber;
25 private _renderer;
26 private _animationMode?;
27 /** Whether the badge has any content. */
28 _hasContent: boolean;
29 /** The color of the badge. Can be `primary`, `accent`, or `warn`. */
30 get color(): ThemePalette;
31 set color(value: ThemePalette);
32 private _color;
33 /** Whether the badge should overlap its contents or not */
34 get overlap(): boolean;
35 set overlap(val: boolean);
36 private _overlap;
37 /**
38 * Position the badge should reside.
39 * Accepts any combination of 'above'|'below' and 'before'|'after'
40 */
41 position: MatBadgePosition;
42 /** The content for the badge */
43 content: string | number | undefined | null;
44 /** Message used to describe the decorated element via aria-describedby */
45 get description(): string;
46 set description(newDescription: string);
47 private _description;
48 /** Size of the badge. Can be 'small', 'medium', or 'large'. */
49 size: MatBadgeSize;
50 /** Whether the badge is hidden. */
51 get hidden(): boolean;
52 set hidden(val: boolean);
53 private _hidden;
54 /** Unique id for the badge */
55 _id: number;
56 private _badgeElement;
57 constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
58 /** Whether the badge is above the host or not */
59 isAbove(): boolean;
60 /** Whether the badge is after the host or not */
61 isAfter(): boolean;
62 ngOnChanges(changes: SimpleChanges): void;
63 ngOnDestroy(): void;
64 /**
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).
67 */
68 getBadgeElement(): HTMLElement | undefined;
69 /** Injects a span element into the DOM with the content. */
70 private _updateTextContent;
71 /** Creates the badge element */
72 private _createBadgeElement;
73 /** Sets the aria-label property on the element */
74 private _updateHostAriaDescription;
75 /** Adds css theme class given the color to the component host */
76 private _setColor;
77 /** Clears any existing badges that might be left over from server-side rendering. */
78 private _clearExistingBadges;
79 /** Gets the string representation of the badge content. */
80 private _stringifyContent;
81 static ngAcceptInputType_disabled: BooleanInput;
82 static ngAcceptInputType_hidden: BooleanInput;
83 static ngAcceptInputType_overlap: BooleanInput;
84}
85export {};
Note: See TracBrowser for help on using the repository browser.