@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.
- package/bin/icons.cjs +1 -1
- package/bin/icons.js +22 -15
- package/dist/Volver.d.ts +0 -1
- package/dist/components/VvAccordion/VvAccordion.es.js +10 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +52 -25
- package/dist/components/VvAction/VvAction.es.js +6 -1
- package/dist/components/VvAlert/VvAlert.es.js +73 -43
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +113 -64
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.es.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +56 -26
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +18 -8
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +61 -38
- package/dist/components/VvButton/VvButton.es.js +45 -17
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +3 -3
- package/dist/components/VvButton/index.d.ts +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +12 -6
- package/dist/components/VvCard/VvCard.es.js +26 -16
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +9 -2
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +78 -44
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +587 -368
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
- package/dist/components/VvCombobox/index.d.ts +1 -1
- package/dist/components/VvDialog/VvDialog.es.js +44 -27
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +64 -44
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +3 -3
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +26 -9
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +7 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +19 -8
- package/dist/components/VvIcon/VvIcon.es.js +1 -1
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +126 -97
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvNav/VvNav.es.js +50 -26
- package/dist/components/VvNav/VvNav.vue.d.ts +3 -3
- package/dist/components/VvNav/index.d.ts +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +19 -7
- package/dist/components/VvProgress/VvProgress.es.js +12 -6
- package/dist/components/VvRadio/VvRadio.es.js +9 -2
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +78 -44
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/index.d.ts +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +133 -94
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/index.d.ts +1 -1
- package/dist/components/VvTab/VvTab.es.js +98 -44
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +99 -74
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.es.js +19 -9
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +3 -3
- package/dist/components/VvTooltip/index.d.ts +1 -1
- package/dist/components/index.es.js +1355 -836
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/useVolver.d.ts +1 -1
- package/dist/directives/index.d.ts +3 -5
- package/dist/directives/index.es.js +39 -23
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +37 -18
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/props/index.d.ts +1 -1
- package/dist/types/generic.d.ts +1 -1
- package/package.json +31 -31
- package/src/Volver.ts +0 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvInputText/VvInputText.vue +2 -2
- package/src/directives/index.ts +1 -4
- package/src/directives/v-tooltip.ts +19 -10
- package/src/index.ts +3 -1
- 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(
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
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(
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
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
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
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
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
]
|
|
2000
|
-
|
|
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(
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
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(
|
|
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(
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
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(
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
"
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
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
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
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(
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
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
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
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
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
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({
|
|
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(
|
|
2959
|
-
|
|
2960
|
-
|
|
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
|
});
|