@8wave/ai-elements 0.127.0-beta.3 → 0.127.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{PkChatbotFilePreview-BpiLld3D.js → PkChatbotFilePreview-CWzGSq-b.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-BpiLld3D.js.map → PkChatbotFilePreview-CWzGSq-b.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js → PkEditorRadioButtons-CA1ul6tY.js} +3 -3
- package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js.map → PkEditorRadioButtons-CA1ul6tY.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-qTCDbut0.js → PkFilePreview-BaJet5cw.js} +5 -5
- package/dist/_chunks/{PkFilePreview-qTCDbut0.js.map → PkFilePreview-BaJet5cw.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js → PkFilePreviewDialog-Cq8DGCD1.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js.map → PkFilePreviewDialog-Cq8DGCD1.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-5nu3We9d.js → PkHeldImage-BWz13OCH.js} +2 -2
- package/dist/_chunks/{PkHeldImage-5nu3We9d.js.map → PkHeldImage-BWz13OCH.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js → PkImageEditorDialog-5Px7Y_8G.js} +5 -5
- package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js.map → PkImageEditorDialog-5Px7Y_8G.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-DZaX3wM4.js → PkLazyImg-DYjihkLA.js} +2 -2
- package/dist/_chunks/{PkLazyImg-DZaX3wM4.js.map → PkLazyImg-DYjihkLA.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js → PkSelectionActions-DDhbwE4U.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js.map → PkSelectionActions-DDhbwE4U.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js → PkToolChatFile-fTo6gdqx.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js.map → PkToolChatFile-fTo6gdqx.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js → PkToolRequestGeolocation-BeFZQQxz.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js.map → PkToolRequestGeolocation-BeFZQQxz.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js → PkToolRequestOAuthConnection-_01ct5du.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js.map → PkToolRequestOAuthConnection-_01ct5du.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js → PkToolShareDocument-Vpv1an0N.js} +3 -3
- package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js.map → PkToolShareDocument-Vpv1an0N.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js → PkToolShowArtifact-C28dOM5W.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js.map → PkToolShowArtifact-C28dOM5W.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js → PkToolShowCalendarEvent-Cee5xnJM.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js.map → PkToolShowCalendarEvent-Cee5xnJM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js → PkToolShowChart-kgCDHWEf.js} +3 -3
- package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js.map → PkToolShowChart-kgCDHWEf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js → PkToolShowComparison-cXfmgJ1H.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js.map → PkToolShowComparison-cXfmgJ1H.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js → PkToolShowContactForm-D06qrkHm.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js.map → PkToolShowContactForm-D06qrkHm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js → PkToolShowDiagram-B2NX-FOw.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js.map → PkToolShowDiagram-B2NX-FOw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js → PkToolShowEmail-D-JnkL9A.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js.map → PkToolShowEmail-D-JnkL9A.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js → PkToolShowForm-qj_f9Z5D.js} +16 -16
- package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js.map → PkToolShowForm-qj_f9Z5D.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js → PkToolShowImageGallery-Dm2UEfWl.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js.map → PkToolShowImageGallery-Dm2UEfWl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js → PkToolShowLocation-McS9sMWJ.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js.map → PkToolShowLocation-McS9sMWJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js → PkToolShowMessage-C3jjCRB3.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js.map → PkToolShowMessage-C3jjCRB3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js → PkToolShowProductList-DorHQJMd.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js.map → PkToolShowProductList-DorHQJMd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js → PkToolShowQrCode-CIwiAzOS.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js.map → PkToolShowQrCode-CIwiAzOS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-vSr080EU.js → PkToolShowSources-BMJeacz7.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-vSr080EU.js.map → PkToolShowSources-BMJeacz7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js → PkToolShowSuggestedReply-DBfeOl05.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js.map → PkToolShowSuggestedReply-DBfeOl05.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js → PkToolShowVideo-YwSq8c2P.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js.map → PkToolShowVideo-YwSq8c2P.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js → PkToolShowWeather-DFNz0ZAW.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js.map → PkToolShowWeather-DFNz0ZAW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js → PkToolShowWebPages-DtZC0KHO.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js.map → PkToolShowWebPages-DtZC0KHO.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js → VvButtonLocalized-DfLLySHy.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js.map → VvButtonLocalized-DfLLySHy.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js → VvCheckbox.es-CEwVNJz3.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js.map → VvCheckbox.es-CEwVNJz3.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js → VvCheckboxGroup.es-BC9At7ZZ.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js.map → VvCheckboxGroup.es-BC9At7ZZ.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-BJzmLeTh.js → VvCombobox.es-ZJ44baFa.js} +741 -705
- package/dist/_chunks/VvCombobox.es-ZJ44baFa.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-CHcdm2K-.js → VvInputText.es-D1K-kOt5.js} +356 -320
- package/dist/_chunks/VvInputText.es-D1K-kOt5.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-B3IskaN4.js → VvRadio.es-Bkn-qtRB.js} +2 -2
- package/dist/_chunks/{VvRadio.es-B3IskaN4.js.map → VvRadio.es-Bkn-qtRB.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js → VvRadioGroup.es-BtyqGx_o.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js.map → VvRadioGroup.es-BtyqGx_o.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-CAVvkyxB.js → VvSelect.es-CKHcpSZS.js} +2 -2
- package/dist/_chunks/{VvSelect.es-CAVvkyxB.js.map → VvSelect.es-CKHcpSZS.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-CgvZOWO4.js → VvTextarea.es-Ewp88vJ2.js} +397 -361
- package/dist/_chunks/VvTextarea.es-Ewp88vJ2.js.map +1 -0
- package/dist/_chunks/{index.es-B9l77u9z.js → index.es-DHeth3Ja.js} +660 -624
- package/dist/_chunks/index.es-DHeth3Ja.js.map +1 -0
- package/dist/_chunks/{index.es-vCE-6U81.js → index.es-EKiTmBsm.js} +10 -10
- package/dist/_chunks/{index.es-vCE-6U81.js.map → index.es-EKiTmBsm.js.map} +1 -1
- package/dist/ai-elements.es.js +80 -80
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-B2SwBImk.js → PkChatbot-CuCgECW2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-B2SwBImk.js.map → PkChatbot-CuCgECW2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js → PkChatbotAuth-Bx14Ld4t.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js.map → PkChatbotAuth-Bx14Ld4t.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js → PkChatbotFeedbackForm-Dwsln0GO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js.map → PkChatbotFeedbackForm-Dwsln0GO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js → PkChatbotMessages-CDDoxZAf.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js.map → PkChatbotMessages-CDDoxZAf.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DPk9LjX-.js → PkChatbotViewChat-FtOpDmks.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-DPk9LjX-.js.map → PkChatbotViewChat-FtOpDmks.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-DLJ2wTHk.js → PkFilePreview-B6PSJcvA.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-DLJ2wTHk.js.map → PkFilePreview-B6PSJcvA.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-CDPZ3QIk.js → PkFilePreviewDialog-3HJbVudc.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-CDPZ3QIk.js.map → PkFilePreviewDialog-3HJbVudc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js → PkToolShowContactForm-Cg2TiqP1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js.map → PkToolShowContactForm-Cg2TiqP1.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-Snvt_nNd.js → index.es-B9iCRzfa.js} +2 -2
- package/dist-vue/_chunks/{index.es-Snvt_nNd.js.map → index.es-B9iCRzfa.js.map} +1 -1
- package/dist-vue/index.js +8 -8
- package/package.json +2 -2
- package/dist/_chunks/VvCombobox.es-BJzmLeTh.js.map +0 -1
- package/dist/_chunks/VvInputText.es-CHcdm2K-.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-CgvZOWO4.js.map +0 -1
- package/dist/_chunks/index.es-B9l77u9z.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, K as l, L as u, M as d, Ot as f, P as p, Q as m, S as ee, St as h, Tt as g, V as te, Y as ne, _, b as v, c as re, d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { S as
|
|
4
|
-
import { a as
|
|
5
|
-
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
6
|
-
|
|
7
|
-
var
|
|
1
|
+
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, K as l, L as u, M as d, Ot as f, P as p, Q as m, S as ee, St as h, Tt as g, V as te, Y as ne, _, b as v, c as re, d as y, et as ie, f as ae, g as b, gt as x, h as S, k as C, kt as w, l as oe, nt as se, ot as ce, pt as le, q as ue, r as de, t as fe, tt as T, ut as E, v as D, w as O, wt as k, x as A, xt as pe, y as j, z as M } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
2
|
+
import { a as me, c as he, i as ge, l as _e, n as ve, o as ye, r as be, s as N, t as xe } from "./floating-ui.vue-SbFDfAS7.js";
|
|
3
|
+
import { S as Se, c as P, d as Ce, f as F, g as we, n as Te, p as Ee, r as De, u as Oe, x as ke } from "./dist-CR8l0inH.js";
|
|
4
|
+
import { a as Ae, i as je, t as I } from "./iconify-BsIVfdEw.js";
|
|
5
|
+
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.29_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_141a5f629ec2c5ee32df74e62e6bb55d/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
|
|
6
|
+
C(), de(), ce(), g();
|
|
7
|
+
var Me = {
|
|
8
8
|
showPassword: "eye-on",
|
|
9
9
|
hidePassword: "eye-off",
|
|
10
10
|
showDatePicker: "calendar",
|
|
@@ -15,27 +15,27 @@ var je = {
|
|
|
15
15
|
remove: "trash",
|
|
16
16
|
edit: "edit",
|
|
17
17
|
download: "download"
|
|
18
|
-
},
|
|
18
|
+
}, Ne = { prefix: "normal" }, L = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.local = "local", e.session = "session", e;
|
|
20
20
|
})({}), R = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
22
22
|
})({}), z = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
24
|
-
})({}),
|
|
24
|
+
})({}), Pe = /* @__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
|
})({}), B = /* @__PURE__ */ (function(e) {
|
|
27
27
|
return e.before = "before", e.after = "after", e;
|
|
28
|
-
})({}),
|
|
28
|
+
})({}), Fe = /* @__PURE__ */ (function(e) {
|
|
29
29
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
30
30
|
})({}), V = /* @__PURE__ */ (function(e) {
|
|
31
31
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
32
|
-
})({}),
|
|
32
|
+
})({}), Ie = /* @__PURE__ */ (function(e) {
|
|
33
33
|
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
34
34
|
})({}), H = /* @__PURE__ */ (function(e) {
|
|
35
35
|
return e.listbox = "listbox", e.menu = "menu", e;
|
|
36
36
|
})({}), U = /* @__PURE__ */ (function(e) {
|
|
37
37
|
return e.option = "option", e.presentation = "presentation", e;
|
|
38
|
-
})({}), W = /* @__PURE__ */ Symbol.for("volver"), G = /* @__PURE__ */ Symbol.for("dropdownTrigger"), K = /* @__PURE__ */ Symbol.for("dropdownItem"),
|
|
38
|
+
})({}), W = /* @__PURE__ */ Symbol.for("volver"), G = /* @__PURE__ */ Symbol.for("dropdownTrigger"), K = /* @__PURE__ */ Symbol.for("dropdownItem"), Le = /* @__PURE__ */ Symbol.for("dropdownAction"), Re = {
|
|
39
39
|
to: { type: [String, Object] },
|
|
40
40
|
href: String,
|
|
41
41
|
target: String,
|
|
@@ -43,7 +43,7 @@ var je = {
|
|
|
43
43
|
type: String,
|
|
44
44
|
default: "noopener noreferrer"
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, ze = {
|
|
47
47
|
valid: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: !1
|
|
@@ -52,7 +52,7 @@ var je = {
|
|
|
52
52
|
type: [String, Array],
|
|
53
53
|
default: void 0
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, Be = {
|
|
56
56
|
invalid: {
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: !1
|
|
@@ -61,7 +61,7 @@ var je = {
|
|
|
61
61
|
type: [String, Array],
|
|
62
62
|
default: void 0
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, Ve = {
|
|
65
65
|
loading: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: !1
|
|
@@ -70,30 +70,30 @@ var je = {
|
|
|
70
70
|
type: String,
|
|
71
71
|
default: "Loading..."
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, q = { disabled: {
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
|
-
} },
|
|
76
|
+
} }, He = { required: {
|
|
77
77
|
type: Boolean,
|
|
78
78
|
default: !1
|
|
79
|
-
} },
|
|
79
|
+
} }, Ue = { selected: {
|
|
80
80
|
type: Boolean,
|
|
81
81
|
default: !1
|
|
82
|
-
} },
|
|
82
|
+
} }, We = { active: {
|
|
83
83
|
type: Boolean,
|
|
84
84
|
default: !1
|
|
85
|
-
} },
|
|
85
|
+
} }, J = { current: {
|
|
86
86
|
type: Boolean,
|
|
87
87
|
default: !1
|
|
88
88
|
} };
|
|
89
|
-
|
|
90
|
-
var
|
|
89
|
+
Me.clear;
|
|
90
|
+
var Ge = { pressed: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: !1
|
|
93
|
-
} },
|
|
93
|
+
} }, Y = { label: {
|
|
94
94
|
type: [String, Number],
|
|
95
95
|
default: void 0
|
|
96
|
-
} },
|
|
96
|
+
} }, X = {
|
|
97
97
|
ariaLabel: {
|
|
98
98
|
type: String,
|
|
99
99
|
default: void 0
|
|
@@ -106,16 +106,16 @@ var Ue = { pressed: {
|
|
|
106
106
|
type: String,
|
|
107
107
|
default: void 0
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, Z = { readonly: {
|
|
110
110
|
type: Boolean,
|
|
111
111
|
default: !1
|
|
112
|
-
} },
|
|
112
|
+
} }, Q = { modifiers: {
|
|
113
113
|
type: [String, Array],
|
|
114
114
|
default: void 0
|
|
115
|
-
} },
|
|
115
|
+
} }, $ = { hintLabel: {
|
|
116
116
|
type: String,
|
|
117
117
|
default: ""
|
|
118
|
-
} },
|
|
118
|
+
} }, Ke = {
|
|
119
119
|
options: {
|
|
120
120
|
type: Array,
|
|
121
121
|
default: () => []
|
|
@@ -132,7 +132,7 @@ var Ue = { pressed: {
|
|
|
132
132
|
type: [String, Function],
|
|
133
133
|
default: "disabled"
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, qe = { count: {
|
|
136
136
|
type: [Boolean, String],
|
|
137
137
|
default: !1,
|
|
138
138
|
validator: (e) => [
|
|
@@ -141,10 +141,10 @@ var Ue = { pressed: {
|
|
|
141
141
|
"limit",
|
|
142
142
|
"countdown"
|
|
143
143
|
].includes(e)
|
|
144
|
-
} },
|
|
144
|
+
} }, Je = { debounce: {
|
|
145
145
|
type: [Number, String],
|
|
146
146
|
default: void 0
|
|
147
|
-
} },
|
|
147
|
+
} }, Ye = {
|
|
148
148
|
icon: {
|
|
149
149
|
type: [String, Object],
|
|
150
150
|
default: void 0
|
|
@@ -154,20 +154,20 @@ var Ue = { pressed: {
|
|
|
154
154
|
default: B.before,
|
|
155
155
|
validator: (e) => Object.values(B).includes(e)
|
|
156
156
|
}
|
|
157
|
-
},
|
|
157
|
+
}, Xe = { tabindex: {
|
|
158
158
|
type: [String, Number],
|
|
159
159
|
default: 0
|
|
160
|
-
} },
|
|
160
|
+
} }, Ze = { floating: {
|
|
161
161
|
type: Boolean,
|
|
162
162
|
default: !1
|
|
163
|
-
} },
|
|
163
|
+
} }, Qe = { unselectable: {
|
|
164
164
|
type: Boolean,
|
|
165
165
|
default: !0
|
|
166
|
-
} },
|
|
166
|
+
} }, $e = { id: [String, Number] }, et = {
|
|
167
167
|
placement: {
|
|
168
168
|
type: String,
|
|
169
169
|
default: z.bottom,
|
|
170
|
-
validator: (e) => Object.values(z).includes(e) || Object.values(
|
|
170
|
+
validator: (e) => Object.values(z).includes(e) || Object.values(Pe).includes(e)
|
|
171
171
|
},
|
|
172
172
|
strategy: {
|
|
173
173
|
type: String,
|
|
@@ -222,36 +222,36 @@ var Ue = { pressed: {
|
|
|
222
222
|
type: Boolean,
|
|
223
223
|
default: !1
|
|
224
224
|
}
|
|
225
|
-
},
|
|
226
|
-
|
|
225
|
+
}, tt = {
|
|
226
|
+
...$e,
|
|
227
227
|
name: {
|
|
228
228
|
type: String,
|
|
229
229
|
required: !0
|
|
230
230
|
}
|
|
231
|
-
},
|
|
231
|
+
}, nt = { autofocus: {
|
|
232
232
|
type: Boolean,
|
|
233
233
|
default: !1
|
|
234
|
-
} },
|
|
234
|
+
} }, rt = { autocomplete: {
|
|
235
235
|
type: String,
|
|
236
236
|
default: "off"
|
|
237
|
-
} },
|
|
238
|
-
...et,
|
|
237
|
+
} }, it = {
|
|
239
238
|
...tt,
|
|
240
239
|
...nt,
|
|
241
|
-
...
|
|
242
|
-
...
|
|
243
|
-
...
|
|
244
|
-
...
|
|
245
|
-
...Re,
|
|
246
|
-
...We,
|
|
240
|
+
...rt,
|
|
241
|
+
...Xe,
|
|
242
|
+
...q,
|
|
243
|
+
...Z,
|
|
247
244
|
...ze,
|
|
245
|
+
...Be,
|
|
248
246
|
...$,
|
|
249
|
-
...
|
|
247
|
+
...Ve,
|
|
248
|
+
...Q,
|
|
250
249
|
...qe,
|
|
251
250
|
...Je,
|
|
252
|
-
...
|
|
251
|
+
...Ye,
|
|
252
|
+
...Ze,
|
|
253
|
+
...Y,
|
|
253
254
|
...X,
|
|
254
|
-
...Z,
|
|
255
255
|
minlength: {
|
|
256
256
|
type: [String, Number],
|
|
257
257
|
default: void 0
|
|
@@ -264,63 +264,63 @@ var Ue = { pressed: {
|
|
|
264
264
|
type: String,
|
|
265
265
|
default: void 0
|
|
266
266
|
},
|
|
267
|
-
...
|
|
267
|
+
...He
|
|
268
268
|
};
|
|
269
269
|
({
|
|
270
|
-
...
|
|
271
|
-
...
|
|
272
|
-
...
|
|
273
|
-
...
|
|
274
|
-
...We,
|
|
275
|
-
...J,
|
|
276
|
-
...Q,
|
|
270
|
+
...tt,
|
|
271
|
+
...Xe,
|
|
272
|
+
...ze,
|
|
273
|
+
...Be,
|
|
277
274
|
...$,
|
|
278
|
-
...
|
|
275
|
+
...q,
|
|
279
276
|
...Z,
|
|
280
|
-
...ze
|
|
281
|
-
}), {
|
|
282
|
-
...Le,
|
|
283
|
-
...Re,
|
|
284
|
-
...Ge,
|
|
285
|
-
...We,
|
|
286
|
-
...J,
|
|
287
277
|
...Q,
|
|
288
|
-
|
|
278
|
+
...Y,
|
|
289
279
|
...X,
|
|
280
|
+
...Ve
|
|
281
|
+
}), {
|
|
290
282
|
...ze,
|
|
291
|
-
...Be
|
|
283
|
+
...Be,
|
|
284
|
+
...Ke,
|
|
285
|
+
...$,
|
|
286
|
+
...q,
|
|
287
|
+
...Z,
|
|
288
|
+
...Q,
|
|
289
|
+
...Y,
|
|
290
|
+
...Ve,
|
|
291
|
+
...He
|
|
292
292
|
}, {
|
|
293
|
-
...
|
|
294
|
-
...X,
|
|
295
|
-
...Ue,
|
|
296
|
-
...He,
|
|
293
|
+
...q,
|
|
297
294
|
...Y,
|
|
298
|
-
...
|
|
299
|
-
|
|
300
|
-
|
|
295
|
+
...Ge,
|
|
296
|
+
...We,
|
|
297
|
+
...J,
|
|
298
|
+
...Re
|
|
299
|
+
}, Fe.button, V.button;
|
|
300
|
+
var at = {
|
|
301
301
|
storageType: {
|
|
302
302
|
type: String,
|
|
303
303
|
default: L.local,
|
|
304
304
|
validator: (e) => Object.values(L).includes(e)
|
|
305
305
|
},
|
|
306
306
|
storageKey: String
|
|
307
|
-
},
|
|
307
|
+
}, ot = {
|
|
308
308
|
hard: "hard",
|
|
309
309
|
soft: "soft"
|
|
310
|
-
},
|
|
310
|
+
}, st = {
|
|
311
311
|
true: !0,
|
|
312
312
|
false: !1,
|
|
313
313
|
default: "default"
|
|
314
|
-
},
|
|
314
|
+
}, ct = [
|
|
315
315
|
"update:modelValue",
|
|
316
316
|
"focus",
|
|
317
317
|
"blur",
|
|
318
318
|
"keyup",
|
|
319
319
|
"suggestion:selected",
|
|
320
320
|
"suggestion:removed"
|
|
321
|
-
],
|
|
322
|
-
...rt,
|
|
321
|
+
], lt = {
|
|
323
322
|
...it,
|
|
323
|
+
...at,
|
|
324
324
|
modelValue: String,
|
|
325
325
|
cols: {
|
|
326
326
|
type: [String, Number],
|
|
@@ -332,15 +332,15 @@ var it = {
|
|
|
332
332
|
},
|
|
333
333
|
wrap: {
|
|
334
334
|
type: String,
|
|
335
|
-
default:
|
|
335
|
+
default: ot.soft
|
|
336
336
|
},
|
|
337
337
|
spellcheck: {
|
|
338
338
|
type: [Boolean, String],
|
|
339
|
-
default:
|
|
339
|
+
default: st.default
|
|
340
340
|
},
|
|
341
341
|
iconRemoveSuggestion: {
|
|
342
342
|
type: [String, Object],
|
|
343
|
-
default:
|
|
343
|
+
default: Me.remove
|
|
344
344
|
},
|
|
345
345
|
labelRemoveSuggestion: {
|
|
346
346
|
type: String,
|
|
@@ -355,25 +355,25 @@ var it = {
|
|
|
355
355
|
default: !1
|
|
356
356
|
},
|
|
357
357
|
resizable: Boolean,
|
|
358
|
-
topLayer:
|
|
358
|
+
topLayer: et.topLayer
|
|
359
359
|
};
|
|
360
|
-
function
|
|
360
|
+
function ut(e) {
|
|
361
361
|
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(k(e));
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function dt(e) {
|
|
364
364
|
return typeof e == "string";
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
366
|
+
function ft(e) {
|
|
367
|
+
return Array.isArray(e) ? e.filter((e) => dt(e)).join(" ") : e;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let r =
|
|
369
|
+
function pt(e, t) {
|
|
370
|
+
let r = S(() => E(e) ? e.value : e), i = S(() => ft(r.value.invalidLabel)), a = S(() => ft(r.value.validLabel)), o = S(() => r.value.loadingLabel), s = S(() => r.value.hintLabel), c = S(() => !!(r.value.loading && (t.loading || o.value))), l = S(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = S(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = S(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), f = S(() => l.value || u.value || c.value || d.value);
|
|
371
371
|
return {
|
|
372
372
|
hasInvalidLabelOrSlot: l,
|
|
373
373
|
hasHintLabelOrSlot: d,
|
|
374
374
|
hasValidLabelOrSlot: u,
|
|
375
375
|
hasLoadingLabelOrSlot: c,
|
|
376
|
-
hintSlotScope:
|
|
376
|
+
hintSlotScope: S(() => ({
|
|
377
377
|
modelValue: r.value.modelValue,
|
|
378
378
|
valid: r.value.valid,
|
|
379
379
|
invalid: r.value.invalid,
|
|
@@ -408,10 +408,10 @@ function ft(e, t) {
|
|
|
408
408
|
})
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
var
|
|
412
|
-
...Qe,
|
|
411
|
+
var mt = {
|
|
413
412
|
...$e,
|
|
414
|
-
|
|
413
|
+
...et,
|
|
414
|
+
...Q,
|
|
415
415
|
modelValue: {
|
|
416
416
|
type: Boolean,
|
|
417
417
|
default: void 0
|
|
@@ -425,14 +425,14 @@ var pt = {
|
|
|
425
425
|
default: H.menu,
|
|
426
426
|
validator: (e) => Object.values(H).includes(e)
|
|
427
427
|
}
|
|
428
|
-
},
|
|
428
|
+
}, ht = { focusOnHover: {
|
|
429
429
|
type: Boolean,
|
|
430
430
|
default: !1
|
|
431
|
-
} },
|
|
432
|
-
...
|
|
433
|
-
...
|
|
434
|
-
...
|
|
435
|
-
|
|
431
|
+
} }, gt = {
|
|
432
|
+
...q,
|
|
433
|
+
...Ue,
|
|
434
|
+
...Qe,
|
|
435
|
+
...Q,
|
|
436
436
|
deselectHintLabel: { type: String },
|
|
437
437
|
selectHintLabel: { type: String },
|
|
438
438
|
selectedHintLabel: { type: String },
|
|
@@ -441,12 +441,12 @@ var pt = {
|
|
|
441
441
|
default: !1
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
|
-
function
|
|
445
|
-
let t =
|
|
446
|
-
return
|
|
444
|
+
function _t(e) {
|
|
445
|
+
let t = ue();
|
|
446
|
+
return S(() => String(e?.value || t));
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r =
|
|
448
|
+
function vt(e, t) {
|
|
449
|
+
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = S(() => n && h(t)), i = S(() => r.value ? "manual" : void 0);
|
|
450
450
|
function a() {
|
|
451
451
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
452
452
|
}
|
|
@@ -467,8 +467,8 @@ function _t(e, t) {
|
|
|
467
467
|
hide: s
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
let o =
|
|
470
|
+
function yt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
471
|
+
let o = _e();
|
|
472
472
|
return {
|
|
473
473
|
bus: o,
|
|
474
474
|
component: O({
|
|
@@ -483,27 +483,27 @@ function vt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
483
483
|
});
|
|
484
484
|
},
|
|
485
485
|
render() {
|
|
486
|
-
return n(
|
|
486
|
+
return n(ae, {}, this.$slots.default?.());
|
|
487
487
|
}
|
|
488
488
|
})
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
let r =
|
|
491
|
+
function bt({ role: e, ...n }) {
|
|
492
|
+
let r = S(() => e.value === H.listbox ? U.option : U.presentation);
|
|
493
493
|
return t(K, {
|
|
494
494
|
role: r,
|
|
495
495
|
...n
|
|
496
496
|
}), { itemRole: r };
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
t(
|
|
500
|
-
role:
|
|
498
|
+
function xt({ expanded: e, onAction: n }) {
|
|
499
|
+
t(Le, {
|
|
500
|
+
role: x(Ie.menuitem),
|
|
501
501
|
expanded: e,
|
|
502
502
|
onAction: n
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
return
|
|
505
|
+
function St(e, t, n) {
|
|
506
|
+
return S(() => {
|
|
507
507
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
508
508
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
509
509
|
t && (r[`${e}--${t}`] = !0);
|
|
@@ -512,21 +512,21 @@ function xt(e, t, n) {
|
|
|
512
512
|
}), r;
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ct() {
|
|
516
516
|
return e(K, {});
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return e(
|
|
518
|
+
function wt() {
|
|
519
|
+
return e(Le, {});
|
|
520
520
|
}
|
|
521
|
-
var
|
|
521
|
+
var Tt = ["popover"], Et = [
|
|
522
522
|
"id",
|
|
523
523
|
"tabindex",
|
|
524
524
|
"role",
|
|
525
525
|
"aria-labelledby"
|
|
526
|
-
],
|
|
526
|
+
], Dt = /* @__PURE__ */ O({
|
|
527
527
|
name: "VvDropdown",
|
|
528
528
|
inheritAttrs: !1,
|
|
529
|
-
props:
|
|
529
|
+
props: mt,
|
|
530
530
|
emits: [
|
|
531
531
|
"update:modelValue",
|
|
532
532
|
"beforeEnter",
|
|
@@ -545,12 +545,12 @@ var wt = ["popover"], Tt = [
|
|
|
545
545
|
"leaveCancelled"
|
|
546
546
|
],
|
|
547
547
|
setup(e, { expose: t, emit: n }) {
|
|
548
|
-
let d = e, h = n, { id: g } =
|
|
548
|
+
let d = e, h = n, { id: g } = pe(d), te = _t(g), ne = l(), _ = x(), v = x(), re = x(), y = x(), C = S({
|
|
549
549
|
get: () => d.reference ?? _.value,
|
|
550
550
|
set: (e) => {
|
|
551
551
|
_.value = e;
|
|
552
552
|
}
|
|
553
|
-
}), { isTopLayer:
|
|
553
|
+
}), { isTopLayer: w, popover: ce, show: le, hide: ue } = vt(v, () => d.topLayer), de = S(() => w.value ? R.fixed : d.strategy), E = x(!1);
|
|
554
554
|
u(() => {
|
|
555
555
|
we(v.value, () => {
|
|
556
556
|
E.value = globalThis.getComputedStyle(v.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
@@ -562,65 +562,65 @@ var wt = ["popover"], Tt = [
|
|
|
562
562
|
function O(e, t, n) {
|
|
563
563
|
return typeof e == "boolean" ? t() : n(e);
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function A(e) {
|
|
566
566
|
return !e.width && !e.height;
|
|
567
567
|
}
|
|
568
|
-
let
|
|
568
|
+
let _e = {
|
|
569
569
|
name: "uncap",
|
|
570
570
|
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
571
571
|
let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
|
|
572
|
-
return n.uncap || !i ||
|
|
572
|
+
return n.uncap || !i || A(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
|
|
573
573
|
data: { uncapped: !0 },
|
|
574
574
|
reset: { rects: !0 }
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
577
|
};
|
|
578
|
-
function
|
|
578
|
+
function F(e) {
|
|
579
579
|
return d.triggerWidth && !E.value ? e.reference.width : 0;
|
|
580
580
|
}
|
|
581
|
-
let
|
|
581
|
+
let Oe = {
|
|
582
582
|
name: "triggerWidth",
|
|
583
583
|
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
584
|
-
let { style: r } = e.floating, i =
|
|
584
|
+
let { style: r } = e.floating, i = F(t), a = Number.parseFloat(r.width) || 0;
|
|
585
585
|
return n.triggerWidth || Math.abs(i - a) < .01 ? {} : (r.width = i ? `${i}px` : "", { reset: { rects: !0 } });
|
|
586
586
|
}
|
|
587
|
-
},
|
|
587
|
+
}, ke = S(() => {
|
|
588
588
|
let e = [];
|
|
589
|
-
d.triggerWidth && e.push(
|
|
589
|
+
d.triggerWidth && e.push(Oe), d.size && e.push(_e), d.offset && e.push(["string", "number"].includes(typeof d.offset) ? ye(Number(d.offset)) : ye(d.offset));
|
|
590
590
|
let t = typeof d.size == "object" ? d.size.padding : void 0;
|
|
591
|
-
if (d.autoPlacement ? e.push(O(d.autoPlacement, () =>
|
|
591
|
+
if (d.autoPlacement ? e.push(O(d.autoPlacement, () => be(), (e) => be(e))) : d.flip && e.push(O(d.flip, () => me({
|
|
592
592
|
fallbackStrategy: "initialPlacement",
|
|
593
593
|
padding: t
|
|
594
|
-
}), (e) =>
|
|
594
|
+
}), (e) => me({
|
|
595
595
|
padding: t,
|
|
596
596
|
...e
|
|
597
|
-
}))), d.shift && e.push(O(d.shift, () =>
|
|
597
|
+
}))), d.shift && e.push(O(d.shift, () => N(), (e) => N(e))), d.size) {
|
|
598
598
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
599
|
-
if (
|
|
599
|
+
if (A(r.floating) || E.value) return;
|
|
600
600
|
let { style: i } = n.floating;
|
|
601
|
-
i.maxWidth =
|
|
601
|
+
i.maxWidth = F(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
602
602
|
};
|
|
603
|
-
e.push(O(d.size, () =>
|
|
603
|
+
e.push(O(d.size, () => he({ apply: t }), (e) => he({
|
|
604
604
|
...e,
|
|
605
605
|
apply: (n) => (t(n), e?.apply?.(n))
|
|
606
606
|
})));
|
|
607
607
|
}
|
|
608
|
-
return d.arrow && e.push(
|
|
609
|
-
}), { x:
|
|
610
|
-
placement:
|
|
611
|
-
strategy:
|
|
612
|
-
middleware:
|
|
613
|
-
}),
|
|
608
|
+
return d.arrow && e.push(xe({ element: re })), e;
|
|
609
|
+
}), { x: Ae, y: je, middlewareData: I, placement: Me, strategy: Ne, update: L } = ve(C, v, {
|
|
610
|
+
placement: S(() => d.placement),
|
|
611
|
+
strategy: de,
|
|
612
|
+
middleware: ke
|
|
613
|
+
}), Pe = S(() => {
|
|
614
614
|
if (!E.value) return {
|
|
615
|
-
position:
|
|
616
|
-
top: `${
|
|
617
|
-
left: `${
|
|
615
|
+
position: Ne.value,
|
|
616
|
+
top: `${je.value ?? 0}px`,
|
|
617
|
+
left: `${Ae.value ?? 0}px`
|
|
618
618
|
};
|
|
619
619
|
});
|
|
620
620
|
m(() => d.triggerWidth, (e) => {
|
|
621
621
|
!e && v.value && (v.value.style.width = "");
|
|
622
622
|
});
|
|
623
|
-
let B =
|
|
623
|
+
let B = S(() => Me.value.split("-")[0]), Fe = S(() => {
|
|
624
624
|
if (E.value) return;
|
|
625
625
|
let e = {
|
|
626
626
|
[z.top]: z.bottom,
|
|
@@ -633,30 +633,30 @@ var wt = ["popover"], Tt = [
|
|
|
633
633
|
top: I.value.arrow?.y === void 0 ? void 0 : `${I.value.arrow?.y}px`,
|
|
634
634
|
[e]: `${-(re.value?.offsetWidth ?? 0) / 2}px`
|
|
635
635
|
};
|
|
636
|
-
}), V =
|
|
637
|
-
get: () => V.value ??
|
|
636
|
+
}), V = Se(d, "modelValue", h), Ie = x(!1), U = S({
|
|
637
|
+
get: () => V.value ?? Ie.value,
|
|
638
638
|
set: (e) => {
|
|
639
|
-
V.value === void 0 ?
|
|
639
|
+
V.value === void 0 ? Ie.value = e : V.value = e;
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
m([
|
|
643
643
|
U,
|
|
644
|
-
|
|
644
|
+
C,
|
|
645
645
|
v,
|
|
646
|
-
|
|
646
|
+
de
|
|
647
647
|
], ([e, t, n, r], i, a) => {
|
|
648
|
-
e && t && n && a(
|
|
648
|
+
e && t && n && a(ge(t, n, L, { animationFrame: r === R.fixed }));
|
|
649
649
|
}, {
|
|
650
650
|
flush: "post",
|
|
651
651
|
immediate: !0
|
|
652
|
-
}), we(
|
|
652
|
+
}), we(y, () => {
|
|
653
653
|
U.value && L();
|
|
654
654
|
}, {
|
|
655
655
|
childList: !0,
|
|
656
656
|
subtree: !0,
|
|
657
657
|
characterData: !0
|
|
658
|
-
}),
|
|
659
|
-
U.value &&
|
|
658
|
+
}), ie(() => {
|
|
659
|
+
U.value && le();
|
|
660
660
|
});
|
|
661
661
|
function W() {
|
|
662
662
|
U.value = !0;
|
|
@@ -667,79 +667,83 @@ var wt = ["popover"], Tt = [
|
|
|
667
667
|
function K() {
|
|
668
668
|
U.value = !U.value;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
|
|
670
|
+
function Le(e) {
|
|
671
|
+
C.value = e;
|
|
672
672
|
}
|
|
673
673
|
Te(v, () => {
|
|
674
674
|
!d.keepOpen && U.value && (U.value = !1);
|
|
675
|
-
}, { ignore: [
|
|
676
|
-
let
|
|
675
|
+
}, { ignore: [C] });
|
|
676
|
+
let Re = S(() => C.value?.getAttribute?.("id") ?? void 0), ze = S(() => ({
|
|
677
677
|
"aria-controls": te.value,
|
|
678
678
|
"aria-haspopup": !0,
|
|
679
679
|
"aria-expanded": U.value
|
|
680
|
-
})), { component:
|
|
681
|
-
reference:
|
|
680
|
+
})), { component: Be, bus: Ve } = yt({
|
|
681
|
+
reference: C,
|
|
682
682
|
id: te,
|
|
683
683
|
expanded: U,
|
|
684
|
-
aria:
|
|
684
|
+
aria: ze
|
|
685
685
|
});
|
|
686
|
-
|
|
687
|
-
let { role:
|
|
688
|
-
function
|
|
686
|
+
Ve.on("click", K);
|
|
687
|
+
let { role: q, modifiers: He } = pe(d), Ue = St("vv-dropdown", He, S(() => ({ arrow: d.arrow }))), { focused: We } = Ee(v);
|
|
688
|
+
function J(e) {
|
|
689
689
|
return e?.getRootNode()?.activeElement ?? null;
|
|
690
690
|
}
|
|
691
|
-
let
|
|
692
|
-
function
|
|
691
|
+
let Ge = "a[href], button, input:not([type=\"hidden\"]), textarea, select, details, [tabindex]:not([tabindex=\"-1\"])";
|
|
692
|
+
function Y(e) {
|
|
693
693
|
return !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true";
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return e ? [...e.querySelectorAll(
|
|
695
|
+
function X(e) {
|
|
696
|
+
return e ? [...e.querySelectorAll(Ge)].filter(Y) : [];
|
|
697
|
+
}
|
|
698
|
+
let Z = x(!1);
|
|
699
|
+
function Q() {
|
|
700
|
+
Z.value = !0, setTimeout(() => {
|
|
701
|
+
Z.value = !1;
|
|
702
|
+
});
|
|
697
703
|
}
|
|
698
|
-
let
|
|
699
|
-
function
|
|
700
|
-
let e =
|
|
704
|
+
let $;
|
|
705
|
+
function Ke() {
|
|
706
|
+
let e = C.value?.$el ?? C.value;
|
|
701
707
|
if (e instanceof HTMLElement) {
|
|
702
|
-
if (e.matches(
|
|
703
|
-
let t = e.querySelector(`[aria-controls="${CSS.escape(String(te.value))}"]`), n = t &&
|
|
708
|
+
if (e.matches(Ge) && Y(e)) return e;
|
|
709
|
+
let t = e.querySelector(`[aria-controls="${CSS.escape(String(te.value))}"]`), n = t && Y(t) ? t : X(e).find((e) => !v.value?.contains(e));
|
|
704
710
|
if (n) return n;
|
|
705
711
|
}
|
|
706
712
|
return $?.isConnected ? $ : void 0;
|
|
707
713
|
}
|
|
708
|
-
function
|
|
709
|
-
let e =
|
|
710
|
-
e && (Q
|
|
711
|
-
Q.value = !1;
|
|
712
|
-
}));
|
|
714
|
+
function qe() {
|
|
715
|
+
let e = Ke();
|
|
716
|
+
e && (Q(), e.focus({ preventScroll: !0 }));
|
|
713
717
|
}
|
|
714
|
-
function
|
|
715
|
-
return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ??
|
|
718
|
+
function Je(e) {
|
|
719
|
+
return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ?? J(v.value)?.closest(".vv-dropdown") ?? void 0;
|
|
716
720
|
}
|
|
717
|
-
function
|
|
721
|
+
function Ye() {
|
|
718
722
|
o(() => {
|
|
719
|
-
let e =
|
|
723
|
+
let e = X(v.value);
|
|
720
724
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
721
725
|
});
|
|
722
726
|
}
|
|
723
|
-
function
|
|
727
|
+
function Xe() {
|
|
724
728
|
o(() => {
|
|
725
|
-
let e =
|
|
729
|
+
let e = X(y.value);
|
|
726
730
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
727
731
|
});
|
|
728
732
|
}
|
|
729
|
-
function
|
|
733
|
+
function Ze() {
|
|
730
734
|
o(() => {
|
|
731
|
-
if (
|
|
732
|
-
let e =
|
|
735
|
+
if (We.value) {
|
|
736
|
+
let e = X(v.value), t = J(v.value);
|
|
733
737
|
if (e.length === 0 || !t) return;
|
|
734
738
|
let n = e.indexOf(t);
|
|
735
739
|
n < e.length - 1 ? e[n + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
736
740
|
}
|
|
737
741
|
});
|
|
738
742
|
}
|
|
739
|
-
function
|
|
743
|
+
function Qe() {
|
|
740
744
|
o(() => {
|
|
741
|
-
if (
|
|
742
|
-
let e =
|
|
745
|
+
if (We.value) {
|
|
746
|
+
let e = X(v.value), t = J(v.value);
|
|
743
747
|
if (e.length === 0 || !t) return;
|
|
744
748
|
let n = e.indexOf(t);
|
|
745
749
|
if (n > 0) {
|
|
@@ -752,46 +756,46 @@ var wt = ["popover"], Tt = [
|
|
|
752
756
|
}
|
|
753
757
|
m(U, (e) => {
|
|
754
758
|
if (e) {
|
|
755
|
-
let e =
|
|
759
|
+
let e = J(v.value) ?? document.activeElement;
|
|
756
760
|
$ = e instanceof HTMLElement && !v.value?.contains(e) ? e : void 0;
|
|
757
761
|
}
|
|
758
|
-
e && d.autofocusFirst &&
|
|
762
|
+
e && d.autofocusFirst && Ye();
|
|
759
763
|
}), t({
|
|
760
764
|
toggle: K,
|
|
761
765
|
show: W,
|
|
762
766
|
hide: G,
|
|
763
|
-
init:
|
|
764
|
-
focusFirst:
|
|
765
|
-
focusFirstListElement:
|
|
766
|
-
focusNext:
|
|
767
|
-
focusPrev:
|
|
767
|
+
init: Le,
|
|
768
|
+
focusFirst: Ye,
|
|
769
|
+
focusFirstListElement: Xe,
|
|
770
|
+
focusNext: Ze,
|
|
771
|
+
focusPrev: Qe,
|
|
768
772
|
customPosition: E,
|
|
769
|
-
restoringFocus:
|
|
773
|
+
restoringFocus: Z
|
|
770
774
|
});
|
|
771
|
-
let
|
|
772
|
-
|
|
773
|
-
function
|
|
774
|
-
if (!U.value || d.keepOpen ||
|
|
775
|
-
let e =
|
|
776
|
-
G(), t &&
|
|
775
|
+
let $e = P(v), { onAction: et } = Ct(), { expanded: tt, onAction: nt } = wt();
|
|
776
|
+
nt && xt({ expanded: tt });
|
|
777
|
+
function rt() {
|
|
778
|
+
if (!U.value || d.keepOpen || q.value === H.listbox) return;
|
|
779
|
+
let e = J(v.value), t = !!e && !!v.value?.contains(e);
|
|
780
|
+
G(), t && qe(), et?.();
|
|
777
781
|
}
|
|
778
|
-
let { itemRole:
|
|
779
|
-
role:
|
|
782
|
+
let { itemRole: it } = bt({
|
|
783
|
+
role: q,
|
|
780
784
|
expanded: U,
|
|
781
|
-
focused:
|
|
782
|
-
hovered:
|
|
783
|
-
onAction:
|
|
785
|
+
focused: We,
|
|
786
|
+
hovered: $e,
|
|
787
|
+
onAction: rt
|
|
784
788
|
});
|
|
785
|
-
|
|
789
|
+
De("Escape", (e) => {
|
|
786
790
|
if (!U.value) return;
|
|
787
|
-
let t =
|
|
788
|
-
t && t !== v.value && v.value?.contains(t) || (e.preventDefault(), G(), t === v.value &&
|
|
789
|
-
}),
|
|
790
|
-
U.value &&
|
|
791
|
-
}),
|
|
792
|
-
U.value &&
|
|
791
|
+
let t = Je(e);
|
|
792
|
+
t && t !== v.value && v.value?.contains(t) || (e.preventDefault(), G(), t === v.value && qe());
|
|
793
|
+
}), De("ArrowDown", (e) => {
|
|
794
|
+
U.value && Je(e) === v.value && (e.preventDefault(), Ze());
|
|
795
|
+
}), De("ArrowUp", (e) => {
|
|
796
|
+
U.value && Je(e) === v.value && (e.preventDefault(), Qe());
|
|
793
797
|
});
|
|
794
|
-
function
|
|
798
|
+
function at(e, t) {
|
|
795
799
|
if (e instanceof HTMLElement && e.isContentEditable) return !0;
|
|
796
800
|
switch (e.tagName) {
|
|
797
801
|
case "BUTTON":
|
|
@@ -804,17 +808,49 @@ var wt = ["popover"], Tt = [
|
|
|
804
808
|
default: return !1;
|
|
805
809
|
}
|
|
806
810
|
}
|
|
807
|
-
|
|
808
|
-
if (!U.value ||
|
|
809
|
-
let t =
|
|
810
|
-
t instanceof HTMLElement && !
|
|
811
|
+
De([" ", "Enter"], (e) => {
|
|
812
|
+
if (!U.value || Je(e) !== v.value) return;
|
|
813
|
+
let t = J(v.value);
|
|
814
|
+
t instanceof HTMLElement && !at(t, e.key) && t.click();
|
|
815
|
+
});
|
|
816
|
+
let ot = !1;
|
|
817
|
+
Ce("keydown", (e) => {
|
|
818
|
+
e.key !== "Tab" || !U.value || (ot = !0, setTimeout(() => {
|
|
819
|
+
ot = !1;
|
|
820
|
+
}));
|
|
821
|
+
}, {
|
|
822
|
+
capture: !0,
|
|
823
|
+
passive: !0
|
|
824
|
+
});
|
|
825
|
+
function st(e) {
|
|
826
|
+
return [...e.querySelectorAll("slot")].flatMap((e) => {
|
|
827
|
+
let t = e.assignedElements({ flatten: !0 });
|
|
828
|
+
return [...t, ...t.flatMap(st)];
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
function ct(e) {
|
|
832
|
+
let t = v.value;
|
|
833
|
+
if (!t) return !1;
|
|
834
|
+
let n = new Set(st(t)), r = e;
|
|
835
|
+
for (; r;) {
|
|
836
|
+
if (r === t || n.has(r)) return !0;
|
|
837
|
+
r = r instanceof ShadowRoot ? r.host : r.assignedSlot ?? r.parentNode;
|
|
838
|
+
}
|
|
839
|
+
return !1;
|
|
840
|
+
}
|
|
841
|
+
Ce(v, "focusout", (e) => {
|
|
842
|
+
let t = e.relatedTarget;
|
|
843
|
+
!ot || !U.value || d.keepOpen || !(t instanceof Node) || ct(t) || (Q(), G());
|
|
844
|
+
}, {
|
|
845
|
+
capture: !0,
|
|
846
|
+
passive: !0
|
|
811
847
|
});
|
|
812
|
-
let
|
|
848
|
+
let lt = {
|
|
813
849
|
"before-enter": () => {
|
|
814
850
|
h("beforeExpand"), h("beforeEnter");
|
|
815
851
|
},
|
|
816
852
|
"after-leave": () => {
|
|
817
|
-
U.value ||
|
|
853
|
+
U.value || ue(), h("afterCollapse"), h("afterLeave");
|
|
818
854
|
},
|
|
819
855
|
enter: () => {
|
|
820
856
|
h("enter");
|
|
@@ -835,29 +871,29 @@ var wt = ["popover"], Tt = [
|
|
|
835
871
|
h("leaveCancelled");
|
|
836
872
|
}
|
|
837
873
|
};
|
|
838
|
-
return (e, t) => (
|
|
874
|
+
return (e, t) => (M(), j(ae, null, [ee(k(Be), null, {
|
|
839
875
|
default: T(() => [c(e.$slots, "default", r(i({
|
|
840
|
-
init:
|
|
876
|
+
init: Le,
|
|
841
877
|
show: W,
|
|
842
878
|
hide: G,
|
|
843
879
|
toggle: K,
|
|
844
880
|
expanded: k(U),
|
|
845
|
-
aria: k(
|
|
881
|
+
aria: k(ze)
|
|
846
882
|
})))]),
|
|
847
883
|
_: 3
|
|
848
|
-
}), ee(fe, p({ name: e.transitionName }, s(
|
|
849
|
-
default: T(() => [
|
|
884
|
+
}), ee(fe, p({ name: e.transitionName }, s(lt), { persisted: "" }), {
|
|
885
|
+
default: T(() => [se(b("div", {
|
|
850
886
|
ref_key: "floatingEl",
|
|
851
887
|
ref: v,
|
|
852
|
-
popover: k(
|
|
853
|
-
style: f(k(
|
|
854
|
-
class: a(k(
|
|
888
|
+
popover: k(ce),
|
|
889
|
+
style: f(k(Pe)),
|
|
890
|
+
class: a(k(Ue))
|
|
855
891
|
}, [
|
|
856
|
-
d.arrow ? (
|
|
892
|
+
d.arrow ? (M(), j("div", {
|
|
857
893
|
key: 0,
|
|
858
894
|
ref_key: "arrowEl",
|
|
859
895
|
ref: re,
|
|
860
|
-
style: f(k(
|
|
896
|
+
style: f(k(Fe)),
|
|
861
897
|
class: "vv-dropdown__arrow"
|
|
862
898
|
}, null, 4)) : D("v-if", !0),
|
|
863
899
|
c(e.$slots, "before", r(i({
|
|
@@ -866,73 +902,73 @@ var wt = ["popover"], Tt = [
|
|
|
866
902
|
toggle: K,
|
|
867
903
|
expanded: k(U)
|
|
868
904
|
}))),
|
|
869
|
-
|
|
905
|
+
b("div", p(k(ne), {
|
|
870
906
|
id: k(te),
|
|
871
907
|
ref_key: "listEl",
|
|
872
|
-
ref:
|
|
908
|
+
ref: y,
|
|
873
909
|
tabindex: k(U) ? void 0 : -1,
|
|
874
|
-
role: k(
|
|
875
|
-
"aria-labelledby": k(
|
|
910
|
+
role: k(q),
|
|
911
|
+
"aria-labelledby": k(Re),
|
|
876
912
|
class: "vv-dropdown__list"
|
|
877
913
|
}), [c(e.$slots, "items", r(i({
|
|
878
914
|
show: W,
|
|
879
915
|
hide: G,
|
|
880
916
|
toggle: K,
|
|
881
917
|
expanded: k(U),
|
|
882
|
-
role: k(
|
|
883
|
-
})))], 16,
|
|
918
|
+
role: k(it)
|
|
919
|
+
})))], 16, Et),
|
|
884
920
|
c(e.$slots, "after", r(i({
|
|
885
921
|
show: W,
|
|
886
922
|
hide: G,
|
|
887
923
|
toggle: K,
|
|
888
924
|
expanded: k(U)
|
|
889
925
|
})))
|
|
890
|
-
], 14,
|
|
926
|
+
], 14, Tt), [[oe, k(U)]])]),
|
|
891
927
|
_: 3
|
|
892
928
|
}, 16, ["name"])], 64));
|
|
893
929
|
}
|
|
894
|
-
}),
|
|
930
|
+
}), Ot = /* @__PURE__ */ O({
|
|
895
931
|
name: "VvDropdownItem",
|
|
896
|
-
props:
|
|
932
|
+
props: ht,
|
|
897
933
|
setup(e) {
|
|
898
|
-
let t = e, { role: n, expanded: r, onAction: i } =
|
|
899
|
-
|
|
934
|
+
let t = e, { role: n, expanded: r, onAction: i } = Ct(), a = x(null);
|
|
935
|
+
xt({
|
|
900
936
|
expanded: r,
|
|
901
937
|
onAction: i
|
|
902
938
|
});
|
|
903
|
-
let o =
|
|
939
|
+
let o = P(a), { focused: s } = F(a), { focused: l } = Ee(a);
|
|
904
940
|
return m(o, (e) => {
|
|
905
941
|
e && t.focusOnHover && (s.value = !0);
|
|
906
|
-
}), (e, t) => (
|
|
942
|
+
}), (e, t) => (M(), j("div", p({ role: k(n) }, {
|
|
907
943
|
ref_key: "element",
|
|
908
944
|
ref: a,
|
|
909
945
|
class: ["vv-dropdown__item", { "focus-visible": k(s) || k(l) }]
|
|
910
946
|
}), [c(e.$slots, "default")], 16));
|
|
911
947
|
}
|
|
912
|
-
}),
|
|
948
|
+
}), kt = ["title"], At = /* @__PURE__ */ O({
|
|
913
949
|
name: "VvDropdownOption",
|
|
914
|
-
props:
|
|
950
|
+
props: gt,
|
|
915
951
|
setup(e) {
|
|
916
|
-
let t = e, { modifiers: n } =
|
|
952
|
+
let t = e, { modifiers: n } = pe(t), o = St("vv-dropdown-option", n, S(() => ({
|
|
917
953
|
disabled: t.disabled,
|
|
918
954
|
selected: t.selected,
|
|
919
955
|
unselectable: t.unselectable && t.selected
|
|
920
|
-
}))), s =
|
|
921
|
-
return (e, t) => (
|
|
956
|
+
}))), s = S(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
957
|
+
return (e, t) => (M(), _(Ot, {
|
|
922
958
|
class: a(k(o)),
|
|
923
959
|
tabindex: e.disabled ? -1 : 0,
|
|
924
960
|
"aria-selected": e.selected,
|
|
925
961
|
"aria-disabled": e.disabled,
|
|
926
962
|
"focus-on-hover": e.focusOnHover
|
|
927
963
|
}, {
|
|
928
|
-
default: T(() => [c(e.$slots, "default"),
|
|
964
|
+
default: T(() => [c(e.$slots, "default"), b("span", {
|
|
929
965
|
class: "vv-dropdown-option__hint",
|
|
930
966
|
title: k(s)
|
|
931
967
|
}, [c(e.$slots, "hint", r(i({
|
|
932
968
|
disabled: e.disabled,
|
|
933
969
|
selected: e.selected,
|
|
934
970
|
unselectable: e.unselectable
|
|
935
|
-
})), () => [
|
|
971
|
+
})), () => [A(w(k(s)), 1)])], 8, kt)]),
|
|
936
972
|
_: 3
|
|
937
973
|
}, 8, [
|
|
938
974
|
"class",
|
|
@@ -943,10 +979,10 @@ var wt = ["popover"], Tt = [
|
|
|
943
979
|
]));
|
|
944
980
|
}
|
|
945
981
|
});
|
|
946
|
-
function
|
|
982
|
+
function jt() {
|
|
947
983
|
return e(W, void 0);
|
|
948
984
|
}
|
|
949
|
-
var
|
|
985
|
+
var Mt = /* @__PURE__ */ O({
|
|
950
986
|
name: "VvIcon",
|
|
951
987
|
props: /* @__PURE__ */ d({
|
|
952
988
|
name: {},
|
|
@@ -965,14 +1001,14 @@ var jt = /* @__PURE__ */ O({
|
|
|
965
1001
|
onLoad: { type: Function },
|
|
966
1002
|
svg: {},
|
|
967
1003
|
modifiers: {}
|
|
968
|
-
},
|
|
1004
|
+
}, Ne),
|
|
969
1005
|
setup(e) {
|
|
970
|
-
let t = e, n =
|
|
1006
|
+
let t = e, n = S(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = x(!0), i = jt(), { modifiers: a } = pe(t), o = St("vv-icon", a), s = S(() => t.provider || i?.iconsProvider), c = S(() => {
|
|
971
1007
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
972
|
-
if (
|
|
1008
|
+
if (Ae(n)) return n;
|
|
973
1009
|
let r = i?.iconsCollections.find((t) => {
|
|
974
1010
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
975
|
-
return
|
|
1011
|
+
return Ae(n);
|
|
976
1012
|
});
|
|
977
1013
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
978
1014
|
});
|
|
@@ -981,17 +1017,17 @@ var jt = /* @__PURE__ */ O({
|
|
|
981
1017
|
}
|
|
982
1018
|
function u(e) {
|
|
983
1019
|
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
984
|
-
n && r &&
|
|
1020
|
+
n && r && je(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
985
1021
|
body: r,
|
|
986
1022
|
height: n.viewBox.baseVal.height,
|
|
987
1023
|
width: n.viewBox.baseVal.width
|
|
988
1024
|
});
|
|
989
1025
|
}
|
|
990
|
-
return i && t.src && !
|
|
1026
|
+
return i && t.src && !Ae(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
991
1027
|
e && u(e), r.value = !0;
|
|
992
1028
|
}).catch((e) => {
|
|
993
1029
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
994
|
-
})), t.svg && u(t.svg), (t, i) => k(r) ? (
|
|
1030
|
+
})), t.svg && u(t.svg), (t, i) => k(r) ? (M(), _(k(I), p({
|
|
995
1031
|
key: 0,
|
|
996
1032
|
class: k(o)
|
|
997
1033
|
}, {
|
|
@@ -1007,7 +1043,7 @@ var jt = /* @__PURE__ */ O({
|
|
|
1007
1043
|
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : D("v-if", !0);
|
|
1008
1044
|
}
|
|
1009
1045
|
});
|
|
1010
|
-
function
|
|
1046
|
+
function Nt(e, t, n) {
|
|
1011
1047
|
let r = t;
|
|
1012
1048
|
if (Array.isArray(e) && e.length) {
|
|
1013
1049
|
let i = e[0];
|
|
@@ -1019,21 +1055,21 @@ function Mt(e, t, n) {
|
|
|
1019
1055
|
}
|
|
1020
1056
|
return r;
|
|
1021
1057
|
}
|
|
1022
|
-
function
|
|
1023
|
-
let r =
|
|
1058
|
+
function Pt(e, t, n) {
|
|
1059
|
+
let r = jt(), i = S(() => {
|
|
1024
1060
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1025
1061
|
});
|
|
1026
|
-
return
|
|
1062
|
+
return S(() => {
|
|
1027
1063
|
if (i.value === void 0) return n;
|
|
1028
1064
|
let e = i.value, r = t, a = n;
|
|
1029
1065
|
return Object.keys(r).reduce((t, n) => {
|
|
1030
1066
|
let i = a[n];
|
|
1031
|
-
return t[n] = n in e ?
|
|
1067
|
+
return t[n] = n in e ? Nt(r[n], i, e[n]) : i, t;
|
|
1032
1068
|
}, {});
|
|
1033
1069
|
});
|
|
1034
1070
|
}
|
|
1035
|
-
function
|
|
1036
|
-
let a, o, s =
|
|
1071
|
+
function Ft(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
1072
|
+
let a, o, s = S(() => {
|
|
1037
1073
|
let e = h(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
1038
1074
|
return Number.isNaN(t) ? 0 : t;
|
|
1039
1075
|
});
|
|
@@ -1045,8 +1081,8 @@ function Pt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
1045
1081
|
let e = i(o.value);
|
|
1046
1082
|
return c(), t("update:modelValue", e), e;
|
|
1047
1083
|
}
|
|
1048
|
-
return
|
|
1049
|
-
model:
|
|
1084
|
+
return le(c), {
|
|
1085
|
+
model: S({
|
|
1050
1086
|
get: () => r(e?.value),
|
|
1051
1087
|
set: (e) => {
|
|
1052
1088
|
s.value <= 0 ? (c(), t("update:modelValue", i(e))) : (o = { value: e }, a && clearTimeout(a), a = setTimeout(l, s.value));
|
|
@@ -1056,45 +1092,45 @@ function Pt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
1056
1092
|
cancel: c
|
|
1057
1093
|
};
|
|
1058
1094
|
}
|
|
1059
|
-
function
|
|
1060
|
-
let n =
|
|
1095
|
+
function It(e, t) {
|
|
1096
|
+
let n = S(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = S(() => t?.value === B.before ? n.value : void 0), i = S(() => t?.value === B.after ? n.value : void 0);
|
|
1061
1097
|
return {
|
|
1062
1098
|
hasIcon: n,
|
|
1063
|
-
hasIconLeft:
|
|
1064
|
-
hasIconRight:
|
|
1065
|
-
hasIconTop:
|
|
1066
|
-
hasIconBottom:
|
|
1099
|
+
hasIconLeft: S(() => t?.value === z.left ? n.value : void 0),
|
|
1100
|
+
hasIconRight: S(() => t?.value === z.right ? n.value : void 0),
|
|
1101
|
+
hasIconTop: S(() => t?.value === z.top ? n.value : void 0),
|
|
1102
|
+
hasIconBottom: S(() => t?.value === z.bottom ? n.value : void 0),
|
|
1067
1103
|
hasIconBefore: r,
|
|
1068
1104
|
hasIconAfter: i
|
|
1069
1105
|
};
|
|
1070
1106
|
}
|
|
1071
|
-
function
|
|
1072
|
-
let { focused: n } =
|
|
1107
|
+
function Lt(e, t) {
|
|
1108
|
+
let { focused: n } = F(e);
|
|
1073
1109
|
return m(n, (n) => {
|
|
1074
1110
|
t(n ? "focus" : "blur", k(e));
|
|
1075
1111
|
}), { focused: n };
|
|
1076
1112
|
}
|
|
1077
|
-
function
|
|
1078
|
-
let n =
|
|
1113
|
+
function Rt(e, t) {
|
|
1114
|
+
let n = S(() => (k(e) ?? "").length), r = S(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
1079
1115
|
return {
|
|
1080
1116
|
length: n,
|
|
1081
1117
|
gap: r,
|
|
1082
|
-
formatted:
|
|
1118
|
+
formatted: S(() => 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)
|
|
1083
1119
|
};
|
|
1084
1120
|
}
|
|
1085
|
-
function
|
|
1086
|
-
let r =
|
|
1121
|
+
function zt(e, t = L.local, n) {
|
|
1122
|
+
let r = x();
|
|
1087
1123
|
n && (r.value = n);
|
|
1088
1124
|
let i;
|
|
1089
1125
|
return u(() => {
|
|
1090
1126
|
e && m(e, (e, n) => {
|
|
1091
1127
|
let a = k(t) === L.session ? sessionStorage : localStorage;
|
|
1092
|
-
n && n !== e && a.removeItem(n), e ? (i =
|
|
1128
|
+
n && n !== e && a.removeItem(n), e ? (i = ke(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
|
|
1093
1129
|
}, { immediate: !0 }), E(t) && m(t, (t, n) => {
|
|
1094
1130
|
if (e?.value) {
|
|
1095
1131
|
if (t) {
|
|
1096
1132
|
let n = t === L.session ? sessionStorage : localStorage;
|
|
1097
|
-
i =
|
|
1133
|
+
i = ke(e.value, i?.value ?? r.value, n);
|
|
1098
1134
|
}
|
|
1099
1135
|
n && n !== t && (n === L.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
1100
1136
|
}
|
|
@@ -1106,66 +1142,66 @@ function Rt(e, t = L.local, n) {
|
|
|
1106
1142
|
immediate: !0
|
|
1107
1143
|
}), r;
|
|
1108
1144
|
}
|
|
1109
|
-
var
|
|
1145
|
+
var Bt = ["for"], Vt = {
|
|
1110
1146
|
key: 0,
|
|
1111
1147
|
class: "vv-textarea__input-before"
|
|
1112
|
-
},
|
|
1148
|
+
}, Ht = { class: "vv-textarea__inner" }, Ut = ["id"], Wt = {
|
|
1113
1149
|
key: 1,
|
|
1114
1150
|
class: "vv-textarea__input-after"
|
|
1115
|
-
},
|
|
1151
|
+
}, Gt = {
|
|
1116
1152
|
key: 2,
|
|
1117
1153
|
class: "vv-textarea__limit"
|
|
1118
|
-
},
|
|
1154
|
+
}, Kt = { class: "flex-1" }, qt = ["title", "onClick"], Jt = /* @__PURE__ */ O({
|
|
1119
1155
|
name: "VvTextarea",
|
|
1120
|
-
props:
|
|
1121
|
-
emits:
|
|
1156
|
+
props: lt,
|
|
1157
|
+
emits: ct,
|
|
1122
1158
|
setup(e, { expose: t, emit: n }) {
|
|
1123
|
-
let o = e, s = n, l = ne(), u =
|
|
1124
|
-
t({ flush:
|
|
1125
|
-
let { hasIconBefore:
|
|
1126
|
-
m(
|
|
1127
|
-
let t =
|
|
1128
|
-
if (e || (t =
|
|
1129
|
-
else if (
|
|
1159
|
+
let o = e, s = n, l = ne(), u = jt(), d = Pt("VvTextarea", lt, o), f = x(), h = x(), g = x(), { id: ie, icon: C, iconPosition: oe, iconRemoveSuggestion: ce, labelRemoveSuggestion: le, label: ue, modelValue: de, count: fe, valid: O, invalid: me, loading: he, modifiers: ge, debounce: _e, minlength: ve, maxlength: ye, storageType: be } = pe(o), N = _t(ie), xe = S(() => `${N.value}-hint`), Se = S(() => o.floating && ut(o.placeholder) ? " " : o.placeholder), { model: P, flush: Ce } = Ft(de, s, _e);
|
|
1160
|
+
t({ flush: Ce });
|
|
1161
|
+
let { hasIconBefore: F, hasIconAfter: we } = It(C, oe), { hasIcon: Te } = It(ce), { focused: Ee } = Lt(f, s), De = S(() => Ee.value && !o.disabled && !o.readonly);
|
|
1162
|
+
m(De, (e) => {
|
|
1163
|
+
let t = P.value;
|
|
1164
|
+
if (e || (t = Ce() ?? t), e && d.value.selectOnFocus && f.value && f.value.select(), e && R.value?.size) g.value?.restoringFocus || g.value?.show();
|
|
1165
|
+
else if (R.value && !ut(t)) {
|
|
1130
1166
|
let e = o.maxSuggestions;
|
|
1131
|
-
|
|
1167
|
+
R.value.size >= e && !R.value.has(t) && (R.value = new Set([...R.value].slice(R.value.size - e + 1))), R.value.add(t);
|
|
1132
1168
|
}
|
|
1133
1169
|
});
|
|
1134
|
-
let ke =
|
|
1170
|
+
let ke = Oe(f);
|
|
1135
1171
|
m(ke, (e) => {
|
|
1136
|
-
e && o.autofocus && (
|
|
1172
|
+
e && o.autofocus && (Ee.value = !0);
|
|
1137
1173
|
});
|
|
1138
|
-
let { formatted: Ae } =
|
|
1174
|
+
let { formatted: Ae } = Rt(P, {
|
|
1139
1175
|
mode: fe?.value,
|
|
1140
|
-
upperLimit: Number(
|
|
1141
|
-
lowerLimit: Number(
|
|
1142
|
-
}),
|
|
1176
|
+
upperLimit: Number(ye?.value),
|
|
1177
|
+
lowerLimit: Number(ve?.value)
|
|
1178
|
+
}), je = S(() => !o.disabled && !o.readonly), I = S(() => je.value ? o.tabindex : -1), Me = S(() => !ut(de)), Ne = S(() => {
|
|
1143
1179
|
if (o.invalid === !0) return !0;
|
|
1144
1180
|
if (o.valid === !0) return !1;
|
|
1145
|
-
}),
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1181
|
+
}), L = S(() => o.storageKey ?? (u?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), R = zt(L, be, /* @__PURE__ */ new Set()), z = S(() => R.value ? [...R.value].filter((e) => ut(P.value) || `${e}`.toLowerCase().includes(`${P.value}`.toLowerCase()) && e !== P.value).reverse() : []), Pe = S(() => L?.value && R.value && R.value.size > 0);
|
|
1182
|
+
function B(e) {
|
|
1183
|
+
P.value = e, g.value?.hide(), s("suggestion:selected", e);
|
|
1148
1184
|
}
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1185
|
+
function Fe(e) {
|
|
1186
|
+
R.value?.delete(e), s("suggestion:removed", e);
|
|
1151
1187
|
}
|
|
1152
|
-
let { HintSlot:
|
|
1188
|
+
let { HintSlot: V, hasHintLabelOrSlot: Ie, hasInvalidLabelOrSlot: H, hintSlotScope: U } = pt(d, l), W = St("vv-textarea", ge, S(() => ({
|
|
1153
1189
|
valid: O.value,
|
|
1154
|
-
invalid:
|
|
1155
|
-
loading:
|
|
1190
|
+
invalid: me.value,
|
|
1191
|
+
loading: he.value,
|
|
1156
1192
|
disabled: o.disabled,
|
|
1157
1193
|
readonly: o.readonly,
|
|
1158
1194
|
required: o.required,
|
|
1159
|
-
"icon-before":
|
|
1160
|
-
"icon-after":
|
|
1161
|
-
floating: o.floating && !
|
|
1195
|
+
"icon-before": F.value !== void 0,
|
|
1196
|
+
"icon-after": we.value !== void 0,
|
|
1197
|
+
floating: o.floating && !ut(o.label),
|
|
1162
1198
|
dirty: Me.value,
|
|
1163
|
-
focus:
|
|
1199
|
+
focus: Ee.value,
|
|
1164
1200
|
resizable: o.resizable
|
|
1165
|
-
}))),
|
|
1201
|
+
}))), G = S(() => ({
|
|
1166
1202
|
name: o.name,
|
|
1167
|
-
placeholder:
|
|
1168
|
-
tabindex:
|
|
1203
|
+
placeholder: Se.value,
|
|
1204
|
+
tabindex: I.value,
|
|
1169
1205
|
disabled: o.disabled,
|
|
1170
1206
|
readonly: o.readonly,
|
|
1171
1207
|
required: o.required,
|
|
@@ -1178,72 +1214,72 @@ var zt = ["for"], Bt = {
|
|
|
1178
1214
|
spellcheck: o.spellcheck,
|
|
1179
1215
|
"aria-label": o.ariaLabel || void 0,
|
|
1180
1216
|
"aria-labelledby": o.ariaLabelledby || void 0,
|
|
1181
|
-
"aria-invalid":
|
|
1182
|
-
"aria-describedby": [o.ariaDescribedby,
|
|
1183
|
-
"aria-errormessage":
|
|
1184
|
-
})),
|
|
1217
|
+
"aria-invalid": Ne.value,
|
|
1218
|
+
"aria-describedby": [o.ariaDescribedby, Ie.value ? xe.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
1219
|
+
"aria-errormessage": H.value ? xe.value : void 0
|
|
1220
|
+
})), K = S(() => ({
|
|
1185
1221
|
valid: o.valid,
|
|
1186
1222
|
invalid: o.invalid,
|
|
1187
1223
|
modelValue: o.modelValue,
|
|
1188
1224
|
hintLabel: o.hintLabel,
|
|
1189
1225
|
maxlength: o.maxlength,
|
|
1190
1226
|
minlength: o.minlength,
|
|
1191
|
-
clear:
|
|
1227
|
+
clear: Le
|
|
1192
1228
|
}));
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1229
|
+
function Le() {
|
|
1230
|
+
P.value = void 0;
|
|
1195
1231
|
}
|
|
1196
|
-
return (e, t) => (
|
|
1197
|
-
k(
|
|
1232
|
+
return (e, t) => (M(), j("div", { class: a(k(W)) }, [
|
|
1233
|
+
k(ue) ? (M(), j("label", {
|
|
1198
1234
|
key: 0,
|
|
1199
|
-
for: k(
|
|
1235
|
+
for: k(N),
|
|
1200
1236
|
class: "vv-textarea__label"
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1237
|
+
}, w(k(ue)), 9, Bt)) : D("v-if", !0),
|
|
1238
|
+
b("div", {
|
|
1203
1239
|
ref_key: "wrapperEl",
|
|
1204
1240
|
ref: h,
|
|
1205
1241
|
class: "vv-textarea__wrapper"
|
|
1206
1242
|
}, [
|
|
1207
|
-
e.$slots.before ? (
|
|
1208
|
-
|
|
1209
|
-
k(
|
|
1210
|
-
|
|
1211
|
-
id: k(
|
|
1243
|
+
e.$slots.before ? (M(), j("div", Vt, [c(e.$slots, "before", r(i(k(K))))])) : D("v-if", !0),
|
|
1244
|
+
b("div", Ht, [
|
|
1245
|
+
k(F) ? (M(), _(Mt, p({ key: 0 }, k(F), { class: "vv-textarea__icon" }), null, 16)) : D("v-if", !0),
|
|
1246
|
+
se(b("textarea", p({
|
|
1247
|
+
id: k(N),
|
|
1212
1248
|
ref_key: "textareaEl",
|
|
1213
1249
|
ref: f,
|
|
1214
|
-
"onUpdate:modelValue": t[0] ||= (e) => E(
|
|
1215
|
-
}, k(
|
|
1216
|
-
k(
|
|
1250
|
+
"onUpdate:modelValue": t[0] ||= (e) => E(P) ? P.value = e : null
|
|
1251
|
+
}, k(G), { onKeyup: t[1] ||= (e) => s("keyup", e) }), null, 16, Ut), [[re, k(P)]]),
|
|
1252
|
+
k(we) ? (M(), _(Mt, p({ key: 1 }, k(we), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : D("v-if", !0)
|
|
1217
1253
|
]),
|
|
1218
|
-
e.$slots.after ? (
|
|
1219
|
-
k(fe) ? (
|
|
1254
|
+
e.$slots.after ? (M(), j("div", Wt, [c(e.$slots, "after", r(i(k(K))))])) : D("v-if", !0),
|
|
1255
|
+
k(fe) ? (M(), j("span", Gt, [c(e.$slots, "count", r(i(k(K))), () => [A(w(k(Ae)), 1)])])) : D("v-if", !0)
|
|
1220
1256
|
], 512),
|
|
1221
|
-
ee(k(
|
|
1222
|
-
id: k(
|
|
1257
|
+
ee(k(V), {
|
|
1258
|
+
id: k(xe),
|
|
1223
1259
|
class: "vv-textarea__hint"
|
|
1224
1260
|
}, v({ _: 2 }, [
|
|
1225
1261
|
e.$slots.hint ? {
|
|
1226
1262
|
name: "hint",
|
|
1227
|
-
fn: T(() => [c(e.$slots, "hint", r(i(k(
|
|
1263
|
+
fn: T(() => [c(e.$slots, "hint", r(i(k(U))))]),
|
|
1228
1264
|
key: "0"
|
|
1229
1265
|
} : void 0,
|
|
1230
1266
|
e.$slots.loading ? {
|
|
1231
1267
|
name: "loading",
|
|
1232
|
-
fn: T(() => [c(e.$slots, "loading", r(i(k(
|
|
1268
|
+
fn: T(() => [c(e.$slots, "loading", r(i(k(U))))]),
|
|
1233
1269
|
key: "1"
|
|
1234
1270
|
} : void 0,
|
|
1235
1271
|
e.$slots.valid ? {
|
|
1236
1272
|
name: "valid",
|
|
1237
|
-
fn: T(() => [c(e.$slots, "valid", r(i(k(
|
|
1273
|
+
fn: T(() => [c(e.$slots, "valid", r(i(k(U))))]),
|
|
1238
1274
|
key: "2"
|
|
1239
1275
|
} : void 0,
|
|
1240
1276
|
e.$slots.invalid ? {
|
|
1241
1277
|
name: "invalid",
|
|
1242
|
-
fn: T(() => [c(e.$slots, "invalid", r(i(k(
|
|
1278
|
+
fn: T(() => [c(e.$slots, "invalid", r(i(k(U))))]),
|
|
1243
1279
|
key: "3"
|
|
1244
1280
|
} : void 0
|
|
1245
1281
|
]), 1032, ["id"]),
|
|
1246
|
-
k(
|
|
1282
|
+
k(Pe) ? (M(), _(Dt, {
|
|
1247
1283
|
key: 1,
|
|
1248
1284
|
ref_key: "suggestionsDropdownEl",
|
|
1249
1285
|
ref: g,
|
|
@@ -1252,18 +1288,18 @@ var zt = ["for"], Bt = {
|
|
|
1252
1288
|
"trigger-width": !0,
|
|
1253
1289
|
"top-layer": k(d).topLayer
|
|
1254
1290
|
}, {
|
|
1255
|
-
items: T(() => [(
|
|
1291
|
+
items: T(() => [(M(!0), j(ae, null, te(k(z), (t) => (M(), _(At, {
|
|
1256
1292
|
key: t,
|
|
1257
|
-
onClick:
|
|
1293
|
+
onClick: y((e) => B(t), ["stop"])
|
|
1258
1294
|
}, {
|
|
1259
|
-
default: T(() => [
|
|
1295
|
+
default: T(() => [b("div", Kt, [c(e.$slots, "suggestion", p({ ref_for: !0 }, { value: t }), () => [A(w(t), 1)])]), k(R) && k(Te) ? (M(), j("button", {
|
|
1260
1296
|
key: 0,
|
|
1261
1297
|
type: "button",
|
|
1262
1298
|
tabindex: "-1",
|
|
1263
1299
|
class: "cursor-pointer",
|
|
1264
|
-
title: k(
|
|
1265
|
-
onClick:
|
|
1266
|
-
}, [ee(
|
|
1300
|
+
title: k(le),
|
|
1301
|
+
onClick: y((e) => Fe(t), ["stop"])
|
|
1302
|
+
}, [ee(Mt, p({ ref_for: !0 }, k(Te)), null, 16)], 8, qt)) : D("v-if", !0)]),
|
|
1267
1303
|
_: 2
|
|
1268
1304
|
}, 1032, ["onClick"]))), 128))]),
|
|
1269
1305
|
_: 3
|
|
@@ -1271,6 +1307,6 @@ var zt = ["for"], Bt = {
|
|
|
1271
1307
|
], 2));
|
|
1272
1308
|
}
|
|
1273
1309
|
});
|
|
1274
|
-
export {
|
|
1310
|
+
export { Jt as default };
|
|
1275
1311
|
|
|
1276
|
-
//# sourceMappingURL=VvTextarea.es-
|
|
1312
|
+
//# sourceMappingURL=VvTextarea.es-Ewp88vJ2.js.map
|