UNPKG

@hxui/angular

Version:

An Angular library based on the [HXUI design system](https://hxui.io).

36 lines (35 loc) 1.53 kB
import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import moment from 'moment'; import { DatePickerInterval } from './datepicker.model'; import * as i0 from "@angular/core"; export declare class DatepickerIntervalComponent implements OnInit, OnDestroy { private _fb; durationOptions: string[]; duration: string; increment: number; text: moment.Moment; dateLabel: string; _dueDatestring: string; private value$; form: FormGroup; selectedDate: Date; selectedInterval: DatePickerInterval; update: EventEmitter<DatePickerInterval & { date: Date; }>; cancel: EventEmitter<void>; constructor(_fb: FormBuilder); ngOnInit(): void; ngOnDestroy(): void; onValueChanges(): void; /** on cancel of interval form */ onCancel(): void; onSelectoptions(numberValue: number, durationValue: string): void; /** on submission of interval form */ onChoose($event: SubmitEvent): void; /** normalise duration string */ normaliseDurationString(duration: string, output?: 'singular' | 'plural' | 'optional'): string; static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerIntervalComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerIntervalComponent, "hxa-datepicker-interval", never, { "selectedDate": "selectedDate"; "selectedInterval": "selectedInterval"; }, { "update": "update"; "cancel": "cancel"; }, never, never>; }