@factory-utils/tools
Version:
Set of genericised angular2+ components used in most of Advanced SCHEMA - Factory's projects.
44 lines (43 loc) • 2.41 kB
TypeScript
import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { Position } from '../../tools.module';
import { CalendarComponent } from '../calendar/calendar.component';
import { InstanceIdService } from '../../services/instance-id/instance-id.service';
import { LocaleService } from '../../services/locale/locale.service';
import { HtmlInput } from '../../typings';
import * as i0 from "@angular/core";
export declare class InputDateComponent extends CalendarComponent implements AfterViewInit, OnChanges, OnDestroy {
localeService: LocaleService;
protected _changeDetector: ChangeDetectorRef;
iconClass: string;
placeholder: string;
calendarPositionCallback: (instanceId: string) => Position;
disabled: HtmlInput;
editableInput: HtmlInput;
hideOnSelection: HtmlInput;
instanceId: string;
formattedDateModel: string;
position: Position;
renderCalendar: boolean;
private _displayCalendar;
private _positionIntervalId;
constructor(instanceId: InstanceIdService, localeService: LocaleService, _changeDetector: ChangeDetectorRef);
get displayCalendar(): boolean;
set displayCalendar(flag: boolean);
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
isDisabled(): boolean;
isInputEditable(): boolean;
isHidingOnSelection(): boolean;
onDateChange(newDate: Date): void;
onDateFormattedChange(formattedDate: string): void;
onDisplayedDateChange(displatedDate: Date): void;
onRangedDateChange(rangedDate: Date): void;
isHTMLInputActive(input: HtmlInput): boolean;
updateFormattedDate($event: string): void;
private _formatDateToDisplay;
private _isCorrectFormat;
private _updateListPosition;
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "fut-input-date", never, { "iconClass": { "alias": "iconClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "calendarPositionCallback": { "alias": "calendarPositionCallback"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "editableInput": { "alias": "editableInput"; "required": false; }; "hideOnSelection": { "alias": "hideOnSelection"; "required": false; }; }, {}, never, never, false, never>;
}