@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
|
@@ -68,28 +68,56 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
68
68
|
type: BooleanConstructor;
|
|
69
69
|
default: boolean;
|
|
70
70
|
};
|
|
71
|
-
minlength:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
minlength: {
|
|
72
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
maxlength: {
|
|
76
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
79
|
+
placeholder: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
required: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
label: {
|
|
88
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
floating: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
77
95
|
icon: {
|
|
78
|
-
type:
|
|
96
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
97
|
+
default: undefined;
|
|
79
98
|
};
|
|
80
99
|
iconPosition: {
|
|
81
100
|
type: globalThis.PropType<"before" | "after">;
|
|
82
101
|
default: import("../../constants").Position;
|
|
83
102
|
validation: (value: import("../../constants").Position) => boolean;
|
|
84
103
|
};
|
|
85
|
-
debounce:
|
|
104
|
+
debounce: {
|
|
105
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
86
108
|
count: {
|
|
87
109
|
type: (StringConstructor | BooleanConstructor)[];
|
|
88
110
|
default: boolean;
|
|
89
111
|
validator: (value: string) => boolean;
|
|
90
112
|
};
|
|
91
|
-
modifiers:
|
|
92
|
-
|
|
113
|
+
modifiers: {
|
|
114
|
+
type: globalThis.PropType<string | string[]>;
|
|
115
|
+
default: undefined;
|
|
116
|
+
};
|
|
117
|
+
loading: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
93
121
|
loadingLabel: {
|
|
94
122
|
type: StringConstructor;
|
|
95
123
|
default: string;
|
|
@@ -98,12 +126,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
98
126
|
type: StringConstructor;
|
|
99
127
|
default: string;
|
|
100
128
|
};
|
|
101
|
-
invalid:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
129
|
+
invalid: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
invalidLabel: {
|
|
134
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
135
|
+
default: undefined;
|
|
136
|
+
};
|
|
137
|
+
valid: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
validLabel: {
|
|
142
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
143
|
+
default: undefined;
|
|
144
|
+
};
|
|
145
|
+
readonly: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
disabled: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
107
153
|
tabindex: {
|
|
108
154
|
type: (StringConstructor | NumberConstructor)[];
|
|
109
155
|
default: number;
|
|
@@ -112,7 +158,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
112
158
|
type: StringConstructor;
|
|
113
159
|
default: string;
|
|
114
160
|
};
|
|
115
|
-
autofocus:
|
|
161
|
+
autofocus: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
116
165
|
name: {
|
|
117
166
|
type: StringConstructor;
|
|
118
167
|
required: boolean;
|
|
@@ -192,28 +241,56 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
192
241
|
type: BooleanConstructor;
|
|
193
242
|
default: boolean;
|
|
194
243
|
};
|
|
195
|
-
minlength:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
244
|
+
minlength: {
|
|
245
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
246
|
+
default: undefined;
|
|
247
|
+
};
|
|
248
|
+
maxlength: {
|
|
249
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
250
|
+
default: undefined;
|
|
251
|
+
};
|
|
252
|
+
placeholder: {
|
|
253
|
+
type: StringConstructor;
|
|
254
|
+
default: undefined;
|
|
255
|
+
};
|
|
256
|
+
required: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
label: {
|
|
261
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
262
|
+
default: undefined;
|
|
263
|
+
};
|
|
264
|
+
floating: {
|
|
265
|
+
type: BooleanConstructor;
|
|
266
|
+
default: boolean;
|
|
267
|
+
};
|
|
201
268
|
icon: {
|
|
202
|
-
type:
|
|
269
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
270
|
+
default: undefined;
|
|
203
271
|
};
|
|
204
272
|
iconPosition: {
|
|
205
273
|
type: globalThis.PropType<"before" | "after">;
|
|
206
274
|
default: import("../../constants").Position;
|
|
207
275
|
validation: (value: import("../../constants").Position) => boolean;
|
|
208
276
|
};
|
|
209
|
-
debounce:
|
|
277
|
+
debounce: {
|
|
278
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
279
|
+
default: undefined;
|
|
280
|
+
};
|
|
210
281
|
count: {
|
|
211
282
|
type: (StringConstructor | BooleanConstructor)[];
|
|
212
283
|
default: boolean;
|
|
213
284
|
validator: (value: string) => boolean;
|
|
214
285
|
};
|
|
215
|
-
modifiers:
|
|
216
|
-
|
|
286
|
+
modifiers: {
|
|
287
|
+
type: globalThis.PropType<string | string[]>;
|
|
288
|
+
default: undefined;
|
|
289
|
+
};
|
|
290
|
+
loading: {
|
|
291
|
+
type: BooleanConstructor;
|
|
292
|
+
default: boolean;
|
|
293
|
+
};
|
|
217
294
|
loadingLabel: {
|
|
218
295
|
type: StringConstructor;
|
|
219
296
|
default: string;
|
|
@@ -222,12 +299,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
222
299
|
type: StringConstructor;
|
|
223
300
|
default: string;
|
|
224
301
|
};
|
|
225
|
-
invalid:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
302
|
+
invalid: {
|
|
303
|
+
type: BooleanConstructor;
|
|
304
|
+
default: boolean;
|
|
305
|
+
};
|
|
306
|
+
invalidLabel: {
|
|
307
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
308
|
+
default: undefined;
|
|
309
|
+
};
|
|
310
|
+
valid: {
|
|
311
|
+
type: BooleanConstructor;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
314
|
+
validLabel: {
|
|
315
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
316
|
+
default: undefined;
|
|
317
|
+
};
|
|
318
|
+
readonly: {
|
|
319
|
+
type: BooleanConstructor;
|
|
320
|
+
default: boolean;
|
|
321
|
+
};
|
|
322
|
+
disabled: {
|
|
323
|
+
type: BooleanConstructor;
|
|
324
|
+
default: boolean;
|
|
325
|
+
};
|
|
231
326
|
tabindex: {
|
|
232
327
|
type: (StringConstructor | NumberConstructor)[];
|
|
233
328
|
default: number;
|
|
@@ -236,7 +331,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
236
331
|
type: StringConstructor;
|
|
237
332
|
default: string;
|
|
238
333
|
};
|
|
239
|
-
autofocus:
|
|
334
|
+
autofocus: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
240
338
|
name: {
|
|
241
339
|
type: StringConstructor;
|
|
242
340
|
required: boolean;
|
|
@@ -248,14 +346,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
248
346
|
valid: boolean;
|
|
249
347
|
invalid: boolean;
|
|
250
348
|
multiple: boolean;
|
|
349
|
+
modifiers: string | string[];
|
|
251
350
|
floating: boolean;
|
|
351
|
+
label: string | number;
|
|
252
352
|
type: import("../VvInputText").InputType;
|
|
253
353
|
required: boolean;
|
|
354
|
+
icon: string | import("../VvIcon").VvIconProps;
|
|
254
355
|
iconPosition: "before" | "after";
|
|
255
356
|
loading: boolean;
|
|
256
357
|
loadingLabel: string;
|
|
257
358
|
hintLabel: string;
|
|
359
|
+
invalidLabel: string | unknown[];
|
|
360
|
+
validLabel: string | unknown[];
|
|
258
361
|
tabindex: string | number;
|
|
362
|
+
placeholder: string;
|
|
259
363
|
autocomplete: string;
|
|
260
364
|
autofocus: boolean;
|
|
261
365
|
step: string | number;
|
|
@@ -272,6 +376,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
272
376
|
autoWidth: boolean;
|
|
273
377
|
hideActions: boolean;
|
|
274
378
|
selectOnFocus: boolean;
|
|
379
|
+
minlength: string | number;
|
|
380
|
+
maxlength: string | number;
|
|
381
|
+
debounce: string | number;
|
|
275
382
|
count: string | boolean;
|
|
276
383
|
}, {}>, {
|
|
277
384
|
before?(_: {
|
|
@@ -174,57 +174,102 @@ export declare const VvInputTextProps: {
|
|
|
174
174
|
type: BooleanConstructor;
|
|
175
175
|
default: boolean;
|
|
176
176
|
};
|
|
177
|
-
minlength:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
minlength: {
|
|
178
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
179
|
+
default: undefined;
|
|
180
|
+
};
|
|
181
|
+
maxlength: {
|
|
182
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
185
|
+
placeholder: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: undefined;
|
|
188
|
+
};
|
|
189
|
+
required: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
label: {
|
|
194
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
195
|
+
default: undefined;
|
|
196
|
+
};
|
|
197
|
+
floating: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
183
201
|
icon: {
|
|
184
|
-
type:
|
|
202
|
+
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
203
|
+
default: undefined;
|
|
185
204
|
};
|
|
186
205
|
iconPosition: {
|
|
187
206
|
type: PropType<"before" | "after">;
|
|
188
207
|
default: import("../../constants").Position;
|
|
189
208
|
validation: (value: import("../../constants").Position) => boolean;
|
|
190
209
|
};
|
|
191
|
-
debounce:
|
|
210
|
+
debounce: {
|
|
211
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
212
|
+
default: undefined;
|
|
213
|
+
}; /**
|
|
214
|
+
* Hide type number, password and search actions
|
|
215
|
+
*/
|
|
192
216
|
count: {
|
|
193
217
|
type: (StringConstructor | BooleanConstructor)[];
|
|
194
218
|
default: boolean;
|
|
195
219
|
validator: (value: string) => boolean;
|
|
196
220
|
};
|
|
197
|
-
modifiers:
|
|
198
|
-
|
|
221
|
+
modifiers: {
|
|
222
|
+
type: PropType<string | string[]>;
|
|
223
|
+
default: undefined;
|
|
224
|
+
};
|
|
225
|
+
loading: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
199
229
|
loadingLabel: {
|
|
200
230
|
type: StringConstructor;
|
|
201
231
|
default: string;
|
|
202
232
|
};
|
|
203
233
|
hintLabel: {
|
|
204
234
|
type: StringConstructor;
|
|
205
|
-
default: string;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
235
|
+
default: string;
|
|
236
|
+
};
|
|
237
|
+
invalid: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
invalidLabel: {
|
|
242
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
243
|
+
default: undefined;
|
|
244
|
+
};
|
|
245
|
+
valid: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
249
|
+
validLabel: {
|
|
250
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
251
|
+
default: undefined;
|
|
252
|
+
};
|
|
253
|
+
readonly: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
disabled: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: boolean;
|
|
260
|
+
};
|
|
217
261
|
tabindex: {
|
|
218
262
|
type: (StringConstructor | NumberConstructor)[];
|
|
219
|
-
default: number;
|
|
220
|
-
* Hide type number, password and search actions
|
|
221
|
-
*/
|
|
263
|
+
default: number;
|
|
222
264
|
};
|
|
223
265
|
autocomplete: {
|
|
224
266
|
type: StringConstructor;
|
|
225
267
|
default: string;
|
|
226
268
|
};
|
|
227
|
-
autofocus:
|
|
269
|
+
autofocus: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: boolean;
|
|
272
|
+
};
|
|
228
273
|
name: {
|
|
229
274
|
type: StringConstructor;
|
|
230
275
|
required: boolean;
|
|
@@ -71,6 +71,7 @@ const LinkProps = {
|
|
|
71
71
|
*/
|
|
72
72
|
target: {
|
|
73
73
|
type: String,
|
|
74
|
+
default: void 0,
|
|
74
75
|
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
75
76
|
},
|
|
76
77
|
/**
|
|
@@ -85,44 +86,65 @@ const DisabledProps = {
|
|
|
85
86
|
/**
|
|
86
87
|
* Whether the form control is disabled
|
|
87
88
|
*/
|
|
88
|
-
disabled:
|
|
89
|
+
disabled: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
92
|
+
}
|
|
89
93
|
};
|
|
90
94
|
const ActiveProps = {
|
|
91
95
|
/**
|
|
92
96
|
* Whether the item is active
|
|
93
97
|
*/
|
|
94
|
-
active:
|
|
98
|
+
active: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false
|
|
101
|
+
}
|
|
95
102
|
};
|
|
96
103
|
const CurrentProps = {
|
|
97
104
|
/**
|
|
98
105
|
* Whether the item is current
|
|
99
106
|
*/
|
|
100
|
-
current:
|
|
107
|
+
current: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false
|
|
110
|
+
}
|
|
101
111
|
};
|
|
102
112
|
const PressedProps = {
|
|
103
113
|
/**
|
|
104
114
|
* Whether the item is pressed
|
|
105
115
|
*/
|
|
106
|
-
pressed:
|
|
116
|
+
pressed: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
}
|
|
107
120
|
};
|
|
108
121
|
const LabelProps = {
|
|
109
122
|
/**
|
|
110
123
|
* The item label
|
|
111
124
|
*/
|
|
112
|
-
label:
|
|
125
|
+
label: {
|
|
126
|
+
type: [String, Number],
|
|
127
|
+
default: void 0
|
|
128
|
+
}
|
|
113
129
|
};
|
|
114
130
|
const ModifiersProps = {
|
|
115
131
|
/**
|
|
116
132
|
* Component BEM modifiers
|
|
117
133
|
*/
|
|
118
|
-
modifiers:
|
|
134
|
+
modifiers: {
|
|
135
|
+
type: [String, Array],
|
|
136
|
+
default: void 0
|
|
137
|
+
}
|
|
119
138
|
};
|
|
120
139
|
({
|
|
121
140
|
/**
|
|
122
141
|
* VvIcon name or props
|
|
123
142
|
* @see VVIcon
|
|
124
143
|
*/
|
|
125
|
-
icon: {
|
|
144
|
+
icon: {
|
|
145
|
+
type: [String, Object],
|
|
146
|
+
default: void 0
|
|
147
|
+
},
|
|
126
148
|
/**
|
|
127
149
|
* VvIcon position
|
|
128
150
|
*/
|
|
@@ -153,7 +175,8 @@ const ModifiersProps = {
|
|
|
153
175
|
* Dropdown show / hide transition name
|
|
154
176
|
*/
|
|
155
177
|
transitionName: {
|
|
156
|
-
type: String
|
|
178
|
+
type: String,
|
|
179
|
+
default: void 0
|
|
157
180
|
},
|
|
158
181
|
/**
|
|
159
182
|
* Offset of the dropdown from the trigger
|
|
@@ -221,7 +244,8 @@ const ModifiersProps = {
|
|
|
221
244
|
* Set dropdown width to the same as the trigger
|
|
222
245
|
*/
|
|
223
246
|
triggerWidth: {
|
|
224
|
-
type: Boolean
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: false
|
|
225
249
|
}
|
|
226
250
|
});
|
|
227
251
|
const ActionProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNav=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{}),a=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(a||{});const l=Symbol.for("volver"),i=Symbol.for("dropdownTrigger"),
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNav=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{}),a=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(a||{});const l=Symbol.for("volver"),i=Symbol.for("dropdownTrigger"),u=Symbol.for("dropdownAction"),s={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(a).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:{type:Boolean,default:!1}},c={active:{type:Boolean,default:!1}},v={current:{type:Boolean,default:!1}},f={pressed:{type:Boolean,default:!1}},p={label:{type:[String,Number],default:void 0}},m={modifiers:{type:[String,Array],default:void 0}};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...f,...c,...v,...s,type:{type:String,default:n.button,validator:e=>Object.values(n).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:r.button}},y={...m,...{items:{type:Array,default:()=>[]}}},k=b;const g=e.defineComponent({name:"VvAction",props:k,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:n}){const a=t,s=e.inject(l),d=e.ref(null);o({$el:d});const{reference:c,bus:v,aria:f,expanded:p}=e.inject(i,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const m=e.computed((()=>a.pressed||(null==p?void 0:p.value))),{role:b}=e.inject(u,{}),y=e.computed((()=>{switch(!0){case a.disabled:return r.button;case void 0!==a.to:return(null==s?void 0:s.nuxt)?r.nuxtLink:r.routerLink;case void 0!==a.href:return r.a;default:return a.defaultTag}})),k=e.computed((()=>{const e={...null==f?void 0:f.value,ariaPressed:!!m.value||void 0,ariaLabel:a.ariaLabel,role:null==b?void 0:b.value};switch(y.value){case r.a:return{...e,href:a.href,target:a.target,rel:a.rel};case r.routerLink:case r.nuxtLink:return{...e,to:a.to,target:a.target};case r.button:return{...e,type:a.type,disabled:a.disabled};default:return e}})),g=e=>{a.disabled?e.preventDefault():(null==v||v.emit("click",e),n("click",e))},B=e=>{null==v||v.emit("mouseover",e),n("mouseover",e)},_=e=>{null==v||v.emit("mouseleave",e),n("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y)),e.mergeProps(e.unref(k),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(m),disabled:t.disabled,current:t.current},onClickPassive:g,onMouseoverPassive:B,onMouseleavePassive:_}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}}),B={class:"vv-nav__item",role:"presentation"},_=e.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:t=>(t,o)=>(e.openBlock(),e.createElementBlock("li",B,[e.createVNode(g,e.mergeProps(t.$attrs,{class:"vv-nav__item-label"}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16)]))});const h=["onClick"];return e.defineComponent({__name:"VvNav",props:y,emits:["click"],setup(t,{emit:o}){const n=t,{modifiers:r}=e.toRefs(n),a=e=>{var t;const r=e.target;if(null==r?void 0:r.dataset.index){const e=parseInt(r.dataset.index),a=null==(t=n.items)?void 0:t[e];if(!a||(null==a?void 0:a.disabled))return;o("click",a)}},l=function(t,o,n){return e.computed((()=>{const r={[t]:!0},a="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return a&&Array.isArray(a)&&a.forEach((e=>{e&&(r[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{r[`${t}--${o}`]=e.unref(n.value[o])})),r}))}("vv-nav",r);return(t,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(l))},[e.createElementVNode("ul",{class:"vv-nav__menu",role:"menu","aria-busy":"true",onClick:e.withModifiers(a,["stop"])},[e.renderSlot(t.$slots,"default",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(({on:o={},data:n,...r},a)=>(e.openBlock(),e.createBlock(_,e.mergeProps({key:a,"data-index":a},r,e.toHandlers(o)),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"item",e.normalizeProps(e.guardReactiveProps({item:r,data:n,index:a})))])),_:2},1040,["data-index"])))),128))]))],8,h)],2))}})}));
|
|
@@ -3,7 +3,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
3
3
|
type: globalThis.PropType<import("../..").NavItem[]>;
|
|
4
4
|
default: () => never[];
|
|
5
5
|
};
|
|
6
|
-
modifiers:
|
|
6
|
+
modifiers: {
|
|
7
|
+
type: globalThis.PropType<string | string[]>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
7
10
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
11
|
[x: string]: (...args: any[]) => void;
|
|
9
12
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -11,8 +14,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
14
|
type: globalThis.PropType<import("../..").NavItem[]>;
|
|
12
15
|
default: () => never[];
|
|
13
16
|
};
|
|
14
|
-
modifiers:
|
|
17
|
+
modifiers: {
|
|
18
|
+
type: globalThis.PropType<string | string[]>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
15
21
|
}>>, {
|
|
22
|
+
modifiers: string | string[];
|
|
16
23
|
items: import("../..").NavItem[];
|
|
17
24
|
}, {}>, {
|
|
18
25
|
default?(_: {}): any;
|
|
@@ -3,6 +3,9 @@ export declare const VvNavProps: {
|
|
|
3
3
|
type: globalThis.PropType<import("../..").NavItem[]>;
|
|
4
4
|
default: () => never[];
|
|
5
5
|
};
|
|
6
|
-
modifiers:
|
|
6
|
+
modifiers: {
|
|
7
|
+
type: globalThis.PropType<string | string[]>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
7
10
|
};
|
|
8
11
|
export declare const VvNavEvents: string[];
|
|
@@ -71,6 +71,7 @@ const LinkProps = {
|
|
|
71
71
|
*/
|
|
72
72
|
target: {
|
|
73
73
|
type: String,
|
|
74
|
+
default: void 0,
|
|
74
75
|
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
75
76
|
},
|
|
76
77
|
/**
|
|
@@ -85,38 +86,56 @@ const DisabledProps = {
|
|
|
85
86
|
/**
|
|
86
87
|
* Whether the form control is disabled
|
|
87
88
|
*/
|
|
88
|
-
disabled:
|
|
89
|
+
disabled: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
92
|
+
}
|
|
89
93
|
};
|
|
90
94
|
const ActiveProps = {
|
|
91
95
|
/**
|
|
92
96
|
* Whether the item is active
|
|
93
97
|
*/
|
|
94
|
-
active:
|
|
98
|
+
active: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false
|
|
101
|
+
}
|
|
95
102
|
};
|
|
96
103
|
const CurrentProps = {
|
|
97
104
|
/**
|
|
98
105
|
* Whether the item is current
|
|
99
106
|
*/
|
|
100
|
-
current:
|
|
107
|
+
current: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false
|
|
110
|
+
}
|
|
101
111
|
};
|
|
102
112
|
const PressedProps = {
|
|
103
113
|
/**
|
|
104
114
|
* Whether the item is pressed
|
|
105
115
|
*/
|
|
106
|
-
pressed:
|
|
116
|
+
pressed: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
}
|
|
107
120
|
};
|
|
108
121
|
const LabelProps = {
|
|
109
122
|
/**
|
|
110
123
|
* The item label
|
|
111
124
|
*/
|
|
112
|
-
label:
|
|
125
|
+
label: {
|
|
126
|
+
type: [String, Number],
|
|
127
|
+
default: void 0
|
|
128
|
+
}
|
|
113
129
|
};
|
|
114
130
|
({
|
|
115
131
|
/**
|
|
116
132
|
* VvIcon name or props
|
|
117
133
|
* @see VVIcon
|
|
118
134
|
*/
|
|
119
|
-
icon: {
|
|
135
|
+
icon: {
|
|
136
|
+
type: [String, Object],
|
|
137
|
+
default: void 0
|
|
138
|
+
},
|
|
120
139
|
/**
|
|
121
140
|
* VvIcon position
|
|
122
141
|
*/
|
|
@@ -147,7 +166,8 @@ const LabelProps = {
|
|
|
147
166
|
* Dropdown show / hide transition name
|
|
148
167
|
*/
|
|
149
168
|
transitionName: {
|
|
150
|
-
type: String
|
|
169
|
+
type: String,
|
|
170
|
+
default: void 0
|
|
151
171
|
},
|
|
152
172
|
/**
|
|
153
173
|
* Offset of the dropdown from the trigger
|
|
@@ -215,7 +235,8 @@ const LabelProps = {
|
|
|
215
235
|
* Set dropdown width to the same as the trigger
|
|
216
236
|
*/
|
|
217
237
|
triggerWidth: {
|
|
218
|
-
type: Boolean
|
|
238
|
+
type: Boolean,
|
|
239
|
+
default: false
|
|
219
240
|
}
|
|
220
241
|
});
|
|
221
242
|
const ActionProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNavItem=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),n=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(n||{}),l=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(l||{});const a=Symbol.for("volver"),u=Symbol.for("dropdownTrigger"),i=Symbol.for("dropdownAction"),s={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(l).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:Boolean},c={active:Boolean},f={current:Boolean},v={pressed:Boolean},p={label:[String,Number]};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...v,...c,...f,...s,type:{type:String,default:r.button,validator:e=>Object.values(r).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:n.button}};const m=e.defineComponent({name:"VvAction",props:b,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:r}){const l=t,s=e.inject(a),d=e.ref(null);o({$el:d});const{reference:c,bus:f,aria:v,expanded:p}=e.inject(u,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const b=e.computed((()=>l.pressed||(null==p?void 0:p.value))),{role:m}=e.inject(i,{}),g=e.computed((()=>{switch(!0){case l.disabled:return n.button;case void 0!==l.to:return(null==s?void 0:s.nuxt)?n.nuxtLink:n.routerLink;case void 0!==l.href:return n.a;default:return l.defaultTag}})),
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNavItem=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),n=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(n||{}),l=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(l||{});const a=Symbol.for("volver"),u=Symbol.for("dropdownTrigger"),i=Symbol.for("dropdownAction"),s={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(l).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:{type:Boolean,default:!1}},c={active:{type:Boolean,default:!1}},f={current:{type:Boolean,default:!1}},v={pressed:{type:Boolean,default:!1}},p={label:{type:[String,Number],default:void 0}};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...v,...c,...f,...s,type:{type:String,default:r.button,validator:e=>Object.values(r).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:n.button}};const m=e.defineComponent({name:"VvAction",props:b,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:r}){const l=t,s=e.inject(a),d=e.ref(null);o({$el:d});const{reference:c,bus:f,aria:v,expanded:p}=e.inject(u,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const b=e.computed((()=>l.pressed||(null==p?void 0:p.value))),{role:m}=e.inject(i,{}),g=e.computed((()=>{switch(!0){case l.disabled:return n.button;case void 0!==l.to:return(null==s?void 0:s.nuxt)?n.nuxtLink:n.routerLink;case void 0!==l.href:return n.a;default:return l.defaultTag}})),y=e.computed((()=>{const e={...null==v?void 0:v.value,ariaPressed:!!b.value||void 0,ariaLabel:l.ariaLabel,role:null==m?void 0:m.value};switch(g.value){case n.a:return{...e,href:l.href,target:l.target,rel:l.rel};case n.routerLink:case n.nuxtLink:return{...e,to:l.to,target:l.target};case n.button:return{...e,type:l.type,disabled:l.disabled};default:return e}})),k=e=>{l.disabled?e.preventDefault():(null==f||f.emit("click",e),r("click",e))},B=e=>{null==f||f.emit("mouseover",e),r("mouseover",e)},h=e=>{null==f||f.emit("mouseleave",e),r("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),e.mergeProps(e.unref(y),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(b),disabled:t.disabled,current:t.current},onClickPassive:k,onMouseoverPassive:B,onMouseleavePassive:h}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}}),g={class:"vv-nav__item",role:"presentation"};return e.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:t=>(t,o)=>(e.openBlock(),e.createElementBlock("li",g,[e.createVNode(m,e.mergeProps(t.$attrs,{class:"vv-nav__item-label"}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16)]))})}));
|