@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.
@@ -0,0 +1,376 @@
1
+ import { Placement } from '@floating-ui/dom';
2
+ import { PickerCell, PickerModelValue, PickerType } from './picker';
3
+ declare function open(): void;
4
+ declare function close(): void;
5
+ declare function toggle(): void;
6
+ declare function clearValue(event?: MouseEvent): void;
7
+ declare function cancel(): void;
8
+ declare function confirm(): void;
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ prefix?(_: {}): any;
13
+ suffix?(_: {}): any;
14
+ cell?(_: {
15
+ cell: PickerCell;
16
+ }): any;
17
+ footer?(_: {
18
+ confirm: (false & typeof confirm) | (true & typeof confirm);
19
+ cancel: typeof cancel;
20
+ clear: typeof clearValue;
21
+ }): any;
22
+ };
23
+ refs: {
24
+ triggerRef: HTMLDivElement;
25
+ inputRef: HTMLInputElement;
26
+ popperRef: HTMLDivElement;
27
+ };
28
+ rootEl: HTMLDivElement;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
32
+ readonly modelValue: {
33
+ readonly type: import('vue').PropType<PickerModelValue>;
34
+ readonly default: null;
35
+ };
36
+ readonly type: {
37
+ readonly type: import('vue').PropType<PickerType>;
38
+ readonly default: "date";
39
+ };
40
+ readonly format: {
41
+ readonly type: StringConstructor;
42
+ readonly default: "";
43
+ };
44
+ readonly valueFormat: {
45
+ readonly type: StringConstructor;
46
+ readonly default: "";
47
+ };
48
+ readonly placeholder: {
49
+ readonly type: StringConstructor;
50
+ readonly default: "";
51
+ };
52
+ readonly startPlaceholder: {
53
+ readonly type: StringConstructor;
54
+ readonly default: "开始";
55
+ };
56
+ readonly endPlaceholder: {
57
+ readonly type: StringConstructor;
58
+ readonly default: "结束";
59
+ };
60
+ readonly rangeSeparator: {
61
+ readonly type: StringConstructor;
62
+ readonly default: " - ";
63
+ };
64
+ readonly disabled: {
65
+ readonly type: BooleanConstructor;
66
+ readonly default: false;
67
+ };
68
+ readonly readonly: {
69
+ readonly type: BooleanConstructor;
70
+ readonly default: false;
71
+ };
72
+ readonly editable: {
73
+ readonly type: BooleanConstructor;
74
+ readonly default: false;
75
+ };
76
+ readonly clearable: {
77
+ readonly type: BooleanConstructor;
78
+ readonly default: true;
79
+ };
80
+ readonly confirm: {
81
+ readonly type: import('vue').PropType<boolean | undefined>;
82
+ readonly default: undefined;
83
+ };
84
+ readonly size: {
85
+ readonly type: import('vue').PropType<import('./date-picker').PickerSize>;
86
+ readonly default: "md";
87
+ };
88
+ readonly shape: {
89
+ readonly type: import('vue').PropType<import('./date-picker').PickerShape>;
90
+ readonly default: "clip";
91
+ };
92
+ readonly variant: {
93
+ readonly type: import('vue').PropType<import('./date-picker').PickerVariant>;
94
+ readonly default: "outline";
95
+ };
96
+ readonly color: {
97
+ readonly type: StringConstructor;
98
+ readonly default: "";
99
+ };
100
+ readonly inactiveColor: {
101
+ readonly type: StringConstructor;
102
+ readonly default: "";
103
+ };
104
+ readonly placeholderColor: {
105
+ readonly type: StringConstructor;
106
+ readonly default: "";
107
+ };
108
+ readonly width: {
109
+ readonly type: import('vue').PropType<string | number>;
110
+ readonly default: "";
111
+ };
112
+ readonly placement: {
113
+ readonly type: import('vue').PropType<Placement>;
114
+ readonly default: "bottom-start";
115
+ };
116
+ readonly teleportTo: {
117
+ readonly type: import('vue').PropType<string | HTMLElement>;
118
+ readonly default: "body";
119
+ };
120
+ readonly disabledDate: {
121
+ readonly type: import('vue').PropType<(date: Date) => boolean>;
122
+ readonly default: undefined;
123
+ };
124
+ readonly disabledHours: {
125
+ readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
126
+ readonly default: undefined;
127
+ };
128
+ readonly disabledMinutes: {
129
+ readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
130
+ readonly default: undefined;
131
+ };
132
+ readonly disabledSeconds: {
133
+ readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
134
+ readonly default: undefined;
135
+ };
136
+ readonly hourStep: {
137
+ readonly type: NumberConstructor;
138
+ readonly default: 1;
139
+ };
140
+ readonly minuteStep: {
141
+ readonly type: NumberConstructor;
142
+ readonly default: 1;
143
+ };
144
+ readonly secondStep: {
145
+ readonly type: NumberConstructor;
146
+ readonly default: 1;
147
+ };
148
+ readonly showSeconds: {
149
+ readonly type: BooleanConstructor;
150
+ readonly default: true;
151
+ };
152
+ readonly shortcuts: {
153
+ readonly type: import('vue').PropType<import('./date-picker').PickerShortcut[]>;
154
+ readonly default: () => never[];
155
+ };
156
+ readonly defaultValue: {
157
+ readonly type: import('vue').PropType<import('./date-picker').PickerValueItem>;
158
+ readonly default: undefined;
159
+ };
160
+ readonly defaultTime: {
161
+ readonly type: import('vue').PropType<string | [string, string]>;
162
+ readonly default: undefined;
163
+ };
164
+ readonly unlinkPanels: {
165
+ readonly type: BooleanConstructor;
166
+ readonly default: false;
167
+ };
168
+ }>, {
169
+ /** @description 打开选择器浮层 */
170
+ open: typeof open;
171
+ /** @description 关闭选择器浮层 */
172
+ close: typeof close;
173
+ /** @description 切换选择器浮层 */
174
+ toggle: typeof toggle;
175
+ /** @description 使触发器获取焦点 */
176
+ focus: () => void | undefined;
177
+ /** @description 使触发器失去焦点 */
178
+ blur: () => void | undefined;
179
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
180
+ clear: () => void;
181
+ blur: (event?: FocusEvent | undefined) => void;
182
+ change: (_value: PickerModelValue) => void;
183
+ "update:modelValue": (_value: PickerModelValue) => void;
184
+ focus: (event?: FocusEvent | undefined) => void;
185
+ visibleChange: (visible: boolean) => void;
186
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
187
+ readonly modelValue: {
188
+ readonly type: import('vue').PropType<PickerModelValue>;
189
+ readonly default: null;
190
+ };
191
+ readonly type: {
192
+ readonly type: import('vue').PropType<PickerType>;
193
+ readonly default: "date";
194
+ };
195
+ readonly format: {
196
+ readonly type: StringConstructor;
197
+ readonly default: "";
198
+ };
199
+ readonly valueFormat: {
200
+ readonly type: StringConstructor;
201
+ readonly default: "";
202
+ };
203
+ readonly placeholder: {
204
+ readonly type: StringConstructor;
205
+ readonly default: "";
206
+ };
207
+ readonly startPlaceholder: {
208
+ readonly type: StringConstructor;
209
+ readonly default: "开始";
210
+ };
211
+ readonly endPlaceholder: {
212
+ readonly type: StringConstructor;
213
+ readonly default: "结束";
214
+ };
215
+ readonly rangeSeparator: {
216
+ readonly type: StringConstructor;
217
+ readonly default: " - ";
218
+ };
219
+ readonly disabled: {
220
+ readonly type: BooleanConstructor;
221
+ readonly default: false;
222
+ };
223
+ readonly readonly: {
224
+ readonly type: BooleanConstructor;
225
+ readonly default: false;
226
+ };
227
+ readonly editable: {
228
+ readonly type: BooleanConstructor;
229
+ readonly default: false;
230
+ };
231
+ readonly clearable: {
232
+ readonly type: BooleanConstructor;
233
+ readonly default: true;
234
+ };
235
+ readonly confirm: {
236
+ readonly type: import('vue').PropType<boolean | undefined>;
237
+ readonly default: undefined;
238
+ };
239
+ readonly size: {
240
+ readonly type: import('vue').PropType<import('./date-picker').PickerSize>;
241
+ readonly default: "md";
242
+ };
243
+ readonly shape: {
244
+ readonly type: import('vue').PropType<import('./date-picker').PickerShape>;
245
+ readonly default: "clip";
246
+ };
247
+ readonly variant: {
248
+ readonly type: import('vue').PropType<import('./date-picker').PickerVariant>;
249
+ readonly default: "outline";
250
+ };
251
+ readonly color: {
252
+ readonly type: StringConstructor;
253
+ readonly default: "";
254
+ };
255
+ readonly inactiveColor: {
256
+ readonly type: StringConstructor;
257
+ readonly default: "";
258
+ };
259
+ readonly placeholderColor: {
260
+ readonly type: StringConstructor;
261
+ readonly default: "";
262
+ };
263
+ readonly width: {
264
+ readonly type: import('vue').PropType<string | number>;
265
+ readonly default: "";
266
+ };
267
+ readonly placement: {
268
+ readonly type: import('vue').PropType<Placement>;
269
+ readonly default: "bottom-start";
270
+ };
271
+ readonly teleportTo: {
272
+ readonly type: import('vue').PropType<string | HTMLElement>;
273
+ readonly default: "body";
274
+ };
275
+ readonly disabledDate: {
276
+ readonly type: import('vue').PropType<(date: Date) => boolean>;
277
+ readonly default: undefined;
278
+ };
279
+ readonly disabledHours: {
280
+ readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
281
+ readonly default: undefined;
282
+ };
283
+ readonly disabledMinutes: {
284
+ readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
285
+ readonly default: undefined;
286
+ };
287
+ readonly disabledSeconds: {
288
+ readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
289
+ readonly default: undefined;
290
+ };
291
+ readonly hourStep: {
292
+ readonly type: NumberConstructor;
293
+ readonly default: 1;
294
+ };
295
+ readonly minuteStep: {
296
+ readonly type: NumberConstructor;
297
+ readonly default: 1;
298
+ };
299
+ readonly secondStep: {
300
+ readonly type: NumberConstructor;
301
+ readonly default: 1;
302
+ };
303
+ readonly showSeconds: {
304
+ readonly type: BooleanConstructor;
305
+ readonly default: true;
306
+ };
307
+ readonly shortcuts: {
308
+ readonly type: import('vue').PropType<import('./date-picker').PickerShortcut[]>;
309
+ readonly default: () => never[];
310
+ };
311
+ readonly defaultValue: {
312
+ readonly type: import('vue').PropType<import('./date-picker').PickerValueItem>;
313
+ readonly default: undefined;
314
+ };
315
+ readonly defaultTime: {
316
+ readonly type: import('vue').PropType<string | [string, string]>;
317
+ readonly default: undefined;
318
+ };
319
+ readonly unlinkPanels: {
320
+ readonly type: BooleanConstructor;
321
+ readonly default: false;
322
+ };
323
+ }>> & Readonly<{
324
+ onClear?: (() => any) | undefined;
325
+ onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
326
+ onChange?: ((_value: PickerModelValue) => any) | undefined;
327
+ "onUpdate:modelValue"?: ((_value: PickerModelValue) => any) | undefined;
328
+ onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
329
+ onVisibleChange?: ((visible: boolean) => any) | undefined;
330
+ }>, {
331
+ readonly size: import('@cyberpunk-vue/hooks').Size;
332
+ readonly width: string | number;
333
+ readonly format: string;
334
+ readonly type: PickerType;
335
+ readonly color: string;
336
+ readonly variant: import('./date-picker').PickerVariant;
337
+ readonly disabled: boolean;
338
+ readonly shape: import('./date-picker').PickerShape;
339
+ readonly placeholder: string;
340
+ readonly modelValue: PickerModelValue;
341
+ readonly readonly: boolean;
342
+ readonly clearable: boolean;
343
+ readonly placeholderColor: string;
344
+ readonly inactiveColor: string;
345
+ readonly teleportTo: string | HTMLElement;
346
+ readonly placement: Placement;
347
+ readonly confirm: boolean | undefined;
348
+ readonly valueFormat: string;
349
+ readonly startPlaceholder: string;
350
+ readonly endPlaceholder: string;
351
+ readonly rangeSeparator: string;
352
+ readonly editable: boolean;
353
+ readonly disabledDate: (date: Date) => boolean;
354
+ readonly disabledHours: import('./date-picker').DisabledTimeResolver;
355
+ readonly disabledMinutes: import('./date-picker').DisabledTimeResolver;
356
+ readonly disabledSeconds: import('./date-picker').DisabledTimeResolver;
357
+ readonly hourStep: number;
358
+ readonly minuteStep: number;
359
+ readonly secondStep: number;
360
+ readonly showSeconds: boolean;
361
+ readonly shortcuts: import('./date-picker').PickerShortcut[];
362
+ readonly defaultValue: import('./date-picker').PickerValueItem;
363
+ readonly defaultTime: string | [string, string];
364
+ readonly unlinkPanels: boolean;
365
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
366
+ triggerRef: HTMLDivElement;
367
+ inputRef: HTMLInputElement;
368
+ popperRef: HTMLDivElement;
369
+ }, HTMLDivElement>;
370
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
371
+ export default _default;
372
+ type __VLS_WithTemplateSlots<T, S> = T & {
373
+ new (): {
374
+ $slots: S;
375
+ };
376
+ };