@8wave/ai-elements 0.127.0-beta.3 → 0.127.0-beta.5
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/{PkChatbotFilePreview-BpiLld3D.js → PkChatbotFilePreview-CWzGSq-b.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-BpiLld3D.js.map → PkChatbotFilePreview-CWzGSq-b.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js → PkEditorRadioButtons-CA1ul6tY.js} +3 -3
- package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js.map → PkEditorRadioButtons-CA1ul6tY.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-qTCDbut0.js → PkFilePreview-BaJet5cw.js} +5 -5
- package/dist/_chunks/{PkFilePreview-qTCDbut0.js.map → PkFilePreview-BaJet5cw.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js → PkFilePreviewDialog-Cq8DGCD1.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js.map → PkFilePreviewDialog-Cq8DGCD1.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-5nu3We9d.js → PkHeldImage-BWz13OCH.js} +2 -2
- package/dist/_chunks/{PkHeldImage-5nu3We9d.js.map → PkHeldImage-BWz13OCH.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js → PkImageEditorDialog-5Px7Y_8G.js} +5 -5
- package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js.map → PkImageEditorDialog-5Px7Y_8G.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-DZaX3wM4.js → PkLazyImg-DYjihkLA.js} +2 -2
- package/dist/_chunks/{PkLazyImg-DZaX3wM4.js.map → PkLazyImg-DYjihkLA.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js → PkSelectionActions-DDhbwE4U.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js.map → PkSelectionActions-DDhbwE4U.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js → PkToolChatFile-fTo6gdqx.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js.map → PkToolChatFile-fTo6gdqx.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js → PkToolRequestGeolocation-BeFZQQxz.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js.map → PkToolRequestGeolocation-BeFZQQxz.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js → PkToolRequestOAuthConnection-_01ct5du.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js.map → PkToolRequestOAuthConnection-_01ct5du.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js → PkToolShareDocument-Vpv1an0N.js} +3 -3
- package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js.map → PkToolShareDocument-Vpv1an0N.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js → PkToolShowArtifact-C28dOM5W.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js.map → PkToolShowArtifact-C28dOM5W.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js → PkToolShowCalendarEvent-Cee5xnJM.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js.map → PkToolShowCalendarEvent-Cee5xnJM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js → PkToolShowChart-kgCDHWEf.js} +3 -3
- package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js.map → PkToolShowChart-kgCDHWEf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js → PkToolShowComparison-cXfmgJ1H.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js.map → PkToolShowComparison-cXfmgJ1H.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js → PkToolShowContactForm-D06qrkHm.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js.map → PkToolShowContactForm-D06qrkHm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js → PkToolShowDiagram-B2NX-FOw.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js.map → PkToolShowDiagram-B2NX-FOw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js → PkToolShowEmail-D-JnkL9A.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js.map → PkToolShowEmail-D-JnkL9A.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js → PkToolShowForm-qj_f9Z5D.js} +16 -16
- package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js.map → PkToolShowForm-qj_f9Z5D.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js → PkToolShowImageGallery-Dm2UEfWl.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js.map → PkToolShowImageGallery-Dm2UEfWl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js → PkToolShowLocation-McS9sMWJ.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js.map → PkToolShowLocation-McS9sMWJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js → PkToolShowMessage-C3jjCRB3.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js.map → PkToolShowMessage-C3jjCRB3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js → PkToolShowProductList-DorHQJMd.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js.map → PkToolShowProductList-DorHQJMd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js → PkToolShowQrCode-CIwiAzOS.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js.map → PkToolShowQrCode-CIwiAzOS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-vSr080EU.js → PkToolShowSources-BMJeacz7.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-vSr080EU.js.map → PkToolShowSources-BMJeacz7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js → PkToolShowSuggestedReply-DBfeOl05.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js.map → PkToolShowSuggestedReply-DBfeOl05.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js → PkToolShowVideo-YwSq8c2P.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js.map → PkToolShowVideo-YwSq8c2P.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js → PkToolShowWeather-DFNz0ZAW.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js.map → PkToolShowWeather-DFNz0ZAW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js → PkToolShowWebPages-DtZC0KHO.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js.map → PkToolShowWebPages-DtZC0KHO.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js → VvButtonLocalized-DfLLySHy.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js.map → VvButtonLocalized-DfLLySHy.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js → VvCheckbox.es-CEwVNJz3.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js.map → VvCheckbox.es-CEwVNJz3.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js → VvCheckboxGroup.es-BC9At7ZZ.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js.map → VvCheckboxGroup.es-BC9At7ZZ.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-BJzmLeTh.js → VvCombobox.es-ZJ44baFa.js} +741 -705
- package/dist/_chunks/VvCombobox.es-ZJ44baFa.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-CHcdm2K-.js → VvInputText.es-D1K-kOt5.js} +356 -320
- package/dist/_chunks/VvInputText.es-D1K-kOt5.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-B3IskaN4.js → VvRadio.es-Bkn-qtRB.js} +2 -2
- package/dist/_chunks/{VvRadio.es-B3IskaN4.js.map → VvRadio.es-Bkn-qtRB.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js → VvRadioGroup.es-BtyqGx_o.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js.map → VvRadioGroup.es-BtyqGx_o.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-CAVvkyxB.js → VvSelect.es-CKHcpSZS.js} +2 -2
- package/dist/_chunks/{VvSelect.es-CAVvkyxB.js.map → VvSelect.es-CKHcpSZS.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-CgvZOWO4.js → VvTextarea.es-Ewp88vJ2.js} +397 -361
- package/dist/_chunks/VvTextarea.es-Ewp88vJ2.js.map +1 -0
- package/dist/_chunks/{index.es-B9l77u9z.js → index.es-DHeth3Ja.js} +660 -624
- package/dist/_chunks/index.es-DHeth3Ja.js.map +1 -0
- package/dist/_chunks/{index.es-vCE-6U81.js → index.es-EKiTmBsm.js} +10 -10
- package/dist/_chunks/{index.es-vCE-6U81.js.map → index.es-EKiTmBsm.js.map} +1 -1
- package/dist/ai-elements.es.js +80 -80
- 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-B2SwBImk.js → PkChatbot-CuCgECW2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-B2SwBImk.js.map → PkChatbot-CuCgECW2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js → PkChatbotAuth-Bx14Ld4t.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js.map → PkChatbotAuth-Bx14Ld4t.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js → PkChatbotFeedbackForm-Dwsln0GO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js.map → PkChatbotFeedbackForm-Dwsln0GO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js → PkChatbotMessages-CDDoxZAf.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js.map → PkChatbotMessages-CDDoxZAf.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DPk9LjX-.js → PkChatbotViewChat-FtOpDmks.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-DPk9LjX-.js.map → PkChatbotViewChat-FtOpDmks.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-DLJ2wTHk.js → PkFilePreview-B6PSJcvA.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-DLJ2wTHk.js.map → PkFilePreview-B6PSJcvA.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-CDPZ3QIk.js → PkFilePreviewDialog-3HJbVudc.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-CDPZ3QIk.js.map → PkFilePreviewDialog-3HJbVudc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js → PkToolShowContactForm-Cg2TiqP1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js.map → PkToolShowContactForm-Cg2TiqP1.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-Snvt_nNd.js → index.es-B9iCRzfa.js} +2 -2
- package/dist-vue/_chunks/{index.es-Snvt_nNd.js.map → index.es-B9iCRzfa.js.map} +1 -1
- package/dist-vue/index.js +8 -8
- package/package.json +2 -2
- package/dist/_chunks/VvCombobox.es-BJzmLeTh.js.map +0 -1
- package/dist/_chunks/VvInputText.es-CHcdm2K-.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-CgvZOWO4.js.map +0 -1
- package/dist/_chunks/index.es-B9l77u9z.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, I as l, J as u, K as d, L as ee, M as f, N as p, Ot as m, P as h, Q as g, S as _, St as te, T as ne, Tt as v, U as y, V as b, W as x, Y as re, _ as S, b as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as
|
|
4
|
-
import { S as
|
|
5
|
-
import { t as
|
|
6
|
-
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
7
|
-
|
|
8
|
-
var
|
|
1
|
+
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, I as l, J as u, K as d, L as ee, M as f, N as p, Ot as m, P as h, Q as g, S as _, St as te, T as ne, Tt as v, U as y, V as b, W as x, Y as re, _ as S, b as ie, bt as ae, c as oe, d as se, et as ce, f as C, g as le, gt as w, h as T, k as ue, kt as E, l as de, nt as fe, ot as pe, q as D, r as me, s as he, t as ge, tt as O, u as _e, ut as ve, v as k, w as A, wt as j, x as M, xt as N, y as P, z as F } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
2
|
+
import { a as ye, i as I, t as be } from "./iconify-BsIVfdEw.js";
|
|
3
|
+
import { a as xe, c as Se, i as Ce, l as we, n as Te, o as Ee, r as De, s as Oe, t as ke } from "./floating-ui.vue-SbFDfAS7.js";
|
|
4
|
+
import { S as Ae, c as je, d as Me, f as Ne, g as Pe, n as Fe, p as Ie, r as Le, t as Re, u as L, w as R } from "./dist-CR8l0inH.js";
|
|
5
|
+
import { t as z } from "./dot-prop-Dmp6Zjqs.js";
|
|
6
|
+
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.29_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_141a5f629ec2c5ee32df74e62e6bb55d/node_modules/@volverjs/ui-vue/dist/components/VvCombobox/VvCombobox.es.js
|
|
7
|
+
ue(), me(), pe(), v();
|
|
8
|
+
var B = {
|
|
9
9
|
showPassword: "eye-on",
|
|
10
10
|
hidePassword: "eye-off",
|
|
11
11
|
showDatePicker: "calendar",
|
|
@@ -16,27 +16,27 @@ var V = {
|
|
|
16
16
|
remove: "trash",
|
|
17
17
|
edit: "edit",
|
|
18
18
|
download: "download"
|
|
19
|
-
},
|
|
19
|
+
}, V = { prefix: "normal" }, ze = /* @__PURE__ */ (function(e) {
|
|
20
20
|
return e.local = "local", e.session = "session", e;
|
|
21
|
-
})({}),
|
|
21
|
+
})({}), Be = /* @__PURE__ */ (function(e) {
|
|
22
22
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
23
|
-
})({}),
|
|
23
|
+
})({}), H = /* @__PURE__ */ (function(e) {
|
|
24
24
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
25
|
-
})({}),
|
|
25
|
+
})({}), Ve = /* @__PURE__ */ (function(e) {
|
|
26
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
|
-
})({}),
|
|
27
|
+
})({}), He = /* @__PURE__ */ (function(e) {
|
|
28
28
|
return e.before = "before", e.after = "after", e;
|
|
29
|
-
})({}),
|
|
29
|
+
})({}), Ue = /* @__PURE__ */ (function(e) {
|
|
30
30
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
31
|
-
})({}),
|
|
31
|
+
})({}), U = /* @__PURE__ */ (function(e) {
|
|
32
32
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
33
|
-
})({}),
|
|
33
|
+
})({}), We = /* @__PURE__ */ (function(e) {
|
|
34
34
|
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
35
|
-
})({}),
|
|
35
|
+
})({}), Ge = /* @__PURE__ */ (function(e) {
|
|
36
36
|
return e.listbox = "listbox", e.menu = "menu", e;
|
|
37
|
-
})({}),
|
|
37
|
+
})({}), Ke = /* @__PURE__ */ (function(e) {
|
|
38
38
|
return e.option = "option", e.presentation = "presentation", e;
|
|
39
|
-
})({}),
|
|
39
|
+
})({}), qe = /* @__PURE__ */ Symbol.for("volver"), W = /* @__PURE__ */ Symbol.for("buttonGroup"), G = /* @__PURE__ */ Symbol.for("dropdownTrigger"), K = /* @__PURE__ */ Symbol.for("dropdownItem"), Je = /* @__PURE__ */ Symbol.for("dropdownAction"), Ye = {
|
|
40
40
|
to: { type: [String, Object] },
|
|
41
41
|
href: String,
|
|
42
42
|
target: String,
|
|
@@ -77,35 +77,35 @@ var V = {
|
|
|
77
77
|
} }, Z = { required: {
|
|
78
78
|
type: Boolean,
|
|
79
79
|
default: !1
|
|
80
|
-
} },
|
|
80
|
+
} }, Xe = { selected: {
|
|
81
81
|
type: Boolean,
|
|
82
82
|
default: !1
|
|
83
|
-
} },
|
|
83
|
+
} }, Ze = { active: {
|
|
84
84
|
type: Boolean,
|
|
85
85
|
default: !1
|
|
86
|
-
} },
|
|
86
|
+
} }, Q = { current: {
|
|
87
87
|
type: Boolean,
|
|
88
88
|
default: !1
|
|
89
|
-
} },
|
|
89
|
+
} }, Qe = {
|
|
90
90
|
showClearAction: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: !1
|
|
93
93
|
},
|
|
94
94
|
iconClear: {
|
|
95
95
|
type: [String, Object],
|
|
96
|
-
default:
|
|
96
|
+
default: B.clear
|
|
97
97
|
},
|
|
98
98
|
labelClear: {
|
|
99
99
|
type: String,
|
|
100
100
|
default: "Clear"
|
|
101
101
|
}
|
|
102
|
-
},
|
|
102
|
+
}, $e = { pressed: {
|
|
103
103
|
type: Boolean,
|
|
104
104
|
default: !1
|
|
105
|
-
} },
|
|
105
|
+
} }, et = { label: {
|
|
106
106
|
type: [String, Number],
|
|
107
107
|
default: void 0
|
|
108
|
-
} },
|
|
108
|
+
} }, tt = {
|
|
109
109
|
ariaLabel: {
|
|
110
110
|
type: String,
|
|
111
111
|
default: void 0
|
|
@@ -118,16 +118,16 @@ var V = {
|
|
|
118
118
|
type: String,
|
|
119
119
|
default: void 0
|
|
120
120
|
}
|
|
121
|
-
},
|
|
121
|
+
}, nt = { readonly: {
|
|
122
122
|
type: Boolean,
|
|
123
123
|
default: !1
|
|
124
124
|
} }, $ = { modifiers: {
|
|
125
125
|
type: [String, Array],
|
|
126
126
|
default: void 0
|
|
127
|
-
} },
|
|
127
|
+
} }, rt = { hintLabel: {
|
|
128
128
|
type: String,
|
|
129
129
|
default: ""
|
|
130
|
-
} },
|
|
130
|
+
} }, it = {
|
|
131
131
|
options: {
|
|
132
132
|
type: Array,
|
|
133
133
|
default: () => []
|
|
@@ -144,7 +144,7 @@ var V = {
|
|
|
144
144
|
type: [String, Function],
|
|
145
145
|
default: "disabled"
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, at = { count: {
|
|
148
148
|
type: [Boolean, String],
|
|
149
149
|
default: !1,
|
|
150
150
|
validator: (e) => [
|
|
@@ -153,38 +153,38 @@ var V = {
|
|
|
153
153
|
"limit",
|
|
154
154
|
"countdown"
|
|
155
155
|
].includes(e)
|
|
156
|
-
} },
|
|
156
|
+
} }, ot = { debounce: {
|
|
157
157
|
type: [Number, String],
|
|
158
158
|
default: void 0
|
|
159
|
-
} },
|
|
159
|
+
} }, st = {
|
|
160
160
|
icon: {
|
|
161
161
|
type: [String, Object],
|
|
162
162
|
default: void 0
|
|
163
163
|
},
|
|
164
164
|
iconPosition: {
|
|
165
165
|
type: String,
|
|
166
|
-
default:
|
|
167
|
-
validator: (e) => Object.values(
|
|
166
|
+
default: He.before,
|
|
167
|
+
validator: (e) => Object.values(He).includes(e)
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, ct = { tabindex: {
|
|
170
170
|
type: [String, Number],
|
|
171
171
|
default: 0
|
|
172
|
-
} },
|
|
172
|
+
} }, lt = { floating: {
|
|
173
173
|
type: Boolean,
|
|
174
174
|
default: !1
|
|
175
|
-
} },
|
|
175
|
+
} }, ut = { unselectable: {
|
|
176
176
|
type: Boolean,
|
|
177
177
|
default: !0
|
|
178
|
-
} },
|
|
178
|
+
} }, dt = { id: [String, Number] }, ft = {
|
|
179
179
|
placement: {
|
|
180
180
|
type: String,
|
|
181
|
-
default:
|
|
182
|
-
validator: (e) => Object.values(
|
|
181
|
+
default: H.bottom,
|
|
182
|
+
validator: (e) => Object.values(H).includes(e) || Object.values(Ve).includes(e)
|
|
183
183
|
},
|
|
184
184
|
strategy: {
|
|
185
185
|
type: String,
|
|
186
186
|
default: void 0,
|
|
187
|
-
validator: (e) => Object.values(
|
|
187
|
+
validator: (e) => Object.values(Be).includes(e)
|
|
188
188
|
},
|
|
189
189
|
transitionName: {
|
|
190
190
|
type: String,
|
|
@@ -234,72 +234,72 @@ var V = {
|
|
|
234
234
|
type: Boolean,
|
|
235
235
|
default: !1
|
|
236
236
|
}
|
|
237
|
-
},
|
|
238
|
-
...
|
|
237
|
+
}, pt = {
|
|
238
|
+
...dt,
|
|
239
239
|
name: {
|
|
240
240
|
type: String,
|
|
241
241
|
required: !0
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, mt = { autofocus: {
|
|
244
244
|
type: Boolean,
|
|
245
245
|
default: !1
|
|
246
|
-
} },
|
|
246
|
+
} }, ht = { autocomplete: {
|
|
247
247
|
type: String,
|
|
248
248
|
default: "off"
|
|
249
249
|
} };
|
|
250
250
|
({
|
|
251
|
-
...ft,
|
|
252
251
|
...pt,
|
|
253
252
|
...mt,
|
|
254
|
-
...
|
|
253
|
+
...ht,
|
|
254
|
+
...ct,
|
|
255
255
|
...X,
|
|
256
|
-
...
|
|
256
|
+
...nt,
|
|
257
257
|
...q,
|
|
258
258
|
...J,
|
|
259
|
-
...
|
|
259
|
+
...rt,
|
|
260
260
|
...Y,
|
|
261
261
|
...$,
|
|
262
|
-
...it,
|
|
263
262
|
...at,
|
|
264
263
|
...ot,
|
|
265
|
-
...ct,
|
|
266
|
-
...$e,
|
|
267
|
-
...et
|
|
268
|
-
}), { ...Z }, {
|
|
269
|
-
...ft,
|
|
270
264
|
...st,
|
|
265
|
+
...lt,
|
|
266
|
+
...et,
|
|
267
|
+
...tt
|
|
268
|
+
}), { ...Z }, {
|
|
269
|
+
...pt,
|
|
270
|
+
...ct,
|
|
271
271
|
...q,
|
|
272
272
|
...J,
|
|
273
|
-
...
|
|
273
|
+
...rt,
|
|
274
274
|
...X,
|
|
275
|
-
...
|
|
275
|
+
...nt,
|
|
276
276
|
...$,
|
|
277
|
-
...$e,
|
|
278
277
|
...et,
|
|
278
|
+
...tt,
|
|
279
279
|
...Y
|
|
280
280
|
}, {
|
|
281
281
|
...q,
|
|
282
282
|
...J,
|
|
283
|
+
...it,
|
|
283
284
|
...rt,
|
|
284
|
-
...nt,
|
|
285
285
|
...X,
|
|
286
|
-
...
|
|
286
|
+
...nt,
|
|
287
287
|
...$,
|
|
288
|
-
|
|
288
|
+
...et,
|
|
289
289
|
...Y,
|
|
290
290
|
...Z
|
|
291
291
|
};
|
|
292
|
-
var
|
|
292
|
+
var gt = {
|
|
293
293
|
...X,
|
|
294
|
+
...et,
|
|
294
295
|
...$e,
|
|
295
|
-
...Qe,
|
|
296
|
-
...Xe,
|
|
297
296
|
...Ze,
|
|
298
|
-
...
|
|
297
|
+
...Q,
|
|
298
|
+
...Ye,
|
|
299
299
|
type: {
|
|
300
300
|
type: String,
|
|
301
|
-
default:
|
|
302
|
-
validator: (e) => Object.values(
|
|
301
|
+
default: Ue.button,
|
|
302
|
+
validator: (e) => Object.values(Ue).includes(e)
|
|
303
303
|
},
|
|
304
304
|
ariaLabel: {
|
|
305
305
|
type: String,
|
|
@@ -307,28 +307,28 @@ var ht = {
|
|
|
307
307
|
},
|
|
308
308
|
defaultTag: {
|
|
309
309
|
type: String,
|
|
310
|
-
default:
|
|
310
|
+
default: U.button
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
|
-
|
|
314
|
-
var
|
|
315
|
-
...
|
|
316
|
-
...
|
|
313
|
+
ze.local;
|
|
314
|
+
var _t = {
|
|
315
|
+
...pt,
|
|
316
|
+
...ct,
|
|
317
317
|
...q,
|
|
318
318
|
...J,
|
|
319
|
-
...
|
|
319
|
+
...rt,
|
|
320
320
|
...Y,
|
|
321
321
|
...X,
|
|
322
|
-
...
|
|
322
|
+
...nt,
|
|
323
323
|
...$,
|
|
324
|
-
...
|
|
325
|
-
...
|
|
326
|
-
...
|
|
327
|
-
...
|
|
328
|
-
...$e,
|
|
324
|
+
...it,
|
|
325
|
+
...st,
|
|
326
|
+
...lt,
|
|
327
|
+
...ft,
|
|
329
328
|
...et,
|
|
329
|
+
...tt,
|
|
330
330
|
...Z,
|
|
331
|
-
...
|
|
331
|
+
...Qe,
|
|
332
332
|
transitionName: {
|
|
333
333
|
type: String,
|
|
334
334
|
default: "vv-dropdown--mobile-fade-block"
|
|
@@ -416,7 +416,7 @@ var gt = {
|
|
|
416
416
|
default: "action sm"
|
|
417
417
|
},
|
|
418
418
|
triggerWidth: {
|
|
419
|
-
...
|
|
419
|
+
...ft.triggerWidth,
|
|
420
420
|
default: !0
|
|
421
421
|
},
|
|
422
422
|
dropdownModifiers: {
|
|
@@ -440,50 +440,50 @@ var gt = {
|
|
|
440
440
|
default: !0
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function vt() {
|
|
444
444
|
return {
|
|
445
|
-
...
|
|
445
|
+
..._t,
|
|
446
446
|
options: {
|
|
447
|
-
...
|
|
447
|
+
..._t.options,
|
|
448
448
|
type: Array
|
|
449
449
|
},
|
|
450
450
|
searchFunction: {
|
|
451
|
-
...
|
|
451
|
+
..._t.searchFunction,
|
|
452
452
|
type: Function
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return n ?
|
|
456
|
+
function yt(e, t, n) {
|
|
457
|
+
return n ? Ct(e, n) === Ct(t, n) : St(e, t);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function bt(e, t) {
|
|
460
460
|
if (e.length !== t.length) return !1;
|
|
461
|
-
for (let n = e.length; n-- !== 0;) if (!
|
|
461
|
+
for (let n = e.length; n-- !== 0;) if (!St(e[n], t[n])) return !1;
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function xt(e, t) {
|
|
465
465
|
let n = Object.keys(e), { length: r } = n;
|
|
466
466
|
if (r !== Object.keys(t).length) return !1;
|
|
467
467
|
for (let e = r; e-- !== 0;) if (!Object.hasOwn(t, n[e])) return !1;
|
|
468
468
|
for (let i = r; i-- !== 0;) {
|
|
469
469
|
let r = n[i];
|
|
470
|
-
if (!
|
|
470
|
+
if (!St(e[r], t[r])) return !1;
|
|
471
471
|
}
|
|
472
472
|
return !0;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function St(e, t) {
|
|
475
475
|
if (e === t) return !0;
|
|
476
476
|
if (!e || !t || typeof e != "object" || typeof t != "object") return Number.isNaN(e) && Number.isNaN(t);
|
|
477
477
|
let n = Array.isArray(e), r = Array.isArray(t);
|
|
478
478
|
if (n !== r) return !1;
|
|
479
|
-
if (n && r) return
|
|
479
|
+
if (n && r) return bt(e, t);
|
|
480
480
|
let i = e instanceof Date, a = t instanceof Date;
|
|
481
481
|
if (i !== a) return !1;
|
|
482
482
|
if (i && a) return e.getTime() === t.getTime();
|
|
483
483
|
let o = e instanceof RegExp, s = t instanceof RegExp;
|
|
484
|
-
return o === s ? o && s ? e.toString() === t.toString() :
|
|
484
|
+
return o === s ? o && s ? e.toString() === t.toString() : xt(e, t) : !1;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Ct(e, t) {
|
|
487
487
|
if (e && Object.keys(e).length && t) {
|
|
488
488
|
if (!t.includes(".")) return e[t];
|
|
489
489
|
let n = t.split("."), r = e;
|
|
@@ -495,32 +495,32 @@ function St(e, t) {
|
|
|
495
495
|
}
|
|
496
496
|
return null;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function wt(e, t) {
|
|
499
499
|
if (e != null && t?.length) {
|
|
500
|
-
for (let n of t) if (
|
|
500
|
+
for (let n of t) if (yt(e, n)) return !0;
|
|
501
501
|
}
|
|
502
502
|
return !1;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Tt(e) {
|
|
505
505
|
return typeof e == "string";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
507
|
+
function Et(e) {
|
|
508
|
+
return Array.isArray(e) ? e.filter((e) => Tt(e)).join(" ") : e;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
let r =
|
|
510
|
+
function Dt(e, t) {
|
|
511
|
+
let r = T(() => ve(e) ? e.value : e), i = T(() => Et(r.value.invalidLabel)), a = T(() => Et(r.value.validLabel)), o = T(() => r.value.loadingLabel), s = T(() => r.value.hintLabel), c = T(() => !!(r.value.loading && (t.loading || o.value))), l = T(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = T(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = T(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), ee = T(() => l.value || u.value || c.value || d.value);
|
|
512
512
|
return {
|
|
513
513
|
hasInvalidLabelOrSlot: l,
|
|
514
514
|
hasHintLabelOrSlot: d,
|
|
515
515
|
hasValidLabelOrSlot: u,
|
|
516
516
|
hasLoadingLabelOrSlot: c,
|
|
517
|
-
hintSlotScope:
|
|
517
|
+
hintSlotScope: T(() => ({
|
|
518
518
|
modelValue: r.value.modelValue,
|
|
519
519
|
valid: r.value.valid,
|
|
520
520
|
invalid: r.value.invalid,
|
|
521
521
|
loading: r.value.loading
|
|
522
522
|
})),
|
|
523
|
-
HintSlot:
|
|
523
|
+
HintSlot: A({
|
|
524
524
|
name: "HintSlot",
|
|
525
525
|
props: { tag: {
|
|
526
526
|
type: String,
|
|
@@ -549,20 +549,20 @@ function Et(e, t) {
|
|
|
549
549
|
})
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return e(
|
|
552
|
+
function Ot() {
|
|
553
|
+
return e(qe, void 0);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return
|
|
555
|
+
function kt(e, t, n) {
|
|
556
|
+
return T(() => {
|
|
557
557
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
558
558
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
559
559
|
t && (r[`${e}--${t}`] = !0);
|
|
560
560
|
}), n && Object.keys(n.value).forEach((t) => {
|
|
561
|
-
r[`${e}--${t}`] =
|
|
561
|
+
r[`${e}--${t}`] = j(n.value[t]);
|
|
562
562
|
}), r;
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var At = /* @__PURE__ */ A({
|
|
566
566
|
name: "VvIcon",
|
|
567
567
|
props: /* @__PURE__ */ f({
|
|
568
568
|
name: {},
|
|
@@ -581,14 +581,14 @@ var kt = /* @__PURE__ */ M({
|
|
|
581
581
|
onLoad: { type: Function },
|
|
582
582
|
svg: {},
|
|
583
583
|
modifiers: {}
|
|
584
|
-
},
|
|
584
|
+
}, V),
|
|
585
585
|
setup(e) {
|
|
586
|
-
let t = e, n =
|
|
586
|
+
let t = e, n = T(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = N(t), o = kt("vv-icon", a), s = T(() => t.provider || i?.iconsProvider), c = T(() => {
|
|
587
587
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
588
|
-
if (
|
|
588
|
+
if (ye(n)) return n;
|
|
589
589
|
let r = i?.iconsCollections.find((t) => {
|
|
590
590
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
591
|
-
return
|
|
591
|
+
return ye(n);
|
|
592
592
|
});
|
|
593
593
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
594
594
|
});
|
|
@@ -597,19 +597,19 @@ var kt = /* @__PURE__ */ M({
|
|
|
597
597
|
}
|
|
598
598
|
function u(e) {
|
|
599
599
|
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
600
|
-
n && r &&
|
|
600
|
+
n && r && I(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
601
601
|
body: r,
|
|
602
602
|
height: n.viewBox.baseVal.height,
|
|
603
603
|
width: n.viewBox.baseVal.width
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
|
-
return i && t.src && !
|
|
606
|
+
return i && t.src && !ye(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
607
607
|
e && u(e), r.value = !0;
|
|
608
608
|
}).catch((e) => {
|
|
609
609
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
610
|
-
})), t.svg && u(t.svg), (t, i) =>
|
|
610
|
+
})), t.svg && u(t.svg), (t, i) => j(r) ? (F(), S(j(be), h({
|
|
611
611
|
key: 0,
|
|
612
|
-
class:
|
|
612
|
+
class: j(o)
|
|
613
613
|
}, {
|
|
614
614
|
inline: e.inline,
|
|
615
615
|
width: e.width,
|
|
@@ -617,26 +617,26 @@ var kt = /* @__PURE__ */ M({
|
|
|
617
617
|
horizontalFlip: e.horizontalFlip,
|
|
618
618
|
verticalFlip: e.verticalFlip,
|
|
619
619
|
flip: e.flip,
|
|
620
|
-
rotate:
|
|
620
|
+
rotate: j(n),
|
|
621
621
|
color: e.color,
|
|
622
|
-
icon:
|
|
623
|
-
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) :
|
|
622
|
+
icon: j(c)
|
|
623
|
+
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : k("v-if", !0);
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
|
-
function
|
|
627
|
-
let n =
|
|
626
|
+
function jt(e, t) {
|
|
627
|
+
let n = T(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = T(() => t?.value === He.before ? n.value : void 0), i = T(() => t?.value === He.after ? n.value : void 0);
|
|
628
628
|
return {
|
|
629
629
|
hasIcon: n,
|
|
630
|
-
hasIconLeft:
|
|
631
|
-
hasIconRight:
|
|
632
|
-
hasIconTop:
|
|
633
|
-
hasIconBottom:
|
|
630
|
+
hasIconLeft: T(() => t?.value === H.left ? n.value : void 0),
|
|
631
|
+
hasIconRight: T(() => t?.value === H.right ? n.value : void 0),
|
|
632
|
+
hasIconTop: T(() => t?.value === H.top ? n.value : void 0),
|
|
633
|
+
hasIconBottom: T(() => t?.value === H.bottom ? n.value : void 0),
|
|
634
634
|
hasIconBefore: r,
|
|
635
635
|
hasIconAfter: i
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
components: { VvIcon:
|
|
638
|
+
var Mt = A({
|
|
639
|
+
components: { VvIcon: At },
|
|
640
640
|
props: {
|
|
641
641
|
inputType: {
|
|
642
642
|
type: String,
|
|
@@ -657,7 +657,7 @@ var jt = M({
|
|
|
657
657
|
},
|
|
658
658
|
emits: ["clear"],
|
|
659
659
|
setup(e, { emit: t }) {
|
|
660
|
-
let { hasIcon: n } =
|
|
660
|
+
let { hasIcon: n } = jt(T(() => e.icon));
|
|
661
661
|
function r(n) {
|
|
662
662
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
663
663
|
}
|
|
@@ -667,7 +667,7 @@ var jt = M({
|
|
|
667
667
|
};
|
|
668
668
|
},
|
|
669
669
|
render() {
|
|
670
|
-
let e = this.hasIcon ? n(
|
|
670
|
+
let e = this.hasIcon ? n(At, {
|
|
671
671
|
...this.hasIcon,
|
|
672
672
|
class: `vv-${this.inputType}__icon`
|
|
673
673
|
}) : void 0;
|
|
@@ -679,22 +679,22 @@ var jt = M({
|
|
|
679
679
|
onClick: this.onClick
|
|
680
680
|
}, e);
|
|
681
681
|
}
|
|
682
|
-
}),
|
|
682
|
+
}), Nt = {
|
|
683
683
|
...$,
|
|
684
684
|
value: [String, Number]
|
|
685
|
-
},
|
|
685
|
+
}, Pt = /* @__PURE__ */ A({
|
|
686
686
|
name: "VvBadge",
|
|
687
|
-
props:
|
|
687
|
+
props: Nt,
|
|
688
688
|
setup(e) {
|
|
689
|
-
let { modifiers: t } =
|
|
690
|
-
return (e, t) => (
|
|
689
|
+
let { modifiers: t } = N(e), n = kt("vv-badge", t);
|
|
690
|
+
return (e, t) => (F(), P("span", { class: a(j(n)) }, [c(e.$slots, "default", {}, () => [M(E(e.value), 1)])], 2));
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
|
-
function
|
|
694
|
-
let n = e(t, void 0), r =
|
|
693
|
+
function Ft(t) {
|
|
694
|
+
let n = e(t, void 0), r = T(() => n !== void 0);
|
|
695
695
|
function i(e, t, r) {
|
|
696
696
|
let i = n?.[e];
|
|
697
|
-
if (i) return
|
|
697
|
+
if (i) return T({
|
|
698
698
|
get() {
|
|
699
699
|
return i.value;
|
|
700
700
|
},
|
|
@@ -702,8 +702,8 @@ function Pt(t) {
|
|
|
702
702
|
i.value = e;
|
|
703
703
|
}
|
|
704
704
|
});
|
|
705
|
-
let a =
|
|
706
|
-
return
|
|
705
|
+
let a = ae(t, e);
|
|
706
|
+
return T({
|
|
707
707
|
get() {
|
|
708
708
|
return a.value;
|
|
709
709
|
},
|
|
@@ -718,17 +718,17 @@ function Pt(t) {
|
|
|
718
718
|
getGroupOrLocalRef: i
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
|
-
var
|
|
722
|
-
...
|
|
723
|
-
...
|
|
721
|
+
var It = ["update:modelValue"], Lt = {
|
|
722
|
+
...gt,
|
|
723
|
+
...dt,
|
|
724
724
|
...$,
|
|
725
|
-
...
|
|
725
|
+
...ut,
|
|
726
726
|
...Y,
|
|
727
|
-
...
|
|
727
|
+
...st,
|
|
728
728
|
iconPosition: {
|
|
729
729
|
type: String,
|
|
730
|
-
default:
|
|
731
|
-
validator: (e) => Object.values(
|
|
730
|
+
default: H.left,
|
|
731
|
+
validator: (e) => Object.values(H).includes(e)
|
|
732
732
|
},
|
|
733
733
|
loadingIcon: {
|
|
734
734
|
type: String,
|
|
@@ -763,20 +763,20 @@ var Ft = ["update:modelValue"], It = {
|
|
|
763
763
|
default: void 0
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
|
-
function
|
|
767
|
-
let { group: n, isInGroup: r, getGroupOrLocalRef: i } =
|
|
766
|
+
function Rt(e, t) {
|
|
767
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Ft(W), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = N(e);
|
|
768
768
|
return {
|
|
769
769
|
group: n,
|
|
770
770
|
isInGroup: r,
|
|
771
771
|
modelValue: i("modelValue", e, t),
|
|
772
772
|
toggle: i("toggle", e),
|
|
773
773
|
unselectable: i("unselectable", e),
|
|
774
|
-
multiple:
|
|
775
|
-
modifiers:
|
|
774
|
+
multiple: T(() => n?.multiple.value ?? !1),
|
|
775
|
+
modifiers: T(() => {
|
|
776
776
|
let t = e.modifiers, r = n?.modifiers.value, i = /* @__PURE__ */ new Set();
|
|
777
777
|
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];
|
|
778
778
|
}),
|
|
779
|
-
disabled:
|
|
779
|
+
disabled: T(() => !!(e.disabled || n?.disabled.value)),
|
|
780
780
|
id: a,
|
|
781
781
|
pressed: l,
|
|
782
782
|
iconPosition: o,
|
|
@@ -784,59 +784,59 @@ function Lt(e, t) {
|
|
|
784
784
|
label: c
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
var
|
|
787
|
+
var zt = [
|
|
788
788
|
"click",
|
|
789
789
|
"mouseover",
|
|
790
790
|
"mouseleave"
|
|
791
791
|
];
|
|
792
|
-
function zt() {
|
|
793
|
-
return e(G, {});
|
|
794
|
-
}
|
|
795
792
|
function Bt() {
|
|
796
|
-
return e(
|
|
793
|
+
return e(G, {});
|
|
797
794
|
}
|
|
798
795
|
function Vt() {
|
|
799
796
|
return e(K, {});
|
|
800
797
|
}
|
|
801
|
-
|
|
798
|
+
function Ht() {
|
|
799
|
+
return e(Je, {});
|
|
800
|
+
}
|
|
801
|
+
var Ut = /* @__PURE__ */ A({
|
|
802
802
|
name: "VvAction",
|
|
803
|
-
props:
|
|
804
|
-
emits:
|
|
803
|
+
props: gt,
|
|
804
|
+
emits: zt,
|
|
805
805
|
setup(e, { expose: t, emit: n }) {
|
|
806
|
-
let r = e, i = n, a = ne(), o =
|
|
806
|
+
let r = e, i = n, a = ne(), o = Ot(), s = w(null);
|
|
807
807
|
t({ $el: s });
|
|
808
|
-
let { reference: l, bus: u, aria: d, expanded: ee } =
|
|
808
|
+
let { reference: l, bus: u, aria: d, expanded: ee } = Bt();
|
|
809
809
|
g(() => s.value, (e) => {
|
|
810
810
|
l && (l.value = e);
|
|
811
811
|
});
|
|
812
|
-
let f =
|
|
812
|
+
let f = T(() => r.pressed || ee?.value), { role: p, onAction: m } = Ht(), _ = T(() => {
|
|
813
813
|
switch (!0) {
|
|
814
|
-
case r.disabled: return
|
|
815
|
-
case r.to !== void 0: return o?.nuxt ? y(
|
|
816
|
-
case r.href !== void 0: return
|
|
814
|
+
case r.disabled: return U.button;
|
|
815
|
+
case r.to !== void 0: return o?.nuxt ? y(U.nuxtLink) : U.routerLink;
|
|
816
|
+
case r.href !== void 0: return U.a;
|
|
817
817
|
default: return r.defaultTag;
|
|
818
818
|
}
|
|
819
|
-
}), te =
|
|
819
|
+
}), te = T(() => {
|
|
820
820
|
let e = {
|
|
821
821
|
...d?.value,
|
|
822
|
-
ariaPressed: r.pressed && p?.value !==
|
|
822
|
+
ariaPressed: r.pressed && p?.value !== We.menuitem ? !0 : void 0,
|
|
823
823
|
ariaLabel: r.ariaLabel,
|
|
824
824
|
role: p?.value
|
|
825
825
|
};
|
|
826
826
|
switch (_.value) {
|
|
827
|
-
case
|
|
827
|
+
case U.a: return {
|
|
828
828
|
...e,
|
|
829
829
|
href: r.href,
|
|
830
830
|
target: r.target,
|
|
831
831
|
rel: r.rel
|
|
832
832
|
};
|
|
833
|
-
case
|
|
834
|
-
case
|
|
833
|
+
case U.routerLink:
|
|
834
|
+
case U.nuxtLink: return {
|
|
835
835
|
...e,
|
|
836
836
|
to: r.to,
|
|
837
837
|
target: r.target
|
|
838
838
|
};
|
|
839
|
-
case
|
|
839
|
+
case U.button: return {
|
|
840
840
|
...e,
|
|
841
841
|
type: r.type,
|
|
842
842
|
disabled: r.disabled
|
|
@@ -853,12 +853,12 @@ var Ht = /* @__PURE__ */ M({
|
|
|
853
853
|
function re(e) {
|
|
854
854
|
a?.vnode.props?.onMouseleave ? i("mouseleave", e) : u?.emit("mouseleave", e);
|
|
855
855
|
}
|
|
856
|
-
return (e, t) => (
|
|
856
|
+
return (e, t) => (F(), S(x(j(_)), h(j(te), {
|
|
857
857
|
ref_key: "rootEl",
|
|
858
858
|
ref: s,
|
|
859
859
|
class: {
|
|
860
860
|
active: e.active,
|
|
861
|
-
pressed:
|
|
861
|
+
pressed: j(f),
|
|
862
862
|
disabled: e.disabled,
|
|
863
863
|
current: e.current
|
|
864
864
|
},
|
|
@@ -866,58 +866,58 @@ var Ht = /* @__PURE__ */ M({
|
|
|
866
866
|
onMouseoverPassive: b,
|
|
867
867
|
onMouseleavePassive: re
|
|
868
868
|
}), {
|
|
869
|
-
default:
|
|
869
|
+
default: O(() => [c(e.$slots, "default", {}, () => [M(E(e.label), 1)])]),
|
|
870
870
|
_: 3
|
|
871
871
|
}, 16, ["class"]));
|
|
872
872
|
}
|
|
873
873
|
});
|
|
874
|
-
function
|
|
875
|
-
let t =
|
|
876
|
-
return
|
|
874
|
+
function Wt(e) {
|
|
875
|
+
let t = D();
|
|
876
|
+
return T(() => String(e?.value || t));
|
|
877
877
|
}
|
|
878
|
-
var
|
|
878
|
+
var Gt = {
|
|
879
879
|
key: 1,
|
|
880
880
|
class: "vv-button__label"
|
|
881
|
-
},
|
|
881
|
+
}, Kt = {
|
|
882
882
|
key: 1,
|
|
883
883
|
class: "vv-button__label"
|
|
884
|
-
},
|
|
884
|
+
}, qt = /* @__PURE__ */ A({
|
|
885
885
|
name: "VvButton",
|
|
886
886
|
inheritAttrs: !1,
|
|
887
|
-
props:
|
|
888
|
-
emits:
|
|
887
|
+
props: Lt,
|
|
888
|
+
emits: It,
|
|
889
889
|
setup(e, { expose: t, emit: n }) {
|
|
890
|
-
let r = e, i = n, a = d(), o = re(), { id: s, modifiers: l, iconPosition: u, icon: ee, label: f, modelValue: p, disabled: m, toggle: g, unselectable: _ } =
|
|
891
|
-
t({ $el:
|
|
892
|
-
let y =
|
|
893
|
-
reverse: [
|
|
894
|
-
column: [
|
|
890
|
+
let r = e, i = n, a = d(), o = re(), { id: s, modifiers: l, iconPosition: u, icon: ee, label: f, modelValue: p, disabled: m, toggle: g, unselectable: _ } = Rt(r, i), te = Wt(s), ne = T(() => a?.name || te.value), v = w(null);
|
|
891
|
+
t({ $el: T(() => v.value?.$el) });
|
|
892
|
+
let y = T(() => g.value ? Array.isArray(p.value) ? wt(ne.value, p.value) : yt(ne.value, p.value) : r.pressed), b = kt("vv-button", l, T(() => ({
|
|
893
|
+
reverse: [H.right, H.bottom].includes(u.value),
|
|
894
|
+
column: [H.top, H.bottom].includes(u.value),
|
|
895
895
|
"icon-only": !(!ee?.value || f?.value || o.default)
|
|
896
|
-
}))), { hasIcon: x } =
|
|
897
|
-
if (g.value) return { onClick:
|
|
896
|
+
}))), { hasIcon: x } = jt(ee), ie = T(() => r.value === void 0 ? ne.value : r.value), ae = T(() => {
|
|
897
|
+
if (g.value) return { onClick: oe };
|
|
898
898
|
});
|
|
899
|
-
function
|
|
899
|
+
function oe() {
|
|
900
900
|
if (g.value) {
|
|
901
901
|
if (Array.isArray(p.value)) {
|
|
902
|
-
if (
|
|
903
|
-
_.value && (p.value = p.value.filter((e) => e !==
|
|
902
|
+
if (wt(ie.value, p.value)) {
|
|
903
|
+
_.value && (p.value = p.value.filter((e) => e !== ie.value));
|
|
904
904
|
return;
|
|
905
905
|
}
|
|
906
|
-
p.value.push(
|
|
906
|
+
p.value.push(ie.value);
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
|
-
if (
|
|
909
|
+
if (ie.value === p.value && _.value) {
|
|
910
910
|
p.value = r.uncheckedValue;
|
|
911
911
|
return;
|
|
912
912
|
}
|
|
913
|
-
p.value =
|
|
913
|
+
p.value = ie.value;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
return (e, t) => (
|
|
917
|
-
...
|
|
918
|
-
...
|
|
919
|
-
disabled:
|
|
920
|
-
pressed:
|
|
916
|
+
return (e, t) => (F(), S(Ut, h({
|
|
917
|
+
...j(a),
|
|
918
|
+
...j(ae),
|
|
919
|
+
disabled: j(m),
|
|
920
|
+
pressed: j(y),
|
|
921
921
|
active: e.active,
|
|
922
922
|
type: e.type,
|
|
923
923
|
to: e.to,
|
|
@@ -926,27 +926,27 @@ var Wt = {
|
|
|
926
926
|
rel: e.rel,
|
|
927
927
|
ariaLabel: e.ariaLabel
|
|
928
928
|
}, {
|
|
929
|
-
id:
|
|
929
|
+
id: j(te),
|
|
930
930
|
ref_key: "rootEl",
|
|
931
931
|
ref: v,
|
|
932
|
-
class:
|
|
932
|
+
class: j(b)
|
|
933
933
|
}), {
|
|
934
|
-
default:
|
|
934
|
+
default: O(() => [c(e.$slots, "default", {}, () => [e.loading ? c(e.$slots, "loading", {}, () => [e.loadingIcon ? (F(), S(At, {
|
|
935
935
|
key: 0,
|
|
936
936
|
class: "vv-button__loading-icon",
|
|
937
937
|
name: e.loadingIcon
|
|
938
|
-
}, null, 8, ["name"])) :
|
|
938
|
+
}, null, 8, ["name"])) : k("v-if", !0), e.loadingLabel ? (F(), P("span", Gt, E(e.loadingLabel), 1)) : k("v-if", !0)], void 0, 0) : (F(), P(C, { key: 1 }, [
|
|
939
939
|
c(e.$slots, "before"),
|
|
940
|
-
|
|
941
|
-
|
|
940
|
+
j(x) ? (F(), S(At, h({ key: 0 }, j(x), { class: "vv-button__icon" }), null, 16)) : k("v-if", !0),
|
|
941
|
+
j(f) ? (F(), P("span", Kt, [c(e.$slots, "label", {}, () => [M(E(j(f)), 1)])])) : k("v-if", !0),
|
|
942
942
|
c(e.$slots, "after")
|
|
943
943
|
], 64))])]),
|
|
944
944
|
_: 3
|
|
945
945
|
}, 16, ["id", "class"]));
|
|
946
946
|
}
|
|
947
|
-
}),
|
|
948
|
-
...ut,
|
|
947
|
+
}), Jt = {
|
|
949
948
|
...dt,
|
|
949
|
+
...ft,
|
|
950
950
|
...$,
|
|
951
951
|
modelValue: {
|
|
952
952
|
type: Boolean,
|
|
@@ -958,16 +958,16 @@ var Wt = {
|
|
|
958
958
|
},
|
|
959
959
|
role: {
|
|
960
960
|
type: String,
|
|
961
|
-
default:
|
|
962
|
-
validator: (e) => Object.values(
|
|
961
|
+
default: Ge.menu,
|
|
962
|
+
validator: (e) => Object.values(Ge).includes(e)
|
|
963
963
|
}
|
|
964
|
-
},
|
|
964
|
+
}, Yt = { focusOnHover: {
|
|
965
965
|
type: Boolean,
|
|
966
966
|
default: !1
|
|
967
|
-
} },
|
|
967
|
+
} }, Xt = {
|
|
968
968
|
...X,
|
|
969
|
-
...
|
|
970
|
-
...
|
|
969
|
+
...Xe,
|
|
970
|
+
...ut,
|
|
971
971
|
...$,
|
|
972
972
|
deselectHintLabel: { type: String },
|
|
973
973
|
selectHintLabel: { type: String },
|
|
@@ -977,8 +977,8 @@ var Wt = {
|
|
|
977
977
|
default: !1
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
|
-
function
|
|
981
|
-
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r =
|
|
980
|
+
function Zt(e, t) {
|
|
981
|
+
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = T(() => n && te(t)), i = T(() => r.value ? "manual" : void 0);
|
|
982
982
|
function a() {
|
|
983
983
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
984
984
|
}
|
|
@@ -999,11 +999,11 @@ function Xt(e, t) {
|
|
|
999
999
|
hide: s
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
let o =
|
|
1002
|
+
function Qt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
1003
|
+
let o = we();
|
|
1004
1004
|
return {
|
|
1005
1005
|
bus: o,
|
|
1006
|
-
component:
|
|
1006
|
+
component: A({
|
|
1007
1007
|
name: "VvDropdownTriggerProvider",
|
|
1008
1008
|
setup() {
|
|
1009
1009
|
t(G, {
|
|
@@ -1015,34 +1015,34 @@ function Zt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
1015
1015
|
});
|
|
1016
1016
|
},
|
|
1017
1017
|
render() {
|
|
1018
|
-
return n(
|
|
1018
|
+
return n(C, {}, this.$slots.default?.());
|
|
1019
1019
|
}
|
|
1020
1020
|
})
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
let r =
|
|
1025
|
-
return t(
|
|
1023
|
+
function $t({ role: e, ...n }) {
|
|
1024
|
+
let r = T(() => e.value === Ge.listbox ? Ke.option : Ke.presentation);
|
|
1025
|
+
return t(K, {
|
|
1026
1026
|
role: r,
|
|
1027
1027
|
...n
|
|
1028
1028
|
}), { itemRole: r };
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
t(
|
|
1032
|
-
role:
|
|
1030
|
+
function en({ expanded: e, onAction: n }) {
|
|
1031
|
+
t(Je, {
|
|
1032
|
+
role: w(We.menuitem),
|
|
1033
1033
|
expanded: e,
|
|
1034
1034
|
onAction: n
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
|
-
var
|
|
1037
|
+
var tn = ["popover"], nn = [
|
|
1038
1038
|
"id",
|
|
1039
1039
|
"tabindex",
|
|
1040
1040
|
"role",
|
|
1041
1041
|
"aria-labelledby"
|
|
1042
|
-
],
|
|
1042
|
+
], rn = /* @__PURE__ */ A({
|
|
1043
1043
|
name: "VvDropdown",
|
|
1044
1044
|
inheritAttrs: !1,
|
|
1045
|
-
props:
|
|
1045
|
+
props: Jt,
|
|
1046
1046
|
emits: [
|
|
1047
1047
|
"update:modelValue",
|
|
1048
1048
|
"beforeEnter",
|
|
@@ -1061,201 +1061,205 @@ var en = ["popover"], tn = [
|
|
|
1061
1061
|
"leaveCancelled"
|
|
1062
1062
|
],
|
|
1063
1063
|
setup(e, { expose: t, emit: n }) {
|
|
1064
|
-
let l = e, u = n, { id: f } =
|
|
1064
|
+
let l = e, u = n, { id: f } = N(l), p = Wt(f), te = d(), ne = w(), v = w(), y = w(), b = w(), x = T({
|
|
1065
1065
|
get: () => l.reference ?? ne.value,
|
|
1066
1066
|
set: (e) => {
|
|
1067
1067
|
ne.value = e;
|
|
1068
1068
|
}
|
|
1069
|
-
}), { isTopLayer: re, popover: S, show:
|
|
1069
|
+
}), { isTopLayer: re, popover: S, show: ie, hide: ae } = Zt(v, () => l.topLayer), oe = T(() => re.value ? Be.fixed : l.strategy), se = w(!1);
|
|
1070
1070
|
ee(() => {
|
|
1071
|
-
|
|
1072
|
-
|
|
1071
|
+
Pe(v.value, () => {
|
|
1072
|
+
se.value = globalThis.getComputedStyle(v.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
1073
1073
|
}, {
|
|
1074
1074
|
attributeFilter: ["style"],
|
|
1075
1075
|
window: globalThis.window
|
|
1076
1076
|
});
|
|
1077
1077
|
});
|
|
1078
|
-
function
|
|
1078
|
+
function ue(e, t, n) {
|
|
1079
1079
|
return typeof e == "boolean" ? t() : n(e);
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function E(e) {
|
|
1082
1082
|
return !e.width && !e.height;
|
|
1083
1083
|
}
|
|
1084
|
-
let
|
|
1084
|
+
let pe = {
|
|
1085
1085
|
name: "uncap",
|
|
1086
1086
|
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
1087
1087
|
let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
|
|
1088
|
-
return n.uncap || !i ||
|
|
1088
|
+
return n.uncap || !i || E(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
|
|
1089
1089
|
data: { uncapped: !0 },
|
|
1090
1090
|
reset: { rects: !0 }
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
1093
|
};
|
|
1094
|
-
function
|
|
1095
|
-
return l.triggerWidth && !
|
|
1094
|
+
function D(e) {
|
|
1095
|
+
return l.triggerWidth && !se.value ? e.reference.width : 0;
|
|
1096
1096
|
}
|
|
1097
|
-
let
|
|
1097
|
+
let me = {
|
|
1098
1098
|
name: "triggerWidth",
|
|
1099
1099
|
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
1100
|
-
let { style: r } = e.floating, i =
|
|
1100
|
+
let { style: r } = e.floating, i = D(t), a = Number.parseFloat(r.width) || 0;
|
|
1101
1101
|
return n.triggerWidth || Math.abs(i - a) < .01 ? {} : (r.width = i ? `${i}px` : "", { reset: { rects: !0 } });
|
|
1102
1102
|
}
|
|
1103
|
-
},
|
|
1103
|
+
}, he = T(() => {
|
|
1104
1104
|
let e = [];
|
|
1105
|
-
l.triggerWidth && e.push(
|
|
1105
|
+
l.triggerWidth && e.push(me), l.size && e.push(pe), l.offset && e.push(["string", "number"].includes(typeof l.offset) ? Ee(Number(l.offset)) : Ee(l.offset));
|
|
1106
1106
|
let t = typeof l.size == "object" ? l.size.padding : void 0;
|
|
1107
|
-
if (l.autoPlacement ? e.push(
|
|
1107
|
+
if (l.autoPlacement ? e.push(ue(l.autoPlacement, () => De(), (e) => De(e))) : l.flip && e.push(ue(l.flip, () => xe({
|
|
1108
1108
|
fallbackStrategy: "initialPlacement",
|
|
1109
1109
|
padding: t
|
|
1110
|
-
}), (e) =>
|
|
1110
|
+
}), (e) => xe({
|
|
1111
1111
|
padding: t,
|
|
1112
1112
|
...e
|
|
1113
|
-
}))), l.shift && e.push(
|
|
1113
|
+
}))), l.shift && e.push(ue(l.shift, () => Oe(), (e) => Oe(e))), l.size) {
|
|
1114
1114
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
1115
|
-
if (
|
|
1115
|
+
if (E(r.floating) || se.value) return;
|
|
1116
1116
|
let { style: i } = n.floating;
|
|
1117
|
-
i.maxWidth =
|
|
1117
|
+
i.maxWidth = D(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
1118
1118
|
};
|
|
1119
|
-
e.push(
|
|
1119
|
+
e.push(ue(l.size, () => Se({ apply: t }), (e) => Se({
|
|
1120
1120
|
...e,
|
|
1121
1121
|
apply: (n) => (t(n), e?.apply?.(n))
|
|
1122
1122
|
})));
|
|
1123
1123
|
}
|
|
1124
|
-
return l.arrow && e.push(
|
|
1125
|
-
}), { x:
|
|
1126
|
-
placement:
|
|
1127
|
-
strategy:
|
|
1128
|
-
middleware:
|
|
1129
|
-
}),
|
|
1130
|
-
if (!
|
|
1131
|
-
position:
|
|
1132
|
-
top: `${
|
|
1133
|
-
left: `${
|
|
1124
|
+
return l.arrow && e.push(ke({ element: y })), e;
|
|
1125
|
+
}), { x: _e, y: ve, middlewareData: A, placement: M, strategy: ye, update: I } = Te(x, v, {
|
|
1126
|
+
placement: T(() => l.placement),
|
|
1127
|
+
strategy: oe,
|
|
1128
|
+
middleware: he
|
|
1129
|
+
}), be = T(() => {
|
|
1130
|
+
if (!se.value) return {
|
|
1131
|
+
position: ye.value,
|
|
1132
|
+
top: `${ve.value ?? 0}px`,
|
|
1133
|
+
left: `${_e.value ?? 0}px`
|
|
1134
1134
|
};
|
|
1135
1135
|
});
|
|
1136
1136
|
g(() => l.triggerWidth, (e) => {
|
|
1137
1137
|
!e && v.value && (v.value.style.width = "");
|
|
1138
1138
|
});
|
|
1139
|
-
let
|
|
1140
|
-
if (
|
|
1139
|
+
let we = T(() => M.value.split("-")[0]), Ne = T(() => {
|
|
1140
|
+
if (se.value) return;
|
|
1141
1141
|
let e = {
|
|
1142
|
-
[
|
|
1143
|
-
[
|
|
1144
|
-
[
|
|
1145
|
-
[
|
|
1146
|
-
}[
|
|
1142
|
+
[H.top]: H.bottom,
|
|
1143
|
+
[H.right]: H.left,
|
|
1144
|
+
[H.bottom]: H.top,
|
|
1145
|
+
[H.left]: H.right
|
|
1146
|
+
}[we.value];
|
|
1147
1147
|
return {
|
|
1148
|
-
left:
|
|
1149
|
-
top:
|
|
1148
|
+
left: A.value.arrow?.x === void 0 ? void 0 : `${A.value.arrow?.x}px`,
|
|
1149
|
+
top: A.value.arrow?.y === void 0 ? void 0 : `${A.value.arrow?.y}px`,
|
|
1150
1150
|
[e]: `${-(y.value?.offsetWidth ?? 0) / 2}px`
|
|
1151
1151
|
};
|
|
1152
|
-
}),
|
|
1153
|
-
get: () =>
|
|
1152
|
+
}), Re = Ae(l, "modelValue", u), L = w(!1), R = T({
|
|
1153
|
+
get: () => Re.value ?? L.value,
|
|
1154
1154
|
set: (e) => {
|
|
1155
|
-
|
|
1155
|
+
Re.value === void 0 ? L.value = e : Re.value = e;
|
|
1156
1156
|
}
|
|
1157
1157
|
});
|
|
1158
1158
|
g([
|
|
1159
|
-
|
|
1159
|
+
R,
|
|
1160
1160
|
x,
|
|
1161
1161
|
v,
|
|
1162
|
-
|
|
1162
|
+
oe
|
|
1163
1163
|
], ([e, t, n, r], i, a) => {
|
|
1164
|
-
e && t && n && a(
|
|
1164
|
+
e && t && n && a(Ce(t, n, I, { animationFrame: r === Be.fixed }));
|
|
1165
1165
|
}, {
|
|
1166
1166
|
flush: "post",
|
|
1167
1167
|
immediate: !0
|
|
1168
|
-
}),
|
|
1169
|
-
|
|
1168
|
+
}), Pe(b, () => {
|
|
1169
|
+
R.value && I();
|
|
1170
1170
|
}, {
|
|
1171
1171
|
childList: !0,
|
|
1172
1172
|
subtree: !0,
|
|
1173
1173
|
characterData: !0
|
|
1174
|
-
}),
|
|
1175
|
-
|
|
1174
|
+
}), ce(() => {
|
|
1175
|
+
R.value && ie();
|
|
1176
1176
|
});
|
|
1177
|
+
function z() {
|
|
1178
|
+
R.value = !0;
|
|
1179
|
+
}
|
|
1177
1180
|
function B() {
|
|
1178
|
-
|
|
1181
|
+
R.value = !1;
|
|
1179
1182
|
}
|
|
1180
1183
|
function V() {
|
|
1181
|
-
|
|
1182
|
-
}
|
|
1183
|
-
function H() {
|
|
1184
|
-
z.value = !z.value;
|
|
1184
|
+
R.value = !R.value;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function ze(e) {
|
|
1187
1187
|
x.value = e;
|
|
1188
1188
|
}
|
|
1189
|
-
|
|
1190
|
-
!l.keepOpen &&
|
|
1189
|
+
Fe(v, () => {
|
|
1190
|
+
!l.keepOpen && R.value && (R.value = !1);
|
|
1191
1191
|
}, { ignore: [x] });
|
|
1192
|
-
let
|
|
1192
|
+
let Ve = T(() => x.value?.getAttribute?.("id") ?? void 0), He = T(() => ({
|
|
1193
1193
|
"aria-controls": p.value,
|
|
1194
1194
|
"aria-haspopup": !0,
|
|
1195
|
-
"aria-expanded":
|
|
1196
|
-
})), { component:
|
|
1195
|
+
"aria-expanded": R.value
|
|
1196
|
+
})), { component: Ue, bus: U } = Qt({
|
|
1197
1197
|
reference: x,
|
|
1198
1198
|
id: p,
|
|
1199
|
-
expanded:
|
|
1200
|
-
aria:
|
|
1199
|
+
expanded: R,
|
|
1200
|
+
aria: He
|
|
1201
1201
|
});
|
|
1202
|
-
|
|
1203
|
-
let { role:
|
|
1202
|
+
U.on("click", V);
|
|
1203
|
+
let { role: We, modifiers: Ke } = N(l), qe = kt("vv-dropdown", Ke, T(() => ({ arrow: l.arrow }))), { focused: W } = Ie(v);
|
|
1204
1204
|
function G(e) {
|
|
1205
1205
|
return e?.getRootNode()?.activeElement ?? null;
|
|
1206
1206
|
}
|
|
1207
|
-
let
|
|
1208
|
-
function
|
|
1207
|
+
let K = "a[href], button, input:not([type=\"hidden\"]), textarea, select, details, [tabindex]:not([tabindex=\"-1\"])";
|
|
1208
|
+
function Je(e) {
|
|
1209
1209
|
return !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true";
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return e ? [...e.querySelectorAll(
|
|
1211
|
+
function Ye(e) {
|
|
1212
|
+
return e ? [...e.querySelectorAll(K)].filter(Je) : [];
|
|
1213
|
+
}
|
|
1214
|
+
let q = w(!1);
|
|
1215
|
+
function J() {
|
|
1216
|
+
q.value = !0, setTimeout(() => {
|
|
1217
|
+
q.value = !1;
|
|
1218
|
+
});
|
|
1213
1219
|
}
|
|
1214
|
-
let
|
|
1215
|
-
function
|
|
1220
|
+
let Y;
|
|
1221
|
+
function X() {
|
|
1216
1222
|
let e = x.value?.$el ?? x.value;
|
|
1217
1223
|
if (e instanceof HTMLElement) {
|
|
1218
|
-
if (e.matches(
|
|
1219
|
-
let t = e.querySelector(`[aria-controls="${CSS.escape(String(p.value))}"]`), n = t &&
|
|
1224
|
+
if (e.matches(K) && Je(e)) return e;
|
|
1225
|
+
let t = e.querySelector(`[aria-controls="${CSS.escape(String(p.value))}"]`), n = t && Je(t) ? t : Ye(e).find((e) => !v.value?.contains(e));
|
|
1220
1226
|
if (n) return n;
|
|
1221
1227
|
}
|
|
1222
|
-
return
|
|
1228
|
+
return Y?.isConnected ? Y : void 0;
|
|
1223
1229
|
}
|
|
1224
|
-
function
|
|
1225
|
-
let e =
|
|
1226
|
-
e && (
|
|
1227
|
-
q.value = !1;
|
|
1228
|
-
}));
|
|
1230
|
+
function Z() {
|
|
1231
|
+
let e = X();
|
|
1232
|
+
e && (J(), e.focus({ preventScroll: !0 }));
|
|
1229
1233
|
}
|
|
1230
|
-
function
|
|
1234
|
+
function Xe(e) {
|
|
1231
1235
|
return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ?? G(v.value)?.closest(".vv-dropdown") ?? void 0;
|
|
1232
1236
|
}
|
|
1233
|
-
function
|
|
1237
|
+
function Ze() {
|
|
1234
1238
|
o(() => {
|
|
1235
|
-
let e =
|
|
1239
|
+
let e = Ye(v.value);
|
|
1236
1240
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1237
1241
|
});
|
|
1238
1242
|
}
|
|
1239
|
-
function
|
|
1243
|
+
function Q() {
|
|
1240
1244
|
o(() => {
|
|
1241
|
-
let e =
|
|
1245
|
+
let e = Ye(b.value);
|
|
1242
1246
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1243
1247
|
});
|
|
1244
1248
|
}
|
|
1245
|
-
function
|
|
1249
|
+
function Qe() {
|
|
1246
1250
|
o(() => {
|
|
1247
|
-
if (
|
|
1248
|
-
let e =
|
|
1251
|
+
if (W.value) {
|
|
1252
|
+
let e = Ye(v.value), t = G(v.value);
|
|
1249
1253
|
if (e.length === 0 || !t) return;
|
|
1250
1254
|
let n = e.indexOf(t);
|
|
1251
1255
|
n < e.length - 1 ? e[n + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
1252
1256
|
}
|
|
1253
1257
|
});
|
|
1254
1258
|
}
|
|
1255
|
-
function
|
|
1259
|
+
function $e() {
|
|
1256
1260
|
o(() => {
|
|
1257
|
-
if (
|
|
1258
|
-
let e =
|
|
1261
|
+
if (W.value) {
|
|
1262
|
+
let e = Ye(v.value), t = G(v.value);
|
|
1259
1263
|
if (e.length === 0 || !t) return;
|
|
1260
1264
|
let n = e.indexOf(t);
|
|
1261
1265
|
if (n > 0) {
|
|
@@ -1266,48 +1270,48 @@ var en = ["popover"], tn = [
|
|
|
1266
1270
|
}
|
|
1267
1271
|
});
|
|
1268
1272
|
}
|
|
1269
|
-
g(
|
|
1273
|
+
g(R, (e) => {
|
|
1270
1274
|
if (e) {
|
|
1271
1275
|
let e = G(v.value) ?? document.activeElement;
|
|
1272
|
-
|
|
1276
|
+
Y = e instanceof HTMLElement && !v.value?.contains(e) ? e : void 0;
|
|
1273
1277
|
}
|
|
1274
|
-
e && l.autofocusFirst &&
|
|
1278
|
+
e && l.autofocusFirst && Ze();
|
|
1275
1279
|
}), t({
|
|
1276
|
-
toggle:
|
|
1277
|
-
show:
|
|
1278
|
-
hide:
|
|
1279
|
-
init:
|
|
1280
|
-
focusFirst:
|
|
1281
|
-
focusFirstListElement:
|
|
1282
|
-
focusNext:
|
|
1283
|
-
focusPrev:
|
|
1284
|
-
customPosition:
|
|
1280
|
+
toggle: V,
|
|
1281
|
+
show: z,
|
|
1282
|
+
hide: B,
|
|
1283
|
+
init: ze,
|
|
1284
|
+
focusFirst: Ze,
|
|
1285
|
+
focusFirstListElement: Q,
|
|
1286
|
+
focusNext: Qe,
|
|
1287
|
+
focusPrev: $e,
|
|
1288
|
+
customPosition: se,
|
|
1285
1289
|
restoringFocus: q
|
|
1286
1290
|
});
|
|
1287
|
-
let
|
|
1288
|
-
|
|
1289
|
-
function
|
|
1290
|
-
if (!
|
|
1291
|
+
let et = je(v), { onAction: tt } = Vt(), { expanded: nt, onAction: $ } = Ht();
|
|
1292
|
+
$ && en({ expanded: nt });
|
|
1293
|
+
function rt() {
|
|
1294
|
+
if (!R.value || l.keepOpen || We.value === Ge.listbox) return;
|
|
1291
1295
|
let e = G(v.value), t = !!e && !!v.value?.contains(e);
|
|
1292
|
-
|
|
1296
|
+
B(), t && Z(), tt?.();
|
|
1293
1297
|
}
|
|
1294
|
-
let { itemRole:
|
|
1295
|
-
role:
|
|
1296
|
-
expanded:
|
|
1297
|
-
focused:
|
|
1298
|
-
hovered:
|
|
1299
|
-
onAction:
|
|
1298
|
+
let { itemRole: it } = $t({
|
|
1299
|
+
role: We,
|
|
1300
|
+
expanded: R,
|
|
1301
|
+
focused: W,
|
|
1302
|
+
hovered: et,
|
|
1303
|
+
onAction: rt
|
|
1300
1304
|
});
|
|
1301
|
-
|
|
1302
|
-
if (!
|
|
1303
|
-
let t =
|
|
1304
|
-
t && t !== v.value && v.value?.contains(t) || (e.preventDefault(),
|
|
1305
|
-
}),
|
|
1306
|
-
|
|
1307
|
-
}),
|
|
1308
|
-
|
|
1305
|
+
Le("Escape", (e) => {
|
|
1306
|
+
if (!R.value) return;
|
|
1307
|
+
let t = Xe(e);
|
|
1308
|
+
t && t !== v.value && v.value?.contains(t) || (e.preventDefault(), B(), t === v.value && Z());
|
|
1309
|
+
}), Le("ArrowDown", (e) => {
|
|
1310
|
+
R.value && Xe(e) === v.value && (e.preventDefault(), Qe());
|
|
1311
|
+
}), Le("ArrowUp", (e) => {
|
|
1312
|
+
R.value && Xe(e) === v.value && (e.preventDefault(), $e());
|
|
1309
1313
|
});
|
|
1310
|
-
function
|
|
1314
|
+
function at(e, t) {
|
|
1311
1315
|
if (e instanceof HTMLElement && e.isContentEditable) return !0;
|
|
1312
1316
|
switch (e.tagName) {
|
|
1313
1317
|
case "BUTTON":
|
|
@@ -1320,17 +1324,49 @@ var en = ["popover"], tn = [
|
|
|
1320
1324
|
default: return !1;
|
|
1321
1325
|
}
|
|
1322
1326
|
}
|
|
1323
|
-
|
|
1324
|
-
if (!
|
|
1327
|
+
Le([" ", "Enter"], (e) => {
|
|
1328
|
+
if (!R.value || Xe(e) !== v.value) return;
|
|
1325
1329
|
let t = G(v.value);
|
|
1326
|
-
t instanceof HTMLElement && !
|
|
1330
|
+
t instanceof HTMLElement && !at(t, e.key) && t.click();
|
|
1331
|
+
});
|
|
1332
|
+
let ot = !1;
|
|
1333
|
+
Me("keydown", (e) => {
|
|
1334
|
+
e.key !== "Tab" || !R.value || (ot = !0, setTimeout(() => {
|
|
1335
|
+
ot = !1;
|
|
1336
|
+
}));
|
|
1337
|
+
}, {
|
|
1338
|
+
capture: !0,
|
|
1339
|
+
passive: !0
|
|
1340
|
+
});
|
|
1341
|
+
function st(e) {
|
|
1342
|
+
return [...e.querySelectorAll("slot")].flatMap((e) => {
|
|
1343
|
+
let t = e.assignedElements({ flatten: !0 });
|
|
1344
|
+
return [...t, ...t.flatMap(st)];
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
function ct(e) {
|
|
1348
|
+
let t = v.value;
|
|
1349
|
+
if (!t) return !1;
|
|
1350
|
+
let n = new Set(st(t)), r = e;
|
|
1351
|
+
for (; r;) {
|
|
1352
|
+
if (r === t || n.has(r)) return !0;
|
|
1353
|
+
r = r instanceof ShadowRoot ? r.host : r.assignedSlot ?? r.parentNode;
|
|
1354
|
+
}
|
|
1355
|
+
return !1;
|
|
1356
|
+
}
|
|
1357
|
+
Me(v, "focusout", (e) => {
|
|
1358
|
+
let t = e.relatedTarget;
|
|
1359
|
+
!ot || !R.value || l.keepOpen || !(t instanceof Node) || ct(t) || (J(), B());
|
|
1360
|
+
}, {
|
|
1361
|
+
capture: !0,
|
|
1362
|
+
passive: !0
|
|
1327
1363
|
});
|
|
1328
|
-
let
|
|
1364
|
+
let lt = {
|
|
1329
1365
|
"before-enter": () => {
|
|
1330
1366
|
u("beforeExpand"), u("beforeEnter");
|
|
1331
1367
|
},
|
|
1332
1368
|
"after-leave": () => {
|
|
1333
|
-
|
|
1369
|
+
R.value || ae(), u("afterCollapse"), u("afterLeave");
|
|
1334
1370
|
},
|
|
1335
1371
|
enter: () => {
|
|
1336
1372
|
u("enter");
|
|
@@ -1351,115 +1387,115 @@ var en = ["popover"], tn = [
|
|
|
1351
1387
|
u("leaveCancelled");
|
|
1352
1388
|
}
|
|
1353
1389
|
};
|
|
1354
|
-
return (e, t) => (
|
|
1355
|
-
default:
|
|
1356
|
-
init:
|
|
1357
|
-
show:
|
|
1358
|
-
hide:
|
|
1359
|
-
toggle:
|
|
1360
|
-
expanded:
|
|
1361
|
-
aria:
|
|
1390
|
+
return (e, t) => (F(), P(C, null, [_(j(Ue), null, {
|
|
1391
|
+
default: O(() => [c(e.$slots, "default", r(i({
|
|
1392
|
+
init: ze,
|
|
1393
|
+
show: z,
|
|
1394
|
+
hide: B,
|
|
1395
|
+
toggle: V,
|
|
1396
|
+
expanded: j(R),
|
|
1397
|
+
aria: j(He)
|
|
1362
1398
|
})))]),
|
|
1363
1399
|
_: 3
|
|
1364
|
-
}), _(
|
|
1365
|
-
default:
|
|
1400
|
+
}), _(ge, h({ name: e.transitionName }, s(lt), { persisted: "" }), {
|
|
1401
|
+
default: O(() => [fe(le("div", {
|
|
1366
1402
|
ref_key: "floatingEl",
|
|
1367
1403
|
ref: v,
|
|
1368
|
-
popover:
|
|
1369
|
-
style: m(
|
|
1370
|
-
class: a(
|
|
1404
|
+
popover: j(S),
|
|
1405
|
+
style: m(j(be)),
|
|
1406
|
+
class: a(j(qe))
|
|
1371
1407
|
}, [
|
|
1372
|
-
l.arrow ? (
|
|
1408
|
+
l.arrow ? (F(), P("div", {
|
|
1373
1409
|
key: 0,
|
|
1374
1410
|
ref_key: "arrowEl",
|
|
1375
1411
|
ref: y,
|
|
1376
|
-
style: m(
|
|
1412
|
+
style: m(j(Ne)),
|
|
1377
1413
|
class: "vv-dropdown__arrow"
|
|
1378
|
-
}, null, 4)) :
|
|
1414
|
+
}, null, 4)) : k("v-if", !0),
|
|
1379
1415
|
c(e.$slots, "before", r(i({
|
|
1380
|
-
show:
|
|
1381
|
-
hide:
|
|
1382
|
-
toggle:
|
|
1383
|
-
expanded:
|
|
1416
|
+
show: z,
|
|
1417
|
+
hide: B,
|
|
1418
|
+
toggle: V,
|
|
1419
|
+
expanded: j(R)
|
|
1384
1420
|
}))),
|
|
1385
|
-
|
|
1386
|
-
id:
|
|
1421
|
+
le("div", h(j(te), {
|
|
1422
|
+
id: j(p),
|
|
1387
1423
|
ref_key: "listEl",
|
|
1388
1424
|
ref: b,
|
|
1389
|
-
tabindex:
|
|
1390
|
-
role:
|
|
1391
|
-
"aria-labelledby":
|
|
1425
|
+
tabindex: j(R) ? void 0 : -1,
|
|
1426
|
+
role: j(We),
|
|
1427
|
+
"aria-labelledby": j(Ve),
|
|
1392
1428
|
class: "vv-dropdown__list"
|
|
1393
1429
|
}), [c(e.$slots, "items", r(i({
|
|
1394
|
-
show:
|
|
1395
|
-
hide:
|
|
1396
|
-
toggle:
|
|
1397
|
-
expanded:
|
|
1398
|
-
role:
|
|
1399
|
-
})))], 16,
|
|
1430
|
+
show: z,
|
|
1431
|
+
hide: B,
|
|
1432
|
+
toggle: V,
|
|
1433
|
+
expanded: j(R),
|
|
1434
|
+
role: j(it)
|
|
1435
|
+
})))], 16, nn),
|
|
1400
1436
|
c(e.$slots, "after", r(i({
|
|
1401
|
-
show:
|
|
1402
|
-
hide:
|
|
1403
|
-
toggle:
|
|
1404
|
-
expanded:
|
|
1437
|
+
show: z,
|
|
1438
|
+
hide: B,
|
|
1439
|
+
toggle: V,
|
|
1440
|
+
expanded: j(R)
|
|
1405
1441
|
})))
|
|
1406
|
-
], 14,
|
|
1442
|
+
], 14, tn), [[de, j(R)]])]),
|
|
1407
1443
|
_: 3
|
|
1408
1444
|
}, 16, ["name"])], 64));
|
|
1409
1445
|
}
|
|
1410
|
-
}),
|
|
1446
|
+
}), an = {
|
|
1411
1447
|
class: "vv-dropdown-optgroup",
|
|
1412
1448
|
role: "presentation",
|
|
1413
1449
|
tabindex: "-1"
|
|
1414
|
-
},
|
|
1450
|
+
}, on = /* @__PURE__ */ A({
|
|
1415
1451
|
name: "VvDropdownOptgroup",
|
|
1416
|
-
props: {
|
|
1452
|
+
props: { ...et },
|
|
1417
1453
|
setup(e) {
|
|
1418
1454
|
let t = e;
|
|
1419
|
-
return (e, n) => (
|
|
1455
|
+
return (e, n) => (F(), P("li", an, [c(e.$slots, "default", {}, () => [M(E(t.label), 1)])]));
|
|
1420
1456
|
}
|
|
1421
|
-
}),
|
|
1457
|
+
}), sn = /* @__PURE__ */ A({
|
|
1422
1458
|
name: "VvDropdownItem",
|
|
1423
|
-
props:
|
|
1459
|
+
props: Yt,
|
|
1424
1460
|
setup(e) {
|
|
1425
|
-
let t = e, { role: n, expanded: r, onAction: i } =
|
|
1426
|
-
|
|
1461
|
+
let t = e, { role: n, expanded: r, onAction: i } = Vt(), a = w(null);
|
|
1462
|
+
en({
|
|
1427
1463
|
expanded: r,
|
|
1428
1464
|
onAction: i
|
|
1429
1465
|
});
|
|
1430
|
-
let o =
|
|
1466
|
+
let o = je(a), { focused: s } = Ne(a), { focused: l } = Ie(a);
|
|
1431
1467
|
return g(o, (e) => {
|
|
1432
1468
|
e && t.focusOnHover && (s.value = !0);
|
|
1433
|
-
}), (e, t) => (
|
|
1469
|
+
}), (e, t) => (F(), P("div", h({ role: j(n) }, {
|
|
1434
1470
|
ref_key: "element",
|
|
1435
1471
|
ref: a,
|
|
1436
|
-
class: ["vv-dropdown__item", { "focus-visible":
|
|
1472
|
+
class: ["vv-dropdown__item", { "focus-visible": j(s) || j(l) }]
|
|
1437
1473
|
}), [c(e.$slots, "default")], 16));
|
|
1438
1474
|
}
|
|
1439
|
-
}),
|
|
1475
|
+
}), cn = ["title"], ln = /* @__PURE__ */ A({
|
|
1440
1476
|
name: "VvDropdownOption",
|
|
1441
|
-
props:
|
|
1477
|
+
props: Xt,
|
|
1442
1478
|
setup(e) {
|
|
1443
|
-
let t = e, { modifiers: n } =
|
|
1479
|
+
let t = e, { modifiers: n } = N(t), o = kt("vv-dropdown-option", n, T(() => ({
|
|
1444
1480
|
disabled: t.disabled,
|
|
1445
1481
|
selected: t.selected,
|
|
1446
1482
|
unselectable: t.unselectable && t.selected
|
|
1447
|
-
}))), s =
|
|
1448
|
-
return (e, t) => (
|
|
1449
|
-
class: a(
|
|
1483
|
+
}))), s = T(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
1484
|
+
return (e, t) => (F(), S(sn, {
|
|
1485
|
+
class: a(j(o)),
|
|
1450
1486
|
tabindex: e.disabled ? -1 : 0,
|
|
1451
1487
|
"aria-selected": e.selected,
|
|
1452
1488
|
"aria-disabled": e.disabled,
|
|
1453
1489
|
"focus-on-hover": e.focusOnHover
|
|
1454
1490
|
}, {
|
|
1455
|
-
default:
|
|
1491
|
+
default: O(() => [c(e.$slots, "default"), le("span", {
|
|
1456
1492
|
class: "vv-dropdown-option__hint",
|
|
1457
|
-
title:
|
|
1493
|
+
title: j(s)
|
|
1458
1494
|
}, [c(e.$slots, "hint", r(i({
|
|
1459
1495
|
disabled: e.disabled,
|
|
1460
1496
|
selected: e.selected,
|
|
1461
1497
|
unselectable: e.unselectable
|
|
1462
|
-
})), () => [
|
|
1498
|
+
})), () => [M(E(j(s)), 1)])], 8, cn)]),
|
|
1463
1499
|
_: 3
|
|
1464
1500
|
}, 8, [
|
|
1465
1501
|
"class",
|
|
@@ -1469,25 +1505,25 @@ var en = ["popover"], tn = [
|
|
|
1469
1505
|
"focus-on-hover"
|
|
1470
1506
|
]));
|
|
1471
1507
|
}
|
|
1472
|
-
}),
|
|
1473
|
-
...ft,
|
|
1508
|
+
}), un = {
|
|
1474
1509
|
...pt,
|
|
1475
1510
|
...mt,
|
|
1476
|
-
...
|
|
1511
|
+
...ht,
|
|
1512
|
+
...ct,
|
|
1477
1513
|
...q,
|
|
1478
1514
|
...J,
|
|
1479
|
-
...
|
|
1515
|
+
...rt,
|
|
1480
1516
|
...Y,
|
|
1481
1517
|
...X,
|
|
1482
|
-
...
|
|
1518
|
+
...nt,
|
|
1483
1519
|
...$,
|
|
1484
|
-
...
|
|
1485
|
-
...
|
|
1486
|
-
...ct,
|
|
1520
|
+
...it,
|
|
1521
|
+
...st,
|
|
1487
1522
|
...lt,
|
|
1488
|
-
|
|
1523
|
+
...ut,
|
|
1489
1524
|
...et,
|
|
1490
|
-
...
|
|
1525
|
+
...tt,
|
|
1526
|
+
...Qe,
|
|
1491
1527
|
multiple: Boolean,
|
|
1492
1528
|
required: Boolean,
|
|
1493
1529
|
size: [String, Number],
|
|
@@ -1507,17 +1543,17 @@ var en = ["popover"], tn = [
|
|
|
1507
1543
|
},
|
|
1508
1544
|
placeholder: String
|
|
1509
1545
|
};
|
|
1510
|
-
function
|
|
1546
|
+
function dn() {
|
|
1511
1547
|
return {
|
|
1512
|
-
...
|
|
1548
|
+
...un,
|
|
1513
1549
|
options: {
|
|
1514
|
-
...
|
|
1550
|
+
...un.options,
|
|
1515
1551
|
type: Array,
|
|
1516
1552
|
default: () => []
|
|
1517
1553
|
}
|
|
1518
1554
|
};
|
|
1519
1555
|
}
|
|
1520
|
-
function
|
|
1556
|
+
function fn(e, t, n) {
|
|
1521
1557
|
let r = t;
|
|
1522
1558
|
if (Array.isArray(e) && e.length) {
|
|
1523
1559
|
let i = e[0];
|
|
@@ -1529,44 +1565,44 @@ function dn(e, t, n) {
|
|
|
1529
1565
|
}
|
|
1530
1566
|
return r;
|
|
1531
1567
|
}
|
|
1532
|
-
function
|
|
1533
|
-
let r =
|
|
1568
|
+
function pn(e, t, n) {
|
|
1569
|
+
let r = Ot(), i = T(() => {
|
|
1534
1570
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1535
1571
|
});
|
|
1536
|
-
return
|
|
1572
|
+
return T(() => {
|
|
1537
1573
|
if (i.value === void 0) return n;
|
|
1538
1574
|
let e = i.value, r = t, a = n;
|
|
1539
1575
|
return Object.keys(r).reduce((t, n) => {
|
|
1540
1576
|
let i = a[n];
|
|
1541
|
-
return t[n] = n in e ?
|
|
1577
|
+
return t[n] = n in e ? fn(r[n], i, e[n]) : i, t;
|
|
1542
1578
|
}, {});
|
|
1543
1579
|
});
|
|
1544
1580
|
}
|
|
1545
|
-
function
|
|
1546
|
-
let { focused: n } =
|
|
1581
|
+
function mn(e, t) {
|
|
1582
|
+
let { focused: n } = Ne(e);
|
|
1547
1583
|
return g(n, (n) => {
|
|
1548
|
-
t(n ? "focus" : "blur",
|
|
1584
|
+
t(n ? "focus" : "blur", j(e));
|
|
1549
1585
|
}), { focused: n };
|
|
1550
1586
|
}
|
|
1551
|
-
function
|
|
1552
|
-
let { options: t, labelKey: n, valueKey: r, disabledKey: i } =
|
|
1587
|
+
function hn(e) {
|
|
1588
|
+
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = N(e);
|
|
1553
1589
|
return {
|
|
1554
1590
|
options: t,
|
|
1555
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
1556
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
1557
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
1591
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? z(e, n.value) : e),
|
|
1592
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? z(e, r.value) : e,
|
|
1593
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!z(e, i.value) : !1,
|
|
1558
1594
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
1559
1595
|
};
|
|
1560
1596
|
}
|
|
1561
|
-
var
|
|
1597
|
+
var gn = ["for"], _n = { class: "vv-select__wrapper" }, vn = {
|
|
1562
1598
|
key: 0,
|
|
1563
1599
|
class: "vv-select__input-before"
|
|
1564
|
-
},
|
|
1600
|
+
}, yn = { class: "vv-select__inner" }, bn = ["id"], xn = ["disabled", "hidden"], Sn = ["disabled", "value"], Cn = ["disabled", "label"], wn = ["disabled", "value"], Tn = {
|
|
1565
1601
|
key: 2,
|
|
1566
1602
|
class: "vv-select__input-after"
|
|
1567
|
-
},
|
|
1603
|
+
}, En = /* @__PURE__ */ A({
|
|
1568
1604
|
name: "VvSelect",
|
|
1569
|
-
props:
|
|
1605
|
+
props: dn(),
|
|
1570
1606
|
emits: [
|
|
1571
1607
|
"update:modelValue",
|
|
1572
1608
|
"focus",
|
|
@@ -1574,144 +1610,144 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1574
1610
|
"clear"
|
|
1575
1611
|
],
|
|
1576
1612
|
setup(e, { emit: t }) {
|
|
1577
|
-
let n = e, o = t, s = re(), l =
|
|
1613
|
+
let n = e, o = t, s = re(), l = pn("VvSelect", dn(), n), u = w(), { HintSlot: d, hasHintLabelOrSlot: ee, hasInvalidLabelOrSlot: f, hintSlotScope: p } = Dt(l, s), { focused: m } = mn(u, o);
|
|
1578
1614
|
function te(e) {
|
|
1579
1615
|
return typeof e != "string" && e.options?.length;
|
|
1580
1616
|
}
|
|
1581
|
-
let { id: ne, modifiers: v, disabled: y, readonly: x, loading:
|
|
1617
|
+
let { id: ne, modifiers: v, disabled: y, readonly: x, loading: ae, icon: oe, iconPosition: se, invalid: ce, valid: ue, floating: de, multiple: pe } = N(n), D = Wt(ne), me = T(() => `${D.value}-hint`), ge = T(() => n.disabled || n.readonly), _e = T(() => ge.value ? -1 : n.tabindex), A = T({
|
|
1582
1618
|
get: () => n.modelValue,
|
|
1583
1619
|
set: (e) => {
|
|
1584
1620
|
Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !n.unselectable && u.value) ? u.value.value = String(n.modelValue) : o("update:modelValue", e);
|
|
1585
1621
|
}
|
|
1586
|
-
}),
|
|
1587
|
-
g(
|
|
1622
|
+
}), M = T(() => Array.isArray(A.value) ? A.value.length > 0 : A.value !== void 0 && A.value !== null), ye = T(() => !ge.value && n.unselectable), I = L(u);
|
|
1623
|
+
g(I, (e) => {
|
|
1588
1624
|
e && n.autofocus && (m.value = !0);
|
|
1589
1625
|
});
|
|
1590
|
-
let { hasIconBefore:
|
|
1626
|
+
let { hasIconBefore: be, hasIconAfter: xe } = jt(oe, se), Se = T(() => {
|
|
1591
1627
|
if (n.invalid === !0) return !0;
|
|
1592
1628
|
if (n.valid === !0) return !1;
|
|
1593
|
-
}),
|
|
1594
|
-
valid:
|
|
1595
|
-
invalid:
|
|
1596
|
-
loading:
|
|
1629
|
+
}), Ce = kt("vv-select", v, T(() => ({
|
|
1630
|
+
valid: ue.value,
|
|
1631
|
+
invalid: ce.value,
|
|
1632
|
+
loading: ae.value,
|
|
1597
1633
|
disabled: y.value,
|
|
1598
1634
|
readonly: x.value,
|
|
1599
|
-
"icon-before":
|
|
1600
|
-
"icon-after":
|
|
1601
|
-
dirty:
|
|
1602
|
-
focus: m.value && !
|
|
1603
|
-
floating:
|
|
1604
|
-
multiple:
|
|
1605
|
-
}))), { getOptionLabel:
|
|
1635
|
+
"icon-before": be.value !== void 0,
|
|
1636
|
+
"icon-after": xe.value !== void 0,
|
|
1637
|
+
dirty: M.value,
|
|
1638
|
+
focus: m.value && !ge.value,
|
|
1639
|
+
floating: de.value,
|
|
1640
|
+
multiple: pe.value
|
|
1641
|
+
}))), { getOptionLabel: we, getOptionValue: Te, isOptionDisabled: Ee, getOptionGrouped: De } = hn(n);
|
|
1606
1642
|
g(() => n.options, (e) => {
|
|
1607
|
-
if (e?.length && n.autoselectFirst && !
|
|
1608
|
-
let t =
|
|
1609
|
-
|
|
1643
|
+
if (e?.length && n.autoselectFirst && !M.value) {
|
|
1644
|
+
let t = Te(e[0]);
|
|
1645
|
+
A.value = n.multiple ? [t] : t;
|
|
1610
1646
|
}
|
|
1611
1647
|
}, { immediate: !0 });
|
|
1612
|
-
function
|
|
1613
|
-
Array.isArray(
|
|
1648
|
+
function Oe() {
|
|
1649
|
+
Array.isArray(A.value) ? A.value = [] : A.value = void 0, o("clear");
|
|
1614
1650
|
}
|
|
1615
|
-
let
|
|
1651
|
+
let ke = T(() => ({
|
|
1616
1652
|
name: n.name,
|
|
1617
|
-
tabindex:
|
|
1618
|
-
disabled:
|
|
1653
|
+
tabindex: _e.value,
|
|
1654
|
+
disabled: ge.value,
|
|
1619
1655
|
required: n.required,
|
|
1620
1656
|
size: n.size,
|
|
1621
1657
|
autocomplete: n.autocomplete,
|
|
1622
1658
|
multiple: n.multiple,
|
|
1623
1659
|
"aria-label": n.ariaLabel || void 0,
|
|
1624
1660
|
"aria-labelledby": n.ariaLabelledby || void 0,
|
|
1625
|
-
"aria-invalid":
|
|
1626
|
-
"aria-describedby": [n.ariaDescribedby, ee.value ?
|
|
1627
|
-
"aria-errormessage": f.value ?
|
|
1628
|
-
})),
|
|
1661
|
+
"aria-invalid": Se.value,
|
|
1662
|
+
"aria-describedby": [n.ariaDescribedby, ee.value ? me.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
1663
|
+
"aria-errormessage": f.value ? me.value : void 0
|
|
1664
|
+
})), Ae = T(() => ({
|
|
1629
1665
|
valid: n.valid,
|
|
1630
1666
|
invalid: n.invalid,
|
|
1631
1667
|
modelValue: n.modelValue
|
|
1632
1668
|
}));
|
|
1633
|
-
return (e, t) => (
|
|
1634
|
-
e.label ? (
|
|
1669
|
+
return (e, t) => (F(), P("div", { class: a(j(Ce)) }, [
|
|
1670
|
+
e.label ? (F(), P("label", {
|
|
1635
1671
|
key: 0,
|
|
1636
|
-
for:
|
|
1637
|
-
},
|
|
1638
|
-
|
|
1639
|
-
e.$slots.before ? (
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
id:
|
|
1672
|
+
for: j(D)
|
|
1673
|
+
}, E(e.label), 9, gn)) : k("v-if", !0),
|
|
1674
|
+
le("div", _n, [
|
|
1675
|
+
e.$slots.before ? (F(), P("div", vn, [c(e.$slots, "before", r(i(j(Ae))))])) : k("v-if", !0),
|
|
1676
|
+
le("div", yn, [
|
|
1677
|
+
j(be) ? (F(), S(At, h({ key: 0 }, j(be), { class: "vv-select__icon" }), null, 16)) : k("v-if", !0),
|
|
1678
|
+
fe(le("select", h({
|
|
1679
|
+
id: j(D),
|
|
1644
1680
|
ref_key: "selectEl",
|
|
1645
1681
|
ref: u
|
|
1646
|
-
},
|
|
1682
|
+
}, j(ke), { "onUpdate:modelValue": t[0] ||= (e) => ve(A) ? A.value = e : null }), [e.placeholder ? (F(), P("option", {
|
|
1647
1683
|
key: 0,
|
|
1648
1684
|
value: void 0,
|
|
1649
|
-
disabled: !
|
|
1650
|
-
hidden: !
|
|
1651
|
-
},
|
|
1685
|
+
disabled: !j(ye),
|
|
1686
|
+
hidden: !j(ye)
|
|
1687
|
+
}, E(e.placeholder), 9, xn)) : k("v-if", !0), (F(!0), P(C, null, b(e.options, (e, t) => (F(), P(C, null, [te(e) ? (F(), P("optgroup", {
|
|
1652
1688
|
key: `group-${t}`,
|
|
1653
|
-
disabled:
|
|
1654
|
-
label:
|
|
1655
|
-
}, [(
|
|
1689
|
+
disabled: j(Ee)(e),
|
|
1690
|
+
label: j(we)(e)
|
|
1691
|
+
}, [(F(!0), P(C, null, b(j(De)(e), (e, n) => (F(), P("option", {
|
|
1656
1692
|
key: `group-${t}-item-${n}`,
|
|
1657
|
-
disabled:
|
|
1658
|
-
value:
|
|
1659
|
-
},
|
|
1693
|
+
disabled: j(Ee)(e),
|
|
1694
|
+
value: j(Te)(e)
|
|
1695
|
+
}, E(j(we)(e)), 9, wn))), 128))], 8, Cn)) : (F(), P("option", {
|
|
1660
1696
|
key: t,
|
|
1661
|
-
disabled:
|
|
1662
|
-
value:
|
|
1663
|
-
},
|
|
1664
|
-
|
|
1697
|
+
disabled: j(Ee)(e),
|
|
1698
|
+
value: j(Te)(e)
|
|
1699
|
+
}, E(j(we)(e)), 9, Sn))], 64))), 256))], 16, bn), [[he, j(A)]]),
|
|
1700
|
+
j(xe) ? (F(), S(At, h({ key: 1 }, j(xe), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : k("v-if", !0)
|
|
1665
1701
|
]),
|
|
1666
|
-
|
|
1702
|
+
j(ye) && j(l).showClearAction ? (F(), S(j(Mt), {
|
|
1667
1703
|
key: 1,
|
|
1668
1704
|
"input-type": "select",
|
|
1669
1705
|
label: e.labelClear,
|
|
1670
1706
|
icon: e.iconClear,
|
|
1671
|
-
disabled: !
|
|
1672
|
-
onClear:
|
|
1707
|
+
disabled: !j(M),
|
|
1708
|
+
onClear: Oe
|
|
1673
1709
|
}, null, 8, [
|
|
1674
1710
|
"label",
|
|
1675
1711
|
"icon",
|
|
1676
1712
|
"disabled"
|
|
1677
|
-
])) :
|
|
1678
|
-
e.$slots.after ? (
|
|
1713
|
+
])) : k("v-if", !0),
|
|
1714
|
+
e.$slots.after ? (F(), P("div", Tn, [c(e.$slots, "after", r(i(j(Ae))))])) : k("v-if", !0)
|
|
1679
1715
|
]),
|
|
1680
|
-
_(
|
|
1681
|
-
id:
|
|
1716
|
+
_(j(d), {
|
|
1717
|
+
id: j(me),
|
|
1682
1718
|
class: "vv-select__hint"
|
|
1683
|
-
},
|
|
1719
|
+
}, ie({ _: 2 }, [
|
|
1684
1720
|
e.$slots.hint ? {
|
|
1685
1721
|
name: "hint",
|
|
1686
|
-
fn:
|
|
1722
|
+
fn: O(() => [c(e.$slots, "hint", r(i(j(p))))]),
|
|
1687
1723
|
key: "0"
|
|
1688
1724
|
} : void 0,
|
|
1689
1725
|
e.$slots.loading ? {
|
|
1690
1726
|
name: "loading",
|
|
1691
|
-
fn:
|
|
1727
|
+
fn: O(() => [c(e.$slots, "loading", r(i(j(p))))]),
|
|
1692
1728
|
key: "1"
|
|
1693
1729
|
} : void 0,
|
|
1694
1730
|
e.$slots.valid ? {
|
|
1695
1731
|
name: "valid",
|
|
1696
|
-
fn:
|
|
1732
|
+
fn: O(() => [c(e.$slots, "valid", r(i(j(p))))]),
|
|
1697
1733
|
key: "2"
|
|
1698
1734
|
} : void 0,
|
|
1699
1735
|
e.$slots.invalid ? {
|
|
1700
1736
|
name: "invalid",
|
|
1701
|
-
fn:
|
|
1737
|
+
fn: O(() => [c(e.$slots, "invalid", r(i(j(p))))]),
|
|
1702
1738
|
key: "3"
|
|
1703
1739
|
} : void 0
|
|
1704
1740
|
]), 1032, ["id"])
|
|
1705
1741
|
], 2));
|
|
1706
1742
|
}
|
|
1707
|
-
}),
|
|
1743
|
+
}), Dn = ["id"], On = ["id", "for"], kn = [
|
|
1708
1744
|
"id",
|
|
1709
1745
|
"aria-controls",
|
|
1710
1746
|
"placeholder"
|
|
1711
|
-
],
|
|
1747
|
+
], An = {
|
|
1712
1748
|
key: 0,
|
|
1713
1749
|
class: "vv-select__input-before"
|
|
1714
|
-
},
|
|
1750
|
+
}, jn = { class: "vv-select__inner" }, Mn = [
|
|
1715
1751
|
"aria-controls",
|
|
1716
1752
|
"aria-expanded",
|
|
1717
1753
|
"aria-label",
|
|
@@ -1719,21 +1755,21 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1719
1755
|
"aria-describedby",
|
|
1720
1756
|
"aria-errormessage",
|
|
1721
1757
|
"tabindex"
|
|
1722
|
-
],
|
|
1758
|
+
], Nn = {
|
|
1723
1759
|
key: 0,
|
|
1724
1760
|
class: "vv-select__value"
|
|
1725
|
-
},
|
|
1761
|
+
}, Pn = ["aria-label", "onClick"], Fn = {
|
|
1726
1762
|
key: 2,
|
|
1727
1763
|
class: "vv-select__input-after"
|
|
1728
|
-
},
|
|
1764
|
+
}, In = /* @__PURE__ */ A({
|
|
1729
1765
|
name: "VvCombobox",
|
|
1730
1766
|
components: {
|
|
1731
|
-
VvDropdown:
|
|
1732
|
-
VvDropdownOption:
|
|
1733
|
-
VvDropdownOptgroup:
|
|
1734
|
-
VvButton:
|
|
1767
|
+
VvDropdown: rn,
|
|
1768
|
+
VvDropdownOption: ln,
|
|
1769
|
+
VvDropdownOptgroup: on,
|
|
1770
|
+
VvButton: qt
|
|
1735
1771
|
},
|
|
1736
|
-
props: /* @__PURE__ */ p(
|
|
1772
|
+
props: /* @__PURE__ */ p(vt(), {
|
|
1737
1773
|
search: {
|
|
1738
1774
|
type: String,
|
|
1739
1775
|
default: "",
|
|
@@ -1751,96 +1787,96 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1751
1787
|
"change:search"
|
|
1752
1788
|
], ["update:search"]),
|
|
1753
1789
|
setup(e, { emit: t }) {
|
|
1754
|
-
let n = e, o = t, s = re(), d =
|
|
1755
|
-
function
|
|
1756
|
-
clearTimeout(
|
|
1757
|
-
!x.value && !
|
|
1790
|
+
let n = e, o = t, s = re(), d = pn("VvCombobox", vt(), n), ee = w(null), f = w(null), p = w(null), m = w(), { HintSlot: te, hasHintLabelOrSlot: ne, hasInvalidLabelOrSlot: v, hintSlotScope: y } = Dt(d, s), { focused: x } = mn(ee, o), { focused: ae } = Ie(p), ce;
|
|
1791
|
+
function ue() {
|
|
1792
|
+
clearTimeout(ce), ce = setTimeout(() => {
|
|
1793
|
+
!x.value && !ae.value && D.value && ge();
|
|
1758
1794
|
}, 50);
|
|
1759
1795
|
}
|
|
1760
|
-
l(() => clearTimeout(
|
|
1796
|
+
l(() => clearTimeout(ce)), g(x, (e) => {
|
|
1761
1797
|
if (n.autoOpen) {
|
|
1762
|
-
if (e && !
|
|
1798
|
+
if (e && !D.value) {
|
|
1763
1799
|
if (m.value?.restoringFocus) return;
|
|
1764
|
-
clearTimeout(
|
|
1800
|
+
clearTimeout(ce), he();
|
|
1765
1801
|
return;
|
|
1766
1802
|
}
|
|
1767
|
-
!e &&
|
|
1803
|
+
!e && D.value && !ae.value && ue();
|
|
1768
1804
|
}
|
|
1769
|
-
}), g(
|
|
1770
|
-
e ? clearTimeout(
|
|
1805
|
+
}), g(ae, (e) => {
|
|
1806
|
+
e ? clearTimeout(ce) : !x.value && D.value && ue();
|
|
1771
1807
|
});
|
|
1772
|
-
let
|
|
1773
|
-
g(
|
|
1774
|
-
o("update:search",
|
|
1808
|
+
let de = u(e, "search"), pe = R(de, T(() => Number(n.debounceSearch)));
|
|
1809
|
+
g(pe, () => {
|
|
1810
|
+
o("update:search", pe.value), o("change:search", pe.value);
|
|
1775
1811
|
});
|
|
1776
|
-
let
|
|
1777
|
-
function
|
|
1778
|
-
|
|
1812
|
+
let D = w(!1);
|
|
1813
|
+
function me() {
|
|
1814
|
+
L.value || (D.value = !D.value);
|
|
1779
1815
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1816
|
+
function he() {
|
|
1817
|
+
L.value || D.value || (D.value = !0);
|
|
1782
1818
|
}
|
|
1783
|
-
function
|
|
1784
|
-
|
|
1819
|
+
function ge() {
|
|
1820
|
+
L.value || !D.value || (D.value = !1);
|
|
1785
1821
|
}
|
|
1786
|
-
function
|
|
1822
|
+
function A() {
|
|
1787
1823
|
if (d.value.searchable && f.value) {
|
|
1788
1824
|
let e = f.value.closest(".vv-dropdown"), t = f.value.getRootNode();
|
|
1789
1825
|
e?.contains(t.activeElement) || f.value.focus({ preventScroll: !0 });
|
|
1790
1826
|
}
|
|
1791
1827
|
}
|
|
1792
|
-
function
|
|
1793
|
-
d.value.keepSearch || (
|
|
1828
|
+
function ye() {
|
|
1829
|
+
d.value.keepSearch || (de.value = "");
|
|
1794
1830
|
}
|
|
1795
|
-
function
|
|
1831
|
+
function I(e) {
|
|
1796
1832
|
return typeof e != "string" && e.options?.length;
|
|
1797
1833
|
}
|
|
1798
|
-
let { id:
|
|
1834
|
+
let { id: be, icon: xe, iconPosition: Se, modifiers: Ce, disabled: we, required: Te, readonly: Ee, loading: De, valid: Oe, invalid: ke, floating: Ae } = N(n), je = Wt(be), Me = T(() => `${je.value}-hint`), Ne = T(() => `${je.value}-dropdown`), Pe = T(() => `${je.value}-search`), Fe = T(() => `${je.value}-label`), Le = T(() => [n.ariaDescribedby, ne.value ? Me.value : void 0].filter(Boolean).join(" ") || void 0), L = T(() => n.disabled || n.readonly), z = T(() => L.value ? -1 : n.tabindex), B = T({
|
|
1799
1835
|
get: () => Array.isArray(n.modelValue) ? n.modelValue : n.modelValue !== void 0 && n.modelValue !== null ? [n.modelValue] : [],
|
|
1800
1836
|
set: (e) => {
|
|
1801
1837
|
o("update:modelValue", n.multiple || Array.isArray(n.modelValue) ? e : e.pop());
|
|
1802
1838
|
}
|
|
1803
|
-
}),
|
|
1804
|
-
disabled:
|
|
1805
|
-
required:
|
|
1806
|
-
loading:
|
|
1807
|
-
readonly:
|
|
1808
|
-
"icon-before":
|
|
1839
|
+
}), V = T(() => B.value.length), ze = T(() => V.value > 0), Be = T(() => n.multiple ? n.maxValues === void 0 ? 1 / 0 : Number(n.maxValues) : 1), H = T(() => L.value || !n.unselectable ? !1 : Number(n.minValues) === 0 || V.value > Number(n.minValues)), Ve = T(() => L.value ? !1 : !n.multiple || V.value < Be.value), He = w(!1), Ue = T(() => He.value || De.value), { hasIconBefore: U, hasIconAfter: We } = jt(xe, Se), Ke = kt("vv-select", Ce, T(() => ({
|
|
1840
|
+
disabled: we.value,
|
|
1841
|
+
required: Te.value,
|
|
1842
|
+
loading: Ue.value,
|
|
1843
|
+
readonly: Ee.value,
|
|
1844
|
+
"icon-before": U.value !== void 0,
|
|
1809
1845
|
"icon-after": We.value !== void 0,
|
|
1810
|
-
valid:
|
|
1811
|
-
invalid:
|
|
1812
|
-
dirty:
|
|
1813
|
-
focus: (x.value ||
|
|
1814
|
-
floating:
|
|
1846
|
+
valid: Oe.value,
|
|
1847
|
+
invalid: ke.value,
|
|
1848
|
+
dirty: ze.value,
|
|
1849
|
+
focus: (x.value || ae.value || D.value) && !L.value,
|
|
1850
|
+
floating: Ae.value,
|
|
1815
1851
|
badges: n.badges
|
|
1816
|
-
}))),
|
|
1817
|
-
let e = [...
|
|
1818
|
-
for (let t of n.options)
|
|
1852
|
+
}))), qe = w(/* @__PURE__ */ new Set()), { getOptionLabel: W, getOptionValue: G, getOptionGrouped: K, isOptionDisabled: Je } = hn(n), Ye = T(() => {
|
|
1853
|
+
let e = [...qe.value];
|
|
1854
|
+
for (let t of n.options) I(t) ? e.push(...K(t)) : e.push(t);
|
|
1819
1855
|
return e;
|
|
1820
|
-
}),
|
|
1821
|
-
let e = [...n.options, ...
|
|
1822
|
-
for (let t of
|
|
1823
|
-
let n =
|
|
1856
|
+
}), q = T(() => {
|
|
1857
|
+
let e = [...n.options, ...qe.value];
|
|
1858
|
+
for (let t of B.value) Ye.value.some((e) => {
|
|
1859
|
+
let n = G(e);
|
|
1824
1860
|
return typeof n == "object" && typeof t == "object" ? JSON.stringify(n) === JSON.stringify(t) : n === t;
|
|
1825
1861
|
}) || e.push(t);
|
|
1826
1862
|
return e;
|
|
1827
1863
|
});
|
|
1828
|
-
g(
|
|
1829
|
-
e.size > 0 && o("update:options",
|
|
1864
|
+
g(qe, (e) => {
|
|
1865
|
+
e.size > 0 && o("update:options", q.value);
|
|
1830
1866
|
});
|
|
1831
|
-
function
|
|
1832
|
-
return Je(e) || !
|
|
1867
|
+
function J(e) {
|
|
1868
|
+
return Je(e) || !Ve.value && !X(e);
|
|
1833
1869
|
}
|
|
1834
|
-
let
|
|
1870
|
+
let Y = Re(async () => {
|
|
1835
1871
|
if (d.value.searchFunction) {
|
|
1836
|
-
|
|
1837
|
-
let e = await Promise.resolve(d.value.searchFunction(
|
|
1838
|
-
return
|
|
1872
|
+
He.value = !0;
|
|
1873
|
+
let e = await Promise.resolve(d.value.searchFunction(pe.value, q.value));
|
|
1874
|
+
return He.value = !1, e;
|
|
1839
1875
|
}
|
|
1840
|
-
let e =
|
|
1841
|
-
return e ?
|
|
1842
|
-
if (
|
|
1843
|
-
let r =
|
|
1876
|
+
let e = pe.value.toLowerCase().trim();
|
|
1877
|
+
return e ? q.value?.reduce((t, n) => {
|
|
1878
|
+
if (I(n)) {
|
|
1879
|
+
let r = W(n).toLowerCase(), i = K(n).filter((t) => W(t).toLowerCase().includes(e));
|
|
1844
1880
|
if (r.includes(e)) t.push(n);
|
|
1845
1881
|
else if (i.length > 0) {
|
|
1846
1882
|
let e = typeof n == "object" ? {
|
|
@@ -1851,51 +1887,51 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1851
1887
|
}
|
|
1852
1888
|
return t;
|
|
1853
1889
|
}
|
|
1854
|
-
return
|
|
1855
|
-
}, []) :
|
|
1890
|
+
return W(n).toLowerCase().includes(e) && t.push(n), t;
|
|
1891
|
+
}, []) : q.value;
|
|
1856
1892
|
});
|
|
1857
|
-
function
|
|
1858
|
-
let t =
|
|
1859
|
-
return typeof t == "object" ?
|
|
1893
|
+
function X(e) {
|
|
1894
|
+
let t = G(e);
|
|
1895
|
+
return typeof t == "object" ? B.value.some((e) => typeof e == "object" && JSON.stringify(e) === JSON.stringify(t)) : B.value.includes(t);
|
|
1860
1896
|
}
|
|
1861
|
-
let
|
|
1897
|
+
let Z = T(() => q.value.reduce((e, t) => I(t) ? [...e, ...K(t)] : [...e, t], []).filter((e) => X(e))), Xe = T(() => Z.value.map((e) => W(e)).join(n.separator));
|
|
1862
1898
|
function Ze() {
|
|
1863
|
-
n.autoOpen ?
|
|
1899
|
+
n.autoOpen ? he() : me();
|
|
1864
1900
|
}
|
|
1865
1901
|
function Q(e) {
|
|
1866
|
-
let t =
|
|
1867
|
-
t &&
|
|
1902
|
+
let t = X(e), r = G(e);
|
|
1903
|
+
t && H.value ? B.value = B.value.filter((e) => typeof r == "object" && typeof e == "object" ? JSON.stringify(e) !== JSON.stringify(r) : e !== r) : !t && Ve.value && (n.multiple ? B.value = [...B.value, r] : B.value = [r]), !n.multiple && !n.keepOpen && ge();
|
|
1868
1904
|
}
|
|
1869
1905
|
function Qe() {
|
|
1870
|
-
|
|
1906
|
+
B.value = [], o("update:search", ""), o("clear");
|
|
1871
1907
|
}
|
|
1872
|
-
g(
|
|
1873
|
-
if (e?.length && n.autoselectFirst && !
|
|
1874
|
-
let t = e.find((e) => !
|
|
1908
|
+
g(q, (e) => {
|
|
1909
|
+
if (e?.length && n.autoselectFirst && !ze.value) {
|
|
1910
|
+
let t = e.find((e) => !I(e));
|
|
1875
1911
|
if (t) {
|
|
1876
1912
|
Q(t);
|
|
1877
1913
|
return;
|
|
1878
1914
|
}
|
|
1879
|
-
let n = e.find((e) =>
|
|
1915
|
+
let n = e.find((e) => I(e));
|
|
1880
1916
|
if (n) {
|
|
1881
1917
|
let e = K(n);
|
|
1882
1918
|
e.length && Q(e[0]);
|
|
1883
1919
|
}
|
|
1884
1920
|
}
|
|
1885
1921
|
}, { immediate: !0 });
|
|
1886
|
-
let $e =
|
|
1887
|
-
id:
|
|
1922
|
+
let $e = T(() => ({
|
|
1923
|
+
id: je.value,
|
|
1888
1924
|
name: n.name,
|
|
1889
|
-
tabindex:
|
|
1890
|
-
valid:
|
|
1925
|
+
tabindex: z.value,
|
|
1926
|
+
valid: Oe.value,
|
|
1891
1927
|
validLabel: d.value.validLabel,
|
|
1892
|
-
invalid:
|
|
1928
|
+
invalid: ke.value,
|
|
1893
1929
|
invalidLabel: d.value.invalidLabel,
|
|
1894
1930
|
hintLabel: d.value.hintLabel,
|
|
1895
|
-
loading:
|
|
1931
|
+
loading: Ue.value,
|
|
1896
1932
|
loadingLabel: d.value.loadingLabel,
|
|
1897
|
-
disabled:
|
|
1898
|
-
readonly:
|
|
1933
|
+
disabled: we.value,
|
|
1934
|
+
readonly: Ee.value,
|
|
1899
1935
|
modifiers: d.value.modifiers,
|
|
1900
1936
|
options: d.value.options,
|
|
1901
1937
|
labelKey: d.value.labelKey,
|
|
@@ -1903,7 +1939,7 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1903
1939
|
icon: d.value.icon,
|
|
1904
1940
|
iconPosition: d.value.iconPosition,
|
|
1905
1941
|
floating: d.value.floating,
|
|
1906
|
-
unselectable:
|
|
1942
|
+
unselectable: H.value,
|
|
1907
1943
|
autoselectFirst: d.value.autoselectFirst,
|
|
1908
1944
|
multiple: d.value.multiple,
|
|
1909
1945
|
label: d.value.label,
|
|
@@ -1912,8 +1948,8 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1912
1948
|
ariaDescribedby: n.ariaDescribedby,
|
|
1913
1949
|
placeholder: d.value.placeholder,
|
|
1914
1950
|
modelValue: n.modelValue
|
|
1915
|
-
})), et =
|
|
1916
|
-
id:
|
|
1951
|
+
})), et = T(() => ({
|
|
1952
|
+
id: Ne.value,
|
|
1917
1953
|
reference: p.value,
|
|
1918
1954
|
placement: d.value.placement,
|
|
1919
1955
|
strategy: d.value.strategy,
|
|
@@ -1927,19 +1963,19 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1927
1963
|
triggerWidth: d.value.triggerWidth,
|
|
1928
1964
|
topLayer: d.value.topLayer,
|
|
1929
1965
|
modifiers: d.value.dropdownModifiers
|
|
1930
|
-
})), tt =
|
|
1966
|
+
})), tt = T(() => ({
|
|
1931
1967
|
valid: n.valid,
|
|
1932
1968
|
invalid: n.invalid,
|
|
1933
1969
|
modelValue: n.modelValue
|
|
1934
1970
|
}));
|
|
1935
|
-
function
|
|
1936
|
-
e.key !== " " && e.key !== "Enter" || n.autoOpen || !
|
|
1971
|
+
function nt(e) {
|
|
1972
|
+
e.key !== " " && e.key !== "Enter" || n.autoOpen || !D.value && x.value && (e.preventDefault(), e.stopImmediatePropagation(), me());
|
|
1937
1973
|
}
|
|
1938
|
-
function
|
|
1939
|
-
if (
|
|
1940
|
-
if (
|
|
1941
|
-
let e =
|
|
1942
|
-
if (
|
|
1974
|
+
function $() {
|
|
1975
|
+
if (Y.value?.length) {
|
|
1976
|
+
if (Y.value.length === 1) {
|
|
1977
|
+
let e = Y.value[0];
|
|
1978
|
+
if (I(e)) {
|
|
1943
1979
|
let t = K(e);
|
|
1944
1980
|
t.length && Q(t[0]);
|
|
1945
1981
|
return;
|
|
@@ -1949,201 +1985,201 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1949
1985
|
}
|
|
1950
1986
|
m.value?.focusFirstListElement();
|
|
1951
1987
|
} else if (d.value.addable) {
|
|
1952
|
-
let e =
|
|
1953
|
-
if (!e ||
|
|
1954
|
-
|
|
1988
|
+
let e = de.value.trim();
|
|
1989
|
+
if (!e || Ye.value.some((t) => W(t).toLowerCase() === e.toLowerCase())) return;
|
|
1990
|
+
qe.value.add(e), Q(e);
|
|
1955
1991
|
}
|
|
1956
1992
|
}
|
|
1957
|
-
return (e, t) => e.native ? (
|
|
1993
|
+
return (e, t) => e.native ? (F(), S(En, h({ key: 1 }, j($e), { "onUpdate:modelValue": t[3] ||= (e) => o("update:modelValue", e) }), null, 16)) : (F(), P("div", {
|
|
1958
1994
|
key: 0,
|
|
1959
|
-
id:
|
|
1960
|
-
class: a(
|
|
1995
|
+
id: j(je),
|
|
1996
|
+
class: a(j(Ke))
|
|
1961
1997
|
}, [
|
|
1962
|
-
e.label ? (
|
|
1998
|
+
e.label ? (F(), P("label", {
|
|
1963
1999
|
key: 0,
|
|
1964
|
-
id:
|
|
1965
|
-
for:
|
|
1966
|
-
},
|
|
1967
|
-
|
|
2000
|
+
id: j(Fe),
|
|
2001
|
+
for: j(d).searchable ? j(Pe) : void 0
|
|
2002
|
+
}, E(e.label), 9, On)) : k("v-if", !0),
|
|
2003
|
+
le("div", {
|
|
1968
2004
|
ref_key: "wrapperEl",
|
|
1969
2005
|
ref: p,
|
|
1970
2006
|
class: "vv-select__wrapper"
|
|
1971
|
-
}, [_(
|
|
2007
|
+
}, [_(rn, h({
|
|
1972
2008
|
ref_key: "dropdownEl",
|
|
1973
2009
|
ref: m,
|
|
1974
|
-
modelValue:
|
|
1975
|
-
"onUpdate:modelValue": t[2] ||= (e) =>
|
|
1976
|
-
},
|
|
1977
|
-
role:
|
|
1978
|
-
onAfterExpand:
|
|
1979
|
-
onAfterCollapse:
|
|
1980
|
-
}),
|
|
1981
|
-
default:
|
|
1982
|
-
e.$slots.before ? (
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
2010
|
+
modelValue: j(D),
|
|
2011
|
+
"onUpdate:modelValue": t[2] ||= (e) => ve(D) ? D.value = e : null
|
|
2012
|
+
}, j(et), {
|
|
2013
|
+
role: j(Ge).listbox,
|
|
2014
|
+
onAfterExpand: A,
|
|
2015
|
+
onAfterCollapse: ye
|
|
2016
|
+
}), ie({
|
|
2017
|
+
default: O(({ aria: t }) => [
|
|
2018
|
+
e.$slots.before ? (F(), P("div", An, [c(e.$slots, "before", r(i(j(tt))))])) : k("v-if", !0),
|
|
2019
|
+
le("div", jn, [
|
|
2020
|
+
j(U) ? (F(), S(At, h({ key: 0 }, j(U), { class: "vv-select__icon" }), null, 16)) : k("v-if", !0),
|
|
2021
|
+
le("div", h({
|
|
1986
2022
|
ref_key: "inputEl",
|
|
1987
2023
|
ref: ee
|
|
1988
2024
|
}, t, {
|
|
1989
2025
|
class: "vv-select__input",
|
|
1990
2026
|
role: "combobox",
|
|
1991
|
-
"aria-controls":
|
|
1992
|
-
"aria-expanded":
|
|
2027
|
+
"aria-controls": j(Ne),
|
|
2028
|
+
"aria-expanded": j(D),
|
|
1993
2029
|
"aria-label": e.ariaLabel || void 0,
|
|
1994
|
-
"aria-labelledby": e.ariaLabelledby || (e.label ?
|
|
1995
|
-
"aria-describedby":
|
|
1996
|
-
"aria-errormessage":
|
|
1997
|
-
tabindex:
|
|
2030
|
+
"aria-labelledby": e.ariaLabelledby || (e.label ? j(Fe) : void 0),
|
|
2031
|
+
"aria-describedby": j(Le),
|
|
2032
|
+
"aria-errormessage": j(v) ? j(Me) : void 0,
|
|
2033
|
+
tabindex: j(z),
|
|
1998
2034
|
onClickPassive: Ze,
|
|
1999
|
-
onKeydown:
|
|
2000
|
-
}), [
|
|
2001
|
-
selectedOptions:
|
|
2035
|
+
onKeydown: nt
|
|
2036
|
+
}), [j(Xe) ? c(e.$slots, "value", r(i({
|
|
2037
|
+
selectedOptions: j(Z),
|
|
2002
2038
|
onInput: Q
|
|
2003
|
-
})), () => [e.badges ? (
|
|
2039
|
+
})), () => [e.badges ? (F(!0), P(C, { key: 1 }, b(j(Z), (t, n) => (F(), S(Pt, {
|
|
2004
2040
|
key: n,
|
|
2005
2041
|
modifiers: e.badgeModifiers,
|
|
2006
2042
|
class: "vv-select__badge"
|
|
2007
2043
|
}, {
|
|
2008
|
-
default:
|
|
2044
|
+
default: O(() => [M(E(j(W)(t)) + " ", 1), j(H) ? (F(), P("button", {
|
|
2009
2045
|
key: 0,
|
|
2010
|
-
"aria-label":
|
|
2046
|
+
"aria-label": j(d).deselectActionLabel,
|
|
2011
2047
|
type: "button",
|
|
2012
|
-
onClick:
|
|
2013
|
-
}, [_(
|
|
2048
|
+
onClick: se((e) => Q(t), ["stop"])
|
|
2049
|
+
}, [_(At, { name: "close" })], 8, Pn)) : k("v-if", !0)]),
|
|
2014
2050
|
_: 2
|
|
2015
|
-
}, 1032, ["modifiers"]))), 128)) : (
|
|
2016
|
-
|
|
2051
|
+
}, 1032, ["modifiers"]))), 128)) : (F(), P("div", Nn, E(j(Xe)), 1))], void 0, 0) : c(e.$slots, "placeholder", {}, () => [M(E(e.placeholder), 1)], void 0, 1)], 16, Mn),
|
|
2052
|
+
j(We) ? (F(), S(At, h({ key: 1 }, j(We), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : k("v-if", !0)
|
|
2017
2053
|
]),
|
|
2018
|
-
|
|
2054
|
+
j(H) && j(d).showClearAction ? (F(), S(j(Mt), {
|
|
2019
2055
|
key: 1,
|
|
2020
2056
|
"input-type": "select",
|
|
2021
2057
|
label: e.labelClear,
|
|
2022
2058
|
icon: e.iconClear,
|
|
2023
|
-
disabled: !
|
|
2059
|
+
disabled: !j(ze),
|
|
2024
2060
|
onClear: Qe
|
|
2025
2061
|
}, null, 8, [
|
|
2026
2062
|
"label",
|
|
2027
2063
|
"icon",
|
|
2028
2064
|
"disabled"
|
|
2029
|
-
])) :
|
|
2030
|
-
e.$slots.after ? (
|
|
2065
|
+
])) : k("v-if", !0),
|
|
2066
|
+
e.$slots.after ? (F(), P("div", Fn, [c(e.$slots, "after", r(i(j(tt))))])) : k("v-if", !0)
|
|
2031
2067
|
]),
|
|
2032
|
-
items:
|
|
2033
|
-
default:
|
|
2068
|
+
items: O(() => [!j(we) && j(Y)?.length ? (F(!0), P(C, { key: 0 }, b(j(Y), (t, n) => (F(), P(C, { key: n }, [I(t) ? (F(), P(C, { key: 0 }, [_(on, { label: j(W)(t) }, {
|
|
2069
|
+
default: O(() => [c(e.$slots, "option-group", h({ ref_for: !0 }, {
|
|
2034
2070
|
option: t,
|
|
2035
|
-
selectedOptions:
|
|
2036
|
-
}), () => [
|
|
2071
|
+
selectedOptions: j(Z)
|
|
2072
|
+
}), () => [M(E(j(W)(t)), 1)])]),
|
|
2037
2073
|
_: 2
|
|
2038
|
-
}, 1032, ["label"]), (
|
|
2039
|
-
selected:
|
|
2040
|
-
disabled:
|
|
2041
|
-
unselectable:
|
|
2042
|
-
deselectHintLabel:
|
|
2043
|
-
selectHintLabel:
|
|
2044
|
-
selectedHintLabel:
|
|
2074
|
+
}, 1032, ["label"]), (F(!0), P(C, null, b(j(K)(t), (t, n) => (F(), S(ln, h({ ref_for: !0 }, {
|
|
2075
|
+
selected: X(t),
|
|
2076
|
+
disabled: J(t),
|
|
2077
|
+
unselectable: j(H),
|
|
2078
|
+
deselectHintLabel: j(d).deselectHintLabel,
|
|
2079
|
+
selectHintLabel: j(d).selectHintLabel,
|
|
2080
|
+
selectedHintLabel: j(d).selectedHintLabel,
|
|
2045
2081
|
focusOnHover: e.focusOnHover
|
|
2046
2082
|
}, {
|
|
2047
2083
|
key: n,
|
|
2048
2084
|
class: "vv-dropdown-option",
|
|
2049
2085
|
onClickPassive: (e) => Q(t)
|
|
2050
2086
|
}), {
|
|
2051
|
-
default:
|
|
2087
|
+
default: O(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
|
|
2052
2088
|
option: t,
|
|
2053
|
-
selectedOptions:
|
|
2054
|
-
selected:
|
|
2055
|
-
disabled:
|
|
2056
|
-
}), () => [
|
|
2089
|
+
selectedOptions: j(Z),
|
|
2090
|
+
selected: X(t),
|
|
2091
|
+
disabled: J(t)
|
|
2092
|
+
}), () => [M(E(j(W)(t)), 1)])]),
|
|
2057
2093
|
_: 2
|
|
2058
|
-
}, 1040, ["onClickPassive"]))), 128))], 64)) : (
|
|
2094
|
+
}, 1040, ["onClickPassive"]))), 128))], 64)) : (F(), S(ln, h({
|
|
2059
2095
|
key: 1,
|
|
2060
2096
|
ref_for: !0
|
|
2061
2097
|
}, {
|
|
2062
|
-
selected:
|
|
2063
|
-
disabled:
|
|
2064
|
-
unselectable:
|
|
2065
|
-
deselectHintLabel:
|
|
2066
|
-
selectHintLabel:
|
|
2067
|
-
selectedHintLabel:
|
|
2098
|
+
selected: X(t),
|
|
2099
|
+
disabled: J(t),
|
|
2100
|
+
unselectable: j(H),
|
|
2101
|
+
deselectHintLabel: j(d).deselectHintLabel,
|
|
2102
|
+
selectHintLabel: j(d).selectHintLabel,
|
|
2103
|
+
selectedHintLabel: j(d).selectedHintLabel,
|
|
2068
2104
|
focusOnHover: e.focusOnHover
|
|
2069
2105
|
}, {
|
|
2070
2106
|
class: "vv-dropdown-option",
|
|
2071
2107
|
onClickPassive: (e) => Q(t)
|
|
2072
2108
|
}), {
|
|
2073
|
-
default:
|
|
2109
|
+
default: O(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
|
|
2074
2110
|
option: t,
|
|
2075
|
-
selectedOptions:
|
|
2076
|
-
selected:
|
|
2077
|
-
disabled:
|
|
2078
|
-
}), () => [
|
|
2111
|
+
selectedOptions: j(Z),
|
|
2112
|
+
selected: X(t),
|
|
2113
|
+
disabled: J(t)
|
|
2114
|
+
}), () => [M(E(j(W)(t)), 1)])]),
|
|
2079
2115
|
_: 2
|
|
2080
|
-
}, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (
|
|
2116
|
+
}, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (F(), S(ln, {
|
|
2081
2117
|
key: 2,
|
|
2082
2118
|
modifiers: "inert"
|
|
2083
2119
|
}, {
|
|
2084
|
-
default:
|
|
2120
|
+
default: O(() => [c(e.$slots, "no-results", {}, () => [M(E(j(d).addable ? j(d).addOptionHintLabel : j(d).noResultsLabel), 1)])]),
|
|
2085
2121
|
_: 3
|
|
2086
|
-
})) : (
|
|
2122
|
+
})) : (F(), S(ln, {
|
|
2087
2123
|
key: 1,
|
|
2088
2124
|
modifiers: "inert"
|
|
2089
2125
|
}, {
|
|
2090
|
-
default:
|
|
2126
|
+
default: O(() => [c(e.$slots, "no-options", {}, () => [M(E(j(d).addable && de.value.length ? j(d).addOptionHintLabel : j(d).noOptionsLabel), 1)])]),
|
|
2091
2127
|
_: 3
|
|
2092
2128
|
}))]),
|
|
2093
|
-
after:
|
|
2129
|
+
after: O(() => [c(e.$slots, "dropdown::after", {}, () => [j(m)?.customPosition ? (F(), S(qt, {
|
|
2094
2130
|
key: 0,
|
|
2095
|
-
label:
|
|
2131
|
+
label: j(d).closeLabel,
|
|
2096
2132
|
modifiers: "secondary",
|
|
2097
|
-
onClick: t[1] ||= (e) =>
|
|
2098
|
-
}, null, 8, ["label"])) :
|
|
2133
|
+
onClick: t[1] ||= (e) => j(m).hide()
|
|
2134
|
+
}, null, 8, ["label"])) : k("v-if", !0)])]),
|
|
2099
2135
|
_: 2
|
|
2100
|
-
}, [
|
|
2136
|
+
}, [j(d).searchable || e.$slots["dropdown::before"] ? {
|
|
2101
2137
|
name: "before",
|
|
2102
|
-
fn:
|
|
2138
|
+
fn: O(() => [c(e.$slots, "dropdown::before"), j(d).searchable && !j(we) ? fe((F(), P("input", {
|
|
2103
2139
|
key: 0,
|
|
2104
|
-
id:
|
|
2140
|
+
id: j(Pe),
|
|
2105
2141
|
ref_key: "inputSearchEl",
|
|
2106
2142
|
ref: f,
|
|
2107
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
2143
|
+
"onUpdate:modelValue": t[0] ||= (e) => de.value = e,
|
|
2108
2144
|
"aria-autocomplete": "list",
|
|
2109
|
-
"aria-controls":
|
|
2145
|
+
"aria-controls": j(Ne),
|
|
2110
2146
|
autocomplete: "off",
|
|
2111
2147
|
spellcheck: "false",
|
|
2112
2148
|
type: "search",
|
|
2113
2149
|
class: "vv-dropdown__search",
|
|
2114
|
-
placeholder:
|
|
2115
|
-
onKeyup:
|
|
2116
|
-
}, null, 40,
|
|
2150
|
+
placeholder: j(d).searchPlaceholder,
|
|
2151
|
+
onKeyup: _e($, ["enter"])
|
|
2152
|
+
}, null, 40, kn)), [[oe, de.value]]) : k("v-if", !0)]),
|
|
2117
2153
|
key: "0"
|
|
2118
2154
|
} : void 0]), 1040, ["modelValue", "role"])], 512),
|
|
2119
|
-
_(
|
|
2120
|
-
id:
|
|
2155
|
+
_(j(te), {
|
|
2156
|
+
id: j(Me),
|
|
2121
2157
|
class: "vv-select__hint"
|
|
2122
|
-
},
|
|
2158
|
+
}, ie({ _: 2 }, [
|
|
2123
2159
|
e.$slots.hint ? {
|
|
2124
2160
|
name: "hint",
|
|
2125
|
-
fn:
|
|
2161
|
+
fn: O(() => [c(e.$slots, "hint", r(i(j(y))))]),
|
|
2126
2162
|
key: "0"
|
|
2127
2163
|
} : void 0,
|
|
2128
2164
|
e.$slots.loading ? {
|
|
2129
2165
|
name: "loading",
|
|
2130
|
-
fn:
|
|
2166
|
+
fn: O(() => [c(e.$slots, "loading", r(i(j(y))))]),
|
|
2131
2167
|
key: "1"
|
|
2132
2168
|
} : void 0,
|
|
2133
2169
|
e.$slots.valid ? {
|
|
2134
2170
|
name: "valid",
|
|
2135
|
-
fn:
|
|
2171
|
+
fn: O(() => [c(e.$slots, "valid", r(i(j(y))))]),
|
|
2136
2172
|
key: "2"
|
|
2137
2173
|
} : void 0,
|
|
2138
2174
|
e.$slots.invalid ? {
|
|
2139
2175
|
name: "invalid",
|
|
2140
|
-
fn:
|
|
2176
|
+
fn: O(() => [c(e.$slots, "invalid", r(i(j(y))))]),
|
|
2141
2177
|
key: "3"
|
|
2142
2178
|
} : void 0
|
|
2143
2179
|
]), 1032, ["id"])
|
|
2144
|
-
], 10,
|
|
2180
|
+
], 10, Dn));
|
|
2145
2181
|
}
|
|
2146
2182
|
});
|
|
2147
|
-
export {
|
|
2183
|
+
export { In as default };
|
|
2148
2184
|
|
|
2149
|
-
//# sourceMappingURL=VvCombobox.es-
|
|
2185
|
+
//# sourceMappingURL=VvCombobox.es-ZJ44baFa.js.map
|