@8wave/ai-elements 0.124.0-beta.6 → 0.124.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{PkChatbotFilePreview-Dk748hZ0.js → PkChatbotFilePreview-DuvRnOes.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-Dk748hZ0.js.map → PkChatbotFilePreview-DuvRnOes.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js → PkEditorRadioButtons-Cif9q08d.js} +2 -2
- package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js.map → PkEditorRadioButtons-Cif9q08d.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-CC2W-RXG.js → PkFilePreview-D_piCsAW.js} +203 -203
- package/dist/_chunks/{PkFilePreview-CC2W-RXG.js.map → PkFilePreview-D_piCsAW.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js → PkFilePreviewDialog-Bq0ipzrJ.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js.map → PkFilePreviewDialog-Bq0ipzrJ.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-BUHSVQzX.js → PkHeldImage-EMuOT-Iv.js} +2 -2
- package/dist/_chunks/{PkHeldImage-BUHSVQzX.js.map → PkHeldImage-EMuOT-Iv.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-B7PfEr4P.js → PkLazyImg-CLCyyzuo.js} +2 -2
- package/dist/_chunks/{PkLazyImg-B7PfEr4P.js.map → PkLazyImg-CLCyyzuo.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js → PkStreamingMarkdown-CHwrLP75.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js.map → PkStreamingMarkdown-CHwrLP75.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-BMj7-urz.js → PkToolChatFile-DO4zjMJr.js} +4 -4
- package/dist/_chunks/{PkToolChatFile-BMj7-urz.js.map → PkToolChatFile-DO4zjMJr.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js → PkToolRequestGeolocation-C9PSITRU.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js.map → PkToolRequestGeolocation-C9PSITRU.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js → PkToolRequestOAuthConnection-CWi5SeCi.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js.map → PkToolRequestOAuthConnection-CWi5SeCi.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js → PkToolShareDocument-Buzu27rQ.js} +6 -6
- package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js.map → PkToolShareDocument-Buzu27rQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js → PkToolShowArtifact-B2-3-k2F.js} +4 -4
- package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js.map → PkToolShowArtifact-B2-3-k2F.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js → PkToolShowCalendarEvent-mVY2FS24.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js.map → PkToolShowCalendarEvent-mVY2FS24.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js → PkToolShowComparison-7NCImocZ.js} +4 -4
- package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js.map → PkToolShowComparison-7NCImocZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js → PkToolShowContactForm-DbOZHB_G.js} +5 -5
- package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js.map → PkToolShowContactForm-DbOZHB_G.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js → PkToolShowDiagram-BHd-C_cx.js} +4 -4
- package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js.map → PkToolShowDiagram-BHd-C_cx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js → PkToolShowEmail-B9F7dnif.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js.map → PkToolShowEmail-B9F7dnif.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js → PkToolShowForm-o2LuWDNq.js} +6 -6
- package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js.map → PkToolShowForm-o2LuWDNq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js → PkToolShowImageGallery-DAcW2Dau.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js.map → PkToolShowImageGallery-DAcW2Dau.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js → PkToolShowLocation-CLS9HQIJ.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js.map → PkToolShowLocation-CLS9HQIJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js → PkToolShowMessage-BoKDMyvU.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js.map → PkToolShowMessage-BoKDMyvU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js → PkToolShowProductList-OYwQCHar.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js.map → PkToolShowProductList-OYwQCHar.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js → PkToolShowQrCode-e6DxEcWY.js} +4 -4
- package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js.map → PkToolShowQrCode-e6DxEcWY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CTc2s510.js → PkToolShowSources-CUNneZCp.js} +4 -4
- package/dist/_chunks/{PkToolShowSources-CTc2s510.js.map → PkToolShowSources-CUNneZCp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js → PkToolShowSuggestedReply-BTE7TZ4Z.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js.map → PkToolShowSuggestedReply-BTE7TZ4Z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js → PkToolShowVideo-bTWeXtZd.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js.map → PkToolShowVideo-bTWeXtZd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js → PkToolShowWeather-Nr7POGAS.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js.map → PkToolShowWeather-Nr7POGAS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js → PkToolShowWebPages-DNbdkSSz.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js.map → PkToolShowWebPages-DNbdkSSz.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js → VvButtonLocalized-KEhD3ono.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js.map → VvButtonLocalized-KEhD3ono.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js → VvCheckboxGroup.es-D67JvxVf.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js.map → VvCheckboxGroup.es-D67JvxVf.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-D8QFCY85.js → VvCombobox.es-Bb9Dbtdg.js} +457 -457
- package/dist/_chunks/{VvCombobox.es-D8QFCY85.js.map → VvCombobox.es-Bb9Dbtdg.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-CaN-GUXU.js → VvInputText.es-CWgEXnVy.js} +396 -396
- package/dist/_chunks/{VvInputText.es-CaN-GUXU.js.map → VvInputText.es-CWgEXnVy.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js → VvRadioGroup.es-B3UbDh0z.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js.map → VvRadioGroup.es-B3UbDh0z.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js → VvSelect.es-BZkBK0gK.js} +170 -170
- package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js.map → VvSelect.es-BZkBK0gK.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-BNgA61wM.js → VvTextarea.es-C8vAvoJh.js} +139 -139
- package/dist/_chunks/{VvTextarea.es-BNgA61wM.js.map → VvTextarea.es-C8vAvoJh.js.map} +1 -1
- package/dist/_chunks/{dist-m75acBC9.js → dist-B3-I_01H.js} +67 -15
- package/dist/_chunks/dist-B3-I_01H.js.map +1 -0
- package/dist/_chunks/{index.es-fkUmGg9G.js → index.es-C7ON2BA3.js} +38 -38
- package/dist/_chunks/{index.es-fkUmGg9G.js.map → index.es-C7ON2BA3.js.map} +1 -1
- package/dist/_chunks/{index.es-DRbDRAW5.js → index.es-CYAq7LJb.js} +10 -10
- package/dist/_chunks/{index.es-DRbDRAW5.js.map → index.es-CYAq7LJb.js.map} +1 -1
- package/dist/_chunks/{utils-DAQfsk2H.js → utils-BHvRrCzW.js} +6 -2
- package/dist/_chunks/utils-BHvRrCzW.js.map +1 -0
- package/dist/ai-elements.es.js +2747 -2727
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/_chunks/utils-BuxgMuKv.js.map +1 -1
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +9 -0
- package/dist-vue/packages/components/src/chat/PkPageControlBar.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +8 -0
- package/package.json +1 -1
- package/dist/_chunks/dist-m75acBC9.js.map +0 -1
- package/dist/_chunks/utils-DAQfsk2H.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 C, bt as ie, c as ae, d as oe, et as se, f as w, g as T, gt as E, h as D, k as ce, kt as O, l as le, nt as ue, ot as de, q as k, r as fe, s as pe, t as me, tt as A, u as he, ut as ge, v as j, w as M, wt as N, x as P, xt as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as
|
|
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 C, bt as ie, c as ae, d as oe, et as se, f as w, g as T, gt as E, h as D, k as ce, kt as O, l as le, nt as ue, ot as de, q as k, r as fe, s as pe, t as me, tt as A, u as he, ut as ge, v as j, w as M, wt as N, x as P, xt as _e, y as F, z as I } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
|
|
2
|
+
import { a as ve, i as L, t as ye } from "./iconify-oSMMdRMF.js";
|
|
3
|
+
import { C as be, c as xe, d as Se, f as Ce, h as we, n as Te, r as Ee, t as R, u as De, x as Oe } from "./dist-B3-I_01H.js";
|
|
4
|
+
import { a as ke, c as Ae, i as je, l as z, n as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./floating-ui.vue-HobyB7z6.js";
|
|
5
|
+
import { t as B } from "./dot-prop-Dmp6Zjqs.js";
|
|
6
6
|
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.25_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_6457cdc65e61a009108dae6427ee3925/node_modules/@volverjs/ui-vue/dist/components/VvCombobox/VvCombobox.es.js
|
|
7
7
|
ce(), fe(), de(), v();
|
|
8
|
-
var
|
|
8
|
+
var Le = {
|
|
9
9
|
showPassword: "eye-on",
|
|
10
10
|
hidePassword: "eye-off",
|
|
11
11
|
showDatePicker: "calendar",
|
|
@@ -16,27 +16,27 @@ var Ie = {
|
|
|
16
16
|
remove: "trash",
|
|
17
17
|
edit: "edit",
|
|
18
18
|
download: "download"
|
|
19
|
-
},
|
|
19
|
+
}, V = { prefix: "normal" }, Re = /* @__PURE__ */ (function(e) {
|
|
20
20
|
return e.local = "local", e.session = "session", e;
|
|
21
|
-
})({}),
|
|
21
|
+
})({}), ze = /* @__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
|
-
})({}), ze = /* @__PURE__ */ (function(e) {
|
|
26
|
-
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
27
25
|
})({}), Be = /* @__PURE__ */ (function(e) {
|
|
28
|
-
return e.
|
|
26
|
+
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
29
27
|
})({}), Ve = /* @__PURE__ */ (function(e) {
|
|
28
|
+
return e.before = "before", e.after = "after", e;
|
|
29
|
+
})({}), He = /* @__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
|
+
})({}), Ue = /* @__PURE__ */ (function(e) {
|
|
34
34
|
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
35
|
-
})({}),
|
|
35
|
+
})({}), W = /* @__PURE__ */ (function(e) {
|
|
36
36
|
return e.listbox = "listbox", e.menu = "menu", e;
|
|
37
|
-
})({}),
|
|
37
|
+
})({}), G = /* @__PURE__ */ (function(e) {
|
|
38
38
|
return e.option = "option", e.presentation = "presentation", e;
|
|
39
|
-
})({}), We = /* @__PURE__ */ Symbol.for("volver"), Ge = /* @__PURE__ */ Symbol.for("buttonGroup"), K = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Ke = /* @__PURE__ */ Symbol.for("dropdownItem"),
|
|
39
|
+
})({}), We = /* @__PURE__ */ Symbol.for("volver"), Ge = /* @__PURE__ */ Symbol.for("buttonGroup"), K = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Ke = /* @__PURE__ */ Symbol.for("dropdownItem"), q = /* @__PURE__ */ Symbol.for("dropdownAction"), qe = {
|
|
40
40
|
to: { type: [String, Object] },
|
|
41
41
|
href: String,
|
|
42
42
|
target: String,
|
|
@@ -44,7 +44,7 @@ var Ie = {
|
|
|
44
44
|
type: String,
|
|
45
45
|
default: "noopener noreferrer"
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, Je = {
|
|
48
48
|
valid: {
|
|
49
49
|
type: Boolean,
|
|
50
50
|
default: !1
|
|
@@ -53,7 +53,7 @@ var Ie = {
|
|
|
53
53
|
type: [String, Array],
|
|
54
54
|
default: void 0
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, J = {
|
|
57
57
|
invalid: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: !1
|
|
@@ -62,7 +62,7 @@ var Ie = {
|
|
|
62
62
|
type: [String, Array],
|
|
63
63
|
default: void 0
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, Y = {
|
|
66
66
|
loading: {
|
|
67
67
|
type: Boolean,
|
|
68
68
|
default: !1
|
|
@@ -71,41 +71,41 @@ var Ie = {
|
|
|
71
71
|
type: String,
|
|
72
72
|
default: "Loading..."
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, X = { disabled: {
|
|
75
75
|
type: Boolean,
|
|
76
76
|
default: !1
|
|
77
|
-
} },
|
|
77
|
+
} }, Z = { required: {
|
|
78
78
|
type: Boolean,
|
|
79
79
|
default: !1
|
|
80
|
-
} },
|
|
80
|
+
} }, Ye = { selected: {
|
|
81
81
|
type: Boolean,
|
|
82
82
|
default: !1
|
|
83
|
-
} },
|
|
83
|
+
} }, Xe = { active: {
|
|
84
84
|
type: Boolean,
|
|
85
85
|
default: !1
|
|
86
|
-
} },
|
|
86
|
+
} }, Ze = { current: {
|
|
87
87
|
type: Boolean,
|
|
88
88
|
default: !1
|
|
89
|
-
} },
|
|
89
|
+
} }, Q = {
|
|
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: Le.clear
|
|
97
97
|
},
|
|
98
98
|
labelClear: {
|
|
99
99
|
type: String,
|
|
100
100
|
default: "Clear"
|
|
101
101
|
}
|
|
102
|
-
},
|
|
102
|
+
}, Qe = { pressed: {
|
|
103
103
|
type: Boolean,
|
|
104
104
|
default: !1
|
|
105
|
-
} },
|
|
105
|
+
} }, $e = { label: {
|
|
106
106
|
type: [String, Number],
|
|
107
107
|
default: void 0
|
|
108
|
-
} },
|
|
108
|
+
} }, et = {
|
|
109
109
|
ariaLabel: {
|
|
110
110
|
type: String,
|
|
111
111
|
default: void 0
|
|
@@ -118,16 +118,16 @@ var Ie = {
|
|
|
118
118
|
type: String,
|
|
119
119
|
default: void 0
|
|
120
120
|
}
|
|
121
|
-
},
|
|
121
|
+
}, tt = { readonly: {
|
|
122
122
|
type: Boolean,
|
|
123
123
|
default: !1
|
|
124
|
-
} },
|
|
124
|
+
} }, $ = { modifiers: {
|
|
125
125
|
type: [String, Array],
|
|
126
126
|
default: void 0
|
|
127
|
-
} },
|
|
127
|
+
} }, nt = { hintLabel: {
|
|
128
128
|
type: String,
|
|
129
129
|
default: ""
|
|
130
|
-
} },
|
|
130
|
+
} }, rt = {
|
|
131
131
|
options: {
|
|
132
132
|
type: Array,
|
|
133
133
|
default: () => []
|
|
@@ -144,7 +144,7 @@ var Ie = {
|
|
|
144
144
|
type: [String, Function],
|
|
145
145
|
default: "disabled"
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, it = { count: {
|
|
148
148
|
type: [Boolean, String],
|
|
149
149
|
default: !1,
|
|
150
150
|
validator: (e) => [
|
|
@@ -153,38 +153,38 @@ var Ie = {
|
|
|
153
153
|
"limit",
|
|
154
154
|
"countdown"
|
|
155
155
|
].includes(e)
|
|
156
|
-
} },
|
|
156
|
+
} }, at = { debounce: {
|
|
157
157
|
type: [Number, String],
|
|
158
158
|
default: void 0
|
|
159
|
-
} },
|
|
159
|
+
} }, ot = {
|
|
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: Ve.before,
|
|
167
|
+
validator: (e) => Object.values(Ve).includes(e)
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, st = { tabindex: {
|
|
170
170
|
type: [String, Number],
|
|
171
171
|
default: 0
|
|
172
|
-
} },
|
|
172
|
+
} }, ct = { floating: {
|
|
173
173
|
type: Boolean,
|
|
174
174
|
default: !1
|
|
175
|
-
} },
|
|
175
|
+
} }, lt = { unselectable: {
|
|
176
176
|
type: Boolean,
|
|
177
177
|
default: !0
|
|
178
|
-
} },
|
|
178
|
+
} }, ut = { id: [String, Number] }, dt = {
|
|
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(Be).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(ze).includes(e)
|
|
188
188
|
},
|
|
189
189
|
transitionName: {
|
|
190
190
|
type: String,
|
|
@@ -234,72 +234,72 @@ var Ie = {
|
|
|
234
234
|
type: Boolean,
|
|
235
235
|
default: !1
|
|
236
236
|
}
|
|
237
|
-
},
|
|
238
|
-
...
|
|
237
|
+
}, ft = {
|
|
238
|
+
...ut,
|
|
239
239
|
name: {
|
|
240
240
|
type: String,
|
|
241
241
|
required: !0
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, pt = { autofocus: {
|
|
244
244
|
type: Boolean,
|
|
245
245
|
default: !1
|
|
246
|
-
} },
|
|
246
|
+
} }, mt = { autocomplete: {
|
|
247
247
|
type: String,
|
|
248
248
|
default: "off"
|
|
249
249
|
} };
|
|
250
250
|
({
|
|
251
|
+
...ft,
|
|
251
252
|
...pt,
|
|
252
253
|
...mt,
|
|
253
|
-
...
|
|
254
|
-
...
|
|
255
|
-
...
|
|
256
|
-
...
|
|
257
|
-
...Ye,
|
|
258
|
-
...q,
|
|
259
|
-
...rt,
|
|
254
|
+
...st,
|
|
255
|
+
...X,
|
|
256
|
+
...tt,
|
|
257
|
+
...Je,
|
|
260
258
|
...J,
|
|
261
|
-
...
|
|
259
|
+
...nt,
|
|
260
|
+
...Y,
|
|
261
|
+
...$,
|
|
262
|
+
...it,
|
|
262
263
|
...at,
|
|
263
264
|
...ot,
|
|
264
|
-
...st,
|
|
265
|
-
...lt,
|
|
266
|
-
...et,
|
|
267
|
-
...tt
|
|
268
|
-
}), { ...X }, {
|
|
269
|
-
...pt,
|
|
270
265
|
...ct,
|
|
271
|
-
|
|
272
|
-
...
|
|
273
|
-
|
|
274
|
-
...
|
|
266
|
+
...$e,
|
|
267
|
+
...et
|
|
268
|
+
}), { ...Z }, {
|
|
269
|
+
...ft,
|
|
270
|
+
...st,
|
|
271
|
+
...Je,
|
|
272
|
+
...J,
|
|
275
273
|
...nt,
|
|
276
|
-
...
|
|
277
|
-
...et,
|
|
274
|
+
...X,
|
|
278
275
|
...tt,
|
|
279
|
-
|
|
276
|
+
...$,
|
|
277
|
+
...$e,
|
|
278
|
+
...et,
|
|
279
|
+
...Y
|
|
280
280
|
}, {
|
|
281
|
-
...
|
|
282
|
-
...
|
|
283
|
-
...it,
|
|
281
|
+
...Je,
|
|
282
|
+
...J,
|
|
284
283
|
...rt,
|
|
285
|
-
...Y,
|
|
286
284
|
...nt,
|
|
287
|
-
...
|
|
288
|
-
...
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
};
|
|
292
|
-
var gt = {
|
|
285
|
+
...X,
|
|
286
|
+
...tt,
|
|
287
|
+
...$,
|
|
288
|
+
...$e,
|
|
293
289
|
...Y,
|
|
294
|
-
...
|
|
290
|
+
...Z
|
|
291
|
+
};
|
|
292
|
+
var ht = {
|
|
293
|
+
...X,
|
|
295
294
|
...$e,
|
|
296
|
-
...Ze,
|
|
297
295
|
...Qe,
|
|
298
|
-
...
|
|
296
|
+
...Xe,
|
|
297
|
+
...Ze,
|
|
298
|
+
...qe,
|
|
299
299
|
type: {
|
|
300
300
|
type: String,
|
|
301
|
-
default:
|
|
302
|
-
validator: (e) => Object.values(
|
|
301
|
+
default: He.button,
|
|
302
|
+
validator: (e) => Object.values(He).includes(e)
|
|
303
303
|
},
|
|
304
304
|
ariaLabel: {
|
|
305
305
|
type: String,
|
|
@@ -307,28 +307,28 @@ var gt = {
|
|
|
307
307
|
},
|
|
308
308
|
defaultTag: {
|
|
309
309
|
type: String,
|
|
310
|
-
default:
|
|
310
|
+
default: U.button
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
|
-
|
|
314
|
-
var
|
|
315
|
-
...
|
|
316
|
-
...
|
|
317
|
-
...
|
|
318
|
-
...q,
|
|
319
|
-
...rt,
|
|
313
|
+
Re.local;
|
|
314
|
+
var gt = {
|
|
315
|
+
...ft,
|
|
316
|
+
...st,
|
|
317
|
+
...Je,
|
|
320
318
|
...J,
|
|
321
|
-
...Y,
|
|
322
319
|
...nt,
|
|
323
|
-
...
|
|
324
|
-
...it,
|
|
325
|
-
...st,
|
|
326
|
-
...lt,
|
|
327
|
-
...ft,
|
|
328
|
-
...et,
|
|
329
|
-
...tt,
|
|
320
|
+
...Y,
|
|
330
321
|
...X,
|
|
322
|
+
...tt,
|
|
323
|
+
...$,
|
|
324
|
+
...rt,
|
|
325
|
+
...ot,
|
|
326
|
+
...ct,
|
|
327
|
+
...dt,
|
|
328
|
+
...$e,
|
|
329
|
+
...et,
|
|
331
330
|
...Z,
|
|
331
|
+
...Q,
|
|
332
332
|
transitionName: {
|
|
333
333
|
type: String,
|
|
334
334
|
default: "vv-dropdown--mobile-fade-block"
|
|
@@ -416,7 +416,7 @@ var _t = {
|
|
|
416
416
|
default: "action sm"
|
|
417
417
|
},
|
|
418
418
|
triggerWidth: {
|
|
419
|
-
...
|
|
419
|
+
...dt.triggerWidth,
|
|
420
420
|
default: !0
|
|
421
421
|
},
|
|
422
422
|
dropdownModifiers: {
|
|
@@ -440,50 +440,50 @@ var _t = {
|
|
|
440
440
|
default: !0
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function _t() {
|
|
444
444
|
return {
|
|
445
|
-
...
|
|
445
|
+
...gt,
|
|
446
446
|
options: {
|
|
447
|
-
...
|
|
447
|
+
...gt.options,
|
|
448
448
|
type: Array
|
|
449
449
|
},
|
|
450
450
|
searchFunction: {
|
|
451
|
-
...
|
|
451
|
+
...gt.searchFunction,
|
|
452
452
|
type: Function
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return n ?
|
|
456
|
+
function vt(e, t, n) {
|
|
457
|
+
return n ? St(e, n) === St(t, n) : xt(e, t);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function yt(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 (!xt(e[n], t[n])) return !1;
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function bt(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 (!xt(e[r], t[r])) return !1;
|
|
471
471
|
}
|
|
472
472
|
return !0;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function xt(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 yt(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() : bt(e, t) : !1;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function St(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,20 +495,20 @@ function Ct(e, t) {
|
|
|
495
495
|
}
|
|
496
496
|
return null;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Ct(e, t) {
|
|
499
499
|
if (e != null && t?.length) {
|
|
500
|
-
for (let n of t) if (
|
|
500
|
+
for (let n of t) if (vt(e, n)) return !0;
|
|
501
501
|
}
|
|
502
502
|
return !1;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function wt(e) {
|
|
505
505
|
return typeof e == "string";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
507
|
+
function Tt(e) {
|
|
508
|
+
return Array.isArray(e) ? e.filter((e) => wt(e)).join(" ") : e;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
let r = D(() => ge(e) ? e.value : e), i = D(() =>
|
|
510
|
+
function Et(e, t) {
|
|
511
|
+
let r = D(() => ge(e) ? e.value : e), i = D(() => Tt(r.value.invalidLabel)), a = D(() => Tt(r.value.validLabel)), o = D(() => r.value.loadingLabel), s = D(() => r.value.hintLabel), c = D(() => !!(r.value.loading && (t.loading || o.value))), l = D(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = D(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = D(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), ee = D(() => l.value || u.value || c.value || d.value);
|
|
512
512
|
return {
|
|
513
513
|
hasInvalidLabelOrSlot: l,
|
|
514
514
|
hasHintLabelOrSlot: d,
|
|
@@ -549,10 +549,10 @@ function Dt(e, t) {
|
|
|
549
549
|
})
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Dt() {
|
|
553
553
|
return e(We, void 0);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Ot(e, t, n) {
|
|
556
556
|
return D(() => {
|
|
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) => {
|
|
@@ -562,7 +562,7 @@ function kt(e, t, n) {
|
|
|
562
562
|
}), r;
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var kt = /* @__PURE__ */ M({
|
|
566
566
|
name: "VvIcon",
|
|
567
567
|
props: /* @__PURE__ */ f({
|
|
568
568
|
name: {},
|
|
@@ -581,14 +581,14 @@ var $ = /* @__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 = D(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = E(!0), i =
|
|
586
|
+
let t = e, n = D(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = E(!0), i = Dt(), { modifiers: a } = _e(t), o = Ot("vv-icon", a), s = D(() => t.provider || i?.iconsProvider), c = D(() => {
|
|
587
587
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
588
|
-
if (
|
|
588
|
+
if (ve(n)) return n;
|
|
589
589
|
let r = i?.iconsCollections.find((t) => {
|
|
590
590
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
591
|
-
return
|
|
591
|
+
return ve(n);
|
|
592
592
|
});
|
|
593
593
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
594
594
|
});
|
|
@@ -597,17 +597,17 @@ var $ = /* @__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 && L(`@${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 && !ve(`@${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) => N(r) ? (
|
|
610
|
+
})), t.svg && u(t.svg), (t, i) => N(r) ? (I(), S(N(ye), h({
|
|
611
611
|
key: 0,
|
|
612
612
|
class: N(o)
|
|
613
613
|
}, {
|
|
@@ -624,19 +624,19 @@ var $ = /* @__PURE__ */ M({
|
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
function At(e, t) {
|
|
627
|
-
let n = D(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = D(() => t?.value ===
|
|
627
|
+
let n = D(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = D(() => t?.value === Ve.before ? n.value : void 0), i = D(() => t?.value === Ve.after ? n.value : void 0);
|
|
628
628
|
return {
|
|
629
629
|
hasIcon: n,
|
|
630
|
-
hasIconLeft: D(() => t?.value ===
|
|
631
|
-
hasIconRight: D(() => t?.value ===
|
|
632
|
-
hasIconTop: D(() => t?.value ===
|
|
633
|
-
hasIconBottom: D(() => t?.value ===
|
|
630
|
+
hasIconLeft: D(() => t?.value === H.left ? n.value : void 0),
|
|
631
|
+
hasIconRight: D(() => t?.value === H.right ? n.value : void 0),
|
|
632
|
+
hasIconTop: D(() => t?.value === H.top ? n.value : void 0),
|
|
633
|
+
hasIconBottom: D(() => t?.value === H.bottom ? n.value : void 0),
|
|
634
634
|
hasIconBefore: r,
|
|
635
635
|
hasIconAfter: i
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
638
|
var jt = M({
|
|
639
|
-
components: { VvIcon:
|
|
639
|
+
components: { VvIcon: kt },
|
|
640
640
|
props: {
|
|
641
641
|
inputType: {
|
|
642
642
|
type: String,
|
|
@@ -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(kt, {
|
|
671
671
|
...this.hasIcon,
|
|
672
672
|
class: `vv-${this.inputType}__icon`
|
|
673
673
|
}) : void 0;
|
|
@@ -680,14 +680,14 @@ var jt = M({
|
|
|
680
680
|
}, e);
|
|
681
681
|
}
|
|
682
682
|
}), Mt = {
|
|
683
|
-
|
|
683
|
+
...$,
|
|
684
684
|
value: [String, Number]
|
|
685
685
|
}, Nt = /* @__PURE__ */ M({
|
|
686
686
|
name: "VvBadge",
|
|
687
687
|
props: Mt,
|
|
688
688
|
setup(e) {
|
|
689
|
-
let { modifiers: t } =
|
|
690
|
-
return (e, t) => (
|
|
689
|
+
let { modifiers: t } = _e(e), n = Ot("vv-badge", t);
|
|
690
|
+
return (e, t) => (I(), F("span", { class: a(N(n)) }, [c(e.$slots, "default", {}, () => [P(O(e.value), 1)])], 2));
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
function Pt(t) {
|
|
@@ -719,16 +719,16 @@ function Pt(t) {
|
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
var Ft = ["update:modelValue"], It = {
|
|
722
|
-
...
|
|
723
|
-
...dt,
|
|
724
|
-
...Q,
|
|
722
|
+
...ht,
|
|
725
723
|
...ut,
|
|
726
|
-
|
|
727
|
-
...
|
|
724
|
+
...$,
|
|
725
|
+
...lt,
|
|
726
|
+
...Y,
|
|
727
|
+
...ot,
|
|
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,
|
|
@@ -764,7 +764,7 @@ var Ft = ["update:modelValue"], It = {
|
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
766
|
function Lt(e, t) {
|
|
767
|
-
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Pt(Ge), { id: a, iconPosition: o, icon: s, label: c, pressed: l } =
|
|
767
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Pt(Ge), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = _e(e);
|
|
768
768
|
return {
|
|
769
769
|
group: n,
|
|
770
770
|
isInGroup: r,
|
|
@@ -796,14 +796,14 @@ function Bt() {
|
|
|
796
796
|
return e(Ke, {});
|
|
797
797
|
}
|
|
798
798
|
function Vt() {
|
|
799
|
-
return e(
|
|
799
|
+
return e(q, {});
|
|
800
800
|
}
|
|
801
801
|
var Ht = /* @__PURE__ */ M({
|
|
802
802
|
name: "VvAction",
|
|
803
|
-
props:
|
|
803
|
+
props: ht,
|
|
804
804
|
emits: Rt,
|
|
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 = Dt(), s = E(null);
|
|
807
807
|
t({ $el: s });
|
|
808
808
|
let { reference: l, bus: u, aria: d, expanded: ee } = zt();
|
|
809
809
|
g(() => s.value, (e) => {
|
|
@@ -811,9 +811,9 @@ var Ht = /* @__PURE__ */ M({
|
|
|
811
811
|
});
|
|
812
812
|
let f = D(() => r.pressed || ee?.value), { role: p } = Vt(), m = D(() => {
|
|
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
819
|
}), _ = D(() => {
|
|
@@ -824,19 +824,19 @@ var Ht = /* @__PURE__ */ M({
|
|
|
824
824
|
role: p?.value
|
|
825
825
|
};
|
|
826
826
|
switch (m.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,7 +853,7 @@ var Ht = /* @__PURE__ */ M({
|
|
|
853
853
|
function b(e) {
|
|
854
854
|
a?.vnode.props?.onMouseleave ? i("mouseleave", e) : u?.emit("mouseleave", e);
|
|
855
855
|
}
|
|
856
|
-
return (e, t) => (
|
|
856
|
+
return (e, t) => (I(), S(x(N(m)), h(N(_), {
|
|
857
857
|
ref_key: "rootEl",
|
|
858
858
|
ref: s,
|
|
859
859
|
class: {
|
|
@@ -889,9 +889,9 @@ var Wt = {
|
|
|
889
889
|
setup(e, { expose: t, emit: n }) {
|
|
890
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: _ } = Lt(r, i), te = Ut(s), ne = D(() => a?.name || te.value), v = E(null);
|
|
891
891
|
t({ $el: D(() => v.value?.$el) });
|
|
892
|
-
let y = D(() => g.value ? Array.isArray(p.value) ?
|
|
893
|
-
reverse: [
|
|
894
|
-
column: [
|
|
892
|
+
let y = D(() => g.value ? Array.isArray(p.value) ? Ct(ne.value, p.value) : vt(ne.value, p.value) : r.pressed), b = Ot("vv-button", l, D(() => ({
|
|
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
896
|
}))), { hasIcon: x } = At(ee), C = D(() => r.value === void 0 ? ne.value : r.value), ie = D(() => {
|
|
897
897
|
if (g.value) return { onClick: ae };
|
|
@@ -899,7 +899,7 @@ var Wt = {
|
|
|
899
899
|
function ae() {
|
|
900
900
|
if (g.value) {
|
|
901
901
|
if (Array.isArray(p.value)) {
|
|
902
|
-
if (
|
|
902
|
+
if (Ct(C.value, p.value)) {
|
|
903
903
|
_.value && (p.value = p.value.filter((e) => e !== C.value));
|
|
904
904
|
return;
|
|
905
905
|
}
|
|
@@ -913,7 +913,7 @@ var Wt = {
|
|
|
913
913
|
p.value = C.value;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
return (e, t) => (
|
|
916
|
+
return (e, t) => (I(), S(Ht, h({
|
|
917
917
|
...N(a),
|
|
918
918
|
...N(ie),
|
|
919
919
|
disabled: N(m),
|
|
@@ -931,23 +931,23 @@ var Wt = {
|
|
|
931
931
|
ref: v,
|
|
932
932
|
class: N(b)
|
|
933
933
|
}), {
|
|
934
|
-
default: A(() => [c(e.$slots, "default", {}, () => [e.loading ? c(e.$slots, "loading", {}, () => [e.loadingIcon ? (
|
|
934
|
+
default: A(() => [c(e.$slots, "default", {}, () => [e.loading ? c(e.$slots, "loading", {}, () => [e.loadingIcon ? (I(), S(kt, {
|
|
935
935
|
key: 0,
|
|
936
936
|
class: "vv-button__loading-icon",
|
|
937
937
|
name: e.loadingIcon
|
|
938
|
-
}, null, 8, ["name"])) : j("v-if", !0), e.loadingLabel ? (
|
|
938
|
+
}, null, 8, ["name"])) : j("v-if", !0), e.loadingLabel ? (I(), F("span", Wt, O(e.loadingLabel), 1)) : j("v-if", !0)], void 0, 0) : (I(), F(w, { key: 1 }, [
|
|
939
939
|
c(e.$slots, "before"),
|
|
940
|
-
N(x) ? (
|
|
941
|
-
N(f) ? (
|
|
940
|
+
N(x) ? (I(), S(kt, h({ key: 0 }, N(x), { class: "vv-button__icon" }), null, 16)) : j("v-if", !0),
|
|
941
|
+
N(f) ? (I(), F("span", Gt, [c(e.$slots, "label", {}, () => [P(O(N(f)), 1)])])) : j("v-if", !0),
|
|
942
942
|
c(e.$slots, "after")
|
|
943
943
|
], 64))])]),
|
|
944
944
|
_: 3
|
|
945
945
|
}, 16, ["id", "class"]));
|
|
946
946
|
}
|
|
947
947
|
}), qt = {
|
|
948
|
+
...ut,
|
|
948
949
|
...dt,
|
|
949
|
-
|
|
950
|
-
...Q,
|
|
950
|
+
...$,
|
|
951
951
|
modelValue: {
|
|
952
952
|
type: Boolean,
|
|
953
953
|
default: void 0
|
|
@@ -958,17 +958,17 @@ var Wt = {
|
|
|
958
958
|
},
|
|
959
959
|
role: {
|
|
960
960
|
type: String,
|
|
961
|
-
default:
|
|
962
|
-
validator: (e) => Object.values(
|
|
961
|
+
default: W.menu,
|
|
962
|
+
validator: (e) => Object.values(W).includes(e)
|
|
963
963
|
}
|
|
964
964
|
}, Jt = { focusOnHover: {
|
|
965
965
|
type: Boolean,
|
|
966
966
|
default: !1
|
|
967
967
|
} }, Yt = {
|
|
968
|
-
...
|
|
969
|
-
...
|
|
970
|
-
...
|
|
971
|
-
|
|
968
|
+
...X,
|
|
969
|
+
...Ye,
|
|
970
|
+
...lt,
|
|
971
|
+
...$,
|
|
972
972
|
deselectHintLabel: { type: String },
|
|
973
973
|
selectHintLabel: { type: String },
|
|
974
974
|
selectedHintLabel: { type: String },
|
|
@@ -1000,7 +1000,7 @@ function Xt(e, t) {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
function Zt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
1003
|
-
let o =
|
|
1003
|
+
let o = z();
|
|
1004
1004
|
return {
|
|
1005
1005
|
bus: o,
|
|
1006
1006
|
component: M({
|
|
@@ -1021,15 +1021,15 @@ function Zt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
1023
|
function Qt({ role: e, ...n }) {
|
|
1024
|
-
let r = D(() => e.value ===
|
|
1024
|
+
let r = D(() => e.value === W.listbox ? G.option : G.presentation);
|
|
1025
1025
|
return t(Ke, {
|
|
1026
1026
|
role: r,
|
|
1027
1027
|
...n
|
|
1028
1028
|
}), { itemRole: r };
|
|
1029
1029
|
}
|
|
1030
1030
|
function $t({ expanded: e }) {
|
|
1031
|
-
t(
|
|
1032
|
-
role: E(
|
|
1031
|
+
t(q, {
|
|
1032
|
+
role: E(Ue.menuitem),
|
|
1033
1033
|
expanded: e
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
@@ -1060,14 +1060,14 @@ var en = ["popover"], tn = [
|
|
|
1060
1060
|
"leaveCancelled"
|
|
1061
1061
|
],
|
|
1062
1062
|
setup(e, { expose: t, emit: n }) {
|
|
1063
|
-
let l = e, u = n, { id: f } =
|
|
1063
|
+
let l = e, u = n, { id: f } = _e(l), p = Ut(f), te = d(), ne = E(), v = E(), y = E(), b = E(), x = D({
|
|
1064
1064
|
get: () => l.reference ?? ne.value,
|
|
1065
1065
|
set: (e) => {
|
|
1066
1066
|
ne.value = e;
|
|
1067
1067
|
}
|
|
1068
|
-
}), { isTopLayer: re, popover: S, show: C, hide: ie } = Xt(v, () => l.topLayer), ae = D(() => re.value ?
|
|
1068
|
+
}), { isTopLayer: re, popover: S, show: C, hide: ie } = Xt(v, () => l.topLayer), ae = D(() => re.value ? ze.fixed : l.strategy), oe = E(!1);
|
|
1069
1069
|
ee(() => {
|
|
1070
|
-
|
|
1070
|
+
we(v.value, () => {
|
|
1071
1071
|
oe.value = globalThis.getComputedStyle(v.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
1072
1072
|
}, {
|
|
1073
1073
|
attributeFilter: ["style"],
|
|
@@ -1091,31 +1091,31 @@ var en = ["popover"], tn = [
|
|
|
1091
1091
|
}
|
|
1092
1092
|
}, k = D(() => {
|
|
1093
1093
|
let e = [];
|
|
1094
|
-
l.size && e.push(de), l.offset && e.push(["string", "number"].includes(typeof l.offset) ?
|
|
1094
|
+
l.size && e.push(de), l.offset && e.push(["string", "number"].includes(typeof l.offset) ? Ne(Number(l.offset)) : Ne(l.offset));
|
|
1095
1095
|
let t = typeof l.size == "object" ? l.size.padding : void 0;
|
|
1096
|
-
if (l.autoPlacement ? e.push(ce(l.autoPlacement, () =>
|
|
1096
|
+
if (l.autoPlacement ? e.push(ce(l.autoPlacement, () => Pe(), (e) => Pe(e))) : l.flip && e.push(ce(l.flip, () => ke({
|
|
1097
1097
|
fallbackStrategy: "initialPlacement",
|
|
1098
1098
|
padding: t
|
|
1099
|
-
}), (e) =>
|
|
1099
|
+
}), (e) => ke({
|
|
1100
1100
|
padding: t,
|
|
1101
1101
|
...e
|
|
1102
|
-
}))), l.shift && e.push(ce(l.shift, () =>
|
|
1102
|
+
}))), l.shift && e.push(ce(l.shift, () => Fe(), (e) => Fe(e))), l.size) {
|
|
1103
1103
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
1104
1104
|
if (O(r.floating) || oe.value) return;
|
|
1105
1105
|
let { style: i } = n.floating;
|
|
1106
1106
|
i.maxWidth = l.triggerWidth && x.value ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
1107
1107
|
};
|
|
1108
|
-
e.push(ce(l.size, () =>
|
|
1108
|
+
e.push(ce(l.size, () => Ae({ apply: t }), (e) => Ae({
|
|
1109
1109
|
...e,
|
|
1110
1110
|
apply: (n) => (t(n), e?.apply?.(n))
|
|
1111
1111
|
})));
|
|
1112
1112
|
}
|
|
1113
|
-
return l.arrow && e.push(
|
|
1114
|
-
}), { x: fe, y: pe, middlewareData: he, placement: ge, strategy: M, update: P } =
|
|
1113
|
+
return l.arrow && e.push(Ie({ element: y })), e;
|
|
1114
|
+
}), { x: fe, y: pe, middlewareData: he, placement: ge, strategy: M, update: P } = Me(x, v, {
|
|
1115
1115
|
placement: D(() => l.placement),
|
|
1116
1116
|
strategy: ae,
|
|
1117
1117
|
middleware: k
|
|
1118
|
-
}),
|
|
1118
|
+
}), ve = D(() => {
|
|
1119
1119
|
if (oe.value) return;
|
|
1120
1120
|
let e = l.triggerWidth && x.value ? `${x.value?.offsetWidth}px` : void 0;
|
|
1121
1121
|
return {
|
|
@@ -1124,90 +1124,90 @@ var en = ["popover"], tn = [
|
|
|
1124
1124
|
left: `${fe.value ?? 0}px`,
|
|
1125
1125
|
width: e
|
|
1126
1126
|
};
|
|
1127
|
-
}),
|
|
1127
|
+
}), L = D(() => ge.value.split("-")[0]), ye = D(() => {
|
|
1128
1128
|
if (oe.value) return;
|
|
1129
1129
|
let e = {
|
|
1130
|
-
[
|
|
1131
|
-
[
|
|
1132
|
-
[
|
|
1133
|
-
[
|
|
1134
|
-
}[
|
|
1130
|
+
[H.top]: H.bottom,
|
|
1131
|
+
[H.right]: H.left,
|
|
1132
|
+
[H.bottom]: H.top,
|
|
1133
|
+
[H.left]: H.right
|
|
1134
|
+
}[L.value];
|
|
1135
1135
|
return {
|
|
1136
1136
|
left: he.value.arrow?.x === void 0 ? void 0 : `${he.value.arrow?.x}px`,
|
|
1137
1137
|
top: he.value.arrow?.y === void 0 ? void 0 : `${he.value.arrow?.y}px`,
|
|
1138
1138
|
[e]: `${-(y.value?.offsetWidth ?? 0) / 2}px`
|
|
1139
1139
|
};
|
|
1140
|
-
}),
|
|
1141
|
-
get: () =>
|
|
1140
|
+
}), be = Oe(l, "modelValue", u), Se = E(!1), R = D({
|
|
1141
|
+
get: () => be.value ?? Se.value,
|
|
1142
1142
|
set: (e) => {
|
|
1143
|
-
|
|
1143
|
+
be.value === void 0 ? Se.value = e : be.value = e;
|
|
1144
1144
|
}
|
|
1145
1145
|
});
|
|
1146
1146
|
g([
|
|
1147
|
-
|
|
1147
|
+
R,
|
|
1148
1148
|
x,
|
|
1149
1149
|
v,
|
|
1150
1150
|
ae
|
|
1151
1151
|
], ([e, t, n, r], i, a) => {
|
|
1152
|
-
e && t && n && a(
|
|
1152
|
+
e && t && n && a(je(t, n, P, { animationFrame: r === ze.fixed }));
|
|
1153
1153
|
}, {
|
|
1154
1154
|
flush: "post",
|
|
1155
1155
|
immediate: !0
|
|
1156
|
-
}),
|
|
1157
|
-
|
|
1156
|
+
}), we(b, () => {
|
|
1157
|
+
R.value && P();
|
|
1158
1158
|
}, {
|
|
1159
1159
|
childList: !0,
|
|
1160
1160
|
subtree: !0,
|
|
1161
1161
|
characterData: !0
|
|
1162
1162
|
}), se(() => {
|
|
1163
|
-
|
|
1163
|
+
R.value && C();
|
|
1164
1164
|
});
|
|
1165
1165
|
function De() {
|
|
1166
|
-
|
|
1166
|
+
R.value = !0;
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
|
|
1168
|
+
function z() {
|
|
1169
|
+
R.value = !1;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
|
|
1171
|
+
function B() {
|
|
1172
|
+
R.value = !R.value;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Le(e) {
|
|
1175
1175
|
x.value = e;
|
|
1176
1176
|
}
|
|
1177
|
-
|
|
1178
|
-
!l.keepOpen &&
|
|
1177
|
+
Te(v, () => {
|
|
1178
|
+
!l.keepOpen && R.value && (R.value = !1);
|
|
1179
1179
|
}, { ignore: [x] });
|
|
1180
|
-
let
|
|
1180
|
+
let V = D(() => x.value?.getAttribute?.("id") ?? void 0), Re = D(() => ({
|
|
1181
1181
|
"aria-controls": p.value,
|
|
1182
1182
|
"aria-haspopup": !0,
|
|
1183
|
-
"aria-expanded":
|
|
1184
|
-
})), { component:
|
|
1183
|
+
"aria-expanded": R.value
|
|
1184
|
+
})), { component: Be, bus: Ve } = Zt({
|
|
1185
1185
|
reference: x,
|
|
1186
1186
|
id: p,
|
|
1187
|
-
expanded:
|
|
1188
|
-
aria:
|
|
1187
|
+
expanded: R,
|
|
1188
|
+
aria: Re
|
|
1189
1189
|
});
|
|
1190
|
-
|
|
1191
|
-
let { role:
|
|
1192
|
-
function
|
|
1190
|
+
Ve.on("click", B);
|
|
1191
|
+
let { role: He, modifiers: U } = _e(l), Ue = Ot("vv-dropdown", U, D(() => ({ arrow: l.arrow }))), { focused: W } = Ce(v);
|
|
1192
|
+
function G(e) {
|
|
1193
1193
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
1194
1194
|
}
|
|
1195
1195
|
function We() {
|
|
1196
1196
|
o(() => {
|
|
1197
|
-
let e =
|
|
1197
|
+
let e = G(v.value);
|
|
1198
1198
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
1201
|
function Ge() {
|
|
1202
1202
|
o(() => {
|
|
1203
|
-
let e =
|
|
1203
|
+
let e = G(b.value);
|
|
1204
1204
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
1207
|
function K() {
|
|
1208
1208
|
o(() => {
|
|
1209
|
-
if (
|
|
1210
|
-
let e =
|
|
1209
|
+
if (W.value) {
|
|
1210
|
+
let e = G(v.value);
|
|
1211
1211
|
if (e.length === 0 || !document.activeElement) return;
|
|
1212
1212
|
let t = e.indexOf(document.activeElement);
|
|
1213
1213
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
@@ -1216,8 +1216,8 @@ var en = ["popover"], tn = [
|
|
|
1216
1216
|
}
|
|
1217
1217
|
function Ke() {
|
|
1218
1218
|
o(() => {
|
|
1219
|
-
if (
|
|
1220
|
-
let e =
|
|
1219
|
+
if (W.value) {
|
|
1220
|
+
let e = G(v.value);
|
|
1221
1221
|
if (e.length === 0 || !document.activeElement) return;
|
|
1222
1222
|
let t = e.indexOf(document.activeElement);
|
|
1223
1223
|
if (t > 0) {
|
|
@@ -1228,41 +1228,41 @@ var en = ["popover"], tn = [
|
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
g(
|
|
1231
|
+
g(R, (e) => {
|
|
1232
1232
|
e && l.autofocusFirst && We();
|
|
1233
1233
|
}), t({
|
|
1234
|
-
toggle:
|
|
1234
|
+
toggle: B,
|
|
1235
1235
|
show: De,
|
|
1236
|
-
hide:
|
|
1237
|
-
init:
|
|
1236
|
+
hide: z,
|
|
1237
|
+
init: Le,
|
|
1238
1238
|
focusFirst: We,
|
|
1239
1239
|
focusFirstListElement: Ge,
|
|
1240
1240
|
focusNext: K,
|
|
1241
1241
|
focusPrev: Ke,
|
|
1242
1242
|
customPosition: oe
|
|
1243
1243
|
});
|
|
1244
|
-
let { itemRole:
|
|
1245
|
-
role:
|
|
1246
|
-
expanded:
|
|
1247
|
-
focused:
|
|
1248
|
-
hovered:
|
|
1244
|
+
let { itemRole: q } = Qt({
|
|
1245
|
+
role: He,
|
|
1246
|
+
expanded: R,
|
|
1247
|
+
focused: W,
|
|
1248
|
+
hovered: xe(v)
|
|
1249
1249
|
});
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}),
|
|
1253
|
-
|
|
1254
|
-
}),
|
|
1255
|
-
|
|
1256
|
-
}),
|
|
1250
|
+
Ee("Escape", (e) => {
|
|
1251
|
+
R.value && (e.preventDefault(), z());
|
|
1252
|
+
}), Ee("ArrowDown", (e) => {
|
|
1253
|
+
R.value && W.value && (e.preventDefault(), K());
|
|
1254
|
+
}), Ee("ArrowUp", (e) => {
|
|
1255
|
+
R.value && W.value && (e.preventDefault(), Ke());
|
|
1256
|
+
}), Ee([" ", "Enter"], (e) => {
|
|
1257
1257
|
let t = e.target;
|
|
1258
|
-
|
|
1258
|
+
R.value && W.value && t && t?.click();
|
|
1259
1259
|
});
|
|
1260
|
-
let
|
|
1260
|
+
let qe = {
|
|
1261
1261
|
"before-enter": () => {
|
|
1262
1262
|
u("beforeExpand"), u("beforeEnter");
|
|
1263
1263
|
},
|
|
1264
1264
|
"after-leave": () => {
|
|
1265
|
-
|
|
1265
|
+
R.value || ie(), u("afterCollapse"), u("afterLeave");
|
|
1266
1266
|
},
|
|
1267
1267
|
enter: () => {
|
|
1268
1268
|
u("enter");
|
|
@@ -1283,59 +1283,59 @@ var en = ["popover"], tn = [
|
|
|
1283
1283
|
u("leaveCancelled");
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
|
-
return (e, t) => (
|
|
1286
|
+
return (e, t) => (I(), F(w, null, [_(N(Be), null, {
|
|
1287
1287
|
default: A(() => [c(e.$slots, "default", r(i({
|
|
1288
|
-
init:
|
|
1288
|
+
init: Le,
|
|
1289
1289
|
show: De,
|
|
1290
|
-
hide:
|
|
1291
|
-
toggle:
|
|
1292
|
-
expanded: N(
|
|
1293
|
-
aria: N(
|
|
1290
|
+
hide: z,
|
|
1291
|
+
toggle: B,
|
|
1292
|
+
expanded: N(R),
|
|
1293
|
+
aria: N(Re)
|
|
1294
1294
|
})))]),
|
|
1295
1295
|
_: 3
|
|
1296
|
-
}), _(me, h({ name: e.transitionName }, s(
|
|
1296
|
+
}), _(me, h({ name: e.transitionName }, s(qe), { persisted: "" }), {
|
|
1297
1297
|
default: A(() => [ue(T("div", {
|
|
1298
1298
|
ref_key: "floatingEl",
|
|
1299
1299
|
ref: v,
|
|
1300
1300
|
popover: N(S),
|
|
1301
|
-
style: m(N(
|
|
1302
|
-
class: a(N(
|
|
1301
|
+
style: m(N(ve)),
|
|
1302
|
+
class: a(N(Ue))
|
|
1303
1303
|
}, [
|
|
1304
|
-
l.arrow ? (
|
|
1304
|
+
l.arrow ? (I(), F("div", {
|
|
1305
1305
|
key: 0,
|
|
1306
1306
|
ref_key: "arrowEl",
|
|
1307
1307
|
ref: y,
|
|
1308
|
-
style: m(N(
|
|
1308
|
+
style: m(N(ye)),
|
|
1309
1309
|
class: "vv-dropdown__arrow"
|
|
1310
1310
|
}, null, 4)) : j("v-if", !0),
|
|
1311
1311
|
c(e.$slots, "before", r(i({
|
|
1312
1312
|
show: De,
|
|
1313
|
-
hide:
|
|
1314
|
-
toggle:
|
|
1315
|
-
expanded: N(
|
|
1313
|
+
hide: z,
|
|
1314
|
+
toggle: B,
|
|
1315
|
+
expanded: N(R)
|
|
1316
1316
|
}))),
|
|
1317
1317
|
T("div", h(N(te), {
|
|
1318
1318
|
id: N(p),
|
|
1319
1319
|
ref_key: "listEl",
|
|
1320
1320
|
ref: b,
|
|
1321
|
-
tabindex: N(
|
|
1322
|
-
role: N(
|
|
1323
|
-
"aria-labelledby": N(
|
|
1321
|
+
tabindex: N(R) ? void 0 : -1,
|
|
1322
|
+
role: N(He),
|
|
1323
|
+
"aria-labelledby": N(V),
|
|
1324
1324
|
class: "vv-dropdown__list"
|
|
1325
1325
|
}), [c(e.$slots, "items", r(i({
|
|
1326
1326
|
show: De,
|
|
1327
|
-
hide:
|
|
1328
|
-
toggle:
|
|
1329
|
-
expanded: N(
|
|
1330
|
-
role: N(
|
|
1327
|
+
hide: z,
|
|
1328
|
+
toggle: B,
|
|
1329
|
+
expanded: N(R),
|
|
1330
|
+
role: N(q)
|
|
1331
1331
|
})))], 16, tn),
|
|
1332
1332
|
c(e.$slots, "after", r(i({
|
|
1333
1333
|
show: De,
|
|
1334
|
-
hide:
|
|
1335
|
-
toggle:
|
|
1336
|
-
expanded: N(
|
|
1334
|
+
hide: z,
|
|
1335
|
+
toggle: B,
|
|
1336
|
+
expanded: N(R)
|
|
1337
1337
|
})))
|
|
1338
|
-
], 14, en), [[le, N(
|
|
1338
|
+
], 14, en), [[le, N(R)]])]),
|
|
1339
1339
|
_: 3
|
|
1340
1340
|
}, 16, ["name"])], 64));
|
|
1341
1341
|
}
|
|
@@ -1345,10 +1345,10 @@ var en = ["popover"], tn = [
|
|
|
1345
1345
|
tabindex: "-1"
|
|
1346
1346
|
}, an = /* @__PURE__ */ M({
|
|
1347
1347
|
name: "VvDropdownOptgroup",
|
|
1348
|
-
props: {
|
|
1348
|
+
props: { ...$e },
|
|
1349
1349
|
setup(e) {
|
|
1350
1350
|
let t = e;
|
|
1351
|
-
return (e, n) => (
|
|
1351
|
+
return (e, n) => (I(), F("li", rn, [c(e.$slots, "default", {}, () => [P(O(t.label), 1)])]));
|
|
1352
1352
|
}
|
|
1353
1353
|
}), on = /* @__PURE__ */ M({
|
|
1354
1354
|
name: "VvDropdownItem",
|
|
@@ -1356,10 +1356,10 @@ var en = ["popover"], tn = [
|
|
|
1356
1356
|
setup(e) {
|
|
1357
1357
|
let t = e, { role: n, expanded: r } = Bt(), i = E(null);
|
|
1358
1358
|
$t({ expanded: r });
|
|
1359
|
-
let a =
|
|
1359
|
+
let a = xe(i), { focused: o } = Se(i), { focused: s } = Ce(i);
|
|
1360
1360
|
return g(a, (e) => {
|
|
1361
1361
|
e && t.focusOnHover && (o.value = !0);
|
|
1362
|
-
}), (e, t) => (
|
|
1362
|
+
}), (e, t) => (I(), F("div", h({ role: N(n) }, {
|
|
1363
1363
|
ref_key: "element",
|
|
1364
1364
|
ref: i,
|
|
1365
1365
|
class: ["vv-dropdown__item", { "focus-visible": N(o) || N(s) }]
|
|
@@ -1369,12 +1369,12 @@ var en = ["popover"], tn = [
|
|
|
1369
1369
|
name: "VvDropdownOption",
|
|
1370
1370
|
props: Yt,
|
|
1371
1371
|
setup(e) {
|
|
1372
|
-
let t = e, { modifiers: n } =
|
|
1372
|
+
let t = e, { modifiers: n } = _e(t), o = Ot("vv-dropdown-option", n, D(() => ({
|
|
1373
1373
|
disabled: t.disabled,
|
|
1374
1374
|
selected: t.selected,
|
|
1375
1375
|
unselectable: t.unselectable && t.selected
|
|
1376
1376
|
}))), s = D(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
1377
|
-
return (e, t) => (
|
|
1377
|
+
return (e, t) => (I(), S(on, {
|
|
1378
1378
|
class: a(N(o)),
|
|
1379
1379
|
tabindex: e.disabled ? -1 : 0,
|
|
1380
1380
|
"aria-selected": e.selected,
|
|
@@ -1399,24 +1399,24 @@ var en = ["popover"], tn = [
|
|
|
1399
1399
|
]));
|
|
1400
1400
|
}
|
|
1401
1401
|
}), ln = {
|
|
1402
|
+
...ft,
|
|
1402
1403
|
...pt,
|
|
1403
1404
|
...mt,
|
|
1404
|
-
...
|
|
1405
|
-
...
|
|
1406
|
-
...Ye,
|
|
1407
|
-
...q,
|
|
1408
|
-
...rt,
|
|
1405
|
+
...st,
|
|
1406
|
+
...Je,
|
|
1409
1407
|
...J,
|
|
1410
|
-
...Y,
|
|
1411
1408
|
...nt,
|
|
1412
|
-
...
|
|
1413
|
-
...
|
|
1414
|
-
...
|
|
1409
|
+
...Y,
|
|
1410
|
+
...X,
|
|
1411
|
+
...tt,
|
|
1412
|
+
...$,
|
|
1413
|
+
...rt,
|
|
1414
|
+
...ot,
|
|
1415
|
+
...ct,
|
|
1415
1416
|
...lt,
|
|
1416
|
-
|
|
1417
|
+
...$e,
|
|
1417
1418
|
...et,
|
|
1418
|
-
...
|
|
1419
|
-
...Z,
|
|
1419
|
+
...Q,
|
|
1420
1420
|
multiple: Boolean,
|
|
1421
1421
|
required: Boolean,
|
|
1422
1422
|
size: [String, Number],
|
|
@@ -1459,7 +1459,7 @@ function dn(e, t, n) {
|
|
|
1459
1459
|
return r;
|
|
1460
1460
|
}
|
|
1461
1461
|
function fn(e, t, n) {
|
|
1462
|
-
let r =
|
|
1462
|
+
let r = Dt(), i = D(() => {
|
|
1463
1463
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1464
1464
|
});
|
|
1465
1465
|
return D(() => {
|
|
@@ -1472,18 +1472,18 @@ function fn(e, t, n) {
|
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
1474
|
function pn(e, t) {
|
|
1475
|
-
let { focused: n } =
|
|
1475
|
+
let { focused: n } = Se(e);
|
|
1476
1476
|
return g(n, (n) => {
|
|
1477
1477
|
t(n ? "focus" : "blur", N(e));
|
|
1478
1478
|
}), { focused: n };
|
|
1479
1479
|
}
|
|
1480
1480
|
function mn(e) {
|
|
1481
|
-
let { options: t, labelKey: n, valueKey: r, disabledKey: i } =
|
|
1481
|
+
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = _e(e);
|
|
1482
1482
|
return {
|
|
1483
1483
|
options: t,
|
|
1484
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
1485
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
1486
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
1484
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? B(e, n.value) : e),
|
|
1485
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? B(e, r.value) : e,
|
|
1486
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!B(e, i.value) : !1,
|
|
1487
1487
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
1488
1488
|
};
|
|
1489
1489
|
}
|
|
@@ -1503,30 +1503,30 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1503
1503
|
"clear"
|
|
1504
1504
|
],
|
|
1505
1505
|
setup(e, { emit: t }) {
|
|
1506
|
-
let n = e, o = t, s = re(), l = fn("VvSelect", un(), n), u = E(), { HintSlot: d, hasHintLabelOrSlot: ee, hasInvalidLabelOrSlot: f, hintSlotScope: p } =
|
|
1506
|
+
let n = e, o = t, s = re(), l = fn("VvSelect", un(), n), u = E(), { HintSlot: d, hasHintLabelOrSlot: ee, hasInvalidLabelOrSlot: f, hintSlotScope: p } = Et(l, s), { focused: m } = pn(u, o);
|
|
1507
1507
|
function te(e) {
|
|
1508
1508
|
return typeof e != "string" && e.options?.length;
|
|
1509
1509
|
}
|
|
1510
|
-
let { id: ne, modifiers: v, disabled: y, readonly: x, loading: ie, icon: ae, iconPosition: oe, invalid: se, valid: ce, floating: le, multiple: de } =
|
|
1510
|
+
let { id: ne, modifiers: v, disabled: y, readonly: x, loading: ie, icon: ae, iconPosition: oe, invalid: se, valid: ce, floating: le, multiple: de } = _e(n), k = Ut(ne), fe = D(() => `${k.value}-hint`), me = D(() => n.disabled || n.readonly), he = D(() => me.value ? -1 : n.tabindex), M = D({
|
|
1511
1511
|
get: () => n.modelValue,
|
|
1512
1512
|
set: (e) => {
|
|
1513
1513
|
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);
|
|
1514
1514
|
}
|
|
1515
|
-
}), P = D(() => Array.isArray(M.value) ? M.value.length > 0 : M.value !== void 0 && M.value !== null),
|
|
1516
|
-
g(
|
|
1515
|
+
}), P = D(() => Array.isArray(M.value) ? M.value.length > 0 : M.value !== void 0 && M.value !== null), ve = D(() => !me.value && n.unselectable), L = De(u);
|
|
1516
|
+
g(L, (e) => {
|
|
1517
1517
|
e && n.autofocus && (m.value = !0);
|
|
1518
1518
|
});
|
|
1519
|
-
let { hasIconBefore:
|
|
1519
|
+
let { hasIconBefore: ye, hasIconAfter: be } = At(ae, oe), xe = D(() => {
|
|
1520
1520
|
if (n.invalid === !0) return !0;
|
|
1521
1521
|
if (n.valid === !0) return !1;
|
|
1522
|
-
}), Se =
|
|
1522
|
+
}), Se = Ot("vv-select", v, D(() => ({
|
|
1523
1523
|
valid: ce.value,
|
|
1524
1524
|
invalid: se.value,
|
|
1525
1525
|
loading: ie.value,
|
|
1526
1526
|
disabled: y.value,
|
|
1527
1527
|
readonly: x.value,
|
|
1528
|
-
"icon-before":
|
|
1529
|
-
"icon-after":
|
|
1528
|
+
"icon-before": ye.value !== void 0,
|
|
1529
|
+
"icon-after": be.value !== void 0,
|
|
1530
1530
|
dirty: P.value,
|
|
1531
1531
|
focus: m.value && !me.value,
|
|
1532
1532
|
floating: le.value,
|
|
@@ -1538,10 +1538,10 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1538
1538
|
M.value = n.multiple ? [t] : t;
|
|
1539
1539
|
}
|
|
1540
1540
|
}, { immediate: !0 });
|
|
1541
|
-
function
|
|
1541
|
+
function R() {
|
|
1542
1542
|
Array.isArray(M.value) ? M.value = [] : M.value = void 0, o("clear");
|
|
1543
1543
|
}
|
|
1544
|
-
let
|
|
1544
|
+
let Oe = D(() => ({
|
|
1545
1545
|
name: n.name,
|
|
1546
1546
|
tabindex: he.value,
|
|
1547
1547
|
disabled: me.value,
|
|
@@ -1551,60 +1551,60 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1551
1551
|
multiple: n.multiple,
|
|
1552
1552
|
"aria-label": n.ariaLabel || void 0,
|
|
1553
1553
|
"aria-labelledby": n.ariaLabelledby || void 0,
|
|
1554
|
-
"aria-invalid":
|
|
1554
|
+
"aria-invalid": xe.value,
|
|
1555
1555
|
"aria-describedby": [n.ariaDescribedby, ee.value ? fe.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
1556
1556
|
"aria-errormessage": f.value ? fe.value : void 0
|
|
1557
|
-
})),
|
|
1557
|
+
})), ke = D(() => ({
|
|
1558
1558
|
valid: n.valid,
|
|
1559
1559
|
invalid: n.invalid,
|
|
1560
1560
|
modelValue: n.modelValue
|
|
1561
1561
|
}));
|
|
1562
|
-
return (e, t) => (
|
|
1563
|
-
e.label ? (
|
|
1562
|
+
return (e, t) => (I(), F("div", { class: a(N(Se)) }, [
|
|
1563
|
+
e.label ? (I(), F("label", {
|
|
1564
1564
|
key: 0,
|
|
1565
1565
|
for: N(k)
|
|
1566
1566
|
}, O(e.label), 9, hn)) : j("v-if", !0),
|
|
1567
1567
|
T("div", gn, [
|
|
1568
|
-
e.$slots.before ? (
|
|
1568
|
+
e.$slots.before ? (I(), F("div", _n, [c(e.$slots, "before", r(i(N(ke))))])) : j("v-if", !0),
|
|
1569
1569
|
T("div", vn, [
|
|
1570
|
-
N(
|
|
1570
|
+
N(ye) ? (I(), S(kt, h({ key: 0 }, N(ye), { class: "vv-select__icon" }), null, 16)) : j("v-if", !0),
|
|
1571
1571
|
ue(T("select", h({
|
|
1572
1572
|
id: N(k),
|
|
1573
1573
|
ref_key: "selectEl",
|
|
1574
1574
|
ref: u
|
|
1575
|
-
}, N(
|
|
1575
|
+
}, N(Oe), { "onUpdate:modelValue": t[0] ||= (e) => ge(M) ? M.value = e : null }), [e.placeholder ? (I(), F("option", {
|
|
1576
1576
|
key: 0,
|
|
1577
1577
|
value: void 0,
|
|
1578
|
-
disabled: !N(
|
|
1579
|
-
hidden: !N(
|
|
1580
|
-
}, O(e.placeholder), 9, bn)) : j("v-if", !0), (
|
|
1578
|
+
disabled: !N(ve),
|
|
1579
|
+
hidden: !N(ve)
|
|
1580
|
+
}, O(e.placeholder), 9, bn)) : j("v-if", !0), (I(!0), F(w, null, b(e.options, (e, t) => (I(), F(w, null, [te(e) ? (I(), F("optgroup", {
|
|
1581
1581
|
key: `group-${t}`,
|
|
1582
1582
|
disabled: N(Te)(e),
|
|
1583
1583
|
label: N(Ce)(e)
|
|
1584
|
-
}, [(
|
|
1584
|
+
}, [(I(!0), F(w, null, b(N(Ee)(e), (e, n) => (I(), F("option", {
|
|
1585
1585
|
key: `group-${t}-item-${n}`,
|
|
1586
1586
|
disabled: N(Te)(e),
|
|
1587
1587
|
value: N(we)(e)
|
|
1588
|
-
}, O(N(Ce)(e)), 9, Cn))), 128))], 8, Sn)) : (
|
|
1588
|
+
}, O(N(Ce)(e)), 9, Cn))), 128))], 8, Sn)) : (I(), F("option", {
|
|
1589
1589
|
key: t,
|
|
1590
1590
|
disabled: N(Te)(e),
|
|
1591
1591
|
value: N(we)(e)
|
|
1592
1592
|
}, O(N(Ce)(e)), 9, xn))], 64))), 256))], 16, yn), [[pe, N(M)]]),
|
|
1593
|
-
N(
|
|
1593
|
+
N(be) ? (I(), S(kt, h({ key: 1 }, N(be), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : j("v-if", !0)
|
|
1594
1594
|
]),
|
|
1595
|
-
N(
|
|
1595
|
+
N(ve) && N(l).showClearAction ? (I(), S(N(jt), {
|
|
1596
1596
|
key: 1,
|
|
1597
1597
|
"input-type": "select",
|
|
1598
1598
|
label: e.labelClear,
|
|
1599
1599
|
icon: e.iconClear,
|
|
1600
1600
|
disabled: !N(P),
|
|
1601
|
-
onClear:
|
|
1601
|
+
onClear: R
|
|
1602
1602
|
}, null, 8, [
|
|
1603
1603
|
"label",
|
|
1604
1604
|
"icon",
|
|
1605
1605
|
"disabled"
|
|
1606
1606
|
])) : j("v-if", !0),
|
|
1607
|
-
e.$slots.after ? (
|
|
1607
|
+
e.$slots.after ? (I(), F("div", wn, [c(e.$slots, "after", r(i(N(ke))))])) : j("v-if", !0)
|
|
1608
1608
|
]),
|
|
1609
1609
|
_(N(d), {
|
|
1610
1610
|
id: N(fe),
|
|
@@ -1662,7 +1662,7 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1662
1662
|
VvDropdownOptgroup: an,
|
|
1663
1663
|
VvButton: Kt
|
|
1664
1664
|
},
|
|
1665
|
-
props: /* @__PURE__ */ p(
|
|
1665
|
+
props: /* @__PURE__ */ p(_t(), {
|
|
1666
1666
|
search: {
|
|
1667
1667
|
type: String,
|
|
1668
1668
|
default: "",
|
|
@@ -1680,7 +1680,7 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1680
1680
|
"change:search"
|
|
1681
1681
|
], ["update:search"]),
|
|
1682
1682
|
setup(e, { emit: t }) {
|
|
1683
|
-
let n = e, o = t, s = re(), d = fn("VvCombobox",
|
|
1683
|
+
let n = e, o = t, s = re(), d = fn("VvCombobox", _t(), n), ee = E(null), f = E(null), p = E(null), m = E(), { HintSlot: te, hasHintLabelOrSlot: ne, hasInvalidLabelOrSlot: v, hintSlotScope: y } = Et(d, s), { focused: x } = pn(ee, o), { focused: ie } = Ce(p), se;
|
|
1684
1684
|
function ce() {
|
|
1685
1685
|
clearTimeout(se), se = setTimeout(() => {
|
|
1686
1686
|
!x.value && !ie.value && k.value && me();
|
|
@@ -1697,75 +1697,75 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1697
1697
|
}), g(ie, (e) => {
|
|
1698
1698
|
e ? clearTimeout(se) : !x.value && k.value && ce();
|
|
1699
1699
|
});
|
|
1700
|
-
let le = u(e, "search"), de =
|
|
1700
|
+
let le = u(e, "search"), de = be(le, D(() => Number(n.debounceSearch)));
|
|
1701
1701
|
g(de, () => {
|
|
1702
1702
|
o("update:search", de.value), o("change:search", de.value);
|
|
1703
1703
|
});
|
|
1704
1704
|
let k = E(!1);
|
|
1705
1705
|
function fe() {
|
|
1706
|
-
|
|
1706
|
+
B.value || (k.value = !k.value);
|
|
1707
1707
|
}
|
|
1708
1708
|
function pe() {
|
|
1709
|
-
|
|
1709
|
+
B.value || k.value || (k.value = !0);
|
|
1710
1710
|
}
|
|
1711
1711
|
function me() {
|
|
1712
|
-
|
|
1712
|
+
B.value || !k.value || (k.value = !1);
|
|
1713
1713
|
}
|
|
1714
1714
|
function M() {
|
|
1715
1715
|
d.value.searchable && f.value && (f.value.closest(".vv-dropdown")?.contains(document.activeElement) || f.value.focus({ preventScroll: !0 }));
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function ve() {
|
|
1718
1718
|
d.value.keepSearch || (le.value = "");
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function L(e) {
|
|
1721
1721
|
return typeof e != "string" && e.options?.length;
|
|
1722
1722
|
}
|
|
1723
|
-
let { id:
|
|
1723
|
+
let { id: ye, icon: xe, iconPosition: Se, modifiers: we, disabled: Te, required: Ee, readonly: De, loading: Oe, valid: ke, invalid: Ae, floating: je } = _e(n), z = Ut(ye), Me = D(() => `${z.value}-hint`), Ne = D(() => `${z.value}-dropdown`), Pe = D(() => `${z.value}-search`), Fe = D(() => `${z.value}-label`), Ie = D(() => [n.ariaDescribedby, ne.value ? Me.value : void 0].filter(Boolean).join(" ") || void 0), B = D(() => n.disabled || n.readonly), Le = D(() => B.value ? -1 : n.tabindex), V = D({
|
|
1724
1724
|
get: () => Array.isArray(n.modelValue) ? n.modelValue : n.modelValue !== void 0 && n.modelValue !== null ? [n.modelValue] : [],
|
|
1725
1725
|
set: (e) => {
|
|
1726
1726
|
o("update:modelValue", n.multiple || Array.isArray(n.modelValue) ? e : e.pop());
|
|
1727
1727
|
}
|
|
1728
|
-
}),
|
|
1729
|
-
disabled:
|
|
1730
|
-
required:
|
|
1731
|
-
loading:
|
|
1732
|
-
readonly:
|
|
1733
|
-
"icon-before":
|
|
1734
|
-
"icon-after":
|
|
1735
|
-
valid:
|
|
1736
|
-
invalid:
|
|
1737
|
-
dirty:
|
|
1738
|
-
focus: (x.value || ie.value || k.value) && !
|
|
1739
|
-
floating:
|
|
1728
|
+
}), Re = D(() => V.value.length), ze = D(() => Re.value > 0), H = D(() => n.multiple ? n.maxValues === void 0 ? 1 / 0 : Number(n.maxValues) : 1), Be = D(() => B.value || !n.unselectable ? !1 : Number(n.minValues) === 0 || Re.value > Number(n.minValues)), Ve = D(() => B.value ? !1 : !n.multiple || Re.value < H.value), He = E(!1), U = D(() => He.value || Oe.value), { hasIconBefore: Ue, hasIconAfter: G } = At(xe, Se), We = Ot("vv-select", we, D(() => ({
|
|
1729
|
+
disabled: Te.value,
|
|
1730
|
+
required: Ee.value,
|
|
1731
|
+
loading: U.value,
|
|
1732
|
+
readonly: De.value,
|
|
1733
|
+
"icon-before": Ue.value !== void 0,
|
|
1734
|
+
"icon-after": G.value !== void 0,
|
|
1735
|
+
valid: ke.value,
|
|
1736
|
+
invalid: Ae.value,
|
|
1737
|
+
dirty: ze.value,
|
|
1738
|
+
focus: (x.value || ie.value || k.value) && !B.value,
|
|
1739
|
+
floating: je.value,
|
|
1740
1740
|
badges: n.badges
|
|
1741
|
-
}))), Ge = E(/* @__PURE__ */ new Set()), { getOptionLabel: K, getOptionValue: Ke, getOptionGrouped:
|
|
1741
|
+
}))), Ge = E(/* @__PURE__ */ new Set()), { getOptionLabel: K, getOptionValue: Ke, getOptionGrouped: q, isOptionDisabled: qe } = mn(n), Je = D(() => {
|
|
1742
1742
|
let e = [...Ge.value];
|
|
1743
|
-
for (let t of n.options)
|
|
1743
|
+
for (let t of n.options) L(t) ? e.push(...q(t)) : e.push(t);
|
|
1744
1744
|
return e;
|
|
1745
|
-
}),
|
|
1745
|
+
}), J = D(() => {
|
|
1746
1746
|
let e = [...n.options, ...Ge.value];
|
|
1747
|
-
for (let t of
|
|
1747
|
+
for (let t of V.value) Je.value.some((e) => {
|
|
1748
1748
|
let n = Ke(e);
|
|
1749
1749
|
return typeof n == "object" && typeof t == "object" ? JSON.stringify(n) === JSON.stringify(t) : n === t;
|
|
1750
1750
|
}) || e.push(t);
|
|
1751
1751
|
return e;
|
|
1752
1752
|
});
|
|
1753
1753
|
g(Ge, (e) => {
|
|
1754
|
-
e.size > 0 && o("update:options",
|
|
1754
|
+
e.size > 0 && o("update:options", J.value);
|
|
1755
1755
|
});
|
|
1756
|
-
function
|
|
1757
|
-
return
|
|
1756
|
+
function Y(e) {
|
|
1757
|
+
return qe(e) || !Ve.value && !Z(e);
|
|
1758
1758
|
}
|
|
1759
|
-
let
|
|
1759
|
+
let X = R(async () => {
|
|
1760
1760
|
if (d.value.searchFunction) {
|
|
1761
|
-
|
|
1762
|
-
let e = await Promise.resolve(d.value.searchFunction(de.value,
|
|
1763
|
-
return
|
|
1761
|
+
He.value = !0;
|
|
1762
|
+
let e = await Promise.resolve(d.value.searchFunction(de.value, J.value));
|
|
1763
|
+
return He.value = !1, e;
|
|
1764
1764
|
}
|
|
1765
1765
|
let e = de.value.toLowerCase().trim();
|
|
1766
|
-
return e ?
|
|
1767
|
-
if (
|
|
1768
|
-
let r = K(n).toLowerCase(), i =
|
|
1766
|
+
return e ? J.value?.reduce((t, n) => {
|
|
1767
|
+
if (L(n)) {
|
|
1768
|
+
let r = K(n).toLowerCase(), i = q(n).filter((t) => K(t).toLowerCase().includes(e));
|
|
1769
1769
|
if (r.includes(e)) t.push(n);
|
|
1770
1770
|
else if (i.length > 0) {
|
|
1771
1771
|
let e = typeof n == "object" ? {
|
|
@@ -1777,50 +1777,50 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1777
1777
|
return t;
|
|
1778
1778
|
}
|
|
1779
1779
|
return K(n).toLowerCase().includes(e) && t.push(n), t;
|
|
1780
|
-
}, []) :
|
|
1780
|
+
}, []) : J.value;
|
|
1781
1781
|
});
|
|
1782
|
-
function
|
|
1782
|
+
function Z(e) {
|
|
1783
1783
|
let t = Ke(e);
|
|
1784
|
-
return typeof t == "object" ?
|
|
1784
|
+
return typeof t == "object" ? V.value.some((e) => typeof e == "object" && JSON.stringify(e) === JSON.stringify(t)) : V.value.includes(t);
|
|
1785
1785
|
}
|
|
1786
|
-
let
|
|
1787
|
-
function
|
|
1786
|
+
let Ye = D(() => J.value.reduce((e, t) => L(t) ? [...e, ...q(t)] : [...e, t], []).filter((e) => Z(e))), Xe = D(() => Ye.value.map((e) => K(e)).join(n.separator));
|
|
1787
|
+
function Ze() {
|
|
1788
1788
|
n.autoOpen ? pe() : fe();
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1791
|
-
let t =
|
|
1792
|
-
t &&
|
|
1790
|
+
function Q(e) {
|
|
1791
|
+
let t = Z(e), r = Ke(e);
|
|
1792
|
+
t && Be.value ? V.value = V.value.filter((e) => typeof r == "object" && typeof e == "object" ? JSON.stringify(e) !== JSON.stringify(r) : e !== r) : !t && Ve.value && (n.multiple ? V.value = [...V.value, r] : V.value = [r]), !n.multiple && !n.keepOpen && me();
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1795
|
-
|
|
1794
|
+
function Qe() {
|
|
1795
|
+
V.value = [], o("update:search", ""), o("clear");
|
|
1796
1796
|
}
|
|
1797
|
-
g(
|
|
1798
|
-
if (e?.length && n.autoselectFirst && !
|
|
1799
|
-
let t = e.find((e) => !
|
|
1797
|
+
g(J, (e) => {
|
|
1798
|
+
if (e?.length && n.autoselectFirst && !ze.value) {
|
|
1799
|
+
let t = e.find((e) => !L(e));
|
|
1800
1800
|
if (t) {
|
|
1801
|
-
|
|
1801
|
+
Q(t);
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
1804
|
-
let n = e.find((e) =>
|
|
1804
|
+
let n = e.find((e) => L(e));
|
|
1805
1805
|
if (n) {
|
|
1806
|
-
let e =
|
|
1807
|
-
e.length &&
|
|
1806
|
+
let e = q(n);
|
|
1807
|
+
e.length && Q(e[0]);
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
}, { immediate: !0 });
|
|
1811
|
-
let
|
|
1812
|
-
id:
|
|
1811
|
+
let $e = D(() => ({
|
|
1812
|
+
id: z.value,
|
|
1813
1813
|
name: n.name,
|
|
1814
|
-
tabindex:
|
|
1815
|
-
valid:
|
|
1814
|
+
tabindex: Le.value,
|
|
1815
|
+
valid: ke.value,
|
|
1816
1816
|
validLabel: d.value.validLabel,
|
|
1817
|
-
invalid:
|
|
1817
|
+
invalid: Ae.value,
|
|
1818
1818
|
invalidLabel: d.value.invalidLabel,
|
|
1819
1819
|
hintLabel: d.value.hintLabel,
|
|
1820
|
-
loading:
|
|
1820
|
+
loading: U.value,
|
|
1821
1821
|
loadingLabel: d.value.loadingLabel,
|
|
1822
|
-
disabled:
|
|
1823
|
-
readonly:
|
|
1822
|
+
disabled: Te.value,
|
|
1823
|
+
readonly: De.value,
|
|
1824
1824
|
modifiers: d.value.modifiers,
|
|
1825
1825
|
options: d.value.options,
|
|
1826
1826
|
labelKey: d.value.labelKey,
|
|
@@ -1828,7 +1828,7 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1828
1828
|
icon: d.value.icon,
|
|
1829
1829
|
iconPosition: d.value.iconPosition,
|
|
1830
1830
|
floating: d.value.floating,
|
|
1831
|
-
unselectable:
|
|
1831
|
+
unselectable: Be.value,
|
|
1832
1832
|
autoselectFirst: d.value.autoselectFirst,
|
|
1833
1833
|
multiple: d.value.multiple,
|
|
1834
1834
|
label: d.value.label,
|
|
@@ -1837,8 +1837,8 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1837
1837
|
ariaDescribedby: n.ariaDescribedby,
|
|
1838
1838
|
placeholder: d.value.placeholder,
|
|
1839
1839
|
modelValue: n.modelValue
|
|
1840
|
-
})),
|
|
1841
|
-
id:
|
|
1840
|
+
})), et = D(() => ({
|
|
1841
|
+
id: Ne.value,
|
|
1842
1842
|
reference: p.value,
|
|
1843
1843
|
placement: d.value.placement,
|
|
1844
1844
|
strategy: d.value.strategy,
|
|
@@ -1852,42 +1852,42 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1852
1852
|
triggerWidth: d.value.triggerWidth,
|
|
1853
1853
|
topLayer: d.value.topLayer,
|
|
1854
1854
|
modifiers: d.value.dropdownModifiers
|
|
1855
|
-
})),
|
|
1855
|
+
})), tt = D(() => ({
|
|
1856
1856
|
valid: n.valid,
|
|
1857
1857
|
invalid: n.invalid,
|
|
1858
1858
|
modelValue: n.modelValue
|
|
1859
1859
|
}));
|
|
1860
|
-
function
|
|
1860
|
+
function $(e) {
|
|
1861
1861
|
e.key !== " " && e.key !== "Enter" || n.autoOpen || !k.value && x.value && (e.preventDefault(), e.stopImmediatePropagation(), fe());
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
if (
|
|
1865
|
-
if (
|
|
1866
|
-
let e =
|
|
1867
|
-
if (
|
|
1868
|
-
let t =
|
|
1869
|
-
t.length &&
|
|
1863
|
+
function nt() {
|
|
1864
|
+
if (X.value?.length) {
|
|
1865
|
+
if (X.value.length === 1) {
|
|
1866
|
+
let e = X.value[0];
|
|
1867
|
+
if (L(e)) {
|
|
1868
|
+
let t = q(e);
|
|
1869
|
+
t.length && Q(t[0]);
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
|
-
|
|
1872
|
+
Q(e);
|
|
1873
1873
|
return;
|
|
1874
1874
|
}
|
|
1875
1875
|
m.value?.focusFirstListElement();
|
|
1876
1876
|
} else if (d.value.addable) {
|
|
1877
1877
|
let e = le.value.trim();
|
|
1878
|
-
if (!e ||
|
|
1879
|
-
Ge.value.add(e),
|
|
1878
|
+
if (!e || Je.value.some((t) => K(t).toLowerCase() === e.toLowerCase())) return;
|
|
1879
|
+
Ge.value.add(e), Q(e);
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
|
-
return (e, t) => e.native ? (
|
|
1882
|
+
return (e, t) => e.native ? (I(), S(Tn, h({ key: 1 }, N($e), { "onUpdate:modelValue": t[3] ||= (e) => o("update:modelValue", e) }), null, 16)) : (I(), F("div", {
|
|
1883
1883
|
key: 0,
|
|
1884
|
-
id: N(
|
|
1884
|
+
id: N(z),
|
|
1885
1885
|
class: a(N(We))
|
|
1886
1886
|
}, [
|
|
1887
|
-
e.label ? (
|
|
1887
|
+
e.label ? (I(), F("label", {
|
|
1888
1888
|
key: 0,
|
|
1889
|
-
id: N(
|
|
1890
|
-
for: N(d).searchable ? N(
|
|
1889
|
+
id: N(Fe),
|
|
1890
|
+
for: N(d).searchable ? N(Pe) : void 0
|
|
1891
1891
|
}, O(e.label), 9, Dn)) : j("v-if", !0),
|
|
1892
1892
|
T("div", {
|
|
1893
1893
|
ref_key: "wrapperEl",
|
|
@@ -1898,72 +1898,72 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1898
1898
|
ref: m,
|
|
1899
1899
|
modelValue: N(k),
|
|
1900
1900
|
"onUpdate:modelValue": t[2] ||= (e) => ge(k) ? k.value = e : null
|
|
1901
|
-
}, N(
|
|
1902
|
-
role: N(
|
|
1901
|
+
}, N(et), {
|
|
1902
|
+
role: N(W).listbox,
|
|
1903
1903
|
onAfterExpand: M,
|
|
1904
|
-
onAfterCollapse:
|
|
1904
|
+
onAfterCollapse: ve
|
|
1905
1905
|
}), C({
|
|
1906
1906
|
default: A(({ aria: t }) => [
|
|
1907
|
-
e.$slots.before ? (
|
|
1907
|
+
e.$slots.before ? (I(), F("div", kn, [c(e.$slots, "before", r(i(N(tt))))])) : j("v-if", !0),
|
|
1908
1908
|
T("div", An, [
|
|
1909
|
-
N(
|
|
1909
|
+
N(Ue) ? (I(), S(kt, h({ key: 0 }, N(Ue), { class: "vv-select__icon" }), null, 16)) : j("v-if", !0),
|
|
1910
1910
|
T("div", h({
|
|
1911
1911
|
ref_key: "inputEl",
|
|
1912
1912
|
ref: ee
|
|
1913
1913
|
}, t, {
|
|
1914
1914
|
class: "vv-select__input",
|
|
1915
1915
|
role: "combobox",
|
|
1916
|
-
"aria-controls": N(
|
|
1916
|
+
"aria-controls": N(Ne),
|
|
1917
1917
|
"aria-expanded": N(k),
|
|
1918
1918
|
"aria-label": e.ariaLabel || void 0,
|
|
1919
|
-
"aria-labelledby": e.ariaLabelledby || (e.label ? N(
|
|
1920
|
-
"aria-describedby": N(
|
|
1921
|
-
"aria-errormessage": N(v) ? N(
|
|
1922
|
-
tabindex: N(
|
|
1923
|
-
onClickPassive:
|
|
1924
|
-
onKeydown:
|
|
1925
|
-
}), [N(
|
|
1926
|
-
selectedOptions: N(
|
|
1927
|
-
onInput:
|
|
1928
|
-
})), () => [e.badges ? (
|
|
1919
|
+
"aria-labelledby": e.ariaLabelledby || (e.label ? N(Fe) : void 0),
|
|
1920
|
+
"aria-describedby": N(Ie),
|
|
1921
|
+
"aria-errormessage": N(v) ? N(Me) : void 0,
|
|
1922
|
+
tabindex: N(Le),
|
|
1923
|
+
onClickPassive: Ze,
|
|
1924
|
+
onKeydown: $
|
|
1925
|
+
}), [N(Xe) ? c(e.$slots, "value", r(i({
|
|
1926
|
+
selectedOptions: N(Ye),
|
|
1927
|
+
onInput: Q
|
|
1928
|
+
})), () => [e.badges ? (I(!0), F(w, { key: 1 }, b(N(Ye), (t, n) => (I(), S(Nt, {
|
|
1929
1929
|
key: n,
|
|
1930
1930
|
modifiers: e.badgeModifiers,
|
|
1931
1931
|
class: "vv-select__badge"
|
|
1932
1932
|
}, {
|
|
1933
|
-
default: A(() => [P(O(N(K)(t)) + " ", 1), N(
|
|
1933
|
+
default: A(() => [P(O(N(K)(t)) + " ", 1), N(Be) ? (I(), F("button", {
|
|
1934
1934
|
key: 0,
|
|
1935
1935
|
"aria-label": N(d).deselectActionLabel,
|
|
1936
1936
|
type: "button",
|
|
1937
|
-
onClick: oe((e) =>
|
|
1938
|
-
}, [_(
|
|
1937
|
+
onClick: oe((e) => Q(t), ["stop"])
|
|
1938
|
+
}, [_(kt, { name: "close" })], 8, Nn)) : j("v-if", !0)]),
|
|
1939
1939
|
_: 2
|
|
1940
|
-
}, 1032, ["modifiers"]))), 128)) : (
|
|
1941
|
-
N(
|
|
1940
|
+
}, 1032, ["modifiers"]))), 128)) : (I(), F("div", Mn, O(N(Xe)), 1))], void 0, 0) : c(e.$slots, "placeholder", {}, () => [P(O(e.placeholder), 1)], void 0, 1)], 16, jn),
|
|
1941
|
+
N(G) ? (I(), S(kt, h({ key: 1 }, N(G), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : j("v-if", !0)
|
|
1942
1942
|
]),
|
|
1943
|
-
N(
|
|
1943
|
+
N(Be) && N(d).showClearAction ? (I(), S(N(jt), {
|
|
1944
1944
|
key: 1,
|
|
1945
1945
|
"input-type": "select",
|
|
1946
1946
|
label: e.labelClear,
|
|
1947
1947
|
icon: e.iconClear,
|
|
1948
|
-
disabled: !N(
|
|
1949
|
-
onClear:
|
|
1948
|
+
disabled: !N(ze),
|
|
1949
|
+
onClear: Qe
|
|
1950
1950
|
}, null, 8, [
|
|
1951
1951
|
"label",
|
|
1952
1952
|
"icon",
|
|
1953
1953
|
"disabled"
|
|
1954
1954
|
])) : j("v-if", !0),
|
|
1955
|
-
e.$slots.after ? (
|
|
1955
|
+
e.$slots.after ? (I(), F("div", Pn, [c(e.$slots, "after", r(i(N(tt))))])) : j("v-if", !0)
|
|
1956
1956
|
]),
|
|
1957
|
-
items: A(() => [!N(
|
|
1957
|
+
items: A(() => [!N(Te) && N(X)?.length ? (I(!0), F(w, { key: 0 }, b(N(X), (t, n) => (I(), F(w, { key: n }, [L(t) ? (I(), F(w, { key: 0 }, [_(an, { label: N(K)(t) }, {
|
|
1958
1958
|
default: A(() => [c(e.$slots, "option-group", h({ ref_for: !0 }, {
|
|
1959
1959
|
option: t,
|
|
1960
|
-
selectedOptions: N(
|
|
1960
|
+
selectedOptions: N(Ye)
|
|
1961
1961
|
}), () => [P(O(N(K)(t)), 1)])]),
|
|
1962
1962
|
_: 2
|
|
1963
|
-
}, 1032, ["label"]), (
|
|
1964
|
-
selected:
|
|
1965
|
-
disabled:
|
|
1966
|
-
unselectable: N(
|
|
1963
|
+
}, 1032, ["label"]), (I(!0), F(w, null, b(N(q)(t), (t, n) => (I(), S(cn, h({ ref_for: !0 }, {
|
|
1964
|
+
selected: Z(t),
|
|
1965
|
+
disabled: Y(t),
|
|
1966
|
+
unselectable: N(Be),
|
|
1967
1967
|
deselectHintLabel: N(d).deselectHintLabel,
|
|
1968
1968
|
selectHintLabel: N(d).selectHintLabel,
|
|
1969
1969
|
selectedHintLabel: N(d).selectedHintLabel,
|
|
@@ -1971,51 +1971,51 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
1971
1971
|
}, {
|
|
1972
1972
|
key: n,
|
|
1973
1973
|
class: "vv-dropdown-option",
|
|
1974
|
-
onClickPassive: (e) =>
|
|
1974
|
+
onClickPassive: (e) => Q(t)
|
|
1975
1975
|
}), {
|
|
1976
1976
|
default: A(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
|
|
1977
1977
|
option: t,
|
|
1978
|
-
selectedOptions: N(
|
|
1979
|
-
selected:
|
|
1980
|
-
disabled:
|
|
1978
|
+
selectedOptions: N(Ye),
|
|
1979
|
+
selected: Z(t),
|
|
1980
|
+
disabled: Y(t)
|
|
1981
1981
|
}), () => [P(O(N(K)(t)), 1)])]),
|
|
1982
1982
|
_: 2
|
|
1983
|
-
}, 1040, ["onClickPassive"]))), 128))], 64)) : (
|
|
1983
|
+
}, 1040, ["onClickPassive"]))), 128))], 64)) : (I(), S(cn, h({
|
|
1984
1984
|
key: 1,
|
|
1985
1985
|
ref_for: !0
|
|
1986
1986
|
}, {
|
|
1987
|
-
selected:
|
|
1988
|
-
disabled:
|
|
1989
|
-
unselectable: N(
|
|
1987
|
+
selected: Z(t),
|
|
1988
|
+
disabled: Y(t),
|
|
1989
|
+
unselectable: N(Be),
|
|
1990
1990
|
deselectHintLabel: N(d).deselectHintLabel,
|
|
1991
1991
|
selectHintLabel: N(d).selectHintLabel,
|
|
1992
1992
|
selectedHintLabel: N(d).selectedHintLabel,
|
|
1993
1993
|
focusOnHover: e.focusOnHover
|
|
1994
1994
|
}, {
|
|
1995
1995
|
class: "vv-dropdown-option",
|
|
1996
|
-
onClickPassive: (e) =>
|
|
1996
|
+
onClickPassive: (e) => Q(t)
|
|
1997
1997
|
}), {
|
|
1998
1998
|
default: A(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
|
|
1999
1999
|
option: t,
|
|
2000
|
-
selectedOptions: N(
|
|
2001
|
-
selected:
|
|
2002
|
-
disabled:
|
|
2000
|
+
selectedOptions: N(Ye),
|
|
2001
|
+
selected: Z(t),
|
|
2002
|
+
disabled: Y(t)
|
|
2003
2003
|
}), () => [P(O(N(K)(t)), 1)])]),
|
|
2004
2004
|
_: 2
|
|
2005
|
-
}, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (
|
|
2005
|
+
}, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (I(), S(cn, {
|
|
2006
2006
|
key: 2,
|
|
2007
2007
|
modifiers: "inert"
|
|
2008
2008
|
}, {
|
|
2009
2009
|
default: A(() => [c(e.$slots, "no-results", {}, () => [P(O(N(d).addable ? N(d).addOptionHintLabel : N(d).noResultsLabel), 1)])]),
|
|
2010
2010
|
_: 3
|
|
2011
|
-
})) : (
|
|
2011
|
+
})) : (I(), S(cn, {
|
|
2012
2012
|
key: 1,
|
|
2013
2013
|
modifiers: "inert"
|
|
2014
2014
|
}, {
|
|
2015
2015
|
default: A(() => [c(e.$slots, "no-options", {}, () => [P(O(N(d).addable && le.value.length ? N(d).addOptionHintLabel : N(d).noOptionsLabel), 1)])]),
|
|
2016
2016
|
_: 3
|
|
2017
2017
|
}))]),
|
|
2018
|
-
after: A(() => [c(e.$slots, "dropdown::after", {}, () => [N(m)?.customPosition ? (
|
|
2018
|
+
after: A(() => [c(e.$slots, "dropdown::after", {}, () => [N(m)?.customPosition ? (I(), S(Kt, {
|
|
2019
2019
|
key: 0,
|
|
2020
2020
|
label: N(d).closeLabel,
|
|
2021
2021
|
modifiers: "secondary",
|
|
@@ -2024,25 +2024,25 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
2024
2024
|
_: 2
|
|
2025
2025
|
}, [N(d).searchable || e.$slots["dropdown::before"] ? {
|
|
2026
2026
|
name: "before",
|
|
2027
|
-
fn: A(() => [c(e.$slots, "dropdown::before"), N(d).searchable && !N(
|
|
2027
|
+
fn: A(() => [c(e.$slots, "dropdown::before"), N(d).searchable && !N(Te) ? ue((I(), F("input", {
|
|
2028
2028
|
key: 0,
|
|
2029
|
-
id: N(
|
|
2029
|
+
id: N(Pe),
|
|
2030
2030
|
ref_key: "inputSearchEl",
|
|
2031
2031
|
ref: f,
|
|
2032
2032
|
"onUpdate:modelValue": t[0] ||= (e) => le.value = e,
|
|
2033
2033
|
"aria-autocomplete": "list",
|
|
2034
|
-
"aria-controls": N(
|
|
2034
|
+
"aria-controls": N(Ne),
|
|
2035
2035
|
autocomplete: "off",
|
|
2036
2036
|
spellcheck: "false",
|
|
2037
2037
|
type: "search",
|
|
2038
2038
|
class: "vv-dropdown__search",
|
|
2039
2039
|
placeholder: N(d).searchPlaceholder,
|
|
2040
|
-
onKeyup: he(
|
|
2040
|
+
onKeyup: he(nt, ["enter"])
|
|
2041
2041
|
}, null, 40, On)), [[ae, le.value]]) : j("v-if", !0)]),
|
|
2042
2042
|
key: "0"
|
|
2043
2043
|
} : void 0]), 1040, ["modelValue", "role"])], 512),
|
|
2044
2044
|
_(N(te), {
|
|
2045
|
-
id: N(
|
|
2045
|
+
id: N(Me),
|
|
2046
2046
|
class: "vv-select__hint"
|
|
2047
2047
|
}, C({ _: 2 }, [
|
|
2048
2048
|
e.$slots.hint ? {
|
|
@@ -2071,4 +2071,4 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
|
|
|
2071
2071
|
});
|
|
2072
2072
|
export { Fn as default };
|
|
2073
2073
|
|
|
2074
|
-
//# sourceMappingURL=VvCombobox.es-
|
|
2074
|
+
//# sourceMappingURL=VvCombobox.es-Bb9Dbtdg.js.map
|