@8wave/ai-elements 0.103.0-beta.3 → 0.103.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/PkLazyImg-CyeqD59M.js +34 -0
- package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
- package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
- package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
- package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
- package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
- package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
- package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
- package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
- package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
- package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
- package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
- package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
- package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
- package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
- package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
- package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
- package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
- package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
- package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
- package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
- package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
- package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
- package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
- package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
- package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
- package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
- package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
- package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
- package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
- package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
- package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
- package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
- package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
- package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
- package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
- package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
- package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
- package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
- package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
- package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
- package/dist/ai-elements.es.js +1861 -1861
- 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-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
- package/dist-vue/index.js +10 -10
- package/package.json +2 -2
- package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
- package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
- package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
- package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
- package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
- package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
- package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
- package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
- package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
- package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
- package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
- package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
- package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
- package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n,
|
|
2
|
-
import { a as
|
|
3
|
-
import { c as
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as
|
|
6
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
if (typeof e != "string" || !
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, L as c, M as l, N as u, O as d, Q as f, R as p, St as ee, T as m, Tt as h, U as te, W as ne, X as g, _, b as re, bt as v, c as ie, ct as ae, d as oe, et as se, g as y, h as b, it as ce, k as x, m as S, pt as C, q as le, r as ue, t as de, u as w, ut as fe, v as T, vt as pe, wt as me, x as he, xt as ge, y as _e, yt as ve, z as ye } from "./vue.runtime.esm-bundler-B3bThTaf.js";
|
|
2
|
+
import { a as E, i as D, t as O } from "./iconify-6ObncgfH.js";
|
|
3
|
+
import { c as be, d as xe, l as Se, m as Ce, n as we, o as k, p as Te, r as Ee, s as De } from "./dist-C5Y-NI3i.js";
|
|
4
|
+
import { a as Oe, c as ke, i as Ae, l as je, n as A, o as j, r as Me, s as Ne, t as M } from "./floating-ui.vue-CoA4oagI.js";
|
|
5
|
+
import { t as Pe } from "./esm-BTbGj6W3.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.18_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_fb2fc569fa47f04da7f3d790d6448706/node_modules/@volverjs/ui-vue/dist/components/VvInputText/VvInputText.es.js
|
|
7
|
+
d(), ue(), ce(), ge();
|
|
8
|
+
var N = (e) => e.toString().padStart(2, "0"), P = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
9
|
+
function Fe(e) {
|
|
10
|
+
if (typeof e != "string" || !P.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 Ie(e, t = "date", n) {
|
|
15
|
+
if (typeof e == "string" && !Fe(e)) return "";
|
|
16
16
|
let r = new Date(e);
|
|
17
17
|
if (Number.isNaN(r.getTime())) return "";
|
|
18
|
-
let i = `${r.getFullYear()}-${
|
|
19
|
-
if (t === "month" || (i += `-${
|
|
20
|
-
let a = n ? `${
|
|
18
|
+
let i = `${r.getFullYear()}-${N(r.getMonth() + 1)}`;
|
|
19
|
+
if (t === "month" || (i += `-${N(r.getDate())}`, t === "date")) return i;
|
|
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
|
|
24
|
-
function
|
|
23
|
+
var Le = /^\d{4}-\d{2}-\d{2}$/, F = /^\d{4}-\d{2}$/, I = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, L = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
|
|
24
|
+
function R(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 (!Le.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 (!F.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 (!
|
|
37
|
-
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${
|
|
36
|
+
if (!I.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
|
|
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 (!L.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
|
|
43
|
-
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(
|
|
42
|
+
function z(e) {
|
|
43
|
+
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(v(e));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function B(e) {
|
|
46
46
|
return typeof e == "string";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
48
|
+
function V(e) {
|
|
49
|
+
return Array.isArray(e) ? e.filter((e) => B(e)).join(" ") : e;
|
|
50
50
|
}
|
|
51
51
|
function Re(e, t) {
|
|
52
|
-
let n =
|
|
52
|
+
let n = S(() => ae(e) ? e.value : e), i = S(() => V(n.value.invalidLabel)), o = S(() => V(n.value.validLabel)), s = S(() => n.value.loadingLabel), c = S(() => n.value.hintLabel), l = S(() => !!(n.value.loading && (t.loading || s.value))), u = S(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = S(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = S(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = S(() => u.value || d.value || l.value || f.value);
|
|
53
53
|
return {
|
|
54
|
-
hasInvalidLabelOrSlot:
|
|
55
|
-
hasHintLabelOrSlot:
|
|
56
|
-
hasValidLabelOrSlot:
|
|
57
|
-
hasLoadingLabelOrSlot:
|
|
58
|
-
hintSlotScope:
|
|
54
|
+
hasInvalidLabelOrSlot: u,
|
|
55
|
+
hasHintLabelOrSlot: f,
|
|
56
|
+
hasValidLabelOrSlot: d,
|
|
57
|
+
hasLoadingLabelOrSlot: l,
|
|
58
|
+
hintSlotScope: S(() => ({
|
|
59
59
|
modelValue: n.value.modelValue,
|
|
60
60
|
valid: n.value.valid,
|
|
61
61
|
invalid: n.value.invalid,
|
|
62
62
|
loading: n.value.loading
|
|
63
63
|
})),
|
|
64
|
-
HintSlot:
|
|
64
|
+
HintSlot: r({
|
|
65
65
|
name: "HintSlot",
|
|
66
66
|
props: { tag: {
|
|
67
67
|
type: String,
|
|
@@ -69,21 +69,21 @@ function Re(e, t) {
|
|
|
69
69
|
} },
|
|
70
70
|
setup() {
|
|
71
71
|
return {
|
|
72
|
-
isVisible:
|
|
72
|
+
isVisible: p,
|
|
73
73
|
invalidLabel: i,
|
|
74
|
-
validLabel:
|
|
75
|
-
loadingLabel:
|
|
76
|
-
hintLabel:
|
|
77
|
-
hasInvalidLabelOrSlot:
|
|
78
|
-
hasValidLabelOrSlot:
|
|
79
|
-
hasLoadingLabelOrSlot:
|
|
80
|
-
hasHintLabelOrSlot:
|
|
74
|
+
validLabel: o,
|
|
75
|
+
loadingLabel: s,
|
|
76
|
+
hintLabel: c,
|
|
77
|
+
hasInvalidLabelOrSlot: u,
|
|
78
|
+
hasValidLabelOrSlot: d,
|
|
79
|
+
hasLoadingLabelOrSlot: l,
|
|
80
|
+
hasHintLabelOrSlot: f
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
render() {
|
|
84
84
|
if (this.isVisible) {
|
|
85
85
|
let e;
|
|
86
|
-
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ?
|
|
86
|
+
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? a(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : a(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
@@ -409,10 +409,10 @@ var vt = {
|
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
function St(e) {
|
|
412
|
-
return
|
|
412
|
+
return S(() => String(e?.value || s()));
|
|
413
413
|
}
|
|
414
414
|
function Ct(e, t) {
|
|
415
|
-
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r =
|
|
415
|
+
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = S(() => n && ve(t)), i = S(() => r.value ? "manual" : void 0);
|
|
416
416
|
function a() {
|
|
417
417
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
418
418
|
}
|
|
@@ -434,46 +434,46 @@ function Ct(e, t) {
|
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
436
|
function wt({ reference: e, id: t, expanded: n, aria: i }) {
|
|
437
|
-
let
|
|
437
|
+
let o = je();
|
|
438
438
|
return {
|
|
439
|
-
bus:
|
|
440
|
-
component:
|
|
439
|
+
bus: o,
|
|
440
|
+
component: r({
|
|
441
441
|
name: "VvDropdownTriggerProvider",
|
|
442
442
|
setup() {
|
|
443
|
-
|
|
443
|
+
p(Ke, {
|
|
444
444
|
reference: e,
|
|
445
445
|
id: t,
|
|
446
446
|
expanded: n,
|
|
447
447
|
aria: i,
|
|
448
|
-
bus:
|
|
448
|
+
bus: o
|
|
449
449
|
});
|
|
450
450
|
},
|
|
451
451
|
render() {
|
|
452
|
-
return
|
|
452
|
+
return a(oe, {}, this.$slots.default?.());
|
|
453
453
|
}
|
|
454
454
|
})
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
457
|
function Tt({ role: e, ...t }) {
|
|
458
|
-
let n =
|
|
459
|
-
return
|
|
458
|
+
let n = S(() => e.value === G.listbox ? We.option : We.presentation);
|
|
459
|
+
return p(qe, {
|
|
460
460
|
role: n,
|
|
461
461
|
...t
|
|
462
462
|
}), { itemRole: n };
|
|
463
463
|
}
|
|
464
464
|
function Et({ expanded: e }) {
|
|
465
|
-
|
|
466
|
-
role:
|
|
465
|
+
p(Je, {
|
|
466
|
+
role: C(Ue.menuitem),
|
|
467
467
|
expanded: e
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
function Dt(e, t, n) {
|
|
471
|
-
return
|
|
471
|
+
return S(() => {
|
|
472
472
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
473
473
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
474
474
|
t && (r[`${e}--${t}`] = !0);
|
|
475
475
|
}), n && Object.keys(n.value).forEach((t) => {
|
|
476
|
-
r[`${e}--${t}`] =
|
|
476
|
+
r[`${e}--${t}`] = v(n.value[t]);
|
|
477
477
|
}), r;
|
|
478
478
|
});
|
|
479
479
|
}
|
|
@@ -482,7 +482,7 @@ var Ot = ["popover"], kt = [
|
|
|
482
482
|
"tabindex",
|
|
483
483
|
"role",
|
|
484
484
|
"aria-labelledby"
|
|
485
|
-
], At = /* @__PURE__ */
|
|
485
|
+
], At = /* @__PURE__ */ r({
|
|
486
486
|
name: "VvDropdown",
|
|
487
487
|
inheritAttrs: !1,
|
|
488
488
|
props: yt,
|
|
@@ -503,124 +503,124 @@ var Ot = ["popover"], kt = [
|
|
|
503
503
|
"leave",
|
|
504
504
|
"leaveCancelled"
|
|
505
505
|
],
|
|
506
|
-
setup(t, { expose:
|
|
507
|
-
let
|
|
508
|
-
get: () =>
|
|
506
|
+
setup(t, { expose: r, emit: a }) {
|
|
507
|
+
let s = t, d = a, { id: p } = pe(s), h = St(p), re = ne(), ae = C("auto"), y = C("auto"), ce = C(), x = C(), le = C(), ue = C(), w = S({
|
|
508
|
+
get: () => s.reference ?? ce.value,
|
|
509
509
|
set: (e) => {
|
|
510
|
-
|
|
510
|
+
ce.value = e;
|
|
511
511
|
}
|
|
512
|
-
}), { isTopLayer: fe, popover:
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
}), { isTopLayer: fe, popover: ge, show: _e, hide: ve } = Ct(x, () => s.topLayer), ye = S(() => fe.value ? ze.fixed : s.strategy), E = C(!1);
|
|
513
|
+
o(() => {
|
|
514
|
+
xe(x.value, () => {
|
|
515
|
+
E.value = globalThis.getComputedStyle(x.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
516
516
|
}, {
|
|
517
517
|
attributeFilter: ["style"],
|
|
518
518
|
window: globalThis.window
|
|
519
519
|
});
|
|
520
520
|
});
|
|
521
|
-
function
|
|
521
|
+
function D(e, t, n) {
|
|
522
522
|
return typeof e == "boolean" ? t() : n(e);
|
|
523
523
|
}
|
|
524
|
-
let
|
|
524
|
+
let O = S(() => {
|
|
525
525
|
let e = [];
|
|
526
|
-
if (
|
|
526
|
+
if (s.autoPlacement ? e.push(D(s.autoPlacement, () => Me(), (e) => Me(e))) : s.flip && e.push(D(s.flip, () => Oe({ fallbackStrategy: "initialPlacement" }), (e) => Oe(e))), s.shift && e.push(D(s.shift, () => Ne(), (e) => Ne(e))), s.size) {
|
|
527
527
|
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
528
|
-
ae.value = `${e}px`,
|
|
528
|
+
ae.value = `${e}px`, y.value = `${t}px`;
|
|
529
529
|
};
|
|
530
|
-
e.push(
|
|
530
|
+
e.push(D(s.size, () => ke({ apply: t }), (e) => ke({
|
|
531
531
|
...e,
|
|
532
532
|
apply: t
|
|
533
533
|
})));
|
|
534
534
|
}
|
|
535
|
-
return
|
|
536
|
-
}), { x:
|
|
537
|
-
whileElementsMounted: (...e) =>
|
|
538
|
-
placement:
|
|
539
|
-
strategy:
|
|
540
|
-
middleware:
|
|
541
|
-
}),
|
|
542
|
-
if (
|
|
543
|
-
let e =
|
|
535
|
+
return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? j(Number(s.offset)) : j(s.offset)), s.arrow && e.push(M({ element: le })), e;
|
|
536
|
+
}), { x: be, y: Te, middlewareData: De, placement: je, strategy: Pe } = A(w, x, {
|
|
537
|
+
whileElementsMounted: (...e) => Ae(...e, { animationFrame: ye.value === ze.fixed }),
|
|
538
|
+
placement: S(() => s.placement),
|
|
539
|
+
strategy: ye,
|
|
540
|
+
middleware: O
|
|
541
|
+
}), N = S(() => {
|
|
542
|
+
if (E.value) return;
|
|
543
|
+
let e = s.triggerWidth && w.value ? `${w.value?.offsetWidth}px` : void 0;
|
|
544
544
|
return {
|
|
545
|
-
position:
|
|
546
|
-
top: `${
|
|
547
|
-
left: `${
|
|
545
|
+
position: Pe.value,
|
|
546
|
+
top: `${Te.value ?? 0}px`,
|
|
547
|
+
left: `${be.value ?? 0}px`,
|
|
548
548
|
maxWidth: e ? void 0 : ae.value,
|
|
549
|
-
maxHeight:
|
|
549
|
+
maxHeight: y.value,
|
|
550
550
|
width: e
|
|
551
551
|
};
|
|
552
|
-
}),
|
|
553
|
-
if (
|
|
552
|
+
}), P = S(() => je.value.split("-")[0]), Fe = S(() => {
|
|
553
|
+
if (E.value) return;
|
|
554
554
|
let e = {
|
|
555
555
|
[U.top]: U.bottom,
|
|
556
556
|
[U.right]: U.left,
|
|
557
557
|
[U.bottom]: U.top,
|
|
558
558
|
[U.left]: U.right
|
|
559
|
-
}[
|
|
559
|
+
}[P.value];
|
|
560
560
|
return {
|
|
561
|
-
left:
|
|
562
|
-
top:
|
|
561
|
+
left: De.value.arrow?.x === void 0 ? void 0 : `${De.value.arrow?.x}px`,
|
|
562
|
+
top: De.value.arrow?.y === void 0 ? void 0 : `${De.value.arrow?.y}px`,
|
|
563
563
|
[e]: `${-(le.value?.offsetWidth ?? 0) / 2}px`
|
|
564
564
|
};
|
|
565
|
-
}),
|
|
566
|
-
get: () =>
|
|
565
|
+
}), Ie = Ce(s, "modelValue", d), Le = C(!1), F = S({
|
|
566
|
+
get: () => Ie.value ?? Le.value,
|
|
567
567
|
set: (e) => {
|
|
568
|
-
if (
|
|
569
|
-
|
|
568
|
+
if (Ie.value === void 0) {
|
|
569
|
+
Le.value = e;
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
Ie.value = e;
|
|
573
573
|
}
|
|
574
574
|
});
|
|
575
|
-
|
|
576
|
-
|
|
575
|
+
f(() => {
|
|
576
|
+
F.value && _e();
|
|
577
577
|
});
|
|
578
|
+
function I() {
|
|
579
|
+
F.value = !0;
|
|
580
|
+
}
|
|
578
581
|
function L() {
|
|
579
|
-
|
|
582
|
+
F.value = !1;
|
|
580
583
|
}
|
|
581
584
|
function R() {
|
|
582
|
-
|
|
585
|
+
F.value = !F.value;
|
|
583
586
|
}
|
|
584
|
-
function z() {
|
|
585
|
-
|
|
587
|
+
function z(e) {
|
|
588
|
+
w.value = e;
|
|
586
589
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
}, { ignore: [x] });
|
|
593
|
-
let V = y(() => x.value?.getAttribute?.("id") ?? void 0), Le = y(() => ({
|
|
594
|
-
"aria-controls": re.value,
|
|
590
|
+
we(x, () => {
|
|
591
|
+
!s.keepOpen && F.value && (F.value = !1);
|
|
592
|
+
}, { ignore: [w] });
|
|
593
|
+
let B = S(() => w.value?.getAttribute?.("id") ?? void 0), V = S(() => ({
|
|
594
|
+
"aria-controls": h.value,
|
|
595
595
|
"aria-haspopup": !0,
|
|
596
|
-
"aria-expanded":
|
|
596
|
+
"aria-expanded": F.value
|
|
597
597
|
})), { component: Re, bus: H } = wt({
|
|
598
|
-
reference:
|
|
599
|
-
id:
|
|
600
|
-
expanded:
|
|
601
|
-
aria:
|
|
598
|
+
reference: w,
|
|
599
|
+
id: h,
|
|
600
|
+
expanded: F,
|
|
601
|
+
aria: V
|
|
602
602
|
});
|
|
603
|
-
H.on("click",
|
|
604
|
-
let { role: Be, modifiers: Ve } =
|
|
603
|
+
H.on("click", R);
|
|
604
|
+
let { role: Be, modifiers: Ve } = pe(s), He = Dt("vv-dropdown", Ve, S(() => ({ arrow: s.arrow }))), { focused: W } = Se(x);
|
|
605
605
|
function Ue(e) {
|
|
606
606
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
607
607
|
}
|
|
608
608
|
function G() {
|
|
609
|
-
|
|
610
|
-
let e = Ue(
|
|
609
|
+
u(() => {
|
|
610
|
+
let e = Ue(x.value);
|
|
611
611
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
614
|
function We() {
|
|
615
|
-
|
|
615
|
+
u(() => {
|
|
616
616
|
let e = Ue(ue.value);
|
|
617
617
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
function Ge() {
|
|
621
|
-
|
|
621
|
+
u(() => {
|
|
622
622
|
if (W.value) {
|
|
623
|
-
let e = Ue(
|
|
623
|
+
let e = Ue(x.value);
|
|
624
624
|
if (e.length === 0 || !document.activeElement) return;
|
|
625
625
|
let t = e.indexOf(document.activeElement);
|
|
626
626
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
@@ -628,9 +628,9 @@ var Ot = ["popover"], kt = [
|
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
630
|
function Ke() {
|
|
631
|
-
|
|
631
|
+
u(() => {
|
|
632
632
|
if (W.value) {
|
|
633
|
-
let e = Ue(
|
|
633
|
+
let e = Ue(x.value);
|
|
634
634
|
if (e.length === 0 || !document.activeElement) return;
|
|
635
635
|
let t = e.indexOf(document.activeElement);
|
|
636
636
|
if (t > 0) {
|
|
@@ -641,160 +641,160 @@ var Ot = ["popover"], kt = [
|
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
|
-
|
|
645
|
-
e &&
|
|
646
|
-
}),
|
|
647
|
-
toggle:
|
|
648
|
-
show:
|
|
649
|
-
hide:
|
|
650
|
-
init:
|
|
644
|
+
g(F, (e) => {
|
|
645
|
+
e && s.autofocusFirst && G();
|
|
646
|
+
}), r({
|
|
647
|
+
toggle: R,
|
|
648
|
+
show: I,
|
|
649
|
+
hide: L,
|
|
650
|
+
init: z,
|
|
651
651
|
focusFirst: G,
|
|
652
652
|
focusFirstListElement: We,
|
|
653
653
|
focusNext: Ge,
|
|
654
654
|
focusPrev: Ke,
|
|
655
|
-
customPosition:
|
|
655
|
+
customPosition: E
|
|
656
656
|
});
|
|
657
657
|
let { itemRole: qe } = Tt({
|
|
658
658
|
role: Be,
|
|
659
|
-
expanded:
|
|
659
|
+
expanded: F,
|
|
660
660
|
focused: W,
|
|
661
|
-
hovered:
|
|
661
|
+
hovered: k(x)
|
|
662
662
|
});
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}),
|
|
666
|
-
|
|
667
|
-
}),
|
|
668
|
-
|
|
669
|
-
}),
|
|
663
|
+
Ee("Escape", (e) => {
|
|
664
|
+
F.value && (e.preventDefault(), L());
|
|
665
|
+
}), Ee("ArrowDown", (e) => {
|
|
666
|
+
F.value && W.value && (e.preventDefault(), Ge());
|
|
667
|
+
}), Ee("ArrowUp", (e) => {
|
|
668
|
+
F.value && W.value && (e.preventDefault(), Ke());
|
|
669
|
+
}), Ee([" ", "Enter"], (e) => {
|
|
670
670
|
let t = e.target;
|
|
671
|
-
|
|
671
|
+
F.value && W.value && t && t?.click();
|
|
672
672
|
});
|
|
673
673
|
let Je = {
|
|
674
674
|
"before-enter": () => {
|
|
675
|
-
|
|
675
|
+
d(F.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
|
|
676
676
|
},
|
|
677
677
|
"after-leave": () => {
|
|
678
|
-
|
|
678
|
+
F.value || ve(), d(F.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
|
|
679
679
|
},
|
|
680
680
|
enter: () => {
|
|
681
|
-
|
|
681
|
+
d("enter");
|
|
682
682
|
},
|
|
683
683
|
"after-enter": () => {
|
|
684
|
-
|
|
684
|
+
d("afterEnter");
|
|
685
685
|
},
|
|
686
686
|
"enter-cancelled": () => {
|
|
687
|
-
|
|
687
|
+
d("enterCancelled");
|
|
688
688
|
},
|
|
689
689
|
"before-leave": () => {
|
|
690
|
-
|
|
690
|
+
d("beforeLeave");
|
|
691
691
|
},
|
|
692
692
|
leave: () => {
|
|
693
|
-
|
|
693
|
+
d("leave");
|
|
694
694
|
},
|
|
695
695
|
"leave-cancelled": () => {
|
|
696
|
-
|
|
696
|
+
d("leaveCancelled");
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
|
-
return (
|
|
700
|
-
default:
|
|
701
|
-
init:
|
|
702
|
-
show:
|
|
703
|
-
hide:
|
|
704
|
-
toggle:
|
|
705
|
-
expanded:
|
|
706
|
-
aria:
|
|
699
|
+
return (t, r) => (c(), T(oe, null, [he(v(Re), null, {
|
|
700
|
+
default: e(() => [n(t.$slots, "default", i(m({
|
|
701
|
+
init: z,
|
|
702
|
+
show: I,
|
|
703
|
+
hide: L,
|
|
704
|
+
toggle: R,
|
|
705
|
+
expanded: v(F),
|
|
706
|
+
aria: v(V)
|
|
707
707
|
})))]),
|
|
708
708
|
_: 3
|
|
709
|
-
}),
|
|
710
|
-
default:
|
|
709
|
+
}), he(de, l({ name: t.transitionName }, te(Je), { persisted: "" }), {
|
|
710
|
+
default: e(() => [se(b("div", {
|
|
711
711
|
ref_key: "floatingEl",
|
|
712
|
-
ref:
|
|
713
|
-
popover:
|
|
714
|
-
style:
|
|
715
|
-
class:
|
|
712
|
+
ref: x,
|
|
713
|
+
popover: v(ge),
|
|
714
|
+
style: me(v(N)),
|
|
715
|
+
class: ee(v(He))
|
|
716
716
|
}, [
|
|
717
|
-
|
|
717
|
+
s.arrow ? (c(), T("div", {
|
|
718
718
|
key: 0,
|
|
719
719
|
ref_key: "arrowEl",
|
|
720
720
|
ref: le,
|
|
721
|
-
style:
|
|
721
|
+
style: me(v(Fe)),
|
|
722
722
|
class: "vv-dropdown__arrow"
|
|
723
|
-
}, null, 4)) :
|
|
724
|
-
|
|
725
|
-
show:
|
|
726
|
-
hide:
|
|
727
|
-
toggle:
|
|
728
|
-
expanded:
|
|
723
|
+
}, null, 4)) : _("v-if", !0),
|
|
724
|
+
n(t.$slots, "before", i(m({
|
|
725
|
+
show: I,
|
|
726
|
+
hide: L,
|
|
727
|
+
toggle: R,
|
|
728
|
+
expanded: v(F)
|
|
729
729
|
}))),
|
|
730
|
-
|
|
731
|
-
id:
|
|
730
|
+
b("div", l(v(re), {
|
|
731
|
+
id: v(h),
|
|
732
732
|
ref_key: "listEl",
|
|
733
733
|
ref: ue,
|
|
734
|
-
tabindex:
|
|
735
|
-
role:
|
|
736
|
-
"aria-labelledby":
|
|
734
|
+
tabindex: v(F) ? void 0 : -1,
|
|
735
|
+
role: v(Be),
|
|
736
|
+
"aria-labelledby": v(B),
|
|
737
737
|
class: "vv-dropdown__list"
|
|
738
|
-
}), [
|
|
739
|
-
show:
|
|
740
|
-
hide:
|
|
741
|
-
toggle:
|
|
742
|
-
expanded:
|
|
743
|
-
role:
|
|
738
|
+
}), [n(t.$slots, "items", i(m({
|
|
739
|
+
show: I,
|
|
740
|
+
hide: L,
|
|
741
|
+
toggle: R,
|
|
742
|
+
expanded: v(F),
|
|
743
|
+
role: v(qe)
|
|
744
744
|
})))], 16, kt),
|
|
745
|
-
|
|
746
|
-
show:
|
|
747
|
-
hide:
|
|
748
|
-
toggle:
|
|
749
|
-
expanded:
|
|
745
|
+
n(t.$slots, "after", i(m({
|
|
746
|
+
show: I,
|
|
747
|
+
hide: L,
|
|
748
|
+
toggle: R,
|
|
749
|
+
expanded: v(F)
|
|
750
750
|
})))
|
|
751
|
-
], 14, Ot), [[
|
|
751
|
+
], 14, Ot), [[ie, v(F)]])]),
|
|
752
752
|
_: 3
|
|
753
753
|
}, 16, ["name"])], 64));
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
function jt() {
|
|
757
|
-
return
|
|
757
|
+
return x(qe, {});
|
|
758
758
|
}
|
|
759
|
-
var Mt = /* @__PURE__ */
|
|
759
|
+
var Mt = /* @__PURE__ */ r({
|
|
760
760
|
name: "VvDropdownItem",
|
|
761
761
|
props: bt,
|
|
762
762
|
setup(e) {
|
|
763
|
-
let t = e, { role:
|
|
764
|
-
Et({ expanded:
|
|
765
|
-
let
|
|
766
|
-
return
|
|
767
|
-
e && t.focusOnHover && (
|
|
768
|
-
}), (e, t) => (
|
|
763
|
+
let t = e, { role: r, expanded: i } = jt(), a = C(null);
|
|
764
|
+
Et({ expanded: i });
|
|
765
|
+
let o = k(a), { focused: s } = be(a), { focused: u } = Se(a);
|
|
766
|
+
return g(o, (e) => {
|
|
767
|
+
e && t.focusOnHover && (s.value = !0);
|
|
768
|
+
}), (e, t) => (c(), T("div", l({ role: v(r) }, {
|
|
769
769
|
ref_key: "element",
|
|
770
|
-
ref:
|
|
771
|
-
class: ["vv-dropdown__item", { "focus-visible":
|
|
772
|
-
}), [
|
|
770
|
+
ref: a,
|
|
771
|
+
class: ["vv-dropdown__item", { "focus-visible": v(s) || v(u) }]
|
|
772
|
+
}), [n(e.$slots, "default")], 16));
|
|
773
773
|
}
|
|
774
|
-
}), Nt = ["title"], Pt = /* @__PURE__ */
|
|
774
|
+
}), Nt = ["title"], Pt = /* @__PURE__ */ r({
|
|
775
775
|
name: "VvDropdownOption",
|
|
776
776
|
props: xt,
|
|
777
|
-
setup(
|
|
778
|
-
let
|
|
779
|
-
disabled:
|
|
780
|
-
selected:
|
|
781
|
-
unselectable:
|
|
782
|
-
}))),
|
|
783
|
-
return (
|
|
784
|
-
class:
|
|
785
|
-
tabindex:
|
|
786
|
-
"aria-selected":
|
|
787
|
-
"aria-disabled":
|
|
788
|
-
"focus-on-hover":
|
|
777
|
+
setup(t) {
|
|
778
|
+
let r = t, { modifiers: a } = pe(r), o = Dt("vv-dropdown-option", a, S(() => ({
|
|
779
|
+
disabled: r.disabled,
|
|
780
|
+
selected: r.selected,
|
|
781
|
+
unselectable: r.unselectable && r.selected
|
|
782
|
+
}))), s = S(() => r.selected ? r.unselectable ? r.deselectHintLabel : r.selectedHintLabel : r.disabled ? "" : r.selectHintLabel);
|
|
783
|
+
return (t, r) => (c(), y(Mt, {
|
|
784
|
+
class: ee(v(o)),
|
|
785
|
+
tabindex: t.disabled ? -1 : 0,
|
|
786
|
+
"aria-selected": t.selected,
|
|
787
|
+
"aria-disabled": t.disabled,
|
|
788
|
+
"focus-on-hover": t.focusOnHover
|
|
789
789
|
}, {
|
|
790
|
-
default:
|
|
790
|
+
default: e(() => [n(t.$slots, "default"), b("span", {
|
|
791
791
|
class: "vv-dropdown-option__hint",
|
|
792
|
-
title:
|
|
793
|
-
}, [
|
|
794
|
-
disabled:
|
|
795
|
-
selected:
|
|
796
|
-
unselectable:
|
|
797
|
-
})), () => [
|
|
792
|
+
title: v(s)
|
|
793
|
+
}, [n(t.$slots, "hint", i(m({
|
|
794
|
+
disabled: t.disabled,
|
|
795
|
+
selected: t.selected,
|
|
796
|
+
unselectable: t.unselectable
|
|
797
|
+
})), () => [re(h(v(s)), 1)])], 8, Nt)]),
|
|
798
798
|
_: 3
|
|
799
799
|
}, 8, [
|
|
800
800
|
"class",
|
|
@@ -806,11 +806,11 @@ var Mt = /* @__PURE__ */ w({
|
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
808
|
function Ft() {
|
|
809
|
-
return
|
|
809
|
+
return x(Ge, void 0);
|
|
810
810
|
}
|
|
811
|
-
var Q = /* @__PURE__ */
|
|
811
|
+
var Q = /* @__PURE__ */ r({
|
|
812
812
|
name: "VvIcon",
|
|
813
|
-
props: /* @__PURE__ */
|
|
813
|
+
props: /* @__PURE__ */ t({
|
|
814
814
|
name: {},
|
|
815
815
|
color: {},
|
|
816
816
|
width: {},
|
|
@@ -829,33 +829,33 @@ var Q = /* @__PURE__ */ w({
|
|
|
829
829
|
modifiers: {}
|
|
830
830
|
}, Ye),
|
|
831
831
|
setup(e) {
|
|
832
|
-
let t = e, n =
|
|
832
|
+
let t = e, n = S(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = C(!0), i = Ft(), { modifiers: a } = pe(t), o = Dt("vv-icon", a), s = S(() => t.provider || i?.iconsProvider), u = S(() => {
|
|
833
833
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
834
|
-
if (
|
|
834
|
+
if (E(n)) return n;
|
|
835
835
|
let r = i?.iconsCollections.find((t) => {
|
|
836
836
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
837
|
-
return
|
|
837
|
+
return E(n);
|
|
838
838
|
});
|
|
839
839
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
840
840
|
});
|
|
841
|
-
function
|
|
841
|
+
function d(e) {
|
|
842
842
|
return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(e, "text/html").querySelector("svg");
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
let n =
|
|
846
|
-
n && r &&
|
|
844
|
+
function f(e) {
|
|
845
|
+
let n = d(e), r = n?.innerHTML.trim() || "";
|
|
846
|
+
n && r && D(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
847
847
|
body: r,
|
|
848
848
|
height: n.viewBox.baseVal.height,
|
|
849
849
|
width: n.viewBox.baseVal.width
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
-
return i && t.src && !
|
|
853
|
-
e &&
|
|
852
|
+
return i && t.src && !E(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
853
|
+
e && f(e), r.value = !0;
|
|
854
854
|
}).catch((e) => {
|
|
855
855
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
856
|
-
})), t.svg &&
|
|
856
|
+
})), t.svg && f(t.svg), (t, i) => v(r) ? (c(), y(v(O), l({
|
|
857
857
|
key: 0,
|
|
858
|
-
class:
|
|
858
|
+
class: v(o)
|
|
859
859
|
}, {
|
|
860
860
|
inline: e.inline,
|
|
861
861
|
width: e.width,
|
|
@@ -863,10 +863,10 @@ var Q = /* @__PURE__ */ w({
|
|
|
863
863
|
horizontalFlip: e.horizontalFlip,
|
|
864
864
|
verticalFlip: e.verticalFlip,
|
|
865
865
|
flip: e.flip,
|
|
866
|
-
rotate:
|
|
866
|
+
rotate: v(n),
|
|
867
867
|
color: e.color,
|
|
868
|
-
icon:
|
|
869
|
-
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) :
|
|
868
|
+
icon: v(u)
|
|
869
|
+
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : _("v-if", !0);
|
|
870
870
|
}
|
|
871
871
|
}), $ = {
|
|
872
872
|
TEXT: "text",
|
|
@@ -1006,18 +1006,18 @@ var Q = /* @__PURE__ */ w({
|
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
1008
|
function Rt(e, t) {
|
|
1009
|
-
let n =
|
|
1009
|
+
let n = S(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = S(() => t?.value === Ve.before ? n.value : void 0), i = S(() => t?.value === Ve.after ? n.value : void 0);
|
|
1010
1010
|
return {
|
|
1011
1011
|
hasIcon: n,
|
|
1012
|
-
hasIconLeft:
|
|
1013
|
-
hasIconRight:
|
|
1014
|
-
hasIconTop:
|
|
1015
|
-
hasIconBottom:
|
|
1012
|
+
hasIconLeft: S(() => t?.value === U.left ? n.value : void 0),
|
|
1013
|
+
hasIconRight: S(() => t?.value === U.right ? n.value : void 0),
|
|
1014
|
+
hasIconTop: S(() => t?.value === U.top ? n.value : void 0),
|
|
1015
|
+
hasIconBottom: S(() => t?.value === U.bottom ? n.value : void 0),
|
|
1016
1016
|
hasIconBefore: r,
|
|
1017
1017
|
hasIconAfter: i
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
var zt =
|
|
1020
|
+
var zt = r({
|
|
1021
1021
|
components: { VvIcon: Q },
|
|
1022
1022
|
props: {
|
|
1023
1023
|
inputType: {
|
|
@@ -1039,7 +1039,7 @@ var zt = w({
|
|
|
1039
1039
|
},
|
|
1040
1040
|
emits: ["clear"],
|
|
1041
1041
|
setup(e, { emit: t }) {
|
|
1042
|
-
let { hasIcon: n } = Rt(
|
|
1042
|
+
let { hasIcon: n } = Rt(S(() => e.icon));
|
|
1043
1043
|
function r(n) {
|
|
1044
1044
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
1045
1045
|
}
|
|
@@ -1049,11 +1049,11 @@ var zt = w({
|
|
|
1049
1049
|
};
|
|
1050
1050
|
},
|
|
1051
1051
|
render() {
|
|
1052
|
-
let e = this.hasIcon ?
|
|
1052
|
+
let e = this.hasIcon ? a(Q, {
|
|
1053
1053
|
...this.hasIcon,
|
|
1054
1054
|
class: `vv-${this.inputType}__icon`
|
|
1055
1055
|
}) : void 0;
|
|
1056
|
-
return
|
|
1056
|
+
return a("button", {
|
|
1057
1057
|
disabled: this.disabled,
|
|
1058
1058
|
class: `vv-${this.inputType}__action`,
|
|
1059
1059
|
ariaLabel: this.label,
|
|
@@ -1061,7 +1061,7 @@ var zt = w({
|
|
|
1061
1061
|
onClick: this.onClick
|
|
1062
1062
|
}, e);
|
|
1063
1063
|
}
|
|
1064
|
-
}), Bt =
|
|
1064
|
+
}), Bt = r({
|
|
1065
1065
|
components: { VvIcon: Q },
|
|
1066
1066
|
props: {
|
|
1067
1067
|
inputType: {
|
|
@@ -1091,7 +1091,7 @@ var zt = w({
|
|
|
1091
1091
|
},
|
|
1092
1092
|
emits: ["toggle-password"],
|
|
1093
1093
|
setup(e, { emit: t }) {
|
|
1094
|
-
let n =
|
|
1094
|
+
let n = C(!1), r = S(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } = Rt(r);
|
|
1095
1095
|
function a(r) {
|
|
1096
1096
|
r?.stopPropagation(), e.disabled || (n.value = !n.value, t("toggle-password", n.value));
|
|
1097
1097
|
}
|
|
@@ -1103,11 +1103,11 @@ var zt = w({
|
|
|
1103
1103
|
};
|
|
1104
1104
|
},
|
|
1105
1105
|
render() {
|
|
1106
|
-
let e = this.hasIcon ?
|
|
1106
|
+
let e = this.hasIcon ? a(Q, {
|
|
1107
1107
|
...this.hasIcon,
|
|
1108
1108
|
class: `vv-${this.inputType}__icon`
|
|
1109
1109
|
}) : void 0;
|
|
1110
|
-
return
|
|
1110
|
+
return a("button", {
|
|
1111
1111
|
disabled: this.disabled,
|
|
1112
1112
|
class: `vv-${this.inputType}__action`,
|
|
1113
1113
|
ariaLabel: this.active ? this.labelHide : this.labelShow,
|
|
@@ -1115,7 +1115,7 @@ var zt = w({
|
|
|
1115
1115
|
onClick: this.onClick
|
|
1116
1116
|
}, e);
|
|
1117
1117
|
}
|
|
1118
|
-
}), Vt =
|
|
1118
|
+
}), Vt = r({
|
|
1119
1119
|
components: { VvIcon: Q },
|
|
1120
1120
|
props: {
|
|
1121
1121
|
inputType: {
|
|
@@ -1135,7 +1135,7 @@ var zt = w({
|
|
|
1135
1135
|
},
|
|
1136
1136
|
emits: ["step-up", "step-down"],
|
|
1137
1137
|
setup(e, { emit: t }) {
|
|
1138
|
-
let n =
|
|
1138
|
+
let n = S(() => e.mode === "up");
|
|
1139
1139
|
return {
|
|
1140
1140
|
isUp: n,
|
|
1141
1141
|
onClick: (r) => {
|
|
@@ -1144,7 +1144,7 @@ var zt = w({
|
|
|
1144
1144
|
};
|
|
1145
1145
|
},
|
|
1146
1146
|
render() {
|
|
1147
|
-
return
|
|
1147
|
+
return a("button", {
|
|
1148
1148
|
class: [
|
|
1149
1149
|
`vv-${this.inputType}__action`,
|
|
1150
1150
|
`vv-${this.inputType}__action-chevron`,
|
|
@@ -1169,7 +1169,7 @@ function Ht(e, t, n) {
|
|
|
1169
1169
|
setup() {
|
|
1170
1170
|
return {
|
|
1171
1171
|
isDirty: n,
|
|
1172
|
-
isDisabled:
|
|
1172
|
+
isDisabled: S(() => t.disabled || t.readonly),
|
|
1173
1173
|
labelStepUp: t.labelStepUp,
|
|
1174
1174
|
labelStepDown: t.labelStepDown,
|
|
1175
1175
|
labelShowPassword: t.labelShowPassword,
|
|
@@ -1184,7 +1184,7 @@ function Ht(e, t, n) {
|
|
|
1184
1184
|
switch (e) {
|
|
1185
1185
|
case $.SEARCH: {
|
|
1186
1186
|
let { onClear: e } = this.$attrs;
|
|
1187
|
-
n = [
|
|
1187
|
+
n = [a(zt, {
|
|
1188
1188
|
disabled: this.isDisabled || !this.isDirty,
|
|
1189
1189
|
label: this.labelClear,
|
|
1190
1190
|
onClear: e
|
|
@@ -1193,7 +1193,7 @@ function Ht(e, t, n) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
case $.PASSWORD: {
|
|
1195
1195
|
let { onTogglePassword: e } = this.$attrs;
|
|
1196
|
-
n = [
|
|
1196
|
+
n = [a(Bt, {
|
|
1197
1197
|
disabled: this.isDisabled,
|
|
1198
1198
|
onTogglePassword: e,
|
|
1199
1199
|
labelShow: this.labelShowPassword,
|
|
@@ -1204,24 +1204,24 @@ function Ht(e, t, n) {
|
|
|
1204
1204
|
break;
|
|
1205
1205
|
}
|
|
1206
1206
|
case $.NUMBER: {
|
|
1207
|
-
let { onStepUp: e, onStepDown:
|
|
1208
|
-
n = [
|
|
1207
|
+
let { onStepUp: e, onStepDown: r } = this.$attrs;
|
|
1208
|
+
n = [a(Vt, {
|
|
1209
1209
|
mode: "up",
|
|
1210
1210
|
disabled: this.isDisabled || t.max !== void 0 && t.modelValue === t.max,
|
|
1211
1211
|
label: this.labelStepUp,
|
|
1212
1212
|
onStepUp: e,
|
|
1213
|
-
onStepDown:
|
|
1214
|
-
}),
|
|
1213
|
+
onStepDown: r
|
|
1214
|
+
}), a(Vt, {
|
|
1215
1215
|
mode: "down",
|
|
1216
1216
|
disabled: this.isDisabled || t.min !== void 0 && t.modelValue === t.min,
|
|
1217
1217
|
label: this.labelStepDown,
|
|
1218
1218
|
onStepUp: e,
|
|
1219
|
-
onStepDown:
|
|
1219
|
+
onStepDown: r
|
|
1220
1220
|
})];
|
|
1221
1221
|
break;
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
return Array.isArray(n) ?
|
|
1224
|
+
return Array.isArray(n) ? a("div", { class: "vv-input-text__actions-group" }, n) : n;
|
|
1225
1225
|
}
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
@@ -1238,10 +1238,10 @@ function Ut(e, t, n) {
|
|
|
1238
1238
|
return r;
|
|
1239
1239
|
}
|
|
1240
1240
|
function Wt(e, t, n) {
|
|
1241
|
-
let r = Ft(), i =
|
|
1241
|
+
let r = Ft(), i = S(() => {
|
|
1242
1242
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
1243
1243
|
});
|
|
1244
|
-
return
|
|
1244
|
+
return S(() => {
|
|
1245
1245
|
if (i.value === void 0) return n;
|
|
1246
1246
|
let e = i.value, r = t, a = n;
|
|
1247
1247
|
return Object.keys(r).reduce((t, n) => {
|
|
@@ -1251,8 +1251,8 @@ function Wt(e, t, n) {
|
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
1253
|
function Gt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
1254
|
-
let a, o, s =
|
|
1255
|
-
let e =
|
|
1254
|
+
let a, o, s = S(() => {
|
|
1255
|
+
let e = ve(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
1256
1256
|
return Number.isNaN(t) ? 0 : t;
|
|
1257
1257
|
});
|
|
1258
1258
|
function c() {
|
|
@@ -1263,8 +1263,8 @@ function Gt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
1263
1263
|
let e = i(o.value);
|
|
1264
1264
|
return c(), t("update:modelValue", e), e;
|
|
1265
1265
|
}
|
|
1266
|
-
return
|
|
1267
|
-
model:
|
|
1266
|
+
return fe(c), {
|
|
1267
|
+
model: S({
|
|
1268
1268
|
get: () => r(e?.value),
|
|
1269
1269
|
set: (e) => {
|
|
1270
1270
|
if (s.value <= 0) {
|
|
@@ -1279,41 +1279,41 @@ function Gt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
1281
1281
|
function Kt(e, t) {
|
|
1282
|
-
let { focused: n } =
|
|
1283
|
-
return
|
|
1284
|
-
t(n ? "focus" : "blur",
|
|
1282
|
+
let { focused: n } = be(e);
|
|
1283
|
+
return g(n, (n) => {
|
|
1284
|
+
t(n ? "focus" : "blur", v(e));
|
|
1285
1285
|
}), { focused: n };
|
|
1286
1286
|
}
|
|
1287
1287
|
function qt(e, t) {
|
|
1288
|
-
let n =
|
|
1288
|
+
let n = S(() => (v(e) ?? "").length), r = S(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
1289
1289
|
return {
|
|
1290
1290
|
length: n,
|
|
1291
1291
|
gap: r,
|
|
1292
|
-
formatted:
|
|
1292
|
+
formatted: S(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
|
|
1293
1293
|
};
|
|
1294
1294
|
}
|
|
1295
1295
|
function Jt(e, t = H.local, n) {
|
|
1296
|
-
let r =
|
|
1296
|
+
let r = C();
|
|
1297
1297
|
n && (r.value = n);
|
|
1298
1298
|
let i;
|
|
1299
|
-
return
|
|
1300
|
-
e &&
|
|
1301
|
-
let a =
|
|
1299
|
+
return o(() => {
|
|
1300
|
+
e && g(e, (e, n) => {
|
|
1301
|
+
let a = v(t) === H.session ? sessionStorage : localStorage;
|
|
1302
1302
|
if (n && n !== e && a.removeItem(n), e) {
|
|
1303
|
-
i =
|
|
1303
|
+
i = Te(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
1304
1304
|
return;
|
|
1305
1305
|
}
|
|
1306
1306
|
i = void 0;
|
|
1307
|
-
}, { immediate: !0 }),
|
|
1307
|
+
}, { immediate: !0 }), ae(t) && g(t, (t, n) => {
|
|
1308
1308
|
if (e?.value) {
|
|
1309
1309
|
if (t) {
|
|
1310
1310
|
let n = t === H.session ? sessionStorage : localStorage;
|
|
1311
|
-
i =
|
|
1311
|
+
i = Te(e.value, i?.value ?? r.value, n);
|
|
1312
1312
|
}
|
|
1313
1313
|
n && n !== t && (n === H.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
|
-
}),
|
|
1316
|
+
}), g(r, (e) => {
|
|
1317
1317
|
i && (i.value = e);
|
|
1318
1318
|
}, {
|
|
1319
1319
|
deep: !0,
|
|
@@ -1332,169 +1332,169 @@ var Yt = ["for"], Xt = {
|
|
|
1332
1332
|
}, en = {
|
|
1333
1333
|
key: 6,
|
|
1334
1334
|
class: "vv-input-text__limit"
|
|
1335
|
-
}, tn = { class: "flex-1" }, nn = ["title", "onClick"], rn = /* @__PURE__ */
|
|
1335
|
+
}, tn = { class: "flex-1" }, nn = ["title", "onClick"], rn = /* @__PURE__ */ r({
|
|
1336
1336
|
name: "VvInputText",
|
|
1337
1337
|
props: Lt,
|
|
1338
1338
|
emits: It,
|
|
1339
|
-
setup(
|
|
1340
|
-
let
|
|
1341
|
-
let e = typeof
|
|
1339
|
+
setup(t, { expose: r, emit: a }) {
|
|
1340
|
+
let s = t, u = a, d = le(), f = Ft(), p = Wt("VvInputText", Lt, s), { count: te, debounce: ne, icon: ie, iconPosition: ae, iconRemoveSuggestion: se, id: ce, invalid: x, label: ue, labelRemoveSuggestion: de, loading: fe, maxlength: me, minlength: ge, modelValue: ve, step: E, storageType: D, type: O, unit: be, valid: xe } = pe(s), Se = St(ce), Ce = S(() => `${Se.value}-hint`), we = S(() => s.floating && z(s.placeholder) ? " " : s.placeholder), { model: k, flush: Te } = Gt(ve, u, ne), Ee = S(() => {
|
|
1341
|
+
let e = typeof E.value == "number" ? E.value : Number.parseInt(E.value);
|
|
1342
1342
|
return !Number.isNaN(e) && e % 60 != 0;
|
|
1343
|
-
}),
|
|
1344
|
-
if (!
|
|
1345
|
-
if (
|
|
1346
|
-
let e = { ...
|
|
1347
|
-
return
|
|
1343
|
+
}), Oe = /^-0?[.,]?[0*]?$/, ke = /./, Ae = /^-$|^$/, je = C(!1), A = C(), j = C(), { el: Me, mask: Ne, typed: M, masked: N, unmasked: P } = Pe(S(() => {
|
|
1344
|
+
if (!s.iMask) return { mask: ke };
|
|
1345
|
+
if (s.iMask.mask === Number) {
|
|
1346
|
+
let e = { ...s.iMask };
|
|
1347
|
+
return s.min && (e.min = Number(s.min)), s.max && (e.max = Number(s.max)), e;
|
|
1348
1348
|
}
|
|
1349
|
-
return
|
|
1349
|
+
return s.iMask;
|
|
1350
1350
|
}), {
|
|
1351
|
-
emit:
|
|
1351
|
+
emit: u,
|
|
1352
1352
|
onAccept: () => {
|
|
1353
|
-
if (
|
|
1354
|
-
if (
|
|
1355
|
-
|
|
1353
|
+
if (je.value) {
|
|
1354
|
+
if (u("update:masked", N.value), O.value === $.NUMBER) {
|
|
1355
|
+
Le();
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
|
-
if (
|
|
1359
|
-
|
|
1358
|
+
if (O.value === $.DATETIME_LOCAL || O.value === $.DATE || O.value === $.TIME || O.value === $.MONTH) {
|
|
1359
|
+
I();
|
|
1360
1360
|
return;
|
|
1361
1361
|
}
|
|
1362
|
-
!
|
|
1362
|
+
!k.value && !P.value || (k.value = P.value);
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
});
|
|
1366
|
-
function
|
|
1367
|
-
if (
|
|
1368
|
-
if (
|
|
1369
|
-
|
|
1366
|
+
function Le() {
|
|
1367
|
+
if (Ae.test(P.value)) {
|
|
1368
|
+
if (k.value === null || k.value === void 0) return;
|
|
1369
|
+
k.value = void 0;
|
|
1370
1370
|
return;
|
|
1371
1371
|
}
|
|
1372
|
-
if (
|
|
1373
|
-
|
|
1372
|
+
if (Oe.test(P.value)) {
|
|
1373
|
+
k.value = 0;
|
|
1374
1374
|
return;
|
|
1375
1375
|
}
|
|
1376
|
-
if (typeof
|
|
1377
|
-
|
|
1376
|
+
if (typeof M.value != "number") {
|
|
1377
|
+
k.value = Number(M.value);
|
|
1378
1378
|
return;
|
|
1379
1379
|
}
|
|
1380
|
-
|
|
1380
|
+
k.value = M.value;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1383
|
-
let t = new Date(
|
|
1384
|
-
if ((
|
|
1385
|
-
if (
|
|
1386
|
-
|
|
1382
|
+
function F(e) {
|
|
1383
|
+
let t = new Date(A.value || j.value);
|
|
1384
|
+
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) {
|
|
1385
|
+
if (k.value?.getTime() === t.getTime()) return;
|
|
1386
|
+
k.value = t;
|
|
1387
1387
|
return;
|
|
1388
1388
|
}
|
|
1389
|
-
|
|
1389
|
+
k.value = t.toISOString();
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
let e =
|
|
1393
|
-
if (!
|
|
1394
|
-
if (!
|
|
1395
|
-
if (
|
|
1396
|
-
|
|
1391
|
+
function I() {
|
|
1392
|
+
let e = O.value;
|
|
1393
|
+
if (!M.value) {
|
|
1394
|
+
if (!k.value) return;
|
|
1395
|
+
if (A.value) {
|
|
1396
|
+
k.value = void 0;
|
|
1397
1397
|
return;
|
|
1398
1398
|
}
|
|
1399
|
-
|
|
1399
|
+
k.value = "";
|
|
1400
1400
|
return;
|
|
1401
1401
|
}
|
|
1402
|
-
if (!(
|
|
1403
|
-
|
|
1402
|
+
if (!(M.value instanceof Date) && !A.value && !j.value) {
|
|
1403
|
+
k.value = M.value;
|
|
1404
1404
|
return;
|
|
1405
1405
|
}
|
|
1406
|
-
let t =
|
|
1407
|
-
if (t instanceof Date || (t =
|
|
1408
|
-
|
|
1406
|
+
let t = M.value;
|
|
1407
|
+
if (t instanceof Date || (t = R(M.value, e)), A.value || j.value) {
|
|
1408
|
+
F(t);
|
|
1409
1409
|
return;
|
|
1410
1410
|
}
|
|
1411
|
-
|
|
1411
|
+
k.value = Ie(t, e, Ee.value);
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function L(e) {
|
|
1414
1414
|
if (e == null) {
|
|
1415
|
-
|
|
1415
|
+
M.value = "", P.value = "";
|
|
1416
1416
|
return;
|
|
1417
1417
|
}
|
|
1418
|
-
if (
|
|
1419
|
-
|
|
1418
|
+
if (s.iMask?.mask === Date) {
|
|
1419
|
+
M.value = e instanceof Date ? e : new Date(e);
|
|
1420
1420
|
return;
|
|
1421
1421
|
}
|
|
1422
|
-
if (!(
|
|
1422
|
+
if (!(O.value === $.NUMBER && Oe.test(P.value) && e === 0)) {
|
|
1423
1423
|
if (dt.value) {
|
|
1424
|
-
if (e instanceof Date ||
|
|
1425
|
-
if (e instanceof Date ? (
|
|
1426
|
-
let t = new Date(e), n =
|
|
1427
|
-
|
|
1424
|
+
if (e instanceof Date || Fe(e)) {
|
|
1425
|
+
if (e instanceof Date ? (A.value = e, j.value = void 0) : (j.value = e, A.value = void 0), O.value !== $.WEEK) {
|
|
1426
|
+
let t = new Date(e), n = O.value;
|
|
1427
|
+
M.value = Ie(t, n, Ee.value), P.value = M.value;
|
|
1428
1428
|
}
|
|
1429
1429
|
return;
|
|
1430
1430
|
}
|
|
1431
|
-
|
|
1431
|
+
A.value = void 0, j.value = void 0;
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1433
|
+
M.value = e, P.value = `${M.value}`;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
}),
|
|
1439
|
-
|
|
1440
|
-
}),
|
|
1441
|
-
|
|
1436
|
+
o(() => {
|
|
1437
|
+
Ne.value && (je.value = !0, L(s.modelValue));
|
|
1438
|
+
}), g(() => s.modelValue, (e) => {
|
|
1439
|
+
Ne.value && L(e);
|
|
1440
|
+
}), g(() => s.masked, (e) => {
|
|
1441
|
+
N.value = e ?? "";
|
|
1442
1442
|
});
|
|
1443
|
-
let
|
|
1444
|
-
|
|
1445
|
-
$input:
|
|
1446
|
-
$inner:
|
|
1443
|
+
let B = Me, V = C(), H = C(), ze = C();
|
|
1444
|
+
r({
|
|
1445
|
+
$input: B,
|
|
1446
|
+
$inner: V,
|
|
1447
1447
|
$wrapper: H,
|
|
1448
|
-
flush:
|
|
1448
|
+
flush: Te
|
|
1449
1449
|
});
|
|
1450
|
-
let { focused: U } = Kt(
|
|
1450
|
+
let { focused: U } = Kt(B, u), Be = S(() => U.value && !s.disabled && !s.readonly);
|
|
1451
1451
|
function Ve(e) {
|
|
1452
1452
|
e ? He() : W();
|
|
1453
1453
|
}
|
|
1454
1454
|
function He() {
|
|
1455
|
-
|
|
1455
|
+
p.value.selectOnFocus && B.value && B.value.select(), Z.value.size && ze.value?.show();
|
|
1456
1456
|
}
|
|
1457
1457
|
function W() {
|
|
1458
|
-
let e =
|
|
1459
|
-
if (!X.value ||
|
|
1460
|
-
let t =
|
|
1458
|
+
let e = Te() ?? k.value;
|
|
1459
|
+
if (!X.value || z(e)) return;
|
|
1460
|
+
let t = s.maxSuggestions;
|
|
1461
1461
|
X.value.size >= t && !X.value.has(e) && (X.value = new Set([...X.value].slice(X.value.size - t + 1))), X.value.add(e);
|
|
1462
1462
|
}
|
|
1463
|
-
|
|
1464
|
-
let Ue =
|
|
1465
|
-
|
|
1466
|
-
e &&
|
|
1463
|
+
g(Be, Ve);
|
|
1464
|
+
let Ue = De(B);
|
|
1465
|
+
g(Ue, (e) => {
|
|
1466
|
+
e && s.autofocus && !s.disabled && !s.readonly && (U.value = !0);
|
|
1467
1467
|
});
|
|
1468
|
-
let G =
|
|
1468
|
+
let G = C(!1), We = S(() => s.type === $.PASSWORD);
|
|
1469
1469
|
function Ge() {
|
|
1470
1470
|
G.value = !G.value;
|
|
1471
1471
|
}
|
|
1472
|
-
let Ke =
|
|
1472
|
+
let Ke = S(() => dt.value), qe = S(() => s.type === $.NUMBER);
|
|
1473
1473
|
function Je() {
|
|
1474
1474
|
if (!J.value) {
|
|
1475
|
-
if (
|
|
1476
|
-
|
|
1475
|
+
if (s.iMask) {
|
|
1476
|
+
M.value = Number(M.value) + Number(E?.value ?? 1);
|
|
1477
1477
|
return;
|
|
1478
1478
|
}
|
|
1479
|
-
|
|
1479
|
+
B.value.stepUp(), k.value = Number(B.value.value);
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
function Ye() {
|
|
1483
1483
|
if (!J.value) {
|
|
1484
|
-
if (
|
|
1485
|
-
|
|
1484
|
+
if (s.iMask) {
|
|
1485
|
+
M.value = Number(M.value) - Number(E?.value ?? 1);
|
|
1486
1486
|
return;
|
|
1487
1487
|
}
|
|
1488
|
-
|
|
1488
|
+
B.value.stepDown(), k.value = Number(B.value.value);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
let Xe =
|
|
1491
|
+
let Xe = S(() => s.type === $.SEARCH);
|
|
1492
1492
|
function Ze() {
|
|
1493
|
-
|
|
1493
|
+
k.value = "", u("clear");
|
|
1494
1494
|
}
|
|
1495
|
-
let { hasIconBefore: Qe, hasIconAfter: $e } = Rt(
|
|
1495
|
+
let { hasIconBefore: Qe, hasIconAfter: $e } = Rt(ie, ae), q = S(() => {
|
|
1496
1496
|
if ($e.value !== void 0) return $e.value;
|
|
1497
|
-
switch (
|
|
1497
|
+
switch (s.type) {
|
|
1498
1498
|
case $.COLOR: return { name: K.showColorPicker };
|
|
1499
1499
|
case $.DATE:
|
|
1500
1500
|
case $.DATETIME_LOCAL:
|
|
@@ -1502,91 +1502,91 @@ var Yt = ["for"], Xt = {
|
|
|
1502
1502
|
case $.MONTH: return { name: K.showDatePicker };
|
|
1503
1503
|
case $.TIME: return { name: K.showTimePicker };
|
|
1504
1504
|
}
|
|
1505
|
-
}), { hasIcon: et } = Rt(
|
|
1506
|
-
mode:
|
|
1507
|
-
upperLimit: Number(
|
|
1508
|
-
lowerLimit: Number(
|
|
1509
|
-
}), J =
|
|
1510
|
-
if (
|
|
1511
|
-
if (
|
|
1512
|
-
}), X = Jt(
|
|
1505
|
+
}), { hasIcon: et } = Rt(se), { formatted: tt } = qt(k, {
|
|
1506
|
+
mode: te.value,
|
|
1507
|
+
upperLimit: Number(me?.value),
|
|
1508
|
+
lowerLimit: Number(ge?.value)
|
|
1509
|
+
}), J = S(() => s.disabled || s.readonly), nt = S(() => J.value ? -1 : s.tabindex), Y = S(() => !z(ve?.value)), rt = S(() => {
|
|
1510
|
+
if (x.value === !0) return !0;
|
|
1511
|
+
if (xe.value === !0) return !1;
|
|
1512
|
+
}), X = Jt(S(() => s.storageKey ?? (f?.experimentalFeatures.forceInputSuggestions ? s.name : void 0)), D, /* @__PURE__ */ new Set()), Z = S(() => {
|
|
1513
1513
|
let e = /* @__PURE__ */ new Map();
|
|
1514
1514
|
if (X.value) for (let t of X.value) e.set(t, { isFromStorage: !0 });
|
|
1515
|
-
if (
|
|
1515
|
+
if (s.suggestions) for (let t of s.suggestions) e.set(t, { isFromStorage: !1 });
|
|
1516
1516
|
return e;
|
|
1517
|
-
}), it =
|
|
1517
|
+
}), it = S(() => Z.value.size === 0 ? [] : [...Z.value.entries()].filter(([e]) => z(k.value) || `${e}`.toLowerCase().includes(`${k.value}`.toLowerCase()) && e !== k.value).reverse().map(([e]) => e)), at = S(() => Z.value.size > 0);
|
|
1518
1518
|
function ot(e) {
|
|
1519
|
-
|
|
1519
|
+
k.value = e, ze.value?.hide(), u("suggestion:selected", e);
|
|
1520
1520
|
}
|
|
1521
1521
|
function st(e) {
|
|
1522
|
-
Z.value.get(e)?.isFromStorage && (X.value?.delete(e),
|
|
1522
|
+
Z.value.get(e)?.isFromStorage && (X.value?.delete(e), u("suggestion:removed", e));
|
|
1523
1523
|
}
|
|
1524
|
-
let { modifiers: ct } =
|
|
1525
|
-
valid:
|
|
1526
|
-
invalid:
|
|
1527
|
-
loading:
|
|
1528
|
-
disabled:
|
|
1529
|
-
required:
|
|
1530
|
-
readonly:
|
|
1524
|
+
let { modifiers: ct } = pe(s), lt = Dt("vv-input-text", ct, S(() => ({
|
|
1525
|
+
valid: xe.value,
|
|
1526
|
+
invalid: x.value,
|
|
1527
|
+
loading: fe.value,
|
|
1528
|
+
disabled: s.disabled,
|
|
1529
|
+
required: s.required,
|
|
1530
|
+
readonly: s.readonly,
|
|
1531
1531
|
"icon-before": !!Qe.value,
|
|
1532
1532
|
"icon-after": !!q.value,
|
|
1533
|
-
floating:
|
|
1533
|
+
floating: s.floating && !z(s.label),
|
|
1534
1534
|
dirty: Y.value,
|
|
1535
1535
|
focus: Be.value && !J.value,
|
|
1536
|
-
"auto-width":
|
|
1537
|
-
}))), ut =
|
|
1536
|
+
"auto-width": s.autoWidth
|
|
1537
|
+
}))), ut = S(() => [
|
|
1538
1538
|
$.TEXT,
|
|
1539
1539
|
$.SEARCH,
|
|
1540
1540
|
$.URL,
|
|
1541
1541
|
$.TEL,
|
|
1542
1542
|
$.EMAIL,
|
|
1543
1543
|
$.PASSWORD
|
|
1544
|
-
].includes(
|
|
1544
|
+
].includes(O.value)), dt = S(() => [
|
|
1545
1545
|
$.DATE,
|
|
1546
1546
|
$.MONTH,
|
|
1547
1547
|
$.WEEK,
|
|
1548
1548
|
$.TIME,
|
|
1549
1549
|
$.DATETIME_LOCAL
|
|
1550
|
-
].includes(
|
|
1550
|
+
].includes(O.value)), ft = S(() => [
|
|
1551
1551
|
$.TEXT,
|
|
1552
1552
|
$.SEARCH,
|
|
1553
1553
|
$.URL,
|
|
1554
1554
|
$.TEL,
|
|
1555
1555
|
$.EMAIL,
|
|
1556
1556
|
$.PASSWORD
|
|
1557
|
-
].includes(
|
|
1558
|
-
let e = We.value && G.value || Ke.value && !Y.value && !U.value ||
|
|
1557
|
+
].includes(O.value)), pt = S(() => {
|
|
1558
|
+
let e = We.value && G.value || Ke.value && !Y.value && !U.value || s.iMask ? $.TEXT : s.type, t = {
|
|
1559
1559
|
type: e,
|
|
1560
|
-
name:
|
|
1560
|
+
name: s.name,
|
|
1561
1561
|
tabindex: nt.value,
|
|
1562
|
-
disabled:
|
|
1563
|
-
readonly:
|
|
1564
|
-
required:
|
|
1565
|
-
autocomplete:
|
|
1562
|
+
disabled: s.disabled,
|
|
1563
|
+
readonly: s.readonly,
|
|
1564
|
+
required: s.required,
|
|
1565
|
+
autocomplete: s.autocomplete,
|
|
1566
1566
|
"aria-invalid": rt.value,
|
|
1567
|
-
"aria-describedby": gt.value ?
|
|
1568
|
-
"aria-errormessage": _t.value ?
|
|
1569
|
-
inputMode:
|
|
1567
|
+
"aria-describedby": gt.value ? Ce.value : void 0,
|
|
1568
|
+
"aria-errormessage": _t.value ? Ce.value : void 0,
|
|
1569
|
+
inputMode: s.inputMode
|
|
1570
1570
|
};
|
|
1571
1571
|
if (dt.value || e === $.NUMBER) {
|
|
1572
|
-
let n =
|
|
1573
|
-
e === $.DATE && !n && (n = "9999-12-31"), t.step =
|
|
1572
|
+
let n = s.max;
|
|
1573
|
+
e === $.DATE && !n && (n = "9999-12-31"), t.step = s.step, t.max = n === void 0 ? void 0 : String(n), t.min = s.min === void 0 ? void 0 : String(s.min);
|
|
1574
1574
|
}
|
|
1575
|
-
return (ut.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder =
|
|
1576
|
-
}), mt =
|
|
1577
|
-
valid:
|
|
1578
|
-
invalid:
|
|
1579
|
-
modelValue:
|
|
1575
|
+
return (ut.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = we.value), ft.value && (t.minlength = s.minlength, t.maxlength = s.maxlength, t.pattern = s.pattern), e === $.EMAIL && (t.multiple = s.multiple), t;
|
|
1576
|
+
}), mt = S(() => ({
|
|
1577
|
+
valid: s.valid,
|
|
1578
|
+
invalid: s.invalid,
|
|
1579
|
+
modelValue: s.modelValue,
|
|
1580
1580
|
togglePassword: Ge,
|
|
1581
1581
|
stepUp: Je,
|
|
1582
1582
|
stepDown: Ye,
|
|
1583
1583
|
clear: Ze
|
|
1584
|
-
})), { HintSlot: ht, hasHintLabelOrSlot: gt, hasInvalidLabelOrSlot: _t, hintSlotScope: vt } = Re(
|
|
1584
|
+
})), { HintSlot: ht, hasHintLabelOrSlot: gt, hasInvalidLabelOrSlot: _t, hintSlotScope: vt } = Re(p, d), yt = Ht($.PASSWORD, s, Y), bt = Ht($.NUMBER, s, Y), xt = Ht($.SEARCH, s, Y);
|
|
1585
1585
|
function Ct() {
|
|
1586
1586
|
J.value || (U.value = !0);
|
|
1587
1587
|
}
|
|
1588
|
-
let wt =
|
|
1589
|
-
if (
|
|
1588
|
+
let wt = S(() => {
|
|
1589
|
+
if (s.autoWidth) return { width: k.value === void 0 ? void 0 : `${String(k.value).length + 1}ch` };
|
|
1590
1590
|
});
|
|
1591
1591
|
function Tt(e) {
|
|
1592
1592
|
switch (e.code) {
|
|
@@ -1597,109 +1597,109 @@ var Yt = ["for"], Xt = {
|
|
|
1597
1597
|
qe.value && (Ye(), e.preventDefault());
|
|
1598
1598
|
break;
|
|
1599
1599
|
case "Enter":
|
|
1600
|
-
case "NumpadEnter":
|
|
1600
|
+
case "NumpadEnter": Te();
|
|
1601
1601
|
}
|
|
1602
|
-
|
|
1602
|
+
u("keydown", e);
|
|
1603
1603
|
}
|
|
1604
|
-
return (
|
|
1605
|
-
|
|
1604
|
+
return (t, r) => (c(), T("div", { class: ee(v(lt)) }, [
|
|
1605
|
+
v(ue) ? (c(), T("label", {
|
|
1606
1606
|
key: 0,
|
|
1607
|
-
for:
|
|
1607
|
+
for: v(Se),
|
|
1608
1608
|
class: "vv-input-text__label"
|
|
1609
|
-
},
|
|
1610
|
-
|
|
1609
|
+
}, h(v(ue)), 9, Yt)) : _("v-if", !0),
|
|
1610
|
+
b("div", {
|
|
1611
1611
|
ref_key: "wrapperEl",
|
|
1612
1612
|
ref: H,
|
|
1613
1613
|
class: "vv-input-text__wrapper"
|
|
1614
1614
|
}, [
|
|
1615
|
-
|
|
1616
|
-
|
|
1615
|
+
t.$slots.before ? (c(), T("div", Xt, [n(t.$slots, "before", i(m(v(mt))))])) : _("v-if", !0),
|
|
1616
|
+
b("div", {
|
|
1617
1617
|
ref_key: "innerEl",
|
|
1618
|
-
ref:
|
|
1618
|
+
ref: V,
|
|
1619
1619
|
class: "vv-input-text__inner",
|
|
1620
|
-
onClick:
|
|
1620
|
+
onClick: w(Ct, ["stop"])
|
|
1621
1621
|
}, [
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
id:
|
|
1622
|
+
v(Qe) ? (c(), y(Q, l({ key: 0 }, v(Qe), { class: "vv-input-text__icon" }), null, 16)) : _("v-if", !0),
|
|
1623
|
+
b("input", l({
|
|
1624
|
+
id: v(Se),
|
|
1625
1625
|
ref_key: "inputEl",
|
|
1626
|
-
ref:
|
|
1627
|
-
},
|
|
1628
|
-
style:
|
|
1629
|
-
onKeyup:
|
|
1626
|
+
ref: B
|
|
1627
|
+
}, v(pt), {
|
|
1628
|
+
style: v(wt),
|
|
1629
|
+
onKeyup: r[0] ||= (e) => u("keyup", e),
|
|
1630
1630
|
onKeydown: Tt,
|
|
1631
|
-
onKeypress:
|
|
1631
|
+
onKeypress: r[1] ||= (e) => u("keypress", e)
|
|
1632
1632
|
}), null, 16, Zt),
|
|
1633
|
-
(
|
|
1633
|
+
(v(be) || t.$slots.unit) && v(Y) ? (c(), T("div", Qt, [n(t.$slots, "unit", i(m(v(mt))), () => [re(h(v(be)), 1)])])) : _("v-if", !0)
|
|
1634
1634
|
], 512),
|
|
1635
|
-
|
|
1635
|
+
v(q) ? (c(), y(Q, l({ key: 1 }, v(q), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : v(We) && !t.hideActions && !v(J) ? (c(), y(v(yt), {
|
|
1636
1636
|
key: 2,
|
|
1637
1637
|
onTogglePassword: Ge
|
|
1638
|
-
})) :
|
|
1638
|
+
})) : v(qe) && !t.hideActions && !v(J) ? (c(), y(v(bt), {
|
|
1639
1639
|
key: 3,
|
|
1640
1640
|
onStepUp: Je,
|
|
1641
1641
|
onStepDown: Ye
|
|
1642
|
-
})) :
|
|
1642
|
+
})) : v(Xe) && !t.hideActions && !v(J) ? (c(), y(v(xt), {
|
|
1643
1643
|
key: 4,
|
|
1644
1644
|
onClear: Ze
|
|
1645
|
-
})) :
|
|
1646
|
-
|
|
1647
|
-
|
|
1645
|
+
})) : _("v-if", !0),
|
|
1646
|
+
t.$slots.after ? (c(), T("div", $t, [n(t.$slots, "after", i(m(v(mt))))])) : _("v-if", !0),
|
|
1647
|
+
v(te) ? (c(), T("span", en, [n(t.$slots, "count", i(m(v(mt))), () => [re(h(v(tt)), 1)])])) : _("v-if", !0)
|
|
1648
1648
|
], 512),
|
|
1649
|
-
|
|
1650
|
-
id:
|
|
1649
|
+
he(v(ht), {
|
|
1650
|
+
id: v(Ce),
|
|
1651
1651
|
class: "vv-input-text__hint"
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1652
|
+
}, _e({ _: 2 }, [
|
|
1653
|
+
t.$slots.hint ? {
|
|
1654
1654
|
name: "hint",
|
|
1655
|
-
fn:
|
|
1655
|
+
fn: e(() => [n(t.$slots, "hint", i(m(v(vt))))]),
|
|
1656
1656
|
key: "0"
|
|
1657
1657
|
} : void 0,
|
|
1658
|
-
|
|
1658
|
+
t.$slots.loading ? {
|
|
1659
1659
|
name: "loading",
|
|
1660
|
-
fn:
|
|
1660
|
+
fn: e(() => [n(t.$slots, "loading", i(m(v(vt))))]),
|
|
1661
1661
|
key: "1"
|
|
1662
1662
|
} : void 0,
|
|
1663
|
-
|
|
1663
|
+
t.$slots.valid ? {
|
|
1664
1664
|
name: "valid",
|
|
1665
|
-
fn:
|
|
1665
|
+
fn: e(() => [n(t.$slots, "valid", i(m(v(vt))))]),
|
|
1666
1666
|
key: "2"
|
|
1667
1667
|
} : void 0,
|
|
1668
|
-
|
|
1668
|
+
t.$slots.invalid ? {
|
|
1669
1669
|
name: "invalid",
|
|
1670
|
-
fn:
|
|
1670
|
+
fn: e(() => [n(t.$slots, "invalid", i(m(v(vt))))]),
|
|
1671
1671
|
key: "3"
|
|
1672
1672
|
} : void 0
|
|
1673
1673
|
]), 1032, ["id"]),
|
|
1674
|
-
|
|
1674
|
+
v(at) ? (c(), y(At, {
|
|
1675
1675
|
key: 1,
|
|
1676
1676
|
ref_key: "suggestionsDropdownEl",
|
|
1677
1677
|
ref: ze,
|
|
1678
|
-
reference:
|
|
1678
|
+
reference: v(H),
|
|
1679
1679
|
"autofocus-first": !1,
|
|
1680
1680
|
"trigger-width": !0,
|
|
1681
|
-
"top-layer":
|
|
1681
|
+
"top-layer": v(p).topLayer
|
|
1682
1682
|
}, {
|
|
1683
|
-
items:
|
|
1684
|
-
key: String(
|
|
1685
|
-
onClick:
|
|
1683
|
+
items: e(() => [(c(!0), T(oe, null, ye(v(it), (r) => (c(), y(Pt, {
|
|
1684
|
+
key: String(r),
|
|
1685
|
+
onClick: w((e) => ot(r), ["stop"])
|
|
1686
1686
|
}, {
|
|
1687
|
-
default:
|
|
1687
|
+
default: e(() => [b("div", tn, [n(t.$slots, "suggestion", l({ ref_for: !0 }, { value: r }), () => [re(h(r), 1)])]), v(Z).get(r)?.isFromStorage && v(et) ? (c(), T("button", {
|
|
1688
1688
|
key: 0,
|
|
1689
1689
|
type: "button",
|
|
1690
1690
|
tabindex: "-1",
|
|
1691
1691
|
class: "cursor-pointer",
|
|
1692
|
-
title:
|
|
1693
|
-
onClick:
|
|
1694
|
-
}, [
|
|
1692
|
+
title: v(de),
|
|
1693
|
+
onClick: w((e) => st(r), ["stop"])
|
|
1694
|
+
}, [he(Q, l({ ref_for: !0 }, v(et)), null, 16)], 8, nn)) : _("v-if", !0)]),
|
|
1695
1695
|
_: 2
|
|
1696
1696
|
}, 1032, ["onClick"]))), 128))]),
|
|
1697
1697
|
_: 3
|
|
1698
|
-
}, 8, ["reference", "top-layer"])) :
|
|
1698
|
+
}, 8, ["reference", "top-layer"])) : _("v-if", !0)
|
|
1699
1699
|
], 2));
|
|
1700
1700
|
}
|
|
1701
1701
|
});
|
|
1702
1702
|
//#endregion
|
|
1703
1703
|
export { rn as default };
|
|
1704
1704
|
|
|
1705
|
-
//# sourceMappingURL=VvInputText.es-
|
|
1705
|
+
//# sourceMappingURL=VvInputText.es-CdpU8kvP.js.map
|