import * as _angular_core from '@angular/core'; import { Provider, OnDestroy, InjectionToken, Signal, WritableSignal } from '@angular/core'; import * as ng_primitives_date_picker from 'ng-primitives/date-picker'; import * as _angular_cdk_a11y from '@angular/cdk/a11y'; import { FocusOrigin } from '@angular/cdk/a11y'; import * as rxjs from 'rxjs'; import { Observable } from 'rxjs'; import { BooleanInput } from '@angular/cdk/coercion'; import * as ng_primitives_state from 'ng-primitives/state'; import { SetterOptions, StateInjectionOptions } from 'ng-primitives/state'; /** * The first day of the week as a number (0-7). * - `1` = Monday * - `2` = Tuesday * - `3` = Wednesday * - `4` = Thursday * - `5` = Friday * - `6` = Saturday * - `7` = Sunday */ type NgpDatePickerFirstDayOfWeekNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7; /** * The first day of the week as a number (0-7). * - `1` = Monday * - `2` = Tuesday * - `3` = Wednesday * - `4` = Thursday * - `5` = Friday * - `6` = Saturday * - `7` = Sunday */ type NgpDatePickerFirstDayOfWeekNumberInput = NgpDatePickerFirstDayOfWeekNumber | `${NgpDatePickerFirstDayOfWeekNumber}`; /** * Transform the first day of the week input value to a number (0-7) for the start of the week in * the calendar. * @param firstDayOfWeek The first day of the week input value (number). * @returns The first day of the week number. */ declare function transformToFirstDayOfWeekNumber(firstDayOfWeek: NgpDatePickerFirstDayOfWeekNumberInput): NgpDatePickerFirstDayOfWeekNumber; interface NgpDatePickerConfig { /** * Define the first day of the week for the date picker calendar. * @default 7 (Sunday) */ firstDayOfWeek: NgpDatePickerFirstDayOfWeekNumber; } /** * Provide the default DatePicker / DateRangePicker configuration * @param config The DatePicker / DateRangePicker configuration * @returns The provider */ declare function provideDatePickerConfig(config: Partial): Provider[]; /** * Inject the DatePicker / DateRangePicker configuration * @returns The global DatePicker / DateRangePicker configuration */ declare function injectDatePickerConfig(): NgpDatePickerConfig; /** * A structural directive that renders a cell in the date picker grid. */ declare class NgpDatePickerCellRender implements OnDestroy { /** * Access the template ref for the cell. */ private readonly templateRef; /** * Access the view container ref. */ private readonly viewContainerRef; /** * Access the dates in the week. */ private readonly dates; /** * Store the view refs for the dates. */ private readonly viewRefs; static ngTemplateContextGuard(_: NgpDatePickerCellRender, context: unknown): context is NgpDatePickerCellContext; constructor(); /** * Render the dates in the week. */ private renderDates; /** * Destroy the view refs. */ ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerCellRender]", ["ngpDatePickerCellRender"], {}, {}, never, never, true, never>; } interface NgpDatePickerCellContext { $implicit: T; } declare const NgpDatePickerCellRenderToken: InjectionToken>; /** * Inject the DatePickerCell directive instance */ declare function injectDatePickerCellRender(): NgpDatePickerCellRender; /** * Inject current cell date */ declare function injectDatePickerCellDate(): T; /** * A cell in the date picker grid. */ declare class NgpDatePickerCell { /** * Access the child date picker date button. * The cell's accessible name comes from this button's day content, not the * shared month/year label (which would make every cell announce the month). */ protected readonly datePickerButton: _angular_core.Signal | undefined>; /** * The date picker cell state. */ protected readonly state: ng_primitives_date_picker.NgpDatePickerCellState; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * A button that represents a date in the date picker grid. */ declare class NgpDatePickerDateButton { /** * The date button state. */ protected readonly state: ng_primitives_date_picker.NgpDatePickerDateButtonState; /** * Determine if this is the selected date. * @internal */ readonly selected: _angular_core.Signal; /** * Determine if this date is disabled. * @internal */ readonly disabled: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerDateButton]", ["ngpDatePickerDateButton"], {}, {}, never, never, true, never>; } declare const NgpDatePickerDateButtonToken: InjectionToken>; /** * Inject the DatePickerDateButton directive instance */ declare function injectDatePickerDateButton(): NgpDatePickerDateButton; /** * The grid that contains the days of the month. */ declare class NgpDatePickerGrid { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerGrid]", ["ngpDatePickerGrid"], {}, {}, never, never, true, never>; } /** * The label that displays the current month and year typically in the header of the date picker. This will be announced by screen readers when the date changes. */ declare class NgpDatePickerLabel { /** * Define a unique id for the label. */ readonly id: _angular_core.InputSignal; /** * Define the aria live attribute. */ readonly ariaLive: _angular_core.InputSignal; /** * The date picker label state. */ protected readonly state: ng_primitives_date_picker.NgpDatePickerLabelState; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerLabel]", ["ngpDatePickerLabel"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "aria-live"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; } declare const NgpDatePickerLabelToken: InjectionToken>; /** * Inject the DatePickerLabel directive instance */ declare function injectDatePickerLabel(): NgpDatePickerLabel; /** * A button that navigates to the next month. */ declare class NgpDatePickerNextMonth { /** * The next month state. */ protected readonly state: ng_primitives_date_picker.NgpDatePickerNextMonthState; /** * Determine if the next month is disabled. * @internal */ readonly disabled: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerNextMonth]", ["ngpDatePickerNextMonth"], {}, {}, never, never, true, never>; } /** * A button that navigates to the previous month. */ declare class NgpDatePickerPreviousMonth { /** * The previous month state. */ protected readonly state: ng_primitives_date_picker.NgpDatePickerPreviousMonthState; /** * Determine if the previous month is disabled. * @internal */ readonly disabled: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerPreviousMonth]", ["ngpDatePickerPreviousMonth"], {}, {}, never, never, true, never>; } /** * A structural directive that renders a row of weekdays in the date picker grid. */ declare class NgpDatePickerRowRender implements OnDestroy { /** * Access the date adapter. */ private readonly dateAdapter; /** * Access the date picker. */ private readonly state; /** * Access the template ref for the cell. */ private readonly templateRef; /** * Access the view container ref. */ private readonly viewContainerRef; /** * Get all the days to display, this is the days of the current month * and the days of the previous and next month to fill the grid. */ protected readonly days: _angular_core.Signal; protected readonly weeks: _angular_core.Signal; /** * Store the embedded view refs of each rendered row. */ private readonly viewRefs; /** * Store the previously rendered month. */ private previousMonth; /** * Store the previously rendered first day of the week. */ private previousFirstDayOfWeek; constructor(); ngOnDestroy(): void; /** * Render the row. */ private renderRows; /** * Destroy the row. */ private destroyRows; /** * Get the offset of the first day of the week. * @param firstCalendarDay The first day of the calendar without the offset. * @returns The offset of the first day of the week. * * @internal */ getFirstDayOfWeekOffset(firstCalendarDay: T): number; /** * Get the offset of the last day of the week. * @param lastCalendarDay The last day of the calendar without the offset. * @returns The offset of the last day of the week. * * @internal */ getLastDayOfWeekOffset(lastCalendarDay: T): number; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePickerRowRender]", ["ngpDatePickerRowRender"], {}, {}, never, never, true, never>; } declare const NgpDatePickerRowRenderToken: InjectionToken>; /** * Inject the DatePickerRowRender directive instance */ declare function injectDatePickerRowRender(): NgpDatePickerRowRender; /** * Inject current week days */ declare function injectDatePickerWeek(): T[]; /** * The outermost container for the date picker. */ declare class NgpDatePicker { /** * Access the date adapter. */ private readonly dateAdapter; /** * Access the date picker config. */ private readonly config; /** * The minimum date that can be selected. */ readonly min: _angular_core.InputSignal; /** * The maximum date that can be selected. */ readonly max: _angular_core.InputSignal; /** * Determine if the date picker is disabled. */ readonly disabled: _angular_core.InputSignalWithTransform; /** * A function that is called to determine if a specific date should be disabled. */ readonly dateDisabled: _angular_core.InputSignal<(date: T) => boolean>; /** * Sets which day starts the week in the calendar. * Accepts 0-7 where 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday. * Defaults to NgpDatePickerConfig.firstDayOfWeek (default 7 if not overridden). * Note: Update calendar header column order when changing from Sunday start. * @default 7 (Sunday) */ readonly firstDayOfWeek: _angular_core.InputSignalWithTransform; /** * The selected value. */ readonly date: _angular_core.InputSignal; /** * The default (uncontrolled) selected value. */ readonly defaultDate: _angular_core.InputSignal; /** * Emit when the date changes. */ readonly dateChange: _angular_core.OutputEmitterRef; /** * The focused value. */ readonly focusedDate: _angular_core.InputSignal; /** * The default (uncontrolled) focused value. */ readonly defaultFocusedDate: _angular_core.InputSignal; /** * Emit when the focused date changes. */ readonly focusedDateChange: _angular_core.OutputEmitterRef; /** * The date picker state. */ protected readonly state: { disabled: _angular_core.WritableSignal; min: _angular_core.Signal; max: _angular_core.Signal; dateDisabled: _angular_core.Signal<(date: T) => boolean>; firstDayOfWeek: _angular_core.Signal; date: _angular_core.Signal; focusedDate: _angular_core.Signal; labelledBy: _angular_core.Signal; dateChange: rxjs.Observable; setFocusedDate: (date: T, origin: _angular_cdk_a11y.FocusOrigin, direction: "forward" | "backward") => void; select: (date: T, preserveTime?: boolean, options?: SetterOptions) => void; setDisabled: (value: boolean) => void; setDefaultDate: (value: T | undefined) => void; setDefaultFocusedDate: (value: T) => void; isSelected: (value: T) => boolean; isStartOfRange: (_: T) => boolean; isEndOfRange: (_: T) => boolean; isBetweenRange: (_: T) => boolean; registerButton: (button: ng_primitives_date_picker.NgpDatePickerDateButtonState) => void; unregisterButton: (button: ng_primitives_date_picker.NgpDatePickerDateButtonState) => void; setLabel: (id: string) => void; removeLabel: (id: string) => void; }; /** * Select a date. * @param date The date to select. * @param preserveTime Whether to preserve time components from existing selected date. * @param options Options for the selection. Set `emit` to false to update the state without * emitting `dateChange` (e.g. when writing a value from a form model). * @internal */ select(date: T, preserveTime?: boolean, options?: SetterOptions): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDatePicker]", ["ngpDatePicker"], { "min": { "alias": "ngpDatePickerMin"; "required": false; "isSignal": true; }; "max": { "alias": "ngpDatePickerMax"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpDatePickerDisabled"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "ngpDatePickerDateDisabled"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "ngpDatePickerFirstDayOfWeek"; "required": false; "isSignal": true; }; "date": { "alias": "ngpDatePickerDate"; "required": false; "isSignal": true; }; "defaultDate": { "alias": "ngpDatePickerDefaultDate"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "ngpDatePickerFocusedDate"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "ngpDatePickerDefaultFocusedDate"; "required": false; "isSignal": true; }; }, { "dateChange": "ngpDatePickerDateChange"; "focusedDateChange": "ngpDatePickerFocusedDateChange"; }, never, never, true, never>; } interface NgpDatePickerDateButtonState { /** * @internal * Whether this date is selected. */ readonly selected: Signal; /** * @internal * Whether this date is disabled. */ readonly disabled: Signal; /** * @internal * Focus this button if it represents the focused date. */ focus(): void; } interface NgpDatePickerDateButtonProps { } declare const NgpDatePickerDateButtonStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpDatePickerDateButton: ({}: NgpDatePickerDateButtonProps) => NgpDatePickerDateButtonState; declare const injectDatePickerDateButtonState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideDatePickerDateButtonState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; /** * The shape shared by the date picker and the date range picker. Every part * (grid, label, cell, date button, month navigation, row render) reads this * interface via `injectDateControllerState`, so both controllers must satisfy it. */ interface NgpDateControllerState { /** * Whether the date picker is disabled. */ readonly disabled: WritableSignal; /** * The minimum selectable date. */ readonly min: Signal; /** * The maximum selectable date. */ readonly max: Signal; /** * A predicate that determines whether a specific date is disabled. */ readonly dateDisabled: Signal<(date: T) => boolean>; /** * The day that starts the week in the calendar (1-7). */ readonly firstDayOfWeek: Signal; /** * The focused date (the roving-focus cursor). */ readonly focusedDate: Signal; /** * @internal * The id of the registered label, or `undefined` when none is present. The * grid reflects this on `aria-labelledby`. */ readonly labelledBy: Signal; /** * Set the focused date, clamping to `min`/`max` and skipping disabled dates. */ setFocusedDate(date: T, origin: FocusOrigin, direction: 'forward' | 'backward'): void; /** * Select a date. */ select(date: T, preserveTime?: boolean, options?: SetterOptions): void; /** * Set the disabled state. */ setDisabled(value: boolean): void; /** * Determine whether a date is selected. */ isSelected(date: T): boolean; /** * Determine whether a date is the start of the range. */ isStartOfRange(date: T): boolean; /** * Determine whether a date is the end of the range. */ isEndOfRange(date: T): boolean; /** * Determine whether a date is between the start and end of the range. */ isBetweenRange(date: T): boolean; /** * @internal * Register a date button so keyboard navigation can move focus between cells. */ registerButton(button: NgpDatePickerDateButtonState): void; /** * @internal * Deregister a date button. */ unregisterButton(button: NgpDatePickerDateButtonState): void; /** * @internal * Register the label id used for `aria-labelledby`. */ setLabel(id: string): void; /** * @internal * Deregister the label id. */ removeLabel(id: string): void; } interface NgpDatePickerState extends NgpDateControllerState { /** * The selected date. */ readonly date: Signal; /** * Emits when the selected date changes. */ readonly dateChange: Observable; /** * Set the default (uncontrolled) selected date. */ setDefaultDate(value: T | undefined): void; /** * Set the default (uncontrolled) focused date. */ setDefaultFocusedDate(value: T): void; } interface NgpDatePickerProps { /** * The minimum selectable date. */ readonly min?: Signal; /** * The maximum selectable date. */ readonly max?: Signal; /** * Whether the date picker is disabled. */ readonly disabled?: Signal; /** * A predicate that determines whether a specific date is disabled. */ readonly dateDisabled?: Signal<(date: T) => boolean>; /** * The day that starts the week in the calendar (1-7). */ readonly firstDayOfWeek?: Signal; /** * The selected date. */ readonly date?: Signal; /** * The default (uncontrolled) selected date. */ readonly defaultDate?: Signal; /** * The focused date. */ readonly focusedDate?: Signal; /** * The default (uncontrolled) focused date. */ readonly defaultFocusedDate?: Signal; /** * Called when the selected date changes. */ readonly onDateChange?: (value: T | undefined) => void; /** * Called when the focused date changes. */ readonly onFocusedDateChange?: (value: T) => void; } declare const NgpDatePickerStateToken: _angular_core.InjectionToken; min: Signal; max: Signal; dateDisabled: Signal<(date: unknown) => boolean>; firstDayOfWeek: Signal; date: Signal; focusedDate: Signal; labelledBy: Signal; dateChange: Observable; setFocusedDate: (date: unknown, origin: FocusOrigin, direction: "forward" | "backward") => void; select: (date: unknown, preserveTime?: boolean, options?: SetterOptions) => void; setDisabled: (value: boolean) => void; setDefaultDate: (value: unknown) => void; setDefaultFocusedDate: (value: unknown) => void; isSelected: (value: unknown) => boolean; isStartOfRange: (_: unknown) => boolean; isEndOfRange: (_: unknown) => boolean; isBetweenRange: (_: unknown) => boolean; registerButton: (button: NgpDatePickerDateButtonState) => void; unregisterButton: (button: NgpDatePickerDateButtonState) => void; setLabel: (id: string) => void; removeLabel: (id: string) => void; }>>; declare const ngpDatePicker: ({ min, max, dateDisabled, firstDayOfWeek, disabled: _disabled, date: _date, defaultDate: _defaultDate, focusedDate: _focusedDate, defaultFocusedDate: _defaultFocusedDate, onDateChange, onFocusedDateChange, }: NgpDatePickerProps) => { disabled: WritableSignal; min: Signal; max: Signal; dateDisabled: Signal<(date: T) => boolean>; firstDayOfWeek: Signal; date: Signal; focusedDate: Signal; labelledBy: Signal; dateChange: Observable; setFocusedDate: (date: T, origin: FocusOrigin, direction: "forward" | "backward") => void; select: (date: T, preserveTime?: boolean, options?: SetterOptions) => void; setDisabled: (value: boolean) => void; setDefaultDate: (value: T | undefined) => void; setDefaultFocusedDate: (value: T) => void; isSelected: (value: T) => boolean; isStartOfRange: (_: T) => boolean; isEndOfRange: (_: T) => boolean; isBetweenRange: (_: T) => boolean; registerButton: (button: NgpDatePickerDateButtonState) => void; unregisterButton: (button: NgpDatePickerDateButtonState) => void; setLabel: (id: string) => void; removeLabel: (id: string) => void; }; declare const provideDatePickerState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; declare function injectDatePickerState(): Signal>; declare function injectDatePickerState(options: StateInjectionOptions): Signal | null>; declare class NgpDateRangePicker { /** * Access the date adapter. */ private readonly dateAdapter; /** * Access the date range picker config. */ private readonly config; /** * The minimum date that can be selected. */ readonly min: _angular_core.InputSignal; /** * The maximum date that can be selected. */ readonly max: _angular_core.InputSignal; /** * Determine if the date picker is disabled. */ readonly disabled: _angular_core.InputSignalWithTransform; /** * A function that is called to determine if a specific date should be disabled. */ readonly dateDisabled: _angular_core.InputSignal<(date: T) => boolean>; /** * Sets which day starts the week in the calendar. * Accepts 0-7 where 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday. * Defaults to NgpDatePickerConfig.firstDayOfWeek (default 7 if not overridden). * Note: Update calendar header column order when changing from Sunday start. * @default 7 (Sunday) */ readonly firstDayOfWeek: _angular_core.InputSignalWithTransform; /** * The selected start date */ readonly startDate: _angular_core.InputSignal; /** * The default (uncontrolled) start date. */ readonly defaultStartDate: _angular_core.InputSignal; /** * Emit when the date changes. */ readonly startDateChange: _angular_core.OutputEmitterRef; /** * The selected end date */ readonly endDate: _angular_core.InputSignal; /** * The default (uncontrolled) end date. */ readonly defaultEndDate: _angular_core.InputSignal; /** * Emit when the end date changes. */ readonly endDateChange: _angular_core.OutputEmitterRef; /** * The focused value. */ readonly focusedDate: _angular_core.InputSignal; /** * The default (uncontrolled) focused value. */ readonly defaultFocusedDate: _angular_core.InputSignal; /** * Emit when the focused date changes. */ readonly focusedDateChange: _angular_core.OutputEmitterRef; /** * The date range picker state. */ protected readonly state: { disabled: _angular_core.WritableSignal; min: _angular_core.Signal; max: _angular_core.Signal; dateDisabled: _angular_core.Signal<(date: T) => boolean>; firstDayOfWeek: _angular_core.Signal; focusedDate: _angular_core.Signal; labelledBy: _angular_core.Signal; startDate: _angular_core.Signal; endDate: _angular_core.Signal; startDateChange: rxjs.Observable; endDateChange: rxjs.Observable; setStart: (value: T | undefined, options?: ng_primitives_state.SetterOptions) => void; setEnd: (value: T | undefined, options?: ng_primitives_state.SetterOptions) => void; setFocusedDate: (date: T, origin: _angular_cdk_a11y.FocusOrigin, direction: "forward" | "backward") => void; select: (date: T, preserveTime?: boolean, options?: ng_primitives_state.SetterOptions) => void; setDisabled: (value: boolean) => void; setDefaultStartDate: (value: T | undefined) => void; setDefaultEndDate: (value: T | undefined) => void; setDefaultFocusedDate: (value: T) => void; isSelected: (date: T) => boolean; isStartOfRange: (date: T) => boolean; isEndOfRange: (date: T) => boolean; isBetweenRange: (date: T) => boolean; registerButton: (button: ng_primitives_date_picker.NgpDatePickerDateButtonState) => void; unregisterButton: (button: ng_primitives_date_picker.NgpDatePickerDateButtonState) => void; setLabel: (id: string) => void; removeLabel: (id: string) => void; }; /** * Select a date within the range. * @param date The date to select. * @param preserveTime Whether to preserve time components from existing selected dates. * @internal */ select(date: T, preserveTime?: boolean): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpDateRangePicker]", ["ngpDateRangePicker"], { "min": { "alias": "ngpDateRangePickerMin"; "required": false; "isSignal": true; }; "max": { "alias": "ngpDateRangePickerMax"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpDateRangePickerDisabled"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "ngpDateRangePickerDateDisabled"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "ngpDateRangePickerFirstDayOfWeek"; "required": false; "isSignal": true; }; "startDate": { "alias": "ngpDateRangePickerStartDate"; "required": false; "isSignal": true; }; "defaultStartDate": { "alias": "ngpDateRangePickerDefaultStartDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "ngpDateRangePickerEndDate"; "required": false; "isSignal": true; }; "defaultEndDate": { "alias": "ngpDateRangePickerDefaultEndDate"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "ngpDateRangePickerFocusedDate"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "ngpDateRangePickerDefaultFocusedDate"; "required": false; "isSignal": true; }; }, { "startDateChange": "ngpDateRangePickerStartDateChange"; "endDateChange": "ngpDateRangePickerEndDateChange"; "focusedDateChange": "ngpDateRangePickerFocusedDateChange"; }, never, never, true, never>; } interface NgpDateRangePickerState extends NgpDateControllerState { /** * The selected start date. */ readonly startDate: Signal; /** * The selected end date. */ readonly endDate: Signal; /** * Emits when the start date changes. */ readonly startDateChange: Observable; /** * Emits when the end date changes. */ readonly endDateChange: Observable; /** * Set the start date. */ setStart(value: T | undefined, options?: SetterOptions): void; /** * Set the end date. */ setEnd(value: T | undefined, options?: SetterOptions): void; /** * Set the default (uncontrolled) start date. */ setDefaultStartDate(value: T | undefined): void; /** * Set the default (uncontrolled) end date. */ setDefaultEndDate(value: T | undefined): void; /** * Set the default (uncontrolled) focused date. */ setDefaultFocusedDate(value: T): void; } interface NgpDateRangePickerProps { /** * The minimum selectable date. */ readonly min?: Signal; /** * The maximum selectable date. */ readonly max?: Signal; /** * Whether the date range picker is disabled. */ readonly disabled?: Signal; /** * A predicate that determines whether a specific date is disabled. */ readonly dateDisabled?: Signal<(date: T) => boolean>; /** * The day that starts the week in the calendar (1-7). */ readonly firstDayOfWeek?: Signal; /** * The selected start date. */ readonly startDate?: Signal; /** * The default (uncontrolled) start date. */ readonly defaultStartDate?: Signal; /** * The selected end date. */ readonly endDate?: Signal; /** * The default (uncontrolled) end date. */ readonly defaultEndDate?: Signal; /** * The focused date. */ readonly focusedDate?: Signal; /** * The default (uncontrolled) focused date. */ readonly defaultFocusedDate?: Signal; /** * Called when the start date changes. */ readonly onStartDateChange?: (value: T | undefined) => void; /** * Called when the end date changes. */ readonly onEndDateChange?: (value: T | undefined) => void; /** * Called when the focused date changes. */ readonly onFocusedDateChange?: (value: T) => void; } declare const NgpDateRangePickerStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{ disabled: _angular_core.WritableSignal; min: Signal; max: Signal; dateDisabled: Signal<(date: unknown) => boolean>; firstDayOfWeek: Signal; focusedDate: Signal; labelledBy: Signal; startDate: Signal; endDate: Signal; startDateChange: Observable; endDateChange: Observable; setStart: (value: unknown, options?: SetterOptions) => void; setEnd: (value: unknown, options?: SetterOptions) => void; setFocusedDate: (date: unknown, origin: FocusOrigin, direction: "forward" | "backward") => void; select: (date: unknown, preserveTime?: boolean, options?: SetterOptions) => void; setDisabled: (value: boolean) => void; setDefaultStartDate: (value: unknown) => void; setDefaultEndDate: (value: unknown) => void; setDefaultFocusedDate: (value: unknown) => void; isSelected: (date: unknown) => boolean; isStartOfRange: (date: unknown) => boolean; isEndOfRange: (date: unknown) => boolean; isBetweenRange: (date: unknown) => boolean; registerButton: (button: NgpDatePickerDateButtonState) => void; unregisterButton: (button: NgpDatePickerDateButtonState) => void; setLabel: (id: string) => void; removeLabel: (id: string) => void; }>>; declare const ngpDateRangePicker: ({ min, max, dateDisabled, firstDayOfWeek, disabled: _disabled, startDate: _startDate, defaultStartDate: _defaultStartDate, endDate: _endDate, defaultEndDate: _defaultEndDate, focusedDate: _focusedDate, defaultFocusedDate: _defaultFocusedDate, onStartDateChange, onEndDateChange, onFocusedDateChange, }: NgpDateRangePickerProps) => { disabled: _angular_core.WritableSignal; min: Signal; max: Signal; dateDisabled: Signal<(date: T) => boolean>; firstDayOfWeek: Signal; focusedDate: Signal; labelledBy: Signal; startDate: Signal; endDate: Signal; startDateChange: Observable; endDateChange: Observable; setStart: (value: T | undefined, options?: SetterOptions) => void; setEnd: (value: T | undefined, options?: SetterOptions) => void; setFocusedDate: (date: T, origin: FocusOrigin, direction: "forward" | "backward") => void; select: (date: T, preserveTime?: boolean, options?: SetterOptions) => void; setDisabled: (value: boolean) => void; setDefaultStartDate: (value: T | undefined) => void; setDefaultEndDate: (value: T | undefined) => void; setDefaultFocusedDate: (value: T) => void; isSelected: (date: T) => boolean; isStartOfRange: (date: T) => boolean; isEndOfRange: (date: T) => boolean; isBetweenRange: (date: T) => boolean; registerButton: (button: NgpDatePickerDateButtonState) => void; unregisterButton: (button: NgpDatePickerDateButtonState) => void; setLabel: (id: string) => void; removeLabel: (id: string) => void; }; declare const provideDateRangePickerState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; declare function injectDateRangePickerState(): Signal>; declare function injectDateRangePickerState(options: StateInjectionOptions): Signal | null>; interface NgpDatePickerGridState { } interface NgpDatePickerGridProps { } declare const NgpDatePickerGridStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpDatePickerGrid: ({}: NgpDatePickerGridProps) => NgpDatePickerGridState; declare const injectDatePickerGridState: { (): _angular_core.Signal; (options: ng_primitives_state.StateInjectionOptions): _angular_core.Signal; (options?: ng_primitives_state.StateInjectionOptions): _angular_core.Signal | _angular_core.Signal; }; declare const provideDatePickerGridState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; interface NgpDatePickerLabelState { /** * The id of the label. */ readonly id: Signal; } interface NgpDatePickerLabelProps { /** * The id of the label. */ readonly id?: Signal; /** * The aria-live politeness of the label. */ readonly ariaLive?: Signal; } declare const NgpDatePickerLabelStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpDatePickerLabel: ({ id, ariaLive, }: NgpDatePickerLabelProps) => NgpDatePickerLabelState; declare const injectDatePickerLabelState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideDatePickerLabelState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; interface NgpDatePickerCellState { } interface NgpDatePickerCellProps { /** * The date button rendered inside the cell, if any. */ readonly button: Signal | undefined>; } declare const NgpDatePickerCellStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpDatePickerCell: ({ button }: NgpDatePickerCellProps) => NgpDatePickerCellState; declare const injectDatePickerCellState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideDatePickerCellState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; interface NgpDatePickerNextMonthState { /** * @internal * Whether navigating to the next month is disabled. */ readonly disabled: Signal; } interface NgpDatePickerNextMonthProps { } declare const NgpDatePickerNextMonthStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpDatePickerNextMonth: ({}: NgpDatePickerNextMonthProps) => NgpDatePickerNextMonthState; declare const injectDatePickerNextMonthState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideDatePickerNextMonthState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; interface NgpDatePickerPreviousMonthState { /** * @internal * Whether navigating to the previous month is disabled. */ readonly disabled: Signal; } interface NgpDatePickerPreviousMonthProps { } declare const NgpDatePickerPreviousMonthStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpDatePickerPreviousMonth: ({}: NgpDatePickerPreviousMonthProps) => NgpDatePickerPreviousMonthState; declare const injectDatePickerPreviousMonthState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideDatePickerPreviousMonthState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; export { NgpDatePicker, NgpDatePickerCell, NgpDatePickerCellRender, NgpDatePickerCellRenderToken, NgpDatePickerCellStateToken, NgpDatePickerDateButton, NgpDatePickerDateButtonStateToken, NgpDatePickerDateButtonToken, NgpDatePickerGrid, NgpDatePickerGridStateToken, NgpDatePickerLabel, NgpDatePickerLabelStateToken, NgpDatePickerLabelToken, NgpDatePickerNextMonth, NgpDatePickerNextMonthStateToken, NgpDatePickerPreviousMonth, NgpDatePickerPreviousMonthStateToken, NgpDatePickerRowRender, NgpDatePickerRowRenderToken, NgpDatePickerStateToken, NgpDateRangePicker, NgpDateRangePickerStateToken, injectDatePickerCellDate, injectDatePickerCellRender, injectDatePickerCellState, injectDatePickerConfig, injectDatePickerDateButton, injectDatePickerDateButtonState, injectDatePickerGridState, injectDatePickerLabel, injectDatePickerLabelState, injectDatePickerNextMonthState, injectDatePickerPreviousMonthState, injectDatePickerRowRender, injectDatePickerState, injectDatePickerWeek, injectDateRangePickerState, ngpDatePicker, ngpDatePickerCell, ngpDatePickerDateButton, ngpDatePickerGrid, ngpDatePickerLabel, ngpDatePickerNextMonth, ngpDatePickerPreviousMonth, ngpDateRangePicker, provideDatePickerCellState, provideDatePickerConfig, provideDatePickerDateButtonState, provideDatePickerGridState, provideDatePickerLabelState, provideDatePickerNextMonthState, provideDatePickerPreviousMonthState, provideDatePickerState, provideDateRangePickerState, transformToFirstDayOfWeekNumber }; export type { NgpDateControllerState, NgpDatePickerCellProps, NgpDatePickerCellState, NgpDatePickerConfig, NgpDatePickerDateButtonProps, NgpDatePickerDateButtonState, NgpDatePickerFirstDayOfWeekNumber, NgpDatePickerFirstDayOfWeekNumberInput, NgpDatePickerGridProps, NgpDatePickerGridState, NgpDatePickerLabelProps, NgpDatePickerLabelState, NgpDatePickerNextMonthProps, NgpDatePickerNextMonthState, NgpDatePickerPreviousMonthProps, NgpDatePickerPreviousMonthState, NgpDatePickerProps, NgpDatePickerState, NgpDateRangePickerProps, NgpDateRangePickerState };