@volverjs/ui-vue 0.0.10-beta.21 → 0.0.10-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/VvAccordion/VvAccordion.es.js +1 -3
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +1 -6
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAction/VvAction.es.js +1 -2
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +0 -7
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +0 -10
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +1 -2
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +1 -3
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvButton/VvButton.es.js +15 -33
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +1 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvCard/VvCard.es.js +1 -5
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +1 -2
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +2 -13
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +15 -48
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +26 -26
- package/dist/components/VvCombobox/index.d.ts +8 -8
- package/dist/components/VvDialog/VvDialog.es.js +0 -3
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +29 -29
- package/dist/components/VvDropdown/index.d.ts +8 -8
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +1 -2
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.es.js +37 -34
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +43 -4
- package/dist/components/VvInputFile/index.d.ts +14 -2
- package/dist/components/VvInputText/VvInputText.es.js +0 -6
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvNav/VvNav.es.js +1 -2
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +1 -2
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +1 -13
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +0 -4
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvTab/VvTab.es.js +2 -7
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +0 -4
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/index.es.js +41 -114
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +20 -12
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +8 -14
- package/dist/resolvers/unplugin.es.js +20 -12
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/package.json +31 -31
- 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/VvInputFile/VvInputFile.vue +7 -1
- package/src/components/VvInputFile/index.ts +20 -2
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
33
|
default: undefined;
|
|
34
34
|
};
|
|
35
35
|
offset: {
|
|
36
|
-
type: globalThis.PropType<string | import("@floating-ui/
|
|
36
|
+
type: globalThis.PropType<string | import("@floating-ui/core").OffsetOptions | undefined>;
|
|
37
37
|
default: number;
|
|
38
38
|
};
|
|
39
39
|
shift: {
|
|
@@ -45,11 +45,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
45
45
|
crossAxis?: boolean | undefined;
|
|
46
46
|
mainAxis?: boolean | undefined;
|
|
47
47
|
limiter?: {
|
|
48
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
48
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
49
49
|
options?: any;
|
|
50
50
|
} | undefined;
|
|
51
51
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
52
|
-
} | import("@floating-ui/
|
|
52
|
+
} | import("@floating-ui/core").Derivable<{
|
|
53
53
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
54
54
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
55
55
|
altBoundary?: boolean | undefined;
|
|
@@ -57,7 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
crossAxis?: boolean | undefined;
|
|
58
58
|
mainAxis?: boolean | undefined;
|
|
59
59
|
limiter?: {
|
|
60
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
60
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
61
61
|
options?: any;
|
|
62
62
|
} | undefined;
|
|
63
63
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -73,11 +73,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
73
73
|
crossAxis?: boolean | undefined;
|
|
74
74
|
mainAxis?: boolean | undefined;
|
|
75
75
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
76
|
-
fallbackStrategy?: "
|
|
76
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
77
77
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
78
78
|
flipAlignment?: boolean | undefined;
|
|
79
79
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
80
|
-
} | import("@floating-ui/
|
|
80
|
+
} | import("@floating-ui/core").Derivable<{
|
|
81
81
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
82
82
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
83
83
|
altBoundary?: boolean | undefined;
|
|
@@ -85,7 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
85
85
|
crossAxis?: boolean | undefined;
|
|
86
86
|
mainAxis?: boolean | undefined;
|
|
87
87
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
88
|
-
fallbackStrategy?: "
|
|
88
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
89
89
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
90
90
|
flipAlignment?: boolean | undefined;
|
|
91
91
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -113,7 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
113
113
|
availableWidth: number;
|
|
114
114
|
availableHeight: number;
|
|
115
115
|
}) => void | Promise<void>) | undefined;
|
|
116
|
-
} | import("@floating-ui/
|
|
116
|
+
} | import("@floating-ui/core").Derivable<{
|
|
117
117
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
118
118
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
119
119
|
altBoundary?: boolean | undefined;
|
|
@@ -149,7 +149,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
149
149
|
autoAlignment?: boolean | undefined;
|
|
150
150
|
allowedPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
151
151
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
152
|
-
} | import("@floating-ui/
|
|
152
|
+
} | import("@floating-ui/core").Derivable<{
|
|
153
153
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
154
154
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
155
155
|
altBoundary?: boolean | undefined;
|
|
@@ -232,7 +232,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
232
232
|
default: undefined;
|
|
233
233
|
};
|
|
234
234
|
offset: {
|
|
235
|
-
type: globalThis.PropType<string | import("@floating-ui/
|
|
235
|
+
type: globalThis.PropType<string | import("@floating-ui/core").OffsetOptions | undefined>;
|
|
236
236
|
default: number;
|
|
237
237
|
};
|
|
238
238
|
shift: {
|
|
@@ -244,11 +244,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
244
244
|
crossAxis?: boolean | undefined;
|
|
245
245
|
mainAxis?: boolean | undefined;
|
|
246
246
|
limiter?: {
|
|
247
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
247
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
248
248
|
options?: any;
|
|
249
249
|
} | undefined;
|
|
250
250
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
251
|
-
} | import("@floating-ui/
|
|
251
|
+
} | import("@floating-ui/core").Derivable<{
|
|
252
252
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
253
253
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
254
254
|
altBoundary?: boolean | undefined;
|
|
@@ -256,7 +256,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
256
256
|
crossAxis?: boolean | undefined;
|
|
257
257
|
mainAxis?: boolean | undefined;
|
|
258
258
|
limiter?: {
|
|
259
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
259
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
260
260
|
options?: any;
|
|
261
261
|
} | undefined;
|
|
262
262
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -272,11 +272,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
272
272
|
crossAxis?: boolean | undefined;
|
|
273
273
|
mainAxis?: boolean | undefined;
|
|
274
274
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
275
|
-
fallbackStrategy?: "
|
|
275
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
276
276
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
277
277
|
flipAlignment?: boolean | undefined;
|
|
278
278
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
279
|
-
} | import("@floating-ui/
|
|
279
|
+
} | import("@floating-ui/core").Derivable<{
|
|
280
280
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
281
281
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
282
282
|
altBoundary?: boolean | undefined;
|
|
@@ -284,7 +284,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
284
284
|
crossAxis?: boolean | undefined;
|
|
285
285
|
mainAxis?: boolean | undefined;
|
|
286
286
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
287
|
-
fallbackStrategy?: "
|
|
287
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
288
288
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
289
289
|
flipAlignment?: boolean | undefined;
|
|
290
290
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -312,7 +312,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
312
312
|
availableWidth: number;
|
|
313
313
|
availableHeight: number;
|
|
314
314
|
}) => void | Promise<void>) | undefined;
|
|
315
|
-
} | import("@floating-ui/
|
|
315
|
+
} | import("@floating-ui/core").Derivable<{
|
|
316
316
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
317
317
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
318
318
|
altBoundary?: boolean | undefined;
|
|
@@ -348,7 +348,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
348
348
|
autoAlignment?: boolean | undefined;
|
|
349
349
|
allowedPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
350
350
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
351
|
-
} | import("@floating-ui/
|
|
351
|
+
} | import("@floating-ui/core").Derivable<{
|
|
352
352
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
353
353
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
354
354
|
altBoundary?: boolean | undefined;
|
|
@@ -415,7 +415,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
415
415
|
availableWidth: number;
|
|
416
416
|
availableHeight: number;
|
|
417
417
|
}) => void | Promise<void>) | undefined;
|
|
418
|
-
} | import("@floating-ui/
|
|
418
|
+
} | import("@floating-ui/core").Derivable<{
|
|
419
419
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
420
420
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
421
421
|
altBoundary?: boolean | undefined;
|
|
@@ -437,8 +437,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
437
437
|
}) => void | Promise<void>) | undefined;
|
|
438
438
|
}> | undefined;
|
|
439
439
|
reference: HTMLElement | null;
|
|
440
|
-
placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
441
|
-
strategy: "absolute" | "fixed";
|
|
442
440
|
shift: boolean | {
|
|
443
441
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
444
442
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
@@ -447,11 +445,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
447
445
|
crossAxis?: boolean | undefined;
|
|
448
446
|
mainAxis?: boolean | undefined;
|
|
449
447
|
limiter?: {
|
|
450
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
448
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
451
449
|
options?: any;
|
|
452
450
|
} | undefined;
|
|
453
451
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
454
|
-
} | import("@floating-ui/
|
|
452
|
+
} | import("@floating-ui/core").Derivable<{
|
|
455
453
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
456
454
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
457
455
|
altBoundary?: boolean | undefined;
|
|
@@ -459,7 +457,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
459
457
|
crossAxis?: boolean | undefined;
|
|
460
458
|
mainAxis?: boolean | undefined;
|
|
461
459
|
limiter?: {
|
|
462
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
460
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
463
461
|
options?: any;
|
|
464
462
|
} | undefined;
|
|
465
463
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -473,11 +471,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
473
471
|
crossAxis?: boolean | undefined;
|
|
474
472
|
mainAxis?: boolean | undefined;
|
|
475
473
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
476
|
-
fallbackStrategy?: "
|
|
474
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
477
475
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
478
476
|
flipAlignment?: boolean | undefined;
|
|
479
477
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
480
|
-
} | import("@floating-ui/
|
|
478
|
+
} | import("@floating-ui/core").Derivable<{
|
|
481
479
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
482
480
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
483
481
|
altBoundary?: boolean | undefined;
|
|
@@ -485,13 +483,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
485
483
|
crossAxis?: boolean | undefined;
|
|
486
484
|
mainAxis?: boolean | undefined;
|
|
487
485
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
488
|
-
fallbackStrategy?: "
|
|
486
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
489
487
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
490
488
|
flipAlignment?: boolean | undefined;
|
|
491
489
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
492
490
|
}> | undefined;
|
|
491
|
+
placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
492
|
+
strategy: "absolute" | "fixed";
|
|
493
493
|
transitionName: string;
|
|
494
|
-
offset: string | import("@floating-ui/
|
|
494
|
+
offset: string | import("@floating-ui/core").OffsetOptions | undefined;
|
|
495
495
|
autoPlacement: boolean | {
|
|
496
496
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
497
497
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
@@ -502,7 +502,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
502
502
|
autoAlignment?: boolean | undefined;
|
|
503
503
|
allowedPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
504
504
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
505
|
-
} | import("@floating-ui/
|
|
505
|
+
} | import("@floating-ui/core").Derivable<{
|
|
506
506
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
507
507
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
508
508
|
altBoundary?: boolean | undefined;
|
|
@@ -54,11 +54,11 @@ export declare const VvDropdownProps: {
|
|
|
54
54
|
crossAxis?: boolean | undefined;
|
|
55
55
|
mainAxis?: boolean | undefined;
|
|
56
56
|
limiter?: {
|
|
57
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
57
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
58
58
|
options?: any;
|
|
59
59
|
} | undefined;
|
|
60
60
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
61
|
-
} | import("@floating-ui/
|
|
61
|
+
} | import("@floating-ui/core").Derivable<{
|
|
62
62
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
63
63
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
64
64
|
altBoundary?: boolean | undefined;
|
|
@@ -66,7 +66,7 @@ export declare const VvDropdownProps: {
|
|
|
66
66
|
crossAxis?: boolean | undefined;
|
|
67
67
|
mainAxis?: boolean | undefined;
|
|
68
68
|
limiter?: {
|
|
69
|
-
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/
|
|
69
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
70
70
|
options?: any;
|
|
71
71
|
} | undefined;
|
|
72
72
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -82,11 +82,11 @@ export declare const VvDropdownProps: {
|
|
|
82
82
|
crossAxis?: boolean | undefined;
|
|
83
83
|
mainAxis?: boolean | undefined;
|
|
84
84
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
85
|
-
fallbackStrategy?: "
|
|
85
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
86
86
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
87
87
|
flipAlignment?: boolean | undefined;
|
|
88
88
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
89
|
-
} | import("@floating-ui/
|
|
89
|
+
} | import("@floating-ui/core").Derivable<{
|
|
90
90
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
91
91
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
92
92
|
altBoundary?: boolean | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const VvDropdownProps: {
|
|
|
94
94
|
crossAxis?: boolean | undefined;
|
|
95
95
|
mainAxis?: boolean | undefined;
|
|
96
96
|
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
97
|
-
fallbackStrategy?: "
|
|
97
|
+
fallbackStrategy?: "bestFit" | "initialPlacement" | undefined;
|
|
98
98
|
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
99
99
|
flipAlignment?: boolean | undefined;
|
|
100
100
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
@@ -122,7 +122,7 @@ export declare const VvDropdownProps: {
|
|
|
122
122
|
availableWidth: number;
|
|
123
123
|
availableHeight: number;
|
|
124
124
|
}) => void | Promise<void>) | undefined;
|
|
125
|
-
} | import("@floating-ui/
|
|
125
|
+
} | import("@floating-ui/core").Derivable<{
|
|
126
126
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
127
127
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
128
128
|
altBoundary?: boolean | undefined;
|
|
@@ -158,7 +158,7 @@ export declare const VvDropdownProps: {
|
|
|
158
158
|
autoAlignment?: boolean | undefined;
|
|
159
159
|
allowedPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
160
160
|
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
161
|
-
} | import("@floating-ui/
|
|
161
|
+
} | import("@floating-ui/core").Derivable<{
|
|
162
162
|
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
163
163
|
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
164
164
|
altBoundary?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, defineComponent, ref, watch, computed, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx,
|
|
1
|
+
import { inject, defineComponent, ref, watch, computed, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, provide, createElementBlock, toRefs, createVNode } from "vue";
|
|
2
2
|
import "mitt";
|
|
3
3
|
import { useElementHover, useFocus, useFocusWithin } from "@vueuse/core";
|
|
4
4
|
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
@@ -409,7 +409,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
409
409
|
onMouseleavePassive: onMouseleave
|
|
410
410
|
}), {
|
|
411
411
|
default: withCtx(() => [
|
|
412
|
-
createCommentVNode(" @slot Default slot "),
|
|
413
412
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
414
413
|
createTextVNode(
|
|
415
414
|
toDisplayString(_ctx.label),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@vueuse/core")):"function"==typeof define&&define.amd?define(["vue","mitt","@vueuse/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvDropdownAction=t(e.vue,null,e.core)}(this,(function(e,t,o){"use strict";var r=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(r||{}),n=(e=>(e.before="before",e.after="after",e))(n||{}),l=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(l||{}),a=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(a||{}),u=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(u||{}),i=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(i||{});const s=Symbol.for("volver"),d=Symbol.for("dropdownTrigger"),c=Symbol.for("dropdownItem"),f=Symbol.for("dropdownAction"),p={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(i).includes(e)},rel:{type:String,default:"noopener noreferrer"}},v={disabled:{type:Boolean,default:!1}},m={active:{type:Boolean,default:!1}},b={current:{type:Boolean,default:!1}},y={pressed:{type:Boolean,default:!1}},g={label:{type:[String,Number],default:void 0}},k={modifiers:{type:[String,Array],default:void 0}};n.before,r.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const h={...v,...g,...y,...m,...b,...p,type:{type:String,default:l.button,validator:e=>Object.values(l).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:a.button}},x=h;const B=e.defineComponent({name:"VvAction",props:x,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:r}){const n=t,l=r,u=e.inject(s),i=e.ref(null);o({$el:i});const{reference:c,bus:p,aria:v,expanded:m}=e.inject(d,{});e.watch((()=>i.value),(e=>{c&&(c.value=e)}));const b=e.computed((()=>n.pressed||(null==m?void 0:m.value))),{role:y}=e.inject(f,{}),g=e.computed((()=>{switch(!0){case n.disabled:return a.button;case void 0!==n.to:return(null==u?void 0:u.nuxt)?a.nuxtLink:a.routerLink;case void 0!==n.href:return a.a;default:return n.defaultTag}})),k=e.computed((()=>{const e={...null==v?void 0:v.value,ariaPressed:!!b.value||void 0,ariaLabel:n.ariaLabel,role:null==y?void 0:y.value};switch(g.value){case a.a:return{...e,href:n.href,target:n.target,rel:n.rel};case a.routerLink:case a.nuxtLink:return{...e,to:n.to,target:n.target};case a.button:return{...e,type:n.type,disabled:n.disabled};default:return e}})),h=e=>{n.disabled?e.preventDefault():(null==p||p.emit("click",e),l("click",e))},x=e=>{null==p||p.emit("mouseover",e),l("mouseover",e)},B=e=>{null==p||p.emit("mouseleave",e),l("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),e.mergeProps(e.unref(k),{ref_key:"element",ref:i,class:{active:t.active,pressed:e.unref(b),disabled:t.disabled,current:t.current},onClickPassive:h,onMouseoverPassive:x,onMouseleavePassive:B}),{default:e.withCtx((()=>[e.
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@vueuse/core")):"function"==typeof define&&define.amd?define(["vue","mitt","@vueuse/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvDropdownAction=t(e.vue,null,e.core)}(this,(function(e,t,o){"use strict";var r=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(r||{}),n=(e=>(e.before="before",e.after="after",e))(n||{}),l=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(l||{}),a=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(a||{}),u=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(u||{}),i=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(i||{});const s=Symbol.for("volver"),d=Symbol.for("dropdownTrigger"),c=Symbol.for("dropdownItem"),f=Symbol.for("dropdownAction"),p={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(i).includes(e)},rel:{type:String,default:"noopener noreferrer"}},v={disabled:{type:Boolean,default:!1}},m={active:{type:Boolean,default:!1}},b={current:{type:Boolean,default:!1}},y={pressed:{type:Boolean,default:!1}},g={label:{type:[String,Number],default:void 0}},k={modifiers:{type:[String,Array],default:void 0}};n.before,r.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const h={...v,...g,...y,...m,...b,...p,type:{type:String,default:l.button,validator:e=>Object.values(l).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:a.button}},x=h;const B=e.defineComponent({name:"VvAction",props:x,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:r}){const n=t,l=r,u=e.inject(s),i=e.ref(null);o({$el:i});const{reference:c,bus:p,aria:v,expanded:m}=e.inject(d,{});e.watch((()=>i.value),(e=>{c&&(c.value=e)}));const b=e.computed((()=>n.pressed||(null==m?void 0:m.value))),{role:y}=e.inject(f,{}),g=e.computed((()=>{switch(!0){case n.disabled:return a.button;case void 0!==n.to:return(null==u?void 0:u.nuxt)?a.nuxtLink:a.routerLink;case void 0!==n.href:return a.a;default:return n.defaultTag}})),k=e.computed((()=>{const e={...null==v?void 0:v.value,ariaPressed:!!b.value||void 0,ariaLabel:n.ariaLabel,role:null==y?void 0:y.value};switch(g.value){case a.a:return{...e,href:n.href,target:n.target,rel:n.rel};case a.routerLink:case a.nuxtLink:return{...e,to:n.to,target:n.target};case a.button:return{...e,type:n.type,disabled:n.disabled};default:return e}})),h=e=>{n.disabled?e.preventDefault():(null==p||p.emit("click",e),l("click",e))},x=e=>{null==p||p.emit("mouseover",e),l("mouseover",e)},B=e=>{null==p||p.emit("mouseleave",e),l("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),e.mergeProps(e.unref(k),{ref_key:"element",ref:i,class:{active:t.active,pressed:e.unref(b),disabled:t.disabled,current:t.current},onClickPassive:h,onMouseoverPassive:x,onMouseleavePassive:B}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}});const S=e.defineComponent({name:"VvDropdownItem",setup(t){const{role:r,expanded:n}=e.inject(c,{}),l=e.ref(null);!function({expanded:t}){e.provide(f,{role:e.ref(u.menuitem),expanded:t})}({expanded:n});const a=o.useElementHover(l),{focused:i}=o.useFocus(l),{focused:s}=o.useFocusWithin(l);return e.watch(a,(e=>{e&&(i.value=!0)})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({role:e.unref(r)},{ref_key:"element",ref:l,class:["vv-dropdown__item",{"focus-visible":e.unref(i)||e.unref(s)}]}),[e.renderSlot(t.$slots,"default")],16))}});return e.defineComponent({name:"VvDropdownAction",props:{...h,...k},setup(t){const o=t,{modifiers:r}=e.toRefs(o),n=function(t,o,r){return e.computed((()=>{const n={[t]:!0},l="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return l&&Array.isArray(l)&&l.forEach((e=>{e&&(n[`${t}--${e}`]=!0)})),r&&Object.keys(r.value).forEach((o=>{n[`${t}--${o}`]=e.unref(r.value[o])})),n}))}("vv-dropdown-action",r);return(t,o)=>(e.openBlock(),e.createBlock(S,null,{default:e.withCtx((()=>[e.createVNode(B,e.mergeProps({disabled:t.disabled,pressed:t.pressed,active:t.active,type:t.type,to:t.to,href:t.href,target:t.target,rel:t.rel},{class:e.unref(n)}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"])])),_:3}))}})}));
|
|
@@ -624,7 +624,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
624
624
|
onMouseleavePassive: onMouseleave
|
|
625
625
|
}), {
|
|
626
626
|
default: withCtx(() => [
|
|
627
|
-
createCommentVNode(" @slot Default slot "),
|
|
628
627
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
629
628
|
createTextVNode(
|
|
630
629
|
toDisplayString(_ctx.label),
|
|
@@ -1000,38 +999,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1000
999
|
onClick
|
|
1001
1000
|
}), {
|
|
1002
1001
|
default: withCtx(() => [
|
|
1003
|
-
createCommentVNode(" @slot Default slot "),
|
|
1004
1002
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
_hoisted_1$1,
|
|
1020
|
-
toDisplayString(_ctx.loadingLabel),
|
|
1021
|
-
1
|
|
1022
|
-
/* TEXT */
|
|
1023
|
-
)) : createCommentVNode("v-if", true)
|
|
1024
|
-
])
|
|
1025
|
-
],
|
|
1026
|
-
64
|
|
1027
|
-
/* STABLE_FRAGMENT */
|
|
1028
|
-
)) : (openBlock(), createElementBlock(
|
|
1003
|
+
_ctx.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
1004
|
+
_ctx.loadingIcon ? (openBlock(), createBlock(_sfc_main$3, {
|
|
1005
|
+
key: 0,
|
|
1006
|
+
class: "vv-button__loading-icon",
|
|
1007
|
+
name: _ctx.loadingIcon
|
|
1008
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true),
|
|
1009
|
+
_ctx.loadingLabel ? (openBlock(), createElementBlock(
|
|
1010
|
+
"span",
|
|
1011
|
+
_hoisted_1$1,
|
|
1012
|
+
toDisplayString(_ctx.loadingLabel),
|
|
1013
|
+
1
|
|
1014
|
+
/* TEXT */
|
|
1015
|
+
)) : createCommentVNode("v-if", true)
|
|
1016
|
+
]) : (openBlock(), createElementBlock(
|
|
1029
1017
|
Fragment,
|
|
1030
1018
|
{ key: 1 },
|
|
1031
1019
|
[
|
|
1032
|
-
createCommentVNode(" #endregion "),
|
|
1033
|
-
createCommentVNode(" #region button "),
|
|
1034
|
-
createCommentVNode(" @slot Before label and icon "),
|
|
1035
1020
|
renderSlot(_ctx.$slots, "before"),
|
|
1036
1021
|
unref(hasIcon) ? (openBlock(), createBlock(
|
|
1037
1022
|
_sfc_main$3,
|
|
@@ -1041,7 +1026,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1041
1026
|
/* FULL_PROPS */
|
|
1042
1027
|
)) : createCommentVNode("v-if", true),
|
|
1043
1028
|
unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
|
|
1044
|
-
createCommentVNode(" @slot Use this slot for button label "),
|
|
1045
1029
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1046
1030
|
createTextVNode(
|
|
1047
1031
|
toDisplayString(unref(label)),
|
|
@@ -1050,13 +1034,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1050
1034
|
)
|
|
1051
1035
|
])
|
|
1052
1036
|
])) : createCommentVNode("v-if", true),
|
|
1053
|
-
createCommentVNode(" @slot After label and icon "),
|
|
1054
1037
|
renderSlot(_ctx.$slots, "after")
|
|
1055
1038
|
],
|
|
1056
1039
|
64
|
|
1057
1040
|
/* STABLE_FRAGMENT */
|
|
1058
|
-
))
|
|
1059
|
-
createCommentVNode(" #endregion ")
|
|
1041
|
+
))
|
|
1060
1042
|
])
|
|
1061
1043
|
]),
|
|
1062
1044
|
_: 3
|
|
@@ -1220,6 +1202,20 @@ const VvInputFileProps = {
|
|
|
1220
1202
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
|
|
1221
1203
|
*/
|
|
1222
1204
|
multiple: { type: Boolean, default: false },
|
|
1205
|
+
/**
|
|
1206
|
+
* Front or rear camera
|
|
1207
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture
|
|
1208
|
+
*/
|
|
1209
|
+
capture: {
|
|
1210
|
+
type: String,
|
|
1211
|
+
default: void 0,
|
|
1212
|
+
validation: (value) => {
|
|
1213
|
+
if (value === void 0) {
|
|
1214
|
+
return true;
|
|
1215
|
+
}
|
|
1216
|
+
return ["user", "environment"].includes(value);
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1223
1219
|
/**
|
|
1224
1220
|
* Max number of files
|
|
1225
1221
|
*/
|
|
@@ -1338,7 +1334,7 @@ const _hoisted_1 = ["for"];
|
|
|
1338
1334
|
const _hoisted_2 = { class: "vv-input-file__preview" };
|
|
1339
1335
|
const _hoisted_3 = ["src", "alt"];
|
|
1340
1336
|
const _hoisted_4 = { class: "vv-input-file__wrapper" };
|
|
1341
|
-
const _hoisted_5 = ["id", "readonly", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "name"];
|
|
1337
|
+
const _hoisted_5 = ["id", "readonly", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
|
|
1342
1338
|
const _hoisted_6 = ["value"];
|
|
1343
1339
|
const _hoisted_7 = { class: "vv-input-file__list" };
|
|
1344
1340
|
const _hoisted_8 = ["onClick"];
|
|
@@ -1477,6 +1473,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1477
1473
|
localModelValue.value = void 0;
|
|
1478
1474
|
return;
|
|
1479
1475
|
}
|
|
1476
|
+
if (selectedFileIndex.value === index) {
|
|
1477
|
+
selectedFileIndex.value = 0;
|
|
1478
|
+
}
|
|
1480
1479
|
const toReturn = [...localModelValue.value];
|
|
1481
1480
|
toReturn.splice(index, 1);
|
|
1482
1481
|
localModelValue.value = toReturn;
|
|
@@ -1487,6 +1486,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1487
1486
|
if (files.value.length === 0) {
|
|
1488
1487
|
return;
|
|
1489
1488
|
}
|
|
1489
|
+
if (!files.value[selectedFileIndex.value]) {
|
|
1490
|
+
return void 0;
|
|
1491
|
+
}
|
|
1490
1492
|
if (files.value[selectedFileIndex.value] instanceof File) {
|
|
1491
1493
|
const currentFile2 = files.value[selectedFileIndex.value];
|
|
1492
1494
|
if (!PREVIEW_MIME_TYPES.includes(currentFile2.type)) {
|
|
@@ -1615,6 +1617,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1615
1617
|
"aria-errormessage": unref(hasInvalidLabelOrSlot) ? hasHintId.value : void 0,
|
|
1616
1618
|
multiple: isMultiple.value,
|
|
1617
1619
|
accept: _ctx.accept,
|
|
1620
|
+
capture: _ctx.capture,
|
|
1618
1621
|
name: _ctx.name,
|
|
1619
1622
|
onChange
|
|
1620
1623
|
}, null, 40, _hoisted_5),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("@vueuse/core"),require("@iconify/vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","@vueuse/core","@iconify/vue","uid"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvInputFile=t(e.vue,e.core,e.vue$1,e.uid)}(this,(function(e,t,l,o){"use strict";const a="add",n="edit",r="download",i={prefix:"normal"};var u=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(u||{}),d=(e=>(e.before="before",e.after="after",e))(d||{}),s=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(s||{}),c=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(c||{}),v=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(v||{});const f=Symbol.for("volver"),p=Symbol.for("buttonGroup"),m=Symbol.for("dropdownTrigger"),g=Symbol.for("dropdownAction");function b(){return e.inject(f)}function y(t,l,o){return e.computed((()=>{const a={[t]:!0},n="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return n&&Array.isArray(n)&&n.forEach((e=>{e&&(a[`${t}--${e}`]=!0)})),o&&Object.keys(o.value).forEach((l=>{a[`${t}--${l}`]=e.unref(o.value[l])})),a}))}const h=e.defineComponent({name:"VvIcon",props:e.mergeDefaults({name:{},color:{},width:{},height:{},provider:{},prefix:{},src:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{},mode:{},inline:{type:Boolean},rotate:{},onLoad:{type:Function},svg:{},modifiers:{}},i),setup(t){const o=t,a=e.computed((()=>"string"==typeof o.rotate?parseFloat(o.rotate):o.rotate)),n=e.ref(!0),r=b(),{modifiers:i}=e.toRefs(o),u=y("vv-icon",i),d=e.computed((()=>o.provider||(null==r?void 0:r.iconsProvider))),s=e.computed((()=>{const e=o.name??"",t=`@${d.value}:${o.prefix}:${e}`;if(l.iconExists(t))return t;const a=null==r?void 0:r.iconsCollections.find((t=>{const o=`@${d.value}:${t.prefix}:${e}`;return l.iconExists(o)}));return a?`@${d.value}:${a.prefix}:${e}`:e}));function c(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),a=(null==t?void 0:t.innerHTML.trim())||"";t&&a&&l.addIcon(`@${d.value}:${o.prefix}:${o.name}`,{body:a,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&o.src&&!l.iconExists(`@${d.value}:${o.prefix}:${o.name}`)&&(n.value=!1,r.fetchIcon(o.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),o.svg&&c(o.svg),(t,o)=>e.unref(n)?(e.openBlock(),e.createBlock(e.unref(l.Icon),e.mergeProps({key:0,class:e.unref(u)},{inline:t.inline,width:t.width,height:t.height,horizontalFlip:t.horizontalFlip,verticalFlip:t.verticalFlip,flip:t.flip,rotate:e.unref(a),color:t.color,onLoad:t.onLoad,icon:e.unref(s)}),null,16,["class"])):e.createCommentVNode("v-if",!0)}}),k={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(v).includes(e)},rel:{type:String,default:"noopener noreferrer"}},S={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},B={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},L={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},V={disabled:{type:Boolean,default:!1}},C={active:{type:Boolean,default:!1}},w={current:{type:Boolean,default:!1}},A={pressed:{type:Boolean,default:!1}},$={label:{type:[String,Number],default:void 0}},O={readonly:{type:Boolean,default:!1}},_={modifiers:{type:[String,Array],default:void 0}},N={hintLabel:{type:String,default:""}},x={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:d.before,validation:e=>Object.values(d).includes(e)}},j={unselectable:{type:Boolean,default:!0}},R={id:[String,Number]};u.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const E={...R,name:{type:String,required:!0}},P={...V,...$,...A,...C,...w,...k,type:{type:String,default:s.button,validator:e=>Object.values(s).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:c.button}},I=P;const D=e.defineComponent({name:"VvAction",props:I,emits:["click","mouseover","mouseleave"],setup(t,{expose:l,emit:o}){const a=t,n=o,r=b(),i=e.ref(null);l({$el:i});const{reference:u,bus:d,aria:s,expanded:v}=e.inject(m,{});e.watch((()=>i.value),(e=>{u&&(u.value=e)}));const f=e.computed((()=>a.pressed||(null==v?void 0:v.value))),{role:p}=e.inject(g,{}),y=e.computed((()=>{switch(!0){case a.disabled:return c.button;case void 0!==a.to:return(null==r?void 0:r.nuxt)?c.nuxtLink:c.routerLink;case void 0!==a.href:return c.a;default:return a.defaultTag}})),h=e.computed((()=>{const e={...null==s?void 0:s.value,ariaPressed:!!f.value||void 0,ariaLabel:a.ariaLabel,role:null==p?void 0:p.value};switch(y.value){case c.a:return{...e,href:a.href,target:a.target,rel:a.rel};case c.routerLink:case c.nuxtLink:return{...e,to:a.to,target:a.target};case c.button:return{...e,type:a.type,disabled:a.disabled};default:return e}})),k=e=>{a.disabled?e.preventDefault():(null==d||d.emit("click",e),n("click",e))},S=e=>{null==d||d.emit("mouseover",e),n("mouseover",e)},B=e=>{null==d||d.emit("mouseleave",e),n("mouseleave",e)};return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y)),e.mergeProps(e.unref(h),{ref_key:"element",ref:i,class:{active:t.active,pressed:e.unref(f),disabled:t.disabled,current:t.current},onClickPassive:k,onMouseoverPassive:S,onMouseleavePassive:B}),{default:e.withCtx((()=>[e.createCommentVNode(" @slot Default slot "),e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}});function F(e,t,l){return l?z(e,l)===z(t,l):M(e,t)}function M(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),o=Array.isArray(t);let a,n,r;if(l&&o){if(n=e.length,n!=t.length)return!1;for(a=n;0!=a--;)if(!M(e[a],t[a]))return!1;return!0}if(l!=o)return!1;const i=e instanceof Date,u=t instanceof Date;if(i!=u)return!1;if(i&&u)return e.getTime()==t.getTime();const d=e instanceof RegExp,s=t instanceof RegExp;if(d!=s)return!1;if(d&&s)return e.toString()==t.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(t).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!M(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}function z(e,t){if(e&&Object.keys(e).length&&t){if(-1===t.indexOf("."))return e[t];{const l=t.split(".");let o=e;for(let t=0,a=l.length;t<a;++t){if(null==e)return null;o=o[l[t]]}return o}}return null}function U(e,t){if(null!=e&&t&&t.length)for(const l of t)if(F(e,l))return!0;return!1}function T(t){const l=e.inject(t,void 0),o=e.computed((()=>{return t=l,!(null==(o=e.unref(t))||""===o||Array.isArray(o)&&0===o.length||!(o instanceof Date)&&"object"==typeof o&&0===Object.keys(o).length);var t,o}));return{group:l,isInGroup:o,getGroupOrLocalRef:function(t,o,a){if(null==l?void 0:l.value){const o=e.unref(l.value)[t];return e.computed({get:()=>null==o?void 0:o.value,set(e){o.value=e}})}const n=e.toRef(o,t);return e.computed({get:()=>n.value,set(e){a&&a(`update:${t}`,e)}})}}}const q={...P,...R,..._,...j,...L,...x,iconPosition:{type:String,default:u.left,validator:e=>Object.values(u).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};const H=t=>e.computed((()=>String((null==t?void 0:t.value)||o.uid())));function G(t,l){const o=e.computed((()=>"string"==typeof(null==t?void 0:t.value)?{name:null==t?void 0:t.value}:null==t?void 0:t.value)),a=e.computed((()=>(null==l?void 0:l.value)===d.before?o.value:void 0)),n=e.computed((()=>(null==l?void 0:l.value)===d.after?o.value:void 0)),r=e.computed((()=>(null==l?void 0:l.value)===u.left?o.value:void 0)),i=e.computed((()=>(null==l?void 0:l.value)===u.right?o.value:void 0)),s=e.computed((()=>(null==l?void 0:l.value)===u.top?o.value:void 0)),c=e.computed((()=>(null==l?void 0:l.value)===u.bottom?o.value:void 0));return{hasIcon:o,hasIconLeft:r,hasIconRight:i,hasIconTop:s,hasIconBottom:c,hasIconBefore:a,hasIconAfter:n}}const J={key:1,class:"vv-button__label"},K={key:1,class:"vv-button__label"},Q=e.defineComponent({name:"VvButton",props:q,emits:["update:modelValue"],setup(t,{expose:l,emit:o}){const a=t,n=e.useAttrs(),r=e.useSlots(),i=o,{id:d,modifiers:s,iconPosition:c,icon:v,label:f,modelValue:m,disabled:g,toggle:b,unselectable:k}=function(t,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=T(p),{id:r,iconPosition:i,icon:u,label:d,pressed:s}=e.toRefs(t),c=n("modelValue",t,l),v=n("toggle",t),f=n("unselectable",t),m=e.computed((()=>(null==o?void 0:o.value.multiple.value)??!1)),g=e.computed((()=>{let e=t.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return e&&(Array.isArray(e)||(e=e.split(" ")),e.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)})),b=e.computed((()=>{var e;return Boolean(t.disabled||(null==(e=null==o?void 0:o.value)?void 0:e.disabled.value))}));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:f,multiple:m,modifiers:g,disabled:b,id:r,pressed:s,iconPosition:i,icon:u,label:d}}(a,i),S=H(d),B=e.computed((()=>(null==n?void 0:n.name)||S.value)),L=e.ref(null);l({$el:e.computed((()=>{var e;return null==(e=L.value)?void 0:e.$el}))});const V=e.computed((()=>b.value?Array.isArray(m.value)?U(B.value,m.value):F(B.value,m.value):a.pressed)),C=y("vv-button",s,e.computed((()=>({reverse:[u.right,u.bottom].includes(c.value),column:[u.top,u.bottom].includes(c.value),"icon-only":Boolean((null==v?void 0:v.value)&&!(null==f?void 0:f.value)&&!r.default)})))),{hasIcon:w}=G(v),A=e.computed((()=>void 0!==a.value?a.value:B.value)),$=()=>{if(b.value){if(Array.isArray(m.value))return U(A.value,m.value)?void(k.value&&(m.value=m.value.filter((e=>e!==A.value)))):void m.value.push(A.value);if(A.value===m.value&&k.value)return void(m.value=a.uncheckedValue);m.value=A.value}};return(t,l)=>(e.openBlock(),e.createBlock(D,e.mergeProps({disabled:e.unref(g),pressed:e.unref(V),active:t.active,type:t.type,to:t.to,href:t.href,target:t.target,rel:t.rel,ariaLabel:t.ariaLabel},{id:e.unref(S),ref_key:"element",ref:L,class:e.unref(C),onClick:$}),{default:e.withCtx((()=>[e.createCommentVNode(" @slot Default slot "),e.renderSlot(t.$slots,"default",{},(()=>[e.createCommentVNode(" #region loading "),t.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" @slot Slot for loading content "),e.renderSlot(t.$slots,"loading",{},(()=>[t.loadingIcon?(e.openBlock(),e.createBlock(h,{key:0,class:"vv-button__loading-icon",name:t.loadingIcon},null,8,["name"])):e.createCommentVNode("v-if",!0),t.loadingLabel?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(t.loadingLabel),1)):e.createCommentVNode("v-if",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" #endregion "),e.createCommentVNode(" #region button "),e.createCommentVNode(" @slot Before label and icon "),e.renderSlot(t.$slots,"before"),e.unref(w)?(e.openBlock(),e.createBlock(h,e.mergeProps({key:0},e.unref(w),{class:"vv-button__icon"}),null,16)):e.createCommentVNode("v-if",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("span",K,[e.createCommentVNode(" @slot Use this slot for button label "),e.renderSlot(t.$slots,"label",{},(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)),1)]))])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" @slot After label and icon "),e.renderSlot(t.$slots,"after")],64)),e.createCommentVNode(" #endregion ")]))])),_:3},16,["id","class"]))}});function W(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}const X={...E,..._,...S,...B,...N,...$,...L,...O,...x,modelValue:{type:Object,required:!0},progress:{type:[Number,String],default:void 0},placeholder:{type:String,default:void 0},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!1},max:{type:[Number,String],default:void 0},dropArea:{type:Boolean,default:!1},labelAdd:{type:String,default:"Add file"},iconAdd:{type:[String,Object],default:a},labelReplace:{type:String,default:"Replace file"},iconReplace:{type:[String,Object],default:n},labelDownload:{type:String,default:"Downlaod file"},iconDownload:{type:[String,Object],default:r},labelRemove:{type:String,default:"Remove file"}};const Y=["for"],Z={class:"vv-input-file__preview"},ee=["src","alt"],te={class:"vv-input-file__wrapper"},le=["id","readonly","placeholder","aria-describedby","aria-invalid","aria-errormessage","multiple","accept","name"],oe=["value"],ae={class:"vv-input-file__list"},ne=["onClick"],re=["title","onClick"],ie={class:"vv-input-file__item-name"},ue={class:"vv-input-file__item-info"},de=["title","onClick"];return e.defineComponent({name:"VvInputFile",props:X,emits:["update:modelValue"],setup(l,{emit:o}){const a=l,n=o,r=e.useSlots(),i=function(t,l,o){const a=b(),n=e.computed((()=>{var e;if(a&&(null==(e=a.defaults.value)?void 0:e[t]))return a.defaults.value[t]}));return e.computed((()=>{if(void 0===n.value)return o;const e=n.value,t=l,a=o;return Object.keys(t).reduce(((l,o)=>{const n=a[o];if(l[o]=n,o in e){if(Array.isArray(t[o])){const a=t[o];a.length&&a[0]===n&&(l[o]=e[o])}if("function"==typeof t[o]&&(0,t[o])()===n&&(l[o]=e[o]),"object"==typeof t[o]){let a=t[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(l[o]=e[o]):a===n&&(l[o]=e[o])}}return l}),{})}))}("VvInputFile",X,a),{modifiers:u,id:d,readonly:s,icon:c,iconPosition:v,iconDownload:f}=e.toRefs(a),p=H(d),m=e.computed((()=>`${p.value}-hint`)),g=e.computed((()=>{if(!a.progress)return!1;const e="string"==typeof a.progress?parseInt(a.progress):a.progress;return e>0&&e<100})),{hasIconBefore:k,hasIconAfter:S}=G(c,v),{hasIcon:B}=G(f),L=y("vv-input-file",u,e.computed((()=>({dragging:j.value,loading:a.loading&&!g.value,valid:!0===a.valid,invalid:!0===a.invalid,"icon-before":!!k.value,"icon-after":!!S.value,"drop-area":N.value})))),{HintSlot:V,hasHintLabelOrSlot:C,hasInvalidLabelOrSlot:w,hintSlotScope:A}=function(t,l){const o=e.computed((()=>e.isRef(t)?t.value:t)),a=e.computed((()=>W(o.value.invalidLabel))),n=e.computed((()=>W(o.value.validLabel))),r=e.computed((()=>o.value.loadingLabel)),i=e.computed((()=>o.value.hintLabel)),u=e.computed((()=>Boolean(o.value.loading&&(l.loading||r.value)))),d=e.computed((()=>!u.value&&Boolean(o.value.invalid&&(l.invalid||a.value)))),s=e.computed((()=>!u.value&&!d.value&&Boolean(o.value.valid&&(l.valid||n.value)))),c=e.computed((()=>!u.value&&!d.value&&!s.value&&Boolean(l.hint||i.value))),v=e.computed((()=>d.value||s.value||u.value||c.value)),f=e.computed((()=>({modelValue:o.value.modelValue,valid:o.value.valid,invalid:o.value.invalid,loading:o.value.loading}))),p=e.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:v,invalidLabel:a,validLabel:n,loadingLabel:r,hintLabel:i,hasInvalidLabelOrSlot:d,hasValidLabelOrSlot:s,hasLoadingLabelOrSlot:u,hasHintLabelOrSlot:c}),render(){var t,l,o,a,n,r,i,u;if(this.isVisible){let d;return this.hasInvalidLabelOrSlot&&(d="alert"),this.hasValidLabelOrSlot&&(d="status"),this.hasLoadingLabelOrSlot?e.h(this.tag,{role:d},(null==(l=(t=this.$slots).loading)?void 0:l.call(t))??this.loadingLabel):this.hasInvalidLabelOrSlot?e.h(this.tag,{role:d},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?e.h(this.tag,{role:d},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):e.h(this.tag,{role:d},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:d,hasHintLabelOrSlot:c,hasValidLabelOrSlot:s,hasLoadingLabelOrSlot:u,hintSlotScope:f,HintSlot:p}}(i,r),$=t.useVModel(a,"modelValue",n),O=e.computed((()=>{var e;return $.value&&(Array.isArray($.value)||(null==(e=$.value)?void 0:e.name))?Array.isArray($.value)?$.value:[$.value]:[]})),_=e.computed((()=>"string"==typeof a.max?parseInt(a.max):a.max)),N=e.computed((()=>a.dropArea&&!s.value)),x=e.computed((()=>!!a.multiple&&(!_.value||_.value-O.value.length>1))),j=e.ref(!1),R=e.ref(),E=()=>{j.value=!0},P=()=>{j.value=!1},I=e=>{var t,l;(null==(t=e.dataTransfer)?void 0:t.files)&&(j.value=!1,F(null==(l=e.dataTransfer)?void 0:l.files))},D=()=>{var e;(null==(e=R.value)?void 0:e.files)&&(F(R.value.files),R.value.value="")},F=e=>{if(!a.multiple)return Array.isArray($.value)?void($.value=[...e]):void($.value=e[0]);let t=[];t=!Array.isArray($.value)&&$.value?[$.value]:$.value&&Array.isArray($.value)?[...$.value]:t;for(const l of e){if(_.value&&t.length>=_.value)break;t.push(l)}$.value=t,z.value=t.length-1},M=()=>{R.value&&(s.value||R.value.click())},z=e.ref(0),U=["image/jpeg","image/png"],T=e.computed((()=>{if(0===O.value.length)return;if(O.value[z.value]instanceof File){const e=O.value[z.value];if(!U.includes(e.type))return;return URL.createObjectURL(e)}const e=O.value[z.value];return e.thumbnailUrl?e.thumbnailUrl:U.includes(e.type)?e.url:void 0}));e.watch(T,((e,t)=>{t&&URL.revokeObjectURL(t)})),e.onBeforeUnmount((()=>{T.value&&URL.revokeObjectURL(T.value)}));const q=e=>{if(e)return Math.floor(e/1024)},J=e.computed((()=>0===O.value.length||x.value?a.labelAdd:a.labelReplace)),K=e.computed((()=>0===O.value.length||x.value?a.iconAdd:a.iconReplace));return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L))},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p)},e.toDisplayString(t.label),9,Y)):e.createCommentVNode("v-if",!0),N.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vv-input-file__drop-area",onDragenter:e.withModifiers(E,["prevent","stop"]),onDragleave:e.withModifiers(P,["prevent","stop"]),onDrop:e.withModifiers(I,["prevent","stop"]),onDragover:l[0]||(l[0]=e.withModifiers((()=>{}),["prevent","stop"])),onClick:e.withModifiers(M,["stop"])},[e.renderSlot(t.$slots,"drop-area",{},(()=>[e.createElementVNode("picture",Z,[T.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:T.value,alt:O.value[z.value].name},null,8,ee)):e.createCommentVNode("v-if",!0)]),e.unref(s)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(Q,{key:0,modifiers:"action",label:T.value?void 0:J.value,title:T.value?J.value:void 0,class:e.normalizeClass({"vv-input-file__drop-area-action":T.value}),icon:K.value,onClick:e.withModifiers(M,["stop"])},null,8,["label","title","class","icon"]))]))],32)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",te,[e.unref(k)?(e.openBlock(),e.createBlock(h,e.normalizeProps(e.mergeProps({key:0},e.unref(k))),null,16)):e.createCommentVNode("v-if",!0),e.createElementVNode("input",{id:e.unref(p),ref_key:"inputEl",ref:R,type:"file",readonly:e.unref(s),placeholder:t.placeholder,"aria-describedby":e.unref(C)?m.value:void 0,"aria-invalid":t.invalid,"aria-errormessage":e.unref(w)?m.value:void 0,multiple:x.value,accept:t.accept,name:t.name,onChange:D},null,40,le),g.value?(e.openBlock(),e.createElementBlock("progress",{key:1,class:"vv-input-file__progress",value:t.progress,max:"100"},e.toDisplayString(t.progress)+"% ",9,oe)):e.createCommentVNode("v-if",!0),e.unref(S)?(e.openBlock(),e.createBlock(h,e.normalizeProps(e.mergeProps({key:2},e.unref(S))),null,16)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("ul",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,((l,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(["vv-input-file__item",{active:o===z.value&&N.value&&O.value.length>1}]),onClick:e.withModifiers((e=>(e=>{z.value=e})(o)),["stop"])},[e.unref(B)?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"vv-input-file__item-action",title:t.labelDownload,onClick:e.withModifiers((e=>(e=>{const t=document.createElement("a");e instanceof File?t.href=URL.createObjectURL(e):e.url&&(t.href=e.url),t.setAttribute("download",e.name),document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(t.href)})(l)),["stop"])},[e.createVNode(h,e.normalizeProps(e.guardReactiveProps(e.unref(B))),null,16)],8,re)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ie,e.toDisplayString(l.name),1),e.createElementVNode("small",ue,e.toDisplayString(q(l.size))+" KB ",1),e.unref(s)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"vv-input-file__item-remove",title:t.labelRemove,onClick:e.withModifiers((e=>(e=>{if(!Array.isArray($.value))return void($.value=void 0);const t=[...$.value];t.splice(e,1),$.value=t})(o)),["stop"])},null,8,de))],10,ne)))),128))]),e.createVNode(e.unref(V),{id:m.value,class:"vv-input-file__hint"},e.createSlots({_:2},[t.$slots.hint?{name:"hint",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"hint",e.normalizeProps(e.guardReactiveProps(e.unref(A))))])),key:"0"}:void 0,t.$slots.loading?{name:"loading",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"loading",e.normalizeProps(e.guardReactiveProps(e.unref(A))))])),key:"1"}:void 0,t.$slots.valid?{name:"valid",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"valid",e.normalizeProps(e.guardReactiveProps(e.unref(A))))])),key:"2"}:void 0,t.$slots.invalid?{name:"invalid",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"invalid",e.normalizeProps(e.guardReactiveProps(e.unref(A))))])),key:"3"}:void 0]),1032,["id"])],2))}})}));
|
|
1
|
+
!function(e,l){"object"==typeof exports&&"undefined"!=typeof module?module.exports=l(require("vue"),require("@vueuse/core"),require("@iconify/vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","@vueuse/core","@iconify/vue","uid"],l):(e="undefined"!=typeof globalThis?globalThis:e||self).VvInputFile=l(e.vue,e.core,e.vue$1,e.uid)}(this,(function(e,l,t,o){"use strict";const a="add",n="edit",r="download",i={prefix:"normal"};var u=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(u||{}),d=(e=>(e.before="before",e.after="after",e))(d||{}),s=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(s||{}),c=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(c||{}),v=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(v||{});const p=Symbol.for("volver"),f=Symbol.for("buttonGroup"),m=Symbol.for("dropdownTrigger"),g=Symbol.for("dropdownAction");function y(){return e.inject(p)}function b(l,t,o){return e.computed((()=>{const a={[l]:!0},n="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return n&&Array.isArray(n)&&n.forEach((e=>{e&&(a[`${l}--${e}`]=!0)})),o&&Object.keys(o.value).forEach((t=>{a[`${l}--${t}`]=e.unref(o.value[t])})),a}))}const h=e.defineComponent({name:"VvIcon",props:e.mergeDefaults({name:{},color:{},width:{},height:{},provider:{},prefix:{},src:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{},mode:{},inline:{type:Boolean},rotate:{},onLoad:{type:Function},svg:{},modifiers:{}},i),setup(l){const o=l,a=e.computed((()=>"string"==typeof o.rotate?parseFloat(o.rotate):o.rotate)),n=e.ref(!0),r=y(),{modifiers:i}=e.toRefs(o),u=b("vv-icon",i),d=e.computed((()=>o.provider||(null==r?void 0:r.iconsProvider))),s=e.computed((()=>{const e=o.name??"",l=`@${d.value}:${o.prefix}:${e}`;if(t.iconExists(l))return l;const a=null==r?void 0:r.iconsCollections.find((l=>{const o=`@${d.value}:${l.prefix}:${e}`;return t.iconExists(o)}));return a?`@${d.value}:${a.prefix}:${e}`:e}));function c(e){const l=function(e){let l;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");l=(new e).window}return(l?new l.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),a=(null==l?void 0:l.innerHTML.trim())||"";l&&a&&t.addIcon(`@${d.value}:${o.prefix}:${o.name}`,{body:a,height:l.viewBox.baseVal.height,width:l.viewBox.baseVal.width})}return r&&o.src&&!t.iconExists(`@${d.value}:${o.prefix}:${o.name}`)&&(n.value=!1,r.fetchIcon(o.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),o.svg&&c(o.svg),(l,o)=>e.unref(n)?(e.openBlock(),e.createBlock(e.unref(t.Icon),e.mergeProps({key:0,class:e.unref(u)},{inline:l.inline,width:l.width,height:l.height,horizontalFlip:l.horizontalFlip,verticalFlip:l.verticalFlip,flip:l.flip,rotate:e.unref(a),color:l.color,onLoad:l.onLoad,icon:e.unref(s)}),null,16,["class"])):e.createCommentVNode("v-if",!0)}}),k={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(v).includes(e)},rel:{type:String,default:"noopener noreferrer"}},S={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},B={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},L={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},V={disabled:{type:Boolean,default:!1}},w={active:{type:Boolean,default:!1}},A={current:{type:Boolean,default:!1}},$={pressed:{type:Boolean,default:!1}},O={label:{type:[String,Number],default:void 0}},_={readonly:{type:Boolean,default:!1}},C={modifiers:{type:[String,Array],default:void 0}},x={hintLabel:{type:String,default:""}},j={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:d.before,validation:e=>Object.values(d).includes(e)}},N={unselectable:{type:Boolean,default:!0}},R={id:[String,Number]};u.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const P={...R,name:{type:String,required:!0}},E={...V,...O,...$,...w,...A,...k,type:{type:String,default:s.button,validator:e=>Object.values(s).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:c.button}},I=E;const D=e.defineComponent({name:"VvAction",props:I,emits:["click","mouseover","mouseleave"],setup(l,{expose:t,emit:o}){const a=l,n=o,r=y(),i=e.ref(null);t({$el:i});const{reference:u,bus:d,aria:s,expanded:v}=e.inject(m,{});e.watch((()=>i.value),(e=>{u&&(u.value=e)}));const p=e.computed((()=>a.pressed||(null==v?void 0:v.value))),{role:f}=e.inject(g,{}),b=e.computed((()=>{switch(!0){case a.disabled:return c.button;case void 0!==a.to:return(null==r?void 0:r.nuxt)?c.nuxtLink:c.routerLink;case void 0!==a.href:return c.a;default:return a.defaultTag}})),h=e.computed((()=>{const e={...null==s?void 0:s.value,ariaPressed:!!p.value||void 0,ariaLabel:a.ariaLabel,role:null==f?void 0:f.value};switch(b.value){case c.a:return{...e,href:a.href,target:a.target,rel:a.rel};case c.routerLink:case c.nuxtLink:return{...e,to:a.to,target:a.target};case c.button:return{...e,type:a.type,disabled:a.disabled};default:return e}})),k=e=>{a.disabled?e.preventDefault():(null==d||d.emit("click",e),n("click",e))},S=e=>{null==d||d.emit("mouseover",e),n("mouseover",e)},B=e=>{null==d||d.emit("mouseleave",e),n("mouseleave",e)};return(l,t)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(b)),e.mergeProps(e.unref(h),{ref_key:"element",ref:i,class:{active:l.active,pressed:e.unref(p),disabled:l.disabled,current:l.current},onClickPassive:k,onMouseoverPassive:S,onMouseleavePassive:B}),{default:e.withCtx((()=>[e.renderSlot(l.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]))])),_:3},16,["class"]))}});function M(e,l,t){return t?z(e,t)===z(l,t):F(e,l)}function F(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){const t=Array.isArray(e),o=Array.isArray(l);let a,n,r;if(t&&o){if(n=e.length,n!=l.length)return!1;for(a=n;0!=a--;)if(!F(e[a],l[a]))return!1;return!0}if(t!=o)return!1;const i=e instanceof Date,u=l instanceof Date;if(i!=u)return!1;if(i&&u)return e.getTime()==l.getTime();const d=e instanceof RegExp,s=l instanceof RegExp;if(d!=s)return!1;if(d&&s)return e.toString()==l.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(l).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(l,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!F(e[r],l[r]))return!1;return!0}return e!=e&&l!=l}function z(e,l){if(e&&Object.keys(e).length&&l){if(-1===l.indexOf("."))return e[l];{const t=l.split(".");let o=e;for(let l=0,a=t.length;l<a;++l){if(null==e)return null;o=o[t[l]]}return o}}return null}function T(e,l){if(null!=e&&l&&l.length)for(const t of l)if(M(e,t))return!0;return!1}function U(l){const t=e.inject(l,void 0),o=e.computed((()=>{return l=t,!(null==(o=e.unref(l))||""===o||Array.isArray(o)&&0===o.length||!(o instanceof Date)&&"object"==typeof o&&0===Object.keys(o).length);var l,o}));return{group:t,isInGroup:o,getGroupOrLocalRef:function(l,o,a){if(null==t?void 0:t.value){const o=e.unref(t.value)[l];return e.computed({get:()=>null==o?void 0:o.value,set(e){o.value=e}})}const n=e.toRef(o,l);return e.computed({get:()=>n.value,set(e){a&&a(`update:${l}`,e)}})}}}const q={...E,...R,...C,...N,...L,...j,iconPosition:{type:String,default:u.left,validator:e=>Object.values(u).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};const H=l=>e.computed((()=>String((null==l?void 0:l.value)||o.uid())));function G(l,t){const o=e.computed((()=>"string"==typeof(null==l?void 0:l.value)?{name:null==l?void 0:l.value}:null==l?void 0:l.value)),a=e.computed((()=>(null==t?void 0:t.value)===d.before?o.value:void 0)),n=e.computed((()=>(null==t?void 0:t.value)===d.after?o.value:void 0)),r=e.computed((()=>(null==t?void 0:t.value)===u.left?o.value:void 0)),i=e.computed((()=>(null==t?void 0:t.value)===u.right?o.value:void 0)),s=e.computed((()=>(null==t?void 0:t.value)===u.top?o.value:void 0)),c=e.computed((()=>(null==t?void 0:t.value)===u.bottom?o.value:void 0));return{hasIcon:o,hasIconLeft:r,hasIconRight:i,hasIconTop:s,hasIconBottom:c,hasIconBefore:a,hasIconAfter:n}}const J={key:1,class:"vv-button__label"},K={key:1,class:"vv-button__label"},Q=e.defineComponent({name:"VvButton",props:q,emits:["update:modelValue"],setup(l,{expose:t,emit:o}){const a=l,n=e.useAttrs(),r=e.useSlots(),i=o,{id:d,modifiers:s,iconPosition:c,icon:v,label:p,modelValue:m,disabled:g,toggle:y,unselectable:k}=function(l,t){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=U(f),{id:r,iconPosition:i,icon:u,label:d,pressed:s}=e.toRefs(l),c=n("modelValue",l,t),v=n("toggle",l),p=n("unselectable",l),m=e.computed((()=>(null==o?void 0:o.value.multiple.value)??!1)),g=e.computed((()=>{let e=l.modifiers,t=null==o?void 0:o.value.modifiers.value;const a=new Set;return e&&(Array.isArray(e)||(e=e.split(" ")),e.forEach((e=>a.add(e)))),t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),Array.from(a)})),y=e.computed((()=>{var e;return Boolean(l.disabled||(null==(e=null==o?void 0:o.value)?void 0:e.disabled.value))}));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:p,multiple:m,modifiers:g,disabled:y,id:r,pressed:s,iconPosition:i,icon:u,label:d}}(a,i),S=H(d),B=e.computed((()=>(null==n?void 0:n.name)||S.value)),L=e.ref(null);t({$el:e.computed((()=>{var e;return null==(e=L.value)?void 0:e.$el}))});const V=e.computed((()=>y.value?Array.isArray(m.value)?T(B.value,m.value):M(B.value,m.value):a.pressed)),w=b("vv-button",s,e.computed((()=>({reverse:[u.right,u.bottom].includes(c.value),column:[u.top,u.bottom].includes(c.value),"icon-only":Boolean((null==v?void 0:v.value)&&!(null==p?void 0:p.value)&&!r.default)})))),{hasIcon:A}=G(v),$=e.computed((()=>void 0!==a.value?a.value:B.value)),O=()=>{if(y.value){if(Array.isArray(m.value))return T($.value,m.value)?void(k.value&&(m.value=m.value.filter((e=>e!==$.value)))):void m.value.push($.value);if($.value===m.value&&k.value)return void(m.value=a.uncheckedValue);m.value=$.value}};return(l,t)=>(e.openBlock(),e.createBlock(D,e.mergeProps({disabled:e.unref(g),pressed:e.unref(V),active:l.active,type:l.type,to:l.to,href:l.href,target:l.target,rel:l.rel,ariaLabel:l.ariaLabel},{id:e.unref(S),ref_key:"element",ref:L,class:e.unref(w),onClick:O}),{default:e.withCtx((()=>[e.renderSlot(l.$slots,"default",{},(()=>[l.loading?e.renderSlot(l.$slots,"loading",{key:0},(()=>[l.loadingIcon?(e.openBlock(),e.createBlock(h,{key:0,class:"vv-button__loading-icon",name:l.loadingIcon},null,8,["name"])):e.createCommentVNode("v-if",!0),l.loadingLabel?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(l.loadingLabel),1)):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(l.$slots,"before"),e.unref(A)?(e.openBlock(),e.createBlock(h,e.mergeProps({key:0},e.unref(A),{class:"vv-button__icon"}),null,16)):e.createCommentVNode("v-if",!0),e.unref(p)?(e.openBlock(),e.createElementBlock("span",K,[e.renderSlot(l.$slots,"label",{},(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)),1)]))])):e.createCommentVNode("v-if",!0),e.renderSlot(l.$slots,"after")],64))]))])),_:3},16,["id","class"]))}});function W(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(l=e)||l instanceof String;var l})).join(" "):e}const X={...P,...C,...S,...B,...x,...O,...L,..._,...j,modelValue:{type:Object,required:!0},progress:{type:[Number,String],default:void 0},placeholder:{type:String,default:void 0},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!1},capture:{type:String,default:void 0,validation:e=>void 0===e||["user","environment"].includes(e)},max:{type:[Number,String],default:void 0},dropArea:{type:Boolean,default:!1},labelAdd:{type:String,default:"Add file"},iconAdd:{type:[String,Object],default:a},labelReplace:{type:String,default:"Replace file"},iconReplace:{type:[String,Object],default:n},labelDownload:{type:String,default:"Downlaod file"},iconDownload:{type:[String,Object],default:r},labelRemove:{type:String,default:"Remove file"}};const Y=["for"],Z={class:"vv-input-file__preview"},ee=["src","alt"],le={class:"vv-input-file__wrapper"},te=["id","readonly","placeholder","aria-describedby","aria-invalid","aria-errormessage","multiple","accept","capture","name"],oe=["value"],ae={class:"vv-input-file__list"},ne=["onClick"],re=["title","onClick"],ie={class:"vv-input-file__item-name"},ue={class:"vv-input-file__item-info"},de=["title","onClick"];return e.defineComponent({name:"VvInputFile",props:X,emits:["update:modelValue"],setup(t,{emit:o}){const a=t,n=o,r=e.useSlots(),i=function(l,t,o){const a=y(),n=e.computed((()=>{var e;if(a&&(null==(e=a.defaults.value)?void 0:e[l]))return a.defaults.value[l]}));return e.computed((()=>{if(void 0===n.value)return o;const e=n.value,l=t,a=o;return Object.keys(l).reduce(((t,o)=>{const n=a[o];if(t[o]=n,o in e){if(Array.isArray(l[o])){const a=l[o];a.length&&a[0]===n&&(t[o]=e[o])}if("function"==typeof l[o]&&(0,l[o])()===n&&(t[o]=e[o]),"object"==typeof l[o]){let a=l[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(t[o]=e[o]):a===n&&(t[o]=e[o])}}return t}),{})}))}("VvInputFile",X,a),{modifiers:u,id:d,readonly:s,icon:c,iconPosition:v,iconDownload:p}=e.toRefs(a),f=H(d),m=e.computed((()=>`${f.value}-hint`)),g=e.computed((()=>{if(!a.progress)return!1;const e="string"==typeof a.progress?parseInt(a.progress):a.progress;return e>0&&e<100})),{hasIconBefore:k,hasIconAfter:S}=G(c,v),{hasIcon:B}=G(p),L=b("vv-input-file",u,e.computed((()=>({dragging:N.value,loading:a.loading&&!g.value,valid:!0===a.valid,invalid:!0===a.invalid,"icon-before":!!k.value,"icon-after":!!S.value,"drop-area":x.value})))),{HintSlot:V,hasHintLabelOrSlot:w,hasInvalidLabelOrSlot:A,hintSlotScope:$}=function(l,t){const o=e.computed((()=>e.isRef(l)?l.value:l)),a=e.computed((()=>W(o.value.invalidLabel))),n=e.computed((()=>W(o.value.validLabel))),r=e.computed((()=>o.value.loadingLabel)),i=e.computed((()=>o.value.hintLabel)),u=e.computed((()=>Boolean(o.value.loading&&(t.loading||r.value)))),d=e.computed((()=>!u.value&&Boolean(o.value.invalid&&(t.invalid||a.value)))),s=e.computed((()=>!u.value&&!d.value&&Boolean(o.value.valid&&(t.valid||n.value)))),c=e.computed((()=>!u.value&&!d.value&&!s.value&&Boolean(t.hint||i.value))),v=e.computed((()=>d.value||s.value||u.value||c.value)),p=e.computed((()=>({modelValue:o.value.modelValue,valid:o.value.valid,invalid:o.value.invalid,loading:o.value.loading}))),f=e.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:v,invalidLabel:a,validLabel:n,loadingLabel:r,hintLabel:i,hasInvalidLabelOrSlot:d,hasValidLabelOrSlot:s,hasLoadingLabelOrSlot:u,hasHintLabelOrSlot:c}),render(){var l,t,o,a,n,r,i,u;if(this.isVisible){let d;return this.hasInvalidLabelOrSlot&&(d="alert"),this.hasValidLabelOrSlot&&(d="status"),this.hasLoadingLabelOrSlot?e.h(this.tag,{role:d},(null==(t=(l=this.$slots).loading)?void 0:t.call(l))??this.loadingLabel):this.hasInvalidLabelOrSlot?e.h(this.tag,{role:d},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?e.h(this.tag,{role:d},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):e.h(this.tag,{role:d},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:d,hasHintLabelOrSlot:c,hasValidLabelOrSlot:s,hasLoadingLabelOrSlot:u,hintSlotScope:p,HintSlot:f}}(i,r),O=l.useVModel(a,"modelValue",n),_=e.computed((()=>{var e;return O.value&&(Array.isArray(O.value)||(null==(e=O.value)?void 0:e.name))?Array.isArray(O.value)?O.value:[O.value]:[]})),C=e.computed((()=>"string"==typeof a.max?parseInt(a.max):a.max)),x=e.computed((()=>a.dropArea&&!s.value)),j=e.computed((()=>!!a.multiple&&(!C.value||C.value-_.value.length>1))),N=e.ref(!1),R=e.ref(),P=()=>{N.value=!0},E=()=>{N.value=!1},I=e=>{var l,t;(null==(l=e.dataTransfer)?void 0:l.files)&&(N.value=!1,M(null==(t=e.dataTransfer)?void 0:t.files))},D=()=>{var e;(null==(e=R.value)?void 0:e.files)&&(M(R.value.files),R.value.value="")},M=e=>{if(!a.multiple)return Array.isArray(O.value)?void(O.value=[...e]):void(O.value=e[0]);let l=[];l=!Array.isArray(O.value)&&O.value?[O.value]:O.value&&Array.isArray(O.value)?[...O.value]:l;for(const t of e){if(C.value&&l.length>=C.value)break;l.push(t)}O.value=l,z.value=l.length-1},F=()=>{R.value&&(s.value||R.value.click())},z=e.ref(0),T=["image/jpeg","image/png"],U=e.computed((()=>{if(0===_.value.length)return;if(!_.value[z.value])return;if(_.value[z.value]instanceof File){const e=_.value[z.value];if(!T.includes(e.type))return;return URL.createObjectURL(e)}const e=_.value[z.value];return e.thumbnailUrl?e.thumbnailUrl:T.includes(e.type)?e.url:void 0}));e.watch(U,((e,l)=>{l&&URL.revokeObjectURL(l)})),e.onBeforeUnmount((()=>{U.value&&URL.revokeObjectURL(U.value)}));const q=e=>{if(e)return Math.floor(e/1024)},J=e.computed((()=>0===_.value.length||j.value?a.labelAdd:a.labelReplace)),K=e.computed((()=>0===_.value.length||j.value?a.iconAdd:a.iconReplace));return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L))},[l.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(f)},e.toDisplayString(l.label),9,Y)):e.createCommentVNode("v-if",!0),x.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vv-input-file__drop-area",onDragenter:e.withModifiers(P,["prevent","stop"]),onDragleave:e.withModifiers(E,["prevent","stop"]),onDrop:e.withModifiers(I,["prevent","stop"]),onDragover:t[0]||(t[0]=e.withModifiers((()=>{}),["prevent","stop"])),onClick:e.withModifiers(F,["stop"])},[e.renderSlot(l.$slots,"drop-area",{},(()=>[e.createElementVNode("picture",Z,[U.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:U.value,alt:_.value[z.value].name},null,8,ee)):e.createCommentVNode("v-if",!0)]),e.unref(s)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(Q,{key:0,modifiers:"action",label:U.value?void 0:J.value,title:U.value?J.value:void 0,class:e.normalizeClass({"vv-input-file__drop-area-action":U.value}),icon:K.value,onClick:e.withModifiers(F,["stop"])},null,8,["label","title","class","icon"]))]))],32)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",le,[e.unref(k)?(e.openBlock(),e.createBlock(h,e.normalizeProps(e.mergeProps({key:0},e.unref(k))),null,16)):e.createCommentVNode("v-if",!0),e.createElementVNode("input",{id:e.unref(f),ref_key:"inputEl",ref:R,type:"file",readonly:e.unref(s),placeholder:l.placeholder,"aria-describedby":e.unref(w)?m.value:void 0,"aria-invalid":l.invalid,"aria-errormessage":e.unref(A)?m.value:void 0,multiple:j.value,accept:l.accept,capture:l.capture,name:l.name,onChange:D},null,40,te),g.value?(e.openBlock(),e.createElementBlock("progress",{key:1,class:"vv-input-file__progress",value:l.progress,max:"100"},e.toDisplayString(l.progress)+"% ",9,oe)):e.createCommentVNode("v-if",!0),e.unref(S)?(e.openBlock(),e.createBlock(h,e.normalizeProps(e.mergeProps({key:2},e.unref(S))),null,16)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("ul",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,((t,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(["vv-input-file__item",{active:o===z.value&&x.value&&_.value.length>1}]),onClick:e.withModifiers((e=>(e=>{z.value=e})(o)),["stop"])},[e.unref(B)?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"vv-input-file__item-action",title:l.labelDownload,onClick:e.withModifiers((e=>(e=>{const l=document.createElement("a");e instanceof File?l.href=URL.createObjectURL(e):e.url&&(l.href=e.url),l.setAttribute("download",e.name),document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(l.href)})(t)),["stop"])},[e.createVNode(h,e.normalizeProps(e.guardReactiveProps(e.unref(B))),null,16)],8,re)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ie,e.toDisplayString(t.name),1),e.createElementVNode("small",ue,e.toDisplayString(q(t.size))+" KB ",1),e.unref(s)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"vv-input-file__item-remove",title:l.labelRemove,onClick:e.withModifiers((e=>(e=>{if(!Array.isArray(O.value))return void(O.value=void 0);z.value===e&&(z.value=0);const l=[...O.value];l.splice(e,1),O.value=l})(o)),["stop"])},null,8,de))],10,ne)))),128))]),e.createVNode(e.unref(V),{id:m.value,class:"vv-input-file__hint"},e.createSlots({_:2},[l.$slots.hint?{name:"hint",fn:e.withCtx((()=>[e.renderSlot(l.$slots,"hint",e.normalizeProps(e.guardReactiveProps(e.unref($))))])),key:"0"}:void 0,l.$slots.loading?{name:"loading",fn:e.withCtx((()=>[e.renderSlot(l.$slots,"loading",e.normalizeProps(e.guardReactiveProps(e.unref($))))])),key:"1"}:void 0,l.$slots.valid?{name:"valid",fn:e.withCtx((()=>[e.renderSlot(l.$slots,"valid",e.normalizeProps(e.guardReactiveProps(e.unref($))))])),key:"2"}:void 0,l.$slots.invalid?{name:"invalid",fn:e.withCtx((()=>[e.renderSlot(l.$slots,"invalid",e.normalizeProps(e.guardReactiveProps(e.unref($))))])),key:"3"}:void 0]),1032,["id"])],2))}})}));
|