import * as i2 from 'igniteui-angular/core'; import { IBaseEventArgs, IToggleView, EditorProvider, PickerInteractionMode, PickerHeaderOrientation, OverlaySettings, WEEKDAYS, IgxOverlayOutletDirective, IBaseCancelableBrowserEventArgs, IgxPickerToggleComponent, IgxPickerClearComponent, DateRange, PickerCalendarOrientation, DatePartDeltas, DateRangeDescriptor, IDatePickerResourceStrings, DatePart, CustomDateRange, IDateRangePickerResourceStrings, IgxPickerActionsDirective, PlatformUtil } from 'igniteui-angular/core'; import * as i0 from '@angular/core'; import { AfterViewInit, AfterContentChecked, OnDestroy, ElementRef, EventEmitter, QueryList, OnInit, AfterViewChecked, PipeTransform, OnChanges, TemplateRef, SimpleChanges } from '@angular/core'; import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, NgControl } from '@angular/forms'; import * as i4 from 'igniteui-angular/calendar'; import { IFormattingViews, IFormattingOptions, IgxCalendarComponent, IgxCalendarHeaderTemplateDirective, IgxCalendarSubheaderTemplateDirective, IgxCalendarHeaderTitleTemplateDirective } from 'igniteui-angular/calendar'; import * as i3 from 'igniteui-angular/input-group'; import { IgxInputGroupType, IgxPrefixDirective, IgxSuffixDirective, IgxInputGroupComponent, IgxLabelDirective, IgxHintDirective, IgxInputDirective, IgxInputState } from 'igniteui-angular/input-group'; import { Subject } from 'rxjs'; import { IgxDateTimeEditorDirective } from 'igniteui-angular/directives'; /** * Provides information about date picker reference and its previously valid value * when onValidationFailed event is fired. */ interface IDatePickerValidationFailedEventArgs extends IBaseEventArgs { prevValue: Date | string; currentValue: Date | string; } declare abstract class PickerBaseDirective implements IToggleView, EditorProvider, AfterViewInit, AfterContentChecked, OnDestroy { element: ElementRef; protected _localeId: string; protected _inputGroupType: IgxInputGroupType; /** * The editor's input mask. * * @remarks * Also used as a placeholder when none is provided. * * @example * ```html * * ``` */ inputFormat: string; /** * The format used to display the picker's value when it's not being edited. * * @remarks * Uses Angular's DatePipe. * * @example * ```html * * ``` * */ displayFormat: string; /** * Sets the `placeholder` of the picker's input. * * @example * ```html * * ``` */ placeholder: string; /** * Can be `dropdown` with editable input field or `dialog` with readonly input field. * * @remarks * Default mode is `dropdown` * * @example * ```html * * ``` */ mode: PickerInteractionMode; /** * Gets/Sets the orientation of the `IgxDatePickerComponent` header. * * @example * ```html * * ``` */ headerOrientation: PickerHeaderOrientation; /** * Gets/Sets whether the header is hidden in dialog mode. * * @example * ```html * * ``` */ hideHeader: boolean; /** * Overlay settings used to display the pop-up element. * * @example * ```html * * ``` */ overlaySettings: OverlaySettings; /** * Enables or disables the picker. * * @example * ```html * * ``` */ disabled: boolean; /** * @example * ```html * * ``` */ /** * Gets the `locale` of the date-picker. * If not set, defaults to applciation's locale.. */ get locale(): string; /** * Sets the `locale` of the date-picker. * Expects a valid BCP 47 language tag. */ set locale(value: string); /** * Gets the start day of the week. * Can return a numeric or an enum representation of the week day. * If not set, defaults to the first day of the week for the application locale. */ get weekStart(): WEEKDAYS | number; /** * Sets the start day of the week. * Can be assigned to a numeric value or to `WEEKDAYS` enum value. */ set weekStart(value: WEEKDAYS | number); /** * The container used for the pop-up element. * * @example * ```html *
* * * * ``` */ outlet: IgxOverlayOutletDirective | ElementRef; /** * Determines how the picker's input will be styled. * * @remarks * Default is `box`. * * @example * ```html * * ``` */ set type(val: IgxInputGroupType); get type(): IgxInputGroupType; /** * Gets/Sets the default template editor's tabindex. * * @example * ```html * * ``` */ tabIndex: number | string; /** * Emitted when the calendar has started opening, cancelable. * * @example * ```html * * ``` */ opening: EventEmitter; /** * Emitted after the calendar has opened. * * @example * ```html * * ``` */ opened: EventEmitter; /** * Emitted when the calendar has started closing, cancelable. * * @example * ```html * * ``` */ closing: EventEmitter; /** * Emitted after the calendar has closed. * * @example * ```html * * ``` */ closed: EventEmitter; /** @hidden @internal */ toggleComponents: QueryList; /** @hidden @internal */ clearComponents: QueryList; protected prefixes: QueryList; protected suffixes: QueryList; protected inputGroup: IgxInputGroupComponent; protected _locale: string; protected _collapsed: boolean; protected _type: IgxInputGroupType; protected _minValue: Date | string; protected _maxValue: Date | string; protected _weekStart: WEEKDAYS | number; protected abstract get toggleContainer(): HTMLElement | undefined; /** * Gets the picker's pop-up state. * * @example * ```typescript * const state = this.picker.collapsed; * ``` */ get collapsed(): boolean; /** @hidden @internal */ get isDropdown(): boolean; /** * Returns if there's focus within the picker's element OR popup container * @hidden @internal */ get isFocused(): boolean; protected _destroy$: Subject; abstract valueChange: EventEmitter; constructor(); /** @hidden @internal */ ngAfterViewInit(): void; /** @hidden @internal */ ngAfterContentChecked(): void; /** @hidden @internal */ ngOnDestroy(): void; /** Subscribes to the click events of toggle/clear icons in a query */ private subToIconsClicked; abstract select(value: Date | DateRange | string): void; abstract open(settings?: OverlaySettings): void; abstract toggle(settings?: OverlaySettings): void; abstract close(): void; abstract clear(): void; abstract getEditElement(): HTMLInputElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_hideHeader: unknown; static ngAcceptInputType_disabled: unknown; } /** * Date Picker displays a popup calendar that lets users select a single date. * * @igxModule IgxDatePickerModule * @igxTheme igx-calendar-theme, igx-icon-theme * @igxGroup Scheduling * @igxKeywords datepicker, calendar, schedule, date * @example * ```html * * ``` */ declare class IgxDatePickerComponent extends PickerBaseDirective implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy, AfterViewChecked, AfterContentChecked { private _overlayService; private _injector; private _renderer; private platform; private cdr; /** * Gets/Sets whether the inactive dates will be hidden. * * @remarks * Applies to dates that are out of the current month. * Default value is `false`. * @example * ```html * * ``` * @example * ```typescript * let hideOutsideDays = this.datePicker.hideOutsideDays; * ``` */ hideOutsideDays: boolean; /** * Gets/Sets the number of month views displayed. * * @remarks * Default value is `1`. * * @example * ```html * * ``` * @example * ```typescript * let monthViewsDisplayed = this.datePicker.displayMonthsCount; * ``` */ displayMonthsCount: number; /** * Gets/Sets the orientation of the multiple months displayed in the picker's calendar's days view. * * @example * */ orientation: PickerCalendarOrientation; /** * Show/hide week numbers * * @example * ```html * * `` */ showWeekNumbers: boolean; /** * Gets/Sets the date which is shown in the calendar picker and is highlighted. * By default it is the current date, or the value of the picker, if set. */ get activeDate(): Date; set activeDate(value: Date); /** * Gets/Sets a custom formatter function on the selected or passed date. * * @example * ```html * * ``` */ formatter: (val: Date) => string; /** * Gets/Sets the today button's label. * * @example * ```html * * ``` */ todayButtonLabel: string; /** * Gets/Sets the cancel button's label. * * @example * ```html * * ``` */ cancelButtonLabel: string; /** * Specify if the currently spun date segment should loop over. * * @example * ```html * * ``` */ spinLoop: boolean; /** * Delta values used to increment or decrement each editor date part on spin actions. * All values default to `1`. * * @example * ```html * * ``` */ spinDelta: Pick; /** * Gets/Sets the container used for the popup element. * * @remarks * `outlet` is an instance of `IgxOverlayOutletDirective` or an `ElementRef`. * @example * ```html *
* //.. * * //.. * ``` */ outlet: IgxOverlayOutletDirective | ElementRef; /** * Gets/Sets the value of `id` attribute. * * @remarks If not provided it will be automatically generated. * @example * ```html * * ``` */ id: string; /** * Gets/Sets the format views of the `IgxDatePickerComponent`. * * @example * ```typescript * let formatViews = this.datePicker.formatViews; * this.datePicker.formatViews = {day:false, month: false, year:false}; * ``` */ formatViews: IFormattingViews; /** * Gets/Sets the disabled dates descriptors. * * @example * ```typescript * let disabledDates = this.datepicker.disabledDates; * this.datePicker.disabledDates = [ {type: DateRangeType.Weekends}, ...]; * ``` */ get disabledDates(): DateRangeDescriptor[]; set disabledDates(value: DateRangeDescriptor[]); /** * Gets/Sets the special dates descriptors. * * @example * ```typescript * let specialDates = this.datepicker.specialDates; * this.datePicker.specialDates = [ {type: DateRangeType.Weekends}, ... ]; * ``` */ get specialDates(): DateRangeDescriptor[]; set specialDates(value: DateRangeDescriptor[]); /** * Gets/Sets the format options of the `IgxDatePickerComponent`. * * @example * ```typescript * this.datePicker.calendarFormat = {day: "numeric", month: "long", weekday: "long", year: "numeric"}; * ``` */ calendarFormat: IFormattingOptions; /** * Gets/Sets the selected date. * * @example * ```html * * ``` */ get value(): Date | string; set value(date: Date | string); /** * The minimum value the picker will accept. * * @example * */ set minValue(value: Date | string); get minValue(): Date | string; /** * The maximum value the picker will accept. * * @example * */ set maxValue(value: Date | string); get maxValue(): Date | string; /** * Gets/Sets the resource strings for the picker's default toggle icon. * By default it uses EN resources. */ resourceStrings: IDatePickerResourceStrings; /** @hidden @internal */ readOnly: boolean; /** * Emitted when the picker's value changes. * * @remarks * Used for `two-way` bindings. * * @example * ```html * * ``` */ valueChange: EventEmitter; /** * Emitted when the user types/spins invalid date in the date-picker editor. * * @example * ```html * * ``` */ validationFailed: EventEmitter; /** @hidden @internal */ label: IgxLabelDirective; private headerTitleTemplate; private headerTemplate; private dateTimeEditor; private viewContainerRef; private labelDirective; private inputDirective; private subheaderTemplate; private pickerActions; private get dialogOverlaySettings(); private get dropDownOverlaySettings(); private get inputGroupElement(); private get dateValue(); private get pickerFormatViews(); private get pickerCalendarFormat(); /** @hidden @internal */ displayValue: PipeTransform; private _resourceStrings; private _dateValue; private _overlayId; private _value; private _ngControl; private _statusChanges$; private _calendar; private _calendarContainer?; private _specialDates; private _disabledDates; private _activeDate; private _overlaySubFilter; private _dropDownOverlaySettings; private _dialogOverlaySettings; private _calendarFormat; private _defFormatViews; private _onChangeCallback; private _onTouchedCallback; private _onValidatorChange; constructor(); /** @hidden @internal */ get required(): boolean; /** @hidden @internal */ get pickerResourceStrings(): IDatePickerResourceStrings; protected get toggleContainer(): HTMLElement | undefined; /** @hidden @internal */ onKeyDown(event: KeyboardEvent): void; /** * Opens the picker's dropdown or dialog. * * @example * ```html * * * * ``` */ open(settings?: OverlaySettings): void; /** * Toggles the picker's dropdown or dialog * * @example * ```html * * * * ``` */ toggle(settings?: OverlaySettings): void; /** * Closes the picker's dropdown or dialog. * * @example * ```html * * * * ``` */ close(): void; /** * Selects a date. * * @remarks Updates the value in the input field. * * @example * ```typescript * this.datePicker.select(date); * ``` * @param date passed date that has to be set to the calendar. */ select(value: Date): void; /** * Selects today's date and closes the picker. * * @example * ```html * * * * ``` * */ selectToday(): void; /** * Clears the input field and the picker's value. * * @example * ```typescript * this.datePicker.clear(); * ``` */ clear(): void; /** * Increment a specified `DatePart`. * * @param datePart The optional DatePart to increment. Defaults to Date. * @param delta The optional delta to increment by. Overrides `spinDelta`. * @example * ```typescript * this.datePicker.increment(DatePart.Date); * ``` */ increment(datePart?: DatePart, delta?: number): void; /** * Decrement a specified `DatePart` * * @param datePart The optional DatePart to decrement. Defaults to Date. * @param delta The optional delta to decrement by. Overrides `spinDelta`. * @example * ```typescript * this.datePicker.decrement(DatePart.Date); * ``` */ decrement(datePart?: DatePart, delta?: number): void; /** @hidden @internal */ writeValue(value: Date | string): void; /** @hidden @internal */ registerOnChange(fn: any): void; /** @hidden @internal */ registerOnTouched(fn: any): void; /** @hidden @internal */ setDisabledState?(isDisabled: boolean): void; /** @hidden @internal */ registerOnValidatorChange(fn: any): void; /** @hidden @internal */ validate(control: AbstractControl): ValidationErrors | null; /** @hidden @internal */ ngOnInit(): void; /** @hidden @internal */ ngAfterViewInit(): void; /** @hidden @internal */ ngAfterViewChecked(): void; /** @hidden @internal */ ngOnDestroy(): void; /** @hidden @internal */ getEditElement(): HTMLInputElement; private subscribeToClick; private setDateValue; private updateValidity; private get isTouchedOrDirty(); private get hasValidators(); private onStatusChanged; private handleSelection; private subscribeToDateEditorEvents; private subscribeToOverlayEvents; private getMinMaxDates; private setDisabledDates; private _initializeCalendarContainer; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_hideOutsideDays: unknown; static ngAcceptInputType_showWeekNumbers: unknown; static ngAcceptInputType_spinLoop: unknown; static ngAcceptInputType_readOnly: unknown; } /** @hidden */ declare class IgxCalendarContainerComponent { calendar: IgxCalendarComponent; calendarClose: EventEmitter; calendarCancel: EventEmitter; todaySelection: EventEmitter; rangeSelected: EventEmitter; styleClass: string; get dropdownCSS(): boolean; usePredefinedRanges: boolean; customRanges: CustomDateRange[]; resourceStrings: IDateRangePickerResourceStrings; vertical: boolean; closeButtonLabel: string; cancelButtonLabel: string; todayButtonLabel: string; mode: PickerInteractionMode; pickerActions: IgxPickerActionsDirective; onEscape(event: any): void; get isReadonly(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const IGX_DATE_PICKER_DIRECTIVES: readonly [typeof IgxDatePickerComponent, typeof IgxPickerToggleComponent, typeof IgxPickerClearComponent, typeof IgxPickerActionsDirective, typeof IgxLabelDirective, typeof IgxPrefixDirective, typeof IgxSuffixDirective, typeof IgxHintDirective, typeof IgxCalendarHeaderTemplateDirective, typeof IgxCalendarSubheaderTemplateDirective, typeof IgxCalendarHeaderTitleTemplateDirective]; /** @hidden @internal */ declare class DateRangePickerFormatPipe implements PipeTransform { transform(values: DateRange, appliedFormat?: string, locale?: string, formatter?: (_: DateRange) => string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } /** @hidden @internal */ declare class IgxDateRangeInputsBaseComponent extends IgxInputGroupComponent { dateTimeEditor: IgxDateTimeEditorDirective; inputDirective: IgxInputDirective; protected ngControl: NgControl; /** @hidden @internal */ get nativeElement(): HTMLElement; /** @hidden @internal */ setFocus(): void; /** @hidden @internal */ updateInputValue(value: Date): void; /** @hidden @internal */ updateInputValidity(state: IgxInputState): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Defines the start input for a date range picker * * @igxModule IgxDateRangePickerModule * * @igxTheme igx-input-group-theme, igx-calendar-theme, igx-date-range-picker-theme * * @igxKeywords date, range, date range, date picker * * @igxGroup scheduling * * @remarks * When templating, start input has to be templated separately * * @example * ```html * * * * * ... * * ``` */ declare class IgxDateRangeStartComponent extends IgxDateRangeInputsBaseComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Defines the end input for a date range picker * * @igxModule IgxDateRangePickerModule * * @igxTheme igx-input-group-theme, igx-calendar-theme, igx-date-range-picker-theme * * @igxKeywords date, range, date range, date picker * * @igxGroup scheduling * * @remarks * When templating, end input has to be template separately * * @example * ```html * * ... * * * * * ``` */ declare class IgxDateRangeEndComponent extends IgxDateRangeInputsBaseComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Replaces the default separator `to` with the provided value * * @igxModule IgxDateRangePickerModule * * @igxTheme igx-date-range-picker-theme * * @igxKeywords date, range, date range, date picker * * @igxGroup scheduling * * @example * ```html * * * * * * - * * * * * ... * * ``` */ declare class IgxDateRangeSeparatorDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Provides the ability to select a range of dates from a calendar UI or editable inputs. * * @igxModule IgxDateRangeModule * * @igxTheme igx-input-group-theme, igx-calendar-theme, igx-date-range-picker-theme * * @igxKeywords date, range, date range, date picker * * @igxGroup scheduling * * @remarks * It displays the range selection in a single or two input fields. * The default template displays a single *readonly* input field * while projecting `igx-date-range-start` and `igx-date-range-end` * displays two *editable* input fields. * * @example * ```html * * ``` */ declare class IgxDateRangePickerComponent extends PickerBaseDirective implements OnChanges, OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, Validator { protected platform: PlatformUtil; private _injector; private _cdr; private _overlayService; /** * The number of displayed month views. * * @remarks * Default is `2`. * * @example * ```html * * ``` */ get displayMonthsCount(): number; set displayMonthsCount(value: number); /** * Gets/Sets the orientation of the multiple months displayed in the picker's calendar's days view. * * @example * */ orientation: PickerCalendarOrientation; /** * Gets/Sets whether dates that are not part of the current month will be displayed. * * @remarks * Default value is `false`. * * @example * ```html * * ``` */ hideOutsideDays: boolean; /** * A custom formatter function, applied on the selected or passed in date. * * @example * ```typescript * private dayFormatter = new Intl.DateTimeFormat("en", { weekday: "long" }); * private monthFormatter = new Intl.DateTimeFormat("en", { month: "long" }); * * public formatter(date: Date): string { * return `${this.dayFormatter.format(date)} - ${this.monthFormatter.format(date)} - ${date.getFullYear()}`; * } * ``` * ```html * * ``` */ formatter: (val: DateRange) => string; /** * Overrides the default text of the calendar dialog **Done** button. * * @remarks * Defaults to the value from resource strings, `"Done"` for the built-in EN. * The button will only show up in `dialog` mode. * * @example * ```html * * ``` */ set doneButtonText(value: string); get doneButtonText(): string; /** * Overrides the default text of the calendar dialog **Cancel** button. * * @remarks * Defaults to the value from resource strings, `"Cancel"` for the built-in EN. * The button will only show up in `dialog` mode. * * @example * ```html * * ``` */ set cancelButtonText(value: string); get cancelButtonText(): string; /** * Custom overlay settings that should be used to display the calendar. * * @example * ```html * * ``` */ overlaySettings: OverlaySettings; /** * The format used when editable inputs are not focused. * * @remarks * Uses Angular's DatePipe. * * @example * ```html * * ``` * */ displayFormat: string; /** * The expected user input format and placeholder. * * @example * ```html * * ``` */ inputFormat: string; /** * The minimum value in a valid range. * * @example * */ set minValue(value: Date | string); get minValue(): Date | string; /** * The maximum value in a valid range. * * @example * */ set maxValue(value: Date | string); get maxValue(): Date | string; /** * Gets/Sets the disabled dates descriptors. * * @example * ```typescript * let disabledDates = this.dateRangePicker.disabledDates; * this.dateRangePicker.disabledDates = [ {type: DateRangeType.Weekends}, ...]; * ``` */ get disabledDates(): DateRangeDescriptor[]; set disabledDates(value: DateRangeDescriptor[]); /** * Gets/Sets the special dates descriptors. * * @example * ```typescript * let specialDates = this.dateRangePicker.specialDates; * this.dateRangePicker.specialDates = [ {type: DateRangeType.Weekends}, ... ]; * ``` */ get specialDates(): DateRangeDescriptor[]; set specialDates(value: DateRangeDescriptor[]); /** * An accessor that sets the resource strings. * By default it uses EN resources. */ set resourceStrings(value: IDateRangePickerResourceStrings); /** * An accessor that returns the resource strings. */ get resourceStrings(): IDateRangePickerResourceStrings; /** * Sets the `placeholder` for single-input `IgxDateRangePickerComponent`. * * @example * ```html * * ``` */ placeholder: string; /** * Gets/Sets the container used for the popup element. * * @remarks * `outlet` is an instance of `IgxOverlayOutletDirective` or an `ElementRef`. * @example * ```html *
* //.. * * //.. * ``` */ outlet: IgxOverlayOutletDirective | ElementRef; /** * Show/hide week numbers * * @remarks * Default is `false`. * * @example * ```html * * `` */ showWeekNumbers: boolean; /** @hidden @internal */ readOnly: boolean; /** * Emitted when the picker's value changes. Used for two-way binding. * * @example * ```html * * ``` */ /** * Whether to render built-in predefined ranges. * * @example * ```html * * `` * */ usePredefinedRanges: boolean; /** * Custom ranges rendered as chips. * * @example * ```html * * `` */ customRanges: CustomDateRange[]; valueChange: EventEmitter; /** @hidden @internal */ cssClass: string; private viewContainerRef; /** @hidden @internal */ inputDirective: IgxInputDirective; /** @hidden @internal */ projectedInputs: QueryList; label: IgxLabelDirective; hint: IgxHintDirective; pickerActions: IgxPickerActionsDirective; /** @hidden @internal */ dateSeparatorTemplate: TemplateRef; private headerTitleTemplate; private headerTemplate; private subheaderTemplate; /** @hidden @internal */ get dateSeparator(): string; /** @hidden @internal */ get appliedFormat(): string; /** * Gets/Sets the date which is shown in the calendar picker and is highlighted. * By default it is the current date, or the value of the picker, if set. */ get activeDate(): Date; set activeDate(value: Date); /** * @example * ```html * * ``` */ /** * Gets the `locale` of the date-range-picker. * If not set, defaults to application's locale. */ get locale(): string; /** * Sets the `locale` of the date-picker. * Expects a valid BCP 47 language tag. */ set locale(value: string); /** @hidden @internal */ get singleInputFormat(): string; /** * Gets calendar state. * * ```typescript * let state = this.dateRange.collapsed; * ``` */ get collapsed(): boolean; /** * The currently selected value / range from the calendar * * @remarks * The current value is of type `DateRange` * * @example * ```typescript * const newValue: DateRange = { start: new Date("2/2/2012"), end: new Date("3/3/2013")}; * this.dateRangePicker.value = newValue; * ``` */ get value(): DateRange | null; set value(value: DateRange | null); /** @hidden @internal */ get hasProjectedInputs(): boolean; /** @hidden @internal */ get separatorClass(): string; protected get toggleContainer(): HTMLElement | undefined; private get required(); private get calendar(); private get dropdownOverlaySettings(); private get dialogOverlaySettings(); private get _firstDefinedInRange(); private _resourceStrings; private _doneButtonText; private _cancelButtonText; private _dateSeparator; private _value; private _originalValue; private _overlayId; private _ngControl; private _statusChanges$; private _calendar; private _calendarContainer?; private _positionSettings; private _focusedInput; private _displayMonthsCount; private _specialDates; private _disabledDates; private _activeDate; private _overlaySubFilter; private _dialogOverlaySettings; private _dropDownOverlaySettings; private onChangeCallback; private onTouchCallback; private onValidatorChange; constructor(); /** @hidden @internal */ onKeyDown(event: KeyboardEvent): void; /** * Opens the date range picker's dropdown or dialog. * * @example * ```html * * * * * * ``` */ close(): void; /** * Toggles the date range picker's dropdown or dialog * * @example * ```html * * * * ``` */ toggle(overlaySettings?: OverlaySettings): void; /** * Selects a range of dates. If no `endDate` is passed, range is 1 day (only `startDate`) * * @example * ```typescript * public selectFiveDayRange() { * const today = new Date(); * const inFiveDays = new Date(new Date().setDate(today.getDate() + 5)); * this.dateRange.select(today, inFiveDays); * } * ``` */ select(startDate: Date, endDate?: Date): void; /** * Clears the input field(s) and the picker's value. * * @example * ```typescript * this.dateRangePicker.clear(); * ``` */ clear(): void; /** @hidden @internal */ writeValue(value: DateRange): void; /** @hidden @internal */ registerOnChange(fn: any): void; /** @hidden @internal */ registerOnTouched(fn: any): void; /** @hidden @internal */ validate(control: AbstractControl): ValidationErrors | null; /** @hidden @internal */ registerOnValidatorChange?(fn: any): void; /** @hidden @internal */ setDisabledState?(isDisabled: boolean): void; /** @hidden */ ngOnInit(): void; /** @hidden */ ngAfterViewInit(): void; /** @hidden @internal */ ngOnChanges(changes: SimpleChanges): void; /** @hidden @internal */ ngOnDestroy(): void; /** @hidden @internal */ getEditElement(): HTMLInputElement; protected onStatusChanged: () => void; private setValidityState; private get isTouchedOrDirty(); private get hasValidators(); private handleSelection; private handleClosing; private subscribeToOverlayEvents; private isProjectedInputTarget; private updateValue; private updateValidityOnBlur; private updateDisabledState; private setRequiredToInputs; private parseMinValue; private parseMaxValue; private updateCalendar; private swapEditorDates; private extractRange; private toRangeOfDates; private subscribeToClick; private subscribeToDateEditorEvents; private attachOnTouched; private cacheFocusedInput; private configPositionStrategy; private configOverlaySettings; private initialSetValue; private updateInputs; private updateDisplayFormat; private updateInputFormat; private updateInputLocale; private _initializeCalendarContainer; private _setDisabledDates; private _getMinMaxDates; private _isValueInDisabledRange; private _setCalendarActiveDate; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_hideOutsideDays: unknown; static ngAcceptInputType_showWeekNumbers: unknown; static ngAcceptInputType_readOnly: unknown; } declare const IGX_DATE_RANGE_PICKER_DIRECTIVES: readonly [typeof IgxDateRangePickerComponent, typeof IgxPickerToggleComponent, typeof IgxPickerClearComponent, typeof IgxDateRangeStartComponent, typeof IgxDateRangeEndComponent, typeof IgxDateRangeSeparatorDirective, typeof IgxLabelDirective, typeof IgxPrefixDirective, typeof IgxSuffixDirective, typeof IgxHintDirective, typeof IgxCalendarHeaderTemplateDirective, typeof IgxCalendarSubheaderTemplateDirective, typeof IgxCalendarHeaderTitleTemplateDirective]; /** * @hidden * @deprecated * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components */ declare class IgxDatePickerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @hidden * @deprecated * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components */ declare class IgxDateRangePickerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { DateRangePickerFormatPipe, IGX_DATE_PICKER_DIRECTIVES, IGX_DATE_RANGE_PICKER_DIRECTIVES, IgxCalendarContainerComponent, IgxDatePickerComponent, IgxDatePickerModule, IgxDateRangeEndComponent, IgxDateRangeInputsBaseComponent, IgxDateRangePickerComponent, IgxDateRangePickerModule, IgxDateRangeSeparatorDirective, IgxDateRangeStartComponent, PickerBaseDirective }; export type { IDatePickerValidationFailedEventArgs };