@cauca-911/material
Version:
Run `npm install @cauca-911/material --save` to add this library to your project
45 lines • 2.64 kB
TypeScript
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { DatePipe } from '@angular/common';
import { AbstractControl, ControlValueAccessor } from '@angular/forms';
import { SubscriptSizing } from '@angular/material/form-field';
import * as i0 from "@angular/core";
export declare class CaucaDateTimePickerComponent implements ControlValueAccessor, OnInit {
private elementRef;
private dialog;
private datePipe;
subscriptSizing: SubscriptSizing;
showTime: boolean;
label: string;
translateLabel: boolean;
stepHours: number;
stepMinutes: number;
stepSecondes: number;
minimumDate: Date;
maximumDate: Date;
showSeconds: boolean;
showFormat: string;
showClearButton: boolean;
showButtonIcons: boolean;
selectedChange: EventEmitter<Date>;
control: AbstractControl;
stringDate: string;
private injector;
private selectedDate;
constructor(elementRef: ElementRef, dialog: MatDialog, datePipe: DatePipe);
set value(value: Date);
get isRequired(): boolean;
ngOnInit(): void;
showDialog(): void;
writeValue(date: Date): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
onChange: (value: Date) => Date;
onTouched: () => void;
private getDateTimePickerOptions;
private stringifyDate;
private getDialogPosition;
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaDateTimePickerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaDateTimePickerComponent, "cauca-date-time-picker", never, { "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "label": { "alias": "label"; "required": false; }; "translateLabel": { "alias": "translateLabel"; "required": false; }; "stepHours": { "alias": "stepHours"; "required": false; }; "stepMinutes": { "alias": "stepMinutes"; "required": false; }; "stepSecondes": { "alias": "stepSecondes"; "required": false; }; "minimumDate": { "alias": "minimumDate"; "required": false; }; "maximumDate": { "alias": "maximumDate"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "showFormat": { "alias": "showFormat"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
}
//# sourceMappingURL=cauca-date-time-picker.component.d.ts.map