@volverjs/ui-vue 0.0.10-beta.14 → 0.0.10-beta.16
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/README.md +96 -2
- package/auto-imports.d.ts +2 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +33 -9
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +9 -2
- package/dist/components/VvAccordion/index.d.ts +4 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +33 -9
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +9 -2
- package/dist/components/VvAccordionGroup/index.d.ts +4 -1
- package/dist/components/VvAction/VvAction.es.js +29 -8
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +44 -10
- package/dist/components/VvAction/index.d.ts +21 -5
- package/dist/components/VvAlert/VvAlert.es.js +91 -107
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +14 -4
- package/dist/components/VvAlert/index.d.ts +7 -3
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +91 -107
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +9 -2
- package/dist/components/VvAlertGroup/index.d.ts +6 -2
- package/dist/components/VvAvatar/VvAvatar.es.js +33 -9
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +11 -3
- package/dist/components/VvAvatar/index.d.ts +4 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +33 -9
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +9 -2
- package/dist/components/VvAvatarGroup/index.d.ts +4 -1
- package/dist/components/VvBadge/VvBadge.es.js +33 -9
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +11 -3
- package/dist/components/VvBadge/index.d.ts +4 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +33 -9
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +11 -3
- package/dist/components/VvBreadcrumb/index.d.ts +4 -1
- package/dist/components/VvButton/VvButton.es.js +100 -119
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +78 -20
- package/dist/components/VvButton/index.d.ts +34 -12
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +33 -9
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +17 -4
- package/dist/components/VvButtonGroup/index.d.ts +8 -2
- package/dist/components/VvCard/VvCard.es.js +33 -9
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +11 -3
- package/dist/components/VvCard/index.d.ts +4 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +56 -17
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +94 -22
- package/dist/components/VvCheckbox/index.d.ts +44 -11
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +64 -19
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +93 -22
- package/dist/components/VvCheckboxGroup/index.d.ts +44 -11
- package/dist/components/VvCombobox/VvCombobox.es.js +108 -165
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +97 -24
- package/dist/components/VvCombobox/index.d.ts +42 -11
- package/dist/components/VvDialog/VvDialog.es.js +51 -103
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +33 -9
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +14 -2
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +61 -12
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +11 -3
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +25 -6
- package/dist/components/VvDropdown/index.d.ts +6 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +33 -9
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +29 -8
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +37 -10
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +22 -95
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +81 -44
- package/dist/components/VvIcon/index.d.ts +21 -48
- package/dist/components/VvInputFile/VvInputFile.es.js +108 -124
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +52 -12
- package/dist/components/VvInputFile/index.d.ts +24 -6
- package/dist/components/VvInputText/VvInputText.es.js +115 -147
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +141 -34
- package/dist/components/VvInputText/index.d.ts +71 -26
- package/dist/components/VvNav/VvNav.es.js +33 -9
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +9 -2
- package/dist/components/VvNav/index.d.ts +4 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +29 -8
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +33 -9
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +9 -2
- package/dist/components/VvProgress/index.d.ts +4 -1
- package/dist/components/VvRadio/VvRadio.es.js +56 -17
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +94 -22
- package/dist/components/VvRadio/index.d.ts +44 -11
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +64 -19
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +93 -22
- package/dist/components/VvRadioGroup/index.d.ts +44 -11
- package/dist/components/VvSelect/VvSelect.es.js +95 -138
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +97 -24
- package/dist/components/VvSelect/index.d.ts +46 -12
- package/dist/components/VvTab/VvTab.es.js +33 -9
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +9 -2
- package/dist/components/VvTab/index.d.ts +4 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +109 -143
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +141 -34
- package/dist/components/VvTextarea/index.d.ts +66 -17
- package/dist/components/VvTooltip/VvTooltip.es.js +33 -9
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +9 -2
- package/dist/components/VvTooltip/index.d.ts +4 -1
- package/dist/components/index.es.js +179 -233
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/useComponentIcon.d.ts +9 -8
- package/dist/directives/index.es.js +33 -9
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +33 -9
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +251 -61
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +15 -4
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +77 -22
- package/dist/stories/Icon/Icon.settings.d.ts +1 -0
- package/package.json +33 -33
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAlert/index.ts +1 -3
- package/src/components/VvAlertGroup/index.ts +2 -1
- package/src/components/VvButton/VvButton.vue +6 -6
- package/src/components/VvButton/index.ts +2 -4
- package/src/components/VvCombobox/VvCombobox.vue +5 -8
- package/src/components/VvIcon/VvIcon.vue +2 -2
- package/src/components/VvIcon/index.ts +22 -48
- package/src/components/VvInputFile/VvInputFile.vue +1 -1
- package/src/components/VvInputText/VvInputText.vue +11 -12
- package/src/components/VvSelect/VvSelect.vue +5 -8
- package/src/components/VvTextarea/VvTextarea.vue +5 -8
- package/src/composables/useComponentIcon.ts +15 -14
- package/src/props/index.ts +89 -25
- package/src/stories/Icon/Icon.settings.ts +3 -3
|
@@ -17,28 +17,56 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
resizable: BooleanConstructor;
|
|
20
|
-
minlength:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
minlength: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
maxlength: {
|
|
25
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
placeholder: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
required: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
label: {
|
|
37
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
floating: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
26
44
|
icon: {
|
|
27
|
-
type:
|
|
45
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
46
|
+
default: undefined;
|
|
28
47
|
};
|
|
29
48
|
iconPosition: {
|
|
30
49
|
type: globalThis.PropType<"before" | "after">;
|
|
31
50
|
default: import("../../constants").Position;
|
|
32
51
|
validation: (value: import("../../constants").Position) => boolean;
|
|
33
52
|
};
|
|
34
|
-
debounce:
|
|
53
|
+
debounce: {
|
|
54
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
35
57
|
count: {
|
|
36
58
|
type: (StringConstructor | BooleanConstructor)[];
|
|
37
59
|
default: boolean;
|
|
38
60
|
validator: (value: string) => boolean;
|
|
39
61
|
};
|
|
40
|
-
modifiers:
|
|
41
|
-
|
|
62
|
+
modifiers: {
|
|
63
|
+
type: globalThis.PropType<string | string[]>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
loading: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
42
70
|
loadingLabel: {
|
|
43
71
|
type: StringConstructor;
|
|
44
72
|
default: string;
|
|
@@ -47,12 +75,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
47
75
|
type: StringConstructor;
|
|
48
76
|
default: string;
|
|
49
77
|
};
|
|
50
|
-
invalid:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
78
|
+
invalid: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
invalidLabel: {
|
|
83
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
valid: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
validLabel: {
|
|
91
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
readonly: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
disabled: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
56
102
|
tabindex: {
|
|
57
103
|
type: (StringConstructor | NumberConstructor)[];
|
|
58
104
|
default: number;
|
|
@@ -61,7 +107,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
61
107
|
type: StringConstructor;
|
|
62
108
|
default: string;
|
|
63
109
|
};
|
|
64
|
-
autofocus:
|
|
110
|
+
autofocus: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
65
114
|
name: {
|
|
66
115
|
type: StringConstructor;
|
|
67
116
|
required: boolean;
|
|
@@ -88,28 +137,56 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
88
137
|
default: string;
|
|
89
138
|
};
|
|
90
139
|
resizable: BooleanConstructor;
|
|
91
|
-
minlength:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
140
|
+
minlength: {
|
|
141
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
maxlength: {
|
|
145
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
146
|
+
default: undefined;
|
|
147
|
+
};
|
|
148
|
+
placeholder: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
default: undefined;
|
|
151
|
+
};
|
|
152
|
+
required: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
label: {
|
|
157
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
158
|
+
default: undefined;
|
|
159
|
+
};
|
|
160
|
+
floating: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
97
164
|
icon: {
|
|
98
|
-
type:
|
|
165
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
166
|
+
default: undefined;
|
|
99
167
|
};
|
|
100
168
|
iconPosition: {
|
|
101
169
|
type: globalThis.PropType<"before" | "after">;
|
|
102
170
|
default: import("../../constants").Position;
|
|
103
171
|
validation: (value: import("../../constants").Position) => boolean;
|
|
104
172
|
};
|
|
105
|
-
debounce:
|
|
173
|
+
debounce: {
|
|
174
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
175
|
+
default: undefined;
|
|
176
|
+
};
|
|
106
177
|
count: {
|
|
107
178
|
type: (StringConstructor | BooleanConstructor)[];
|
|
108
179
|
default: boolean;
|
|
109
180
|
validator: (value: string) => boolean;
|
|
110
181
|
};
|
|
111
|
-
modifiers:
|
|
112
|
-
|
|
182
|
+
modifiers: {
|
|
183
|
+
type: globalThis.PropType<string | string[]>;
|
|
184
|
+
default: undefined;
|
|
185
|
+
};
|
|
186
|
+
loading: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
113
190
|
loadingLabel: {
|
|
114
191
|
type: StringConstructor;
|
|
115
192
|
default: string;
|
|
@@ -118,12 +195,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
118
195
|
type: StringConstructor;
|
|
119
196
|
default: string;
|
|
120
197
|
};
|
|
121
|
-
invalid:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
198
|
+
invalid: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
invalidLabel: {
|
|
203
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
204
|
+
default: undefined;
|
|
205
|
+
};
|
|
206
|
+
valid: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
validLabel: {
|
|
211
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
212
|
+
default: undefined;
|
|
213
|
+
};
|
|
214
|
+
readonly: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: boolean;
|
|
217
|
+
};
|
|
218
|
+
disabled: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
127
222
|
tabindex: {
|
|
128
223
|
type: (StringConstructor | NumberConstructor)[];
|
|
129
224
|
default: number;
|
|
@@ -132,7 +227,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
132
227
|
type: StringConstructor;
|
|
133
228
|
default: string;
|
|
134
229
|
};
|
|
135
|
-
autofocus:
|
|
230
|
+
autofocus: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
default: boolean;
|
|
233
|
+
};
|
|
136
234
|
name: {
|
|
137
235
|
type: StringConstructor;
|
|
138
236
|
required: boolean;
|
|
@@ -143,16 +241,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
143
241
|
disabled: boolean;
|
|
144
242
|
valid: boolean;
|
|
145
243
|
invalid: boolean;
|
|
244
|
+
modifiers: string | string[];
|
|
146
245
|
floating: boolean;
|
|
246
|
+
label: string | number;
|
|
147
247
|
required: boolean;
|
|
248
|
+
icon: string | import("../VvIcon").VvIconProps;
|
|
148
249
|
iconPosition: "before" | "after";
|
|
149
250
|
loading: boolean;
|
|
150
251
|
loadingLabel: string;
|
|
151
252
|
hintLabel: string;
|
|
253
|
+
invalidLabel: string | unknown[];
|
|
254
|
+
validLabel: string | unknown[];
|
|
152
255
|
tabindex: string | number;
|
|
256
|
+
placeholder: string;
|
|
153
257
|
autocomplete: string;
|
|
154
258
|
autofocus: boolean;
|
|
155
259
|
spellcheck: string | boolean;
|
|
260
|
+
minlength: string | number;
|
|
261
|
+
maxlength: string | number;
|
|
262
|
+
debounce: string | number;
|
|
156
263
|
count: string | boolean;
|
|
157
264
|
cols: string | number;
|
|
158
265
|
rows: string | number;
|
|
@@ -51,28 +51,56 @@ export declare const VvTextareaProps: {
|
|
|
51
51
|
* If true, the textarea will be resizable
|
|
52
52
|
*/
|
|
53
53
|
resizable: BooleanConstructor;
|
|
54
|
-
minlength:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
minlength: {
|
|
55
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
maxlength: {
|
|
59
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
placeholder: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
required: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
label: {
|
|
71
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
floating: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
60
78
|
icon: {
|
|
61
|
-
type:
|
|
79
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
80
|
+
default: undefined;
|
|
62
81
|
};
|
|
63
82
|
iconPosition: {
|
|
64
83
|
type: globalThis.PropType<"before" | "after">;
|
|
65
84
|
default: import("../../constants").Position;
|
|
66
85
|
validation: (value: import("../../constants").Position) => boolean;
|
|
67
86
|
};
|
|
68
|
-
debounce:
|
|
87
|
+
debounce: {
|
|
88
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
69
91
|
count: {
|
|
70
92
|
type: (StringConstructor | BooleanConstructor)[];
|
|
71
93
|
default: boolean;
|
|
72
94
|
validator: (value: string) => boolean;
|
|
73
95
|
};
|
|
74
|
-
modifiers:
|
|
75
|
-
|
|
96
|
+
modifiers: {
|
|
97
|
+
type: globalThis.PropType<string | string[]>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
loading: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
76
104
|
loadingLabel: {
|
|
77
105
|
type: StringConstructor;
|
|
78
106
|
default: string;
|
|
@@ -81,12 +109,30 @@ export declare const VvTextareaProps: {
|
|
|
81
109
|
type: StringConstructor;
|
|
82
110
|
default: string;
|
|
83
111
|
};
|
|
84
|
-
invalid:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
112
|
+
invalid: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
invalidLabel: {
|
|
117
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
valid: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
validLabel: {
|
|
125
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
readonly: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
disabled: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
90
136
|
tabindex: {
|
|
91
137
|
type: (StringConstructor | NumberConstructor)[];
|
|
92
138
|
default: number;
|
|
@@ -95,7 +141,10 @@ export declare const VvTextareaProps: {
|
|
|
95
141
|
type: StringConstructor;
|
|
96
142
|
default: string;
|
|
97
143
|
};
|
|
98
|
-
autofocus:
|
|
144
|
+
autofocus: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
99
148
|
name: {
|
|
100
149
|
type: StringConstructor;
|
|
101
150
|
required: boolean;
|
|
@@ -64,6 +64,7 @@ const LinkProps = {
|
|
|
64
64
|
*/
|
|
65
65
|
target: {
|
|
66
66
|
type: String,
|
|
67
|
+
default: void 0,
|
|
67
68
|
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
68
69
|
},
|
|
69
70
|
/**
|
|
@@ -78,44 +79,65 @@ const DisabledProps = {
|
|
|
78
79
|
/**
|
|
79
80
|
* Whether the form control is disabled
|
|
80
81
|
*/
|
|
81
|
-
disabled:
|
|
82
|
+
disabled: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: false
|
|
85
|
+
}
|
|
82
86
|
};
|
|
83
87
|
const ActiveProps = {
|
|
84
88
|
/**
|
|
85
89
|
* Whether the item is active
|
|
86
90
|
*/
|
|
87
|
-
active:
|
|
91
|
+
active: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: false
|
|
94
|
+
}
|
|
88
95
|
};
|
|
89
96
|
const CurrentProps = {
|
|
90
97
|
/**
|
|
91
98
|
* Whether the item is current
|
|
92
99
|
*/
|
|
93
|
-
current:
|
|
100
|
+
current: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false
|
|
103
|
+
}
|
|
94
104
|
};
|
|
95
105
|
const PressedProps = {
|
|
96
106
|
/**
|
|
97
107
|
* Whether the item is pressed
|
|
98
108
|
*/
|
|
99
|
-
pressed:
|
|
109
|
+
pressed: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: false
|
|
112
|
+
}
|
|
100
113
|
};
|
|
101
114
|
const LabelProps = {
|
|
102
115
|
/**
|
|
103
116
|
* The item label
|
|
104
117
|
*/
|
|
105
|
-
label:
|
|
118
|
+
label: {
|
|
119
|
+
type: [String, Number],
|
|
120
|
+
default: void 0
|
|
121
|
+
}
|
|
106
122
|
};
|
|
107
123
|
const ModifiersProps = {
|
|
108
124
|
/**
|
|
109
125
|
* Component BEM modifiers
|
|
110
126
|
*/
|
|
111
|
-
modifiers:
|
|
127
|
+
modifiers: {
|
|
128
|
+
type: [String, Array],
|
|
129
|
+
default: void 0
|
|
130
|
+
}
|
|
112
131
|
};
|
|
113
132
|
({
|
|
114
133
|
/**
|
|
115
134
|
* VvIcon name or props
|
|
116
135
|
* @see VVIcon
|
|
117
136
|
*/
|
|
118
|
-
icon: {
|
|
137
|
+
icon: {
|
|
138
|
+
type: [String, Object],
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
119
141
|
/**
|
|
120
142
|
* VvIcon position
|
|
121
143
|
*/
|
|
@@ -146,7 +168,8 @@ const ModifiersProps = {
|
|
|
146
168
|
* Dropdown show / hide transition name
|
|
147
169
|
*/
|
|
148
170
|
transitionName: {
|
|
149
|
-
type: String
|
|
171
|
+
type: String,
|
|
172
|
+
default: void 0
|
|
150
173
|
},
|
|
151
174
|
/**
|
|
152
175
|
* Offset of the dropdown from the trigger
|
|
@@ -214,7 +237,8 @@ const ModifiersProps = {
|
|
|
214
237
|
* Set dropdown width to the same as the trigger
|
|
215
238
|
*/
|
|
216
239
|
triggerWidth: {
|
|
217
|
-
type: Boolean
|
|
240
|
+
type: Boolean,
|
|
241
|
+
default: false
|
|
218
242
|
}
|
|
219
243
|
});
|
|
220
244
|
({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvTooltip=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvTooltip=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),l=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(l||{});Boolean,Boolean,Boolean,Boolean;const r={modifiers:{type:[String,Array],default:void 0}};t.before,o.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,n.button,l.button;const i={...r,position:{type:String,default:o.bottom},value:{type:String}};return e.defineComponent({__name:"VvTooltip",props:i,setup(o){const t=o,{modifiers:n}=e.toRefs(t),l=function(o,t,n){return e.computed((()=>{const l={[o]:!0},r="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return r&&Array.isArray(r)&&r.forEach((e=>{e&&(l[`${o}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((t=>{l[`${o}--${t}`]=e.unref(n.value[t])})),l}))}("vv-tooltip",n,e.computed((()=>({[t.position]:!0}))));return(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(l)),role:"tooltip",inert:""},[e.renderSlot(o.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(o.value),1)]))],2))}})}));
|
|
@@ -6,7 +6,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
6
6
|
value: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
};
|
|
9
|
-
modifiers:
|
|
9
|
+
modifiers: {
|
|
10
|
+
type: globalThis.PropType<string | string[]>;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
10
13
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
14
|
position: {
|
|
12
15
|
type: globalThis.PropType<"left" | "right" | "top" | "bottom">;
|
|
@@ -15,8 +18,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
18
|
value: {
|
|
16
19
|
type: StringConstructor;
|
|
17
20
|
};
|
|
18
|
-
modifiers:
|
|
21
|
+
modifiers: {
|
|
22
|
+
type: globalThis.PropType<string | string[]>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
19
25
|
}>>, {
|
|
26
|
+
modifiers: string | string[];
|
|
20
27
|
position: "left" | "right" | "top" | "bottom";
|
|
21
28
|
}, {}>, {
|
|
22
29
|
default?(_: {}): any;
|