@volverjs/ui-vue 0.0.10-beta.10 → 0.0.10-beta.11

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.
@@ -1,10 +1,10 @@
1
- import { unref, inject, computed, toRef, toRefs, defineComponent, useAttrs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, isRef, provide, watchEffect, watch, Fragment, renderList, createBlock, mergeProps, withCtx, resolveDynamicComponent, createCommentVNode, createVNode, useSlots, h, onMounted, withDirectives, vModelCheckbox, createSlots, nextTick, Transition, toHandlers, normalizeStyle, vShow, vModelSelect, vModelText, vModelRadio } from "vue";
1
+ import { unref, inject, computed, toRef, toRefs, defineComponent, useAttrs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, isRef, provide, watchEffect, watch, Fragment, renderList, createBlock, mergeProps, withCtx, resolveDynamicComponent, createCommentVNode, createVNode, TransitionGroup, toHandlers, useSlots, h, onMounted, withDirectives, vModelCheckbox, createSlots, nextTick, Transition, normalizeStyle, vShow, vModelSelect, vModelText, vModelRadio } from "vue";
2
2
  import { uid } from "uid";
3
3
  import { useToggle, useStorage, useVModel, useMutationObserver, onClickOutside, useFocusWithin, onKeyStroke, useElementHover, useFocus, useElementVisibility, refDebounced, computedAsync } from "@vueuse/core";
4
4
  import { iconExists, Icon, addIcon } from "@iconify/vue";
5
+ import mitt from "mitt";
5
6
  import { get } from "ts-dot-prop";
6
7
  import { autoPlacement, flip, shift, size, offset, arrow, useFloating, autoUpdate } from "@floating-ui/vue";
7
- import mitt from "mitt";
8
8
  import { useIMask } from "vue-imask";
9
9
  var Strategy = /* @__PURE__ */ ((Strategy2) => {
10
10
  Strategy2["absolute"] = "absolute";
@@ -754,14 +754,14 @@ function useModifiers(prefix, modifiers, others) {
754
754
  return toReturn;
755
755
  });
756
756
  }
757
- const _hoisted_1$i = ["id", "open"];
758
- const _hoisted_2$d = ["aria-controls", "aria-expanded"];
757
+ const _hoisted_1$l = ["id", "open"];
758
+ const _hoisted_2$e = ["aria-controls", "aria-expanded"];
759
759
  const _hoisted_3$7 = ["aria-hidden"];
760
- const __default__$o = {
760
+ const __default__$q = {
761
761
  name: "VvAccordion"
762
762
  };
763
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
764
- ...__default__$o,
763
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
764
+ ...__default__$q,
765
765
  props: VvAccordionProps,
766
766
  emits: VvAccordionEvents,
767
767
  setup(__props, { emit }) {
@@ -847,7 +847,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
847
847
  /* TEXT */
848
848
  )
849
849
  ])
850
- ], 8, _hoisted_2$d),
850
+ ], 8, _hoisted_2$e),
851
851
  createElementVNode("div", {
852
852
  "aria-hidden": !unref(isOpen),
853
853
  class: "vv-accordion__content"
@@ -860,7 +860,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
860
860
  )
861
861
  ])
862
862
  ], 8, _hoisted_3$7)
863
- ], 10, _hoisted_1$i);
863
+ ], 10, _hoisted_1$l);
864
864
  };
865
865
  }
866
866
  });
@@ -913,11 +913,11 @@ function useProvideGroupState(groupState) {
913
913
  computed(() => groupState)
914
914
  );
915
915
  }
916
- const __default__$n = {
916
+ const __default__$p = {
917
917
  name: "VvAccordionGroup"
918
918
  };
919
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
920
- ...__default__$n,
919
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
920
+ ...__default__$p,
921
921
  props: VvAccordionGroupProps,
922
922
  emits: VvAccordionGroupEvents,
923
923
  setup(__props, { emit }) {
@@ -991,7 +991,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
991
991
  null,
992
992
  renderList(unref(items), (item) => {
993
993
  return openBlock(), createBlock(
994
- _sfc_main$r,
994
+ _sfc_main$w,
995
995
  mergeProps({
996
996
  key: item.title
997
997
  }, {
@@ -1038,11 +1038,11 @@ function useInjectedDropdownItem() {
1038
1038
  function useInjectedDropdownAction() {
1039
1039
  return inject(INJECTION_KEY_DROPDOWN_ACTION, {});
1040
1040
  }
1041
- const __default__$m = {
1041
+ const __default__$o = {
1042
1042
  name: "VvAction"
1043
1043
  };
1044
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
1045
- ...__default__$m,
1044
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1045
+ ...__default__$o,
1046
1046
  props: VvActionProps,
1047
1047
  emits: VvActionEvents,
1048
1048
  setup(__props, { expose: __expose, emit }) {
@@ -1251,11 +1251,11 @@ const VvIconProps = {
1251
1251
  type: [String, Array]
1252
1252
  }
1253
1253
  };
1254
- const __default__$l = {
1254
+ const __default__$n = {
1255
1255
  name: "VvIcon"
1256
1256
  };
1257
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
1258
- ...__default__$l,
1257
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1258
+ ...__default__$n,
1259
1259
  props: VvIconProps,
1260
1260
  setup(__props) {
1261
1261
  const props = __props;
@@ -1492,11 +1492,11 @@ const useVvAlert = (props, emit) => {
1492
1492
  }))
1493
1493
  };
1494
1494
  };
1495
- const _hoisted_1$h = {
1495
+ const _hoisted_1$k = {
1496
1496
  key: 0,
1497
1497
  class: "vv-alert__header"
1498
1498
  };
1499
- const _hoisted_2$c = ["id"];
1499
+ const _hoisted_2$d = ["id"];
1500
1500
  const _hoisted_3$6 = ["aria-label"];
1501
1501
  const _hoisted_4$5 = /* @__PURE__ */ createElementVNode(
1502
1502
  "div",
@@ -1516,11 +1516,11 @@ const _hoisted_7$4 = {
1516
1516
  key: 2,
1517
1517
  class: "vv-alert__footer"
1518
1518
  };
1519
- const __default__$k = {
1519
+ const __default__$m = {
1520
1520
  name: "VvAlert"
1521
1521
  };
1522
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
1523
- ...__default__$k,
1522
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1523
+ ...__default__$m,
1524
1524
  props: VvAlertProps,
1525
1525
  emits: VvAlertEvents,
1526
1526
  setup(__props, { expose: __expose, emit }) {
@@ -1532,9 +1532,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1532
1532
  "div",
1533
1533
  normalizeProps(guardReactiveProps(unref(hasProps))),
1534
1534
  [
1535
- _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, [
1535
+ _ctx.$slots.header || _ctx.$slots.title || _ctx.$slots.close || _ctx.$slots["title::before"] || _ctx.$slots["title::after"] || _ctx.title || _ctx.dismissable || _ctx.autoClose ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
1536
1536
  unref(hasIcon) ? (openBlock(), createBlock(
1537
- _sfc_main$o,
1537
+ _sfc_main$t,
1538
1538
  mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }),
1539
1539
  null,
1540
1540
  16
@@ -1554,7 +1554,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1554
1554
  /* TEXT */
1555
1555
  )
1556
1556
  ])
1557
- ], 8, _hoisted_2$c)) : createCommentVNode("v-if", true),
1557
+ ], 8, _hoisted_2$d)) : createCommentVNode("v-if", true),
1558
1558
  renderSlot(_ctx.$slots, "title::after")
1559
1559
  ]),
1560
1560
  renderSlot(_ctx.$slots, "close", normalizeProps(guardReactiveProps({ close: unref(close) })), () => [
@@ -1596,15 +1596,352 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1596
1596
  };
1597
1597
  }
1598
1598
  });
1599
+ function useProvideAlertGroup({
1600
+ name
1601
+ }) {
1602
+ const bus = mitt();
1603
+ provide(INJECTION_KEY_ALERT_GROUP, {
1604
+ name,
1605
+ bus
1606
+ });
1607
+ return bus;
1608
+ }
1609
+ const VvAlertGroupProps = {
1610
+ ...ModifiersProps,
1611
+ name: {
1612
+ type: String,
1613
+ required: true
1614
+ },
1615
+ items: {
1616
+ type: Array,
1617
+ default: () => []
1618
+ },
1619
+ stack: {
1620
+ type: Boolean,
1621
+ default: false
1622
+ },
1623
+ reverse: {
1624
+ type: Boolean,
1625
+ default: false
1626
+ },
1627
+ inline: {
1628
+ type: String,
1629
+ default: void 0
1630
+ },
1631
+ block: {
1632
+ type: String,
1633
+ default: void 0
1634
+ },
1635
+ position: {
1636
+ type: String,
1637
+ default: void 0
1638
+ },
1639
+ transition: {
1640
+ type: String,
1641
+ default: void 0
1642
+ }
1643
+ };
1644
+ const VvAlertGroupEvents = [
1645
+ "close",
1646
+ "before-enter",
1647
+ "after-leave",
1648
+ "enter",
1649
+ "after-enter",
1650
+ "enter-cancelled",
1651
+ "before-leave",
1652
+ "leave",
1653
+ "leave-cancelled"
1654
+ ];
1655
+ const useVvAlertGroup = (props, emit) => {
1656
+ const bus = useProvideAlertGroup({ name: computed(() => props.name) });
1657
+ if (props.block && !props.inline || !props.block && props.inline) {
1658
+ console.warn(
1659
+ `[VvAlertGroup]: block and inline props must coexist at the same time.`
1660
+ );
1661
+ }
1662
+ const hasClass = computed(() => {
1663
+ const toReturn = [
1664
+ useModifiers(
1665
+ "vv-alert-group",
1666
+ computed(() => props.modifiers),
1667
+ computed(() => ({
1668
+ stack: props.stack,
1669
+ reverse: props.reverse,
1670
+ absolute: props.position === "absolute",
1671
+ fixed: props.position === "fixed"
1672
+ }))
1673
+ ).value
1674
+ ];
1675
+ if (props.inline && props.block) {
1676
+ toReturn.push(`vv-alert-group--${props.block}-${props.inline}`);
1677
+ }
1678
+ return toReturn;
1679
+ });
1680
+ const hasTransition = computed(() => {
1681
+ if (props.transition) {
1682
+ return props.transition;
1683
+ }
1684
+ if (!props.position) {
1685
+ return "vv-alert--fade";
1686
+ }
1687
+ if (props.inline === "start") {
1688
+ return "vv-alert--fade-inline-start";
1689
+ }
1690
+ if (props.inline === "end") {
1691
+ return "vv-alert--fade-inline-end";
1692
+ }
1693
+ if (props.block === "top") {
1694
+ return "vv-alert--fade-block-top";
1695
+ }
1696
+ if (props.block === "bottom") {
1697
+ return "vv-alert--fade-block-bottom";
1698
+ }
1699
+ return "vv-alert--fade";
1700
+ });
1701
+ bus.on("close", (id) => {
1702
+ emit("close", id);
1703
+ });
1704
+ return {
1705
+ hasTransition,
1706
+ hasProps: computed(() => ({
1707
+ class: hasClass.value
1708
+ }))
1709
+ };
1710
+ };
1711
+ const __default__$l = {
1712
+ name: "VvAlertGroup"
1713
+ };
1714
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1715
+ ...__default__$l,
1716
+ props: VvAlertGroupProps,
1717
+ emits: VvAlertGroupEvents,
1718
+ setup(__props, { emit }) {
1719
+ const props = __props;
1720
+ const { hasProps, hasTransition } = useVvAlertGroup(props, emit);
1721
+ const alertGroupTransitionHandlers = {
1722
+ "before-enter": () => {
1723
+ emit("before-enter");
1724
+ },
1725
+ "after-leave": () => {
1726
+ emit("after-leave");
1727
+ },
1728
+ enter: () => {
1729
+ emit("enter");
1730
+ },
1731
+ "after-enter": () => {
1732
+ emit("after-enter");
1733
+ },
1734
+ "enter-cancelled": () => {
1735
+ emit("enter-cancelled");
1736
+ },
1737
+ "before-leave": () => {
1738
+ emit("before-leave");
1739
+ },
1740
+ leave: () => {
1741
+ emit("leave");
1742
+ },
1743
+ "leave-cancelled": () => {
1744
+ emit("leave-cancelled");
1745
+ }
1746
+ };
1747
+ return (_ctx, _cache) => {
1748
+ return openBlock(), createElementBlock(
1749
+ "div",
1750
+ normalizeProps(guardReactiveProps(unref(hasProps))),
1751
+ [
1752
+ renderSlot(_ctx.$slots, "before"),
1753
+ createVNode(TransitionGroup, mergeProps({
1754
+ tag: "div",
1755
+ role: "group",
1756
+ name: unref(hasTransition),
1757
+ class: "vv-alert-group__list"
1758
+ }, toHandlers(alertGroupTransitionHandlers)), {
1759
+ default: withCtx(() => [
1760
+ renderSlot(_ctx.$slots, "default", {}, () => [
1761
+ (openBlock(true), createElementBlock(
1762
+ Fragment,
1763
+ null,
1764
+ renderList(_ctx.items, (item) => {
1765
+ return openBlock(), createBlock(
1766
+ _sfc_main$s,
1767
+ mergeProps(item, {
1768
+ key: item.id
1769
+ }),
1770
+ null,
1771
+ 16
1772
+ /* FULL_PROPS */
1773
+ );
1774
+ }),
1775
+ 128
1776
+ /* KEYED_FRAGMENT */
1777
+ ))
1778
+ ])
1779
+ ]),
1780
+ _: 3
1781
+ /* FORWARDED */
1782
+ }, 16, ["name"]),
1783
+ renderSlot(_ctx.$slots, "after")
1784
+ ],
1785
+ 16
1786
+ /* FULL_PROPS */
1787
+ );
1788
+ };
1789
+ }
1790
+ });
1791
+ const VvAvatarProps = {
1792
+ ...ModifiersProps,
1793
+ /**
1794
+ * Image src for avatar
1795
+ */
1796
+ imgSrc: String
1797
+ };
1798
+ const _hoisted_1$j = ["role", "aria-label"];
1799
+ const _hoisted_2$c = ["src"];
1800
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1801
+ __name: "VvAvatar",
1802
+ props: VvAvatarProps,
1803
+ setup(__props) {
1804
+ const props = __props;
1805
+ const { modifiers } = toRefs(props);
1806
+ const bemCssClasses = useModifiers("vv-avatar", modifiers);
1807
+ return (_ctx, _cache) => {
1808
+ return openBlock(), createElementBlock("span", {
1809
+ class: normalizeClass(unref(bemCssClasses)),
1810
+ role: _ctx.imgSrc ? void 0 : "img",
1811
+ "aria-label": _ctx.imgSrc ? void 0 : "avatar"
1812
+ }, [
1813
+ renderSlot(_ctx.$slots, "default", {}, () => [
1814
+ _ctx.imgSrc ? (openBlock(), createElementBlock("img", {
1815
+ key: 0,
1816
+ src: _ctx.imgSrc,
1817
+ alt: "avatar"
1818
+ }, null, 8, _hoisted_2$c)) : createCommentVNode("v-if", true)
1819
+ ])
1820
+ ], 10, _hoisted_1$j);
1821
+ };
1822
+ }
1823
+ });
1824
+ const VvAvatarGroupProps = {
1825
+ ...ModifiersProps,
1826
+ /**
1827
+ * avatar items
1828
+ */
1829
+ items: {
1830
+ type: Array,
1831
+ default: () => [],
1832
+ required: true
1833
+ },
1834
+ toShow: {
1835
+ type: Number,
1836
+ default: 3
1837
+ },
1838
+ totalItems: {
1839
+ type: Number
1840
+ },
1841
+ avatarModifiers: [String, Array]
1842
+ };
1843
+ const _hoisted_1$i = { key: 0 };
1844
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1845
+ __name: "VvAvatarGroup",
1846
+ props: VvAvatarGroupProps,
1847
+ setup(__props) {
1848
+ const props = __props;
1849
+ const { modifiers, items, toShow, totalItems, avatarModifiers } = toRefs(props);
1850
+ const bemCssClasses = useModifiers("vv-avatar-group", modifiers);
1851
+ const stringModifiers = computed(() => {
1852
+ if ((avatarModifiers == null ? void 0 : avatarModifiers.value) && Array.isArray(avatarModifiers == null ? void 0 : avatarModifiers.value)) {
1853
+ return avatarModifiers.value.join(" ");
1854
+ }
1855
+ return (avatarModifiers == null ? void 0 : avatarModifiers.value) || "";
1856
+ });
1857
+ const avatarItems = computed(() => {
1858
+ return items.value.slice(0, toShow.value).map((item) => {
1859
+ let modifiers2 = [];
1860
+ let itemModifiers = [];
1861
+ if (avatarModifiers == null ? void 0 : avatarModifiers.value) {
1862
+ modifiers2 = Array.isArray(avatarModifiers == null ? void 0 : avatarModifiers.value) ? avatarModifiers == null ? void 0 : avatarModifiers.value : [avatarModifiers == null ? void 0 : avatarModifiers.value];
1863
+ }
1864
+ if (item.modifiers) {
1865
+ itemModifiers = Array.isArray(item.modifiers) ? item.modifiers : [item.modifiers];
1866
+ }
1867
+ return {
1868
+ ...item,
1869
+ key: item.key || useUniqueId().value,
1870
+ modifiers: [...modifiers2, ...itemModifiers]
1871
+ };
1872
+ });
1873
+ });
1874
+ return (_ctx, _cache) => {
1875
+ return openBlock(), createElementBlock(
1876
+ "span",
1877
+ {
1878
+ class: normalizeClass(unref(bemCssClasses))
1879
+ },
1880
+ [
1881
+ renderSlot(_ctx.$slots, "default", {}, () => [
1882
+ (openBlock(true), createElementBlock(
1883
+ Fragment,
1884
+ null,
1885
+ renderList(unref(avatarItems), (avatarItem) => {
1886
+ return openBlock(), createBlock(
1887
+ _sfc_main$q,
1888
+ mergeProps({
1889
+ key: avatarItem.key
1890
+ }, {
1891
+ modifiers: avatarItem.modifiers,
1892
+ imgSrc: avatarItem.imgSrc
1893
+ }),
1894
+ {
1895
+ default: withCtx(() => [
1896
+ avatarItem.text ? (openBlock(), createElementBlock(
1897
+ "span",
1898
+ _hoisted_1$i,
1899
+ toDisplayString(avatarItem.text),
1900
+ 1
1901
+ /* TEXT */
1902
+ )) : createCommentVNode("v-if", true)
1903
+ ]),
1904
+ _: 2
1905
+ /* DYNAMIC */
1906
+ },
1907
+ 1040
1908
+ /* FULL_PROPS, DYNAMIC_SLOTS */
1909
+ );
1910
+ }),
1911
+ 128
1912
+ /* KEYED_FRAGMENT */
1913
+ )),
1914
+ (unref(totalItems) || unref(items).length) > unref(toShow) ? (openBlock(), createBlock(_sfc_main$q, {
1915
+ key: 0,
1916
+ modifiers: `${unref(stringModifiers)} surface bordered`
1917
+ }, {
1918
+ default: withCtx(() => [
1919
+ createTextVNode(
1920
+ toDisplayString(`+${(unref(totalItems) || unref(items).length) - unref(toShow)}`),
1921
+ 1
1922
+ /* TEXT */
1923
+ )
1924
+ ]),
1925
+ _: 1
1926
+ /* STABLE */
1927
+ }, 8, ["modifiers"])) : createCommentVNode("v-if", true)
1928
+ ])
1929
+ ],
1930
+ 2
1931
+ /* CLASS */
1932
+ );
1933
+ };
1934
+ }
1935
+ });
1599
1936
  const VvBadgeProps = {
1600
1937
  ...ModifiersProps,
1601
1938
  value: [String, Number]
1602
1939
  };
1603
- const __default__$j = {
1940
+ const __default__$k = {
1604
1941
  name: "VvBadge"
1605
1942
  };
1606
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
1607
- ...__default__$j,
1943
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1944
+ ...__default__$k,
1608
1945
  props: VvBadgeProps,
1609
1946
  setup(__props) {
1610
1947
  const props = __props;
@@ -1636,13 +1973,13 @@ const VvBreadcrumbProps = {
1636
1973
  ...ModifiersProps,
1637
1974
  routes: Array
1638
1975
  };
1639
- const _hoisted_1$g = { class: "vv-breadcrumb__list" };
1976
+ const _hoisted_1$h = { class: "vv-breadcrumb__list" };
1640
1977
  const _hoisted_2$b = ["content"];
1641
- const __default__$i = {
1978
+ const __default__$j = {
1642
1979
  name: "VvBreadcrumb"
1643
1980
  };
1644
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
1645
- ...__default__$i,
1981
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1982
+ ...__default__$j,
1646
1983
  props: VvBreadcrumbProps,
1647
1984
  setup(__props) {
1648
1985
  const props = __props;
@@ -1661,7 +1998,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1661
1998
  "aria-label": "breadcrumbs"
1662
1999
  },
1663
2000
  [
1664
- createElementVNode("ol", _hoisted_1$g, [
2001
+ createElementVNode("ol", _hoisted_1$h, [
1665
2002
  (openBlock(true), createElementBlock(
1666
2003
  Fragment,
1667
2004
  null,
@@ -1678,7 +2015,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1678
2015
  itemscope: ""
1679
2016
  },
1680
2017
  [
1681
- createVNode(_sfc_main$p, mergeProps(route, {
2018
+ createVNode(_sfc_main$u, mergeProps(route, {
1682
2019
  class: !isLast(index) ? "vv-breadcrumb__link" : "vv-breadcrumb__label",
1683
2020
  "aria-current": isLast(index) ? "page" : void 0,
1684
2021
  itemprop: "item",
@@ -1820,7 +2157,7 @@ function useGroupProps$2(props, emit) {
1820
2157
  label
1821
2158
  };
1822
2159
  }
1823
- const _hoisted_1$f = {
2160
+ const _hoisted_1$g = {
1824
2161
  key: 1,
1825
2162
  class: "vv-button__label"
1826
2163
  };
@@ -1828,11 +2165,11 @@ const _hoisted_2$a = {
1828
2165
  key: 1,
1829
2166
  class: "vv-button__label"
1830
2167
  };
1831
- const __default__$h = {
2168
+ const __default__$i = {
1832
2169
  name: "VvButton"
1833
2170
  };
1834
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
1835
- ...__default__$h,
2171
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2172
+ ...__default__$i,
1836
2173
  props: VvButtonProps,
1837
2174
  emits: VvButtonEvents,
1838
2175
  setup(__props, { expose: __expose, emit }) {
@@ -1910,7 +2247,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1910
2247
  }
1911
2248
  };
1912
2249
  return (_ctx, _cache) => {
1913
- return openBlock(), createBlock(_sfc_main$p, mergeProps({
2250
+ return openBlock(), createBlock(_sfc_main$u, mergeProps({
1914
2251
  disabled: unref(disabled),
1915
2252
  pressed: unref(pressed),
1916
2253
  active: _ctx.active,
@@ -1930,14 +2267,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1930
2267
  default: withCtx(() => [
1931
2268
  renderSlot(_ctx.$slots, "default", {}, () => [
1932
2269
  _ctx.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
1933
- _ctx.loadingIcon ? (openBlock(), createBlock(_sfc_main$o, {
2270
+ _ctx.loadingIcon ? (openBlock(), createBlock(_sfc_main$t, {
1934
2271
  key: 0,
1935
2272
  class: "vv-button__loading-icon",
1936
2273
  name: _ctx.loadingIcon
1937
2274
  }, null, 8, ["name"])) : createCommentVNode("v-if", true),
1938
2275
  _ctx.loadingLabel ? (openBlock(), createElementBlock(
1939
2276
  "span",
1940
- _hoisted_1$f,
2277
+ _hoisted_1$g,
1941
2278
  toDisplayString(_ctx.loadingLabel),
1942
2279
  1
1943
2280
  /* TEXT */
@@ -1948,7 +2285,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1948
2285
  [
1949
2286
  renderSlot(_ctx.$slots, "before"),
1950
2287
  unref(icon) ? (openBlock(), createBlock(
1951
- _sfc_main$o,
2288
+ _sfc_main$t,
1952
2289
  mergeProps({
1953
2290
  key: 0,
1954
2291
  class: "vv-button__icon"
@@ -1998,11 +2335,11 @@ const VvButtonGroupProps = {
1998
2335
  }
1999
2336
  };
2000
2337
  const VvButtonGroupEvents = ["update:modelValue"];
2001
- const __default__$g = {
2338
+ const __default__$h = {
2002
2339
  name: "VvButtonGroup"
2003
2340
  };
2004
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
2005
- ...__default__$g,
2341
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2342
+ ...__default__$h,
2006
2343
  props: VvButtonGroupProps,
2007
2344
  emits: VvButtonGroupEvents,
2008
2345
  setup(__props, { emit }) {
@@ -2066,7 +2403,7 @@ const VvCardProps = {
2066
2403
  ...ModifiersProps,
2067
2404
  title: String
2068
2405
  };
2069
- const _hoisted_1$e = {
2406
+ const _hoisted_1$f = {
2070
2407
  key: 0,
2071
2408
  class: "vv-card__header"
2072
2409
  };
@@ -2078,11 +2415,11 @@ const _hoisted_3$5 = {
2078
2415
  key: 2,
2079
2416
  class: "vv-card__footer"
2080
2417
  };
2081
- const __default__$f = {
2418
+ const __default__$g = {
2082
2419
  name: "VvCard"
2083
2420
  };
2084
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
2085
- ...__default__$f,
2421
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2422
+ ...__default__$g,
2086
2423
  props: VvCardProps,
2087
2424
  setup(__props) {
2088
2425
  const props = __props;
@@ -2095,7 +2432,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2095
2432
  class: normalizeClass(unref(bemCssClasses))
2096
2433
  },
2097
2434
  [
2098
- _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$e, [
2435
+ _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$f, [
2099
2436
  renderSlot(_ctx.$slots, "header", {}, () => [
2100
2437
  createTextVNode(
2101
2438
  toDisplayString(_ctx.title),
@@ -2339,13 +2676,13 @@ function useDefaults(componentName, propsDefinition, props) {
2339
2676
  }, {});
2340
2677
  });
2341
2678
  }
2342
- const _hoisted_1$d = ["for"];
2679
+ const _hoisted_1$e = ["for"];
2343
2680
  const _hoisted_2$8 = ["id", "name", "disabled", "value", "tabindex", "aria-invalid", "aria-describedby", "aria-errormessage"];
2344
- const __default__$e = {
2681
+ const __default__$f = {
2345
2682
  name: "VvCheckbox"
2346
2683
  };
2347
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
2348
- ...__default__$e,
2684
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2685
+ ...__default__$f,
2349
2686
  props: VvCheckboxProps,
2350
2687
  emits: VvCheckboxEvents,
2351
2688
  setup(__props, { emit }) {
@@ -2534,7 +2871,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2534
2871
  key: "3"
2535
2872
  } : void 0
2536
2873
  ]), 1032, ["id"])
2537
- ], 10, _hoisted_1$d);
2874
+ ], 10, _hoisted_1$e);
2538
2875
  };
2539
2876
  }
2540
2877
  });
@@ -2572,13 +2909,13 @@ function useOptions(props) {
2572
2909
  getOptionGrouped
2573
2910
  };
2574
2911
  }
2575
- const _hoisted_1$c = ["textContent"];
2912
+ const _hoisted_1$d = ["textContent"];
2576
2913
  const _hoisted_2$7 = { class: "vv-checkbox-group__wrapper" };
2577
- const __default__$d = {
2914
+ const __default__$e = {
2578
2915
  name: "VvCheckboxGroup"
2579
2916
  };
2580
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2581
- ...__default__$d,
2917
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2918
+ ...__default__$e,
2582
2919
  props: VvCheckboxGroupProps,
2583
2920
  emits: VvCheckboxGroupEvents,
2584
2921
  setup(__props, { emit }) {
@@ -2630,14 +2967,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2630
2967
  _ctx.label ? (openBlock(), createElementBlock("legend", {
2631
2968
  key: 0,
2632
2969
  textContent: toDisplayString(_ctx.label)
2633
- }, null, 8, _hoisted_1$c)) : createCommentVNode("v-if", true),
2970
+ }, null, 8, _hoisted_1$d)) : createCommentVNode("v-if", true),
2634
2971
  createElementVNode("div", _hoisted_2$7, [
2635
2972
  _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
2636
2973
  Fragment,
2637
2974
  { key: 0 },
2638
2975
  renderList(_ctx.options, (option, index) => {
2639
2976
  return openBlock(), createBlock(
2640
- _sfc_main$h,
2977
+ _sfc_main$j,
2641
2978
  mergeProps({ key: index }, getOptionProps(option, index)),
2642
2979
  null,
2643
2980
  16
@@ -2923,13 +3260,13 @@ function useProvideDropdownAction({
2923
3260
  expanded
2924
3261
  });
2925
3262
  }
2926
- const _hoisted_1$b = ["id", "tabindex", "role", "aria-labelledby"];
2927
- const __default__$c = {
3263
+ const _hoisted_1$c = ["id", "tabindex", "role", "aria-labelledby"];
3264
+ const __default__$d = {
2928
3265
  name: "VvDropdown",
2929
3266
  inheritAttrs: false
2930
3267
  };
2931
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2932
- ...__default__$c,
3268
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3269
+ ...__default__$d,
2933
3270
  props: VvDropdownProps,
2934
3271
  emits: [
2935
3272
  "update:modelValue",
@@ -3331,7 +3668,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3331
3668
  renderSlot(_ctx.$slots, "items", normalizeProps(guardReactiveProps({
3332
3669
  role: unref(itemRole)
3333
3670
  })))
3334
- ], 16, _hoisted_1$b),
3671
+ ], 16, _hoisted_1$c),
3335
3672
  renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps({ expanded: unref(expanded) })))
3336
3673
  ],
3337
3674
  6
@@ -3350,11 +3687,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3350
3687
  };
3351
3688
  }
3352
3689
  });
3353
- const __default__$b = {
3690
+ const __default__$c = {
3354
3691
  name: "VvDropdownItem"
3355
3692
  };
3356
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
3357
- ...__default__$b,
3693
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3694
+ ...__default__$c,
3358
3695
  setup(__props) {
3359
3696
  const { role, expanded } = useInjectedDropdownItem();
3360
3697
  const element = ref(null);
@@ -3384,12 +3721,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3384
3721
  };
3385
3722
  }
3386
3723
  });
3387
- const _hoisted_1$a = ["title"];
3388
- const __default__$a = {
3724
+ const _hoisted_1$b = ["title"];
3725
+ const __default__$b = {
3389
3726
  name: "VvDropdownOption"
3390
3727
  };
3391
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
3392
- ...__default__$a,
3728
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3729
+ ...__default__$b,
3393
3730
  props: {
3394
3731
  ...DisabledProps,
3395
3732
  ...SelectedProps,
@@ -3426,7 +3763,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3426
3763
  }
3427
3764
  });
3428
3765
  return (_ctx, _cache) => {
3429
- return openBlock(), createBlock(_sfc_main$e, {
3766
+ return openBlock(), createBlock(_sfc_main$g, {
3430
3767
  class: normalizeClass(unref(bemCssClasses)),
3431
3768
  tabindex: _ctx.disabled ? -1 : 0,
3432
3769
  "aria-selected": _ctx.selected,
@@ -3445,7 +3782,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3445
3782
  /* TEXT */
3446
3783
  )
3447
3784
  ])
3448
- ], 8, _hoisted_1$a)
3785
+ ], 8, _hoisted_1$b)
3449
3786
  ]),
3450
3787
  _: 3
3451
3788
  /* FORWARDED */
@@ -3453,16 +3790,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3453
3790
  };
3454
3791
  }
3455
3792
  });
3456
- const _hoisted_1$9 = {
3793
+ const _hoisted_1$a = {
3457
3794
  class: "vv-dropdown-optgroup",
3458
3795
  role: "presentation",
3459
3796
  tabindex: "-1"
3460
3797
  };
3461
- const __default__$9 = {
3798
+ const __default__$a = {
3462
3799
  name: "VvDropdownOptgroup"
3463
3800
  };
3464
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
3465
- ...__default__$9,
3801
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3802
+ ...__default__$a,
3466
3803
  props: {
3467
3804
  ...LabelProps
3468
3805
  },
@@ -3471,7 +3808,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3471
3808
  return (_ctx, _cache) => {
3472
3809
  return openBlock(), createElementBlock(
3473
3810
  "li",
3474
- _hoisted_1$9,
3811
+ _hoisted_1$a,
3475
3812
  toDisplayString(props.label),
3476
3813
  1
3477
3814
  /* TEXT */
@@ -3572,7 +3909,7 @@ function useComponentIcon(icon, iconPosition) {
3572
3909
  hasIconAfter
3573
3910
  };
3574
3911
  }
3575
- const _hoisted_1$8 = ["for"];
3912
+ const _hoisted_1$9 = ["for"];
3576
3913
  const _hoisted_2$6 = { class: "vv-select__wrapper" };
3577
3914
  const _hoisted_3$4 = {
3578
3915
  key: 0,
@@ -3588,11 +3925,11 @@ const _hoisted_10 = {
3588
3925
  key: 1,
3589
3926
  class: "vv-select__input-after"
3590
3927
  };
3591
- const __default__$8 = {
3928
+ const __default__$9 = {
3592
3929
  name: "VvSelect"
3593
3930
  };
3594
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3595
- ...__default__$8,
3931
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3932
+ ...__default__$9,
3596
3933
  props: VvSelectProps,
3597
3934
  emits: VvSelectEmits,
3598
3935
  setup(__props, { emit }) {
@@ -3718,14 +4055,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3718
4055
  _ctx.label ? (openBlock(), createElementBlock("label", {
3719
4056
  key: 0,
3720
4057
  for: unref(hasId)
3721
- }, toDisplayString(_ctx.label), 9, _hoisted_1$8)) : createCommentVNode("v-if", true),
4058
+ }, toDisplayString(_ctx.label), 9, _hoisted_1$9)) : createCommentVNode("v-if", true),
3722
4059
  createElementVNode("div", _hoisted_2$6, [
3723
4060
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
3724
4061
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
3725
4062
  ])) : createCommentVNode("v-if", true),
3726
4063
  createElementVNode("div", _hoisted_4$4, [
3727
4064
  unref(hasIconBefore) ? (openBlock(), createBlock(
3728
- _sfc_main$o,
4065
+ _sfc_main$t,
3729
4066
  mergeProps({
3730
4067
  key: 0,
3731
4068
  class: "vv-select__icon"
@@ -3789,7 +4126,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3789
4126
  [vModelSelect, unref(localModelValue)]
3790
4127
  ]),
3791
4128
  unref(hasIconAfter) ? (openBlock(), createBlock(
3792
- _sfc_main$o,
4129
+ _sfc_main$t,
3793
4130
  mergeProps({
3794
4131
  key: 1,
3795
4132
  class: "vv-select__icon vv-select__icon-after"
@@ -3846,7 +4183,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3846
4183
  };
3847
4184
  }
3848
4185
  });
3849
- const _hoisted_1$7 = ["id"];
4186
+ const _hoisted_1$8 = ["id"];
3850
4187
  const _hoisted_2$5 = ["id", "for"];
3851
4188
  const _hoisted_3$3 = ["id", "aria-controls", "placeholder"];
3852
4189
  const _hoisted_4$3 = {
@@ -3864,17 +4201,17 @@ const _hoisted_9 = {
3864
4201
  key: 1,
3865
4202
  class: "vv-select__input-after"
3866
4203
  };
3867
- const __default__$7 = {
4204
+ const __default__$8 = {
3868
4205
  name: "VvCombobox",
3869
4206
  components: {
3870
- VvDropdown: _sfc_main$f,
3871
- VvDropdownOption: _sfc_main$d,
3872
- VvDropdownOptgroup: _sfc_main$c,
3873
- VvButton: _sfc_main$k
4207
+ VvDropdown: _sfc_main$h,
4208
+ VvDropdownOption: _sfc_main$f,
4209
+ VvDropdownOptgroup: _sfc_main$e,
4210
+ VvButton: _sfc_main$m
3874
4211
  }
3875
4212
  };
3876
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3877
- ...__default__$7,
4213
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
4214
+ ...__default__$8,
3878
4215
  props: VvComboboxProps,
3879
4216
  emits: VvComboboxEvents,
3880
4217
  setup(__props, { emit }) {
@@ -4166,7 +4503,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4166
4503
  class: "vv-select__wrapper"
4167
4504
  },
4168
4505
  [
4169
- createVNode(_sfc_main$f, mergeProps({
4506
+ createVNode(_sfc_main$h, mergeProps({
4170
4507
  ref_key: "dropdownEl",
4171
4508
  ref: dropdownEl,
4172
4509
  modelValue: unref(expanded),
@@ -4182,7 +4519,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4182
4519
  ])) : createCommentVNode("v-if", true),
4183
4520
  createElementVNode("div", _hoisted_5$2, [
4184
4521
  unref(hasIconBefore) ? (openBlock(), createBlock(
4185
- _sfc_main$o,
4522
+ _sfc_main$t,
4186
4523
  mergeProps({
4187
4524
  key: 0,
4188
4525
  class: "vv-select__icon"
@@ -4219,7 +4556,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4219
4556
  Fragment,
4220
4557
  { key: 1 },
4221
4558
  renderList(unref(selectedOptions), (option, index) => {
4222
- return openBlock(), createBlock(_sfc_main$m, {
4559
+ return openBlock(), createBlock(_sfc_main$o, {
4223
4560
  key: index,
4224
4561
  modifiers: _ctx.badgeModifiers,
4225
4562
  class: "vv-select__badge"
@@ -4236,7 +4573,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4236
4573
  type: "button",
4237
4574
  onClick: withModifiers(($event) => onInput(option), ["stop"])
4238
4575
  }, [
4239
- createVNode(_sfc_main$o, { name: "close" })
4576
+ createVNode(_sfc_main$t, { name: "close" })
4240
4577
  ], 8, _hoisted_8$1)) : createCommentVNode("v-if", true)
4241
4578
  ]),
4242
4579
  _: 2
@@ -4265,7 +4602,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4265
4602
  ])
4266
4603
  ], 16, _hoisted_6$2),
4267
4604
  unref(hasIconAfter) ? (openBlock(), createBlock(
4268
- _sfc_main$o,
4605
+ _sfc_main$t,
4269
4606
  mergeProps({
4270
4607
  key: 1,
4271
4608
  class: "vv-select__icon vv-select__icon-after"
@@ -4294,7 +4631,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4294
4631
  Fragment,
4295
4632
  { key: 0 },
4296
4633
  [
4297
- createVNode(_sfc_main$c, {
4634
+ createVNode(_sfc_main$e, {
4298
4635
  label: unref(getOptionLabel)(option)
4299
4636
  }, null, 8, ["label"]),
4300
4637
  (openBlock(true), createElementBlock(
@@ -4303,7 +4640,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4303
4640
  renderList(unref(getOptionGrouped)(
4304
4641
  option
4305
4642
  ), (item, i) => {
4306
- return openBlock(), createBlock(_sfc_main$d, mergeProps({
4643
+ return openBlock(), createBlock(_sfc_main$f, mergeProps({
4307
4644
  selected: isOptionSelected(item),
4308
4645
  disabled: unref(isOptionDisabled)(item),
4309
4646
  unselectable: _ctx.unselectable,
@@ -4339,7 +4676,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4339
4676
  ],
4340
4677
  64
4341
4678
  /* STABLE_FRAGMENT */
4342
- )) : (openBlock(), createBlock(_sfc_main$d, mergeProps({ key: 1 }, {
4679
+ )) : (openBlock(), createBlock(_sfc_main$f, mergeProps({ key: 1 }, {
4343
4680
  selected: isOptionSelected(option),
4344
4681
  disabled: unref(isOptionDisabled)(option),
4345
4682
  unselectable: _ctx.unselectable,
@@ -4374,7 +4711,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4374
4711
  }),
4375
4712
  128
4376
4713
  /* KEYED_FRAGMENT */
4377
- )) : !_ctx.options.length ? (openBlock(), createBlock(_sfc_main$d, {
4714
+ )) : !_ctx.options.length ? (openBlock(), createBlock(_sfc_main$f, {
4378
4715
  key: 1,
4379
4716
  modifiers: "inert"
4380
4717
  }, {
@@ -4389,7 +4726,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4389
4726
  ]),
4390
4727
  _: 3
4391
4728
  /* FORWARDED */
4392
- })) : !unref(disabled) ? (openBlock(), createBlock(_sfc_main$d, {
4729
+ })) : !unref(disabled) ? (openBlock(), createBlock(_sfc_main$f, {
4393
4730
  key: 2,
4394
4731
  modifiers: "inert"
4395
4732
  }, {
@@ -4411,7 +4748,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4411
4748
  renderSlot(_ctx.$slots, "dropdown::after", {}, () => {
4412
4749
  var _a;
4413
4750
  return [
4414
- ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$k, {
4751
+ ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$m, {
4415
4752
  key: 0,
4416
4753
  label: unref(propsDefaults).closeLabel,
4417
4754
  modifiers: "secondary",
@@ -4487,8 +4824,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4487
4824
  key: "3"
4488
4825
  } : void 0
4489
4826
  ]), 1032, ["id"])
4490
- ], 10, _hoisted_1$7)) : (openBlock(), createBlock(
4491
- _sfc_main$b,
4827
+ ], 10, _hoisted_1$8)) : (openBlock(), createBlock(
4828
+ _sfc_main$d,
4492
4829
  mergeProps({ key: 1 }, unref(selectProps), {
4493
4830
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
4494
4831
  }),
@@ -4538,7 +4875,7 @@ const VvDialogProps = {
4538
4875
  */
4539
4876
  keepOpen: { type: Boolean, default: false }
4540
4877
  };
4541
- const _hoisted_1$6 = ["onCancel"];
4878
+ const _hoisted_1$7 = ["onCancel"];
4542
4879
  const _hoisted_2$4 = {
4543
4880
  key: 0,
4544
4881
  class: "vv-dialog__header"
@@ -4548,11 +4885,11 @@ const _hoisted_4$2 = {
4548
4885
  key: 1,
4549
4886
  class: "vv-dialog__footer"
4550
4887
  };
4551
- const __default__$6 = {
4888
+ const __default__$7 = {
4552
4889
  name: "VvDialog"
4553
4890
  };
4554
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4555
- ...__default__$6,
4891
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
4892
+ ...__default__$7,
4556
4893
  props: VvDialogProps,
4557
4894
  emits: VvDialogEvents,
4558
4895
  setup(__props, { expose: __expose, emit }) {
@@ -4670,7 +5007,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4670
5007
  onClickPassive: close
4671
5008
  },
4672
5009
  [
4673
- createVNode(_sfc_main$o, { name: "close" })
5010
+ createVNode(_sfc_main$t, { name: "close" })
4674
5011
  ],
4675
5012
  32
4676
5013
  /* HYDRATE_EVENTS */
@@ -4687,7 +5024,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4687
5024
  512
4688
5025
  /* NEED_PATCH */
4689
5026
  )
4690
- ], 16, _hoisted_1$6), [
5027
+ ], 16, _hoisted_1$7), [
4691
5028
  [vShow, unref(isOpened)]
4692
5029
  ])
4693
5030
  ]),
@@ -4697,6 +5034,51 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4697
5034
  };
4698
5035
  }
4699
5036
  });
5037
+ const __default__$6 = {
5038
+ name: "VvDropdownAction"
5039
+ };
5040
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5041
+ ...__default__$6,
5042
+ props: {
5043
+ ...ActionProps,
5044
+ ...ModifiersProps
5045
+ },
5046
+ setup(__props) {
5047
+ const props = __props;
5048
+ const { modifiers } = toRefs(props);
5049
+ const bemCssClasses = useModifiers("vv-dropdown-action", modifiers);
5050
+ return (_ctx, _cache) => {
5051
+ return openBlock(), createBlock(_sfc_main$g, null, {
5052
+ default: withCtx(() => [
5053
+ createVNode(_sfc_main$u, mergeProps({
5054
+ disabled: _ctx.disabled,
5055
+ pressed: _ctx.pressed,
5056
+ active: _ctx.active,
5057
+ type: _ctx.type,
5058
+ to: _ctx.to,
5059
+ href: _ctx.href,
5060
+ target: _ctx.target,
5061
+ rel: _ctx.rel
5062
+ }, { class: unref(bemCssClasses) }), {
5063
+ default: withCtx(() => [
5064
+ renderSlot(_ctx.$slots, "default", {}, () => [
5065
+ createTextVNode(
5066
+ toDisplayString(_ctx.label),
5067
+ 1
5068
+ /* TEXT */
5069
+ )
5070
+ ])
5071
+ ]),
5072
+ _: 3
5073
+ /* FORWARDED */
5074
+ }, 16, ["class"])
5075
+ ]),
5076
+ _: 3
5077
+ /* FORWARDED */
5078
+ });
5079
+ };
5080
+ }
5081
+ });
4700
5082
  const INPUT_TYPES = {
4701
5083
  TEXT: "text",
4702
5084
  PASSWORD: "password",
@@ -4887,7 +5269,7 @@ const VvInputTextProps = {
4887
5269
  };
4888
5270
  const VvInputPasswordAction = defineComponent({
4889
5271
  components: {
4890
- VvIcon: _sfc_main$o
5272
+ VvIcon: _sfc_main$t
4891
5273
  },
4892
5274
  props: {
4893
5275
  disabled: {
@@ -4931,7 +5313,7 @@ const VvInputPasswordAction = defineComponent({
4931
5313
  };
4932
5314
  },
4933
5315
  render() {
4934
- const icon = h(_sfc_main$o, {
5316
+ const icon = h(_sfc_main$t, {
4935
5317
  name: this.activeIcon,
4936
5318
  class: "vv-input-text__icon"
4937
5319
  });
@@ -4950,7 +5332,7 @@ const VvInputPasswordAction = defineComponent({
4950
5332
  });
4951
5333
  const VvInputStepAction = defineComponent({
4952
5334
  components: {
4953
- VvIcon: _sfc_main$o
5335
+ VvIcon: _sfc_main$t
4954
5336
  },
4955
5337
  props: {
4956
5338
  disabled: {
@@ -4995,7 +5377,7 @@ const VvInputStepAction = defineComponent({
4995
5377
  });
4996
5378
  const VvInputClearAction = defineComponent({
4997
5379
  components: {
4998
- VvIcon: _sfc_main$o
5380
+ VvIcon: _sfc_main$t
4999
5381
  },
5000
5382
  props: {
5001
5383
  disabled: {
@@ -5024,7 +5406,7 @@ const VvInputClearAction = defineComponent({
5024
5406
  };
5025
5407
  },
5026
5408
  render() {
5027
- const icon = h(_sfc_main$o, {
5409
+ const icon = h(_sfc_main$t, {
5028
5410
  name: this.icon,
5029
5411
  class: "vv-input-text__icon"
5030
5412
  });
@@ -5045,7 +5427,7 @@ function VvInputTextActionsFactory(type, parentProps) {
5045
5427
  return {
5046
5428
  name: "VvInputTextActions",
5047
5429
  components: {
5048
- VvIcon: _sfc_main$o,
5430
+ VvIcon: _sfc_main$t,
5049
5431
  VvInputPasswordAction,
5050
5432
  VvInputStepAction,
5051
5433
  VvInputClearAction
@@ -5172,7 +5554,7 @@ function useTextCount(text, options) {
5172
5554
  formatted
5173
5555
  };
5174
5556
  }
5175
- const _hoisted_1$5 = ["for"];
5557
+ const _hoisted_1$6 = ["for"];
5176
5558
  const _hoisted_2$3 = { class: "vv-input-text__wrapper" };
5177
5559
  const _hoisted_3$1 = {
5178
5560
  key: 0,
@@ -5195,7 +5577,7 @@ const _hoisted_8 = {
5195
5577
  const __default__$5 = {
5196
5578
  name: "VvInputText"
5197
5579
  };
5198
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5580
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
5199
5581
  ...__default__$5,
5200
5582
  props: VvInputTextProps,
5201
5583
  emits: VvInputTextEvents,
@@ -5547,7 +5929,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5547
5929
  key: 0,
5548
5930
  for: unref(hasId),
5549
5931
  class: "vv-input-text__label"
5550
- }, toDisplayString(unref(label)), 9, _hoisted_1$5)) : createCommentVNode("v-if", true),
5932
+ }, toDisplayString(unref(label)), 9, _hoisted_1$6)) : createCommentVNode("v-if", true),
5551
5933
  createElementVNode("div", _hoisted_2$3, [
5552
5934
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
5553
5935
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
@@ -5559,7 +5941,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5559
5941
  onClick: withModifiers(onClickInner, ["stop"])
5560
5942
  }, [
5561
5943
  unref(hasIconBefore) ? (openBlock(), createBlock(
5562
- _sfc_main$o,
5944
+ _sfc_main$t,
5563
5945
  mergeProps({
5564
5946
  key: 0,
5565
5947
  class: "vv-input-text__icon"
@@ -5589,7 +5971,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5589
5971
  ])) : createCommentVNode("v-if", true)
5590
5972
  ], 8, _hoisted_4$1),
5591
5973
  unref(hasIconAfter) || unref(defaultAfterIcon) ? (openBlock(), createBlock(
5592
- _sfc_main$o,
5974
+ _sfc_main$t,
5593
5975
  mergeProps({
5594
5976
  key: 1,
5595
5977
  class: "vv-input-text__icon vv-input-text__icon-after"
@@ -5669,7 +6051,7 @@ const VvNavProps = {
5669
6051
  ...NavProps
5670
6052
  };
5671
6053
  const VvNavEvents = ["click"];
5672
- const _hoisted_1$4 = {
6054
+ const _hoisted_1$5 = {
5673
6055
  class: "vv-nav__item",
5674
6056
  role: "presentation"
5675
6057
  };
@@ -5677,13 +6059,13 @@ const __default__$4 = {
5677
6059
  name: "VvNavItem",
5678
6060
  inheritAttrs: false
5679
6061
  };
5680
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6062
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5681
6063
  ...__default__$4,
5682
6064
  setup(__props) {
5683
6065
  return (_ctx, _cache) => {
5684
- return openBlock(), createElementBlock("li", _hoisted_1$4, [
6066
+ return openBlock(), createElementBlock("li", _hoisted_1$5, [
5685
6067
  createVNode(
5686
- _sfc_main$p,
6068
+ _sfc_main$u,
5687
6069
  mergeProps(_ctx.$attrs, { class: "vv-nav__item-label" }),
5688
6070
  {
5689
6071
  default: withCtx(() => [
@@ -5699,8 +6081,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
5699
6081
  };
5700
6082
  }
5701
6083
  });
5702
- const _hoisted_1$3 = ["onClick"];
5703
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
6084
+ const _hoisted_1$4 = ["onClick"];
6085
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
5704
6086
  __name: "VvNav",
5705
6087
  props: VvNavProps,
5706
6088
  emits: VvNavEvents,
@@ -5737,13 +6119,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
5737
6119
  (openBlock(true), createElementBlock(
5738
6120
  Fragment,
5739
6121
  null,
5740
- renderList(_ctx.items, ({ on = {}, ...item }, index) => {
5741
- return openBlock(), createBlock(_sfc_main$7, mergeProps({
6122
+ renderList(_ctx.items, ({ on = {}, data, ...item }, index) => {
6123
+ return openBlock(), createBlock(_sfc_main$8, mergeProps({
5742
6124
  key: index,
5743
6125
  "data-index": index
5744
6126
  }, item, toHandlers(on)), {
5745
6127
  default: withCtx(() => [
5746
- renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps({ item, index })))
6128
+ renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps({ item, data, index })))
5747
6129
  ]),
5748
6130
  _: 2
5749
6131
  /* DYNAMIC */
@@ -5753,7 +6135,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
5753
6135
  /* KEYED_FRAGMENT */
5754
6136
  ))
5755
6137
  ])
5756
- ], 8, _hoisted_1$3)
6138
+ ], 8, _hoisted_1$4)
5757
6139
  ],
5758
6140
  2
5759
6141
  /* CLASS */
@@ -5761,6 +6143,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
5761
6143
  };
5762
6144
  }
5763
6145
  });
6146
+ const _sfc_main$6 = {
6147
+ name: "VvNavSeparator"
6148
+ };
6149
+ const _export_sfc = (sfc, props) => {
6150
+ const target = sfc.__vccOpts || sfc;
6151
+ for (const [key, val] of props) {
6152
+ target[key] = val;
6153
+ }
6154
+ return target;
6155
+ };
6156
+ const _hoisted_1$3 = {
6157
+ class: "vv-nav__separator",
6158
+ role: "separator"
6159
+ };
6160
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6161
+ return openBlock(), createElementBlock("li", _hoisted_1$3, [
6162
+ renderSlot(_ctx.$slots, "default")
6163
+ ]);
6164
+ }
6165
+ const VvNavSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]);
5764
6166
  const VvProgressProps = {
5765
6167
  ...ModifiersProps,
5766
6168
  /**
@@ -6185,7 +6587,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6185
6587
  },
6186
6588
  [
6187
6589
  createVNode(
6188
- _sfc_main$6,
6590
+ _sfc_main$7,
6189
6591
  mergeProps({
6190
6592
  items: unref(navItems),
6191
6593
  modifiers: unref(hasNavModifiers)
@@ -6433,7 +6835,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
6433
6835
  ])) : createCommentVNode("v-if", true),
6434
6836
  createElementVNode("div", _hoisted_4, [
6435
6837
  unref(hasIconBefore) ? (openBlock(), createBlock(
6436
- _sfc_main$o,
6838
+ _sfc_main$t,
6437
6839
  mergeProps({
6438
6840
  key: 0,
6439
6841
  class: "vv-textarea__icon"
@@ -6453,7 +6855,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
6453
6855
  [vModelText, unref(localModelValue)]
6454
6856
  ]),
6455
6857
  unref(hasIconAfter) ? (openBlock(), createBlock(
6456
- _sfc_main$o,
6858
+ _sfc_main$t,
6457
6859
  mergeProps({
6458
6860
  key: 1,
6459
6861
  class: "vv-textarea__icon vv-textarea__icon-after"
@@ -6570,27 +6972,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
6570
6972
  }
6571
6973
  });
6572
6974
  export {
6573
- _sfc_main$r as VvAccordion,
6574
- _sfc_main$q as VvAccordionGroup,
6575
- _sfc_main$p as VvAction,
6576
- _sfc_main$n as VvAlert,
6577
- _sfc_main$m as VvBadge,
6578
- _sfc_main$l as VvBreadcrumb,
6579
- _sfc_main$k as VvButton,
6580
- _sfc_main$j as VvButtonGroup,
6581
- _sfc_main$i as VvCard,
6582
- _sfc_main$h as VvCheckbox,
6583
- _sfc_main$g as VvCheckboxGroup,
6584
- _sfc_main$a as VvCombobox,
6585
- _sfc_main$9 as VvDialog,
6586
- _sfc_main$f as VvDropdown,
6587
- _sfc_main$o as VvIcon,
6588
- _sfc_main$8 as VvInputText,
6589
- _sfc_main$6 as VvNav,
6975
+ _sfc_main$w as VvAccordion,
6976
+ _sfc_main$v as VvAccordionGroup,
6977
+ _sfc_main$u as VvAction,
6978
+ _sfc_main$s as VvAlert,
6979
+ _sfc_main$r as VvAlertGroup,
6980
+ _sfc_main$q as VvAvatar,
6981
+ _sfc_main$p as VvAvatarGroup,
6982
+ _sfc_main$o as VvBadge,
6983
+ _sfc_main$n as VvBreadcrumb,
6984
+ _sfc_main$m as VvButton,
6985
+ _sfc_main$l as VvButtonGroup,
6986
+ _sfc_main$k as VvCard,
6987
+ _sfc_main$j as VvCheckbox,
6988
+ _sfc_main$i as VvCheckboxGroup,
6989
+ _sfc_main$c as VvCombobox,
6990
+ _sfc_main$b as VvDialog,
6991
+ _sfc_main$h as VvDropdown,
6992
+ _sfc_main$a as VvDropdownAction,
6993
+ _sfc_main$g as VvDropdownItem,
6994
+ _sfc_main$e as VvDropdownOptgroup,
6995
+ _sfc_main$f as VvDropdownOption,
6996
+ _sfc_main$t as VvIcon,
6997
+ _sfc_main$9 as VvInputText,
6998
+ _sfc_main$7 as VvNav,
6999
+ _sfc_main$8 as VvNavItem,
7000
+ VvNavSeparator,
6590
7001
  _sfc_main$5 as VvProgress,
6591
7002
  _sfc_main$4 as VvRadio,
6592
7003
  _sfc_main$3 as VvRadioGroup,
6593
- _sfc_main$b as VvSelect,
7004
+ _sfc_main$d as VvSelect,
6594
7005
  _sfc_main$2 as VvTab,
6595
7006
  _sfc_main$1 as VvTextarea,
6596
7007
  _sfc_main as VvTooltip