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

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 (112) 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 +24 -2
  5. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  6. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +66 -25
  7. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  8. package/dist/components/VvAction/VvAction.es.js +17 -3
  9. package/dist/components/VvAction/VvAction.umd.js +1 -1
  10. package/dist/components/VvAction/VvAction.vue.d.ts +10 -0
  11. package/dist/components/VvAction/index.d.ts +4 -0
  12. package/dist/components/VvAlert/VvAlert.es.js +87 -43
  13. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  14. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +127 -64
  15. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  16. package/dist/components/VvAvatar/VvAvatar.es.js +15 -1
  17. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  18. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +70 -26
  19. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  20. package/dist/components/VvBadge/VvBadge.es.js +32 -8
  21. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  22. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +217 -41
  23. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  24. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +14 -3
  25. package/dist/components/VvBreadcrumb/index.d.ts +2 -9
  26. package/dist/components/VvButton/VvButton.es.js +56 -19
  27. package/dist/components/VvButton/VvButton.umd.js +1 -1
  28. package/dist/components/VvButton/VvButton.vue.d.ts +20 -13
  29. package/dist/components/VvButton/index.d.ts +6 -2
  30. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +26 -6
  31. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  32. package/dist/components/VvCard/VvCard.es.js +40 -16
  33. package/dist/components/VvCard/VvCard.umd.js +1 -1
  34. package/dist/components/VvCheckbox/VvCheckbox.es.js +23 -2
  35. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  36. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +92 -44
  37. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  38. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  39. package/dist/components/VvCombobox/VvCombobox.es.js +598 -370
  40. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  41. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
  42. package/dist/components/VvCombobox/index.d.ts +3 -10
  43. package/dist/components/VvDialog/VvDialog.es.js +58 -27
  44. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  45. package/dist/components/VvDropdown/VvDropdown.es.js +78 -44
  46. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  47. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +3 -3
  48. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +9 -0
  49. package/dist/components/VvDropdown/index.d.ts +1 -1
  50. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +37 -11
  51. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  52. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  53. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +21 -1
  54. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  55. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +33 -8
  56. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  57. package/dist/components/VvIcon/VvIcon.es.js +1 -1
  58. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  59. package/dist/components/VvInputText/VvInputText.es.js +140 -97
  60. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  61. package/dist/components/VvInputText/index.d.ts +8 -2
  62. package/dist/components/VvNav/VvNav.es.js +61 -28
  63. package/dist/components/VvNav/VvNav.umd.js +1 -1
  64. package/dist/components/VvNav/VvNav.vue.d.ts +3 -3
  65. package/dist/components/VvNav/index.d.ts +1 -1
  66. package/dist/components/VvNavItem/VvNavItem.es.js +30 -9
  67. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  68. package/dist/components/VvProgress/VvProgress.es.js +26 -6
  69. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  70. package/dist/components/VvRadio/VvRadio.es.js +23 -2
  71. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  72. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +92 -44
  73. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  74. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  75. package/dist/components/VvSelect/VvSelect.es.js +147 -94
  76. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  77. package/dist/components/VvSelect/index.d.ts +1 -1
  78. package/dist/components/VvTab/VvTab.es.js +109 -46
  79. package/dist/components/VvTab/VvTab.umd.js +1 -1
  80. package/dist/components/VvTextarea/VvTextarea.es.js +113 -74
  81. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  82. package/dist/components/VvTooltip/VvTooltip.es.js +33 -9
  83. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  84. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
  85. package/dist/components/VvTooltip/index.d.ts +1 -1
  86. package/dist/components/index.es.js +1369 -839
  87. package/dist/components/index.umd.js +1 -1
  88. package/dist/composables/useVolver.d.ts +1 -1
  89. package/dist/directives/index.d.ts +3 -5
  90. package/dist/directives/index.es.js +53 -23
  91. package/dist/directives/index.umd.js +1 -1
  92. package/dist/directives/v-tooltip.es.js +51 -18
  93. package/dist/directives/v-tooltip.umd.js +1 -1
  94. package/dist/icons.es.js +3 -3
  95. package/dist/icons.umd.js +1 -1
  96. package/dist/index.d.ts +3 -1
  97. package/dist/props/index.d.ts +9 -2
  98. package/dist/types/generic.d.ts +1 -1
  99. package/package.json +31 -31
  100. package/src/Volver.ts +0 -1
  101. package/src/assets/icons/detailed.json +1 -1
  102. package/src/assets/icons/normal.json +1 -1
  103. package/src/assets/icons/simple.json +1 -1
  104. package/src/components/VvAction/VvAction.vue +4 -2
  105. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
  106. package/src/components/VvBreadcrumb/index.ts +2 -8
  107. package/src/components/VvInputText/VvInputText.vue +2 -2
  108. package/src/directives/index.ts +1 -4
  109. package/src/directives/v-tooltip.ts +19 -10
  110. package/src/index.ts +3 -1
  111. package/src/props/index.ts +8 -0
  112. package/src/types/generic.ts +2 -1
@@ -389,6 +389,13 @@ const ActionProps = {
389
389
  ariaLabel: {
390
390
  type: String,
391
391
  default: void 0
392
+ },
393
+ /**
394
+ * Default tag for the action
395
+ */
396
+ defaultTag: {
397
+ type: String,
398
+ default: ActionTag.button
392
399
  }
393
400
  };
394
401
  const VvComboboxEvents = [
@@ -756,7 +763,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
756
763
  color: _ctx.color,
757
764
  onLoad: _ctx.onLoad,
758
765
  icon: unref(icon)
759
- }), null, 16, ["class"])) : createCommentVNode("", true);
766
+ }), null, 16, ["class"])) : createCommentVNode("v-if", true);
760
767
  };
761
768
  }
762
769
  });
@@ -1197,50 +1204,70 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1197
1204
  }
1198
1205
  };
1199
1206
  return (_ctx, _cache) => {
1200
- return openBlock(), createElementBlock(Fragment, null, [
1201
- createVNode(unref(VvDropdownTriggerProvider), null, {
1202
- default: withCtx(() => [
1203
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ init, show, hide, toggle, expanded: unref(expanded), aria: unref(referenceAria) })))
1204
- ]),
1205
- _: 3
1206
- }),
1207
- createVNode(Transition, mergeProps({ name: _ctx.transitionName }, toHandlers(dropdownTransitionHandlers)), {
1208
- default: withCtx(() => [
1209
- withDirectives(createElementVNode("div", {
1210
- ref_key: "floatingEl",
1211
- ref: floatingEl,
1212
- style: normalizeStyle(unref(dropdownPlacement)),
1213
- class: normalizeClass(unref(bemCssClasses))
1214
- }, [
1215
- props.arrow ? (openBlock(), createElementBlock("div", {
1216
- key: 0,
1217
- ref_key: "arrowEl",
1218
- ref: arrowEl,
1219
- style: normalizeStyle(unref(arrowPlacement)),
1220
- class: "vv-dropdown__arrow"
1221
- }, null, 4)) : createCommentVNode("", true),
1222
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps({ expanded: unref(expanded) }))),
1223
- createElementVNode("div", mergeProps(unref(attrs), {
1224
- id: unref(hasId),
1225
- ref_key: "listEl",
1226
- ref: listEl,
1227
- tabindex: !unref(expanded) ? -1 : void 0,
1228
- role: unref(role),
1229
- "aria-labelledby": unref(hasAriaLabelledby),
1230
- class: "vv-dropdown__list"
1231
- }), [
1232
- renderSlot(_ctx.$slots, "items", normalizeProps(guardReactiveProps({
1233
- role: unref(itemRole)
1234
- })))
1235
- ], 16, _hoisted_1$5),
1236
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps({ expanded: unref(expanded) })))
1237
- ], 6), [
1238
- [vShow, unref(expanded)]
1239
- ])
1240
- ]),
1241
- _: 3
1242
- }, 16, ["name"])
1243
- ], 64);
1207
+ return openBlock(), createElementBlock(
1208
+ Fragment,
1209
+ null,
1210
+ [
1211
+ createVNode(unref(VvDropdownTriggerProvider), null, {
1212
+ default: withCtx(() => [
1213
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ init, show, hide, toggle, expanded: unref(expanded), aria: unref(referenceAria) })))
1214
+ ]),
1215
+ _: 3
1216
+ /* FORWARDED */
1217
+ }),
1218
+ createVNode(Transition, mergeProps({ name: _ctx.transitionName }, toHandlers(dropdownTransitionHandlers), { persisted: "" }), {
1219
+ default: withCtx(() => [
1220
+ withDirectives(createElementVNode(
1221
+ "div",
1222
+ {
1223
+ ref_key: "floatingEl",
1224
+ ref: floatingEl,
1225
+ style: normalizeStyle(unref(dropdownPlacement)),
1226
+ class: normalizeClass(unref(bemCssClasses))
1227
+ },
1228
+ [
1229
+ props.arrow ? (openBlock(), createElementBlock(
1230
+ "div",
1231
+ {
1232
+ key: 0,
1233
+ ref_key: "arrowEl",
1234
+ ref: arrowEl,
1235
+ style: normalizeStyle(unref(arrowPlacement)),
1236
+ class: "vv-dropdown__arrow"
1237
+ },
1238
+ null,
1239
+ 4
1240
+ /* STYLE */
1241
+ )) : createCommentVNode("v-if", true),
1242
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps({ expanded: unref(expanded) }))),
1243
+ createElementVNode("div", mergeProps(unref(attrs), {
1244
+ id: unref(hasId),
1245
+ ref_key: "listEl",
1246
+ ref: listEl,
1247
+ tabindex: !unref(expanded) ? -1 : void 0,
1248
+ role: unref(role),
1249
+ "aria-labelledby": unref(hasAriaLabelledby),
1250
+ class: "vv-dropdown__list"
1251
+ }), [
1252
+ renderSlot(_ctx.$slots, "items", normalizeProps(guardReactiveProps({
1253
+ role: unref(itemRole)
1254
+ })))
1255
+ ], 16, _hoisted_1$5),
1256
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps({ expanded: unref(expanded) })))
1257
+ ],
1258
+ 6
1259
+ /* CLASS, STYLE */
1260
+ ), [
1261
+ [vShow, unref(expanded)]
1262
+ ])
1263
+ ]),
1264
+ _: 3
1265
+ /* FORWARDED */
1266
+ }, 16, ["name"])
1267
+ ],
1268
+ 64
1269
+ /* STABLE_FRAGMENT */
1270
+ );
1244
1271
  };
1245
1272
  }
1246
1273
  });
@@ -1271,13 +1298,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1271
1298
  }
1272
1299
  });
1273
1300
  return (_ctx, _cache) => {
1274
- return openBlock(), createElementBlock("div", mergeProps({ role: unref(role) }, {
1275
- ref_key: "element",
1276
- ref: element,
1277
- class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
1278
- }), [
1279
- renderSlot(_ctx.$slots, "default")
1280
- ], 16);
1301
+ return openBlock(), createElementBlock(
1302
+ "div",
1303
+ mergeProps({ role: unref(role) }, {
1304
+ ref_key: "element",
1305
+ ref: element,
1306
+ class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
1307
+ }),
1308
+ [
1309
+ renderSlot(_ctx.$slots, "default")
1310
+ ],
1311
+ 16
1312
+ /* FULL_PROPS */
1313
+ );
1281
1314
  };
1282
1315
  }
1283
1316
  });
@@ -1336,11 +1369,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1336
1369
  title: unref(hintLabel)
1337
1370
  }, [
1338
1371
  renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps({ disabled: _ctx.disabled, selected: _ctx.selected, unselectable: _ctx.unselectable })), () => [
1339
- createTextVNode(toDisplayString(unref(hintLabel)), 1)
1372
+ createTextVNode(
1373
+ toDisplayString(unref(hintLabel)),
1374
+ 1
1375
+ /* TEXT */
1376
+ )
1340
1377
  ])
1341
1378
  ], 8, _hoisted_1$4)
1342
1379
  ]),
1343
1380
  _: 3
1381
+ /* FORWARDED */
1344
1382
  }, 8, ["class", "tabindex", "aria-selected", "aria-disabled"]);
1345
1383
  };
1346
1384
  }
@@ -1361,7 +1399,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1361
1399
  setup(__props) {
1362
1400
  const props = __props;
1363
1401
  return (_ctx, _cache) => {
1364
- return openBlock(), createElementBlock("li", _hoisted_1$3, toDisplayString(props.label), 1);
1402
+ return openBlock(), createElementBlock(
1403
+ "li",
1404
+ _hoisted_1$3,
1405
+ toDisplayString(props.label),
1406
+ 1
1407
+ /* TEXT */
1408
+ );
1365
1409
  };
1366
1410
  }
1367
1411
  });
@@ -1903,101 +1947,140 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1903
1947
  return option && option.options && option.options.length > 0;
1904
1948
  };
1905
1949
  return (_ctx, _cache) => {
1906
- return openBlock(), createElementBlock("div", {
1907
- class: normalizeClass(unref(bemCssClasses))
1908
- }, [
1909
- _ctx.label ? (openBlock(), createElementBlock("label", {
1910
- key: 0,
1911
- for: unref(hasId)
1912
- }, toDisplayString(_ctx.label), 9, _hoisted_1$2)) : createCommentVNode("", true),
1913
- createElementVNode("div", _hoisted_2$2, [
1914
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1915
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
1916
- ])) : createCommentVNode("", true),
1917
- createElementVNode("div", _hoisted_4$1, [
1918
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$9, mergeProps({
1919
- key: 0,
1920
- class: "vv-select__icon"
1921
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
1922
- withDirectives(createElementVNode("select", mergeProps({
1923
- id: unref(hasId),
1924
- ref_key: "select",
1925
- ref: select,
1926
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
1927
- }, unref(hasAttrs)), [
1928
- _ctx.placeholder ? (openBlock(), createElementBlock("option", {
1929
- key: 0,
1930
- value: void 0,
1931
- disabled: !_ctx.unselectable,
1932
- hidden: !_ctx.unselectable
1933
- }, toDisplayString(_ctx.placeholder), 9, _hoisted_6$1)) : createCommentVNode("", true),
1934
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
1935
- return openBlock(), createElementBlock(Fragment, null, [
1936
- !isGroup(option) ? (openBlock(), createElementBlock("option", {
1937
- key: index,
1938
- disabled: unref(isOptionDisabled)(option),
1939
- value: unref(getOptionValue)(option)
1940
- }, toDisplayString(unref(getOptionLabel)(option)), 9, _hoisted_7$1)) : (openBlock(), createElementBlock("optgroup", {
1941
- key: `group-${index}`,
1942
- disabled: unref(isOptionDisabled)(option),
1943
- label: unref(getOptionLabel)(option)
1944
- }, [
1945
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptionGrouped)(option), (item, i) => {
1946
- return openBlock(), createElementBlock("option", {
1947
- key: `group-${index}-item-${i}`,
1948
- disabled: unref(isOptionDisabled)(item),
1949
- value: unref(getOptionValue)(item)
1950
- }, toDisplayString(unref(getOptionLabel)(item)), 9, _hoisted_9$1);
1951
- }), 128))
1952
- ], 8, _hoisted_8$1))
1953
- ], 64);
1954
- }), 256))
1955
- ], 16, _hoisted_5$1), [
1956
- [vModelSelect, unref(localModelValue)]
1950
+ return openBlock(), createElementBlock(
1951
+ "div",
1952
+ {
1953
+ class: normalizeClass(unref(bemCssClasses))
1954
+ },
1955
+ [
1956
+ _ctx.label ? (openBlock(), createElementBlock("label", {
1957
+ key: 0,
1958
+ for: unref(hasId)
1959
+ }, toDisplayString(_ctx.label), 9, _hoisted_1$2)) : createCommentVNode("v-if", true),
1960
+ createElementVNode("div", _hoisted_2$2, [
1961
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1962
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
1963
+ ])) : createCommentVNode("v-if", true),
1964
+ createElementVNode("div", _hoisted_4$1, [
1965
+ unref(hasIconBefore) ? (openBlock(), createBlock(
1966
+ _sfc_main$9,
1967
+ mergeProps({
1968
+ key: 0,
1969
+ class: "vv-select__icon"
1970
+ }, unref(hasIcon)),
1971
+ null,
1972
+ 16
1973
+ /* FULL_PROPS */
1974
+ )) : createCommentVNode("v-if", true),
1975
+ withDirectives(createElementVNode("select", mergeProps({
1976
+ id: unref(hasId),
1977
+ ref_key: "select",
1978
+ ref: select,
1979
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
1980
+ }, unref(hasAttrs)), [
1981
+ _ctx.placeholder ? (openBlock(), createElementBlock("option", {
1982
+ key: 0,
1983
+ value: void 0,
1984
+ disabled: !_ctx.unselectable,
1985
+ hidden: !_ctx.unselectable
1986
+ }, toDisplayString(_ctx.placeholder), 9, _hoisted_6$1)) : createCommentVNode("v-if", true),
1987
+ (openBlock(true), createElementBlock(
1988
+ Fragment,
1989
+ null,
1990
+ renderList(_ctx.options, (option, index) => {
1991
+ return openBlock(), createElementBlock(
1992
+ Fragment,
1993
+ null,
1994
+ [
1995
+ !isGroup(option) ? (openBlock(), createElementBlock("option", {
1996
+ key: index,
1997
+ disabled: unref(isOptionDisabled)(option),
1998
+ value: unref(getOptionValue)(option)
1999
+ }, toDisplayString(unref(getOptionLabel)(option)), 9, _hoisted_7$1)) : (openBlock(), createElementBlock("optgroup", {
2000
+ key: `group-${index}`,
2001
+ disabled: unref(isOptionDisabled)(option),
2002
+ label: unref(getOptionLabel)(option)
2003
+ }, [
2004
+ (openBlock(true), createElementBlock(
2005
+ Fragment,
2006
+ null,
2007
+ renderList(unref(getOptionGrouped)(option), (item, i) => {
2008
+ return openBlock(), createElementBlock("option", {
2009
+ key: `group-${index}-item-${i}`,
2010
+ disabled: unref(isOptionDisabled)(item),
2011
+ value: unref(getOptionValue)(item)
2012
+ }, toDisplayString(unref(getOptionLabel)(item)), 9, _hoisted_9$1);
2013
+ }),
2014
+ 128
2015
+ /* KEYED_FRAGMENT */
2016
+ ))
2017
+ ], 8, _hoisted_8$1))
2018
+ ],
2019
+ 64
2020
+ /* STABLE_FRAGMENT */
2021
+ );
2022
+ }),
2023
+ 256
2024
+ /* UNKEYED_FRAGMENT */
2025
+ ))
2026
+ ], 16, _hoisted_5$1), [
2027
+ [vModelSelect, unref(localModelValue)]
2028
+ ]),
2029
+ unref(hasIconAfter) ? (openBlock(), createBlock(
2030
+ _sfc_main$9,
2031
+ mergeProps({
2032
+ key: 1,
2033
+ class: "vv-select__icon vv-select__icon-after"
2034
+ }, unref(hasIcon)),
2035
+ null,
2036
+ 16
2037
+ /* FULL_PROPS */
2038
+ )) : createCommentVNode("v-if", true)
1957
2039
  ]),
1958
- unref(hasIconAfter) ? (openBlock(), createBlock(_sfc_main$9, mergeProps({
1959
- key: 1,
1960
- class: "vv-select__icon vv-select__icon-after"
1961
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true)
2040
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
2041
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
2042
+ ])) : createCommentVNode("v-if", true)
1962
2043
  ]),
1963
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
1964
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
1965
- ])) : createCommentVNode("", true)
1966
- ]),
1967
- createVNode(unref(HintSlot), {
1968
- id: unref(hasHintId),
1969
- class: "vv-select__hint"
1970
- }, createSlots({ _: 2 }, [
1971
- _ctx.$slots.hint ? {
1972
- name: "hint",
1973
- fn: withCtx(() => [
1974
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1975
- ]),
1976
- key: "0"
1977
- } : void 0,
1978
- _ctx.$slots.loading ? {
1979
- name: "loading",
1980
- fn: withCtx(() => [
1981
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1982
- ]),
1983
- key: "1"
1984
- } : void 0,
1985
- _ctx.$slots.valid ? {
1986
- name: "valid",
1987
- fn: withCtx(() => [
1988
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1989
- ]),
1990
- key: "2"
1991
- } : void 0,
1992
- _ctx.$slots.invalid ? {
1993
- name: "invalid",
1994
- fn: withCtx(() => [
1995
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1996
- ]),
1997
- key: "3"
1998
- } : void 0
1999
- ]), 1032, ["id"])
2000
- ], 2);
2044
+ createVNode(unref(HintSlot), {
2045
+ id: unref(hasHintId),
2046
+ class: "vv-select__hint"
2047
+ }, createSlots({
2048
+ _: 2
2049
+ /* DYNAMIC */
2050
+ }, [
2051
+ _ctx.$slots.hint ? {
2052
+ name: "hint",
2053
+ fn: withCtx(() => [
2054
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2055
+ ]),
2056
+ key: "0"
2057
+ } : void 0,
2058
+ _ctx.$slots.loading ? {
2059
+ name: "loading",
2060
+ fn: withCtx(() => [
2061
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2062
+ ]),
2063
+ key: "1"
2064
+ } : void 0,
2065
+ _ctx.$slots.valid ? {
2066
+ name: "valid",
2067
+ fn: withCtx(() => [
2068
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2069
+ ]),
2070
+ key: "2"
2071
+ } : void 0,
2072
+ _ctx.$slots.invalid ? {
2073
+ name: "invalid",
2074
+ fn: withCtx(() => [
2075
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
2076
+ ]),
2077
+ key: "3"
2078
+ } : void 0
2079
+ ]), 1032, ["id"])
2080
+ ],
2081
+ 2
2082
+ /* CLASS */
2083
+ );
2001
2084
  };
2002
2085
  }
2003
2086
  });
@@ -2016,14 +2099,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2016
2099
  const { modifiers } = toRefs(props);
2017
2100
  const bemCssClasses = useModifiers("vv-badge", modifiers);
2018
2101
  return (_ctx, _cache) => {
2019
- return openBlock(), createElementBlock("span", {
2020
- class: normalizeClass(unref(bemCssClasses)),
2021
- role: "status"
2022
- }, [
2023
- renderSlot(_ctx.$slots, "default", {}, () => [
2024
- createTextVNode(toDisplayString(_ctx.value), 1)
2025
- ])
2026
- ], 2);
2102
+ return openBlock(), createElementBlock(
2103
+ "span",
2104
+ {
2105
+ class: normalizeClass(unref(bemCssClasses)),
2106
+ role: "status"
2107
+ },
2108
+ [
2109
+ renderSlot(_ctx.$slots, "default", {}, () => [
2110
+ createTextVNode(
2111
+ toDisplayString(_ctx.value),
2112
+ 1
2113
+ /* TEXT */
2114
+ )
2115
+ ])
2116
+ ],
2117
+ 2
2118
+ /* CLASS */
2119
+ );
2027
2120
  };
2028
2121
  }
2029
2122
  });
@@ -2068,7 +2161,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2068
2161
  case props.href !== void 0:
2069
2162
  return ActionTag.a;
2070
2163
  default:
2071
- return ActionTag.button;
2164
+ return props.defaultTag;
2072
2165
  }
2073
2166
  });
2074
2167
  const hasProps = computed(() => {
@@ -2093,12 +2186,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2093
2186
  to: props.to,
2094
2187
  target: props.target
2095
2188
  };
2096
- default:
2189
+ case ActionTag.button:
2097
2190
  return {
2098
2191
  ...toReturn,
2099
2192
  type: props.type,
2100
2193
  disabled: props.disabled
2101
2194
  };
2195
+ default:
2196
+ return toReturn;
2102
2197
  }
2103
2198
  });
2104
2199
  const onClick = (e) => {
@@ -2133,10 +2228,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2133
2228
  }), {
2134
2229
  default: withCtx(() => [
2135
2230
  renderSlot(_ctx.$slots, "default", {}, () => [
2136
- createTextVNode(toDisplayString(_ctx.label), 1)
2231
+ createTextVNode(
2232
+ toDisplayString(_ctx.label),
2233
+ 1
2234
+ /* TEXT */
2235
+ )
2137
2236
  ])
2138
2237
  ]),
2139
2238
  _: 3
2239
+ /* FORWARDED */
2140
2240
  }, 16, ["class"]);
2141
2241
  };
2142
2242
  }
@@ -2391,24 +2491,47 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2391
2491
  key: 0,
2392
2492
  class: "vv-button__loading-icon",
2393
2493
  name: _ctx.loadingIcon
2394
- }, null, 8, ["name"])) : createCommentVNode("", true),
2395
- _ctx.loadingLabel ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.loadingLabel), 1)) : createCommentVNode("", true)
2396
- ]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2397
- renderSlot(_ctx.$slots, "before"),
2398
- unref(icon) ? (openBlock(), createBlock(_sfc_main$9, mergeProps({
2399
- key: 0,
2400
- class: "vv-button__icon"
2401
- }, unref(hasIconProps)), null, 16)) : createCommentVNode("", true),
2402
- unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
2403
- renderSlot(_ctx.$slots, "label", {}, () => [
2404
- createTextVNode(toDisplayString(unref(label)), 1)
2405
- ])
2406
- ])) : createCommentVNode("", true),
2407
- renderSlot(_ctx.$slots, "after")
2408
- ], 64))
2494
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true),
2495
+ _ctx.loadingLabel ? (openBlock(), createElementBlock(
2496
+ "span",
2497
+ _hoisted_1$1,
2498
+ toDisplayString(_ctx.loadingLabel),
2499
+ 1
2500
+ /* TEXT */
2501
+ )) : createCommentVNode("v-if", true)
2502
+ ]) : (openBlock(), createElementBlock(
2503
+ Fragment,
2504
+ { key: 1 },
2505
+ [
2506
+ renderSlot(_ctx.$slots, "before"),
2507
+ unref(icon) ? (openBlock(), createBlock(
2508
+ _sfc_main$9,
2509
+ mergeProps({
2510
+ key: 0,
2511
+ class: "vv-button__icon"
2512
+ }, unref(hasIconProps)),
2513
+ null,
2514
+ 16
2515
+ /* FULL_PROPS */
2516
+ )) : createCommentVNode("v-if", true),
2517
+ unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
2518
+ renderSlot(_ctx.$slots, "label", {}, () => [
2519
+ createTextVNode(
2520
+ toDisplayString(unref(label)),
2521
+ 1
2522
+ /* TEXT */
2523
+ )
2524
+ ])
2525
+ ])) : createCommentVNode("v-if", true),
2526
+ renderSlot(_ctx.$slots, "after")
2527
+ ],
2528
+ 64
2529
+ /* STABLE_FRAGMENT */
2530
+ ))
2409
2531
  ])
2410
2532
  ]),
2411
2533
  _: 3
2534
+ /* FORWARDED */
2412
2535
  }, 16, ["id", "class"]);
2413
2536
  };
2414
2537
  }
@@ -2724,208 +2847,307 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2724
2847
  key: 0,
2725
2848
  id: unref(hasLabelId),
2726
2849
  for: unref(propsDefaults).searchable ? unref(hasSearchId) : void 0
2727
- }, toDisplayString(_ctx.label), 9, _hoisted_2)) : createCommentVNode("", true),
2728
- createElementVNode("div", {
2729
- ref_key: "wrapperEl",
2730
- ref: wrapperEl,
2731
- class: "vv-select__wrapper"
2732
- }, [
2733
- createVNode(_sfc_main$8, mergeProps({
2734
- ref_key: "dropdownEl",
2735
- ref: dropdownEl,
2736
- modelValue: unref(expanded),
2737
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(expanded) ? expanded.value = $event : null)
2738
- }, unref(dropdownProps), {
2739
- role: unref(DropdownRole).listbox,
2740
- onAfterExpand,
2741
- onAfterCollapse
2742
- }), createSlots({
2743
- default: withCtx(({ aria }) => [
2744
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4, [
2745
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
2746
- ])) : createCommentVNode("", true),
2747
- createElementVNode("div", _hoisted_5, [
2748
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$9, mergeProps({
2749
- key: 0,
2750
- class: "vv-select__icon"
2751
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
2752
- createElementVNode("div", mergeProps({
2753
- ref_key: "inputEl",
2754
- ref: inputEl
2755
- }, aria, {
2756
- class: "vv-select__input",
2757
- role: "combobox",
2758
- "aria-expanded": unref(expanded),
2759
- "aria-labelledby": unref(hasLabelId),
2760
- "aria-describedby": unref(hasHintLabelOrSlot) ? unref(hasHintId) : void 0,
2761
- "aria-errormessage": unref(hasInvalidLabelOrSlot) ? unref(hasHintId) : void 0,
2762
- tabindex: unref(hasTabindex),
2763
- onClickPassive: onClickInput
2764
- }), [
2765
- renderSlot(_ctx.$slots, "value", normalizeProps(guardReactiveProps({ selectedOptions: unref(selectedOptions), onInput })), () => [
2766
- unref(hasValue) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2767
- !_ctx.badges ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(unref(hasValue)), 1)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(selectedOptions), (option, index) => {
2768
- return openBlock(), createBlock(_sfc_main$3, {
2769
- key: index,
2770
- modifiers: _ctx.badgeModifiers,
2771
- class: "vv-select__badge"
2772
- }, {
2773
- default: withCtx(() => [
2774
- createTextVNode(toDisplayString(unref(getOptionLabel)(option)) + " ", 1),
2775
- _ctx.unselectable && !unref(readonly) && !unref(disabled) ? (openBlock(), createElementBlock("button", {
2776
- key: 0,
2777
- "aria-label": unref(propsDefaults).deselectActionLabel,
2778
- type: "button",
2779
- onClick: withModifiers(($event) => onInput(option), ["stop"])
2780
- }, [
2781
- createVNode(_sfc_main$9, { name: "close" })
2782
- ], 8, _hoisted_8)) : createCommentVNode("", true)
2783
- ]),
2784
- _: 2
2785
- }, 1032, ["modifiers"]);
2786
- }), 128))
2787
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2788
- createTextVNode(toDisplayString(_ctx.placeholder), 1)
2789
- ], 64))
2790
- ])
2791
- ], 16, _hoisted_6),
2792
- unref(hasIconAfter) ? (openBlock(), createBlock(_sfc_main$9, mergeProps({
2793
- key: 1,
2794
- class: "vv-select__icon vv-select__icon-after"
2795
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true)
2796
- ]),
2797
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_9, [
2798
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
2799
- ])) : createCommentVNode("", true)
2800
- ]),
2801
- items: withCtx(() => {
2802
- var _a;
2803
- return [
2804
- !unref(disabled) && ((_a = unref(filteredOptions)) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(filteredOptions), (option, index) => {
2805
- return openBlock(), createElementBlock(Fragment, { key: index }, [
2806
- isGroup(option) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2807
- createVNode(_sfc_main$5, {
2808
- label: unref(getOptionLabel)(option)
2809
- }, null, 8, ["label"]),
2810
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptionGrouped)(
2811
- option
2812
- ), (item, i) => {
2813
- return openBlock(), createBlock(_sfc_main$6, mergeProps({
2814
- selected: isOptionSelected(item),
2815
- disabled: unref(isOptionDisabled)(item),
2816
- unselectable: _ctx.unselectable,
2817
- deselectHintLabel: unref(propsDefaults).deselectHintLabel,
2818
- selectHintLabel: unref(propsDefaults).selectHintLabel,
2819
- selectedHintLabel: unref(propsDefaults).selectedHintLabel
2820
- }, {
2821
- key: i,
2822
- class: "vv-dropdown-option",
2823
- onClickPassive: ($event) => onInput(item)
2824
- }), {
2825
- default: withCtx(() => [
2826
- renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
2827
- option,
2828
- selectedOptions: unref(selectedOptions),
2829
- selected: isOptionSelected(item),
2830
- disabled: unref(isOptionDisabled)(item)
2831
- })), () => [
2832
- createTextVNode(toDisplayString(unref(getOptionLabel)(item)), 1)
2833
- ])
2834
- ]),
2835
- _: 2
2836
- }, 1040, ["onClickPassive"]);
2837
- }), 128))
2838
- ], 64)) : (openBlock(), createBlock(_sfc_main$6, mergeProps({ key: 1 }, {
2839
- selected: isOptionSelected(option),
2840
- disabled: unref(isOptionDisabled)(option),
2841
- unselectable: _ctx.unselectable,
2842
- deselectHintLabel: unref(propsDefaults).deselectHintLabel,
2843
- selectHintLabel: unref(propsDefaults).selectHintLabel,
2844
- selectedHintLabel: unref(propsDefaults).selectedHintLabel
2845
- }, {
2846
- class: "vv-dropdown-option",
2847
- onClickPassive: ($event) => onInput(option)
2848
- }), {
2849
- default: withCtx(() => [
2850
- renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
2851
- option,
2852
- selectedOptions: unref(selectedOptions),
2853
- selected: isOptionSelected(option),
2854
- disabled: unref(isOptionDisabled)(option)
2855
- })), () => [
2856
- createTextVNode(toDisplayString(unref(getOptionLabel)(option)), 1)
2857
- ])
2858
- ]),
2859
- _: 2
2860
- }, 1040, ["onClickPassive"]))
2861
- ], 64);
2862
- }), 128)) : !_ctx.options.length ? (openBlock(), createBlock(_sfc_main$6, {
2863
- key: 1,
2864
- modifiers: "inert"
2865
- }, {
2866
- default: withCtx(() => [
2867
- renderSlot(_ctx.$slots, "no-options", {}, () => [
2868
- createTextVNode(toDisplayString(unref(propsDefaults).noOptionsLabel), 1)
2869
- ])
2870
- ]),
2871
- _: 3
2872
- })) : !unref(disabled) ? (openBlock(), createBlock(_sfc_main$6, {
2873
- key: 2,
2874
- modifiers: "inert"
2875
- }, {
2876
- default: withCtx(() => [
2877
- renderSlot(_ctx.$slots, "no-results", {}, () => [
2878
- createTextVNode(toDisplayString(unref(propsDefaults).noResultsLabel), 1)
2850
+ }, toDisplayString(_ctx.label), 9, _hoisted_2)) : createCommentVNode("v-if", true),
2851
+ createElementVNode(
2852
+ "div",
2853
+ {
2854
+ ref_key: "wrapperEl",
2855
+ ref: wrapperEl,
2856
+ class: "vv-select__wrapper"
2857
+ },
2858
+ [
2859
+ createVNode(_sfc_main$8, mergeProps({
2860
+ ref_key: "dropdownEl",
2861
+ ref: dropdownEl,
2862
+ modelValue: unref(expanded),
2863
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(expanded) ? expanded.value = $event : null)
2864
+ }, unref(dropdownProps), {
2865
+ role: unref(DropdownRole).listbox,
2866
+ onAfterExpand,
2867
+ onAfterCollapse
2868
+ }), createSlots({
2869
+ default: withCtx(({ aria }) => [
2870
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4, [
2871
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
2872
+ ])) : createCommentVNode("v-if", true),
2873
+ createElementVNode("div", _hoisted_5, [
2874
+ unref(hasIconBefore) ? (openBlock(), createBlock(
2875
+ _sfc_main$9,
2876
+ mergeProps({
2877
+ key: 0,
2878
+ class: "vv-select__icon"
2879
+ }, unref(hasIcon)),
2880
+ null,
2881
+ 16
2882
+ /* FULL_PROPS */
2883
+ )) : createCommentVNode("v-if", true),
2884
+ createElementVNode("div", mergeProps({
2885
+ ref_key: "inputEl",
2886
+ ref: inputEl
2887
+ }, aria, {
2888
+ class: "vv-select__input",
2889
+ role: "combobox",
2890
+ "aria-expanded": unref(expanded),
2891
+ "aria-labelledby": unref(hasLabelId),
2892
+ "aria-describedby": unref(hasHintLabelOrSlot) ? unref(hasHintId) : void 0,
2893
+ "aria-errormessage": unref(hasInvalidLabelOrSlot) ? unref(hasHintId) : void 0,
2894
+ tabindex: unref(hasTabindex),
2895
+ onClickPassive: onClickInput
2896
+ }), [
2897
+ renderSlot(_ctx.$slots, "value", normalizeProps(guardReactiveProps({ selectedOptions: unref(selectedOptions), onInput })), () => [
2898
+ unref(hasValue) ? (openBlock(), createElementBlock(
2899
+ Fragment,
2900
+ { key: 0 },
2901
+ [
2902
+ !_ctx.badges ? (openBlock(), createElementBlock(
2903
+ "div",
2904
+ _hoisted_7,
2905
+ toDisplayString(unref(hasValue)),
2906
+ 1
2907
+ /* TEXT */
2908
+ )) : (openBlock(true), createElementBlock(
2909
+ Fragment,
2910
+ { key: 1 },
2911
+ renderList(unref(selectedOptions), (option, index) => {
2912
+ return openBlock(), createBlock(_sfc_main$3, {
2913
+ key: index,
2914
+ modifiers: _ctx.badgeModifiers,
2915
+ class: "vv-select__badge"
2916
+ }, {
2917
+ default: withCtx(() => [
2918
+ createTextVNode(
2919
+ toDisplayString(unref(getOptionLabel)(option)) + " ",
2920
+ 1
2921
+ /* TEXT */
2922
+ ),
2923
+ _ctx.unselectable && !unref(readonly) && !unref(disabled) ? (openBlock(), createElementBlock("button", {
2924
+ key: 0,
2925
+ "aria-label": unref(propsDefaults).deselectActionLabel,
2926
+ type: "button",
2927
+ onClick: withModifiers(($event) => onInput(option), ["stop"])
2928
+ }, [
2929
+ createVNode(_sfc_main$9, { name: "close" })
2930
+ ], 8, _hoisted_8)) : createCommentVNode("v-if", true)
2931
+ ]),
2932
+ _: 2
2933
+ /* DYNAMIC */
2934
+ }, 1032, ["modifiers"]);
2935
+ }),
2936
+ 128
2937
+ /* KEYED_FRAGMENT */
2938
+ ))
2939
+ ],
2940
+ 64
2941
+ /* STABLE_FRAGMENT */
2942
+ )) : (openBlock(), createElementBlock(
2943
+ Fragment,
2944
+ { key: 1 },
2945
+ [
2946
+ createTextVNode(
2947
+ toDisplayString(_ctx.placeholder),
2948
+ 1
2949
+ /* TEXT */
2950
+ )
2951
+ ],
2952
+ 64
2953
+ /* STABLE_FRAGMENT */
2954
+ ))
2879
2955
  ])
2880
- ]),
2881
- _: 3
2882
- })) : createCommentVNode("", true)
2883
- ];
2884
- }),
2885
- after: withCtx(() => [
2886
- renderSlot(_ctx.$slots, "dropdown::after", {}, () => {
2956
+ ], 16, _hoisted_6),
2957
+ unref(hasIconAfter) ? (openBlock(), createBlock(
2958
+ _sfc_main$9,
2959
+ mergeProps({
2960
+ key: 1,
2961
+ class: "vv-select__icon vv-select__icon-after"
2962
+ }, unref(hasIcon)),
2963
+ null,
2964
+ 16
2965
+ /* FULL_PROPS */
2966
+ )) : createCommentVNode("v-if", true)
2967
+ ]),
2968
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_9, [
2969
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
2970
+ ])) : createCommentVNode("v-if", true)
2971
+ ]),
2972
+ items: withCtx(() => {
2887
2973
  var _a;
2888
2974
  return [
2889
- ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$1, {
2890
- key: 0,
2891
- label: unref(propsDefaults).closeLabel,
2892
- modifiers: "secondary",
2893
- onClick: _cache[1] || (_cache[1] = ($event) => unref(dropdownEl).hide())
2894
- }, null, 8, ["label"])) : createCommentVNode("", true)
2975
+ !unref(disabled) && ((_a = unref(filteredOptions)) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(
2976
+ Fragment,
2977
+ { key: 0 },
2978
+ renderList(unref(filteredOptions), (option, index) => {
2979
+ return openBlock(), createElementBlock(
2980
+ Fragment,
2981
+ { key: index },
2982
+ [
2983
+ isGroup(option) ? (openBlock(), createElementBlock(
2984
+ Fragment,
2985
+ { key: 0 },
2986
+ [
2987
+ createVNode(_sfc_main$5, {
2988
+ label: unref(getOptionLabel)(option)
2989
+ }, null, 8, ["label"]),
2990
+ (openBlock(true), createElementBlock(
2991
+ Fragment,
2992
+ null,
2993
+ renderList(unref(getOptionGrouped)(
2994
+ option
2995
+ ), (item, i) => {
2996
+ return openBlock(), createBlock(_sfc_main$6, mergeProps({
2997
+ selected: isOptionSelected(item),
2998
+ disabled: unref(isOptionDisabled)(item),
2999
+ unselectable: _ctx.unselectable,
3000
+ deselectHintLabel: unref(propsDefaults).deselectHintLabel,
3001
+ selectHintLabel: unref(propsDefaults).selectHintLabel,
3002
+ selectedHintLabel: unref(propsDefaults).selectedHintLabel
3003
+ }, {
3004
+ key: i,
3005
+ class: "vv-dropdown-option",
3006
+ onClickPassive: ($event) => onInput(item)
3007
+ }), {
3008
+ default: withCtx(() => [
3009
+ renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
3010
+ option,
3011
+ selectedOptions: unref(selectedOptions),
3012
+ selected: isOptionSelected(item),
3013
+ disabled: unref(isOptionDisabled)(item)
3014
+ })), () => [
3015
+ createTextVNode(
3016
+ toDisplayString(unref(getOptionLabel)(item)),
3017
+ 1
3018
+ /* TEXT */
3019
+ )
3020
+ ])
3021
+ ]),
3022
+ _: 2
3023
+ /* DYNAMIC */
3024
+ }, 1040, ["onClickPassive"]);
3025
+ }),
3026
+ 128
3027
+ /* KEYED_FRAGMENT */
3028
+ ))
3029
+ ],
3030
+ 64
3031
+ /* STABLE_FRAGMENT */
3032
+ )) : (openBlock(), createBlock(_sfc_main$6, mergeProps({ key: 1 }, {
3033
+ selected: isOptionSelected(option),
3034
+ disabled: unref(isOptionDisabled)(option),
3035
+ unselectable: _ctx.unselectable,
3036
+ deselectHintLabel: unref(propsDefaults).deselectHintLabel,
3037
+ selectHintLabel: unref(propsDefaults).selectHintLabel,
3038
+ selectedHintLabel: unref(propsDefaults).selectedHintLabel
3039
+ }, {
3040
+ class: "vv-dropdown-option",
3041
+ onClickPassive: ($event) => onInput(option)
3042
+ }), {
3043
+ default: withCtx(() => [
3044
+ renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps({
3045
+ option,
3046
+ selectedOptions: unref(selectedOptions),
3047
+ selected: isOptionSelected(option),
3048
+ disabled: unref(isOptionDisabled)(option)
3049
+ })), () => [
3050
+ createTextVNode(
3051
+ toDisplayString(unref(getOptionLabel)(option)),
3052
+ 1
3053
+ /* TEXT */
3054
+ )
3055
+ ])
3056
+ ]),
3057
+ _: 2
3058
+ /* DYNAMIC */
3059
+ }, 1040, ["onClickPassive"]))
3060
+ ],
3061
+ 64
3062
+ /* STABLE_FRAGMENT */
3063
+ );
3064
+ }),
3065
+ 128
3066
+ /* KEYED_FRAGMENT */
3067
+ )) : !_ctx.options.length ? (openBlock(), createBlock(_sfc_main$6, {
3068
+ key: 1,
3069
+ modifiers: "inert"
3070
+ }, {
3071
+ default: withCtx(() => [
3072
+ renderSlot(_ctx.$slots, "no-options", {}, () => [
3073
+ createTextVNode(
3074
+ toDisplayString(unref(propsDefaults).noOptionsLabel),
3075
+ 1
3076
+ /* TEXT */
3077
+ )
3078
+ ])
3079
+ ]),
3080
+ _: 3
3081
+ /* FORWARDED */
3082
+ })) : !unref(disabled) ? (openBlock(), createBlock(_sfc_main$6, {
3083
+ key: 2,
3084
+ modifiers: "inert"
3085
+ }, {
3086
+ default: withCtx(() => [
3087
+ renderSlot(_ctx.$slots, "no-results", {}, () => [
3088
+ createTextVNode(
3089
+ toDisplayString(unref(propsDefaults).noResultsLabel),
3090
+ 1
3091
+ /* TEXT */
3092
+ )
3093
+ ])
3094
+ ]),
3095
+ _: 3
3096
+ /* FORWARDED */
3097
+ })) : createCommentVNode("v-if", true)
2895
3098
  ];
2896
- })
2897
- ]),
2898
- _: 2
2899
- }, [
2900
- unref(propsDefaults).searchable || _ctx.$slots["dropdown::before"] ? {
2901
- name: "before",
2902
- fn: withCtx(() => [
2903
- renderSlot(_ctx.$slots, "dropdown::before"),
2904
- unref(propsDefaults).searchable && !unref(disabled) ? withDirectives((openBlock(), createElementBlock("input", {
2905
- key: 0,
2906
- id: unref(hasSearchId),
2907
- ref_key: "inputSearchEl",
2908
- ref: inputSearchEl,
2909
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchText) ? searchText.value = $event : null),
2910
- "aria-autocomplete": "list",
2911
- "aria-controls": unref(hasDropdownId),
2912
- autocomplete: "off",
2913
- spellcheck: "false",
2914
- type: "search",
2915
- class: "vv-dropdown__search",
2916
- placeholder: unref(propsDefaults).searchPlaceholder
2917
- }, null, 8, _hoisted_3)), [
2918
- [vModelText, unref(searchText)]
2919
- ]) : createCommentVNode("", true)
3099
+ }),
3100
+ after: withCtx(() => [
3101
+ renderSlot(_ctx.$slots, "dropdown::after", {}, () => {
3102
+ var _a;
3103
+ return [
3104
+ ((_a = unref(dropdownEl)) == null ? void 0 : _a.customPosition) ? (openBlock(), createBlock(_sfc_main$1, {
3105
+ key: 0,
3106
+ label: unref(propsDefaults).closeLabel,
3107
+ modifiers: "secondary",
3108
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(dropdownEl).hide())
3109
+ }, null, 8, ["label"])) : createCommentVNode("v-if", true)
3110
+ ];
3111
+ })
2920
3112
  ]),
2921
- key: "0"
2922
- } : void 0
2923
- ]), 1040, ["modelValue", "role"])
2924
- ], 512),
3113
+ _: 2
3114
+ /* DYNAMIC */
3115
+ }, [
3116
+ unref(propsDefaults).searchable || _ctx.$slots["dropdown::before"] ? {
3117
+ name: "before",
3118
+ fn: withCtx(() => [
3119
+ renderSlot(_ctx.$slots, "dropdown::before"),
3120
+ unref(propsDefaults).searchable && !unref(disabled) ? withDirectives((openBlock(), createElementBlock("input", {
3121
+ key: 0,
3122
+ id: unref(hasSearchId),
3123
+ ref_key: "inputSearchEl",
3124
+ ref: inputSearchEl,
3125
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchText) ? searchText.value = $event : null),
3126
+ "aria-autocomplete": "list",
3127
+ "aria-controls": unref(hasDropdownId),
3128
+ autocomplete: "off",
3129
+ spellcheck: "false",
3130
+ type: "search",
3131
+ class: "vv-dropdown__search",
3132
+ placeholder: unref(propsDefaults).searchPlaceholder
3133
+ }, null, 8, _hoisted_3)), [
3134
+ [vModelText, unref(searchText)]
3135
+ ]) : createCommentVNode("v-if", true)
3136
+ ]),
3137
+ key: "0"
3138
+ } : void 0
3139
+ ]), 1040, ["modelValue", "role"])
3140
+ ],
3141
+ 512
3142
+ /* NEED_PATCH */
3143
+ ),
2925
3144
  createVNode(unref(HintSlot), {
2926
3145
  id: unref(hasHintId),
2927
3146
  class: "vv-select__hint"
2928
- }, createSlots({ _: 2 }, [
3147
+ }, createSlots({
3148
+ _: 2
3149
+ /* DYNAMIC */
3150
+ }, [
2929
3151
  _ctx.$slots.hint ? {
2930
3152
  name: "hint",
2931
3153
  fn: withCtx(() => [
@@ -2955,9 +3177,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2955
3177
  key: "3"
2956
3178
  } : void 0
2957
3179
  ]), 1032, ["id"])
2958
- ], 10, _hoisted_1)) : (openBlock(), createBlock(_sfc_main$4, mergeProps({ key: 1 }, unref(selectProps), {
2959
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
2960
- }), null, 16));
3180
+ ], 10, _hoisted_1)) : (openBlock(), createBlock(
3181
+ _sfc_main$4,
3182
+ mergeProps({ key: 1 }, unref(selectProps), {
3183
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
3184
+ }),
3185
+ null,
3186
+ 16
3187
+ /* FULL_PROPS */
3188
+ ));
2961
3189
  };
2962
3190
  }
2963
3191
  });