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

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