@vtj/ui 0.10.6 → 0.10.8

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 (44) hide show
  1. package/dist/index.mjs +9 -8
  2. package/dist/index.umd.js +3 -3
  3. package/package.json +5 -5
  4. package/types/components/action/Action.d.ts +10 -3
  5. package/types/components/attachment/Attachment.d.ts +805 -274
  6. package/types/components/container/Container.d.ts +15 -178
  7. package/types/components/data-item/DataItem.d.ts +18 -517
  8. package/types/components/dialog/Dialog.d.ts +1203 -432
  9. package/types/components/dialog-form/DialogForm.d.ts +3049 -104
  10. package/types/components/dialog-grid/DialogGrid.d.ts +4907 -69
  11. package/types/components/field/Field.d.ts +353 -222
  12. package/types/components/field/editors/SelectEditor.d.ts +12 -21
  13. package/types/components/form/Form.d.ts +389 -116
  14. package/types/components/grid/Grid.d.ts +57 -787
  15. package/types/components/grid/renderers/components/DateEdit.d.ts +255 -2
  16. package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
  17. package/types/components/grid/renderers/components/GridEdit.d.ts +410 -2
  18. package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
  19. package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
  20. package/types/components/grid/renderers/components/PickerEdit.d.ts +1926 -2
  21. package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
  22. package/types/components/grid-editor/GridEditor.d.ts +375 -2
  23. package/types/components/header/Header.d.ts +14 -76
  24. package/types/components/icon/Icon.d.ts +74 -0
  25. package/types/components/import-button/ImportButton.d.ts +10 -47
  26. package/types/components/list/List.d.ts +30 -155
  27. package/types/components/mask/Mask.d.ts +562 -546
  28. package/types/components/mask/components/Avatar.d.ts +11 -16
  29. package/types/components/mask/components/Brand.d.ts +12 -17
  30. package/types/components/mask/components/Content.d.ts +12 -13
  31. package/types/components/mask/components/Sidebar.d.ts +12 -15
  32. package/types/components/mask/components/Tabs.d.ts +255 -2
  33. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  34. package/types/components/mask/components/Toolbar.d.ts +13 -55
  35. package/types/components/panel/Panel.d.ts +521 -124
  36. package/types/components/picker/Dialog.d.ts +1291 -2
  37. package/types/components/picker/Picker.d.ts +1730 -2
  38. package/types/components/qr-code/QrCode.d.ts +13 -35
  39. package/types/components/query-form/QueryForm.d.ts +1105 -418
  40. package/types/components/startup/Startup.d.ts +1 -1
  41. package/types/components/tabs/Tabs.d.ts +53 -297
  42. package/types/components/test/Test.d.ts +41 -268
  43. package/types/utils/auto-update.d.ts +1 -1
  44. package/types/version.d.ts +2 -2
@@ -38,5 +38,5 @@ declare const _default: DefineComponent<ExtractPropTypes<{
38
38
  tagline: string;
39
39
  actionText: string;
40
40
  actionLink: string;
41
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
41
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
42
42
  export default _default;
@@ -1,305 +1,61 @@
1
- import { ElTabs, ElTabPane, ElTooltipProps, BadgeProps, TooltipTriggerType, PopperEffect, ButtonProps } from 'element-plus';
2
- import { XAction, ActionProps, ActionMenuItem } from '../';
1
+ import { ActionProps, ActionMenuItem } from '../';
3
2
  import { TabsItem } from './types';
4
- import { useIcon } from '../../hooks';
5
- import { Ref, ComputedRef, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
6
3
  import { IconParam } from '../icon';
4
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
7
5
  import { ActionMode } from '../action';
6
+ import { ElTooltipProps, BadgeProps, TooltipTriggerType, PopperEffect, ButtonProps } from 'element-plus';
8
7
  import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
9
8
  import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
10
9
  import { BaseSize, BaseType } from '../shared';
11
- declare const isMounted: Ref<boolean, boolean>;
12
- declare const getTabPane: (item: TabsItem) => {
13
- label: string;
14
- name: string | number | undefined;
15
- disabled: boolean | undefined;
16
- closable: boolean | undefined;
17
- lazy: boolean | undefined;
18
- };
19
- declare const classComputed: ComputedRef<{
20
- [x: string]: boolean;
21
- 'is-no-border': boolean;
22
- 'is-fit': boolean;
23
- }>;
24
- declare const onActionClick: (e: ActionProps) => void;
25
- declare const onActionCommand: (e: ActionMenuItem) => void;
26
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
27
- declare var __VLS_10: {
28
- label: string;
29
- name?: string | number;
30
- icon?: IconParam;
31
- value?: string | number;
32
- data?: any;
33
- disabled?: boolean;
34
- closable?: boolean;
35
- lazy?: boolean;
36
- actions?: ActionProps[];
37
- component?: any;
38
- props?: Record<string, any>;
39
- slot?: string;
40
- }, __VLS_25: {
41
- label: string;
42
- name?: string | number;
43
- icon?: IconParam;
44
- value?: string | number;
45
- data?: any;
46
- disabled?: boolean;
47
- closable?: boolean;
48
- lazy?: boolean;
49
- actions?: ActionProps[];
50
- component?: any;
51
- props?: Record<string, any>;
52
- slot?: string;
53
- }, __VLS_32: string, __VLS_33: {
54
- label: string;
55
- name?: string | number;
56
- icon?: IconParam;
57
- value?: string | number;
58
- data?: any;
59
- disabled?: boolean;
60
- closable?: boolean;
61
- lazy?: boolean;
62
- actions?: ActionProps[];
63
- component?: any;
64
- props?: Record<string, any>;
65
- slot?: string;
66
- };
67
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
68
- [K in NonNullable<typeof __VLS_32>]?: (props: typeof __VLS_33) => any;
69
- } & {
70
- label?: (props: typeof __VLS_10) => any;
71
- } & {
72
- default?: (props: typeof __VLS_25) => any;
73
- }>;
74
- declare const __VLS_self: DefineComponent<ExtractPropTypes<{
75
- items: {
76
- type: PropType<TabsItem[]>;
77
- default(): never[];
78
- };
79
- border: {
80
- type: BooleanConstructor;
81
- };
82
- fit: {
83
- type: BooleanConstructor;
84
- };
85
- align: {
86
- type: PropType<"left" | "center" | "right">;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: Partial<Record<string, (_: {
13
+ label: string;
14
+ name?: string | number;
15
+ icon?: IconParam;
16
+ value?: string | number;
17
+ data?: any;
18
+ disabled?: boolean;
19
+ closable?: boolean;
20
+ lazy?: boolean;
21
+ actions?: ActionProps[];
22
+ component?: any;
23
+ props?: Record<string, any>;
24
+ slot?: string;
25
+ }) => any>> & {
26
+ label?(_: {
27
+ label: string;
28
+ name?: string | number;
29
+ icon?: IconParam;
30
+ value?: string | number;
31
+ data?: any;
32
+ disabled?: boolean;
33
+ closable?: boolean;
34
+ lazy?: boolean;
35
+ actions?: ActionProps[];
36
+ component?: any;
37
+ props?: Record<string, any>;
38
+ slot?: string;
39
+ }): any;
40
+ default?(_: {
41
+ label: string;
42
+ name?: string | number;
43
+ icon?: IconParam;
44
+ value?: string | number;
45
+ data?: any;
46
+ disabled?: boolean;
47
+ closable?: boolean;
48
+ lazy?: boolean;
49
+ actions?: ActionProps[];
50
+ component?: any;
51
+ props?: Record<string, any>;
52
+ slot?: string;
53
+ }): any;
87
54
  };
88
- }>, {
89
- ElTabs: typeof ElTabs;
90
- ElTabPane: typeof ElTabPane;
91
- XAction: typeof XAction;
92
- useIcon: typeof useIcon;
93
- isMounted: typeof isMounted;
94
- getTabPane: typeof getTabPane;
95
- classComputed: typeof classComputed;
96
- onActionClick: typeof onActionClick;
97
- onActionCommand: typeof onActionCommand;
98
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
99
- actionClick: (props: Readonly<Partial< ExtractPropTypes<{
100
- name: {
101
- type: StringConstructor;
102
- };
103
- label: {
104
- type: StringConstructor;
105
- };
106
- value: {
107
- type: PropType<unknown>;
108
- };
109
- icon: {
110
- type: PropType<IconParam>;
111
- };
112
- mode: {
113
- type: PropType<ActionMode>;
114
- default: string;
115
- };
116
- menus: {
117
- type: PropType<ActionMenuItem[]>;
118
- };
119
- tooltip: {
120
- type: PropType<string | Partial< ElTooltipProps>>;
121
- };
122
- badge: {
123
- type: PropType<string | number | Partial< BadgeProps>>;
124
- };
125
- dropdown: {
126
- type: PropType<Partial< ExtractPropTypes<{
127
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
128
- readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
129
- readonly effect: {
130
- readonly default: "light";
131
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
132
- readonly required: false;
133
- readonly validator: ((val: unknown) => boolean) | undefined;
134
- readonly __epPropKey: true;
135
- };
136
- readonly type: {
137
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
138
- readonly required: false;
139
- readonly validator: ((val: unknown) => boolean) | undefined;
140
- __epPropKey: true;
141
- };
142
- readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
143
- readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
144
- readonly id: StringConstructor;
145
- readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
146
- readonly splitButton: BooleanConstructor;
147
- readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
148
- readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
149
- readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
150
- readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
151
- readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
152
- readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
153
- readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
154
- readonly disabled: BooleanConstructor;
155
- readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
156
- readonly buttonProps: {
157
- readonly type: PropType<ButtonProps>;
158
- readonly required: false;
159
- readonly validator: ((val: unknown) => boolean) | undefined;
160
- __epPropKey: true;
161
- };
162
- readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
163
- readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
164
- }>>>;
165
- };
166
- button: {
167
- type: PropType<Partial< ButtonProps>>;
168
- };
169
- disabled: {
170
- type: PropType<boolean | (() => boolean)>;
171
- };
172
- size: {
173
- type: PropType<BaseSize>;
174
- default: string;
175
- };
176
- type: {
177
- type: PropType<BaseType>;
178
- };
179
- background: {
180
- type: PropType<"always" | "hover" | "none">;
181
- default: string;
182
- };
183
- circle: {
184
- type: BooleanConstructor;
185
- };
186
- draggable: {
187
- type: BooleanConstructor;
188
- };
189
- }>>>) => any;
190
- actionCommand: (item: ActionMenuItem) => any;
191
- }, string, PublicProps, Readonly< ExtractPropTypes<{
192
- items: {
193
- type: PropType<TabsItem[]>;
194
- default(): never[];
195
- };
196
- border: {
197
- type: BooleanConstructor;
198
- };
199
- fit: {
200
- type: BooleanConstructor;
201
- };
202
- align: {
203
- type: PropType<"left" | "center" | "right">;
204
- };
205
- }>> & Readonly<{
206
- onActionClick?: ((props: Readonly<Partial< ExtractPropTypes<{
207
- name: {
208
- type: StringConstructor;
209
- };
210
- label: {
211
- type: StringConstructor;
212
- };
213
- value: {
214
- type: PropType<unknown>;
215
- };
216
- icon: {
217
- type: PropType<IconParam>;
218
- };
219
- mode: {
220
- type: PropType<ActionMode>;
221
- default: string;
222
- };
223
- menus: {
224
- type: PropType<ActionMenuItem[]>;
225
- };
226
- tooltip: {
227
- type: PropType<string | Partial< ElTooltipProps>>;
228
- };
229
- badge: {
230
- type: PropType<string | number | Partial< BadgeProps>>;
231
- };
232
- dropdown: {
233
- type: PropType<Partial< ExtractPropTypes<{
234
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
235
- readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
236
- readonly effect: {
237
- readonly default: "light";
238
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
239
- readonly required: false;
240
- readonly validator: ((val: unknown) => boolean) | undefined;
241
- readonly __epPropKey: true;
242
- };
243
- readonly type: {
244
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
245
- readonly required: false;
246
- readonly validator: ((val: unknown) => boolean) | undefined;
247
- __epPropKey: true;
248
- };
249
- readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
250
- readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
251
- readonly id: StringConstructor;
252
- readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
253
- readonly splitButton: BooleanConstructor;
254
- readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
255
- readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
256
- readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
257
- readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
258
- readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
259
- readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
260
- readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
261
- readonly disabled: BooleanConstructor;
262
- readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
263
- readonly buttonProps: {
264
- readonly type: PropType<ButtonProps>;
265
- readonly required: false;
266
- readonly validator: ((val: unknown) => boolean) | undefined;
267
- __epPropKey: true;
268
- };
269
- readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
270
- readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
271
- }>>>;
272
- };
273
- button: {
274
- type: PropType<Partial< ButtonProps>>;
275
- };
276
- disabled: {
277
- type: PropType<boolean | (() => boolean)>;
278
- };
279
- size: {
280
- type: PropType<BaseSize>;
281
- default: string;
282
- };
283
- type: {
284
- type: PropType<BaseType>;
285
- };
286
- background: {
287
- type: PropType<"always" | "hover" | "none">;
288
- default: string;
289
- };
290
- circle: {
291
- type: BooleanConstructor;
292
- };
293
- draggable: {
294
- type: BooleanConstructor;
295
- };
296
- }>>>) => any) | undefined;
297
- onActionCommand?: ((item: ActionMenuItem) => any) | undefined;
298
- }>, {
299
- items: TabsItem[];
300
- fit: boolean;
301
- border: boolean;
302
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
55
+ refs: {};
56
+ rootEl: any;
57
+ };
58
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
303
59
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
304
60
  items: {
305
61
  type: PropType<TabsItem[]>;
@@ -521,9 +277,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
521
277
  fit: boolean;
522
278
  border: boolean;
523
279
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
524
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
280
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
525
281
  export default _default;
526
- type __VLS_WithSlots<T, S> = T & {
282
+ type __VLS_WithTemplateSlots<T, S> = T & {
527
283
  new (): {
528
284
  $slots: S;
529
285
  };