@8wave/ai-elements 0.119.0-beta.60 → 0.119.0-beta.62
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-Bdi4_IFu.js → PkChatbotFilePreview-C0uMvUlV.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-Bdi4_IFu.js.map → PkChatbotFilePreview-C0uMvUlV.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-eNPFmmdh.js → PkHeldImage-CBvcNMEM.js} +2 -2
- package/dist/_chunks/{PkHeldImage-eNPFmmdh.js.map → PkHeldImage-CBvcNMEM.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-DHPPSq3N.js → PkLazyImg-COy3jb6W.js} +2 -2
- package/dist/_chunks/{PkLazyImg-DHPPSq3N.js.map → PkLazyImg-COy3jb6W.js.map} +1 -1
- package/dist/_chunks/{PkToolEditSpreadsheet-Ct9pdQJ1.js → PkToolEditSpreadsheet-C8PN08y2.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-Ct9pdQJ1.js.map → PkToolEditSpreadsheet-C8PN08y2.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DzhrY8bg.js → PkToolRequestGeolocation-Cu1TSjHl.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DzhrY8bg.js.map → PkToolRequestGeolocation-Cu1TSjHl.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CzRKRGoG.js → PkToolRequestOAuthConnection-Bc2UX4MZ.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-CzRKRGoG.js.map → PkToolRequestOAuthConnection-Bc2UX4MZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-D6ZTw5vh.js → PkToolShowArtifact-B1YYNKqc.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-D6ZTw5vh.js.map → PkToolShowArtifact-B1YYNKqc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D8DMh3-P.js → PkToolShowCalendarEvent-r0SuzJDT.js} +3 -3
- package/dist/_chunks/{PkToolShowCalendarEvent-D8DMh3-P.js.map → PkToolShowCalendarEvent-r0SuzJDT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-DLC22e1W.js → PkToolShowComparison-Bsh6iiIQ.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-DLC22e1W.js.map → PkToolShowComparison-Bsh6iiIQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-CW7gKQ7h.js → PkToolShowContactForm-B2UzmoDw.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-CW7gKQ7h.js.map → PkToolShowContactForm-B2UzmoDw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-WregKAJO.js → PkToolShowDiagram-iQRTxxLw.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-WregKAJO.js.map → PkToolShowDiagram-iQRTxxLw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-C7mUCqGL.js → PkToolShowEmail-1pyuWnuN.js} +3 -3
- package/dist/_chunks/{PkToolShowEmail-C7mUCqGL.js.map → PkToolShowEmail-1pyuWnuN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-D_2FmDwq.js → PkToolShowForm-BRt9i4aW.js} +5 -5
- package/dist/_chunks/{PkToolShowForm-D_2FmDwq.js.map → PkToolShowForm-BRt9i4aW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-KmMO4UuQ.js → PkToolShowImageGallery-BZ3uOhQq.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-KmMO4UuQ.js.map → PkToolShowImageGallery-BZ3uOhQq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-jRZtqoBO.js → PkToolShowLocation-BIAPTY0s.js} +3 -3
- package/dist/_chunks/{PkToolShowLocation-jRZtqoBO.js.map → PkToolShowLocation-BIAPTY0s.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-vw4XS4TR.js → PkToolShowMessage-BM3TU9SP.js} +3 -3
- package/dist/_chunks/{PkToolShowMessage-vw4XS4TR.js.map → PkToolShowMessage-BM3TU9SP.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-cld-FOFb.js → PkToolShowProductList-C4a7R9yQ.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-cld-FOFb.js.map → PkToolShowProductList-C4a7R9yQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BhcAUXSZ.js → PkToolShowQrCode-6zjcD50R.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-BhcAUXSZ.js.map → PkToolShowQrCode-6zjcD50R.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DyzheirE.js → PkToolShowSources-CgZRJ1gU.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-DyzheirE.js.map → PkToolShowSources-CgZRJ1gU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-xUBuqStM.js → PkToolShowSuggestedReply-nHsdJfbX.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-xUBuqStM.js.map → PkToolShowSuggestedReply-nHsdJfbX.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-KDNxItWl.js → PkToolShowVideo-BxHrmc_4.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-KDNxItWl.js.map → PkToolShowVideo-BxHrmc_4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-DTrZ7r1t.js → PkToolShowWeather-CNvVC6nZ.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-DTrZ7r1t.js.map → PkToolShowWeather-CNvVC6nZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D35B7GzS.js → PkToolShowWebPages-CRM3rPp6.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-D35B7GzS.js.map → PkToolShowWebPages-CRM3rPp6.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-DV-zbH9b.js → VvButtonLocalized-PfbIEwav.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-DV-zbH9b.js.map → VvButtonLocalized-PfbIEwav.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-VtDFxWJM.js → VvCheckbox.es-CtWUn81l.js} +3 -3
- package/dist/_chunks/VvCheckbox.es-CtWUn81l.js.map +1 -0
- package/dist/_chunks/{VvCheckboxGroup.es-D7MifHZN.js → VvCheckboxGroup.es-DjcwsgD8.js} +3 -3
- package/dist/_chunks/VvCheckboxGroup.es-DjcwsgD8.js.map +1 -0
- package/dist/_chunks/{VvCombobox.es-Brn06uOj.js → VvCombobox.es-DKR6Fb2W.js} +339 -304
- package/dist/_chunks/VvCombobox.es-DKR6Fb2W.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-Co9NrR4l.js → VvInputText.es-6IlsXl00.js} +315 -275
- package/dist/_chunks/VvInputText.es-6IlsXl00.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-BxHgVeVy.js → VvRadio.es-GQuMOlYC.js} +3 -3
- package/dist/_chunks/VvRadio.es-GQuMOlYC.js.map +1 -0
- package/dist/_chunks/{VvRadioGroup.es-DZtXJGCi.js → VvRadioGroup.es-ct4eQCRN.js} +3 -3
- package/dist/_chunks/VvRadioGroup.es-ct4eQCRN.js.map +1 -0
- package/dist/_chunks/{VvSelect.es-BR8f0LUN.js → VvSelect.es-CQ2SG0HY.js} +3 -3
- package/dist/_chunks/VvSelect.es-CQ2SG0HY.js.map +1 -0
- package/dist/_chunks/{VvTextarea.es-TXhUgEuG.js → VvTextarea.es-BcMLwglK.js} +225 -190
- package/dist/_chunks/VvTextarea.es-BcMLwglK.js.map +1 -0
- package/dist/_chunks/{index.es-dTcgyeM4.js → index.es-D7jsz1j2.js} +254 -210
- package/dist/_chunks/index.es-D7jsz1j2.js.map +1 -0
- package/dist/_chunks/{index.es-DkFMpDsf.js → index.es-DmG03ICf.js} +10 -10
- package/dist/_chunks/{index.es-DkFMpDsf.js.map → index.es-DmG03ICf.js.map} +1 -1
- package/dist/ai-elements.es.js +37 -37
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-Bgw5K9w1.js → PkChatbot-BRfoWvHX.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-Bgw5K9w1.js.map → PkChatbot-BRfoWvHX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CHoEXxmg.js → PkChatbotAuth-BsxfxDgR.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CHoEXxmg.js.map → PkChatbotAuth-BsxfxDgR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-B5cYsWBr.js → PkChatbotFeedbackForm-pQc2JrQT.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-B5cYsWBr.js.map → PkChatbotFeedbackForm-pQc2JrQT.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-B2e1MQ_d.js → PkChatbotMessages-B6EEvqZy.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-B2e1MQ_d.js.map → PkChatbotMessages-B6EEvqZy.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DEpMIiic.js → PkChatbotViewChat-PdHUXyCz.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-DEpMIiic.js.map → PkChatbotViewChat-PdHUXyCz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BjE4mrDv.js → PkToolShowContactForm-CBuw96Vr.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BjE4mrDv.js.map → PkToolShowContactForm-CBuw96Vr.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-C1u3kP7i.js → index.es-CY6tu8qg.js} +2 -2
- package/dist-vue/_chunks/{index.es-C1u3kP7i.js.map → index.es-CY6tu8qg.js.map} +1 -1
- package/dist-vue/index.js +8 -8
- package/dist-vue/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/_chunks/VvCheckbox.es-VtDFxWJM.js.map +0 -1
- package/dist/_chunks/VvCheckboxGroup.es-D7MifHZN.js.map +0 -1
- package/dist/_chunks/VvCombobox.es-Brn06uOj.js.map +0 -1
- package/dist/_chunks/VvInputText.es-Co9NrR4l.js.map +0 -1
- package/dist/_chunks/VvRadio.es-BxHgVeVy.js.map +0 -1
- package/dist/_chunks/VvRadioGroup.es-DZtXJGCi.js.map +0 -1
- package/dist/_chunks/VvSelect.es-BR8f0LUN.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-TXhUgEuG.js.map +0 -1
- package/dist/_chunks/index.es-dTcgyeM4.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, Ct as i, Dt as a, E as o, Et as s, F as c, G as l, L as u, M as d, N as f, O as p, Q as ee, R as m, St as h, T as g, Tt as _, U as te, W as ne, X as v, _ as y, b, bt as x, c as re, ct as S, d as ie, dt as C, et as ae, g as w, h as T, it as
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, Dt as a, E as o, Et as s, F as c, G as l, L as u, M as d, N as f, O as p, Q as ee, R as m, St as h, T as g, Tt as _, U as te, W as ne, X as v, _ as y, b, bt as x, c as re, ct as S, d as ie, dt as C, et as ae, g as w, h as T, it as oe, k as E, m as D, mt as O, q as se, r as ce, s as le, t as ue, u as k, v as A, wt as de, x as fe, y as j, yt as M, z as pe } from "./vue.runtime.esm-bundler-DKVd2gci.js";
|
|
2
2
|
import { a as N, i as me, t as he } from "./iconify-CgyW1o4B.js";
|
|
3
3
|
import { c as ge, f as _e, g as ve, h as P, l as ye, n as be, o as F, r as I, u as L } from "./dist-DxtbpUdI.js";
|
|
4
4
|
import { a as xe, c as R, i as Se, l as Ce, n as we, o as Te, r as Ee, s as De, t as Oe } from "./floating-ui.vue-B6fUB9cU.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
6
|
-
p(),
|
|
7
|
-
var
|
|
5
|
+
//#region ../../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/VvTextarea/VvTextarea.es.js
|
|
6
|
+
p(), ce(), oe(), i();
|
|
7
|
+
var z = {
|
|
8
8
|
showPassword: "eye-on",
|
|
9
9
|
hidePassword: "eye-off",
|
|
10
10
|
showDatePicker: "calendar",
|
|
@@ -15,27 +15,27 @@ var ke = {
|
|
|
15
15
|
remove: "trash",
|
|
16
16
|
edit: "edit",
|
|
17
17
|
download: "download"
|
|
18
|
-
},
|
|
18
|
+
}, ke = { prefix: "normal" }, B = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.local = "local", e.session = "session", e;
|
|
20
|
-
})({}), B = /* @__PURE__ */ (function(e) {
|
|
21
|
-
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
22
20
|
})({}), V = /* @__PURE__ */ (function(e) {
|
|
23
|
-
return e.
|
|
21
|
+
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
24
22
|
})({}), H = /* @__PURE__ */ (function(e) {
|
|
23
|
+
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
24
|
+
})({}), Ae = /* @__PURE__ */ (function(e) {
|
|
25
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;
|
|
26
26
|
})({}), U = /* @__PURE__ */ (function(e) {
|
|
27
27
|
return e.before = "before", e.after = "after", e;
|
|
28
|
-
})({}),
|
|
28
|
+
})({}), je = /* @__PURE__ */ (function(e) {
|
|
29
29
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
30
|
-
})({}),
|
|
30
|
+
})({}), W = /* @__PURE__ */ (function(e) {
|
|
31
31
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
32
|
-
})({}),
|
|
32
|
+
})({}), G = /* @__PURE__ */ (function(e) {
|
|
33
33
|
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
34
|
-
})({}),
|
|
34
|
+
})({}), K = /* @__PURE__ */ (function(e) {
|
|
35
35
|
return e.listbox = "listbox", e.menu = "menu", e;
|
|
36
|
-
})({}),
|
|
36
|
+
})({}), q = /* @__PURE__ */ (function(e) {
|
|
37
37
|
return e.option = "option", e.presentation = "presentation", e;
|
|
38
|
-
})({}),
|
|
38
|
+
})({}), J = /* @__PURE__ */ Symbol.for("volver"), Me = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Y = /* @__PURE__ */ Symbol.for("dropdownItem"), X = /* @__PURE__ */ Symbol.for("dropdownAction"), Ne = {
|
|
39
39
|
to: { type: [String, Object] },
|
|
40
40
|
href: String,
|
|
41
41
|
target: String,
|
|
@@ -43,7 +43,7 @@ var ke = {
|
|
|
43
43
|
type: String,
|
|
44
44
|
default: "noopener noreferrer"
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, Z = {
|
|
47
47
|
valid: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: !1
|
|
@@ -52,7 +52,7 @@ var ke = {
|
|
|
52
52
|
type: [String, Array],
|
|
53
53
|
default: void 0
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, Pe = {
|
|
56
56
|
invalid: {
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: !1
|
|
@@ -61,7 +61,7 @@ var ke = {
|
|
|
61
61
|
type: [String, Array],
|
|
62
62
|
default: void 0
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, Fe = {
|
|
65
65
|
loading: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: !1
|
|
@@ -73,24 +73,24 @@ var ke = {
|
|
|
73
73
|
}, Q = { disabled: {
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
|
-
} },
|
|
76
|
+
} }, $ = { required: {
|
|
77
77
|
type: Boolean,
|
|
78
78
|
default: !1
|
|
79
|
-
} },
|
|
79
|
+
} }, Ie = { selected: {
|
|
80
80
|
type: Boolean,
|
|
81
81
|
default: !1
|
|
82
|
-
} },
|
|
82
|
+
} }, Le = { active: {
|
|
83
83
|
type: Boolean,
|
|
84
84
|
default: !1
|
|
85
|
-
} },
|
|
85
|
+
} }, Re = { current: {
|
|
86
86
|
type: Boolean,
|
|
87
87
|
default: !1
|
|
88
88
|
} };
|
|
89
|
-
|
|
90
|
-
var
|
|
89
|
+
z.clear;
|
|
90
|
+
var ze = { pressed: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: !1
|
|
93
|
-
} },
|
|
93
|
+
} }, Be = { label: {
|
|
94
94
|
type: [String, Number],
|
|
95
95
|
default: void 0
|
|
96
96
|
} }, Ve = {
|
|
@@ -152,7 +152,7 @@ var Be = { pressed: {
|
|
|
152
152
|
iconPosition: {
|
|
153
153
|
type: String,
|
|
154
154
|
default: U.before,
|
|
155
|
-
|
|
155
|
+
validator: (e) => Object.values(U).includes(e)
|
|
156
156
|
}
|
|
157
157
|
}, Ye = { tabindex: {
|
|
158
158
|
type: [String, Number],
|
|
@@ -166,13 +166,13 @@ var Be = { pressed: {
|
|
|
166
166
|
} }, Qe = { id: [String, Number] }, $e = {
|
|
167
167
|
placement: {
|
|
168
168
|
type: String,
|
|
169
|
-
default:
|
|
170
|
-
validator: (e) => Object.values(
|
|
169
|
+
default: H.bottom,
|
|
170
|
+
validator: (e) => Object.values(H).includes(e) || Object.values(Ae).includes(e)
|
|
171
171
|
},
|
|
172
172
|
strategy: {
|
|
173
173
|
type: String,
|
|
174
174
|
default: void 0,
|
|
175
|
-
validator: (e) => Object.values(
|
|
175
|
+
validator: (e) => Object.values(V).includes(e)
|
|
176
176
|
},
|
|
177
177
|
transitionName: {
|
|
178
178
|
type: String,
|
|
@@ -241,16 +241,16 @@ var Be = { pressed: {
|
|
|
241
241
|
...Ye,
|
|
242
242
|
...Q,
|
|
243
243
|
...He,
|
|
244
|
+
...Z,
|
|
244
245
|
...Pe,
|
|
245
|
-
...Fe,
|
|
246
246
|
...We,
|
|
247
|
-
...
|
|
247
|
+
...Fe,
|
|
248
248
|
...Ue,
|
|
249
249
|
...Ke,
|
|
250
250
|
...qe,
|
|
251
251
|
...Je,
|
|
252
252
|
...Xe,
|
|
253
|
-
|
|
253
|
+
...Be,
|
|
254
254
|
...Ve,
|
|
255
255
|
minlength: {
|
|
256
256
|
type: [String, Number],
|
|
@@ -264,44 +264,44 @@ var Be = { pressed: {
|
|
|
264
264
|
type: String,
|
|
265
265
|
default: void 0
|
|
266
266
|
},
|
|
267
|
-
|
|
267
|
+
...$
|
|
268
268
|
};
|
|
269
269
|
({
|
|
270
270
|
...et,
|
|
271
271
|
...Ye,
|
|
272
|
+
...Z,
|
|
272
273
|
...Pe,
|
|
273
|
-
...Fe,
|
|
274
274
|
...We,
|
|
275
275
|
...Q,
|
|
276
276
|
...He,
|
|
277
277
|
...Ue,
|
|
278
|
-
|
|
278
|
+
...Be,
|
|
279
279
|
...Ve,
|
|
280
|
-
...
|
|
280
|
+
...Fe
|
|
281
281
|
}), {
|
|
282
|
+
...Z,
|
|
282
283
|
...Pe,
|
|
283
|
-
...Fe,
|
|
284
284
|
...Ge,
|
|
285
285
|
...We,
|
|
286
286
|
...Q,
|
|
287
287
|
...He,
|
|
288
288
|
...Ue,
|
|
289
|
-
|
|
290
|
-
...
|
|
291
|
-
|
|
289
|
+
...Be,
|
|
290
|
+
...Fe,
|
|
291
|
+
...$
|
|
292
292
|
}, {
|
|
293
293
|
...Q,
|
|
294
|
-
...$,
|
|
295
294
|
...Be,
|
|
296
|
-
...Re,
|
|
297
295
|
...ze,
|
|
296
|
+
...Le,
|
|
297
|
+
...Re,
|
|
298
298
|
...Ne
|
|
299
|
-
},
|
|
299
|
+
}, je.button, W.button;
|
|
300
300
|
var it = {
|
|
301
301
|
storageType: {
|
|
302
302
|
type: String,
|
|
303
|
-
default:
|
|
304
|
-
validator: (e) => Object.values(
|
|
303
|
+
default: B.local,
|
|
304
|
+
validator: (e) => Object.values(B).includes(e)
|
|
305
305
|
},
|
|
306
306
|
storageKey: String
|
|
307
307
|
}, at = {
|
|
@@ -340,7 +340,7 @@ var it = {
|
|
|
340
340
|
},
|
|
341
341
|
iconRemoveSuggestion: {
|
|
342
342
|
type: [String, Object],
|
|
343
|
-
default:
|
|
343
|
+
default: z.remove
|
|
344
344
|
},
|
|
345
345
|
labelRemoveSuggestion: {
|
|
346
346
|
type: String,
|
|
@@ -367,13 +367,13 @@ function dt(e) {
|
|
|
367
367
|
return Array.isArray(e) ? e.filter((e) => ut(e)).join(" ") : e;
|
|
368
368
|
}
|
|
369
369
|
function ft(e, t) {
|
|
370
|
-
let n =
|
|
370
|
+
let n = D(() => S(e) ? e.value : e), i = D(() => dt(n.value.invalidLabel)), a = D(() => dt(n.value.validLabel)), s = D(() => n.value.loadingLabel), c = D(() => n.value.hintLabel), l = D(() => !!(n.value.loading && (t.loading || s.value))), u = D(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = D(() => !l.value && !u.value && !!(n.value.valid && (t.valid || a.value))), f = D(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = D(() => u.value || d.value || l.value || f.value);
|
|
371
371
|
return {
|
|
372
372
|
hasInvalidLabelOrSlot: u,
|
|
373
373
|
hasHintLabelOrSlot: f,
|
|
374
374
|
hasValidLabelOrSlot: d,
|
|
375
375
|
hasLoadingLabelOrSlot: l,
|
|
376
|
-
hintSlotScope:
|
|
376
|
+
hintSlotScope: D(() => ({
|
|
377
377
|
modelValue: n.value.modelValue,
|
|
378
378
|
valid: n.value.valid,
|
|
379
379
|
invalid: n.value.invalid,
|
|
@@ -422,15 +422,15 @@ var pt = {
|
|
|
422
422
|
},
|
|
423
423
|
role: {
|
|
424
424
|
type: String,
|
|
425
|
-
default:
|
|
426
|
-
validator: (e) => Object.values(
|
|
425
|
+
default: K.menu,
|
|
426
|
+
validator: (e) => Object.values(K).includes(e)
|
|
427
427
|
}
|
|
428
428
|
}, mt = { focusOnHover: {
|
|
429
429
|
type: Boolean,
|
|
430
430
|
default: !1
|
|
431
431
|
} }, ht = {
|
|
432
432
|
...Q,
|
|
433
|
-
...
|
|
433
|
+
...Ie,
|
|
434
434
|
...Ze,
|
|
435
435
|
...Ue,
|
|
436
436
|
deselectHintLabel: { type: String },
|
|
@@ -443,10 +443,10 @@ var pt = {
|
|
|
443
443
|
};
|
|
444
444
|
function gt(e) {
|
|
445
445
|
let t = l();
|
|
446
|
-
return
|
|
446
|
+
return D(() => String(e?.value || t));
|
|
447
447
|
}
|
|
448
448
|
function _t(e, t) {
|
|
449
|
-
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r =
|
|
449
|
+
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = D(() => n && x(t)), i = D(() => r.value ? "manual" : void 0);
|
|
450
450
|
function a() {
|
|
451
451
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
452
452
|
}
|
|
@@ -474,7 +474,7 @@ function vt({ reference: e, id: t, expanded: n, aria: i }) {
|
|
|
474
474
|
component: r({
|
|
475
475
|
name: "VvDropdownTriggerProvider",
|
|
476
476
|
setup() {
|
|
477
|
-
m(
|
|
477
|
+
m(Me, {
|
|
478
478
|
reference: e,
|
|
479
479
|
id: t,
|
|
480
480
|
expanded: n,
|
|
@@ -489,20 +489,20 @@ function vt({ reference: e, id: t, expanded: n, aria: i }) {
|
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
491
|
function yt({ role: e, ...t }) {
|
|
492
|
-
let n =
|
|
493
|
-
return m(
|
|
492
|
+
let n = D(() => e.value === K.listbox ? q.option : q.presentation);
|
|
493
|
+
return m(Y, {
|
|
494
494
|
role: n,
|
|
495
495
|
...t
|
|
496
496
|
}), { itemRole: n };
|
|
497
497
|
}
|
|
498
498
|
function bt({ expanded: e }) {
|
|
499
499
|
m(X, {
|
|
500
|
-
role:
|
|
500
|
+
role: O(G.menuitem),
|
|
501
501
|
expanded: e
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function xt(e, t, n) {
|
|
505
|
-
return
|
|
505
|
+
return D(() => {
|
|
506
506
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
507
507
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
508
508
|
t && (r[`${e}--${t}`] = !0);
|
|
@@ -538,72 +538,107 @@ var St = ["popover"], Ct = [
|
|
|
538
538
|
"leaveCancelled"
|
|
539
539
|
],
|
|
540
540
|
setup(t, { expose: r, emit: i }) {
|
|
541
|
-
let a = t, o = i, { id: l } =
|
|
542
|
-
get: () => a.reference ??
|
|
541
|
+
let a = t, o = i, { id: l } = M(a), p = gt(l), m = ne(), b = O(), x = O(), S = O(), C = O(), w = D({
|
|
542
|
+
get: () => a.reference ?? b.value,
|
|
543
543
|
set: (e) => {
|
|
544
|
-
|
|
544
|
+
b.value = e;
|
|
545
545
|
}
|
|
546
|
-
}), { isTopLayer: oe, popover:
|
|
546
|
+
}), { isTopLayer: oe, popover: E, show: se, hide: ce } = _t(x, () => a.topLayer), le = D(() => oe.value ? V.fixed : a.strategy), k = O(!1);
|
|
547
547
|
c(() => {
|
|
548
|
-
_e(
|
|
549
|
-
|
|
548
|
+
_e(x.value, () => {
|
|
549
|
+
k.value = globalThis.getComputedStyle(x.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
550
550
|
}, {
|
|
551
551
|
attributeFilter: ["style"],
|
|
552
552
|
window: globalThis.window
|
|
553
553
|
});
|
|
554
554
|
});
|
|
555
|
-
function
|
|
555
|
+
function j(e, t, n) {
|
|
556
556
|
return typeof e == "boolean" ? t() : n(e);
|
|
557
557
|
}
|
|
558
|
-
|
|
558
|
+
function pe(e) {
|
|
559
|
+
return !e.width && !e.height;
|
|
560
|
+
}
|
|
561
|
+
let N = {
|
|
562
|
+
name: "uncap",
|
|
563
|
+
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
564
|
+
let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
|
|
565
|
+
return n.uncap || !i || pe(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
|
|
566
|
+
data: { uncapped: !0 },
|
|
567
|
+
reset: { rects: !0 }
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
}, me = D(() => {
|
|
559
571
|
let e = [];
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
572
|
+
a.size && e.push(N), a.offset && e.push(["string", "number"].includes(typeof a.offset) ? Te(Number(a.offset)) : Te(a.offset));
|
|
573
|
+
let t = typeof a.size == "object" ? a.size.padding : void 0;
|
|
574
|
+
if (a.autoPlacement ? e.push(j(a.autoPlacement, () => Ee(), (e) => Ee(e))) : a.flip && e.push(j(a.flip, () => xe({
|
|
575
|
+
fallbackStrategy: "initialPlacement",
|
|
576
|
+
padding: t
|
|
577
|
+
}), (e) => xe({
|
|
578
|
+
padding: t,
|
|
579
|
+
...e
|
|
580
|
+
}))), a.shift && e.push(j(a.shift, () => De(), (e) => De(e))), a.size) {
|
|
581
|
+
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
582
|
+
if (pe(r.floating) || k.value) return;
|
|
583
|
+
let { style: i } = n.floating;
|
|
584
|
+
i.maxWidth = a.triggerWidth && w.value ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
563
585
|
};
|
|
564
|
-
e.push(
|
|
586
|
+
e.push(j(a.size, () => R({ apply: t }), (e) => R({
|
|
565
587
|
...e,
|
|
566
|
-
apply: t
|
|
588
|
+
apply: (n) => (t(n), e?.apply?.(n))
|
|
567
589
|
})));
|
|
568
590
|
}
|
|
569
|
-
return a.
|
|
570
|
-
}), { x: he, y: ge, middlewareData: P, placement: ye, strategy: Ce } = we(
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
strategy: pe,
|
|
591
|
+
return a.arrow && e.push(Oe({ element: S })), e;
|
|
592
|
+
}), { x: he, y: ge, middlewareData: P, placement: ye, strategy: Ce, update: z } = we(w, x, {
|
|
593
|
+
placement: D(() => a.placement),
|
|
594
|
+
strategy: le,
|
|
574
595
|
middleware: me
|
|
575
|
-
}), ke =
|
|
576
|
-
if (
|
|
577
|
-
let e = a.triggerWidth &&
|
|
596
|
+
}), ke = D(() => {
|
|
597
|
+
if (k.value) return;
|
|
598
|
+
let e = a.triggerWidth && w.value ? `${w.value?.offsetWidth}px` : void 0;
|
|
578
599
|
return {
|
|
579
600
|
position: Ce.value,
|
|
580
601
|
top: `${ge.value ?? 0}px`,
|
|
581
602
|
left: `${he.value ?? 0}px`,
|
|
582
|
-
maxWidth: e ? void 0 : b.value,
|
|
583
|
-
maxHeight: x.value,
|
|
584
603
|
width: e
|
|
585
604
|
};
|
|
586
|
-
}),
|
|
587
|
-
if (
|
|
605
|
+
}), B = D(() => ye.value.split("-")[0]), Ae = D(() => {
|
|
606
|
+
if (k.value) return;
|
|
588
607
|
let e = {
|
|
589
|
-
[
|
|
590
|
-
[
|
|
591
|
-
[
|
|
592
|
-
[
|
|
593
|
-
}[
|
|
608
|
+
[H.top]: H.bottom,
|
|
609
|
+
[H.right]: H.left,
|
|
610
|
+
[H.bottom]: H.top,
|
|
611
|
+
[H.left]: H.right
|
|
612
|
+
}[B.value];
|
|
594
613
|
return {
|
|
595
614
|
left: P.value.arrow?.x === void 0 ? void 0 : `${P.value.arrow?.x}px`,
|
|
596
615
|
top: P.value.arrow?.y === void 0 ? void 0 : `${P.value.arrow?.y}px`,
|
|
597
|
-
[e]: `${-(
|
|
616
|
+
[e]: `${-(S.value?.offsetWidth ?? 0) / 2}px`
|
|
598
617
|
};
|
|
599
|
-
}),
|
|
600
|
-
get: () =>
|
|
618
|
+
}), U = ve(a, "modelValue", o), je = O(!1), W = D({
|
|
619
|
+
get: () => U.value ?? je.value,
|
|
601
620
|
set: (e) => {
|
|
602
|
-
|
|
621
|
+
U.value === void 0 ? je.value = e : U.value = e;
|
|
603
622
|
}
|
|
604
623
|
});
|
|
605
|
-
|
|
606
|
-
W
|
|
624
|
+
v([
|
|
625
|
+
W,
|
|
626
|
+
w,
|
|
627
|
+
x,
|
|
628
|
+
le
|
|
629
|
+
], ([e, t, n, r], i, a) => {
|
|
630
|
+
!e || !t || !n || a(Se(t, n, z, { animationFrame: r === V.fixed }));
|
|
631
|
+
}, {
|
|
632
|
+
flush: "post",
|
|
633
|
+
immediate: !0
|
|
634
|
+
}), _e(C, () => {
|
|
635
|
+
W.value && z();
|
|
636
|
+
}, {
|
|
637
|
+
childList: !0,
|
|
638
|
+
subtree: !0,
|
|
639
|
+
characterData: !0
|
|
640
|
+
}), ee(() => {
|
|
641
|
+
W.value && se();
|
|
607
642
|
});
|
|
608
643
|
function G() {
|
|
609
644
|
W.value = !0;
|
|
@@ -615,42 +650,42 @@ var St = ["popover"], Ct = [
|
|
|
615
650
|
W.value = !W.value;
|
|
616
651
|
}
|
|
617
652
|
function J(e) {
|
|
618
|
-
|
|
653
|
+
w.value = e;
|
|
619
654
|
}
|
|
620
|
-
be(
|
|
655
|
+
be(x, () => {
|
|
621
656
|
!a.keepOpen && W.value && (W.value = !1);
|
|
622
|
-
}, { ignore: [
|
|
623
|
-
let
|
|
657
|
+
}, { ignore: [w] });
|
|
658
|
+
let Me = D(() => w.value?.getAttribute?.("id") ?? void 0), Y = D(() => ({
|
|
624
659
|
"aria-controls": p.value,
|
|
625
660
|
"aria-haspopup": !0,
|
|
626
661
|
"aria-expanded": W.value
|
|
627
|
-
})), { component:
|
|
628
|
-
reference:
|
|
662
|
+
})), { component: X, bus: Ne } = vt({
|
|
663
|
+
reference: w,
|
|
629
664
|
id: p,
|
|
630
665
|
expanded: W,
|
|
631
|
-
aria:
|
|
666
|
+
aria: Y
|
|
632
667
|
});
|
|
633
|
-
|
|
634
|
-
let { role:
|
|
635
|
-
function
|
|
668
|
+
Ne.on("click", q);
|
|
669
|
+
let { role: Z, modifiers: Pe } = M(a), Fe = xt("vv-dropdown", Pe, D(() => ({ arrow: a.arrow }))), { focused: Q } = L(x);
|
|
670
|
+
function $(e) {
|
|
636
671
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
637
672
|
}
|
|
638
673
|
function Ie() {
|
|
639
674
|
f(() => {
|
|
640
|
-
let e =
|
|
675
|
+
let e = $(x.value);
|
|
641
676
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
642
677
|
});
|
|
643
678
|
}
|
|
644
679
|
function Le() {
|
|
645
680
|
f(() => {
|
|
646
|
-
let e =
|
|
681
|
+
let e = $(C.value);
|
|
647
682
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
648
683
|
});
|
|
649
684
|
}
|
|
650
685
|
function Re() {
|
|
651
686
|
f(() => {
|
|
652
|
-
if (
|
|
653
|
-
let e =
|
|
687
|
+
if (Q.value) {
|
|
688
|
+
let e = $(x.value);
|
|
654
689
|
if (e.length === 0 || !document.activeElement) return;
|
|
655
690
|
let t = e.indexOf(document.activeElement);
|
|
656
691
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
@@ -659,8 +694,8 @@ var St = ["popover"], Ct = [
|
|
|
659
694
|
}
|
|
660
695
|
function ze() {
|
|
661
696
|
f(() => {
|
|
662
|
-
if (
|
|
663
|
-
let e =
|
|
697
|
+
if (Q.value) {
|
|
698
|
+
let e = $(x.value);
|
|
664
699
|
if (e.length === 0 || !document.activeElement) return;
|
|
665
700
|
let t = e.indexOf(document.activeElement);
|
|
666
701
|
if (t > 0) {
|
|
@@ -682,42 +717,42 @@ var St = ["popover"], Ct = [
|
|
|
682
717
|
focusFirstListElement: Le,
|
|
683
718
|
focusNext: Re,
|
|
684
719
|
focusPrev: ze,
|
|
685
|
-
customPosition:
|
|
720
|
+
customPosition: k
|
|
686
721
|
});
|
|
687
722
|
let { itemRole: Be } = yt({
|
|
688
|
-
role:
|
|
723
|
+
role: Z,
|
|
689
724
|
expanded: W,
|
|
690
|
-
focused:
|
|
691
|
-
hovered: F(
|
|
725
|
+
focused: Q,
|
|
726
|
+
hovered: F(x)
|
|
692
727
|
});
|
|
693
728
|
I("Escape", (e) => {
|
|
694
729
|
W.value && (e.preventDefault(), K());
|
|
695
730
|
}), I("ArrowDown", (e) => {
|
|
696
|
-
W.value &&
|
|
731
|
+
W.value && Q.value && (e.preventDefault(), Re());
|
|
697
732
|
}), I("ArrowUp", (e) => {
|
|
698
|
-
W.value &&
|
|
733
|
+
W.value && Q.value && (e.preventDefault(), ze());
|
|
699
734
|
}), I([" ", "Enter"], (e) => {
|
|
700
735
|
let t = e.target;
|
|
701
|
-
W.value &&
|
|
736
|
+
W.value && Q.value && t && t?.click();
|
|
702
737
|
});
|
|
703
|
-
let
|
|
738
|
+
let Ve = {
|
|
704
739
|
"before-enter": () => {
|
|
705
|
-
o(
|
|
740
|
+
o("beforeExpand"), o("beforeEnter");
|
|
706
741
|
},
|
|
707
742
|
"after-leave": () => {
|
|
708
|
-
W.value ||
|
|
743
|
+
W.value || ce(), o("afterCollapse"), o("afterLeave");
|
|
709
744
|
},
|
|
710
745
|
enter: () => {
|
|
711
746
|
o("enter");
|
|
712
747
|
},
|
|
713
748
|
"after-enter": () => {
|
|
714
|
-
o("afterEnter");
|
|
749
|
+
o("afterExpand"), o("afterEnter");
|
|
715
750
|
},
|
|
716
751
|
"enter-cancelled": () => {
|
|
717
752
|
o("enterCancelled");
|
|
718
753
|
},
|
|
719
754
|
"before-leave": () => {
|
|
720
|
-
o("beforeLeave");
|
|
755
|
+
o("beforeCollapse"), o("beforeLeave");
|
|
721
756
|
},
|
|
722
757
|
leave: () => {
|
|
723
758
|
o("leave");
|
|
@@ -726,29 +761,29 @@ var St = ["popover"], Ct = [
|
|
|
726
761
|
o("leaveCancelled");
|
|
727
762
|
}
|
|
728
763
|
};
|
|
729
|
-
return (t, r) => (u(), A(ie, null, [fe(h(
|
|
764
|
+
return (t, r) => (u(), A(ie, null, [fe(h(X), null, {
|
|
730
765
|
default: e(() => [n(t.$slots, "default", _(g({
|
|
731
766
|
init: J,
|
|
732
767
|
show: G,
|
|
733
768
|
hide: K,
|
|
734
769
|
toggle: q,
|
|
735
770
|
expanded: h(W),
|
|
736
|
-
aria: h(
|
|
771
|
+
aria: h(Y)
|
|
737
772
|
})))]),
|
|
738
773
|
_: 3
|
|
739
|
-
}), fe(
|
|
774
|
+
}), fe(ue, d({ name: t.transitionName }, te(Ve), { persisted: "" }), {
|
|
740
775
|
default: e(() => [ae(T("div", {
|
|
741
776
|
ref_key: "floatingEl",
|
|
742
|
-
ref:
|
|
743
|
-
popover: h(
|
|
777
|
+
ref: x,
|
|
778
|
+
popover: h(E),
|
|
744
779
|
style: s(h(ke)),
|
|
745
780
|
class: de(h(Fe))
|
|
746
781
|
}, [
|
|
747
782
|
a.arrow ? (u(), A("div", {
|
|
748
783
|
key: 0,
|
|
749
784
|
ref_key: "arrowEl",
|
|
750
|
-
ref:
|
|
751
|
-
style: s(h(
|
|
785
|
+
ref: S,
|
|
786
|
+
style: s(h(Ae)),
|
|
752
787
|
class: "vv-dropdown__arrow"
|
|
753
788
|
}, null, 4)) : y("v-if", !0),
|
|
754
789
|
n(t.$slots, "before", _(g({
|
|
@@ -760,10 +795,10 @@ var St = ["popover"], Ct = [
|
|
|
760
795
|
T("div", d(h(m), {
|
|
761
796
|
id: h(p),
|
|
762
797
|
ref_key: "listEl",
|
|
763
|
-
ref:
|
|
798
|
+
ref: C,
|
|
764
799
|
tabindex: h(W) ? void 0 : -1,
|
|
765
|
-
role: h(
|
|
766
|
-
"aria-labelledby": h(
|
|
800
|
+
role: h(Z),
|
|
801
|
+
"aria-labelledby": h(Me),
|
|
767
802
|
class: "vv-dropdown__list"
|
|
768
803
|
}), [n(t.$slots, "items", _(g({
|
|
769
804
|
show: G,
|
|
@@ -784,13 +819,13 @@ var St = ["popover"], Ct = [
|
|
|
784
819
|
}
|
|
785
820
|
});
|
|
786
821
|
function Tt() {
|
|
787
|
-
return
|
|
822
|
+
return E(Y, {});
|
|
788
823
|
}
|
|
789
824
|
var Et = /* @__PURE__ */ r({
|
|
790
825
|
name: "VvDropdownItem",
|
|
791
826
|
props: mt,
|
|
792
827
|
setup(e) {
|
|
793
|
-
let t = e, { role: r, expanded: i } = Tt(), a =
|
|
828
|
+
let t = e, { role: r, expanded: i } = Tt(), a = O(null);
|
|
794
829
|
bt({ expanded: i });
|
|
795
830
|
let o = F(a), { focused: s } = ye(a), { focused: c } = L(a);
|
|
796
831
|
return v(o, (e) => {
|
|
@@ -805,11 +840,11 @@ var Et = /* @__PURE__ */ r({
|
|
|
805
840
|
name: "VvDropdownOption",
|
|
806
841
|
props: ht,
|
|
807
842
|
setup(t) {
|
|
808
|
-
let r = t, { modifiers: i } =
|
|
843
|
+
let r = t, { modifiers: i } = M(r), o = xt("vv-dropdown-option", i, D(() => ({
|
|
809
844
|
disabled: r.disabled,
|
|
810
845
|
selected: r.selected,
|
|
811
846
|
unselectable: r.unselectable && r.selected
|
|
812
|
-
}))), s =
|
|
847
|
+
}))), s = D(() => r.selected ? r.unselectable ? r.deselectHintLabel : r.selectedHintLabel : r.disabled ? "" : r.selectHintLabel);
|
|
813
848
|
return (t, r) => (u(), w(Et, {
|
|
814
849
|
class: de(h(o)),
|
|
815
850
|
tabindex: t.disabled ? -1 : 0,
|
|
@@ -836,7 +871,7 @@ var Et = /* @__PURE__ */ r({
|
|
|
836
871
|
}
|
|
837
872
|
});
|
|
838
873
|
function kt() {
|
|
839
|
-
return
|
|
874
|
+
return E(J, void 0);
|
|
840
875
|
}
|
|
841
876
|
var At = /* @__PURE__ */ r({
|
|
842
877
|
name: "VvIcon",
|
|
@@ -857,9 +892,9 @@ var At = /* @__PURE__ */ r({
|
|
|
857
892
|
onLoad: { type: Function },
|
|
858
893
|
svg: {},
|
|
859
894
|
modifiers: {}
|
|
860
|
-
},
|
|
895
|
+
}, ke),
|
|
861
896
|
setup(e) {
|
|
862
|
-
let t = e, n =
|
|
897
|
+
let t = e, n = D(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = O(!0), i = kt(), { modifiers: a } = M(t), o = xt("vv-icon", a), s = D(() => t.provider || i?.iconsProvider), c = D(() => {
|
|
863
898
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
864
899
|
if (N(n)) return n;
|
|
865
900
|
let r = i?.iconsCollections.find((t) => {
|
|
@@ -912,10 +947,10 @@ function jt(e, t, n) {
|
|
|
912
947
|
return r;
|
|
913
948
|
}
|
|
914
949
|
function Mt(e, t, n) {
|
|
915
|
-
let r = kt(), i =
|
|
950
|
+
let r = kt(), i = D(() => {
|
|
916
951
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
917
952
|
});
|
|
918
|
-
return
|
|
953
|
+
return D(() => {
|
|
919
954
|
if (i.value === void 0) return n;
|
|
920
955
|
let e = i.value, r = t, a = n;
|
|
921
956
|
return Object.keys(r).reduce((t, n) => {
|
|
@@ -925,7 +960,7 @@ function Mt(e, t, n) {
|
|
|
925
960
|
});
|
|
926
961
|
}
|
|
927
962
|
function Nt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
928
|
-
let a, o, s =
|
|
963
|
+
let a, o, s = D(() => {
|
|
929
964
|
let e = x(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
930
965
|
return Number.isNaN(t) ? 0 : t;
|
|
931
966
|
});
|
|
@@ -938,7 +973,7 @@ function Nt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
938
973
|
return c(), t("update:modelValue", e), e;
|
|
939
974
|
}
|
|
940
975
|
return C(c), {
|
|
941
|
-
model:
|
|
976
|
+
model: D({
|
|
942
977
|
get: () => r(e?.value),
|
|
943
978
|
set: (e) => {
|
|
944
979
|
s.value <= 0 ? (c(), t("update:modelValue", i(e))) : (o = { value: e }, a && clearTimeout(a), a = setTimeout(l, s.value));
|
|
@@ -949,13 +984,13 @@ function Nt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
949
984
|
};
|
|
950
985
|
}
|
|
951
986
|
function Pt(e, t) {
|
|
952
|
-
let n =
|
|
987
|
+
let n = D(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = D(() => t?.value === U.before ? n.value : void 0), i = D(() => t?.value === U.after ? n.value : void 0);
|
|
953
988
|
return {
|
|
954
989
|
hasIcon: n,
|
|
955
|
-
hasIconLeft:
|
|
956
|
-
hasIconRight:
|
|
957
|
-
hasIconTop:
|
|
958
|
-
hasIconBottom:
|
|
990
|
+
hasIconLeft: D(() => t?.value === H.left ? n.value : void 0),
|
|
991
|
+
hasIconRight: D(() => t?.value === H.right ? n.value : void 0),
|
|
992
|
+
hasIconTop: D(() => t?.value === H.top ? n.value : void 0),
|
|
993
|
+
hasIconBottom: D(() => t?.value === H.bottom ? n.value : void 0),
|
|
959
994
|
hasIconBefore: r,
|
|
960
995
|
hasIconAfter: i
|
|
961
996
|
};
|
|
@@ -967,28 +1002,28 @@ function Ft(e, t) {
|
|
|
967
1002
|
}), { focused: n };
|
|
968
1003
|
}
|
|
969
1004
|
function It(e, t) {
|
|
970
|
-
let n =
|
|
1005
|
+
let n = D(() => (h(e) ?? "").length), r = D(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
971
1006
|
return {
|
|
972
1007
|
length: n,
|
|
973
1008
|
gap: r,
|
|
974
|
-
formatted:
|
|
1009
|
+
formatted: D(() => 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)
|
|
975
1010
|
};
|
|
976
1011
|
}
|
|
977
|
-
function Lt(e, t =
|
|
978
|
-
let r =
|
|
1012
|
+
function Lt(e, t = B.local, n) {
|
|
1013
|
+
let r = O();
|
|
979
1014
|
n && (r.value = n);
|
|
980
1015
|
let i;
|
|
981
1016
|
return c(() => {
|
|
982
1017
|
e && v(e, (e, n) => {
|
|
983
|
-
let a = h(t) ===
|
|
1018
|
+
let a = h(t) === B.session ? sessionStorage : localStorage;
|
|
984
1019
|
n && n !== e && a.removeItem(n), e ? (i = P(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
|
|
985
1020
|
}, { immediate: !0 }), S(t) && v(t, (t, n) => {
|
|
986
1021
|
if (e?.value) {
|
|
987
1022
|
if (t) {
|
|
988
|
-
let n = t ===
|
|
1023
|
+
let n = t === B.session ? sessionStorage : localStorage;
|
|
989
1024
|
i = P(e.value, i?.value ?? r.value, n);
|
|
990
1025
|
}
|
|
991
|
-
n && n !== t && (n ===
|
|
1026
|
+
n && n !== t && (n === B.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
992
1027
|
}
|
|
993
1028
|
});
|
|
994
1029
|
}), v(r, (e) => {
|
|
@@ -1012,15 +1047,15 @@ var Rt = ["for"], zt = {
|
|
|
1012
1047
|
props: ct,
|
|
1013
1048
|
emits: st,
|
|
1014
1049
|
setup(t, { expose: r, emit: i }) {
|
|
1015
|
-
let o = t, s = i, c =
|
|
1050
|
+
let o = t, s = i, c = se(), l = kt(), f = Mt("VvTextarea", ct, o), p = O(), ee = O(), m = O(), { id: te, icon: ne, iconPosition: x, iconRemoveSuggestion: re, labelRemoveSuggestion: C, label: oe, modelValue: E, count: ce, valid: ue, invalid: N, loading: me, modifiers: he, debounce: _e, minlength: ve, maxlength: P, storageType: ye } = M(o), be = gt(te), F = D(() => `${be.value}-hint`), I = D(() => o.floating && lt(o.placeholder) ? " " : o.placeholder), { model: L, flush: xe } = Nt(E, s, _e);
|
|
1016
1051
|
r({ flush: xe });
|
|
1017
|
-
let { hasIconBefore: R, hasIconAfter: Se } = Pt(ne, x), { hasIcon: Ce } = Pt(re), { focused: we } = Ft(p, s), Te =
|
|
1052
|
+
let { hasIconBefore: R, hasIconAfter: Se } = Pt(ne, x), { hasIcon: Ce } = Pt(re), { focused: we } = Ft(p, s), Te = D(() => we.value && !o.disabled && !o.readonly);
|
|
1018
1053
|
v(Te, (e) => {
|
|
1019
1054
|
let t = L.value;
|
|
1020
|
-
if (e || (t = xe() ?? t), e && f.value.selectOnFocus && p.value && p.value.select(), e &&
|
|
1021
|
-
else if (
|
|
1055
|
+
if (e || (t = xe() ?? t), e && f.value.selectOnFocus && p.value && p.value.select(), e && H.value?.size) m.value?.show();
|
|
1056
|
+
else if (H.value && !lt(t)) {
|
|
1022
1057
|
let e = o.maxSuggestions;
|
|
1023
|
-
|
|
1058
|
+
H.value.size >= e && !H.value.has(t) && (H.value = new Set([...H.value].slice(H.value.size - e + 1))), H.value.add(t);
|
|
1024
1059
|
}
|
|
1025
1060
|
});
|
|
1026
1061
|
let Ee = ge(p);
|
|
@@ -1028,21 +1063,21 @@ var Rt = ["for"], zt = {
|
|
|
1028
1063
|
e && o.autofocus && (we.value = !0);
|
|
1029
1064
|
});
|
|
1030
1065
|
let { formatted: De } = It(L, {
|
|
1031
|
-
mode:
|
|
1066
|
+
mode: ce?.value,
|
|
1032
1067
|
upperLimit: Number(P?.value),
|
|
1033
1068
|
lowerLimit: Number(ve?.value)
|
|
1034
|
-
}), Oe =
|
|
1069
|
+
}), Oe = D(() => !o.disabled && !o.readonly), z = D(() => Oe.value ? o.tabindex : -1), ke = D(() => !lt(E)), B = D(() => {
|
|
1035
1070
|
if (o.invalid === !0) return !0;
|
|
1036
1071
|
if (o.valid === !0) return !1;
|
|
1037
|
-
}),
|
|
1038
|
-
function
|
|
1072
|
+
}), V = D(() => o.storageKey ?? (l?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), H = Lt(V, ye, /* @__PURE__ */ new Set()), Ae = D(() => H.value ? [...H.value].filter((e) => lt(L.value) || `${e}`.toLowerCase().includes(`${L.value}`.toLowerCase()) && e !== L.value).reverse() : []), U = D(() => V?.value && H.value && H.value.size > 0);
|
|
1073
|
+
function je(e) {
|
|
1039
1074
|
L.value = e, m.value?.hide(), s("suggestion:selected", e);
|
|
1040
1075
|
}
|
|
1041
|
-
function
|
|
1042
|
-
|
|
1076
|
+
function W(e) {
|
|
1077
|
+
H.value?.delete(e), s("suggestion:removed", e);
|
|
1043
1078
|
}
|
|
1044
|
-
let { HintSlot:
|
|
1045
|
-
valid:
|
|
1079
|
+
let { HintSlot: G, hasHintLabelOrSlot: K, hasInvalidLabelOrSlot: q, hintSlotScope: J } = ft(f, c), Me = xt("vv-textarea", he, D(() => ({
|
|
1080
|
+
valid: ue.value,
|
|
1046
1081
|
invalid: N.value,
|
|
1047
1082
|
loading: me.value,
|
|
1048
1083
|
disabled: o.disabled,
|
|
@@ -1051,13 +1086,13 @@ var Rt = ["for"], zt = {
|
|
|
1051
1086
|
"icon-before": R.value !== void 0,
|
|
1052
1087
|
"icon-after": Se.value !== void 0,
|
|
1053
1088
|
floating: o.floating && !lt(o.label),
|
|
1054
|
-
dirty:
|
|
1089
|
+
dirty: ke.value,
|
|
1055
1090
|
focus: we.value,
|
|
1056
1091
|
resizable: o.resizable
|
|
1057
|
-
}))),
|
|
1092
|
+
}))), Y = D(() => ({
|
|
1058
1093
|
name: o.name,
|
|
1059
1094
|
placeholder: I.value,
|
|
1060
|
-
tabindex:
|
|
1095
|
+
tabindex: z.value,
|
|
1061
1096
|
disabled: o.disabled,
|
|
1062
1097
|
readonly: o.readonly,
|
|
1063
1098
|
required: o.required,
|
|
@@ -1070,10 +1105,10 @@ var Rt = ["for"], zt = {
|
|
|
1070
1105
|
spellcheck: o.spellcheck,
|
|
1071
1106
|
"aria-label": o.ariaLabel || void 0,
|
|
1072
1107
|
"aria-labelledby": o.ariaLabelledby || void 0,
|
|
1073
|
-
"aria-invalid":
|
|
1074
|
-
"aria-describedby": [o.ariaDescribedby,
|
|
1075
|
-
"aria-errormessage":
|
|
1076
|
-
})), X =
|
|
1108
|
+
"aria-invalid": B.value,
|
|
1109
|
+
"aria-describedby": [o.ariaDescribedby, K.value ? F.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
1110
|
+
"aria-errormessage": q.value ? F.value : void 0
|
|
1111
|
+
})), X = D(() => ({
|
|
1077
1112
|
valid: o.valid,
|
|
1078
1113
|
invalid: o.invalid,
|
|
1079
1114
|
modelValue: o.modelValue,
|
|
@@ -1085,12 +1120,12 @@ var Rt = ["for"], zt = {
|
|
|
1085
1120
|
function Ne() {
|
|
1086
1121
|
L.value = void 0;
|
|
1087
1122
|
}
|
|
1088
|
-
return (t, r) => (u(), A("div", { class: de(h(
|
|
1089
|
-
h(
|
|
1123
|
+
return (t, r) => (u(), A("div", { class: de(h(Me)) }, [
|
|
1124
|
+
h(oe) ? (u(), A("label", {
|
|
1090
1125
|
key: 0,
|
|
1091
1126
|
for: h(be),
|
|
1092
1127
|
class: "vv-textarea__label"
|
|
1093
|
-
}, a(h(
|
|
1128
|
+
}, a(h(oe)), 9, Rt)) : y("v-if", !0),
|
|
1094
1129
|
T("div", {
|
|
1095
1130
|
ref_key: "wrapperEl",
|
|
1096
1131
|
ref: ee,
|
|
@@ -1104,34 +1139,34 @@ var Rt = ["for"], zt = {
|
|
|
1104
1139
|
ref_key: "textareaEl",
|
|
1105
1140
|
ref: p,
|
|
1106
1141
|
"onUpdate:modelValue": r[0] ||= (e) => S(L) ? L.value = e : null
|
|
1107
|
-
}, h(
|
|
1142
|
+
}, h(Y), { onKeyup: r[1] ||= (e) => s("keyup", e) }), null, 16, Vt), [[le, h(L)]]),
|
|
1108
1143
|
h(Se) ? (u(), w(At, d({ key: 1 }, h(Se), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : y("v-if", !0)
|
|
1109
1144
|
]),
|
|
1110
1145
|
t.$slots.after ? (u(), A("div", Ht, [n(t.$slots, "after", _(g(h(X))))])) : y("v-if", !0),
|
|
1111
|
-
h(
|
|
1146
|
+
h(ce) ? (u(), A("span", Ut, [n(t.$slots, "count", _(g(h(X))), () => [b(a(h(De)), 1)])])) : y("v-if", !0)
|
|
1112
1147
|
], 512),
|
|
1113
|
-
fe(h(
|
|
1148
|
+
fe(h(G), {
|
|
1114
1149
|
id: h(F),
|
|
1115
1150
|
class: "vv-textarea__hint"
|
|
1116
|
-
},
|
|
1151
|
+
}, j({ _: 2 }, [
|
|
1117
1152
|
t.$slots.hint ? {
|
|
1118
1153
|
name: "hint",
|
|
1119
|
-
fn: e(() => [n(t.$slots, "hint", _(g(h(
|
|
1154
|
+
fn: e(() => [n(t.$slots, "hint", _(g(h(J))))]),
|
|
1120
1155
|
key: "0"
|
|
1121
1156
|
} : void 0,
|
|
1122
1157
|
t.$slots.loading ? {
|
|
1123
1158
|
name: "loading",
|
|
1124
|
-
fn: e(() => [n(t.$slots, "loading", _(g(h(
|
|
1159
|
+
fn: e(() => [n(t.$slots, "loading", _(g(h(J))))]),
|
|
1125
1160
|
key: "1"
|
|
1126
1161
|
} : void 0,
|
|
1127
1162
|
t.$slots.valid ? {
|
|
1128
1163
|
name: "valid",
|
|
1129
|
-
fn: e(() => [n(t.$slots, "valid", _(g(h(
|
|
1164
|
+
fn: e(() => [n(t.$slots, "valid", _(g(h(J))))]),
|
|
1130
1165
|
key: "2"
|
|
1131
1166
|
} : void 0,
|
|
1132
1167
|
t.$slots.invalid ? {
|
|
1133
1168
|
name: "invalid",
|
|
1134
|
-
fn: e(() => [n(t.$slots, "invalid", _(g(h(
|
|
1169
|
+
fn: e(() => [n(t.$slots, "invalid", _(g(h(J))))]),
|
|
1135
1170
|
key: "3"
|
|
1136
1171
|
} : void 0
|
|
1137
1172
|
]), 1032, ["id"]),
|
|
@@ -1144,17 +1179,17 @@ var Rt = ["for"], zt = {
|
|
|
1144
1179
|
"trigger-width": !0,
|
|
1145
1180
|
"top-layer": h(f).topLayer
|
|
1146
1181
|
}, {
|
|
1147
|
-
items: e(() => [(u(!0), A(ie, null,
|
|
1182
|
+
items: e(() => [(u(!0), A(ie, null, pe(h(Ae), (r) => (u(), w(Ot, {
|
|
1148
1183
|
key: r,
|
|
1149
|
-
onClick:
|
|
1184
|
+
onClick: k((e) => je(r), ["stop"])
|
|
1150
1185
|
}, {
|
|
1151
|
-
default: e(() => [T("div", Wt, [n(t.$slots, "suggestion", d({ ref_for: !0 }, { value: r }), () => [b(a(r), 1)])]), h(
|
|
1186
|
+
default: e(() => [T("div", Wt, [n(t.$slots, "suggestion", d({ ref_for: !0 }, { value: r }), () => [b(a(r), 1)])]), h(H) && h(Ce) ? (u(), A("button", {
|
|
1152
1187
|
key: 0,
|
|
1153
1188
|
type: "button",
|
|
1154
1189
|
tabindex: "-1",
|
|
1155
1190
|
class: "cursor-pointer",
|
|
1156
1191
|
title: h(C),
|
|
1157
|
-
onClick:
|
|
1192
|
+
onClick: k((e) => W(r), ["stop"])
|
|
1158
1193
|
}, [fe(At, d({ ref_for: !0 }, h(Ce)), null, 16)], 8, Gt)) : y("v-if", !0)]),
|
|
1159
1194
|
_: 2
|
|
1160
1195
|
}, 1032, ["onClick"]))), 128))]),
|
|
@@ -1166,4 +1201,4 @@ var Rt = ["for"], zt = {
|
|
|
1166
1201
|
//#endregion
|
|
1167
1202
|
export { Kt as default };
|
|
1168
1203
|
|
|
1169
|
-
//# sourceMappingURL=VvTextarea.es-
|
|
1204
|
+
//# sourceMappingURL=VvTextarea.es-BcMLwglK.js.map
|