UNPKG

ngx-gem-spaas

Version:

This library contains services, components, images and styles to provide a unified look and way-of-working throughout GEM SPaaS.

34 lines (33 loc) 1.84 kB
import { OnInit } from '@angular/core'; import { DateTime } from 'luxon'; import { FormControl } from "@angular/forms"; import { BaseComponent } from "ngx-gem-spaas"; import * as i0 from "@angular/core"; export declare class DatePickerComponent extends BaseComponent implements OnInit { /** The label to be displayed in the form field (optional) */ label: string; /** Whether to also show the time-fields. Default is false. */ withTime: boolean; /** Your formcontrol of type DateTime. Will be updated directly by the date picker */ fcDate: FormControl<DateTime>; /** Whether to allow manual keyboard input */ allowManualInput: boolean; /** Minimum date in luxon DateTime */ minDate: DateTime | null; /** Maximum date in luxon DateTime */ maxDate: DateTime | null; /** A custom function to limit which dates can be chosen. * Takes DateTime as input and should return a boolean. */ dateConstraint: (selectedDate: DateTime | null) => boolean; dateStart: string | null; hour: number; allHours: number[]; minute: number; allMinutes: number[]; constructor(); ngOnInit(): void; onHourOrMinuteChange(): void; onDateChange(): void; static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "spaas-date-picker", never, { "label": { "alias": "label"; "required": false; }; "withTime": { "alias": "withTime"; "required": false; }; "fcDate": { "alias": "fcDate"; "required": false; }; "allowManualInput": { "alias": "allowManualInput"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateConstraint": { "alias": "dateConstraint"; "required": false; }; }, {}, never, never, false, never>; }