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