@aplus-frontend/ui 7.14.5 → 7.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/es/src/ag-grid/editable/form-item.vue.mjs +8 -7
  2. package/es/src/ag-grid/editable/index.vue.mjs +19 -18
  3. package/es/src/ag-grid/index.vue.mjs +110 -105
  4. package/es/src/ag-grid/interface.d.ts +7 -0
  5. package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/date/index.vue.d.ts +1086 -6
  7. package/es/src/ap-field/date/index.vue.mjs +63 -57
  8. package/es/src/ap-field/date-range/index.vue.d.ts +1155 -4
  9. package/es/src/ap-field/date-range/index.vue.mjs +70 -63
  10. package/es/src/ap-field/interface.d.ts +25 -29
  11. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  12. package/es/src/ap-field/radio/index.vue.d.ts +1 -1
  13. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  14. package/es/src/ap-field/second/index.vue.d.ts +1 -1
  15. package/es/src/ap-field/select/index.vue.d.ts +3 -2
  16. package/es/src/ap-field/select/index.vue.mjs +116 -104
  17. package/es/src/ap-field/select/read.vue2.mjs +4 -3
  18. package/es/src/ap-field/slider/index.vue.d.ts +1 -1
  19. package/es/src/ap-field/switch/index.vue.d.ts +232 -4
  20. package/es/src/ap-field/switch/index.vue.mjs +48 -42
  21. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  22. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +1 -0
  24. package/es/src/ap-form/drawer-form/index.vue.mjs +107 -116
  25. package/es/src/ap-form/interface.d.ts +1 -1
  26. package/es/src/ap-form/item-group/index.vue.d.ts +2 -4
  27. package/es/src/ap-form/item-group/index.vue.mjs +37 -42
  28. package/es/src/ap-form/items/checkbox/index.vue.d.ts +66 -5
  29. package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -14
  30. package/es/src/ap-form/items/date/index.vue.d.ts +1497 -5
  31. package/es/src/ap-form/items/date/index.vue.mjs +25 -19
  32. package/es/src/ap-form/items/date-range/index.vue.d.ts +1607 -5
  33. package/es/src/ap-form/items/date-range/index.vue.mjs +25 -19
  34. package/es/src/ap-form/items/number/index.vue.d.ts +4 -4
  35. package/es/src/ap-form/items/radio/index.vue.d.ts +5 -5
  36. package/es/src/ap-form/items/radio/index.vue.mjs +2 -3
  37. package/es/src/ap-form/items/select/index.vue.d.ts +18 -12
  38. package/es/src/ap-form/items/switch/index.vue.d.ts +436 -5
  39. package/es/src/ap-form/items/switch/index.vue.mjs +24 -17
  40. package/es/src/ap-form/items/text/password.vue.d.ts +5 -5
  41. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  42. package/es/src/ap-table/components/setting/template/item.vue2.mjs +27 -26
  43. package/es/src/ap-table/constants.d.ts +1923 -107
  44. package/es/src/time-ago/index.vue.mjs +21 -17
  45. package/es/src/time-ago/interface.d.ts +8 -0
  46. package/es/src/time-ago/useTimeAgo.d.ts +21 -0
  47. package/es/src/time-ago/useTimeAgo.mjs +36 -34
  48. package/es/src/time-ago/utils.d.ts +11 -0
  49. package/es/src/time-ago/utils.mjs +41 -9
  50. package/es/src/utils/index.d.ts +1 -0
  51. package/es/src/utils/index.mjs +18 -14
  52. package/es/src/version.d.ts +1 -1
  53. package/es/src/version.mjs +1 -1
  54. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  55. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  56. package/lib/src/ag-grid/index.vue.js +1 -1
  57. package/lib/src/ag-grid/interface.d.ts +7 -0
  58. package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
  59. package/lib/src/ap-field/date/index.vue.d.ts +1086 -6
  60. package/lib/src/ap-field/date/index.vue.js +1 -1
  61. package/lib/src/ap-field/date-range/index.vue.d.ts +1155 -4
  62. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  63. package/lib/src/ap-field/interface.d.ts +25 -29
  64. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  65. package/lib/src/ap-field/radio/index.vue.d.ts +1 -1
  66. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  67. package/lib/src/ap-field/second/index.vue.d.ts +1 -1
  68. package/lib/src/ap-field/select/index.vue.d.ts +3 -2
  69. package/lib/src/ap-field/select/index.vue.js +1 -1
  70. package/lib/src/ap-field/select/read.vue2.js +1 -1
  71. package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
  72. package/lib/src/ap-field/switch/index.vue.d.ts +232 -4
  73. package/lib/src/ap-field/switch/index.vue.js +1 -1
  74. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  75. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  76. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1 -0
  77. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  78. package/lib/src/ap-form/interface.d.ts +1 -1
  79. package/lib/src/ap-form/item-group/index.vue.d.ts +2 -4
  80. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  81. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +66 -5
  82. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  83. package/lib/src/ap-form/items/date/index.vue.d.ts +1497 -5
  84. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  85. package/lib/src/ap-form/items/date-range/index.vue.d.ts +1607 -5
  86. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  87. package/lib/src/ap-form/items/number/index.vue.d.ts +4 -4
  88. package/lib/src/ap-form/items/radio/index.vue.d.ts +5 -5
  89. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  90. package/lib/src/ap-form/items/select/index.vue.d.ts +18 -12
  91. package/lib/src/ap-form/items/switch/index.vue.d.ts +436 -5
  92. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  93. package/lib/src/ap-form/items/text/password.vue.d.ts +5 -5
  94. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  95. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  96. package/lib/src/ap-table/constants.d.ts +1923 -107
  97. package/lib/src/time-ago/index.vue.js +1 -1
  98. package/lib/src/time-ago/interface.d.ts +8 -0
  99. package/lib/src/time-ago/useTimeAgo.d.ts +21 -0
  100. package/lib/src/time-ago/useTimeAgo.js +1 -1
  101. package/lib/src/time-ago/utils.d.ts +11 -0
  102. package/lib/src/time-ago/utils.js +1 -1
  103. package/lib/src/utils/index.d.ts +1 -0
  104. package/lib/src/utils/index.js +1 -1
  105. package/lib/src/version.d.ts +1 -1
  106. package/lib/src/version.js +1 -1
  107. package/package.json +5 -5
@@ -1,7 +1,22 @@
1
1
  import { ApFormItemSlots } from '../../interface';
2
2
  import { ApFormItemDateRangeProps } from '../interface';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
- import { ApFieldDateRangeProps } from '../../..';
3
+ import { ComponentInternalInstance, CSSProperties, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, VNode, RendererNode, RendererElement, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
4
+ import { FieldMode, ApFieldDateRangeProps } from '../../..';
5
+ import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
6
+ import { FocusEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
7
+ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
8
+ import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicker';
9
+ import { Variant } from '@aplus-frontend/antdv/es/config-provider/context';
10
+ import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
11
+ import { Dayjs } from 'dayjs';
12
+ import { EventValue, DisabledTimes, RangeValue, CustomFormat, PresetDate, PanelMode, PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
13
+ import { RangeDateRender, RangeType, RangeInfo } from '@aplus-frontend/antdv/es/vc-picker/RangePicker';
14
+ import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
15
+ import { LiteralUnion } from '../../../type';
16
+ import { ApFormatPresetType } from '../../../ap-field/date/interface';
17
+ import { ZoneAlias } from '@aplus-frontend/utils';
18
+ import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
19
+ import { OnCleanup } from '@vue/reactivity';
5
20
  declare function __VLS_template(): {
6
21
  attrs: Partial<{}>;
7
22
  slots: Readonly<{
@@ -27,11 +42,806 @@ declare function __VLS_template(): {
27
42
  separator?: any;
28
43
  clearIcon?: any;
29
44
  } & Omit<ApFormItemSlots, "default">;
30
- refs: {};
45
+ refs: {
46
+ dateRangeRef: ({
47
+ $: ComponentInternalInstance;
48
+ $data: {};
49
+ $props: {
50
+ readonly mode?: FieldMode | undefined;
51
+ readonly class?: unknown;
52
+ readonly style?: unknown;
53
+ readonly size?: ButtonSize;
54
+ readonly onBlur?: FocusEventHandler | undefined;
55
+ readonly onClick?: MouseEventHandler | undefined;
56
+ readonly onContextmenu?: MouseEventHandler | undefined;
57
+ readonly onFocus?: FocusEventHandler | undefined;
58
+ readonly onKeydown?: ((event: KeyboardEvent, preventDefault: () => void) => void) | undefined;
59
+ readonly onMousedown?: ( MouseEventHandler & ((e: MouseEvent) => void)) | undefined;
60
+ readonly onMouseenter?: MouseEventHandler | undefined;
61
+ readonly onMouseleave?: MouseEventHandler | undefined;
62
+ readonly onMouseup?: MouseEventHandler | undefined;
63
+ readonly open?: boolean | undefined;
64
+ readonly separator?: VueNode;
65
+ readonly disabled?: boolean | [boolean, boolean] | undefined;
66
+ readonly direction?: "ltr" | "rtl" | undefined;
67
+ readonly placeholder?: [string, string] | undefined;
68
+ readonly id?: string | undefined;
69
+ readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
70
+ readonly prefixCls?: string | undefined;
71
+ readonly locale?: PickerLocale | undefined;
72
+ readonly variant?: Variant | undefined;
73
+ readonly name?: string | undefined;
74
+ readonly autofocus?: boolean | undefined;
75
+ readonly autocomplete?: string | undefined;
76
+ readonly bordered?: boolean | undefined;
77
+ readonly clearIcon?: VueNode;
78
+ readonly allowClear?: boolean | undefined;
79
+ readonly suffixIcon?: VueNode;
80
+ readonly transitionName?: string | undefined;
81
+ readonly dropdownClassName?: string | undefined;
82
+ readonly tabindex?: number | undefined;
83
+ readonly defaultOpen?: boolean | undefined;
84
+ readonly dropdownAlign?: AlignType | undefined;
85
+ readonly onOpenChange?: ((open: boolean) => void) | undefined;
86
+ readonly role?: string | undefined;
87
+ readonly popupStyle?: CSSProperties | undefined;
88
+ readonly picker?: "time" | "month" | "year" | "date" | "week" | "quarter" | undefined;
89
+ readonly defaultPickerValue?: ([ Dayjs, Dayjs] & [ EventValue<Dayjs>, EventValue<Dayjs>]) | ([ Dayjs, Dayjs] & [ EventValue<string>, EventValue<string>]) | undefined;
90
+ readonly disabledDate?: ((date: Dayjs) => boolean) | undefined;
91
+ readonly showWeek?: boolean | undefined;
92
+ readonly dateRender?: RangeDateRender<Dayjs> | undefined;
93
+ readonly monthCellRender?: MonthCellRender<Dayjs> | undefined;
94
+ readonly inputReadOnly?: boolean | undefined;
95
+ readonly panelRender?: (((originPanel: VueNode) => VueNode) & ((originPanel: VueNode) => VueNode)) | undefined;
96
+ readonly inputRender?: ((props: HTMLAttributes) => VueNode) | undefined;
97
+ readonly disabledTime?: ((date: EventValue<Dayjs>, type: RangeType) => DisabledTimes) | undefined;
98
+ readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
99
+ readonly allowEmpty?: [boolean, boolean] | undefined;
100
+ readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
101
+ readonly activePickerIndex?: 0 | 1 | undefined;
102
+ readonly valueFormat?: string | undefined;
103
+ readonly emptyText?: string | undefined;
104
+ readonly value?: ( RangeValue<number> | null) | undefined;
105
+ readonly defaultValue?: RangeValue<number> | undefined;
106
+ readonly 'onUpdate:value'?: (((ts: RangeValue<number> | null) => void) & ((...args: any[]) => any)) | undefined;
107
+ readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
108
+ readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
109
+ readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
110
+ readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
111
+ readonly timezone?: ( ZoneAlias | {
112
+ label?: string;
113
+ value: ZoneAlias;
114
+ }[]) | undefined;
115
+ readonly readModeSeparator?: any;
116
+ readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
117
+ thisWeek?: boolean;
118
+ lastWeek?: boolean;
119
+ last7Days?: boolean;
120
+ last30Days?: boolean;
121
+ last90Days?: boolean;
122
+ thisMonth?: boolean;
123
+ lastMonth?: boolean;
124
+ thisQuarter?: boolean;
125
+ lastQuarter?: boolean;
126
+ thisYear?: boolean;
127
+ lastYear?: boolean;
128
+ } | undefined;
129
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
130
+ $attrs: {
131
+ [x: string]: unknown;
132
+ };
133
+ $refs: {
134
+ [x: string]: unknown;
135
+ } & {
136
+ rangePickerRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
137
+ allowEmpty: {
138
+ type: PropType<[boolean, boolean]>;
139
+ default: [boolean, boolean];
140
+ };
141
+ dateRender: {
142
+ type: PropType<RangeDateRender<Dayjs>>;
143
+ default: RangeDateRender<Dayjs>;
144
+ };
145
+ defaultPickerValue: {
146
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
147
+ default: [ Dayjs, Dayjs] | [string, string];
148
+ };
149
+ defaultValue: {
150
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
151
+ default: [ Dayjs, Dayjs] | [string, string];
152
+ };
153
+ value: {
154
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
155
+ default: [ Dayjs, Dayjs] | [string, string];
156
+ };
157
+ presets: {
158
+ type: PropType< PresetDate< Dayjs[]>[]>;
159
+ default: PresetDate< Dayjs[]>[];
160
+ };
161
+ disabledTime: {
162
+ type: PropType<(date: Dayjs, type: RangeType) => DisabledTimes>;
163
+ default: (date: Dayjs, type: RangeType) => DisabledTimes;
164
+ };
165
+ disabled: {
166
+ type: PropType<boolean | [boolean, boolean]>;
167
+ default: boolean | [boolean, boolean];
168
+ };
169
+ renderExtraFooter: {
170
+ type: PropType<() => VueNode>;
171
+ default: () => VueNode;
172
+ };
173
+ separator: {
174
+ type: StringConstructor;
175
+ };
176
+ showTime: {
177
+ type: PropType<boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
178
+ defaultValue?: Dayjs[];
179
+ })>;
180
+ default: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
181
+ defaultValue?: Dayjs[];
182
+ });
183
+ };
184
+ ranges: {
185
+ type: PropType<Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>>;
186
+ default: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
187
+ };
188
+ placeholder: {
189
+ type: PropType<string[]>;
190
+ default: string[];
191
+ };
192
+ mode: {
193
+ type: PropType<[ PanelMode, PanelMode]>;
194
+ default: [ PanelMode, PanelMode];
195
+ };
196
+ onChange: {
197
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void>;
198
+ default: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
199
+ };
200
+ 'onUpdate:value': {
201
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string]) => void>;
202
+ default: (value: [ Dayjs, Dayjs] | [string, string]) => void;
203
+ };
204
+ onCalendarChange: {
205
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void>;
206
+ default: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
207
+ };
208
+ onPanelChange: {
209
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void>;
210
+ default: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
211
+ };
212
+ onOk: {
213
+ type: PropType<(dates: [ Dayjs, Dayjs] | [string, string]) => void>;
214
+ default: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
215
+ };
216
+ id: StringConstructor;
217
+ dropdownClassName: StringConstructor;
218
+ popupClassName: StringConstructor;
219
+ popupStyle: {
220
+ type: PropType<CSSProperties>;
221
+ default: CSSProperties;
222
+ };
223
+ transitionName: StringConstructor;
224
+ allowClear: {
225
+ type: BooleanConstructor;
226
+ default: boolean;
227
+ };
228
+ autofocus: {
229
+ type: BooleanConstructor;
230
+ default: boolean;
231
+ };
232
+ tabindex: NumberConstructor;
233
+ open: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ defaultOpen: {
238
+ type: BooleanConstructor;
239
+ default: boolean;
240
+ };
241
+ inputReadOnly: {
242
+ type: BooleanConstructor;
243
+ default: boolean;
244
+ };
245
+ format: {
246
+ type: PropType<string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]>;
247
+ default: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
248
+ };
249
+ getPopupContainer: {
250
+ type: PropType<(node: HTMLElement) => HTMLElement>;
251
+ default: (node: HTMLElement) => HTMLElement;
252
+ };
253
+ panelRender: {
254
+ type: PropType<(originPanel: VueNode) => VueNode>;
255
+ default: (originPanel: VueNode) => VueNode;
256
+ };
257
+ onOpenChange: {
258
+ type: PropType<(open: boolean) => void>;
259
+ default: (open: boolean) => void;
260
+ };
261
+ 'onUpdate:open': {
262
+ type: PropType<(open: boolean) => void>;
263
+ default: (open: boolean) => void;
264
+ };
265
+ onFocus: {
266
+ type: PropType<FocusEventHandler>;
267
+ default: FocusEventHandler;
268
+ };
269
+ onBlur: {
270
+ type: PropType<FocusEventHandler>;
271
+ default: FocusEventHandler;
272
+ };
273
+ onMousedown: {
274
+ type: PropType<MouseEventHandler>;
275
+ default: MouseEventHandler;
276
+ };
277
+ onMouseup: {
278
+ type: PropType<MouseEventHandler>;
279
+ default: MouseEventHandler;
280
+ };
281
+ onMouseenter: {
282
+ type: PropType<MouseEventHandler>;
283
+ default: MouseEventHandler;
284
+ };
285
+ onMouseleave: {
286
+ type: PropType<MouseEventHandler>;
287
+ default: MouseEventHandler;
288
+ };
289
+ onClick: {
290
+ type: PropType<MouseEventHandler>;
291
+ default: MouseEventHandler;
292
+ };
293
+ onContextmenu: {
294
+ type: PropType<MouseEventHandler>;
295
+ default: MouseEventHandler;
296
+ };
297
+ onKeydown: {
298
+ type: PropType<(event: KeyboardEvent, preventDefault: () => void) => void>;
299
+ default: (event: KeyboardEvent, preventDefault: () => void) => void;
300
+ };
301
+ role: StringConstructor;
302
+ name: StringConstructor;
303
+ autocomplete: StringConstructor;
304
+ direction: {
305
+ type: PropType<"rtl" | "ltr">;
306
+ default: "rtl" | "ltr";
307
+ };
308
+ showToday: {
309
+ type: BooleanConstructor;
310
+ default: boolean;
311
+ };
312
+ locale: {
313
+ type: PropType<PickerLocale>;
314
+ default: PickerLocale;
315
+ };
316
+ size: {
317
+ type: PropType<SizeType>;
318
+ default: SizeType;
319
+ };
320
+ bordered: {
321
+ type: BooleanConstructor;
322
+ default: boolean;
323
+ };
324
+ variant: {
325
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
326
+ default: "filled" | "outlined" | "borderless" | "underlined";
327
+ };
328
+ disabledDate: {
329
+ type: PropType<(date: Dayjs) => boolean>;
330
+ default: (date: Dayjs) => boolean;
331
+ };
332
+ picker: {
333
+ type: PropType<PickerMode>;
334
+ default: PickerMode;
335
+ };
336
+ valueFormat: StringConstructor;
337
+ placement: {
338
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
339
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
340
+ };
341
+ status: {
342
+ type: PropType<"" | "error" | "warning">;
343
+ default: "" | "error" | "warning";
344
+ };
345
+ disabledHours: {
346
+ type: PropType<() => number[]>;
347
+ default: () => number[];
348
+ };
349
+ disabledMinutes: {
350
+ type: PropType<(hour: number) => number[]>;
351
+ default: (hour: number) => number[];
352
+ };
353
+ disabledSeconds: {
354
+ type: PropType<(hour: number, minute: number) => number[]>;
355
+ default: (hour: number, minute: number) => number[];
356
+ };
357
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
358
+ size: SizeType;
359
+ value: [ Dayjs, Dayjs] | [string, string];
360
+ mode: [ PanelMode, PanelMode];
361
+ onMouseenter: MouseEventHandler;
362
+ onMouseleave: MouseEventHandler;
363
+ onClick: MouseEventHandler;
364
+ onFocus: FocusEventHandler;
365
+ onBlur: FocusEventHandler;
366
+ onChange: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
367
+ onKeydown: (event: KeyboardEvent, preventDefault: () => void) => void;
368
+ onContextmenu: MouseEventHandler;
369
+ onMousedown: MouseEventHandler;
370
+ onMouseup: MouseEventHandler;
371
+ open: boolean;
372
+ direction: "rtl" | "ltr";
373
+ disabled: boolean | [boolean, boolean];
374
+ disabledDate: (date: Dayjs) => boolean;
375
+ picker: PickerMode;
376
+ onPanelChange: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
377
+ locale: PickerLocale;
378
+ format: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
379
+ disabledHours: () => number[];
380
+ disabledMinutes: (hour: number) => number[];
381
+ disabledSeconds: (hour: number, minute: number) => number[];
382
+ disabledTime: (date: Dayjs, type: RangeType) => DisabledTimes;
383
+ autofocus: boolean;
384
+ getPopupContainer: (node: HTMLElement) => HTMLElement;
385
+ variant: "filled" | "outlined" | "borderless" | "underlined";
386
+ placeholder: string[];
387
+ bordered: boolean;
388
+ 'onUpdate:value': (value: [ Dayjs, Dayjs] | [string, string]) => void;
389
+ status: "" | "error" | "warning";
390
+ defaultValue: [ Dayjs, Dayjs] | [string, string];
391
+ allowClear: boolean;
392
+ defaultOpen: boolean;
393
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
394
+ popupStyle: CSSProperties;
395
+ onOpenChange: (open: boolean) => void;
396
+ 'onUpdate:open': (open: boolean) => void;
397
+ defaultPickerValue: [ Dayjs, Dayjs] | [string, string];
398
+ dateRender: RangeDateRender<Dayjs>;
399
+ renderExtraFooter: () => VueNode;
400
+ onOk: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
401
+ inputReadOnly: boolean;
402
+ presets: PresetDate< Dayjs[]>[];
403
+ panelRender: (originPanel: VueNode) => VueNode;
404
+ showToday: boolean;
405
+ showTime: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
406
+ defaultValue?: Dayjs[];
407
+ });
408
+ ranges: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
409
+ allowEmpty: [boolean, boolean];
410
+ onCalendarChange: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
411
+ }, true, {}, CustomSlotsType<{
412
+ suffixIcon?: any;
413
+ prevIcon?: any;
414
+ nextIcon?: any;
415
+ superPrevIcon?: any;
416
+ superNextIcon?: any;
417
+ dateRender?: any;
418
+ renderExtraFooter?: any;
419
+ default?: any;
420
+ separator?: any;
421
+ clearIcon?: any;
422
+ }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
423
+ P: {};
424
+ B: {};
425
+ D: {};
426
+ C: {};
427
+ M: {};
428
+ Defaults: {};
429
+ }, Readonly< ExtractPropTypes<{
430
+ allowEmpty: {
431
+ type: PropType<[boolean, boolean]>;
432
+ default: [boolean, boolean];
433
+ };
434
+ dateRender: {
435
+ type: PropType<RangeDateRender<Dayjs>>;
436
+ default: RangeDateRender<Dayjs>;
437
+ };
438
+ defaultPickerValue: {
439
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
440
+ default: [ Dayjs, Dayjs] | [string, string];
441
+ };
442
+ defaultValue: {
443
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
444
+ default: [ Dayjs, Dayjs] | [string, string];
445
+ };
446
+ value: {
447
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
448
+ default: [ Dayjs, Dayjs] | [string, string];
449
+ };
450
+ presets: {
451
+ type: PropType< PresetDate< Dayjs[]>[]>;
452
+ default: PresetDate< Dayjs[]>[];
453
+ };
454
+ disabledTime: {
455
+ type: PropType<(date: Dayjs, type: RangeType) => DisabledTimes>;
456
+ default: (date: Dayjs, type: RangeType) => DisabledTimes;
457
+ };
458
+ disabled: {
459
+ type: PropType<boolean | [boolean, boolean]>;
460
+ default: boolean | [boolean, boolean];
461
+ };
462
+ renderExtraFooter: {
463
+ type: PropType<() => VueNode>;
464
+ default: () => VueNode;
465
+ };
466
+ separator: {
467
+ type: StringConstructor;
468
+ };
469
+ showTime: {
470
+ type: PropType<boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
471
+ defaultValue?: Dayjs[];
472
+ })>;
473
+ default: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
474
+ defaultValue?: Dayjs[];
475
+ });
476
+ };
477
+ ranges: {
478
+ type: PropType<Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>>;
479
+ default: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
480
+ };
481
+ placeholder: {
482
+ type: PropType<string[]>;
483
+ default: string[];
484
+ };
485
+ mode: {
486
+ type: PropType<[ PanelMode, PanelMode]>;
487
+ default: [ PanelMode, PanelMode];
488
+ };
489
+ onChange: {
490
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void>;
491
+ default: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
492
+ };
493
+ 'onUpdate:value': {
494
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string]) => void>;
495
+ default: (value: [ Dayjs, Dayjs] | [string, string]) => void;
496
+ };
497
+ onCalendarChange: {
498
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void>;
499
+ default: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
500
+ };
501
+ onPanelChange: {
502
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void>;
503
+ default: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
504
+ };
505
+ onOk: {
506
+ type: PropType<(dates: [ Dayjs, Dayjs] | [string, string]) => void>;
507
+ default: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
508
+ };
509
+ id: StringConstructor;
510
+ dropdownClassName: StringConstructor;
511
+ popupClassName: StringConstructor;
512
+ popupStyle: {
513
+ type: PropType<CSSProperties>;
514
+ default: CSSProperties;
515
+ };
516
+ transitionName: StringConstructor;
517
+ allowClear: {
518
+ type: BooleanConstructor;
519
+ default: boolean;
520
+ };
521
+ autofocus: {
522
+ type: BooleanConstructor;
523
+ default: boolean;
524
+ };
525
+ tabindex: NumberConstructor;
526
+ open: {
527
+ type: BooleanConstructor;
528
+ default: boolean;
529
+ };
530
+ defaultOpen: {
531
+ type: BooleanConstructor;
532
+ default: boolean;
533
+ };
534
+ inputReadOnly: {
535
+ type: BooleanConstructor;
536
+ default: boolean;
537
+ };
538
+ format: {
539
+ type: PropType<string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]>;
540
+ default: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
541
+ };
542
+ getPopupContainer: {
543
+ type: PropType<(node: HTMLElement) => HTMLElement>;
544
+ default: (node: HTMLElement) => HTMLElement;
545
+ };
546
+ panelRender: {
547
+ type: PropType<(originPanel: VueNode) => VueNode>;
548
+ default: (originPanel: VueNode) => VueNode;
549
+ };
550
+ onOpenChange: {
551
+ type: PropType<(open: boolean) => void>;
552
+ default: (open: boolean) => void;
553
+ };
554
+ 'onUpdate:open': {
555
+ type: PropType<(open: boolean) => void>;
556
+ default: (open: boolean) => void;
557
+ };
558
+ onFocus: {
559
+ type: PropType<FocusEventHandler>;
560
+ default: FocusEventHandler;
561
+ };
562
+ onBlur: {
563
+ type: PropType<FocusEventHandler>;
564
+ default: FocusEventHandler;
565
+ };
566
+ onMousedown: {
567
+ type: PropType<MouseEventHandler>;
568
+ default: MouseEventHandler;
569
+ };
570
+ onMouseup: {
571
+ type: PropType<MouseEventHandler>;
572
+ default: MouseEventHandler;
573
+ };
574
+ onMouseenter: {
575
+ type: PropType<MouseEventHandler>;
576
+ default: MouseEventHandler;
577
+ };
578
+ onMouseleave: {
579
+ type: PropType<MouseEventHandler>;
580
+ default: MouseEventHandler;
581
+ };
582
+ onClick: {
583
+ type: PropType<MouseEventHandler>;
584
+ default: MouseEventHandler;
585
+ };
586
+ onContextmenu: {
587
+ type: PropType<MouseEventHandler>;
588
+ default: MouseEventHandler;
589
+ };
590
+ onKeydown: {
591
+ type: PropType<(event: KeyboardEvent, preventDefault: () => void) => void>;
592
+ default: (event: KeyboardEvent, preventDefault: () => void) => void;
593
+ };
594
+ role: StringConstructor;
595
+ name: StringConstructor;
596
+ autocomplete: StringConstructor;
597
+ direction: {
598
+ type: PropType<"rtl" | "ltr">;
599
+ default: "rtl" | "ltr";
600
+ };
601
+ showToday: {
602
+ type: BooleanConstructor;
603
+ default: boolean;
604
+ };
605
+ locale: {
606
+ type: PropType<PickerLocale>;
607
+ default: PickerLocale;
608
+ };
609
+ size: {
610
+ type: PropType<SizeType>;
611
+ default: SizeType;
612
+ };
613
+ bordered: {
614
+ type: BooleanConstructor;
615
+ default: boolean;
616
+ };
617
+ variant: {
618
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
619
+ default: "filled" | "outlined" | "borderless" | "underlined";
620
+ };
621
+ disabledDate: {
622
+ type: PropType<(date: Dayjs) => boolean>;
623
+ default: (date: Dayjs) => boolean;
624
+ };
625
+ picker: {
626
+ type: PropType<PickerMode>;
627
+ default: PickerMode;
628
+ };
629
+ valueFormat: StringConstructor;
630
+ placement: {
631
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
632
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
633
+ };
634
+ status: {
635
+ type: PropType<"" | "error" | "warning">;
636
+ default: "" | "error" | "warning";
637
+ };
638
+ disabledHours: {
639
+ type: PropType<() => number[]>;
640
+ default: () => number[];
641
+ };
642
+ disabledMinutes: {
643
+ type: PropType<(hour: number) => number[]>;
644
+ default: (hour: number) => number[];
645
+ };
646
+ disabledSeconds: {
647
+ type: PropType<(hour: number, minute: number) => number[]>;
648
+ default: (hour: number, minute: number) => number[];
649
+ };
650
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
651
+ size: SizeType;
652
+ value: [ Dayjs, Dayjs] | [string, string];
653
+ mode: [ PanelMode, PanelMode];
654
+ onMouseenter: MouseEventHandler;
655
+ onMouseleave: MouseEventHandler;
656
+ onClick: MouseEventHandler;
657
+ onFocus: FocusEventHandler;
658
+ onBlur: FocusEventHandler;
659
+ onChange: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
660
+ onKeydown: (event: KeyboardEvent, preventDefault: () => void) => void;
661
+ onContextmenu: MouseEventHandler;
662
+ onMousedown: MouseEventHandler;
663
+ onMouseup: MouseEventHandler;
664
+ open: boolean;
665
+ direction: "rtl" | "ltr";
666
+ disabled: boolean | [boolean, boolean];
667
+ disabledDate: (date: Dayjs) => boolean;
668
+ picker: PickerMode;
669
+ onPanelChange: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
670
+ locale: PickerLocale;
671
+ format: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
672
+ disabledHours: () => number[];
673
+ disabledMinutes: (hour: number) => number[];
674
+ disabledSeconds: (hour: number, minute: number) => number[];
675
+ disabledTime: (date: Dayjs, type: RangeType) => DisabledTimes;
676
+ autofocus: boolean;
677
+ getPopupContainer: (node: HTMLElement) => HTMLElement;
678
+ variant: "filled" | "outlined" | "borderless" | "underlined";
679
+ placeholder: string[];
680
+ bordered: boolean;
681
+ 'onUpdate:value': (value: [ Dayjs, Dayjs] | [string, string]) => void;
682
+ status: "" | "error" | "warning";
683
+ defaultValue: [ Dayjs, Dayjs] | [string, string];
684
+ allowClear: boolean;
685
+ defaultOpen: boolean;
686
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
687
+ popupStyle: CSSProperties;
688
+ onOpenChange: (open: boolean) => void;
689
+ 'onUpdate:open': (open: boolean) => void;
690
+ defaultPickerValue: [ Dayjs, Dayjs] | [string, string];
691
+ dateRender: RangeDateRender<Dayjs>;
692
+ renderExtraFooter: () => VueNode;
693
+ onOk: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
694
+ inputReadOnly: boolean;
695
+ presets: PresetDate< Dayjs[]>[];
696
+ panelRender: (originPanel: VueNode) => VueNode;
697
+ showToday: boolean;
698
+ showTime: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
699
+ defaultValue?: Dayjs[];
700
+ });
701
+ ranges: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
702
+ allowEmpty: [boolean, boolean];
703
+ onCalendarChange: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
704
+ }> | null;
705
+ };
706
+ $slots: Readonly<{
707
+ [name: string]: Slot<any> | undefined;
708
+ }>;
709
+ $root: ComponentPublicInstance | null;
710
+ $parent: ComponentPublicInstance | null;
711
+ $host: Element | null;
712
+ $emit: (event: "update:value", ...args: any[]) => void;
713
+ $el: any;
714
+ $options: ComponentOptionsBase<Readonly< ApFieldDateRangeProps> & Readonly<{
715
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
716
+ }>, {
717
+ blur: () => void;
718
+ focus: () => void;
719
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
720
+ "update:value": (...args: any[]) => void;
721
+ }, string, {
722
+ mode: FieldMode;
723
+ open: boolean;
724
+ separator: string | number | boolean | void | VNode<RendererNode, RendererElement, {
725
+ [key: string]: any;
726
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
727
+ [key: string]: any;
728
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
729
+ [key: string]: any;
730
+ }> | null;
731
+ disabled: boolean | [boolean, boolean];
732
+ autofocus: boolean;
733
+ bordered: boolean;
734
+ clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
735
+ [key: string]: any;
736
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
737
+ [key: string]: any;
738
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
739
+ [key: string]: any;
740
+ }> | null;
741
+ allowClear: boolean;
742
+ suffixIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
743
+ [key: string]: any;
744
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
745
+ [key: string]: any;
746
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
747
+ [key: string]: any;
748
+ }> | null;
749
+ defaultOpen: boolean;
750
+ emptyText: string;
751
+ inputReadOnly: boolean;
752
+ format: LiteralUnion<ApFormatPresetType, string>;
753
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
754
+ beforeCreate?: (() => void) | (() => void)[];
755
+ created?: (() => void) | (() => void)[];
756
+ beforeMount?: (() => void) | (() => void)[];
757
+ mounted?: (() => void) | (() => void)[];
758
+ beforeUpdate?: (() => void) | (() => void)[];
759
+ updated?: (() => void) | (() => void)[];
760
+ activated?: (() => void) | (() => void)[];
761
+ deactivated?: (() => void) | (() => void)[];
762
+ beforeDestroy?: (() => void) | (() => void)[];
763
+ beforeUnmount?: (() => void) | (() => void)[];
764
+ destroyed?: (() => void) | (() => void)[];
765
+ unmounted?: (() => void) | (() => void)[];
766
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
767
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
768
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
769
+ };
770
+ $forceUpdate: () => void;
771
+ $nextTick: nextTick;
772
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
773
+ } & Readonly<{
774
+ mode: FieldMode;
775
+ open: boolean;
776
+ separator: string | number | boolean | void | VNode<RendererNode, RendererElement, {
777
+ [key: string]: any;
778
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
779
+ [key: string]: any;
780
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
781
+ [key: string]: any;
782
+ }> | null;
783
+ disabled: boolean | [boolean, boolean];
784
+ autofocus: boolean;
785
+ bordered: boolean;
786
+ clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
787
+ [key: string]: any;
788
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
789
+ [key: string]: any;
790
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
791
+ [key: string]: any;
792
+ }> | null;
793
+ allowClear: boolean;
794
+ suffixIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
795
+ [key: string]: any;
796
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
797
+ [key: string]: any;
798
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
799
+ [key: string]: any;
800
+ }> | null;
801
+ defaultOpen: boolean;
802
+ emptyText: string;
803
+ inputReadOnly: boolean;
804
+ format: LiteralUnion<ApFormatPresetType, string>;
805
+ }> & Omit<Readonly< ApFieldDateRangeProps> & Readonly<{
806
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
807
+ }>, "blur" | "focus" | ("mode" | "open" | "separator" | "disabled" | "autofocus" | "bordered" | "clearIcon" | "allowClear" | "suffixIcon" | "defaultOpen" | "emptyText" | "inputReadOnly" | "format")> & ShallowUnwrapRef<{
808
+ blur: () => void;
809
+ focus: () => void;
810
+ }> & {} & ComponentCustomProperties & {} & {
811
+ $slots: Readonly<{
812
+ suffixIcon?: any;
813
+ prevIcon?: any;
814
+ nextIcon?: any;
815
+ superPrevIcon?: any;
816
+ superNextIcon?: any;
817
+ dateRender?: any;
818
+ renderExtraFooter?: any;
819
+ default?: any;
820
+ separator?: any;
821
+ readModeSeparator?: any;
822
+ clearIcon?: any;
823
+ }> & {
824
+ suffixIcon?: any;
825
+ prevIcon?: any;
826
+ nextIcon?: any;
827
+ superPrevIcon?: any;
828
+ superNextIcon?: any;
829
+ dateRender?: any;
830
+ renderExtraFooter?: any;
831
+ default?: any;
832
+ separator?: any;
833
+ readModeSeparator?: any;
834
+ clearIcon?: any;
835
+ };
836
+ }) | null;
837
+ };
31
838
  rootEl: any;
32
839
  };
33
840
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
- declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateRangeProps> & Readonly<{}>, {
841
+ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
842
+ focus: () => void | undefined;
843
+ blur: () => void | undefined;
844
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateRangeProps> & Readonly<{}>, {
35
845
  disabled: boolean;
36
846
  required: boolean;
37
847
  colon: boolean;
@@ -39,7 +849,799 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {}, {},
39
849
  autoLink: boolean;
40
850
  validateFirst: boolean;
41
851
  field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
42
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
852
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
853
+ dateRangeRef: ({
854
+ $: ComponentInternalInstance;
855
+ $data: {};
856
+ $props: {
857
+ readonly mode?: FieldMode | undefined;
858
+ readonly class?: unknown;
859
+ readonly style?: unknown;
860
+ readonly size?: ButtonSize;
861
+ readonly onBlur?: FocusEventHandler | undefined;
862
+ readonly onClick?: MouseEventHandler | undefined;
863
+ readonly onContextmenu?: MouseEventHandler | undefined;
864
+ readonly onFocus?: FocusEventHandler | undefined;
865
+ readonly onKeydown?: ((event: KeyboardEvent, preventDefault: () => void) => void) | undefined;
866
+ readonly onMousedown?: ( MouseEventHandler & ((e: MouseEvent) => void)) | undefined;
867
+ readonly onMouseenter?: MouseEventHandler | undefined;
868
+ readonly onMouseleave?: MouseEventHandler | undefined;
869
+ readonly onMouseup?: MouseEventHandler | undefined;
870
+ readonly open?: boolean | undefined;
871
+ readonly separator?: VueNode;
872
+ readonly disabled?: boolean | [boolean, boolean] | undefined;
873
+ readonly direction?: "ltr" | "rtl" | undefined;
874
+ readonly placeholder?: [string, string] | undefined;
875
+ readonly id?: string | undefined;
876
+ readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
877
+ readonly prefixCls?: string | undefined;
878
+ readonly locale?: PickerLocale | undefined;
879
+ readonly variant?: Variant | undefined;
880
+ readonly name?: string | undefined;
881
+ readonly autofocus?: boolean | undefined;
882
+ readonly autocomplete?: string | undefined;
883
+ readonly bordered?: boolean | undefined;
884
+ readonly clearIcon?: VueNode;
885
+ readonly allowClear?: boolean | undefined;
886
+ readonly suffixIcon?: VueNode;
887
+ readonly transitionName?: string | undefined;
888
+ readonly dropdownClassName?: string | undefined;
889
+ readonly tabindex?: number | undefined;
890
+ readonly defaultOpen?: boolean | undefined;
891
+ readonly dropdownAlign?: AlignType | undefined;
892
+ readonly onOpenChange?: ((open: boolean) => void) | undefined;
893
+ readonly role?: string | undefined;
894
+ readonly popupStyle?: CSSProperties | undefined;
895
+ readonly picker?: "time" | "month" | "year" | "date" | "week" | "quarter" | undefined;
896
+ readonly defaultPickerValue?: ([ Dayjs, Dayjs] & [ EventValue<Dayjs>, EventValue<Dayjs>]) | ([ Dayjs, Dayjs] & [ EventValue<string>, EventValue<string>]) | undefined;
897
+ readonly disabledDate?: ((date: Dayjs) => boolean) | undefined;
898
+ readonly showWeek?: boolean | undefined;
899
+ readonly dateRender?: RangeDateRender<Dayjs> | undefined;
900
+ readonly monthCellRender?: MonthCellRender<Dayjs> | undefined;
901
+ readonly inputReadOnly?: boolean | undefined;
902
+ readonly panelRender?: (((originPanel: VueNode) => VueNode) & ((originPanel: VueNode) => VueNode)) | undefined;
903
+ readonly inputRender?: ((props: HTMLAttributes) => VueNode) | undefined;
904
+ readonly disabledTime?: ((date: EventValue<Dayjs>, type: RangeType) => DisabledTimes) | undefined;
905
+ readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
906
+ readonly allowEmpty?: [boolean, boolean] | undefined;
907
+ readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
908
+ readonly activePickerIndex?: 0 | 1 | undefined;
909
+ readonly valueFormat?: string | undefined;
910
+ readonly emptyText?: string | undefined;
911
+ readonly value?: ( RangeValue<number> | null) | undefined;
912
+ readonly defaultValue?: RangeValue<number> | undefined;
913
+ readonly 'onUpdate:value'?: (((ts: RangeValue<number> | null) => void) & ((...args: any[]) => any)) | undefined;
914
+ readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
915
+ readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
916
+ readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
917
+ readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
918
+ readonly timezone?: ( ZoneAlias | {
919
+ label?: string;
920
+ value: ZoneAlias;
921
+ }[]) | undefined;
922
+ readonly readModeSeparator?: any;
923
+ readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
924
+ thisWeek?: boolean;
925
+ lastWeek?: boolean;
926
+ last7Days?: boolean;
927
+ last30Days?: boolean;
928
+ last90Days?: boolean;
929
+ thisMonth?: boolean;
930
+ lastMonth?: boolean;
931
+ thisQuarter?: boolean;
932
+ lastQuarter?: boolean;
933
+ thisYear?: boolean;
934
+ lastYear?: boolean;
935
+ } | undefined;
936
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
937
+ $attrs: {
938
+ [x: string]: unknown;
939
+ };
940
+ $refs: {
941
+ [x: string]: unknown;
942
+ } & {
943
+ rangePickerRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
944
+ allowEmpty: {
945
+ type: PropType<[boolean, boolean]>;
946
+ default: [boolean, boolean];
947
+ };
948
+ dateRender: {
949
+ type: PropType<RangeDateRender<Dayjs>>;
950
+ default: RangeDateRender<Dayjs>;
951
+ };
952
+ defaultPickerValue: {
953
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
954
+ default: [ Dayjs, Dayjs] | [string, string];
955
+ };
956
+ defaultValue: {
957
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
958
+ default: [ Dayjs, Dayjs] | [string, string];
959
+ };
960
+ value: {
961
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
962
+ default: [ Dayjs, Dayjs] | [string, string];
963
+ };
964
+ presets: {
965
+ type: PropType< PresetDate< Dayjs[]>[]>;
966
+ default: PresetDate< Dayjs[]>[];
967
+ };
968
+ disabledTime: {
969
+ type: PropType<(date: Dayjs, type: RangeType) => DisabledTimes>;
970
+ default: (date: Dayjs, type: RangeType) => DisabledTimes;
971
+ };
972
+ disabled: {
973
+ type: PropType<boolean | [boolean, boolean]>;
974
+ default: boolean | [boolean, boolean];
975
+ };
976
+ renderExtraFooter: {
977
+ type: PropType<() => VueNode>;
978
+ default: () => VueNode;
979
+ };
980
+ separator: {
981
+ type: StringConstructor;
982
+ };
983
+ showTime: {
984
+ type: PropType<boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
985
+ defaultValue?: Dayjs[];
986
+ })>;
987
+ default: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
988
+ defaultValue?: Dayjs[];
989
+ });
990
+ };
991
+ ranges: {
992
+ type: PropType<Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>>;
993
+ default: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
994
+ };
995
+ placeholder: {
996
+ type: PropType<string[]>;
997
+ default: string[];
998
+ };
999
+ mode: {
1000
+ type: PropType<[ PanelMode, PanelMode]>;
1001
+ default: [ PanelMode, PanelMode];
1002
+ };
1003
+ onChange: {
1004
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void>;
1005
+ default: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
1006
+ };
1007
+ 'onUpdate:value': {
1008
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string]) => void>;
1009
+ default: (value: [ Dayjs, Dayjs] | [string, string]) => void;
1010
+ };
1011
+ onCalendarChange: {
1012
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void>;
1013
+ default: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
1014
+ };
1015
+ onPanelChange: {
1016
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void>;
1017
+ default: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
1018
+ };
1019
+ onOk: {
1020
+ type: PropType<(dates: [ Dayjs, Dayjs] | [string, string]) => void>;
1021
+ default: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
1022
+ };
1023
+ id: StringConstructor;
1024
+ dropdownClassName: StringConstructor;
1025
+ popupClassName: StringConstructor;
1026
+ popupStyle: {
1027
+ type: PropType<CSSProperties>;
1028
+ default: CSSProperties;
1029
+ };
1030
+ transitionName: StringConstructor;
1031
+ allowClear: {
1032
+ type: BooleanConstructor;
1033
+ default: boolean;
1034
+ };
1035
+ autofocus: {
1036
+ type: BooleanConstructor;
1037
+ default: boolean;
1038
+ };
1039
+ tabindex: NumberConstructor;
1040
+ open: {
1041
+ type: BooleanConstructor;
1042
+ default: boolean;
1043
+ };
1044
+ defaultOpen: {
1045
+ type: BooleanConstructor;
1046
+ default: boolean;
1047
+ };
1048
+ inputReadOnly: {
1049
+ type: BooleanConstructor;
1050
+ default: boolean;
1051
+ };
1052
+ format: {
1053
+ type: PropType<string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]>;
1054
+ default: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
1055
+ };
1056
+ getPopupContainer: {
1057
+ type: PropType<(node: HTMLElement) => HTMLElement>;
1058
+ default: (node: HTMLElement) => HTMLElement;
1059
+ };
1060
+ panelRender: {
1061
+ type: PropType<(originPanel: VueNode) => VueNode>;
1062
+ default: (originPanel: VueNode) => VueNode;
1063
+ };
1064
+ onOpenChange: {
1065
+ type: PropType<(open: boolean) => void>;
1066
+ default: (open: boolean) => void;
1067
+ };
1068
+ 'onUpdate:open': {
1069
+ type: PropType<(open: boolean) => void>;
1070
+ default: (open: boolean) => void;
1071
+ };
1072
+ onFocus: {
1073
+ type: PropType<FocusEventHandler>;
1074
+ default: FocusEventHandler;
1075
+ };
1076
+ onBlur: {
1077
+ type: PropType<FocusEventHandler>;
1078
+ default: FocusEventHandler;
1079
+ };
1080
+ onMousedown: {
1081
+ type: PropType<MouseEventHandler>;
1082
+ default: MouseEventHandler;
1083
+ };
1084
+ onMouseup: {
1085
+ type: PropType<MouseEventHandler>;
1086
+ default: MouseEventHandler;
1087
+ };
1088
+ onMouseenter: {
1089
+ type: PropType<MouseEventHandler>;
1090
+ default: MouseEventHandler;
1091
+ };
1092
+ onMouseleave: {
1093
+ type: PropType<MouseEventHandler>;
1094
+ default: MouseEventHandler;
1095
+ };
1096
+ onClick: {
1097
+ type: PropType<MouseEventHandler>;
1098
+ default: MouseEventHandler;
1099
+ };
1100
+ onContextmenu: {
1101
+ type: PropType<MouseEventHandler>;
1102
+ default: MouseEventHandler;
1103
+ };
1104
+ onKeydown: {
1105
+ type: PropType<(event: KeyboardEvent, preventDefault: () => void) => void>;
1106
+ default: (event: KeyboardEvent, preventDefault: () => void) => void;
1107
+ };
1108
+ role: StringConstructor;
1109
+ name: StringConstructor;
1110
+ autocomplete: StringConstructor;
1111
+ direction: {
1112
+ type: PropType<"rtl" | "ltr">;
1113
+ default: "rtl" | "ltr";
1114
+ };
1115
+ showToday: {
1116
+ type: BooleanConstructor;
1117
+ default: boolean;
1118
+ };
1119
+ locale: {
1120
+ type: PropType<PickerLocale>;
1121
+ default: PickerLocale;
1122
+ };
1123
+ size: {
1124
+ type: PropType<SizeType>;
1125
+ default: SizeType;
1126
+ };
1127
+ bordered: {
1128
+ type: BooleanConstructor;
1129
+ default: boolean;
1130
+ };
1131
+ variant: {
1132
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1133
+ default: "filled" | "outlined" | "borderless" | "underlined";
1134
+ };
1135
+ disabledDate: {
1136
+ type: PropType<(date: Dayjs) => boolean>;
1137
+ default: (date: Dayjs) => boolean;
1138
+ };
1139
+ picker: {
1140
+ type: PropType<PickerMode>;
1141
+ default: PickerMode;
1142
+ };
1143
+ valueFormat: StringConstructor;
1144
+ placement: {
1145
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1146
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1147
+ };
1148
+ status: {
1149
+ type: PropType<"" | "error" | "warning">;
1150
+ default: "" | "error" | "warning";
1151
+ };
1152
+ disabledHours: {
1153
+ type: PropType<() => number[]>;
1154
+ default: () => number[];
1155
+ };
1156
+ disabledMinutes: {
1157
+ type: PropType<(hour: number) => number[]>;
1158
+ default: (hour: number) => number[];
1159
+ };
1160
+ disabledSeconds: {
1161
+ type: PropType<(hour: number, minute: number) => number[]>;
1162
+ default: (hour: number, minute: number) => number[];
1163
+ };
1164
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1165
+ size: SizeType;
1166
+ value: [ Dayjs, Dayjs] | [string, string];
1167
+ mode: [ PanelMode, PanelMode];
1168
+ onMouseenter: MouseEventHandler;
1169
+ onMouseleave: MouseEventHandler;
1170
+ onClick: MouseEventHandler;
1171
+ onFocus: FocusEventHandler;
1172
+ onBlur: FocusEventHandler;
1173
+ onChange: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
1174
+ onKeydown: (event: KeyboardEvent, preventDefault: () => void) => void;
1175
+ onContextmenu: MouseEventHandler;
1176
+ onMousedown: MouseEventHandler;
1177
+ onMouseup: MouseEventHandler;
1178
+ open: boolean;
1179
+ direction: "rtl" | "ltr";
1180
+ disabled: boolean | [boolean, boolean];
1181
+ disabledDate: (date: Dayjs) => boolean;
1182
+ picker: PickerMode;
1183
+ onPanelChange: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
1184
+ locale: PickerLocale;
1185
+ format: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
1186
+ disabledHours: () => number[];
1187
+ disabledMinutes: (hour: number) => number[];
1188
+ disabledSeconds: (hour: number, minute: number) => number[];
1189
+ disabledTime: (date: Dayjs, type: RangeType) => DisabledTimes;
1190
+ autofocus: boolean;
1191
+ getPopupContainer: (node: HTMLElement) => HTMLElement;
1192
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1193
+ placeholder: string[];
1194
+ bordered: boolean;
1195
+ 'onUpdate:value': (value: [ Dayjs, Dayjs] | [string, string]) => void;
1196
+ status: "" | "error" | "warning";
1197
+ defaultValue: [ Dayjs, Dayjs] | [string, string];
1198
+ allowClear: boolean;
1199
+ defaultOpen: boolean;
1200
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1201
+ popupStyle: CSSProperties;
1202
+ onOpenChange: (open: boolean) => void;
1203
+ 'onUpdate:open': (open: boolean) => void;
1204
+ defaultPickerValue: [ Dayjs, Dayjs] | [string, string];
1205
+ dateRender: RangeDateRender<Dayjs>;
1206
+ renderExtraFooter: () => VueNode;
1207
+ onOk: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
1208
+ inputReadOnly: boolean;
1209
+ presets: PresetDate< Dayjs[]>[];
1210
+ panelRender: (originPanel: VueNode) => VueNode;
1211
+ showToday: boolean;
1212
+ showTime: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
1213
+ defaultValue?: Dayjs[];
1214
+ });
1215
+ ranges: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
1216
+ allowEmpty: [boolean, boolean];
1217
+ onCalendarChange: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
1218
+ }, true, {}, CustomSlotsType<{
1219
+ suffixIcon?: any;
1220
+ prevIcon?: any;
1221
+ nextIcon?: any;
1222
+ superPrevIcon?: any;
1223
+ superNextIcon?: any;
1224
+ dateRender?: any;
1225
+ renderExtraFooter?: any;
1226
+ default?: any;
1227
+ separator?: any;
1228
+ clearIcon?: any;
1229
+ }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1230
+ P: {};
1231
+ B: {};
1232
+ D: {};
1233
+ C: {};
1234
+ M: {};
1235
+ Defaults: {};
1236
+ }, Readonly< ExtractPropTypes<{
1237
+ allowEmpty: {
1238
+ type: PropType<[boolean, boolean]>;
1239
+ default: [boolean, boolean];
1240
+ };
1241
+ dateRender: {
1242
+ type: PropType<RangeDateRender<Dayjs>>;
1243
+ default: RangeDateRender<Dayjs>;
1244
+ };
1245
+ defaultPickerValue: {
1246
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
1247
+ default: [ Dayjs, Dayjs] | [string, string];
1248
+ };
1249
+ defaultValue: {
1250
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
1251
+ default: [ Dayjs, Dayjs] | [string, string];
1252
+ };
1253
+ value: {
1254
+ type: PropType<[ Dayjs, Dayjs] | [string, string]>;
1255
+ default: [ Dayjs, Dayjs] | [string, string];
1256
+ };
1257
+ presets: {
1258
+ type: PropType< PresetDate< Dayjs[]>[]>;
1259
+ default: PresetDate< Dayjs[]>[];
1260
+ };
1261
+ disabledTime: {
1262
+ type: PropType<(date: Dayjs, type: RangeType) => DisabledTimes>;
1263
+ default: (date: Dayjs, type: RangeType) => DisabledTimes;
1264
+ };
1265
+ disabled: {
1266
+ type: PropType<boolean | [boolean, boolean]>;
1267
+ default: boolean | [boolean, boolean];
1268
+ };
1269
+ renderExtraFooter: {
1270
+ type: PropType<() => VueNode>;
1271
+ default: () => VueNode;
1272
+ };
1273
+ separator: {
1274
+ type: StringConstructor;
1275
+ };
1276
+ showTime: {
1277
+ type: PropType<boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
1278
+ defaultValue?: Dayjs[];
1279
+ })>;
1280
+ default: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
1281
+ defaultValue?: Dayjs[];
1282
+ });
1283
+ };
1284
+ ranges: {
1285
+ type: PropType<Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>>;
1286
+ default: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
1287
+ };
1288
+ placeholder: {
1289
+ type: PropType<string[]>;
1290
+ default: string[];
1291
+ };
1292
+ mode: {
1293
+ type: PropType<[ PanelMode, PanelMode]>;
1294
+ default: [ PanelMode, PanelMode];
1295
+ };
1296
+ onChange: {
1297
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void>;
1298
+ default: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
1299
+ };
1300
+ 'onUpdate:value': {
1301
+ type: PropType<(value: [ Dayjs, Dayjs] | [string, string]) => void>;
1302
+ default: (value: [ Dayjs, Dayjs] | [string, string]) => void;
1303
+ };
1304
+ onCalendarChange: {
1305
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void>;
1306
+ default: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
1307
+ };
1308
+ onPanelChange: {
1309
+ type: PropType<(values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void>;
1310
+ default: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
1311
+ };
1312
+ onOk: {
1313
+ type: PropType<(dates: [ Dayjs, Dayjs] | [string, string]) => void>;
1314
+ default: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
1315
+ };
1316
+ id: StringConstructor;
1317
+ dropdownClassName: StringConstructor;
1318
+ popupClassName: StringConstructor;
1319
+ popupStyle: {
1320
+ type: PropType<CSSProperties>;
1321
+ default: CSSProperties;
1322
+ };
1323
+ transitionName: StringConstructor;
1324
+ allowClear: {
1325
+ type: BooleanConstructor;
1326
+ default: boolean;
1327
+ };
1328
+ autofocus: {
1329
+ type: BooleanConstructor;
1330
+ default: boolean;
1331
+ };
1332
+ tabindex: NumberConstructor;
1333
+ open: {
1334
+ type: BooleanConstructor;
1335
+ default: boolean;
1336
+ };
1337
+ defaultOpen: {
1338
+ type: BooleanConstructor;
1339
+ default: boolean;
1340
+ };
1341
+ inputReadOnly: {
1342
+ type: BooleanConstructor;
1343
+ default: boolean;
1344
+ };
1345
+ format: {
1346
+ type: PropType<string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]>;
1347
+ default: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
1348
+ };
1349
+ getPopupContainer: {
1350
+ type: PropType<(node: HTMLElement) => HTMLElement>;
1351
+ default: (node: HTMLElement) => HTMLElement;
1352
+ };
1353
+ panelRender: {
1354
+ type: PropType<(originPanel: VueNode) => VueNode>;
1355
+ default: (originPanel: VueNode) => VueNode;
1356
+ };
1357
+ onOpenChange: {
1358
+ type: PropType<(open: boolean) => void>;
1359
+ default: (open: boolean) => void;
1360
+ };
1361
+ 'onUpdate:open': {
1362
+ type: PropType<(open: boolean) => void>;
1363
+ default: (open: boolean) => void;
1364
+ };
1365
+ onFocus: {
1366
+ type: PropType<FocusEventHandler>;
1367
+ default: FocusEventHandler;
1368
+ };
1369
+ onBlur: {
1370
+ type: PropType<FocusEventHandler>;
1371
+ default: FocusEventHandler;
1372
+ };
1373
+ onMousedown: {
1374
+ type: PropType<MouseEventHandler>;
1375
+ default: MouseEventHandler;
1376
+ };
1377
+ onMouseup: {
1378
+ type: PropType<MouseEventHandler>;
1379
+ default: MouseEventHandler;
1380
+ };
1381
+ onMouseenter: {
1382
+ type: PropType<MouseEventHandler>;
1383
+ default: MouseEventHandler;
1384
+ };
1385
+ onMouseleave: {
1386
+ type: PropType<MouseEventHandler>;
1387
+ default: MouseEventHandler;
1388
+ };
1389
+ onClick: {
1390
+ type: PropType<MouseEventHandler>;
1391
+ default: MouseEventHandler;
1392
+ };
1393
+ onContextmenu: {
1394
+ type: PropType<MouseEventHandler>;
1395
+ default: MouseEventHandler;
1396
+ };
1397
+ onKeydown: {
1398
+ type: PropType<(event: KeyboardEvent, preventDefault: () => void) => void>;
1399
+ default: (event: KeyboardEvent, preventDefault: () => void) => void;
1400
+ };
1401
+ role: StringConstructor;
1402
+ name: StringConstructor;
1403
+ autocomplete: StringConstructor;
1404
+ direction: {
1405
+ type: PropType<"rtl" | "ltr">;
1406
+ default: "rtl" | "ltr";
1407
+ };
1408
+ showToday: {
1409
+ type: BooleanConstructor;
1410
+ default: boolean;
1411
+ };
1412
+ locale: {
1413
+ type: PropType<PickerLocale>;
1414
+ default: PickerLocale;
1415
+ };
1416
+ size: {
1417
+ type: PropType<SizeType>;
1418
+ default: SizeType;
1419
+ };
1420
+ bordered: {
1421
+ type: BooleanConstructor;
1422
+ default: boolean;
1423
+ };
1424
+ variant: {
1425
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1426
+ default: "filled" | "outlined" | "borderless" | "underlined";
1427
+ };
1428
+ disabledDate: {
1429
+ type: PropType<(date: Dayjs) => boolean>;
1430
+ default: (date: Dayjs) => boolean;
1431
+ };
1432
+ picker: {
1433
+ type: PropType<PickerMode>;
1434
+ default: PickerMode;
1435
+ };
1436
+ valueFormat: StringConstructor;
1437
+ placement: {
1438
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1439
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1440
+ };
1441
+ status: {
1442
+ type: PropType<"" | "error" | "warning">;
1443
+ default: "" | "error" | "warning";
1444
+ };
1445
+ disabledHours: {
1446
+ type: PropType<() => number[]>;
1447
+ default: () => number[];
1448
+ };
1449
+ disabledMinutes: {
1450
+ type: PropType<(hour: number) => number[]>;
1451
+ default: (hour: number) => number[];
1452
+ };
1453
+ disabledSeconds: {
1454
+ type: PropType<(hour: number, minute: number) => number[]>;
1455
+ default: (hour: number, minute: number) => number[];
1456
+ };
1457
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1458
+ size: SizeType;
1459
+ value: [ Dayjs, Dayjs] | [string, string];
1460
+ mode: [ PanelMode, PanelMode];
1461
+ onMouseenter: MouseEventHandler;
1462
+ onMouseleave: MouseEventHandler;
1463
+ onClick: MouseEventHandler;
1464
+ onFocus: FocusEventHandler;
1465
+ onBlur: FocusEventHandler;
1466
+ onChange: (value: [ Dayjs, Dayjs] | [string, string], dateString: [string, string]) => void;
1467
+ onKeydown: (event: KeyboardEvent, preventDefault: () => void) => void;
1468
+ onContextmenu: MouseEventHandler;
1469
+ onMousedown: MouseEventHandler;
1470
+ onMouseup: MouseEventHandler;
1471
+ open: boolean;
1472
+ direction: "rtl" | "ltr";
1473
+ disabled: boolean | [boolean, boolean];
1474
+ disabledDate: (date: Dayjs) => boolean;
1475
+ picker: PickerMode;
1476
+ onPanelChange: (values: [ Dayjs, Dayjs] | [string, string], modes: [ PanelMode, PanelMode]) => void;
1477
+ locale: PickerLocale;
1478
+ format: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[];
1479
+ disabledHours: () => number[];
1480
+ disabledMinutes: (hour: number) => number[];
1481
+ disabledSeconds: (hour: number, minute: number) => number[];
1482
+ disabledTime: (date: Dayjs, type: RangeType) => DisabledTimes;
1483
+ autofocus: boolean;
1484
+ getPopupContainer: (node: HTMLElement) => HTMLElement;
1485
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1486
+ placeholder: string[];
1487
+ bordered: boolean;
1488
+ 'onUpdate:value': (value: [ Dayjs, Dayjs] | [string, string]) => void;
1489
+ status: "" | "error" | "warning";
1490
+ defaultValue: [ Dayjs, Dayjs] | [string, string];
1491
+ allowClear: boolean;
1492
+ defaultOpen: boolean;
1493
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1494
+ popupStyle: CSSProperties;
1495
+ onOpenChange: (open: boolean) => void;
1496
+ 'onUpdate:open': (open: boolean) => void;
1497
+ defaultPickerValue: [ Dayjs, Dayjs] | [string, string];
1498
+ dateRender: RangeDateRender<Dayjs>;
1499
+ renderExtraFooter: () => VueNode;
1500
+ onOk: (dates: [ Dayjs, Dayjs] | [string, string]) => void;
1501
+ inputReadOnly: boolean;
1502
+ presets: PresetDate< Dayjs[]>[];
1503
+ panelRender: (originPanel: VueNode) => VueNode;
1504
+ showToday: boolean;
1505
+ showTime: boolean | (Omit< SharedTimeProps<Dayjs>, "defaultValue"> & {
1506
+ defaultValue?: Dayjs[];
1507
+ });
1508
+ ranges: Record<string, [ Dayjs, Dayjs] | (() => [ Dayjs, Dayjs])>;
1509
+ allowEmpty: [boolean, boolean];
1510
+ onCalendarChange: (values: [ Dayjs, Dayjs] | [string, string], formatString: [string, string], info: RangeInfo) => void;
1511
+ }> | null;
1512
+ };
1513
+ $slots: Readonly<{
1514
+ [name: string]: Slot<any> | undefined;
1515
+ }>;
1516
+ $root: ComponentPublicInstance | null;
1517
+ $parent: ComponentPublicInstance | null;
1518
+ $host: Element | null;
1519
+ $emit: (event: "update:value", ...args: any[]) => void;
1520
+ $el: any;
1521
+ $options: ComponentOptionsBase<Readonly< ApFieldDateRangeProps> & Readonly<{
1522
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
1523
+ }>, {
1524
+ blur: () => void;
1525
+ focus: () => void;
1526
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1527
+ "update:value": (...args: any[]) => void;
1528
+ }, string, {
1529
+ mode: FieldMode;
1530
+ open: boolean;
1531
+ separator: string | number | boolean | void | VNode<RendererNode, RendererElement, {
1532
+ [key: string]: any;
1533
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
1534
+ [key: string]: any;
1535
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
1536
+ [key: string]: any;
1537
+ }> | null;
1538
+ disabled: boolean | [boolean, boolean];
1539
+ autofocus: boolean;
1540
+ bordered: boolean;
1541
+ clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
1542
+ [key: string]: any;
1543
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
1544
+ [key: string]: any;
1545
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
1546
+ [key: string]: any;
1547
+ }> | null;
1548
+ allowClear: boolean;
1549
+ suffixIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
1550
+ [key: string]: any;
1551
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
1552
+ [key: string]: any;
1553
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
1554
+ [key: string]: any;
1555
+ }> | null;
1556
+ defaultOpen: boolean;
1557
+ emptyText: string;
1558
+ inputReadOnly: boolean;
1559
+ format: LiteralUnion<ApFormatPresetType, string>;
1560
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1561
+ beforeCreate?: (() => void) | (() => void)[];
1562
+ created?: (() => void) | (() => void)[];
1563
+ beforeMount?: (() => void) | (() => void)[];
1564
+ mounted?: (() => void) | (() => void)[];
1565
+ beforeUpdate?: (() => void) | (() => void)[];
1566
+ updated?: (() => void) | (() => void)[];
1567
+ activated?: (() => void) | (() => void)[];
1568
+ deactivated?: (() => void) | (() => void)[];
1569
+ beforeDestroy?: (() => void) | (() => void)[];
1570
+ beforeUnmount?: (() => void) | (() => void)[];
1571
+ destroyed?: (() => void) | (() => void)[];
1572
+ unmounted?: (() => void) | (() => void)[];
1573
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1574
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1575
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1576
+ };
1577
+ $forceUpdate: () => void;
1578
+ $nextTick: nextTick;
1579
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1580
+ } & Readonly<{
1581
+ mode: FieldMode;
1582
+ open: boolean;
1583
+ separator: string | number | boolean | void | VNode<RendererNode, RendererElement, {
1584
+ [key: string]: any;
1585
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
1586
+ [key: string]: any;
1587
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
1588
+ [key: string]: any;
1589
+ }> | null;
1590
+ disabled: boolean | [boolean, boolean];
1591
+ autofocus: boolean;
1592
+ bordered: boolean;
1593
+ clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
1594
+ [key: string]: any;
1595
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
1596
+ [key: string]: any;
1597
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
1598
+ [key: string]: any;
1599
+ }> | null;
1600
+ allowClear: boolean;
1601
+ suffixIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
1602
+ [key: string]: any;
1603
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
1604
+ [key: string]: any;
1605
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
1606
+ [key: string]: any;
1607
+ }> | null;
1608
+ defaultOpen: boolean;
1609
+ emptyText: string;
1610
+ inputReadOnly: boolean;
1611
+ format: LiteralUnion<ApFormatPresetType, string>;
1612
+ }> & Omit<Readonly< ApFieldDateRangeProps> & Readonly<{
1613
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
1614
+ }>, "blur" | "focus" | ("mode" | "open" | "separator" | "disabled" | "autofocus" | "bordered" | "clearIcon" | "allowClear" | "suffixIcon" | "defaultOpen" | "emptyText" | "inputReadOnly" | "format")> & ShallowUnwrapRef<{
1615
+ blur: () => void;
1616
+ focus: () => void;
1617
+ }> & {} & ComponentCustomProperties & {} & {
1618
+ $slots: Readonly<{
1619
+ suffixIcon?: any;
1620
+ prevIcon?: any;
1621
+ nextIcon?: any;
1622
+ superPrevIcon?: any;
1623
+ superNextIcon?: any;
1624
+ dateRender?: any;
1625
+ renderExtraFooter?: any;
1626
+ default?: any;
1627
+ separator?: any;
1628
+ readModeSeparator?: any;
1629
+ clearIcon?: any;
1630
+ }> & {
1631
+ suffixIcon?: any;
1632
+ prevIcon?: any;
1633
+ nextIcon?: any;
1634
+ superPrevIcon?: any;
1635
+ superNextIcon?: any;
1636
+ dateRender?: any;
1637
+ renderExtraFooter?: any;
1638
+ default?: any;
1639
+ separator?: any;
1640
+ readModeSeparator?: any;
1641
+ clearIcon?: any;
1642
+ };
1643
+ }) | null;
1644
+ }, any>;
43
1645
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
1646
  export default _default;
45
1647
  type __VLS_WithTemplateSlots<T, S> = T & {