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 | */
|
---|
8 | import { BooleanInput } from '@angular/cdk/coercion';
|
---|
9 | import { AfterContentInit, ElementRef, QueryList, OnChanges, OnDestroy, ChangeDetectorRef, InjectionToken } from '@angular/core';
|
---|
10 | import { CanDisable, CanDisableRipple, MatLine } from '@angular/material/core';
|
---|
11 | import { Subject } from 'rxjs';
|
---|
12 | /** @docs-private */
|
---|
13 | import * as ɵngcc0 from '@angular/core';
|
---|
14 | declare const _MatListBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisableRipple> & {
|
---|
15 | new (): {};
|
---|
16 | };
|
---|
17 | /** @docs-private */
|
---|
18 | declare const _MatListItemMixinBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisableRipple> & {
|
---|
19 | new (): {};
|
---|
20 | };
|
---|
21 | /**
|
---|
22 | * Injection token that can be used to inject instances of `MatList`. It serves as
|
---|
23 | * alternative token to the actual `MatList` class which could cause unnecessary
|
---|
24 | * retention of the class and its component metadata.
|
---|
25 | */
|
---|
26 | export declare const MAT_LIST: InjectionToken<MatList>;
|
---|
27 | /**
|
---|
28 | * Injection token that can be used to inject instances of `MatNavList`. It serves as
|
---|
29 | * alternative token to the actual `MatNavList` class which could cause unnecessary
|
---|
30 | * retention of the class and its component metadata.
|
---|
31 | */
|
---|
32 | export declare const MAT_NAV_LIST: InjectionToken<MatNavList>;
|
---|
33 | export declare class MatNavList extends _MatListBase implements CanDisable, CanDisableRipple, OnChanges, OnDestroy {
|
---|
34 | /** Emits when the state of the list changes. */
|
---|
35 | readonly _stateChanges: Subject<void>;
|
---|
36 | ngOnChanges(): void;
|
---|
37 | ngOnDestroy(): void;
|
---|
38 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
39 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
40 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatNavList, never>;
|
---|
41 | static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatNavList, "mat-nav-list", ["matNavList"], { "disableRipple": "disableRipple"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
---|
42 | }
|
---|
43 | export declare class MatList extends _MatListBase implements CanDisable, CanDisableRipple, OnChanges, OnDestroy {
|
---|
44 | private _elementRef;
|
---|
45 | /** Emits when the state of the list changes. */
|
---|
46 | readonly _stateChanges: Subject<void>;
|
---|
47 | constructor(_elementRef: ElementRef<HTMLElement>);
|
---|
48 | _getListType(): 'list' | 'action-list' | null;
|
---|
49 | ngOnChanges(): void;
|
---|
50 | ngOnDestroy(): void;
|
---|
51 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
52 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
53 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatList, never>;
|
---|
54 | static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatList, "mat-list, mat-action-list", ["matList"], { "disableRipple": "disableRipple"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
---|
55 | }
|
---|
56 | /**
|
---|
57 | * Directive whose purpose is to add the mat- CSS styling to this selector.
|
---|
58 | * @docs-private
|
---|
59 | */
|
---|
60 | export declare class MatListAvatarCssMatStyler {
|
---|
61 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatListAvatarCssMatStyler, never>;
|
---|
62 | static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatListAvatarCssMatStyler, "[mat-list-avatar], [matListAvatar]", never, {}, {}, never>;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * Directive whose purpose is to add the mat- CSS styling to this selector.
|
---|
66 | * @docs-private
|
---|
67 | */
|
---|
68 | export declare class MatListIconCssMatStyler {
|
---|
69 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatListIconCssMatStyler, never>;
|
---|
70 | static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatListIconCssMatStyler, "[mat-list-icon], [matListIcon]", never, {}, {}, never>;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * Directive whose purpose is to add the mat- CSS styling to this selector.
|
---|
74 | * @docs-private
|
---|
75 | */
|
---|
76 | export declare class MatListSubheaderCssMatStyler {
|
---|
77 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatListSubheaderCssMatStyler, never>;
|
---|
78 | static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatListSubheaderCssMatStyler, "[mat-subheader], [matSubheader]", never, {}, {}, never>;
|
---|
79 | }
|
---|
80 | /** An item within a Material Design list. */
|
---|
81 | export declare class MatListItem extends _MatListItemMixinBase implements AfterContentInit, CanDisableRipple, OnDestroy {
|
---|
82 | private _element;
|
---|
83 | private _isInteractiveList;
|
---|
84 | private _list?;
|
---|
85 | private readonly _destroyed;
|
---|
86 | _lines: QueryList<MatLine>;
|
---|
87 | _avatar: MatListAvatarCssMatStyler;
|
---|
88 | _icon: MatListIconCssMatStyler;
|
---|
89 | constructor(_element: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, navList?: MatNavList, list?: MatList);
|
---|
90 | /** Whether the option is disabled. */
|
---|
91 | get disabled(): boolean;
|
---|
92 | set disabled(value: boolean);
|
---|
93 | private _disabled;
|
---|
94 | ngAfterContentInit(): void;
|
---|
95 | ngOnDestroy(): void;
|
---|
96 | /** Whether this list item should show a ripple effect when clicked. */
|
---|
97 | _isRippleDisabled(): boolean;
|
---|
98 | /** Retrieves the DOM element of the component host. */
|
---|
99 | _getHostElement(): HTMLElement;
|
---|
100 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
101 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
102 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatListItem, [null, null, { optional: true; }, { optional: true; }]>;
|
---|
103 | static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], { "disableRipple": "disableRipple"; "disabled": "disabled"; }, {}, ["_avatar", "_icon", "_lines"], ["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]", "[mat-line], [matLine]", "*"]>;
|
---|
104 | }
|
---|
105 | export {};
|
---|
106 |
|
---|
107 | //# sourceMappingURL=list.d.ts.map |
---|