You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 lines
2.5 KiB

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { BooleanInput } from '@angular/cdk/coercion';
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { MatButton } from '@angular/material/button';
import { MatDatepickerIntl } from './datepicker-intl';
import { MatDatepickerControl, MatDatepickerPanel } from './datepicker-base';
/** Can be used to override the icon of a `matDatepickerToggle`. */
import * as ɵngcc0 from '@angular/core';
export declare class MatDatepickerToggleIcon {
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatDatepickerToggleIcon, never>;
static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatDatepickerToggleIcon, "[matDatepickerToggleIcon]", never, {}, {}, never>;
}
export declare class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
_intl: MatDatepickerIntl;
private _changeDetectorRef;
private _stateChanges;
/** Datepicker instance that the button will toggle. */
datepicker: MatDatepickerPanel<MatDatepickerControl<any>, D>;
/** Tabindex for the toggle. */
tabIndex: number | null;
/** Screenreader label for the button. */
ariaLabel: string;
/** Whether the toggle button is disabled. */
get disabled(): boolean;
set disabled(value: boolean);
private _disabled;
/** Whether ripples on the toggle should be disabled. */
disableRipple: boolean;
/** Custom icon set by the consumer. */
_customIcon: MatDatepickerToggleIcon;
/** Underlying button element. */
_button: MatButton;
constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef, defaultTabIndex: string);
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
ngAfterContentInit(): void;
_open(event: Event): void;
private _watchStateChanges;
static ngAcceptInputType_disabled: BooleanInput;
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatDatepickerToggle<any>, [null, null, { attribute: "tabindex"; }]>;
static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatDatepickerToggle<any>, "mat-datepicker-toggle", ["matDatepickerToggle"], { "tabIndex": "tabIndex"; "disabled": "disabled"; "datepicker": "for"; "ariaLabel": "aria-label"; "disableRipple": "disableRipple"; }, {}, ["_customIcon"], ["[matDatepickerToggleIcon]"]>;
}
//# sourceMappingURL=datepicker-toggle.d.ts.map