@volverjs/ui-vue 0.0.10-beta.16 → 0.0.10-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/auto-imports.d.ts +3 -2
  2. package/bin/icons.js +1 -1
  3. package/dist/Volver.d.ts +1 -1
  4. package/dist/components/VvAccordion/VvAccordion.es.js +2 -1
  5. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  6. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +1 -1
  7. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +4 -2
  8. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  9. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +2 -2
  10. package/dist/components/VvAction/VvAction.es.js +2 -1
  11. package/dist/components/VvAction/VvAction.umd.js +1 -1
  12. package/dist/components/VvAction/VvAction.vue.d.ts +1 -1
  13. package/dist/components/VvAlert/VvAlert.es.js +3 -2
  14. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  15. package/dist/components/VvAlert/VvAlert.vue.d.ts +1 -1
  16. package/dist/components/VvAlert/index.d.ts +2 -2
  17. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +5 -3
  18. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  19. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
  20. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +1 -1
  21. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +1 -1
  22. package/dist/components/VvBadge/VvBadge.vue.d.ts +1 -1
  23. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +2 -1
  24. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  25. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -1
  26. package/dist/components/VvButton/VvButton.es.js +5 -3
  27. package/dist/components/VvButton/VvButton.umd.js +1 -1
  28. package/dist/components/VvButton/VvButton.vue.d.ts +7 -7
  29. package/dist/components/VvButton/index.d.ts +3 -3
  30. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +2 -1
  31. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  32. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +1 -1
  33. package/dist/components/VvCard/VvCard.vue.d.ts +1 -1
  34. package/dist/components/VvCheckbox/VvCheckbox.es.js +2 -1
  35. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  36. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +7 -7
  37. package/dist/components/VvCheckbox/index.d.ts +3 -3
  38. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +4 -2
  39. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  40. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +3 -3
  41. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  42. package/dist/components/VvCombobox/VvCombobox.es.js +11 -6
  43. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  44. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
  45. package/dist/components/VvCombobox/index.d.ts +1 -1
  46. package/dist/components/VvDialog/VvDialog.es.js +60 -54
  47. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  48. package/dist/components/VvDialog/VvDialog.vue.d.ts +1 -1
  49. package/dist/components/VvDropdown/VvDropdown.es.js +2 -1
  50. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  51. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +1 -1
  52. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +1 -1
  53. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
  54. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
  55. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +1 -1
  56. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +2 -1
  57. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  58. package/dist/components/VvIcon/VvIcon.es.js +1 -1
  59. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  60. package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -103
  61. package/dist/components/VvInputFile/VvInputFile.es.js +87 -57
  62. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  63. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +1 -1
  64. package/dist/components/VvInputText/VvInputClearAction.d.ts +1 -1
  65. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
  66. package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
  67. package/dist/components/VvInputText/VvInputText.es.js +48 -42
  68. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  69. package/dist/components/VvInputText/VvInputText.vue.d.ts +3 -3
  70. package/dist/components/VvInputText/index.d.ts +1 -1
  71. package/dist/components/VvNav/VvNav.es.js +7 -6
  72. package/dist/components/VvNav/VvNav.umd.js +1 -1
  73. package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
  74. package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
  75. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
  76. package/dist/components/VvNavItem/VvNavItem.es.js +2 -1
  77. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  78. package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
  79. package/dist/components/VvRadio/VvRadio.es.js +2 -1
  80. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  81. package/dist/components/VvRadio/VvRadio.vue.d.ts +5 -5
  82. package/dist/components/VvRadio/index.d.ts +2 -2
  83. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +4 -2
  84. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  85. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +3 -3
  86. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  87. package/dist/components/VvSelect/VvSelect.es.js +3 -2
  88. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  89. package/dist/components/VvSelect/VvSelect.vue.d.ts +3 -3
  90. package/dist/components/VvSelect/index.d.ts +1 -1
  91. package/dist/components/VvTab/VvTab.es.js +9 -7
  92. package/dist/components/VvTab/VvTab.umd.js +1 -1
  93. package/dist/components/VvTab/VvTab.vue.d.ts +2 -2
  94. package/dist/components/VvTextarea/VvTextarea.es.js +3 -2
  95. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  96. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +5 -5
  97. package/dist/components/VvTextarea/index.d.ts +2 -2
  98. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +1 -1
  99. package/dist/components/index.es.js +266 -210
  100. package/dist/components/index.umd.js +1 -1
  101. package/dist/composables/alert/useAlert.d.ts +37 -4
  102. package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
  103. package/dist/composables/index.es.js +14 -3
  104. package/dist/composables/index.umd.js +1 -1
  105. package/dist/directives/index.d.ts +3 -3
  106. package/dist/directives/index.es.js +3 -3
  107. package/dist/directives/index.umd.js +1 -1
  108. package/dist/directives/v-tooltip.es.js +1 -1
  109. package/dist/directives/v-tooltip.umd.js +1 -1
  110. package/dist/icons.es.js +6 -6
  111. package/dist/icons.umd.js +1 -1
  112. package/dist/index.es.js +62 -0
  113. package/dist/index.umd.js +1 -1
  114. package/dist/props/index.d.ts +5 -5
  115. package/dist/resolvers/unplugin.es.js +59 -6
  116. package/dist/resolvers/unplugin.umd.js +1 -1
  117. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +59 -117
  118. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +519 -661
  119. package/dist/utils/ObjectUtilities.d.ts +0 -1
  120. package/package.json +53 -53
  121. package/src/Volver.ts +9 -4
  122. package/src/assets/icons/detailed.json +1 -1
  123. package/src/assets/icons/normal.json +1 -1
  124. package/src/assets/icons/simple.json +1 -1
  125. package/src/components/VvInputFile/VvInputFile.vue +33 -10
  126. package/src/directives/index.ts +3 -3
  127. package/src/resolvers/unplugin.ts +3 -13
  128. package/src/utils/ObjectUtilities.ts +0 -11
@@ -817,7 +817,7 @@ function useModifiers(prefix, modifiers, others) {
817
817
  return toReturn;
818
818
  });
819
819
  }
820
- const _hoisted_1$m = ["id", "open"];
820
+ const _hoisted_1$l = ["id", "open"];
821
821
  const _hoisted_2$f = ["aria-controls", "aria-expanded"];
822
822
  const _hoisted_3$8 = ["aria-hidden"];
823
823
  const __default__$r = {
@@ -827,9 +827,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
827
827
  ...__default__$r,
828
828
  props: VvAccordionProps,
829
829
  emits: VvAccordionEvents,
830
- setup(__props, { emit }) {
830
+ setup(__props, { emit: __emit }) {
831
831
  const props = __props;
832
832
  const attrs = useAttrs();
833
+ const emit = __emit;
833
834
  const accordionName = computed(
834
835
  () => props.name || (attrs == null ? void 0 : attrs.id) || uid()
835
836
  );
@@ -923,7 +924,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
923
924
  )
924
925
  ])
925
926
  ], 8, _hoisted_3$8)
926
- ], 10, _hoisted_1$m);
927
+ ], 10, _hoisted_1$l);
927
928
  };
928
929
  }
929
930
  });
@@ -983,8 +984,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
983
984
  ...__default__$q,
984
985
  props: VvAccordionGroupProps,
985
986
  emits: VvAccordionGroupEvents,
986
- setup(__props, { emit }) {
987
+ setup(__props, { emit: __emit }) {
987
988
  const props = __props;
989
+ const emit = __emit;
988
990
  const { disabled, collapse, modifiers, itemModifiers, items, not } = toRefs(props);
989
991
  watchEffect(() => {
990
992
  if (typeof props.modelValue === "string" && collapse.value) {
@@ -1108,8 +1110,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1108
1110
  ...__default__$p,
1109
1111
  props: VvActionProps,
1110
1112
  emits: VvActionEvents,
1111
- setup(__props, { expose: __expose, emit }) {
1113
+ setup(__props, { expose: __expose, emit: __emit }) {
1112
1114
  const props = __props;
1115
+ const emit = __emit;
1113
1116
  const volver = useVolver();
1114
1117
  const element = ref(null);
1115
1118
  __expose({ $el: element });
@@ -1229,7 +1232,7 @@ const __default__$o = {
1229
1232
  };
1230
1233
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
1231
1234
  ...__default__$o,
1232
- props: mergeDefaults({
1235
+ props: /* @__PURE__ */ mergeDefaults({
1233
1236
  name: {},
1234
1237
  color: {},
1235
1238
  width: {},
@@ -1515,13 +1518,13 @@ const useVvAlert = (props, emit) => {
1515
1518
  }))
1516
1519
  };
1517
1520
  };
1518
- const _hoisted_1$l = {
1521
+ const _hoisted_1$k = {
1519
1522
  key: 0,
1520
1523
  class: "vv-alert__header"
1521
1524
  };
1522
1525
  const _hoisted_2$e = ["id"];
1523
1526
  const _hoisted_3$7 = ["aria-label"];
1524
- const _hoisted_4$6 = /* @__PURE__ */ createElementVNode(
1527
+ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode(
1525
1528
  "div",
1526
1529
  { class: "vv-alert__close-mask" },
1527
1530
  null,
@@ -1529,7 +1532,7 @@ const _hoisted_4$6 = /* @__PURE__ */ createElementVNode(
1529
1532
  /* HOISTED */
1530
1533
  );
1531
1534
  const _hoisted_5$5 = [
1532
- _hoisted_4$6
1535
+ _hoisted_4$5
1533
1536
  ];
1534
1537
  const _hoisted_6$5 = {
1535
1538
  key: 1,
@@ -1546,8 +1549,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1546
1549
  ...__default__$n,
1547
1550
  props: VvAlertProps,
1548
1551
  emits: VvAlertEvents,
1549
- setup(__props, { expose: __expose, emit }) {
1552
+ setup(__props, { expose: __expose, emit: __emit }) {
1550
1553
  const props = __props;
1554
+ const emit = __emit;
1551
1555
  const { hasProps, hasTitleId, hasIcon, close } = useVvAlert(props, emit);
1552
1556
  __expose({ close });
1553
1557
  return (_ctx, _cache) => {
@@ -1555,7 +1559,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1555
1559
  "div",
1556
1560
  normalizeProps(guardReactiveProps(unref(hasProps))),
1557
1561
  [
1558
- _ctx.$slots.header || _ctx.$slots.title || _ctx.$slots.close || _ctx.$slots["title::before"] || _ctx.$slots["title::after"] || _ctx.title || _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
1562
+ _ctx.$slots.header || _ctx.$slots.title || _ctx.$slots.close || _ctx.$slots["title::before"] || _ctx.$slots["title::after"] || _ctx.title || _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
1559
1563
  unref(hasIcon) ? (openBlock(), createBlock(
1560
1564
  _sfc_main$u,
1561
1565
  mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }),
@@ -1738,8 +1742,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1738
1742
  ...__default__$m,
1739
1743
  props: VvAlertGroupProps,
1740
1744
  emits: VvAlertGroupEvents,
1741
- setup(__props, { emit }) {
1745
+ setup(__props, { emit: __emit }) {
1742
1746
  const props = __props;
1747
+ const emit = __emit;
1743
1748
  const { hasProps, hasTransition } = useVvAlertGroup(props, emit);
1744
1749
  const alertGroupTransitionHandlers = {
1745
1750
  "before-enter": () => {
@@ -1818,7 +1823,7 @@ const VvAvatarProps = {
1818
1823
  */
1819
1824
  imgSrc: String
1820
1825
  };
1821
- const _hoisted_1$k = ["role", "aria-label"];
1826
+ const _hoisted_1$j = ["role", "aria-label"];
1822
1827
  const _hoisted_2$d = ["src"];
1823
1828
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
1824
1829
  __name: "VvAvatar",
@@ -1840,7 +1845,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1840
1845
  alt: "avatar"
1841
1846
  }, null, 8, _hoisted_2$d)) : createCommentVNode("v-if", true)
1842
1847
  ])
1843
- ], 10, _hoisted_1$k);
1848
+ ], 10, _hoisted_1$j);
1844
1849
  };
1845
1850
  }
1846
1851
  });
@@ -1863,7 +1868,7 @@ const VvAvatarGroupProps = {
1863
1868
  },
1864
1869
  avatarModifiers: [String, Array]
1865
1870
  };
1866
- const _hoisted_1$j = { key: 0 };
1871
+ const _hoisted_1$i = { key: 0 };
1867
1872
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
1868
1873
  __name: "VvAvatarGroup",
1869
1874
  props: VvAvatarGroupProps,
@@ -1918,7 +1923,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1918
1923
  default: withCtx(() => [
1919
1924
  avatarItem.text ? (openBlock(), createElementBlock(
1920
1925
  "span",
1921
- _hoisted_1$j,
1926
+ _hoisted_1$i,
1922
1927
  toDisplayString(avatarItem.text),
1923
1928
  1
1924
1929
  /* TEXT */
@@ -1996,7 +2001,7 @@ const VvBreadcrumbProps = {
1996
2001
  ...ModifiersProps,
1997
2002
  routes: Array
1998
2003
  };
1999
- const _hoisted_1$i = { class: "vv-breadcrumb__list" };
2004
+ const _hoisted_1$h = { class: "vv-breadcrumb__list" };
2000
2005
  const _hoisted_2$c = ["content"];
2001
2006
  const __default__$k = {
2002
2007
  name: "VvBreadcrumb"
@@ -2021,7 +2026,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2021
2026
  "aria-label": "breadcrumbs"
2022
2027
  },
2023
2028
  [
2024
- createElementVNode("ol", _hoisted_1$i, [
2029
+ createElementVNode("ol", _hoisted_1$h, [
2025
2030
  (openBlock(true), createElementBlock(
2026
2031
  Fragment,
2027
2032
  null,
@@ -2177,7 +2182,7 @@ function useGroupProps$2(props, emit) {
2177
2182
  label
2178
2183
  };
2179
2184
  }
2180
- const _hoisted_1$h = {
2185
+ const _hoisted_1$g = {
2181
2186
  key: 1,
2182
2187
  class: "vv-button__label"
2183
2188
  };
@@ -2192,10 +2197,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2192
2197
  ...__default__$j,
2193
2198
  props: VvButtonProps,
2194
2199
  emits: VvButtonEvents,
2195
- setup(__props, { expose: __expose, emit }) {
2200
+ setup(__props, { expose: __expose, emit: __emit }) {
2196
2201
  const props = __props;
2197
2202
  const attrs = useAttrs();
2198
2203
  const slots = useSlots();
2204
+ const emit = __emit;
2199
2205
  const {
2200
2206
  id,
2201
2207
  modifiers,
@@ -2292,7 +2298,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2292
2298
  }, null, 8, ["name"])) : createCommentVNode("v-if", true),
2293
2299
  _ctx.loadingLabel ? (openBlock(), createElementBlock(
2294
2300
  "span",
2295
- _hoisted_1$h,
2301
+ _hoisted_1$g,
2296
2302
  toDisplayString(_ctx.loadingLabel),
2297
2303
  1
2298
2304
  /* TEXT */
@@ -2357,7 +2363,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2357
2363
  ...__default__$i,
2358
2364
  props: VvButtonGroupProps,
2359
2365
  emits: VvButtonGroupEvents,
2360
- setup(__props, { emit }) {
2366
+ setup(__props, { emit: __emit }) {
2367
+ const emit = __emit;
2361
2368
  const props = __props;
2362
2369
  const {
2363
2370
  disabled,
@@ -2418,7 +2425,7 @@ const VvCardProps = {
2418
2425
  ...ModifiersProps,
2419
2426
  title: String
2420
2427
  };
2421
- const _hoisted_1$g = {
2428
+ const _hoisted_1$f = {
2422
2429
  key: 0,
2423
2430
  class: "vv-card__header"
2424
2431
  };
@@ -2447,7 +2454,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2447
2454
  class: normalizeClass(unref(bemCssClasses))
2448
2455
  },
2449
2456
  [
2450
- _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$g, [
2457
+ _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$f, [
2451
2458
  renderSlot(_ctx.$slots, "header", {}, () => [
2452
2459
  createTextVNode(
2453
2460
  toDisplayString(_ctx.title),
@@ -2691,7 +2698,7 @@ function useDefaults(componentName, propsDefinition, props) {
2691
2698
  }, {});
2692
2699
  });
2693
2700
  }
2694
- const _hoisted_1$f = ["for"];
2701
+ const _hoisted_1$e = ["for"];
2695
2702
  const _hoisted_2$9 = ["id", "name", "disabled", "value", "tabindex", "aria-invalid", "aria-describedby", "aria-errormessage"];
2696
2703
  const __default__$g = {
2697
2704
  name: "VvCheckbox"
@@ -2700,8 +2707,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2700
2707
  ...__default__$g,
2701
2708
  props: VvCheckboxProps,
2702
2709
  emits: VvCheckboxEvents,
2703
- setup(__props, { emit }) {
2710
+ setup(__props, { emit: __emit }) {
2704
2711
  const props = __props;
2712
+ const emit = __emit;
2705
2713
  const slots = useSlots();
2706
2714
  const propsDefaults = useDefaults(
2707
2715
  "VvCheckbox",
@@ -2886,7 +2894,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2886
2894
  key: "3"
2887
2895
  } : void 0
2888
2896
  ]), 1032, ["id"])
2889
- ], 10, _hoisted_1$f);
2897
+ ], 10, _hoisted_1$e);
2890
2898
  };
2891
2899
  }
2892
2900
  });
@@ -2924,7 +2932,7 @@ function useOptions(props) {
2924
2932
  getOptionGrouped
2925
2933
  };
2926
2934
  }
2927
- const _hoisted_1$e = ["textContent"];
2935
+ const _hoisted_1$d = ["textContent"];
2928
2936
  const _hoisted_2$8 = { class: "vv-checkbox-group__wrapper" };
2929
2937
  const __default__$f = {
2930
2938
  name: "VvCheckboxGroup"
@@ -2933,8 +2941,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2933
2941
  ...__default__$f,
2934
2942
  props: VvCheckboxGroupProps,
2935
2943
  emits: VvCheckboxGroupEvents,
2936
- setup(__props, { emit }) {
2944
+ setup(__props, { emit: __emit }) {
2937
2945
  const props = __props;
2946
+ const emit = __emit;
2938
2947
  const slots = useSlots();
2939
2948
  const propsDefaults = useDefaults(
2940
2949
  "VvCheckboxGroup",
@@ -2982,7 +2991,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2982
2991
  _ctx.label ? (openBlock(), createElementBlock("legend", {
2983
2992
  key: 0,
2984
2993
  textContent: toDisplayString(_ctx.label)
2985
- }, null, 8, _hoisted_1$e)) : createCommentVNode("v-if", true),
2994
+ }, null, 8, _hoisted_1$d)) : createCommentVNode("v-if", true),
2986
2995
  createElementVNode("div", _hoisted_2$8, [
2987
2996
  _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
2988
2997
  Fragment,
@@ -3275,7 +3284,7 @@ function useProvideDropdownAction({
3275
3284
  expanded
3276
3285
  });
3277
3286
  }
3278
- const _hoisted_1$d = ["id", "tabindex", "role", "aria-labelledby"];
3287
+ const _hoisted_1$c = ["id", "tabindex", "role", "aria-labelledby"];
3279
3288
  const __default__$e = {
3280
3289
  name: "VvDropdown",
3281
3290
  inheritAttrs: false
@@ -3298,8 +3307,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3298
3307
  "leave",
3299
3308
  "leave-cancelled"
3300
3309
  ],
3301
- setup(__props, { expose: __expose, emit }) {
3310
+ setup(__props, { expose: __expose, emit: __emit }) {
3302
3311
  const props = __props;
3312
+ const emit = __emit;
3303
3313
  const { id } = toRefs(props);
3304
3314
  const hasId = useUniqueId(id);
3305
3315
  const attrs = useAttrs();
@@ -3683,7 +3693,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3683
3693
  renderSlot(_ctx.$slots, "items", normalizeProps(guardReactiveProps({
3684
3694
  role: unref(itemRole)
3685
3695
  })))
3686
- ], 16, _hoisted_1$d),
3696
+ ], 16, _hoisted_1$c),
3687
3697
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps({ expanded: unref(expanded) })))
3688
3698
  ],
3689
3699
  6
@@ -3736,7 +3746,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3736
3746
  };
3737
3747
  }
3738
3748
  });
3739
- const _hoisted_1$c = ["title"];
3749
+ const _hoisted_1$b = ["title"];
3740
3750
  const __default__$c = {
3741
3751
  name: "VvDropdownOption"
3742
3752
  };
@@ -3797,7 +3807,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3797
3807
  /* TEXT */
3798
3808
  )
3799
3809
  ])
3800
- ], 8, _hoisted_1$c)
3810
+ ], 8, _hoisted_1$b)
3801
3811
  ]),
3802
3812
  _: 3
3803
3813
  /* FORWARDED */
@@ -3805,7 +3815,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3805
3815
  };
3806
3816
  }
3807
3817
  });
3808
- const _hoisted_1$b = {
3818
+ const _hoisted_1$a = {
3809
3819
  class: "vv-dropdown-optgroup",
3810
3820
  role: "presentation",
3811
3821
  tabindex: "-1"
@@ -3823,7 +3833,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3823
3833
  return (_ctx, _cache) => {
3824
3834
  return openBlock(), createElementBlock(
3825
3835
  "li",
3826
- _hoisted_1$b,
3836
+ _hoisted_1$a,
3827
3837
  toDisplayString(props.label),
3828
3838
  1
3829
3839
  /* TEXT */
@@ -3889,17 +3899,17 @@ function useComponentFocus(inputTemplateRef, emit) {
3889
3899
  focused
3890
3900
  };
3891
3901
  }
3892
- const _hoisted_1$a = ["for"];
3902
+ const _hoisted_1$9 = ["for"];
3893
3903
  const _hoisted_2$7 = { class: "vv-select__wrapper" };
3894
3904
  const _hoisted_3$5 = {
3895
3905
  key: 0,
3896
3906
  class: "vv-select__input-before"
3897
3907
  };
3898
- const _hoisted_4$5 = { class: "vv-select__inner" };
3908
+ const _hoisted_4$4 = { class: "vv-select__inner" };
3899
3909
  const _hoisted_5$4 = ["id"];
3900
3910
  const _hoisted_6$4 = ["disabled", "hidden"];
3901
3911
  const _hoisted_7$4 = ["disabled", "value"];
3902
- const _hoisted_8$3 = ["disabled", "label"];
3912
+ const _hoisted_8$2 = ["disabled", "label"];
3903
3913
  const _hoisted_9$2 = ["disabled", "value"];
3904
3914
  const _hoisted_10$1 = {
3905
3915
  key: 1,
@@ -3912,8 +3922,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3912
3922
  ...__default__$a,
3913
3923
  props: VvSelectProps,
3914
3924
  emits: VvSelectEmits,
3915
- setup(__props, { emit }) {
3925
+ setup(__props, { emit: __emit }) {
3916
3926
  const props = __props;
3927
+ const emit = __emit;
3917
3928
  const slots = useSlots();
3918
3929
  const propsDefaults = useDefaults(
3919
3930
  "VvSelect",
@@ -4032,12 +4043,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4032
4043
  _ctx.label ? (openBlock(), createElementBlock("label", {
4033
4044
  key: 0,
4034
4045
  for: unref(hasId)
4035
- }, toDisplayString(_ctx.label), 9, _hoisted_1$a)) : createCommentVNode("v-if", true),
4046
+ }, toDisplayString(_ctx.label), 9, _hoisted_1$9)) : createCommentVNode("v-if", true),
4036
4047
  createElementVNode("div", _hoisted_2$7, [
4037
4048
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
4038
4049
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4039
4050
  ])) : createCommentVNode("v-if", true),
4040
- createElementVNode("div", _hoisted_4$5, [
4051
+ createElementVNode("div", _hoisted_4$4, [
4041
4052
  unref(hasIconBefore) ? (openBlock(), createBlock(
4042
4053
  _sfc_main$u,
4043
4054
  mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-select__icon" }),
@@ -4087,7 +4098,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4087
4098
  128
4088
4099
  /* KEYED_FRAGMENT */
4089
4100
  ))
4090
- ], 8, _hoisted_8$3))
4101
+ ], 8, _hoisted_8$2))
4091
4102
  ],
4092
4103
  64
4093
4104
  /* STABLE_FRAGMENT */
@@ -4154,10 +4165,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4154
4165
  };
4155
4166
  }
4156
4167
  });
4157
- const _hoisted_1$9 = ["id"];
4168
+ const _hoisted_1$8 = ["id"];
4158
4169
  const _hoisted_2$6 = ["id", "for"];
4159
4170
  const _hoisted_3$4 = ["id", "aria-controls", "placeholder"];
4160
- const _hoisted_4$4 = {
4171
+ const _hoisted_4$3 = {
4161
4172
  key: 0,
4162
4173
  class: "vv-select__input-before"
4163
4174
  };
@@ -4167,7 +4178,7 @@ const _hoisted_7$3 = {
4167
4178
  key: 0,
4168
4179
  class: "vv-select__value"
4169
4180
  };
4170
- const _hoisted_8$2 = ["aria-label", "onClick"];
4181
+ const _hoisted_8$1 = ["aria-label", "onClick"];
4171
4182
  const _hoisted_9$1 = {
4172
4183
  key: 1,
4173
4184
  class: "vv-select__input-after"
@@ -4185,8 +4196,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4185
4196
  ...__default__$9,
4186
4197
  props: VvComboboxProps,
4187
4198
  emits: VvComboboxEvents,
4188
- setup(__props, { emit }) {
4199
+ setup(__props, { emit: __emit }) {
4189
4200
  const props = __props;
4201
+ const emit = __emit;
4190
4202
  const slots = useSlots();
4191
4203
  const propsDefaults = useDefaults(
4192
4204
  "VvCombobox",
@@ -4482,7 +4494,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4482
4494
  onAfterCollapse
4483
4495
  }), createSlots({
4484
4496
  default: withCtx(({ aria }) => [
4485
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
4497
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
4486
4498
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4487
4499
  ])) : createCommentVNode("v-if", true),
4488
4500
  createElementVNode("div", _hoisted_5$3, [
@@ -4539,7 +4551,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4539
4551
  onClick: withModifiers(($event) => onInput(option), ["stop"])
4540
4552
  }, [
4541
4553
  createVNode(_sfc_main$u, { name: "close" })
4542
- ], 8, _hoisted_8$2)) : createCommentVNode("v-if", true)
4554
+ ], 8, _hoisted_8$1)) : createCommentVNode("v-if", true)
4543
4555
  ]),
4544
4556
  _: 2
4545
4557
  /* DYNAMIC */
@@ -4786,7 +4798,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4786
4798
  key: "3"
4787
4799
  } : void 0
4788
4800
  ]), 1032, ["id"])
4789
- ], 10, _hoisted_1$9)) : (openBlock(), createBlock(
4801
+ ], 10, _hoisted_1$8)) : (openBlock(), createBlock(
4790
4802
  _sfc_main$e,
4791
4803
  mergeProps({ key: 1 }, unref(selectProps), {
4792
4804
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
@@ -4837,13 +4849,12 @@ const VvDialogProps = {
4837
4849
  */
4838
4850
  keepOpen: { type: Boolean, default: false }
4839
4851
  };
4840
- const _hoisted_1$8 = ["onCancel"];
4841
- const _hoisted_2$5 = {
4852
+ const _hoisted_1$7 = {
4842
4853
  key: 0,
4843
4854
  class: "vv-dialog__header"
4844
4855
  };
4845
- const _hoisted_3$3 = { class: "vv-dialog__content" };
4846
- const _hoisted_4$3 = {
4856
+ const _hoisted_2$5 = { class: "vv-dialog__content" };
4857
+ const _hoisted_3$3 = {
4847
4858
  key: 1,
4848
4859
  class: "vv-dialog__footer"
4849
4860
  };
@@ -4854,8 +4865,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
4854
4865
  ...__default__$8,
4855
4866
  props: VvDialogProps,
4856
4867
  emits: VvDialogEvents,
4857
- setup(__props, { expose: __expose, emit }) {
4868
+ setup(__props, { expose: __expose, emit: __emit }) {
4858
4869
  const props = __props;
4870
+ const emit = __emit;
4859
4871
  const dialogEl = ref();
4860
4872
  const modelValue = useVModel(props, "modelValue", emit);
4861
4873
  const localModelValue = ref(false);
@@ -4939,54 +4951,60 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
4939
4951
  return (_ctx, _cache) => {
4940
4952
  return openBlock(), createBlock(Transition, mergeProps({ name: unref(transitioName) }, toHandlers(dialogTransitionHandlers), { persisted: "" }), {
4941
4953
  default: withCtx(() => [
4942
- withDirectives(createElementVNode("dialog", mergeProps(unref(dialogAttrs), {
4943
- ref_key: "dialogEl",
4944
- ref: dialogEl,
4945
- class: unref(dialogClass),
4946
- onCancel: withModifiers(onCancel, ["stop", "prevent"])
4947
- }), [
4948
- createElementVNode(
4949
- "article",
4950
- {
4951
- ref_key: "modalWrapper",
4952
- ref: modalWrapper,
4953
- class: "vv-dialog__wrapper"
4954
- },
4955
- [
4956
- _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2$5, [
4957
- renderSlot(_ctx.$slots, "header", {}, () => [
4958
- createTextVNode(
4959
- toDisplayString(_ctx.title) + " ",
4960
- 1
4961
- /* TEXT */
4962
- ),
4963
- createElementVNode(
4964
- "button",
4965
- {
4966
- type: "button",
4967
- "aria-label": "Close",
4968
- class: "vv-dialog__close",
4969
- onClickPassive: close
4970
- },
4971
- [
4972
- createVNode(_sfc_main$u, { name: "close" })
4973
- ],
4974
- 32
4975
- /* HYDRATE_EVENTS */
4976
- )
4977
- ])
4978
- ])) : createCommentVNode("v-if", true),
4979
- createElementVNode("div", _hoisted_3$3, [
4980
- renderSlot(_ctx.$slots, "default")
4981
- ]),
4982
- _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$3, [
4983
- renderSlot(_ctx.$slots, "footer")
4984
- ])) : createCommentVNode("v-if", true)
4985
- ],
4986
- 512
4987
- /* NEED_PATCH */
4988
- )
4989
- ], 16, _hoisted_1$8), [
4954
+ withDirectives(createElementVNode(
4955
+ "dialog",
4956
+ mergeProps(unref(dialogAttrs), {
4957
+ ref_key: "dialogEl",
4958
+ ref: dialogEl,
4959
+ class: unref(dialogClass),
4960
+ onCancel: withModifiers(onCancel, ["stop", "prevent"])
4961
+ }),
4962
+ [
4963
+ createElementVNode(
4964
+ "article",
4965
+ {
4966
+ ref_key: "modalWrapper",
4967
+ ref: modalWrapper,
4968
+ class: "vv-dialog__wrapper"
4969
+ },
4970
+ [
4971
+ _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$7, [
4972
+ renderSlot(_ctx.$slots, "header", {}, () => [
4973
+ createTextVNode(
4974
+ toDisplayString(_ctx.title) + " ",
4975
+ 1
4976
+ /* TEXT */
4977
+ ),
4978
+ createElementVNode(
4979
+ "button",
4980
+ {
4981
+ type: "button",
4982
+ "aria-label": "Close",
4983
+ class: "vv-dialog__close",
4984
+ onClickPassive: close
4985
+ },
4986
+ [
4987
+ createVNode(_sfc_main$u, { name: "close" })
4988
+ ],
4989
+ 32
4990
+ /* NEED_HYDRATION */
4991
+ )
4992
+ ])
4993
+ ])) : createCommentVNode("v-if", true),
4994
+ createElementVNode("div", _hoisted_2$5, [
4995
+ renderSlot(_ctx.$slots, "default")
4996
+ ]),
4997
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$3, [
4998
+ renderSlot(_ctx.$slots, "footer")
4999
+ ])) : createCommentVNode("v-if", true)
5000
+ ],
5001
+ 512
5002
+ /* NEED_PATCH */
5003
+ )
5004
+ ],
5005
+ 16
5006
+ /* FULL_PROPS */
5007
+ ), [
4990
5008
  [vShow, unref(isOpened)]
4991
5009
  ])
4992
5010
  ]),
@@ -5516,23 +5534,22 @@ function useTextCount(text, options) {
5516
5534
  formatted
5517
5535
  };
5518
5536
  }
5519
- const _hoisted_1$7 = ["for"];
5537
+ const _hoisted_1$6 = ["for"];
5520
5538
  const _hoisted_2$4 = { class: "vv-input-text__wrapper" };
5521
5539
  const _hoisted_3$2 = {
5522
5540
  key: 0,
5523
5541
  class: "vv-input-text__input-before"
5524
5542
  };
5525
- const _hoisted_4$2 = ["onClick"];
5526
- const _hoisted_5$2 = ["id"];
5527
- const _hoisted_6$2 = {
5543
+ const _hoisted_4$2 = ["id"];
5544
+ const _hoisted_5$2 = {
5528
5545
  key: 1,
5529
5546
  class: "vv-input-text__unit"
5530
5547
  };
5531
- const _hoisted_7$2 = {
5548
+ const _hoisted_6$2 = {
5532
5549
  key: 5,
5533
5550
  class: "vv-input-text__input-after"
5534
5551
  };
5535
- const _hoisted_8$1 = {
5552
+ const _hoisted_7$2 = {
5536
5553
  key: 6,
5537
5554
  class: "vv-input-text__limit"
5538
5555
  };
@@ -5543,8 +5560,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5543
5560
  ...__default__$6,
5544
5561
  props: VvInputTextProps,
5545
5562
  emits: VvInputTextEvents,
5546
- setup(__props, { expose: __expose, emit }) {
5563
+ setup(__props, { expose: __expose, emit: __emit }) {
5547
5564
  const props = __props;
5565
+ const emit = __emit;
5548
5566
  const slots = useSlots();
5549
5567
  const propsDefaults = useDefaults(
5550
5568
  "VvInputText",
@@ -5890,44 +5908,50 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5890
5908
  key: 0,
5891
5909
  for: unref(hasId),
5892
5910
  class: "vv-input-text__label"
5893
- }, toDisplayString(unref(label)), 9, _hoisted_1$7)) : createCommentVNode("v-if", true),
5911
+ }, toDisplayString(unref(label)), 9, _hoisted_1$6)) : createCommentVNode("v-if", true),
5894
5912
  createElementVNode("div", _hoisted_2$4, [
5895
5913
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
5896
5914
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
5897
5915
  ])) : createCommentVNode("v-if", true),
5898
- createElementVNode("div", {
5899
- ref_key: "innerEl",
5900
- ref: innerEl,
5901
- class: "vv-input-text__inner",
5902
- onClick: withModifiers(onClickInner, ["stop"])
5903
- }, [
5904
- unref(hasIconBefore) ? (openBlock(), createBlock(
5905
- _sfc_main$u,
5906
- mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-input-text__icon" }),
5907
- null,
5908
- 16
5909
- /* FULL_PROPS */
5910
- )) : createCommentVNode("v-if", true),
5911
- createElementVNode("input", mergeProps({
5912
- id: unref(hasId),
5913
- ref_key: "inputEl",
5914
- ref: inputEl
5915
- }, unref(hasAttrs), {
5916
- style: unref(hasStyle),
5917
- onKeyup: _cache[0] || (_cache[0] = ($event) => emit("keyup", $event)),
5918
- onKeydown: onKeyDown,
5919
- onKeypress: _cache[1] || (_cache[1] = ($event) => emit("keypress", $event))
5920
- }), null, 16, _hoisted_5$2),
5921
- (_ctx.unit || _ctx.$slots.unit) && unref(isDirty) ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
5922
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5923
- createTextVNode(
5924
- toDisplayString(_ctx.unit),
5925
- 1
5926
- /* TEXT */
5927
- )
5928
- ])
5929
- ])) : createCommentVNode("v-if", true)
5930
- ], 8, _hoisted_4$2),
5916
+ createElementVNode(
5917
+ "div",
5918
+ {
5919
+ ref_key: "innerEl",
5920
+ ref: innerEl,
5921
+ class: "vv-input-text__inner",
5922
+ onClick: withModifiers(onClickInner, ["stop"])
5923
+ },
5924
+ [
5925
+ unref(hasIconBefore) ? (openBlock(), createBlock(
5926
+ _sfc_main$u,
5927
+ mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-input-text__icon" }),
5928
+ null,
5929
+ 16
5930
+ /* FULL_PROPS */
5931
+ )) : createCommentVNode("v-if", true),
5932
+ createElementVNode("input", mergeProps({
5933
+ id: unref(hasId),
5934
+ ref_key: "inputEl",
5935
+ ref: inputEl
5936
+ }, unref(hasAttrs), {
5937
+ style: unref(hasStyle),
5938
+ onKeyup: _cache[0] || (_cache[0] = ($event) => emit("keyup", $event)),
5939
+ onKeydown: onKeyDown,
5940
+ onKeypress: _cache[1] || (_cache[1] = ($event) => emit("keypress", $event))
5941
+ }), null, 16, _hoisted_4$2),
5942
+ (_ctx.unit || _ctx.$slots.unit) && unref(isDirty) ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
5943
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5944
+ createTextVNode(
5945
+ toDisplayString(_ctx.unit),
5946
+ 1
5947
+ /* TEXT */
5948
+ )
5949
+ ])
5950
+ ])) : createCommentVNode("v-if", true)
5951
+ ],
5952
+ 512
5953
+ /* NEED_PATCH */
5954
+ ),
5931
5955
  unref(iconAfter) ? (openBlock(), createBlock(
5932
5956
  _sfc_main$u,
5933
5957
  mergeProps({ key: 1 }, unref(iconAfter), { class: "vv-input-text__icon vv-input-text__icon-after" }),
@@ -5945,10 +5969,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5945
5969
  key: 4,
5946
5970
  onClear
5947
5971
  })) : createCommentVNode("v-if", true),
5948
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
5972
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
5949
5973
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
5950
5974
  ])) : createCommentVNode("v-if", true),
5951
- unref(count) ? (openBlock(), createElementBlock("span", _hoisted_8$1, [
5975
+ unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7$2, [
5952
5976
  renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5953
5977
  createTextVNode(
5954
5978
  toDisplayString(unref(countFormatted)),
@@ -6006,7 +6030,7 @@ const VvNavProps = {
6006
6030
  ...NavProps
6007
6031
  };
6008
6032
  const VvNavEvents = ["click"];
6009
- const _hoisted_1$6 = {
6033
+ const _hoisted_1$5 = {
6010
6034
  class: "vv-nav__item",
6011
6035
  role: "presentation"
6012
6036
  };
@@ -6018,7 +6042,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6018
6042
  ...__default__$5,
6019
6043
  setup(__props) {
6020
6044
  return (_ctx, _cache) => {
6021
- return openBlock(), createElementBlock("li", _hoisted_1$6, [
6045
+ return openBlock(), createElementBlock("li", _hoisted_1$5, [
6022
6046
  createVNode(
6023
6047
  _sfc_main$v,
6024
6048
  mergeProps(_ctx.$attrs, { class: "vv-nav__item-label" }),
@@ -6036,14 +6060,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6036
6060
  };
6037
6061
  }
6038
6062
  });
6039
- const _hoisted_1$5 = ["onClick"];
6040
6063
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
6041
6064
  __name: "VvNav",
6042
6065
  props: VvNavProps,
6043
6066
  emits: VvNavEvents,
6044
- setup(__props, { emit }) {
6067
+ setup(__props, { emit: __emit }) {
6045
6068
  const props = __props;
6046
6069
  const { modifiers } = toRefs(props);
6070
+ const emit = __emit;
6047
6071
  const onClick = (event) => {
6048
6072
  var _a;
6049
6073
  const target = event.target;
@@ -6090,7 +6114,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
6090
6114
  /* KEYED_FRAGMENT */
6091
6115
  ))
6092
6116
  ])
6093
- ], 8, _hoisted_1$5)
6117
+ ])
6094
6118
  ],
6095
6119
  2
6096
6120
  /* CLASS */
@@ -6222,8 +6246,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
6222
6246
  ...__default__$3,
6223
6247
  props: VvRadioProps,
6224
6248
  emits: VvRadioEvents,
6225
- setup(__props, { emit }) {
6249
+ setup(__props, { emit: __emit }) {
6226
6250
  const props = __props;
6251
+ const emit = __emit;
6227
6252
  const slots = useSlots();
6228
6253
  const propsDefaults = useDefaults(
6229
6254
  "VvRadio",
@@ -6361,8 +6386,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6361
6386
  ...__default__$2,
6362
6387
  props: VvRadioGroupProps,
6363
6388
  emits: VvRadioGroupEvents,
6364
- setup(__props, { emit }) {
6389
+ setup(__props, { emit: __emit }) {
6365
6390
  const props = __props;
6391
+ const emit = __emit;
6366
6392
  const slots = useSlots();
6367
6393
  const propsDefaults = useDefaults(
6368
6394
  "VvRadioGroup",
@@ -6493,8 +6519,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6493
6519
  __name: "VvTab",
6494
6520
  props: VvTabProps,
6495
6521
  emits: VvTabEvents,
6496
- setup(__props, { emit }) {
6522
+ setup(__props, { emit: __emit }) {
6497
6523
  const props = __props;
6524
+ const emit = __emit;
6498
6525
  const { modifiers, items } = toRefs(props);
6499
6526
  const tabKeys = computed(() => {
6500
6527
  return items.value.reduce((acc, item) => {
@@ -6657,8 +6684,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6657
6684
  ...__default__$1,
6658
6685
  props: VvTextareaProps,
6659
6686
  emits: VvTextareaEvents,
6660
- setup(__props, { emit }) {
6687
+ setup(__props, { emit: __emit }) {
6661
6688
  const props = __props;
6689
+ const emit = __emit;
6662
6690
  const slots = useSlots();
6663
6691
  const propsDefaults = useDefaults(
6664
6692
  "VvTextarea",
@@ -6940,15 +6968,16 @@ const VvInputFileProps = {
6940
6968
  iconRight: String
6941
6969
  };
6942
6970
  const _hoisted_1 = ["for"];
6943
- const _hoisted_2 = ["onDragenter", "onDragleave", "onDrop", "onClick"];
6944
- const _hoisted_3 = { class: "vv-input-file__preview" };
6945
- const _hoisted_4 = ["src", "alt"];
6946
- const _hoisted_5 = { class: "vv-input-file__wrapper" };
6947
- const _hoisted_6 = ["id", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "name"];
6948
- const _hoisted_7 = { class: "vv-input-file__list" };
6949
- const _hoisted_8 = { class: "vv-input-file__item-name" };
6950
- const _hoisted_9 = { class: "vv-input-file__item-info" };
6951
- const _hoisted_10 = ["onClick"];
6971
+ const _hoisted_2 = { class: "vv-input-file__preview" };
6972
+ const _hoisted_3 = ["src", "alt"];
6973
+ const _hoisted_4 = { class: "vv-input-file__wrapper" };
6974
+ const _hoisted_5 = ["id", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "name"];
6975
+ const _hoisted_6 = { class: "vv-input-file__list" };
6976
+ const _hoisted_7 = ["onClick"];
6977
+ const _hoisted_8 = ["onClick"];
6978
+ const _hoisted_9 = { class: "vv-input-file__item-name cursor-pointer" };
6979
+ const _hoisted_10 = { class: "vv-input-file__item-info" };
6980
+ const _hoisted_11 = ["onClick"];
6952
6981
  const __default__ = {
6953
6982
  name: "VvInputFile"
6954
6983
  };
@@ -6956,8 +6985,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
6956
6985
  ...__default__,
6957
6986
  props: VvInputFileProps,
6958
6987
  emits: ["update:modelValue"],
6959
- setup(__props, { emit }) {
6988
+ setup(__props, { emit: __emit }) {
6960
6989
  const props = __props;
6990
+ const emit = __emit;
6961
6991
  const slots = useSlots();
6962
6992
  const propsDefaults = useDefaults(
6963
6993
  "VvInputFile",
@@ -7071,14 +7101,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7071
7101
  toReturn.splice(index, 1);
7072
7102
  localModelValue.value = toReturn;
7073
7103
  };
7104
+ const currentFileIndex = ref(0);
7074
7105
  const previewSrc = computed(() => {
7075
7106
  if (files.value.length === 0) {
7076
7107
  return;
7077
7108
  }
7078
- if (files.value[0] instanceof File) {
7079
- return URL.createObjectURL(files.value[0]);
7109
+ if (files.value[currentFileIndex.value] instanceof File) {
7110
+ return URL.createObjectURL(
7111
+ files.value[currentFileIndex.value]
7112
+ );
7080
7113
  }
7081
- return files.value[0].url;
7114
+ return files.value[currentFileIndex.value].url;
7082
7115
  });
7083
7116
  onBeforeUnmount(() => {
7084
7117
  if (previewSrc.value) {
@@ -7091,6 +7124,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7091
7124
  }
7092
7125
  return Math.floor(size2 / 1024);
7093
7126
  };
7127
+ const onClickDownloadFile = (file) => {
7128
+ const link = document.createElement("a");
7129
+ if (file instanceof File) {
7130
+ link.href = URL.createObjectURL(file);
7131
+ } else if (file.url) {
7132
+ link.href = file.url;
7133
+ }
7134
+ link.setAttribute("download", file.name);
7135
+ document.body.appendChild(link);
7136
+ link.click();
7137
+ };
7094
7138
  return (_ctx, _cache) => {
7095
7139
  return openBlock(), createElementBlock(
7096
7140
  "div",
@@ -7102,37 +7146,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7102
7146
  key: 0,
7103
7147
  for: unref(hasId)
7104
7148
  }, toDisplayString(_ctx.label), 9, _hoisted_1)) : createCommentVNode("v-if", true),
7105
- hasDropArea.value ? (openBlock(), createElementBlock("div", {
7106
- key: 1,
7107
- class: "vv-input-file__drop-area",
7108
- onDragenter: withModifiers(onDragenter, ["prevent", "stop"]),
7109
- onDragleave: withModifiers(onDragleave, ["prevent", "stop"]),
7110
- onDrop: withModifiers(onDrop, ["prevent", "stop"]),
7111
- onDragover: _cache[0] || (_cache[0] = withModifiers(() => {
7112
- }, ["prevent", "stop"])),
7113
- onClick: withModifiers(onClick, ["stop"])
7114
- }, [
7115
- renderSlot(_ctx.$slots, "drop-area", {}, () => [
7116
- createVNode(_sfc_main$n, {
7117
- modifiers: "action",
7118
- "aria-label": "upload",
7119
- label: !previewSrc.value ? _ctx.labelButton : void 0,
7120
- class: normalizeClass([{
7121
- "absolute top-8 right-8": previewSrc.value
7122
- }, "z-1"]),
7123
- icon: !previewSrc.value ? "image" : "edit",
7124
- onClick: withModifiers(onClick, ["stop"])
7125
- }, null, 8, ["label", "class", "icon", "onClick"]),
7126
- createElementVNode("picture", _hoisted_3, [
7127
- previewSrc.value ? (openBlock(), createElementBlock("img", {
7128
- key: 0,
7129
- src: previewSrc.value,
7130
- alt: files.value[0].name
7131
- }, null, 8, _hoisted_4)) : createCommentVNode("v-if", true)
7149
+ hasDropArea.value ? (openBlock(), createElementBlock(
7150
+ "div",
7151
+ {
7152
+ key: 1,
7153
+ class: "vv-input-file__drop-area",
7154
+ onDragenter: withModifiers(onDragenter, ["prevent", "stop"]),
7155
+ onDragleave: withModifiers(onDragleave, ["prevent", "stop"]),
7156
+ onDrop: withModifiers(onDrop, ["prevent", "stop"]),
7157
+ onDragover: _cache[0] || (_cache[0] = withModifiers(() => {
7158
+ }, ["prevent", "stop"])),
7159
+ onClick: withModifiers(onClick, ["stop"])
7160
+ },
7161
+ [
7162
+ renderSlot(_ctx.$slots, "drop-area", {}, () => [
7163
+ createVNode(_sfc_main$n, {
7164
+ modifiers: "action",
7165
+ "aria-label": "upload",
7166
+ label: !previewSrc.value ? _ctx.labelButton : void 0,
7167
+ class: normalizeClass([{
7168
+ "absolute top-8 right-8": previewSrc.value
7169
+ }, "z-1"]),
7170
+ icon: !previewSrc.value ? "image" : isMultiple.value ? "add" : "edit",
7171
+ onClick: withModifiers(onClick, ["stop"])
7172
+ }, null, 8, ["label", "class", "icon"]),
7173
+ createElementVNode("picture", _hoisted_2, [
7174
+ previewSrc.value ? (openBlock(), createElementBlock("img", {
7175
+ key: 0,
7176
+ src: previewSrc.value,
7177
+ alt: files.value[currentFileIndex.value].name
7178
+ }, null, 8, _hoisted_3)) : createCommentVNode("v-if", true)
7179
+ ])
7132
7180
  ])
7133
- ])
7134
- ], 40, _hoisted_2)) : createCommentVNode("v-if", true),
7135
- createElementVNode("div", _hoisted_5, [
7181
+ ],
7182
+ 32
7183
+ /* NEED_HYDRATION */
7184
+ )) : createCommentVNode("v-if", true),
7185
+ createElementVNode("div", _hoisted_4, [
7136
7186
  _ctx.iconLeft ? (openBlock(), createBlock(_sfc_main$u, {
7137
7187
  key: 0,
7138
7188
  name: _ctx.iconLeft
@@ -7150,35 +7200,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7150
7200
  type: "file",
7151
7201
  name: _ctx.name,
7152
7202
  onChange
7153
- }, null, 40, _hoisted_6),
7203
+ }, null, 40, _hoisted_5),
7154
7204
  _ctx.iconRight ? (openBlock(), createBlock(_sfc_main$u, {
7155
7205
  key: 1,
7156
7206
  name: _ctx.iconRight
7157
7207
  }, null, 8, ["name"])) : createCommentVNode("v-if", true)
7158
7208
  ]),
7159
- createElementVNode("ul", _hoisted_7, [
7209
+ createElementVNode("ul", _hoisted_6, [
7160
7210
  (openBlock(true), createElementBlock(
7161
7211
  Fragment,
7162
7212
  null,
7163
7213
  renderList(files.value, (file, index) => {
7164
7214
  return openBlock(), createElementBlock("li", {
7165
7215
  key: index,
7166
- class: "vv-input-file__item"
7216
+ class: "vv-input-file__item",
7217
+ onClick: withModifiers(($event) => currentFileIndex.value = index, ["stop"])
7167
7218
  }, [
7168
- createVNode(_sfc_main$u, {
7169
- class: "vv-input-file__item-icon",
7170
- name: "akar-icons:file"
7171
- }),
7219
+ createElementVNode("button", {
7220
+ type: "button",
7221
+ class: "vv-input-file__item-icon cursor-pointer",
7222
+ title: "Download",
7223
+ "aria-label": "download-file",
7224
+ onClick: withModifiers(($event) => onClickDownloadFile(file), ["stop"])
7225
+ }, [
7226
+ createVNode(_sfc_main$u, { name: "download" })
7227
+ ], 8, _hoisted_8),
7172
7228
  createElementVNode(
7173
7229
  "div",
7174
- _hoisted_8,
7230
+ _hoisted_9,
7175
7231
  toDisplayString(file.name),
7176
7232
  1
7177
7233
  /* TEXT */
7178
7234
  ),
7179
7235
  createElementVNode(
7180
7236
  "small",
7181
- _hoisted_9,
7237
+ _hoisted_10,
7182
7238
  toDisplayString(sizeInKiB(file.size)) + " KB ",
7183
7239
  1
7184
7240
  /* TEXT */
@@ -7189,8 +7245,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7189
7245
  title: "Remove",
7190
7246
  "aria-label": "remove-file",
7191
7247
  onClick: withModifiers(($event) => onClickRemoveFile(index), ["stop"])
7192
- }, null, 8, _hoisted_10)
7193
- ]);
7248
+ }, null, 8, _hoisted_11)
7249
+ ], 8, _hoisted_7);
7194
7250
  }),
7195
7251
  128
7196
7252
  /* KEYED_FRAGMENT */