UNPKG

@aurelia-toolkit/mdc-datepicker

Version:

Aurelia Toolkit MDC Datepicker

49 lines (48 loc) 1.73 kB
import { TaskQueue } from 'aurelia-framework'; import { IMdcTextFieldElement } from '@aurelia-mdc-web/text-field'; import { IValidatedElement } from '@aurelia-mdc-web/base'; import { InputmaskCustomAttribute } from 'aurelia-inputmask'; import { MdcDialogService } from '@aurelia-mdc-web/dialog'; import { IMdcDatepickerDialogOptions } from '../mdc-datepicker-dialog/i-mdc-datepicker-dialog-options'; import { MdcDefaultTextFieldConfiguration } from '@aurelia-mdc-web/text-field'; export declare class MdcDatepicker { private element; private taskQueue; private dialogService; private defaultTextFieldConfiguration; constructor(element: HTMLElement, taskQueue: TaskQueue, dialogService: MdcDialogService, defaultTextFieldConfiguration: MdcDefaultTextFieldConfiguration); input: IMdcTextFieldElement; inputmask: InputmaskCustomAttribute; inputmaskValue: string; private _value; outlined?: boolean; label: string; format: string; inputmaskFormat: string; dialogFormat: string; min: Date; max: Date; disableFunction: (d: Date) => boolean; disableWeekends: boolean; showAll: boolean; firstDay: number; mdcI18n: IMdcDatepickerDialogOptions['i18n']; readonly: boolean; time: boolean; get value(): string; set value(value: string); attached(): void; handleBlur(e: Event): void; handleChange(e: Event): void; handleInput(e: Event): void; getIsoFormat(): "yyyy-MM-dd" | "yyyy-MM-dd'T'HH:mm:ss"; getDateValue(): Date | undefined; open(): Promise<void>; } export interface IMdcDatepickerElement extends IValidatedElement { au: { controller: { viewModel: MdcDatepicker; }; }; }