@8wave/ai-elements 0.127.0-beta.3 → 0.127.0-beta.4
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
1
|
import { $ as e, A as t, B as n, D as r, Dt as i, E as a, Et as o, F as s, G as c, H as l, I as u, K as d, L as f, M as p, Ot as m, P as h, Q as g, S as _, St as v, T as ee, Tt as y, U as b, V as x, W as S, Y as C, _ as w, a as T, b as te, bt as ne, c as E, d as D, et as re, f as ie, g as O, gt as k, h as A, k as ae, kt as j, l as oe, nt as se, o as ce, ot as M, pt as le, q as ue, r as de, s as fe, t as N, tt as P, ut as F, v as I, w as L, wt as R, x as z, xt as B, y as V, z as H } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
2
|
-
import { S as pe, c as U,
|
|
3
|
-
import { a as
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
2
|
+
import { S as pe, c as U, d as me, f as he, g as ge, n as _e, p as ve, r as ye, u as be, x as xe } from "./dist-CR8l0inH.js";
|
|
3
|
+
import { a as W, c as Se, i as Ce, l as we, n as Te, o as Ee, r as G, s as De, t as Oe } from "./floating-ui.vue-SbFDfAS7.js";
|
|
4
|
+
import { a as ke, i as Ae, t as K } from "./iconify-BsIVfdEw.js";
|
|
5
|
+
import { t as je } from "./dot-prop-Dmp6Zjqs.js";
|
|
6
|
+
import { t as Me } from "./esm-d7HMhmr5.js";
|
|
7
|
+
// ../../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/index.es.js
|
|
8
8
|
ae(), de(), M(), y();
|
|
9
9
|
var q = {
|
|
10
10
|
showPassword: "eye-on",
|
|
@@ -17,29 +17,29 @@ var q = {
|
|
|
17
17
|
remove: "trash",
|
|
18
18
|
edit: "edit",
|
|
19
19
|
download: "download"
|
|
20
|
-
},
|
|
20
|
+
}, Ne = { prefix: "normal" }, Pe = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.local = "local", e.session = "session", e;
|
|
22
|
-
})({}),
|
|
22
|
+
})({}), Fe = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
24
24
|
})({}), J = /* @__PURE__ */ (function(e) {
|
|
25
25
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
26
|
-
})({}), Fe = /* @__PURE__ */ (function(e) {
|
|
27
|
-
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
28
26
|
})({}), Ie = /* @__PURE__ */ (function(e) {
|
|
29
|
-
return e.
|
|
27
|
+
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;
|
|
30
28
|
})({}), Le = /* @__PURE__ */ (function(e) {
|
|
31
|
-
return e.
|
|
29
|
+
return e.before = "before", e.after = "after", e;
|
|
32
30
|
})({}), Re = /* @__PURE__ */ (function(e) {
|
|
33
|
-
return e.
|
|
31
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
34
32
|
})({}), ze = /* @__PURE__ */ (function(e) {
|
|
35
|
-
return e.
|
|
33
|
+
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
36
34
|
})({}), Be = /* @__PURE__ */ (function(e) {
|
|
37
|
-
return e.
|
|
35
|
+
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
38
36
|
})({}), Ve = /* @__PURE__ */ (function(e) {
|
|
39
|
-
return e.
|
|
37
|
+
return e.listbox = "listbox", e.menu = "menu", e;
|
|
40
38
|
})({}), He = /* @__PURE__ */ (function(e) {
|
|
39
|
+
return e.option = "option", e.presentation = "presentation", e;
|
|
40
|
+
})({}), Ue = /* @__PURE__ */ (function(e) {
|
|
41
41
|
return e.alert = "alert", e.alertdialog = "alertdialog", e;
|
|
42
|
-
})({}),
|
|
42
|
+
})({}), We = /* @__PURE__ */ Symbol.for("volver"), Ge = /* @__PURE__ */ Symbol.for("buttonGroup"), Ke = /* @__PURE__ */ Symbol.for("radioGroup"), qe = /* @__PURE__ */ Symbol.for("checkGroup"), Je = /* @__PURE__ */ Symbol.for("accordionGroup"), Ye = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Xe = /* @__PURE__ */ Symbol.for("dropdownItem"), Ze = /* @__PURE__ */ Symbol.for("dropdownAction"), Qe = /* @__PURE__ */ Symbol.for("alertGroup"), $e = {
|
|
43
43
|
to: { type: [String, Object] },
|
|
44
44
|
href: String,
|
|
45
45
|
target: String,
|
|
@@ -47,7 +47,7 @@ var q = {
|
|
|
47
47
|
type: String,
|
|
48
48
|
default: "noopener noreferrer"
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, Y = {
|
|
51
51
|
valid: {
|
|
52
52
|
type: Boolean,
|
|
53
53
|
default: !1
|
|
@@ -56,7 +56,7 @@ var q = {
|
|
|
56
56
|
type: [String, Array],
|
|
57
57
|
default: void 0
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, et = {
|
|
60
60
|
invalid: {
|
|
61
61
|
type: Boolean,
|
|
62
62
|
default: !1
|
|
@@ -65,7 +65,7 @@ var q = {
|
|
|
65
65
|
type: [String, Array],
|
|
66
66
|
default: void 0
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, tt = {
|
|
69
69
|
loading: {
|
|
70
70
|
type: Boolean,
|
|
71
71
|
default: !1
|
|
@@ -74,22 +74,22 @@ var q = {
|
|
|
74
74
|
type: String,
|
|
75
75
|
default: "Loading..."
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, nt = { disabled: {
|
|
78
78
|
type: Boolean,
|
|
79
79
|
default: !1
|
|
80
|
-
} },
|
|
80
|
+
} }, rt = { required: {
|
|
81
81
|
type: Boolean,
|
|
82
82
|
default: !1
|
|
83
|
-
} },
|
|
83
|
+
} }, it = { selected: {
|
|
84
84
|
type: Boolean,
|
|
85
85
|
default: !1
|
|
86
|
-
} },
|
|
86
|
+
} }, at = { active: {
|
|
87
87
|
type: Boolean,
|
|
88
88
|
default: !1
|
|
89
|
-
} },
|
|
89
|
+
} }, ot = { current: {
|
|
90
90
|
type: Boolean,
|
|
91
91
|
default: !1
|
|
92
|
-
} },
|
|
92
|
+
} }, st = {
|
|
93
93
|
showClearAction: {
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: !1
|
|
@@ -102,13 +102,13 @@ var q = {
|
|
|
102
102
|
type: String,
|
|
103
103
|
default: "Clear"
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, ct = { pressed: {
|
|
106
106
|
type: Boolean,
|
|
107
107
|
default: !1
|
|
108
|
-
} },
|
|
108
|
+
} }, lt = { label: {
|
|
109
109
|
type: [String, Number],
|
|
110
110
|
default: void 0
|
|
111
|
-
} },
|
|
111
|
+
} }, ut = {
|
|
112
112
|
ariaLabel: {
|
|
113
113
|
type: String,
|
|
114
114
|
default: void 0
|
|
@@ -121,16 +121,16 @@ var q = {
|
|
|
121
121
|
type: String,
|
|
122
122
|
default: void 0
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, dt = { readonly: {
|
|
125
125
|
type: Boolean,
|
|
126
126
|
default: !1
|
|
127
127
|
} }, X = { modifiers: {
|
|
128
128
|
type: [String, Array],
|
|
129
129
|
default: void 0
|
|
130
|
-
} },
|
|
130
|
+
} }, ft = { hintLabel: {
|
|
131
131
|
type: String,
|
|
132
132
|
default: ""
|
|
133
|
-
} },
|
|
133
|
+
} }, pt = {
|
|
134
134
|
options: {
|
|
135
135
|
type: Array,
|
|
136
136
|
default: () => []
|
|
@@ -147,7 +147,7 @@ var q = {
|
|
|
147
147
|
type: [String, Function],
|
|
148
148
|
default: "disabled"
|
|
149
149
|
}
|
|
150
|
-
},
|
|
150
|
+
}, mt = { count: {
|
|
151
151
|
type: [Boolean, String],
|
|
152
152
|
default: !1,
|
|
153
153
|
validator: (e) => [
|
|
@@ -156,38 +156,38 @@ var q = {
|
|
|
156
156
|
"limit",
|
|
157
157
|
"countdown"
|
|
158
158
|
].includes(e)
|
|
159
|
-
} },
|
|
159
|
+
} }, ht = { debounce: {
|
|
160
160
|
type: [Number, String],
|
|
161
161
|
default: void 0
|
|
162
|
-
} },
|
|
162
|
+
} }, gt = {
|
|
163
163
|
icon: {
|
|
164
164
|
type: [String, Object],
|
|
165
165
|
default: void 0
|
|
166
166
|
},
|
|
167
167
|
iconPosition: {
|
|
168
168
|
type: String,
|
|
169
|
-
default:
|
|
170
|
-
validator: (e) => Object.values(
|
|
169
|
+
default: Le.before,
|
|
170
|
+
validator: (e) => Object.values(Le).includes(e)
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, _t = { tabindex: {
|
|
173
173
|
type: [String, Number],
|
|
174
174
|
default: 0
|
|
175
|
-
} },
|
|
175
|
+
} }, vt = { floating: {
|
|
176
176
|
type: Boolean,
|
|
177
177
|
default: !1
|
|
178
|
-
} },
|
|
178
|
+
} }, yt = { unselectable: {
|
|
179
179
|
type: Boolean,
|
|
180
180
|
default: !0
|
|
181
|
-
} },
|
|
181
|
+
} }, bt = { id: [String, Number] }, xt = {
|
|
182
182
|
placement: {
|
|
183
183
|
type: String,
|
|
184
184
|
default: J.bottom,
|
|
185
|
-
validator: (e) => Object.values(J).includes(e) || Object.values(
|
|
185
|
+
validator: (e) => Object.values(J).includes(e) || Object.values(Ie).includes(e)
|
|
186
186
|
},
|
|
187
187
|
strategy: {
|
|
188
188
|
type: String,
|
|
189
189
|
default: void 0,
|
|
190
|
-
validator: (e) => Object.values(
|
|
190
|
+
validator: (e) => Object.values(Fe).includes(e)
|
|
191
191
|
},
|
|
192
192
|
transitionName: {
|
|
193
193
|
type: String,
|
|
@@ -237,36 +237,36 @@ var q = {
|
|
|
237
237
|
type: Boolean,
|
|
238
238
|
default: !1
|
|
239
239
|
}
|
|
240
|
-
},
|
|
241
|
-
...
|
|
240
|
+
}, St = {
|
|
241
|
+
...bt,
|
|
242
242
|
name: {
|
|
243
243
|
type: String,
|
|
244
244
|
required: !0
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, Ct = { autofocus: {
|
|
247
247
|
type: Boolean,
|
|
248
248
|
default: !1
|
|
249
|
-
} },
|
|
249
|
+
} }, wt = { autocomplete: {
|
|
250
250
|
type: String,
|
|
251
251
|
default: "off"
|
|
252
|
-
} },
|
|
253
|
-
...xt,
|
|
252
|
+
} }, Tt = {
|
|
254
253
|
...St,
|
|
255
254
|
...Ct,
|
|
256
|
-
...
|
|
257
|
-
...
|
|
258
|
-
...
|
|
259
|
-
...$e,
|
|
260
|
-
...Y,
|
|
255
|
+
...wt,
|
|
256
|
+
..._t,
|
|
257
|
+
...nt,
|
|
261
258
|
...dt,
|
|
259
|
+
...Y,
|
|
262
260
|
...et,
|
|
261
|
+
...ft,
|
|
262
|
+
...tt,
|
|
263
263
|
...X,
|
|
264
|
-
...pt,
|
|
265
264
|
...mt,
|
|
266
265
|
...ht,
|
|
267
|
-
...
|
|
268
|
-
...
|
|
266
|
+
...gt,
|
|
267
|
+
...vt,
|
|
269
268
|
...lt,
|
|
269
|
+
...ut,
|
|
270
270
|
minlength: {
|
|
271
271
|
type: [String, Number],
|
|
272
272
|
default: void 0
|
|
@@ -279,19 +279,19 @@ var q = {
|
|
|
279
279
|
type: String,
|
|
280
280
|
default: void 0
|
|
281
281
|
},
|
|
282
|
-
...
|
|
283
|
-
},
|
|
284
|
-
...
|
|
285
|
-
...
|
|
286
|
-
...$e,
|
|
282
|
+
...rt
|
|
283
|
+
}, Et = {
|
|
284
|
+
...St,
|
|
285
|
+
..._t,
|
|
287
286
|
...Y,
|
|
287
|
+
...et,
|
|
288
|
+
...ft,
|
|
289
|
+
...nt,
|
|
288
290
|
...dt,
|
|
289
|
-
...tt,
|
|
290
|
-
...ut,
|
|
291
291
|
...X,
|
|
292
|
-
...ct,
|
|
293
292
|
...lt,
|
|
294
|
-
...
|
|
293
|
+
...ut,
|
|
294
|
+
...tt,
|
|
295
295
|
value: {
|
|
296
296
|
type: [
|
|
297
297
|
String,
|
|
@@ -309,17 +309,17 @@ var q = {
|
|
|
309
309
|
],
|
|
310
310
|
default: void 0
|
|
311
311
|
}
|
|
312
|
-
},
|
|
313
|
-
...$e,
|
|
312
|
+
}, Dt = {
|
|
314
313
|
...Y,
|
|
314
|
+
...et,
|
|
315
|
+
...pt,
|
|
315
316
|
...ft,
|
|
317
|
+
...nt,
|
|
316
318
|
...dt,
|
|
317
|
-
...tt,
|
|
318
|
-
...ut,
|
|
319
319
|
...X,
|
|
320
|
-
...
|
|
321
|
-
...
|
|
322
|
-
...
|
|
320
|
+
...lt,
|
|
321
|
+
...tt,
|
|
322
|
+
...rt,
|
|
323
323
|
modelValue: {
|
|
324
324
|
type: [
|
|
325
325
|
String,
|
|
@@ -338,17 +338,17 @@ var q = {
|
|
|
338
338
|
type: Boolean,
|
|
339
339
|
default: !1
|
|
340
340
|
}
|
|
341
|
-
},
|
|
342
|
-
...
|
|
341
|
+
}, Ot = {
|
|
342
|
+
...nt,
|
|
343
|
+
...lt,
|
|
343
344
|
...ct,
|
|
344
|
-
...st,
|
|
345
|
-
...it,
|
|
346
345
|
...at,
|
|
347
|
-
...
|
|
346
|
+
...ot,
|
|
347
|
+
...$e,
|
|
348
348
|
type: {
|
|
349
349
|
type: String,
|
|
350
|
-
default:
|
|
351
|
-
validator: (e) => Object.values(
|
|
350
|
+
default: Re.button,
|
|
351
|
+
validator: (e) => Object.values(Re).includes(e)
|
|
352
352
|
},
|
|
353
353
|
ariaLabel: {
|
|
354
354
|
type: String,
|
|
@@ -356,20 +356,20 @@ var q = {
|
|
|
356
356
|
},
|
|
357
357
|
defaultTag: {
|
|
358
358
|
type: String,
|
|
359
|
-
default:
|
|
359
|
+
default: ze.button
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, kt = { items: {
|
|
362
362
|
type: Array,
|
|
363
363
|
default: () => []
|
|
364
|
-
} },
|
|
364
|
+
} }, At = {
|
|
365
365
|
storageType: {
|
|
366
366
|
type: String,
|
|
367
|
-
default:
|
|
368
|
-
validator: (e) => Object.values(
|
|
367
|
+
default: Pe.local,
|
|
368
|
+
validator: (e) => Object.values(Pe).includes(e)
|
|
369
369
|
},
|
|
370
370
|
storageKey: String
|
|
371
371
|
};
|
|
372
|
-
function
|
|
372
|
+
function jt(e) {
|
|
373
373
|
let n = t(e, void 0), r = A(() => n !== void 0);
|
|
374
374
|
function i(e, t, r) {
|
|
375
375
|
let i = n?.[e];
|
|
@@ -397,7 +397,7 @@ function At(e) {
|
|
|
397
397
|
getGroupOrLocalRef: i
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
var
|
|
400
|
+
var Mt = {
|
|
401
401
|
...X,
|
|
402
402
|
name: String,
|
|
403
403
|
title: String,
|
|
@@ -408,9 +408,9 @@ var jt = {
|
|
|
408
408
|
},
|
|
409
409
|
disabled: Boolean,
|
|
410
410
|
not: Boolean
|
|
411
|
-
},
|
|
412
|
-
function
|
|
413
|
-
let { group: t, isInGroup: n } =
|
|
411
|
+
}, Nt = ["update:modelValue"];
|
|
412
|
+
function Pt(e) {
|
|
413
|
+
let { group: t, isInGroup: n } = jt(Je), r = A(() => !!(e.disabled || t?.disabled.value));
|
|
414
414
|
return {
|
|
415
415
|
isInGroup: n,
|
|
416
416
|
group: t,
|
|
@@ -432,12 +432,12 @@ function Z(e, t, n) {
|
|
|
432
432
|
}), r;
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var Ft = ["id", "open"], It = ["aria-controls", "aria-expanded"], Lt = ["aria-hidden"], Rt = /* @__PURE__ */ L({
|
|
436
436
|
name: "VvAccordion",
|
|
437
|
-
props:
|
|
438
|
-
emits:
|
|
437
|
+
props: Mt,
|
|
438
|
+
emits: Nt,
|
|
439
439
|
setup(e, { expose: t, emit: n }) {
|
|
440
|
-
let r = e, s = n, c = d(), f = pe(r, "modelValue", s), p = ue(), m = A(() => r.name || c?.id || p), { title: h, content: _, not: v } = B(r), { isInGroup: ee, modifiers: y, disabled: b, bus: x } =
|
|
440
|
+
let r = e, s = n, c = d(), f = pe(r, "modelValue", s), p = ue(), m = A(() => r.name || c?.id || p), { title: h, content: _, not: v } = B(r), { isInGroup: ee, modifiers: y, disabled: b, bus: x } = Pt(r), S = k(!ee.value && v.value);
|
|
441
441
|
g(f, (e) => {
|
|
442
442
|
typeof e == "boolean" && (S.value = v.value ? !e : e);
|
|
443
443
|
}, { immediate: !0 }), g(S, (e) => {
|
|
@@ -501,7 +501,7 @@ var Pt = ["id", "open"], Ft = ["aria-controls", "aria-expanded"], It = ["aria-hi
|
|
|
501
501
|
collapse: te,
|
|
502
502
|
groupExpand: ne,
|
|
503
503
|
groupCollapse: E
|
|
504
|
-
})), () => [z(j(R(h)), 1)])], 8,
|
|
504
|
+
})), () => [z(j(R(h)), 1)])], 8, It), O("div", {
|
|
505
505
|
"aria-hidden": !R(S),
|
|
506
506
|
class: "vv-accordion__content"
|
|
507
507
|
}, [l(e.$slots, "default", i(a({
|
|
@@ -510,28 +510,28 @@ var Pt = ["id", "open"], Ft = ["aria-controls", "aria-expanded"], It = ["aria-hi
|
|
|
510
510
|
collapse: te,
|
|
511
511
|
groupExpand: ne,
|
|
512
512
|
groupCollapse: E
|
|
513
|
-
})), () => [z(j(R(_)), 1)])], 8,
|
|
513
|
+
})), () => [z(j(R(_)), 1)])], 8, Lt)], 10, Ft));
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
({
|
|
517
517
|
...X,
|
|
518
|
-
...
|
|
518
|
+
...At
|
|
519
519
|
});
|
|
520
|
-
function
|
|
520
|
+
function zt(e, t = Pe.local, n) {
|
|
521
521
|
let r = k();
|
|
522
522
|
n && (r.value = n);
|
|
523
523
|
let i;
|
|
524
524
|
return f(() => {
|
|
525
525
|
e && g(e, (e, n) => {
|
|
526
|
-
let a = R(t) ===
|
|
527
|
-
n && n !== e && a.removeItem(n), e ? (i =
|
|
526
|
+
let a = R(t) === Pe.session ? sessionStorage : localStorage;
|
|
527
|
+
n && n !== e && a.removeItem(n), e ? (i = xe(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
|
|
528
528
|
}, { immediate: !0 }), F(t) && g(t, (t, n) => {
|
|
529
529
|
if (e?.value) {
|
|
530
530
|
if (t) {
|
|
531
|
-
let n = t ===
|
|
532
|
-
i =
|
|
531
|
+
let n = t === Pe.session ? sessionStorage : localStorage;
|
|
532
|
+
i = xe(e.value, i?.value ?? r.value, n);
|
|
533
533
|
}
|
|
534
|
-
n && n !== t && (n ===
|
|
534
|
+
n && n !== t && (n === Pe.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
}), g(r, (e) => {
|
|
@@ -541,19 +541,16 @@ function Rt(e, t = Ne.local, n) {
|
|
|
541
541
|
immediate: !0
|
|
542
542
|
}), r;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Bt(e, t) {
|
|
545
545
|
n(e, t);
|
|
546
546
|
}
|
|
547
|
-
var
|
|
547
|
+
var Vt = [
|
|
548
548
|
"click",
|
|
549
549
|
"mouseover",
|
|
550
550
|
"mouseleave"
|
|
551
551
|
];
|
|
552
|
-
function Vt() {
|
|
553
|
-
return t(Ue, void 0);
|
|
554
|
-
}
|
|
555
552
|
function Ht() {
|
|
556
|
-
return t(
|
|
553
|
+
return t(We, void 0);
|
|
557
554
|
}
|
|
558
555
|
function Ut() {
|
|
559
556
|
return t(Ye, {});
|
|
@@ -561,45 +558,48 @@ function Ut() {
|
|
|
561
558
|
function Wt() {
|
|
562
559
|
return t(Xe, {});
|
|
563
560
|
}
|
|
564
|
-
|
|
561
|
+
function Gt() {
|
|
562
|
+
return t(Ze, {});
|
|
563
|
+
}
|
|
564
|
+
var Kt = /* @__PURE__ */ L({
|
|
565
565
|
name: "VvAction",
|
|
566
|
-
props:
|
|
567
|
-
emits:
|
|
566
|
+
props: Ot,
|
|
567
|
+
emits: Vt,
|
|
568
568
|
setup(e, { expose: t, emit: n }) {
|
|
569
|
-
let r = e, i = n, a = ee(), o =
|
|
569
|
+
let r = e, i = n, a = ee(), o = Ht(), s = k(null);
|
|
570
570
|
t({ $el: s });
|
|
571
|
-
let { reference: c, bus: u, aria: d, expanded: f } =
|
|
571
|
+
let { reference: c, bus: u, aria: d, expanded: f } = Ut();
|
|
572
572
|
g(() => s.value, (e) => {
|
|
573
573
|
c && (c.value = e);
|
|
574
574
|
});
|
|
575
|
-
let p = A(() => r.pressed || f?.value), { role: m, onAction: _ } =
|
|
575
|
+
let p = A(() => r.pressed || f?.value), { role: m, onAction: _ } = Gt(), v = A(() => {
|
|
576
576
|
switch (!0) {
|
|
577
|
-
case r.disabled: return
|
|
578
|
-
case r.to !== void 0: return o?.nuxt ? b(
|
|
579
|
-
case r.href !== void 0: return
|
|
577
|
+
case r.disabled: return ze.button;
|
|
578
|
+
case r.to !== void 0: return o?.nuxt ? b(ze.nuxtLink) : ze.routerLink;
|
|
579
|
+
case r.href !== void 0: return ze.a;
|
|
580
580
|
default: return r.defaultTag;
|
|
581
581
|
}
|
|
582
582
|
}), y = A(() => {
|
|
583
583
|
let e = {
|
|
584
584
|
...d?.value,
|
|
585
|
-
ariaPressed: r.pressed && m?.value !==
|
|
585
|
+
ariaPressed: r.pressed && m?.value !== Be.menuitem ? !0 : void 0,
|
|
586
586
|
ariaLabel: r.ariaLabel,
|
|
587
587
|
role: m?.value
|
|
588
588
|
};
|
|
589
589
|
switch (v.value) {
|
|
590
|
-
case
|
|
590
|
+
case ze.a: return {
|
|
591
591
|
...e,
|
|
592
592
|
href: r.href,
|
|
593
593
|
target: r.target,
|
|
594
594
|
rel: r.rel
|
|
595
595
|
};
|
|
596
|
-
case
|
|
597
|
-
case
|
|
596
|
+
case ze.routerLink:
|
|
597
|
+
case ze.nuxtLink: return {
|
|
598
598
|
...e,
|
|
599
599
|
to: r.to,
|
|
600
600
|
target: r.target
|
|
601
601
|
};
|
|
602
|
-
case
|
|
602
|
+
case ze.button: return {
|
|
603
603
|
...e,
|
|
604
604
|
type: r.type,
|
|
605
605
|
disabled: r.disabled
|
|
@@ -634,15 +634,15 @@ var Gt = /* @__PURE__ */ L({
|
|
|
634
634
|
}, 16, ["class"]));
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
|
-
function
|
|
638
|
-
return t(
|
|
637
|
+
function qt() {
|
|
638
|
+
return t(Qe, {});
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Jt(e) {
|
|
641
641
|
let t = ue();
|
|
642
642
|
return A(() => String(e?.value || t));
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
let n = A(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = A(() => t?.value ===
|
|
644
|
+
function Yt(e, t) {
|
|
645
|
+
let n = A(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = A(() => t?.value === Le.before ? n.value : void 0), i = A(() => t?.value === Le.after ? n.value : void 0);
|
|
646
646
|
return {
|
|
647
647
|
hasIcon: n,
|
|
648
648
|
hasIconLeft: A(() => t?.value === J.left ? n.value : void 0),
|
|
@@ -653,9 +653,9 @@ function Jt(e, t) {
|
|
|
653
653
|
hasIconAfter: i
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
|
-
var
|
|
657
|
-
...
|
|
658
|
-
...
|
|
656
|
+
var Xt = {
|
|
657
|
+
...bt,
|
|
658
|
+
...gt,
|
|
659
659
|
modifiers: {
|
|
660
660
|
type: [String, Array],
|
|
661
661
|
default: void 0
|
|
@@ -686,11 +686,11 @@ var Yt = {
|
|
|
686
686
|
},
|
|
687
687
|
role: {
|
|
688
688
|
type: String,
|
|
689
|
-
default:
|
|
689
|
+
default: Ue.alert
|
|
690
690
|
}
|
|
691
|
-
},
|
|
692
|
-
function
|
|
693
|
-
let { bus: n } =
|
|
691
|
+
}, Zt = ["close"];
|
|
692
|
+
function Qt(e, t) {
|
|
693
|
+
let { bus: n } = qt(), r = Jt(A(() => e.id)), i = A(() => `${r.value}-title`), a, o = () => {
|
|
694
694
|
a && clearTimeout(a), t("close", r.value), n?.emit("close", r.value);
|
|
695
695
|
};
|
|
696
696
|
g(() => e.autoClose, (e) => {
|
|
@@ -702,7 +702,7 @@ function Zt(e, t) {
|
|
|
702
702
|
s.value = !0, a && clearTimeout(a);
|
|
703
703
|
}, l = () => {
|
|
704
704
|
s.value = !1, e.autoClose > 0 && (a = setTimeout(o, e.autoClose));
|
|
705
|
-
}, { hasIcon: d } =
|
|
705
|
+
}, { hasIcon: d } = Yt(A(() => e.icon)), f = Z("vv-alert", A(() => e.modifiers), A(() => ({
|
|
706
706
|
dismissable: e.autoClose > 0 || e.dismissable,
|
|
707
707
|
"auto-close": e.autoClose > 0,
|
|
708
708
|
hover: s.value
|
|
@@ -739,14 +739,14 @@ var Q = /* @__PURE__ */ L({
|
|
|
739
739
|
onLoad: { type: Function },
|
|
740
740
|
svg: {},
|
|
741
741
|
modifiers: {}
|
|
742
|
-
},
|
|
742
|
+
}, Ne),
|
|
743
743
|
setup(e) {
|
|
744
|
-
let t = e, n = A(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = k(!0), i =
|
|
744
|
+
let t = e, n = A(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = k(!0), i = Ht(), { modifiers: a } = B(t), o = Z("vv-icon", a), s = A(() => t.provider || i?.iconsProvider), c = A(() => {
|
|
745
745
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
746
|
-
if (
|
|
746
|
+
if (ke(n)) return n;
|
|
747
747
|
let r = i?.iconsCollections.find((t) => {
|
|
748
748
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
749
|
-
return
|
|
749
|
+
return ke(n);
|
|
750
750
|
});
|
|
751
751
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
752
752
|
});
|
|
@@ -755,13 +755,13 @@ var Q = /* @__PURE__ */ L({
|
|
|
755
755
|
}
|
|
756
756
|
function u(e) {
|
|
757
757
|
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
758
|
-
n && r &&
|
|
758
|
+
n && r && Ae(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
759
759
|
body: r,
|
|
760
760
|
height: n.viewBox.baseVal.height,
|
|
761
761
|
width: n.viewBox.baseVal.width
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
return i && t.src && !
|
|
764
|
+
return i && t.src && !ke(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
765
765
|
e && u(e), r.value = !0;
|
|
766
766
|
}).catch((e) => {
|
|
767
767
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
@@ -780,23 +780,23 @@ var Q = /* @__PURE__ */ L({
|
|
|
780
780
|
icon: R(c)
|
|
781
781
|
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : I("v-if", !0);
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), $t = ["aria-labelledby"], en = {
|
|
784
784
|
key: 0,
|
|
785
785
|
class: "vv-alert__header"
|
|
786
|
-
},
|
|
786
|
+
}, tn = ["id"], nn = ["aria-label"], rn = {
|
|
787
787
|
key: 1,
|
|
788
788
|
class: "vv-alert__content"
|
|
789
|
-
},
|
|
789
|
+
}, an = {
|
|
790
790
|
key: 2,
|
|
791
791
|
class: "vv-alert__footer"
|
|
792
|
-
},
|
|
792
|
+
}, on = /* @__PURE__ */ L({
|
|
793
793
|
name: "VvAlert",
|
|
794
|
-
props:
|
|
795
|
-
emits:
|
|
794
|
+
props: Xt,
|
|
795
|
+
emits: Zt,
|
|
796
796
|
setup(e, { expose: t, emit: n }) {
|
|
797
|
-
let { hasProps: r, hasTitleId: o, hasIcon: s, close: c } =
|
|
797
|
+
let { hasProps: r, hasTitleId: o, hasIcon: s, close: c } = Qt(e, n);
|
|
798
798
|
return t({ close: c }), (e, t) => (H(), V("div", h(R(r), { "aria-labelledby": !e.$slots.header && (e.$slots.title || e.title) ? R(o) : void 0 }), [
|
|
799
|
-
e.$slots.header || e.$slots.title || e.$slots.close || e.$slots["title::before"] || e.$slots["title::after"] || e.title || R(s) || e.dismissable || e.autoClose ? (H(), V("div",
|
|
799
|
+
e.$slots.header || e.$slots.title || e.$slots.close || e.$slots["title::before"] || e.$slots["title::after"] || e.title || R(s) || e.dismissable || e.autoClose ? (H(), V("div", en, [
|
|
800
800
|
R(s) ? (H(), w(Q, h({ key: 0 }, R(s), { class: "vv-alert__icon" }), null, 16)) : I("v-if", !0),
|
|
801
801
|
l(e.$slots, "header", {}, () => [
|
|
802
802
|
l(e.$slots, "title::before"),
|
|
@@ -804,7 +804,7 @@ var Q = /* @__PURE__ */ L({
|
|
|
804
804
|
key: 0,
|
|
805
805
|
id: R(o),
|
|
806
806
|
class: "vv-alert__title"
|
|
807
|
-
}, [l(e.$slots, "title", {}, () => [z(j(e.title), 1)])], 8,
|
|
807
|
+
}, [l(e.$slots, "title", {}, () => [z(j(e.title), 1)])], 8, tn)) : I("v-if", !0),
|
|
808
808
|
l(e.$slots, "title::after")
|
|
809
809
|
]),
|
|
810
810
|
l(e.$slots, "close", i(a({ close: R(c) })), () => [e.dismissable || e.autoClose ? (H(), V("button", {
|
|
@@ -813,20 +813,20 @@ var Q = /* @__PURE__ */ L({
|
|
|
813
813
|
type: "button",
|
|
814
814
|
"aria-label": e.closeLabel,
|
|
815
815
|
onClick: t[0] ||= D((...e) => R(c) && R(c)(...e), ["stop"])
|
|
816
|
-
}, [...t[1] ||= [O("div", { class: "vv-alert__close-mask" }, null, -1)]], 8,
|
|
816
|
+
}, [...t[1] ||= [O("div", { class: "vv-alert__close-mask" }, null, -1)]], 8, nn)) : I("v-if", !0)])
|
|
817
817
|
])) : I("v-if", !0),
|
|
818
|
-
e.$slots.default || e.content ? (H(), V("div",
|
|
819
|
-
e.$slots.footer || e.footer ? (H(), V("div",
|
|
820
|
-
], 16,
|
|
818
|
+
e.$slots.default || e.content ? (H(), V("div", rn, [l(e.$slots, "default", {}, () => [z(j(e.content), 1)])])) : I("v-if", !0),
|
|
819
|
+
e.$slots.footer || e.footer ? (H(), V("div", an, [l(e.$slots, "footer", {}, () => [z(j(e.footer), 1)])])) : I("v-if", !0)
|
|
820
|
+
], 16, $t));
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
823
|
({ ...X });
|
|
824
|
-
var
|
|
824
|
+
var sn = {
|
|
825
825
|
...X,
|
|
826
826
|
imgSrc: String
|
|
827
|
-
},
|
|
827
|
+
}, cn = ["role", "aria-label"], ln = ["src"], un = /* @__PURE__ */ L({
|
|
828
828
|
name: "VvAvatar",
|
|
829
|
-
props:
|
|
829
|
+
props: sn,
|
|
830
830
|
setup(e) {
|
|
831
831
|
let { modifiers: t } = B(e), n = Z("vv-avatar", t);
|
|
832
832
|
return (e, t) => (H(), V("span", {
|
|
@@ -837,17 +837,17 @@ var on = {
|
|
|
837
837
|
key: 0,
|
|
838
838
|
src: e.imgSrc,
|
|
839
839
|
alt: "avatar"
|
|
840
|
-
}, null, 8,
|
|
840
|
+
}, null, 8, ln)) : I("v-if", !0)])], 10, cn));
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
({ ...X }), { ...X }, { ...X };
|
|
844
|
-
var
|
|
845
|
-
...
|
|
846
|
-
...
|
|
844
|
+
var dn = ["update:modelValue"], fn = {
|
|
845
|
+
...Ot,
|
|
846
|
+
...bt,
|
|
847
847
|
...X,
|
|
848
|
-
...
|
|
849
|
-
...
|
|
850
|
-
...
|
|
848
|
+
...yt,
|
|
849
|
+
...tt,
|
|
850
|
+
...gt,
|
|
851
851
|
iconPosition: {
|
|
852
852
|
type: String,
|
|
853
853
|
default: J.left,
|
|
@@ -886,8 +886,8 @@ var un = ["update:modelValue"], dn = {
|
|
|
886
886
|
default: void 0
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
|
-
function
|
|
890
|
-
let { group: n, isInGroup: r, getGroupOrLocalRef: i } =
|
|
889
|
+
function pn(e, t) {
|
|
890
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = jt(Ge), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = B(e);
|
|
891
891
|
return {
|
|
892
892
|
group: n,
|
|
893
893
|
isInGroup: r,
|
|
@@ -907,37 +907,37 @@ function fn(e, t) {
|
|
|
907
907
|
label: c
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
return n ?
|
|
910
|
+
function mn(e, t, n) {
|
|
911
|
+
return n ? vn(e, n) === vn(t, n) : _n(e, t);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function hn(e, t) {
|
|
914
914
|
if (e.length !== t.length) return !1;
|
|
915
|
-
for (let n = e.length; n-- !== 0;) if (!
|
|
915
|
+
for (let n = e.length; n-- !== 0;) if (!_n(e[n], t[n])) return !1;
|
|
916
916
|
return !0;
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function gn(e, t) {
|
|
919
919
|
let n = Object.keys(e), { length: r } = n;
|
|
920
920
|
if (r !== Object.keys(t).length) return !1;
|
|
921
921
|
for (let e = r; e-- !== 0;) if (!Object.hasOwn(t, n[e])) return !1;
|
|
922
922
|
for (let i = r; i-- !== 0;) {
|
|
923
923
|
let r = n[i];
|
|
924
|
-
if (!
|
|
924
|
+
if (!_n(e[r], t[r])) return !1;
|
|
925
925
|
}
|
|
926
926
|
return !0;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function _n(e, t) {
|
|
929
929
|
if (e === t) return !0;
|
|
930
930
|
if (!e || !t || typeof e != "object" || typeof t != "object") return Number.isNaN(e) && Number.isNaN(t);
|
|
931
931
|
let n = Array.isArray(e), r = Array.isArray(t);
|
|
932
932
|
if (n !== r) return !1;
|
|
933
|
-
if (n && r) return
|
|
933
|
+
if (n && r) return hn(e, t);
|
|
934
934
|
let i = e instanceof Date, a = t instanceof Date;
|
|
935
935
|
if (i !== a) return !1;
|
|
936
936
|
if (i && a) return e.getTime() === t.getTime();
|
|
937
937
|
let o = e instanceof RegExp, s = t instanceof RegExp;
|
|
938
|
-
return o === s ? o && s ? e.toString() === t.toString() :
|
|
938
|
+
return o === s ? o && s ? e.toString() === t.toString() : gn(e, t) : !1;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function vn(e, t) {
|
|
941
941
|
if (e && Object.keys(e).length && t) {
|
|
942
942
|
if (!t.includes(".")) return e[t];
|
|
943
943
|
let n = t.split("."), r = e;
|
|
@@ -949,43 +949,43 @@ function _n(e, t) {
|
|
|
949
949
|
}
|
|
950
950
|
return null;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function yn(e, t) {
|
|
953
953
|
if (e != null && t?.length) {
|
|
954
|
-
for (let n of t) if (
|
|
954
|
+
for (let n of t) if (mn(e, n)) return !0;
|
|
955
955
|
}
|
|
956
956
|
return !1;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function bn(e) {
|
|
959
959
|
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(R(e));
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function xn(e) {
|
|
962
962
|
return typeof e == "string";
|
|
963
963
|
}
|
|
964
|
-
var
|
|
964
|
+
var Sn = {
|
|
965
965
|
key: 1,
|
|
966
966
|
class: "vv-button__label"
|
|
967
|
-
},
|
|
967
|
+
}, Cn = {
|
|
968
968
|
key: 1,
|
|
969
969
|
class: "vv-button__label"
|
|
970
|
-
},
|
|
970
|
+
}, wn = /* @__PURE__ */ L({
|
|
971
971
|
name: "VvButton",
|
|
972
972
|
inheritAttrs: !1,
|
|
973
|
-
props:
|
|
974
|
-
emits:
|
|
973
|
+
props: fn,
|
|
974
|
+
emits: dn,
|
|
975
975
|
setup(e, { expose: t, emit: n }) {
|
|
976
|
-
let r = e, i = n, a = d(), o = C(), { id: s, modifiers: c, iconPosition: u, icon: f, label: p, modelValue: m, disabled: g, toggle: _, unselectable: v } =
|
|
976
|
+
let r = e, i = n, a = d(), o = C(), { id: s, modifiers: c, iconPosition: u, icon: f, label: p, modelValue: m, disabled: g, toggle: _, unselectable: v } = pn(r, i), ee = Jt(s), y = A(() => a?.name || ee.value), b = k(null);
|
|
977
977
|
t({ $el: A(() => b.value?.$el) });
|
|
978
|
-
let x = A(() => _.value ? Array.isArray(m.value) ?
|
|
978
|
+
let x = A(() => _.value ? Array.isArray(m.value) ? yn(y.value, m.value) : mn(y.value, m.value) : r.pressed), S = Z("vv-button", c, A(() => ({
|
|
979
979
|
reverse: [J.right, J.bottom].includes(u.value),
|
|
980
980
|
column: [J.top, J.bottom].includes(u.value),
|
|
981
981
|
"icon-only": !(!f?.value || p?.value || o.default)
|
|
982
|
-
}))), { hasIcon: T } =
|
|
982
|
+
}))), { hasIcon: T } = Yt(f), te = A(() => r.value === void 0 ? y.value : r.value), ne = A(() => {
|
|
983
983
|
if (_.value) return { onClick: E };
|
|
984
984
|
});
|
|
985
985
|
function E() {
|
|
986
986
|
if (_.value) {
|
|
987
987
|
if (Array.isArray(m.value)) {
|
|
988
|
-
if (
|
|
988
|
+
if (yn(te.value, m.value)) {
|
|
989
989
|
v.value && (m.value = m.value.filter((e) => e !== te.value));
|
|
990
990
|
return;
|
|
991
991
|
}
|
|
@@ -999,7 +999,7 @@ var xn = {
|
|
|
999
999
|
m.value = te.value;
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
return (e, t) => (H(), w(
|
|
1002
|
+
return (e, t) => (H(), w(Kt, h({
|
|
1003
1003
|
...R(a),
|
|
1004
1004
|
...R(ne),
|
|
1005
1005
|
disabled: R(g),
|
|
@@ -1021,19 +1021,19 @@ var xn = {
|
|
|
1021
1021
|
key: 0,
|
|
1022
1022
|
class: "vv-button__loading-icon",
|
|
1023
1023
|
name: e.loadingIcon
|
|
1024
|
-
}, null, 8, ["name"])) : I("v-if", !0), e.loadingLabel ? (H(), V("span",
|
|
1024
|
+
}, null, 8, ["name"])) : I("v-if", !0), e.loadingLabel ? (H(), V("span", Sn, j(e.loadingLabel), 1)) : I("v-if", !0)], void 0, 0) : (H(), V(ie, { key: 1 }, [
|
|
1025
1025
|
l(e.$slots, "before"),
|
|
1026
1026
|
R(T) ? (H(), w(Q, h({ key: 0 }, R(T), { class: "vv-button__icon" }), null, 16)) : I("v-if", !0),
|
|
1027
|
-
R(p) ? (H(), V("span",
|
|
1027
|
+
R(p) ? (H(), V("span", Cn, [l(e.$slots, "label", {}, () => [z(j(R(p)), 1)])])) : I("v-if", !0),
|
|
1028
1028
|
l(e.$slots, "after")
|
|
1029
1029
|
], 64))])]),
|
|
1030
1030
|
_: 3
|
|
1031
1031
|
}, 16, ["id", "class"]));
|
|
1032
1032
|
}
|
|
1033
|
-
}),
|
|
1033
|
+
}), Tn = {
|
|
1034
1034
|
...X,
|
|
1035
|
-
...
|
|
1036
|
-
...
|
|
1035
|
+
...nt,
|
|
1036
|
+
...yt,
|
|
1037
1037
|
legendLabel: { type: String },
|
|
1038
1038
|
itemModifiers: {
|
|
1039
1039
|
type: [String, Array],
|
|
@@ -1056,18 +1056,18 @@ var xn = {
|
|
|
1056
1056
|
],
|
|
1057
1057
|
default: void 0
|
|
1058
1058
|
}
|
|
1059
|
-
},
|
|
1059
|
+
}, En = ["update:modelValue"], Dn = {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
class: "vv-button-group__legend"
|
|
1062
|
-
},
|
|
1062
|
+
}, On = /* @__PURE__ */ L({
|
|
1063
1063
|
name: "VvButtonGroup",
|
|
1064
|
-
props:
|
|
1065
|
-
emits:
|
|
1064
|
+
props: Tn,
|
|
1065
|
+
emits: En,
|
|
1066
1066
|
setup(t, { emit: n }) {
|
|
1067
1067
|
let r = t, i = n, { disabled: a, toggle: s, modifiers: c, multiple: u, unselectable: d, itemModifiers: f } = B(r);
|
|
1068
1068
|
e(() => {
|
|
1069
1069
|
typeof r.modelValue == "string" && u.value && console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.");
|
|
1070
|
-
}),
|
|
1070
|
+
}), Bt(Ge, {
|
|
1071
1071
|
modelValue: A({
|
|
1072
1072
|
get: () => u.value ? r.modelValue : Array.isArray(r.modelValue) ? r.modelValue[0] : r.modelValue,
|
|
1073
1073
|
set: (e) => e !== void 0 && (Array.isArray(r.modelValue) || u.value) && !Array.isArray(e) ? i("update:modelValue", [e]) : i("update:modelValue", e)
|
|
@@ -1082,12 +1082,12 @@ var xn = {
|
|
|
1082
1082
|
return (e, t) => (H(), V("fieldset", {
|
|
1083
1083
|
class: o(R(p)),
|
|
1084
1084
|
role: "group"
|
|
1085
|
-
}, [e.$slots.legend || e.legendLabel ? (H(), V("legend",
|
|
1085
|
+
}, [e.$slots.legend || e.legendLabel ? (H(), V("legend", Dn, [l(e.$slots, "legend", {}, () => [z(j(e.legendLabel), 1)])])) : I("v-if", !0), l(e.$slots, "default")], 2));
|
|
1086
1086
|
}
|
|
1087
1087
|
});
|
|
1088
1088
|
({ ...X });
|
|
1089
|
-
var
|
|
1090
|
-
...
|
|
1089
|
+
var kn = {
|
|
1090
|
+
...Et,
|
|
1091
1091
|
...X,
|
|
1092
1092
|
indeterminate: Boolean,
|
|
1093
1093
|
uncheckedValue: [
|
|
@@ -1096,14 +1096,14 @@ var On = {
|
|
|
1096
1096
|
Boolean
|
|
1097
1097
|
],
|
|
1098
1098
|
switch: Boolean
|
|
1099
|
-
},
|
|
1099
|
+
}, An = [
|
|
1100
1100
|
"click",
|
|
1101
1101
|
"update:modelValue",
|
|
1102
1102
|
"change",
|
|
1103
1103
|
"blur"
|
|
1104
1104
|
];
|
|
1105
|
-
function
|
|
1106
|
-
let { group: n, isInGroup: r, getGroupOrLocalRef: i } =
|
|
1105
|
+
function jn(e, t) {
|
|
1106
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = jt(qe), { id: a, switch: o, indeterminate: s } = B(e);
|
|
1107
1107
|
return {
|
|
1108
1108
|
id: a,
|
|
1109
1109
|
propsSwitch: o,
|
|
@@ -1117,11 +1117,11 @@ function An(e, t) {
|
|
|
1117
1117
|
disabled: A(() => !!(e.disabled || n?.disabled.value))
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
1120
|
+
function Mn(e) {
|
|
1121
|
+
return Array.isArray(e) ? e.filter((e) => xn(e)).join(" ") : e;
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1124
|
-
let n = A(() => F(e) ? e.value : e), i = A(() =>
|
|
1123
|
+
function Nn(e, t) {
|
|
1124
|
+
let n = A(() => F(e) ? e.value : e), i = A(() => Mn(n.value.invalidLabel)), a = A(() => Mn(n.value.validLabel)), o = A(() => n.value.loadingLabel), s = A(() => n.value.hintLabel), c = A(() => !!(n.value.loading && (t.loading || o.value))), l = A(() => !c.value && !!(n.value.invalid && (t.invalid || i.value))), u = A(() => !c.value && !l.value && !!(n.value.valid && (t.valid || a.value))), d = A(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), f = A(() => l.value || u.value || c.value || d.value);
|
|
1125
1125
|
return {
|
|
1126
1126
|
hasInvalidLabelOrSlot: l,
|
|
1127
1127
|
hasHintLabelOrSlot: d,
|
|
@@ -1162,7 +1162,7 @@ function Mn(e, t) {
|
|
|
1162
1162
|
})
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function Pn(e, t, n) {
|
|
1166
1166
|
let r = t;
|
|
1167
1167
|
if (Array.isArray(e) && e.length) {
|
|
1168
1168
|
let i = e[0];
|
|
@@ -1174,8 +1174,8 @@ function Nn(e, t, n) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
return r;
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1178
|
-
let r =
|
|
1177
|
+
function Fn(e, t, n) {
|
|
1178
|
+
let r = Ht(), i = A(() => {
|
|
1179
1179
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1180
1180
|
});
|
|
1181
1181
|
return A(() => {
|
|
@@ -1183,11 +1183,11 @@ function Pn(e, t, n) {
|
|
|
1183
1183
|
let e = i.value, r = t, a = n;
|
|
1184
1184
|
return Object.keys(r).reduce((t, n) => {
|
|
1185
1185
|
let i = a[n];
|
|
1186
|
-
return t[n] = n in e ?
|
|
1186
|
+
return t[n] = n in e ? Pn(r[n], i, e[n]) : i, t;
|
|
1187
1187
|
}, {});
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
|
-
var
|
|
1190
|
+
var In = ["for"], Ln = [
|
|
1191
1191
|
"id",
|
|
1192
1192
|
"name",
|
|
1193
1193
|
"disabled",
|
|
@@ -1198,15 +1198,15 @@ var Fn = ["for"], In = [
|
|
|
1198
1198
|
"aria-invalid",
|
|
1199
1199
|
"aria-describedby",
|
|
1200
1200
|
"aria-errormessage"
|
|
1201
|
-
],
|
|
1201
|
+
], Rn = { class: "vv-checkbox__label" }, zn = /* @__PURE__ */ L({
|
|
1202
1202
|
name: "VvCheckbox",
|
|
1203
|
-
props:
|
|
1204
|
-
emits:
|
|
1203
|
+
props: kn,
|
|
1204
|
+
emits: An,
|
|
1205
1205
|
setup(t, { emit: n }) {
|
|
1206
|
-
let r = t, s = n, c = C(), u =
|
|
1206
|
+
let r = t, s = n, c = C(), u = Fn("VvCheckbox", kn, r), { id: d, disabled: p, readonly: m, valid: h, invalid: v, propsSwitch: ee, modelValue: y, indeterminate: b, isInGroup: x } = jn(r, s), S = Jt(d), w = A(() => `${S.value}-hint`), ne = A(() => re.value ? -1 : r.tabindex), E = k(), D = A(() => r.uncheckedValue !== void 0 && !x.value), re = A(() => p.value || m.value), ie = A(() => {
|
|
1207
1207
|
if (v.value === !0) return !0;
|
|
1208
1208
|
if (h.value === !0) return !1;
|
|
1209
|
-
}), ae = A(() => D.value ? y.value === r.value : Array.isArray(y.value) ?
|
|
1209
|
+
}), ae = A(() => D.value ? y.value === r.value : Array.isArray(y.value) ? yn(r.value, y.value) : mn(r.value, y.value)), oe = A(() => !!(b.value || !ae.value && D.value && r.uncheckedValue !== y.value)), ce = A(() => {
|
|
1210
1210
|
if (!D.value) return ![
|
|
1211
1211
|
"string",
|
|
1212
1212
|
"number",
|
|
@@ -1239,7 +1239,7 @@ var Fn = ["for"], In = [
|
|
|
1239
1239
|
}), f(() => {
|
|
1240
1240
|
oe.value && (E.value.indeterminate = !0);
|
|
1241
1241
|
});
|
|
1242
|
-
let { HintSlot: de, hasHintLabelOrSlot: fe, hasInvalidLabelOrSlot: N, hintSlotScope: I } =
|
|
1242
|
+
let { HintSlot: de, hasHintLabelOrSlot: fe, hasInvalidLabelOrSlot: N, hintSlotScope: I } = Nn(u, c), L = A(() => [r.ariaDescribedby, fe.value ? w.value : void 0].filter(Boolean).join(" ") || void 0);
|
|
1243
1243
|
return (e, t) => (H(), V("label", {
|
|
1244
1244
|
class: o(R(ue)),
|
|
1245
1245
|
for: R(S)
|
|
@@ -1260,8 +1260,8 @@ var Fn = ["for"], In = [
|
|
|
1260
1260
|
"aria-invalid": R(ie),
|
|
1261
1261
|
"aria-describedby": R(L),
|
|
1262
1262
|
"aria-errormessage": R(N) ? R(w) : void 0
|
|
1263
|
-
}, null, 8,
|
|
1264
|
-
O("span",
|
|
1263
|
+
}, null, 8, Ln), [[T, R(M)]]),
|
|
1264
|
+
O("span", Rn, [l(e.$slots, "default", { value: R(y) }, () => [z(j(e.label), 1)])]),
|
|
1265
1265
|
_(R(de), {
|
|
1266
1266
|
id: R(w),
|
|
1267
1267
|
class: "vv-checkbox__hint"
|
|
@@ -1287,33 +1287,33 @@ var Fn = ["for"], In = [
|
|
|
1287
1287
|
key: "3"
|
|
1288
1288
|
} : void 0
|
|
1289
1289
|
]), 1032, ["id"])
|
|
1290
|
-
], 10,
|
|
1290
|
+
], 10, In));
|
|
1291
1291
|
}
|
|
1292
|
-
}),
|
|
1293
|
-
function
|
|
1292
|
+
}), Bn = ["update:modelValue", "change"];
|
|
1293
|
+
function Vn(e) {
|
|
1294
1294
|
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = B(e);
|
|
1295
1295
|
return {
|
|
1296
1296
|
options: t,
|
|
1297
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
1298
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
1299
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
1297
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? je(e, n.value) : e),
|
|
1298
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? je(e, r.value) : e,
|
|
1299
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!je(e, i.value) : !1,
|
|
1300
1300
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
1303
|
-
var
|
|
1303
|
+
var Hn = ["textContent"], Un = { class: "vv-checkbox-group__wrapper" }, Wn = /* @__PURE__ */ L({
|
|
1304
1304
|
name: "VvCheckboxGroup",
|
|
1305
|
-
props:
|
|
1306
|
-
emits:
|
|
1305
|
+
props: Dt,
|
|
1306
|
+
emits: Bn,
|
|
1307
1307
|
setup(e, { emit: t }) {
|
|
1308
|
-
let n = e, r = t, s = C(), c =
|
|
1309
|
-
|
|
1308
|
+
let n = e, r = t, s = C(), c = Fn("VvCheckboxGroup", Dt, n), u = pe(n, "modelValue", r), { disabled: d, readonly: f, vertical: p, valid: m, invalid: g, modifiers: v } = B(n);
|
|
1309
|
+
Bt(qe, {
|
|
1310
1310
|
modelValue: u,
|
|
1311
1311
|
disabled: d,
|
|
1312
1312
|
readonly: f,
|
|
1313
1313
|
valid: m,
|
|
1314
1314
|
invalid: g
|
|
1315
1315
|
});
|
|
1316
|
-
let { getOptionLabel: ee, getOptionValue: y, isOptionDisabled: b } =
|
|
1316
|
+
let { getOptionLabel: ee, getOptionValue: y, isOptionDisabled: b } = Vn(n), S = Z("vv-checkbox-group", v, A(() => ({
|
|
1317
1317
|
disabled: d.value,
|
|
1318
1318
|
readonly: f.value,
|
|
1319
1319
|
required: n.required,
|
|
@@ -1331,13 +1331,13 @@ var Vn = ["textContent"], Hn = { class: "vv-checkbox-group__wrapper" }, Un = /*
|
|
|
1331
1331
|
disabled: b(e)
|
|
1332
1332
|
};
|
|
1333
1333
|
}
|
|
1334
|
-
let { HintSlot: ne, hintSlotScope: E } =
|
|
1334
|
+
let { HintSlot: ne, hintSlotScope: E } = Nn(c, s);
|
|
1335
1335
|
return (e, t) => (H(), V("fieldset", { class: o(R(S)) }, [
|
|
1336
1336
|
e.label ? (H(), V("legend", {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
textContent: j(e.label)
|
|
1339
|
-
}, null, 8,
|
|
1340
|
-
O("div",
|
|
1339
|
+
}, null, 8, Hn)) : I("v-if", !0),
|
|
1340
|
+
O("div", Un, [e.options.length > 0 ? (H(!0), V(ie, { key: 0 }, x(e.options, (e, t) => (H(), w(zn, h({ key: t }, { ref_for: !0 }, T(e, t)), null, 16))), 128)) : l(e.$slots, "default", {}, void 0, void 0, 1)]),
|
|
1341
1341
|
_(R(ne), { class: "vv-checkbox-group__hint" }, te({ _: 2 }, [
|
|
1342
1342
|
e.$slots.hint ? {
|
|
1343
1343
|
name: "hint",
|
|
@@ -1362,24 +1362,24 @@ var Vn = ["textContent"], Hn = { class: "vv-checkbox-group__wrapper" }, Un = /*
|
|
|
1362
1362
|
]), 1024)
|
|
1363
1363
|
], 2));
|
|
1364
1364
|
}
|
|
1365
|
-
}),
|
|
1366
|
-
...
|
|
1367
|
-
...
|
|
1368
|
-
...$e,
|
|
1365
|
+
}), Gn = {
|
|
1366
|
+
...St,
|
|
1367
|
+
..._t,
|
|
1369
1368
|
...Y,
|
|
1370
|
-
...dt,
|
|
1371
1369
|
...et,
|
|
1370
|
+
...ft,
|
|
1372
1371
|
...tt,
|
|
1373
|
-
...
|
|
1372
|
+
...nt,
|
|
1373
|
+
...dt,
|
|
1374
1374
|
...X,
|
|
1375
|
-
...
|
|
1376
|
-
...
|
|
1377
|
-
...
|
|
1378
|
-
...
|
|
1379
|
-
...ct,
|
|
1375
|
+
...pt,
|
|
1376
|
+
...gt,
|
|
1377
|
+
...vt,
|
|
1378
|
+
...xt,
|
|
1380
1379
|
...lt,
|
|
1381
|
-
...
|
|
1382
|
-
...
|
|
1380
|
+
...ut,
|
|
1381
|
+
...rt,
|
|
1382
|
+
...st,
|
|
1383
1383
|
transitionName: {
|
|
1384
1384
|
type: String,
|
|
1385
1385
|
default: "vv-dropdown--mobile-fade-block"
|
|
@@ -1467,7 +1467,7 @@ var Vn = ["textContent"], Hn = { class: "vv-checkbox-group__wrapper" }, Un = /*
|
|
|
1467
1467
|
default: "action sm"
|
|
1468
1468
|
},
|
|
1469
1469
|
triggerWidth: {
|
|
1470
|
-
...
|
|
1470
|
+
...xt.triggerWidth,
|
|
1471
1471
|
default: !0
|
|
1472
1472
|
},
|
|
1473
1473
|
dropdownModifiers: {
|
|
@@ -1491,20 +1491,20 @@ var Vn = ["textContent"], Hn = { class: "vv-checkbox-group__wrapper" }, Un = /*
|
|
|
1491
1491
|
default: !0
|
|
1492
1492
|
}
|
|
1493
1493
|
};
|
|
1494
|
-
function
|
|
1494
|
+
function Kn() {
|
|
1495
1495
|
return {
|
|
1496
|
-
...
|
|
1496
|
+
...Gn,
|
|
1497
1497
|
options: {
|
|
1498
|
-
...
|
|
1498
|
+
...Gn.options,
|
|
1499
1499
|
type: Array
|
|
1500
1500
|
},
|
|
1501
1501
|
searchFunction: {
|
|
1502
|
-
...
|
|
1502
|
+
...Gn.searchFunction,
|
|
1503
1503
|
type: Function
|
|
1504
1504
|
}
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
|
-
var
|
|
1507
|
+
var qn = L({
|
|
1508
1508
|
components: { VvIcon: Q },
|
|
1509
1509
|
props: {
|
|
1510
1510
|
inputType: {
|
|
@@ -1526,7 +1526,7 @@ var Kn = L({
|
|
|
1526
1526
|
},
|
|
1527
1527
|
emits: ["clear"],
|
|
1528
1528
|
setup(e, { emit: t }) {
|
|
1529
|
-
let { hasIcon: n } =
|
|
1529
|
+
let { hasIcon: n } = Yt(A(() => e.icon));
|
|
1530
1530
|
function r(n) {
|
|
1531
1531
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
1532
1532
|
}
|
|
@@ -1548,9 +1548,9 @@ var Kn = L({
|
|
|
1548
1548
|
onClick: this.onClick
|
|
1549
1549
|
}, e);
|
|
1550
1550
|
}
|
|
1551
|
-
}),
|
|
1552
|
-
...yt,
|
|
1551
|
+
}), Jn = {
|
|
1553
1552
|
...bt,
|
|
1553
|
+
...xt,
|
|
1554
1554
|
...X,
|
|
1555
1555
|
modelValue: {
|
|
1556
1556
|
type: Boolean,
|
|
@@ -1562,16 +1562,16 @@ var Kn = L({
|
|
|
1562
1562
|
},
|
|
1563
1563
|
role: {
|
|
1564
1564
|
type: String,
|
|
1565
|
-
default:
|
|
1566
|
-
validator: (e) => Object.values(
|
|
1565
|
+
default: Ve.menu,
|
|
1566
|
+
validator: (e) => Object.values(Ve).includes(e)
|
|
1567
1567
|
}
|
|
1568
|
-
},
|
|
1568
|
+
}, Yn = { focusOnHover: {
|
|
1569
1569
|
type: Boolean,
|
|
1570
1570
|
default: !1
|
|
1571
|
-
} },
|
|
1572
|
-
...
|
|
1573
|
-
...
|
|
1574
|
-
...
|
|
1571
|
+
} }, Xn = {
|
|
1572
|
+
...nt,
|
|
1573
|
+
...it,
|
|
1574
|
+
...yt,
|
|
1575
1575
|
...X,
|
|
1576
1576
|
deselectHintLabel: { type: String },
|
|
1577
1577
|
selectHintLabel: { type: String },
|
|
@@ -1581,7 +1581,7 @@ var Kn = L({
|
|
|
1581
1581
|
default: !1
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
|
-
function
|
|
1584
|
+
function Zn(e, t) {
|
|
1585
1585
|
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = A(() => n && v(t)), i = A(() => r.value ? "manual" : void 0);
|
|
1586
1586
|
function a() {
|
|
1587
1587
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
@@ -1603,14 +1603,14 @@ function Xn(e, t) {
|
|
|
1603
1603
|
hide: s
|
|
1604
1604
|
};
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1607
|
-
let o =
|
|
1606
|
+
function Qn({ reference: e, id: t, expanded: i, aria: a }) {
|
|
1607
|
+
let o = we();
|
|
1608
1608
|
return {
|
|
1609
1609
|
bus: o,
|
|
1610
1610
|
component: L({
|
|
1611
1611
|
name: "VvDropdownTriggerProvider",
|
|
1612
1612
|
setup() {
|
|
1613
|
-
n(
|
|
1613
|
+
n(Ye, {
|
|
1614
1614
|
reference: e,
|
|
1615
1615
|
id: t,
|
|
1616
1616
|
expanded: i,
|
|
@@ -1624,29 +1624,29 @@ function Zn({ reference: e, id: t, expanded: i, aria: a }) {
|
|
|
1624
1624
|
})
|
|
1625
1625
|
};
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1628
|
-
let r = A(() => e.value ===
|
|
1629
|
-
return n(
|
|
1627
|
+
function $n({ role: e, ...t }) {
|
|
1628
|
+
let r = A(() => e.value === Ve.listbox ? He.option : He.presentation);
|
|
1629
|
+
return n(Xe, {
|
|
1630
1630
|
role: r,
|
|
1631
1631
|
...t
|
|
1632
1632
|
}), { itemRole: r };
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1635
|
-
n(
|
|
1636
|
-
role: k(
|
|
1634
|
+
function er({ expanded: e, onAction: t }) {
|
|
1635
|
+
n(Ze, {
|
|
1636
|
+
role: k(Be.menuitem),
|
|
1637
1637
|
expanded: e,
|
|
1638
1638
|
onAction: t
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
1641
|
-
var
|
|
1641
|
+
var tr = ["popover"], nr = [
|
|
1642
1642
|
"id",
|
|
1643
1643
|
"tabindex",
|
|
1644
1644
|
"role",
|
|
1645
1645
|
"aria-labelledby"
|
|
1646
|
-
],
|
|
1646
|
+
], rr = /* @__PURE__ */ L({
|
|
1647
1647
|
name: "VvDropdown",
|
|
1648
1648
|
inheritAttrs: !1,
|
|
1649
|
-
props:
|
|
1649
|
+
props: Jn,
|
|
1650
1650
|
emits: [
|
|
1651
1651
|
"update:modelValue",
|
|
1652
1652
|
"beforeEnter",
|
|
@@ -1665,14 +1665,14 @@ var er = ["popover"], tr = [
|
|
|
1665
1665
|
"leaveCancelled"
|
|
1666
1666
|
],
|
|
1667
1667
|
setup(e, { expose: t, emit: n }) {
|
|
1668
|
-
let r = e, u = n, { id: p } = B(r), v =
|
|
1668
|
+
let r = e, u = n, { id: p } = B(r), v = Jt(p), ee = d(), y = k(), b = k(), x = k(), S = k(), C = A({
|
|
1669
1669
|
get: () => r.reference ?? y.value,
|
|
1670
1670
|
set: (e) => {
|
|
1671
1671
|
y.value = e;
|
|
1672
1672
|
}
|
|
1673
|
-
}), { isTopLayer: w, popover: T, show: te, hide: ne } =
|
|
1673
|
+
}), { isTopLayer: w, popover: T, show: te, hide: ne } = Zn(b, () => r.topLayer), E = A(() => w.value ? Fe.fixed : r.strategy), D = k(!1);
|
|
1674
1674
|
f(() => {
|
|
1675
|
-
|
|
1675
|
+
ge(b.value, () => {
|
|
1676
1676
|
D.value = globalThis.getComputedStyle(b.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
1677
1677
|
}, {
|
|
1678
1678
|
attributeFilter: ["style"],
|
|
@@ -1706,31 +1706,31 @@ var er = ["popover"], tr = [
|
|
|
1706
1706
|
}
|
|
1707
1707
|
}, ue = A(() => {
|
|
1708
1708
|
let e = [];
|
|
1709
|
-
r.triggerWidth && e.push(le), r.size && e.push(ce), r.offset && e.push(["string", "number"].includes(typeof r.offset) ?
|
|
1709
|
+
r.triggerWidth && e.push(le), r.size && e.push(ce), r.offset && e.push(["string", "number"].includes(typeof r.offset) ? Ee(Number(r.offset)) : Ee(r.offset));
|
|
1710
1710
|
let t = typeof r.size == "object" ? r.size.padding : void 0;
|
|
1711
|
-
if (r.autoPlacement ? e.push(ae(r.autoPlacement, () =>
|
|
1711
|
+
if (r.autoPlacement ? e.push(ae(r.autoPlacement, () => G(), (e) => G(e))) : r.flip && e.push(ae(r.flip, () => W({
|
|
1712
1712
|
fallbackStrategy: "initialPlacement",
|
|
1713
1713
|
padding: t
|
|
1714
|
-
}), (e) =>
|
|
1714
|
+
}), (e) => W({
|
|
1715
1715
|
padding: t,
|
|
1716
1716
|
...e
|
|
1717
|
-
}))), r.shift && e.push(ae(r.shift, () =>
|
|
1717
|
+
}))), r.shift && e.push(ae(r.shift, () => De(), (e) => De(e))), r.size) {
|
|
1718
1718
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
1719
1719
|
if (j(r.floating) || D.value) return;
|
|
1720
1720
|
let { style: i } = n.floating;
|
|
1721
1721
|
i.maxWidth = M(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
1722
1722
|
};
|
|
1723
|
-
e.push(ae(r.size, () =>
|
|
1723
|
+
e.push(ae(r.size, () => Se({ apply: t }), (e) => Se({
|
|
1724
1724
|
...e,
|
|
1725
1725
|
apply: (n) => (t(n), e?.apply?.(n))
|
|
1726
1726
|
})));
|
|
1727
1727
|
}
|
|
1728
|
-
return r.arrow && e.push(
|
|
1729
|
-
}), { x: de, y: fe, middlewareData: F, placement: L, strategy: z, update:
|
|
1728
|
+
return r.arrow && e.push(Oe({ element: x })), e;
|
|
1729
|
+
}), { x: de, y: fe, middlewareData: F, placement: L, strategy: z, update: he } = Te(C, b, {
|
|
1730
1730
|
placement: A(() => r.placement),
|
|
1731
1731
|
strategy: E,
|
|
1732
1732
|
middleware: ue
|
|
1733
|
-
}),
|
|
1733
|
+
}), be = A(() => {
|
|
1734
1734
|
if (!D.value) return {
|
|
1735
1735
|
position: z.value,
|
|
1736
1736
|
top: `${fe.value ?? 0}px`,
|
|
@@ -1740,23 +1740,23 @@ var er = ["popover"], tr = [
|
|
|
1740
1740
|
g(() => r.triggerWidth, (e) => {
|
|
1741
1741
|
!e && b.value && (b.value.style.width = "");
|
|
1742
1742
|
});
|
|
1743
|
-
let
|
|
1743
|
+
let xe = A(() => L.value.split("-")[0]), we = A(() => {
|
|
1744
1744
|
if (D.value) return;
|
|
1745
1745
|
let e = {
|
|
1746
1746
|
[J.top]: J.bottom,
|
|
1747
1747
|
[J.right]: J.left,
|
|
1748
1748
|
[J.bottom]: J.top,
|
|
1749
1749
|
[J.left]: J.right
|
|
1750
|
-
}[
|
|
1750
|
+
}[xe.value];
|
|
1751
1751
|
return {
|
|
1752
1752
|
left: F.value.arrow?.x === void 0 ? void 0 : `${F.value.arrow?.x}px`,
|
|
1753
1753
|
top: F.value.arrow?.y === void 0 ? void 0 : `${F.value.arrow?.y}px`,
|
|
1754
1754
|
[e]: `${-(x.value?.offsetWidth ?? 0) / 2}px`
|
|
1755
1755
|
};
|
|
1756
|
-
}),
|
|
1757
|
-
get: () =>
|
|
1756
|
+
}), ke = pe(r, "modelValue", u), Ae = k(!1), K = A({
|
|
1757
|
+
get: () => ke.value ?? Ae.value,
|
|
1758
1758
|
set: (e) => {
|
|
1759
|
-
|
|
1759
|
+
ke.value === void 0 ? Ae.value = e : ke.value = e;
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
1762
|
g([
|
|
@@ -1765,12 +1765,12 @@ var er = ["popover"], tr = [
|
|
|
1765
1765
|
b,
|
|
1766
1766
|
E
|
|
1767
1767
|
], ([e, t, n, r], i, a) => {
|
|
1768
|
-
e && t && n && a(
|
|
1768
|
+
e && t && n && a(Ce(t, n, he, { animationFrame: r === Fe.fixed }));
|
|
1769
1769
|
}, {
|
|
1770
1770
|
flush: "post",
|
|
1771
1771
|
immediate: !0
|
|
1772
|
-
}),
|
|
1773
|
-
K.value &&
|
|
1772
|
+
}), ge(S, () => {
|
|
1773
|
+
K.value && he();
|
|
1774
1774
|
}, {
|
|
1775
1775
|
childList: !0,
|
|
1776
1776
|
subtree: !0,
|
|
@@ -1778,88 +1778,92 @@ var er = ["popover"], tr = [
|
|
|
1778
1778
|
}), re(() => {
|
|
1779
1779
|
K.value && te();
|
|
1780
1780
|
});
|
|
1781
|
-
function
|
|
1781
|
+
function je() {
|
|
1782
1782
|
K.value = !0;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Me() {
|
|
1785
1785
|
K.value = !1;
|
|
1786
1786
|
}
|
|
1787
1787
|
function q() {
|
|
1788
1788
|
K.value = !K.value;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function Ne(e) {
|
|
1791
1791
|
C.value = e;
|
|
1792
1792
|
}
|
|
1793
|
-
|
|
1793
|
+
_e(b, () => {
|
|
1794
1794
|
!r.keepOpen && K.value && (K.value = !1);
|
|
1795
1795
|
}, { ignore: [C] });
|
|
1796
|
-
let
|
|
1796
|
+
let Pe = A(() => C.value?.getAttribute?.("id") ?? void 0), Ie = A(() => ({
|
|
1797
1797
|
"aria-controls": v.value,
|
|
1798
1798
|
"aria-haspopup": !0,
|
|
1799
1799
|
"aria-expanded": K.value
|
|
1800
|
-
})), { component:
|
|
1800
|
+
})), { component: Le, bus: Re } = Qn({
|
|
1801
1801
|
reference: C,
|
|
1802
1802
|
id: v,
|
|
1803
1803
|
expanded: K,
|
|
1804
|
-
aria:
|
|
1804
|
+
aria: Ie
|
|
1805
1805
|
});
|
|
1806
|
-
|
|
1807
|
-
let { role:
|
|
1808
|
-
function
|
|
1806
|
+
Re.on("click", q);
|
|
1807
|
+
let { role: ze, modifiers: Be } = B(r), He = Z("vv-dropdown", Be, A(() => ({ arrow: r.arrow }))), { focused: Ue } = ve(b);
|
|
1808
|
+
function We(e) {
|
|
1809
1809
|
return e?.getRootNode()?.activeElement ?? null;
|
|
1810
1810
|
}
|
|
1811
|
-
let
|
|
1812
|
-
function
|
|
1811
|
+
let Ge = "a[href], button, input:not([type=\"hidden\"]), textarea, select, details, [tabindex]:not([tabindex=\"-1\"])";
|
|
1812
|
+
function Ke(e) {
|
|
1813
1813
|
return !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true";
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
return e ? [...e.querySelectorAll(
|
|
1815
|
+
function qe(e) {
|
|
1816
|
+
return e ? [...e.querySelectorAll(Ge)].filter(Ke) : [];
|
|
1817
1817
|
}
|
|
1818
|
-
let
|
|
1818
|
+
let Je = k(!1);
|
|
1819
1819
|
function Ye() {
|
|
1820
|
+
Je.value = !0, setTimeout(() => {
|
|
1821
|
+
Je.value = !1;
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
let Xe;
|
|
1825
|
+
function Ze() {
|
|
1820
1826
|
let e = C.value?.$el ?? C.value;
|
|
1821
1827
|
if (e instanceof HTMLElement) {
|
|
1822
|
-
if (e.matches(
|
|
1823
|
-
let t = e.querySelector(`[aria-controls="${CSS.escape(String(v.value))}"]`), n = t &&
|
|
1828
|
+
if (e.matches(Ge) && Ke(e)) return e;
|
|
1829
|
+
let t = e.querySelector(`[aria-controls="${CSS.escape(String(v.value))}"]`), n = t && Ke(t) ? t : qe(e).find((e) => !b.value?.contains(e));
|
|
1824
1830
|
if (n) return n;
|
|
1825
1831
|
}
|
|
1826
|
-
return
|
|
1832
|
+
return Xe?.isConnected ? Xe : void 0;
|
|
1827
1833
|
}
|
|
1828
|
-
function
|
|
1829
|
-
let e =
|
|
1830
|
-
e && (
|
|
1831
|
-
qe.value = !1;
|
|
1832
|
-
}));
|
|
1834
|
+
function Qe() {
|
|
1835
|
+
let e = Ze();
|
|
1836
|
+
e && (Ye(), e.focus({ preventScroll: !0 }));
|
|
1833
1837
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ??
|
|
1838
|
+
function $e(e) {
|
|
1839
|
+
return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ?? We(b.value)?.closest(".vv-dropdown") ?? void 0;
|
|
1836
1840
|
}
|
|
1837
|
-
function
|
|
1841
|
+
function Y() {
|
|
1838
1842
|
s(() => {
|
|
1839
|
-
let e =
|
|
1843
|
+
let e = qe(b.value);
|
|
1840
1844
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1841
1845
|
});
|
|
1842
1846
|
}
|
|
1843
|
-
function
|
|
1847
|
+
function et() {
|
|
1844
1848
|
s(() => {
|
|
1845
|
-
let e =
|
|
1849
|
+
let e = qe(S.value);
|
|
1846
1850
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1847
1851
|
});
|
|
1848
1852
|
}
|
|
1849
|
-
function
|
|
1853
|
+
function tt() {
|
|
1850
1854
|
s(() => {
|
|
1851
|
-
if (
|
|
1852
|
-
let e =
|
|
1855
|
+
if (Ue.value) {
|
|
1856
|
+
let e = qe(b.value), t = We(b.value);
|
|
1853
1857
|
if (e.length === 0 || !t) return;
|
|
1854
1858
|
let n = e.indexOf(t);
|
|
1855
1859
|
n < e.length - 1 ? e[n + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
1856
1860
|
}
|
|
1857
1861
|
});
|
|
1858
1862
|
}
|
|
1859
|
-
function
|
|
1863
|
+
function nt() {
|
|
1860
1864
|
s(() => {
|
|
1861
|
-
if (
|
|
1862
|
-
let e =
|
|
1865
|
+
if (Ue.value) {
|
|
1866
|
+
let e = qe(b.value), t = We(b.value);
|
|
1863
1867
|
if (e.length === 0 || !t) return;
|
|
1864
1868
|
let n = e.indexOf(t);
|
|
1865
1869
|
if (n > 0) {
|
|
@@ -1872,46 +1876,46 @@ var er = ["popover"], tr = [
|
|
|
1872
1876
|
}
|
|
1873
1877
|
g(K, (e) => {
|
|
1874
1878
|
if (e) {
|
|
1875
|
-
let e =
|
|
1876
|
-
|
|
1879
|
+
let e = We(b.value) ?? document.activeElement;
|
|
1880
|
+
Xe = e instanceof HTMLElement && !b.value?.contains(e) ? e : void 0;
|
|
1877
1881
|
}
|
|
1878
|
-
e && r.autofocusFirst &&
|
|
1882
|
+
e && r.autofocusFirst && Y();
|
|
1879
1883
|
}), t({
|
|
1880
1884
|
toggle: q,
|
|
1881
|
-
show:
|
|
1882
|
-
hide:
|
|
1883
|
-
init:
|
|
1884
|
-
focusFirst:
|
|
1885
|
-
focusFirstListElement:
|
|
1886
|
-
focusNext:
|
|
1887
|
-
focusPrev:
|
|
1885
|
+
show: je,
|
|
1886
|
+
hide: Me,
|
|
1887
|
+
init: Ne,
|
|
1888
|
+
focusFirst: Y,
|
|
1889
|
+
focusFirstListElement: et,
|
|
1890
|
+
focusNext: tt,
|
|
1891
|
+
focusPrev: nt,
|
|
1888
1892
|
customPosition: D,
|
|
1889
|
-
restoringFocus:
|
|
1893
|
+
restoringFocus: Je
|
|
1890
1894
|
});
|
|
1891
|
-
let
|
|
1892
|
-
|
|
1893
|
-
function
|
|
1894
|
-
if (!K.value || r.keepOpen ||
|
|
1895
|
-
let e =
|
|
1896
|
-
|
|
1897
|
-
}
|
|
1898
|
-
let { itemRole:
|
|
1899
|
-
role:
|
|
1895
|
+
let rt = U(b), { onAction: it } = Wt(), { expanded: at, onAction: ot } = Gt();
|
|
1896
|
+
ot && er({ expanded: at });
|
|
1897
|
+
function st() {
|
|
1898
|
+
if (!K.value || r.keepOpen || ze.value === Ve.listbox) return;
|
|
1899
|
+
let e = We(b.value), t = !!e && !!b.value?.contains(e);
|
|
1900
|
+
Me(), t && Qe(), it?.();
|
|
1901
|
+
}
|
|
1902
|
+
let { itemRole: ct } = $n({
|
|
1903
|
+
role: ze,
|
|
1900
1904
|
expanded: K,
|
|
1901
|
-
focused:
|
|
1902
|
-
hovered:
|
|
1903
|
-
onAction:
|
|
1905
|
+
focused: Ue,
|
|
1906
|
+
hovered: rt,
|
|
1907
|
+
onAction: st
|
|
1904
1908
|
});
|
|
1905
|
-
|
|
1909
|
+
ye("Escape", (e) => {
|
|
1906
1910
|
if (!K.value) return;
|
|
1907
|
-
let t =
|
|
1908
|
-
t && t !== b.value && b.value?.contains(t) || (e.preventDefault(),
|
|
1909
|
-
}),
|
|
1910
|
-
K.value &&
|
|
1911
|
-
}),
|
|
1912
|
-
K.value &&
|
|
1911
|
+
let t = $e(e);
|
|
1912
|
+
t && t !== b.value && b.value?.contains(t) || (e.preventDefault(), Me(), t === b.value && Qe());
|
|
1913
|
+
}), ye("ArrowDown", (e) => {
|
|
1914
|
+
K.value && $e(e) === b.value && (e.preventDefault(), tt());
|
|
1915
|
+
}), ye("ArrowUp", (e) => {
|
|
1916
|
+
K.value && $e(e) === b.value && (e.preventDefault(), nt());
|
|
1913
1917
|
});
|
|
1914
|
-
function
|
|
1918
|
+
function lt(e, t) {
|
|
1915
1919
|
if (e instanceof HTMLElement && e.isContentEditable) return !0;
|
|
1916
1920
|
switch (e.tagName) {
|
|
1917
1921
|
case "BUTTON":
|
|
@@ -1924,12 +1928,44 @@ var er = ["popover"], tr = [
|
|
|
1924
1928
|
default: return !1;
|
|
1925
1929
|
}
|
|
1926
1930
|
}
|
|
1927
|
-
|
|
1928
|
-
if (!K.value ||
|
|
1929
|
-
let t =
|
|
1930
|
-
t instanceof HTMLElement && !
|
|
1931
|
+
ye([" ", "Enter"], (e) => {
|
|
1932
|
+
if (!K.value || $e(e) !== b.value) return;
|
|
1933
|
+
let t = We(b.value);
|
|
1934
|
+
t instanceof HTMLElement && !lt(t, e.key) && t.click();
|
|
1931
1935
|
});
|
|
1932
|
-
let
|
|
1936
|
+
let ut = !1;
|
|
1937
|
+
me("keydown", (e) => {
|
|
1938
|
+
e.key !== "Tab" || !K.value || (ut = !0, setTimeout(() => {
|
|
1939
|
+
ut = !1;
|
|
1940
|
+
}));
|
|
1941
|
+
}, {
|
|
1942
|
+
capture: !0,
|
|
1943
|
+
passive: !0
|
|
1944
|
+
});
|
|
1945
|
+
function dt(e) {
|
|
1946
|
+
return [...e.querySelectorAll("slot")].flatMap((e) => {
|
|
1947
|
+
let t = e.assignedElements({ flatten: !0 });
|
|
1948
|
+
return [...t, ...t.flatMap(dt)];
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
function X(e) {
|
|
1952
|
+
let t = b.value;
|
|
1953
|
+
if (!t) return !1;
|
|
1954
|
+
let n = new Set(dt(t)), r = e;
|
|
1955
|
+
for (; r;) {
|
|
1956
|
+
if (r === t || n.has(r)) return !0;
|
|
1957
|
+
r = r instanceof ShadowRoot ? r.host : r.assignedSlot ?? r.parentNode;
|
|
1958
|
+
}
|
|
1959
|
+
return !1;
|
|
1960
|
+
}
|
|
1961
|
+
me(b, "focusout", (e) => {
|
|
1962
|
+
let t = e.relatedTarget;
|
|
1963
|
+
!ut || !K.value || r.keepOpen || !(t instanceof Node) || X(t) || (Ye(), Me());
|
|
1964
|
+
}, {
|
|
1965
|
+
capture: !0,
|
|
1966
|
+
passive: !0
|
|
1967
|
+
});
|
|
1968
|
+
let ft = {
|
|
1933
1969
|
"before-enter": () => {
|
|
1934
1970
|
u("beforeExpand"), u("beforeEnter");
|
|
1935
1971
|
},
|
|
@@ -1955,34 +1991,34 @@ var er = ["popover"], tr = [
|
|
|
1955
1991
|
u("leaveCancelled");
|
|
1956
1992
|
}
|
|
1957
1993
|
};
|
|
1958
|
-
return (e, t) => (H(), V(ie, null, [_(R(
|
|
1994
|
+
return (e, t) => (H(), V(ie, null, [_(R(Le), null, {
|
|
1959
1995
|
default: P(() => [l(e.$slots, "default", i(a({
|
|
1960
|
-
init:
|
|
1961
|
-
show:
|
|
1962
|
-
hide:
|
|
1996
|
+
init: Ne,
|
|
1997
|
+
show: je,
|
|
1998
|
+
hide: Me,
|
|
1963
1999
|
toggle: q,
|
|
1964
2000
|
expanded: R(K),
|
|
1965
|
-
aria: R(
|
|
2001
|
+
aria: R(Ie)
|
|
1966
2002
|
})))]),
|
|
1967
2003
|
_: 3
|
|
1968
|
-
}), _(N, h({ name: e.transitionName }, c(
|
|
2004
|
+
}), _(N, h({ name: e.transitionName }, c(ft), { persisted: "" }), {
|
|
1969
2005
|
default: P(() => [se(O("div", {
|
|
1970
2006
|
ref_key: "floatingEl",
|
|
1971
2007
|
ref: b,
|
|
1972
2008
|
popover: R(T),
|
|
1973
|
-
style: m(R(
|
|
1974
|
-
class: o(R(
|
|
2009
|
+
style: m(R(be)),
|
|
2010
|
+
class: o(R(He))
|
|
1975
2011
|
}, [
|
|
1976
2012
|
r.arrow ? (H(), V("div", {
|
|
1977
2013
|
key: 0,
|
|
1978
2014
|
ref_key: "arrowEl",
|
|
1979
2015
|
ref: x,
|
|
1980
|
-
style: m(R(
|
|
2016
|
+
style: m(R(we)),
|
|
1981
2017
|
class: "vv-dropdown__arrow"
|
|
1982
2018
|
}, null, 4)) : I("v-if", !0),
|
|
1983
2019
|
l(e.$slots, "before", i(a({
|
|
1984
|
-
show:
|
|
1985
|
-
hide:
|
|
2020
|
+
show: je,
|
|
2021
|
+
hide: Me,
|
|
1986
2022
|
toggle: q,
|
|
1987
2023
|
expanded: R(K)
|
|
1988
2024
|
}))),
|
|
@@ -1991,38 +2027,38 @@ var er = ["popover"], tr = [
|
|
|
1991
2027
|
ref_key: "listEl",
|
|
1992
2028
|
ref: S,
|
|
1993
2029
|
tabindex: R(K) ? void 0 : -1,
|
|
1994
|
-
role: R(
|
|
1995
|
-
"aria-labelledby": R(
|
|
2030
|
+
role: R(ze),
|
|
2031
|
+
"aria-labelledby": R(Pe),
|
|
1996
2032
|
class: "vv-dropdown__list"
|
|
1997
2033
|
}), [l(e.$slots, "items", i(a({
|
|
1998
|
-
show:
|
|
1999
|
-
hide:
|
|
2034
|
+
show: je,
|
|
2035
|
+
hide: Me,
|
|
2000
2036
|
toggle: q,
|
|
2001
2037
|
expanded: R(K),
|
|
2002
|
-
role: R(
|
|
2003
|
-
})))], 16,
|
|
2038
|
+
role: R(ct)
|
|
2039
|
+
})))], 16, nr),
|
|
2004
2040
|
l(e.$slots, "after", i(a({
|
|
2005
|
-
show:
|
|
2006
|
-
hide:
|
|
2041
|
+
show: je,
|
|
2042
|
+
hide: Me,
|
|
2007
2043
|
toggle: q,
|
|
2008
2044
|
expanded: R(K)
|
|
2009
2045
|
})))
|
|
2010
|
-
], 14,
|
|
2046
|
+
], 14, tr), [[oe, R(K)]])]),
|
|
2011
2047
|
_: 3
|
|
2012
2048
|
}, 16, ["name"])], 64));
|
|
2013
2049
|
}
|
|
2014
2050
|
});
|
|
2015
|
-
({ ...
|
|
2016
|
-
var
|
|
2051
|
+
({ ...lt });
|
|
2052
|
+
var ir = /* @__PURE__ */ L({
|
|
2017
2053
|
name: "VvDropdownItem",
|
|
2018
|
-
props:
|
|
2054
|
+
props: Yn,
|
|
2019
2055
|
setup(e) {
|
|
2020
|
-
let t = e, { role: n, expanded: r, onAction: i } =
|
|
2021
|
-
|
|
2056
|
+
let t = e, { role: n, expanded: r, onAction: i } = Wt(), a = k(null);
|
|
2057
|
+
er({
|
|
2022
2058
|
expanded: r,
|
|
2023
2059
|
onAction: i
|
|
2024
2060
|
});
|
|
2025
|
-
let o = U(a), { focused: s } =
|
|
2061
|
+
let o = U(a), { focused: s } = he(a), { focused: c } = ve(a);
|
|
2026
2062
|
return g(o, (e) => {
|
|
2027
2063
|
e && t.focusOnHover && (s.value = !0);
|
|
2028
2064
|
}), (e, t) => (H(), V("div", h({ role: R(n) }, {
|
|
@@ -2031,16 +2067,16 @@ var rr = /* @__PURE__ */ L({
|
|
|
2031
2067
|
class: ["vv-dropdown__item", { "focus-visible": R(s) || R(c) }]
|
|
2032
2068
|
}), [l(e.$slots, "default")], 16));
|
|
2033
2069
|
}
|
|
2034
|
-
}),
|
|
2070
|
+
}), ar = ["title"], or = /* @__PURE__ */ L({
|
|
2035
2071
|
name: "VvDropdownOption",
|
|
2036
|
-
props:
|
|
2072
|
+
props: Xn,
|
|
2037
2073
|
setup(e) {
|
|
2038
2074
|
let t = e, { modifiers: n } = B(t), r = Z("vv-dropdown-option", n, A(() => ({
|
|
2039
2075
|
disabled: t.disabled,
|
|
2040
2076
|
selected: t.selected,
|
|
2041
2077
|
unselectable: t.unselectable && t.selected
|
|
2042
2078
|
}))), s = A(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
2043
|
-
return (e, t) => (H(), w(
|
|
2079
|
+
return (e, t) => (H(), w(ir, {
|
|
2044
2080
|
class: o(R(r)),
|
|
2045
2081
|
tabindex: e.disabled ? -1 : 0,
|
|
2046
2082
|
"aria-selected": e.selected,
|
|
@@ -2054,7 +2090,7 @@ var rr = /* @__PURE__ */ L({
|
|
|
2054
2090
|
disabled: e.disabled,
|
|
2055
2091
|
selected: e.selected,
|
|
2056
2092
|
unselectable: e.unselectable
|
|
2057
|
-
})), () => [z(j(R(s)), 1)])], 8,
|
|
2093
|
+
})), () => [z(j(R(s)), 1)])], 8, ar)]),
|
|
2058
2094
|
_: 3
|
|
2059
2095
|
}, 8, [
|
|
2060
2096
|
"class",
|
|
@@ -2064,25 +2100,25 @@ var rr = /* @__PURE__ */ L({
|
|
|
2064
2100
|
"focus-on-hover"
|
|
2065
2101
|
]));
|
|
2066
2102
|
}
|
|
2067
|
-
}),
|
|
2068
|
-
...xt,
|
|
2103
|
+
}), sr = {
|
|
2069
2104
|
...St,
|
|
2070
2105
|
...Ct,
|
|
2071
|
-
...
|
|
2072
|
-
|
|
2106
|
+
...wt,
|
|
2107
|
+
..._t,
|
|
2073
2108
|
...Y,
|
|
2074
|
-
...dt,
|
|
2075
2109
|
...et,
|
|
2110
|
+
...ft,
|
|
2076
2111
|
...tt,
|
|
2077
|
-
...
|
|
2112
|
+
...nt,
|
|
2113
|
+
...dt,
|
|
2078
2114
|
...X,
|
|
2079
|
-
...
|
|
2080
|
-
...
|
|
2081
|
-
..._t,
|
|
2115
|
+
...pt,
|
|
2116
|
+
...gt,
|
|
2082
2117
|
...vt,
|
|
2083
|
-
...
|
|
2118
|
+
...yt,
|
|
2084
2119
|
...lt,
|
|
2085
|
-
...
|
|
2120
|
+
...ut,
|
|
2121
|
+
...st,
|
|
2086
2122
|
multiple: Boolean,
|
|
2087
2123
|
required: Boolean,
|
|
2088
2124
|
size: [String, Number],
|
|
@@ -2102,31 +2138,31 @@ var rr = /* @__PURE__ */ L({
|
|
|
2102
2138
|
},
|
|
2103
2139
|
placeholder: String
|
|
2104
2140
|
};
|
|
2105
|
-
function
|
|
2141
|
+
function cr() {
|
|
2106
2142
|
return {
|
|
2107
|
-
...
|
|
2143
|
+
...sr,
|
|
2108
2144
|
options: {
|
|
2109
|
-
...
|
|
2145
|
+
...sr.options,
|
|
2110
2146
|
type: Array,
|
|
2111
2147
|
default: () => []
|
|
2112
2148
|
}
|
|
2113
2149
|
};
|
|
2114
2150
|
}
|
|
2115
|
-
function
|
|
2116
|
-
let { focused: n } =
|
|
2151
|
+
function lr(e, t) {
|
|
2152
|
+
let { focused: n } = he(e);
|
|
2117
2153
|
return g(n, (n) => {
|
|
2118
2154
|
t(n ? "focus" : "blur", R(e));
|
|
2119
2155
|
}), { focused: n };
|
|
2120
2156
|
}
|
|
2121
|
-
var
|
|
2157
|
+
var ur = ["for"], dr = { class: "vv-select__wrapper" }, fr = {
|
|
2122
2158
|
key: 0,
|
|
2123
2159
|
class: "vv-select__input-before"
|
|
2124
|
-
},
|
|
2160
|
+
}, pr = { class: "vv-select__inner" }, mr = ["id"], hr = ["disabled", "hidden"], gr = ["disabled", "value"], _r = ["disabled", "label"], vr = ["disabled", "value"], yr = {
|
|
2125
2161
|
key: 2,
|
|
2126
2162
|
class: "vv-select__input-after"
|
|
2127
|
-
},
|
|
2163
|
+
}, br = /* @__PURE__ */ L({
|
|
2128
2164
|
name: "VvSelect",
|
|
2129
|
-
props:
|
|
2165
|
+
props: cr(),
|
|
2130
2166
|
emits: [
|
|
2131
2167
|
"update:modelValue",
|
|
2132
2168
|
"focus",
|
|
@@ -2134,20 +2170,20 @@ var lr = ["for"], ur = { class: "vv-select__wrapper" }, dr = {
|
|
|
2134
2170
|
"clear"
|
|
2135
2171
|
],
|
|
2136
2172
|
setup(e, { emit: t }) {
|
|
2137
|
-
let n = e, r = t, s = C(), c =
|
|
2173
|
+
let n = e, r = t, s = C(), c = Fn("VvSelect", cr(), n), u = k(), { HintSlot: d, hasHintLabelOrSlot: f, hasInvalidLabelOrSlot: p, hintSlotScope: m } = Nn(c, s), { focused: v } = lr(u, r);
|
|
2138
2174
|
function ee(e) {
|
|
2139
2175
|
return typeof e != "string" && e.options?.length;
|
|
2140
2176
|
}
|
|
2141
|
-
let { id: y, modifiers: b, disabled: S, readonly: T, loading: ne, icon: E, iconPosition: D, invalid: re, valid: ae, floating: oe, multiple: ce } = B(n), M =
|
|
2177
|
+
let { id: y, modifiers: b, disabled: S, readonly: T, loading: ne, icon: E, iconPosition: D, invalid: re, valid: ae, floating: oe, multiple: ce } = B(n), M = Jt(y), le = A(() => `${M.value}-hint`), ue = A(() => n.disabled || n.readonly), de = A(() => ue.value ? -1 : n.tabindex), N = A({
|
|
2142
2178
|
get: () => n.modelValue,
|
|
2143
2179
|
set: (e) => {
|
|
2144
2180
|
Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !n.unselectable && u.value) ? u.value.value = String(n.modelValue) : r("update:modelValue", e);
|
|
2145
2181
|
}
|
|
2146
|
-
}), L = A(() => Array.isArray(N.value) ? N.value.length > 0 : N.value !== void 0 && N.value !== null), z = A(() => !ue.value && n.unselectable), pe =
|
|
2182
|
+
}), L = A(() => Array.isArray(N.value) ? N.value.length > 0 : N.value !== void 0 && N.value !== null), z = A(() => !ue.value && n.unselectable), pe = be(u);
|
|
2147
2183
|
g(pe, (e) => {
|
|
2148
2184
|
e && n.autofocus && (v.value = !0);
|
|
2149
2185
|
});
|
|
2150
|
-
let { hasIconBefore: U, hasIconAfter: me } =
|
|
2186
|
+
let { hasIconBefore: U, hasIconAfter: me } = Yt(E, D), he = A(() => {
|
|
2151
2187
|
if (n.invalid === !0) return !0;
|
|
2152
2188
|
if (n.valid === !0) return !1;
|
|
2153
2189
|
}), ge = Z("vv-select", b, A(() => ({
|
|
@@ -2162,7 +2198,7 @@ var lr = ["for"], ur = { class: "vv-select__wrapper" }, dr = {
|
|
|
2162
2198
|
focus: v.value && !ue.value,
|
|
2163
2199
|
floating: oe.value,
|
|
2164
2200
|
multiple: ce.value
|
|
2165
|
-
}))), { getOptionLabel: _e, getOptionValue: ve, isOptionDisabled:
|
|
2201
|
+
}))), { getOptionLabel: _e, getOptionValue: ve, isOptionDisabled: ye, getOptionGrouped: xe } = Vn(n);
|
|
2166
2202
|
g(() => n.options, (e) => {
|
|
2167
2203
|
if (e?.length && n.autoselectFirst && !L.value) {
|
|
2168
2204
|
let t = ve(e[0]);
|
|
@@ -2194,10 +2230,10 @@ var lr = ["for"], ur = { class: "vv-select__wrapper" }, dr = {
|
|
|
2194
2230
|
e.label ? (H(), V("label", {
|
|
2195
2231
|
key: 0,
|
|
2196
2232
|
for: R(M)
|
|
2197
|
-
}, j(e.label), 9,
|
|
2198
|
-
O("div",
|
|
2199
|
-
e.$slots.before ? (H(), V("div",
|
|
2200
|
-
O("div",
|
|
2233
|
+
}, j(e.label), 9, ur)) : I("v-if", !0),
|
|
2234
|
+
O("div", dr, [
|
|
2235
|
+
e.$slots.before ? (H(), V("div", fr, [l(e.$slots, "before", i(a(R(Ce))))])) : I("v-if", !0),
|
|
2236
|
+
O("div", pr, [
|
|
2201
2237
|
R(U) ? (H(), w(Q, h({ key: 0 }, R(U), { class: "vv-select__icon" }), null, 16)) : I("v-if", !0),
|
|
2202
2238
|
se(O("select", h({
|
|
2203
2239
|
id: R(M),
|
|
@@ -2208,22 +2244,22 @@ var lr = ["for"], ur = { class: "vv-select__wrapper" }, dr = {
|
|
|
2208
2244
|
value: void 0,
|
|
2209
2245
|
disabled: !R(z),
|
|
2210
2246
|
hidden: !R(z)
|
|
2211
|
-
}, j(e.placeholder), 9,
|
|
2247
|
+
}, j(e.placeholder), 9, hr)) : I("v-if", !0), (H(!0), V(ie, null, x(e.options, (e, t) => (H(), V(ie, null, [ee(e) ? (H(), V("optgroup", {
|
|
2212
2248
|
key: `group-${t}`,
|
|
2213
|
-
disabled: R(
|
|
2249
|
+
disabled: R(ye)(e),
|
|
2214
2250
|
label: R(_e)(e)
|
|
2215
2251
|
}, [(H(!0), V(ie, null, x(R(xe)(e), (e, n) => (H(), V("option", {
|
|
2216
2252
|
key: `group-${t}-item-${n}`,
|
|
2217
|
-
disabled: R(
|
|
2253
|
+
disabled: R(ye)(e),
|
|
2218
2254
|
value: R(ve)(e)
|
|
2219
|
-
}, j(R(_e)(e)), 9,
|
|
2255
|
+
}, j(R(_e)(e)), 9, vr))), 128))], 8, _r)) : (H(), V("option", {
|
|
2220
2256
|
key: t,
|
|
2221
|
-
disabled: R(
|
|
2257
|
+
disabled: R(ye)(e),
|
|
2222
2258
|
value: R(ve)(e)
|
|
2223
|
-
}, j(R(_e)(e)), 9,
|
|
2259
|
+
}, j(R(_e)(e)), 9, gr))], 64))), 256))], 16, mr), [[fe, R(N)]]),
|
|
2224
2260
|
R(me) ? (H(), w(Q, h({ key: 1 }, R(me), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : I("v-if", !0)
|
|
2225
2261
|
]),
|
|
2226
|
-
R(z) && R(c).showClearAction ? (H(), w(R(
|
|
2262
|
+
R(z) && R(c).showClearAction ? (H(), w(R(qn), {
|
|
2227
2263
|
key: 1,
|
|
2228
2264
|
"input-type": "select",
|
|
2229
2265
|
label: e.labelClear,
|
|
@@ -2235,7 +2271,7 @@ var lr = ["for"], ur = { class: "vv-select__wrapper" }, dr = {
|
|
|
2235
2271
|
"icon",
|
|
2236
2272
|
"disabled"
|
|
2237
2273
|
])) : I("v-if", !0),
|
|
2238
|
-
e.$slots.after ? (H(), V("div",
|
|
2274
|
+
e.$slots.after ? (H(), V("div", yr, [l(e.$slots, "after", i(a(R(Ce))))])) : I("v-if", !0)
|
|
2239
2275
|
]),
|
|
2240
2276
|
_(R(d), {
|
|
2241
2277
|
id: R(le),
|
|
@@ -2265,8 +2301,8 @@ var lr = ["for"], ur = { class: "vv-select__wrapper" }, dr = {
|
|
|
2265
2301
|
], 2));
|
|
2266
2302
|
}
|
|
2267
2303
|
});
|
|
2268
|
-
|
|
2269
|
-
var
|
|
2304
|
+
Kn();
|
|
2305
|
+
var xr = [
|
|
2270
2306
|
"open",
|
|
2271
2307
|
"close",
|
|
2272
2308
|
"update:modelValue",
|
|
@@ -2278,9 +2314,9 @@ var br = [
|
|
|
2278
2314
|
"beforeLeave",
|
|
2279
2315
|
"leave",
|
|
2280
2316
|
"leaveCancelled"
|
|
2281
|
-
],
|
|
2317
|
+
], Sr = {
|
|
2282
2318
|
...X,
|
|
2283
|
-
...
|
|
2319
|
+
...bt,
|
|
2284
2320
|
title: String,
|
|
2285
2321
|
modelValue: {
|
|
2286
2322
|
type: Boolean,
|
|
@@ -2299,16 +2335,16 @@ var br = [
|
|
|
2299
2335
|
type: String,
|
|
2300
2336
|
default: "Close"
|
|
2301
2337
|
}
|
|
2302
|
-
},
|
|
2338
|
+
}, Cr = ["aria-labelledby"], wr = {
|
|
2303
2339
|
key: 0,
|
|
2304
2340
|
class: "vv-dialog__header"
|
|
2305
|
-
},
|
|
2341
|
+
}, Tr = ["id"], Er = ["aria-label", "title"], Dr = { class: "vv-dialog__content" }, Or = {
|
|
2306
2342
|
key: 1,
|
|
2307
2343
|
class: "vv-dialog__footer"
|
|
2308
|
-
},
|
|
2344
|
+
}, kr = /* @__PURE__ */ L({
|
|
2309
2345
|
name: "VvDialog",
|
|
2310
|
-
props:
|
|
2311
|
-
emits:
|
|
2346
|
+
props: Sr,
|
|
2347
|
+
emits: xr,
|
|
2312
2348
|
setup(e, { expose: t, emit: n }) {
|
|
2313
2349
|
let r = e, i = n, a = k(), o = pe(r, "modelValue", i), s = k(!1), u = A({
|
|
2314
2350
|
get: () => o.value ?? s.value,
|
|
@@ -2318,7 +2354,7 @@ var br = [
|
|
|
2318
2354
|
}), d = k(null), { id: f, modifiers: p } = B(r), m = Z("vv-dialog", p, A(() => r.size ? { [r.size]: !!r.size } : {})), g = A(() => {
|
|
2319
2355
|
let { id: e } = r;
|
|
2320
2356
|
return { id: e };
|
|
2321
|
-
}), _ =
|
|
2357
|
+
}), _ = Jt(f), v = A(() => `${_.value}-title`), ee = A(() => `vv-dialog--${r.transition}`), y = {
|
|
2322
2358
|
"before-enter": () => {
|
|
2323
2359
|
i("beforeEnter");
|
|
2324
2360
|
},
|
|
@@ -2345,7 +2381,7 @@ var br = [
|
|
|
2345
2381
|
i("leaveCancelled");
|
|
2346
2382
|
}
|
|
2347
2383
|
};
|
|
2348
|
-
|
|
2384
|
+
_e(d, () => {
|
|
2349
2385
|
r.keepOpen || b();
|
|
2350
2386
|
});
|
|
2351
2387
|
function b() {
|
|
@@ -2380,29 +2416,29 @@ var br = [
|
|
|
2380
2416
|
ref: d,
|
|
2381
2417
|
class: "vv-dialog__wrapper"
|
|
2382
2418
|
}, [
|
|
2383
|
-
e.$slots.header || e.title ? (H(), V("header",
|
|
2419
|
+
e.$slots.header || e.title ? (H(), V("header", wr, [l(e.$slots, "header", {}, () => [O("span", { id: R(v) }, j(e.title), 9, Tr), O("button", {
|
|
2384
2420
|
type: "button",
|
|
2385
2421
|
"aria-label": e.labelClose,
|
|
2386
2422
|
title: e.labelClose,
|
|
2387
2423
|
class: "vv-dialog__close",
|
|
2388
2424
|
onClickPassive: b
|
|
2389
|
-
}, null, 40,
|
|
2390
|
-
O("div",
|
|
2391
|
-
e.$slots.footer ? (H(), V("footer",
|
|
2392
|
-
], 512)], 16,
|
|
2425
|
+
}, null, 40, Er)])])) : I("v-if", !0),
|
|
2426
|
+
O("div", Dr, [l(e.$slots, "default")]),
|
|
2427
|
+
e.$slots.footer ? (H(), V("footer", Or, [l(e.$slots, "footer")])) : I("v-if", !0)
|
|
2428
|
+
], 512)], 16, Cr), [[oe, R(u)]])]),
|
|
2393
2429
|
_: 3
|
|
2394
2430
|
}, 16, ["name"]));
|
|
2395
2431
|
}
|
|
2396
|
-
}),
|
|
2432
|
+
}), Ar = /* @__PURE__ */ L({
|
|
2397
2433
|
__name: "VvDropdownAction",
|
|
2398
2434
|
props: {
|
|
2399
|
-
...
|
|
2435
|
+
...Ot,
|
|
2400
2436
|
...X
|
|
2401
2437
|
},
|
|
2402
2438
|
setup(e) {
|
|
2403
2439
|
let { modifiers: t } = B(e), n = Z("vv-dropdown-action", t);
|
|
2404
|
-
return (e, t) => (H(), w(
|
|
2405
|
-
default: P(() => [_(
|
|
2440
|
+
return (e, t) => (H(), w(ir, null, {
|
|
2441
|
+
default: P(() => [_(Kt, h({
|
|
2406
2442
|
disabled: e.disabled,
|
|
2407
2443
|
pressed: e.pressed,
|
|
2408
2444
|
active: e.active,
|
|
@@ -2420,33 +2456,33 @@ var br = [
|
|
|
2420
2456
|
}
|
|
2421
2457
|
});
|
|
2422
2458
|
({
|
|
2423
|
-
...
|
|
2459
|
+
...St,
|
|
2424
2460
|
...X,
|
|
2425
|
-
...$e,
|
|
2426
2461
|
...Y,
|
|
2427
|
-
...dt,
|
|
2428
|
-
...ct,
|
|
2429
|
-
...lt,
|
|
2430
2462
|
...et,
|
|
2463
|
+
...ft,
|
|
2464
|
+
...lt,
|
|
2431
2465
|
...ut,
|
|
2432
2466
|
...tt,
|
|
2467
|
+
...dt,
|
|
2433
2468
|
...nt,
|
|
2434
|
-
...
|
|
2469
|
+
...rt,
|
|
2470
|
+
...gt
|
|
2435
2471
|
}), q.add, q.edit, q.download, {
|
|
2436
|
-
...xt,
|
|
2437
2472
|
...St,
|
|
2438
|
-
...
|
|
2439
|
-
...
|
|
2440
|
-
...
|
|
2441
|
-
...$e,
|
|
2442
|
-
...Y,
|
|
2473
|
+
...Ct,
|
|
2474
|
+
..._t,
|
|
2475
|
+
...nt,
|
|
2443
2476
|
...dt,
|
|
2477
|
+
...Y,
|
|
2444
2478
|
...et,
|
|
2479
|
+
...ft,
|
|
2480
|
+
...tt,
|
|
2445
2481
|
...X,
|
|
2446
|
-
...
|
|
2447
|
-
...
|
|
2482
|
+
...ht,
|
|
2483
|
+
...lt
|
|
2448
2484
|
};
|
|
2449
|
-
function
|
|
2485
|
+
function jr(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
2450
2486
|
let a, o, s = A(() => {
|
|
2451
2487
|
let e = v(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
2452
2488
|
return Number.isNaN(t) ? 0 : t;
|
|
@@ -2470,38 +2506,38 @@ function Ar(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
2470
2506
|
cancel: c
|
|
2471
2507
|
};
|
|
2472
2508
|
}
|
|
2473
|
-
var
|
|
2474
|
-
function
|
|
2475
|
-
if (typeof e != "string" || !
|
|
2509
|
+
var Mr = (e) => e.toString().padStart(2, "0"), Nr = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
2510
|
+
function Pr(e) {
|
|
2511
|
+
if (typeof e != "string" || !Nr.test(e)) return !1;
|
|
2476
2512
|
let t = new Date(e);
|
|
2477
2513
|
return !Number.isNaN(t.getTime()) && t.toISOString() === e;
|
|
2478
2514
|
}
|
|
2479
|
-
function
|
|
2480
|
-
if (typeof e == "string" && !
|
|
2515
|
+
function Fr(e, t = "date", n) {
|
|
2516
|
+
if (typeof e == "string" && !Pr(e)) return "";
|
|
2481
2517
|
let r = new Date(e);
|
|
2482
2518
|
if (Number.isNaN(r.getTime())) return "";
|
|
2483
|
-
let i = `${r.getFullYear()}-${
|
|
2484
|
-
if (t === "month" || (i += `-${
|
|
2485
|
-
let a = n ? `${
|
|
2519
|
+
let i = `${r.getFullYear()}-${Mr(r.getMonth() + 1)}`;
|
|
2520
|
+
if (t === "month" || (i += `-${Mr(r.getDate())}`, t === "date")) return i;
|
|
2521
|
+
let a = n ? `${Mr(r.getHours())}:${Mr(r.getMinutes())}:${Mr(r.getSeconds())}` : `${Mr(r.getHours())}:${Mr(r.getMinutes())}`;
|
|
2486
2522
|
return t === "time" ? a : `${i}T${a}`;
|
|
2487
2523
|
}
|
|
2488
|
-
var
|
|
2489
|
-
function
|
|
2524
|
+
var Ir = /^\d{4}-\d{2}-\d{2}$/, Lr = /^\d{4}-\d{2}$/, Rr = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, zr = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
|
|
2525
|
+
function Br(e, t = "date") {
|
|
2490
2526
|
if (!e?.trim()) return null;
|
|
2491
2527
|
let n = /* @__PURE__ */ new Date(), r = n.getFullYear(), i = n.getMonth(), a = n.getDate();
|
|
2492
2528
|
if (t === "date") {
|
|
2493
|
-
if (!
|
|
2529
|
+
if (!Ir.test(e)) throw Error("Invalid date format. Expected: YYYY-MM-DD");
|
|
2494
2530
|
return /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
2495
2531
|
}
|
|
2496
2532
|
if (t === "month") {
|
|
2497
|
-
if (!
|
|
2533
|
+
if (!Lr.test(e)) throw Error("Invalid month format. Expected: YYYY-MM");
|
|
2498
2534
|
return /* @__PURE__ */ new Date(`${e}-01T00:00:00`);
|
|
2499
2535
|
}
|
|
2500
2536
|
if (t === "time") {
|
|
2501
|
-
if (!
|
|
2502
|
-
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${
|
|
2537
|
+
if (!Rr.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
|
|
2538
|
+
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${Mr(i + 1)}-${Mr(a)}T${e}`) : /* @__PURE__ */ new Date(`${r}-${Mr(i + 1)}-${Mr(a)}T${e}:00`);
|
|
2503
2539
|
}
|
|
2504
|
-
if (!
|
|
2540
|
+
if (!zr.test(e)) throw Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
|
|
2505
2541
|
return e.length === 16 ? /* @__PURE__ */ new Date(`${e}:00`) : /* @__PURE__ */ new Date(`${e}`);
|
|
2506
2542
|
}
|
|
2507
2543
|
var $ = {
|
|
@@ -2518,7 +2554,7 @@ var $ = {
|
|
|
2518
2554
|
DATETIME_LOCAL: "datetime-local",
|
|
2519
2555
|
MONTH: "month",
|
|
2520
2556
|
WEEK: "week"
|
|
2521
|
-
},
|
|
2557
|
+
}, Vr = [
|
|
2522
2558
|
"update:modelValue",
|
|
2523
2559
|
"update:masked",
|
|
2524
2560
|
"accept",
|
|
@@ -2537,9 +2573,9 @@ var $ = {
|
|
|
2537
2573
|
"keydown",
|
|
2538
2574
|
"keypress",
|
|
2539
2575
|
"clear"
|
|
2540
|
-
],
|
|
2541
|
-
...
|
|
2542
|
-
...
|
|
2576
|
+
], Hr = {
|
|
2577
|
+
...Tt,
|
|
2578
|
+
...At,
|
|
2543
2579
|
modelValue: [
|
|
2544
2580
|
String,
|
|
2545
2581
|
Number,
|
|
@@ -2635,12 +2671,12 @@ var $ = {
|
|
|
2635
2671
|
type: Array,
|
|
2636
2672
|
default: void 0
|
|
2637
2673
|
},
|
|
2638
|
-
topLayer:
|
|
2674
|
+
topLayer: xt.topLayer,
|
|
2639
2675
|
inputMode: {
|
|
2640
2676
|
type: String,
|
|
2641
2677
|
default: "text"
|
|
2642
2678
|
}
|
|
2643
|
-
},
|
|
2679
|
+
}, Ur = L({
|
|
2644
2680
|
components: { VvIcon: Q },
|
|
2645
2681
|
props: {
|
|
2646
2682
|
inputType: {
|
|
@@ -2670,7 +2706,7 @@ var $ = {
|
|
|
2670
2706
|
},
|
|
2671
2707
|
emits: ["toggle-password"],
|
|
2672
2708
|
setup(e, { emit: t }) {
|
|
2673
|
-
let n = k(!1), r = A(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } =
|
|
2709
|
+
let n = k(!1), r = A(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } = Yt(r);
|
|
2674
2710
|
function a(r) {
|
|
2675
2711
|
r?.stopPropagation(), e.disabled || (n.value = !n.value, t("toggle-password", n.value));
|
|
2676
2712
|
}
|
|
@@ -2694,7 +2730,7 @@ var $ = {
|
|
|
2694
2730
|
onClick: this.onClick
|
|
2695
2731
|
}, e);
|
|
2696
2732
|
}
|
|
2697
|
-
}),
|
|
2733
|
+
}), Wr = L({
|
|
2698
2734
|
components: { VvIcon: Q },
|
|
2699
2735
|
props: {
|
|
2700
2736
|
inputType: {
|
|
@@ -2736,14 +2772,14 @@ var $ = {
|
|
|
2736
2772
|
});
|
|
2737
2773
|
}
|
|
2738
2774
|
});
|
|
2739
|
-
function
|
|
2775
|
+
function Gr(e, t, n) {
|
|
2740
2776
|
return {
|
|
2741
2777
|
name: "VvInputTextActions",
|
|
2742
2778
|
components: {
|
|
2743
2779
|
VvIcon: Q,
|
|
2744
|
-
VvInputPasswordAction:
|
|
2745
|
-
VvInputStepAction:
|
|
2746
|
-
VvInputClearAction:
|
|
2780
|
+
VvInputPasswordAction: Ur,
|
|
2781
|
+
VvInputStepAction: Wr,
|
|
2782
|
+
VvInputClearAction: qn
|
|
2747
2783
|
},
|
|
2748
2784
|
setup() {
|
|
2749
2785
|
return {
|
|
@@ -2763,7 +2799,7 @@ function Wr(e, t, n) {
|
|
|
2763
2799
|
switch (e) {
|
|
2764
2800
|
case $.SEARCH: {
|
|
2765
2801
|
let { onClear: e } = this.$attrs;
|
|
2766
|
-
n = [r(
|
|
2802
|
+
n = [r(qn, {
|
|
2767
2803
|
disabled: this.isDisabled || !this.isDirty,
|
|
2768
2804
|
label: this.labelClear,
|
|
2769
2805
|
onClear: e
|
|
@@ -2772,7 +2808,7 @@ function Wr(e, t, n) {
|
|
|
2772
2808
|
}
|
|
2773
2809
|
case $.PASSWORD: {
|
|
2774
2810
|
let { onTogglePassword: e } = this.$attrs;
|
|
2775
|
-
n = [r(
|
|
2811
|
+
n = [r(Ur, {
|
|
2776
2812
|
disabled: this.isDisabled,
|
|
2777
2813
|
onTogglePassword: e,
|
|
2778
2814
|
labelShow: this.labelShowPassword,
|
|
@@ -2784,13 +2820,13 @@ function Wr(e, t, n) {
|
|
|
2784
2820
|
}
|
|
2785
2821
|
case $.NUMBER: {
|
|
2786
2822
|
let { onStepUp: e, onStepDown: i } = this.$attrs;
|
|
2787
|
-
n = [r(
|
|
2823
|
+
n = [r(Wr, {
|
|
2788
2824
|
mode: "up",
|
|
2789
2825
|
disabled: this.isDisabled || t.max !== void 0 && t.modelValue === t.max,
|
|
2790
2826
|
label: this.labelStepUp,
|
|
2791
2827
|
onStepUp: e,
|
|
2792
2828
|
onStepDown: i
|
|
2793
|
-
}), r(
|
|
2829
|
+
}), r(Wr, {
|
|
2794
2830
|
mode: "down",
|
|
2795
2831
|
disabled: this.isDisabled || t.min !== void 0 && t.modelValue === t.min,
|
|
2796
2832
|
label: this.labelStepDown,
|
|
@@ -2804,7 +2840,7 @@ function Wr(e, t, n) {
|
|
|
2804
2840
|
}
|
|
2805
2841
|
};
|
|
2806
2842
|
}
|
|
2807
|
-
function
|
|
2843
|
+
function Kr(e, t) {
|
|
2808
2844
|
let n = A(() => (R(e) ?? "").length), r = A(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
2809
2845
|
return {
|
|
2810
2846
|
length: n,
|
|
@@ -2812,27 +2848,27 @@ function Gr(e, t) {
|
|
|
2812
2848
|
formatted: A(() => 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)
|
|
2813
2849
|
};
|
|
2814
2850
|
}
|
|
2815
|
-
var
|
|
2851
|
+
var qr = ["for"], Jr = {
|
|
2816
2852
|
key: 0,
|
|
2817
2853
|
class: "vv-input-text__input-before"
|
|
2818
|
-
},
|
|
2854
|
+
}, Yr = ["id"], Xr = {
|
|
2819
2855
|
key: 1,
|
|
2820
2856
|
class: "vv-input-text__unit"
|
|
2821
|
-
},
|
|
2857
|
+
}, Zr = {
|
|
2822
2858
|
key: 5,
|
|
2823
2859
|
class: "vv-input-text__input-after"
|
|
2824
|
-
},
|
|
2860
|
+
}, Qr = {
|
|
2825
2861
|
key: 6,
|
|
2826
2862
|
class: "vv-input-text__limit"
|
|
2827
|
-
},
|
|
2863
|
+
}, $r = { class: "flex-1" }, ei = ["title", "onClick"], ti = /* @__PURE__ */ L({
|
|
2828
2864
|
name: "VvInputText",
|
|
2829
|
-
props:
|
|
2830
|
-
emits:
|
|
2865
|
+
props: Hr,
|
|
2866
|
+
emits: Vr,
|
|
2831
2867
|
setup(e, { expose: t, emit: n }) {
|
|
2832
|
-
let r = e, s = n, c = C(), u =
|
|
2868
|
+
let r = e, s = n, c = C(), u = Ht(), d = Fn("VvInputText", Hr, r), { count: p, debounce: m, icon: v, iconPosition: ee, iconRemoveSuggestion: y, id: b, invalid: S, label: T, labelRemoveSuggestion: ne, loading: E, maxlength: re, minlength: ae, modelValue: oe, step: se, storageType: ce, type: M, unit: le, valid: ue } = B(r), de = Jt(b), fe = A(() => `${de.value}-hint`), N = A(() => r.floating && bn(r.placeholder) ? " " : r.placeholder), { model: F, flush: L } = jr(oe, s, m), pe = A(() => {
|
|
2833
2869
|
let e = Number(se.value);
|
|
2834
2870
|
return !Number.isNaN(e) && e % 60 != 0;
|
|
2835
|
-
}), U = /^-0?[.,]?[0*]?$/, me = /./, he = /^-$|^$/, ge = k(!1), _e = k(), ve = k(), { el:
|
|
2871
|
+
}), U = /^-0?[.,]?[0*]?$/, me = /./, he = /^-$|^$/, ge = k(!1), _e = k(), ve = k(), { el: ye, mask: xe, typed: W, masked: Se, unmasked: Ce } = Me(A(() => {
|
|
2836
2872
|
if (!r.iMask) return { mask: me };
|
|
2837
2873
|
if (r.iMask.mask === Number) {
|
|
2838
2874
|
let e = { ...r.iMask };
|
|
@@ -2884,17 +2920,17 @@ var Kr = ["for"], qr = {
|
|
|
2884
2920
|
return;
|
|
2885
2921
|
}
|
|
2886
2922
|
let t = W.value;
|
|
2887
|
-
t instanceof Date || (t =
|
|
2923
|
+
t instanceof Date || (t = Br(W.value, e)), _e.value || ve.value ? Te(t) : F.value = Fr(t, e, pe.value);
|
|
2888
2924
|
}
|
|
2889
2925
|
function G(e) {
|
|
2890
2926
|
if (e == null) W.value = "", Ce.value = "";
|
|
2891
2927
|
else if (r.iMask?.mask === Date) W.value = e instanceof Date ? e : new Date(e);
|
|
2892
2928
|
else if (!(M.value === $.NUMBER && U.test(Ce.value) && e === 0)) {
|
|
2893
2929
|
if (ct.value) {
|
|
2894
|
-
if (e instanceof Date ||
|
|
2930
|
+
if (e instanceof Date || Pr(e)) {
|
|
2895
2931
|
if (e instanceof Date ? (_e.value = e, ve.value = void 0) : (ve.value = e, _e.value = void 0), lt.value) {
|
|
2896
2932
|
let t = new Date(e);
|
|
2897
|
-
W.value =
|
|
2933
|
+
W.value = Fr(t, lt.value, pe.value), Ce.value = W.value;
|
|
2898
2934
|
}
|
|
2899
2935
|
return;
|
|
2900
2936
|
}
|
|
@@ -2910,30 +2946,30 @@ var Kr = ["for"], qr = {
|
|
|
2910
2946
|
}), g(() => r.masked, (e) => {
|
|
2911
2947
|
Se.value = e ?? "";
|
|
2912
2948
|
});
|
|
2913
|
-
let De =
|
|
2949
|
+
let De = ye, Oe = k(), ke = k(), Ae = k();
|
|
2914
2950
|
t({
|
|
2915
2951
|
$input: De,
|
|
2916
2952
|
$inner: Oe,
|
|
2917
2953
|
$wrapper: ke,
|
|
2918
2954
|
flush: L
|
|
2919
2955
|
});
|
|
2920
|
-
let { focused:
|
|
2956
|
+
let { focused: K } = lr(De, s), je = A(() => K.value && !r.disabled && !r.readonly);
|
|
2921
2957
|
function Ne(e) {
|
|
2922
|
-
e ? Pe() :
|
|
2958
|
+
e ? Pe() : Fe();
|
|
2923
2959
|
}
|
|
2924
2960
|
function Pe() {
|
|
2925
|
-
d.value.selectOnFocus && De.value && De.value.select(), et.value.size && !
|
|
2961
|
+
d.value.selectOnFocus && De.value && De.value.select(), et.value.size && !Ae.value?.restoringFocus && Ae.value?.show();
|
|
2926
2962
|
}
|
|
2927
|
-
function
|
|
2963
|
+
function Fe() {
|
|
2928
2964
|
let e = L() ?? F.value;
|
|
2929
|
-
if (!Y.value ||
|
|
2965
|
+
if (!Y.value || bn(e)) return;
|
|
2930
2966
|
let t = r.maxSuggestions;
|
|
2931
2967
|
Y.value.size >= t && !Y.value.has(e) && (Y.value = new Set([...Y.value].slice(Y.value.size - t + 1))), Y.value.add(e);
|
|
2932
2968
|
}
|
|
2933
|
-
g(
|
|
2934
|
-
let
|
|
2935
|
-
g(
|
|
2936
|
-
e && r.autofocus && !r.disabled && !r.readonly && (
|
|
2969
|
+
g(je, Ne);
|
|
2970
|
+
let J = be(De);
|
|
2971
|
+
g(J, (e) => {
|
|
2972
|
+
e && r.autofocus && !r.disabled && !r.readonly && (K.value = !0);
|
|
2937
2973
|
});
|
|
2938
2974
|
let Ie = k(!1), Le = A(() => r.type === $.PASSWORD);
|
|
2939
2975
|
function Re() {
|
|
@@ -2962,7 +2998,7 @@ var Kr = ["for"], qr = {
|
|
|
2962
2998
|
function We() {
|
|
2963
2999
|
F.value = "", s("clear");
|
|
2964
3000
|
}
|
|
2965
|
-
let { hasIconBefore: Ge, hasIconAfter: Ke } =
|
|
3001
|
+
let { hasIconBefore: Ge, hasIconAfter: Ke } = Yt(v, ee), qe = A(() => {
|
|
2966
3002
|
if (Ke.value !== void 0) return Ke.value;
|
|
2967
3003
|
switch (r.type) {
|
|
2968
3004
|
case $.COLOR: return { name: q.showColorPicker };
|
|
@@ -2972,21 +3008,21 @@ var Kr = ["for"], qr = {
|
|
|
2972
3008
|
case $.MONTH: return { name: q.showDatePicker };
|
|
2973
3009
|
case $.TIME: return { name: q.showTimePicker };
|
|
2974
3010
|
}
|
|
2975
|
-
}), { hasIcon: Je } =
|
|
3011
|
+
}), { hasIcon: Je } = Yt(y), { formatted: Ye } = Kr(F, {
|
|
2976
3012
|
mode: p.value,
|
|
2977
3013
|
upperLimit: Number(re?.value),
|
|
2978
3014
|
lowerLimit: Number(ae?.value)
|
|
2979
|
-
}), Xe = A(() => r.disabled || r.readonly), Ze = A(() => Xe.value ? -1 : r.tabindex), Qe = A(() => !
|
|
3015
|
+
}), Xe = A(() => r.disabled || r.readonly), Ze = A(() => Xe.value ? -1 : r.tabindex), Qe = A(() => !bn(oe?.value)), $e = A(() => {
|
|
2980
3016
|
if (S.value === !0) return !0;
|
|
2981
3017
|
if (ue.value === !0) return !1;
|
|
2982
|
-
}), Y =
|
|
3018
|
+
}), Y = zt(A(() => r.storageKey ?? (u?.experimentalFeatures.forceInputSuggestions ? r.name : void 0)), ce, /* @__PURE__ */ new Set()), et = A(() => {
|
|
2983
3019
|
let e = /* @__PURE__ */ new Map();
|
|
2984
3020
|
if (Y.value) for (let t of Y.value) e.set(t, { isFromStorage: !0 });
|
|
2985
3021
|
if (r.suggestions) for (let t of r.suggestions) e.set(t, { isFromStorage: !1 });
|
|
2986
3022
|
return e;
|
|
2987
|
-
}), tt = A(() => et.value.size === 0 ? [] : [...et.value.entries()].filter(([e]) =>
|
|
3023
|
+
}), tt = A(() => et.value.size === 0 ? [] : [...et.value.entries()].filter(([e]) => bn(F.value) || `${e}`.toLowerCase().includes(`${F.value}`.toLowerCase()) && e !== F.value).reverse().map(([e]) => e)), nt = A(() => et.value.size > 0);
|
|
2988
3024
|
function rt(e) {
|
|
2989
|
-
F.value = e,
|
|
3025
|
+
F.value = e, Ae.value?.hide(), s("suggestion:selected", e);
|
|
2990
3026
|
}
|
|
2991
3027
|
function it(e) {
|
|
2992
3028
|
et.value.get(e)?.isFromStorage && (Y.value?.delete(e), s("suggestion:removed", e));
|
|
@@ -3000,9 +3036,9 @@ var Kr = ["for"], qr = {
|
|
|
3000
3036
|
readonly: r.readonly,
|
|
3001
3037
|
"icon-before": !!Ge.value,
|
|
3002
3038
|
"icon-after": !!qe.value,
|
|
3003
|
-
floating: r.floating && !
|
|
3039
|
+
floating: r.floating && !bn(r.label),
|
|
3004
3040
|
dirty: Qe.value,
|
|
3005
|
-
focus:
|
|
3041
|
+
focus: je.value && !Xe.value,
|
|
3006
3042
|
"auto-width": r.autoWidth
|
|
3007
3043
|
}))), st = A(() => [
|
|
3008
3044
|
$.TEXT,
|
|
@@ -3024,17 +3060,17 @@ var Kr = ["for"], qr = {
|
|
|
3024
3060
|
$.TEL,
|
|
3025
3061
|
$.EMAIL,
|
|
3026
3062
|
$.PASSWORD
|
|
3027
|
-
].includes(M.value)),
|
|
3063
|
+
].includes(M.value)), dt = {
|
|
3028
3064
|
[$.DATE]: "9999-12-31",
|
|
3029
3065
|
[$.DATETIME_LOCAL]: "9999-12-31T23:59:59.999",
|
|
3030
3066
|
[$.MONTH]: "9999-12",
|
|
3031
3067
|
[$.WEEK]: "9999-W52"
|
|
3032
3068
|
};
|
|
3033
|
-
function
|
|
3034
|
-
if (!
|
|
3069
|
+
function X(e) {
|
|
3070
|
+
if (!bn(e)) return (e instanceof Date || typeof e == "string" && Pr(e)) && lt.value ? Fr(e, lt.value, pe.value) || void 0 : String(e);
|
|
3035
3071
|
}
|
|
3036
3072
|
let ft = A(() => {
|
|
3037
|
-
let e = Le.value && Ie.value || ze.value && !Qe.value && !
|
|
3073
|
+
let e = Le.value && Ie.value || ze.value && !Qe.value && !K.value || r.iMask ? $.TEXT : r.type, t = {
|
|
3038
3074
|
type: e,
|
|
3039
3075
|
name: r.name,
|
|
3040
3076
|
tabindex: Ze.value,
|
|
@@ -3049,7 +3085,7 @@ var Kr = ["for"], qr = {
|
|
|
3049
3085
|
"aria-errormessage": gt.value ? fe.value : void 0,
|
|
3050
3086
|
inputMode: r.inputMode
|
|
3051
3087
|
};
|
|
3052
|
-
return (ct.value || e === $.NUMBER) && (t.step = r.step, t.max =
|
|
3088
|
+
return (ct.value || e === $.NUMBER) && (t.step = r.step, t.max = X(r.max) ?? dt[e], t.min = X(r.min)), (st.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = N.value), ut.value && (t.minlength = r.minlength, t.maxlength = r.maxlength, t.pattern = r.pattern), e === $.EMAIL && (t.multiple = r.multiple), t;
|
|
3053
3089
|
}), pt = A(() => ({
|
|
3054
3090
|
valid: r.valid,
|
|
3055
3091
|
invalid: r.invalid,
|
|
@@ -3058,9 +3094,9 @@ var Kr = ["for"], qr = {
|
|
|
3058
3094
|
stepUp: Ve,
|
|
3059
3095
|
stepDown: He,
|
|
3060
3096
|
clear: We
|
|
3061
|
-
})), { HintSlot: mt, hasHintLabelOrSlot: ht, hasInvalidLabelOrSlot: gt, hintSlotScope: _t } =
|
|
3097
|
+
})), { HintSlot: mt, hasHintLabelOrSlot: ht, hasInvalidLabelOrSlot: gt, hintSlotScope: _t } = Nn(d, c), vt = Gr($.PASSWORD, r, Qe), yt = Gr($.NUMBER, r, Qe), bt = Gr($.SEARCH, r, Qe);
|
|
3062
3098
|
function xt() {
|
|
3063
|
-
Xe.value || (
|
|
3099
|
+
Xe.value || (K.value = !0);
|
|
3064
3100
|
}
|
|
3065
3101
|
let St = A(() => {
|
|
3066
3102
|
if (r.autoWidth) return { width: F.value === void 0 ? void 0 : `${String(F.value).length + 1}ch` };
|
|
@@ -3083,13 +3119,13 @@ var Kr = ["for"], qr = {
|
|
|
3083
3119
|
key: 0,
|
|
3084
3120
|
for: R(de),
|
|
3085
3121
|
class: "vv-input-text__label"
|
|
3086
|
-
}, j(R(T)), 9,
|
|
3122
|
+
}, j(R(T)), 9, qr)) : I("v-if", !0),
|
|
3087
3123
|
O("div", {
|
|
3088
3124
|
ref_key: "wrapperEl",
|
|
3089
3125
|
ref: ke,
|
|
3090
3126
|
class: "vv-input-text__wrapper"
|
|
3091
3127
|
}, [
|
|
3092
|
-
e.$slots.before ? (H(), V("div",
|
|
3128
|
+
e.$slots.before ? (H(), V("div", Jr, [l(e.$slots, "before", i(a(R(pt))))])) : I("v-if", !0),
|
|
3093
3129
|
O("div", {
|
|
3094
3130
|
ref_key: "innerEl",
|
|
3095
3131
|
ref: Oe,
|
|
@@ -3106,8 +3142,8 @@ var Kr = ["for"], qr = {
|
|
|
3106
3142
|
onKeyup: t[0] ||= (e) => s("keyup", e),
|
|
3107
3143
|
onKeydown: Ct,
|
|
3108
3144
|
onKeypress: t[1] ||= (e) => s("keypress", e)
|
|
3109
|
-
}), null, 16,
|
|
3110
|
-
(R(le) || e.$slots.unit) && R(Qe) ? (H(), V("div",
|
|
3145
|
+
}), null, 16, Yr),
|
|
3146
|
+
(R(le) || e.$slots.unit) && R(Qe) ? (H(), V("div", Xr, [l(e.$slots, "unit", i(a(R(pt))), () => [z(j(R(le)), 1)])])) : I("v-if", !0)
|
|
3111
3147
|
], 512),
|
|
3112
3148
|
R(qe) ? (H(), w(Q, h({ key: 1 }, R(qe), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : R(Le) && !e.hideActions && !R(Xe) ? (H(), w(R(vt), {
|
|
3113
3149
|
key: 2,
|
|
@@ -3120,8 +3156,8 @@ var Kr = ["for"], qr = {
|
|
|
3120
3156
|
key: 4,
|
|
3121
3157
|
onClear: We
|
|
3122
3158
|
})) : I("v-if", !0),
|
|
3123
|
-
e.$slots.after ? (H(), V("div",
|
|
3124
|
-
R(p) ? (H(), V("span",
|
|
3159
|
+
e.$slots.after ? (H(), V("div", Zr, [l(e.$slots, "after", i(a(R(pt))))])) : I("v-if", !0),
|
|
3160
|
+
R(p) ? (H(), V("span", Qr, [l(e.$slots, "count", i(a(R(pt))), () => [z(j(R(Ye)), 1)])])) : I("v-if", !0)
|
|
3125
3161
|
], 512),
|
|
3126
3162
|
_(R(mt), {
|
|
3127
3163
|
id: R(fe),
|
|
@@ -3148,27 +3184,27 @@ var Kr = ["for"], qr = {
|
|
|
3148
3184
|
key: "3"
|
|
3149
3185
|
} : void 0
|
|
3150
3186
|
]), 1032, ["id"]),
|
|
3151
|
-
R(nt) ? (H(), w(
|
|
3187
|
+
R(nt) ? (H(), w(rr, {
|
|
3152
3188
|
key: 1,
|
|
3153
3189
|
ref_key: "suggestionsDropdownEl",
|
|
3154
|
-
ref:
|
|
3190
|
+
ref: Ae,
|
|
3155
3191
|
reference: R(ke),
|
|
3156
3192
|
"autofocus-first": !1,
|
|
3157
3193
|
"trigger-width": !0,
|
|
3158
3194
|
"top-layer": R(d).topLayer
|
|
3159
3195
|
}, {
|
|
3160
|
-
items: P(() => [(H(!0), V(ie, null, x(R(tt), (t) => (H(), w(
|
|
3196
|
+
items: P(() => [(H(!0), V(ie, null, x(R(tt), (t) => (H(), w(or, {
|
|
3161
3197
|
key: String(t),
|
|
3162
3198
|
onClick: D((e) => rt(t), ["stop"])
|
|
3163
3199
|
}, {
|
|
3164
|
-
default: P(() => [O("div",
|
|
3200
|
+
default: P(() => [O("div", $r, [l(e.$slots, "suggestion", h({ ref_for: !0 }, { value: t }), () => [z(j(t), 1)])]), R(et).get(t)?.isFromStorage && R(Je) ? (H(), V("button", {
|
|
3165
3201
|
key: 0,
|
|
3166
3202
|
type: "button",
|
|
3167
3203
|
tabindex: "-1",
|
|
3168
3204
|
class: "cursor-pointer",
|
|
3169
3205
|
title: R(ne),
|
|
3170
3206
|
onClick: D((e) => it(t), ["stop"])
|
|
3171
|
-
}, [_(Q, h({ ref_for: !0 }, R(Je)), null, 16)], 8,
|
|
3207
|
+
}, [_(Q, h({ ref_for: !0 }, R(Je)), null, 16)], 8, ei)) : I("v-if", !0)]),
|
|
3172
3208
|
_: 2
|
|
3173
3209
|
}, 1032, ["onClick"]))), 128))]),
|
|
3174
3210
|
_: 3
|
|
@@ -3178,16 +3214,16 @@ var Kr = ["for"], qr = {
|
|
|
3178
3214
|
});
|
|
3179
3215
|
({
|
|
3180
3216
|
...X,
|
|
3181
|
-
...
|
|
3217
|
+
...kt
|
|
3182
3218
|
}), { ...X };
|
|
3183
|
-
var
|
|
3219
|
+
var ni = Et, ri = [
|
|
3184
3220
|
"click",
|
|
3185
3221
|
"update:modelValue",
|
|
3186
3222
|
"change",
|
|
3187
3223
|
"blur"
|
|
3188
3224
|
];
|
|
3189
|
-
function
|
|
3190
|
-
let { id: n } = B(e), { group: r, isInGroup: i, getGroupOrLocalRef: a } =
|
|
3225
|
+
function ii(e, t) {
|
|
3226
|
+
let { id: n } = B(e), { group: r, isInGroup: i, getGroupOrLocalRef: a } = jt(Ke);
|
|
3191
3227
|
return {
|
|
3192
3228
|
id: n,
|
|
3193
3229
|
group: r,
|
|
@@ -3199,7 +3235,7 @@ function ri(e, t) {
|
|
|
3199
3235
|
disabled: A(() => !!(e.disabled || r?.disabled.value))
|
|
3200
3236
|
};
|
|
3201
3237
|
}
|
|
3202
|
-
var
|
|
3238
|
+
var ai = ["for"], oi = [
|
|
3203
3239
|
"id",
|
|
3204
3240
|
"name",
|
|
3205
3241
|
"disabled",
|
|
@@ -3210,15 +3246,15 @@ var ii = ["for"], ai = [
|
|
|
3210
3246
|
"aria-invalid",
|
|
3211
3247
|
"aria-describedby",
|
|
3212
3248
|
"aria-errormessage"
|
|
3213
|
-
],
|
|
3249
|
+
], si = { class: "vv-radio__label" }, ci = /* @__PURE__ */ L({
|
|
3214
3250
|
name: "VvRadio",
|
|
3215
|
-
props:
|
|
3216
|
-
emits:
|
|
3251
|
+
props: ni,
|
|
3252
|
+
emits: ri,
|
|
3217
3253
|
setup(e, { emit: t }) {
|
|
3218
|
-
let n = e, r = t, s = C(), c =
|
|
3254
|
+
let n = e, r = t, s = C(), c = Fn("VvRadio", ni, n), { id: u, disabled: d, readonly: f, modelValue: p, valid: m, invalid: h } = ii(n, r), g = Jt(u), v = A(() => `${g.value}-hint`), ee = A(() => b.value ? -1 : n.tabindex), y = k(), b = A(() => d.value || f.value), x = A(() => {
|
|
3219
3255
|
if (h.value === !0) return !0;
|
|
3220
3256
|
if (m.value === !0) return !1;
|
|
3221
|
-
}), S = A(() => Array.isArray(p.value) ?
|
|
3257
|
+
}), S = A(() => Array.isArray(p.value) ? yn(n.value, p.value) : mn(n.value, p.value)), w = A(() => ![
|
|
3222
3258
|
"string",
|
|
3223
3259
|
"number",
|
|
3224
3260
|
"boolean"
|
|
@@ -3234,7 +3270,7 @@ var ii = ["for"], ai = [
|
|
|
3234
3270
|
invalid: h.value,
|
|
3235
3271
|
disabled: d.value,
|
|
3236
3272
|
readonly: f.value
|
|
3237
|
-
}))), { HintSlot: D, hasHintLabelOrSlot: re, hasInvalidLabelOrSlot: ie, hintSlotScope: ae } =
|
|
3273
|
+
}))), { HintSlot: D, hasHintLabelOrSlot: re, hasInvalidLabelOrSlot: ie, hintSlotScope: ae } = Nn(c, s), oe = A(() => [n.ariaDescribedby, re.value ? v.value : void 0].filter(Boolean).join(" ") || void 0);
|
|
3238
3274
|
return (e, t) => (H(), V("label", {
|
|
3239
3275
|
class: o(R(E)),
|
|
3240
3276
|
for: R(g)
|
|
@@ -3255,8 +3291,8 @@ var ii = ["for"], ai = [
|
|
|
3255
3291
|
"aria-invalid": R(x),
|
|
3256
3292
|
"aria-describedby": R(oe),
|
|
3257
3293
|
"aria-errormessage": R(ie) ? R(v) : void 0
|
|
3258
|
-
}, null, 8,
|
|
3259
|
-
O("span",
|
|
3294
|
+
}, null, 8, oi), [[ce, R(T)]]),
|
|
3295
|
+
O("span", si, [l(e.$slots, "default", { value: R(p) }, () => [z(j(e.label), 1)])]),
|
|
3260
3296
|
_(R(D), {
|
|
3261
3297
|
id: R(v),
|
|
3262
3298
|
class: "vv-radio__hint"
|
|
@@ -3282,22 +3318,22 @@ var ii = ["for"], ai = [
|
|
|
3282
3318
|
key: "3"
|
|
3283
3319
|
} : void 0
|
|
3284
3320
|
]), 1032, ["id"])
|
|
3285
|
-
], 10,
|
|
3321
|
+
], 10, ai));
|
|
3286
3322
|
}
|
|
3287
|
-
}),
|
|
3323
|
+
}), li = ["update:modelValue", "change"], ui = ["textContent"], di = { class: "vv-radio-group__wrapper" }, fi = /* @__PURE__ */ L({
|
|
3288
3324
|
name: "VvRadioGroup",
|
|
3289
|
-
props:
|
|
3290
|
-
emits:
|
|
3325
|
+
props: Dt,
|
|
3326
|
+
emits: li,
|
|
3291
3327
|
setup(e, { emit: t }) {
|
|
3292
|
-
let n = e, r = t, s = C(), c =
|
|
3293
|
-
|
|
3328
|
+
let n = e, r = t, s = C(), c = Fn("VvRadioGroup", Dt, n), u = pe(n, "modelValue", r), { disabled: d, readonly: f, vertical: p, valid: m, invalid: g, modifiers: v } = B(n);
|
|
3329
|
+
Bt(Ke, {
|
|
3294
3330
|
modelValue: u,
|
|
3295
3331
|
disabled: d,
|
|
3296
3332
|
readonly: f,
|
|
3297
3333
|
valid: m,
|
|
3298
3334
|
invalid: g
|
|
3299
3335
|
});
|
|
3300
|
-
let { getOptionLabel: ee, getOptionValue: y, isOptionDisabled: b } =
|
|
3336
|
+
let { getOptionLabel: ee, getOptionValue: y, isOptionDisabled: b } = Vn(n), S = Z("vv-radio-group", v, A(() => ({
|
|
3301
3337
|
disabled: d.value,
|
|
3302
3338
|
readonly: f.value,
|
|
3303
3339
|
required: n.required,
|
|
@@ -3315,13 +3351,13 @@ var ii = ["for"], ai = [
|
|
|
3315
3351
|
disabled: b(e)
|
|
3316
3352
|
};
|
|
3317
3353
|
}
|
|
3318
|
-
let { HintSlot: ne, hintSlotScope: E } =
|
|
3354
|
+
let { HintSlot: ne, hintSlotScope: E } = Nn(c, s);
|
|
3319
3355
|
return (e, t) => (H(), V("fieldset", { class: o(R(S)) }, [
|
|
3320
3356
|
e.label ? (H(), V("legend", {
|
|
3321
3357
|
key: 0,
|
|
3322
3358
|
textContent: j(e.label)
|
|
3323
|
-
}, null, 8,
|
|
3324
|
-
O("div",
|
|
3359
|
+
}, null, 8, ui)) : I("v-if", !0),
|
|
3360
|
+
O("div", di, [e.options.length > 0 ? (H(!0), V(ie, { key: 0 }, x(e.options, (e, t) => (H(), w(ci, h({ key: t }, { ref_for: !0 }, T(e, t)), null, 16))), 128)) : l(e.$slots, "default", {}, void 0, void 0, 1)]),
|
|
3325
3361
|
_(R(ne), { class: "vv-radio-group__hint" }, te({ _: 2 }, [
|
|
3326
3362
|
e.$slots.hint ? {
|
|
3327
3363
|
name: "hint",
|
|
@@ -3348,23 +3384,23 @@ var ii = ["for"], ai = [
|
|
|
3348
3384
|
}
|
|
3349
3385
|
});
|
|
3350
3386
|
({ ...X });
|
|
3351
|
-
var
|
|
3387
|
+
var pi = {
|
|
3352
3388
|
hard: "hard",
|
|
3353
3389
|
soft: "soft"
|
|
3354
|
-
},
|
|
3390
|
+
}, mi = {
|
|
3355
3391
|
true: !0,
|
|
3356
3392
|
false: !1,
|
|
3357
3393
|
default: "default"
|
|
3358
|
-
},
|
|
3394
|
+
}, hi = [
|
|
3359
3395
|
"update:modelValue",
|
|
3360
3396
|
"focus",
|
|
3361
3397
|
"blur",
|
|
3362
3398
|
"keyup",
|
|
3363
3399
|
"suggestion:selected",
|
|
3364
3400
|
"suggestion:removed"
|
|
3365
|
-
],
|
|
3366
|
-
...
|
|
3367
|
-
...
|
|
3401
|
+
], gi = {
|
|
3402
|
+
...Tt,
|
|
3403
|
+
...At,
|
|
3368
3404
|
modelValue: String,
|
|
3369
3405
|
cols: {
|
|
3370
3406
|
type: [String, Number],
|
|
@@ -3376,11 +3412,11 @@ var fi = {
|
|
|
3376
3412
|
},
|
|
3377
3413
|
wrap: {
|
|
3378
3414
|
type: String,
|
|
3379
|
-
default:
|
|
3415
|
+
default: pi.soft
|
|
3380
3416
|
},
|
|
3381
3417
|
spellcheck: {
|
|
3382
3418
|
type: [Boolean, String],
|
|
3383
|
-
default:
|
|
3419
|
+
default: mi.default
|
|
3384
3420
|
},
|
|
3385
3421
|
iconRemoveSuggestion: {
|
|
3386
3422
|
type: [String, Object],
|
|
@@ -3399,51 +3435,51 @@ var fi = {
|
|
|
3399
3435
|
default: !1
|
|
3400
3436
|
},
|
|
3401
3437
|
resizable: Boolean,
|
|
3402
|
-
topLayer:
|
|
3403
|
-
},
|
|
3438
|
+
topLayer: xt.topLayer
|
|
3439
|
+
}, _i = ["for"], vi = {
|
|
3404
3440
|
key: 0,
|
|
3405
3441
|
class: "vv-textarea__input-before"
|
|
3406
|
-
},
|
|
3442
|
+
}, yi = { class: "vv-textarea__inner" }, bi = ["id"], xi = {
|
|
3407
3443
|
key: 1,
|
|
3408
3444
|
class: "vv-textarea__input-after"
|
|
3409
|
-
},
|
|
3445
|
+
}, Si = {
|
|
3410
3446
|
key: 2,
|
|
3411
3447
|
class: "vv-textarea__limit"
|
|
3412
|
-
},
|
|
3448
|
+
}, Ci = { class: "flex-1" }, wi = ["title", "onClick"], Ti = /* @__PURE__ */ L({
|
|
3413
3449
|
name: "VvTextarea",
|
|
3414
|
-
props:
|
|
3415
|
-
emits:
|
|
3450
|
+
props: gi,
|
|
3451
|
+
emits: hi,
|
|
3416
3452
|
setup(e, { expose: t, emit: n }) {
|
|
3417
|
-
let r = e, s = n, c = C(), u =
|
|
3453
|
+
let r = e, s = n, c = C(), u = Ht(), d = Fn("VvTextarea", gi, r), f = k(), p = k(), m = k(), { id: v, icon: ee, iconPosition: y, iconRemoveSuggestion: b, labelRemoveSuggestion: S, label: T, modelValue: ne, count: re, valid: ae, invalid: oe, loading: ce, modifiers: M, debounce: le, minlength: ue, maxlength: de, storageType: fe } = B(r), N = Jt(v), L = A(() => `${N.value}-hint`), pe = A(() => r.floating && bn(r.placeholder) ? " " : r.placeholder), { model: U, flush: me } = jr(ne, s, le);
|
|
3418
3454
|
t({ flush: me });
|
|
3419
|
-
let { hasIconBefore: he, hasIconAfter: ge } =
|
|
3420
|
-
g(
|
|
3455
|
+
let { hasIconBefore: he, hasIconAfter: ge } = Yt(ee, y), { hasIcon: _e } = Yt(b), { focused: ve } = lr(f, s), ye = A(() => ve.value && !r.disabled && !r.readonly);
|
|
3456
|
+
g(ye, (e) => {
|
|
3421
3457
|
let t = U.value;
|
|
3422
3458
|
if (e || (t = me() ?? t), e && d.value.selectOnFocus && f.value && f.value.select(), e && G.value?.size) m.value?.restoringFocus || m.value?.show();
|
|
3423
|
-
else if (G.value && !
|
|
3459
|
+
else if (G.value && !bn(t)) {
|
|
3424
3460
|
let e = r.maxSuggestions;
|
|
3425
3461
|
G.value.size >= e && !G.value.has(t) && (G.value = new Set([...G.value].slice(G.value.size - e + 1))), G.value.add(t);
|
|
3426
3462
|
}
|
|
3427
3463
|
});
|
|
3428
|
-
let xe =
|
|
3464
|
+
let xe = be(f);
|
|
3429
3465
|
g(xe, (e) => {
|
|
3430
3466
|
e && r.autofocus && (ve.value = !0);
|
|
3431
3467
|
});
|
|
3432
|
-
let { formatted: W } =
|
|
3468
|
+
let { formatted: W } = Kr(U, {
|
|
3433
3469
|
mode: re?.value,
|
|
3434
3470
|
upperLimit: Number(de?.value),
|
|
3435
3471
|
lowerLimit: Number(ue?.value)
|
|
3436
|
-
}), Se = A(() => !r.disabled && !r.readonly), Ce = A(() => Se.value ? r.tabindex : -1), we = A(() => !
|
|
3472
|
+
}), Se = A(() => !r.disabled && !r.readonly), Ce = A(() => Se.value ? r.tabindex : -1), we = A(() => !bn(ne)), Te = A(() => {
|
|
3437
3473
|
if (r.invalid === !0) return !0;
|
|
3438
3474
|
if (r.valid === !0) return !1;
|
|
3439
|
-
}), Ee = A(() => r.storageKey ?? (u?.experimentalFeatures.forceInputSuggestions ? r.name : void 0)), G =
|
|
3475
|
+
}), Ee = A(() => r.storageKey ?? (u?.experimentalFeatures.forceInputSuggestions ? r.name : void 0)), G = zt(Ee, fe, /* @__PURE__ */ new Set()), De = A(() => G.value ? [...G.value].filter((e) => bn(U.value) || `${e}`.toLowerCase().includes(`${U.value}`.toLowerCase()) && e !== U.value).reverse() : []), Oe = A(() => Ee?.value && G.value && G.value.size > 0);
|
|
3440
3476
|
function ke(e) {
|
|
3441
3477
|
U.value = e, m.value?.hide(), s("suggestion:selected", e);
|
|
3442
3478
|
}
|
|
3443
|
-
function
|
|
3479
|
+
function Ae(e) {
|
|
3444
3480
|
G.value?.delete(e), s("suggestion:removed", e);
|
|
3445
3481
|
}
|
|
3446
|
-
let { HintSlot:
|
|
3482
|
+
let { HintSlot: K, hasHintLabelOrSlot: je, hasInvalidLabelOrSlot: Me, hintSlotScope: q } = Nn(d, c), Ne = Z("vv-textarea", M, A(() => ({
|
|
3447
3483
|
valid: ae.value,
|
|
3448
3484
|
invalid: oe.value,
|
|
3449
3485
|
loading: ce.value,
|
|
@@ -3452,7 +3488,7 @@ var fi = {
|
|
|
3452
3488
|
required: r.required,
|
|
3453
3489
|
"icon-before": he.value !== void 0,
|
|
3454
3490
|
"icon-after": ge.value !== void 0,
|
|
3455
|
-
floating: r.floating && !
|
|
3491
|
+
floating: r.floating && !bn(r.label),
|
|
3456
3492
|
dirty: we.value,
|
|
3457
3493
|
focus: ve.value,
|
|
3458
3494
|
resizable: r.resizable
|
|
@@ -3474,17 +3510,17 @@ var fi = {
|
|
|
3474
3510
|
"aria-labelledby": r.ariaLabelledby || void 0,
|
|
3475
3511
|
"aria-invalid": Te.value,
|
|
3476
3512
|
"aria-describedby": [r.ariaDescribedby, je.value ? L.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
3477
|
-
"aria-errormessage":
|
|
3478
|
-
})),
|
|
3513
|
+
"aria-errormessage": Me.value ? L.value : void 0
|
|
3514
|
+
})), Fe = A(() => ({
|
|
3479
3515
|
valid: r.valid,
|
|
3480
3516
|
invalid: r.invalid,
|
|
3481
3517
|
modelValue: r.modelValue,
|
|
3482
3518
|
hintLabel: r.hintLabel,
|
|
3483
3519
|
maxlength: r.maxlength,
|
|
3484
3520
|
minlength: r.minlength,
|
|
3485
|
-
clear:
|
|
3521
|
+
clear: J
|
|
3486
3522
|
}));
|
|
3487
|
-
function
|
|
3523
|
+
function J() {
|
|
3488
3524
|
U.value = void 0;
|
|
3489
3525
|
}
|
|
3490
3526
|
return (e, t) => (H(), V("div", { class: o(R(Ne)) }, [
|
|
@@ -3492,52 +3528,52 @@ var fi = {
|
|
|
3492
3528
|
key: 0,
|
|
3493
3529
|
for: R(N),
|
|
3494
3530
|
class: "vv-textarea__label"
|
|
3495
|
-
}, j(R(T)), 9,
|
|
3531
|
+
}, j(R(T)), 9, _i)) : I("v-if", !0),
|
|
3496
3532
|
O("div", {
|
|
3497
3533
|
ref_key: "wrapperEl",
|
|
3498
3534
|
ref: p,
|
|
3499
3535
|
class: "vv-textarea__wrapper"
|
|
3500
3536
|
}, [
|
|
3501
|
-
e.$slots.before ? (H(), V("div",
|
|
3502
|
-
O("div",
|
|
3537
|
+
e.$slots.before ? (H(), V("div", vi, [l(e.$slots, "before", i(a(R(Fe))))])) : I("v-if", !0),
|
|
3538
|
+
O("div", yi, [
|
|
3503
3539
|
R(he) ? (H(), w(Q, h({ key: 0 }, R(he), { class: "vv-textarea__icon" }), null, 16)) : I("v-if", !0),
|
|
3504
3540
|
se(O("textarea", h({
|
|
3505
3541
|
id: R(N),
|
|
3506
3542
|
ref_key: "textareaEl",
|
|
3507
3543
|
ref: f,
|
|
3508
3544
|
"onUpdate:modelValue": t[0] ||= (e) => F(U) ? U.value = e : null
|
|
3509
|
-
}, R(Pe), { onKeyup: t[1] ||= (e) => s("keyup", e) }), null, 16,
|
|
3545
|
+
}, R(Pe), { onKeyup: t[1] ||= (e) => s("keyup", e) }), null, 16, bi), [[E, R(U)]]),
|
|
3510
3546
|
R(ge) ? (H(), w(Q, h({ key: 1 }, R(ge), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : I("v-if", !0)
|
|
3511
3547
|
]),
|
|
3512
|
-
e.$slots.after ? (H(), V("div",
|
|
3513
|
-
R(re) ? (H(), V("span",
|
|
3548
|
+
e.$slots.after ? (H(), V("div", xi, [l(e.$slots, "after", i(a(R(Fe))))])) : I("v-if", !0),
|
|
3549
|
+
R(re) ? (H(), V("span", Si, [l(e.$slots, "count", i(a(R(Fe))), () => [z(j(R(W)), 1)])])) : I("v-if", !0)
|
|
3514
3550
|
], 512),
|
|
3515
|
-
_(R(
|
|
3551
|
+
_(R(K), {
|
|
3516
3552
|
id: R(L),
|
|
3517
3553
|
class: "vv-textarea__hint"
|
|
3518
3554
|
}, te({ _: 2 }, [
|
|
3519
3555
|
e.$slots.hint ? {
|
|
3520
3556
|
name: "hint",
|
|
3521
|
-
fn: P(() => [l(e.$slots, "hint", i(a(R(
|
|
3557
|
+
fn: P(() => [l(e.$slots, "hint", i(a(R(q))))]),
|
|
3522
3558
|
key: "0"
|
|
3523
3559
|
} : void 0,
|
|
3524
3560
|
e.$slots.loading ? {
|
|
3525
3561
|
name: "loading",
|
|
3526
|
-
fn: P(() => [l(e.$slots, "loading", i(a(R(
|
|
3562
|
+
fn: P(() => [l(e.$slots, "loading", i(a(R(q))))]),
|
|
3527
3563
|
key: "1"
|
|
3528
3564
|
} : void 0,
|
|
3529
3565
|
e.$slots.valid ? {
|
|
3530
3566
|
name: "valid",
|
|
3531
|
-
fn: P(() => [l(e.$slots, "valid", i(a(R(
|
|
3567
|
+
fn: P(() => [l(e.$slots, "valid", i(a(R(q))))]),
|
|
3532
3568
|
key: "2"
|
|
3533
3569
|
} : void 0,
|
|
3534
3570
|
e.$slots.invalid ? {
|
|
3535
3571
|
name: "invalid",
|
|
3536
|
-
fn: P(() => [l(e.$slots, "invalid", i(a(R(
|
|
3572
|
+
fn: P(() => [l(e.$slots, "invalid", i(a(R(q))))]),
|
|
3537
3573
|
key: "3"
|
|
3538
3574
|
} : void 0
|
|
3539
3575
|
]), 1032, ["id"]),
|
|
3540
|
-
R(Oe) ? (H(), w(
|
|
3576
|
+
R(Oe) ? (H(), w(rr, {
|
|
3541
3577
|
key: 1,
|
|
3542
3578
|
ref_key: "suggestionsDropdownEl",
|
|
3543
3579
|
ref: m,
|
|
@@ -3546,18 +3582,18 @@ var fi = {
|
|
|
3546
3582
|
"trigger-width": !0,
|
|
3547
3583
|
"top-layer": R(d).topLayer
|
|
3548
3584
|
}, {
|
|
3549
|
-
items: P(() => [(H(!0), V(ie, null, x(R(De), (t) => (H(), w(
|
|
3585
|
+
items: P(() => [(H(!0), V(ie, null, x(R(De), (t) => (H(), w(or, {
|
|
3550
3586
|
key: t,
|
|
3551
3587
|
onClick: D((e) => ke(t), ["stop"])
|
|
3552
3588
|
}, {
|
|
3553
|
-
default: P(() => [O("div",
|
|
3589
|
+
default: P(() => [O("div", Ci, [l(e.$slots, "suggestion", h({ ref_for: !0 }, { value: t }), () => [z(j(t), 1)])]), R(G) && R(_e) ? (H(), V("button", {
|
|
3554
3590
|
key: 0,
|
|
3555
3591
|
type: "button",
|
|
3556
3592
|
tabindex: "-1",
|
|
3557
3593
|
class: "cursor-pointer",
|
|
3558
3594
|
title: R(S),
|
|
3559
|
-
onClick: D((e) =>
|
|
3560
|
-
}, [_(Q, h({ ref_for: !0 }, R(_e)), null, 16)], 8,
|
|
3595
|
+
onClick: D((e) => Ae(t), ["stop"])
|
|
3596
|
+
}, [_(Q, h({ ref_for: !0 }, R(_e)), null, 16)], 8, wi)) : I("v-if", !0)]),
|
|
3561
3597
|
_: 2
|
|
3562
3598
|
}, 1032, ["onClick"]))), 128))]),
|
|
3563
3599
|
_: 3
|
|
@@ -3566,6 +3602,6 @@ var fi = {
|
|
|
3566
3602
|
}
|
|
3567
3603
|
});
|
|
3568
3604
|
({ ...X }), J.bottom;
|
|
3569
|
-
export {
|
|
3605
|
+
export { ci as a, kr as c, Wn as d, zn as f, Ar as g, on as h, br as i, fi as l, ti as m, Rt as n, un as o, On as p, Q as r, rr as s, wn as t, Ti as u };
|
|
3570
3606
|
|
|
3571
|
-
//# sourceMappingURL=index.es-
|
|
3607
|
+
//# sourceMappingURL=index.es-DHeth3Ja.js.map
|