@8wave/ai-elements 0.127.0-beta.2 → 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 +434 -434
- 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/PkChatbotWakeupBar.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-8Fqlhwq5.js → PkChatbot-CuCgECW2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-8Fqlhwq5.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-DTKfW1kr.js → PkChatbotViewChat-FtOpDmks.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-DTKfW1kr.js.map → PkChatbotViewChat-FtOpDmks.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotWakeupBar-Bx1zqFAX.js → PkChatbotWakeupBar-IoQJdUjI.js} +11 -11
- package/dist-vue/_chunks/PkChatbotWakeupBar-IoQJdUjI.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-sSb1Mmr2.js → PkFilePreview-B6PSJcvA.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-sSb1Mmr2.js.map → PkFilePreview-B6PSJcvA.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.js → PkFilePreviewDialog-3HJbVudc.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DquXMRJD.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 +9 -9
- package/dist-vue/style.css +1 -1
- 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
- package/dist-vue/_chunks/PkChatbotWakeupBar-Bx1zqFAX.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, K as l, L as u, M as d, Ot as ee, P as f, Q as p, S as te, St as m, Tt as ne, V as re, Y as ie, _ as h, b as g, d as ae, et as oe, f as se, g as _, gt as v, h as y, k as ce, kt as b, l as le, nt as ue, ot as de, pt as fe, q as pe, r as me, t as he, tt as x, ut as ge, v as S, w as C, wt as w, x as T, xt as _e, y as E, z as D } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
|
|
2
2
|
import { t as ve } from "./esm-d7HMhmr5.js";
|
|
3
3
|
import { a as ye, c as be, i as O, l as xe, n as Se, o as Ce, r as we, s as Te, t as k } from "./floating-ui.vue-SbFDfAS7.js";
|
|
4
|
-
import { S as Ee, c as De,
|
|
5
|
-
import { a as
|
|
6
|
-
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
4
|
+
import { S as Ee, c as De, d as Oe, f as ke, g as Ae, n as je, p as A, r as j, u as Me, x as Ne } from "./dist-CR8l0inH.js";
|
|
5
|
+
import { a as Pe, i as M, t as Fe } from "./iconify-BsIVfdEw.js";
|
|
6
|
+
// ../../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/VvInputText/VvInputText.es.js
|
|
7
7
|
ce(), me(), de(), ne();
|
|
8
|
-
var N = (e) => e.toString().padStart(2, "0"),
|
|
9
|
-
function
|
|
10
|
-
if (typeof e != "string" || !
|
|
8
|
+
var N = (e) => e.toString().padStart(2, "0"), Ie = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
9
|
+
function Le(e) {
|
|
10
|
+
if (typeof e != "string" || !Ie.test(e)) return !1;
|
|
11
11
|
let t = new Date(e);
|
|
12
12
|
return !Number.isNaN(t.getTime()) && t.toISOString() === e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
if (typeof e == "string" && !
|
|
14
|
+
function Re(e, t = "date", n) {
|
|
15
|
+
if (typeof e == "string" && !Le(e)) return "";
|
|
16
16
|
let r = new Date(e);
|
|
17
17
|
if (Number.isNaN(r.getTime())) return "";
|
|
18
18
|
let i = `${r.getFullYear()}-${N(r.getMonth() + 1)}`;
|
|
@@ -20,23 +20,23 @@ function Ie(e, t = "date", n) {
|
|
|
20
20
|
let a = n ? `${N(r.getHours())}:${N(r.getMinutes())}:${N(r.getSeconds())}` : `${N(r.getHours())}:${N(r.getMinutes())}`;
|
|
21
21
|
return t === "time" ? a : `${i}T${a}`;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var ze = /^\d{4}-\d{2}-\d{2}$/, Be = /^\d{4}-\d{2}$/, Ve = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, P = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
|
|
24
24
|
function F(e, t = "date") {
|
|
25
25
|
if (!e?.trim()) return null;
|
|
26
26
|
let n = /* @__PURE__ */ new Date(), r = n.getFullYear(), i = n.getMonth(), a = n.getDate();
|
|
27
27
|
if (t === "date") {
|
|
28
|
-
if (!
|
|
28
|
+
if (!ze.test(e)) throw Error("Invalid date format. Expected: YYYY-MM-DD");
|
|
29
29
|
return /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
30
30
|
}
|
|
31
31
|
if (t === "month") {
|
|
32
|
-
if (!
|
|
32
|
+
if (!Be.test(e)) throw Error("Invalid month format. Expected: YYYY-MM");
|
|
33
33
|
return /* @__PURE__ */ new Date(`${e}-01T00:00:00`);
|
|
34
34
|
}
|
|
35
35
|
if (t === "time") {
|
|
36
|
-
if (!
|
|
36
|
+
if (!Ve.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
|
|
37
37
|
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${N(i + 1)}-${N(a)}T${e}`) : /* @__PURE__ */ new Date(`${r}-${N(i + 1)}-${N(a)}T${e}:00`);
|
|
38
38
|
}
|
|
39
|
-
if (!
|
|
39
|
+
if (!P.test(e)) throw Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
|
|
40
40
|
return e.length === 16 ? /* @__PURE__ */ new Date(`${e}:00`) : /* @__PURE__ */ new Date(`${e}`);
|
|
41
41
|
}
|
|
42
42
|
function I(e) {
|
|
@@ -48,7 +48,7 @@ function L(e) {
|
|
|
48
48
|
function R(e) {
|
|
49
49
|
return Array.isArray(e) ? e.filter((e) => L(e)).join(" ") : e;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function He(e, t) {
|
|
52
52
|
let r = y(() => ge(e) ? e.value : e), i = y(() => R(r.value.invalidLabel)), a = y(() => R(r.value.validLabel)), o = y(() => r.value.loadingLabel), s = y(() => r.value.hintLabel), c = y(() => !!(r.value.loading && (t.loading || o.value))), l = y(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = y(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = y(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), ee = y(() => l.value || u.value || c.value || d.value);
|
|
53
53
|
return {
|
|
54
54
|
hasInvalidLabelOrSlot: l,
|
|
@@ -96,21 +96,21 @@ var z = /* @__PURE__ */ (function(e) {
|
|
|
96
96
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
97
97
|
})({}), V = /* @__PURE__ */ (function(e) {
|
|
98
98
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
99
|
-
})({}), He = /* @__PURE__ */ (function(e) {
|
|
100
|
-
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;
|
|
101
99
|
})({}), Ue = /* @__PURE__ */ (function(e) {
|
|
102
|
-
return e.
|
|
100
|
+
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;
|
|
103
101
|
})({}), We = /* @__PURE__ */ (function(e) {
|
|
104
|
-
return e.
|
|
102
|
+
return e.before = "before", e.after = "after", e;
|
|
105
103
|
})({}), Ge = /* @__PURE__ */ (function(e) {
|
|
106
|
-
return e.
|
|
104
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
107
105
|
})({}), Ke = /* @__PURE__ */ (function(e) {
|
|
108
|
-
return e.
|
|
106
|
+
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
109
107
|
})({}), qe = /* @__PURE__ */ (function(e) {
|
|
110
|
-
return e.
|
|
108
|
+
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
111
109
|
})({}), Je = /* @__PURE__ */ (function(e) {
|
|
110
|
+
return e.listbox = "listbox", e.menu = "menu", e;
|
|
111
|
+
})({}), Ye = /* @__PURE__ */ (function(e) {
|
|
112
112
|
return e.option = "option", e.presentation = "presentation", e;
|
|
113
|
-
})({}),
|
|
113
|
+
})({}), Xe = /* @__PURE__ */ Symbol.for("volver"), H = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Ze = /* @__PURE__ */ Symbol.for("dropdownItem"), U = /* @__PURE__ */ Symbol.for("dropdownAction"), W = {
|
|
114
114
|
showPassword: "eye-on",
|
|
115
115
|
hidePassword: "eye-off",
|
|
116
116
|
showDatePicker: "calendar",
|
|
@@ -121,7 +121,7 @@ var z = /* @__PURE__ */ (function(e) {
|
|
|
121
121
|
remove: "trash",
|
|
122
122
|
edit: "edit",
|
|
123
123
|
download: "download"
|
|
124
|
-
},
|
|
124
|
+
}, Qe = { prefix: "normal" }, $e = {
|
|
125
125
|
to: { type: [String, Object] },
|
|
126
126
|
href: String,
|
|
127
127
|
target: String,
|
|
@@ -129,7 +129,7 @@ var z = /* @__PURE__ */ (function(e) {
|
|
|
129
129
|
type: String,
|
|
130
130
|
default: "noopener noreferrer"
|
|
131
131
|
}
|
|
132
|
-
},
|
|
132
|
+
}, G = {
|
|
133
133
|
valid: {
|
|
134
134
|
type: Boolean,
|
|
135
135
|
default: !1
|
|
@@ -138,7 +138,7 @@ var z = /* @__PURE__ */ (function(e) {
|
|
|
138
138
|
type: [String, Array],
|
|
139
139
|
default: void 0
|
|
140
140
|
}
|
|
141
|
-
},
|
|
141
|
+
}, et = {
|
|
142
142
|
invalid: {
|
|
143
143
|
type: Boolean,
|
|
144
144
|
default: !1
|
|
@@ -159,27 +159,27 @@ var z = /* @__PURE__ */ (function(e) {
|
|
|
159
159
|
}, q = { disabled: {
|
|
160
160
|
type: Boolean,
|
|
161
161
|
default: !1
|
|
162
|
-
} },
|
|
162
|
+
} }, tt = { required: {
|
|
163
163
|
type: Boolean,
|
|
164
164
|
default: !1
|
|
165
|
-
} },
|
|
165
|
+
} }, J = { selected: {
|
|
166
166
|
type: Boolean,
|
|
167
167
|
default: !1
|
|
168
|
-
} },
|
|
168
|
+
} }, nt = { active: {
|
|
169
169
|
type: Boolean,
|
|
170
170
|
default: !1
|
|
171
|
-
} },
|
|
171
|
+
} }, Y = { current: {
|
|
172
172
|
type: Boolean,
|
|
173
173
|
default: !1
|
|
174
174
|
} };
|
|
175
175
|
W.clear;
|
|
176
|
-
var
|
|
176
|
+
var rt = { pressed: {
|
|
177
177
|
type: Boolean,
|
|
178
178
|
default: !1
|
|
179
|
-
} },
|
|
179
|
+
} }, X = { label: {
|
|
180
180
|
type: [String, Number],
|
|
181
181
|
default: void 0
|
|
182
|
-
} },
|
|
182
|
+
} }, Z = {
|
|
183
183
|
ariaLabel: {
|
|
184
184
|
type: String,
|
|
185
185
|
default: void 0
|
|
@@ -192,16 +192,16 @@ var Y = { pressed: {
|
|
|
192
192
|
type: String,
|
|
193
193
|
default: void 0
|
|
194
194
|
}
|
|
195
|
-
},
|
|
195
|
+
}, it = { readonly: {
|
|
196
196
|
type: Boolean,
|
|
197
197
|
default: !1
|
|
198
|
-
} },
|
|
198
|
+
} }, at = { modifiers: {
|
|
199
199
|
type: [String, Array],
|
|
200
200
|
default: void 0
|
|
201
|
-
} },
|
|
201
|
+
} }, ot = { hintLabel: {
|
|
202
202
|
type: String,
|
|
203
203
|
default: ""
|
|
204
|
-
} },
|
|
204
|
+
} }, st = {
|
|
205
205
|
options: {
|
|
206
206
|
type: Array,
|
|
207
207
|
default: () => []
|
|
@@ -218,7 +218,7 @@ var Y = { pressed: {
|
|
|
218
218
|
type: [String, Function],
|
|
219
219
|
default: "disabled"
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, ct = { count: {
|
|
222
222
|
type: [Boolean, String],
|
|
223
223
|
default: !1,
|
|
224
224
|
validator: (e) => [
|
|
@@ -227,33 +227,33 @@ var Y = { pressed: {
|
|
|
227
227
|
"limit",
|
|
228
228
|
"countdown"
|
|
229
229
|
].includes(e)
|
|
230
|
-
} },
|
|
230
|
+
} }, lt = { debounce: {
|
|
231
231
|
type: [Number, String],
|
|
232
232
|
default: void 0
|
|
233
|
-
} },
|
|
233
|
+
} }, ut = {
|
|
234
234
|
icon: {
|
|
235
235
|
type: [String, Object],
|
|
236
236
|
default: void 0
|
|
237
237
|
},
|
|
238
238
|
iconPosition: {
|
|
239
239
|
type: String,
|
|
240
|
-
default:
|
|
241
|
-
validator: (e) => Object.values(
|
|
240
|
+
default: We.before,
|
|
241
|
+
validator: (e) => Object.values(We).includes(e)
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, dt = { tabindex: {
|
|
244
244
|
type: [String, Number],
|
|
245
245
|
default: 0
|
|
246
|
-
} },
|
|
246
|
+
} }, ft = { floating: {
|
|
247
247
|
type: Boolean,
|
|
248
248
|
default: !1
|
|
249
|
-
} },
|
|
249
|
+
} }, pt = { unselectable: {
|
|
250
250
|
type: Boolean,
|
|
251
251
|
default: !0
|
|
252
|
-
} },
|
|
252
|
+
} }, mt = { id: [String, Number] }, ht = {
|
|
253
253
|
placement: {
|
|
254
254
|
type: String,
|
|
255
255
|
default: V.bottom,
|
|
256
|
-
validator: (e) => Object.values(V).includes(e) || Object.values(
|
|
256
|
+
validator: (e) => Object.values(V).includes(e) || Object.values(Ue).includes(e)
|
|
257
257
|
},
|
|
258
258
|
strategy: {
|
|
259
259
|
type: String,
|
|
@@ -308,36 +308,36 @@ var Y = { pressed: {
|
|
|
308
308
|
type: Boolean,
|
|
309
309
|
default: !1
|
|
310
310
|
}
|
|
311
|
-
},
|
|
312
|
-
...
|
|
311
|
+
}, gt = {
|
|
312
|
+
...mt,
|
|
313
313
|
name: {
|
|
314
314
|
type: String,
|
|
315
315
|
required: !0
|
|
316
316
|
}
|
|
317
|
-
},
|
|
317
|
+
}, _t = { autofocus: {
|
|
318
318
|
type: Boolean,
|
|
319
319
|
default: !1
|
|
320
|
-
} },
|
|
320
|
+
} }, vt = { autocomplete: {
|
|
321
321
|
type: String,
|
|
322
322
|
default: "off"
|
|
323
|
-
} },
|
|
324
|
-
...ht,
|
|
323
|
+
} }, yt = {
|
|
325
324
|
...gt,
|
|
326
325
|
..._t,
|
|
327
|
-
...
|
|
326
|
+
...vt,
|
|
327
|
+
...dt,
|
|
328
328
|
...q,
|
|
329
|
-
...
|
|
330
|
-
...$e,
|
|
329
|
+
...it,
|
|
331
330
|
...G,
|
|
332
|
-
...
|
|
331
|
+
...et,
|
|
332
|
+
...ot,
|
|
333
333
|
...K,
|
|
334
|
-
...
|
|
335
|
-
...st,
|
|
334
|
+
...at,
|
|
336
335
|
...ct,
|
|
337
336
|
...lt,
|
|
338
|
-
...
|
|
339
|
-
...
|
|
337
|
+
...ut,
|
|
338
|
+
...ft,
|
|
340
339
|
...X,
|
|
340
|
+
...Z,
|
|
341
341
|
minlength: {
|
|
342
342
|
type: [String, Number],
|
|
343
343
|
default: void 0
|
|
@@ -350,50 +350,50 @@ var Y = { pressed: {
|
|
|
350
350
|
type: String,
|
|
351
351
|
default: void 0
|
|
352
352
|
},
|
|
353
|
-
...
|
|
353
|
+
...tt
|
|
354
354
|
};
|
|
355
355
|
({
|
|
356
|
-
...
|
|
357
|
-
...
|
|
358
|
-
...$e,
|
|
356
|
+
...gt,
|
|
357
|
+
...dt,
|
|
359
358
|
...G,
|
|
360
|
-
...
|
|
359
|
+
...et,
|
|
360
|
+
...ot,
|
|
361
361
|
...q,
|
|
362
|
-
...Z,
|
|
363
362
|
...it,
|
|
364
|
-
...
|
|
363
|
+
...at,
|
|
365
364
|
...X,
|
|
365
|
+
...Z,
|
|
366
366
|
...K
|
|
367
367
|
}), {
|
|
368
|
-
...$e,
|
|
369
368
|
...G,
|
|
369
|
+
...et,
|
|
370
|
+
...st,
|
|
370
371
|
...ot,
|
|
371
|
-
...at,
|
|
372
372
|
...q,
|
|
373
|
-
...Z,
|
|
374
373
|
...it,
|
|
375
|
-
...
|
|
374
|
+
...at,
|
|
375
|
+
...X,
|
|
376
376
|
...K,
|
|
377
|
-
...
|
|
377
|
+
...tt
|
|
378
378
|
}, {
|
|
379
379
|
...q,
|
|
380
|
+
...X,
|
|
380
381
|
...rt,
|
|
381
|
-
...Y,
|
|
382
|
-
...J,
|
|
383
382
|
...nt,
|
|
384
|
-
...
|
|
385
|
-
|
|
386
|
-
|
|
383
|
+
...Y,
|
|
384
|
+
...$e
|
|
385
|
+
}, Ge.button, Ke.button;
|
|
386
|
+
var bt = {
|
|
387
387
|
storageType: {
|
|
388
388
|
type: String,
|
|
389
389
|
default: z.local,
|
|
390
390
|
validator: (e) => Object.values(z).includes(e)
|
|
391
391
|
},
|
|
392
392
|
storageKey: String
|
|
393
|
-
},
|
|
394
|
-
...pt,
|
|
393
|
+
}, xt = {
|
|
395
394
|
...mt,
|
|
396
|
-
...
|
|
395
|
+
...ht,
|
|
396
|
+
...at,
|
|
397
397
|
modelValue: {
|
|
398
398
|
type: Boolean,
|
|
399
399
|
default: void 0
|
|
@@ -404,17 +404,17 @@ var yt = {
|
|
|
404
404
|
},
|
|
405
405
|
role: {
|
|
406
406
|
type: String,
|
|
407
|
-
default:
|
|
408
|
-
validator: (e) => Object.values(
|
|
407
|
+
default: Je.menu,
|
|
408
|
+
validator: (e) => Object.values(Je).includes(e)
|
|
409
409
|
}
|
|
410
|
-
},
|
|
410
|
+
}, St = { focusOnHover: {
|
|
411
411
|
type: Boolean,
|
|
412
412
|
default: !1
|
|
413
|
-
} },
|
|
413
|
+
} }, Ct = {
|
|
414
414
|
...q,
|
|
415
|
-
...
|
|
416
|
-
...
|
|
417
|
-
...
|
|
415
|
+
...J,
|
|
416
|
+
...pt,
|
|
417
|
+
...at,
|
|
418
418
|
deselectHintLabel: { type: String },
|
|
419
419
|
selectHintLabel: { type: String },
|
|
420
420
|
selectedHintLabel: { type: String },
|
|
@@ -423,11 +423,11 @@ var yt = {
|
|
|
423
423
|
default: !1
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function wt(e) {
|
|
427
427
|
let t = pe();
|
|
428
428
|
return y(() => String(e?.value || t));
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function Tt(e, t) {
|
|
431
431
|
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = y(() => n && m(t)), i = y(() => r.value ? "manual" : void 0);
|
|
432
432
|
function a() {
|
|
433
433
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
@@ -449,7 +449,7 @@ function wt(e, t) {
|
|
|
449
449
|
hide: s
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Et({ reference: e, id: r, expanded: i, aria: a }) {
|
|
453
453
|
let o = xe();
|
|
454
454
|
return {
|
|
455
455
|
bus: o,
|
|
@@ -470,21 +470,21 @@ function Tt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
470
470
|
})
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
let r = y(() => e.value ===
|
|
475
|
-
return t(
|
|
473
|
+
function Dt({ role: e, ...n }) {
|
|
474
|
+
let r = y(() => e.value === Je.listbox ? Ye.option : Ye.presentation);
|
|
475
|
+
return t(Ze, {
|
|
476
476
|
role: r,
|
|
477
477
|
...n
|
|
478
478
|
}), { itemRole: r };
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Ot({ expanded: e, onAction: n }) {
|
|
481
481
|
t(U, {
|
|
482
|
-
role: v(
|
|
482
|
+
role: v(qe.menuitem),
|
|
483
483
|
expanded: e,
|
|
484
484
|
onAction: n
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function kt(e, t, n) {
|
|
488
488
|
return y(() => {
|
|
489
489
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
490
490
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
@@ -494,21 +494,21 @@ function Ot(e, t, n) {
|
|
|
494
494
|
}), r;
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
function kt() {
|
|
498
|
-
return e(Xe, {});
|
|
499
|
-
}
|
|
500
497
|
function At() {
|
|
498
|
+
return e(Ze, {});
|
|
499
|
+
}
|
|
500
|
+
function jt() {
|
|
501
501
|
return e(U, {});
|
|
502
502
|
}
|
|
503
|
-
var
|
|
503
|
+
var Mt = ["popover"], Nt = [
|
|
504
504
|
"id",
|
|
505
505
|
"tabindex",
|
|
506
506
|
"role",
|
|
507
507
|
"aria-labelledby"
|
|
508
|
-
],
|
|
508
|
+
], Pt = /* @__PURE__ */ C({
|
|
509
509
|
name: "VvDropdown",
|
|
510
510
|
inheritAttrs: !1,
|
|
511
|
-
props:
|
|
511
|
+
props: xt,
|
|
512
512
|
emits: [
|
|
513
513
|
"update:modelValue",
|
|
514
514
|
"beforeEnter",
|
|
@@ -527,14 +527,14 @@ var jt = ["popover"], Mt = [
|
|
|
527
527
|
"leaveCancelled"
|
|
528
528
|
],
|
|
529
529
|
setup(e, { expose: t, emit: n }) {
|
|
530
|
-
let d = e, m = n, { id: ne } = _e(d), re =
|
|
530
|
+
let d = e, m = n, { id: ne } = _e(d), re = wt(ne), ie = l(), h = v(), g = v(), ae = v(), ce = v(), b = y({
|
|
531
531
|
get: () => d.reference ?? h.value,
|
|
532
532
|
set: (e) => {
|
|
533
533
|
h.value = e;
|
|
534
534
|
}
|
|
535
|
-
}), { isTopLayer: de, popover: fe, show: pe, hide: me } =
|
|
535
|
+
}), { isTopLayer: de, popover: fe, show: pe, hide: me } = Tt(g, () => d.topLayer), ge = y(() => de.value ? B.fixed : d.strategy), C = v(!1);
|
|
536
536
|
u(() => {
|
|
537
|
-
|
|
537
|
+
Ae(g.value, () => {
|
|
538
538
|
C.value = globalThis.getComputedStyle(g.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
539
539
|
}, {
|
|
540
540
|
attributeFilter: ["style"],
|
|
@@ -557,16 +557,16 @@ var jt = ["popover"], Mt = [
|
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
function
|
|
560
|
+
function ke(e) {
|
|
561
561
|
return d.triggerWidth && !C.value ? e.reference.width : 0;
|
|
562
562
|
}
|
|
563
563
|
let Me = {
|
|
564
564
|
name: "triggerWidth",
|
|
565
565
|
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
566
|
-
let { style: r } = e.floating, i =
|
|
566
|
+
let { style: r } = e.floating, i = ke(t), a = Number.parseFloat(r.width) || 0;
|
|
567
567
|
return n.triggerWidth || Math.abs(i - a) < .01 ? {} : (r.width = i ? `${i}px` : "", { reset: { rects: !0 } });
|
|
568
568
|
}
|
|
569
|
-
},
|
|
569
|
+
}, Ne = y(() => {
|
|
570
570
|
let e = [];
|
|
571
571
|
d.triggerWidth && e.push(Me), d.size && e.push(xe), d.offset && e.push(["string", "number"].includes(typeof d.offset) ? Ce(Number(d.offset)) : Ce(d.offset));
|
|
572
572
|
let t = typeof d.size == "object" ? d.size.padding : void 0;
|
|
@@ -580,7 +580,7 @@ var jt = ["popover"], Mt = [
|
|
|
580
580
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
581
581
|
if (ve(r.floating) || C.value) return;
|
|
582
582
|
let { style: i } = n.floating;
|
|
583
|
-
i.maxWidth =
|
|
583
|
+
i.maxWidth = ke(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
584
584
|
};
|
|
585
585
|
e.push(T(d.size, () => be({ apply: t }), (e) => be({
|
|
586
586
|
...e,
|
|
@@ -588,37 +588,37 @@ var jt = ["popover"], Mt = [
|
|
|
588
588
|
})));
|
|
589
589
|
}
|
|
590
590
|
return d.arrow && e.push(k({ element: ae })), e;
|
|
591
|
-
}), { x:
|
|
591
|
+
}), { x: Pe, y: M, middlewareData: Fe, placement: N, strategy: Ie, update: Le } = Se(b, g, {
|
|
592
592
|
placement: y(() => d.placement),
|
|
593
593
|
strategy: ge,
|
|
594
|
-
middleware:
|
|
595
|
-
}),
|
|
594
|
+
middleware: Ne
|
|
595
|
+
}), Re = y(() => {
|
|
596
596
|
if (!C.value) return {
|
|
597
|
-
position:
|
|
598
|
-
top: `${
|
|
599
|
-
left: `${
|
|
597
|
+
position: Ie.value,
|
|
598
|
+
top: `${M.value ?? 0}px`,
|
|
599
|
+
left: `${Pe.value ?? 0}px`
|
|
600
600
|
};
|
|
601
601
|
});
|
|
602
602
|
p(() => d.triggerWidth, (e) => {
|
|
603
603
|
!e && g.value && (g.value.style.width = "");
|
|
604
604
|
});
|
|
605
|
-
let
|
|
605
|
+
let ze = y(() => N.value.split("-")[0]), Be = y(() => {
|
|
606
606
|
if (C.value) return;
|
|
607
607
|
let e = {
|
|
608
608
|
[V.top]: V.bottom,
|
|
609
609
|
[V.right]: V.left,
|
|
610
610
|
[V.bottom]: V.top,
|
|
611
611
|
[V.left]: V.right
|
|
612
|
-
}[
|
|
612
|
+
}[ze.value];
|
|
613
613
|
return {
|
|
614
|
-
left:
|
|
615
|
-
top:
|
|
614
|
+
left: Fe.value.arrow?.x === void 0 ? void 0 : `${Fe.value.arrow?.x}px`,
|
|
615
|
+
top: Fe.value.arrow?.y === void 0 ? void 0 : `${Fe.value.arrow?.y}px`,
|
|
616
616
|
[e]: `${-(ae.value?.offsetWidth ?? 0) / 2}px`
|
|
617
617
|
};
|
|
618
|
-
}),
|
|
619
|
-
get: () =>
|
|
618
|
+
}), Ve = Ee(d, "modelValue", m), P = v(!1), F = y({
|
|
619
|
+
get: () => Ve.value ?? P.value,
|
|
620
620
|
set: (e) => {
|
|
621
|
-
|
|
621
|
+
Ve.value === void 0 ? P.value = e : Ve.value = e;
|
|
622
622
|
}
|
|
623
623
|
});
|
|
624
624
|
p([
|
|
@@ -627,12 +627,12 @@ var jt = ["popover"], Mt = [
|
|
|
627
627
|
g,
|
|
628
628
|
ge
|
|
629
629
|
], ([e, t, n, r], i, a) => {
|
|
630
|
-
e && t && n && a(O(t, n,
|
|
630
|
+
e && t && n && a(O(t, n, Le, { animationFrame: r === B.fixed }));
|
|
631
631
|
}, {
|
|
632
632
|
flush: "post",
|
|
633
633
|
immediate: !0
|
|
634
|
-
}),
|
|
635
|
-
F.value &&
|
|
634
|
+
}), Ae(ce, () => {
|
|
635
|
+
F.value && Le();
|
|
636
636
|
}, {
|
|
637
637
|
childList: !0,
|
|
638
638
|
subtree: !0,
|
|
@@ -649,68 +649,72 @@ var jt = ["popover"], Mt = [
|
|
|
649
649
|
function R() {
|
|
650
650
|
F.value = !F.value;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function He(e) {
|
|
653
653
|
b.value = e;
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
je(g, () => {
|
|
656
656
|
!d.keepOpen && F.value && (F.value = !1);
|
|
657
657
|
}, { ignore: [b] });
|
|
658
|
-
let z = y(() => b.value?.getAttribute?.("id") ?? void 0),
|
|
658
|
+
let z = y(() => b.value?.getAttribute?.("id") ?? void 0), Ue = y(() => ({
|
|
659
659
|
"aria-controls": re.value,
|
|
660
660
|
"aria-haspopup": !0,
|
|
661
661
|
"aria-expanded": F.value
|
|
662
|
-
})), { component:
|
|
662
|
+
})), { component: We, bus: Ge } = Et({
|
|
663
663
|
reference: b,
|
|
664
664
|
id: re,
|
|
665
665
|
expanded: F,
|
|
666
|
-
aria:
|
|
666
|
+
aria: Ue
|
|
667
667
|
});
|
|
668
|
-
|
|
669
|
-
let { role:
|
|
668
|
+
Ge.on("click", R);
|
|
669
|
+
let { role: Ke, modifiers: qe } = _e(d), Ye = kt("vv-dropdown", qe, y(() => ({ arrow: d.arrow }))), { focused: Xe } = A(g);
|
|
670
670
|
function H(e) {
|
|
671
671
|
return e?.getRootNode()?.activeElement ?? null;
|
|
672
672
|
}
|
|
673
|
-
let
|
|
673
|
+
let Ze = "a[href], button, input:not([type=\"hidden\"]), textarea, select, details, [tabindex]:not([tabindex=\"-1\"])";
|
|
674
674
|
function U(e) {
|
|
675
675
|
return !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true";
|
|
676
676
|
}
|
|
677
677
|
function W(e) {
|
|
678
|
-
return e ? [...e.querySelectorAll(
|
|
678
|
+
return e ? [...e.querySelectorAll(Ze)].filter(U) : [];
|
|
679
679
|
}
|
|
680
|
-
let
|
|
680
|
+
let Qe = v(!1);
|
|
681
681
|
function $e() {
|
|
682
|
+
Qe.value = !0, setTimeout(() => {
|
|
683
|
+
Qe.value = !1;
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
let G;
|
|
687
|
+
function et() {
|
|
682
688
|
let e = b.value?.$el ?? b.value;
|
|
683
689
|
if (e instanceof HTMLElement) {
|
|
684
|
-
if (e.matches(
|
|
690
|
+
if (e.matches(Ze) && U(e)) return e;
|
|
685
691
|
let t = e.querySelector(`[aria-controls="${CSS.escape(String(re.value))}"]`), n = t && U(t) ? t : W(e).find((e) => !g.value?.contains(e));
|
|
686
692
|
if (n) return n;
|
|
687
693
|
}
|
|
688
|
-
return
|
|
694
|
+
return G?.isConnected ? G : void 0;
|
|
689
695
|
}
|
|
690
|
-
function
|
|
691
|
-
let e =
|
|
692
|
-
e && (
|
|
693
|
-
Ze.value = !1;
|
|
694
|
-
}));
|
|
696
|
+
function K() {
|
|
697
|
+
let e = et();
|
|
698
|
+
e && ($e(), e.focus({ preventScroll: !0 }));
|
|
695
699
|
}
|
|
696
|
-
function
|
|
700
|
+
function q(e) {
|
|
697
701
|
return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ?? H(g.value)?.closest(".vv-dropdown") ?? void 0;
|
|
698
702
|
}
|
|
699
|
-
function
|
|
703
|
+
function tt() {
|
|
700
704
|
o(() => {
|
|
701
705
|
let e = W(g.value);
|
|
702
706
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
703
707
|
});
|
|
704
708
|
}
|
|
705
|
-
function
|
|
709
|
+
function J() {
|
|
706
710
|
o(() => {
|
|
707
711
|
let e = W(ce.value);
|
|
708
712
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
709
713
|
});
|
|
710
714
|
}
|
|
711
|
-
function
|
|
715
|
+
function nt() {
|
|
712
716
|
o(() => {
|
|
713
|
-
if (
|
|
717
|
+
if (Xe.value) {
|
|
714
718
|
let e = W(g.value), t = H(g.value);
|
|
715
719
|
if (e.length === 0 || !t) return;
|
|
716
720
|
let n = e.indexOf(t);
|
|
@@ -718,9 +722,9 @@ var jt = ["popover"], Mt = [
|
|
|
718
722
|
}
|
|
719
723
|
});
|
|
720
724
|
}
|
|
721
|
-
function
|
|
725
|
+
function Y() {
|
|
722
726
|
o(() => {
|
|
723
|
-
if (
|
|
727
|
+
if (Xe.value) {
|
|
724
728
|
let e = W(g.value), t = H(g.value);
|
|
725
729
|
if (e.length === 0 || !t) return;
|
|
726
730
|
let n = e.indexOf(t);
|
|
@@ -735,45 +739,45 @@ var jt = ["popover"], Mt = [
|
|
|
735
739
|
p(F, (e) => {
|
|
736
740
|
if (e) {
|
|
737
741
|
let e = H(g.value) ?? document.activeElement;
|
|
738
|
-
|
|
742
|
+
G = e instanceof HTMLElement && !g.value?.contains(e) ? e : void 0;
|
|
739
743
|
}
|
|
740
|
-
e && d.autofocusFirst &&
|
|
744
|
+
e && d.autofocusFirst && tt();
|
|
741
745
|
}), t({
|
|
742
746
|
toggle: R,
|
|
743
747
|
show: I,
|
|
744
748
|
hide: L,
|
|
745
|
-
init:
|
|
746
|
-
focusFirst:
|
|
747
|
-
focusFirstListElement:
|
|
748
|
-
focusNext:
|
|
749
|
-
focusPrev:
|
|
749
|
+
init: He,
|
|
750
|
+
focusFirst: tt,
|
|
751
|
+
focusFirstListElement: J,
|
|
752
|
+
focusNext: nt,
|
|
753
|
+
focusPrev: Y,
|
|
750
754
|
customPosition: C,
|
|
751
|
-
restoringFocus:
|
|
755
|
+
restoringFocus: Qe
|
|
752
756
|
});
|
|
753
|
-
let
|
|
754
|
-
|
|
755
|
-
function
|
|
756
|
-
if (!F.value || d.keepOpen ||
|
|
757
|
+
let rt = De(g), { onAction: X } = At(), { expanded: Z, onAction: it } = jt();
|
|
758
|
+
it && Ot({ expanded: Z });
|
|
759
|
+
function at() {
|
|
760
|
+
if (!F.value || d.keepOpen || Ke.value === Je.listbox) return;
|
|
757
761
|
let e = H(g.value), t = !!e && !!g.value?.contains(e);
|
|
758
|
-
L(), t &&
|
|
762
|
+
L(), t && K(), X?.();
|
|
759
763
|
}
|
|
760
|
-
let { itemRole:
|
|
761
|
-
role:
|
|
764
|
+
let { itemRole: ot } = Dt({
|
|
765
|
+
role: Ke,
|
|
762
766
|
expanded: F,
|
|
763
|
-
focused:
|
|
764
|
-
hovered:
|
|
765
|
-
onAction:
|
|
767
|
+
focused: Xe,
|
|
768
|
+
hovered: rt,
|
|
769
|
+
onAction: at
|
|
766
770
|
});
|
|
767
|
-
|
|
771
|
+
j("Escape", (e) => {
|
|
768
772
|
if (!F.value) return;
|
|
769
|
-
let t =
|
|
770
|
-
t && t !== g.value && g.value?.contains(t) || (e.preventDefault(), L(), t === g.value &&
|
|
771
|
-
}),
|
|
772
|
-
F.value &&
|
|
773
|
-
}),
|
|
774
|
-
F.value &&
|
|
773
|
+
let t = q(e);
|
|
774
|
+
t && t !== g.value && g.value?.contains(t) || (e.preventDefault(), L(), t === g.value && K());
|
|
775
|
+
}), j("ArrowDown", (e) => {
|
|
776
|
+
F.value && q(e) === g.value && (e.preventDefault(), nt());
|
|
777
|
+
}), j("ArrowUp", (e) => {
|
|
778
|
+
F.value && q(e) === g.value && (e.preventDefault(), Y());
|
|
775
779
|
});
|
|
776
|
-
function
|
|
780
|
+
function st(e, t) {
|
|
777
781
|
if (e instanceof HTMLElement && e.isContentEditable) return !0;
|
|
778
782
|
switch (e.tagName) {
|
|
779
783
|
case "BUTTON":
|
|
@@ -786,12 +790,44 @@ var jt = ["popover"], Mt = [
|
|
|
786
790
|
default: return !1;
|
|
787
791
|
}
|
|
788
792
|
}
|
|
789
|
-
|
|
790
|
-
if (!F.value ||
|
|
793
|
+
j([" ", "Enter"], (e) => {
|
|
794
|
+
if (!F.value || q(e) !== g.value) return;
|
|
791
795
|
let t = H(g.value);
|
|
792
|
-
t instanceof HTMLElement && !
|
|
796
|
+
t instanceof HTMLElement && !st(t, e.key) && t.click();
|
|
793
797
|
});
|
|
794
|
-
let
|
|
798
|
+
let ct = !1;
|
|
799
|
+
Oe("keydown", (e) => {
|
|
800
|
+
e.key !== "Tab" || !F.value || (ct = !0, setTimeout(() => {
|
|
801
|
+
ct = !1;
|
|
802
|
+
}));
|
|
803
|
+
}, {
|
|
804
|
+
capture: !0,
|
|
805
|
+
passive: !0
|
|
806
|
+
});
|
|
807
|
+
function lt(e) {
|
|
808
|
+
return [...e.querySelectorAll("slot")].flatMap((e) => {
|
|
809
|
+
let t = e.assignedElements({ flatten: !0 });
|
|
810
|
+
return [...t, ...t.flatMap(lt)];
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
function ut(e) {
|
|
814
|
+
let t = g.value;
|
|
815
|
+
if (!t) return !1;
|
|
816
|
+
let n = new Set(lt(t)), r = e;
|
|
817
|
+
for (; r;) {
|
|
818
|
+
if (r === t || n.has(r)) return !0;
|
|
819
|
+
r = r instanceof ShadowRoot ? r.host : r.assignedSlot ?? r.parentNode;
|
|
820
|
+
}
|
|
821
|
+
return !1;
|
|
822
|
+
}
|
|
823
|
+
Oe(g, "focusout", (e) => {
|
|
824
|
+
let t = e.relatedTarget;
|
|
825
|
+
!ct || !F.value || d.keepOpen || !(t instanceof Node) || ut(t) || ($e(), L());
|
|
826
|
+
}, {
|
|
827
|
+
capture: !0,
|
|
828
|
+
passive: !0
|
|
829
|
+
});
|
|
830
|
+
let dt = {
|
|
795
831
|
"before-enter": () => {
|
|
796
832
|
m("beforeExpand"), m("beforeEnter");
|
|
797
833
|
},
|
|
@@ -817,29 +853,29 @@ var jt = ["popover"], Mt = [
|
|
|
817
853
|
m("leaveCancelled");
|
|
818
854
|
}
|
|
819
855
|
};
|
|
820
|
-
return (e, t) => (D(), E(se, null, [te(w(
|
|
856
|
+
return (e, t) => (D(), E(se, null, [te(w(We), null, {
|
|
821
857
|
default: x(() => [c(e.$slots, "default", r(i({
|
|
822
|
-
init:
|
|
858
|
+
init: He,
|
|
823
859
|
show: I,
|
|
824
860
|
hide: L,
|
|
825
861
|
toggle: R,
|
|
826
862
|
expanded: w(F),
|
|
827
|
-
aria: w(
|
|
863
|
+
aria: w(Ue)
|
|
828
864
|
})))]),
|
|
829
865
|
_: 3
|
|
830
|
-
}), te(he, f({ name: e.transitionName }, s(
|
|
866
|
+
}), te(he, f({ name: e.transitionName }, s(dt), { persisted: "" }), {
|
|
831
867
|
default: x(() => [ue(_("div", {
|
|
832
868
|
ref_key: "floatingEl",
|
|
833
869
|
ref: g,
|
|
834
870
|
popover: w(fe),
|
|
835
|
-
style: ee(w(
|
|
836
|
-
class: a(w(
|
|
871
|
+
style: ee(w(Re)),
|
|
872
|
+
class: a(w(Ye))
|
|
837
873
|
}, [
|
|
838
874
|
d.arrow ? (D(), E("div", {
|
|
839
875
|
key: 0,
|
|
840
876
|
ref_key: "arrowEl",
|
|
841
877
|
ref: ae,
|
|
842
|
-
style: ee(w(
|
|
878
|
+
style: ee(w(Be)),
|
|
843
879
|
class: "vv-dropdown__arrow"
|
|
844
880
|
}, null, 4)) : S("v-if", !0),
|
|
845
881
|
c(e.$slots, "before", r(i({
|
|
@@ -853,7 +889,7 @@ var jt = ["popover"], Mt = [
|
|
|
853
889
|
ref_key: "listEl",
|
|
854
890
|
ref: ce,
|
|
855
891
|
tabindex: w(F) ? void 0 : -1,
|
|
856
|
-
role: w(
|
|
892
|
+
role: w(Ke),
|
|
857
893
|
"aria-labelledby": w(z),
|
|
858
894
|
class: "vv-dropdown__list"
|
|
859
895
|
}), [c(e.$slots, "items", r(i({
|
|
@@ -861,28 +897,28 @@ var jt = ["popover"], Mt = [
|
|
|
861
897
|
hide: L,
|
|
862
898
|
toggle: R,
|
|
863
899
|
expanded: w(F),
|
|
864
|
-
role: w(
|
|
865
|
-
})))], 16,
|
|
900
|
+
role: w(ot)
|
|
901
|
+
})))], 16, Nt),
|
|
866
902
|
c(e.$slots, "after", r(i({
|
|
867
903
|
show: I,
|
|
868
904
|
hide: L,
|
|
869
905
|
toggle: R,
|
|
870
906
|
expanded: w(F)
|
|
871
907
|
})))
|
|
872
|
-
], 14,
|
|
908
|
+
], 14, Mt), [[le, w(F)]])]),
|
|
873
909
|
_: 3
|
|
874
910
|
}, 16, ["name"])], 64));
|
|
875
911
|
}
|
|
876
|
-
}),
|
|
912
|
+
}), Ft = /* @__PURE__ */ C({
|
|
877
913
|
name: "VvDropdownItem",
|
|
878
|
-
props:
|
|
914
|
+
props: St,
|
|
879
915
|
setup(e) {
|
|
880
|
-
let t = e, { role: n, expanded: r, onAction: i } =
|
|
881
|
-
|
|
916
|
+
let t = e, { role: n, expanded: r, onAction: i } = At(), a = v(null);
|
|
917
|
+
Ot({
|
|
882
918
|
expanded: r,
|
|
883
919
|
onAction: i
|
|
884
920
|
});
|
|
885
|
-
let o = De(a), { focused: s } =
|
|
921
|
+
let o = De(a), { focused: s } = ke(a), { focused: l } = A(a);
|
|
886
922
|
return p(o, (e) => {
|
|
887
923
|
e && t.focusOnHover && (s.value = !0);
|
|
888
924
|
}), (e, t) => (D(), E("div", f({ role: w(n) }, {
|
|
@@ -891,16 +927,16 @@ var jt = ["popover"], Mt = [
|
|
|
891
927
|
class: ["vv-dropdown__item", { "focus-visible": w(s) || w(l) }]
|
|
892
928
|
}), [c(e.$slots, "default")], 16));
|
|
893
929
|
}
|
|
894
|
-
}),
|
|
930
|
+
}), It = ["title"], Lt = /* @__PURE__ */ C({
|
|
895
931
|
name: "VvDropdownOption",
|
|
896
|
-
props:
|
|
932
|
+
props: Ct,
|
|
897
933
|
setup(e) {
|
|
898
|
-
let t = e, { modifiers: n } = _e(t), o =
|
|
934
|
+
let t = e, { modifiers: n } = _e(t), o = kt("vv-dropdown-option", n, y(() => ({
|
|
899
935
|
disabled: t.disabled,
|
|
900
936
|
selected: t.selected,
|
|
901
937
|
unselectable: t.unselectable && t.selected
|
|
902
938
|
}))), s = y(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
903
|
-
return (e, t) => (D(), h(
|
|
939
|
+
return (e, t) => (D(), h(Ft, {
|
|
904
940
|
class: a(w(o)),
|
|
905
941
|
tabindex: e.disabled ? -1 : 0,
|
|
906
942
|
"aria-selected": e.selected,
|
|
@@ -914,7 +950,7 @@ var jt = ["popover"], Mt = [
|
|
|
914
950
|
disabled: e.disabled,
|
|
915
951
|
selected: e.selected,
|
|
916
952
|
unselectable: e.unselectable
|
|
917
|
-
})), () => [T(b(w(s)), 1)])], 8,
|
|
953
|
+
})), () => [T(b(w(s)), 1)])], 8, It)]),
|
|
918
954
|
_: 3
|
|
919
955
|
}, 8, [
|
|
920
956
|
"class",
|
|
@@ -925,8 +961,8 @@ var jt = ["popover"], Mt = [
|
|
|
925
961
|
]));
|
|
926
962
|
}
|
|
927
963
|
});
|
|
928
|
-
function
|
|
929
|
-
return e(
|
|
964
|
+
function Rt() {
|
|
965
|
+
return e(Xe, void 0);
|
|
930
966
|
}
|
|
931
967
|
var Q = /* @__PURE__ */ C({
|
|
932
968
|
name: "VvIcon",
|
|
@@ -947,14 +983,14 @@ var Q = /* @__PURE__ */ C({
|
|
|
947
983
|
onLoad: { type: Function },
|
|
948
984
|
svg: {},
|
|
949
985
|
modifiers: {}
|
|
950
|
-
},
|
|
986
|
+
}, Qe),
|
|
951
987
|
setup(e) {
|
|
952
|
-
let t = e, n = y(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = v(!0), i =
|
|
988
|
+
let t = e, n = y(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = v(!0), i = Rt(), { modifiers: a } = _e(t), o = kt("vv-icon", a), s = y(() => t.provider || i?.iconsProvider), c = y(() => {
|
|
953
989
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
954
|
-
if (
|
|
990
|
+
if (Pe(n)) return n;
|
|
955
991
|
let r = i?.iconsCollections.find((t) => {
|
|
956
992
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
957
|
-
return
|
|
993
|
+
return Pe(n);
|
|
958
994
|
});
|
|
959
995
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
960
996
|
});
|
|
@@ -963,17 +999,17 @@ var Q = /* @__PURE__ */ C({
|
|
|
963
999
|
}
|
|
964
1000
|
function u(e) {
|
|
965
1001
|
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
966
|
-
n && r &&
|
|
1002
|
+
n && r && M(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
967
1003
|
body: r,
|
|
968
1004
|
height: n.viewBox.baseVal.height,
|
|
969
1005
|
width: n.viewBox.baseVal.width
|
|
970
1006
|
});
|
|
971
1007
|
}
|
|
972
|
-
return i && t.src && !
|
|
1008
|
+
return i && t.src && !Pe(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
973
1009
|
e && u(e), r.value = !0;
|
|
974
1010
|
}).catch((e) => {
|
|
975
1011
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
976
|
-
})), t.svg && u(t.svg), (t, i) => w(r) ? (D(), h(w(
|
|
1012
|
+
})), t.svg && u(t.svg), (t, i) => w(r) ? (D(), h(w(Fe), f({
|
|
977
1013
|
key: 0,
|
|
978
1014
|
class: w(o)
|
|
979
1015
|
}, {
|
|
@@ -1002,7 +1038,7 @@ var Q = /* @__PURE__ */ C({
|
|
|
1002
1038
|
DATETIME_LOCAL: "datetime-local",
|
|
1003
1039
|
MONTH: "month",
|
|
1004
1040
|
WEEK: "week"
|
|
1005
|
-
},
|
|
1041
|
+
}, zt = [
|
|
1006
1042
|
"update:modelValue",
|
|
1007
1043
|
"update:masked",
|
|
1008
1044
|
"accept",
|
|
@@ -1021,9 +1057,9 @@ var Q = /* @__PURE__ */ C({
|
|
|
1021
1057
|
"keydown",
|
|
1022
1058
|
"keypress",
|
|
1023
1059
|
"clear"
|
|
1024
|
-
],
|
|
1025
|
-
...vt,
|
|
1060
|
+
], Bt = {
|
|
1026
1061
|
...yt,
|
|
1062
|
+
...bt,
|
|
1027
1063
|
modelValue: [
|
|
1028
1064
|
String,
|
|
1029
1065
|
Number,
|
|
@@ -1119,14 +1155,14 @@ var Q = /* @__PURE__ */ C({
|
|
|
1119
1155
|
type: Array,
|
|
1120
1156
|
default: void 0
|
|
1121
1157
|
},
|
|
1122
|
-
topLayer:
|
|
1158
|
+
topLayer: ht.topLayer,
|
|
1123
1159
|
inputMode: {
|
|
1124
1160
|
type: String,
|
|
1125
1161
|
default: "text"
|
|
1126
1162
|
}
|
|
1127
1163
|
};
|
|
1128
|
-
function
|
|
1129
|
-
let n = y(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = y(() => t?.value ===
|
|
1164
|
+
function Vt(e, t) {
|
|
1165
|
+
let n = y(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = y(() => t?.value === We.before ? n.value : void 0), i = y(() => t?.value === We.after ? n.value : void 0);
|
|
1130
1166
|
return {
|
|
1131
1167
|
hasIcon: n,
|
|
1132
1168
|
hasIconLeft: y(() => t?.value === V.left ? n.value : void 0),
|
|
@@ -1137,7 +1173,7 @@ function Bt(e, t) {
|
|
|
1137
1173
|
hasIconAfter: i
|
|
1138
1174
|
};
|
|
1139
1175
|
}
|
|
1140
|
-
var
|
|
1176
|
+
var Ht = C({
|
|
1141
1177
|
components: { VvIcon: Q },
|
|
1142
1178
|
props: {
|
|
1143
1179
|
inputType: {
|
|
@@ -1159,7 +1195,7 @@ var Vt = C({
|
|
|
1159
1195
|
},
|
|
1160
1196
|
emits: ["clear"],
|
|
1161
1197
|
setup(e, { emit: t }) {
|
|
1162
|
-
let { hasIcon: n } =
|
|
1198
|
+
let { hasIcon: n } = Vt(y(() => e.icon));
|
|
1163
1199
|
function r(n) {
|
|
1164
1200
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
1165
1201
|
}
|
|
@@ -1181,7 +1217,7 @@ var Vt = C({
|
|
|
1181
1217
|
onClick: this.onClick
|
|
1182
1218
|
}, e);
|
|
1183
1219
|
}
|
|
1184
|
-
}),
|
|
1220
|
+
}), Ut = C({
|
|
1185
1221
|
components: { VvIcon: Q },
|
|
1186
1222
|
props: {
|
|
1187
1223
|
inputType: {
|
|
@@ -1211,7 +1247,7 @@ var Vt = C({
|
|
|
1211
1247
|
},
|
|
1212
1248
|
emits: ["toggle-password"],
|
|
1213
1249
|
setup(e, { emit: t }) {
|
|
1214
|
-
let n = v(!1), r = y(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } =
|
|
1250
|
+
let n = v(!1), r = y(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } = Vt(r);
|
|
1215
1251
|
function a(r) {
|
|
1216
1252
|
r?.stopPropagation(), e.disabled || (n.value = !n.value, t("toggle-password", n.value));
|
|
1217
1253
|
}
|
|
@@ -1235,7 +1271,7 @@ var Vt = C({
|
|
|
1235
1271
|
onClick: this.onClick
|
|
1236
1272
|
}, e);
|
|
1237
1273
|
}
|
|
1238
|
-
}),
|
|
1274
|
+
}), Wt = C({
|
|
1239
1275
|
components: { VvIcon: Q },
|
|
1240
1276
|
props: {
|
|
1241
1277
|
inputType: {
|
|
@@ -1277,14 +1313,14 @@ var Vt = C({
|
|
|
1277
1313
|
});
|
|
1278
1314
|
}
|
|
1279
1315
|
});
|
|
1280
|
-
function
|
|
1316
|
+
function Gt(e, t, r) {
|
|
1281
1317
|
return {
|
|
1282
1318
|
name: "VvInputTextActions",
|
|
1283
1319
|
components: {
|
|
1284
1320
|
VvIcon: Q,
|
|
1285
|
-
VvInputPasswordAction:
|
|
1286
|
-
VvInputStepAction:
|
|
1287
|
-
VvInputClearAction:
|
|
1321
|
+
VvInputPasswordAction: Ut,
|
|
1322
|
+
VvInputStepAction: Wt,
|
|
1323
|
+
VvInputClearAction: Ht
|
|
1288
1324
|
},
|
|
1289
1325
|
setup() {
|
|
1290
1326
|
return {
|
|
@@ -1304,7 +1340,7 @@ function Wt(e, t, r) {
|
|
|
1304
1340
|
switch (e) {
|
|
1305
1341
|
case $.SEARCH: {
|
|
1306
1342
|
let { onClear: e } = this.$attrs;
|
|
1307
|
-
r = [n(
|
|
1343
|
+
r = [n(Ht, {
|
|
1308
1344
|
disabled: this.isDisabled || !this.isDirty,
|
|
1309
1345
|
label: this.labelClear,
|
|
1310
1346
|
onClear: e
|
|
@@ -1313,7 +1349,7 @@ function Wt(e, t, r) {
|
|
|
1313
1349
|
}
|
|
1314
1350
|
case $.PASSWORD: {
|
|
1315
1351
|
let { onTogglePassword: e } = this.$attrs;
|
|
1316
|
-
r = [n(
|
|
1352
|
+
r = [n(Ut, {
|
|
1317
1353
|
disabled: this.isDisabled,
|
|
1318
1354
|
onTogglePassword: e,
|
|
1319
1355
|
labelShow: this.labelShowPassword,
|
|
@@ -1325,13 +1361,13 @@ function Wt(e, t, r) {
|
|
|
1325
1361
|
}
|
|
1326
1362
|
case $.NUMBER: {
|
|
1327
1363
|
let { onStepUp: e, onStepDown: i } = this.$attrs;
|
|
1328
|
-
r = [n(
|
|
1364
|
+
r = [n(Wt, {
|
|
1329
1365
|
mode: "up",
|
|
1330
1366
|
disabled: this.isDisabled || t.max !== void 0 && t.modelValue === t.max,
|
|
1331
1367
|
label: this.labelStepUp,
|
|
1332
1368
|
onStepUp: e,
|
|
1333
1369
|
onStepDown: i
|
|
1334
|
-
}), n(
|
|
1370
|
+
}), n(Wt, {
|
|
1335
1371
|
mode: "down",
|
|
1336
1372
|
disabled: this.isDisabled || t.min !== void 0 && t.modelValue === t.min,
|
|
1337
1373
|
label: this.labelStepDown,
|
|
@@ -1345,7 +1381,7 @@ function Wt(e, t, r) {
|
|
|
1345
1381
|
}
|
|
1346
1382
|
};
|
|
1347
1383
|
}
|
|
1348
|
-
function
|
|
1384
|
+
function Kt(e, t, n) {
|
|
1349
1385
|
let r = t;
|
|
1350
1386
|
if (Array.isArray(e) && e.length) {
|
|
1351
1387
|
let i = e[0];
|
|
@@ -1357,8 +1393,8 @@ function Gt(e, t, n) {
|
|
|
1357
1393
|
}
|
|
1358
1394
|
return r;
|
|
1359
1395
|
}
|
|
1360
|
-
function
|
|
1361
|
-
let r =
|
|
1396
|
+
function qt(e, t, n) {
|
|
1397
|
+
let r = Rt(), i = y(() => {
|
|
1362
1398
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1363
1399
|
});
|
|
1364
1400
|
return y(() => {
|
|
@@ -1366,11 +1402,11 @@ function Kt(e, t, n) {
|
|
|
1366
1402
|
let e = i.value, r = t, a = n;
|
|
1367
1403
|
return Object.keys(r).reduce((t, n) => {
|
|
1368
1404
|
let i = a[n];
|
|
1369
|
-
return t[n] = n in e ?
|
|
1405
|
+
return t[n] = n in e ? Kt(r[n], i, e[n]) : i, t;
|
|
1370
1406
|
}, {});
|
|
1371
1407
|
});
|
|
1372
1408
|
}
|
|
1373
|
-
function
|
|
1409
|
+
function Jt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
1374
1410
|
let a, o, s = y(() => {
|
|
1375
1411
|
let e = m(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
1376
1412
|
return Number.isNaN(t) ? 0 : t;
|
|
@@ -1394,13 +1430,13 @@ function qt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
1394
1430
|
cancel: c
|
|
1395
1431
|
};
|
|
1396
1432
|
}
|
|
1397
|
-
function
|
|
1398
|
-
let { focused: n } =
|
|
1433
|
+
function Yt(e, t) {
|
|
1434
|
+
let { focused: n } = ke(e);
|
|
1399
1435
|
return p(n, (n) => {
|
|
1400
1436
|
t(n ? "focus" : "blur", w(e));
|
|
1401
1437
|
}), { focused: n };
|
|
1402
1438
|
}
|
|
1403
|
-
function
|
|
1439
|
+
function Xt(e, t) {
|
|
1404
1440
|
let n = y(() => (w(e) ?? "").length), r = y(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
1405
1441
|
return {
|
|
1406
1442
|
length: n,
|
|
@@ -1408,19 +1444,19 @@ function Yt(e, t) {
|
|
|
1408
1444
|
formatted: y(() => 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)
|
|
1409
1445
|
};
|
|
1410
1446
|
}
|
|
1411
|
-
function
|
|
1447
|
+
function Zt(e, t = z.local, n) {
|
|
1412
1448
|
let r = v();
|
|
1413
1449
|
n && (r.value = n);
|
|
1414
1450
|
let i;
|
|
1415
1451
|
return u(() => {
|
|
1416
1452
|
e && p(e, (e, n) => {
|
|
1417
1453
|
let a = w(t) === z.session ? sessionStorage : localStorage;
|
|
1418
|
-
n && n !== e && a.removeItem(n), e ? (i =
|
|
1454
|
+
n && n !== e && a.removeItem(n), e ? (i = Ne(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
|
|
1419
1455
|
}, { immediate: !0 }), ge(t) && p(t, (t, n) => {
|
|
1420
1456
|
if (e?.value) {
|
|
1421
1457
|
if (t) {
|
|
1422
1458
|
let n = t === z.session ? sessionStorage : localStorage;
|
|
1423
|
-
i =
|
|
1459
|
+
i = Ne(e.value, i?.value ?? r.value, n);
|
|
1424
1460
|
}
|
|
1425
1461
|
n && n !== t && (n === z.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
1426
1462
|
}
|
|
@@ -1432,27 +1468,27 @@ function Xt(e, t = z.local, n) {
|
|
|
1432
1468
|
immediate: !0
|
|
1433
1469
|
}), r;
|
|
1434
1470
|
}
|
|
1435
|
-
var
|
|
1471
|
+
var Qt = ["for"], $t = {
|
|
1436
1472
|
key: 0,
|
|
1437
1473
|
class: "vv-input-text__input-before"
|
|
1438
|
-
},
|
|
1474
|
+
}, en = ["id"], tn = {
|
|
1439
1475
|
key: 1,
|
|
1440
1476
|
class: "vv-input-text__unit"
|
|
1441
|
-
},
|
|
1477
|
+
}, nn = {
|
|
1442
1478
|
key: 5,
|
|
1443
1479
|
class: "vv-input-text__input-after"
|
|
1444
|
-
},
|
|
1480
|
+
}, rn = {
|
|
1445
1481
|
key: 6,
|
|
1446
1482
|
class: "vv-input-text__limit"
|
|
1447
|
-
},
|
|
1483
|
+
}, an = { class: "flex-1" }, on = ["title", "onClick"], sn = /* @__PURE__ */ C({
|
|
1448
1484
|
name: "VvInputText",
|
|
1449
|
-
props:
|
|
1450
|
-
emits:
|
|
1485
|
+
props: Bt,
|
|
1486
|
+
emits: zt,
|
|
1451
1487
|
setup(e, { expose: t, emit: n }) {
|
|
1452
|
-
let o = e, s = n, l = ie(), d =
|
|
1488
|
+
let o = e, s = n, l = ie(), d = Rt(), ee = qt("VvInputText", Bt, o), { count: m, debounce: ne, icon: oe, iconPosition: ce, iconRemoveSuggestion: le, id: ue, invalid: de, label: fe, labelRemoveSuggestion: pe, loading: me, maxlength: he, minlength: ge, modelValue: C, step: ye, storageType: be, type: O, unit: xe, valid: Se } = _e(o), Ce = wt(ue), we = y(() => `${Ce.value}-hint`), Te = y(() => o.floating && I(o.placeholder) ? " " : o.placeholder), { model: k, flush: Ee } = Jt(C, s, ne), De = y(() => {
|
|
1453
1489
|
let e = Number(ye.value);
|
|
1454
1490
|
return !Number.isNaN(e) && e % 60 != 0;
|
|
1455
|
-
}), Oe = /^-0?[.,]?[0*]?$/, ke = /./, Ae = /^-$|^$/, je = v(!1), A = v(), j = v(), { el: Ne, mask: Pe, typed: M, masked:
|
|
1491
|
+
}), Oe = /^-0?[.,]?[0*]?$/, ke = /./, Ae = /^-$|^$/, je = v(!1), A = v(), j = v(), { el: Ne, mask: Pe, typed: M, masked: Fe, unmasked: N } = ve(y(() => {
|
|
1456
1492
|
if (!o.iMask) return { mask: ke };
|
|
1457
1493
|
if (o.iMask.mask === Number) {
|
|
1458
1494
|
let e = { ...o.iMask };
|
|
@@ -1463,32 +1499,32 @@ var Zt = ["for"], Qt = {
|
|
|
1463
1499
|
emit: s,
|
|
1464
1500
|
onAccept: () => {
|
|
1465
1501
|
if (je.value) {
|
|
1466
|
-
if (s("update:masked",
|
|
1467
|
-
|
|
1502
|
+
if (s("update:masked", Fe.value), O.value === $.NUMBER) {
|
|
1503
|
+
Ie();
|
|
1468
1504
|
return;
|
|
1469
1505
|
}
|
|
1470
1506
|
if (O.value === $.DATETIME_LOCAL || O.value === $.DATE || O.value === $.TIME || O.value === $.MONTH) {
|
|
1471
|
-
|
|
1507
|
+
Be();
|
|
1472
1508
|
return;
|
|
1473
1509
|
}
|
|
1474
|
-
!k.value && !
|
|
1510
|
+
!k.value && !N.value || (k.value = N.value);
|
|
1475
1511
|
}
|
|
1476
1512
|
}
|
|
1477
1513
|
});
|
|
1478
|
-
function
|
|
1479
|
-
if (Ae.test(
|
|
1514
|
+
function Ie() {
|
|
1515
|
+
if (Ae.test(N.value)) {
|
|
1480
1516
|
if (k.value === null || k.value === void 0) return;
|
|
1481
1517
|
k.value = void 0;
|
|
1482
|
-
} else Oe.test(
|
|
1518
|
+
} else Oe.test(N.value) ? k.value = 0 : typeof M.value == "number" ? k.value = M.value : k.value = Number(M.value);
|
|
1483
1519
|
}
|
|
1484
|
-
function
|
|
1520
|
+
function ze(e) {
|
|
1485
1521
|
let t = new Date(A.value || j.value);
|
|
1486
1522
|
if ((O.value === $.DATETIME_LOCAL || O.value === $.DATE || O.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (O.value === $.DATETIME_LOCAL || O.value === $.DATE) && t.setDate(e.getDate()), (O.value === $.DATETIME_LOCAL || O.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), A.value instanceof Date) {
|
|
1487
1523
|
if (k.value?.getTime() === t.getTime()) return;
|
|
1488
1524
|
k.value = t;
|
|
1489
1525
|
} else k.value = t.toISOString();
|
|
1490
1526
|
}
|
|
1491
|
-
function
|
|
1527
|
+
function Be() {
|
|
1492
1528
|
let e = O.value;
|
|
1493
1529
|
if (!M.value) {
|
|
1494
1530
|
if (!k.value) return;
|
|
@@ -1504,45 +1540,45 @@ var Zt = ["for"], Qt = {
|
|
|
1504
1540
|
return;
|
|
1505
1541
|
}
|
|
1506
1542
|
let t = M.value;
|
|
1507
|
-
t instanceof Date || (t = F(M.value, e)), A.value || j.value ?
|
|
1543
|
+
t instanceof Date || (t = F(M.value, e)), A.value || j.value ? ze(t) : k.value = Re(t, e, De.value);
|
|
1508
1544
|
}
|
|
1509
|
-
function
|
|
1510
|
-
if (e == null) M.value = "",
|
|
1545
|
+
function Ve(e) {
|
|
1546
|
+
if (e == null) M.value = "", N.value = "";
|
|
1511
1547
|
else if (o.iMask?.mask === Date) M.value = e instanceof Date ? e : new Date(e);
|
|
1512
|
-
else if (!(O.value === $.NUMBER && Oe.test(
|
|
1548
|
+
else if (!(O.value === $.NUMBER && Oe.test(N.value) && e === 0)) {
|
|
1513
1549
|
if (dt.value) {
|
|
1514
|
-
if (e instanceof Date ||
|
|
1550
|
+
if (e instanceof Date || Le(e)) {
|
|
1515
1551
|
if (e instanceof Date ? (A.value = e, j.value = void 0) : (j.value = e, A.value = void 0), ft.value) {
|
|
1516
1552
|
let t = new Date(e);
|
|
1517
|
-
M.value =
|
|
1553
|
+
M.value = Re(t, ft.value, De.value), N.value = M.value;
|
|
1518
1554
|
}
|
|
1519
1555
|
return;
|
|
1520
1556
|
}
|
|
1521
1557
|
A.value = void 0, j.value = void 0;
|
|
1522
1558
|
}
|
|
1523
|
-
M.value = e,
|
|
1559
|
+
M.value = e, N.value = `${M.value}`;
|
|
1524
1560
|
}
|
|
1525
1561
|
}
|
|
1526
1562
|
u(() => {
|
|
1527
|
-
Pe.value && (je.value = !0,
|
|
1563
|
+
Pe.value && (je.value = !0, Ve(o.modelValue));
|
|
1528
1564
|
}), p(() => o.modelValue, (e) => {
|
|
1529
|
-
Pe.value &&
|
|
1565
|
+
Pe.value && Ve(e);
|
|
1530
1566
|
}), p(() => o.masked, (e) => {
|
|
1531
|
-
|
|
1567
|
+
Fe.value = e ?? "";
|
|
1532
1568
|
});
|
|
1533
|
-
let
|
|
1569
|
+
let P = Ne, L = v(), R = v(), z = v();
|
|
1534
1570
|
t({
|
|
1535
|
-
$input:
|
|
1536
|
-
$inner:
|
|
1537
|
-
$wrapper:
|
|
1571
|
+
$input: P,
|
|
1572
|
+
$inner: L,
|
|
1573
|
+
$wrapper: R,
|
|
1538
1574
|
flush: Ee
|
|
1539
1575
|
});
|
|
1540
|
-
let { focused:
|
|
1576
|
+
let { focused: B } = Yt(P, s), V = y(() => B.value && !o.disabled && !o.readonly);
|
|
1541
1577
|
function Ue(e) {
|
|
1542
1578
|
e ? We() : Ge();
|
|
1543
1579
|
}
|
|
1544
1580
|
function We() {
|
|
1545
|
-
ee.value.selectOnFocus &&
|
|
1581
|
+
ee.value.selectOnFocus && P.value && P.value.select(), Z.value.size && !z.value?.restoringFocus && z.value?.show();
|
|
1546
1582
|
}
|
|
1547
1583
|
function Ge() {
|
|
1548
1584
|
let e = Ee() ?? k.value;
|
|
@@ -1550,40 +1586,40 @@ var Zt = ["for"], Qt = {
|
|
|
1550
1586
|
let t = o.maxSuggestions;
|
|
1551
1587
|
X.value.size >= t && !X.value.has(e) && (X.value = new Set([...X.value].slice(X.value.size - t + 1))), X.value.add(e);
|
|
1552
1588
|
}
|
|
1553
|
-
p(
|
|
1554
|
-
let Ke = Me(
|
|
1589
|
+
p(V, Ue);
|
|
1590
|
+
let Ke = Me(P);
|
|
1555
1591
|
p(Ke, (e) => {
|
|
1556
|
-
e && o.autofocus && !o.disabled && !o.readonly && (
|
|
1592
|
+
e && o.autofocus && !o.disabled && !o.readonly && (B.value = !0);
|
|
1557
1593
|
});
|
|
1558
1594
|
let qe = v(!1), Je = y(() => o.type === $.PASSWORD);
|
|
1559
1595
|
function Ye() {
|
|
1560
1596
|
qe.value = !qe.value;
|
|
1561
1597
|
}
|
|
1562
|
-
let
|
|
1563
|
-
function
|
|
1598
|
+
let Xe = y(() => dt.value), H = y(() => o.type === $.NUMBER);
|
|
1599
|
+
function Ze() {
|
|
1564
1600
|
if (!J.value) {
|
|
1565
1601
|
if (o.iMask) {
|
|
1566
1602
|
M.value = Number(M.value) + Number(ye?.value ?? 1);
|
|
1567
1603
|
return;
|
|
1568
1604
|
}
|
|
1569
|
-
|
|
1605
|
+
P.value.stepUp(), k.value = Number(P.value.value);
|
|
1570
1606
|
}
|
|
1571
1607
|
}
|
|
1572
|
-
function
|
|
1608
|
+
function U() {
|
|
1573
1609
|
if (!J.value) {
|
|
1574
1610
|
if (o.iMask) {
|
|
1575
1611
|
M.value = Number(M.value) - Number(ye?.value ?? 1);
|
|
1576
1612
|
return;
|
|
1577
1613
|
}
|
|
1578
|
-
|
|
1614
|
+
P.value.stepDown(), k.value = Number(P.value.value);
|
|
1579
1615
|
}
|
|
1580
1616
|
}
|
|
1581
1617
|
let Qe = y(() => o.type === $.SEARCH);
|
|
1582
1618
|
function $e() {
|
|
1583
1619
|
k.value = "", s("clear");
|
|
1584
1620
|
}
|
|
1585
|
-
let { hasIconBefore: G, hasIconAfter:
|
|
1586
|
-
if (
|
|
1621
|
+
let { hasIconBefore: G, hasIconAfter: et } = Vt(oe, ce), K = y(() => {
|
|
1622
|
+
if (et.value !== void 0) return et.value;
|
|
1587
1623
|
switch (o.type) {
|
|
1588
1624
|
case $.COLOR: return { name: W.showColorPicker };
|
|
1589
1625
|
case $.DATE:
|
|
@@ -1592,26 +1628,26 @@ var Zt = ["for"], Qt = {
|
|
|
1592
1628
|
case $.MONTH: return { name: W.showDatePicker };
|
|
1593
1629
|
case $.TIME: return { name: W.showTimePicker };
|
|
1594
1630
|
}
|
|
1595
|
-
}), { hasIcon:
|
|
1631
|
+
}), { hasIcon: q } = Vt(le), { formatted: tt } = Xt(k, {
|
|
1596
1632
|
mode: m.value,
|
|
1597
1633
|
upperLimit: Number(he?.value),
|
|
1598
1634
|
lowerLimit: Number(ge?.value)
|
|
1599
1635
|
}), J = y(() => o.disabled || o.readonly), nt = y(() => J.value ? -1 : o.tabindex), Y = y(() => !I(C?.value)), rt = y(() => {
|
|
1600
1636
|
if (de.value === !0) return !0;
|
|
1601
1637
|
if (Se.value === !0) return !1;
|
|
1602
|
-
}), X =
|
|
1638
|
+
}), X = Zt(y(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), be, /* @__PURE__ */ new Set()), Z = y(() => {
|
|
1603
1639
|
let e = /* @__PURE__ */ new Map();
|
|
1604
1640
|
if (X.value) for (let t of X.value) e.set(t, { isFromStorage: !0 });
|
|
1605
1641
|
if (o.suggestions) for (let t of o.suggestions) e.set(t, { isFromStorage: !1 });
|
|
1606
1642
|
return e;
|
|
1607
1643
|
}), it = y(() => Z.value.size === 0 ? [] : [...Z.value.entries()].filter(([e]) => I(k.value) || `${e}`.toLowerCase().includes(`${k.value}`.toLowerCase()) && e !== k.value).reverse().map(([e]) => e)), at = y(() => Z.value.size > 0);
|
|
1608
1644
|
function ot(e) {
|
|
1609
|
-
k.value = e,
|
|
1645
|
+
k.value = e, z.value?.hide(), s("suggestion:selected", e);
|
|
1610
1646
|
}
|
|
1611
1647
|
function st(e) {
|
|
1612
1648
|
Z.value.get(e)?.isFromStorage && (X.value?.delete(e), s("suggestion:removed", e));
|
|
1613
1649
|
}
|
|
1614
|
-
let { modifiers: ct } = _e(o), lt =
|
|
1650
|
+
let { modifiers: ct } = _e(o), lt = kt("vv-input-text", ct, y(() => ({
|
|
1615
1651
|
valid: Se.value,
|
|
1616
1652
|
invalid: de.value,
|
|
1617
1653
|
loading: me.value,
|
|
@@ -1619,10 +1655,10 @@ var Zt = ["for"], Qt = {
|
|
|
1619
1655
|
required: o.required,
|
|
1620
1656
|
readonly: o.readonly,
|
|
1621
1657
|
"icon-before": !!G.value,
|
|
1622
|
-
"icon-after": !!
|
|
1658
|
+
"icon-after": !!K.value,
|
|
1623
1659
|
floating: o.floating && !I(o.label),
|
|
1624
1660
|
dirty: Y.value,
|
|
1625
|
-
focus:
|
|
1661
|
+
focus: V.value && !J.value,
|
|
1626
1662
|
"auto-width": o.autoWidth
|
|
1627
1663
|
}))), ut = y(() => [
|
|
1628
1664
|
$.TEXT,
|
|
@@ -1651,10 +1687,10 @@ var Zt = ["for"], Qt = {
|
|
|
1651
1687
|
[$.WEEK]: "9999-W52"
|
|
1652
1688
|
};
|
|
1653
1689
|
function ht(e) {
|
|
1654
|
-
if (!I(e)) return (e instanceof Date || typeof e == "string" &&
|
|
1690
|
+
if (!I(e)) return (e instanceof Date || typeof e == "string" && Le(e)) && ft.value ? Re(e, ft.value, De.value) || void 0 : String(e);
|
|
1655
1691
|
}
|
|
1656
1692
|
let gt = y(() => {
|
|
1657
|
-
let e = Je.value && qe.value ||
|
|
1693
|
+
let e = Je.value && qe.value || Xe.value && !Y.value && !B.value || o.iMask ? $.TEXT : o.type, t = {
|
|
1658
1694
|
type: e,
|
|
1659
1695
|
name: o.name,
|
|
1660
1696
|
tabindex: nt.value,
|
|
@@ -1675,23 +1711,23 @@ var Zt = ["for"], Qt = {
|
|
|
1675
1711
|
invalid: o.invalid,
|
|
1676
1712
|
modelValue: o.modelValue,
|
|
1677
1713
|
togglePassword: Ye,
|
|
1678
|
-
stepUp:
|
|
1679
|
-
stepDown:
|
|
1714
|
+
stepUp: Ze,
|
|
1715
|
+
stepDown: U,
|
|
1680
1716
|
clear: $e
|
|
1681
|
-
})), { HintSlot: vt, hasHintLabelOrSlot: yt, hasInvalidLabelOrSlot: bt, hintSlotScope: xt } =
|
|
1717
|
+
})), { HintSlot: vt, hasHintLabelOrSlot: yt, hasInvalidLabelOrSlot: bt, hintSlotScope: xt } = He(ee, l), St = Gt($.PASSWORD, o, Y), Ct = Gt($.NUMBER, o, Y), Tt = Gt($.SEARCH, o, Y);
|
|
1682
1718
|
function Et() {
|
|
1683
|
-
J.value || (
|
|
1719
|
+
J.value || (B.value = !0);
|
|
1684
1720
|
}
|
|
1685
1721
|
let Dt = y(() => {
|
|
1686
1722
|
if (o.autoWidth) return { width: k.value === void 0 ? void 0 : `${String(k.value).length + 1}ch` };
|
|
1687
1723
|
});
|
|
1688
|
-
function
|
|
1724
|
+
function Ot(e) {
|
|
1689
1725
|
switch (e.code) {
|
|
1690
1726
|
case "ArrowUp":
|
|
1691
|
-
|
|
1727
|
+
H.value && (Ze(), e.preventDefault());
|
|
1692
1728
|
break;
|
|
1693
1729
|
case "ArrowDown":
|
|
1694
|
-
|
|
1730
|
+
H.value && (U(), e.preventDefault());
|
|
1695
1731
|
break;
|
|
1696
1732
|
case "Enter":
|
|
1697
1733
|
case "NumpadEnter": Ee();
|
|
@@ -1703,16 +1739,16 @@ var Zt = ["for"], Qt = {
|
|
|
1703
1739
|
key: 0,
|
|
1704
1740
|
for: w(Ce),
|
|
1705
1741
|
class: "vv-input-text__label"
|
|
1706
|
-
}, b(w(fe)), 9,
|
|
1742
|
+
}, b(w(fe)), 9, Qt)) : S("v-if", !0),
|
|
1707
1743
|
_("div", {
|
|
1708
1744
|
ref_key: "wrapperEl",
|
|
1709
|
-
ref:
|
|
1745
|
+
ref: R,
|
|
1710
1746
|
class: "vv-input-text__wrapper"
|
|
1711
1747
|
}, [
|
|
1712
|
-
e.$slots.before ? (D(), E("div",
|
|
1748
|
+
e.$slots.before ? (D(), E("div", $t, [c(e.$slots, "before", r(i(w(_t))))])) : S("v-if", !0),
|
|
1713
1749
|
_("div", {
|
|
1714
1750
|
ref_key: "innerEl",
|
|
1715
|
-
ref:
|
|
1751
|
+
ref: L,
|
|
1716
1752
|
class: "vv-input-text__inner",
|
|
1717
1753
|
onClick: ae(Et, ["stop"])
|
|
1718
1754
|
}, [
|
|
@@ -1720,28 +1756,28 @@ var Zt = ["for"], Qt = {
|
|
|
1720
1756
|
_("input", f({
|
|
1721
1757
|
id: w(Ce),
|
|
1722
1758
|
ref_key: "inputEl",
|
|
1723
|
-
ref:
|
|
1759
|
+
ref: P
|
|
1724
1760
|
}, w(gt), {
|
|
1725
1761
|
style: w(Dt),
|
|
1726
1762
|
onKeyup: t[0] ||= (e) => s("keyup", e),
|
|
1727
|
-
onKeydown:
|
|
1763
|
+
onKeydown: Ot,
|
|
1728
1764
|
onKeypress: t[1] ||= (e) => s("keypress", e)
|
|
1729
|
-
}), null, 16,
|
|
1730
|
-
(w(xe) || e.$slots.unit) && w(Y) ? (D(), E("div",
|
|
1765
|
+
}), null, 16, en),
|
|
1766
|
+
(w(xe) || e.$slots.unit) && w(Y) ? (D(), E("div", tn, [c(e.$slots, "unit", r(i(w(_t))), () => [T(b(w(xe)), 1)])])) : S("v-if", !0)
|
|
1731
1767
|
], 512),
|
|
1732
|
-
w(
|
|
1768
|
+
w(K) ? (D(), h(Q, f({ key: 1 }, w(K), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : w(Je) && !e.hideActions && !w(J) ? (D(), h(w(St), {
|
|
1733
1769
|
key: 2,
|
|
1734
1770
|
onTogglePassword: Ye
|
|
1735
|
-
})) : w(
|
|
1771
|
+
})) : w(H) && !e.hideActions && !w(J) ? (D(), h(w(Ct), {
|
|
1736
1772
|
key: 3,
|
|
1737
|
-
onStepUp:
|
|
1738
|
-
onStepDown:
|
|
1773
|
+
onStepUp: Ze,
|
|
1774
|
+
onStepDown: U
|
|
1739
1775
|
})) : w(Qe) && !e.hideActions && !w(J) ? (D(), h(w(Tt), {
|
|
1740
1776
|
key: 4,
|
|
1741
1777
|
onClear: $e
|
|
1742
1778
|
})) : S("v-if", !0),
|
|
1743
|
-
e.$slots.after ? (D(), E("div",
|
|
1744
|
-
w(m) ? (D(), E("span",
|
|
1779
|
+
e.$slots.after ? (D(), E("div", nn, [c(e.$slots, "after", r(i(w(_t))))])) : S("v-if", !0),
|
|
1780
|
+
w(m) ? (D(), E("span", rn, [c(e.$slots, "count", r(i(w(_t))), () => [T(b(w(tt)), 1)])])) : S("v-if", !0)
|
|
1745
1781
|
], 512),
|
|
1746
1782
|
te(w(vt), {
|
|
1747
1783
|
id: w(we),
|
|
@@ -1768,27 +1804,27 @@ var Zt = ["for"], Qt = {
|
|
|
1768
1804
|
key: "3"
|
|
1769
1805
|
} : void 0
|
|
1770
1806
|
]), 1032, ["id"]),
|
|
1771
|
-
w(at) ? (D(), h(
|
|
1807
|
+
w(at) ? (D(), h(Pt, {
|
|
1772
1808
|
key: 1,
|
|
1773
1809
|
ref_key: "suggestionsDropdownEl",
|
|
1774
|
-
ref:
|
|
1775
|
-
reference: w(
|
|
1810
|
+
ref: z,
|
|
1811
|
+
reference: w(R),
|
|
1776
1812
|
"autofocus-first": !1,
|
|
1777
1813
|
"trigger-width": !0,
|
|
1778
1814
|
"top-layer": w(ee).topLayer
|
|
1779
1815
|
}, {
|
|
1780
|
-
items: x(() => [(D(!0), E(se, null, re(w(it), (t) => (D(), h(
|
|
1816
|
+
items: x(() => [(D(!0), E(se, null, re(w(it), (t) => (D(), h(Lt, {
|
|
1781
1817
|
key: String(t),
|
|
1782
1818
|
onClick: ae((e) => ot(t), ["stop"])
|
|
1783
1819
|
}, {
|
|
1784
|
-
default: x(() => [_("div",
|
|
1820
|
+
default: x(() => [_("div", an, [c(e.$slots, "suggestion", f({ ref_for: !0 }, { value: t }), () => [T(b(t), 1)])]), w(Z).get(t)?.isFromStorage && w(q) ? (D(), E("button", {
|
|
1785
1821
|
key: 0,
|
|
1786
1822
|
type: "button",
|
|
1787
1823
|
tabindex: "-1",
|
|
1788
1824
|
class: "cursor-pointer",
|
|
1789
1825
|
title: w(pe),
|
|
1790
1826
|
onClick: ae((e) => st(t), ["stop"])
|
|
1791
|
-
}, [te(Q, f({ ref_for: !0 }, w(
|
|
1827
|
+
}, [te(Q, f({ ref_for: !0 }, w(q)), null, 16)], 8, on)) : S("v-if", !0)]),
|
|
1792
1828
|
_: 2
|
|
1793
1829
|
}, 1032, ["onClick"]))), 128))]),
|
|
1794
1830
|
_: 3
|
|
@@ -1796,6 +1832,6 @@ var Zt = ["for"], Qt = {
|
|
|
1796
1832
|
], 2));
|
|
1797
1833
|
}
|
|
1798
1834
|
});
|
|
1799
|
-
export {
|
|
1835
|
+
export { sn as default };
|
|
1800
1836
|
|
|
1801
|
-
//# sourceMappingURL=VvInputText.es-
|
|
1837
|
+
//# sourceMappingURL=VvInputText.es-D1K-kOt5.js.map
|