@vtj/ui 0.10.4 → 0.10.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.
Files changed (43) hide show
  1. package/dist/index.mjs +180 -180
  2. package/dist/index.umd.js +3 -3
  3. package/package.json +3 -3
  4. package/types/components/action/Action.d.ts +3 -10
  5. package/types/components/attachment/Attachment.d.ts +274 -805
  6. package/types/components/container/Container.d.ts +178 -15
  7. package/types/components/data-item/DataItem.d.ts +517 -18
  8. package/types/components/dialog/Dialog.d.ts +372 -1143
  9. package/types/components/dialog-form/DialogForm.d.ts +104 -3049
  10. package/types/components/dialog-grid/DialogGrid.d.ts +69 -4907
  11. package/types/components/field/Field.d.ts +222 -353
  12. package/types/components/field/editors/SelectEditor.d.ts +21 -12
  13. package/types/components/form/Form.d.ts +116 -389
  14. package/types/components/grid/Grid.d.ts +787 -57
  15. package/types/components/grid/renderers/components/DateEdit.d.ts +2 -255
  16. package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
  17. package/types/components/grid/renderers/components/GridEdit.d.ts +2 -410
  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 +2 -1926
  21. package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
  22. package/types/components/grid-editor/GridEditor.d.ts +2 -375
  23. package/types/components/header/Header.d.ts +76 -14
  24. package/types/components/import-button/ImportButton.d.ts +47 -10
  25. package/types/components/list/List.d.ts +155 -30
  26. package/types/components/mask/Mask.d.ts +546 -562
  27. package/types/components/mask/components/Avatar.d.ts +16 -11
  28. package/types/components/mask/components/Brand.d.ts +17 -12
  29. package/types/components/mask/components/Content.d.ts +13 -12
  30. package/types/components/mask/components/Sidebar.d.ts +15 -12
  31. package/types/components/mask/components/Tabs.d.ts +2 -255
  32. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  33. package/types/components/mask/components/Toolbar.d.ts +55 -13
  34. package/types/components/panel/Panel.d.ts +124 -521
  35. package/types/components/picker/Dialog.d.ts +2 -1291
  36. package/types/components/picker/Picker.d.ts +2 -1730
  37. package/types/components/qr-code/QrCode.d.ts +35 -13
  38. package/types/components/query-form/QueryForm.d.ts +418 -1105
  39. package/types/components/startup/Startup.d.ts +1 -1
  40. package/types/components/tabs/Tabs.d.ts +297 -53
  41. package/types/components/test/Test.d.ts +268 -41
  42. package/types/version.d.ts +2 -2
  43. package/types/components/icon/Icon.d.ts +0 -74
@@ -1,42 +1,269 @@
1
- import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Partial<Record<string, (_: {}) => any>> & {
5
- default?(_: {
6
- props: {
7
- readonly booleanProp: boolean;
8
- readonly modelValue?: string | undefined;
9
- readonly stringProp?: string | undefined;
10
- readonly numberProp?: number | undefined;
11
- readonly selectProp?: string | undefined;
12
- readonly objectProp?: Record<string, any> | undefined;
13
- readonly arrayProp?: unknown[] | undefined;
14
- readonly iconProp?: string | undefined;
15
- readonly colorProp?: string | undefined;
16
- readonly syncProp?: string | undefined;
17
- };
18
- data: any;
19
- }): any;
20
- extra?(_: {
21
- props: {
22
- readonly booleanProp: boolean;
23
- readonly modelValue?: string | undefined;
24
- readonly stringProp?: string | undefined;
25
- readonly numberProp?: number | undefined;
26
- readonly selectProp?: string | undefined;
27
- readonly objectProp?: Record<string, any> | undefined;
28
- readonly arrayProp?: unknown[] | undefined;
29
- readonly iconProp?: string | undefined;
30
- readonly colorProp?: string | undefined;
31
- readonly syncProp?: string | undefined;
32
- };
33
- data: any;
34
- }): any;
35
- };
36
- refs: {};
37
- rootEl: any;
38
- };
39
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1
+ import { ElDivider, ElDescriptions, ElDescriptionsItem, ElButton, ElInput } from 'element-plus';
2
+ import { XPanel } from '../panel';
3
+ import { XContainer } from '../container';
4
+ import { ComputedRef, WritableComputedRef, Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
+ declare const propsArray: ComputedRef<[string, string | number | boolean | Record<string, any> | unknown[]][]>;
6
+ declare const $vtjDynamicSlots: () => string[];
7
+ declare const currentModelValue: WritableComputedRef<string | undefined, string | undefined>;
8
+ declare const currentSyncProp: WritableComputedRef<string | undefined, string | undefined>;
9
+ declare const data: Ref<any, any>;
10
+ declare const click: () => void;
11
+ declare const submit: () => void;
12
+ declare const onChange: () => void;
13
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
14
+ declare var __VLS_38: {
15
+ props: {
16
+ readonly booleanProp: boolean;
17
+ readonly modelValue?: string | undefined;
18
+ readonly stringProp?: string | undefined;
19
+ readonly numberProp?: number | undefined;
20
+ readonly selectProp?: string | undefined;
21
+ readonly objectProp?: Record<string, any> | undefined;
22
+ readonly arrayProp?: unknown[] | undefined;
23
+ readonly iconProp?: string | undefined;
24
+ readonly colorProp?: string | undefined;
25
+ readonly syncProp?: string | undefined;
26
+ };
27
+ data: any;
28
+ }, __VLS_44: {
29
+ props: {
30
+ readonly booleanProp: boolean;
31
+ readonly modelValue?: string | undefined;
32
+ readonly stringProp?: string | undefined;
33
+ readonly numberProp?: number | undefined;
34
+ readonly selectProp?: string | undefined;
35
+ readonly objectProp?: Record<string, any> | undefined;
36
+ readonly arrayProp?: unknown[] | undefined;
37
+ readonly iconProp?: string | undefined;
38
+ readonly colorProp?: string | undefined;
39
+ readonly syncProp?: string | undefined;
40
+ };
41
+ data: any;
42
+ }, __VLS_55: string, __VLS_56: {};
43
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
44
+ [K in NonNullable<typeof __VLS_55>]?: (props: typeof __VLS_56) => any;
45
+ } & {
46
+ default?: (props: typeof __VLS_38) => any;
47
+ } & {
48
+ extra?: (props: typeof __VLS_44) => any;
49
+ }>;
50
+ declare const __VLS_self: DefineComponent<ExtractPropTypes<{
51
+ stringProp: {
52
+ type: StringConstructor;
53
+ };
54
+ booleanProp: {
55
+ type: BooleanConstructor;
56
+ };
57
+ numberProp: {
58
+ type: NumberConstructor;
59
+ };
60
+ selectProp: {
61
+ type: StringConstructor;
62
+ };
63
+ objectProp: {
64
+ type: ObjectConstructor;
65
+ };
66
+ arrayProp: {
67
+ type: ArrayConstructor;
68
+ };
69
+ iconProp: {
70
+ type: StringConstructor;
71
+ };
72
+ colorProp: {
73
+ type: StringConstructor;
74
+ };
75
+ modelValue: {
76
+ type: StringConstructor;
77
+ };
78
+ syncProp: {
79
+ type: StringConstructor;
80
+ };
81
+ }>, {
82
+ ElDivider: typeof ElDivider;
83
+ ElDescriptions: typeof ElDescriptions;
84
+ ElDescriptionsItem: typeof ElDescriptionsItem;
85
+ ElButton: typeof ElButton;
86
+ ElInput: typeof ElInput;
87
+ XPanel: typeof XPanel;
88
+ XContainer: typeof XContainer;
89
+ propsArray: typeof propsArray;
90
+ $vtjDynamicSlots: typeof $vtjDynamicSlots;
91
+ currentModelValue: typeof currentModelValue;
92
+ currentSyncProp: typeof currentSyncProp;
93
+ data: typeof data;
94
+ click: typeof click;
95
+ submit: typeof submit;
96
+ onChange: typeof onChange;
97
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
98
+ click: (props: Readonly<Partial< ExtractPropTypes<{
99
+ stringProp: {
100
+ type: StringConstructor;
101
+ };
102
+ booleanProp: {
103
+ type: BooleanConstructor;
104
+ };
105
+ numberProp: {
106
+ type: NumberConstructor;
107
+ };
108
+ selectProp: {
109
+ type: StringConstructor;
110
+ };
111
+ objectProp: {
112
+ type: ObjectConstructor;
113
+ };
114
+ arrayProp: {
115
+ type: ArrayConstructor;
116
+ };
117
+ iconProp: {
118
+ type: StringConstructor;
119
+ };
120
+ colorProp: {
121
+ type: StringConstructor;
122
+ };
123
+ modelValue: {
124
+ type: StringConstructor;
125
+ };
126
+ syncProp: {
127
+ type: StringConstructor;
128
+ };
129
+ }>>>) => any;
130
+ submit: (props: Readonly<Partial< ExtractPropTypes<{
131
+ stringProp: {
132
+ type: StringConstructor;
133
+ };
134
+ booleanProp: {
135
+ type: BooleanConstructor;
136
+ };
137
+ numberProp: {
138
+ type: NumberConstructor;
139
+ };
140
+ selectProp: {
141
+ type: StringConstructor;
142
+ };
143
+ objectProp: {
144
+ type: ObjectConstructor;
145
+ };
146
+ arrayProp: {
147
+ type: ArrayConstructor;
148
+ };
149
+ iconProp: {
150
+ type: StringConstructor;
151
+ };
152
+ colorProp: {
153
+ type: StringConstructor;
154
+ };
155
+ modelValue: {
156
+ type: StringConstructor;
157
+ };
158
+ syncProp: {
159
+ type: StringConstructor;
160
+ };
161
+ }>>>) => any;
162
+ change: (data: any) => any;
163
+ "update:modelValue": (value?: string | undefined) => any;
164
+ "update:syncProp": (value?: string | undefined) => any;
165
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
166
+ stringProp: {
167
+ type: StringConstructor;
168
+ };
169
+ booleanProp: {
170
+ type: BooleanConstructor;
171
+ };
172
+ numberProp: {
173
+ type: NumberConstructor;
174
+ };
175
+ selectProp: {
176
+ type: StringConstructor;
177
+ };
178
+ objectProp: {
179
+ type: ObjectConstructor;
180
+ };
181
+ arrayProp: {
182
+ type: ArrayConstructor;
183
+ };
184
+ iconProp: {
185
+ type: StringConstructor;
186
+ };
187
+ colorProp: {
188
+ type: StringConstructor;
189
+ };
190
+ modelValue: {
191
+ type: StringConstructor;
192
+ };
193
+ syncProp: {
194
+ type: StringConstructor;
195
+ };
196
+ }>> & Readonly<{
197
+ onClick?: ((props: Readonly<Partial< ExtractPropTypes<{
198
+ stringProp: {
199
+ type: StringConstructor;
200
+ };
201
+ booleanProp: {
202
+ type: BooleanConstructor;
203
+ };
204
+ numberProp: {
205
+ type: NumberConstructor;
206
+ };
207
+ selectProp: {
208
+ type: StringConstructor;
209
+ };
210
+ objectProp: {
211
+ type: ObjectConstructor;
212
+ };
213
+ arrayProp: {
214
+ type: ArrayConstructor;
215
+ };
216
+ iconProp: {
217
+ type: StringConstructor;
218
+ };
219
+ colorProp: {
220
+ type: StringConstructor;
221
+ };
222
+ modelValue: {
223
+ type: StringConstructor;
224
+ };
225
+ syncProp: {
226
+ type: StringConstructor;
227
+ };
228
+ }>>>) => any) | undefined;
229
+ onSubmit?: ((props: Readonly<Partial< ExtractPropTypes<{
230
+ stringProp: {
231
+ type: StringConstructor;
232
+ };
233
+ booleanProp: {
234
+ type: BooleanConstructor;
235
+ };
236
+ numberProp: {
237
+ type: NumberConstructor;
238
+ };
239
+ selectProp: {
240
+ type: StringConstructor;
241
+ };
242
+ objectProp: {
243
+ type: ObjectConstructor;
244
+ };
245
+ arrayProp: {
246
+ type: ArrayConstructor;
247
+ };
248
+ iconProp: {
249
+ type: StringConstructor;
250
+ };
251
+ colorProp: {
252
+ type: StringConstructor;
253
+ };
254
+ modelValue: {
255
+ type: StringConstructor;
256
+ };
257
+ syncProp: {
258
+ type: StringConstructor;
259
+ };
260
+ }>>>) => any) | undefined;
261
+ onChange?: ((data: any) => any) | undefined;
262
+ "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
263
+ "onUpdate:syncProp"?: ((value?: string | undefined) => any) | undefined;
264
+ }>, {
265
+ booleanProp: boolean;
266
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
267
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
41
268
  stringProp: {
42
269
  type: StringConstructor;
@@ -244,9 +471,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
244
471
  }>, {
245
472
  booleanProp: boolean;
246
473
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
247
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
474
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
248
475
  export default _default;
249
- type __VLS_WithTemplateSlots<T, S> = T & {
476
+ type __VLS_WithSlots<T, S> = T & {
250
477
  new (): {
251
478
  $slots: S;
252
479
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/ui
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.10.3
5
+ * @version 0.10.5
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.10.3";
8
+ export declare const version = "0.10.5";
@@ -1,74 +0,0 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- import { IconSize } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {}): any;
7
- };
8
- refs: {};
9
- rootEl: any;
10
- };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: DefineComponent<ExtractPropTypes<{
13
- icon: {
14
- type: PropType<string | object | VNode>;
15
- };
16
- color: {
17
- type: StringConstructor;
18
- };
19
- size: {
20
- type: PropType<IconSize>;
21
- default: string;
22
- };
23
- src: {
24
- type: StringConstructor;
25
- };
26
- background: {
27
- type: StringConstructor;
28
- };
29
- padding: {
30
- type: NumberConstructor;
31
- };
32
- radius: {
33
- type: NumberConstructor;
34
- };
35
- hoverEffect: {
36
- type: BooleanConstructor;
37
- };
38
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
39
- icon: {
40
- type: PropType<string | object | VNode>;
41
- };
42
- color: {
43
- type: StringConstructor;
44
- };
45
- size: {
46
- type: PropType<IconSize>;
47
- default: string;
48
- };
49
- src: {
50
- type: StringConstructor;
51
- };
52
- background: {
53
- type: StringConstructor;
54
- };
55
- padding: {
56
- type: NumberConstructor;
57
- };
58
- radius: {
59
- type: NumberConstructor;
60
- };
61
- hoverEffect: {
62
- type: BooleanConstructor;
63
- };
64
- }>> & Readonly<{}>, {
65
- size: IconSize;
66
- hoverEffect: boolean;
67
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
68
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
- export default _default;
70
- type __VLS_WithTemplateSlots<T, S> = T & {
71
- new (): {
72
- $slots: S;
73
- };
74
- };