@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.
Files changed (67) hide show
  1. package/dist/components/VvAccordion/VvAccordion.es.js +1 -3
  2. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  3. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +1 -6
  4. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  5. package/dist/components/VvAction/VvAction.es.js +1 -2
  6. package/dist/components/VvAction/VvAction.umd.js +1 -1
  7. package/dist/components/VvAlert/VvAlert.es.js +0 -7
  8. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  9. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +0 -10
  10. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  11. package/dist/components/VvBadge/VvBadge.es.js +1 -2
  12. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  13. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +1 -3
  14. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  15. package/dist/components/VvButton/VvButton.es.js +15 -33
  16. package/dist/components/VvButton/VvButton.umd.js +1 -1
  17. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +1 -2
  18. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  19. package/dist/components/VvCard/VvCard.es.js +1 -5
  20. package/dist/components/VvCard/VvCard.umd.js +1 -1
  21. package/dist/components/VvCheckbox/VvCheckbox.es.js +1 -2
  22. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  23. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +2 -13
  24. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  25. package/dist/components/VvCombobox/VvCombobox.es.js +15 -48
  26. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  27. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +26 -26
  28. package/dist/components/VvCombobox/index.d.ts +8 -8
  29. package/dist/components/VvDialog/VvDialog.es.js +0 -3
  30. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  31. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +29 -29
  32. package/dist/components/VvDropdown/index.d.ts +8 -8
  33. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +1 -2
  34. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  35. package/dist/components/VvInputFile/VvInputFile.es.js +37 -34
  36. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  37. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +43 -4
  38. package/dist/components/VvInputFile/index.d.ts +14 -2
  39. package/dist/components/VvInputText/VvInputText.es.js +0 -6
  40. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  41. package/dist/components/VvNav/VvNav.es.js +1 -2
  42. package/dist/components/VvNav/VvNav.umd.js +1 -1
  43. package/dist/components/VvNavItem/VvNavItem.es.js +1 -2
  44. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  45. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +1 -13
  46. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  47. package/dist/components/VvSelect/VvSelect.es.js +0 -4
  48. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  49. package/dist/components/VvTab/VvTab.es.js +2 -7
  50. package/dist/components/VvTab/VvTab.umd.js +1 -1
  51. package/dist/components/VvTextarea/VvTextarea.es.js +0 -4
  52. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  53. package/dist/components/index.es.js +41 -114
  54. package/dist/components/index.umd.js +1 -1
  55. package/dist/icons.es.js +3 -3
  56. package/dist/icons.umd.js +1 -1
  57. package/dist/index.es.js +20 -12
  58. package/dist/index.umd.js +1 -1
  59. package/dist/props/index.d.ts +8 -14
  60. package/dist/resolvers/unplugin.es.js +20 -12
  61. package/dist/resolvers/unplugin.umd.js +1 -1
  62. package/package.json +31 -31
  63. package/src/assets/icons/detailed.json +1 -1
  64. package/src/assets/icons/normal.json +1 -1
  65. package/src/assets/icons/simple.json +1 -1
  66. package/src/components/VvInputFile/VvInputFile.vue +7 -1
  67. package/src/components/VvInputFile/index.ts +20 -2
@@ -1,4 +1,4 @@
1
- import { unref, inject, computed, toRef, toRefs, defineComponent, useAttrs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, createCommentVNode, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, isRef, provide, watchEffect, watch, Fragment, renderList, createBlock, mergeProps, withCtx, resolveDynamicComponent, mergeDefaults, createVNode, TransitionGroup, toHandlers, useSlots, h, onMounted, withDirectives, vModelCheckbox, createSlots, nextTick, Transition, normalizeStyle, vShow, vModelSelect, vModelText, vModelRadio, onBeforeUnmount } from "vue";
1
+ import { unref, inject, computed, toRef, toRefs, defineComponent, useAttrs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, isRef, provide, watchEffect, watch, Fragment, renderList, createBlock, mergeProps, withCtx, resolveDynamicComponent, mergeDefaults, createCommentVNode, createVNode, TransitionGroup, toHandlers, useSlots, h, onMounted, withDirectives, vModelCheckbox, createSlots, nextTick, Transition, normalizeStyle, vShow, vModelSelect, vModelText, vModelRadio, onBeforeUnmount } from "vue";
2
2
  import { uid } from "uid";
3
3
  import { useToggle, useStorage, useVModel, useMutationObserver, onClickOutside, useFocusWithin, onKeyStroke, useElementHover, useFocus, useElementVisibility, refDebounced, computedAsync } from "@vueuse/core";
4
4
  import { iconExists, Icon, addIcon } from "@iconify/vue";
@@ -904,7 +904,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
904
904
  class: "vv-accordion__summary",
905
905
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(onClick)(), ["prevent"]))
906
906
  }, [
907
- createCommentVNode(" @slot Slot for title "),
908
907
  renderSlot(_ctx.$slots, "summary", normalizeProps(guardReactiveProps({ open: unref(isOpen) })), () => [
909
908
  createTextVNode(
910
909
  toDisplayString(unref(title)),
@@ -917,7 +916,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
917
916
  "aria-hidden": !unref(isOpen),
918
917
  class: "vv-accordion__content"
919
918
  }, [
920
- createCommentVNode(" @slot Slot for content "),
921
919
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ open: unref(isOpen) })), () => [
922
920
  createTextVNode(
923
921
  toDisplayString(unref(content)),
@@ -1052,7 +1050,6 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1052
1050
  class: normalizeClass(unref(bemCssClasses))
1053
1051
  },
1054
1052
  [
1055
- createCommentVNode(" @slot Default slot "),
1056
1053
  renderSlot(_ctx.$slots, "default", {}, () => [
1057
1054
  (openBlock(true), createElementBlock(
1058
1055
  Fragment,
@@ -1069,11 +1066,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1069
1066
  }),
1070
1067
  {
1071
1068
  header: withCtx((data) => [
1072
- createCommentVNode(" @slot Slot for accordion header "),
1073
1069
  renderSlot(_ctx.$slots, `header::${item.name}`, normalizeProps(guardReactiveProps(data)))
1074
1070
  ]),
1075
1071
  details: withCtx((data) => [
1076
- createCommentVNode(" @slot Slot for accordion details "),
1077
1072
  renderSlot(_ctx.$slots, `details::${item.name}`, normalizeProps(guardReactiveProps(data)))
1078
1073
  ]),
1079
1074
  _: 2
@@ -1214,7 +1209,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1214
1209
  onMouseleavePassive: onMouseleave
1215
1210
  }), {
1216
1211
  default: withCtx(() => [
1217
- createCommentVNode(" @slot Default slot "),
1218
1212
  renderSlot(_ctx.$slots, "default", {}, () => [
1219
1213
  createTextVNode(
1220
1214
  toDisplayString(_ctx.label),
@@ -1585,16 +1579,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1585
1579
  16
1586
1580
  /* FULL_PROPS */
1587
1581
  )) : createCommentVNode("v-if", true),
1588
- createCommentVNode(" @slot Header slot "),
1589
1582
  renderSlot(_ctx.$slots, "header", {}, () => [
1590
- createCommentVNode(" @slot Before title slot "),
1591
1583
  renderSlot(_ctx.$slots, "title::before"),
1592
1584
  _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("strong", {
1593
1585
  key: 0,
1594
1586
  id: unref(hasTitleId),
1595
1587
  class: "vv-alert__title"
1596
1588
  }, [
1597
- createCommentVNode(" @slot Title slot "),
1598
1589
  renderSlot(_ctx.$slots, "title", {}, () => [
1599
1590
  createTextVNode(
1600
1591
  toDisplayString(_ctx.title),
@@ -1603,10 +1594,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1603
1594
  )
1604
1595
  ])
1605
1596
  ], 8, _hoisted_2$e)) : createCommentVNode("v-if", true),
1606
- createCommentVNode(" @slot After title slot "),
1607
1597
  renderSlot(_ctx.$slots, "title::after")
1608
1598
  ]),
1609
- createCommentVNode(" @slot Close button slot "),
1610
1599
  renderSlot(_ctx.$slots, "close", normalizeProps(guardReactiveProps({ close: unref(close) })), () => [
1611
1600
  _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("button", {
1612
1601
  key: 0,
@@ -1622,7 +1611,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1622
1611
  ])
1623
1612
  ])) : createCommentVNode("v-if", true),
1624
1613
  _ctx.$slots.default || _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
1625
- createCommentVNode(" @slot Content slot "),
1626
1614
  renderSlot(_ctx.$slots, "default", {}, () => [
1627
1615
  createTextVNode(
1628
1616
  toDisplayString(_ctx.content),
@@ -1632,7 +1620,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1632
1620
  ])
1633
1621
  ])) : createCommentVNode("v-if", true),
1634
1622
  _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
1635
- createCommentVNode(" @slot Footer slot "),
1636
1623
  renderSlot(_ctx.$slots, "footer", {}, () => [
1637
1624
  createTextVNode(
1638
1625
  toDisplayString(_ctx.footer),
@@ -1802,7 +1789,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1802
1789
  "div",
1803
1790
  normalizeProps(guardReactiveProps(unref(hasProps))),
1804
1791
  [
1805
- createCommentVNode(" @slot The slot before alert list "),
1806
1792
  renderSlot(_ctx.$slots, "before"),
1807
1793
  createVNode(TransitionGroup, mergeProps({
1808
1794
  tag: "div",
@@ -1811,7 +1797,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1811
1797
  class: "vv-alert-group__list"
1812
1798
  }, toHandlers(alertGroupTransitionHandlers)), {
1813
1799
  default: withCtx(() => [
1814
- createCommentVNode(" @slot The slot for alert list "),
1815
1800
  renderSlot(_ctx.$slots, "default", {}, () => [
1816
1801
  (openBlock(true), createElementBlock(
1817
1802
  Fragment,
@@ -1835,7 +1820,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1835
1820
  _: 3
1836
1821
  /* FORWARDED */
1837
1822
  }, 16, ["name"]),
1838
- createCommentVNode(" @slot The slot after alert list "),
1839
1823
  renderSlot(_ctx.$slots, "after")
1840
1824
  ],
1841
1825
  16
@@ -2011,7 +1995,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2011
1995
  role: "status"
2012
1996
  },
2013
1997
  [
2014
- createCommentVNode(" @slot Default slot "),
2015
1998
  renderSlot(_ctx.$slots, "default", {}, () => [
2016
1999
  createTextVNode(
2017
2000
  toDisplayString(_ctx.value),
@@ -2079,7 +2062,6 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2079
2062
  "default-tag": "span"
2080
2063
  }), {
2081
2064
  default: withCtx(() => [
2082
- createCommentVNode(" @slot Slot for label "),
2083
2065
  renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps({ route, index })), () => [
2084
2066
  createTextVNode(
2085
2067
  toDisplayString(label),
@@ -2319,38 +2301,24 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2319
2301
  onClick
2320
2302
  }), {
2321
2303
  default: withCtx(() => [
2322
- createCommentVNode(" @slot Default slot "),
2323
2304
  renderSlot(_ctx.$slots, "default", {}, () => [
2324
- createCommentVNode(" #region loading "),
2325
- _ctx.loading ? (openBlock(), createElementBlock(
2326
- Fragment,
2327
- { key: 0 },
2328
- [
2329
- createCommentVNode(" @slot Slot for loading content "),
2330
- renderSlot(_ctx.$slots, "loading", {}, () => [
2331
- _ctx.loadingIcon ? (openBlock(), createBlock(_sfc_main$u, {
2332
- key: 0,
2333
- class: "vv-button__loading-icon",
2334
- name: _ctx.loadingIcon
2335
- }, null, 8, ["name"])) : createCommentVNode("v-if", true),
2336
- _ctx.loadingLabel ? (openBlock(), createElementBlock(
2337
- "span",
2338
- _hoisted_1$g,
2339
- toDisplayString(_ctx.loadingLabel),
2340
- 1
2341
- /* TEXT */
2342
- )) : createCommentVNode("v-if", true)
2343
- ])
2344
- ],
2345
- 64
2346
- /* STABLE_FRAGMENT */
2347
- )) : (openBlock(), createElementBlock(
2305
+ _ctx.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
2306
+ _ctx.loadingIcon ? (openBlock(), createBlock(_sfc_main$u, {
2307
+ key: 0,
2308
+ class: "vv-button__loading-icon",
2309
+ name: _ctx.loadingIcon
2310
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true),
2311
+ _ctx.loadingLabel ? (openBlock(), createElementBlock(
2312
+ "span",
2313
+ _hoisted_1$g,
2314
+ toDisplayString(_ctx.loadingLabel),
2315
+ 1
2316
+ /* TEXT */
2317
+ )) : createCommentVNode("v-if", true)
2318
+ ]) : (openBlock(), createElementBlock(
2348
2319
  Fragment,
2349
2320
  { key: 1 },
2350
2321
  [
2351
- createCommentVNode(" #endregion "),
2352
- createCommentVNode(" #region button "),
2353
- createCommentVNode(" @slot Before label and icon "),
2354
2322
  renderSlot(_ctx.$slots, "before"),
2355
2323
  unref(hasIcon) ? (openBlock(), createBlock(
2356
2324
  _sfc_main$u,
@@ -2360,7 +2328,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2360
2328
  /* FULL_PROPS */
2361
2329
  )) : createCommentVNode("v-if", true),
2362
2330
  unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$b, [
2363
- createCommentVNode(" @slot Use this slot for button label "),
2364
2331
  renderSlot(_ctx.$slots, "label", {}, () => [
2365
2332
  createTextVNode(
2366
2333
  toDisplayString(unref(label)),
@@ -2369,13 +2336,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2369
2336
  )
2370
2337
  ])
2371
2338
  ])) : createCommentVNode("v-if", true),
2372
- createCommentVNode(" @slot After label and icon "),
2373
2339
  renderSlot(_ctx.$slots, "after")
2374
2340
  ],
2375
2341
  64
2376
2342
  /* STABLE_FRAGMENT */
2377
- )),
2378
- createCommentVNode(" #endregion ")
2343
+ ))
2379
2344
  ])
2380
2345
  ]),
2381
2346
  _: 3
@@ -2460,7 +2425,6 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2460
2425
  role: "group"
2461
2426
  },
2462
2427
  [
2463
- createCommentVNode(" @slot Default slot "),
2464
2428
  renderSlot(_ctx.$slots, "default")
2465
2429
  ],
2466
2430
  2
@@ -2503,7 +2467,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2503
2467
  },
2504
2468
  [
2505
2469
  _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$f, [
2506
- createCommentVNode(" @slot Title slot "),
2507
2470
  renderSlot(_ctx.$slots, "header", {}, () => [
2508
2471
  createTextVNode(
2509
2472
  toDisplayString(_ctx.title),
@@ -2512,14 +2475,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2512
2475
  )
2513
2476
  ])
2514
2477
  ])) : createCommentVNode("v-if", true),
2515
- createCommentVNode(" @slot Default slot "),
2516
2478
  renderSlot(_ctx.$slots, "default"),
2517
2479
  _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
2518
- createCommentVNode(" @slot Content slot "),
2519
2480
  renderSlot(_ctx.$slots, "content")
2520
2481
  ])) : createCommentVNode("v-if", true),
2521
2482
  _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$6, [
2522
- createCommentVNode(" @slot Footer slot "),
2523
2483
  renderSlot(_ctx.$slots, "footer")
2524
2484
  ])) : createCommentVNode("v-if", true)
2525
2485
  ],
@@ -2903,7 +2863,6 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2903
2863
  }, null, 8, _hoisted_2$9), [
2904
2864
  [vModelCheckbox, unref(localModelValue)]
2905
2865
  ]),
2906
- createCommentVNode(" @slot Use this slot for check label "),
2907
2866
  renderSlot(_ctx.$slots, "default", { value: unref(modelValue) }, () => [
2908
2867
  createTextVNode(
2909
2868
  toDisplayString(_ctx.label),
@@ -3046,7 +3005,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3046
3005
  textContent: toDisplayString(_ctx.label)
3047
3006
  }, null, 8, _hoisted_1$d)) : createCommentVNode("v-if", true),
3048
3007
  createElementVNode("div", _hoisted_2$8, [
3049
- createCommentVNode(" #region options set up "),
3050
3008
  _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
3051
3009
  Fragment,
3052
3010
  { key: 0 },
@@ -3061,16 +3019,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3061
3019
  }),
3062
3020
  128
3063
3021
  /* KEYED_FRAGMENT */
3064
- )) : (openBlock(), createElementBlock(
3065
- Fragment,
3066
- { key: 1 },
3067
- [
3068
- createCommentVNode(" #endregion "),
3069
- renderSlot(_ctx.$slots, "default")
3070
- ],
3071
- 2112
3072
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
3073
- ))
3022
+ )) : renderSlot(_ctx.$slots, "default", { key: 1 })
3074
3023
  ]),
3075
3024
  createVNode(
3076
3025
  unref(HintSlot),
@@ -4107,10 +4056,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4107
4056
  key: 0,
4108
4057
  for: unref(hasId)
4109
4058
  }, toDisplayString(_ctx.label), 9, _hoisted_1$9)) : createCommentVNode("v-if", true),
4110
- createCommentVNode(" #region native select "),
4111
4059
  createElementVNode("div", _hoisted_2$7, [
4112
4060
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
4113
- createCommentVNode(" @slot Slot before input "),
4114
4061
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4115
4062
  ])) : createCommentVNode("v-if", true),
4116
4063
  createElementVNode("div", _hoisted_4$4, [
@@ -4184,11 +4131,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4184
4131
  )) : createCommentVNode("v-if", true)
4185
4132
  ]),
4186
4133
  _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
4187
- createCommentVNode(" @slot Slot after input "),
4188
4134
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
4189
4135
  ])) : createCommentVNode("v-if", true)
4190
4136
  ]),
4191
- createCommentVNode(" #endregion native select "),
4192
4137
  createVNode(unref(HintSlot), {
4193
4138
  id: unref(hasHintId),
4194
4139
  class: "vv-select__hint"
@@ -4562,7 +4507,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4562
4507
  }), createSlots({
4563
4508
  default: withCtx(({ aria }) => [
4564
4509
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
4565
- createCommentVNode(" @slot Slot before input "),
4566
4510
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4567
4511
  ])) : createCommentVNode("v-if", true),
4568
4512
  createElementVNode("div", _hoisted_5$3, [
@@ -4586,7 +4530,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4586
4530
  tabindex: unref(hasTabindex),
4587
4531
  onClickPassive: onClickInput
4588
4532
  }), [
4589
- createCommentVNode(" @slot Slot for value customization "),
4590
4533
  renderSlot(_ctx.$slots, "value", normalizeProps(guardReactiveProps({ selectedOptions: unref(selectedOptions), onInput })), () => [
4591
4534
  unref(hasValue) ? (openBlock(), createElementBlock(
4592
4535
  Fragment,
@@ -4656,7 +4599,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4656
4599
  )) : createCommentVNode("v-if", true)
4657
4600
  ]),
4658
4601
  _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
4659
- createCommentVNode(" @slot Slot after input "),
4660
4602
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
4661
4603
  ])) : createCommentVNode("v-if", true)
4662
4604
  ]),
@@ -4697,7 +4639,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4697
4639
  onClickPassive: ($event) => onInput(item)
4698
4640
  }), {
4699
4641
  default: withCtx(() => [
4700
- createCommentVNode(" @slot Slot for option customization "),
4701
4642
  renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
4702
4643
  option,
4703
4644
  selectedOptions: unref(selectedOptions),
@@ -4733,7 +4674,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4733
4674
  onClickPassive: ($event) => onInput(option)
4734
4675
  }), {
4735
4676
  default: withCtx(() => [
4736
- createCommentVNode(" @slot Slot for option customization "),
4737
4677
  renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
4738
4678
  option,
4739
4679
  selectedOptions: unref(selectedOptions),
@@ -4762,7 +4702,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4762
4702
  modifiers: "inert"
4763
4703
  }, {
4764
4704
  default: withCtx(() => [
4765
- createCommentVNode(" @slot Slot for no options available "),
4766
4705
  renderSlot(_ctx.$slots, "no-options", {}, () => [
4767
4706
  createTextVNode(
4768
4707
  toDisplayString(unref(propsDefaults).noOptionsLabel),
@@ -4778,7 +4717,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4778
4717
  modifiers: "inert"
4779
4718
  }, {
4780
4719
  default: withCtx(() => [
4781
- createCommentVNode(" @slot Slot for no results available "),
4782
4720
  renderSlot(_ctx.$slots, "no-results", {}, () => [
4783
4721
  createTextVNode(
4784
4722
  toDisplayString(unref(propsDefaults).noResultsLabel),
@@ -4793,11 +4731,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4793
4731
  ];
4794
4732
  }),
4795
4733
  after: withCtx(() => [
4796
- createCommentVNode(" @slot Slot after dropdown items "),
4797
4734
  renderSlot(_ctx.$slots, "dropdown::after", {}, () => {
4798
4735
  var _a;
4799
4736
  return [
4800
- createCommentVNode(" Close button if dropdown custom position is enabled and floating-ui disabled "),
4801
4737
  ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$n, {
4802
4738
  key: 0,
4803
4739
  label: unref(propsDefaults).closeLabel,
@@ -4813,7 +4749,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4813
4749
  unref(propsDefaults).searchable || _ctx.$slots["dropdown::before"] ? {
4814
4750
  name: "before",
4815
4751
  fn: withCtx(() => [
4816
- createCommentVNode(" @slot Slot before dropdown items "),
4817
4752
  renderSlot(_ctx.$slots, "dropdown::before"),
4818
4753
  unref(propsDefaults).searchable && !unref(disabled) ? withDirectives((openBlock(), createElementBlock("input", {
4819
4754
  key: 0,
@@ -5046,7 +4981,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
5046
4981
  },
5047
4982
  [
5048
4983
  _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$7, [
5049
- createCommentVNode(" @slot Header slot "),
5050
4984
  renderSlot(_ctx.$slots, "header", {}, () => [
5051
4985
  createTextVNode(
5052
4986
  toDisplayString(_ctx.title) + " ",
@@ -5070,11 +5004,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
5070
5004
  ])
5071
5005
  ])) : createCommentVNode("v-if", true),
5072
5006
  createElementVNode("div", _hoisted_2$5, [
5073
- createCommentVNode(" @slot Content slot "),
5074
5007
  renderSlot(_ctx.$slots, "default")
5075
5008
  ]),
5076
5009
  _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$3, [
5077
- createCommentVNode(" @slot Footer slot "),
5078
5010
  renderSlot(_ctx.$slots, "footer")
5079
5011
  ])) : createCommentVNode("v-if", true)
5080
5012
  ],
@@ -5987,7 +5919,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5987
5919
  }, toDisplayString(unref(label)), 9, _hoisted_1$6)) : createCommentVNode("v-if", true),
5988
5920
  createElementVNode("div", _hoisted_2$4, [
5989
5921
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
5990
- createCommentVNode(" @slot Slot before input icon "),
5991
5922
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
5992
5923
  ])) : createCommentVNode("v-if", true),
5993
5924
  createElementVNode(
@@ -6017,7 +5948,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6017
5948
  onKeypress: _cache[1] || (_cache[1] = ($event) => emit("keypress", $event))
6018
5949
  }), null, 16, _hoisted_4$2),
6019
5950
  (_ctx.unit || _ctx.$slots.unit) && unref(isDirty) ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
6020
- createCommentVNode(" @slot Slot to replace unit"),
6021
5951
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
6022
5952
  createTextVNode(
6023
5953
  toDisplayString(_ctx.unit),
@@ -6030,7 +5960,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6030
5960
  512
6031
5961
  /* NEED_PATCH */
6032
5962
  ),
6033
- createCommentVNode(" @slot Slot to replace right icon "),
6034
5963
  unref(iconAfter) ? (openBlock(), createBlock(
6035
5964
  _sfc_main$u,
6036
5965
  mergeProps({ key: 1 }, unref(iconAfter), { class: "vv-input-text__icon vv-input-text__icon-after" }),
@@ -6048,13 +5977,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6048
5977
  key: 4,
6049
5978
  onClear
6050
5979
  })) : createCommentVNode("v-if", true),
6051
- createCommentVNode(" @slot Slot after input "),
6052
5980
  _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
6053
- createCommentVNode(" @slot Slot before input icon "),
6054
5981
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
6055
5982
  ])) : createCommentVNode("v-if", true),
6056
5983
  unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7$2, [
6057
- createCommentVNode(" @slot Slot to replace count "),
6058
5984
  renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
6059
5985
  createTextVNode(
6060
5986
  toDisplayString(unref(countFormatted)),
@@ -6520,7 +6446,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6520
6446
  textContent: toDisplayString(_ctx.label)
6521
6447
  }, null, 8, _hoisted_1$2)) : createCommentVNode("v-if", true),
6522
6448
  createElementVNode("div", _hoisted_2$2, [
6523
- createCommentVNode(" #region options "),
6524
6449
  _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
6525
6450
  Fragment,
6526
6451
  { key: 0 },
@@ -6535,18 +6460,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6535
6460
  }),
6536
6461
  128
6537
6462
  /* KEYED_FRAGMENT */
6538
- )) : (openBlock(), createElementBlock(
6539
- Fragment,
6540
- { key: 1 },
6541
- [
6542
- createCommentVNode(" #endregion "),
6543
- createCommentVNode(" #region default "),
6544
- renderSlot(_ctx.$slots, "default")
6545
- ],
6546
- 2112
6547
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
6548
- )),
6549
- createCommentVNode(" #endregion ")
6463
+ )) : renderSlot(_ctx.$slots, "default", { key: 1 })
6550
6464
  ]),
6551
6465
  createVNode(
6552
6466
  unref(HintSlot),
@@ -6662,7 +6576,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6662
6576
  class: normalizeClass(unref(bemCssClasses))
6663
6577
  },
6664
6578
  [
6665
- createCommentVNode(" #region nav "),
6666
6579
  createVNode(
6667
6580
  _sfc_main$8,
6668
6581
  mergeProps({
@@ -6679,8 +6592,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6679
6592
  16
6680
6593
  /* FULL_PROPS */
6681
6594
  ),
6682
- createCommentVNode(" #endregion "),
6683
- createCommentVNode(" #region panels "),
6684
6595
  (openBlock(true), createElementBlock(
6685
6596
  Fragment,
6686
6597
  null,
@@ -6708,8 +6619,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6708
6619
  }),
6709
6620
  128
6710
6621
  /* KEYED_FRAGMENT */
6711
- )),
6712
- createCommentVNode(" #endregion ")
6622
+ ))
6713
6623
  ],
6714
6624
  2
6715
6625
  /* CLASS */
@@ -6908,9 +6818,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6908
6818
  class: "vv-textarea__label"
6909
6819
  }, toDisplayString(unref(label)), 9, _hoisted_1$1)) : createCommentVNode("v-if", true),
6910
6820
  createElementVNode("div", _hoisted_2$1, [
6911
- createCommentVNode(" @slot Slot to replace icon before textarea "),
6912
6821
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
6913
- createCommentVNode(" @slot Slot before input "),
6914
6822
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
6915
6823
  ])) : createCommentVNode("v-if", true),
6916
6824
  createElementVNode("div", _hoisted_4$1, [
@@ -6940,11 +6848,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6940
6848
  )) : createCommentVNode("v-if", true)
6941
6849
  ]),
6942
6850
  _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
6943
- createCommentVNode(" @slot Slot after input "),
6944
6851
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
6945
6852
  ])) : createCommentVNode("v-if", true),
6946
6853
  unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7$1, [
6947
- createCommentVNode(" @slot Slot to replace count "),
6948
6854
  renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
6949
6855
  createTextVNode(
6950
6856
  toDisplayString(unref(countFormatted)),
@@ -7084,6 +6990,20 @@ const VvInputFileProps = {
7084
6990
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
7085
6991
  */
7086
6992
  multiple: { type: Boolean, default: false },
6993
+ /**
6994
+ * Front or rear camera
6995
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture
6996
+ */
6997
+ capture: {
6998
+ type: String,
6999
+ default: void 0,
7000
+ validation: (value) => {
7001
+ if (value === void 0) {
7002
+ return true;
7003
+ }
7004
+ return ["user", "environment"].includes(value);
7005
+ }
7006
+ },
7087
7007
  /**
7088
7008
  * Max number of files
7089
7009
  */
@@ -7149,7 +7069,7 @@ const _hoisted_1 = ["for"];
7149
7069
  const _hoisted_2 = { class: "vv-input-file__preview" };
7150
7070
  const _hoisted_3 = ["src", "alt"];
7151
7071
  const _hoisted_4 = { class: "vv-input-file__wrapper" };
7152
- const _hoisted_5 = ["id", "readonly", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "name"];
7072
+ const _hoisted_5 = ["id", "readonly", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
7153
7073
  const _hoisted_6 = ["value"];
7154
7074
  const _hoisted_7 = { class: "vv-input-file__list" };
7155
7075
  const _hoisted_8 = ["onClick"];
@@ -7288,6 +7208,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7288
7208
  localModelValue.value = void 0;
7289
7209
  return;
7290
7210
  }
7211
+ if (selectedFileIndex.value === index) {
7212
+ selectedFileIndex.value = 0;
7213
+ }
7291
7214
  const toReturn = [...localModelValue.value];
7292
7215
  toReturn.splice(index, 1);
7293
7216
  localModelValue.value = toReturn;
@@ -7298,6 +7221,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7298
7221
  if (files.value.length === 0) {
7299
7222
  return;
7300
7223
  }
7224
+ if (!files.value[selectedFileIndex.value]) {
7225
+ return void 0;
7226
+ }
7301
7227
  if (files.value[selectedFileIndex.value] instanceof File) {
7302
7228
  const currentFile2 = files.value[selectedFileIndex.value];
7303
7229
  if (!PREVIEW_MIME_TYPES.includes(currentFile2.type)) {
@@ -7426,6 +7352,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7426
7352
  "aria-errormessage": unref(hasInvalidLabelOrSlot) ? hasHintId.value : void 0,
7427
7353
  multiple: isMultiple.value,
7428
7354
  accept: _ctx.accept,
7355
+ capture: _ctx.capture,
7429
7356
  name: _ctx.name,
7430
7357
  onChange
7431
7358
  }, null, 40, _hoisted_5),