@8wave/ai-elements 0.103.0-beta.3 → 0.103.0-beta.4
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/dist/_chunks/PkLazyImg-CyeqD59M.js +34 -0
- package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
- package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
- package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
- package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
- package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
- package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
- package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
- package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
- package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
- package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
- package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
- package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
- package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
- package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
- package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
- package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
- package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
- package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
- package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
- package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
- package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
- package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
- package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
- package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
- package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
- package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
- package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
- package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
- package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
- package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
- package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
- package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
- package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
- package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
- package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
- package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
- package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
- package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
- package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
- package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
- package/dist/ai-elements.es.js +1861 -1861
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
- package/dist-vue/index.js +10 -10
- package/package.json +2 -2
- package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
- package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
- package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
- package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
- package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
- package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
- package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
- package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
- package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
- package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
- package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
- package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
- package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
- package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
|
@@ -0,0 +1,2044 @@
|
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, H as c, K as l, L as u, M as d, N as f, O as p, P as ee, Q as m, R as h, St as g, T as _, Tt as v, U as te, V as ne, W as re, X as y, _ as b, _t as x, b as S, bt as C, c as w, ct as ie, d as T, et as ae, g as E, h as D, it as oe, j as O, k, l as se, m as A, o as j, pt as M, q as ce, r as N, s as le, t as P, u as ue, v as F, vt as I, w as de, wt as fe, x as pe, xt as L, y as me, yt as he, z as ge } from "./vue.runtime.esm-bundler-B3bThTaf.js";
|
|
2
|
+
import { a as _e, i as R, t as ve } from "./iconify-6ObncgfH.js";
|
|
3
|
+
import { c as ye, d as be, h as z, l as xe, m as Se, n as Ce, o as we, r as Te, s as Ee, t as De } from "./dist-C5Y-NI3i.js";
|
|
4
|
+
import { a as Oe, c as ke, i as Ae, l as je, n as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./floating-ui.vue-CoA4oagI.js";
|
|
5
|
+
import { t as B } from "./dot-prop-BEIkPL0b.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.18_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_fb2fc569fa47f04da7f3d790d6448706/node_modules/@volverjs/ui-vue/dist/components/VvCombobox/VvCombobox.es.js
|
|
7
|
+
p(), N(), oe(), L();
|
|
8
|
+
var Le = {
|
|
9
|
+
showPassword: "eye-on",
|
|
10
|
+
hidePassword: "eye-off",
|
|
11
|
+
showDatePicker: "calendar",
|
|
12
|
+
showTimePicker: "time",
|
|
13
|
+
showColorPicker: "color",
|
|
14
|
+
clear: "close",
|
|
15
|
+
add: "add",
|
|
16
|
+
remove: "trash",
|
|
17
|
+
edit: "edit",
|
|
18
|
+
download: "download"
|
|
19
|
+
}, V = { prefix: "normal" }, Re = /* @__PURE__ */ (function(e) {
|
|
20
|
+
return e.local = "local", e.session = "session", e;
|
|
21
|
+
})({}), ze = /* @__PURE__ */ (function(e) {
|
|
22
|
+
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
23
|
+
})({}), H = /* @__PURE__ */ (function(e) {
|
|
24
|
+
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
25
|
+
})({}), Be = /* @__PURE__ */ (function(e) {
|
|
26
|
+
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
27
|
+
})({}), Ve = /* @__PURE__ */ (function(e) {
|
|
28
|
+
return e.before = "before", e.after = "after", e;
|
|
29
|
+
})({}), He = /* @__PURE__ */ (function(e) {
|
|
30
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
31
|
+
})({}), U = /* @__PURE__ */ (function(e) {
|
|
32
|
+
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
33
|
+
})({}), W = /* @__PURE__ */ (function(e) {
|
|
34
|
+
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
35
|
+
})({}), Ue = /* @__PURE__ */ (function(e) {
|
|
36
|
+
return e.listbox = "listbox", e.menu = "menu", e;
|
|
37
|
+
})({}), We = /* @__PURE__ */ (function(e) {
|
|
38
|
+
return e.option = "option", e.presentation = "presentation", e;
|
|
39
|
+
})({}), Ge = /* @__PURE__ */ Symbol.for("volver"), Ke = /* @__PURE__ */ Symbol.for("buttonGroup"), G = /* @__PURE__ */ Symbol.for("dropdownTrigger"), qe = /* @__PURE__ */ Symbol.for("dropdownItem"), K = /* @__PURE__ */ Symbol.for("dropdownAction"), Je = {
|
|
40
|
+
to: { type: [String, Object] },
|
|
41
|
+
href: String,
|
|
42
|
+
target: String,
|
|
43
|
+
rel: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "noopener noreferrer"
|
|
46
|
+
}
|
|
47
|
+
}, Ye = {
|
|
48
|
+
valid: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !1
|
|
51
|
+
},
|
|
52
|
+
validLabel: {
|
|
53
|
+
type: [String, Array],
|
|
54
|
+
default: void 0
|
|
55
|
+
}
|
|
56
|
+
}, q = {
|
|
57
|
+
invalid: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
},
|
|
61
|
+
invalidLabel: {
|
|
62
|
+
type: [String, Array],
|
|
63
|
+
default: void 0
|
|
64
|
+
}
|
|
65
|
+
}, J = {
|
|
66
|
+
loading: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
loadingLabel: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "Loading..."
|
|
73
|
+
}
|
|
74
|
+
}, Y = { disabled: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
} }, X = { required: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
} }, Xe = { selected: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
} }, Ze = { active: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !1
|
|
86
|
+
} }, Qe = { current: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
} }, Z = {
|
|
90
|
+
showClearAction: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !1
|
|
93
|
+
},
|
|
94
|
+
iconClear: {
|
|
95
|
+
type: [String, Object],
|
|
96
|
+
default: Le.clear
|
|
97
|
+
},
|
|
98
|
+
labelClear: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "Clear"
|
|
101
|
+
}
|
|
102
|
+
}, $e = { pressed: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !1
|
|
105
|
+
} }, et = { label: {
|
|
106
|
+
type: [String, Number],
|
|
107
|
+
default: void 0
|
|
108
|
+
} }, tt = { readonly: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: !1
|
|
111
|
+
} }, Q = { modifiers: {
|
|
112
|
+
type: [String, Array],
|
|
113
|
+
default: void 0
|
|
114
|
+
} }, nt = { hintLabel: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: ""
|
|
117
|
+
} }, rt = {
|
|
118
|
+
options: {
|
|
119
|
+
type: Array,
|
|
120
|
+
default: () => []
|
|
121
|
+
},
|
|
122
|
+
labelKey: {
|
|
123
|
+
type: [String, Function],
|
|
124
|
+
default: "label"
|
|
125
|
+
},
|
|
126
|
+
valueKey: {
|
|
127
|
+
type: [String, Function],
|
|
128
|
+
default: "value"
|
|
129
|
+
},
|
|
130
|
+
disabledKey: {
|
|
131
|
+
type: [String, Function],
|
|
132
|
+
default: "disabled"
|
|
133
|
+
}
|
|
134
|
+
}, it = { count: {
|
|
135
|
+
type: [Boolean, String],
|
|
136
|
+
default: !1,
|
|
137
|
+
validator: (e) => [
|
|
138
|
+
!0,
|
|
139
|
+
!1,
|
|
140
|
+
"limit",
|
|
141
|
+
"countdown"
|
|
142
|
+
].includes(e)
|
|
143
|
+
} }, at = { debounce: {
|
|
144
|
+
type: [Number, String],
|
|
145
|
+
default: void 0
|
|
146
|
+
} }, ot = {
|
|
147
|
+
icon: {
|
|
148
|
+
type: [String, Object],
|
|
149
|
+
default: void 0
|
|
150
|
+
},
|
|
151
|
+
iconPosition: {
|
|
152
|
+
type: String,
|
|
153
|
+
default: Ve.before,
|
|
154
|
+
validation: (e) => Object.values(Ve).includes(e)
|
|
155
|
+
}
|
|
156
|
+
}, st = { tabindex: {
|
|
157
|
+
type: [String, Number],
|
|
158
|
+
default: 0
|
|
159
|
+
} }, ct = { floating: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !1
|
|
162
|
+
} }, lt = { unselectable: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: !0
|
|
165
|
+
} }, ut = { id: [String, Number] }, dt = {
|
|
166
|
+
placement: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: H.bottom,
|
|
169
|
+
validator: (e) => Object.values(H).includes(e) || Object.values(Be).includes(e)
|
|
170
|
+
},
|
|
171
|
+
strategy: {
|
|
172
|
+
type: String,
|
|
173
|
+
default: void 0,
|
|
174
|
+
validator: (e) => Object.values(ze).includes(e)
|
|
175
|
+
},
|
|
176
|
+
transitionName: {
|
|
177
|
+
type: String,
|
|
178
|
+
default: void 0
|
|
179
|
+
},
|
|
180
|
+
offset: {
|
|
181
|
+
type: [
|
|
182
|
+
Number,
|
|
183
|
+
String,
|
|
184
|
+
Object
|
|
185
|
+
],
|
|
186
|
+
default: 0
|
|
187
|
+
},
|
|
188
|
+
shift: {
|
|
189
|
+
type: [Boolean, Object],
|
|
190
|
+
default: !1
|
|
191
|
+
},
|
|
192
|
+
flip: {
|
|
193
|
+
type: [Boolean, Object],
|
|
194
|
+
default: !0
|
|
195
|
+
},
|
|
196
|
+
size: {
|
|
197
|
+
type: [Boolean, Object],
|
|
198
|
+
default: () => ({ padding: 10 })
|
|
199
|
+
},
|
|
200
|
+
autoPlacement: {
|
|
201
|
+
type: [Boolean, Object],
|
|
202
|
+
default: !1
|
|
203
|
+
},
|
|
204
|
+
arrow: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: !1
|
|
207
|
+
},
|
|
208
|
+
keepOpen: {
|
|
209
|
+
type: Boolean,
|
|
210
|
+
default: !1
|
|
211
|
+
},
|
|
212
|
+
autofocusFirst: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
default: !0
|
|
215
|
+
},
|
|
216
|
+
triggerWidth: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
default: !1
|
|
219
|
+
},
|
|
220
|
+
topLayer: {
|
|
221
|
+
type: Boolean,
|
|
222
|
+
default: !1
|
|
223
|
+
}
|
|
224
|
+
}, ft = {
|
|
225
|
+
...ut,
|
|
226
|
+
name: {
|
|
227
|
+
type: String,
|
|
228
|
+
required: !0
|
|
229
|
+
}
|
|
230
|
+
}, pt = { autofocus: {
|
|
231
|
+
type: Boolean,
|
|
232
|
+
default: !1
|
|
233
|
+
} }, mt = { autocomplete: {
|
|
234
|
+
type: String,
|
|
235
|
+
default: "off"
|
|
236
|
+
} };
|
|
237
|
+
({
|
|
238
|
+
...ft,
|
|
239
|
+
...pt,
|
|
240
|
+
...mt,
|
|
241
|
+
...st,
|
|
242
|
+
...Y,
|
|
243
|
+
...tt,
|
|
244
|
+
...Ye,
|
|
245
|
+
...q,
|
|
246
|
+
...nt,
|
|
247
|
+
...J,
|
|
248
|
+
...Q,
|
|
249
|
+
...it,
|
|
250
|
+
...at,
|
|
251
|
+
...ot,
|
|
252
|
+
...ct,
|
|
253
|
+
...et
|
|
254
|
+
}), { ...X }, {
|
|
255
|
+
...ft,
|
|
256
|
+
...st,
|
|
257
|
+
...Ye,
|
|
258
|
+
...q,
|
|
259
|
+
...nt,
|
|
260
|
+
...Y,
|
|
261
|
+
...tt,
|
|
262
|
+
...Q,
|
|
263
|
+
...et,
|
|
264
|
+
...J
|
|
265
|
+
}, {
|
|
266
|
+
...Ye,
|
|
267
|
+
...q,
|
|
268
|
+
...rt,
|
|
269
|
+
...nt,
|
|
270
|
+
...Y,
|
|
271
|
+
...tt,
|
|
272
|
+
...Q,
|
|
273
|
+
...et,
|
|
274
|
+
...J,
|
|
275
|
+
...X
|
|
276
|
+
};
|
|
277
|
+
var ht = {
|
|
278
|
+
...Y,
|
|
279
|
+
...et,
|
|
280
|
+
...$e,
|
|
281
|
+
...Ze,
|
|
282
|
+
...Qe,
|
|
283
|
+
...Je,
|
|
284
|
+
type: {
|
|
285
|
+
type: String,
|
|
286
|
+
default: He.button,
|
|
287
|
+
validator: (e) => Object.values(He).includes(e)
|
|
288
|
+
},
|
|
289
|
+
ariaLabel: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: void 0
|
|
292
|
+
},
|
|
293
|
+
defaultTag: {
|
|
294
|
+
type: String,
|
|
295
|
+
default: U.button
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
Re.local;
|
|
299
|
+
var gt = {
|
|
300
|
+
...ft,
|
|
301
|
+
...st,
|
|
302
|
+
...Ye,
|
|
303
|
+
...q,
|
|
304
|
+
...nt,
|
|
305
|
+
...J,
|
|
306
|
+
...Y,
|
|
307
|
+
...tt,
|
|
308
|
+
...Q,
|
|
309
|
+
...rt,
|
|
310
|
+
...ot,
|
|
311
|
+
...ct,
|
|
312
|
+
...dt,
|
|
313
|
+
...et,
|
|
314
|
+
...X,
|
|
315
|
+
...Z,
|
|
316
|
+
transitionName: {
|
|
317
|
+
type: String,
|
|
318
|
+
default: "vv-dropdown--mobile-fade-block"
|
|
319
|
+
},
|
|
320
|
+
modelValue: {
|
|
321
|
+
type: [
|
|
322
|
+
String,
|
|
323
|
+
Number,
|
|
324
|
+
Boolean,
|
|
325
|
+
Object,
|
|
326
|
+
Array
|
|
327
|
+
],
|
|
328
|
+
default: void 0
|
|
329
|
+
},
|
|
330
|
+
noResultsLabel: {
|
|
331
|
+
type: String,
|
|
332
|
+
default: "No results"
|
|
333
|
+
},
|
|
334
|
+
noOptionsLabel: {
|
|
335
|
+
type: String,
|
|
336
|
+
default: "No options available"
|
|
337
|
+
},
|
|
338
|
+
selectedOptionNotFoundLabel: {
|
|
339
|
+
type: String,
|
|
340
|
+
default: "Selected option not found"
|
|
341
|
+
},
|
|
342
|
+
selectedHintLabel: {
|
|
343
|
+
type: String,
|
|
344
|
+
default: "Selected"
|
|
345
|
+
},
|
|
346
|
+
deselectActionLabel: {
|
|
347
|
+
type: String,
|
|
348
|
+
default: "Deselect"
|
|
349
|
+
},
|
|
350
|
+
selectHintLabel: {
|
|
351
|
+
type: String,
|
|
352
|
+
default: "Press enter to select"
|
|
353
|
+
},
|
|
354
|
+
deselectHintLabel: {
|
|
355
|
+
type: String,
|
|
356
|
+
default: "Press enter to remove"
|
|
357
|
+
},
|
|
358
|
+
addOptionHintLabel: {
|
|
359
|
+
type: String,
|
|
360
|
+
default: "Press enter to add"
|
|
361
|
+
},
|
|
362
|
+
closeLabel: {
|
|
363
|
+
type: String,
|
|
364
|
+
default: "Close"
|
|
365
|
+
},
|
|
366
|
+
placeholder: String,
|
|
367
|
+
addable: Boolean,
|
|
368
|
+
searchable: Boolean,
|
|
369
|
+
keepSearch: Boolean,
|
|
370
|
+
searchFunction: {
|
|
371
|
+
type: Function,
|
|
372
|
+
default: void 0
|
|
373
|
+
},
|
|
374
|
+
searchPlaceholder: {
|
|
375
|
+
type: String,
|
|
376
|
+
default: "Search..."
|
|
377
|
+
},
|
|
378
|
+
debounceSearch: {
|
|
379
|
+
type: [Number, String],
|
|
380
|
+
default: 0
|
|
381
|
+
},
|
|
382
|
+
multiple: Boolean,
|
|
383
|
+
minValues: {
|
|
384
|
+
type: [Number, String],
|
|
385
|
+
default: 0
|
|
386
|
+
},
|
|
387
|
+
maxValues: [Number, String],
|
|
388
|
+
unselectable: {
|
|
389
|
+
type: Boolean,
|
|
390
|
+
default: !0
|
|
391
|
+
},
|
|
392
|
+
separator: {
|
|
393
|
+
type: String,
|
|
394
|
+
default: ", "
|
|
395
|
+
},
|
|
396
|
+
native: Boolean,
|
|
397
|
+
badges: Boolean,
|
|
398
|
+
badgeModifiers: {
|
|
399
|
+
type: [String, Array],
|
|
400
|
+
default: "action sm"
|
|
401
|
+
},
|
|
402
|
+
triggerWidth: {
|
|
403
|
+
...dt.triggerWidth,
|
|
404
|
+
default: !0
|
|
405
|
+
},
|
|
406
|
+
dropdownModifiers: {
|
|
407
|
+
type: [String, Array],
|
|
408
|
+
default: "mobile"
|
|
409
|
+
},
|
|
410
|
+
autoOpen: {
|
|
411
|
+
type: Boolean,
|
|
412
|
+
default: !1
|
|
413
|
+
},
|
|
414
|
+
autoselectFirst: {
|
|
415
|
+
type: Boolean,
|
|
416
|
+
default: !1
|
|
417
|
+
},
|
|
418
|
+
keepOpen: {
|
|
419
|
+
type: Boolean,
|
|
420
|
+
default: !1
|
|
421
|
+
},
|
|
422
|
+
focusOnHover: {
|
|
423
|
+
type: Boolean,
|
|
424
|
+
default: !0
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
function _t() {
|
|
428
|
+
return {
|
|
429
|
+
...gt,
|
|
430
|
+
options: {
|
|
431
|
+
...gt.options,
|
|
432
|
+
type: Array
|
|
433
|
+
},
|
|
434
|
+
searchFunction: {
|
|
435
|
+
...gt.searchFunction,
|
|
436
|
+
type: Function
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function vt(e, t, n) {
|
|
441
|
+
return n ? St(e, n) === St(t, n) : xt(e, t);
|
|
442
|
+
}
|
|
443
|
+
function yt(e, t) {
|
|
444
|
+
if (e.length !== t.length) return !1;
|
|
445
|
+
for (let n = e.length; n-- !== 0;) if (!xt(e[n], t[n])) return !1;
|
|
446
|
+
return !0;
|
|
447
|
+
}
|
|
448
|
+
function bt(e, t) {
|
|
449
|
+
let n = Object.keys(e), { length: r } = n;
|
|
450
|
+
if (r !== Object.keys(t).length) return !1;
|
|
451
|
+
for (let e = r; e-- !== 0;) if (!Object.hasOwn(t, n[e])) return !1;
|
|
452
|
+
for (let i = r; i-- !== 0;) {
|
|
453
|
+
let r = n[i];
|
|
454
|
+
if (!xt(e[r], t[r])) return !1;
|
|
455
|
+
}
|
|
456
|
+
return !0;
|
|
457
|
+
}
|
|
458
|
+
function xt(e, t) {
|
|
459
|
+
if (e === t) return !0;
|
|
460
|
+
if (!e || !t || typeof e != "object" || typeof t != "object") return Number.isNaN(e) && Number.isNaN(t);
|
|
461
|
+
let n = Array.isArray(e), r = Array.isArray(t);
|
|
462
|
+
if (n !== r) return !1;
|
|
463
|
+
if (n && r) return yt(e, t);
|
|
464
|
+
let i = e instanceof Date, a = t instanceof Date;
|
|
465
|
+
if (i !== a) return !1;
|
|
466
|
+
if (i && a) return e.getTime() === t.getTime();
|
|
467
|
+
let o = e instanceof RegExp, s = t instanceof RegExp;
|
|
468
|
+
return o === s ? o && s ? e.toString() === t.toString() : bt(e, t) : !1;
|
|
469
|
+
}
|
|
470
|
+
function St(e, t) {
|
|
471
|
+
if (e && Object.keys(e).length && t) {
|
|
472
|
+
if (!t.includes(".")) return e[t];
|
|
473
|
+
let n = t.split("."), r = e;
|
|
474
|
+
for (let e = 0, t = n.length; e < t; ++e) {
|
|
475
|
+
if (r == null) return null;
|
|
476
|
+
r = r[n[e]];
|
|
477
|
+
}
|
|
478
|
+
return r;
|
|
479
|
+
}
|
|
480
|
+
return null;
|
|
481
|
+
}
|
|
482
|
+
function Ct(e, t) {
|
|
483
|
+
if (e != null && t?.length) {
|
|
484
|
+
for (let n of t) if (vt(e, n)) return !0;
|
|
485
|
+
}
|
|
486
|
+
return !1;
|
|
487
|
+
}
|
|
488
|
+
function wt(e) {
|
|
489
|
+
return typeof e == "string";
|
|
490
|
+
}
|
|
491
|
+
function Tt(e) {
|
|
492
|
+
return Array.isArray(e) ? e.filter((e) => wt(e)).join(" ") : e;
|
|
493
|
+
}
|
|
494
|
+
function Et(e, t) {
|
|
495
|
+
let n = A(() => ie(e) ? e.value : e), i = A(() => Tt(n.value.invalidLabel)), o = A(() => Tt(n.value.validLabel)), s = A(() => n.value.loadingLabel), c = A(() => n.value.hintLabel), l = A(() => !!(n.value.loading && (t.loading || s.value))), u = A(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = A(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = A(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = A(() => u.value || d.value || l.value || f.value);
|
|
496
|
+
return {
|
|
497
|
+
hasInvalidLabelOrSlot: u,
|
|
498
|
+
hasHintLabelOrSlot: f,
|
|
499
|
+
hasValidLabelOrSlot: d,
|
|
500
|
+
hasLoadingLabelOrSlot: l,
|
|
501
|
+
hintSlotScope: A(() => ({
|
|
502
|
+
modelValue: n.value.modelValue,
|
|
503
|
+
valid: n.value.valid,
|
|
504
|
+
invalid: n.value.invalid,
|
|
505
|
+
loading: n.value.loading
|
|
506
|
+
})),
|
|
507
|
+
HintSlot: r({
|
|
508
|
+
name: "HintSlot",
|
|
509
|
+
props: { tag: {
|
|
510
|
+
type: String,
|
|
511
|
+
default: "small"
|
|
512
|
+
} },
|
|
513
|
+
setup() {
|
|
514
|
+
return {
|
|
515
|
+
isVisible: p,
|
|
516
|
+
invalidLabel: i,
|
|
517
|
+
validLabel: o,
|
|
518
|
+
loadingLabel: s,
|
|
519
|
+
hintLabel: c,
|
|
520
|
+
hasInvalidLabelOrSlot: u,
|
|
521
|
+
hasValidLabelOrSlot: d,
|
|
522
|
+
hasLoadingLabelOrSlot: l,
|
|
523
|
+
hasHintLabelOrSlot: f
|
|
524
|
+
};
|
|
525
|
+
},
|
|
526
|
+
render() {
|
|
527
|
+
if (this.isVisible) {
|
|
528
|
+
let e;
|
|
529
|
+
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? a(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : a(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
530
|
+
}
|
|
531
|
+
return null;
|
|
532
|
+
}
|
|
533
|
+
})
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
function Dt() {
|
|
537
|
+
return k(Ge, void 0);
|
|
538
|
+
}
|
|
539
|
+
function Ot(e, t, n) {
|
|
540
|
+
return A(() => {
|
|
541
|
+
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
542
|
+
return i && Array.isArray(i) && i.forEach((t) => {
|
|
543
|
+
t && (r[`${e}--${t}`] = !0);
|
|
544
|
+
}), n && Object.keys(n.value).forEach((t) => {
|
|
545
|
+
r[`${e}--${t}`] = C(n.value[t]);
|
|
546
|
+
}), r;
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
var $ = /* @__PURE__ */ r({
|
|
550
|
+
name: "VvIcon",
|
|
551
|
+
props: /* @__PURE__ */ t({
|
|
552
|
+
name: {},
|
|
553
|
+
color: {},
|
|
554
|
+
width: {},
|
|
555
|
+
height: {},
|
|
556
|
+
provider: {},
|
|
557
|
+
prefix: {},
|
|
558
|
+
src: {},
|
|
559
|
+
horizontalFlip: { type: Boolean },
|
|
560
|
+
verticalFlip: { type: Boolean },
|
|
561
|
+
flip: {},
|
|
562
|
+
mode: {},
|
|
563
|
+
inline: { type: Boolean },
|
|
564
|
+
rotate: {},
|
|
565
|
+
onLoad: { type: Function },
|
|
566
|
+
svg: {},
|
|
567
|
+
modifiers: {}
|
|
568
|
+
}, V),
|
|
569
|
+
setup(e) {
|
|
570
|
+
let t = e, n = A(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = M(!0), i = Dt(), { modifiers: a } = I(t), o = Ot("vv-icon", a), s = A(() => t.provider || i?.iconsProvider), c = A(() => {
|
|
571
|
+
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
572
|
+
if (_e(n)) return n;
|
|
573
|
+
let r = i?.iconsCollections.find((t) => {
|
|
574
|
+
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
575
|
+
return _e(n);
|
|
576
|
+
});
|
|
577
|
+
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
578
|
+
});
|
|
579
|
+
function l(e) {
|
|
580
|
+
return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(e, "text/html").querySelector("svg");
|
|
581
|
+
}
|
|
582
|
+
function f(e) {
|
|
583
|
+
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
584
|
+
n && r && R(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
585
|
+
body: r,
|
|
586
|
+
height: n.viewBox.baseVal.height,
|
|
587
|
+
width: n.viewBox.baseVal.width
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
return i && t.src && !_e(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
591
|
+
e && f(e), r.value = !0;
|
|
592
|
+
}).catch((e) => {
|
|
593
|
+
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
594
|
+
})), t.svg && f(t.svg), (t, i) => C(r) ? (u(), E(C(ve), d({
|
|
595
|
+
key: 0,
|
|
596
|
+
class: C(o)
|
|
597
|
+
}, {
|
|
598
|
+
inline: e.inline,
|
|
599
|
+
width: e.width,
|
|
600
|
+
height: e.height,
|
|
601
|
+
horizontalFlip: e.horizontalFlip,
|
|
602
|
+
verticalFlip: e.verticalFlip,
|
|
603
|
+
flip: e.flip,
|
|
604
|
+
rotate: C(n),
|
|
605
|
+
color: e.color,
|
|
606
|
+
icon: C(c)
|
|
607
|
+
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : b("v-if", !0);
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
function kt(e, t) {
|
|
611
|
+
let n = A(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = A(() => t?.value === Ve.before ? n.value : void 0), i = A(() => t?.value === Ve.after ? n.value : void 0);
|
|
612
|
+
return {
|
|
613
|
+
hasIcon: n,
|
|
614
|
+
hasIconLeft: A(() => t?.value === H.left ? n.value : void 0),
|
|
615
|
+
hasIconRight: A(() => t?.value === H.right ? n.value : void 0),
|
|
616
|
+
hasIconTop: A(() => t?.value === H.top ? n.value : void 0),
|
|
617
|
+
hasIconBottom: A(() => t?.value === H.bottom ? n.value : void 0),
|
|
618
|
+
hasIconBefore: r,
|
|
619
|
+
hasIconAfter: i
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
var At = r({
|
|
623
|
+
components: { VvIcon: $ },
|
|
624
|
+
props: {
|
|
625
|
+
inputType: {
|
|
626
|
+
type: String,
|
|
627
|
+
default: "input-text"
|
|
628
|
+
},
|
|
629
|
+
disabled: {
|
|
630
|
+
type: Boolean,
|
|
631
|
+
default: !1
|
|
632
|
+
},
|
|
633
|
+
label: {
|
|
634
|
+
type: String,
|
|
635
|
+
default: "Clear"
|
|
636
|
+
},
|
|
637
|
+
icon: {
|
|
638
|
+
type: [String, Object],
|
|
639
|
+
default: "close"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
emits: ["clear"],
|
|
643
|
+
setup(e, { emit: t }) {
|
|
644
|
+
let { hasIcon: n } = kt(A(() => e.icon));
|
|
645
|
+
function r(n) {
|
|
646
|
+
n?.stopPropagation(), e.disabled || t("clear");
|
|
647
|
+
}
|
|
648
|
+
return {
|
|
649
|
+
hasIcon: n,
|
|
650
|
+
onClick: r
|
|
651
|
+
};
|
|
652
|
+
},
|
|
653
|
+
render() {
|
|
654
|
+
let e = this.hasIcon ? a($, {
|
|
655
|
+
...this.hasIcon,
|
|
656
|
+
class: `vv-${this.inputType}__icon`
|
|
657
|
+
}) : void 0;
|
|
658
|
+
return a("button", {
|
|
659
|
+
disabled: this.disabled,
|
|
660
|
+
class: `vv-${this.inputType}__action`,
|
|
661
|
+
ariaLabel: this.label,
|
|
662
|
+
type: "button",
|
|
663
|
+
onClick: this.onClick
|
|
664
|
+
}, e);
|
|
665
|
+
}
|
|
666
|
+
}), jt = {
|
|
667
|
+
...Q,
|
|
668
|
+
value: [String, Number]
|
|
669
|
+
}, Mt = /* @__PURE__ */ r({
|
|
670
|
+
name: "VvBadge",
|
|
671
|
+
props: jt,
|
|
672
|
+
setup(e) {
|
|
673
|
+
let { modifiers: t } = I(e), r = Ot("vv-badge", t);
|
|
674
|
+
return (e, t) => (u(), F("span", { class: g(C(r)) }, [n(e.$slots, "default", {}, () => [S(v(e.value), 1)])], 2));
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
function Nt(e) {
|
|
678
|
+
let t = k(e, void 0), n = A(() => t !== void 0);
|
|
679
|
+
function r(e, n, r) {
|
|
680
|
+
let i = t?.[e];
|
|
681
|
+
if (i) return A({
|
|
682
|
+
get() {
|
|
683
|
+
return i.value;
|
|
684
|
+
},
|
|
685
|
+
set(e) {
|
|
686
|
+
i.value = e;
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
let a = x(n, e);
|
|
690
|
+
return A({
|
|
691
|
+
get() {
|
|
692
|
+
return a.value;
|
|
693
|
+
},
|
|
694
|
+
set(t) {
|
|
695
|
+
r && r(`update:${e}`, t);
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
return {
|
|
700
|
+
group: t,
|
|
701
|
+
isInGroup: n,
|
|
702
|
+
getGroupOrLocalRef: r
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
var Pt = ["update:modelValue"], Ft = {
|
|
706
|
+
...ht,
|
|
707
|
+
...ut,
|
|
708
|
+
...Q,
|
|
709
|
+
...lt,
|
|
710
|
+
...J,
|
|
711
|
+
...ot,
|
|
712
|
+
iconPosition: {
|
|
713
|
+
type: String,
|
|
714
|
+
default: H.left,
|
|
715
|
+
validator: (e) => Object.values(H).includes(e)
|
|
716
|
+
},
|
|
717
|
+
loadingIcon: {
|
|
718
|
+
type: String,
|
|
719
|
+
default: "eos-icons:bubble-loading"
|
|
720
|
+
},
|
|
721
|
+
toggle: {
|
|
722
|
+
type: Boolean,
|
|
723
|
+
default: !1
|
|
724
|
+
},
|
|
725
|
+
value: {
|
|
726
|
+
type: [
|
|
727
|
+
String,
|
|
728
|
+
Number,
|
|
729
|
+
Boolean
|
|
730
|
+
],
|
|
731
|
+
default: void 0
|
|
732
|
+
},
|
|
733
|
+
uncheckedValue: {
|
|
734
|
+
type: [
|
|
735
|
+
String,
|
|
736
|
+
Number,
|
|
737
|
+
Boolean
|
|
738
|
+
],
|
|
739
|
+
default: void 0
|
|
740
|
+
},
|
|
741
|
+
modelValue: {
|
|
742
|
+
type: [
|
|
743
|
+
String,
|
|
744
|
+
Number,
|
|
745
|
+
Boolean
|
|
746
|
+
],
|
|
747
|
+
default: void 0
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
function It(e, t) {
|
|
751
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Nt(Ke), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = I(e);
|
|
752
|
+
return {
|
|
753
|
+
group: n,
|
|
754
|
+
isInGroup: r,
|
|
755
|
+
modelValue: i("modelValue", e, t),
|
|
756
|
+
toggle: i("toggle", e),
|
|
757
|
+
unselectable: i("unselectable", e),
|
|
758
|
+
multiple: A(() => n?.multiple.value ?? !1),
|
|
759
|
+
modifiers: A(() => {
|
|
760
|
+
let t = e.modifiers, r = n?.modifiers.value, i = /* @__PURE__ */ new Set();
|
|
761
|
+
return t && (Array.isArray(t) || (t = t.split(" ")), t.forEach((e) => i.add(e))), r && (Array.isArray(r) || (r = r.split(" ")), r.forEach((e) => i.add(e))), [...i];
|
|
762
|
+
}),
|
|
763
|
+
disabled: A(() => !!(e.disabled || n?.disabled.value)),
|
|
764
|
+
id: a,
|
|
765
|
+
pressed: l,
|
|
766
|
+
iconPosition: o,
|
|
767
|
+
icon: s,
|
|
768
|
+
label: c
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
var Lt = [
|
|
772
|
+
"click",
|
|
773
|
+
"mouseover",
|
|
774
|
+
"mouseleave"
|
|
775
|
+
];
|
|
776
|
+
function Rt() {
|
|
777
|
+
return k(G, {});
|
|
778
|
+
}
|
|
779
|
+
function zt() {
|
|
780
|
+
return k(qe, {});
|
|
781
|
+
}
|
|
782
|
+
function Bt() {
|
|
783
|
+
return k(K, {});
|
|
784
|
+
}
|
|
785
|
+
var Vt = /* @__PURE__ */ r({
|
|
786
|
+
name: "VvAction",
|
|
787
|
+
props: ht,
|
|
788
|
+
emits: Lt,
|
|
789
|
+
setup(t, { expose: r, emit: i }) {
|
|
790
|
+
let a = t, o = i, s = de(), l = Dt(), f = M(null);
|
|
791
|
+
r({ $el: f });
|
|
792
|
+
let { reference: p, bus: ee, aria: m, expanded: h } = Rt();
|
|
793
|
+
y(() => f.value, (e) => {
|
|
794
|
+
p && (p.value = e);
|
|
795
|
+
});
|
|
796
|
+
let g = A(() => a.pressed || h?.value), { role: _ } = Bt(), te = A(() => {
|
|
797
|
+
switch (!0) {
|
|
798
|
+
case a.disabled: return U.button;
|
|
799
|
+
case a.to !== void 0: return l?.nuxt ? ne(U.nuxtLink) : U.routerLink;
|
|
800
|
+
case a.href !== void 0: return U.a;
|
|
801
|
+
default: return a.defaultTag;
|
|
802
|
+
}
|
|
803
|
+
}), re = A(() => {
|
|
804
|
+
let e = {
|
|
805
|
+
...m?.value,
|
|
806
|
+
ariaPressed: g.value ? !0 : void 0,
|
|
807
|
+
ariaLabel: a.ariaLabel,
|
|
808
|
+
role: _?.value
|
|
809
|
+
};
|
|
810
|
+
switch (te.value) {
|
|
811
|
+
case U.a: return {
|
|
812
|
+
...e,
|
|
813
|
+
href: a.href,
|
|
814
|
+
target: a.target,
|
|
815
|
+
rel: a.rel
|
|
816
|
+
};
|
|
817
|
+
case U.routerLink:
|
|
818
|
+
case U.nuxtLink: return {
|
|
819
|
+
...e,
|
|
820
|
+
to: a.to,
|
|
821
|
+
target: a.target
|
|
822
|
+
};
|
|
823
|
+
case U.button: return {
|
|
824
|
+
...e,
|
|
825
|
+
type: a.type,
|
|
826
|
+
disabled: a.disabled
|
|
827
|
+
};
|
|
828
|
+
default: return e;
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
function b(e) {
|
|
832
|
+
if (a.disabled) {
|
|
833
|
+
e.preventDefault();
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
if (s?.vnode.props?.onClick) {
|
|
837
|
+
o("click", e);
|
|
838
|
+
return;
|
|
839
|
+
}
|
|
840
|
+
ee?.emit("click", e);
|
|
841
|
+
}
|
|
842
|
+
function x(e) {
|
|
843
|
+
if (s?.vnode.props?.onMouseover) {
|
|
844
|
+
o("mouseover", e);
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
ee?.emit("mouseover", e);
|
|
848
|
+
}
|
|
849
|
+
function w(e) {
|
|
850
|
+
if (s?.vnode.props?.onMouseleave) {
|
|
851
|
+
o("mouseleave", e);
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
ee?.emit("mouseleave", e);
|
|
855
|
+
}
|
|
856
|
+
return (t, r) => (u(), E(c(C(te)), d(C(re), {
|
|
857
|
+
ref_key: "rootEl",
|
|
858
|
+
ref: f,
|
|
859
|
+
class: {
|
|
860
|
+
active: t.active,
|
|
861
|
+
pressed: C(g),
|
|
862
|
+
disabled: t.disabled,
|
|
863
|
+
current: t.current
|
|
864
|
+
},
|
|
865
|
+
onClickPassive: b,
|
|
866
|
+
onMouseoverPassive: x,
|
|
867
|
+
onMouseleavePassive: w
|
|
868
|
+
}), {
|
|
869
|
+
default: e(() => [n(t.$slots, "default", {}, () => [S(v(t.label), 1)])]),
|
|
870
|
+
_: 3
|
|
871
|
+
}, 16, ["class"]));
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
function Ht(e) {
|
|
875
|
+
return A(() => String(e?.value || s()));
|
|
876
|
+
}
|
|
877
|
+
var Ut = {
|
|
878
|
+
key: 1,
|
|
879
|
+
class: "vv-button__label"
|
|
880
|
+
}, Wt = {
|
|
881
|
+
key: 1,
|
|
882
|
+
class: "vv-button__label"
|
|
883
|
+
}, Gt = /* @__PURE__ */ r({
|
|
884
|
+
name: "VvButton",
|
|
885
|
+
inheritAttrs: !1,
|
|
886
|
+
props: Ft,
|
|
887
|
+
emits: Pt,
|
|
888
|
+
setup(t, { expose: r, emit: i }) {
|
|
889
|
+
let a = t, o = i, s = re(), c = ce(), { id: l, modifiers: f, iconPosition: p, icon: ee, label: m, modelValue: h, disabled: g, toggle: _, unselectable: te } = It(a, o), ne = Ht(l), y = A(() => s?.name || ne.value), x = M(null);
|
|
890
|
+
r({ $el: A(() => x.value?.$el) });
|
|
891
|
+
let w = A(() => _.value ? Array.isArray(h.value) ? Ct(y.value, h.value) : vt(y.value, h.value) : a.pressed), ie = Ot("vv-button", f, A(() => ({
|
|
892
|
+
reverse: [H.right, H.bottom].includes(p.value),
|
|
893
|
+
column: [H.top, H.bottom].includes(p.value),
|
|
894
|
+
"icon-only": !!(ee?.value && !m?.value && !c.default)
|
|
895
|
+
}))), { hasIcon: ae } = kt(ee), D = A(() => a.value === void 0 ? y.value : a.value), oe = A(() => {
|
|
896
|
+
if (_.value) return { onClick: O };
|
|
897
|
+
});
|
|
898
|
+
function O() {
|
|
899
|
+
if (_.value) {
|
|
900
|
+
if (Array.isArray(h.value)) {
|
|
901
|
+
if (Ct(D.value, h.value)) {
|
|
902
|
+
te.value && (h.value = h.value.filter((e) => e !== D.value));
|
|
903
|
+
return;
|
|
904
|
+
}
|
|
905
|
+
h.value.push(D.value);
|
|
906
|
+
return;
|
|
907
|
+
}
|
|
908
|
+
if (D.value === h.value && te.value) {
|
|
909
|
+
h.value = a.uncheckedValue;
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
h.value = D.value;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
return (t, r) => (u(), E(Vt, d({
|
|
916
|
+
...C(s),
|
|
917
|
+
...C(oe),
|
|
918
|
+
disabled: C(g),
|
|
919
|
+
pressed: C(w),
|
|
920
|
+
active: t.active,
|
|
921
|
+
type: t.type,
|
|
922
|
+
to: t.to,
|
|
923
|
+
href: t.href,
|
|
924
|
+
target: t.target,
|
|
925
|
+
rel: t.rel,
|
|
926
|
+
ariaLabel: t.ariaLabel
|
|
927
|
+
}, {
|
|
928
|
+
id: C(ne),
|
|
929
|
+
ref_key: "rootEl",
|
|
930
|
+
ref: x,
|
|
931
|
+
class: C(ie)
|
|
932
|
+
}), {
|
|
933
|
+
default: e(() => [n(t.$slots, "default", {}, () => [t.loading ? n(t.$slots, "loading", {}, () => [t.loadingIcon ? (u(), E($, {
|
|
934
|
+
key: 0,
|
|
935
|
+
class: "vv-button__loading-icon",
|
|
936
|
+
name: t.loadingIcon
|
|
937
|
+
}, null, 8, ["name"])) : b("v-if", !0), t.loadingLabel ? (u(), F("span", Ut, v(t.loadingLabel), 1)) : b("v-if", !0)], void 0, 0) : (u(), F(T, { key: 1 }, [
|
|
938
|
+
n(t.$slots, "before"),
|
|
939
|
+
C(ae) ? (u(), E($, d({ key: 0 }, C(ae), { class: "vv-button__icon" }), null, 16)) : b("v-if", !0),
|
|
940
|
+
C(m) ? (u(), F("span", Wt, [n(t.$slots, "label", {}, () => [S(v(C(m)), 1)])])) : b("v-if", !0),
|
|
941
|
+
n(t.$slots, "after")
|
|
942
|
+
], 64))])]),
|
|
943
|
+
_: 3
|
|
944
|
+
}, 16, ["id", "class"]));
|
|
945
|
+
}
|
|
946
|
+
}), Kt = {
|
|
947
|
+
...ut,
|
|
948
|
+
...dt,
|
|
949
|
+
...Q,
|
|
950
|
+
modelValue: {
|
|
951
|
+
type: Boolean,
|
|
952
|
+
default: void 0
|
|
953
|
+
},
|
|
954
|
+
reference: {
|
|
955
|
+
type: Object,
|
|
956
|
+
default: null
|
|
957
|
+
},
|
|
958
|
+
role: {
|
|
959
|
+
type: String,
|
|
960
|
+
default: Ue.menu,
|
|
961
|
+
validator: (e) => Object.values(Ue).includes(e)
|
|
962
|
+
}
|
|
963
|
+
}, qt = { focusOnHover: {
|
|
964
|
+
type: Boolean,
|
|
965
|
+
default: !1
|
|
966
|
+
} }, Jt = {
|
|
967
|
+
...Y,
|
|
968
|
+
...Xe,
|
|
969
|
+
...lt,
|
|
970
|
+
...Q,
|
|
971
|
+
deselectHintLabel: { type: String },
|
|
972
|
+
selectHintLabel: { type: String },
|
|
973
|
+
selectedHintLabel: { type: String },
|
|
974
|
+
focusOnHover: {
|
|
975
|
+
type: Boolean,
|
|
976
|
+
default: !1
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
function Yt(e, t) {
|
|
980
|
+
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = A(() => n && he(t)), i = A(() => r.value ? "manual" : void 0);
|
|
981
|
+
function a() {
|
|
982
|
+
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
983
|
+
}
|
|
984
|
+
function o() {
|
|
985
|
+
if (!(!r.value || !e.value?.isConnected || a())) try {
|
|
986
|
+
e.value.showPopover();
|
|
987
|
+
} catch {}
|
|
988
|
+
}
|
|
989
|
+
function s() {
|
|
990
|
+
if (!(!e.value || !a())) try {
|
|
991
|
+
e.value.hidePopover();
|
|
992
|
+
} catch {}
|
|
993
|
+
}
|
|
994
|
+
return {
|
|
995
|
+
isTopLayer: r,
|
|
996
|
+
popover: i,
|
|
997
|
+
show: o,
|
|
998
|
+
hide: s
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
function Xt({ reference: e, id: t, expanded: n, aria: i }) {
|
|
1002
|
+
let o = je();
|
|
1003
|
+
return {
|
|
1004
|
+
bus: o,
|
|
1005
|
+
component: r({
|
|
1006
|
+
name: "VvDropdownTriggerProvider",
|
|
1007
|
+
setup() {
|
|
1008
|
+
h(G, {
|
|
1009
|
+
reference: e,
|
|
1010
|
+
id: t,
|
|
1011
|
+
expanded: n,
|
|
1012
|
+
aria: i,
|
|
1013
|
+
bus: o
|
|
1014
|
+
});
|
|
1015
|
+
},
|
|
1016
|
+
render() {
|
|
1017
|
+
return a(T, {}, this.$slots.default?.());
|
|
1018
|
+
}
|
|
1019
|
+
})
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
function Zt({ role: e, ...t }) {
|
|
1023
|
+
let n = A(() => e.value === Ue.listbox ? We.option : We.presentation);
|
|
1024
|
+
return h(qe, {
|
|
1025
|
+
role: n,
|
|
1026
|
+
...t
|
|
1027
|
+
}), { itemRole: n };
|
|
1028
|
+
}
|
|
1029
|
+
function Qt({ expanded: e }) {
|
|
1030
|
+
h(K, {
|
|
1031
|
+
role: M(W.menuitem),
|
|
1032
|
+
expanded: e
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
var $t = ["popover"], en = [
|
|
1036
|
+
"id",
|
|
1037
|
+
"tabindex",
|
|
1038
|
+
"role",
|
|
1039
|
+
"aria-labelledby"
|
|
1040
|
+
], tn = /* @__PURE__ */ r({
|
|
1041
|
+
name: "VvDropdown",
|
|
1042
|
+
inheritAttrs: !1,
|
|
1043
|
+
props: Kt,
|
|
1044
|
+
emits: [
|
|
1045
|
+
"update:modelValue",
|
|
1046
|
+
"beforeEnter",
|
|
1047
|
+
"afterLeave",
|
|
1048
|
+
"beforeExpand",
|
|
1049
|
+
"beforeCollapse",
|
|
1050
|
+
"afterExpand",
|
|
1051
|
+
"afterCollapse",
|
|
1052
|
+
"before-enter",
|
|
1053
|
+
"after-leave",
|
|
1054
|
+
"enter",
|
|
1055
|
+
"afterEnter",
|
|
1056
|
+
"enterCancelled",
|
|
1057
|
+
"beforeLeave",
|
|
1058
|
+
"leave",
|
|
1059
|
+
"leaveCancelled"
|
|
1060
|
+
],
|
|
1061
|
+
setup(t, { expose: r, emit: a }) {
|
|
1062
|
+
let s = t, c = a, { id: l } = I(s), p = Ht(l), ee = re(), h = M("auto"), v = M("auto"), ne = M(), x = M(), S = M(), ie = M(), E = A({
|
|
1063
|
+
get: () => s.reference ?? ne.value,
|
|
1064
|
+
set: (e) => {
|
|
1065
|
+
ne.value = e;
|
|
1066
|
+
}
|
|
1067
|
+
}), { isTopLayer: oe, popover: O, show: k, hide: se } = Yt(x, () => s.topLayer), j = A(() => oe.value ? ze.fixed : s.strategy), ce = M(!1);
|
|
1068
|
+
o(() => {
|
|
1069
|
+
be(x.value, () => {
|
|
1070
|
+
ce.value = globalThis.getComputedStyle(x.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
1071
|
+
}, {
|
|
1072
|
+
attributeFilter: ["style"],
|
|
1073
|
+
window: globalThis.window
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
function N(e, t, n) {
|
|
1077
|
+
return typeof e == "boolean" ? t() : n(e);
|
|
1078
|
+
}
|
|
1079
|
+
let le = A(() => {
|
|
1080
|
+
let e = [];
|
|
1081
|
+
if (s.autoPlacement ? e.push(N(s.autoPlacement, () => Pe(), (e) => Pe(e))) : s.flip && e.push(N(s.flip, () => Oe({ fallbackStrategy: "initialPlacement" }), (e) => Oe(e))), s.shift && e.push(N(s.shift, () => Fe(), (e) => Fe(e))), s.size) {
|
|
1082
|
+
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
1083
|
+
h.value = `${e}px`, v.value = `${t}px`;
|
|
1084
|
+
};
|
|
1085
|
+
e.push(N(s.size, () => ke({ apply: t }), (e) => ke({
|
|
1086
|
+
...e,
|
|
1087
|
+
apply: t
|
|
1088
|
+
})));
|
|
1089
|
+
}
|
|
1090
|
+
return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? Ne(Number(s.offset)) : Ne(s.offset)), s.arrow && e.push(Ie({ element: S })), e;
|
|
1091
|
+
}), { x: ue, y: de, middlewareData: L, placement: me, strategy: he } = Me(E, x, {
|
|
1092
|
+
whileElementsMounted: (...e) => Ae(...e, { animationFrame: j.value === ze.fixed }),
|
|
1093
|
+
placement: A(() => s.placement),
|
|
1094
|
+
strategy: j,
|
|
1095
|
+
middleware: le
|
|
1096
|
+
}), ge = A(() => {
|
|
1097
|
+
if (ce.value) return;
|
|
1098
|
+
let e = s.triggerWidth && E.value ? `${E.value?.offsetWidth}px` : void 0;
|
|
1099
|
+
return {
|
|
1100
|
+
position: he.value,
|
|
1101
|
+
top: `${de.value ?? 0}px`,
|
|
1102
|
+
left: `${ue.value ?? 0}px`,
|
|
1103
|
+
maxWidth: e ? void 0 : h.value,
|
|
1104
|
+
maxHeight: v.value,
|
|
1105
|
+
width: e
|
|
1106
|
+
};
|
|
1107
|
+
}), _e = A(() => me.value.split("-")[0]), R = A(() => {
|
|
1108
|
+
if (ce.value) return;
|
|
1109
|
+
let e = {
|
|
1110
|
+
[H.top]: H.bottom,
|
|
1111
|
+
[H.right]: H.left,
|
|
1112
|
+
[H.bottom]: H.top,
|
|
1113
|
+
[H.left]: H.right
|
|
1114
|
+
}[_e.value];
|
|
1115
|
+
return {
|
|
1116
|
+
left: L.value.arrow?.x === void 0 ? void 0 : `${L.value.arrow?.x}px`,
|
|
1117
|
+
top: L.value.arrow?.y === void 0 ? void 0 : `${L.value.arrow?.y}px`,
|
|
1118
|
+
[e]: `${-(S.value?.offsetWidth ?? 0) / 2}px`
|
|
1119
|
+
};
|
|
1120
|
+
}), ve = Se(s, "modelValue", c), ye = M(!1), z = A({
|
|
1121
|
+
get: () => ve.value ?? ye.value,
|
|
1122
|
+
set: (e) => {
|
|
1123
|
+
if (ve.value === void 0) {
|
|
1124
|
+
ye.value = e;
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
ve.value = e;
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
m(() => {
|
|
1131
|
+
z.value && k();
|
|
1132
|
+
});
|
|
1133
|
+
function Ee() {
|
|
1134
|
+
z.value = !0;
|
|
1135
|
+
}
|
|
1136
|
+
function De() {
|
|
1137
|
+
z.value = !1;
|
|
1138
|
+
}
|
|
1139
|
+
function je() {
|
|
1140
|
+
z.value = !z.value;
|
|
1141
|
+
}
|
|
1142
|
+
function B(e) {
|
|
1143
|
+
E.value = e;
|
|
1144
|
+
}
|
|
1145
|
+
Ce(x, () => {
|
|
1146
|
+
!s.keepOpen && z.value && (z.value = !1);
|
|
1147
|
+
}, { ignore: [E] });
|
|
1148
|
+
let Le = A(() => E.value?.getAttribute?.("id") ?? void 0), V = A(() => ({
|
|
1149
|
+
"aria-controls": p.value,
|
|
1150
|
+
"aria-haspopup": !0,
|
|
1151
|
+
"aria-expanded": z.value
|
|
1152
|
+
})), { component: Re, bus: Be } = Xt({
|
|
1153
|
+
reference: E,
|
|
1154
|
+
id: p,
|
|
1155
|
+
expanded: z,
|
|
1156
|
+
aria: V
|
|
1157
|
+
});
|
|
1158
|
+
Be.on("click", je);
|
|
1159
|
+
let { role: Ve, modifiers: He } = I(s), U = Ot("vv-dropdown", He, A(() => ({ arrow: s.arrow }))), { focused: W } = xe(x);
|
|
1160
|
+
function Ue(e) {
|
|
1161
|
+
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
1162
|
+
}
|
|
1163
|
+
function We() {
|
|
1164
|
+
f(() => {
|
|
1165
|
+
let e = Ue(x.value);
|
|
1166
|
+
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
function Ge() {
|
|
1170
|
+
f(() => {
|
|
1171
|
+
let e = Ue(ie.value);
|
|
1172
|
+
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
function Ke() {
|
|
1176
|
+
f(() => {
|
|
1177
|
+
if (W.value) {
|
|
1178
|
+
let e = Ue(x.value);
|
|
1179
|
+
if (e.length === 0 || !document.activeElement) return;
|
|
1180
|
+
let t = e.indexOf(document.activeElement);
|
|
1181
|
+
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
function G() {
|
|
1186
|
+
f(() => {
|
|
1187
|
+
if (W.value) {
|
|
1188
|
+
let e = Ue(x.value);
|
|
1189
|
+
if (e.length === 0 || !document.activeElement) return;
|
|
1190
|
+
let t = e.indexOf(document.activeElement);
|
|
1191
|
+
if (t > 0) {
|
|
1192
|
+
e[t - 1].focus({ preventScroll: !0 });
|
|
1193
|
+
return;
|
|
1194
|
+
}
|
|
1195
|
+
e.at(-1)?.focus({ preventScroll: !0 });
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
y(z, (e) => {
|
|
1200
|
+
e && s.autofocusFirst && We();
|
|
1201
|
+
}), r({
|
|
1202
|
+
toggle: je,
|
|
1203
|
+
show: Ee,
|
|
1204
|
+
hide: De,
|
|
1205
|
+
init: B,
|
|
1206
|
+
focusFirst: We,
|
|
1207
|
+
focusFirstListElement: Ge,
|
|
1208
|
+
focusNext: Ke,
|
|
1209
|
+
focusPrev: G,
|
|
1210
|
+
customPosition: ce
|
|
1211
|
+
});
|
|
1212
|
+
let { itemRole: qe } = Zt({
|
|
1213
|
+
role: Ve,
|
|
1214
|
+
expanded: z,
|
|
1215
|
+
focused: W,
|
|
1216
|
+
hovered: we(x)
|
|
1217
|
+
});
|
|
1218
|
+
Te("Escape", (e) => {
|
|
1219
|
+
z.value && (e.preventDefault(), De());
|
|
1220
|
+
}), Te("ArrowDown", (e) => {
|
|
1221
|
+
z.value && W.value && (e.preventDefault(), Ke());
|
|
1222
|
+
}), Te("ArrowUp", (e) => {
|
|
1223
|
+
z.value && W.value && (e.preventDefault(), G());
|
|
1224
|
+
}), Te([" ", "Enter"], (e) => {
|
|
1225
|
+
let t = e.target;
|
|
1226
|
+
z.value && W.value && t && t?.click();
|
|
1227
|
+
});
|
|
1228
|
+
let K = {
|
|
1229
|
+
"before-enter": () => {
|
|
1230
|
+
c(z.value ? "beforeExpand" : "beforeCollapse"), c("beforeEnter");
|
|
1231
|
+
},
|
|
1232
|
+
"after-leave": () => {
|
|
1233
|
+
z.value || se(), c(z.value ? "afterExpand" : "afterCollapse"), c("afterLeave");
|
|
1234
|
+
},
|
|
1235
|
+
enter: () => {
|
|
1236
|
+
c("enter");
|
|
1237
|
+
},
|
|
1238
|
+
"after-enter": () => {
|
|
1239
|
+
c("afterEnter");
|
|
1240
|
+
},
|
|
1241
|
+
"enter-cancelled": () => {
|
|
1242
|
+
c("enterCancelled");
|
|
1243
|
+
},
|
|
1244
|
+
"before-leave": () => {
|
|
1245
|
+
c("beforeLeave");
|
|
1246
|
+
},
|
|
1247
|
+
leave: () => {
|
|
1248
|
+
c("leave");
|
|
1249
|
+
},
|
|
1250
|
+
"leave-cancelled": () => {
|
|
1251
|
+
c("leaveCancelled");
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
return (t, r) => (u(), F(T, null, [pe(C(Re), null, {
|
|
1255
|
+
default: e(() => [n(t.$slots, "default", i(_({
|
|
1256
|
+
init: B,
|
|
1257
|
+
show: Ee,
|
|
1258
|
+
hide: De,
|
|
1259
|
+
toggle: je,
|
|
1260
|
+
expanded: C(z),
|
|
1261
|
+
aria: C(V)
|
|
1262
|
+
})))]),
|
|
1263
|
+
_: 3
|
|
1264
|
+
}), pe(P, d({ name: t.transitionName }, te(K), { persisted: "" }), {
|
|
1265
|
+
default: e(() => [ae(D("div", {
|
|
1266
|
+
ref_key: "floatingEl",
|
|
1267
|
+
ref: x,
|
|
1268
|
+
popover: C(O),
|
|
1269
|
+
style: fe(C(ge)),
|
|
1270
|
+
class: g(C(U))
|
|
1271
|
+
}, [
|
|
1272
|
+
s.arrow ? (u(), F("div", {
|
|
1273
|
+
key: 0,
|
|
1274
|
+
ref_key: "arrowEl",
|
|
1275
|
+
ref: S,
|
|
1276
|
+
style: fe(C(R)),
|
|
1277
|
+
class: "vv-dropdown__arrow"
|
|
1278
|
+
}, null, 4)) : b("v-if", !0),
|
|
1279
|
+
n(t.$slots, "before", i(_({
|
|
1280
|
+
show: Ee,
|
|
1281
|
+
hide: De,
|
|
1282
|
+
toggle: je,
|
|
1283
|
+
expanded: C(z)
|
|
1284
|
+
}))),
|
|
1285
|
+
D("div", d(C(ee), {
|
|
1286
|
+
id: C(p),
|
|
1287
|
+
ref_key: "listEl",
|
|
1288
|
+
ref: ie,
|
|
1289
|
+
tabindex: C(z) ? void 0 : -1,
|
|
1290
|
+
role: C(Ve),
|
|
1291
|
+
"aria-labelledby": C(Le),
|
|
1292
|
+
class: "vv-dropdown__list"
|
|
1293
|
+
}), [n(t.$slots, "items", i(_({
|
|
1294
|
+
show: Ee,
|
|
1295
|
+
hide: De,
|
|
1296
|
+
toggle: je,
|
|
1297
|
+
expanded: C(z),
|
|
1298
|
+
role: C(qe)
|
|
1299
|
+
})))], 16, en),
|
|
1300
|
+
n(t.$slots, "after", i(_({
|
|
1301
|
+
show: Ee,
|
|
1302
|
+
hide: De,
|
|
1303
|
+
toggle: je,
|
|
1304
|
+
expanded: C(z)
|
|
1305
|
+
})))
|
|
1306
|
+
], 14, $t), [[w, C(z)]])]),
|
|
1307
|
+
_: 3
|
|
1308
|
+
}, 16, ["name"])], 64));
|
|
1309
|
+
}
|
|
1310
|
+
}), nn = {
|
|
1311
|
+
class: "vv-dropdown-optgroup",
|
|
1312
|
+
role: "presentation",
|
|
1313
|
+
tabindex: "-1"
|
|
1314
|
+
}, rn = /* @__PURE__ */ r({
|
|
1315
|
+
name: "VvDropdownOptgroup",
|
|
1316
|
+
props: { ...et },
|
|
1317
|
+
setup(e) {
|
|
1318
|
+
let t = e;
|
|
1319
|
+
return (e, r) => (u(), F("li", nn, [n(e.$slots, "default", {}, () => [S(v(t.label), 1)])]));
|
|
1320
|
+
}
|
|
1321
|
+
}), an = /* @__PURE__ */ r({
|
|
1322
|
+
name: "VvDropdownItem",
|
|
1323
|
+
props: qt,
|
|
1324
|
+
setup(e) {
|
|
1325
|
+
let t = e, { role: r, expanded: i } = zt(), a = M(null);
|
|
1326
|
+
Qt({ expanded: i });
|
|
1327
|
+
let o = we(a), { focused: s } = ye(a), { focused: c } = xe(a);
|
|
1328
|
+
return y(o, (e) => {
|
|
1329
|
+
e && t.focusOnHover && (s.value = !0);
|
|
1330
|
+
}), (e, t) => (u(), F("div", d({ role: C(r) }, {
|
|
1331
|
+
ref_key: "element",
|
|
1332
|
+
ref: a,
|
|
1333
|
+
class: ["vv-dropdown__item", { "focus-visible": C(s) || C(c) }]
|
|
1334
|
+
}), [n(e.$slots, "default")], 16));
|
|
1335
|
+
}
|
|
1336
|
+
}), on = ["title"], sn = /* @__PURE__ */ r({
|
|
1337
|
+
name: "VvDropdownOption",
|
|
1338
|
+
props: Jt,
|
|
1339
|
+
setup(t) {
|
|
1340
|
+
let r = t, { modifiers: a } = I(r), o = Ot("vv-dropdown-option", a, A(() => ({
|
|
1341
|
+
disabled: r.disabled,
|
|
1342
|
+
selected: r.selected,
|
|
1343
|
+
unselectable: r.unselectable && r.selected
|
|
1344
|
+
}))), s = A(() => r.selected ? r.unselectable ? r.deselectHintLabel : r.selectedHintLabel : r.disabled ? "" : r.selectHintLabel);
|
|
1345
|
+
return (t, r) => (u(), E(an, {
|
|
1346
|
+
class: g(C(o)),
|
|
1347
|
+
tabindex: t.disabled ? -1 : 0,
|
|
1348
|
+
"aria-selected": t.selected,
|
|
1349
|
+
"aria-disabled": t.disabled,
|
|
1350
|
+
"focus-on-hover": t.focusOnHover
|
|
1351
|
+
}, {
|
|
1352
|
+
default: e(() => [n(t.$slots, "default"), D("span", {
|
|
1353
|
+
class: "vv-dropdown-option__hint",
|
|
1354
|
+
title: C(s)
|
|
1355
|
+
}, [n(t.$slots, "hint", i(_({
|
|
1356
|
+
disabled: t.disabled,
|
|
1357
|
+
selected: t.selected,
|
|
1358
|
+
unselectable: t.unselectable
|
|
1359
|
+
})), () => [S(v(C(s)), 1)])], 8, on)]),
|
|
1360
|
+
_: 3
|
|
1361
|
+
}, 8, [
|
|
1362
|
+
"class",
|
|
1363
|
+
"tabindex",
|
|
1364
|
+
"aria-selected",
|
|
1365
|
+
"aria-disabled",
|
|
1366
|
+
"focus-on-hover"
|
|
1367
|
+
]));
|
|
1368
|
+
}
|
|
1369
|
+
}), cn = {
|
|
1370
|
+
...ft,
|
|
1371
|
+
...pt,
|
|
1372
|
+
...mt,
|
|
1373
|
+
...st,
|
|
1374
|
+
...Ye,
|
|
1375
|
+
...q,
|
|
1376
|
+
...nt,
|
|
1377
|
+
...J,
|
|
1378
|
+
...Y,
|
|
1379
|
+
...tt,
|
|
1380
|
+
...Q,
|
|
1381
|
+
...rt,
|
|
1382
|
+
...ot,
|
|
1383
|
+
...ct,
|
|
1384
|
+
...lt,
|
|
1385
|
+
...et,
|
|
1386
|
+
...Z,
|
|
1387
|
+
multiple: Boolean,
|
|
1388
|
+
required: Boolean,
|
|
1389
|
+
size: [String, Number],
|
|
1390
|
+
modelValue: {
|
|
1391
|
+
type: [
|
|
1392
|
+
String,
|
|
1393
|
+
Number,
|
|
1394
|
+
Boolean,
|
|
1395
|
+
Object,
|
|
1396
|
+
Array
|
|
1397
|
+
],
|
|
1398
|
+
default: void 0
|
|
1399
|
+
},
|
|
1400
|
+
autoselectFirst: {
|
|
1401
|
+
type: Boolean,
|
|
1402
|
+
default: !1
|
|
1403
|
+
},
|
|
1404
|
+
placeholder: String
|
|
1405
|
+
};
|
|
1406
|
+
function ln() {
|
|
1407
|
+
return {
|
|
1408
|
+
...cn,
|
|
1409
|
+
options: {
|
|
1410
|
+
...cn.options,
|
|
1411
|
+
type: Array,
|
|
1412
|
+
default: () => []
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
function un(e, t, n) {
|
|
1417
|
+
let r = t;
|
|
1418
|
+
if (Array.isArray(e) && e.length) {
|
|
1419
|
+
let i = e[0];
|
|
1420
|
+
i() === t && (r = n);
|
|
1421
|
+
}
|
|
1422
|
+
if (typeof e == "function" && e() === t && (r = n), typeof e == "object") {
|
|
1423
|
+
let i = e.default;
|
|
1424
|
+
typeof i == "function" && (i = i()), (typeof i == "object" ? JSON.stringify(i) === JSON.stringify(t) : i === t) && (r = n);
|
|
1425
|
+
}
|
|
1426
|
+
return r;
|
|
1427
|
+
}
|
|
1428
|
+
function dn(e, t, n) {
|
|
1429
|
+
let r = Dt(), i = A(() => {
|
|
1430
|
+
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1431
|
+
});
|
|
1432
|
+
return A(() => {
|
|
1433
|
+
if (i.value === void 0) return n;
|
|
1434
|
+
let e = i.value, r = t, a = n;
|
|
1435
|
+
return Object.keys(r).reduce((t, n) => {
|
|
1436
|
+
let i = a[n];
|
|
1437
|
+
return t[n] = n in e ? un(r[n], i, e[n]) : i, t;
|
|
1438
|
+
}, {});
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
function fn(e, t) {
|
|
1442
|
+
let { focused: n } = ye(e);
|
|
1443
|
+
return y(n, (n) => {
|
|
1444
|
+
t(n ? "focus" : "blur", C(e));
|
|
1445
|
+
}), { focused: n };
|
|
1446
|
+
}
|
|
1447
|
+
function pn(e) {
|
|
1448
|
+
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = I(e);
|
|
1449
|
+
return {
|
|
1450
|
+
options: t,
|
|
1451
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? B(e, n.value) : e),
|
|
1452
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? B(e, r.value) : e,
|
|
1453
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!B(e, i.value) : !1,
|
|
1454
|
+
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
var mn = ["for"], hn = { class: "vv-select__wrapper" }, gn = {
|
|
1458
|
+
key: 0,
|
|
1459
|
+
class: "vv-select__input-before"
|
|
1460
|
+
}, _n = { class: "vv-select__inner" }, vn = ["id"], yn = ["disabled", "hidden"], bn = ["disabled", "value"], xn = ["disabled", "label"], Sn = ["disabled", "value"], Cn = {
|
|
1461
|
+
key: 2,
|
|
1462
|
+
class: "vv-select__input-after"
|
|
1463
|
+
}, wn = /* @__PURE__ */ r({
|
|
1464
|
+
name: "VvSelect",
|
|
1465
|
+
props: ln(),
|
|
1466
|
+
emits: [
|
|
1467
|
+
"update:modelValue",
|
|
1468
|
+
"focus",
|
|
1469
|
+
"blur",
|
|
1470
|
+
"clear"
|
|
1471
|
+
],
|
|
1472
|
+
setup(t, { emit: r }) {
|
|
1473
|
+
let a = t, o = r, s = ce(), c = dn("VvSelect", ln(), a), l = M(), { HintSlot: f, hasHintLabelOrSlot: p, hasInvalidLabelOrSlot: ee, hintSlotScope: m } = Et(c, s), { focused: h } = fn(l, o);
|
|
1474
|
+
function te(e) {
|
|
1475
|
+
return typeof e != "string" && e.options?.length;
|
|
1476
|
+
}
|
|
1477
|
+
let { id: ne, modifiers: re, disabled: x, readonly: S, loading: w, icon: oe, iconPosition: O, invalid: k, valid: se, floating: N, multiple: le } = I(a), P = Ht(ne), ue = A(() => `${P.value}-hint`), de = A(() => a.disabled || a.readonly), fe = A(() => de.value ? -1 : a.tabindex), L = A({
|
|
1478
|
+
get: () => a.modelValue,
|
|
1479
|
+
set: (e) => {
|
|
1480
|
+
if (Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !a.unselectable && l.value)) {
|
|
1481
|
+
l.value.value = String(a.modelValue);
|
|
1482
|
+
return;
|
|
1483
|
+
}
|
|
1484
|
+
o("update:modelValue", e);
|
|
1485
|
+
}
|
|
1486
|
+
}), he = A(() => Array.isArray(L.value) ? L.value.length > 0 : L.value !== void 0 && L.value !== null), _e = A(() => !de.value && a.unselectable), R = Ee(l);
|
|
1487
|
+
y(R, (e) => {
|
|
1488
|
+
e && a.autofocus && (h.value = !0);
|
|
1489
|
+
});
|
|
1490
|
+
let { hasIconBefore: ve, hasIconAfter: ye } = kt(oe, O), be = A(() => {
|
|
1491
|
+
if (a.invalid === !0) return !0;
|
|
1492
|
+
if (a.valid === !0) return !1;
|
|
1493
|
+
}), z = Ot("vv-select", re, A(() => ({
|
|
1494
|
+
valid: se.value,
|
|
1495
|
+
invalid: k.value,
|
|
1496
|
+
loading: w.value,
|
|
1497
|
+
disabled: x.value,
|
|
1498
|
+
readonly: S.value,
|
|
1499
|
+
"icon-before": ve.value !== void 0,
|
|
1500
|
+
"icon-after": ye.value !== void 0,
|
|
1501
|
+
dirty: he.value,
|
|
1502
|
+
focus: h.value && !de.value,
|
|
1503
|
+
floating: N.value,
|
|
1504
|
+
multiple: le.value
|
|
1505
|
+
}))), { getOptionLabel: xe, getOptionValue: Se, isOptionDisabled: Ce, getOptionGrouped: we } = pn(a);
|
|
1506
|
+
y(() => a.options, (e) => {
|
|
1507
|
+
if (e?.length && a.autoselectFirst && !he.value) {
|
|
1508
|
+
let t = Se(e[0]);
|
|
1509
|
+
L.value = a.multiple ? [t] : t;
|
|
1510
|
+
}
|
|
1511
|
+
}, { immediate: !0 });
|
|
1512
|
+
function Te() {
|
|
1513
|
+
Array.isArray(L.value) ? L.value = [] : L.value = void 0, o("clear");
|
|
1514
|
+
}
|
|
1515
|
+
let De = A(() => ({
|
|
1516
|
+
name: a.name,
|
|
1517
|
+
tabindex: fe.value,
|
|
1518
|
+
disabled: de.value,
|
|
1519
|
+
required: a.required,
|
|
1520
|
+
size: a.size,
|
|
1521
|
+
autocomplete: a.autocomplete,
|
|
1522
|
+
multiple: a.multiple,
|
|
1523
|
+
"aria-invalid": be.value,
|
|
1524
|
+
"aria-describedby": p.value ? ue.value : void 0,
|
|
1525
|
+
"aria-errormessage": ee.value ? ue.value : void 0
|
|
1526
|
+
})), Oe = A(() => ({
|
|
1527
|
+
valid: a.valid,
|
|
1528
|
+
invalid: a.invalid,
|
|
1529
|
+
modelValue: a.modelValue
|
|
1530
|
+
}));
|
|
1531
|
+
return (t, r) => (u(), F("div", { class: g(C(z)) }, [
|
|
1532
|
+
t.label ? (u(), F("label", {
|
|
1533
|
+
key: 0,
|
|
1534
|
+
for: C(P)
|
|
1535
|
+
}, v(t.label), 9, mn)) : b("v-if", !0),
|
|
1536
|
+
D("div", hn, [
|
|
1537
|
+
t.$slots.before ? (u(), F("div", gn, [n(t.$slots, "before", i(_(C(Oe))))])) : b("v-if", !0),
|
|
1538
|
+
D("div", _n, [
|
|
1539
|
+
C(ve) ? (u(), E($, d({ key: 0 }, C(ve), { class: "vv-select__icon" }), null, 16)) : b("v-if", !0),
|
|
1540
|
+
ae(D("select", d({
|
|
1541
|
+
id: C(P),
|
|
1542
|
+
ref_key: "selectEl",
|
|
1543
|
+
ref: l
|
|
1544
|
+
}, C(De), { "onUpdate:modelValue": r[0] ||= (e) => ie(L) ? L.value = e : null }), [t.placeholder ? (u(), F("option", {
|
|
1545
|
+
key: 0,
|
|
1546
|
+
value: void 0,
|
|
1547
|
+
disabled: !C(_e),
|
|
1548
|
+
hidden: !C(_e)
|
|
1549
|
+
}, v(t.placeholder), 9, yn)) : b("v-if", !0), (u(!0), F(T, null, ge(t.options, (e, t) => (u(), F(T, null, [te(e) ? (u(), F("optgroup", {
|
|
1550
|
+
key: `group-${t}`,
|
|
1551
|
+
disabled: C(Ce)(e),
|
|
1552
|
+
label: C(xe)(e)
|
|
1553
|
+
}, [(u(!0), F(T, null, ge(C(we)(e), (e, n) => (u(), F("option", {
|
|
1554
|
+
key: `group-${t}-item-${n}`,
|
|
1555
|
+
disabled: C(Ce)(e),
|
|
1556
|
+
value: C(Se)(e)
|
|
1557
|
+
}, v(C(xe)(e)), 9, Sn))), 128))], 8, xn)) : (u(), F("option", {
|
|
1558
|
+
key: t,
|
|
1559
|
+
disabled: C(Ce)(e),
|
|
1560
|
+
value: C(Se)(e)
|
|
1561
|
+
}, v(C(xe)(e)), 9, bn))], 64))), 256))], 16, vn), [[j, C(L)]]),
|
|
1562
|
+
C(ye) ? (u(), E($, d({ key: 1 }, C(ye), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : b("v-if", !0)
|
|
1563
|
+
]),
|
|
1564
|
+
C(_e) && C(c).showClearAction ? (u(), E(C(At), {
|
|
1565
|
+
key: 1,
|
|
1566
|
+
"input-type": "select",
|
|
1567
|
+
label: t.labelClear,
|
|
1568
|
+
icon: t.iconClear,
|
|
1569
|
+
disabled: !C(he),
|
|
1570
|
+
onClear: Te
|
|
1571
|
+
}, null, 8, [
|
|
1572
|
+
"label",
|
|
1573
|
+
"icon",
|
|
1574
|
+
"disabled"
|
|
1575
|
+
])) : b("v-if", !0),
|
|
1576
|
+
t.$slots.after ? (u(), F("div", Cn, [n(t.$slots, "after", i(_(C(Oe))))])) : b("v-if", !0)
|
|
1577
|
+
]),
|
|
1578
|
+
pe(C(f), {
|
|
1579
|
+
id: C(ue),
|
|
1580
|
+
class: "vv-select__hint"
|
|
1581
|
+
}, me({ _: 2 }, [
|
|
1582
|
+
t.$slots.hint ? {
|
|
1583
|
+
name: "hint",
|
|
1584
|
+
fn: e(() => [n(t.$slots, "hint", i(_(C(m))))]),
|
|
1585
|
+
key: "0"
|
|
1586
|
+
} : void 0,
|
|
1587
|
+
t.$slots.loading ? {
|
|
1588
|
+
name: "loading",
|
|
1589
|
+
fn: e(() => [n(t.$slots, "loading", i(_(C(m))))]),
|
|
1590
|
+
key: "1"
|
|
1591
|
+
} : void 0,
|
|
1592
|
+
t.$slots.valid ? {
|
|
1593
|
+
name: "valid",
|
|
1594
|
+
fn: e(() => [n(t.$slots, "valid", i(_(C(m))))]),
|
|
1595
|
+
key: "2"
|
|
1596
|
+
} : void 0,
|
|
1597
|
+
t.$slots.invalid ? {
|
|
1598
|
+
name: "invalid",
|
|
1599
|
+
fn: e(() => [n(t.$slots, "invalid", i(_(C(m))))]),
|
|
1600
|
+
key: "3"
|
|
1601
|
+
} : void 0
|
|
1602
|
+
]), 1032, ["id"])
|
|
1603
|
+
], 2));
|
|
1604
|
+
}
|
|
1605
|
+
}), Tn = ["id"], En = ["id", "for"], Dn = [
|
|
1606
|
+
"id",
|
|
1607
|
+
"aria-controls",
|
|
1608
|
+
"placeholder"
|
|
1609
|
+
], On = {
|
|
1610
|
+
key: 0,
|
|
1611
|
+
class: "vv-select__input-before"
|
|
1612
|
+
}, kn = { class: "vv-select__inner" }, An = [
|
|
1613
|
+
"aria-controls",
|
|
1614
|
+
"aria-expanded",
|
|
1615
|
+
"aria-labelledby",
|
|
1616
|
+
"aria-describedby",
|
|
1617
|
+
"aria-errormessage",
|
|
1618
|
+
"tabindex"
|
|
1619
|
+
], jn = {
|
|
1620
|
+
key: 0,
|
|
1621
|
+
class: "vv-select__value"
|
|
1622
|
+
}, Mn = ["aria-label", "onClick"], Nn = {
|
|
1623
|
+
key: 2,
|
|
1624
|
+
class: "vv-select__input-after"
|
|
1625
|
+
}, Pn = /* @__PURE__ */ r({
|
|
1626
|
+
name: "VvCombobox",
|
|
1627
|
+
components: {
|
|
1628
|
+
VvDropdown: tn,
|
|
1629
|
+
VvDropdownOption: sn,
|
|
1630
|
+
VvDropdownOptgroup: rn,
|
|
1631
|
+
VvButton: Gt
|
|
1632
|
+
},
|
|
1633
|
+
props: /* @__PURE__ */ O(_t(), {
|
|
1634
|
+
search: {
|
|
1635
|
+
type: String,
|
|
1636
|
+
default: "",
|
|
1637
|
+
required: !1
|
|
1638
|
+
},
|
|
1639
|
+
searchModifiers: {}
|
|
1640
|
+
}),
|
|
1641
|
+
emits: /* @__PURE__ */ O([
|
|
1642
|
+
"update:modelValue",
|
|
1643
|
+
"update:search",
|
|
1644
|
+
"update:options",
|
|
1645
|
+
"focus",
|
|
1646
|
+
"blur",
|
|
1647
|
+
"clear",
|
|
1648
|
+
"change:search"
|
|
1649
|
+
], ["update:search"]),
|
|
1650
|
+
setup(t, { emit: r }) {
|
|
1651
|
+
let a = t, o = r, s = ce(), c = dn("VvCombobox", _t(), a), f = M(null), p = M(null), m = M(null), h = M(), { HintSlot: te, hasHintLabelOrSlot: ne, hasInvalidLabelOrSlot: re, hintSlotScope: x } = Et(c, s), { focused: w } = fn(f, o), { focused: oe } = xe(m), O;
|
|
1652
|
+
function k() {
|
|
1653
|
+
clearTimeout(O), O = setTimeout(() => {
|
|
1654
|
+
!w.value && !oe.value && P.value && L();
|
|
1655
|
+
}, 50);
|
|
1656
|
+
}
|
|
1657
|
+
ee(() => clearTimeout(O)), y(w, (e) => {
|
|
1658
|
+
if (a.autoOpen) {
|
|
1659
|
+
if (e && !P.value) {
|
|
1660
|
+
clearTimeout(O), fe();
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
!e && P.value && !oe.value && k();
|
|
1664
|
+
}
|
|
1665
|
+
}), y(oe, (e) => {
|
|
1666
|
+
if (e) {
|
|
1667
|
+
clearTimeout(O);
|
|
1668
|
+
return;
|
|
1669
|
+
}
|
|
1670
|
+
!w.value && P.value && k();
|
|
1671
|
+
});
|
|
1672
|
+
let j = l(t, "search"), N = z(j, A(() => Number(a.debounceSearch)));
|
|
1673
|
+
y(N, () => {
|
|
1674
|
+
o("update:search", N.value), o("change:search", N.value);
|
|
1675
|
+
});
|
|
1676
|
+
let P = M(!1);
|
|
1677
|
+
function de() {
|
|
1678
|
+
B.value || (P.value = !P.value);
|
|
1679
|
+
}
|
|
1680
|
+
function fe() {
|
|
1681
|
+
B.value || P.value || (P.value = !0);
|
|
1682
|
+
}
|
|
1683
|
+
function L() {
|
|
1684
|
+
B.value || !P.value || (P.value = !1);
|
|
1685
|
+
}
|
|
1686
|
+
function he() {
|
|
1687
|
+
c.value.searchable && p.value && p.value.focus({ preventScroll: !0 });
|
|
1688
|
+
}
|
|
1689
|
+
function _e() {
|
|
1690
|
+
c.value.keepSearch || (j.value = "");
|
|
1691
|
+
}
|
|
1692
|
+
function R(e) {
|
|
1693
|
+
return typeof e != "string" && e.options?.length;
|
|
1694
|
+
}
|
|
1695
|
+
let { id: ve, icon: ye, iconPosition: be, modifiers: Se, disabled: Ce, required: we, readonly: Ee, loading: Oe, valid: ke, invalid: Ae, floating: je } = I(a), Me = Ht(ve), Ne = A(() => `${Me.value}-hint`), Pe = A(() => `${Me.value}-dropdown`), Fe = A(() => `${Me.value}-search`), Ie = A(() => `${Me.value}-label`), B = A(() => a.disabled || a.readonly), Le = A(() => B.value ? -1 : a.tabindex), V = A({
|
|
1696
|
+
get: () => Array.isArray(a.modelValue) ? a.modelValue : a.modelValue !== void 0 && a.modelValue !== null ? [a.modelValue] : [],
|
|
1697
|
+
set: (e) => {
|
|
1698
|
+
o("update:modelValue", a.multiple || Array.isArray(a.modelValue) ? e : e.pop());
|
|
1699
|
+
}
|
|
1700
|
+
}), Re = A(() => V.value.length), ze = A(() => Re.value > 0), H = A(() => a.multiple ? a.maxValues === void 0 ? 1 / 0 : Number(a.maxValues) : 1), Be = A(() => B.value || !a.unselectable ? !1 : Number(a.minValues) === 0 || Re.value > Number(a.minValues)), Ve = A(() => B.value ? !1 : !a.multiple || Re.value < H.value), He = M(!1), U = A(() => He.value || Oe.value), { hasIconBefore: W, hasIconAfter: We } = kt(ye, be), Ge = Ot("vv-select", Se, A(() => ({
|
|
1701
|
+
disabled: Ce.value,
|
|
1702
|
+
required: we.value,
|
|
1703
|
+
loading: U.value,
|
|
1704
|
+
readonly: Ee.value,
|
|
1705
|
+
"icon-before": W.value !== void 0,
|
|
1706
|
+
"icon-after": We.value !== void 0,
|
|
1707
|
+
valid: ke.value,
|
|
1708
|
+
invalid: Ae.value,
|
|
1709
|
+
dirty: ze.value,
|
|
1710
|
+
focus: (w.value || oe.value || P.value) && !B.value,
|
|
1711
|
+
floating: je.value,
|
|
1712
|
+
badges: a.badges
|
|
1713
|
+
}))), Ke = M(/* @__PURE__ */ new Set()), { getOptionLabel: G, getOptionValue: qe, getOptionGrouped: K, isOptionDisabled: Je } = pn(a), Ye = A(() => {
|
|
1714
|
+
let e = [...Ke.value];
|
|
1715
|
+
for (let t of a.options) R(t) ? e.push(...K(t)) : e.push(t);
|
|
1716
|
+
return e;
|
|
1717
|
+
}), q = A(() => {
|
|
1718
|
+
let e = [...a.options, ...Ke.value];
|
|
1719
|
+
for (let t of V.value) Ye.value.some((e) => {
|
|
1720
|
+
let n = qe(e);
|
|
1721
|
+
return typeof n == "object" && typeof t == "object" ? JSON.stringify(n) === JSON.stringify(t) : n === t;
|
|
1722
|
+
}) || e.push(t);
|
|
1723
|
+
return e;
|
|
1724
|
+
});
|
|
1725
|
+
y(Ke, (e) => {
|
|
1726
|
+
e.size > 0 && o("update:options", q.value);
|
|
1727
|
+
});
|
|
1728
|
+
function J(e) {
|
|
1729
|
+
return Je(e) || !Ve.value && !X(e);
|
|
1730
|
+
}
|
|
1731
|
+
let Y = De(async () => {
|
|
1732
|
+
if (c.value.searchFunction) {
|
|
1733
|
+
He.value = !0;
|
|
1734
|
+
let e = await Promise.resolve(c.value.searchFunction(N.value, q.value));
|
|
1735
|
+
return He.value = !1, e;
|
|
1736
|
+
}
|
|
1737
|
+
let e = N.value.toLowerCase().trim();
|
|
1738
|
+
return e ? q.value?.reduce((t, n) => {
|
|
1739
|
+
if (R(n)) {
|
|
1740
|
+
let r = G(n).toLowerCase(), i = K(n).filter((t) => G(t).toLowerCase().includes(e));
|
|
1741
|
+
if (r.includes(e)) t.push(n);
|
|
1742
|
+
else if (i.length > 0) {
|
|
1743
|
+
let e = typeof n == "object" ? {
|
|
1744
|
+
...n,
|
|
1745
|
+
options: i
|
|
1746
|
+
} : n;
|
|
1747
|
+
t.push(e);
|
|
1748
|
+
}
|
|
1749
|
+
return t;
|
|
1750
|
+
}
|
|
1751
|
+
return G(n).toLowerCase().includes(e) && t.push(n), t;
|
|
1752
|
+
}, []) : q.value;
|
|
1753
|
+
});
|
|
1754
|
+
function X(e) {
|
|
1755
|
+
let t = qe(e);
|
|
1756
|
+
return typeof t == "object" ? V.value.some((e) => typeof e == "object" && JSON.stringify(e) === JSON.stringify(t)) : V.value.includes(t);
|
|
1757
|
+
}
|
|
1758
|
+
let Xe = A(() => q.value.reduce((e, t) => R(t) ? [...e, ...K(t)] : [...e, t], []).filter((e) => X(e))), Ze = A(() => Xe.value.map((e) => G(e)).join(a.separator));
|
|
1759
|
+
function Qe() {
|
|
1760
|
+
a.autoOpen ? fe() : de();
|
|
1761
|
+
}
|
|
1762
|
+
function Z(e) {
|
|
1763
|
+
let t = X(e), n = qe(e);
|
|
1764
|
+
t && Be.value ? V.value = V.value.filter((e) => typeof n == "object" && typeof e == "object" ? JSON.stringify(e) !== JSON.stringify(n) : e !== n) : !t && Ve.value && (a.multiple ? V.value = [...V.value, n] : V.value = [n]), !a.multiple && !a.keepOpen && L();
|
|
1765
|
+
}
|
|
1766
|
+
function $e() {
|
|
1767
|
+
V.value = [], o("update:search", ""), o("clear");
|
|
1768
|
+
}
|
|
1769
|
+
y(q, (e) => {
|
|
1770
|
+
if (e?.length && a.autoselectFirst && !ze.value) {
|
|
1771
|
+
let t = e.find((e) => !R(e));
|
|
1772
|
+
if (t) {
|
|
1773
|
+
Z(t);
|
|
1774
|
+
return;
|
|
1775
|
+
}
|
|
1776
|
+
let n = e.find((e) => R(e));
|
|
1777
|
+
if (n) {
|
|
1778
|
+
let e = K(n);
|
|
1779
|
+
e.length && Z(e[0]);
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
}, { immediate: !0 });
|
|
1783
|
+
let et = A(() => ({
|
|
1784
|
+
id: Me.value,
|
|
1785
|
+
name: a.name,
|
|
1786
|
+
tabindex: Le.value,
|
|
1787
|
+
valid: ke.value,
|
|
1788
|
+
validLabel: c.value.validLabel,
|
|
1789
|
+
invalid: Ae.value,
|
|
1790
|
+
invalidLabel: c.value.invalidLabel,
|
|
1791
|
+
hintLabel: c.value.hintLabel,
|
|
1792
|
+
loading: U.value,
|
|
1793
|
+
loadingLabel: c.value.loadingLabel,
|
|
1794
|
+
disabled: Ce.value,
|
|
1795
|
+
readonly: Ee.value,
|
|
1796
|
+
modifiers: c.value.modifiers,
|
|
1797
|
+
options: c.value.options,
|
|
1798
|
+
labelKey: c.value.labelKey,
|
|
1799
|
+
valueKey: c.value.valueKey,
|
|
1800
|
+
icon: c.value.icon,
|
|
1801
|
+
iconPosition: c.value.iconPosition,
|
|
1802
|
+
floating: c.value.floating,
|
|
1803
|
+
unselectable: Be.value,
|
|
1804
|
+
autoselectFirst: c.value.autoselectFirst,
|
|
1805
|
+
multiple: c.value.multiple,
|
|
1806
|
+
label: c.value.label,
|
|
1807
|
+
placeholder: c.value.placeholder,
|
|
1808
|
+
modelValue: a.modelValue
|
|
1809
|
+
})), tt = A(() => ({
|
|
1810
|
+
id: Pe.value,
|
|
1811
|
+
reference: m.value,
|
|
1812
|
+
placement: c.value.placement,
|
|
1813
|
+
strategy: c.value.strategy,
|
|
1814
|
+
transitionName: c.value.transitionName,
|
|
1815
|
+
offset: c.value.offset,
|
|
1816
|
+
shift: c.value.shift,
|
|
1817
|
+
flip: c.value.flip,
|
|
1818
|
+
autoPlacement: c.value.autoPlacement,
|
|
1819
|
+
arrow: c.value.arrow,
|
|
1820
|
+
autofocusFirst: c.value.searchable ? !0 : c.value.autofocusFirst,
|
|
1821
|
+
triggerWidth: c.value.triggerWidth,
|
|
1822
|
+
topLayer: c.value.topLayer,
|
|
1823
|
+
modifiers: c.value.dropdownModifiers
|
|
1824
|
+
})), Q = A(() => ({
|
|
1825
|
+
valid: a.valid,
|
|
1826
|
+
invalid: a.invalid,
|
|
1827
|
+
modelValue: a.modelValue
|
|
1828
|
+
}));
|
|
1829
|
+
Te([" ", "Enter"], (e) => {
|
|
1830
|
+
a.autoOpen || !P.value && w.value && (e.preventDefault(), e.stopImmediatePropagation(), de());
|
|
1831
|
+
}, { target: f });
|
|
1832
|
+
function nt() {
|
|
1833
|
+
if (Y.value?.length) {
|
|
1834
|
+
if (Y.value.length === 1) {
|
|
1835
|
+
let e = Y.value[0];
|
|
1836
|
+
if (R(e)) {
|
|
1837
|
+
let t = K(e);
|
|
1838
|
+
t.length && Z(t[0]);
|
|
1839
|
+
return;
|
|
1840
|
+
}
|
|
1841
|
+
Z(e);
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
h.value?.focusFirstListElement();
|
|
1845
|
+
return;
|
|
1846
|
+
}
|
|
1847
|
+
if (c.value.addable) {
|
|
1848
|
+
let e = j.value.trim();
|
|
1849
|
+
if (!e || Ye.value.some((t) => G(t).toLowerCase() === e.toLowerCase())) return;
|
|
1850
|
+
Ke.value.add(e), Z(e);
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
return (t, r) => t.native ? (u(), E(wn, d({ key: 1 }, C(et), { "onUpdate:modelValue": r[3] ||= (e) => o("update:modelValue", e) }), null, 16)) : (u(), F("div", {
|
|
1854
|
+
key: 0,
|
|
1855
|
+
id: C(Me),
|
|
1856
|
+
class: g(C(Ge))
|
|
1857
|
+
}, [
|
|
1858
|
+
t.label ? (u(), F("label", {
|
|
1859
|
+
key: 0,
|
|
1860
|
+
id: C(Ie),
|
|
1861
|
+
for: C(c).searchable ? C(Fe) : void 0
|
|
1862
|
+
}, v(t.label), 9, En)) : b("v-if", !0),
|
|
1863
|
+
D("div", {
|
|
1864
|
+
ref_key: "wrapperEl",
|
|
1865
|
+
ref: m,
|
|
1866
|
+
class: "vv-select__wrapper"
|
|
1867
|
+
}, [pe(tn, d({
|
|
1868
|
+
ref_key: "dropdownEl",
|
|
1869
|
+
ref: h,
|
|
1870
|
+
modelValue: C(P),
|
|
1871
|
+
"onUpdate:modelValue": r[2] ||= (e) => ie(P) ? P.value = e : null
|
|
1872
|
+
}, C(tt), {
|
|
1873
|
+
role: C(Ue).listbox,
|
|
1874
|
+
onAfterExpand: he,
|
|
1875
|
+
onAfterCollapse: _e
|
|
1876
|
+
}), me({
|
|
1877
|
+
default: e(({ aria: r }) => [
|
|
1878
|
+
t.$slots.before ? (u(), F("div", On, [n(t.$slots, "before", i(_(C(Q))))])) : b("v-if", !0),
|
|
1879
|
+
D("div", kn, [
|
|
1880
|
+
C(W) ? (u(), E($, d({ key: 0 }, C(W), { class: "vv-select__icon" }), null, 16)) : b("v-if", !0),
|
|
1881
|
+
D("div", d({
|
|
1882
|
+
ref_key: "inputEl",
|
|
1883
|
+
ref: f
|
|
1884
|
+
}, r, {
|
|
1885
|
+
class: "vv-select__input",
|
|
1886
|
+
role: "combobox",
|
|
1887
|
+
"aria-controls": C(Pe),
|
|
1888
|
+
"aria-expanded": C(P),
|
|
1889
|
+
"aria-labelledby": C(Ie),
|
|
1890
|
+
"aria-describedby": C(ne) ? C(Ne) : void 0,
|
|
1891
|
+
"aria-errormessage": C(re) ? C(Ne) : void 0,
|
|
1892
|
+
tabindex: C(Le),
|
|
1893
|
+
onClickPassive: Qe
|
|
1894
|
+
}), [C(Ze) ? n(t.$slots, "value", i(_({
|
|
1895
|
+
selectedOptions: C(Xe),
|
|
1896
|
+
onInput: Z
|
|
1897
|
+
})), () => [t.badges ? (u(!0), F(T, { key: 1 }, ge(C(Xe), (n, r) => (u(), E(Mt, {
|
|
1898
|
+
key: r,
|
|
1899
|
+
modifiers: t.badgeModifiers,
|
|
1900
|
+
class: "vv-select__badge"
|
|
1901
|
+
}, {
|
|
1902
|
+
default: e(() => [S(v(C(G)(n)) + " ", 1), C(Be) ? (u(), F("button", {
|
|
1903
|
+
key: 0,
|
|
1904
|
+
"aria-label": C(c).deselectActionLabel,
|
|
1905
|
+
type: "button",
|
|
1906
|
+
onClick: ue((e) => Z(n), ["stop"])
|
|
1907
|
+
}, [pe($, { name: "close" })], 8, Mn)) : b("v-if", !0)]),
|
|
1908
|
+
_: 2
|
|
1909
|
+
}, 1032, ["modifiers"]))), 128)) : (u(), F("div", jn, v(C(Ze)), 1))], void 0, 0) : n(t.$slots, "placeholder", {}, () => [S(v(t.placeholder), 1)], void 0, 1)], 16, An),
|
|
1910
|
+
C(We) ? (u(), E($, d({ key: 1 }, C(We), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : b("v-if", !0)
|
|
1911
|
+
]),
|
|
1912
|
+
C(Be) && C(c).showClearAction ? (u(), E(C(At), {
|
|
1913
|
+
key: 1,
|
|
1914
|
+
"input-type": "select",
|
|
1915
|
+
label: t.labelClear,
|
|
1916
|
+
icon: t.iconClear,
|
|
1917
|
+
disabled: !C(ze),
|
|
1918
|
+
onClear: $e
|
|
1919
|
+
}, null, 8, [
|
|
1920
|
+
"label",
|
|
1921
|
+
"icon",
|
|
1922
|
+
"disabled"
|
|
1923
|
+
])) : b("v-if", !0),
|
|
1924
|
+
t.$slots.after ? (u(), F("div", Nn, [n(t.$slots, "after", i(_(C(Q))))])) : b("v-if", !0)
|
|
1925
|
+
]),
|
|
1926
|
+
items: e(() => [!C(Ce) && C(Y)?.length ? (u(!0), F(T, { key: 0 }, ge(C(Y), (r, i) => (u(), F(T, { key: i }, [R(r) ? (u(), F(T, { key: 0 }, [pe(rn, { label: C(G)(r) }, {
|
|
1927
|
+
default: e(() => [n(t.$slots, "option-group", d({ ref_for: !0 }, {
|
|
1928
|
+
option: r,
|
|
1929
|
+
selectedOptions: C(Xe)
|
|
1930
|
+
}), () => [S(v(C(G)(r)), 1)])]),
|
|
1931
|
+
_: 2
|
|
1932
|
+
}, 1032, ["label"]), (u(!0), F(T, null, ge(C(K)(r), (r, i) => (u(), E(sn, d({ ref_for: !0 }, {
|
|
1933
|
+
selected: X(r),
|
|
1934
|
+
disabled: J(r),
|
|
1935
|
+
unselectable: C(Be),
|
|
1936
|
+
deselectHintLabel: C(c).deselectHintLabel,
|
|
1937
|
+
selectHintLabel: C(c).selectHintLabel,
|
|
1938
|
+
selectedHintLabel: C(c).selectedHintLabel,
|
|
1939
|
+
focusOnHover: t.focusOnHover
|
|
1940
|
+
}, {
|
|
1941
|
+
key: i,
|
|
1942
|
+
class: "vv-dropdown-option",
|
|
1943
|
+
onClickPassive: (e) => Z(r)
|
|
1944
|
+
}), {
|
|
1945
|
+
default: e(() => [n(t.$slots, "option", d({ ref_for: !0 }, {
|
|
1946
|
+
option: r,
|
|
1947
|
+
selectedOptions: C(Xe),
|
|
1948
|
+
selected: X(r),
|
|
1949
|
+
disabled: J(r)
|
|
1950
|
+
}), () => [S(v(C(G)(r)), 1)])]),
|
|
1951
|
+
_: 2
|
|
1952
|
+
}, 1040, ["onClickPassive"]))), 128))], 64)) : (u(), E(sn, d({
|
|
1953
|
+
key: 1,
|
|
1954
|
+
ref_for: !0
|
|
1955
|
+
}, {
|
|
1956
|
+
selected: X(r),
|
|
1957
|
+
disabled: J(r),
|
|
1958
|
+
unselectable: C(Be),
|
|
1959
|
+
deselectHintLabel: C(c).deselectHintLabel,
|
|
1960
|
+
selectHintLabel: C(c).selectHintLabel,
|
|
1961
|
+
selectedHintLabel: C(c).selectedHintLabel,
|
|
1962
|
+
focusOnHover: t.focusOnHover
|
|
1963
|
+
}, {
|
|
1964
|
+
class: "vv-dropdown-option",
|
|
1965
|
+
onClickPassive: (e) => Z(r)
|
|
1966
|
+
}), {
|
|
1967
|
+
default: e(() => [n(t.$slots, "option", d({ ref_for: !0 }, {
|
|
1968
|
+
option: r,
|
|
1969
|
+
selectedOptions: C(Xe),
|
|
1970
|
+
selected: X(r),
|
|
1971
|
+
disabled: J(r)
|
|
1972
|
+
}), () => [S(v(C(G)(r)), 1)])]),
|
|
1973
|
+
_: 2
|
|
1974
|
+
}, 1040, ["onClickPassive"]))], 64))), 128)) : t.options.length ? (u(), E(sn, {
|
|
1975
|
+
key: 2,
|
|
1976
|
+
modifiers: "inert"
|
|
1977
|
+
}, {
|
|
1978
|
+
default: e(() => [n(t.$slots, "no-results", {}, () => [S(v(C(c).addable ? C(c).addOptionHintLabel : C(c).noResultsLabel), 1)])]),
|
|
1979
|
+
_: 3
|
|
1980
|
+
})) : (u(), E(sn, {
|
|
1981
|
+
key: 1,
|
|
1982
|
+
modifiers: "inert"
|
|
1983
|
+
}, {
|
|
1984
|
+
default: e(() => [n(t.$slots, "no-options", {}, () => [S(v(C(c).addable && j.value.length ? C(c).addOptionHintLabel : C(c).noOptionsLabel), 1)])]),
|
|
1985
|
+
_: 3
|
|
1986
|
+
}))]),
|
|
1987
|
+
after: e(() => [n(t.$slots, "dropdown::after", {}, () => [C(h)?.customPosition ? (u(), E(Gt, {
|
|
1988
|
+
key: 0,
|
|
1989
|
+
label: C(c).closeLabel,
|
|
1990
|
+
modifiers: "secondary",
|
|
1991
|
+
onClick: r[1] ||= (e) => C(h).hide()
|
|
1992
|
+
}, null, 8, ["label"])) : b("v-if", !0)])]),
|
|
1993
|
+
_: 2
|
|
1994
|
+
}, [C(c).searchable || t.$slots["dropdown::before"] ? {
|
|
1995
|
+
name: "before",
|
|
1996
|
+
fn: e(() => [n(t.$slots, "dropdown::before"), C(c).searchable && !C(Ce) ? ae((u(), F("input", {
|
|
1997
|
+
key: 0,
|
|
1998
|
+
id: C(Fe),
|
|
1999
|
+
ref_key: "inputSearchEl",
|
|
2000
|
+
ref: p,
|
|
2001
|
+
"onUpdate:modelValue": r[0] ||= (e) => j.value = e,
|
|
2002
|
+
"aria-autocomplete": "list",
|
|
2003
|
+
"aria-controls": C(Pe),
|
|
2004
|
+
autocomplete: "off",
|
|
2005
|
+
spellcheck: "false",
|
|
2006
|
+
type: "search",
|
|
2007
|
+
class: "vv-dropdown__search",
|
|
2008
|
+
placeholder: C(c).searchPlaceholder,
|
|
2009
|
+
onKeyup: se(nt, ["enter"])
|
|
2010
|
+
}, null, 40, Dn)), [[le, j.value]]) : b("v-if", !0)]),
|
|
2011
|
+
key: "0"
|
|
2012
|
+
} : void 0]), 1040, ["modelValue", "role"])], 512),
|
|
2013
|
+
pe(C(te), {
|
|
2014
|
+
id: C(Ne),
|
|
2015
|
+
class: "vv-select__hint"
|
|
2016
|
+
}, me({ _: 2 }, [
|
|
2017
|
+
t.$slots.hint ? {
|
|
2018
|
+
name: "hint",
|
|
2019
|
+
fn: e(() => [n(t.$slots, "hint", i(_(C(x))))]),
|
|
2020
|
+
key: "0"
|
|
2021
|
+
} : void 0,
|
|
2022
|
+
t.$slots.loading ? {
|
|
2023
|
+
name: "loading",
|
|
2024
|
+
fn: e(() => [n(t.$slots, "loading", i(_(C(x))))]),
|
|
2025
|
+
key: "1"
|
|
2026
|
+
} : void 0,
|
|
2027
|
+
t.$slots.valid ? {
|
|
2028
|
+
name: "valid",
|
|
2029
|
+
fn: e(() => [n(t.$slots, "valid", i(_(C(x))))]),
|
|
2030
|
+
key: "2"
|
|
2031
|
+
} : void 0,
|
|
2032
|
+
t.$slots.invalid ? {
|
|
2033
|
+
name: "invalid",
|
|
2034
|
+
fn: e(() => [n(t.$slots, "invalid", i(_(C(x))))]),
|
|
2035
|
+
key: "3"
|
|
2036
|
+
} : void 0
|
|
2037
|
+
]), 1032, ["id"])
|
|
2038
|
+
], 10, Tn));
|
|
2039
|
+
}
|
|
2040
|
+
});
|
|
2041
|
+
//#endregion
|
|
2042
|
+
export { Pn as default };
|
|
2043
|
+
|
|
2044
|
+
//# sourceMappingURL=VvCombobox.es-DxhDF7ab.js.map
|