@vtj/ui 0.6.22 → 0.6.23

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 (42) hide show
  1. package/cdn/index.js +1 -1
  2. package/cdn/style.css +1 -1
  3. package/lib/index.js +1567 -1284
  4. package/lib/style.css +1 -1
  5. package/package.json +8 -7
  6. package/types/components/action/Action.d.ts +1 -1
  7. package/types/components/action/Trigger.d.ts +1 -1
  8. package/types/components/action-bar/ActionBar.d.ts +1 -1
  9. package/types/components/chart/Chart.d.ts +35 -0
  10. package/types/components/chart/index.d.ts +3 -0
  11. package/types/components/chart/types.d.ts +17 -0
  12. package/types/components/chart/useChart.d.ts +7 -0
  13. package/types/components/container/Container.d.ts +8 -1
  14. package/types/components/container/types.d.ts +3 -0
  15. package/types/components/data-item/DataItem.d.ts +451 -0
  16. package/types/components/data-item/index.d.ts +3 -0
  17. package/types/components/data-item/types.d.ts +49 -0
  18. package/types/components/dialog-form/DialogForm.d.ts +2 -1
  19. package/types/components/field/editors/CheckboxEditor.d.ts +22 -20
  20. package/types/components/field/editors/RadioEditor.d.ts +22 -20
  21. package/types/components/field/editors/SelectEditor.d.ts +20 -12
  22. package/types/components/icon/Icon.d.ts +18 -0
  23. package/types/components/icon/types.d.ts +9 -0
  24. package/types/components/index.d.ts +3 -0
  25. package/types/components/mask/components/Avatar.d.ts +11 -10
  26. package/types/components/mask/components/Brand.d.ts +20 -30
  27. package/types/components/mask/components/Content.d.ts +11 -20
  28. package/types/components/mask/components/Menu.d.ts +21 -49
  29. package/types/components/mask/components/Sidebar.d.ts +11 -10
  30. package/types/components/mask/components/SwitchBar.d.ts +23 -27
  31. package/types/components/mask/components/Tabs.d.ts +12 -41
  32. package/types/components/mask/components/Toolbar.d.ts +21 -27
  33. package/types/components/menu/Menu.d.ts +24 -27
  34. package/types/components/menu/MenuItem.d.ts +10 -24
  35. package/types/components/panel/Panel.d.ts +13 -1
  36. package/types/components/panel/types.d.ts +6 -0
  37. package/types/components/simple-mask/SimpleMask.d.ts +26 -30
  38. package/types/components/startup/Startup.d.ts +22 -26
  39. package/types/components/tabs/Tabs.d.ts +52 -0
  40. package/types/components/tabs/index.d.ts +3 -0
  41. package/types/components/tabs/types.d.ts +24 -0
  42. package/types/version.d.ts +1 -1
@@ -0,0 +1,451 @@
1
+ import { BaseSize, BaseType } from '../shared';
2
+ import { EpPropFinalized, Arrayable, EpPropMergeType } from 'element-plus/es/utils';
3
+ import { ElTooltipProps, BadgeProps, TooltipTriggerType, Placement, Options, ButtonProps } from 'element-plus';
4
+ import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
5
+ import { IconParam, ActionBarItems, ActionMode, ActionBarProps, ActionMenuItem } from '../';
6
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
7
+ direction: {
8
+ type: PropType<"row" | "column">;
9
+ default: string;
10
+ };
11
+ imageSrc: {
12
+ type: StringConstructor;
13
+ };
14
+ imageWidth: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ };
17
+ imageHeight: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ };
20
+ icon: {
21
+ type: PropType<IconParam>;
22
+ };
23
+ title: {
24
+ type: StringConstructor;
25
+ };
26
+ description: {
27
+ type: StringConstructor;
28
+ };
29
+ actions: {
30
+ type: PropType<ActionBarItems>;
31
+ };
32
+ actionBarProps: {
33
+ type: PropType<ActionBarProps>;
34
+ };
35
+ split: {
36
+ type: BooleanConstructor;
37
+ };
38
+ onImageClick: {
39
+ type: FunctionConstructor;
40
+ };
41
+ onTitleClick: {
42
+ type: FunctionConstructor;
43
+ };
44
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
45
+ actionClick: (action: Readonly<Partial<ExtractPropTypes<{
46
+ name: {
47
+ type: StringConstructor;
48
+ };
49
+ label: {
50
+ type: StringConstructor;
51
+ };
52
+ value: {
53
+ type: PropType<unknown>;
54
+ };
55
+ icon: {
56
+ type: PropType<IconParam>;
57
+ };
58
+ mode: {
59
+ type: PropType<ActionMode>;
60
+ default: string;
61
+ };
62
+ menus: {
63
+ type: PropType<ActionMenuItem[]>;
64
+ };
65
+ tooltip: {
66
+ type: PropType<string | Partial<ElTooltipProps>>;
67
+ };
68
+ badge: {
69
+ type: PropType<string | number | Partial<BadgeProps>>;
70
+ };
71
+ dropdown: {
72
+ type: PropType<Partial<ExtractPropTypes<{
73
+ readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
74
+ readonly effect: {
75
+ readonly default: "light";
76
+ readonly type: PropType<string>;
77
+ readonly required: false;
78
+ readonly validator: ((val: unknown) => boolean) | undefined;
79
+ readonly __epPropKey: true;
80
+ };
81
+ readonly type: {
82
+ readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
83
+ readonly required: false;
84
+ readonly validator: ((val: unknown) => boolean) | undefined;
85
+ __epPropKey: true;
86
+ };
87
+ readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
88
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
89
+ readonly id: StringConstructor;
90
+ readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
91
+ readonly splitButton: BooleanConstructor;
92
+ readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
93
+ readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
94
+ readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
95
+ readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
96
+ readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
97
+ readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
98
+ readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
99
+ readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
100
+ readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
101
+ readonly buttonProps: {
102
+ readonly type: PropType<ButtonProps>;
103
+ readonly required: false;
104
+ readonly validator: ((val: unknown) => boolean) | undefined;
105
+ __epPropKey: true;
106
+ };
107
+ readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
108
+ }>>>;
109
+ };
110
+ button: {
111
+ type: PropType<Partial<ButtonProps>>;
112
+ };
113
+ disabled: {
114
+ type: PropType<boolean | (() => boolean)>;
115
+ };
116
+ size: {
117
+ type: PropType<BaseSize>;
118
+ default: string;
119
+ };
120
+ type: {
121
+ type: PropType<BaseType>;
122
+ default: string;
123
+ };
124
+ background: {
125
+ type: PropType<"hover" | "always">;
126
+ default: string;
127
+ };
128
+ circle: {
129
+ type: BooleanConstructor;
130
+ };
131
+ }>>>) => void;
132
+ actionCommand: (action: Readonly<Partial<ExtractPropTypes<{
133
+ name: {
134
+ type: StringConstructor;
135
+ };
136
+ label: {
137
+ type: StringConstructor;
138
+ };
139
+ value: {
140
+ type: PropType<unknown>;
141
+ };
142
+ icon: {
143
+ type: PropType<IconParam>;
144
+ };
145
+ mode: {
146
+ type: PropType<ActionMode>;
147
+ default: string;
148
+ };
149
+ menus: {
150
+ type: PropType<ActionMenuItem[]>;
151
+ };
152
+ tooltip: {
153
+ type: PropType<string | Partial<ElTooltipProps>>;
154
+ };
155
+ badge: {
156
+ type: PropType<string | number | Partial<BadgeProps>>;
157
+ };
158
+ dropdown: {
159
+ type: PropType<Partial<ExtractPropTypes<{
160
+ readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
161
+ readonly effect: {
162
+ readonly default: "light";
163
+ readonly type: PropType<string>;
164
+ readonly required: false;
165
+ readonly validator: ((val: unknown) => boolean) | undefined;
166
+ readonly __epPropKey: true;
167
+ };
168
+ readonly type: {
169
+ readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
170
+ readonly required: false;
171
+ readonly validator: ((val: unknown) => boolean) | undefined;
172
+ __epPropKey: true;
173
+ };
174
+ readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
175
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
176
+ readonly id: StringConstructor;
177
+ readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
178
+ readonly splitButton: BooleanConstructor;
179
+ readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
180
+ readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
181
+ readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
182
+ readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
183
+ readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
184
+ readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
185
+ readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
186
+ readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
187
+ readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
188
+ readonly buttonProps: {
189
+ readonly type: PropType<ButtonProps>;
190
+ readonly required: false;
191
+ readonly validator: ((val: unknown) => boolean) | undefined;
192
+ __epPropKey: true;
193
+ };
194
+ readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
195
+ }>>>;
196
+ };
197
+ button: {
198
+ type: PropType<Partial<ButtonProps>>;
199
+ };
200
+ disabled: {
201
+ type: PropType<boolean | (() => boolean)>;
202
+ };
203
+ size: {
204
+ type: PropType<BaseSize>;
205
+ default: string;
206
+ };
207
+ type: {
208
+ type: PropType<BaseType>;
209
+ default: string;
210
+ };
211
+ background: {
212
+ type: PropType<"hover" | "always">;
213
+ default: string;
214
+ };
215
+ circle: {
216
+ type: BooleanConstructor;
217
+ };
218
+ }>>>, menu: ActionMenuItem) => void;
219
+ imageClick: () => void;
220
+ titleClick: () => void;
221
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
222
+ direction: {
223
+ type: PropType<"row" | "column">;
224
+ default: string;
225
+ };
226
+ imageSrc: {
227
+ type: StringConstructor;
228
+ };
229
+ imageWidth: {
230
+ type: (StringConstructor | NumberConstructor)[];
231
+ };
232
+ imageHeight: {
233
+ type: (StringConstructor | NumberConstructor)[];
234
+ };
235
+ icon: {
236
+ type: PropType<IconParam>;
237
+ };
238
+ title: {
239
+ type: StringConstructor;
240
+ };
241
+ description: {
242
+ type: StringConstructor;
243
+ };
244
+ actions: {
245
+ type: PropType<ActionBarItems>;
246
+ };
247
+ actionBarProps: {
248
+ type: PropType<ActionBarProps>;
249
+ };
250
+ split: {
251
+ type: BooleanConstructor;
252
+ };
253
+ onImageClick: {
254
+ type: FunctionConstructor;
255
+ };
256
+ onTitleClick: {
257
+ type: FunctionConstructor;
258
+ };
259
+ }>> & {
260
+ onActionClick?: ((action: Readonly<Partial<ExtractPropTypes<{
261
+ name: {
262
+ type: StringConstructor;
263
+ };
264
+ label: {
265
+ type: StringConstructor;
266
+ };
267
+ value: {
268
+ type: PropType<unknown>;
269
+ };
270
+ icon: {
271
+ type: PropType<IconParam>;
272
+ };
273
+ mode: {
274
+ type: PropType<ActionMode>;
275
+ default: string;
276
+ };
277
+ menus: {
278
+ type: PropType<ActionMenuItem[]>;
279
+ };
280
+ tooltip: {
281
+ type: PropType<string | Partial<ElTooltipProps>>;
282
+ };
283
+ badge: {
284
+ type: PropType<string | number | Partial<BadgeProps>>;
285
+ };
286
+ dropdown: {
287
+ type: PropType<Partial<ExtractPropTypes<{
288
+ readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
289
+ readonly effect: {
290
+ readonly default: "light";
291
+ readonly type: PropType<string>;
292
+ readonly required: false;
293
+ readonly validator: ((val: unknown) => boolean) | undefined;
294
+ readonly __epPropKey: true;
295
+ };
296
+ readonly type: {
297
+ readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
298
+ readonly required: false;
299
+ readonly validator: ((val: unknown) => boolean) | undefined;
300
+ __epPropKey: true;
301
+ };
302
+ readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
303
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
304
+ readonly id: StringConstructor;
305
+ readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
306
+ readonly splitButton: BooleanConstructor;
307
+ readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
308
+ readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
309
+ readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
310
+ readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
311
+ readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
312
+ readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
313
+ readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
314
+ readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
315
+ readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
316
+ readonly buttonProps: {
317
+ readonly type: PropType<ButtonProps>;
318
+ readonly required: false;
319
+ readonly validator: ((val: unknown) => boolean) | undefined;
320
+ __epPropKey: true;
321
+ };
322
+ readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
323
+ }>>>;
324
+ };
325
+ button: {
326
+ type: PropType<Partial<ButtonProps>>;
327
+ };
328
+ disabled: {
329
+ type: PropType<boolean | (() => boolean)>;
330
+ };
331
+ size: {
332
+ type: PropType<BaseSize>;
333
+ default: string;
334
+ };
335
+ type: {
336
+ type: PropType<BaseType>;
337
+ default: string;
338
+ };
339
+ background: {
340
+ type: PropType<"hover" | "always">;
341
+ default: string;
342
+ };
343
+ circle: {
344
+ type: BooleanConstructor;
345
+ };
346
+ }>>>) => any) | undefined;
347
+ onActionCommand?: ((action: Readonly<Partial<ExtractPropTypes<{
348
+ name: {
349
+ type: StringConstructor;
350
+ };
351
+ label: {
352
+ type: StringConstructor;
353
+ };
354
+ value: {
355
+ type: PropType<unknown>;
356
+ };
357
+ icon: {
358
+ type: PropType<IconParam>;
359
+ };
360
+ mode: {
361
+ type: PropType<ActionMode>;
362
+ default: string;
363
+ };
364
+ menus: {
365
+ type: PropType<ActionMenuItem[]>;
366
+ };
367
+ tooltip: {
368
+ type: PropType<string | Partial<ElTooltipProps>>;
369
+ };
370
+ badge: {
371
+ type: PropType<string | number | Partial<BadgeProps>>;
372
+ };
373
+ dropdown: {
374
+ type: PropType<Partial<ExtractPropTypes<{
375
+ readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
376
+ readonly effect: {
377
+ readonly default: "light";
378
+ readonly type: PropType<string>;
379
+ readonly required: false;
380
+ readonly validator: ((val: unknown) => boolean) | undefined;
381
+ readonly __epPropKey: true;
382
+ };
383
+ readonly type: {
384
+ readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
385
+ readonly required: false;
386
+ readonly validator: ((val: unknown) => boolean) | undefined;
387
+ __epPropKey: true;
388
+ };
389
+ readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
390
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
391
+ readonly id: StringConstructor;
392
+ readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
393
+ readonly splitButton: BooleanConstructor;
394
+ readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
395
+ readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
396
+ readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
397
+ readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
398
+ readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
399
+ readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
400
+ readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
401
+ readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
402
+ readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
403
+ readonly buttonProps: {
404
+ readonly type: PropType<ButtonProps>;
405
+ readonly required: false;
406
+ readonly validator: ((val: unknown) => boolean) | undefined;
407
+ __epPropKey: true;
408
+ };
409
+ readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
410
+ }>>>;
411
+ };
412
+ button: {
413
+ type: PropType<Partial<ButtonProps>>;
414
+ };
415
+ disabled: {
416
+ type: PropType<boolean | (() => boolean)>;
417
+ };
418
+ size: {
419
+ type: PropType<BaseSize>;
420
+ default: string;
421
+ };
422
+ type: {
423
+ type: PropType<BaseType>;
424
+ default: string;
425
+ };
426
+ background: {
427
+ type: PropType<"hover" | "always">;
428
+ default: string;
429
+ };
430
+ circle: {
431
+ type: BooleanConstructor;
432
+ };
433
+ }>>>, menu: ActionMenuItem) => any) | undefined;
434
+ onImageClick?: (() => any) | undefined;
435
+ onTitleClick?: (() => any) | undefined;
436
+ }, {
437
+ direction: "row" | "column";
438
+ split: boolean;
439
+ }, {}>, {
440
+ image?(_: {}): any;
441
+ title?(_: {}): any;
442
+ description?(_: {}): any;
443
+ default?(_: {}): any;
444
+ actions?(_: {}): any;
445
+ }>;
446
+ export default _default;
447
+ type __VLS_WithTemplateSlots<T, S> = T & {
448
+ new (): {
449
+ $slots: S;
450
+ };
451
+ };
@@ -0,0 +1,3 @@
1
+ import XDataItem from "./DataItem";
2
+ export { XDataItem };
3
+ export * from './types';
@@ -0,0 +1,49 @@
1
+ import { PropType } from 'vue';
2
+ import { ComponentPropsType } from '../shared';
3
+ import { IconParam, ActionBarItems, ActionBarProps, ActionProps, ActionMenuItem } from '../';
4
+ export declare const dataItemProps: {
5
+ direction: {
6
+ type: PropType<"row" | "column">;
7
+ default: string;
8
+ };
9
+ imageSrc: {
10
+ type: StringConstructor;
11
+ };
12
+ imageWidth: {
13
+ type: (StringConstructor | NumberConstructor)[];
14
+ };
15
+ imageHeight: {
16
+ type: (StringConstructor | NumberConstructor)[];
17
+ };
18
+ icon: {
19
+ type: PropType<IconParam>;
20
+ };
21
+ title: {
22
+ type: StringConstructor;
23
+ };
24
+ description: {
25
+ type: StringConstructor;
26
+ };
27
+ actions: {
28
+ type: PropType<ActionBarItems>;
29
+ };
30
+ actionBarProps: {
31
+ type: PropType<ActionBarProps>;
32
+ };
33
+ split: {
34
+ type: BooleanConstructor;
35
+ };
36
+ onImageClick: {
37
+ type: FunctionConstructor;
38
+ };
39
+ onTitleClick: {
40
+ type: FunctionConstructor;
41
+ };
42
+ };
43
+ export type DataItemProps = ComponentPropsType<typeof dataItemProps>;
44
+ export type DataItemEmits = {
45
+ imageClick: [];
46
+ titleClick: [];
47
+ actionClick: [action: ActionProps];
48
+ actionCommand: [action: ActionProps, menu: ActionMenuItem];
49
+ };
@@ -1,7 +1,7 @@
1
1
  import { FormItemRule } from 'element-plus';
2
2
  import { Arrayable } from 'element-plus/es/utils';
3
3
  import { BaseSize } from '../shared';
4
- import { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
5
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
6
6
  modelValue: {
7
7
  type: BooleanConstructor;
@@ -32,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
32
32
  type: PropType<(model: Record<string, any>) => Promise<boolean>>;
33
33
  };
34
34
  }, {
35
+ $vtjEl: ComputedRef<any>;
35
36
  formRef: Ref<any>;
36
37
  dialogRef: Ref<any>;
37
38
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1,29 +1,31 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import { FieldOption } from '../types';
3
3
  export interface Props {
4
4
  options?: FieldOption[];
5
5
  button?: boolean;
6
6
  }
7
- declare const _default: DefineComponent<{
8
- button: {
9
- type: PropType<boolean>;
10
- default: boolean;
11
- };
12
- options: {
13
- type: PropType<FieldOption[]>;
14
- default: () => FieldOption[];
15
- };
16
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
17
- button: {
18
- type: PropType<boolean>;
19
- default: boolean;
20
- };
21
- options: {
22
- type: PropType<FieldOption[]>;
23
- default: () => FieldOption[];
24
- };
25
- }>>, {
7
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ options: () => FieldOption[];
9
+ button: boolean;
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ options: () => FieldOption[];
12
+ button: boolean;
13
+ }>>>, {
26
14
  button: boolean;
27
15
  options: FieldOption[];
28
16
  }, {}>;
29
17
  export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
@@ -1,29 +1,31 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import { FieldOption } from '../types';
3
3
  export interface Props {
4
4
  options?: FieldOption[];
5
5
  button?: boolean;
6
6
  }
7
- declare const _default: DefineComponent<{
8
- button: {
9
- type: PropType<boolean>;
10
- default: boolean;
11
- };
12
- options: {
13
- type: PropType<FieldOption[]>;
14
- default: () => FieldOption[];
15
- };
16
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
17
- button: {
18
- type: PropType<boolean>;
19
- default: boolean;
20
- };
21
- options: {
22
- type: PropType<FieldOption[]>;
23
- default: () => FieldOption[];
24
- };
25
- }>>, {
7
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ options: () => FieldOption[];
9
+ button: boolean;
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ options: () => FieldOption[];
12
+ button: boolean;
13
+ }>>>, {
26
14
  button: boolean;
27
15
  options: FieldOption[];
28
16
  }, {}>;
29
17
  export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };