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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/bin/icons.cjs +1 -1
  2. package/bin/icons.js +22 -15
  3. package/dist/Volver.d.ts +0 -1
  4. package/dist/components/VvAccordion/VvAccordion.es.js +10 -2
  5. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +52 -25
  6. package/dist/components/VvAction/VvAction.es.js +6 -1
  7. package/dist/components/VvAlert/VvAlert.es.js +73 -43
  8. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  9. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +113 -64
  10. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  11. package/dist/components/VvAvatar/VvAvatar.es.js +1 -1
  12. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  13. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +56 -26
  14. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  15. package/dist/components/VvBadge/VvBadge.es.js +18 -8
  16. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +61 -38
  17. package/dist/components/VvButton/VvButton.es.js +45 -17
  18. package/dist/components/VvButton/VvButton.umd.js +1 -1
  19. package/dist/components/VvButton/VvButton.vue.d.ts +3 -3
  20. package/dist/components/VvButton/index.d.ts +2 -2
  21. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +12 -6
  22. package/dist/components/VvCard/VvCard.es.js +26 -16
  23. package/dist/components/VvCard/VvCard.umd.js +1 -1
  24. package/dist/components/VvCheckbox/VvCheckbox.es.js +9 -2
  25. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +78 -44
  26. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  27. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  28. package/dist/components/VvCombobox/VvCombobox.es.js +587 -368
  29. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  30. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
  31. package/dist/components/VvCombobox/index.d.ts +1 -1
  32. package/dist/components/VvDialog/VvDialog.es.js +44 -27
  33. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  34. package/dist/components/VvDropdown/VvDropdown.es.js +64 -44
  35. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  36. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +3 -3
  37. package/dist/components/VvDropdown/index.d.ts +1 -1
  38. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +26 -9
  39. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  40. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +7 -1
  41. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +19 -8
  42. package/dist/components/VvIcon/VvIcon.es.js +1 -1
  43. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  44. package/dist/components/VvInputText/VvInputText.es.js +126 -97
  45. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  46. package/dist/components/VvNav/VvNav.es.js +50 -26
  47. package/dist/components/VvNav/VvNav.vue.d.ts +3 -3
  48. package/dist/components/VvNav/index.d.ts +1 -1
  49. package/dist/components/VvNavItem/VvNavItem.es.js +19 -7
  50. package/dist/components/VvProgress/VvProgress.es.js +12 -6
  51. package/dist/components/VvRadio/VvRadio.es.js +9 -2
  52. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +78 -44
  53. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  54. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  55. package/dist/components/VvSelect/VvSelect.es.js +133 -94
  56. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  57. package/dist/components/VvSelect/index.d.ts +1 -1
  58. package/dist/components/VvTab/VvTab.es.js +98 -44
  59. package/dist/components/VvTab/VvTab.umd.js +1 -1
  60. package/dist/components/VvTextarea/VvTextarea.es.js +99 -74
  61. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  62. package/dist/components/VvTooltip/VvTooltip.es.js +19 -9
  63. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
  64. package/dist/components/VvTooltip/index.d.ts +1 -1
  65. package/dist/components/index.es.js +1355 -836
  66. package/dist/components/index.umd.js +1 -1
  67. package/dist/composables/useVolver.d.ts +1 -1
  68. package/dist/directives/index.d.ts +3 -5
  69. package/dist/directives/index.es.js +39 -23
  70. package/dist/directives/index.umd.js +1 -1
  71. package/dist/directives/v-tooltip.es.js +37 -18
  72. package/dist/directives/v-tooltip.umd.js +1 -1
  73. package/dist/icons.es.js +3 -3
  74. package/dist/icons.umd.js +1 -1
  75. package/dist/index.d.ts +3 -1
  76. package/dist/props/index.d.ts +1 -1
  77. package/dist/types/generic.d.ts +1 -1
  78. package/package.json +31 -31
  79. package/src/Volver.ts +0 -1
  80. package/src/assets/icons/detailed.json +1 -1
  81. package/src/assets/icons/normal.json +1 -1
  82. package/src/assets/icons/simple.json +1 -1
  83. package/src/components/VvInputText/VvInputText.vue +2 -2
  84. package/src/directives/index.ts +1 -4
  85. package/src/directives/v-tooltip.ts +19 -10
  86. package/src/index.ts +3 -1
  87. package/src/types/generic.ts +2 -1
@@ -756,7 +756,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
756
756
  color: _ctx.color,
757
757
  onLoad: _ctx.onLoad,
758
758
  icon: unref(icon)
759
- }), null, 16, ["class"])) : createCommentVNode("", true);
759
+ }), null, 16, ["class"])) : createCommentVNode("v-if", true);
760
760
  };
761
761
  }
762
762
  });
@@ -1197,50 +1197,70 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1197
1197
  }
1198
1198
  };
1199
1199
  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);
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
+ );
1244
1264
  };
1245
1265
  }
1246
1266
  });
@@ -1271,13 +1291,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1271
1291
  }
1272
1292
  });
1273
1293
  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);
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
+ );
1281
1307
  };
1282
1308
  }
1283
1309
  });
@@ -1336,11 +1362,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1336
1362
  title: unref(hintLabel)
1337
1363
  }, [
1338
1364
  renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps({ disabled: _ctx.disabled, selected: _ctx.selected, unselectable: _ctx.unselectable })), () => [
1339
- createTextVNode(toDisplayString(unref(hintLabel)), 1)
1365
+ createTextVNode(
1366
+ toDisplayString(unref(hintLabel)),
1367
+ 1
1368
+ /* TEXT */
1369
+ )
1340
1370
  ])
1341
1371
  ], 8, _hoisted_1$4)
1342
1372
  ]),
1343
1373
  _: 3
1374
+ /* FORWARDED */
1344
1375
  }, 8, ["class", "tabindex", "aria-selected", "aria-disabled"]);
1345
1376
  };
1346
1377
  }
@@ -1361,7 +1392,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1361
1392
  setup(__props) {
1362
1393
  const props = __props;
1363
1394
  return (_ctx, _cache) => {
1364
- 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
+ );
1365
1402
  };
1366
1403
  }
1367
1404
  });
@@ -1903,101 +1940,140 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1903
1940
  return option && option.options && option.options.length > 0;
1904
1941
  };
1905
1942
  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)]
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)
1957
2032
  ]),
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)
2033
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
2034
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
2035
+ ])) : createCommentVNode("v-if", true)
1962
2036
  ]),
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);
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
+ );
2001
2077
  };
2002
2078
  }
2003
2079
  });
@@ -2016,14 +2092,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2016
2092
  const { modifiers } = toRefs(props);
2017
2093
  const bemCssClasses = useModifiers("vv-badge", modifiers);
2018
2094
  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);
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
+ );
2027
2113
  };
2028
2114
  }
2029
2115
  });
@@ -2133,10 +2219,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2133
2219
  }), {
2134
2220
  default: withCtx(() => [
2135
2221
  renderSlot(_ctx.$slots, "default", {}, () => [
2136
- createTextVNode(toDisplayString(_ctx.label), 1)
2222
+ createTextVNode(
2223
+ toDisplayString(_ctx.label),
2224
+ 1
2225
+ /* TEXT */
2226
+ )
2137
2227
  ])
2138
2228
  ]),
2139
2229
  _: 3
2230
+ /* FORWARDED */
2140
2231
  }, 16, ["class"]);
2141
2232
  };
2142
2233
  }
@@ -2391,24 +2482,47 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2391
2482
  key: 0,
2392
2483
  class: "vv-button__loading-icon",
2393
2484
  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))
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
+ ))
2409
2522
  ])
2410
2523
  ]),
2411
2524
  _: 3
2525
+ /* FORWARDED */
2412
2526
  }, 16, ["id", "class"]);
2413
2527
  };
2414
2528
  }
@@ -2724,208 +2838,307 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2724
2838
  key: 0,
2725
2839
  id: unref(hasLabelId),
2726
2840
  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)
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
+ ))
2879
2946
  ])
2880
- ]),
2881
- _: 3
2882
- })) : createCommentVNode("", true)
2883
- ];
2884
- }),
2885
- after: withCtx(() => [
2886
- 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(() => {
2887
2964
  var _a;
2888
2965
  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)
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)
2895
3089
  ];
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)
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
+ })
2920
3103
  ]),
2921
- key: "0"
2922
- } : void 0
2923
- ]), 1040, ["modelValue", "role"])
2924
- ], 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
+ ),
2925
3135
  createVNode(unref(HintSlot), {
2926
3136
  id: unref(hasHintId),
2927
3137
  class: "vv-select__hint"
2928
- }, createSlots({ _: 2 }, [
3138
+ }, createSlots({
3139
+ _: 2
3140
+ /* DYNAMIC */
3141
+ }, [
2929
3142
  _ctx.$slots.hint ? {
2930
3143
  name: "hint",
2931
3144
  fn: withCtx(() => [
@@ -2955,9 +3168,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2955
3168
  key: "3"
2956
3169
  } : void 0
2957
3170
  ]), 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));
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
+ ));
2961
3180
  };
2962
3181
  }
2963
3182
  });