import * as _angular_core from '@angular/core'; import { Signal, OnInit } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import * as i3 from 'ngx-tethys/dropdown'; import * as i4 from 'ngx-tethys/shared'; import * as i5 from 'ngx-tethys/icon'; import * as i6 from 'ngx-tethys/date-picker'; import * as i7 from 'ngx-tethys/nav'; type AttachTypes = 'day' | 'month' | 'year'; /** * @order 20 */ declare class DateRangeItemInfo { /** * 开始时间 */ begin?: number; /** * 截止时间 */ end?: number; /** * 时间段的唯一标识,如'week'、'month' */ key?: string; /** * 时间段的展示文本 */ text?: string; /** * 自定义时间段规则,interval为时间间隔;unit可选值有'day' | 'month' | 'year' */ timestamp?: { interval?: number; unit?: AttachTypes; }; } /** * 预设时间段及自定义时间段选择组件 * @name thy-date-range * @order 10 */ declare class ThyDateRange implements ControlValueAccessor { private thyPopover; private cdr; private locale; private datePickerConfigService; /** * 自定义可选值列表项 * @type DateRangeItemInfo[] */ readonly thyOptionalDateRanges: _angular_core.InputSignal; /** * 隐藏下拉选择时间段 * @default false */ readonly thyHiddenMenu: _angular_core.InputSignalWithTransform; /** * 禁用左右切换时间段 * @default false */ readonly thyDisabledSwitch: _angular_core.InputSignalWithTransform; /** * 自定义日期选择的展示文字 * @default 自定义 */ readonly thyCustomTextValue: _angular_core.InputSignal; /** * 自定义日期选择中可选择的最小时间 * @type Date | number */ readonly thyMinDate: _angular_core.InputSignal; /** * 自定义日期选择中可选择的最大时间 * @type Date | number */ readonly thyMaxDate: _angular_core.InputSignal; /** * 选中的时间段的展示形式, *
`custom`形式:`2023-07-01 ~ 2023-07-31`; *
`exception`形式:`2023-07-01`,具体展示还与`thyPickerFormat`有关。 */ readonly thyCustomKey: _angular_core.InputSignal<"custom" | "exception">; /** * 自定义日期展示格式,比如`yyyy年MM月`,只有当`thyCustomKey`值设为`exception`时才会生效 */ readonly thyPickerFormat: _angular_core.InputSignal; /** * 自定义日期禁用日期 */ readonly thyDisabledDate: _angular_core.InputSignal<((d: Date) => boolean) | undefined>; /** * 区间分隔符,不传值默认为 "~" */ readonly thySeparator: _angular_core.InputSignal; separator: Signal; /** * 自定义日期选择日期回调 * @type EventEmitter */ readonly thyOnCalendarChange: _angular_core.OutputEmitterRef; selectedDate?: DateRangeItemInfo; private defaultOptionalDateRanges; optionalDateRanges: Signal; selectedDateRange: { begin: number; end: number; }; onModelChange: Function; onModelTouched: Function; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; private _setSelectedDateRange; private _calculateNewTime; private _setPreviousOrNextDate; previous(): void; next(): void; openOptionalDateRangesMenu(event: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * @private */ declare class OptionalDateRanges implements OnInit { private thyPopover; private locale; hiddenMenu: boolean; optionalDateRanges: DateRangeItemInfo[]; customValue: string; customKey: string; minDate: number | Date; maxDate: number | Date; disabledDate: (d: Date) => boolean; selectedDateRange: (date: DateRangeItemInfo) => void; calendarChange: (date: Date[]) => void; selectedDate: DateRangeItemInfo; ngOnInit(): void; _selectDateRange(dateRange: DateRangeItemInfo): void; _selectedCustomDate(date: DateRangeItemInfo): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyDateRangeModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { DateRangeItemInfo, OptionalDateRanges, ThyDateRange, ThyDateRangeModule }; export type { AttachTypes };