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, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
---|
10 | import { MatButton } from '@angular/material/button';
|
---|
11 | import { MatDatepickerIntl } from './datepicker-intl';
|
---|
12 | import { MatDatepickerControl, MatDatepickerPanel } from './datepicker-base';
|
---|
13 | /** Can be used to override the icon of a `matDatepickerToggle`. */
|
---|
14 | export declare class MatDatepickerToggleIcon {
|
---|
15 | }
|
---|
16 | export declare class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
|
---|
17 | _intl: MatDatepickerIntl;
|
---|
18 | private _changeDetectorRef;
|
---|
19 | private _stateChanges;
|
---|
20 | /** Datepicker instance that the button will toggle. */
|
---|
21 | datepicker: MatDatepickerPanel<MatDatepickerControl<any>, D>;
|
---|
22 | /** Tabindex for the toggle. */
|
---|
23 | tabIndex: number | null;
|
---|
24 | /** Screenreader label for the button. */
|
---|
25 | ariaLabel: string;
|
---|
26 | /** Whether the toggle button is disabled. */
|
---|
27 | get disabled(): boolean;
|
---|
28 | set disabled(value: boolean);
|
---|
29 | private _disabled;
|
---|
30 | /** Whether ripples on the toggle should be disabled. */
|
---|
31 | disableRipple: boolean;
|
---|
32 | /** Custom icon set by the consumer. */
|
---|
33 | _customIcon: MatDatepickerToggleIcon;
|
---|
34 | /** Underlying button element. */
|
---|
35 | _button: MatButton;
|
---|
36 | constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef, defaultTabIndex: string);
|
---|
37 | ngOnChanges(changes: SimpleChanges): void;
|
---|
38 | ngOnDestroy(): void;
|
---|
39 | ngAfterContentInit(): void;
|
---|
40 | _open(event: Event): void;
|
---|
41 | private _watchStateChanges;
|
---|
42 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
43 | }
|
---|