@8wave/ai-elements 0.125.0-beta.36 → 0.125.0-beta.38
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-DsRAk1js.js → PkChatbotFilePreview-Dt0ygdJM.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-DsRAk1js.js.map → PkChatbotFilePreview-Dt0ygdJM.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-ClUWPayk.js → PkEditorRadioButtons-Br4c42KS.js} +2 -2
- package/dist/_chunks/{PkEditorRadioButtons-ClUWPayk.js.map → PkEditorRadioButtons-Br4c42KS.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-Bic0SA47.js → PkFilePreview-BdqdC1ml.js} +5 -5
- package/dist/_chunks/{PkFilePreview-Bic0SA47.js.map → PkFilePreview-BdqdC1ml.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-WKJ0Zm3O.js → PkFilePreviewDialog-_pdW07pm.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-WKJ0Zm3O.js.map → PkFilePreviewDialog-_pdW07pm.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-CtIvSX8O.js → PkHeldImage-H7-q7WrE.js} +2 -2
- package/dist/_chunks/{PkHeldImage-CtIvSX8O.js.map → PkHeldImage-H7-q7WrE.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-BQwM06kT.js → PkImageEditorDialog-D-ikpGo8.js} +5 -5
- package/dist/_chunks/{PkImageEditorDialog-BQwM06kT.js.map → PkImageEditorDialog-D-ikpGo8.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-Dmu5wBpK.js → PkLazyImg-DTGucEQ9.js} +2 -2
- package/dist/_chunks/{PkLazyImg-Dmu5wBpK.js.map → PkLazyImg-DTGucEQ9.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-mna8QQGY.js → PkSelectionActions-CjAiM1G3.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-mna8QQGY.js.map → PkSelectionActions-CjAiM1G3.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-CTBwDxvV.js → PkToolChatFile-39PrHVVm.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-CTBwDxvV.js.map → PkToolChatFile-39PrHVVm.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-XmQTnuwg.js → PkToolRequestGeolocation-CMSIJu4c.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-XmQTnuwg.js.map → PkToolRequestGeolocation-CMSIJu4c.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BSKa66Nf.js → PkToolRequestOAuthConnection-ClVVaEuK.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-BSKa66Nf.js.map → PkToolRequestOAuthConnection-ClVVaEuK.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-D5K3uJ2x.js → PkToolShareDocument-Bxm1pSpj.js} +3 -3
- package/dist/_chunks/{PkToolShareDocument-D5K3uJ2x.js.map → PkToolShareDocument-Bxm1pSpj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-C27hZNJd.js → PkToolShowArtifact-D1AOFL1o.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-C27hZNJd.js.map → PkToolShowArtifact-D1AOFL1o.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-Cq_ApwVL.js → PkToolShowCalendarEvent-Bf1fBrjf.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-Cq_ApwVL.js.map → PkToolShowCalendarEvent-Bf1fBrjf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-CmIDi-5O.js → PkToolShowComparison-BURyhuOx.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-CmIDi-5O.js.map → PkToolShowComparison-BURyhuOx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-VVgxhvQd.js → PkToolShowContactForm-CTitUxv_.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-VVgxhvQd.js.map → PkToolShowContactForm-CTitUxv_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-jpaEAi2X.js → PkToolShowDiagram-CwINVecL.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-jpaEAi2X.js.map → PkToolShowDiagram-CwINVecL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-Cdwe_01-.js → PkToolShowEmail-mGLOd6zf.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-Cdwe_01-.js.map → PkToolShowEmail-mGLOd6zf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-C4t_v1ps.js → PkToolShowForm-YaDgT_04.js} +5 -5
- package/dist/_chunks/{PkToolShowForm-C4t_v1ps.js.map → PkToolShowForm-YaDgT_04.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-y3iOOanc.js → PkToolShowImageGallery-BVrcfe_b.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-y3iOOanc.js.map → PkToolShowImageGallery-BVrcfe_b.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-7Uqe4JnF.js → PkToolShowLocation-BYkY2CEF.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-7Uqe4JnF.js.map → PkToolShowLocation-BYkY2CEF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-BPugVukY.js → PkToolShowMessage-CvxABht3.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-BPugVukY.js.map → PkToolShowMessage-CvxABht3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-CTB2wcrz.js → PkToolShowProductList-CYNh8YRF.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-CTB2wcrz.js.map → PkToolShowProductList-CYNh8YRF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-QcJxu2vI.js → PkToolShowQrCode-DgnNA0rU.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-QcJxu2vI.js.map → PkToolShowQrCode-DgnNA0rU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Byv7DkHR.js → PkToolShowSources-BvH0el0N.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Byv7DkHR.js.map → PkToolShowSources-BvH0el0N.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-D8FQu6Pd.js → PkToolShowSuggestedReply-PHcre0Ff.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-D8FQu6Pd.js.map → PkToolShowSuggestedReply-PHcre0Ff.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-B8Ql2lYD.js → PkToolShowVideo-SiP-5Ekl.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-B8Ql2lYD.js.map → PkToolShowVideo-SiP-5Ekl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-B9HWOU7p.js → PkToolShowWeather-BMnvmUoO.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-B9HWOU7p.js.map → PkToolShowWeather-BMnvmUoO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CR-eQrdv.js → PkToolShowWebPages-Co_33g_K.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-CR-eQrdv.js.map → PkToolShowWebPages-Co_33g_K.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-B32dBwWJ.js → VvButtonLocalized-C8S7XJGv.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-B32dBwWJ.js.map → VvButtonLocalized-C8S7XJGv.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-DScKyi1x.js → VvCheckbox.es-DXJ1UB8G.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-DScKyi1x.js.map → VvCheckbox.es-DXJ1UB8G.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-BuoyBIix.js → VvCheckboxGroup.es-ZWG2NV9b.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-BuoyBIix.js.map → VvCheckboxGroup.es-ZWG2NV9b.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-uAWL0Asj.js → VvCombobox.es-D516ShMF.js} +318 -307
- package/dist/_chunks/VvCombobox.es-D516ShMF.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-Cw6GoyJS.js → VvInputText.es-Dzf_mjzr.js} +250 -239
- package/dist/_chunks/VvInputText.es-Dzf_mjzr.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-Betfu_P8.js → VvRadio.es-CksG97Js.js} +2 -2
- package/dist/_chunks/{VvRadio.es-Betfu_P8.js.map → VvRadio.es-CksG97Js.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-CEzr2_1l.js → VvRadioGroup.es-Bo2Pf354.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-CEzr2_1l.js.map → VvRadioGroup.es-Bo2Pf354.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BLMFR1iC.js → VvSelect.es-DpN2t0Oh.js} +3 -3
- package/dist/_chunks/{VvSelect.es-BLMFR1iC.js.map → VvSelect.es-DpN2t0Oh.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-CFZHoQWF.js → VvTextarea.es-GlakViWr.js} +347 -336
- package/dist/_chunks/VvTextarea.es-GlakViWr.js.map +1 -0
- package/dist/_chunks/{iconify-oSMMdRMF.js → iconify-Cj-qXWYO.js} +175 -175
- package/dist/_chunks/{iconify-oSMMdRMF.js.map → iconify-Cj-qXWYO.js.map} +1 -1
- package/dist/_chunks/{index.es-DKgwv-Tl.js → index.es-0ah-ssIE.js} +10 -10
- package/dist/_chunks/{index.es-DKgwv-Tl.js.map → index.es-0ah-ssIE.js.map} +1 -1
- package/dist/_chunks/{index.es-D-aOuzzp.js → index.es-DIHz5I8K.js} +152 -141
- package/dist/_chunks/index.es-DIHz5I8K.js.map +1 -0
- package/dist/ai-elements.es.js +46 -46
- 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-BtJsIn4h.js → PkChatbot-CfBea2qY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-BtJsIn4h.js.map → PkChatbot-CfBea2qY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-Btxg3TF0.js → PkChatbotAuth-Ci9NmbVb.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-Btxg3TF0.js.map → PkChatbotAuth-Ci9NmbVb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-Bh3tvNUW.js → PkChatbotFeedbackForm-D3YNMO7m.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-Bh3tvNUW.js.map → PkChatbotFeedbackForm-D3YNMO7m.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Bmrvz0Nv.js → PkChatbotMessages-AkfEvXEN.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotMessages-Bmrvz0Nv.js.map → PkChatbotMessages-AkfEvXEN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-B14w_WuO.js → PkChatbotViewChat-CdcZrTJJ.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-B14w_WuO.js.map → PkChatbotViewChat-CdcZrTJJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-CTsoIgC0.js → PkFilePreview-DJBrACR3.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-CTsoIgC0.js.map → PkFilePreview-DJBrACR3.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-DbTpN0hb.js → PkFilePreviewDialog-C-m04VEl.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DbTpN0hb.js.map → PkFilePreviewDialog-C-m04VEl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BEWOoCVa.js → PkToolShowContactForm-CtJSjw8M.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BEWOoCVa.js.map → PkToolShowContactForm-CtJSjw8M.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-DSD1KzRg.js → index.es-MFxWj-L1.js} +2 -2
- package/dist-vue/_chunks/{index.es-DSD1KzRg.js.map → index.es-MFxWj-L1.js.map} +1 -1
- package/dist-vue/index.js +7 -7
- package/dist-vue/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/_chunks/VvCombobox.es-uAWL0Asj.js.map +0 -1
- package/dist/_chunks/VvInputText.es-Cw6GoyJS.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-CFZHoQWF.js.map +0 -1
- package/dist/_chunks/index.es-D-aOuzzp.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
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-C2U5uTqB.js";
|
|
2
|
-
import { a as O, i as ve, t as k } from "./iconify-
|
|
3
|
-
import { S as ye, c as be, f as xe, g as Se, n as Ce, p as A, r as
|
|
2
|
+
import { a as O, i as ve, t as k } from "./iconify-Cj-qXWYO.js";
|
|
3
|
+
import { S as ye, c as be, f as xe, g as Se, n as Ce, p as A, r as j, u as we, x as Te } from "./dist-D6oUr4J_.js";
|
|
4
4
|
import { a as Ee, c as De, i as Oe, l as ke, n as M, o as N, r as Ae, s as je, t as P } from "./floating-ui.vue-HobyB7z6.js";
|
|
5
5
|
import { t as Me } from "./esm-DrTdMB4T.js";
|
|
6
|
-
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
6
|
+
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.26_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_57f9de4fe20b40601a5bcf5a7db572a3/node_modules/@volverjs/ui-vue/dist/components/VvInputText/VvInputText.es.js
|
|
7
7
|
ce(), me(), de(), ne();
|
|
8
8
|
var F = (e) => e.toString().padStart(2, "0"), I = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
9
9
|
function Ne(e) {
|
|
@@ -20,8 +20,8 @@ function Pe(e, t = "date", n) {
|
|
|
20
20
|
let a = n ? `${F(r.getHours())}:${F(r.getMinutes())}:${F(r.getSeconds())}` : `${F(r.getHours())}:${F(r.getMinutes())}`;
|
|
21
21
|
return t === "time" ? a : `${i}T${a}`;
|
|
22
22
|
}
|
|
23
|
-
var Fe = /^\d{4}-\d{2}-\d{2}$/, Ie = /^\d{4}-\d{2}$/,
|
|
24
|
-
function
|
|
23
|
+
var Fe = /^\d{4}-\d{2}-\d{2}$/, Ie = /^\d{4}-\d{2}$/, Le = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, Re = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
|
|
24
|
+
function L(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") {
|
|
@@ -33,23 +33,23 @@ function z(e, t = "date") {
|
|
|
33
33
|
return /* @__PURE__ */ new Date(`${e}-01T00:00:00`);
|
|
34
34
|
}
|
|
35
35
|
if (t === "time") {
|
|
36
|
-
if (!
|
|
36
|
+
if (!Le.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
|
|
37
37
|
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${F(i + 1)}-${F(a)}T${e}`) : /* @__PURE__ */ new Date(`${r}-${F(i + 1)}-${F(a)}T${e}:00`);
|
|
38
38
|
}
|
|
39
|
-
if (!
|
|
39
|
+
if (!Re.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
|
-
function
|
|
42
|
+
function R(e) {
|
|
43
43
|
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(w(e));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function z(e) {
|
|
46
46
|
return typeof e == "string";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
48
|
+
function B(e) {
|
|
49
|
+
return Array.isArray(e) ? e.filter((e) => z(e)).join(" ") : e;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
let r = y(() => ge(e) ? e.value : e), i = y(() =>
|
|
51
|
+
function ze(e, t) {
|
|
52
|
+
let r = y(() => ge(e) ? e.value : e), i = y(() => B(r.value.invalidLabel)), a = y(() => B(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,
|
|
55
55
|
hasHintLabelOrSlot: d,
|
|
@@ -90,27 +90,27 @@ function Re(e, t) {
|
|
|
90
90
|
})
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var V = /* @__PURE__ */ (function(e) {
|
|
94
94
|
return e.local = "local", e.session = "session", e;
|
|
95
|
-
})({}),
|
|
95
|
+
})({}), Be = /* @__PURE__ */ (function(e) {
|
|
96
96
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
97
|
-
})({}),
|
|
97
|
+
})({}), H = /* @__PURE__ */ (function(e) {
|
|
98
98
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
99
|
-
})({}),
|
|
99
|
+
})({}), Ve = /* @__PURE__ */ (function(e) {
|
|
100
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
|
-
})({}),
|
|
101
|
+
})({}), He = /* @__PURE__ */ (function(e) {
|
|
102
102
|
return e.before = "before", e.after = "after", e;
|
|
103
|
-
})({}),
|
|
103
|
+
})({}), Ue = /* @__PURE__ */ (function(e) {
|
|
104
104
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
105
|
-
})({}),
|
|
105
|
+
})({}), We = /* @__PURE__ */ (function(e) {
|
|
106
106
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
107
|
-
})({}),
|
|
107
|
+
})({}), Ge = /* @__PURE__ */ (function(e) {
|
|
108
108
|
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
109
|
-
})({}),
|
|
109
|
+
})({}), U = /* @__PURE__ */ (function(e) {
|
|
110
110
|
return e.listbox = "listbox", e.menu = "menu", e;
|
|
111
|
-
})({}),
|
|
111
|
+
})({}), W = /* @__PURE__ */ (function(e) {
|
|
112
112
|
return e.option = "option", e.presentation = "presentation", e;
|
|
113
|
-
})({}),
|
|
113
|
+
})({}), G = /* @__PURE__ */ Symbol.for("volver"), Ke = /* @__PURE__ */ Symbol.for("dropdownTrigger"), qe = /* @__PURE__ */ Symbol.for("dropdownItem"), Je = /* @__PURE__ */ Symbol.for("dropdownAction"), K = {
|
|
114
114
|
showPassword: "eye-on",
|
|
115
115
|
hidePassword: "eye-off",
|
|
116
116
|
showDatePicker: "calendar",
|
|
@@ -121,7 +121,7 @@ var H = /* @__PURE__ */ (function(e) {
|
|
|
121
121
|
remove: "trash",
|
|
122
122
|
edit: "edit",
|
|
123
123
|
download: "download"
|
|
124
|
-
},
|
|
124
|
+
}, Ye = { prefix: "normal" }, Xe = {
|
|
125
125
|
to: { type: [String, Object] },
|
|
126
126
|
href: String,
|
|
127
127
|
target: String,
|
|
@@ -129,7 +129,7 @@ var H = /* @__PURE__ */ (function(e) {
|
|
|
129
129
|
type: String,
|
|
130
130
|
default: "noopener noreferrer"
|
|
131
131
|
}
|
|
132
|
-
},
|
|
132
|
+
}, Ze = {
|
|
133
133
|
valid: {
|
|
134
134
|
type: Boolean,
|
|
135
135
|
default: !1
|
|
@@ -138,7 +138,7 @@ var H = /* @__PURE__ */ (function(e) {
|
|
|
138
138
|
type: [String, Array],
|
|
139
139
|
default: void 0
|
|
140
140
|
}
|
|
141
|
-
},
|
|
141
|
+
}, Qe = {
|
|
142
142
|
invalid: {
|
|
143
143
|
type: Boolean,
|
|
144
144
|
default: !1
|
|
@@ -147,7 +147,7 @@ var H = /* @__PURE__ */ (function(e) {
|
|
|
147
147
|
type: [String, Array],
|
|
148
148
|
default: void 0
|
|
149
149
|
}
|
|
150
|
-
},
|
|
150
|
+
}, $e = {
|
|
151
151
|
loading: {
|
|
152
152
|
type: Boolean,
|
|
153
153
|
default: !1
|
|
@@ -156,24 +156,24 @@ var H = /* @__PURE__ */ (function(e) {
|
|
|
156
156
|
type: String,
|
|
157
157
|
default: "Loading..."
|
|
158
158
|
}
|
|
159
|
-
},
|
|
159
|
+
}, q = { disabled: {
|
|
160
160
|
type: Boolean,
|
|
161
161
|
default: !1
|
|
162
|
-
} },
|
|
162
|
+
} }, et = { required: {
|
|
163
163
|
type: Boolean,
|
|
164
164
|
default: !1
|
|
165
|
-
} },
|
|
165
|
+
} }, tt = { selected: {
|
|
166
166
|
type: Boolean,
|
|
167
167
|
default: !1
|
|
168
|
-
} },
|
|
168
|
+
} }, J = { active: {
|
|
169
169
|
type: Boolean,
|
|
170
170
|
default: !1
|
|
171
|
-
} },
|
|
171
|
+
} }, nt = { current: {
|
|
172
172
|
type: Boolean,
|
|
173
173
|
default: !1
|
|
174
174
|
} };
|
|
175
|
-
|
|
176
|
-
var
|
|
175
|
+
K.clear;
|
|
176
|
+
var Y = { pressed: {
|
|
177
177
|
type: Boolean,
|
|
178
178
|
default: !1
|
|
179
179
|
} }, rt = { label: {
|
|
@@ -237,8 +237,8 @@ var nt = { pressed: {
|
|
|
237
237
|
},
|
|
238
238
|
iconPosition: {
|
|
239
239
|
type: String,
|
|
240
|
-
default:
|
|
241
|
-
validator: (e) => Object.values(
|
|
240
|
+
default: He.before,
|
|
241
|
+
validator: (e) => Object.values(He).includes(e)
|
|
242
242
|
}
|
|
243
243
|
}, ut = { tabindex: {
|
|
244
244
|
type: [String, Number],
|
|
@@ -252,13 +252,13 @@ var nt = { pressed: {
|
|
|
252
252
|
} }, pt = { id: [String, Number] }, mt = {
|
|
253
253
|
placement: {
|
|
254
254
|
type: String,
|
|
255
|
-
default:
|
|
256
|
-
validator: (e) => Object.values(
|
|
255
|
+
default: H.bottom,
|
|
256
|
+
validator: (e) => Object.values(H).includes(e) || Object.values(Ve).includes(e)
|
|
257
257
|
},
|
|
258
258
|
strategy: {
|
|
259
259
|
type: String,
|
|
260
260
|
default: void 0,
|
|
261
|
-
validator: (e) => Object.values(
|
|
261
|
+
validator: (e) => Object.values(Be).includes(e)
|
|
262
262
|
},
|
|
263
263
|
transitionName: {
|
|
264
264
|
type: String,
|
|
@@ -325,12 +325,12 @@ var nt = { pressed: {
|
|
|
325
325
|
...gt,
|
|
326
326
|
..._t,
|
|
327
327
|
...ut,
|
|
328
|
-
...
|
|
328
|
+
...q,
|
|
329
329
|
...Z,
|
|
330
|
-
...Xe,
|
|
331
330
|
...Ze,
|
|
332
|
-
...at,
|
|
333
331
|
...Qe,
|
|
332
|
+
...at,
|
|
333
|
+
...$e,
|
|
334
334
|
...it,
|
|
335
335
|
...st,
|
|
336
336
|
...ct,
|
|
@@ -350,44 +350,44 @@ var nt = { pressed: {
|
|
|
350
350
|
type: String,
|
|
351
351
|
default: void 0
|
|
352
352
|
},
|
|
353
|
-
|
|
353
|
+
...et
|
|
354
354
|
};
|
|
355
355
|
({
|
|
356
356
|
...ht,
|
|
357
357
|
...ut,
|
|
358
|
-
...Xe,
|
|
359
358
|
...Ze,
|
|
359
|
+
...Qe,
|
|
360
360
|
...at,
|
|
361
|
-
...
|
|
361
|
+
...q,
|
|
362
362
|
...Z,
|
|
363
363
|
...it,
|
|
364
364
|
...rt,
|
|
365
365
|
...X,
|
|
366
|
-
|
|
366
|
+
...$e
|
|
367
367
|
}), {
|
|
368
|
-
...Xe,
|
|
369
368
|
...Ze,
|
|
369
|
+
...Qe,
|
|
370
370
|
...ot,
|
|
371
371
|
...at,
|
|
372
|
-
...
|
|
372
|
+
...q,
|
|
373
373
|
...Z,
|
|
374
374
|
...it,
|
|
375
375
|
...rt,
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
...$e,
|
|
377
|
+
...et
|
|
378
378
|
}, {
|
|
379
|
-
...
|
|
379
|
+
...q,
|
|
380
380
|
...rt,
|
|
381
|
-
...nt,
|
|
382
381
|
...Y,
|
|
383
|
-
...
|
|
384
|
-
...
|
|
385
|
-
|
|
382
|
+
...J,
|
|
383
|
+
...nt,
|
|
384
|
+
...Xe
|
|
385
|
+
}, Ue.button, We.button;
|
|
386
386
|
var yt = {
|
|
387
387
|
storageType: {
|
|
388
388
|
type: String,
|
|
389
|
-
default:
|
|
390
|
-
validator: (e) => Object.values(
|
|
389
|
+
default: V.local,
|
|
390
|
+
validator: (e) => Object.values(V).includes(e)
|
|
391
391
|
},
|
|
392
392
|
storageKey: String
|
|
393
393
|
}, bt = {
|
|
@@ -404,15 +404,15 @@ var yt = {
|
|
|
404
404
|
},
|
|
405
405
|
role: {
|
|
406
406
|
type: String,
|
|
407
|
-
default:
|
|
408
|
-
validator: (e) => Object.values(
|
|
407
|
+
default: U.menu,
|
|
408
|
+
validator: (e) => Object.values(U).includes(e)
|
|
409
409
|
}
|
|
410
410
|
}, xt = { focusOnHover: {
|
|
411
411
|
type: Boolean,
|
|
412
412
|
default: !1
|
|
413
413
|
} }, St = {
|
|
414
|
-
...
|
|
415
|
-
...
|
|
414
|
+
...q,
|
|
415
|
+
...tt,
|
|
416
416
|
...ft,
|
|
417
417
|
...it,
|
|
418
418
|
deselectHintLabel: { type: String },
|
|
@@ -456,7 +456,7 @@ function Tt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
456
456
|
component: C({
|
|
457
457
|
name: "VvDropdownTriggerProvider",
|
|
458
458
|
setup() {
|
|
459
|
-
t(
|
|
459
|
+
t(Ke, {
|
|
460
460
|
reference: e,
|
|
461
461
|
id: r,
|
|
462
462
|
expanded: i,
|
|
@@ -471,15 +471,15 @@ function Tt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
function Et({ role: e, ...n }) {
|
|
474
|
-
let r = y(() => e.value ===
|
|
475
|
-
return t(
|
|
474
|
+
let r = y(() => e.value === U.listbox ? W.option : W.presentation);
|
|
475
|
+
return t(qe, {
|
|
476
476
|
role: r,
|
|
477
477
|
...n
|
|
478
478
|
}), { itemRole: r };
|
|
479
479
|
}
|
|
480
480
|
function Dt({ expanded: e }) {
|
|
481
|
-
t(
|
|
482
|
-
role: v(
|
|
481
|
+
t(Je, {
|
|
482
|
+
role: v(Ge.menuitem),
|
|
483
483
|
expanded: e
|
|
484
484
|
});
|
|
485
485
|
}
|
|
@@ -525,7 +525,7 @@ var kt = ["popover"], At = [
|
|
|
525
525
|
set: (e) => {
|
|
526
526
|
h.value = e;
|
|
527
527
|
}
|
|
528
|
-
}), { isTopLayer: de, popover: fe, show: pe, hide: me } = wt(g, () => d.topLayer), ge = y(() => de.value ?
|
|
528
|
+
}), { isTopLayer: de, popover: fe, show: pe, hide: me } = wt(g, () => d.topLayer), ge = y(() => de.value ? Be.fixed : d.strategy), C = v(!1);
|
|
529
529
|
u(() => {
|
|
530
530
|
Se(g.value, () => {
|
|
531
531
|
C.value = globalThis.getComputedStyle(g.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
@@ -549,9 +549,19 @@ var kt = ["popover"], At = [
|
|
|
549
549
|
reset: { rects: !0 }
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
}
|
|
552
|
+
};
|
|
553
|
+
function k(e) {
|
|
554
|
+
return d.triggerWidth && !C.value ? e.reference.width : 0;
|
|
555
|
+
}
|
|
556
|
+
let xe = {
|
|
557
|
+
name: "triggerWidth",
|
|
558
|
+
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
559
|
+
let { style: r } = e.floating, i = k(t), a = Number.parseFloat(r.width) || 0;
|
|
560
|
+
return n.triggerWidth || Math.abs(i - a) < .01 ? {} : (r.width = i ? `${i}px` : "", { reset: { rects: !0 } });
|
|
561
|
+
}
|
|
562
|
+
}, we = y(() => {
|
|
553
563
|
let e = [];
|
|
554
|
-
d.size && e.push(ve), d.offset && e.push(["string", "number"].includes(typeof d.offset) ? N(Number(d.offset)) : N(d.offset));
|
|
564
|
+
d.triggerWidth && e.push(xe), d.size && e.push(ve), d.offset && e.push(["string", "number"].includes(typeof d.offset) ? N(Number(d.offset)) : N(d.offset));
|
|
555
565
|
let t = typeof d.size == "object" ? d.size.padding : void 0;
|
|
556
566
|
if (d.autoPlacement ? e.push(T(d.autoPlacement, () => Ae(), (e) => Ae(e))) : d.flip && e.push(T(d.flip, () => Ee({
|
|
557
567
|
fallbackStrategy: "initialPlacement",
|
|
@@ -563,7 +573,7 @@ var kt = ["popover"], At = [
|
|
|
563
573
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
564
574
|
if (O(r.floating) || C.value) return;
|
|
565
575
|
let { style: i } = n.floating;
|
|
566
|
-
i.maxWidth =
|
|
576
|
+
i.maxWidth = k(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
567
577
|
};
|
|
568
578
|
e.push(T(d.size, () => De({ apply: t }), (e) => De({
|
|
569
579
|
...e,
|
|
@@ -571,36 +581,37 @@ var kt = ["popover"], At = [
|
|
|
571
581
|
})));
|
|
572
582
|
}
|
|
573
583
|
return d.arrow && e.push(P({ element: ae })), e;
|
|
574
|
-
}), { x:
|
|
584
|
+
}), { x: Te, y: ke, middlewareData: Me, placement: F, strategy: I, update: Ne } = M(b, g, {
|
|
575
585
|
placement: y(() => d.placement),
|
|
576
586
|
strategy: ge,
|
|
577
|
-
middleware:
|
|
578
|
-
}),
|
|
579
|
-
if (C.value) return
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
top: `${Te.value ?? 0}px`,
|
|
584
|
-
left: `${xe.value ?? 0}px`,
|
|
585
|
-
width: e
|
|
587
|
+
middleware: we
|
|
588
|
+
}), Pe = y(() => {
|
|
589
|
+
if (!C.value) return {
|
|
590
|
+
position: I.value,
|
|
591
|
+
top: `${ke.value ?? 0}px`,
|
|
592
|
+
left: `${Te.value ?? 0}px`
|
|
586
593
|
};
|
|
587
|
-
})
|
|
594
|
+
});
|
|
595
|
+
p(() => d.triggerWidth, (e) => {
|
|
596
|
+
!e && g.value && (g.value.style.width = "");
|
|
597
|
+
});
|
|
598
|
+
let Fe = y(() => F.value.split("-")[0]), Ie = y(() => {
|
|
588
599
|
if (C.value) return;
|
|
589
600
|
let e = {
|
|
590
|
-
[
|
|
591
|
-
[
|
|
592
|
-
[
|
|
593
|
-
[
|
|
594
|
-
}[
|
|
601
|
+
[H.top]: H.bottom,
|
|
602
|
+
[H.right]: H.left,
|
|
603
|
+
[H.bottom]: H.top,
|
|
604
|
+
[H.left]: H.right
|
|
605
|
+
}[Fe.value];
|
|
595
606
|
return {
|
|
596
|
-
left:
|
|
597
|
-
top:
|
|
607
|
+
left: Me.value.arrow?.x === void 0 ? void 0 : `${Me.value.arrow?.x}px`,
|
|
608
|
+
top: Me.value.arrow?.y === void 0 ? void 0 : `${Me.value.arrow?.y}px`,
|
|
598
609
|
[e]: `${-(ae.value?.offsetWidth ?? 0) / 2}px`
|
|
599
610
|
};
|
|
600
|
-
}),
|
|
601
|
-
get: () =>
|
|
611
|
+
}), Le = ye(d, "modelValue", m), Re = v(!1), L = y({
|
|
612
|
+
get: () => Le.value ?? Re.value,
|
|
602
613
|
set: (e) => {
|
|
603
|
-
|
|
614
|
+
Le.value === void 0 ? Re.value = e : Le.value = e;
|
|
604
615
|
}
|
|
605
616
|
});
|
|
606
617
|
p([
|
|
@@ -609,12 +620,12 @@ var kt = ["popover"], At = [
|
|
|
609
620
|
g,
|
|
610
621
|
ge
|
|
611
622
|
], ([e, t, n, r], i, a) => {
|
|
612
|
-
e && t && n && a(Oe(t, n,
|
|
623
|
+
e && t && n && a(Oe(t, n, Ne, { animationFrame: r === Be.fixed }));
|
|
613
624
|
}, {
|
|
614
625
|
flush: "post",
|
|
615
626
|
immediate: !0
|
|
616
627
|
}), Se(ce, () => {
|
|
617
|
-
L.value &&
|
|
628
|
+
L.value && Ne();
|
|
618
629
|
}, {
|
|
619
630
|
childList: !0,
|
|
620
631
|
subtree: !0,
|
|
@@ -631,53 +642,53 @@ var kt = ["popover"], At = [
|
|
|
631
642
|
function B() {
|
|
632
643
|
L.value = !L.value;
|
|
633
644
|
}
|
|
634
|
-
function
|
|
645
|
+
function ze(e) {
|
|
635
646
|
b.value = e;
|
|
636
647
|
}
|
|
637
648
|
Ce(g, () => {
|
|
638
649
|
!d.keepOpen && L.value && (L.value = !1);
|
|
639
650
|
}, { ignore: [b] });
|
|
640
|
-
let
|
|
651
|
+
let V = y(() => b.value?.getAttribute?.("id") ?? void 0), Ve = y(() => ({
|
|
641
652
|
"aria-controls": re.value,
|
|
642
653
|
"aria-haspopup": !0,
|
|
643
654
|
"aria-expanded": L.value
|
|
644
|
-
})), { component:
|
|
655
|
+
})), { component: He, bus: Ue } = Tt({
|
|
645
656
|
reference: b,
|
|
646
657
|
id: re,
|
|
647
658
|
expanded: L,
|
|
648
|
-
aria:
|
|
659
|
+
aria: Ve
|
|
649
660
|
});
|
|
650
|
-
|
|
651
|
-
let { role:
|
|
652
|
-
function
|
|
661
|
+
Ue.on("click", B);
|
|
662
|
+
let { role: We, modifiers: Ge } = _e(d), U = Ot("vv-dropdown", Ge, y(() => ({ arrow: d.arrow }))), { focused: W } = A(g);
|
|
663
|
+
function G(e) {
|
|
653
664
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
654
665
|
}
|
|
655
|
-
function
|
|
666
|
+
function Ke() {
|
|
656
667
|
o(() => {
|
|
657
|
-
let e =
|
|
668
|
+
let e = G(g.value);
|
|
658
669
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
659
670
|
});
|
|
660
671
|
}
|
|
661
|
-
function
|
|
672
|
+
function qe() {
|
|
662
673
|
o(() => {
|
|
663
|
-
let e =
|
|
674
|
+
let e = G(ce.value);
|
|
664
675
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
665
676
|
});
|
|
666
677
|
}
|
|
667
|
-
function
|
|
678
|
+
function Je() {
|
|
668
679
|
o(() => {
|
|
669
|
-
if (
|
|
670
|
-
let e =
|
|
680
|
+
if (W.value) {
|
|
681
|
+
let e = G(g.value);
|
|
671
682
|
if (e.length === 0 || !document.activeElement) return;
|
|
672
683
|
let t = e.indexOf(document.activeElement);
|
|
673
684
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
674
685
|
}
|
|
675
686
|
});
|
|
676
687
|
}
|
|
677
|
-
function
|
|
688
|
+
function K() {
|
|
678
689
|
o(() => {
|
|
679
|
-
if (
|
|
680
|
-
let e =
|
|
690
|
+
if (W.value) {
|
|
691
|
+
let e = G(g.value);
|
|
681
692
|
if (e.length === 0 || !document.activeElement) return;
|
|
682
693
|
let t = e.indexOf(document.activeElement);
|
|
683
694
|
if (t > 0) {
|
|
@@ -689,35 +700,35 @@ var kt = ["popover"], At = [
|
|
|
689
700
|
});
|
|
690
701
|
}
|
|
691
702
|
p(L, (e) => {
|
|
692
|
-
e && d.autofocusFirst &&
|
|
703
|
+
e && d.autofocusFirst && Ke();
|
|
693
704
|
}), t({
|
|
694
705
|
toggle: B,
|
|
695
706
|
show: R,
|
|
696
707
|
hide: z,
|
|
697
|
-
init:
|
|
698
|
-
focusFirst:
|
|
699
|
-
focusFirstListElement:
|
|
700
|
-
focusNext:
|
|
701
|
-
focusPrev:
|
|
708
|
+
init: ze,
|
|
709
|
+
focusFirst: Ke,
|
|
710
|
+
focusFirstListElement: qe,
|
|
711
|
+
focusNext: Je,
|
|
712
|
+
focusPrev: K,
|
|
702
713
|
customPosition: C
|
|
703
714
|
});
|
|
704
|
-
let { itemRole:
|
|
705
|
-
role:
|
|
715
|
+
let { itemRole: Ye } = Et({
|
|
716
|
+
role: We,
|
|
706
717
|
expanded: L,
|
|
707
|
-
focused:
|
|
718
|
+
focused: W,
|
|
708
719
|
hovered: be(g)
|
|
709
720
|
});
|
|
710
|
-
|
|
721
|
+
j("Escape", (e) => {
|
|
711
722
|
L.value && (e.preventDefault(), z());
|
|
712
|
-
}),
|
|
713
|
-
L.value &&
|
|
714
|
-
}),
|
|
715
|
-
L.value &&
|
|
716
|
-
}),
|
|
723
|
+
}), j("ArrowDown", (e) => {
|
|
724
|
+
L.value && W.value && (e.preventDefault(), Je());
|
|
725
|
+
}), j("ArrowUp", (e) => {
|
|
726
|
+
L.value && W.value && (e.preventDefault(), K());
|
|
727
|
+
}), j([" ", "Enter"], (e) => {
|
|
717
728
|
let t = e.target;
|
|
718
|
-
L.value &&
|
|
729
|
+
L.value && W.value && t && t?.click();
|
|
719
730
|
});
|
|
720
|
-
let
|
|
731
|
+
let Xe = {
|
|
721
732
|
"before-enter": () => {
|
|
722
733
|
m("beforeExpand"), m("beforeEnter");
|
|
723
734
|
},
|
|
@@ -743,29 +754,29 @@ var kt = ["popover"], At = [
|
|
|
743
754
|
m("leaveCancelled");
|
|
744
755
|
}
|
|
745
756
|
};
|
|
746
|
-
return (e, t) => (D(), E(se, null, [te(w(
|
|
757
|
+
return (e, t) => (D(), E(se, null, [te(w(He), null, {
|
|
747
758
|
default: x(() => [c(e.$slots, "default", r(i({
|
|
748
|
-
init:
|
|
759
|
+
init: ze,
|
|
749
760
|
show: R,
|
|
750
761
|
hide: z,
|
|
751
762
|
toggle: B,
|
|
752
763
|
expanded: w(L),
|
|
753
|
-
aria: w(
|
|
764
|
+
aria: w(Ve)
|
|
754
765
|
})))]),
|
|
755
766
|
_: 3
|
|
756
|
-
}), te(he, f({ name: e.transitionName }, s(
|
|
767
|
+
}), te(he, f({ name: e.transitionName }, s(Xe), { persisted: "" }), {
|
|
757
768
|
default: x(() => [ue(_("div", {
|
|
758
769
|
ref_key: "floatingEl",
|
|
759
770
|
ref: g,
|
|
760
771
|
popover: w(fe),
|
|
761
|
-
style: ee(w(
|
|
762
|
-
class: a(w(
|
|
772
|
+
style: ee(w(Pe)),
|
|
773
|
+
class: a(w(U))
|
|
763
774
|
}, [
|
|
764
775
|
d.arrow ? (D(), E("div", {
|
|
765
776
|
key: 0,
|
|
766
777
|
ref_key: "arrowEl",
|
|
767
778
|
ref: ae,
|
|
768
|
-
style: ee(w(
|
|
779
|
+
style: ee(w(Ie)),
|
|
769
780
|
class: "vv-dropdown__arrow"
|
|
770
781
|
}, null, 4)) : S("v-if", !0),
|
|
771
782
|
c(e.$slots, "before", r(i({
|
|
@@ -779,15 +790,15 @@ var kt = ["popover"], At = [
|
|
|
779
790
|
ref_key: "listEl",
|
|
780
791
|
ref: ce,
|
|
781
792
|
tabindex: w(L) ? void 0 : -1,
|
|
782
|
-
role: w(
|
|
783
|
-
"aria-labelledby": w(
|
|
793
|
+
role: w(We),
|
|
794
|
+
"aria-labelledby": w(V),
|
|
784
795
|
class: "vv-dropdown__list"
|
|
785
796
|
}), [c(e.$slots, "items", r(i({
|
|
786
797
|
show: R,
|
|
787
798
|
hide: z,
|
|
788
799
|
toggle: B,
|
|
789
800
|
expanded: w(L),
|
|
790
|
-
role: w(
|
|
801
|
+
role: w(Ye)
|
|
791
802
|
})))], 16, At),
|
|
792
803
|
c(e.$slots, "after", r(i({
|
|
793
804
|
show: R,
|
|
@@ -801,7 +812,7 @@ var kt = ["popover"], At = [
|
|
|
801
812
|
}
|
|
802
813
|
});
|
|
803
814
|
function Mt() {
|
|
804
|
-
return e(
|
|
815
|
+
return e(qe, {});
|
|
805
816
|
}
|
|
806
817
|
var Nt = /* @__PURE__ */ C({
|
|
807
818
|
name: "VvDropdownItem",
|
|
@@ -853,7 +864,7 @@ var Nt = /* @__PURE__ */ C({
|
|
|
853
864
|
}
|
|
854
865
|
});
|
|
855
866
|
function It() {
|
|
856
|
-
return e(
|
|
867
|
+
return e(G, void 0);
|
|
857
868
|
}
|
|
858
869
|
var Q = /* @__PURE__ */ C({
|
|
859
870
|
name: "VvIcon",
|
|
@@ -874,7 +885,7 @@ var Q = /* @__PURE__ */ C({
|
|
|
874
885
|
onLoad: { type: Function },
|
|
875
886
|
svg: {},
|
|
876
887
|
modifiers: {}
|
|
877
|
-
},
|
|
888
|
+
}, Ye),
|
|
878
889
|
setup(e) {
|
|
879
890
|
let t = e, n = y(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = v(!0), i = It(), { modifiers: a } = _e(t), o = Ot("vv-icon", a), s = y(() => t.provider || i?.iconsProvider), c = y(() => {
|
|
880
891
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
@@ -979,19 +990,19 @@ var Q = /* @__PURE__ */ C({
|
|
|
979
990
|
multiple: Boolean,
|
|
980
991
|
iconShowPassword: {
|
|
981
992
|
type: [String, Object],
|
|
982
|
-
default:
|
|
993
|
+
default: K.showPassword
|
|
983
994
|
},
|
|
984
995
|
iconHidePassword: {
|
|
985
996
|
type: [String, Object],
|
|
986
|
-
default:
|
|
997
|
+
default: K.hidePassword
|
|
987
998
|
},
|
|
988
999
|
iconClear: {
|
|
989
1000
|
type: [String, Object],
|
|
990
|
-
default:
|
|
1001
|
+
default: K.clear
|
|
991
1002
|
},
|
|
992
1003
|
iconRemoveSuggestion: {
|
|
993
1004
|
type: [String, Object],
|
|
994
|
-
default:
|
|
1005
|
+
default: K.remove
|
|
995
1006
|
},
|
|
996
1007
|
labelStepUp: {
|
|
997
1008
|
type: String,
|
|
@@ -1053,13 +1064,13 @@ var Q = /* @__PURE__ */ C({
|
|
|
1053
1064
|
}
|
|
1054
1065
|
};
|
|
1055
1066
|
function zt(e, t) {
|
|
1056
|
-
let n = y(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = y(() => t?.value ===
|
|
1067
|
+
let n = y(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = y(() => t?.value === He.before ? n.value : void 0), i = y(() => t?.value === He.after ? n.value : void 0);
|
|
1057
1068
|
return {
|
|
1058
1069
|
hasIcon: n,
|
|
1059
|
-
hasIconLeft: y(() => t?.value ===
|
|
1060
|
-
hasIconRight: y(() => t?.value ===
|
|
1061
|
-
hasIconTop: y(() => t?.value ===
|
|
1062
|
-
hasIconBottom: y(() => t?.value ===
|
|
1070
|
+
hasIconLeft: y(() => t?.value === H.left ? n.value : void 0),
|
|
1071
|
+
hasIconRight: y(() => t?.value === H.right ? n.value : void 0),
|
|
1072
|
+
hasIconTop: y(() => t?.value === H.top ? n.value : void 0),
|
|
1073
|
+
hasIconBottom: y(() => t?.value === H.bottom ? n.value : void 0),
|
|
1063
1074
|
hasIconBefore: r,
|
|
1064
1075
|
hasIconAfter: i
|
|
1065
1076
|
};
|
|
@@ -1129,11 +1140,11 @@ var Bt = C({
|
|
|
1129
1140
|
},
|
|
1130
1141
|
iconShow: {
|
|
1131
1142
|
type: [String, Object],
|
|
1132
|
-
default:
|
|
1143
|
+
default: K.showPassword
|
|
1133
1144
|
},
|
|
1134
1145
|
iconHide: {
|
|
1135
1146
|
type: [String, Object],
|
|
1136
|
-
default:
|
|
1147
|
+
default: K.hidePassword
|
|
1137
1148
|
}
|
|
1138
1149
|
},
|
|
1139
1150
|
emits: ["toggle-password"],
|
|
@@ -1335,21 +1346,21 @@ function Jt(e, t) {
|
|
|
1335
1346
|
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)
|
|
1336
1347
|
};
|
|
1337
1348
|
}
|
|
1338
|
-
function Yt(e, t =
|
|
1349
|
+
function Yt(e, t = V.local, n) {
|
|
1339
1350
|
let r = v();
|
|
1340
1351
|
n && (r.value = n);
|
|
1341
1352
|
let i;
|
|
1342
1353
|
return u(() => {
|
|
1343
1354
|
e && p(e, (e, n) => {
|
|
1344
|
-
let a = w(t) ===
|
|
1345
|
-
n && n !== e && a.removeItem(n), e ? (i =
|
|
1355
|
+
let a = w(t) === V.session ? sessionStorage : localStorage;
|
|
1356
|
+
n && n !== e && a.removeItem(n), e ? (i = Te(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
|
|
1346
1357
|
}, { immediate: !0 }), ge(t) && p(t, (t, n) => {
|
|
1347
1358
|
if (e?.value) {
|
|
1348
1359
|
if (t) {
|
|
1349
|
-
let n = t ===
|
|
1350
|
-
i =
|
|
1360
|
+
let n = t === V.session ? sessionStorage : localStorage;
|
|
1361
|
+
i = Te(e.value, i?.value ?? r.value, n);
|
|
1351
1362
|
}
|
|
1352
|
-
n && n !== t && (n ===
|
|
1363
|
+
n && n !== t && (n === V.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
1353
1364
|
}
|
|
1354
1365
|
});
|
|
1355
1366
|
}), p(r, (e) => {
|
|
@@ -1376,7 +1387,7 @@ var Xt = ["for"], Zt = {
|
|
|
1376
1387
|
props: Rt,
|
|
1377
1388
|
emits: Lt,
|
|
1378
1389
|
setup(e, { expose: t, emit: n }) {
|
|
1379
|
-
let o = e, s = n, l = ie(), d = It(), ee = Gt("VvInputText", Rt, 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: O, storageType: ve, type: k, unit: ye, valid: be } = _e(o), xe = Ct(ue), Se = y(() => `${xe.value}-hint`), Ce = y(() => o.floating &&
|
|
1390
|
+
let o = e, s = n, l = ie(), d = It(), ee = Gt("VvInputText", Rt, 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: O, storageType: ve, type: k, unit: ye, valid: be } = _e(o), xe = Ct(ue), Se = y(() => `${xe.value}-hint`), Ce = y(() => o.floating && R(o.placeholder) ? " " : o.placeholder), { model: A, flush: j } = Kt(C, s, ne), Te = y(() => {
|
|
1380
1391
|
let e = Number(O.value);
|
|
1381
1392
|
return !Number.isNaN(e) && e % 60 != 0;
|
|
1382
1393
|
}), Ee = /^-0?[.,]?[0*]?$/, De = /./, Oe = /^-$|^$/, ke = v(!1), M = v(), N = v(), { el: Ae, mask: je, typed: P, masked: F, unmasked: I } = Me(y(() => {
|
|
@@ -1395,7 +1406,7 @@ var Xt = ["for"], Zt = {
|
|
|
1395
1406
|
return;
|
|
1396
1407
|
}
|
|
1397
1408
|
if (k.value === $.DATETIME_LOCAL || k.value === $.DATE || k.value === $.TIME || k.value === $.MONTH) {
|
|
1398
|
-
|
|
1409
|
+
Le();
|
|
1399
1410
|
return;
|
|
1400
1411
|
}
|
|
1401
1412
|
!A.value && !I.value || (A.value = I.value);
|
|
@@ -1415,7 +1426,7 @@ var Xt = ["for"], Zt = {
|
|
|
1415
1426
|
A.value = t;
|
|
1416
1427
|
} else A.value = t.toISOString();
|
|
1417
1428
|
}
|
|
1418
|
-
function
|
|
1429
|
+
function Le() {
|
|
1419
1430
|
let e = k.value;
|
|
1420
1431
|
if (!P.value) {
|
|
1421
1432
|
if (!A.value) return;
|
|
@@ -1431,9 +1442,9 @@ var Xt = ["for"], Zt = {
|
|
|
1431
1442
|
return;
|
|
1432
1443
|
}
|
|
1433
1444
|
let t = P.value;
|
|
1434
|
-
t instanceof Date || (t =
|
|
1445
|
+
t instanceof Date || (t = L(P.value, e)), M.value || N.value ? Ie(t) : A.value = Pe(t, e, Te.value);
|
|
1435
1446
|
}
|
|
1436
|
-
function
|
|
1447
|
+
function Re(e) {
|
|
1437
1448
|
if (e == null) P.value = "", I.value = "";
|
|
1438
1449
|
else if (o.iMask?.mask === Date) P.value = e instanceof Date ? e : new Date(e);
|
|
1439
1450
|
else if (!(k.value === $.NUMBER && Ee.test(I.value) && e === 0)) {
|
|
@@ -1441,7 +1452,7 @@ var Xt = ["for"], Zt = {
|
|
|
1441
1452
|
if (e instanceof Date || Ne(e)) {
|
|
1442
1453
|
if (e instanceof Date ? (M.value = e, N.value = void 0) : (N.value = e, M.value = void 0), ft.value) {
|
|
1443
1454
|
let t = new Date(e);
|
|
1444
|
-
P.value = Pe(t, ft.value,
|
|
1455
|
+
P.value = Pe(t, ft.value, Te.value), I.value = P.value;
|
|
1445
1456
|
}
|
|
1446
1457
|
return;
|
|
1447
1458
|
}
|
|
@@ -1451,79 +1462,79 @@ var Xt = ["for"], Zt = {
|
|
|
1451
1462
|
}
|
|
1452
1463
|
}
|
|
1453
1464
|
u(() => {
|
|
1454
|
-
je.value && (ke.value = !0,
|
|
1465
|
+
je.value && (ke.value = !0, Re(o.modelValue));
|
|
1455
1466
|
}), p(() => o.modelValue, (e) => {
|
|
1456
|
-
je.value &&
|
|
1467
|
+
je.value && Re(e);
|
|
1457
1468
|
}), p(() => o.masked, (e) => {
|
|
1458
1469
|
F.value = e ?? "";
|
|
1459
1470
|
});
|
|
1460
|
-
let
|
|
1471
|
+
let z = Ae, B = v(), V = v(), Be = v();
|
|
1461
1472
|
t({
|
|
1462
|
-
$input:
|
|
1463
|
-
$inner:
|
|
1464
|
-
$wrapper:
|
|
1465
|
-
flush:
|
|
1473
|
+
$input: z,
|
|
1474
|
+
$inner: B,
|
|
1475
|
+
$wrapper: V,
|
|
1476
|
+
flush: j
|
|
1466
1477
|
});
|
|
1467
|
-
let { focused:
|
|
1468
|
-
function
|
|
1469
|
-
e ?
|
|
1478
|
+
let { focused: H } = qt(z, s), Ve = y(() => H.value && !o.disabled && !o.readonly);
|
|
1479
|
+
function He(e) {
|
|
1480
|
+
e ? Ue() : We();
|
|
1470
1481
|
}
|
|
1471
|
-
function
|
|
1472
|
-
ee.value.selectOnFocus &&
|
|
1482
|
+
function Ue() {
|
|
1483
|
+
ee.value.selectOnFocus && z.value && z.value.select(), Z.value.size && Be.value?.show();
|
|
1473
1484
|
}
|
|
1474
|
-
function
|
|
1475
|
-
let e =
|
|
1476
|
-
if (!X.value ||
|
|
1485
|
+
function We() {
|
|
1486
|
+
let e = j() ?? A.value;
|
|
1487
|
+
if (!X.value || R(e)) return;
|
|
1477
1488
|
let t = o.maxSuggestions;
|
|
1478
1489
|
X.value.size >= t && !X.value.has(e) && (X.value = new Set([...X.value].slice(X.value.size - t + 1))), X.value.add(e);
|
|
1479
1490
|
}
|
|
1480
|
-
p(
|
|
1481
|
-
let
|
|
1482
|
-
p(
|
|
1483
|
-
e && o.autofocus && !o.disabled && !o.readonly && (
|
|
1491
|
+
p(Ve, He);
|
|
1492
|
+
let Ge = we(z);
|
|
1493
|
+
p(Ge, (e) => {
|
|
1494
|
+
e && o.autofocus && !o.disabled && !o.readonly && (H.value = !0);
|
|
1484
1495
|
});
|
|
1485
|
-
let
|
|
1486
|
-
function
|
|
1487
|
-
|
|
1496
|
+
let U = v(!1), W = y(() => o.type === $.PASSWORD);
|
|
1497
|
+
function G() {
|
|
1498
|
+
U.value = !U.value;
|
|
1488
1499
|
}
|
|
1489
|
-
let
|
|
1490
|
-
function
|
|
1491
|
-
if (!
|
|
1500
|
+
let Ke = y(() => dt.value), qe = y(() => o.type === $.NUMBER);
|
|
1501
|
+
function Je() {
|
|
1502
|
+
if (!J.value) {
|
|
1492
1503
|
if (o.iMask) {
|
|
1493
1504
|
P.value = Number(P.value) + Number(O?.value ?? 1);
|
|
1494
1505
|
return;
|
|
1495
1506
|
}
|
|
1496
|
-
|
|
1507
|
+
z.value.stepUp(), A.value = Number(z.value.value);
|
|
1497
1508
|
}
|
|
1498
1509
|
}
|
|
1499
|
-
function
|
|
1500
|
-
if (!
|
|
1510
|
+
function Ye() {
|
|
1511
|
+
if (!J.value) {
|
|
1501
1512
|
if (o.iMask) {
|
|
1502
1513
|
P.value = Number(P.value) - Number(O?.value ?? 1);
|
|
1503
1514
|
return;
|
|
1504
1515
|
}
|
|
1505
|
-
|
|
1516
|
+
z.value.stepDown(), A.value = Number(z.value.value);
|
|
1506
1517
|
}
|
|
1507
1518
|
}
|
|
1508
|
-
let
|
|
1509
|
-
function
|
|
1519
|
+
let Xe = y(() => o.type === $.SEARCH);
|
|
1520
|
+
function Ze() {
|
|
1510
1521
|
A.value = "", s("clear");
|
|
1511
1522
|
}
|
|
1512
|
-
let { hasIconBefore:
|
|
1513
|
-
if (
|
|
1523
|
+
let { hasIconBefore: Qe, hasIconAfter: $e } = zt(oe, ce), q = y(() => {
|
|
1524
|
+
if ($e.value !== void 0) return $e.value;
|
|
1514
1525
|
switch (o.type) {
|
|
1515
|
-
case $.COLOR: return { name:
|
|
1526
|
+
case $.COLOR: return { name: K.showColorPicker };
|
|
1516
1527
|
case $.DATE:
|
|
1517
1528
|
case $.DATETIME_LOCAL:
|
|
1518
1529
|
case $.WEEK:
|
|
1519
|
-
case $.MONTH: return { name:
|
|
1520
|
-
case $.TIME: return { name:
|
|
1530
|
+
case $.MONTH: return { name: K.showDatePicker };
|
|
1531
|
+
case $.TIME: return { name: K.showTimePicker };
|
|
1521
1532
|
}
|
|
1522
|
-
}), { hasIcon:
|
|
1533
|
+
}), { hasIcon: et } = zt(le), { formatted: tt } = Jt(A, {
|
|
1523
1534
|
mode: m.value,
|
|
1524
1535
|
upperLimit: Number(he?.value),
|
|
1525
1536
|
lowerLimit: Number(ge?.value)
|
|
1526
|
-
}),
|
|
1537
|
+
}), J = y(() => o.disabled || o.readonly), nt = y(() => J.value ? -1 : o.tabindex), Y = y(() => !R(C?.value)), rt = y(() => {
|
|
1527
1538
|
if (de.value === !0) return !0;
|
|
1528
1539
|
if (be.value === !0) return !1;
|
|
1529
1540
|
}), X = Yt(y(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), ve, /* @__PURE__ */ new Set()), Z = y(() => {
|
|
@@ -1531,9 +1542,9 @@ var Xt = ["for"], Zt = {
|
|
|
1531
1542
|
if (X.value) for (let t of X.value) e.set(t, { isFromStorage: !0 });
|
|
1532
1543
|
if (o.suggestions) for (let t of o.suggestions) e.set(t, { isFromStorage: !1 });
|
|
1533
1544
|
return e;
|
|
1534
|
-
}), it = y(() => Z.value.size === 0 ? [] : [...Z.value.entries()].filter(([e]) =>
|
|
1545
|
+
}), it = y(() => Z.value.size === 0 ? [] : [...Z.value.entries()].filter(([e]) => R(A.value) || `${e}`.toLowerCase().includes(`${A.value}`.toLowerCase()) && e !== A.value).reverse().map(([e]) => e)), at = y(() => Z.value.size > 0);
|
|
1535
1546
|
function ot(e) {
|
|
1536
|
-
A.value = e,
|
|
1547
|
+
A.value = e, Be.value?.hide(), s("suggestion:selected", e);
|
|
1537
1548
|
}
|
|
1538
1549
|
function st(e) {
|
|
1539
1550
|
Z.value.get(e)?.isFromStorage && (X.value?.delete(e), s("suggestion:removed", e));
|
|
@@ -1545,11 +1556,11 @@ var Xt = ["for"], Zt = {
|
|
|
1545
1556
|
disabled: o.disabled,
|
|
1546
1557
|
required: o.required,
|
|
1547
1558
|
readonly: o.readonly,
|
|
1548
|
-
"icon-before": !!
|
|
1549
|
-
"icon-after": !!
|
|
1550
|
-
floating: o.floating && !
|
|
1551
|
-
dirty:
|
|
1552
|
-
focus:
|
|
1559
|
+
"icon-before": !!Qe.value,
|
|
1560
|
+
"icon-after": !!q.value,
|
|
1561
|
+
floating: o.floating && !R(o.label),
|
|
1562
|
+
dirty: Y.value,
|
|
1563
|
+
focus: Ve.value && !J.value,
|
|
1553
1564
|
"auto-width": o.autoWidth
|
|
1554
1565
|
}))), ut = y(() => [
|
|
1555
1566
|
$.TEXT,
|
|
@@ -1578,13 +1589,13 @@ var Xt = ["for"], Zt = {
|
|
|
1578
1589
|
[$.WEEK]: "9999-W52"
|
|
1579
1590
|
};
|
|
1580
1591
|
function ht(e) {
|
|
1581
|
-
if (!
|
|
1592
|
+
if (!R(e)) return (e instanceof Date || typeof e == "string" && Ne(e)) && ft.value ? Pe(e, ft.value, Te.value) || void 0 : String(e);
|
|
1582
1593
|
}
|
|
1583
1594
|
let gt = y(() => {
|
|
1584
|
-
let e =
|
|
1595
|
+
let e = W.value && U.value || Ke.value && !Y.value && !H.value || o.iMask ? $.TEXT : o.type, t = {
|
|
1585
1596
|
type: e,
|
|
1586
1597
|
name: o.name,
|
|
1587
|
-
tabindex:
|
|
1598
|
+
tabindex: nt.value,
|
|
1588
1599
|
disabled: o.disabled,
|
|
1589
1600
|
readonly: o.readonly,
|
|
1590
1601
|
required: o.required,
|
|
@@ -1601,13 +1612,13 @@ var Xt = ["for"], Zt = {
|
|
|
1601
1612
|
valid: o.valid,
|
|
1602
1613
|
invalid: o.invalid,
|
|
1603
1614
|
modelValue: o.modelValue,
|
|
1604
|
-
togglePassword:
|
|
1605
|
-
stepUp:
|
|
1606
|
-
stepDown:
|
|
1607
|
-
clear:
|
|
1608
|
-
})), { HintSlot: vt, hasHintLabelOrSlot: yt, hasInvalidLabelOrSlot: bt, hintSlotScope: xt } =
|
|
1615
|
+
togglePassword: G,
|
|
1616
|
+
stepUp: Je,
|
|
1617
|
+
stepDown: Ye,
|
|
1618
|
+
clear: Ze
|
|
1619
|
+
})), { HintSlot: vt, hasHintLabelOrSlot: yt, hasInvalidLabelOrSlot: bt, hintSlotScope: xt } = ze(ee, l), St = Ut($.PASSWORD, o, Y), wt = Ut($.NUMBER, o, Y), Tt = Ut($.SEARCH, o, Y);
|
|
1609
1620
|
function Et() {
|
|
1610
|
-
|
|
1621
|
+
J.value || (H.value = !0);
|
|
1611
1622
|
}
|
|
1612
1623
|
let Dt = y(() => {
|
|
1613
1624
|
if (o.autoWidth) return { width: A.value === void 0 ? void 0 : `${String(A.value).length + 1}ch` };
|
|
@@ -1615,13 +1626,13 @@ var Xt = ["for"], Zt = {
|
|
|
1615
1626
|
function kt(e) {
|
|
1616
1627
|
switch (e.code) {
|
|
1617
1628
|
case "ArrowUp":
|
|
1618
|
-
|
|
1629
|
+
qe.value && (Je(), e.preventDefault());
|
|
1619
1630
|
break;
|
|
1620
1631
|
case "ArrowDown":
|
|
1621
|
-
|
|
1632
|
+
qe.value && (Ye(), e.preventDefault());
|
|
1622
1633
|
break;
|
|
1623
1634
|
case "Enter":
|
|
1624
|
-
case "NumpadEnter":
|
|
1635
|
+
case "NumpadEnter": j();
|
|
1625
1636
|
}
|
|
1626
1637
|
s("keydown", e);
|
|
1627
1638
|
}
|
|
@@ -1633,42 +1644,42 @@ var Xt = ["for"], Zt = {
|
|
|
1633
1644
|
}, b(w(fe)), 9, Xt)) : S("v-if", !0),
|
|
1634
1645
|
_("div", {
|
|
1635
1646
|
ref_key: "wrapperEl",
|
|
1636
|
-
ref:
|
|
1647
|
+
ref: V,
|
|
1637
1648
|
class: "vv-input-text__wrapper"
|
|
1638
1649
|
}, [
|
|
1639
1650
|
e.$slots.before ? (D(), E("div", Zt, [c(e.$slots, "before", r(i(w(_t))))])) : S("v-if", !0),
|
|
1640
1651
|
_("div", {
|
|
1641
1652
|
ref_key: "innerEl",
|
|
1642
|
-
ref:
|
|
1653
|
+
ref: B,
|
|
1643
1654
|
class: "vv-input-text__inner",
|
|
1644
1655
|
onClick: ae(Et, ["stop"])
|
|
1645
1656
|
}, [
|
|
1646
|
-
w(
|
|
1657
|
+
w(Qe) ? (D(), h(Q, f({ key: 0 }, w(Qe), { class: "vv-input-text__icon" }), null, 16)) : S("v-if", !0),
|
|
1647
1658
|
_("input", f({
|
|
1648
1659
|
id: w(xe),
|
|
1649
1660
|
ref_key: "inputEl",
|
|
1650
|
-
ref:
|
|
1661
|
+
ref: z
|
|
1651
1662
|
}, w(gt), {
|
|
1652
1663
|
style: w(Dt),
|
|
1653
1664
|
onKeyup: t[0] ||= (e) => s("keyup", e),
|
|
1654
1665
|
onKeydown: kt,
|
|
1655
1666
|
onKeypress: t[1] ||= (e) => s("keypress", e)
|
|
1656
1667
|
}), null, 16, Qt),
|
|
1657
|
-
(w(ye) || e.$slots.unit) && w(
|
|
1668
|
+
(w(ye) || e.$slots.unit) && w(Y) ? (D(), E("div", $t, [c(e.$slots, "unit", r(i(w(_t))), () => [T(b(w(ye)), 1)])])) : S("v-if", !0)
|
|
1658
1669
|
], 512),
|
|
1659
|
-
w(
|
|
1670
|
+
w(q) ? (D(), h(Q, f({ key: 1 }, w(q), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : w(W) && !e.hideActions && !w(J) ? (D(), h(w(St), {
|
|
1660
1671
|
key: 2,
|
|
1661
|
-
onTogglePassword:
|
|
1662
|
-
})) : w(
|
|
1672
|
+
onTogglePassword: G
|
|
1673
|
+
})) : w(qe) && !e.hideActions && !w(J) ? (D(), h(w(wt), {
|
|
1663
1674
|
key: 3,
|
|
1664
|
-
onStepUp:
|
|
1665
|
-
onStepDown:
|
|
1666
|
-
})) : w(
|
|
1675
|
+
onStepUp: Je,
|
|
1676
|
+
onStepDown: Ye
|
|
1677
|
+
})) : w(Xe) && !e.hideActions && !w(J) ? (D(), h(w(Tt), {
|
|
1667
1678
|
key: 4,
|
|
1668
|
-
onClear:
|
|
1679
|
+
onClear: Ze
|
|
1669
1680
|
})) : S("v-if", !0),
|
|
1670
1681
|
e.$slots.after ? (D(), E("div", en, [c(e.$slots, "after", r(i(w(_t))))])) : S("v-if", !0),
|
|
1671
|
-
w(m) ? (D(), E("span", tn, [c(e.$slots, "count", r(i(w(_t))), () => [T(b(w(
|
|
1682
|
+
w(m) ? (D(), E("span", tn, [c(e.$slots, "count", r(i(w(_t))), () => [T(b(w(tt)), 1)])])) : S("v-if", !0)
|
|
1672
1683
|
], 512),
|
|
1673
1684
|
te(w(vt), {
|
|
1674
1685
|
id: w(Se),
|
|
@@ -1698,8 +1709,8 @@ var Xt = ["for"], Zt = {
|
|
|
1698
1709
|
w(at) ? (D(), h(jt, {
|
|
1699
1710
|
key: 1,
|
|
1700
1711
|
ref_key: "suggestionsDropdownEl",
|
|
1701
|
-
ref:
|
|
1702
|
-
reference: w(
|
|
1712
|
+
ref: Be,
|
|
1713
|
+
reference: w(V),
|
|
1703
1714
|
"autofocus-first": !1,
|
|
1704
1715
|
"trigger-width": !0,
|
|
1705
1716
|
"top-layer": w(ee).topLayer
|
|
@@ -1708,14 +1719,14 @@ var Xt = ["for"], Zt = {
|
|
|
1708
1719
|
key: String(t),
|
|
1709
1720
|
onClick: ae((e) => ot(t), ["stop"])
|
|
1710
1721
|
}, {
|
|
1711
|
-
default: x(() => [_("div", nn, [c(e.$slots, "suggestion", f({ ref_for: !0 }, { value: t }), () => [T(b(t), 1)])]), w(Z).get(t)?.isFromStorage && w(
|
|
1722
|
+
default: x(() => [_("div", nn, [c(e.$slots, "suggestion", f({ ref_for: !0 }, { value: t }), () => [T(b(t), 1)])]), w(Z).get(t)?.isFromStorage && w(et) ? (D(), E("button", {
|
|
1712
1723
|
key: 0,
|
|
1713
1724
|
type: "button",
|
|
1714
1725
|
tabindex: "-1",
|
|
1715
1726
|
class: "cursor-pointer",
|
|
1716
1727
|
title: w(pe),
|
|
1717
1728
|
onClick: ae((e) => st(t), ["stop"])
|
|
1718
|
-
}, [te(Q, f({ ref_for: !0 }, w(
|
|
1729
|
+
}, [te(Q, f({ ref_for: !0 }, w(et)), null, 16)], 8, rn)) : S("v-if", !0)]),
|
|
1719
1730
|
_: 2
|
|
1720
1731
|
}, 1032, ["onClick"]))), 128))]),
|
|
1721
1732
|
_: 3
|
|
@@ -1725,4 +1736,4 @@ var Xt = ["for"], Zt = {
|
|
|
1725
1736
|
});
|
|
1726
1737
|
export { an as default };
|
|
1727
1738
|
|
|
1728
|
-
//# sourceMappingURL=VvInputText.es-
|
|
1739
|
+
//# sourceMappingURL=VvInputText.es-Dzf_mjzr.js.map
|