@8wave/ai-elements 0.106.0-beta.2 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{PkLazyImg-BoH1s5ni.js → PkLazyImg-Beug40gC.js} +2 -2
- package/dist/_chunks/{PkLazyImg-BoH1s5ni.js.map → PkLazyImg-Beug40gC.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js → PkToolRequestGeolocation-DUHzWOSe.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js.map → PkToolRequestGeolocation-DUHzWOSe.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js → PkToolRequestOAuthConnection-CdtnIiy6.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js.map → PkToolRequestOAuthConnection-CdtnIiy6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js → PkToolShowArtifact-B0gZZGvT.js} +3 -3
- package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js.map → PkToolShowArtifact-B0gZZGvT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js → PkToolShowCalendarEvent-DpEWSENB.js} +3 -3
- package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js.map → PkToolShowCalendarEvent-DpEWSENB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js → PkToolShowComparison-DkHRpM8n.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js.map → PkToolShowComparison-DkHRpM8n.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js → PkToolShowContactForm-B8YI2e0B.js} +3 -3
- package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js.map → PkToolShowContactForm-B8YI2e0B.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js → PkToolShowDiagram-vmSzw6s0.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js.map → PkToolShowDiagram-vmSzw6s0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js → PkToolShowEmail-BtntDg5l.js} +3 -3
- package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js.map → PkToolShowEmail-BtntDg5l.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CadrjzZx.js → PkToolShowForm-gD0MfOjQ.js} +104 -104
- package/dist/_chunks/PkToolShowForm-gD0MfOjQ.js.map +1 -0
- package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js → PkToolShowImageGallery-DL-bFOKl.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js.map → PkToolShowImageGallery-DL-bFOKl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js → PkToolShowLocation-DXPAEQCf.js} +3 -3
- package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js.map → PkToolShowLocation-DXPAEQCf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js → PkToolShowMessage-WendSuVW.js} +3 -3
- package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js.map → PkToolShowMessage-WendSuVW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js → PkToolShowProductList-_ULcSOL_.js} +3 -3
- package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js.map → PkToolShowProductList-_ULcSOL_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js → PkToolShowQrCode-BIhYJSTf.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js.map → PkToolShowQrCode-BIhYJSTf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js → PkToolShowSources-BprUew-i.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js.map → PkToolShowSources-BprUew-i.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js → PkToolShowSuggestedReply-FJMsf1Ft.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js.map → PkToolShowSuggestedReply-FJMsf1Ft.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js → PkToolShowVideo-DXQo_Frk.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js.map → PkToolShowVideo-DXQo_Frk.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js → PkToolShowWeather-Ca-ZrKx3.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js.map → PkToolShowWeather-Ca-ZrKx3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js → PkToolShowWebPages-DxxqCOav.js} +3 -3
- package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js.map → PkToolShowWebPages-DxxqCOav.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js → VvCheckboxGroup.es-6rXZzFDs.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js.map → VvCheckboxGroup.es-6rXZzFDs.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js → VvCombobox.es-DgB4YbSj.js} +409 -409
- package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js.map → VvCombobox.es-DgB4YbSj.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js → VvInputText.es-UTEISDKU.js} +181 -181
- package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js.map → VvInputText.es-UTEISDKU.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js → VvRadioGroup.es-CqMnxRGR.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js.map → VvRadioGroup.es-CqMnxRGR.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js → VvSelect.es-BLNrNcIi.js} +6 -6
- package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js.map → VvSelect.es-BLNrNcIi.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js → VvTextarea.es-ChkbZSw6.js} +296 -296
- package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js.map → VvTextarea.es-ChkbZSw6.js.map} +1 -1
- package/dist/_chunks/{dist-vbhhaYbZ.js → dist-Dhop5_et.js} +91 -28
- package/dist/_chunks/{dist-vbhhaYbZ.js.map → dist-Dhop5_et.js.map} +1 -1
- package/dist/_chunks/{index.es-DFq55nZZ.js → index.es-CNKCTfCu.js} +93 -93
- package/dist/_chunks/{index.es-DFq55nZZ.js.map → index.es-CNKCTfCu.js.map} +1 -1
- package/dist/_chunks/{index.es-DhjFGu5c.js → index.es-DB9_sQvG.js} +16 -16
- package/dist/_chunks/{index.es-DhjFGu5c.js.map → index.es-DB9_sQvG.js.map} +1 -1
- package/dist/ai-elements.es.js +2334 -2327
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-a8Wh4tN4.js → PkChatbot-i_07-rvf.js} +76 -68
- package/dist-vue/_chunks/PkChatbot-i_07-rvf.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotEmptyState-C7W0QgqW.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-D6rNh6PF.js → PkChatbotMessages-CZLj_OeK.js} +4 -4
- package/dist-vue/_chunks/PkChatbotMessages-CZLj_OeK.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js → PkChatbotViewChat-B6MfjQIa.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js.map → PkChatbotViewChat-B6MfjQIa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js → PkToolShowDiagram-D7jh-yIc.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js.map → PkToolShowDiagram-D7jh-yIc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CJtmt5yd.js → PkToolShowForm-BGp_gbtr.js} +54 -54
- package/dist-vue/_chunks/PkToolShowForm-BGp_gbtr.js.map +1 -0
- package/dist-vue/index.js +8 -8
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkToolShowForm-CadrjzZx.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-a8Wh4tN4.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-D6rNh6PF.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowForm-CJtmt5yd.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, L as c, M as l, N as u, O as d, Q as f, R as p, St as ee, T as m, Tt as h, U as te, W as ne, X as g, _, b as re, bt as v, c as ie, ct as y, d as ae, et as oe, g as b, h as x, it as se, k as S, m as C, pt as w, q as ce, r as le, s as T, t as ue, u as de, ut as fe, v as E, vt as D, wt as pe, x as me, xt as he, y as ge, yt as O, z as k } from "./vue.runtime.esm-bundler-D6KKITU0.js";
|
|
2
2
|
import { a as A, i as _e, t as ve } from "./iconify-tggsk9QV.js";
|
|
3
|
-
import { c as ye,
|
|
4
|
-
import { a as
|
|
3
|
+
import { c as ye, f as be, h as xe, l as j, m as Se, n as Ce, o as M, r as N, u as P } from "./dist-Dhop5_et.js";
|
|
4
|
+
import { a as we, c as F, i as Te, l as Ee, n as De, o as Oe, r as ke, s as Ae, t as je } from "./floating-ui.vue-DYDaUjxz.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.20_@json-render+core@0.19.0_zod@4.5.4__@volverjs+style@0.1.27_@vue_f2b5a47152e93c3451249216f4e73d36/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
|
|
6
6
|
d(), le(), se(), he();
|
|
7
|
-
var
|
|
7
|
+
var Me = {
|
|
8
8
|
showPassword: "eye-on",
|
|
9
9
|
hidePassword: "eye-off",
|
|
10
10
|
showDatePicker: "calendar",
|
|
@@ -15,27 +15,27 @@ var Ne = {
|
|
|
15
15
|
remove: "trash",
|
|
16
16
|
edit: "edit",
|
|
17
17
|
download: "download"
|
|
18
|
-
},
|
|
18
|
+
}, Ne = { prefix: "normal" }, I = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.local = "local", e.session = "session", e;
|
|
20
|
-
})({}), I = /* @__PURE__ */ (function(e) {
|
|
21
|
-
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
22
20
|
})({}), L = /* @__PURE__ */ (function(e) {
|
|
23
|
-
return e.
|
|
21
|
+
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
24
22
|
})({}), R = /* @__PURE__ */ (function(e) {
|
|
25
|
-
return e.
|
|
23
|
+
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
26
24
|
})({}), z = /* @__PURE__ */ (function(e) {
|
|
27
|
-
return e.
|
|
25
|
+
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;
|
|
28
26
|
})({}), B = /* @__PURE__ */ (function(e) {
|
|
29
|
-
return e.
|
|
27
|
+
return e.before = "before", e.after = "after", e;
|
|
30
28
|
})({}), V = /* @__PURE__ */ (function(e) {
|
|
31
|
-
return e.
|
|
29
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
32
30
|
})({}), H = /* @__PURE__ */ (function(e) {
|
|
33
|
-
return e.
|
|
31
|
+
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
34
32
|
})({}), U = /* @__PURE__ */ (function(e) {
|
|
35
|
-
return e.
|
|
33
|
+
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
36
34
|
})({}), W = /* @__PURE__ */ (function(e) {
|
|
35
|
+
return e.listbox = "listbox", e.menu = "menu", e;
|
|
36
|
+
})({}), G = /* @__PURE__ */ (function(e) {
|
|
37
37
|
return e.option = "option", e.presentation = "presentation", e;
|
|
38
|
-
})({}),
|
|
38
|
+
})({}), K = /* @__PURE__ */ Symbol.for("volver"), Pe = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Fe = /* @__PURE__ */ Symbol.for("dropdownItem"), q = /* @__PURE__ */ Symbol.for("dropdownAction"), J = {
|
|
39
39
|
to: { type: [String, Object] },
|
|
40
40
|
href: String,
|
|
41
41
|
target: String,
|
|
@@ -43,7 +43,7 @@ var Ne = {
|
|
|
43
43
|
type: String,
|
|
44
44
|
default: "noopener noreferrer"
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, Ie = {
|
|
47
47
|
valid: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: !1
|
|
@@ -52,7 +52,7 @@ var Ne = {
|
|
|
52
52
|
type: [String, Array],
|
|
53
53
|
default: void 0
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, Le = {
|
|
56
56
|
invalid: {
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: !1
|
|
@@ -61,7 +61,7 @@ var Ne = {
|
|
|
61
61
|
type: [String, Array],
|
|
62
62
|
default: void 0
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, Y = {
|
|
65
65
|
loading: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: !1
|
|
@@ -70,39 +70,39 @@ var Ne = {
|
|
|
70
70
|
type: String,
|
|
71
71
|
default: "Loading..."
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, X = { disabled: {
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
|
-
} },
|
|
76
|
+
} }, Re = { required: {
|
|
77
77
|
type: Boolean,
|
|
78
78
|
default: !1
|
|
79
|
-
} },
|
|
79
|
+
} }, ze = { selected: {
|
|
80
80
|
type: Boolean,
|
|
81
81
|
default: !1
|
|
82
|
-
} },
|
|
82
|
+
} }, Be = { active: {
|
|
83
83
|
type: Boolean,
|
|
84
84
|
default: !1
|
|
85
|
-
} },
|
|
85
|
+
} }, Ve = { current: {
|
|
86
86
|
type: Boolean,
|
|
87
87
|
default: !1
|
|
88
88
|
} };
|
|
89
|
-
|
|
90
|
-
var
|
|
89
|
+
Me.clear;
|
|
90
|
+
var He = { pressed: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: !1
|
|
93
|
-
} },
|
|
93
|
+
} }, Z = { label: {
|
|
94
94
|
type: [String, Number],
|
|
95
95
|
default: void 0
|
|
96
|
-
} },
|
|
96
|
+
} }, Ue = { readonly: {
|
|
97
97
|
type: Boolean,
|
|
98
98
|
default: !1
|
|
99
|
-
} },
|
|
99
|
+
} }, Q = { modifiers: {
|
|
100
100
|
type: [String, Array],
|
|
101
101
|
default: void 0
|
|
102
|
-
} },
|
|
102
|
+
} }, We = { hintLabel: {
|
|
103
103
|
type: String,
|
|
104
104
|
default: ""
|
|
105
|
-
} },
|
|
105
|
+
} }, Ge = {
|
|
106
106
|
options: {
|
|
107
107
|
type: Array,
|
|
108
108
|
default: () => []
|
|
@@ -119,7 +119,7 @@ var Ue = { pressed: {
|
|
|
119
119
|
type: [String, Function],
|
|
120
120
|
default: "disabled"
|
|
121
121
|
}
|
|
122
|
-
},
|
|
122
|
+
}, Ke = { count: {
|
|
123
123
|
type: [Boolean, String],
|
|
124
124
|
default: !1,
|
|
125
125
|
validator: (e) => [
|
|
@@ -128,38 +128,38 @@ var Ue = { pressed: {
|
|
|
128
128
|
"limit",
|
|
129
129
|
"countdown"
|
|
130
130
|
].includes(e)
|
|
131
|
-
} },
|
|
131
|
+
} }, qe = { debounce: {
|
|
132
132
|
type: [Number, String],
|
|
133
133
|
default: void 0
|
|
134
|
-
} },
|
|
134
|
+
} }, Je = {
|
|
135
135
|
icon: {
|
|
136
136
|
type: [String, Object],
|
|
137
137
|
default: void 0
|
|
138
138
|
},
|
|
139
139
|
iconPosition: {
|
|
140
140
|
type: String,
|
|
141
|
-
default:
|
|
142
|
-
validation: (e) => Object.values(
|
|
141
|
+
default: B.before,
|
|
142
|
+
validation: (e) => Object.values(B).includes(e)
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, Ye = { tabindex: {
|
|
145
145
|
type: [String, Number],
|
|
146
146
|
default: 0
|
|
147
|
-
} },
|
|
147
|
+
} }, Xe = { floating: {
|
|
148
148
|
type: Boolean,
|
|
149
149
|
default: !1
|
|
150
|
-
} },
|
|
150
|
+
} }, Ze = { unselectable: {
|
|
151
151
|
type: Boolean,
|
|
152
152
|
default: !0
|
|
153
|
-
} },
|
|
153
|
+
} }, Qe = { id: [String, Number] }, $e = {
|
|
154
154
|
placement: {
|
|
155
155
|
type: String,
|
|
156
|
-
default:
|
|
157
|
-
validator: (e) => Object.values(
|
|
156
|
+
default: R.bottom,
|
|
157
|
+
validator: (e) => Object.values(R).includes(e) || Object.values(z).includes(e)
|
|
158
158
|
},
|
|
159
159
|
strategy: {
|
|
160
160
|
type: String,
|
|
161
161
|
default: void 0,
|
|
162
|
-
validator: (e) => Object.values(
|
|
162
|
+
validator: (e) => Object.values(L).includes(e)
|
|
163
163
|
},
|
|
164
164
|
transitionName: {
|
|
165
165
|
type: String,
|
|
@@ -209,35 +209,35 @@ var Ue = { pressed: {
|
|
|
209
209
|
type: Boolean,
|
|
210
210
|
default: !1
|
|
211
211
|
}
|
|
212
|
-
},
|
|
213
|
-
|
|
212
|
+
}, et = {
|
|
213
|
+
...Qe,
|
|
214
214
|
name: {
|
|
215
215
|
type: String,
|
|
216
216
|
required: !0
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, tt = { autofocus: {
|
|
219
219
|
type: Boolean,
|
|
220
220
|
default: !1
|
|
221
|
-
} },
|
|
221
|
+
} }, nt = { autocomplete: {
|
|
222
222
|
type: String,
|
|
223
223
|
default: "off"
|
|
224
|
-
} },
|
|
224
|
+
} }, rt = {
|
|
225
|
+
...et,
|
|
225
226
|
...tt,
|
|
226
227
|
...nt,
|
|
227
|
-
...
|
|
228
|
-
...
|
|
229
|
-
...
|
|
230
|
-
...
|
|
228
|
+
...Ye,
|
|
229
|
+
...X,
|
|
230
|
+
...Ue,
|
|
231
|
+
...Ie,
|
|
231
232
|
...Le,
|
|
232
|
-
...
|
|
233
|
-
...
|
|
234
|
-
...
|
|
235
|
-
...
|
|
233
|
+
...We,
|
|
234
|
+
...Y,
|
|
235
|
+
...Q,
|
|
236
|
+
...Ke,
|
|
236
237
|
...qe,
|
|
237
238
|
...Je,
|
|
238
|
-
...
|
|
239
|
-
...
|
|
240
|
-
...X,
|
|
239
|
+
...Xe,
|
|
240
|
+
...Z,
|
|
241
241
|
minlength: {
|
|
242
242
|
type: [String, Number],
|
|
243
243
|
default: void 0
|
|
@@ -250,62 +250,62 @@ var Ue = { pressed: {
|
|
|
250
250
|
type: String,
|
|
251
251
|
default: void 0
|
|
252
252
|
},
|
|
253
|
-
...
|
|
253
|
+
...Re
|
|
254
254
|
};
|
|
255
255
|
({
|
|
256
|
-
...
|
|
257
|
-
...
|
|
256
|
+
...et,
|
|
257
|
+
...Ye,
|
|
258
|
+
...Ie,
|
|
258
259
|
...Le,
|
|
259
|
-
...Re,
|
|
260
|
-
...Ge,
|
|
261
|
-
...Y,
|
|
262
260
|
...We,
|
|
263
|
-
...Z,
|
|
264
261
|
...X,
|
|
265
|
-
...
|
|
262
|
+
...Ue,
|
|
263
|
+
...Q,
|
|
264
|
+
...Z,
|
|
265
|
+
...Y
|
|
266
266
|
}), {
|
|
267
|
+
...Ie,
|
|
267
268
|
...Le,
|
|
268
|
-
...Re,
|
|
269
|
-
...Ke,
|
|
270
269
|
...Ge,
|
|
271
|
-
...Y,
|
|
272
270
|
...We,
|
|
273
|
-
...Z,
|
|
274
271
|
...X,
|
|
275
|
-
...
|
|
276
|
-
...
|
|
277
|
-
|
|
272
|
+
...Ue,
|
|
273
|
+
...Q,
|
|
274
|
+
...Z,
|
|
278
275
|
...Y,
|
|
276
|
+
...Re
|
|
277
|
+
}, {
|
|
279
278
|
...X,
|
|
280
|
-
...
|
|
281
|
-
...Ve,
|
|
279
|
+
...Z,
|
|
282
280
|
...He,
|
|
283
|
-
...
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
...Be,
|
|
282
|
+
...Ve,
|
|
283
|
+
...J
|
|
284
|
+
}, V.button, H.button;
|
|
285
|
+
var it = {
|
|
286
286
|
storageType: {
|
|
287
287
|
type: String,
|
|
288
|
-
default:
|
|
289
|
-
validator: (e) => Object.values(
|
|
288
|
+
default: I.local,
|
|
289
|
+
validator: (e) => Object.values(I).includes(e)
|
|
290
290
|
},
|
|
291
291
|
storageKey: String
|
|
292
|
-
},
|
|
292
|
+
}, at = {
|
|
293
293
|
hard: "hard",
|
|
294
294
|
soft: "soft"
|
|
295
|
-
},
|
|
295
|
+
}, ot = {
|
|
296
296
|
true: !0,
|
|
297
297
|
false: !1,
|
|
298
298
|
default: "default"
|
|
299
|
-
},
|
|
299
|
+
}, st = [
|
|
300
300
|
"update:modelValue",
|
|
301
301
|
"focus",
|
|
302
302
|
"blur",
|
|
303
303
|
"keyup",
|
|
304
304
|
"suggestion:selected",
|
|
305
305
|
"suggestion:removed"
|
|
306
|
-
],
|
|
306
|
+
], ct = {
|
|
307
|
+
...rt,
|
|
307
308
|
...it,
|
|
308
|
-
...at,
|
|
309
309
|
modelValue: String,
|
|
310
310
|
cols: {
|
|
311
311
|
type: [String, Number],
|
|
@@ -317,15 +317,15 @@ var at = {
|
|
|
317
317
|
},
|
|
318
318
|
wrap: {
|
|
319
319
|
type: String,
|
|
320
|
-
default:
|
|
320
|
+
default: at.soft
|
|
321
321
|
},
|
|
322
322
|
spellcheck: {
|
|
323
323
|
type: [Boolean, String],
|
|
324
|
-
default:
|
|
324
|
+
default: ot.default
|
|
325
325
|
},
|
|
326
326
|
iconRemoveSuggestion: {
|
|
327
327
|
type: [String, Object],
|
|
328
|
-
default:
|
|
328
|
+
default: Me.remove
|
|
329
329
|
},
|
|
330
330
|
labelRemoveSuggestion: {
|
|
331
331
|
type: String,
|
|
@@ -340,19 +340,19 @@ var at = {
|
|
|
340
340
|
default: !1
|
|
341
341
|
},
|
|
342
342
|
resizable: Boolean,
|
|
343
|
-
topLayer:
|
|
343
|
+
topLayer: $e.topLayer
|
|
344
344
|
};
|
|
345
|
-
function
|
|
345
|
+
function $(e) {
|
|
346
346
|
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(v(e));
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function lt(e) {
|
|
349
349
|
return typeof e == "string";
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
351
|
+
function ut(e) {
|
|
352
|
+
return Array.isArray(e) ? e.filter((e) => lt(e)).join(" ") : e;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
let n = C(() => y(e) ? e.value : e), i = C(() =>
|
|
354
|
+
function dt(e, t) {
|
|
355
|
+
let n = C(() => y(e) ? e.value : e), i = C(() => ut(n.value.invalidLabel)), o = C(() => ut(n.value.validLabel)), s = C(() => n.value.loadingLabel), c = C(() => n.value.hintLabel), l = C(() => !!(n.value.loading && (t.loading || s.value))), u = C(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = C(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = C(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = C(() => u.value || d.value || l.value || f.value);
|
|
356
356
|
return {
|
|
357
357
|
hasInvalidLabelOrSlot: u,
|
|
358
358
|
hasHintLabelOrSlot: f,
|
|
@@ -393,10 +393,10 @@ function ft(e, t) {
|
|
|
393
393
|
})
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var ft = {
|
|
397
|
+
...Qe,
|
|
397
398
|
...$e,
|
|
398
|
-
...
|
|
399
|
-
...Z,
|
|
399
|
+
...Q,
|
|
400
400
|
modelValue: {
|
|
401
401
|
type: Boolean,
|
|
402
402
|
default: void 0
|
|
@@ -407,17 +407,17 @@ var pt = {
|
|
|
407
407
|
},
|
|
408
408
|
role: {
|
|
409
409
|
type: String,
|
|
410
|
-
default:
|
|
411
|
-
validator: (e) => Object.values(
|
|
410
|
+
default: W.menu,
|
|
411
|
+
validator: (e) => Object.values(W).includes(e)
|
|
412
412
|
}
|
|
413
|
-
},
|
|
413
|
+
}, pt = { focusOnHover: {
|
|
414
414
|
type: Boolean,
|
|
415
415
|
default: !1
|
|
416
|
-
} },
|
|
417
|
-
...
|
|
418
|
-
...
|
|
419
|
-
...
|
|
420
|
-
...
|
|
416
|
+
} }, mt = {
|
|
417
|
+
...X,
|
|
418
|
+
...ze,
|
|
419
|
+
...Ze,
|
|
420
|
+
...Q,
|
|
421
421
|
deselectHintLabel: { type: String },
|
|
422
422
|
selectHintLabel: { type: String },
|
|
423
423
|
selectedHintLabel: { type: String },
|
|
@@ -426,10 +426,10 @@ var pt = {
|
|
|
426
426
|
default: !1
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
|
-
function
|
|
429
|
+
function ht(e) {
|
|
430
430
|
return C(() => String(e?.value || s()));
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function gt(e, t) {
|
|
433
433
|
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = C(() => n && O(t)), i = C(() => r.value ? "manual" : void 0);
|
|
434
434
|
function a() {
|
|
435
435
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
@@ -451,14 +451,14 @@ function _t(e, t) {
|
|
|
451
451
|
hide: s
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let o =
|
|
454
|
+
function _t({ reference: e, id: t, expanded: n, aria: i }) {
|
|
455
|
+
let o = Ee();
|
|
456
456
|
return {
|
|
457
457
|
bus: o,
|
|
458
458
|
component: r({
|
|
459
459
|
name: "VvDropdownTriggerProvider",
|
|
460
460
|
setup() {
|
|
461
|
-
p(
|
|
461
|
+
p(Pe, {
|
|
462
462
|
reference: e,
|
|
463
463
|
id: t,
|
|
464
464
|
expanded: n,
|
|
@@ -472,20 +472,20 @@ function vt({ reference: e, id: t, expanded: n, aria: i }) {
|
|
|
472
472
|
})
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
let n = C(() => e.value ===
|
|
477
|
-
return p(
|
|
475
|
+
function vt({ role: e, ...t }) {
|
|
476
|
+
let n = C(() => e.value === W.listbox ? G.option : G.presentation);
|
|
477
|
+
return p(Fe, {
|
|
478
478
|
role: n,
|
|
479
479
|
...t
|
|
480
480
|
}), { itemRole: n };
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
p(
|
|
484
|
-
role: w(
|
|
482
|
+
function yt({ expanded: e }) {
|
|
483
|
+
p(q, {
|
|
484
|
+
role: w(U.menuitem),
|
|
485
485
|
expanded: e
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function bt(e, t, n) {
|
|
489
489
|
return C(() => {
|
|
490
490
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
491
491
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
@@ -503,7 +503,7 @@ var xt = ["popover"], St = [
|
|
|
503
503
|
], Ct = /* @__PURE__ */ r({
|
|
504
504
|
name: "VvDropdown",
|
|
505
505
|
inheritAttrs: !1,
|
|
506
|
-
props:
|
|
506
|
+
props: ft,
|
|
507
507
|
emits: [
|
|
508
508
|
"update:modelValue",
|
|
509
509
|
"beforeEnter",
|
|
@@ -522,12 +522,12 @@ var xt = ["popover"], St = [
|
|
|
522
522
|
"leaveCancelled"
|
|
523
523
|
],
|
|
524
524
|
setup(t, { expose: r, emit: a }) {
|
|
525
|
-
let s = t, d = a, { id: p } = D(s), h =
|
|
525
|
+
let s = t, d = a, { id: p } = D(s), h = ht(p), re = ne(), y = w("auto"), b = w("auto"), se = w(), S = w(), ce = w(), le = w(), T = C({
|
|
526
526
|
get: () => s.reference ?? se.value,
|
|
527
527
|
set: (e) => {
|
|
528
528
|
se.value = e;
|
|
529
529
|
}
|
|
530
|
-
}), { isTopLayer: de, popover: fe, show: he, hide: ge } =
|
|
530
|
+
}), { isTopLayer: de, popover: fe, show: he, hide: ge } = gt(S, () => s.topLayer), O = C(() => de.value ? L.fixed : s.strategy), k = w(!1);
|
|
531
531
|
o(() => {
|
|
532
532
|
be(S.value, () => {
|
|
533
533
|
k.value = globalThis.getComputedStyle(S.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
@@ -541,114 +541,114 @@ var xt = ["popover"], St = [
|
|
|
541
541
|
}
|
|
542
542
|
let _e = C(() => {
|
|
543
543
|
let e = [];
|
|
544
|
-
if (s.autoPlacement ? e.push(A(s.autoPlacement, () =>
|
|
544
|
+
if (s.autoPlacement ? e.push(A(s.autoPlacement, () => ke(), (e) => ke(e))) : s.flip && e.push(A(s.flip, () => we({ fallbackStrategy: "initialPlacement" }), (e) => we(e))), s.shift && e.push(A(s.shift, () => Ae(), (e) => Ae(e))), s.size) {
|
|
545
545
|
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
546
546
|
y.value = `${e}px`, b.value = `${t}px`;
|
|
547
547
|
};
|
|
548
|
-
e.push(A(s.size, () =>
|
|
548
|
+
e.push(A(s.size, () => F({ apply: t }), (e) => F({
|
|
549
549
|
...e,
|
|
550
550
|
apply: t
|
|
551
551
|
})));
|
|
552
552
|
}
|
|
553
|
-
return s.offset && e.push(["string", "number"].includes(typeof s.offset) ?
|
|
554
|
-
}), { x: ve, y: ye, middlewareData:
|
|
555
|
-
whileElementsMounted: (...e) =>
|
|
553
|
+
return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? Oe(Number(s.offset)) : Oe(s.offset)), s.arrow && e.push(je({ element: ce })), e;
|
|
554
|
+
}), { x: ve, y: ye, middlewareData: j, placement: Se, strategy: Ee } = De(T, S, {
|
|
555
|
+
whileElementsMounted: (...e) => Te(...e, { animationFrame: O.value === L.fixed }),
|
|
556
556
|
placement: C(() => s.placement),
|
|
557
557
|
strategy: O,
|
|
558
558
|
middleware: _e
|
|
559
|
-
}),
|
|
559
|
+
}), Me = C(() => {
|
|
560
560
|
if (k.value) return;
|
|
561
561
|
let e = s.triggerWidth && T.value ? `${T.value?.offsetWidth}px` : void 0;
|
|
562
562
|
return {
|
|
563
|
-
position:
|
|
563
|
+
position: Ee.value,
|
|
564
564
|
top: `${ye.value ?? 0}px`,
|
|
565
565
|
left: `${ve.value ?? 0}px`,
|
|
566
566
|
maxWidth: e ? void 0 : y.value,
|
|
567
567
|
maxHeight: b.value,
|
|
568
568
|
width: e
|
|
569
569
|
};
|
|
570
|
-
}),
|
|
570
|
+
}), Ne = C(() => Se.value.split("-")[0]), I = C(() => {
|
|
571
571
|
if (k.value) return;
|
|
572
572
|
let e = {
|
|
573
|
-
[
|
|
574
|
-
[
|
|
575
|
-
[
|
|
576
|
-
[
|
|
577
|
-
}[
|
|
573
|
+
[R.top]: R.bottom,
|
|
574
|
+
[R.right]: R.left,
|
|
575
|
+
[R.bottom]: R.top,
|
|
576
|
+
[R.left]: R.right
|
|
577
|
+
}[Ne.value];
|
|
578
578
|
return {
|
|
579
|
-
left:
|
|
580
|
-
top:
|
|
579
|
+
left: j.value.arrow?.x === void 0 ? void 0 : `${j.value.arrow?.x}px`,
|
|
580
|
+
top: j.value.arrow?.y === void 0 ? void 0 : `${j.value.arrow?.y}px`,
|
|
581
581
|
[e]: `${-(ce.value?.offsetWidth ?? 0) / 2}px`
|
|
582
582
|
};
|
|
583
|
-
}),
|
|
584
|
-
get: () =>
|
|
583
|
+
}), z = xe(s, "modelValue", d), B = w(!1), V = C({
|
|
584
|
+
get: () => z.value ?? B.value,
|
|
585
585
|
set: (e) => {
|
|
586
|
-
if (
|
|
587
|
-
|
|
586
|
+
if (z.value === void 0) {
|
|
587
|
+
B.value = e;
|
|
588
588
|
return;
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
z.value = e;
|
|
591
591
|
}
|
|
592
592
|
});
|
|
593
593
|
f(() => {
|
|
594
|
-
|
|
594
|
+
V.value && he();
|
|
595
595
|
});
|
|
596
|
-
function V() {
|
|
597
|
-
B.value = !0;
|
|
598
|
-
}
|
|
599
596
|
function H() {
|
|
600
|
-
|
|
597
|
+
V.value = !0;
|
|
601
598
|
}
|
|
602
599
|
function U() {
|
|
603
|
-
|
|
600
|
+
V.value = !1;
|
|
604
601
|
}
|
|
605
|
-
function W(
|
|
602
|
+
function W() {
|
|
603
|
+
V.value = !V.value;
|
|
604
|
+
}
|
|
605
|
+
function G(e) {
|
|
606
606
|
T.value = e;
|
|
607
607
|
}
|
|
608
608
|
Ce(S, () => {
|
|
609
|
-
!s.keepOpen &&
|
|
609
|
+
!s.keepOpen && V.value && (V.value = !1);
|
|
610
610
|
}, { ignore: [T] });
|
|
611
|
-
let
|
|
611
|
+
let K = C(() => T.value?.getAttribute?.("id") ?? void 0), Pe = C(() => ({
|
|
612
612
|
"aria-controls": h.value,
|
|
613
613
|
"aria-haspopup": !0,
|
|
614
|
-
"aria-expanded":
|
|
615
|
-
})), { component:
|
|
614
|
+
"aria-expanded": V.value
|
|
615
|
+
})), { component: Fe, bus: q } = _t({
|
|
616
616
|
reference: T,
|
|
617
617
|
id: h,
|
|
618
|
-
expanded:
|
|
619
|
-
aria:
|
|
618
|
+
expanded: V,
|
|
619
|
+
aria: Pe
|
|
620
620
|
});
|
|
621
|
-
|
|
622
|
-
let { role:
|
|
623
|
-
function
|
|
621
|
+
q.on("click", W);
|
|
622
|
+
let { role: J, modifiers: Ie } = D(s), Le = bt("vv-dropdown", Ie, C(() => ({ arrow: s.arrow }))), { focused: Y } = P(S);
|
|
623
|
+
function X(e) {
|
|
624
624
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Re() {
|
|
627
627
|
u(() => {
|
|
628
|
-
let e =
|
|
628
|
+
let e = X(S.value);
|
|
629
629
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function ze() {
|
|
633
633
|
u(() => {
|
|
634
|
-
let e =
|
|
634
|
+
let e = X(le.value);
|
|
635
635
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Be() {
|
|
639
639
|
u(() => {
|
|
640
|
-
if (
|
|
641
|
-
let e =
|
|
640
|
+
if (Y.value) {
|
|
641
|
+
let e = X(S.value);
|
|
642
642
|
if (e.length === 0 || !document.activeElement) return;
|
|
643
643
|
let t = e.indexOf(document.activeElement);
|
|
644
644
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
645
645
|
}
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Ve() {
|
|
649
649
|
u(() => {
|
|
650
|
-
if (
|
|
651
|
-
let e =
|
|
650
|
+
if (Y.value) {
|
|
651
|
+
let e = X(S.value);
|
|
652
652
|
if (e.length === 0 || !document.activeElement) return;
|
|
653
653
|
let t = e.indexOf(document.activeElement);
|
|
654
654
|
if (t > 0) {
|
|
@@ -659,41 +659,41 @@ var xt = ["popover"], St = [
|
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
g(
|
|
663
|
-
e && s.autofocusFirst &&
|
|
662
|
+
g(V, (e) => {
|
|
663
|
+
e && s.autofocusFirst && Re();
|
|
664
664
|
}), r({
|
|
665
|
-
toggle:
|
|
666
|
-
show:
|
|
667
|
-
hide:
|
|
668
|
-
init:
|
|
669
|
-
focusFirst:
|
|
670
|
-
focusFirstListElement:
|
|
671
|
-
focusNext:
|
|
672
|
-
focusPrev:
|
|
665
|
+
toggle: W,
|
|
666
|
+
show: H,
|
|
667
|
+
hide: U,
|
|
668
|
+
init: G,
|
|
669
|
+
focusFirst: Re,
|
|
670
|
+
focusFirstListElement: ze,
|
|
671
|
+
focusNext: Be,
|
|
672
|
+
focusPrev: Ve,
|
|
673
673
|
customPosition: k
|
|
674
674
|
});
|
|
675
|
-
let { itemRole:
|
|
676
|
-
role:
|
|
677
|
-
expanded:
|
|
678
|
-
focused:
|
|
679
|
-
hovered:
|
|
675
|
+
let { itemRole: He } = vt({
|
|
676
|
+
role: J,
|
|
677
|
+
expanded: V,
|
|
678
|
+
focused: Y,
|
|
679
|
+
hovered: M(S)
|
|
680
680
|
});
|
|
681
681
|
N("Escape", (e) => {
|
|
682
|
-
|
|
682
|
+
V.value && (e.preventDefault(), U());
|
|
683
683
|
}), N("ArrowDown", (e) => {
|
|
684
|
-
|
|
684
|
+
V.value && Y.value && (e.preventDefault(), Be());
|
|
685
685
|
}), N("ArrowUp", (e) => {
|
|
686
|
-
|
|
686
|
+
V.value && Y.value && (e.preventDefault(), Ve());
|
|
687
687
|
}), N([" ", "Enter"], (e) => {
|
|
688
688
|
let t = e.target;
|
|
689
|
-
|
|
689
|
+
V.value && Y.value && t && t?.click();
|
|
690
690
|
});
|
|
691
|
-
let
|
|
691
|
+
let Z = {
|
|
692
692
|
"before-enter": () => {
|
|
693
|
-
d(
|
|
693
|
+
d(V.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
|
|
694
694
|
},
|
|
695
695
|
"after-leave": () => {
|
|
696
|
-
|
|
696
|
+
V.value || ge(), d(V.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
|
|
697
697
|
},
|
|
698
698
|
enter: () => {
|
|
699
699
|
d("enter");
|
|
@@ -714,73 +714,73 @@ var xt = ["popover"], St = [
|
|
|
714
714
|
d("leaveCancelled");
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
return (t, r) => (c(), E(ae, null, [me(v(
|
|
717
|
+
return (t, r) => (c(), E(ae, null, [me(v(Fe), null, {
|
|
718
718
|
default: e(() => [n(t.$slots, "default", i(m({
|
|
719
|
-
init:
|
|
720
|
-
show:
|
|
721
|
-
hide:
|
|
722
|
-
toggle:
|
|
723
|
-
expanded: v(
|
|
724
|
-
aria: v(
|
|
719
|
+
init: G,
|
|
720
|
+
show: H,
|
|
721
|
+
hide: U,
|
|
722
|
+
toggle: W,
|
|
723
|
+
expanded: v(V),
|
|
724
|
+
aria: v(Pe)
|
|
725
725
|
})))]),
|
|
726
726
|
_: 3
|
|
727
|
-
}), me(ue, l({ name: t.transitionName }, te(
|
|
727
|
+
}), me(ue, l({ name: t.transitionName }, te(Z), { persisted: "" }), {
|
|
728
728
|
default: e(() => [oe(x("div", {
|
|
729
729
|
ref_key: "floatingEl",
|
|
730
730
|
ref: S,
|
|
731
731
|
popover: v(fe),
|
|
732
|
-
style: pe(v(
|
|
733
|
-
class: ee(v(
|
|
732
|
+
style: pe(v(Me)),
|
|
733
|
+
class: ee(v(Le))
|
|
734
734
|
}, [
|
|
735
735
|
s.arrow ? (c(), E("div", {
|
|
736
736
|
key: 0,
|
|
737
737
|
ref_key: "arrowEl",
|
|
738
738
|
ref: ce,
|
|
739
|
-
style: pe(v(
|
|
739
|
+
style: pe(v(I)),
|
|
740
740
|
class: "vv-dropdown__arrow"
|
|
741
741
|
}, null, 4)) : _("v-if", !0),
|
|
742
742
|
n(t.$slots, "before", i(m({
|
|
743
|
-
show:
|
|
744
|
-
hide:
|
|
745
|
-
toggle:
|
|
746
|
-
expanded: v(
|
|
743
|
+
show: H,
|
|
744
|
+
hide: U,
|
|
745
|
+
toggle: W,
|
|
746
|
+
expanded: v(V)
|
|
747
747
|
}))),
|
|
748
748
|
x("div", l(v(re), {
|
|
749
749
|
id: v(h),
|
|
750
750
|
ref_key: "listEl",
|
|
751
751
|
ref: le,
|
|
752
|
-
tabindex: v(
|
|
753
|
-
role: v(
|
|
754
|
-
"aria-labelledby": v(
|
|
752
|
+
tabindex: v(V) ? void 0 : -1,
|
|
753
|
+
role: v(J),
|
|
754
|
+
"aria-labelledby": v(K),
|
|
755
755
|
class: "vv-dropdown__list"
|
|
756
756
|
}), [n(t.$slots, "items", i(m({
|
|
757
|
-
show:
|
|
758
|
-
hide:
|
|
759
|
-
toggle:
|
|
760
|
-
expanded: v(
|
|
761
|
-
role: v(
|
|
757
|
+
show: H,
|
|
758
|
+
hide: U,
|
|
759
|
+
toggle: W,
|
|
760
|
+
expanded: v(V),
|
|
761
|
+
role: v(He)
|
|
762
762
|
})))], 16, St),
|
|
763
763
|
n(t.$slots, "after", i(m({
|
|
764
|
-
show:
|
|
765
|
-
hide:
|
|
766
|
-
toggle:
|
|
767
|
-
expanded: v(
|
|
764
|
+
show: H,
|
|
765
|
+
hide: U,
|
|
766
|
+
toggle: W,
|
|
767
|
+
expanded: v(V)
|
|
768
768
|
})))
|
|
769
|
-
], 14, xt), [[ie, v(
|
|
769
|
+
], 14, xt), [[ie, v(V)]])]),
|
|
770
770
|
_: 3
|
|
771
771
|
}, 16, ["name"])], 64));
|
|
772
772
|
}
|
|
773
773
|
});
|
|
774
774
|
function wt() {
|
|
775
|
-
return S(
|
|
775
|
+
return S(Fe, {});
|
|
776
776
|
}
|
|
777
777
|
var Tt = /* @__PURE__ */ r({
|
|
778
778
|
name: "VvDropdownItem",
|
|
779
|
-
props:
|
|
779
|
+
props: pt,
|
|
780
780
|
setup(e) {
|
|
781
781
|
let t = e, { role: r, expanded: i } = wt(), a = w(null);
|
|
782
|
-
|
|
783
|
-
let o =
|
|
782
|
+
yt({ expanded: i });
|
|
783
|
+
let o = M(a), { focused: s } = j(a), { focused: u } = P(a);
|
|
784
784
|
return g(o, (e) => {
|
|
785
785
|
e && t.focusOnHover && (s.value = !0);
|
|
786
786
|
}), (e, t) => (c(), E("div", l({ role: v(r) }, {
|
|
@@ -791,9 +791,9 @@ var Tt = /* @__PURE__ */ r({
|
|
|
791
791
|
}
|
|
792
792
|
}), Et = ["title"], Dt = /* @__PURE__ */ r({
|
|
793
793
|
name: "VvDropdownOption",
|
|
794
|
-
props:
|
|
794
|
+
props: mt,
|
|
795
795
|
setup(t) {
|
|
796
|
-
let r = t, { modifiers: a } = D(r), o =
|
|
796
|
+
let r = t, { modifiers: a } = D(r), o = bt("vv-dropdown-option", a, C(() => ({
|
|
797
797
|
disabled: r.disabled,
|
|
798
798
|
selected: r.selected,
|
|
799
799
|
unselectable: r.unselectable && r.selected
|
|
@@ -824,7 +824,7 @@ var Tt = /* @__PURE__ */ r({
|
|
|
824
824
|
}
|
|
825
825
|
});
|
|
826
826
|
function Ot() {
|
|
827
|
-
return S(
|
|
827
|
+
return S(K, void 0);
|
|
828
828
|
}
|
|
829
829
|
var kt = /* @__PURE__ */ r({
|
|
830
830
|
name: "VvIcon",
|
|
@@ -845,9 +845,9 @@ var kt = /* @__PURE__ */ r({
|
|
|
845
845
|
onLoad: { type: Function },
|
|
846
846
|
svg: {},
|
|
847
847
|
modifiers: {}
|
|
848
|
-
},
|
|
848
|
+
}, Ne),
|
|
849
849
|
setup(e) {
|
|
850
|
-
let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = D(t), o =
|
|
850
|
+
let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = D(t), o = bt("vv-icon", a), s = C(() => t.provider || i?.iconsProvider), u = C(() => {
|
|
851
851
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
852
852
|
if (A(n)) return n;
|
|
853
853
|
let r = i?.iconsCollections.find((t) => {
|
|
@@ -941,19 +941,19 @@ function Mt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
943
|
function Nt(e, t) {
|
|
944
|
-
let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value ===
|
|
944
|
+
let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === B.before ? n.value : void 0), i = C(() => t?.value === B.after ? n.value : void 0);
|
|
945
945
|
return {
|
|
946
946
|
hasIcon: n,
|
|
947
|
-
hasIconLeft: C(() => t?.value ===
|
|
948
|
-
hasIconRight: C(() => t?.value ===
|
|
949
|
-
hasIconTop: C(() => t?.value ===
|
|
950
|
-
hasIconBottom: C(() => t?.value ===
|
|
947
|
+
hasIconLeft: C(() => t?.value === R.left ? n.value : void 0),
|
|
948
|
+
hasIconRight: C(() => t?.value === R.right ? n.value : void 0),
|
|
949
|
+
hasIconTop: C(() => t?.value === R.top ? n.value : void 0),
|
|
950
|
+
hasIconBottom: C(() => t?.value === R.bottom ? n.value : void 0),
|
|
951
951
|
hasIconBefore: r,
|
|
952
952
|
hasIconAfter: i
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
955
|
function Pt(e, t) {
|
|
956
|
-
let { focused: n } =
|
|
956
|
+
let { focused: n } = j(e);
|
|
957
957
|
return g(n, (n) => {
|
|
958
958
|
t(n ? "focus" : "blur", v(e));
|
|
959
959
|
}), { focused: n };
|
|
@@ -966,25 +966,25 @@ function Ft(e, t) {
|
|
|
966
966
|
formatted: C(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
|
-
function It(e, t =
|
|
969
|
+
function It(e, t = I.local, n) {
|
|
970
970
|
let r = w();
|
|
971
971
|
n && (r.value = n);
|
|
972
972
|
let i;
|
|
973
973
|
return o(() => {
|
|
974
974
|
e && g(e, (e, n) => {
|
|
975
|
-
let a = v(t) ===
|
|
975
|
+
let a = v(t) === I.session ? sessionStorage : localStorage;
|
|
976
976
|
if (n && n !== e && a.removeItem(n), e) {
|
|
977
|
-
i =
|
|
977
|
+
i = Se(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
980
|
i = void 0;
|
|
981
981
|
}, { immediate: !0 }), y(t) && g(t, (t, n) => {
|
|
982
982
|
if (e?.value) {
|
|
983
983
|
if (t) {
|
|
984
|
-
let n = t ===
|
|
985
|
-
i =
|
|
984
|
+
let n = t === I.session ? sessionStorage : localStorage;
|
|
985
|
+
i = Se(e.value, i?.value ?? r.value, n);
|
|
986
986
|
}
|
|
987
|
-
n && n !== t && (n ===
|
|
987
|
+
n && n !== t && (n === I.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
990
|
}), g(r, (e) => {
|
|
@@ -1005,58 +1005,58 @@ var Lt = ["for"], Rt = {
|
|
|
1005
1005
|
class: "vv-textarea__limit"
|
|
1006
1006
|
}, Ut = { class: "flex-1" }, Wt = ["title", "onClick"], Gt = /* @__PURE__ */ r({
|
|
1007
1007
|
name: "VvTextarea",
|
|
1008
|
-
props:
|
|
1009
|
-
emits:
|
|
1008
|
+
props: ct,
|
|
1009
|
+
emits: st,
|
|
1010
1010
|
setup(t, { expose: r, emit: a }) {
|
|
1011
|
-
let o = t, s = a, u = ce(), d = Ot(), f = jt("VvTextarea",
|
|
1012
|
-
r({ flush:
|
|
1013
|
-
let { hasIconBefore:
|
|
1014
|
-
g(
|
|
1015
|
-
let t =
|
|
1016
|
-
if (e || (t =
|
|
1011
|
+
let o = t, s = a, u = ce(), d = Ot(), f = jt("VvTextarea", ct, o), p = w(), te = w(), ne = w(), { id: ie, icon: se, iconPosition: S, iconRemoveSuggestion: le, labelRemoveSuggestion: ue, label: fe, modelValue: pe, count: he, valid: O, invalid: A, loading: _e, modifiers: ve, debounce: be, minlength: xe, maxlength: j, storageType: Se } = D(o), Ce = ht(ie), M = C(() => `${Ce.value}-hint`), N = C(() => o.floating && $(o.placeholder) ? " " : o.placeholder), { model: P, flush: we } = Mt(pe, s, be);
|
|
1012
|
+
r({ flush: we });
|
|
1013
|
+
let { hasIconBefore: F, hasIconAfter: Te } = Nt(se, S), { hasIcon: Ee } = Nt(le), { focused: De } = Pt(p, s), Oe = C(() => De.value && !o.disabled && !o.readonly);
|
|
1014
|
+
g(Oe, (e) => {
|
|
1015
|
+
let t = P.value;
|
|
1016
|
+
if (e || (t = we() ?? t), e && f.value.selectOnFocus && p.value && p.value.select(), e && R.value?.size) {
|
|
1017
1017
|
ne.value?.show();
|
|
1018
1018
|
return;
|
|
1019
1019
|
}
|
|
1020
|
-
if (
|
|
1020
|
+
if (R.value && !$(t)) {
|
|
1021
1021
|
let e = o.maxSuggestions;
|
|
1022
|
-
|
|
1022
|
+
R.value.size >= e && !R.value.has(t) && (R.value = new Set([...R.value].slice(R.value.size - e + 1))), R.value.add(t);
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
|
-
let
|
|
1026
|
-
g(
|
|
1027
|
-
e && o.autofocus && (
|
|
1025
|
+
let ke = ye(p);
|
|
1026
|
+
g(ke, (e) => {
|
|
1027
|
+
e && o.autofocus && (De.value = !0);
|
|
1028
1028
|
});
|
|
1029
|
-
let { formatted:
|
|
1029
|
+
let { formatted: Ae } = Ft(P, {
|
|
1030
1030
|
mode: he?.value,
|
|
1031
|
-
upperLimit: Number(
|
|
1032
|
-
lowerLimit: Number(
|
|
1033
|
-
}),
|
|
1031
|
+
upperLimit: Number(j?.value),
|
|
1032
|
+
lowerLimit: Number(xe?.value)
|
|
1033
|
+
}), je = C(() => !o.disabled && !o.readonly), Me = C(() => je.value ? o.tabindex : -1), Ne = C(() => !$(pe)), I = C(() => {
|
|
1034
1034
|
if (o.invalid === !0) return !0;
|
|
1035
1035
|
if (o.valid === !0) return !1;
|
|
1036
|
-
}),
|
|
1037
|
-
function B(e) {
|
|
1038
|
-
N.value = e, ne.value?.hide(), s("suggestion:selected", e);
|
|
1039
|
-
}
|
|
1036
|
+
}), L = C(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), R = It(L, Se, /* @__PURE__ */ new Set()), z = C(() => R.value ? [...R.value].filter((e) => $(P.value) || `${e}`.toLowerCase().includes(`${P.value}`.toLowerCase()) && e !== P.value).reverse() : []), B = C(() => L?.value && R.value && R.value.size > 0);
|
|
1040
1037
|
function V(e) {
|
|
1041
|
-
|
|
1038
|
+
P.value = e, ne.value?.hide(), s("suggestion:selected", e);
|
|
1039
|
+
}
|
|
1040
|
+
function H(e) {
|
|
1041
|
+
R.value?.delete(e), s("suggestion:removed", e);
|
|
1042
1042
|
}
|
|
1043
|
-
let { HintSlot:
|
|
1043
|
+
let { HintSlot: U, hasHintLabelOrSlot: W, hasInvalidLabelOrSlot: G, hintSlotScope: K } = dt(f, u), Pe = bt("vv-textarea", ve, C(() => ({
|
|
1044
1044
|
valid: O.value,
|
|
1045
1045
|
invalid: A.value,
|
|
1046
1046
|
loading: _e.value,
|
|
1047
1047
|
disabled: o.disabled,
|
|
1048
1048
|
readonly: o.readonly,
|
|
1049
1049
|
required: o.required,
|
|
1050
|
-
"icon-before":
|
|
1051
|
-
"icon-after":
|
|
1052
|
-
floating: o.floating &&
|
|
1053
|
-
dirty:
|
|
1054
|
-
focus:
|
|
1050
|
+
"icon-before": F.value !== void 0,
|
|
1051
|
+
"icon-after": Te.value !== void 0,
|
|
1052
|
+
floating: o.floating && !$(o.label),
|
|
1053
|
+
dirty: Ne.value,
|
|
1054
|
+
focus: De.value,
|
|
1055
1055
|
resizable: o.resizable
|
|
1056
|
-
}))),
|
|
1056
|
+
}))), Fe = C(() => ({
|
|
1057
1057
|
name: o.name,
|
|
1058
|
-
placeholder:
|
|
1059
|
-
tabindex:
|
|
1058
|
+
placeholder: N.value,
|
|
1059
|
+
tabindex: Me.value,
|
|
1060
1060
|
disabled: o.disabled,
|
|
1061
1061
|
readonly: o.readonly,
|
|
1062
1062
|
required: o.required,
|
|
@@ -1067,22 +1067,22 @@ var Lt = ["for"], Rt = {
|
|
|
1067
1067
|
rows: o.rows,
|
|
1068
1068
|
wrap: o.wrap,
|
|
1069
1069
|
spellcheck: o.spellcheck,
|
|
1070
|
-
"aria-invalid":
|
|
1071
|
-
"aria-describedby":
|
|
1072
|
-
"aria-errormessage":
|
|
1073
|
-
})),
|
|
1070
|
+
"aria-invalid": I.value,
|
|
1071
|
+
"aria-describedby": W.value ? M.value : void 0,
|
|
1072
|
+
"aria-errormessage": G.value ? M.value : void 0
|
|
1073
|
+
})), q = C(() => ({
|
|
1074
1074
|
valid: o.valid,
|
|
1075
1075
|
invalid: o.invalid,
|
|
1076
1076
|
modelValue: o.modelValue,
|
|
1077
1077
|
hintLabel: o.hintLabel,
|
|
1078
1078
|
maxlength: o.maxlength,
|
|
1079
1079
|
minlength: o.minlength,
|
|
1080
|
-
clear:
|
|
1080
|
+
clear: J
|
|
1081
1081
|
}));
|
|
1082
|
-
function
|
|
1083
|
-
|
|
1082
|
+
function J() {
|
|
1083
|
+
P.value = void 0;
|
|
1084
1084
|
}
|
|
1085
|
-
return (t, r) => (c(), E("div", { class: ee(v(
|
|
1085
|
+
return (t, r) => (c(), E("div", { class: ee(v(Pe)) }, [
|
|
1086
1086
|
v(fe) ? (c(), E("label", {
|
|
1087
1087
|
key: 0,
|
|
1088
1088
|
for: v(Ce),
|
|
@@ -1093,46 +1093,46 @@ var Lt = ["for"], Rt = {
|
|
|
1093
1093
|
ref: te,
|
|
1094
1094
|
class: "vv-textarea__wrapper"
|
|
1095
1095
|
}, [
|
|
1096
|
-
t.$slots.before ? (c(), E("div", Rt, [n(t.$slots, "before", i(m(v(
|
|
1096
|
+
t.$slots.before ? (c(), E("div", Rt, [n(t.$slots, "before", i(m(v(q))))])) : _("v-if", !0),
|
|
1097
1097
|
x("div", zt, [
|
|
1098
|
-
v(
|
|
1098
|
+
v(F) ? (c(), b(kt, l({ key: 0 }, v(F), { class: "vv-textarea__icon" }), null, 16)) : _("v-if", !0),
|
|
1099
1099
|
oe(x("textarea", l({
|
|
1100
1100
|
id: v(Ce),
|
|
1101
1101
|
ref_key: "textareaEl",
|
|
1102
1102
|
ref: p,
|
|
1103
|
-
"onUpdate:modelValue": r[0] ||= (e) => y(
|
|
1104
|
-
}, v(
|
|
1105
|
-
v(
|
|
1103
|
+
"onUpdate:modelValue": r[0] ||= (e) => y(P) ? P.value = e : null
|
|
1104
|
+
}, v(Fe), { onKeyup: r[1] ||= (e) => s("keyup", e) }), null, 16, Bt), [[T, v(P)]]),
|
|
1105
|
+
v(Te) ? (c(), b(kt, l({ key: 1 }, v(Te), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : _("v-if", !0)
|
|
1106
1106
|
]),
|
|
1107
|
-
t.$slots.after ? (c(), E("div", Vt, [n(t.$slots, "after", i(m(v(
|
|
1108
|
-
v(he) ? (c(), E("span", Ht, [n(t.$slots, "count", i(m(v(
|
|
1107
|
+
t.$slots.after ? (c(), E("div", Vt, [n(t.$slots, "after", i(m(v(q))))])) : _("v-if", !0),
|
|
1108
|
+
v(he) ? (c(), E("span", Ht, [n(t.$slots, "count", i(m(v(q))), () => [re(h(v(Ae)), 1)])])) : _("v-if", !0)
|
|
1109
1109
|
], 512),
|
|
1110
|
-
me(v(
|
|
1111
|
-
id: v(
|
|
1110
|
+
me(v(U), {
|
|
1111
|
+
id: v(M),
|
|
1112
1112
|
class: "vv-textarea__hint"
|
|
1113
1113
|
}, ge({ _: 2 }, [
|
|
1114
1114
|
t.$slots.hint ? {
|
|
1115
1115
|
name: "hint",
|
|
1116
|
-
fn: e(() => [n(t.$slots, "hint", i(m(v(
|
|
1116
|
+
fn: e(() => [n(t.$slots, "hint", i(m(v(K))))]),
|
|
1117
1117
|
key: "0"
|
|
1118
1118
|
} : void 0,
|
|
1119
1119
|
t.$slots.loading ? {
|
|
1120
1120
|
name: "loading",
|
|
1121
|
-
fn: e(() => [n(t.$slots, "loading", i(m(v(
|
|
1121
|
+
fn: e(() => [n(t.$slots, "loading", i(m(v(K))))]),
|
|
1122
1122
|
key: "1"
|
|
1123
1123
|
} : void 0,
|
|
1124
1124
|
t.$slots.valid ? {
|
|
1125
1125
|
name: "valid",
|
|
1126
|
-
fn: e(() => [n(t.$slots, "valid", i(m(v(
|
|
1126
|
+
fn: e(() => [n(t.$slots, "valid", i(m(v(K))))]),
|
|
1127
1127
|
key: "2"
|
|
1128
1128
|
} : void 0,
|
|
1129
1129
|
t.$slots.invalid ? {
|
|
1130
1130
|
name: "invalid",
|
|
1131
|
-
fn: e(() => [n(t.$slots, "invalid", i(m(v(
|
|
1131
|
+
fn: e(() => [n(t.$slots, "invalid", i(m(v(K))))]),
|
|
1132
1132
|
key: "3"
|
|
1133
1133
|
} : void 0
|
|
1134
1134
|
]), 1032, ["id"]),
|
|
1135
|
-
v(
|
|
1135
|
+
v(B) ? (c(), b(Ct, {
|
|
1136
1136
|
key: 1,
|
|
1137
1137
|
ref_key: "suggestionsDropdownEl",
|
|
1138
1138
|
ref: ne,
|
|
@@ -1141,18 +1141,18 @@ var Lt = ["for"], Rt = {
|
|
|
1141
1141
|
"trigger-width": !0,
|
|
1142
1142
|
"top-layer": v(f).topLayer
|
|
1143
1143
|
}, {
|
|
1144
|
-
items: e(() => [(c(!0), E(ae, null, k(v(
|
|
1144
|
+
items: e(() => [(c(!0), E(ae, null, k(v(z), (r) => (c(), b(Dt, {
|
|
1145
1145
|
key: r,
|
|
1146
|
-
onClick: de((e) =>
|
|
1146
|
+
onClick: de((e) => V(r), ["stop"])
|
|
1147
1147
|
}, {
|
|
1148
|
-
default: e(() => [x("div", Ut, [n(t.$slots, "suggestion", l({ ref_for: !0 }, { value: r }), () => [re(h(r), 1)])]), v(
|
|
1148
|
+
default: e(() => [x("div", Ut, [n(t.$slots, "suggestion", l({ ref_for: !0 }, { value: r }), () => [re(h(r), 1)])]), v(R) && v(Ee) ? (c(), E("button", {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
type: "button",
|
|
1151
1151
|
tabindex: "-1",
|
|
1152
1152
|
class: "cursor-pointer",
|
|
1153
1153
|
title: v(ue),
|
|
1154
|
-
onClick: de((e) =>
|
|
1155
|
-
}, [me(kt, l({ ref_for: !0 }, v(
|
|
1154
|
+
onClick: de((e) => H(r), ["stop"])
|
|
1155
|
+
}, [me(kt, l({ ref_for: !0 }, v(Ee)), null, 16)], 8, Wt)) : _("v-if", !0)]),
|
|
1156
1156
|
_: 2
|
|
1157
1157
|
}, 1032, ["onClick"]))), 128))]),
|
|
1158
1158
|
_: 3
|
|
@@ -1163,4 +1163,4 @@ var Lt = ["for"], Rt = {
|
|
|
1163
1163
|
//#endregion
|
|
1164
1164
|
export { Gt as default };
|
|
1165
1165
|
|
|
1166
|
-
//# sourceMappingURL=VvTextarea.es-
|
|
1166
|
+
//# sourceMappingURL=VvTextarea.es-ChkbZSw6.js.map
|