@cyberpunk-vue/components 1.13.5 → 1.13.6
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.
- package/dist/date-picker/index.d.ts +585 -0
- package/dist/date-picker/src/base-picker.vue.d.ts +376 -0
- package/dist/date-picker/src/date-picker.d.ts +657 -0
- package/dist/date-picker/src/date-picker.vue.d.ts +349 -0
- package/dist/date-picker/src/date-utils.d.ts +28 -0
- package/dist/date-picker/src/instance.d.ts +2 -0
- package/dist/date-picker/src/picker.d.ts +1 -0
- package/dist/date-time-picker/index.d.ts +586 -0
- package/dist/date-time-picker/src/date-time-picker.d.ts +179 -0
- package/dist/date-time-picker/src/date-time-picker.vue.d.ts +349 -0
- package/dist/date-time-picker/src/instance.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +4107 -2687
- package/dist/table/index.d.ts +61 -5
- package/dist/table/src/table.d.ts +87 -2
- package/dist/table/src/table.vue.d.ts +36 -3
- package/dist/table-column/index.d.ts +51 -6
- package/dist/table-column/src/table-column.d.ts +39 -1
- package/dist/table-column/src/table-column.vue.d.ts +30 -3
- package/dist/time-picker/index.d.ts +583 -0
- package/dist/time-picker/src/instance.d.ts +2 -0
- package/dist/time-picker/src/time-picker.d.ts +178 -0
- package/dist/time-picker/src/time-picker.vue.d.ts +346 -0
- package/package.json +5 -4
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpDatePicker 日期选择器
|
|
3
|
+
*
|
|
4
|
+
* 支持日期、多日期、周、月、年以及范围选择,浮层使用自动定位。
|
|
5
|
+
*/
|
|
6
|
+
export declare const CpDatePicker: import('../utils').SFCWithInstall<{
|
|
7
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
readonly modelValue: {
|
|
9
|
+
readonly type: import('vue').PropType<import('.').PickerModelValue>;
|
|
10
|
+
readonly default: null;
|
|
11
|
+
};
|
|
12
|
+
readonly type: {
|
|
13
|
+
readonly type: import('vue').PropType<import('.').PickerType>;
|
|
14
|
+
readonly default: "date";
|
|
15
|
+
};
|
|
16
|
+
readonly format: {
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
readonly default: "";
|
|
19
|
+
};
|
|
20
|
+
readonly valueFormat: {
|
|
21
|
+
readonly type: StringConstructor;
|
|
22
|
+
readonly default: "";
|
|
23
|
+
};
|
|
24
|
+
readonly placeholder: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "";
|
|
27
|
+
};
|
|
28
|
+
readonly startPlaceholder: {
|
|
29
|
+
readonly type: StringConstructor;
|
|
30
|
+
readonly default: "开始";
|
|
31
|
+
};
|
|
32
|
+
readonly endPlaceholder: {
|
|
33
|
+
readonly type: StringConstructor;
|
|
34
|
+
readonly default: "结束";
|
|
35
|
+
};
|
|
36
|
+
readonly rangeSeparator: {
|
|
37
|
+
readonly type: StringConstructor;
|
|
38
|
+
readonly default: " - ";
|
|
39
|
+
};
|
|
40
|
+
readonly disabled: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly readonly: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly editable: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly clearable: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: true;
|
|
55
|
+
};
|
|
56
|
+
readonly confirm: {
|
|
57
|
+
readonly type: import('vue').PropType<boolean | undefined>;
|
|
58
|
+
readonly default: undefined;
|
|
59
|
+
};
|
|
60
|
+
readonly size: {
|
|
61
|
+
readonly type: import('vue').PropType<import('.').PickerSize>;
|
|
62
|
+
readonly default: "md";
|
|
63
|
+
};
|
|
64
|
+
readonly shape: {
|
|
65
|
+
readonly type: import('vue').PropType<import('.').PickerShape>;
|
|
66
|
+
readonly default: "clip";
|
|
67
|
+
};
|
|
68
|
+
readonly variant: {
|
|
69
|
+
readonly type: import('vue').PropType<import('.').PickerVariant>;
|
|
70
|
+
readonly default: "outline";
|
|
71
|
+
};
|
|
72
|
+
readonly color: {
|
|
73
|
+
readonly type: StringConstructor;
|
|
74
|
+
readonly default: "";
|
|
75
|
+
};
|
|
76
|
+
readonly inactiveColor: {
|
|
77
|
+
readonly type: StringConstructor;
|
|
78
|
+
readonly default: "";
|
|
79
|
+
};
|
|
80
|
+
readonly placeholderColor: {
|
|
81
|
+
readonly type: StringConstructor;
|
|
82
|
+
readonly default: "";
|
|
83
|
+
};
|
|
84
|
+
readonly width: {
|
|
85
|
+
readonly type: import('vue').PropType<string | number>;
|
|
86
|
+
readonly default: "";
|
|
87
|
+
};
|
|
88
|
+
readonly placement: {
|
|
89
|
+
readonly type: import('vue').PropType<import('@floating-ui/dom').Placement>;
|
|
90
|
+
readonly default: "bottom-start";
|
|
91
|
+
};
|
|
92
|
+
readonly teleportTo: {
|
|
93
|
+
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
94
|
+
readonly default: "body";
|
|
95
|
+
};
|
|
96
|
+
readonly disabledDate: {
|
|
97
|
+
readonly type: import('vue').PropType<(date: Date) => boolean>;
|
|
98
|
+
readonly default: undefined;
|
|
99
|
+
};
|
|
100
|
+
readonly disabledHours: {
|
|
101
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
102
|
+
readonly default: undefined;
|
|
103
|
+
};
|
|
104
|
+
readonly disabledMinutes: {
|
|
105
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
106
|
+
readonly default: undefined;
|
|
107
|
+
};
|
|
108
|
+
readonly disabledSeconds: {
|
|
109
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
110
|
+
readonly default: undefined;
|
|
111
|
+
};
|
|
112
|
+
readonly hourStep: {
|
|
113
|
+
readonly type: NumberConstructor;
|
|
114
|
+
readonly default: 1;
|
|
115
|
+
};
|
|
116
|
+
readonly minuteStep: {
|
|
117
|
+
readonly type: NumberConstructor;
|
|
118
|
+
readonly default: 1;
|
|
119
|
+
};
|
|
120
|
+
readonly secondStep: {
|
|
121
|
+
readonly type: NumberConstructor;
|
|
122
|
+
readonly default: 1;
|
|
123
|
+
};
|
|
124
|
+
readonly showSeconds: {
|
|
125
|
+
readonly type: BooleanConstructor;
|
|
126
|
+
readonly default: true;
|
|
127
|
+
};
|
|
128
|
+
readonly shortcuts: {
|
|
129
|
+
readonly type: import('vue').PropType<import('.').PickerShortcut[]>;
|
|
130
|
+
readonly default: () => never[];
|
|
131
|
+
};
|
|
132
|
+
readonly defaultValue: {
|
|
133
|
+
readonly type: import('vue').PropType<import('.').PickerValueItem>;
|
|
134
|
+
readonly default: undefined;
|
|
135
|
+
};
|
|
136
|
+
readonly defaultTime: {
|
|
137
|
+
readonly type: import('vue').PropType<string | [string, string]>;
|
|
138
|
+
readonly default: undefined;
|
|
139
|
+
};
|
|
140
|
+
readonly unlinkPanels: {
|
|
141
|
+
readonly type: BooleanConstructor;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
}>> & Readonly<{
|
|
145
|
+
onClear?: (() => any) | undefined;
|
|
146
|
+
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
147
|
+
onChange?: ((_value: import('.').PickerModelValue) => any) | undefined;
|
|
148
|
+
"onUpdate:modelValue"?: ((_value: import('.').PickerModelValue) => any) | undefined;
|
|
149
|
+
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
150
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
151
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
152
|
+
clear: () => void;
|
|
153
|
+
blur: (event?: FocusEvent | undefined) => void;
|
|
154
|
+
change: (_value: import('.').PickerModelValue) => void;
|
|
155
|
+
"update:modelValue": (_value: import('.').PickerModelValue) => void;
|
|
156
|
+
focus: (event?: FocusEvent | undefined) => void;
|
|
157
|
+
visibleChange: (visible: boolean) => void;
|
|
158
|
+
}, import('vue').PublicProps, {
|
|
159
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
160
|
+
readonly width: string | number;
|
|
161
|
+
readonly format: string;
|
|
162
|
+
readonly type: import('.').PickerType;
|
|
163
|
+
readonly color: string;
|
|
164
|
+
readonly variant: import('.').PickerVariant;
|
|
165
|
+
readonly disabled: boolean;
|
|
166
|
+
readonly shape: import('.').PickerShape;
|
|
167
|
+
readonly placeholder: string;
|
|
168
|
+
readonly modelValue: import('.').PickerModelValue;
|
|
169
|
+
readonly readonly: boolean;
|
|
170
|
+
readonly clearable: boolean;
|
|
171
|
+
readonly placeholderColor: string;
|
|
172
|
+
readonly inactiveColor: string;
|
|
173
|
+
readonly teleportTo: string | HTMLElement;
|
|
174
|
+
readonly placement: import('@floating-ui/dom').Placement;
|
|
175
|
+
readonly confirm: boolean | undefined;
|
|
176
|
+
readonly valueFormat: string;
|
|
177
|
+
readonly startPlaceholder: string;
|
|
178
|
+
readonly endPlaceholder: string;
|
|
179
|
+
readonly rangeSeparator: string;
|
|
180
|
+
readonly editable: boolean;
|
|
181
|
+
readonly disabledDate: (date: Date) => boolean;
|
|
182
|
+
readonly disabledHours: import('.').DisabledTimeResolver;
|
|
183
|
+
readonly disabledMinutes: import('.').DisabledTimeResolver;
|
|
184
|
+
readonly disabledSeconds: import('.').DisabledTimeResolver;
|
|
185
|
+
readonly hourStep: number;
|
|
186
|
+
readonly minuteStep: number;
|
|
187
|
+
readonly secondStep: number;
|
|
188
|
+
readonly showSeconds: boolean;
|
|
189
|
+
readonly shortcuts: import('.').PickerShortcut[];
|
|
190
|
+
readonly defaultValue: import('.').PickerValueItem;
|
|
191
|
+
readonly defaultTime: string | [string, string];
|
|
192
|
+
readonly unlinkPanels: boolean;
|
|
193
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
194
|
+
P: {};
|
|
195
|
+
B: {};
|
|
196
|
+
D: {};
|
|
197
|
+
C: {};
|
|
198
|
+
M: {};
|
|
199
|
+
Defaults: {};
|
|
200
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
201
|
+
readonly modelValue: {
|
|
202
|
+
readonly type: import('vue').PropType<import('.').PickerModelValue>;
|
|
203
|
+
readonly default: null;
|
|
204
|
+
};
|
|
205
|
+
readonly type: {
|
|
206
|
+
readonly type: import('vue').PropType<import('.').PickerType>;
|
|
207
|
+
readonly default: "date";
|
|
208
|
+
};
|
|
209
|
+
readonly format: {
|
|
210
|
+
readonly type: StringConstructor;
|
|
211
|
+
readonly default: "";
|
|
212
|
+
};
|
|
213
|
+
readonly valueFormat: {
|
|
214
|
+
readonly type: StringConstructor;
|
|
215
|
+
readonly default: "";
|
|
216
|
+
};
|
|
217
|
+
readonly placeholder: {
|
|
218
|
+
readonly type: StringConstructor;
|
|
219
|
+
readonly default: "";
|
|
220
|
+
};
|
|
221
|
+
readonly startPlaceholder: {
|
|
222
|
+
readonly type: StringConstructor;
|
|
223
|
+
readonly default: "开始";
|
|
224
|
+
};
|
|
225
|
+
readonly endPlaceholder: {
|
|
226
|
+
readonly type: StringConstructor;
|
|
227
|
+
readonly default: "结束";
|
|
228
|
+
};
|
|
229
|
+
readonly rangeSeparator: {
|
|
230
|
+
readonly type: StringConstructor;
|
|
231
|
+
readonly default: " - ";
|
|
232
|
+
};
|
|
233
|
+
readonly disabled: {
|
|
234
|
+
readonly type: BooleanConstructor;
|
|
235
|
+
readonly default: false;
|
|
236
|
+
};
|
|
237
|
+
readonly readonly: {
|
|
238
|
+
readonly type: BooleanConstructor;
|
|
239
|
+
readonly default: false;
|
|
240
|
+
};
|
|
241
|
+
readonly editable: {
|
|
242
|
+
readonly type: BooleanConstructor;
|
|
243
|
+
readonly default: false;
|
|
244
|
+
};
|
|
245
|
+
readonly clearable: {
|
|
246
|
+
readonly type: BooleanConstructor;
|
|
247
|
+
readonly default: true;
|
|
248
|
+
};
|
|
249
|
+
readonly confirm: {
|
|
250
|
+
readonly type: import('vue').PropType<boolean | undefined>;
|
|
251
|
+
readonly default: undefined;
|
|
252
|
+
};
|
|
253
|
+
readonly size: {
|
|
254
|
+
readonly type: import('vue').PropType<import('.').PickerSize>;
|
|
255
|
+
readonly default: "md";
|
|
256
|
+
};
|
|
257
|
+
readonly shape: {
|
|
258
|
+
readonly type: import('vue').PropType<import('.').PickerShape>;
|
|
259
|
+
readonly default: "clip";
|
|
260
|
+
};
|
|
261
|
+
readonly variant: {
|
|
262
|
+
readonly type: import('vue').PropType<import('.').PickerVariant>;
|
|
263
|
+
readonly default: "outline";
|
|
264
|
+
};
|
|
265
|
+
readonly color: {
|
|
266
|
+
readonly type: StringConstructor;
|
|
267
|
+
readonly default: "";
|
|
268
|
+
};
|
|
269
|
+
readonly inactiveColor: {
|
|
270
|
+
readonly type: StringConstructor;
|
|
271
|
+
readonly default: "";
|
|
272
|
+
};
|
|
273
|
+
readonly placeholderColor: {
|
|
274
|
+
readonly type: StringConstructor;
|
|
275
|
+
readonly default: "";
|
|
276
|
+
};
|
|
277
|
+
readonly width: {
|
|
278
|
+
readonly type: import('vue').PropType<string | number>;
|
|
279
|
+
readonly default: "";
|
|
280
|
+
};
|
|
281
|
+
readonly placement: {
|
|
282
|
+
readonly type: import('vue').PropType<import('@floating-ui/dom').Placement>;
|
|
283
|
+
readonly default: "bottom-start";
|
|
284
|
+
};
|
|
285
|
+
readonly teleportTo: {
|
|
286
|
+
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
287
|
+
readonly default: "body";
|
|
288
|
+
};
|
|
289
|
+
readonly disabledDate: {
|
|
290
|
+
readonly type: import('vue').PropType<(date: Date) => boolean>;
|
|
291
|
+
readonly default: undefined;
|
|
292
|
+
};
|
|
293
|
+
readonly disabledHours: {
|
|
294
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
295
|
+
readonly default: undefined;
|
|
296
|
+
};
|
|
297
|
+
readonly disabledMinutes: {
|
|
298
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
299
|
+
readonly default: undefined;
|
|
300
|
+
};
|
|
301
|
+
readonly disabledSeconds: {
|
|
302
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
303
|
+
readonly default: undefined;
|
|
304
|
+
};
|
|
305
|
+
readonly hourStep: {
|
|
306
|
+
readonly type: NumberConstructor;
|
|
307
|
+
readonly default: 1;
|
|
308
|
+
};
|
|
309
|
+
readonly minuteStep: {
|
|
310
|
+
readonly type: NumberConstructor;
|
|
311
|
+
readonly default: 1;
|
|
312
|
+
};
|
|
313
|
+
readonly secondStep: {
|
|
314
|
+
readonly type: NumberConstructor;
|
|
315
|
+
readonly default: 1;
|
|
316
|
+
};
|
|
317
|
+
readonly showSeconds: {
|
|
318
|
+
readonly type: BooleanConstructor;
|
|
319
|
+
readonly default: true;
|
|
320
|
+
};
|
|
321
|
+
readonly shortcuts: {
|
|
322
|
+
readonly type: import('vue').PropType<import('.').PickerShortcut[]>;
|
|
323
|
+
readonly default: () => never[];
|
|
324
|
+
};
|
|
325
|
+
readonly defaultValue: {
|
|
326
|
+
readonly type: import('vue').PropType<import('.').PickerValueItem>;
|
|
327
|
+
readonly default: undefined;
|
|
328
|
+
};
|
|
329
|
+
readonly defaultTime: {
|
|
330
|
+
readonly type: import('vue').PropType<string | [string, string]>;
|
|
331
|
+
readonly default: undefined;
|
|
332
|
+
};
|
|
333
|
+
readonly unlinkPanels: {
|
|
334
|
+
readonly type: BooleanConstructor;
|
|
335
|
+
readonly default: false;
|
|
336
|
+
};
|
|
337
|
+
}>> & Readonly<{
|
|
338
|
+
onClear?: (() => any) | undefined;
|
|
339
|
+
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
340
|
+
onChange?: ((_value: import('.').PickerModelValue) => any) | undefined;
|
|
341
|
+
"onUpdate:modelValue"?: ((_value: import('.').PickerModelValue) => any) | undefined;
|
|
342
|
+
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
343
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
344
|
+
}>, {}, {}, {}, {}, {
|
|
345
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
346
|
+
readonly width: string | number;
|
|
347
|
+
readonly format: string;
|
|
348
|
+
readonly type: import('.').PickerType;
|
|
349
|
+
readonly color: string;
|
|
350
|
+
readonly variant: import('.').PickerVariant;
|
|
351
|
+
readonly disabled: boolean;
|
|
352
|
+
readonly shape: import('.').PickerShape;
|
|
353
|
+
readonly placeholder: string;
|
|
354
|
+
readonly modelValue: import('.').PickerModelValue;
|
|
355
|
+
readonly readonly: boolean;
|
|
356
|
+
readonly clearable: boolean;
|
|
357
|
+
readonly placeholderColor: string;
|
|
358
|
+
readonly inactiveColor: string;
|
|
359
|
+
readonly teleportTo: string | HTMLElement;
|
|
360
|
+
readonly placement: import('@floating-ui/dom').Placement;
|
|
361
|
+
readonly confirm: boolean | undefined;
|
|
362
|
+
readonly valueFormat: string;
|
|
363
|
+
readonly startPlaceholder: string;
|
|
364
|
+
readonly endPlaceholder: string;
|
|
365
|
+
readonly rangeSeparator: string;
|
|
366
|
+
readonly editable: boolean;
|
|
367
|
+
readonly disabledDate: (date: Date) => boolean;
|
|
368
|
+
readonly disabledHours: import('.').DisabledTimeResolver;
|
|
369
|
+
readonly disabledMinutes: import('.').DisabledTimeResolver;
|
|
370
|
+
readonly disabledSeconds: import('.').DisabledTimeResolver;
|
|
371
|
+
readonly hourStep: number;
|
|
372
|
+
readonly minuteStep: number;
|
|
373
|
+
readonly secondStep: number;
|
|
374
|
+
readonly showSeconds: boolean;
|
|
375
|
+
readonly shortcuts: import('.').PickerShortcut[];
|
|
376
|
+
readonly defaultValue: import('.').PickerValueItem;
|
|
377
|
+
readonly defaultTime: string | [string, string];
|
|
378
|
+
readonly unlinkPanels: boolean;
|
|
379
|
+
}>;
|
|
380
|
+
__isFragment?: never;
|
|
381
|
+
__isTeleport?: never;
|
|
382
|
+
__isSuspense?: never;
|
|
383
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
384
|
+
readonly modelValue: {
|
|
385
|
+
readonly type: import('vue').PropType<import('.').PickerModelValue>;
|
|
386
|
+
readonly default: null;
|
|
387
|
+
};
|
|
388
|
+
readonly type: {
|
|
389
|
+
readonly type: import('vue').PropType<import('.').PickerType>;
|
|
390
|
+
readonly default: "date";
|
|
391
|
+
};
|
|
392
|
+
readonly format: {
|
|
393
|
+
readonly type: StringConstructor;
|
|
394
|
+
readonly default: "";
|
|
395
|
+
};
|
|
396
|
+
readonly valueFormat: {
|
|
397
|
+
readonly type: StringConstructor;
|
|
398
|
+
readonly default: "";
|
|
399
|
+
};
|
|
400
|
+
readonly placeholder: {
|
|
401
|
+
readonly type: StringConstructor;
|
|
402
|
+
readonly default: "";
|
|
403
|
+
};
|
|
404
|
+
readonly startPlaceholder: {
|
|
405
|
+
readonly type: StringConstructor;
|
|
406
|
+
readonly default: "开始";
|
|
407
|
+
};
|
|
408
|
+
readonly endPlaceholder: {
|
|
409
|
+
readonly type: StringConstructor;
|
|
410
|
+
readonly default: "结束";
|
|
411
|
+
};
|
|
412
|
+
readonly rangeSeparator: {
|
|
413
|
+
readonly type: StringConstructor;
|
|
414
|
+
readonly default: " - ";
|
|
415
|
+
};
|
|
416
|
+
readonly disabled: {
|
|
417
|
+
readonly type: BooleanConstructor;
|
|
418
|
+
readonly default: false;
|
|
419
|
+
};
|
|
420
|
+
readonly readonly: {
|
|
421
|
+
readonly type: BooleanConstructor;
|
|
422
|
+
readonly default: false;
|
|
423
|
+
};
|
|
424
|
+
readonly editable: {
|
|
425
|
+
readonly type: BooleanConstructor;
|
|
426
|
+
readonly default: false;
|
|
427
|
+
};
|
|
428
|
+
readonly clearable: {
|
|
429
|
+
readonly type: BooleanConstructor;
|
|
430
|
+
readonly default: true;
|
|
431
|
+
};
|
|
432
|
+
readonly confirm: {
|
|
433
|
+
readonly type: import('vue').PropType<boolean | undefined>;
|
|
434
|
+
readonly default: undefined;
|
|
435
|
+
};
|
|
436
|
+
readonly size: {
|
|
437
|
+
readonly type: import('vue').PropType<import('.').PickerSize>;
|
|
438
|
+
readonly default: "md";
|
|
439
|
+
};
|
|
440
|
+
readonly shape: {
|
|
441
|
+
readonly type: import('vue').PropType<import('.').PickerShape>;
|
|
442
|
+
readonly default: "clip";
|
|
443
|
+
};
|
|
444
|
+
readonly variant: {
|
|
445
|
+
readonly type: import('vue').PropType<import('.').PickerVariant>;
|
|
446
|
+
readonly default: "outline";
|
|
447
|
+
};
|
|
448
|
+
readonly color: {
|
|
449
|
+
readonly type: StringConstructor;
|
|
450
|
+
readonly default: "";
|
|
451
|
+
};
|
|
452
|
+
readonly inactiveColor: {
|
|
453
|
+
readonly type: StringConstructor;
|
|
454
|
+
readonly default: "";
|
|
455
|
+
};
|
|
456
|
+
readonly placeholderColor: {
|
|
457
|
+
readonly type: StringConstructor;
|
|
458
|
+
readonly default: "";
|
|
459
|
+
};
|
|
460
|
+
readonly width: {
|
|
461
|
+
readonly type: import('vue').PropType<string | number>;
|
|
462
|
+
readonly default: "";
|
|
463
|
+
};
|
|
464
|
+
readonly placement: {
|
|
465
|
+
readonly type: import('vue').PropType<import('@floating-ui/dom').Placement>;
|
|
466
|
+
readonly default: "bottom-start";
|
|
467
|
+
};
|
|
468
|
+
readonly teleportTo: {
|
|
469
|
+
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
470
|
+
readonly default: "body";
|
|
471
|
+
};
|
|
472
|
+
readonly disabledDate: {
|
|
473
|
+
readonly type: import('vue').PropType<(date: Date) => boolean>;
|
|
474
|
+
readonly default: undefined;
|
|
475
|
+
};
|
|
476
|
+
readonly disabledHours: {
|
|
477
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
478
|
+
readonly default: undefined;
|
|
479
|
+
};
|
|
480
|
+
readonly disabledMinutes: {
|
|
481
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
482
|
+
readonly default: undefined;
|
|
483
|
+
};
|
|
484
|
+
readonly disabledSeconds: {
|
|
485
|
+
readonly type: import('vue').PropType<import('.').DisabledTimeResolver>;
|
|
486
|
+
readonly default: undefined;
|
|
487
|
+
};
|
|
488
|
+
readonly hourStep: {
|
|
489
|
+
readonly type: NumberConstructor;
|
|
490
|
+
readonly default: 1;
|
|
491
|
+
};
|
|
492
|
+
readonly minuteStep: {
|
|
493
|
+
readonly type: NumberConstructor;
|
|
494
|
+
readonly default: 1;
|
|
495
|
+
};
|
|
496
|
+
readonly secondStep: {
|
|
497
|
+
readonly type: NumberConstructor;
|
|
498
|
+
readonly default: 1;
|
|
499
|
+
};
|
|
500
|
+
readonly showSeconds: {
|
|
501
|
+
readonly type: BooleanConstructor;
|
|
502
|
+
readonly default: true;
|
|
503
|
+
};
|
|
504
|
+
readonly shortcuts: {
|
|
505
|
+
readonly type: import('vue').PropType<import('.').PickerShortcut[]>;
|
|
506
|
+
readonly default: () => never[];
|
|
507
|
+
};
|
|
508
|
+
readonly defaultValue: {
|
|
509
|
+
readonly type: import('vue').PropType<import('.').PickerValueItem>;
|
|
510
|
+
readonly default: undefined;
|
|
511
|
+
};
|
|
512
|
+
readonly defaultTime: {
|
|
513
|
+
readonly type: import('vue').PropType<string | [string, string]>;
|
|
514
|
+
readonly default: undefined;
|
|
515
|
+
};
|
|
516
|
+
readonly unlinkPanels: {
|
|
517
|
+
readonly type: BooleanConstructor;
|
|
518
|
+
readonly default: false;
|
|
519
|
+
};
|
|
520
|
+
}>> & Readonly<{
|
|
521
|
+
onClear?: (() => any) | undefined;
|
|
522
|
+
onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
523
|
+
onChange?: ((_value: import('.').PickerModelValue) => any) | undefined;
|
|
524
|
+
"onUpdate:modelValue"?: ((_value: import('.').PickerModelValue) => any) | undefined;
|
|
525
|
+
onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
|
|
526
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
527
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
528
|
+
clear: () => void;
|
|
529
|
+
blur: (event?: FocusEvent | undefined) => void;
|
|
530
|
+
change: (_value: import('.').PickerModelValue) => void;
|
|
531
|
+
"update:modelValue": (_value: import('.').PickerModelValue) => void;
|
|
532
|
+
focus: (event?: FocusEvent | undefined) => void;
|
|
533
|
+
visibleChange: (visible: boolean) => void;
|
|
534
|
+
}, string, {
|
|
535
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
536
|
+
readonly width: string | number;
|
|
537
|
+
readonly format: string;
|
|
538
|
+
readonly type: import('.').PickerType;
|
|
539
|
+
readonly color: string;
|
|
540
|
+
readonly variant: import('.').PickerVariant;
|
|
541
|
+
readonly disabled: boolean;
|
|
542
|
+
readonly shape: import('.').PickerShape;
|
|
543
|
+
readonly placeholder: string;
|
|
544
|
+
readonly modelValue: import('.').PickerModelValue;
|
|
545
|
+
readonly readonly: boolean;
|
|
546
|
+
readonly clearable: boolean;
|
|
547
|
+
readonly placeholderColor: string;
|
|
548
|
+
readonly inactiveColor: string;
|
|
549
|
+
readonly teleportTo: string | HTMLElement;
|
|
550
|
+
readonly placement: import('@floating-ui/dom').Placement;
|
|
551
|
+
readonly confirm: boolean | undefined;
|
|
552
|
+
readonly valueFormat: string;
|
|
553
|
+
readonly startPlaceholder: string;
|
|
554
|
+
readonly endPlaceholder: string;
|
|
555
|
+
readonly rangeSeparator: string;
|
|
556
|
+
readonly editable: boolean;
|
|
557
|
+
readonly disabledDate: (date: Date) => boolean;
|
|
558
|
+
readonly disabledHours: import('.').DisabledTimeResolver;
|
|
559
|
+
readonly disabledMinutes: import('.').DisabledTimeResolver;
|
|
560
|
+
readonly disabledSeconds: import('.').DisabledTimeResolver;
|
|
561
|
+
readonly hourStep: number;
|
|
562
|
+
readonly minuteStep: number;
|
|
563
|
+
readonly secondStep: number;
|
|
564
|
+
readonly showSeconds: boolean;
|
|
565
|
+
readonly shortcuts: import('.').PickerShortcut[];
|
|
566
|
+
readonly defaultValue: import('.').PickerValueItem;
|
|
567
|
+
readonly defaultTime: string | [string, string];
|
|
568
|
+
readonly unlinkPanels: boolean;
|
|
569
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
570
|
+
$slots: {
|
|
571
|
+
prefix?(_: {}): any;
|
|
572
|
+
suffix?(_: {}): any;
|
|
573
|
+
cell?(_: {
|
|
574
|
+
cell: import('.').PickerCell;
|
|
575
|
+
}): any;
|
|
576
|
+
footer?(_: {
|
|
577
|
+
confirm: (false & (() => void)) | (true & (() => void));
|
|
578
|
+
cancel: () => void;
|
|
579
|
+
clear: (event?: MouseEvent) => void;
|
|
580
|
+
}): any;
|
|
581
|
+
};
|
|
582
|
+
})>;
|
|
583
|
+
export default CpDatePicker;
|
|
584
|
+
export * from './src/picker';
|
|
585
|
+
export type { DatePickerInstance } from './src/instance';
|