@volverjs/ui-vue 0.0.10-beta.7 → 0.0.10-beta.8

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 (87) hide show
  1. package/bin/icons.cjs +1 -1
  2. package/bin/icons.js +22 -15
  3. package/dist/Volver.d.ts +0 -1
  4. package/dist/components/VvAccordion/VvAccordion.es.js +10 -2
  5. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +52 -25
  6. package/dist/components/VvAction/VvAction.es.js +6 -1
  7. package/dist/components/VvAlert/VvAlert.es.js +73 -43
  8. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  9. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +113 -64
  10. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  11. package/dist/components/VvAvatar/VvAvatar.es.js +1 -1
  12. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  13. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +56 -26
  14. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  15. package/dist/components/VvBadge/VvBadge.es.js +18 -8
  16. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +61 -38
  17. package/dist/components/VvButton/VvButton.es.js +45 -17
  18. package/dist/components/VvButton/VvButton.umd.js +1 -1
  19. package/dist/components/VvButton/VvButton.vue.d.ts +3 -3
  20. package/dist/components/VvButton/index.d.ts +2 -2
  21. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +12 -6
  22. package/dist/components/VvCard/VvCard.es.js +26 -16
  23. package/dist/components/VvCard/VvCard.umd.js +1 -1
  24. package/dist/components/VvCheckbox/VvCheckbox.es.js +9 -2
  25. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +78 -44
  26. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  27. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  28. package/dist/components/VvCombobox/VvCombobox.es.js +587 -368
  29. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  30. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
  31. package/dist/components/VvCombobox/index.d.ts +1 -1
  32. package/dist/components/VvDialog/VvDialog.es.js +44 -27
  33. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  34. package/dist/components/VvDropdown/VvDropdown.es.js +64 -44
  35. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  36. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +3 -3
  37. package/dist/components/VvDropdown/index.d.ts +1 -1
  38. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +26 -9
  39. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  40. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +7 -1
  41. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +19 -8
  42. package/dist/components/VvIcon/VvIcon.es.js +1 -1
  43. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  44. package/dist/components/VvInputText/VvInputText.es.js +126 -97
  45. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  46. package/dist/components/VvNav/VvNav.es.js +50 -26
  47. package/dist/components/VvNav/VvNav.vue.d.ts +3 -3
  48. package/dist/components/VvNav/index.d.ts +1 -1
  49. package/dist/components/VvNavItem/VvNavItem.es.js +19 -7
  50. package/dist/components/VvProgress/VvProgress.es.js +12 -6
  51. package/dist/components/VvRadio/VvRadio.es.js +9 -2
  52. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +78 -44
  53. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  54. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  55. package/dist/components/VvSelect/VvSelect.es.js +133 -94
  56. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  57. package/dist/components/VvSelect/index.d.ts +1 -1
  58. package/dist/components/VvTab/VvTab.es.js +98 -44
  59. package/dist/components/VvTab/VvTab.umd.js +1 -1
  60. package/dist/components/VvTextarea/VvTextarea.es.js +99 -74
  61. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  62. package/dist/components/VvTooltip/VvTooltip.es.js +19 -9
  63. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
  64. package/dist/components/VvTooltip/index.d.ts +1 -1
  65. package/dist/components/index.es.js +1355 -836
  66. package/dist/components/index.umd.js +1 -1
  67. package/dist/composables/useVolver.d.ts +1 -1
  68. package/dist/directives/index.d.ts +3 -5
  69. package/dist/directives/index.es.js +39 -23
  70. package/dist/directives/index.umd.js +1 -1
  71. package/dist/directives/v-tooltip.es.js +37 -18
  72. package/dist/directives/v-tooltip.umd.js +1 -1
  73. package/dist/icons.es.js +3 -3
  74. package/dist/icons.umd.js +1 -1
  75. package/dist/index.d.ts +3 -1
  76. package/dist/props/index.d.ts +1 -1
  77. package/dist/types/generic.d.ts +1 -1
  78. package/package.json +31 -31
  79. package/src/Volver.ts +0 -1
  80. package/src/assets/icons/detailed.json +1 -1
  81. package/src/assets/icons/normal.json +1 -1
  82. package/src/assets/icons/simple.json +1 -1
  83. package/src/components/VvInputText/VvInputText.vue +2 -2
  84. package/src/directives/index.ts +1 -4
  85. package/src/directives/v-tooltip.ts +19 -10
  86. package/src/index.ts +3 -1
  87. package/src/types/generic.ts +2 -1
@@ -834,7 +834,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
834
834
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(onClick)(), ["prevent"]))
835
835
  }, [
836
836
  renderSlot(_ctx.$slots, "summary", normalizeProps(guardReactiveProps({ open: unref(isOpen) })), () => [
837
- createTextVNode(toDisplayString(unref(title)), 1)
837
+ createTextVNode(
838
+ toDisplayString(unref(title)),
839
+ 1
840
+ /* TEXT */
841
+ )
838
842
  ])
839
843
  ], 8, _hoisted_2$d),
840
844
  createElementVNode("div", {
@@ -842,7 +846,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
842
846
  class: "vv-accordion__content"
843
847
  }, [
844
848
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ open: unref(isOpen) })), () => [
845
- createTextVNode(toDisplayString(unref(content)), 1)
849
+ createTextVNode(
850
+ toDisplayString(unref(content)),
851
+ 1
852
+ /* TEXT */
853
+ )
846
854
  ])
847
855
  ], 8, _hoisted_3$7)
848
856
  ], 10, _hoisted_1$i);
@@ -964,29 +972,48 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
964
972
  }))
965
973
  );
966
974
  return (_ctx, _cache) => {
967
- return openBlock(), createElementBlock("div", {
968
- class: normalizeClass(unref(bemCssClasses))
969
- }, [
970
- renderSlot(_ctx.$slots, "default", {}, () => [
971
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item) => {
972
- return openBlock(), createBlock(_sfc_main$r, mergeProps({
973
- key: item.title
974
- }, {
975
- name: item.name,
976
- title: item.title,
977
- content: item.content
978
- }), {
979
- header: withCtx((data) => [
980
- renderSlot(_ctx.$slots, `header::${item.name}`, normalizeProps(guardReactiveProps(data)))
981
- ]),
982
- details: withCtx((data) => [
983
- renderSlot(_ctx.$slots, `details::${item.name}`, normalizeProps(guardReactiveProps(data)))
984
- ]),
985
- _: 2
986
- }, 1040);
987
- }), 128))
988
- ])
989
- ], 2);
975
+ return openBlock(), createElementBlock(
976
+ "div",
977
+ {
978
+ class: normalizeClass(unref(bemCssClasses))
979
+ },
980
+ [
981
+ renderSlot(_ctx.$slots, "default", {}, () => [
982
+ (openBlock(true), createElementBlock(
983
+ Fragment,
984
+ null,
985
+ renderList(unref(items), (item) => {
986
+ return openBlock(), createBlock(
987
+ _sfc_main$r,
988
+ mergeProps({
989
+ key: item.title
990
+ }, {
991
+ name: item.name,
992
+ title: item.title,
993
+ content: item.content
994
+ }),
995
+ {
996
+ header: withCtx((data) => [
997
+ renderSlot(_ctx.$slots, `header::${item.name}`, normalizeProps(guardReactiveProps(data)))
998
+ ]),
999
+ details: withCtx((data) => [
1000
+ renderSlot(_ctx.$slots, `details::${item.name}`, normalizeProps(guardReactiveProps(data)))
1001
+ ]),
1002
+ _: 2
1003
+ /* DYNAMIC */
1004
+ },
1005
+ 1040
1006
+ /* FULL_PROPS, DYNAMIC_SLOTS */
1007
+ );
1008
+ }),
1009
+ 128
1010
+ /* KEYED_FRAGMENT */
1011
+ ))
1012
+ ])
1013
+ ],
1014
+ 2
1015
+ /* CLASS */
1016
+ );
990
1017
  };
991
1018
  }
992
1019
  });
@@ -1108,10 +1135,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1108
1135
  }), {
1109
1136
  default: withCtx(() => [
1110
1137
  renderSlot(_ctx.$slots, "default", {}, () => [
1111
- createTextVNode(toDisplayString(_ctx.label), 1)
1138
+ createTextVNode(
1139
+ toDisplayString(_ctx.label),
1140
+ 1
1141
+ /* TEXT */
1142
+ )
1112
1143
  ])
1113
1144
  ]),
1114
1145
  _: 3
1146
+ /* FORWARDED */
1115
1147
  }, 16, ["class"]);
1116
1148
  };
1117
1149
  }
@@ -1302,7 +1334,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1302
1334
  color: _ctx.color,
1303
1335
  onLoad: _ctx.onLoad,
1304
1336
  icon: unref(icon)
1305
- }), null, 16, ["class"])) : createCommentVNode("", true);
1337
+ }), null, 16, ["class"])) : createCommentVNode("v-if", true);
1306
1338
  };
1307
1339
  }
1308
1340
  });
@@ -1457,7 +1489,13 @@ const _hoisted_1$h = {
1457
1489
  };
1458
1490
  const _hoisted_2$c = ["id"];
1459
1491
  const _hoisted_3$6 = ["aria-label"];
1460
- const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("div", { class: "vv-alert__close-mask" }, null, -1);
1492
+ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode(
1493
+ "div",
1494
+ { class: "vv-alert__close-mask" },
1495
+ null,
1496
+ -1
1497
+ /* HOISTED */
1498
+ );
1461
1499
  const _hoisted_5$4 = [
1462
1500
  _hoisted_4$5
1463
1501
  ];
@@ -1481,47 +1519,71 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1481
1519
  const { hasProps, hasTitleId, hasIcon, close } = useVvAlert(props, emit);
1482
1520
  __expose({ close });
1483
1521
  return (_ctx, _cache) => {
1484
- return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(unref(hasProps))), [
1485
- _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$h, [
1486
- unref(hasIcon) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }), null, 16)) : createCommentVNode("", true),
1487
- renderSlot(_ctx.$slots, "header", {}, () => [
1488
- renderSlot(_ctx.$slots, "title::before"),
1489
- _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("strong", {
1490
- key: 0,
1491
- id: unref(hasTitleId),
1492
- class: "vv-alert__title"
1493
- }, [
1494
- renderSlot(_ctx.$slots, "title", {}, () => [
1495
- createTextVNode(toDisplayString(_ctx.title), 1)
1496
- ])
1497
- ], 8, _hoisted_2$c)) : createCommentVNode("", true),
1498
- renderSlot(_ctx.$slots, "title::after")
1499
- ]),
1500
- renderSlot(_ctx.$slots, "close", normalizeProps(guardReactiveProps({ close: unref(close) })), () => [
1501
- _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("button", {
1502
- key: 0,
1503
- class: "vv-alert__close",
1504
- type: "button",
1505
- "aria-label": _ctx.closeLabel,
1506
- onClick: _cache[0] || (_cache[0] = withModifiers(
1507
- //@ts-ignore
1508
- (...args) => unref(close) && unref(close)(...args),
1509
- ["stop"]
1510
- ))
1511
- }, _hoisted_5$4, 8, _hoisted_3$6)) : createCommentVNode("", true)
1512
- ])
1513
- ])) : createCommentVNode("", true),
1514
- _ctx.$slots.default || _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
1515
- renderSlot(_ctx.$slots, "default", {}, () => [
1516
- createTextVNode(toDisplayString(_ctx.content), 1)
1517
- ])
1518
- ])) : createCommentVNode("", true),
1519
- _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
1520
- renderSlot(_ctx.$slots, "footer", {}, () => [
1521
- createTextVNode(toDisplayString(_ctx.footer), 1)
1522
- ])
1523
- ])) : createCommentVNode("", true)
1524
- ], 16);
1522
+ return openBlock(), createElementBlock(
1523
+ "div",
1524
+ normalizeProps(guardReactiveProps(unref(hasProps))),
1525
+ [
1526
+ _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$h, [
1527
+ unref(hasIcon) ? (openBlock(), createBlock(
1528
+ _sfc_main$o,
1529
+ mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }),
1530
+ null,
1531
+ 16
1532
+ /* FULL_PROPS */
1533
+ )) : createCommentVNode("v-if", true),
1534
+ renderSlot(_ctx.$slots, "header", {}, () => [
1535
+ renderSlot(_ctx.$slots, "title::before"),
1536
+ _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("strong", {
1537
+ key: 0,
1538
+ id: unref(hasTitleId),
1539
+ class: "vv-alert__title"
1540
+ }, [
1541
+ renderSlot(_ctx.$slots, "title", {}, () => [
1542
+ createTextVNode(
1543
+ toDisplayString(_ctx.title),
1544
+ 1
1545
+ /* TEXT */
1546
+ )
1547
+ ])
1548
+ ], 8, _hoisted_2$c)) : createCommentVNode("v-if", true),
1549
+ renderSlot(_ctx.$slots, "title::after")
1550
+ ]),
1551
+ renderSlot(_ctx.$slots, "close", normalizeProps(guardReactiveProps({ close: unref(close) })), () => [
1552
+ _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("button", {
1553
+ key: 0,
1554
+ class: "vv-alert__close",
1555
+ type: "button",
1556
+ "aria-label": _ctx.closeLabel,
1557
+ onClick: _cache[0] || (_cache[0] = withModifiers(
1558
+ //@ts-ignore
1559
+ (...args) => unref(close) && unref(close)(...args),
1560
+ ["stop"]
1561
+ ))
1562
+ }, _hoisted_5$4, 8, _hoisted_3$6)) : createCommentVNode("v-if", true)
1563
+ ])
1564
+ ])) : createCommentVNode("v-if", true),
1565
+ _ctx.$slots.default || _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
1566
+ renderSlot(_ctx.$slots, "default", {}, () => [
1567
+ createTextVNode(
1568
+ toDisplayString(_ctx.content),
1569
+ 1
1570
+ /* TEXT */
1571
+ )
1572
+ ])
1573
+ ])) : createCommentVNode("v-if", true),
1574
+ _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
1575
+ renderSlot(_ctx.$slots, "footer", {}, () => [
1576
+ createTextVNode(
1577
+ toDisplayString(_ctx.footer),
1578
+ 1
1579
+ /* TEXT */
1580
+ )
1581
+ ])
1582
+ ])) : createCommentVNode("v-if", true)
1583
+ ],
1584
+ 16
1585
+ /* FULL_PROPS */
1586
+ );
1525
1587
  };
1526
1588
  }
1527
1589
  });
@@ -1540,14 +1602,24 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1540
1602
  const { modifiers } = toRefs(props);
1541
1603
  const bemCssClasses = useModifiers("vv-badge", modifiers);
1542
1604
  return (_ctx, _cache) => {
1543
- return openBlock(), createElementBlock("span", {
1544
- class: normalizeClass(unref(bemCssClasses)),
1545
- role: "status"
1546
- }, [
1547
- renderSlot(_ctx.$slots, "default", {}, () => [
1548
- createTextVNode(toDisplayString(_ctx.value), 1)
1549
- ])
1550
- ], 2);
1605
+ return openBlock(), createElementBlock(
1606
+ "span",
1607
+ {
1608
+ class: normalizeClass(unref(bemCssClasses)),
1609
+ role: "status"
1610
+ },
1611
+ [
1612
+ renderSlot(_ctx.$slots, "default", {}, () => [
1613
+ createTextVNode(
1614
+ toDisplayString(_ctx.value),
1615
+ 1
1616
+ /* TEXT */
1617
+ )
1618
+ ])
1619
+ ],
1620
+ 2
1621
+ /* CLASS */
1622
+ );
1551
1623
  };
1552
1624
  }
1553
1625
  });
@@ -1568,45 +1640,68 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1568
1640
  const { modifiers } = toRefs(props);
1569
1641
  const bemCssClasses = useModifiers("vv-breadcrumb", modifiers);
1570
1642
  return (_ctx, _cache) => {
1571
- return openBlock(), createElementBlock("nav", {
1572
- class: normalizeClass(unref(bemCssClasses)),
1573
- "aria-label": "breadcrumbs"
1574
- }, [
1575
- createElementVNode("ol", _hoisted_1$g, [
1576
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.routes, (route, index) => {
1577
- var _a, _b, _c, _d;
1578
- return openBlock(), createElementBlock("li", {
1579
- key: `${route.label}-${index}`,
1580
- class: normalizeClass({
1581
- "vv-breadcrumb__item": index < Number((_a = _ctx.routes) == null ? void 0 : _a.length) - 1,
1582
- "vv-breadcrumb__item-active": index === Number((_b = _ctx.routes) == null ? void 0 : _b.length) - 1
1643
+ return openBlock(), createElementBlock(
1644
+ "nav",
1645
+ {
1646
+ class: normalizeClass(unref(bemCssClasses)),
1647
+ "aria-label": "breadcrumbs"
1648
+ },
1649
+ [
1650
+ createElementVNode("ol", _hoisted_1$g, [
1651
+ (openBlock(true), createElementBlock(
1652
+ Fragment,
1653
+ null,
1654
+ renderList(_ctx.routes, (route, index) => {
1655
+ var _a, _b, _c, _d;
1656
+ return openBlock(), createElementBlock(
1657
+ "li",
1658
+ {
1659
+ key: `${route.label}-${index}`,
1660
+ class: normalizeClass({
1661
+ "vv-breadcrumb__item": index < Number((_a = _ctx.routes) == null ? void 0 : _a.length) - 1,
1662
+ "vv-breadcrumb__item-active": index === Number((_b = _ctx.routes) == null ? void 0 : _b.length) - 1
1663
+ }),
1664
+ itemprop: "itemListElement",
1665
+ itemtype: "https://schema.org/ListItem",
1666
+ itemscope: ""
1667
+ },
1668
+ [
1669
+ (openBlock(), createBlock(resolveDynamicComponent(route.to ? "router-link" : route.href ? "a" : "span"), mergeProps(route, {
1670
+ class: {
1671
+ "vv-breadcrumb__link": index < Number((_c = _ctx.routes) == null ? void 0 : _c.length) - 1
1672
+ },
1673
+ "aria-current": index === Number((_d = _ctx.routes) == null ? void 0 : _d.length) - 1 ? "page" : void 0,
1674
+ itemprop: "item"
1675
+ }), {
1676
+ default: withCtx(() => [
1677
+ renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps({ route, index })), () => [
1678
+ createTextVNode(
1679
+ toDisplayString(route.label),
1680
+ 1
1681
+ /* TEXT */
1682
+ )
1683
+ ])
1684
+ ]),
1685
+ _: 2
1686
+ /* DYNAMIC */
1687
+ }, 1040, ["class", "aria-current"])),
1688
+ createElementVNode("meta", {
1689
+ itemprop: "position",
1690
+ content: `${index + 1}`
1691
+ }, null, 8, _hoisted_2$b)
1692
+ ],
1693
+ 2
1694
+ /* CLASS */
1695
+ );
1583
1696
  }),
1584
- itemprop: "itemListElement",
1585
- itemtype: "https://schema.org/ListItem",
1586
- itemscope: ""
1587
- }, [
1588
- (openBlock(), createBlock(resolveDynamicComponent(route.to ? "router-link" : route.href ? "a" : "span"), mergeProps(route, {
1589
- class: {
1590
- "vv-breadcrumb__link": index < Number((_c = _ctx.routes) == null ? void 0 : _c.length) - 1
1591
- },
1592
- "aria-current": index === Number((_d = _ctx.routes) == null ? void 0 : _d.length) - 1 ? "page" : void 0,
1593
- itemprop: "item"
1594
- }), {
1595
- default: withCtx(() => [
1596
- renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps({ route, index })), () => [
1597
- createTextVNode(toDisplayString(route.label), 1)
1598
- ])
1599
- ]),
1600
- _: 2
1601
- }, 1040, ["class", "aria-current"])),
1602
- createElementVNode("meta", {
1603
- itemprop: "position",
1604
- content: `${index + 1}`
1605
- }, null, 8, _hoisted_2$b)
1606
- ], 2);
1607
- }), 128))
1608
- ])
1609
- ], 2);
1697
+ 128
1698
+ /* KEYED_FRAGMENT */
1699
+ ))
1700
+ ])
1701
+ ],
1702
+ 2
1703
+ /* CLASS */
1704
+ );
1610
1705
  };
1611
1706
  }
1612
1707
  });
@@ -1828,24 +1923,47 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1828
1923
  key: 0,
1829
1924
  class: "vv-button__loading-icon",
1830
1925
  name: _ctx.loadingIcon
1831
- }, null, 8, ["name"])) : createCommentVNode("", true),
1832
- _ctx.loadingLabel ? (openBlock(), createElementBlock("span", _hoisted_1$f, toDisplayString(_ctx.loadingLabel), 1)) : createCommentVNode("", true)
1833
- ]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1834
- renderSlot(_ctx.$slots, "before"),
1835
- unref(icon) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
1836
- key: 0,
1837
- class: "vv-button__icon"
1838
- }, unref(hasIconProps)), null, 16)) : createCommentVNode("", true),
1839
- unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$a, [
1840
- renderSlot(_ctx.$slots, "label", {}, () => [
1841
- createTextVNode(toDisplayString(unref(label)), 1)
1842
- ])
1843
- ])) : createCommentVNode("", true),
1844
- renderSlot(_ctx.$slots, "after")
1845
- ], 64))
1926
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true),
1927
+ _ctx.loadingLabel ? (openBlock(), createElementBlock(
1928
+ "span",
1929
+ _hoisted_1$f,
1930
+ toDisplayString(_ctx.loadingLabel),
1931
+ 1
1932
+ /* TEXT */
1933
+ )) : createCommentVNode("v-if", true)
1934
+ ]) : (openBlock(), createElementBlock(
1935
+ Fragment,
1936
+ { key: 1 },
1937
+ [
1938
+ renderSlot(_ctx.$slots, "before"),
1939
+ unref(icon) ? (openBlock(), createBlock(
1940
+ _sfc_main$o,
1941
+ mergeProps({
1942
+ key: 0,
1943
+ class: "vv-button__icon"
1944
+ }, unref(hasIconProps)),
1945
+ null,
1946
+ 16
1947
+ /* FULL_PROPS */
1948
+ )) : createCommentVNode("v-if", true),
1949
+ unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$a, [
1950
+ renderSlot(_ctx.$slots, "label", {}, () => [
1951
+ createTextVNode(
1952
+ toDisplayString(unref(label)),
1953
+ 1
1954
+ /* TEXT */
1955
+ )
1956
+ ])
1957
+ ])) : createCommentVNode("v-if", true),
1958
+ renderSlot(_ctx.$slots, "after")
1959
+ ],
1960
+ 64
1961
+ /* STABLE_FRAGMENT */
1962
+ ))
1846
1963
  ])
1847
1964
  ]),
1848
1965
  _: 3
1966
+ /* FORWARDED */
1849
1967
  }, 16, ["id", "class"]);
1850
1968
  };
1851
1969
  }
@@ -1918,12 +2036,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1918
2036
  });
1919
2037
  const bemCssClasses = useModifiers("vv-button-group", modifiers);
1920
2038
  return (_ctx, _cache) => {
1921
- return openBlock(), createElementBlock("div", {
1922
- class: normalizeClass(unref(bemCssClasses)),
1923
- role: "group"
1924
- }, [
1925
- renderSlot(_ctx.$slots, "default")
1926
- ], 2);
2039
+ return openBlock(), createElementBlock(
2040
+ "div",
2041
+ {
2042
+ class: normalizeClass(unref(bemCssClasses)),
2043
+ role: "group"
2044
+ },
2045
+ [
2046
+ renderSlot(_ctx.$slots, "default")
2047
+ ],
2048
+ 2
2049
+ /* CLASS */
2050
+ );
1927
2051
  };
1928
2052
  }
1929
2053
  });
@@ -1954,22 +2078,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1954
2078
  const { modifiers } = toRefs(props);
1955
2079
  const bemCssClasses = useModifiers("vv-card", modifiers);
1956
2080
  return (_ctx, _cache) => {
1957
- return openBlock(), createElementBlock("article", {
1958
- class: normalizeClass(unref(bemCssClasses))
1959
- }, [
1960
- _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$e, [
1961
- renderSlot(_ctx.$slots, "header", {}, () => [
1962
- createTextVNode(toDisplayString(_ctx.title), 1)
1963
- ])
1964
- ])) : createCommentVNode("", true),
1965
- renderSlot(_ctx.$slots, "default"),
1966
- _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
1967
- renderSlot(_ctx.$slots, "content")
1968
- ])) : createCommentVNode("", true),
1969
- _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$5, [
1970
- renderSlot(_ctx.$slots, "footer")
1971
- ])) : createCommentVNode("", true)
1972
- ], 2);
2081
+ return openBlock(), createElementBlock(
2082
+ "article",
2083
+ {
2084
+ class: normalizeClass(unref(bemCssClasses))
2085
+ },
2086
+ [
2087
+ _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$e, [
2088
+ renderSlot(_ctx.$slots, "header", {}, () => [
2089
+ createTextVNode(
2090
+ toDisplayString(_ctx.title),
2091
+ 1
2092
+ /* TEXT */
2093
+ )
2094
+ ])
2095
+ ])) : createCommentVNode("v-if", true),
2096
+ renderSlot(_ctx.$slots, "default"),
2097
+ _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
2098
+ renderSlot(_ctx.$slots, "content")
2099
+ ])) : createCommentVNode("v-if", true),
2100
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$5, [
2101
+ renderSlot(_ctx.$slots, "footer")
2102
+ ])) : createCommentVNode("v-if", true)
2103
+ ],
2104
+ 2
2105
+ /* CLASS */
2106
+ );
1973
2107
  };
1974
2108
  }
1975
2109
  });
@@ -2347,12 +2481,19 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2347
2481
  [vModelCheckbox, unref(localModelValue)]
2348
2482
  ]),
2349
2483
  renderSlot(_ctx.$slots, "default", { value: unref(modelValue) }, () => [
2350
- createTextVNode(toDisplayString(_ctx.label), 1)
2484
+ createTextVNode(
2485
+ toDisplayString(_ctx.label),
2486
+ 1
2487
+ /* TEXT */
2488
+ )
2351
2489
  ]),
2352
2490
  createVNode(unref(HintSlot), {
2353
2491
  id: unref(hasHintId),
2354
2492
  class: "vv-checkbox__hint"
2355
- }, createSlots({ _: 2 }, [
2493
+ }, createSlots({
2494
+ _: 2
2495
+ /* DYNAMIC */
2496
+ }, [
2356
2497
  _ctx.$slots.hint ? {
2357
2498
  name: "hint",
2358
2499
  fn: withCtx(() => [
@@ -2469,49 +2610,76 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2469
2610
  };
2470
2611
  const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);
2471
2612
  return (_ctx, _cache) => {
2472
- return openBlock(), createElementBlock("fieldset", {
2473
- class: normalizeClass(unref(bemCssClasses))
2474
- }, [
2475
- _ctx.label ? (openBlock(), createElementBlock("legend", {
2476
- key: 0,
2477
- textContent: toDisplayString(_ctx.label)
2478
- }, null, 8, _hoisted_1$c)) : createCommentVNode("", true),
2479
- createElementVNode("div", _hoisted_2$7, [
2480
- _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (option, index) => {
2481
- return openBlock(), createBlock(_sfc_main$h, mergeProps({ key: index }, getOptionProps(option, index)), null, 16);
2482
- }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 })
2483
- ]),
2484
- createVNode(unref(HintSlot), { class: "vv-checkbox-group__hint" }, createSlots({ _: 2 }, [
2485
- _ctx.$slots.hint ? {
2486
- name: "hint",
2487
- fn: withCtx(() => [
2488
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2489
- ]),
2490
- key: "0"
2491
- } : void 0,
2492
- _ctx.$slots.loading ? {
2493
- name: "loading",
2494
- fn: withCtx(() => [
2495
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2496
- ]),
2497
- key: "1"
2498
- } : void 0,
2499
- _ctx.$slots.valid ? {
2500
- name: "valid",
2501
- fn: withCtx(() => [
2502
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2503
- ]),
2504
- key: "2"
2505
- } : void 0,
2506
- _ctx.$slots.invalid ? {
2507
- name: "invalid",
2508
- fn: withCtx(() => [
2509
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2613
+ return openBlock(), createElementBlock(
2614
+ "fieldset",
2615
+ {
2616
+ class: normalizeClass(unref(bemCssClasses))
2617
+ },
2618
+ [
2619
+ _ctx.label ? (openBlock(), createElementBlock("legend", {
2620
+ key: 0,
2621
+ textContent: toDisplayString(_ctx.label)
2622
+ }, null, 8, _hoisted_1$c)) : createCommentVNode("v-if", true),
2623
+ createElementVNode("div", _hoisted_2$7, [
2624
+ _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
2625
+ Fragment,
2626
+ { key: 0 },
2627
+ renderList(_ctx.options, (option, index) => {
2628
+ return openBlock(), createBlock(
2629
+ _sfc_main$h,
2630
+ mergeProps({ key: index }, getOptionProps(option, index)),
2631
+ null,
2632
+ 16
2633
+ /* FULL_PROPS */
2634
+ );
2635
+ }),
2636
+ 128
2637
+ /* KEYED_FRAGMENT */
2638
+ )) : renderSlot(_ctx.$slots, "default", { key: 1 })
2639
+ ]),
2640
+ createVNode(
2641
+ unref(HintSlot),
2642
+ { class: "vv-checkbox-group__hint" },
2643
+ createSlots({
2644
+ _: 2
2645
+ /* DYNAMIC */
2646
+ }, [
2647
+ _ctx.$slots.hint ? {
2648
+ name: "hint",
2649
+ fn: withCtx(() => [
2650
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2651
+ ]),
2652
+ key: "0"
2653
+ } : void 0,
2654
+ _ctx.$slots.loading ? {
2655
+ name: "loading",
2656
+ fn: withCtx(() => [
2657
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2658
+ ]),
2659
+ key: "1"
2660
+ } : void 0,
2661
+ _ctx.$slots.valid ? {
2662
+ name: "valid",
2663
+ fn: withCtx(() => [
2664
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2665
+ ]),
2666
+ key: "2"
2667
+ } : void 0,
2668
+ _ctx.$slots.invalid ? {
2669
+ name: "invalid",
2670
+ fn: withCtx(() => [
2671
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2672
+ ]),
2673
+ key: "3"
2674
+ } : void 0
2510
2675
  ]),
2511
- key: "3"
2512
- } : void 0
2513
- ]), 1024)
2514
- ], 2);
2676
+ 1024
2677
+ /* DYNAMIC_SLOTS */
2678
+ )
2679
+ ],
2680
+ 2
2681
+ /* CLASS */
2682
+ );
2515
2683
  };
2516
2684
  }
2517
2685
  });
@@ -3104,50 +3272,70 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3104
3272
  }
3105
3273
  };
3106
3274
  return (_ctx, _cache) => {
3107
- return openBlock(), createElementBlock(Fragment, null, [
3108
- createVNode(unref(VvDropdownTriggerProvider), null, {
3109
- default: withCtx(() => [
3110
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ init, show, hide, toggle, expanded: unref(expanded), aria: unref(referenceAria) })))
3111
- ]),
3112
- _: 3
3113
- }),
3114
- createVNode(Transition, mergeProps({ name: _ctx.transitionName }, toHandlers(dropdownTransitionHandlers)), {
3115
- default: withCtx(() => [
3116
- withDirectives(createElementVNode("div", {
3117
- ref_key: "floatingEl",
3118
- ref: floatingEl,
3119
- style: normalizeStyle(unref(dropdownPlacement)),
3120
- class: normalizeClass(unref(bemCssClasses))
3121
- }, [
3122
- props.arrow ? (openBlock(), createElementBlock("div", {
3123
- key: 0,
3124
- ref_key: "arrowEl",
3125
- ref: arrowEl,
3126
- style: normalizeStyle(unref(arrowPlacement)),
3127
- class: "vv-dropdown__arrow"
3128
- }, null, 4)) : createCommentVNode("", true),
3129
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps({ expanded: unref(expanded) }))),
3130
- createElementVNode("div", mergeProps(unref(attrs), {
3131
- id: unref(hasId),
3132
- ref_key: "listEl",
3133
- ref: listEl,
3134
- tabindex: !unref(expanded) ? -1 : void 0,
3135
- role: unref(role),
3136
- "aria-labelledby": unref(hasAriaLabelledby),
3137
- class: "vv-dropdown__list"
3138
- }), [
3139
- renderSlot(_ctx.$slots, "items", normalizeProps(guardReactiveProps({
3140
- role: unref(itemRole)
3141
- })))
3142
- ], 16, _hoisted_1$b),
3143
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps({ expanded: unref(expanded) })))
3144
- ], 6), [
3145
- [vShow, unref(expanded)]
3146
- ])
3147
- ]),
3148
- _: 3
3149
- }, 16, ["name"])
3150
- ], 64);
3275
+ return openBlock(), createElementBlock(
3276
+ Fragment,
3277
+ null,
3278
+ [
3279
+ createVNode(unref(VvDropdownTriggerProvider), null, {
3280
+ default: withCtx(() => [
3281
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ init, show, hide, toggle, expanded: unref(expanded), aria: unref(referenceAria) })))
3282
+ ]),
3283
+ _: 3
3284
+ /* FORWARDED */
3285
+ }),
3286
+ createVNode(Transition, mergeProps({ name: _ctx.transitionName }, toHandlers(dropdownTransitionHandlers), { persisted: "" }), {
3287
+ default: withCtx(() => [
3288
+ withDirectives(createElementVNode(
3289
+ "div",
3290
+ {
3291
+ ref_key: "floatingEl",
3292
+ ref: floatingEl,
3293
+ style: normalizeStyle(unref(dropdownPlacement)),
3294
+ class: normalizeClass(unref(bemCssClasses))
3295
+ },
3296
+ [
3297
+ props.arrow ? (openBlock(), createElementBlock(
3298
+ "div",
3299
+ {
3300
+ key: 0,
3301
+ ref_key: "arrowEl",
3302
+ ref: arrowEl,
3303
+ style: normalizeStyle(unref(arrowPlacement)),
3304
+ class: "vv-dropdown__arrow"
3305
+ },
3306
+ null,
3307
+ 4
3308
+ /* STYLE */
3309
+ )) : createCommentVNode("v-if", true),
3310
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps({ expanded: unref(expanded) }))),
3311
+ createElementVNode("div", mergeProps(unref(attrs), {
3312
+ id: unref(hasId),
3313
+ ref_key: "listEl",
3314
+ ref: listEl,
3315
+ tabindex: !unref(expanded) ? -1 : void 0,
3316
+ role: unref(role),
3317
+ "aria-labelledby": unref(hasAriaLabelledby),
3318
+ class: "vv-dropdown__list"
3319
+ }), [
3320
+ renderSlot(_ctx.$slots, "items", normalizeProps(guardReactiveProps({
3321
+ role: unref(itemRole)
3322
+ })))
3323
+ ], 16, _hoisted_1$b),
3324
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps({ expanded: unref(expanded) })))
3325
+ ],
3326
+ 6
3327
+ /* CLASS, STYLE */
3328
+ ), [
3329
+ [vShow, unref(expanded)]
3330
+ ])
3331
+ ]),
3332
+ _: 3
3333
+ /* FORWARDED */
3334
+ }, 16, ["name"])
3335
+ ],
3336
+ 64
3337
+ /* STABLE_FRAGMENT */
3338
+ );
3151
3339
  };
3152
3340
  }
3153
3341
  });
@@ -3169,13 +3357,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3169
3357
  }
3170
3358
  });
3171
3359
  return (_ctx, _cache) => {
3172
- return openBlock(), createElementBlock("div", mergeProps({ role: unref(role) }, {
3173
- ref_key: "element",
3174
- ref: element,
3175
- class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
3176
- }), [
3177
- renderSlot(_ctx.$slots, "default")
3178
- ], 16);
3360
+ return openBlock(), createElementBlock(
3361
+ "div",
3362
+ mergeProps({ role: unref(role) }, {
3363
+ ref_key: "element",
3364
+ ref: element,
3365
+ class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
3366
+ }),
3367
+ [
3368
+ renderSlot(_ctx.$slots, "default")
3369
+ ],
3370
+ 16
3371
+ /* FULL_PROPS */
3372
+ );
3179
3373
  };
3180
3374
  }
3181
3375
  });
@@ -3234,11 +3428,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3234
3428
  title: unref(hintLabel)
3235
3429
  }, [
3236
3430
  renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps({ disabled: _ctx.disabled, selected: _ctx.selected, unselectable: _ctx.unselectable })), () => [
3237
- createTextVNode(toDisplayString(unref(hintLabel)), 1)
3431
+ createTextVNode(
3432
+ toDisplayString(unref(hintLabel)),
3433
+ 1
3434
+ /* TEXT */
3435
+ )
3238
3436
  ])
3239
3437
  ], 8, _hoisted_1$a)
3240
3438
  ]),
3241
3439
  _: 3
3440
+ /* FORWARDED */
3242
3441
  }, 8, ["class", "tabindex", "aria-selected", "aria-disabled"]);
3243
3442
  };
3244
3443
  }
@@ -3259,7 +3458,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3259
3458
  setup(__props) {
3260
3459
  const props = __props;
3261
3460
  return (_ctx, _cache) => {
3262
- return openBlock(), createElementBlock("li", _hoisted_1$9, toDisplayString(props.label), 1);
3461
+ return openBlock(), createElementBlock(
3462
+ "li",
3463
+ _hoisted_1$9,
3464
+ toDisplayString(props.label),
3465
+ 1
3466
+ /* TEXT */
3467
+ );
3263
3468
  };
3264
3469
  }
3265
3470
  });
@@ -3493,101 +3698,140 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3493
3698
  return option && option.options && option.options.length > 0;
3494
3699
  };
3495
3700
  return (_ctx, _cache) => {
3496
- return openBlock(), createElementBlock("div", {
3497
- class: normalizeClass(unref(bemCssClasses))
3498
- }, [
3499
- _ctx.label ? (openBlock(), createElementBlock("label", {
3500
- key: 0,
3501
- for: unref(hasId)
3502
- }, toDisplayString(_ctx.label), 9, _hoisted_1$8)) : createCommentVNode("", true),
3503
- createElementVNode("div", _hoisted_2$6, [
3504
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
3505
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
3506
- ])) : createCommentVNode("", true),
3507
- createElementVNode("div", _hoisted_4$4, [
3508
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
3509
- key: 0,
3510
- class: "vv-select__icon"
3511
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
3512
- withDirectives(createElementVNode("select", mergeProps({
3513
- id: unref(hasId),
3514
- ref_key: "select",
3515
- ref: select,
3516
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
3517
- }, unref(hasAttrs)), [
3518
- _ctx.placeholder ? (openBlock(), createElementBlock("option", {
3519
- key: 0,
3520
- value: void 0,
3521
- disabled: !_ctx.unselectable,
3522
- hidden: !_ctx.unselectable
3523
- }, toDisplayString(_ctx.placeholder), 9, _hoisted_6$3)) : createCommentVNode("", true),
3524
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
3525
- return openBlock(), createElementBlock(Fragment, null, [
3526
- !isGroup(option) ? (openBlock(), createElementBlock("option", {
3527
- key: index,
3528
- disabled: unref(isOptionDisabled)(option),
3529
- value: unref(getOptionValue)(option)
3530
- }, toDisplayString(unref(getOptionLabel)(option)), 9, _hoisted_7$3)) : (openBlock(), createElementBlock("optgroup", {
3531
- key: `group-${index}`,
3532
- disabled: unref(isOptionDisabled)(option),
3533
- label: unref(getOptionLabel)(option)
3534
- }, [
3535
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptionGrouped)(option), (item, i) => {
3536
- return openBlock(), createElementBlock("option", {
3537
- key: `group-${index}-item-${i}`,
3538
- disabled: unref(isOptionDisabled)(item),
3539
- value: unref(getOptionValue)(item)
3540
- }, toDisplayString(unref(getOptionLabel)(item)), 9, _hoisted_9$1);
3541
- }), 128))
3542
- ], 8, _hoisted_8$2))
3543
- ], 64);
3544
- }), 256))
3545
- ], 16, _hoisted_5$3), [
3546
- [vModelSelect, unref(localModelValue)]
3701
+ return openBlock(), createElementBlock(
3702
+ "div",
3703
+ {
3704
+ class: normalizeClass(unref(bemCssClasses))
3705
+ },
3706
+ [
3707
+ _ctx.label ? (openBlock(), createElementBlock("label", {
3708
+ key: 0,
3709
+ for: unref(hasId)
3710
+ }, toDisplayString(_ctx.label), 9, _hoisted_1$8)) : createCommentVNode("v-if", true),
3711
+ createElementVNode("div", _hoisted_2$6, [
3712
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
3713
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
3714
+ ])) : createCommentVNode("v-if", true),
3715
+ createElementVNode("div", _hoisted_4$4, [
3716
+ unref(hasIconBefore) ? (openBlock(), createBlock(
3717
+ _sfc_main$o,
3718
+ mergeProps({
3719
+ key: 0,
3720
+ class: "vv-select__icon"
3721
+ }, unref(hasIcon)),
3722
+ null,
3723
+ 16
3724
+ /* FULL_PROPS */
3725
+ )) : createCommentVNode("v-if", true),
3726
+ withDirectives(createElementVNode("select", mergeProps({
3727
+ id: unref(hasId),
3728
+ ref_key: "select",
3729
+ ref: select,
3730
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
3731
+ }, unref(hasAttrs)), [
3732
+ _ctx.placeholder ? (openBlock(), createElementBlock("option", {
3733
+ key: 0,
3734
+ value: void 0,
3735
+ disabled: !_ctx.unselectable,
3736
+ hidden: !_ctx.unselectable
3737
+ }, toDisplayString(_ctx.placeholder), 9, _hoisted_6$3)) : createCommentVNode("v-if", true),
3738
+ (openBlock(true), createElementBlock(
3739
+ Fragment,
3740
+ null,
3741
+ renderList(_ctx.options, (option, index) => {
3742
+ return openBlock(), createElementBlock(
3743
+ Fragment,
3744
+ null,
3745
+ [
3746
+ !isGroup(option) ? (openBlock(), createElementBlock("option", {
3747
+ key: index,
3748
+ disabled: unref(isOptionDisabled)(option),
3749
+ value: unref(getOptionValue)(option)
3750
+ }, toDisplayString(unref(getOptionLabel)(option)), 9, _hoisted_7$3)) : (openBlock(), createElementBlock("optgroup", {
3751
+ key: `group-${index}`,
3752
+ disabled: unref(isOptionDisabled)(option),
3753
+ label: unref(getOptionLabel)(option)
3754
+ }, [
3755
+ (openBlock(true), createElementBlock(
3756
+ Fragment,
3757
+ null,
3758
+ renderList(unref(getOptionGrouped)(option), (item, i) => {
3759
+ return openBlock(), createElementBlock("option", {
3760
+ key: `group-${index}-item-${i}`,
3761
+ disabled: unref(isOptionDisabled)(item),
3762
+ value: unref(getOptionValue)(item)
3763
+ }, toDisplayString(unref(getOptionLabel)(item)), 9, _hoisted_9$1);
3764
+ }),
3765
+ 128
3766
+ /* KEYED_FRAGMENT */
3767
+ ))
3768
+ ], 8, _hoisted_8$2))
3769
+ ],
3770
+ 64
3771
+ /* STABLE_FRAGMENT */
3772
+ );
3773
+ }),
3774
+ 256
3775
+ /* UNKEYED_FRAGMENT */
3776
+ ))
3777
+ ], 16, _hoisted_5$3), [
3778
+ [vModelSelect, unref(localModelValue)]
3779
+ ]),
3780
+ unref(hasIconAfter) ? (openBlock(), createBlock(
3781
+ _sfc_main$o,
3782
+ mergeProps({
3783
+ key: 1,
3784
+ class: "vv-select__icon vv-select__icon-after"
3785
+ }, unref(hasIcon)),
3786
+ null,
3787
+ 16
3788
+ /* FULL_PROPS */
3789
+ )) : createCommentVNode("v-if", true)
3547
3790
  ]),
3548
- unref(hasIconAfter) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
3549
- key: 1,
3550
- class: "vv-select__icon vv-select__icon-after"
3551
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true)
3791
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
3792
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
3793
+ ])) : createCommentVNode("v-if", true)
3552
3794
  ]),
3553
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
3554
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
3555
- ])) : createCommentVNode("", true)
3556
- ]),
3557
- createVNode(unref(HintSlot), {
3558
- id: unref(hasHintId),
3559
- class: "vv-select__hint"
3560
- }, createSlots({ _: 2 }, [
3561
- _ctx.$slots.hint ? {
3562
- name: "hint",
3563
- fn: withCtx(() => [
3564
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3565
- ]),
3566
- key: "0"
3567
- } : void 0,
3568
- _ctx.$slots.loading ? {
3569
- name: "loading",
3570
- fn: withCtx(() => [
3571
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3572
- ]),
3573
- key: "1"
3574
- } : void 0,
3575
- _ctx.$slots.valid ? {
3576
- name: "valid",
3577
- fn: withCtx(() => [
3578
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3579
- ]),
3580
- key: "2"
3581
- } : void 0,
3582
- _ctx.$slots.invalid ? {
3583
- name: "invalid",
3584
- fn: withCtx(() => [
3585
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3586
- ]),
3587
- key: "3"
3588
- } : void 0
3589
- ]), 1032, ["id"])
3590
- ], 2);
3795
+ createVNode(unref(HintSlot), {
3796
+ id: unref(hasHintId),
3797
+ class: "vv-select__hint"
3798
+ }, createSlots({
3799
+ _: 2
3800
+ /* DYNAMIC */
3801
+ }, [
3802
+ _ctx.$slots.hint ? {
3803
+ name: "hint",
3804
+ fn: withCtx(() => [
3805
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3806
+ ]),
3807
+ key: "0"
3808
+ } : void 0,
3809
+ _ctx.$slots.loading ? {
3810
+ name: "loading",
3811
+ fn: withCtx(() => [
3812
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3813
+ ]),
3814
+ key: "1"
3815
+ } : void 0,
3816
+ _ctx.$slots.valid ? {
3817
+ name: "valid",
3818
+ fn: withCtx(() => [
3819
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3820
+ ]),
3821
+ key: "2"
3822
+ } : void 0,
3823
+ _ctx.$slots.invalid ? {
3824
+ name: "invalid",
3825
+ fn: withCtx(() => [
3826
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
3827
+ ]),
3828
+ key: "3"
3829
+ } : void 0
3830
+ ]), 1032, ["id"])
3831
+ ],
3832
+ 2
3833
+ /* CLASS */
3834
+ );
3591
3835
  };
3592
3836
  }
3593
3837
  });
@@ -3902,208 +4146,307 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3902
4146
  key: 0,
3903
4147
  id: unref(hasLabelId),
3904
4148
  for: unref(propsDefaults).searchable ? unref(hasSearchId) : void 0
3905
- }, toDisplayString(_ctx.label), 9, _hoisted_2$5)) : createCommentVNode("", true),
3906
- createElementVNode("div", {
3907
- ref_key: "wrapperEl",
3908
- ref: wrapperEl,
3909
- class: "vv-select__wrapper"
3910
- }, [
3911
- createVNode(_sfc_main$f, mergeProps({
3912
- ref_key: "dropdownEl",
3913
- ref: dropdownEl,
3914
- modelValue: unref(expanded),
3915
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(expanded) ? expanded.value = $event : null)
3916
- }, unref(dropdownProps), {
3917
- role: unref(DropdownRole).listbox,
3918
- onAfterExpand,
3919
- onAfterCollapse
3920
- }), createSlots({
3921
- default: withCtx(({ aria }) => [
3922
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
3923
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
3924
- ])) : createCommentVNode("", true),
3925
- createElementVNode("div", _hoisted_5$2, [
3926
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
3927
- key: 0,
3928
- class: "vv-select__icon"
3929
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
3930
- createElementVNode("div", mergeProps({
3931
- ref_key: "inputEl",
3932
- ref: inputEl
3933
- }, aria, {
3934
- class: "vv-select__input",
3935
- role: "combobox",
3936
- "aria-expanded": unref(expanded),
3937
- "aria-labelledby": unref(hasLabelId),
3938
- "aria-describedby": unref(hasHintLabelOrSlot) ? unref(hasHintId) : void 0,
3939
- "aria-errormessage": unref(hasInvalidLabelOrSlot) ? unref(hasHintId) : void 0,
3940
- tabindex: unref(hasTabindex),
3941
- onClickPassive: onClickInput
3942
- }), [
3943
- renderSlot(_ctx.$slots, "value", normalizeProps(guardReactiveProps({ selectedOptions: unref(selectedOptions), onInput })), () => [
3944
- unref(hasValue) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3945
- !_ctx.badges ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(unref(hasValue)), 1)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(selectedOptions), (option, index) => {
3946
- return openBlock(), createBlock(_sfc_main$m, {
3947
- key: index,
3948
- modifiers: _ctx.badgeModifiers,
3949
- class: "vv-select__badge"
3950
- }, {
3951
- default: withCtx(() => [
3952
- createTextVNode(toDisplayString(unref(getOptionLabel)(option)) + " ", 1),
3953
- _ctx.unselectable && !unref(readonly) && !unref(disabled) ? (openBlock(), createElementBlock("button", {
3954
- key: 0,
3955
- "aria-label": unref(propsDefaults).deselectActionLabel,
3956
- type: "button",
3957
- onClick: withModifiers(($event) => onInput(option), ["stop"])
3958
- }, [
3959
- createVNode(_sfc_main$o, { name: "close" })
3960
- ], 8, _hoisted_8$1)) : createCommentVNode("", true)
3961
- ]),
3962
- _: 2
3963
- }, 1032, ["modifiers"]);
3964
- }), 128))
3965
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3966
- createTextVNode(toDisplayString(_ctx.placeholder), 1)
3967
- ], 64))
3968
- ])
3969
- ], 16, _hoisted_6$2),
3970
- unref(hasIconAfter) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
3971
- key: 1,
3972
- class: "vv-select__icon vv-select__icon-after"
3973
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true)
3974
- ]),
3975
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_9, [
3976
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
3977
- ])) : createCommentVNode("", true)
3978
- ]),
3979
- items: withCtx(() => {
3980
- var _a;
3981
- return [
3982
- !unref(disabled) && ((_a = unref(filteredOptions)) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(filteredOptions), (option, index) => {
3983
- return openBlock(), createElementBlock(Fragment, { key: index }, [
3984
- isGroup(option) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3985
- createVNode(_sfc_main$c, {
3986
- label: unref(getOptionLabel)(option)
3987
- }, null, 8, ["label"]),
3988
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptionGrouped)(
3989
- option
3990
- ), (item, i) => {
3991
- return openBlock(), createBlock(_sfc_main$d, mergeProps({
3992
- selected: isOptionSelected(item),
3993
- disabled: unref(isOptionDisabled)(item),
3994
- unselectable: _ctx.unselectable,
3995
- deselectHintLabel: unref(propsDefaults).deselectHintLabel,
3996
- selectHintLabel: unref(propsDefaults).selectHintLabel,
3997
- selectedHintLabel: unref(propsDefaults).selectedHintLabel
3998
- }, {
3999
- key: i,
4000
- class: "vv-dropdown-option",
4001
- onClickPassive: ($event) => onInput(item)
4002
- }), {
4003
- default: withCtx(() => [
4004
- renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
4005
- option,
4006
- selectedOptions: unref(selectedOptions),
4007
- selected: isOptionSelected(item),
4008
- disabled: unref(isOptionDisabled)(item)
4009
- })), () => [
4010
- createTextVNode(toDisplayString(unref(getOptionLabel)(item)), 1)
4011
- ])
4012
- ]),
4013
- _: 2
4014
- }, 1040, ["onClickPassive"]);
4015
- }), 128))
4016
- ], 64)) : (openBlock(), createBlock(_sfc_main$d, mergeProps({ key: 1 }, {
4017
- selected: isOptionSelected(option),
4018
- disabled: unref(isOptionDisabled)(option),
4019
- unselectable: _ctx.unselectable,
4020
- deselectHintLabel: unref(propsDefaults).deselectHintLabel,
4021
- selectHintLabel: unref(propsDefaults).selectHintLabel,
4022
- selectedHintLabel: unref(propsDefaults).selectedHintLabel
4023
- }, {
4024
- class: "vv-dropdown-option",
4025
- onClickPassive: ($event) => onInput(option)
4026
- }), {
4027
- default: withCtx(() => [
4028
- renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
4029
- option,
4030
- selectedOptions: unref(selectedOptions),
4031
- selected: isOptionSelected(option),
4032
- disabled: unref(isOptionDisabled)(option)
4033
- })), () => [
4034
- createTextVNode(toDisplayString(unref(getOptionLabel)(option)), 1)
4035
- ])
4036
- ]),
4037
- _: 2
4038
- }, 1040, ["onClickPassive"]))
4039
- ], 64);
4040
- }), 128)) : !_ctx.options.length ? (openBlock(), createBlock(_sfc_main$d, {
4041
- key: 1,
4042
- modifiers: "inert"
4043
- }, {
4044
- default: withCtx(() => [
4045
- renderSlot(_ctx.$slots, "no-options", {}, () => [
4046
- createTextVNode(toDisplayString(unref(propsDefaults).noOptionsLabel), 1)
4047
- ])
4048
- ]),
4049
- _: 3
4050
- })) : !unref(disabled) ? (openBlock(), createBlock(_sfc_main$d, {
4051
- key: 2,
4052
- modifiers: "inert"
4053
- }, {
4054
- default: withCtx(() => [
4055
- renderSlot(_ctx.$slots, "no-results", {}, () => [
4056
- createTextVNode(toDisplayString(unref(propsDefaults).noResultsLabel), 1)
4149
+ }, toDisplayString(_ctx.label), 9, _hoisted_2$5)) : createCommentVNode("v-if", true),
4150
+ createElementVNode(
4151
+ "div",
4152
+ {
4153
+ ref_key: "wrapperEl",
4154
+ ref: wrapperEl,
4155
+ class: "vv-select__wrapper"
4156
+ },
4157
+ [
4158
+ createVNode(_sfc_main$f, mergeProps({
4159
+ ref_key: "dropdownEl",
4160
+ ref: dropdownEl,
4161
+ modelValue: unref(expanded),
4162
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(expanded) ? expanded.value = $event : null)
4163
+ }, unref(dropdownProps), {
4164
+ role: unref(DropdownRole).listbox,
4165
+ onAfterExpand,
4166
+ onAfterCollapse
4167
+ }), createSlots({
4168
+ default: withCtx(({ aria }) => [
4169
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
4170
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4171
+ ])) : createCommentVNode("v-if", true),
4172
+ createElementVNode("div", _hoisted_5$2, [
4173
+ unref(hasIconBefore) ? (openBlock(), createBlock(
4174
+ _sfc_main$o,
4175
+ mergeProps({
4176
+ key: 0,
4177
+ class: "vv-select__icon"
4178
+ }, unref(hasIcon)),
4179
+ null,
4180
+ 16
4181
+ /* FULL_PROPS */
4182
+ )) : createCommentVNode("v-if", true),
4183
+ createElementVNode("div", mergeProps({
4184
+ ref_key: "inputEl",
4185
+ ref: inputEl
4186
+ }, aria, {
4187
+ class: "vv-select__input",
4188
+ role: "combobox",
4189
+ "aria-expanded": unref(expanded),
4190
+ "aria-labelledby": unref(hasLabelId),
4191
+ "aria-describedby": unref(hasHintLabelOrSlot) ? unref(hasHintId) : void 0,
4192
+ "aria-errormessage": unref(hasInvalidLabelOrSlot) ? unref(hasHintId) : void 0,
4193
+ tabindex: unref(hasTabindex),
4194
+ onClickPassive: onClickInput
4195
+ }), [
4196
+ renderSlot(_ctx.$slots, "value", normalizeProps(guardReactiveProps({ selectedOptions: unref(selectedOptions), onInput })), () => [
4197
+ unref(hasValue) ? (openBlock(), createElementBlock(
4198
+ Fragment,
4199
+ { key: 0 },
4200
+ [
4201
+ !_ctx.badges ? (openBlock(), createElementBlock(
4202
+ "div",
4203
+ _hoisted_7$2,
4204
+ toDisplayString(unref(hasValue)),
4205
+ 1
4206
+ /* TEXT */
4207
+ )) : (openBlock(true), createElementBlock(
4208
+ Fragment,
4209
+ { key: 1 },
4210
+ renderList(unref(selectedOptions), (option, index) => {
4211
+ return openBlock(), createBlock(_sfc_main$m, {
4212
+ key: index,
4213
+ modifiers: _ctx.badgeModifiers,
4214
+ class: "vv-select__badge"
4215
+ }, {
4216
+ default: withCtx(() => [
4217
+ createTextVNode(
4218
+ toDisplayString(unref(getOptionLabel)(option)) + " ",
4219
+ 1
4220
+ /* TEXT */
4221
+ ),
4222
+ _ctx.unselectable && !unref(readonly) && !unref(disabled) ? (openBlock(), createElementBlock("button", {
4223
+ key: 0,
4224
+ "aria-label": unref(propsDefaults).deselectActionLabel,
4225
+ type: "button",
4226
+ onClick: withModifiers(($event) => onInput(option), ["stop"])
4227
+ }, [
4228
+ createVNode(_sfc_main$o, { name: "close" })
4229
+ ], 8, _hoisted_8$1)) : createCommentVNode("v-if", true)
4230
+ ]),
4231
+ _: 2
4232
+ /* DYNAMIC */
4233
+ }, 1032, ["modifiers"]);
4234
+ }),
4235
+ 128
4236
+ /* KEYED_FRAGMENT */
4237
+ ))
4238
+ ],
4239
+ 64
4240
+ /* STABLE_FRAGMENT */
4241
+ )) : (openBlock(), createElementBlock(
4242
+ Fragment,
4243
+ { key: 1 },
4244
+ [
4245
+ createTextVNode(
4246
+ toDisplayString(_ctx.placeholder),
4247
+ 1
4248
+ /* TEXT */
4249
+ )
4250
+ ],
4251
+ 64
4252
+ /* STABLE_FRAGMENT */
4253
+ ))
4057
4254
  ])
4058
- ]),
4059
- _: 3
4060
- })) : createCommentVNode("", true)
4061
- ];
4062
- }),
4063
- after: withCtx(() => [
4064
- renderSlot(_ctx.$slots, "dropdown::after", {}, () => {
4255
+ ], 16, _hoisted_6$2),
4256
+ unref(hasIconAfter) ? (openBlock(), createBlock(
4257
+ _sfc_main$o,
4258
+ mergeProps({
4259
+ key: 1,
4260
+ class: "vv-select__icon vv-select__icon-after"
4261
+ }, unref(hasIcon)),
4262
+ null,
4263
+ 16
4264
+ /* FULL_PROPS */
4265
+ )) : createCommentVNode("v-if", true)
4266
+ ]),
4267
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_9, [
4268
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
4269
+ ])) : createCommentVNode("v-if", true)
4270
+ ]),
4271
+ items: withCtx(() => {
4065
4272
  var _a;
4066
4273
  return [
4067
- ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$k, {
4068
- key: 0,
4069
- label: unref(propsDefaults).closeLabel,
4070
- modifiers: "secondary",
4071
- onClick: _cache[1] || (_cache[1] = ($event) => unref(dropdownEl).hide())
4072
- }, null, 8, ["label"])) : createCommentVNode("", true)
4274
+ !unref(disabled) && ((_a = unref(filteredOptions)) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(
4275
+ Fragment,
4276
+ { key: 0 },
4277
+ renderList(unref(filteredOptions), (option, index) => {
4278
+ return openBlock(), createElementBlock(
4279
+ Fragment,
4280
+ { key: index },
4281
+ [
4282
+ isGroup(option) ? (openBlock(), createElementBlock(
4283
+ Fragment,
4284
+ { key: 0 },
4285
+ [
4286
+ createVNode(_sfc_main$c, {
4287
+ label: unref(getOptionLabel)(option)
4288
+ }, null, 8, ["label"]),
4289
+ (openBlock(true), createElementBlock(
4290
+ Fragment,
4291
+ null,
4292
+ renderList(unref(getOptionGrouped)(
4293
+ option
4294
+ ), (item, i) => {
4295
+ return openBlock(), createBlock(_sfc_main$d, mergeProps({
4296
+ selected: isOptionSelected(item),
4297
+ disabled: unref(isOptionDisabled)(item),
4298
+ unselectable: _ctx.unselectable,
4299
+ deselectHintLabel: unref(propsDefaults).deselectHintLabel,
4300
+ selectHintLabel: unref(propsDefaults).selectHintLabel,
4301
+ selectedHintLabel: unref(propsDefaults).selectedHintLabel
4302
+ }, {
4303
+ key: i,
4304
+ class: "vv-dropdown-option",
4305
+ onClickPassive: ($event) => onInput(item)
4306
+ }), {
4307
+ default: withCtx(() => [
4308
+ renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
4309
+ option,
4310
+ selectedOptions: unref(selectedOptions),
4311
+ selected: isOptionSelected(item),
4312
+ disabled: unref(isOptionDisabled)(item)
4313
+ })), () => [
4314
+ createTextVNode(
4315
+ toDisplayString(unref(getOptionLabel)(item)),
4316
+ 1
4317
+ /* TEXT */
4318
+ )
4319
+ ])
4320
+ ]),
4321
+ _: 2
4322
+ /* DYNAMIC */
4323
+ }, 1040, ["onClickPassive"]);
4324
+ }),
4325
+ 128
4326
+ /* KEYED_FRAGMENT */
4327
+ ))
4328
+ ],
4329
+ 64
4330
+ /* STABLE_FRAGMENT */
4331
+ )) : (openBlock(), createBlock(_sfc_main$d, mergeProps({ key: 1 }, {
4332
+ selected: isOptionSelected(option),
4333
+ disabled: unref(isOptionDisabled)(option),
4334
+ unselectable: _ctx.unselectable,
4335
+ deselectHintLabel: unref(propsDefaults).deselectHintLabel,
4336
+ selectHintLabel: unref(propsDefaults).selectHintLabel,
4337
+ selectedHintLabel: unref(propsDefaults).selectedHintLabel
4338
+ }, {
4339
+ class: "vv-dropdown-option",
4340
+ onClickPassive: ($event) => onInput(option)
4341
+ }), {
4342
+ default: withCtx(() => [
4343
+ renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
4344
+ option,
4345
+ selectedOptions: unref(selectedOptions),
4346
+ selected: isOptionSelected(option),
4347
+ disabled: unref(isOptionDisabled)(option)
4348
+ })), () => [
4349
+ createTextVNode(
4350
+ toDisplayString(unref(getOptionLabel)(option)),
4351
+ 1
4352
+ /* TEXT */
4353
+ )
4354
+ ])
4355
+ ]),
4356
+ _: 2
4357
+ /* DYNAMIC */
4358
+ }, 1040, ["onClickPassive"]))
4359
+ ],
4360
+ 64
4361
+ /* STABLE_FRAGMENT */
4362
+ );
4363
+ }),
4364
+ 128
4365
+ /* KEYED_FRAGMENT */
4366
+ )) : !_ctx.options.length ? (openBlock(), createBlock(_sfc_main$d, {
4367
+ key: 1,
4368
+ modifiers: "inert"
4369
+ }, {
4370
+ default: withCtx(() => [
4371
+ renderSlot(_ctx.$slots, "no-options", {}, () => [
4372
+ createTextVNode(
4373
+ toDisplayString(unref(propsDefaults).noOptionsLabel),
4374
+ 1
4375
+ /* TEXT */
4376
+ )
4377
+ ])
4378
+ ]),
4379
+ _: 3
4380
+ /* FORWARDED */
4381
+ })) : !unref(disabled) ? (openBlock(), createBlock(_sfc_main$d, {
4382
+ key: 2,
4383
+ modifiers: "inert"
4384
+ }, {
4385
+ default: withCtx(() => [
4386
+ renderSlot(_ctx.$slots, "no-results", {}, () => [
4387
+ createTextVNode(
4388
+ toDisplayString(unref(propsDefaults).noResultsLabel),
4389
+ 1
4390
+ /* TEXT */
4391
+ )
4392
+ ])
4393
+ ]),
4394
+ _: 3
4395
+ /* FORWARDED */
4396
+ })) : createCommentVNode("v-if", true)
4073
4397
  ];
4074
- })
4075
- ]),
4076
- _: 2
4077
- }, [
4078
- unref(propsDefaults).searchable || _ctx.$slots["dropdown::before"] ? {
4079
- name: "before",
4080
- fn: withCtx(() => [
4081
- renderSlot(_ctx.$slots, "dropdown::before"),
4082
- unref(propsDefaults).searchable && !unref(disabled) ? withDirectives((openBlock(), createElementBlock("input", {
4083
- key: 0,
4084
- id: unref(hasSearchId),
4085
- ref_key: "inputSearchEl",
4086
- ref: inputSearchEl,
4087
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchText) ? searchText.value = $event : null),
4088
- "aria-autocomplete": "list",
4089
- "aria-controls": unref(hasDropdownId),
4090
- autocomplete: "off",
4091
- spellcheck: "false",
4092
- type: "search",
4093
- class: "vv-dropdown__search",
4094
- placeholder: unref(propsDefaults).searchPlaceholder
4095
- }, null, 8, _hoisted_3$3)), [
4096
- [vModelText, unref(searchText)]
4097
- ]) : createCommentVNode("", true)
4398
+ }),
4399
+ after: withCtx(() => [
4400
+ renderSlot(_ctx.$slots, "dropdown::after", {}, () => {
4401
+ var _a;
4402
+ return [
4403
+ ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$k, {
4404
+ key: 0,
4405
+ label: unref(propsDefaults).closeLabel,
4406
+ modifiers: "secondary",
4407
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(dropdownEl).hide())
4408
+ }, null, 8, ["label"])) : createCommentVNode("v-if", true)
4409
+ ];
4410
+ })
4098
4411
  ]),
4099
- key: "0"
4100
- } : void 0
4101
- ]), 1040, ["modelValue", "role"])
4102
- ], 512),
4412
+ _: 2
4413
+ /* DYNAMIC */
4414
+ }, [
4415
+ unref(propsDefaults).searchable || _ctx.$slots["dropdown::before"] ? {
4416
+ name: "before",
4417
+ fn: withCtx(() => [
4418
+ renderSlot(_ctx.$slots, "dropdown::before"),
4419
+ unref(propsDefaults).searchable && !unref(disabled) ? withDirectives((openBlock(), createElementBlock("input", {
4420
+ key: 0,
4421
+ id: unref(hasSearchId),
4422
+ ref_key: "inputSearchEl",
4423
+ ref: inputSearchEl,
4424
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchText) ? searchText.value = $event : null),
4425
+ "aria-autocomplete": "list",
4426
+ "aria-controls": unref(hasDropdownId),
4427
+ autocomplete: "off",
4428
+ spellcheck: "false",
4429
+ type: "search",
4430
+ class: "vv-dropdown__search",
4431
+ placeholder: unref(propsDefaults).searchPlaceholder
4432
+ }, null, 8, _hoisted_3$3)), [
4433
+ [vModelText, unref(searchText)]
4434
+ ]) : createCommentVNode("v-if", true)
4435
+ ]),
4436
+ key: "0"
4437
+ } : void 0
4438
+ ]), 1040, ["modelValue", "role"])
4439
+ ],
4440
+ 512
4441
+ /* NEED_PATCH */
4442
+ ),
4103
4443
  createVNode(unref(HintSlot), {
4104
4444
  id: unref(hasHintId),
4105
4445
  class: "vv-select__hint"
4106
- }, createSlots({ _: 2 }, [
4446
+ }, createSlots({
4447
+ _: 2
4448
+ /* DYNAMIC */
4449
+ }, [
4107
4450
  _ctx.$slots.hint ? {
4108
4451
  name: "hint",
4109
4452
  fn: withCtx(() => [
@@ -4133,9 +4476,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4133
4476
  key: "3"
4134
4477
  } : void 0
4135
4478
  ]), 1032, ["id"])
4136
- ], 10, _hoisted_1$7)) : (openBlock(), createBlock(_sfc_main$b, mergeProps({ key: 1 }, unref(selectProps), {
4137
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
4138
- }), null, 16));
4479
+ ], 10, _hoisted_1$7)) : (openBlock(), createBlock(
4480
+ _sfc_main$b,
4481
+ mergeProps({ key: 1 }, unref(selectProps), {
4482
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
4483
+ }),
4484
+ null,
4485
+ 16
4486
+ /* FULL_PROPS */
4487
+ ));
4139
4488
  };
4140
4489
  }
4141
4490
  });
@@ -4278,7 +4627,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4278
4627
  }
4279
4628
  };
4280
4629
  return (_ctx, _cache) => {
4281
- return openBlock(), createBlock(Transition, mergeProps({ name: unref(transitioName) }, toHandlers(dialogTransitionHandlers)), {
4630
+ return openBlock(), createBlock(Transition, mergeProps({ name: unref(transitioName) }, toHandlers(dialogTransitionHandlers), { persisted: "" }), {
4282
4631
  default: withCtx(() => [
4283
4632
  withDirectives(createElementVNode("dialog", mergeProps(unref(dialogAttrs), {
4284
4633
  ref_key: "dialogEl",
@@ -4286,36 +4635,53 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4286
4635
  class: unref(dialogClass),
4287
4636
  onCancel: withModifiers(onCancel, ["stop", "prevent"])
4288
4637
  }), [
4289
- createElementVNode("article", {
4290
- ref_key: "modalWrapper",
4291
- ref: modalWrapper,
4292
- class: "vv-dialog__wrapper"
4293
- }, [
4294
- _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2$4, [
4295
- renderSlot(_ctx.$slots, "header", {}, () => [
4296
- createTextVNode(toDisplayString(_ctx.title) + " ", 1),
4297
- createElementVNode("button", {
4298
- type: "button",
4299
- "aria-label": "Close",
4300
- class: "vv-dialog__close",
4301
- onClickPassive: close
4302
- }, [
4303
- createVNode(_sfc_main$o, { name: "close" })
4304
- ], 32)
4305
- ])
4306
- ])) : createCommentVNode("", true),
4307
- createElementVNode("div", _hoisted_3$2, [
4308
- renderSlot(_ctx.$slots, "default")
4309
- ]),
4310
- _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$2, [
4311
- renderSlot(_ctx.$slots, "footer")
4312
- ])) : createCommentVNode("", true)
4313
- ], 512)
4638
+ createElementVNode(
4639
+ "article",
4640
+ {
4641
+ ref_key: "modalWrapper",
4642
+ ref: modalWrapper,
4643
+ class: "vv-dialog__wrapper"
4644
+ },
4645
+ [
4646
+ _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2$4, [
4647
+ renderSlot(_ctx.$slots, "header", {}, () => [
4648
+ createTextVNode(
4649
+ toDisplayString(_ctx.title) + " ",
4650
+ 1
4651
+ /* TEXT */
4652
+ ),
4653
+ createElementVNode(
4654
+ "button",
4655
+ {
4656
+ type: "button",
4657
+ "aria-label": "Close",
4658
+ class: "vv-dialog__close",
4659
+ onClickPassive: close
4660
+ },
4661
+ [
4662
+ createVNode(_sfc_main$o, { name: "close" })
4663
+ ],
4664
+ 32
4665
+ /* HYDRATE_EVENTS */
4666
+ )
4667
+ ])
4668
+ ])) : createCommentVNode("v-if", true),
4669
+ createElementVNode("div", _hoisted_3$2, [
4670
+ renderSlot(_ctx.$slots, "default")
4671
+ ]),
4672
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$2, [
4673
+ renderSlot(_ctx.$slots, "footer")
4674
+ ])) : createCommentVNode("v-if", true)
4675
+ ],
4676
+ 512
4677
+ /* NEED_PATCH */
4678
+ )
4314
4679
  ], 16, _hoisted_1$6), [
4315
4680
  [vShow, unref(isOpened)]
4316
4681
  ])
4317
4682
  ]),
4318
4683
  _: 3
4684
+ /* FORWARDED */
4319
4685
  }, 16, ["name"]);
4320
4686
  };
4321
4687
  }
@@ -4986,7 +5352,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4986
5352
  return;
4987
5353
  }
4988
5354
  inputEl.value.stepUp();
4989
- localModelValue.value = unref(inputEl).value;
5355
+ localModelValue.value = Number(unref(inputEl).value);
4990
5356
  }
4991
5357
  };
4992
5358
  const onStepDown = () => {
@@ -4996,7 +5362,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4996
5362
  return;
4997
5363
  }
4998
5364
  inputEl.value.stepDown();
4999
- localModelValue.value = unref(inputEl).value;
5365
+ localModelValue.value = Number(unref(inputEl).value);
5000
5366
  }
5001
5367
  };
5002
5368
  const isSearch = computed(() => props.type === INPUT_TYPES.SEARCH);
@@ -5160,101 +5526,130 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5160
5526
  emit("keydown", event);
5161
5527
  };
5162
5528
  return (_ctx, _cache) => {
5163
- return openBlock(), createElementBlock("div", {
5164
- class: normalizeClass(unref(bemCssClasses))
5165
- }, [
5166
- unref(label) ? (openBlock(), createElementBlock("label", {
5167
- key: 0,
5168
- for: unref(hasId),
5169
- class: "vv-input-text__label"
5170
- }, toDisplayString(unref(label)), 9, _hoisted_1$5)) : createCommentVNode("", true),
5171
- createElementVNode("div", _hoisted_2$3, [
5172
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
5173
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
5174
- ])) : createCommentVNode("", true),
5175
- createElementVNode("div", {
5176
- ref_key: "innerEl",
5177
- ref: innerEl,
5178
- class: "vv-input-text__inner",
5179
- onClick: withModifiers(onClickInner, ["stop"])
5180
- }, [
5181
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
5182
- key: 0,
5183
- class: "vv-input-text__icon"
5184
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
5185
- createElementVNode("input", mergeProps({
5186
- id: unref(hasId),
5187
- ref_key: "inputEl",
5188
- ref: inputEl
5189
- }, unref(hasAttrs), {
5190
- style: unref(hasStyle),
5191
- onKeyup: _cache[0] || (_cache[0] = ($event) => emit("keyup", $event)),
5192
- onKeydown: onKeyDown,
5193
- onKeypress: _cache[1] || (_cache[1] = ($event) => emit("keypress", $event))
5194
- }), null, 16, _hoisted_5$1),
5195
- (_ctx.unit || _ctx.$slots.unit) && unref(isDirty) ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
5196
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5197
- createTextVNode(toDisplayString(_ctx.unit), 1)
5529
+ return openBlock(), createElementBlock(
5530
+ "div",
5531
+ {
5532
+ class: normalizeClass(unref(bemCssClasses))
5533
+ },
5534
+ [
5535
+ unref(label) ? (openBlock(), createElementBlock("label", {
5536
+ key: 0,
5537
+ for: unref(hasId),
5538
+ class: "vv-input-text__label"
5539
+ }, toDisplayString(unref(label)), 9, _hoisted_1$5)) : createCommentVNode("v-if", true),
5540
+ createElementVNode("div", _hoisted_2$3, [
5541
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
5542
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
5543
+ ])) : createCommentVNode("v-if", true),
5544
+ createElementVNode("div", {
5545
+ ref_key: "innerEl",
5546
+ ref: innerEl,
5547
+ class: "vv-input-text__inner",
5548
+ onClick: withModifiers(onClickInner, ["stop"])
5549
+ }, [
5550
+ unref(hasIconBefore) ? (openBlock(), createBlock(
5551
+ _sfc_main$o,
5552
+ mergeProps({
5553
+ key: 0,
5554
+ class: "vv-input-text__icon"
5555
+ }, unref(hasIcon)),
5556
+ null,
5557
+ 16
5558
+ /* FULL_PROPS */
5559
+ )) : createCommentVNode("v-if", true),
5560
+ createElementVNode("input", mergeProps({
5561
+ id: unref(hasId),
5562
+ ref_key: "inputEl",
5563
+ ref: inputEl
5564
+ }, unref(hasAttrs), {
5565
+ style: unref(hasStyle),
5566
+ onKeyup: _cache[0] || (_cache[0] = ($event) => emit("keyup", $event)),
5567
+ onKeydown: onKeyDown,
5568
+ onKeypress: _cache[1] || (_cache[1] = ($event) => emit("keypress", $event))
5569
+ }), null, 16, _hoisted_5$1),
5570
+ (_ctx.unit || _ctx.$slots.unit) && unref(isDirty) ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
5571
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5572
+ createTextVNode(
5573
+ toDisplayString(_ctx.unit),
5574
+ 1
5575
+ /* TEXT */
5576
+ )
5577
+ ])
5578
+ ])) : createCommentVNode("v-if", true)
5579
+ ], 8, _hoisted_4$1),
5580
+ unref(hasIconAfter) || unref(defaultAfterIcon) ? (openBlock(), createBlock(
5581
+ _sfc_main$o,
5582
+ mergeProps({
5583
+ key: 1,
5584
+ class: "vv-input-text__icon vv-input-text__icon-after"
5585
+ }, unref(hasIconAfter) ? unref(hasIcon) : unref(defaultAfterIcon)),
5586
+ null,
5587
+ 16
5588
+ /* FULL_PROPS */
5589
+ )) : unref(isPassword) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(PasswordInputActions), {
5590
+ key: 2,
5591
+ onTogglePassword
5592
+ })) : unref(isNumber) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(NumberInputActions), {
5593
+ key: 3,
5594
+ onStepUp,
5595
+ onStepDown
5596
+ })) : unref(isSearch) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(SearchInputActions), {
5597
+ key: 4,
5598
+ onClear
5599
+ })) : createCommentVNode("v-if", true),
5600
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
5601
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
5602
+ ])) : createCommentVNode("v-if", true),
5603
+ unref(count) ? (openBlock(), createElementBlock("span", _hoisted_8, [
5604
+ renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5605
+ createTextVNode(
5606
+ toDisplayString(unref(countFormatted)),
5607
+ 1
5608
+ /* TEXT */
5609
+ )
5198
5610
  ])
5199
- ])) : createCommentVNode("", true)
5200
- ], 8, _hoisted_4$1),
5201
- unref(hasIconAfter) || unref(defaultAfterIcon) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
5202
- key: 1,
5203
- class: "vv-input-text__icon vv-input-text__icon-after"
5204
- }, unref(hasIconAfter) ? unref(hasIcon) : unref(defaultAfterIcon)), null, 16)) : unref(isPassword) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(PasswordInputActions), {
5205
- key: 2,
5206
- onTogglePassword
5207
- })) : unref(isNumber) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(NumberInputActions), {
5208
- key: 3,
5209
- onStepUp,
5210
- onStepDown
5211
- })) : unref(isSearch) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(SearchInputActions), {
5212
- key: 4,
5213
- onClear
5214
- })) : createCommentVNode("", true),
5215
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
5216
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
5217
- ])) : createCommentVNode("", true),
5218
- unref(count) ? (openBlock(), createElementBlock("span", _hoisted_8, [
5219
- renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5220
- createTextVNode(toDisplayString(unref(countFormatted)), 1)
5221
- ])
5222
- ])) : createCommentVNode("", true)
5223
- ]),
5224
- createVNode(unref(HintSlot), {
5225
- id: unref(hasHintId),
5226
- class: "vv-input-text__hint"
5227
- }, createSlots({ _: 2 }, [
5228
- _ctx.$slots.hint ? {
5229
- name: "hint",
5230
- fn: withCtx(() => [
5231
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5232
- ]),
5233
- key: "0"
5234
- } : void 0,
5235
- _ctx.$slots.loading ? {
5236
- name: "loading",
5237
- fn: withCtx(() => [
5238
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5239
- ]),
5240
- key: "1"
5241
- } : void 0,
5242
- _ctx.$slots.valid ? {
5243
- name: "valid",
5244
- fn: withCtx(() => [
5245
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5246
- ]),
5247
- key: "2"
5248
- } : void 0,
5249
- _ctx.$slots.invalid ? {
5250
- name: "invalid",
5251
- fn: withCtx(() => [
5252
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5253
- ]),
5254
- key: "3"
5255
- } : void 0
5256
- ]), 1032, ["id"])
5257
- ], 2);
5611
+ ])) : createCommentVNode("v-if", true)
5612
+ ]),
5613
+ createVNode(unref(HintSlot), {
5614
+ id: unref(hasHintId),
5615
+ class: "vv-input-text__hint"
5616
+ }, createSlots({
5617
+ _: 2
5618
+ /* DYNAMIC */
5619
+ }, [
5620
+ _ctx.$slots.hint ? {
5621
+ name: "hint",
5622
+ fn: withCtx(() => [
5623
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5624
+ ]),
5625
+ key: "0"
5626
+ } : void 0,
5627
+ _ctx.$slots.loading ? {
5628
+ name: "loading",
5629
+ fn: withCtx(() => [
5630
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5631
+ ]),
5632
+ key: "1"
5633
+ } : void 0,
5634
+ _ctx.$slots.valid ? {
5635
+ name: "valid",
5636
+ fn: withCtx(() => [
5637
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5638
+ ]),
5639
+ key: "2"
5640
+ } : void 0,
5641
+ _ctx.$slots.invalid ? {
5642
+ name: "invalid",
5643
+ fn: withCtx(() => [
5644
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5645
+ ]),
5646
+ key: "3"
5647
+ } : void 0
5648
+ ]), 1032, ["id"])
5649
+ ],
5650
+ 2
5651
+ /* CLASS */
5652
+ );
5258
5653
  };
5259
5654
  }
5260
5655
  });
@@ -5276,12 +5671,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
5276
5671
  setup(__props) {
5277
5672
  return (_ctx, _cache) => {
5278
5673
  return openBlock(), createElementBlock("li", _hoisted_1$4, [
5279
- createVNode(_sfc_main$p, mergeProps(_ctx.$attrs, { class: "vv-nav__item-label" }), {
5280
- default: withCtx(() => [
5281
- renderSlot(_ctx.$slots, "default")
5282
- ]),
5283
- _: 3
5284
- }, 16)
5674
+ createVNode(
5675
+ _sfc_main$p,
5676
+ mergeProps(_ctx.$attrs, { class: "vv-nav__item-label" }),
5677
+ {
5678
+ default: withCtx(() => [
5679
+ renderSlot(_ctx.$slots, "default")
5680
+ ]),
5681
+ _: 3
5682
+ /* FORWARDED */
5683
+ },
5684
+ 16
5685
+ /* FULL_PROPS */
5686
+ )
5285
5687
  ]);
5286
5688
  };
5287
5689
  }
@@ -5308,25 +5710,37 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
5308
5710
  };
5309
5711
  const bemCssClasses = useModifiers("vv-nav", modifiers);
5310
5712
  return (_ctx, _cache) => {
5311
- return openBlock(), createElementBlock("nav", {
5312
- class: normalizeClass(unref(bemCssClasses))
5313
- }, [
5314
- createElementVNode("ul", {
5315
- class: "vv-nav__menu",
5316
- role: "menu",
5317
- "aria-busy": "true",
5318
- onClick: withModifiers(onClick, ["stop"])
5319
- }, [
5320
- renderSlot(_ctx.$slots, "default", {}, () => [
5321
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, ({ on = {}, ...item }, index) => {
5322
- return openBlock(), createBlock(_sfc_main$7, mergeProps({
5323
- key: index,
5324
- "data-index": index
5325
- }, item, toHandlers(on)), null, 16, ["data-index"]);
5326
- }), 128))
5327
- ])
5328
- ], 8, _hoisted_1$3)
5329
- ], 2);
5713
+ return openBlock(), createElementBlock(
5714
+ "nav",
5715
+ {
5716
+ class: normalizeClass(unref(bemCssClasses))
5717
+ },
5718
+ [
5719
+ createElementVNode("ul", {
5720
+ class: "vv-nav__menu",
5721
+ role: "menu",
5722
+ "aria-busy": "true",
5723
+ onClick: withModifiers(onClick, ["stop"])
5724
+ }, [
5725
+ renderSlot(_ctx.$slots, "default", {}, () => [
5726
+ (openBlock(true), createElementBlock(
5727
+ Fragment,
5728
+ null,
5729
+ renderList(_ctx.items, ({ on = {}, ...item }, index) => {
5730
+ return openBlock(), createBlock(_sfc_main$7, mergeProps({
5731
+ key: index,
5732
+ "data-index": index
5733
+ }, item, toHandlers(on)), null, 16, ["data-index"]);
5734
+ }),
5735
+ 128
5736
+ /* KEYED_FRAGMENT */
5737
+ ))
5738
+ ])
5739
+ ], 8, _hoisted_1$3)
5740
+ ],
5741
+ 2
5742
+ /* CLASS */
5743
+ );
5330
5744
  };
5331
5745
  }
5332
5746
  });
@@ -5377,12 +5791,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
5377
5791
  computed(() => ({ indeterminate: indeterminate.value }))
5378
5792
  );
5379
5793
  return (_ctx, _cache) => {
5380
- return openBlock(), createElementBlock("progress", mergeProps({ role: "progressbar" }, {
5381
- class: unref(bemCssClasses),
5382
- ariaLabel: unref(ariaLabel),
5383
- max: unref(max),
5384
- value: unref(value)
5385
- }), null, 16);
5794
+ return openBlock(), createElementBlock(
5795
+ "progress",
5796
+ mergeProps({ role: "progressbar" }, {
5797
+ class: unref(bemCssClasses),
5798
+ ariaLabel: unref(ariaLabel),
5799
+ max: unref(max),
5800
+ value: unref(value)
5801
+ }),
5802
+ null,
5803
+ 16
5804
+ /* FULL_PROPS */
5805
+ );
5386
5806
  };
5387
5807
  }
5388
5808
  });
@@ -5510,12 +5930,19 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
5510
5930
  [vModelRadio, unref(localModelValue)]
5511
5931
  ]),
5512
5932
  renderSlot(_ctx.$slots, "default", { value: unref(modelValue) }, () => [
5513
- createTextVNode(toDisplayString(_ctx.label), 1)
5933
+ createTextVNode(
5934
+ toDisplayString(_ctx.label),
5935
+ 1
5936
+ /* TEXT */
5937
+ )
5514
5938
  ]),
5515
5939
  createVNode(unref(HintSlot), {
5516
5940
  id: unref(hasHintId),
5517
5941
  class: "vv-radio__hint"
5518
- }, createSlots({ _: 2 }, [
5942
+ }, createSlots({
5943
+ _: 2
5944
+ /* DYNAMIC */
5945
+ }, [
5519
5946
  _ctx.$slots.hint ? {
5520
5947
  name: "hint",
5521
5948
  fn: withCtx(() => [
@@ -5600,49 +6027,76 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5600
6027
  };
5601
6028
  const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);
5602
6029
  return (_ctx, _cache) => {
5603
- return openBlock(), createElementBlock("fieldset", {
5604
- class: normalizeClass(unref(bemCssClasses))
5605
- }, [
5606
- _ctx.label ? (openBlock(), createElementBlock("legend", {
5607
- key: 0,
5608
- textContent: toDisplayString(_ctx.label)
5609
- }, null, 8, _hoisted_1$1)) : createCommentVNode("", true),
5610
- createElementVNode("div", _hoisted_2$1, [
5611
- _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (option, index) => {
5612
- return openBlock(), createBlock(_sfc_main$4, mergeProps({ key: index }, getOptionProps(option, index)), null, 16);
5613
- }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 })
5614
- ]),
5615
- createVNode(unref(HintSlot), { class: "vv-radio-group__hint" }, createSlots({ _: 2 }, [
5616
- _ctx.$slots.hint ? {
5617
- name: "hint",
5618
- fn: withCtx(() => [
5619
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5620
- ]),
5621
- key: "0"
5622
- } : void 0,
5623
- _ctx.$slots.loading ? {
5624
- name: "loading",
5625
- fn: withCtx(() => [
5626
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5627
- ]),
5628
- key: "1"
5629
- } : void 0,
5630
- _ctx.$slots.valid ? {
5631
- name: "valid",
5632
- fn: withCtx(() => [
5633
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5634
- ]),
5635
- key: "2"
5636
- } : void 0,
5637
- _ctx.$slots.invalid ? {
5638
- name: "invalid",
5639
- fn: withCtx(() => [
5640
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6030
+ return openBlock(), createElementBlock(
6031
+ "fieldset",
6032
+ {
6033
+ class: normalizeClass(unref(bemCssClasses))
6034
+ },
6035
+ [
6036
+ _ctx.label ? (openBlock(), createElementBlock("legend", {
6037
+ key: 0,
6038
+ textContent: toDisplayString(_ctx.label)
6039
+ }, null, 8, _hoisted_1$1)) : createCommentVNode("v-if", true),
6040
+ createElementVNode("div", _hoisted_2$1, [
6041
+ _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
6042
+ Fragment,
6043
+ { key: 0 },
6044
+ renderList(_ctx.options, (option, index) => {
6045
+ return openBlock(), createBlock(
6046
+ _sfc_main$4,
6047
+ mergeProps({ key: index }, getOptionProps(option, index)),
6048
+ null,
6049
+ 16
6050
+ /* FULL_PROPS */
6051
+ );
6052
+ }),
6053
+ 128
6054
+ /* KEYED_FRAGMENT */
6055
+ )) : renderSlot(_ctx.$slots, "default", { key: 1 })
6056
+ ]),
6057
+ createVNode(
6058
+ unref(HintSlot),
6059
+ { class: "vv-radio-group__hint" },
6060
+ createSlots({
6061
+ _: 2
6062
+ /* DYNAMIC */
6063
+ }, [
6064
+ _ctx.$slots.hint ? {
6065
+ name: "hint",
6066
+ fn: withCtx(() => [
6067
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6068
+ ]),
6069
+ key: "0"
6070
+ } : void 0,
6071
+ _ctx.$slots.loading ? {
6072
+ name: "loading",
6073
+ fn: withCtx(() => [
6074
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6075
+ ]),
6076
+ key: "1"
6077
+ } : void 0,
6078
+ _ctx.$slots.valid ? {
6079
+ name: "valid",
6080
+ fn: withCtx(() => [
6081
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6082
+ ]),
6083
+ key: "2"
6084
+ } : void 0,
6085
+ _ctx.$slots.invalid ? {
6086
+ name: "invalid",
6087
+ fn: withCtx(() => [
6088
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6089
+ ]),
6090
+ key: "3"
6091
+ } : void 0
5641
6092
  ]),
5642
- key: "3"
5643
- } : void 0
5644
- ]), 1024)
5645
- ], 2);
6093
+ 1024
6094
+ /* DYNAMIC_SLOTS */
6095
+ )
6096
+ ],
6097
+ 2
6098
+ /* CLASS */
6099
+ );
5646
6100
  };
5647
6101
  }
5648
6102
  });
@@ -5707,24 +6161,54 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5707
6161
  );
5708
6162
  const bemCssClasses = useModifiers("vv-tab", modifiers);
5709
6163
  return (_ctx, _cache) => {
5710
- return openBlock(), createElementBlock("div", {
5711
- class: normalizeClass(unref(bemCssClasses))
5712
- }, [
5713
- createVNode(_sfc_main$6, mergeProps({
5714
- items: unref(navItems),
5715
- modifiers: unref(hasNavModifiers)
5716
- }, { onClick: onNavClick }), null, 16),
5717
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item, index) => {
5718
- return openBlock(), createElementBlock(Fragment, { key: index }, [
5719
- item.tab ? (openBlock(), createElementBlock("article", {
5720
- key: 0,
5721
- class: normalizeClass([{ target: unref(activeTabKey) === item.tab }, "vv-tab__panel"])
5722
- }, [
5723
- renderSlot(_ctx.$slots, `panel::${item.tab}`)
5724
- ], 2)) : createCommentVNode("", true)
5725
- ], 64);
5726
- }), 128))
5727
- ], 2);
6164
+ return openBlock(), createElementBlock(
6165
+ "div",
6166
+ {
6167
+ class: normalizeClass(unref(bemCssClasses))
6168
+ },
6169
+ [
6170
+ createVNode(
6171
+ _sfc_main$6,
6172
+ mergeProps({
6173
+ items: unref(navItems),
6174
+ modifiers: unref(hasNavModifiers)
6175
+ }, { onClick: onNavClick }),
6176
+ null,
6177
+ 16
6178
+ /* FULL_PROPS */
6179
+ ),
6180
+ (openBlock(true), createElementBlock(
6181
+ Fragment,
6182
+ null,
6183
+ renderList(unref(items), (item, index) => {
6184
+ return openBlock(), createElementBlock(
6185
+ Fragment,
6186
+ { key: index },
6187
+ [
6188
+ item.tab ? (openBlock(), createElementBlock(
6189
+ "article",
6190
+ {
6191
+ key: 0,
6192
+ class: normalizeClass([{ target: unref(activeTabKey) === item.tab }, "vv-tab__panel"])
6193
+ },
6194
+ [
6195
+ renderSlot(_ctx.$slots, `panel::${item.tab}`)
6196
+ ],
6197
+ 2
6198
+ /* CLASS */
6199
+ )) : createCommentVNode("v-if", true)
6200
+ ],
6201
+ 64
6202
+ /* STABLE_FRAGMENT */
6203
+ );
6204
+ }),
6205
+ 128
6206
+ /* KEYED_FRAGMENT */
6207
+ ))
6208
+ ],
6209
+ 2
6210
+ /* CLASS */
6211
+ );
5728
6212
  };
5729
6213
  }
5730
6214
  });
@@ -5909,81 +6393,106 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5909
6393
  localModelValue.value = void 0;
5910
6394
  };
5911
6395
  return (_ctx, _cache) => {
5912
- return openBlock(), createElementBlock("div", {
5913
- class: normalizeClass(unref(bemCssClasses))
5914
- }, [
5915
- unref(label) ? (openBlock(), createElementBlock("label", {
5916
- key: 0,
5917
- for: unref(hasId),
5918
- class: "vv-textarea__label"
5919
- }, toDisplayString(unref(label)), 9, _hoisted_1)) : createCommentVNode("", true),
5920
- createElementVNode("div", _hoisted_2, [
5921
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3, [
5922
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
5923
- ])) : createCommentVNode("", true),
5924
- createElementVNode("div", _hoisted_4, [
5925
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
5926
- key: 0,
5927
- class: "vv-textarea__icon"
5928
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
5929
- withDirectives(createElementVNode("textarea", mergeProps({
5930
- id: unref(hasId),
5931
- ref_key: "textarea",
5932
- ref: textarea,
5933
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
5934
- }, unref(hasAttrs), {
5935
- onKeyup: _cache[1] || (_cache[1] = ($event) => emit("keyup", $event))
5936
- }), null, 16, _hoisted_5), [
5937
- [vModelText, unref(localModelValue)]
6396
+ return openBlock(), createElementBlock(
6397
+ "div",
6398
+ {
6399
+ class: normalizeClass(unref(bemCssClasses))
6400
+ },
6401
+ [
6402
+ unref(label) ? (openBlock(), createElementBlock("label", {
6403
+ key: 0,
6404
+ for: unref(hasId),
6405
+ class: "vv-textarea__label"
6406
+ }, toDisplayString(unref(label)), 9, _hoisted_1)) : createCommentVNode("v-if", true),
6407
+ createElementVNode("div", _hoisted_2, [
6408
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3, [
6409
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
6410
+ ])) : createCommentVNode("v-if", true),
6411
+ createElementVNode("div", _hoisted_4, [
6412
+ unref(hasIconBefore) ? (openBlock(), createBlock(
6413
+ _sfc_main$o,
6414
+ mergeProps({
6415
+ key: 0,
6416
+ class: "vv-textarea__icon"
6417
+ }, unref(hasIcon)),
6418
+ null,
6419
+ 16
6420
+ /* FULL_PROPS */
6421
+ )) : createCommentVNode("v-if", true),
6422
+ withDirectives(createElementVNode("textarea", mergeProps({
6423
+ id: unref(hasId),
6424
+ ref_key: "textarea",
6425
+ ref: textarea,
6426
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
6427
+ }, unref(hasAttrs), {
6428
+ onKeyup: _cache[1] || (_cache[1] = ($event) => emit("keyup", $event))
6429
+ }), null, 16, _hoisted_5), [
6430
+ [vModelText, unref(localModelValue)]
6431
+ ]),
6432
+ unref(hasIconAfter) ? (openBlock(), createBlock(
6433
+ _sfc_main$o,
6434
+ mergeProps({
6435
+ key: 1,
6436
+ class: "vv-textarea__icon vv-textarea__icon-after"
6437
+ }, unref(hasIcon)),
6438
+ null,
6439
+ 16
6440
+ /* FULL_PROPS */
6441
+ )) : createCommentVNode("v-if", true)
5938
6442
  ]),
5939
- unref(hasIconAfter) ? (openBlock(), createBlock(_sfc_main$o, mergeProps({
5940
- key: 1,
5941
- class: "vv-textarea__icon vv-textarea__icon-after"
5942
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true)
6443
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6, [
6444
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
6445
+ ])) : createCommentVNode("v-if", true),
6446
+ unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7, [
6447
+ renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
6448
+ createTextVNode(
6449
+ toDisplayString(unref(countFormatted)),
6450
+ 1
6451
+ /* TEXT */
6452
+ )
6453
+ ])
6454
+ ])) : createCommentVNode("v-if", true)
5943
6455
  ]),
5944
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6, [
5945
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
5946
- ])) : createCommentVNode("", true),
5947
- unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7, [
5948
- renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
5949
- createTextVNode(toDisplayString(unref(countFormatted)), 1)
5950
- ])
5951
- ])) : createCommentVNode("", true)
5952
- ]),
5953
- createVNode(unref(HintSlot), {
5954
- id: unref(hasHintId),
5955
- class: "vv-textarea__hint"
5956
- }, createSlots({ _: 2 }, [
5957
- _ctx.$slots.hint ? {
5958
- name: "hint",
5959
- fn: withCtx(() => [
5960
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5961
- ]),
5962
- key: "0"
5963
- } : void 0,
5964
- _ctx.$slots.loading ? {
5965
- name: "loading",
5966
- fn: withCtx(() => [
5967
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5968
- ]),
5969
- key: "1"
5970
- } : void 0,
5971
- _ctx.$slots.valid ? {
5972
- name: "valid",
5973
- fn: withCtx(() => [
5974
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5975
- ]),
5976
- key: "2"
5977
- } : void 0,
5978
- _ctx.$slots.invalid ? {
5979
- name: "invalid",
5980
- fn: withCtx(() => [
5981
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
5982
- ]),
5983
- key: "3"
5984
- } : void 0
5985
- ]), 1032, ["id"])
5986
- ], 2);
6456
+ createVNode(unref(HintSlot), {
6457
+ id: unref(hasHintId),
6458
+ class: "vv-textarea__hint"
6459
+ }, createSlots({
6460
+ _: 2
6461
+ /* DYNAMIC */
6462
+ }, [
6463
+ _ctx.$slots.hint ? {
6464
+ name: "hint",
6465
+ fn: withCtx(() => [
6466
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6467
+ ]),
6468
+ key: "0"
6469
+ } : void 0,
6470
+ _ctx.$slots.loading ? {
6471
+ name: "loading",
6472
+ fn: withCtx(() => [
6473
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6474
+ ]),
6475
+ key: "1"
6476
+ } : void 0,
6477
+ _ctx.$slots.valid ? {
6478
+ name: "valid",
6479
+ fn: withCtx(() => [
6480
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6481
+ ]),
6482
+ key: "2"
6483
+ } : void 0,
6484
+ _ctx.$slots.invalid ? {
6485
+ name: "invalid",
6486
+ fn: withCtx(() => [
6487
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
6488
+ ]),
6489
+ key: "3"
6490
+ } : void 0
6491
+ ]), 1032, ["id"])
6492
+ ],
6493
+ 2
6494
+ /* CLASS */
6495
+ );
5987
6496
  };
5988
6497
  }
5989
6498
  });
@@ -6015,15 +6524,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
6015
6524
  }))
6016
6525
  );
6017
6526
  return (_ctx, _cache) => {
6018
- return openBlock(), createElementBlock("span", {
6019
- class: normalizeClass(unref(bemCssClasses)),
6020
- role: "tooltip",
6021
- inert: ""
6022
- }, [
6023
- renderSlot(_ctx.$slots, "default", {}, () => [
6024
- createTextVNode(toDisplayString(_ctx.value), 1)
6025
- ])
6026
- ], 2);
6527
+ return openBlock(), createElementBlock(
6528
+ "span",
6529
+ {
6530
+ class: normalizeClass(unref(bemCssClasses)),
6531
+ role: "tooltip",
6532
+ inert: ""
6533
+ },
6534
+ [
6535
+ renderSlot(_ctx.$slots, "default", {}, () => [
6536
+ createTextVNode(
6537
+ toDisplayString(_ctx.value),
6538
+ 1
6539
+ /* TEXT */
6540
+ )
6541
+ ])
6542
+ ],
6543
+ 2
6544
+ /* CLASS */
6545
+ );
6027
6546
  };
6028
6547
  }
6029
6548
  });