@8wave/ai-elements 0.74.0 → 0.77.0
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/{PkStreamingMarkdown-orhL2kzD.js → PkStreamingMarkdown-COZApJzT.js} +22 -22
- package/dist/_chunks/PkStreamingMarkdown-COZApJzT.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js → PkToolShowArtifact-BZQixk9z.js} +7 -7
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js.map → PkToolShowArtifact-BZQixk9z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js → PkToolShowCalendarEvent-BEqn5iEb.js} +12 -12
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js.map → PkToolShowCalendarEvent-BEqn5iEb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js → PkToolShowComparison-p34r0Hhd.js} +7 -7
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js.map → PkToolShowComparison-p34r0Hhd.js.map} +1 -1
- package/dist/_chunks/PkToolShowContactForm-thS7c8iL.js +1658 -0
- package/dist/_chunks/PkToolShowContactForm-thS7c8iL.js.map +1 -0
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js → PkToolShowEmail-Be8FvWjw.js} +11 -11
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js.map → PkToolShowEmail-Be8FvWjw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js → PkToolShowImageGallery-DmJztS-Z.js} +5 -5
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js.map → PkToolShowImageGallery-DmJztS-Z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js → PkToolShowLocation-DOoLCHzS.js} +9 -9
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js.map → PkToolShowLocation-DOoLCHzS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js → PkToolShowMessage-DgeULbdQ.js} +10 -10
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js.map → PkToolShowMessage-DgeULbdQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js → PkToolShowMultipleChoice-CpGyn_bZ.js} +3 -3
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js.map → PkToolShowMultipleChoice-CpGyn_bZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js → PkToolShowProductList-DEo7XogW.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js.map → PkToolShowProductList-DEo7XogW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js → PkToolShowQrCode-UE4uSyvJ.js} +7 -7
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js.map → PkToolShowQrCode-UE4uSyvJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BQo5DRwt.js → PkToolShowSources-BMXftK6O.js} +10 -9
- package/dist/_chunks/PkToolShowSources-BMXftK6O.js.map +1 -0
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js → PkToolShowSuggestedReply-CPAnHI0c.js} +3 -3
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js.map → PkToolShowSuggestedReply-CPAnHI0c.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js → PkToolShowWeather-DcSUbzx0.js} +4 -4
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js.map → PkToolShowWeather-DcSUbzx0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js → PkToolShowWebPages-aH_GarEV.js} +5 -5
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js.map → PkToolShowWebPages-aH_GarEV.js.map} +1 -1
- package/dist/_chunks/{PkUrl-CI17WkYu.js → PkUrl-BHD0_pal.js} +2 -2
- package/dist/_chunks/{PkUrl-CI17WkYu.js.map → PkUrl-BHD0_pal.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js → VvCheckbox.es-ohF87NOe.js} +3 -3
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js.map → VvCheckbox.es-ohF87NOe.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js → VvCheckboxGroup.es-DZCbyLN0.js} +109 -109
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js.map → VvCheckboxGroup.es-DZCbyLN0.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js → VvCombobox.es-YLPD7MpO.js} +256 -256
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js.map → VvCombobox.es-YLPD7MpO.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js → VvInputText.es-DAnAXfBO.js} +190 -190
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js.map → VvInputText.es-DAnAXfBO.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js → VvRadio.es-Do9oyNtV.js} +3 -3
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js.map → VvRadio.es-Do9oyNtV.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js → VvRadioGroup.es-BHcqcJFC.js} +11 -11
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js.map → VvRadioGroup.es-BHcqcJFC.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js → VvSelect.es-CP_y02fy.js} +8 -8
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js.map → VvSelect.es-CP_y02fy.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js → VvTextarea.es-DetA_2DM.js} +250 -250
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js.map → VvTextarea.es-DetA_2DM.js.map} +1 -1
- package/dist/_chunks/{dist-DtF6poRc.js → dist-yqV26MWM.js} +132 -120
- package/dist/_chunks/dist-yqV26MWM.js.map +1 -0
- package/dist/_chunks/{esm-0nyRYwmP.js → esm-DLxNpT06.js} +7 -7
- package/dist/_chunks/{esm-0nyRYwmP.js.map → esm-DLxNpT06.js.map} +1 -1
- package/dist/_chunks/{floating-ui.vue-B5ZV-j8C.js → floating-ui.vue-tVPpNXUc.js} +3 -3
- package/dist/_chunks/{floating-ui.vue-B5ZV-j8C.js.map → floating-ui.vue-tVPpNXUc.js.map} +1 -1
- package/dist/_chunks/{iconify-C1EOwL90.js → iconify-y0w2FIJH.js} +3 -3
- package/dist/_chunks/{iconify-C1EOwL90.js.map → iconify-y0w2FIJH.js.map} +1 -1
- package/dist/_chunks/{index.es-BGFmj59S.js → index.es-7fUi-rc0.js} +452 -452
- package/dist/_chunks/{index.es-BGFmj59S.js.map → index.es-7fUi-rc0.js.map} +1 -1
- package/dist/_chunks/{schemas-Bp3a8tYV.js → schemas-aPiXCaCc.js} +1309 -945
- package/dist/_chunks/schemas-aPiXCaCc.js.map +1 -0
- package/dist/_chunks/{src-C_wl-KYN.js → src-BfoQF6Z3.js} +2 -2
- package/dist/_chunks/{src-C_wl-KYN.js.map → src-BfoQF6Z3.js.map} +1 -1
- package/dist/_chunks/{useLightbox-CH1KeVqr.js → useLightbox-DL_oVBep.js} +3 -3
- package/dist/_chunks/{useLightbox-CH1KeVqr.js.map → useLightbox-DL_oVBep.js.map} +1 -1
- package/dist/_chunks/{vue-i18n-KvYvoek4.js → vue-i18n-DAH6nDTN.js} +3 -3
- package/dist/_chunks/{vue-i18n-KvYvoek4.js.map → vue-i18n-DAH6nDTN.js.map} +1 -1
- package/dist/_chunks/{vue.runtime.esm-bundler-BmggS4HU.js → vue.runtime.esm-bundler-Dq29dQrz.js} +16 -10
- package/dist/_chunks/vue.runtime.esm-bundler-Dq29dQrz.js.map +1 -0
- package/dist/ai-elements.es.js +4637 -3428
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Media-Bic_vfSX.js → Media-kK7BnZGr.js} +4 -4
- package/dist-vue/_chunks/Media-kK7BnZGr.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js → PkChatbot-B9RSkQmJ.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js.map → PkChatbot-B9RSkQmJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js → PkChatbotFeedbackForm-lj9CHdhn.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js.map → PkChatbotFeedbackForm-lj9CHdhn.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js → PkChatbotInput-C5QSmt21.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js.map → PkChatbotInput-C5QSmt21.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BxTeEm3j.js → PkChatbotMessages-DOeUT6YL.js} +7 -7
- package/dist-vue/_chunks/PkChatbotMessages-DOeUT6YL.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js → PkChatbotViewChat-C2FuDayB.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js.map → PkChatbotViewChat-C2FuDayB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js → PkChatbotViewConversations-2xc0o-fO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js.map → PkChatbotViewConversations-2xc0o-fO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js → PkChatbotViewProfile-CoT1JnMk.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js.map → PkChatbotViewProfile-CoT1JnMk.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-B4gnJ4hk.js → PkStreamingMarkdown-BAhC3uGK.js} +20 -20
- package/dist-vue/_chunks/PkStreamingMarkdown-BAhC3uGK.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js → PkToolShowArtifact-RzrDPcEQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js.map → PkToolShowArtifact-RzrDPcEQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js → PkToolShowContactForm-5H4jfq1F.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js.map → PkToolShowContactForm-5H4jfq1F.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-ZtXFkIHt.js → PkToolShowSources-Dv0uuvqS.js} +5 -4
- package/dist-vue/_chunks/PkToolShowSources-Dv0uuvqS.js.map +1 -0
- package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js → ZodError-C_est8SY.js} +2 -2
- package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js.map → ZodError-C_est8SY.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-YJegM3ni.js → createChatbotApiClient-CvDRMmDa.js} +3 -3
- package/dist-vue/_chunks/createChatbotApiClient-CvDRMmDa.js.map +1 -0
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js → index.es-Dk_HaA08.js} +4 -4
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js.map → index.es-Dk_HaA08.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-sa2dDEGb.js → schemas-Clx4oKCB.js} +1309 -945
- package/dist-vue/_chunks/schemas-Clx4oKCB.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DGL81KJa.js → useChatbotStore-DMDbzuub.js} +1061 -1000
- package/dist-vue/_chunks/useChatbotStore-DMDbzuub.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -6
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +8 -8
- package/dist-vue/apps/web-component/src/lib.d.ts +29 -0
- package/dist-vue/apps/web-component/src/main.d.ts +0 -0
- package/dist-vue/apps/web-component/src/modules/applicationInsights.d.ts +38 -0
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +2852 -2876
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +5 -0
- package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +11 -0
- package/dist-vue/packages/auth/src/external-auth-plugin.d.ts +2 -0
- package/dist-vue/packages/auth/src/index.d.ts +3477 -8
- package/dist-vue/packages/auth/src/media-helpers.d.ts +13 -0
- package/dist-vue/packages/auth/src/organization-auto-join.d.ts +1 -0
- package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +1 -1
- package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +2 -2
- package/dist-vue/packages/components/src/PkEditorWyswyg.d.ts +1 -1
- package/dist-vue/packages/components/src/PkFieldset.d.ts +3 -3
- package/dist-vue/packages/components/src/composables/index.d.ts +3 -0
- package/dist-vue/packages/components/src/composables/useChatbotError.d.ts +11 -11
- package/dist-vue/packages/composable/src/constants.d.ts +5 -0
- package/dist-vue/packages/composable/src/useDialog.d.ts +3 -3
- package/dist-vue/packages/composable/src/useSettingsStore.d.ts +4 -5
- package/dist-vue/packages/models/src/schema/Agent.d.ts +27 -27
- package/dist-vue/packages/models/src/schema/AgentEndpoint.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/Document.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +5 -5
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +10 -10
- package/dist-vue/packages/models/src/schema/constants.d.ts +3 -1
- package/package.json +4 -4
- package/dist/_chunks/PkStreamingMarkdown-orhL2kzD.js.map +0 -1
- package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js +0 -1103
- package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js.map +0 -1
- package/dist/_chunks/PkToolShowSources-BQo5DRwt.js.map +0 -1
- package/dist/_chunks/dist-DtF6poRc.js.map +0 -1
- package/dist/_chunks/schemas-Bp3a8tYV.js.map +0 -1
- package/dist/_chunks/vue.runtime.esm-bundler-BmggS4HU.js.map +0 -1
- package/dist-vue/_chunks/Media-Bic_vfSX.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BxTeEm3j.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-B4gnJ4hk.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowSources-ZtXFkIHt.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-YJegM3ni.js.map +0 -1
- package/dist-vue/_chunks/schemas-sa2dDEGb.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DGL81KJa.js.map +0 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e, n as t, r as n, t as r } from "./rolldown-runtime-DHui2AQb.js";
|
|
2
|
-
import { $ as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, Gt as _, H as v, Ht as y, I as b, It as x, K as S, Kt as C, L as w, Lt as T, M as E, Mt as D, Nt as O, O as k, Ot as A, P as j, Pt as ee, Q as te, Rt as ne, S as re, St as ie, Tt as M, U as N, Ut as ae, V as oe, Vt as P, W as se, Wt as ce, Y as le, Z as F, _ as I, _t as ue, a as de, b as L, bt as fe, et as pe, f as me, ft as R, gt as he, h as ge, j as _e, jt as ve, k as z, kt as ye, m as be, n as xe, q as Se, s as Ce, st as we, v as Te, w as Ee, wt as De, x as B, xt as Oe, y as ke, yt as V, z as H, zt as Ae } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { a as je, i as Me, t as Ne } from "./iconify-
|
|
4
|
-
import {
|
|
5
|
-
import { a as Ue, c as We, i as Ge, l as Ke, n as qe, o as Je, r as Ye, s as Xe, t as Ze } from "./floating-ui.vue-B5ZV-j8C.js";
|
|
2
|
+
import { $ as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, Gt as _, H as v, Ht as y, I as b, It as x, K as S, Kt as C, L as w, Lt as T, M as E, Mt as D, Nt as O, O as k, Ot as A, P as j, Pt as ee, Q as te, Rt as ne, S as re, St as ie, Tt as M, U as N, Ut as ae, V as oe, Vt as P, W as se, Wt as ce, Y as le, Z as F, _ as I, _t as ue, a as de, b as L, bt as fe, et as pe, f as me, ft as R, gt as he, h as ge, j as _e, jt as ve, k as z, kt as ye, m as be, n as xe, q as Se, s as Ce, st as we, v as Te, w as Ee, wt as De, x as B, xt as Oe, y as ke, yt as V, z as H, zt as Ae } from "./vue.runtime.esm-bundler-Dq29dQrz.js";
|
|
3
|
+
import { a as je, i as Me, t as Ne } from "./iconify-y0w2FIJH.js";
|
|
4
|
+
import { a as Pe, c as Fe, i as Ie, l as Le, n as Re, o as ze, r as Be, s as Ve, t as He } from "./floating-ui.vue-tVPpNXUc.js";
|
|
6
5
|
import "./dot-prop-ByInxMX6.js";
|
|
7
|
-
import { t as
|
|
8
|
-
|
|
6
|
+
import { t as Ue } from "./esm-DLxNpT06.js";
|
|
7
|
+
import { c as We, d as Ge, f as Ke, l as qe, n as Je, o as Ye, r as Xe, s as Ze, u as Qe } from "./dist-yqV26MWM.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.34/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
|
|
9
9
|
function $e(e) {
|
|
10
10
|
Object.getOwnPropertySymbols(e).forEach((t) => {
|
|
11
11
|
Di[t] = e[t];
|
|
@@ -4492,8 +4492,7 @@ var Js, Ys, Xs, Zs, Qs, $s, ec, tc, nc, rc, ic, ac, oc, sc, cc, lc, X, uc, Z, dc
|
|
|
4492
4492
|
},
|
|
4493
4493
|
drop: ll
|
|
4494
4494
|
}, Vo(Vs, { pluginName: "removeOnSpill" }), Q = [], dl = [], ml = !1, hl = !1, gl = !1, Y.mount(new Ls()), Y.mount(Vs, Bs);
|
|
4495
|
-
}))
|
|
4496
|
-
(/* @__PURE__ */ r(((t, n) => {
|
|
4495
|
+
})), xl = /* @__PURE__ */ r(((t, n) => {
|
|
4497
4496
|
(function(r, i) {
|
|
4498
4497
|
typeof t == "object" && typeof n == "object" ? n.exports = i(Fo(), (bl(), e(Io))) : typeof define == "function" && define.amd ? define([, "sortablejs"], i) : typeof t == "object" ? t.vuedraggable = i(Fo(), (bl(), e(Io))) : r.vuedraggable = i(r.Vue, r.Sortable);
|
|
4499
4498
|
})(typeof self < "u" ? self : t, function(e, t) {
|
|
@@ -6693,8 +6692,9 @@ var Js, Ys, Xs, Zs, Qs, $s, ec, tc, nc, rc, ic, ac, oc, sc, cc, lc, X, uc, Z, dc
|
|
|
6693
6692
|
})
|
|
6694
6693
|
}).default;
|
|
6695
6694
|
});
|
|
6696
|
-
}))
|
|
6697
|
-
|
|
6695
|
+
}));
|
|
6696
|
+
xl();
|
|
6697
|
+
var Sl = {
|
|
6698
6698
|
showPassword: "eye-on",
|
|
6699
6699
|
hidePassword: "eye-off",
|
|
6700
6700
|
showDatePicker: "calendar",
|
|
@@ -6705,31 +6705,31 @@ var xl = {
|
|
|
6705
6705
|
remove: "trash",
|
|
6706
6706
|
edit: "edit",
|
|
6707
6707
|
download: "download"
|
|
6708
|
-
},
|
|
6708
|
+
}, Cl = { prefix: (/* @__PURE__ */ (function(e) {
|
|
6709
6709
|
return e.simple = "simple", e.normal = "normal", e.detailed = "detailed", e;
|
|
6710
|
-
})({})).normal },
|
|
6710
|
+
})({})).normal }, wl = /* @__PURE__ */ (function(e) {
|
|
6711
6711
|
return e.local = "local", e.session = "session", e;
|
|
6712
|
-
})({}), wl = /* @__PURE__ */ (function(e) {
|
|
6713
|
-
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
6714
6712
|
})({}), Tl = /* @__PURE__ */ (function(e) {
|
|
6715
|
-
return e.
|
|
6713
|
+
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
6716
6714
|
})({}), El = /* @__PURE__ */ (function(e) {
|
|
6717
|
-
return e.
|
|
6715
|
+
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
6718
6716
|
})({}), Dl = /* @__PURE__ */ (function(e) {
|
|
6719
|
-
return e.
|
|
6717
|
+
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;
|
|
6720
6718
|
})({}), Ol = /* @__PURE__ */ (function(e) {
|
|
6721
|
-
return e.
|
|
6719
|
+
return e.before = "before", e.after = "after", e;
|
|
6722
6720
|
})({}), kl = /* @__PURE__ */ (function(e) {
|
|
6723
|
-
return e.
|
|
6721
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
6724
6722
|
})({}), Al = /* @__PURE__ */ (function(e) {
|
|
6725
|
-
return e.
|
|
6723
|
+
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
6726
6724
|
})({}), jl = /* @__PURE__ */ (function(e) {
|
|
6727
|
-
return e.
|
|
6725
|
+
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
6728
6726
|
})({}), Ml = /* @__PURE__ */ (function(e) {
|
|
6729
|
-
return e.
|
|
6727
|
+
return e.listbox = "listbox", e.menu = "menu", e;
|
|
6730
6728
|
})({}), Nl = /* @__PURE__ */ (function(e) {
|
|
6729
|
+
return e.option = "option", e.presentation = "presentation", e;
|
|
6730
|
+
})({}), Pl = /* @__PURE__ */ (function(e) {
|
|
6731
6731
|
return e.alert = "alert", e.alertdialog = "alertdialog", e;
|
|
6732
|
-
})({}),
|
|
6732
|
+
})({}), Fl = /* @__PURE__ */ Symbol.for("volver"), Il = /* @__PURE__ */ Symbol.for("buttonGroup"), Ll = /* @__PURE__ */ Symbol.for("accordionGroup"), Rl = /* @__PURE__ */ Symbol.for("dropdownTrigger"), zl = /* @__PURE__ */ Symbol.for("dropdownItem"), Bl = /* @__PURE__ */ Symbol.for("dropdownAction"), Vl = /* @__PURE__ */ Symbol.for("alertGroup"), Hl = {
|
|
6733
6733
|
to: { type: [String, Object] },
|
|
6734
6734
|
href: String,
|
|
6735
6735
|
target: String,
|
|
@@ -6737,7 +6737,7 @@ var xl = {
|
|
|
6737
6737
|
type: String,
|
|
6738
6738
|
default: "noopener noreferrer"
|
|
6739
6739
|
}
|
|
6740
|
-
},
|
|
6740
|
+
}, Ul = {
|
|
6741
6741
|
valid: {
|
|
6742
6742
|
type: Boolean,
|
|
6743
6743
|
default: !1
|
|
@@ -6746,7 +6746,7 @@ var xl = {
|
|
|
6746
6746
|
type: [String, Array],
|
|
6747
6747
|
default: void 0
|
|
6748
6748
|
}
|
|
6749
|
-
},
|
|
6749
|
+
}, Wl = {
|
|
6750
6750
|
invalid: {
|
|
6751
6751
|
type: Boolean,
|
|
6752
6752
|
default: !1
|
|
@@ -6755,7 +6755,7 @@ var xl = {
|
|
|
6755
6755
|
type: [String, Array],
|
|
6756
6756
|
default: void 0
|
|
6757
6757
|
}
|
|
6758
|
-
},
|
|
6758
|
+
}, Gl = {
|
|
6759
6759
|
loading: {
|
|
6760
6760
|
type: Boolean,
|
|
6761
6761
|
default: !1
|
|
@@ -6764,50 +6764,50 @@ var xl = {
|
|
|
6764
6764
|
type: String,
|
|
6765
6765
|
default: "Loading..."
|
|
6766
6766
|
}
|
|
6767
|
-
},
|
|
6767
|
+
}, Kl = { disabled: {
|
|
6768
6768
|
type: Boolean,
|
|
6769
6769
|
default: !1
|
|
6770
|
-
} },
|
|
6770
|
+
} }, ql = { required: {
|
|
6771
6771
|
type: Boolean,
|
|
6772
6772
|
default: !1
|
|
6773
|
-
} },
|
|
6773
|
+
} }, Jl = { selected: {
|
|
6774
6774
|
type: Boolean,
|
|
6775
6775
|
default: !1
|
|
6776
|
-
} },
|
|
6776
|
+
} }, Yl = { active: {
|
|
6777
6777
|
type: Boolean,
|
|
6778
6778
|
default: !1
|
|
6779
|
-
} },
|
|
6779
|
+
} }, Xl = { current: {
|
|
6780
6780
|
type: Boolean,
|
|
6781
6781
|
default: !1
|
|
6782
|
-
} },
|
|
6782
|
+
} }, Zl = {
|
|
6783
6783
|
showClearAction: {
|
|
6784
6784
|
type: Boolean,
|
|
6785
6785
|
default: !1
|
|
6786
6786
|
},
|
|
6787
6787
|
iconClear: {
|
|
6788
6788
|
type: [String, Object],
|
|
6789
|
-
default:
|
|
6789
|
+
default: Sl.clear
|
|
6790
6790
|
},
|
|
6791
6791
|
labelClear: {
|
|
6792
6792
|
type: String,
|
|
6793
6793
|
default: "Clear"
|
|
6794
6794
|
}
|
|
6795
|
-
},
|
|
6795
|
+
}, Ql = { pressed: {
|
|
6796
6796
|
type: Boolean,
|
|
6797
6797
|
default: !1
|
|
6798
|
-
} },
|
|
6798
|
+
} }, $l = { label: {
|
|
6799
6799
|
type: [String, Number],
|
|
6800
6800
|
default: void 0
|
|
6801
|
-
} },
|
|
6801
|
+
} }, eu = { readonly: {
|
|
6802
6802
|
type: Boolean,
|
|
6803
6803
|
default: !1
|
|
6804
|
-
} },
|
|
6804
|
+
} }, tu = { modifiers: {
|
|
6805
6805
|
type: [String, Array],
|
|
6806
6806
|
default: void 0
|
|
6807
|
-
} },
|
|
6807
|
+
} }, nu = { hintLabel: {
|
|
6808
6808
|
type: String,
|
|
6809
6809
|
default: ""
|
|
6810
|
-
} },
|
|
6810
|
+
} }, ru = {
|
|
6811
6811
|
options: {
|
|
6812
6812
|
type: Array,
|
|
6813
6813
|
default: () => []
|
|
@@ -6824,7 +6824,7 @@ var xl = {
|
|
|
6824
6824
|
type: [String, Function],
|
|
6825
6825
|
default: "disabled"
|
|
6826
6826
|
}
|
|
6827
|
-
},
|
|
6827
|
+
}, iu = { count: {
|
|
6828
6828
|
type: [Boolean, String],
|
|
6829
6829
|
default: !1,
|
|
6830
6830
|
validator: (e) => [
|
|
@@ -6833,38 +6833,38 @@ var xl = {
|
|
|
6833
6833
|
"limit",
|
|
6834
6834
|
"countdown"
|
|
6835
6835
|
].includes(e)
|
|
6836
|
-
} },
|
|
6836
|
+
} }, au = { debounce: {
|
|
6837
6837
|
type: [Number, String],
|
|
6838
6838
|
default: void 0
|
|
6839
|
-
} },
|
|
6839
|
+
} }, ou = {
|
|
6840
6840
|
icon: {
|
|
6841
6841
|
type: [String, Object],
|
|
6842
6842
|
default: void 0
|
|
6843
6843
|
},
|
|
6844
6844
|
iconPosition: {
|
|
6845
6845
|
type: String,
|
|
6846
|
-
default:
|
|
6847
|
-
validation: (e) => Object.values(
|
|
6846
|
+
default: Ol.before,
|
|
6847
|
+
validation: (e) => Object.values(Ol).includes(e)
|
|
6848
6848
|
}
|
|
6849
|
-
},
|
|
6849
|
+
}, su = { tabindex: {
|
|
6850
6850
|
type: [String, Number],
|
|
6851
6851
|
default: 0
|
|
6852
|
-
} },
|
|
6852
|
+
} }, cu = { floating: {
|
|
6853
6853
|
type: Boolean,
|
|
6854
6854
|
default: !1
|
|
6855
|
-
} },
|
|
6855
|
+
} }, lu = { unselectable: {
|
|
6856
6856
|
type: Boolean,
|
|
6857
6857
|
default: !0
|
|
6858
|
-
} },
|
|
6858
|
+
} }, uu = { id: [String, Number] }, du = {
|
|
6859
6859
|
placement: {
|
|
6860
6860
|
type: String,
|
|
6861
|
-
default:
|
|
6862
|
-
validator: (e) => Object.values(
|
|
6861
|
+
default: El.bottom,
|
|
6862
|
+
validator: (e) => Object.values(El).includes(e) || Object.values(Dl).includes(e)
|
|
6863
6863
|
},
|
|
6864
6864
|
strategy: {
|
|
6865
6865
|
type: String,
|
|
6866
6866
|
default: void 0,
|
|
6867
|
-
validator: (e) => Object.values(
|
|
6867
|
+
validator: (e) => Object.values(Tl).includes(e)
|
|
6868
6868
|
},
|
|
6869
6869
|
transitionName: {
|
|
6870
6870
|
type: String,
|
|
@@ -6910,35 +6910,35 @@ var xl = {
|
|
|
6910
6910
|
type: Boolean,
|
|
6911
6911
|
default: !1
|
|
6912
6912
|
}
|
|
6913
|
-
},
|
|
6914
|
-
...
|
|
6913
|
+
}, fu = {
|
|
6914
|
+
...uu,
|
|
6915
6915
|
name: {
|
|
6916
6916
|
type: String,
|
|
6917
6917
|
required: !0
|
|
6918
6918
|
}
|
|
6919
|
-
},
|
|
6919
|
+
}, pu = { autofocus: {
|
|
6920
6920
|
type: Boolean,
|
|
6921
6921
|
default: !1
|
|
6922
|
-
} },
|
|
6922
|
+
} }, mu = { autocomplete: {
|
|
6923
6923
|
type: String,
|
|
6924
6924
|
default: "off"
|
|
6925
|
-
} },
|
|
6926
|
-
...du,
|
|
6925
|
+
} }, hu = {
|
|
6927
6926
|
...fu,
|
|
6928
6927
|
...pu,
|
|
6929
|
-
...
|
|
6930
|
-
...
|
|
6931
|
-
|
|
6932
|
-
...
|
|
6928
|
+
...mu,
|
|
6929
|
+
...su,
|
|
6930
|
+
...Kl,
|
|
6931
|
+
...eu,
|
|
6933
6932
|
...Ul,
|
|
6934
|
-
...tu,
|
|
6935
6933
|
...Wl,
|
|
6936
|
-
...
|
|
6937
|
-
...
|
|
6934
|
+
...nu,
|
|
6935
|
+
...Gl,
|
|
6936
|
+
...tu,
|
|
6938
6937
|
...iu,
|
|
6939
6938
|
...au,
|
|
6940
|
-
...
|
|
6941
|
-
...
|
|
6939
|
+
...ou,
|
|
6940
|
+
...cu,
|
|
6941
|
+
...$l,
|
|
6942
6942
|
minlength: {
|
|
6943
6943
|
type: [String, Number],
|
|
6944
6944
|
default: void 0
|
|
@@ -6951,18 +6951,18 @@ var xl = {
|
|
|
6951
6951
|
type: String,
|
|
6952
6952
|
default: void 0
|
|
6953
6953
|
},
|
|
6954
|
-
...
|
|
6955
|
-
},
|
|
6956
|
-
...
|
|
6957
|
-
...
|
|
6958
|
-
...Hl,
|
|
6954
|
+
...ql
|
|
6955
|
+
}, gu = {
|
|
6956
|
+
...fu,
|
|
6957
|
+
...su,
|
|
6959
6958
|
...Ul,
|
|
6959
|
+
...Wl,
|
|
6960
|
+
...nu,
|
|
6961
|
+
...Kl,
|
|
6962
|
+
...eu,
|
|
6960
6963
|
...tu,
|
|
6961
|
-
...Gl,
|
|
6962
6964
|
...$l,
|
|
6963
|
-
...
|
|
6964
|
-
...Ql,
|
|
6965
|
-
...Wl,
|
|
6965
|
+
...Gl,
|
|
6966
6966
|
value: {
|
|
6967
6967
|
type: [
|
|
6968
6968
|
String,
|
|
@@ -6982,28 +6982,28 @@ var xl = {
|
|
|
6982
6982
|
}
|
|
6983
6983
|
};
|
|
6984
6984
|
({
|
|
6985
|
-
...Hl,
|
|
6986
6985
|
...Ul,
|
|
6986
|
+
...Wl,
|
|
6987
|
+
...ru,
|
|
6987
6988
|
...nu,
|
|
6989
|
+
...Kl,
|
|
6990
|
+
...eu,
|
|
6988
6991
|
...tu,
|
|
6989
|
-
...Gl,
|
|
6990
6992
|
...$l,
|
|
6991
|
-
...eu,
|
|
6992
|
-
...Ql,
|
|
6993
|
-
...Wl,
|
|
6994
|
-
...Kl
|
|
6995
|
-
});
|
|
6996
|
-
var gu = {
|
|
6997
6993
|
...Gl,
|
|
6994
|
+
...ql
|
|
6995
|
+
});
|
|
6996
|
+
var _u = {
|
|
6997
|
+
...Kl,
|
|
6998
|
+
...$l,
|
|
6998
6999
|
...Ql,
|
|
6999
|
-
...Zl,
|
|
7000
|
-
...Jl,
|
|
7001
7000
|
...Yl,
|
|
7002
|
-
...
|
|
7001
|
+
...Xl,
|
|
7002
|
+
...Hl,
|
|
7003
7003
|
type: {
|
|
7004
7004
|
type: String,
|
|
7005
|
-
default:
|
|
7006
|
-
validator: (e) => Object.values(
|
|
7005
|
+
default: kl.button,
|
|
7006
|
+
validator: (e) => Object.values(kl).includes(e)
|
|
7007
7007
|
},
|
|
7008
7008
|
ariaLabel: {
|
|
7009
7009
|
type: String,
|
|
@@ -7011,20 +7011,20 @@ var gu = {
|
|
|
7011
7011
|
},
|
|
7012
7012
|
defaultTag: {
|
|
7013
7013
|
type: String,
|
|
7014
|
-
default:
|
|
7014
|
+
default: Al.button
|
|
7015
7015
|
}
|
|
7016
|
-
},
|
|
7016
|
+
}, vu = { items: {
|
|
7017
7017
|
type: Array,
|
|
7018
7018
|
default: () => []
|
|
7019
|
-
} },
|
|
7019
|
+
} }, yu = {
|
|
7020
7020
|
storageType: {
|
|
7021
7021
|
type: String,
|
|
7022
|
-
default:
|
|
7023
|
-
validator: (e) => Object.values(
|
|
7022
|
+
default: wl.local,
|
|
7023
|
+
validator: (e) => Object.values(wl).includes(e)
|
|
7024
7024
|
},
|
|
7025
7025
|
storageKey: String
|
|
7026
7026
|
};
|
|
7027
|
-
function
|
|
7027
|
+
function bu(e) {
|
|
7028
7028
|
let t = _e(e, void 0), n = I(() => t !== void 0);
|
|
7029
7029
|
function r(e, n, r) {
|
|
7030
7030
|
let i = t?.[e];
|
|
@@ -7052,8 +7052,8 @@ function yu(e) {
|
|
|
7052
7052
|
getGroupOrLocalRef: r
|
|
7053
7053
|
};
|
|
7054
7054
|
}
|
|
7055
|
-
var
|
|
7056
|
-
...
|
|
7055
|
+
var xu = {
|
|
7056
|
+
...tu,
|
|
7057
7057
|
name: String,
|
|
7058
7058
|
title: String,
|
|
7059
7059
|
content: String,
|
|
@@ -7063,9 +7063,9 @@ var bu = {
|
|
|
7063
7063
|
},
|
|
7064
7064
|
disabled: Boolean,
|
|
7065
7065
|
not: Boolean
|
|
7066
|
-
},
|
|
7067
|
-
function
|
|
7068
|
-
let { group: t, isInGroup: n } =
|
|
7066
|
+
}, Su = ["update:modelValue"];
|
|
7067
|
+
function Cu(e) {
|
|
7068
|
+
let { group: t, isInGroup: n } = bu(Ll), r = I(() => !!(e.disabled || t?.disabled.value));
|
|
7069
7069
|
return {
|
|
7070
7070
|
isInGroup: n,
|
|
7071
7071
|
group: t,
|
|
@@ -7077,7 +7077,7 @@ function Su(e) {
|
|
|
7077
7077
|
bus: t?.bus
|
|
7078
7078
|
};
|
|
7079
7079
|
}
|
|
7080
|
-
function
|
|
7080
|
+
function wu(e, t, n) {
|
|
7081
7081
|
return I(() => {
|
|
7082
7082
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
7083
7083
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
@@ -7087,12 +7087,12 @@ function Cu(e, t, n) {
|
|
|
7087
7087
|
}), r;
|
|
7088
7088
|
});
|
|
7089
7089
|
}
|
|
7090
|
-
var
|
|
7090
|
+
var Tu = ["id", "open"], Eu = ["aria-controls", "aria-expanded"], Du = ["aria-hidden"], Ou = /* @__PURE__ */ f({
|
|
7091
7091
|
name: "VvAccordion",
|
|
7092
|
-
props:
|
|
7093
|
-
emits:
|
|
7092
|
+
props: xu,
|
|
7093
|
+
emits: Su,
|
|
7094
7094
|
setup(e, { expose: t, emit: n }) {
|
|
7095
|
-
let r = e, i = n, a = S(), o =
|
|
7095
|
+
let r = e, i = n, a = S(), o = Ke(r, "modelValue", i), l = I(() => r.name || a?.id || Se()), { title: u, content: d, not: f } = ue(r), { isInGroup: p, modifiers: m, disabled: h, bus: g } = Cu(r), y = R(!1);
|
|
7096
7096
|
F(o, (e) => {
|
|
7097
7097
|
typeof e == "boolean" && (y.value = f.value ? !e : e);
|
|
7098
7098
|
}, { immediate: !0 }), F(y, (e) => {
|
|
@@ -7144,7 +7144,7 @@ var wu = ["id", "open"], Tu = ["aria-controls", "aria-expanded"], Eu = ["aria-hi
|
|
|
7144
7144
|
groupExpand: T,
|
|
7145
7145
|
groupCollapse: E
|
|
7146
7146
|
});
|
|
7147
|
-
let D =
|
|
7147
|
+
let D = wu("vv-accordion", m, I(() => ({ disabled: h.value })));
|
|
7148
7148
|
return (e, t) => (H(), B("details", {
|
|
7149
7149
|
id: V(l),
|
|
7150
7150
|
class: s(V(D)),
|
|
@@ -7160,7 +7160,7 @@ var wu = ["id", "open"], Tu = ["aria-controls", "aria-expanded"], Eu = ["aria-hi
|
|
|
7160
7160
|
collapse: w,
|
|
7161
7161
|
groupExpand: T,
|
|
7162
7162
|
groupCollapse: E
|
|
7163
|
-
})), () => [c(_(V(u)), 1)])], 8,
|
|
7163
|
+
})), () => [c(_(V(u)), 1)])], 8, Eu), Te("div", {
|
|
7164
7164
|
"aria-hidden": !V(y),
|
|
7165
7165
|
class: "vv-accordion__content"
|
|
7166
7166
|
}, [v(e.$slots, "default", P(k({
|
|
@@ -7169,32 +7169,32 @@ var wu = ["id", "open"], Tu = ["aria-controls", "aria-expanded"], Eu = ["aria-hi
|
|
|
7169
7169
|
collapse: w,
|
|
7170
7170
|
groupExpand: T,
|
|
7171
7171
|
groupCollapse: E
|
|
7172
|
-
})), () => [c(_(V(d)), 1)])], 8,
|
|
7172
|
+
})), () => [c(_(V(d)), 1)])], 8, Du)], 10, Tu));
|
|
7173
7173
|
}
|
|
7174
7174
|
});
|
|
7175
7175
|
({
|
|
7176
|
-
...
|
|
7177
|
-
...
|
|
7176
|
+
...tu,
|
|
7177
|
+
...yu
|
|
7178
7178
|
});
|
|
7179
|
-
function
|
|
7179
|
+
function ku(e, t = wl.local, n) {
|
|
7180
7180
|
let r = R();
|
|
7181
7181
|
n && (r.value = n);
|
|
7182
7182
|
let i;
|
|
7183
7183
|
return w(() => {
|
|
7184
7184
|
e && F(e, (e, n) => {
|
|
7185
|
-
let a = V(t) ===
|
|
7185
|
+
let a = V(t) === wl.session ? sessionStorage : localStorage;
|
|
7186
7186
|
if (n && n !== e && a.removeItem(n), e) {
|
|
7187
|
-
i =
|
|
7187
|
+
i = Ge(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
7188
7188
|
return;
|
|
7189
7189
|
}
|
|
7190
7190
|
i = void 0;
|
|
7191
7191
|
}, { immediate: !0 }), we(t) && F(t, (t, n) => {
|
|
7192
7192
|
if (e?.value) {
|
|
7193
7193
|
if (t) {
|
|
7194
|
-
let n = t ===
|
|
7195
|
-
i =
|
|
7194
|
+
let n = t === wl.session ? sessionStorage : localStorage;
|
|
7195
|
+
i = Ge(e.value, i?.value ?? r.value, n);
|
|
7196
7196
|
}
|
|
7197
|
-
n && n !== t && (n ===
|
|
7197
|
+
n && n !== t && (n === wl.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
7198
7198
|
}
|
|
7199
7199
|
});
|
|
7200
7200
|
}), F(r, (e) => {
|
|
@@ -7204,19 +7204,16 @@ function Ou(e, t = Cl.local, n) {
|
|
|
7204
7204
|
immediate: !0
|
|
7205
7205
|
}), r;
|
|
7206
7206
|
}
|
|
7207
|
-
function
|
|
7207
|
+
function Au(e, t) {
|
|
7208
7208
|
o(e, t);
|
|
7209
7209
|
}
|
|
7210
|
-
var
|
|
7210
|
+
var ju = [
|
|
7211
7211
|
"click",
|
|
7212
7212
|
"mouseover",
|
|
7213
7213
|
"mouseleave"
|
|
7214
|
-
],
|
|
7215
|
-
function Mu() {
|
|
7216
|
-
return _e(Pl, void 0);
|
|
7217
|
-
}
|
|
7214
|
+
], Mu = _u;
|
|
7218
7215
|
function Nu() {
|
|
7219
|
-
return _e(
|
|
7216
|
+
return _e(Fl, void 0);
|
|
7220
7217
|
}
|
|
7221
7218
|
function Pu() {
|
|
7222
7219
|
return _e(Rl, {});
|
|
@@ -7224,22 +7221,25 @@ function Pu() {
|
|
|
7224
7221
|
function Fu() {
|
|
7225
7222
|
return _e(zl, {});
|
|
7226
7223
|
}
|
|
7227
|
-
|
|
7224
|
+
function Iu() {
|
|
7225
|
+
return _e(Bl, {});
|
|
7226
|
+
}
|
|
7227
|
+
var Lu = /* @__PURE__ */ f({
|
|
7228
7228
|
name: "VvAction",
|
|
7229
|
-
props:
|
|
7230
|
-
emits:
|
|
7229
|
+
props: Mu,
|
|
7230
|
+
emits: ju,
|
|
7231
7231
|
setup(e, { expose: t, emit: n }) {
|
|
7232
|
-
let r = e, a = n, o = u(), s =
|
|
7232
|
+
let r = e, a = n, o = u(), s = Nu(), l = R(null);
|
|
7233
7233
|
t({ $el: l });
|
|
7234
|
-
let { reference: d, bus: f, aria: p, expanded: m } =
|
|
7234
|
+
let { reference: d, bus: f, aria: p, expanded: m } = Pu();
|
|
7235
7235
|
F(() => l.value, (e) => {
|
|
7236
7236
|
d && (d.value = e);
|
|
7237
7237
|
});
|
|
7238
|
-
let h = I(() => r.pressed || m?.value), { role: g } =
|
|
7238
|
+
let h = I(() => r.pressed || m?.value), { role: g } = Iu(), y = I(() => {
|
|
7239
7239
|
switch (!0) {
|
|
7240
|
-
case r.disabled: return
|
|
7241
|
-
case r.to !== void 0: return s?.nuxt ? N(
|
|
7242
|
-
case r.href !== void 0: return
|
|
7240
|
+
case r.disabled: return Al.button;
|
|
7241
|
+
case r.to !== void 0: return s?.nuxt ? N(Al.nuxtLink) : Al.routerLink;
|
|
7242
|
+
case r.href !== void 0: return Al.a;
|
|
7243
7243
|
default: return r.defaultTag;
|
|
7244
7244
|
}
|
|
7245
7245
|
}), b = I(() => {
|
|
@@ -7250,19 +7250,19 @@ var Iu = /* @__PURE__ */ f({
|
|
|
7250
7250
|
role: g?.value
|
|
7251
7251
|
};
|
|
7252
7252
|
switch (y.value) {
|
|
7253
|
-
case
|
|
7253
|
+
case Al.a: return {
|
|
7254
7254
|
...e,
|
|
7255
7255
|
href: r.href,
|
|
7256
7256
|
target: r.target,
|
|
7257
7257
|
rel: r.rel
|
|
7258
7258
|
};
|
|
7259
|
-
case
|
|
7260
|
-
case
|
|
7259
|
+
case Al.routerLink:
|
|
7260
|
+
case Al.nuxtLink: return {
|
|
7261
7261
|
...e,
|
|
7262
7262
|
to: r.to,
|
|
7263
7263
|
target: r.target
|
|
7264
7264
|
};
|
|
7265
|
-
case
|
|
7265
|
+
case Al.button: return {
|
|
7266
7266
|
...e,
|
|
7267
7267
|
type: r.type,
|
|
7268
7268
|
disabled: r.disabled
|
|
@@ -7313,27 +7313,27 @@ var Iu = /* @__PURE__ */ f({
|
|
|
7313
7313
|
}, 16, ["class"]));
|
|
7314
7314
|
}
|
|
7315
7315
|
});
|
|
7316
|
-
function
|
|
7317
|
-
return _e(
|
|
7316
|
+
function Ru() {
|
|
7317
|
+
return _e(Vl, {});
|
|
7318
7318
|
}
|
|
7319
|
-
function
|
|
7319
|
+
function zu(e) {
|
|
7320
7320
|
return I(() => String(e?.value || Se()));
|
|
7321
7321
|
}
|
|
7322
|
-
function
|
|
7323
|
-
let n = I(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = I(() => t?.value ===
|
|
7322
|
+
function Bu(e, t) {
|
|
7323
|
+
let n = I(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = I(() => t?.value === Ol.before ? n.value : void 0), i = I(() => t?.value === Ol.after ? n.value : void 0);
|
|
7324
7324
|
return {
|
|
7325
7325
|
hasIcon: n,
|
|
7326
|
-
hasIconLeft: I(() => t?.value ===
|
|
7327
|
-
hasIconRight: I(() => t?.value ===
|
|
7328
|
-
hasIconTop: I(() => t?.value ===
|
|
7329
|
-
hasIconBottom: I(() => t?.value ===
|
|
7326
|
+
hasIconLeft: I(() => t?.value === El.left ? n.value : void 0),
|
|
7327
|
+
hasIconRight: I(() => t?.value === El.right ? n.value : void 0),
|
|
7328
|
+
hasIconTop: I(() => t?.value === El.top ? n.value : void 0),
|
|
7329
|
+
hasIconBottom: I(() => t?.value === El.bottom ? n.value : void 0),
|
|
7330
7330
|
hasIconBefore: r,
|
|
7331
7331
|
hasIconAfter: i
|
|
7332
7332
|
};
|
|
7333
7333
|
}
|
|
7334
|
-
var
|
|
7335
|
-
...
|
|
7336
|
-
...
|
|
7334
|
+
var Vu = {
|
|
7335
|
+
...uu,
|
|
7336
|
+
...ou,
|
|
7337
7337
|
modifiers: {
|
|
7338
7338
|
type: [String, Array],
|
|
7339
7339
|
default: void 0
|
|
@@ -7364,11 +7364,11 @@ var Bu = {
|
|
|
7364
7364
|
},
|
|
7365
7365
|
role: {
|
|
7366
7366
|
type: String,
|
|
7367
|
-
default:
|
|
7367
|
+
default: Pl.alert
|
|
7368
7368
|
}
|
|
7369
|
-
},
|
|
7370
|
-
function
|
|
7371
|
-
let { bus: n } =
|
|
7369
|
+
}, Hu = ["close"];
|
|
7370
|
+
function Uu(e, t) {
|
|
7371
|
+
let { bus: n } = Ru(), r = zu(I(() => e.id)), i = I(() => `${r.value}-title`), a, o = () => {
|
|
7372
7372
|
a && clearTimeout(a), t("close", r.value), n?.emit("close", r.value);
|
|
7373
7373
|
};
|
|
7374
7374
|
F(() => e.autoClose, (e) => {
|
|
@@ -7382,7 +7382,7 @@ function Hu(e, t) {
|
|
|
7382
7382
|
s.value = !0, a && clearTimeout(a);
|
|
7383
7383
|
}, l = () => {
|
|
7384
7384
|
s.value = !1, e.autoClose > 0 && (a = setTimeout(o, e.autoClose));
|
|
7385
|
-
}, { hasIcon: u } =
|
|
7385
|
+
}, { hasIcon: u } = Bu(I(() => e.icon)), d = wu("vv-alert", I(() => e.modifiers), I(() => ({
|
|
7386
7386
|
dismissable: e.autoClose > 0 || e.dismissable,
|
|
7387
7387
|
"auto-close": e.autoClose > 0,
|
|
7388
7388
|
hover: s.value
|
|
@@ -7401,7 +7401,7 @@ function Hu(e, t) {
|
|
|
7401
7401
|
}))
|
|
7402
7402
|
};
|
|
7403
7403
|
}
|
|
7404
|
-
var
|
|
7404
|
+
var Wu = /* @__PURE__ */ f({
|
|
7405
7405
|
name: "VvIcon",
|
|
7406
7406
|
props: /* @__PURE__ */ E({
|
|
7407
7407
|
name: {},
|
|
@@ -7420,9 +7420,9 @@ var Uu = /* @__PURE__ */ f({
|
|
|
7420
7420
|
onLoad: { type: Function },
|
|
7421
7421
|
svg: {},
|
|
7422
7422
|
modifiers: {}
|
|
7423
|
-
},
|
|
7423
|
+
}, Cl),
|
|
7424
7424
|
setup(e) {
|
|
7425
|
-
let t = e, n = I(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = R(!0), i =
|
|
7425
|
+
let t = e, n = I(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = R(!0), i = Nu(), { modifiers: a } = ue(t), o = wu("vv-icon", a), s = I(() => t.provider || i?.iconsProvider), c = I(() => {
|
|
7426
7426
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
7427
7427
|
if (je(n)) return n;
|
|
7428
7428
|
let r = i?.iconsCollections.find((t) => je(`@${s.value}:${t.prefix}:${e}`));
|
|
@@ -7459,31 +7459,31 @@ var Uu = /* @__PURE__ */ f({
|
|
|
7459
7459
|
icon: V(c)
|
|
7460
7460
|
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : L("v-if", !0);
|
|
7461
7461
|
}
|
|
7462
|
-
}),
|
|
7462
|
+
}), Gu = {
|
|
7463
7463
|
key: 0,
|
|
7464
7464
|
class: "vv-alert__header"
|
|
7465
|
-
},
|
|
7465
|
+
}, Ku = ["id"], qu = ["aria-label"], Ju = {
|
|
7466
7466
|
key: 1,
|
|
7467
7467
|
class: "vv-alert__content"
|
|
7468
|
-
},
|
|
7468
|
+
}, Yu = {
|
|
7469
7469
|
key: 2,
|
|
7470
7470
|
class: "vv-alert__footer"
|
|
7471
|
-
},
|
|
7471
|
+
}, Xu = /* @__PURE__ */ f({
|
|
7472
7472
|
name: "VvAlert",
|
|
7473
|
-
props:
|
|
7474
|
-
emits:
|
|
7473
|
+
props: Vu,
|
|
7474
|
+
emits: Hu,
|
|
7475
7475
|
setup(e, { expose: t, emit: n }) {
|
|
7476
|
-
let { hasProps: r, hasTitleId: i, hasIcon: a, close: o } =
|
|
7476
|
+
let { hasProps: r, hasTitleId: i, hasIcon: a, close: o } = Uu(e, n);
|
|
7477
7477
|
return t({ close: o }), (e, t) => (H(), B("div", P(k(V(r))), [
|
|
7478
|
-
e.$slots.header || e.$slots.title || e.$slots.close || e.$slots["title::before"] || e.$slots["title::after"] || e.title || V(a) || e.dismissable || e.autoClose ? (H(), B("div",
|
|
7479
|
-
V(a) ? (H(), ke(
|
|
7478
|
+
e.$slots.header || e.$slots.title || e.$slots.close || e.$slots["title::before"] || e.$slots["title::after"] || e.title || V(a) || e.dismissable || e.autoClose ? (H(), B("div", Gu, [
|
|
7479
|
+
V(a) ? (H(), ke(Wu, j({ key: 0 }, V(a), { class: "vv-alert__icon" }), null, 16)) : L("v-if", !0),
|
|
7480
7480
|
v(e.$slots, "header", {}, () => [
|
|
7481
7481
|
v(e.$slots, "title::before"),
|
|
7482
7482
|
e.$slots.title || e.title ? (H(), B("strong", {
|
|
7483
7483
|
key: 0,
|
|
7484
7484
|
id: V(i),
|
|
7485
7485
|
class: "vv-alert__title"
|
|
7486
|
-
}, [v(e.$slots, "title", {}, () => [c(_(e.title), 1)])], 8,
|
|
7486
|
+
}, [v(e.$slots, "title", {}, () => [c(_(e.title), 1)])], 8, Ku)) : L("v-if", !0),
|
|
7487
7487
|
v(e.$slots, "title::after")
|
|
7488
7488
|
]),
|
|
7489
7489
|
v(e.$slots, "close", P(k({ close: V(o) })), () => [e.dismissable || e.autoClose ? (H(), B("button", {
|
|
@@ -7492,22 +7492,22 @@ var Uu = /* @__PURE__ */ f({
|
|
|
7492
7492
|
type: "button",
|
|
7493
7493
|
"aria-label": e.closeLabel,
|
|
7494
7494
|
onClick: t[0] ||= be((...e) => V(o) && V(o)(...e), ["stop"])
|
|
7495
|
-
}, [...t[1] ||= [Te("div", { class: "vv-alert__close-mask" }, null, -1)]], 8,
|
|
7495
|
+
}, [...t[1] ||= [Te("div", { class: "vv-alert__close-mask" }, null, -1)]], 8, qu)) : L("v-if", !0)])
|
|
7496
7496
|
])) : L("v-if", !0),
|
|
7497
|
-
e.$slots.default || e.content ? (H(), B("div",
|
|
7498
|
-
e.$slots.footer || e.footer ? (H(), B("div",
|
|
7497
|
+
e.$slots.default || e.content ? (H(), B("div", Ju, [v(e.$slots, "default", {}, () => [c(_(e.content), 1)])])) : L("v-if", !0),
|
|
7498
|
+
e.$slots.footer || e.footer ? (H(), B("div", Yu, [v(e.$slots, "footer", {}, () => [c(_(e.footer), 1)])])) : L("v-if", !0)
|
|
7499
7499
|
], 16));
|
|
7500
7500
|
}
|
|
7501
7501
|
});
|
|
7502
|
-
({ ...
|
|
7503
|
-
var
|
|
7504
|
-
...
|
|
7502
|
+
({ ...tu });
|
|
7503
|
+
var Zu = {
|
|
7504
|
+
...tu,
|
|
7505
7505
|
imgSrc: String
|
|
7506
|
-
},
|
|
7506
|
+
}, Qu = ["role", "aria-label"], $u = ["src"], ed = /* @__PURE__ */ f({
|
|
7507
7507
|
name: "VvAvatar",
|
|
7508
|
-
props:
|
|
7508
|
+
props: Zu,
|
|
7509
7509
|
setup(e) {
|
|
7510
|
-
let { modifiers: t } = ue(e), n =
|
|
7510
|
+
let { modifiers: t } = ue(e), n = wu("vv-avatar", t);
|
|
7511
7511
|
return (e, t) => (H(), B("span", {
|
|
7512
7512
|
class: s(V(n)),
|
|
7513
7513
|
role: e.imgSrc ? void 0 : "img",
|
|
@@ -7516,21 +7516,21 @@ var Xu = {
|
|
|
7516
7516
|
key: 0,
|
|
7517
7517
|
src: e.imgSrc,
|
|
7518
7518
|
alt: "avatar"
|
|
7519
|
-
}, null, 8,
|
|
7519
|
+
}, null, 8, $u)) : L("v-if", !0)])], 10, Qu));
|
|
7520
7520
|
}
|
|
7521
7521
|
});
|
|
7522
|
-
({ ...
|
|
7523
|
-
var
|
|
7524
|
-
...
|
|
7522
|
+
({ ...tu }), { ...tu }, { ...tu };
|
|
7523
|
+
var td = ["update:modelValue"], nd = {
|
|
7524
|
+
..._u,
|
|
7525
|
+
...uu,
|
|
7526
|
+
...tu,
|
|
7525
7527
|
...lu,
|
|
7526
|
-
...
|
|
7527
|
-
...
|
|
7528
|
-
...Wl,
|
|
7529
|
-
...au,
|
|
7528
|
+
...Gl,
|
|
7529
|
+
...ou,
|
|
7530
7530
|
iconPosition: {
|
|
7531
7531
|
type: String,
|
|
7532
|
-
default:
|
|
7533
|
-
validator: (e) => Object.values(
|
|
7532
|
+
default: El.left,
|
|
7533
|
+
validator: (e) => Object.values(El).includes(e)
|
|
7534
7534
|
},
|
|
7535
7535
|
loadingIcon: {
|
|
7536
7536
|
type: String,
|
|
@@ -7565,8 +7565,8 @@ var ed = ["update:modelValue"], td = {
|
|
|
7565
7565
|
default: void 0
|
|
7566
7566
|
}
|
|
7567
7567
|
};
|
|
7568
|
-
function
|
|
7569
|
-
let { group: n, isInGroup: r, getGroupOrLocalRef: i } =
|
|
7568
|
+
function rd(e, t) {
|
|
7569
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = bu(Il), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = ue(e);
|
|
7570
7570
|
return {
|
|
7571
7571
|
group: n,
|
|
7572
7572
|
isInGroup: r,
|
|
@@ -7586,16 +7586,16 @@ function nd(e, t) {
|
|
|
7586
7586
|
label: c
|
|
7587
7587
|
};
|
|
7588
7588
|
}
|
|
7589
|
-
function
|
|
7590
|
-
return n ?
|
|
7589
|
+
function id(e, t, n) {
|
|
7590
|
+
return n ? od(e, n) === od(t, n) : ad(e, t);
|
|
7591
7591
|
}
|
|
7592
|
-
function
|
|
7592
|
+
function ad(e, t) {
|
|
7593
7593
|
if (e === t) return !0;
|
|
7594
7594
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
7595
7595
|
let n = Array.isArray(e), r = Array.isArray(t), i, a, o;
|
|
7596
7596
|
if (n && r) {
|
|
7597
7597
|
if (a = e.length, a !== t.length) return !1;
|
|
7598
|
-
for (i = a; i-- !== 0;) if (!
|
|
7598
|
+
for (i = a; i-- !== 0;) if (!ad(e[i], t[i])) return !1;
|
|
7599
7599
|
return !0;
|
|
7600
7600
|
}
|
|
7601
7601
|
if (n !== r) return !1;
|
|
@@ -7608,12 +7608,12 @@ function id(e, t) {
|
|
|
7608
7608
|
let d = Object.keys(e);
|
|
7609
7609
|
if (a = d.length, a !== Object.keys(t).length) return !1;
|
|
7610
7610
|
for (i = a; i-- !== 0;) if (!Object.hasOwn(t, d[i])) return !1;
|
|
7611
|
-
for (i = a; i-- !== 0;) if (o = d[i], !
|
|
7611
|
+
for (i = a; i-- !== 0;) if (o = d[i], !ad(e[o], t[o])) return !1;
|
|
7612
7612
|
return !0;
|
|
7613
7613
|
}
|
|
7614
7614
|
return Number.isNaN(e) && Number.isNaN(t);
|
|
7615
7615
|
}
|
|
7616
|
-
function
|
|
7616
|
+
function od(e, t) {
|
|
7617
7617
|
if (e && Object.keys(e).length && t) if (t.includes(".")) {
|
|
7618
7618
|
let n = t.split("."), r = e;
|
|
7619
7619
|
for (let t = 0, i = n.length; t < i; ++t) {
|
|
@@ -7624,43 +7624,43 @@ function ad(e, t) {
|
|
|
7624
7624
|
} else return e[t];
|
|
7625
7625
|
else return null;
|
|
7626
7626
|
}
|
|
7627
|
-
function
|
|
7627
|
+
function sd(e, t) {
|
|
7628
7628
|
if (e != null && t && t.length) {
|
|
7629
|
-
for (let n of t) if (
|
|
7629
|
+
for (let n of t) if (id(e, n)) return !0;
|
|
7630
7630
|
}
|
|
7631
7631
|
return !1;
|
|
7632
7632
|
}
|
|
7633
|
-
function
|
|
7633
|
+
function cd(e) {
|
|
7634
7634
|
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(V(e));
|
|
7635
7635
|
}
|
|
7636
|
-
function
|
|
7636
|
+
function ld(e) {
|
|
7637
7637
|
return typeof e == "string";
|
|
7638
7638
|
}
|
|
7639
|
-
var
|
|
7639
|
+
var ud = {
|
|
7640
7640
|
key: 1,
|
|
7641
7641
|
class: "vv-button__label"
|
|
7642
|
-
},
|
|
7642
|
+
}, dd = {
|
|
7643
7643
|
key: 1,
|
|
7644
7644
|
class: "vv-button__label"
|
|
7645
|
-
},
|
|
7645
|
+
}, fd = /* @__PURE__ */ f({
|
|
7646
7646
|
name: "VvButton",
|
|
7647
7647
|
inheritAttrs: !1,
|
|
7648
|
-
props:
|
|
7649
|
-
emits:
|
|
7648
|
+
props: nd,
|
|
7649
|
+
emits: td,
|
|
7650
7650
|
setup(e, { expose: t, emit: n }) {
|
|
7651
|
-
let r = e, a = n, o = S(), s = le(), { id: l, modifiers: u, iconPosition: d, icon: f, label: p, modelValue: m, disabled: h, toggle: g, unselectable: y } =
|
|
7651
|
+
let r = e, a = n, o = S(), s = le(), { id: l, modifiers: u, iconPosition: d, icon: f, label: p, modelValue: m, disabled: h, toggle: g, unselectable: y } = rd(r, a), b = zu(l), x = I(() => o?.name || b.value), C = R(null);
|
|
7652
7652
|
t({ $el: I(() => C.value?.$el) });
|
|
7653
|
-
let w = I(() => g.value ? Array.isArray(m.value) ?
|
|
7654
|
-
reverse: [
|
|
7655
|
-
column: [
|
|
7653
|
+
let w = I(() => g.value ? Array.isArray(m.value) ? sd(x.value, m.value) : id(x.value, m.value) : r.pressed), T = wu("vv-button", u, I(() => ({
|
|
7654
|
+
reverse: [El.right, El.bottom].includes(d.value),
|
|
7655
|
+
column: [El.top, El.bottom].includes(d.value),
|
|
7656
7656
|
"icon-only": !!(f?.value && !p?.value && !s.default)
|
|
7657
|
-
}))), { hasIcon: E } =
|
|
7657
|
+
}))), { hasIcon: E } = Bu(f), D = I(() => r.value === void 0 ? x.value : r.value), O = I(() => {
|
|
7658
7658
|
if (g.value) return { onClick: k };
|
|
7659
7659
|
});
|
|
7660
7660
|
function k() {
|
|
7661
7661
|
if (g.value) {
|
|
7662
7662
|
if (Array.isArray(m.value)) {
|
|
7663
|
-
if (
|
|
7663
|
+
if (sd(D.value, m.value)) {
|
|
7664
7664
|
y.value && (m.value = m.value.filter((e) => e !== D.value));
|
|
7665
7665
|
return;
|
|
7666
7666
|
}
|
|
@@ -7674,7 +7674,7 @@ var ld = {
|
|
|
7674
7674
|
m.value = D.value;
|
|
7675
7675
|
}
|
|
7676
7676
|
}
|
|
7677
|
-
return (e, t) => (H(), ke(
|
|
7677
|
+
return (e, t) => (H(), ke(Lu, j({
|
|
7678
7678
|
...V(o),
|
|
7679
7679
|
...V(O),
|
|
7680
7680
|
disabled: V(h),
|
|
@@ -7692,23 +7692,23 @@ var ld = {
|
|
|
7692
7692
|
ref: C,
|
|
7693
7693
|
class: V(T)
|
|
7694
7694
|
}), {
|
|
7695
|
-
default: i(() => [v(e.$slots, "default", {}, () => [e.loading ? v(e.$slots, "loading", { key: 0 }, () => [e.loadingIcon ? (H(), ke(
|
|
7695
|
+
default: i(() => [v(e.$slots, "default", {}, () => [e.loading ? v(e.$slots, "loading", { key: 0 }, () => [e.loadingIcon ? (H(), ke(Wu, {
|
|
7696
7696
|
key: 0,
|
|
7697
7697
|
class: "vv-button__loading-icon",
|
|
7698
7698
|
name: e.loadingIcon
|
|
7699
|
-
}, null, 8, ["name"])) : L("v-if", !0), e.loadingLabel ? (H(), B("span",
|
|
7699
|
+
}, null, 8, ["name"])) : L("v-if", !0), e.loadingLabel ? (H(), B("span", ud, _(e.loadingLabel), 1)) : L("v-if", !0)]) : (H(), B(ge, { key: 1 }, [
|
|
7700
7700
|
v(e.$slots, "before"),
|
|
7701
|
-
V(E) ? (H(), ke(
|
|
7702
|
-
V(p) ? (H(), B("span",
|
|
7701
|
+
V(E) ? (H(), ke(Wu, j({ key: 0 }, V(E), { class: "vv-button__icon" }), null, 16)) : L("v-if", !0),
|
|
7702
|
+
V(p) ? (H(), B("span", dd, [v(e.$slots, "label", {}, () => [c(_(V(p)), 1)])])) : L("v-if", !0),
|
|
7703
7703
|
v(e.$slots, "after")
|
|
7704
7704
|
], 64))])]),
|
|
7705
7705
|
_: 3
|
|
7706
7706
|
}, 16, ["id", "class"]));
|
|
7707
7707
|
}
|
|
7708
|
-
}),
|
|
7709
|
-
...
|
|
7710
|
-
...
|
|
7711
|
-
...
|
|
7708
|
+
}), pd = {
|
|
7709
|
+
...tu,
|
|
7710
|
+
...Kl,
|
|
7711
|
+
...lu,
|
|
7712
7712
|
legendLabel: { type: String },
|
|
7713
7713
|
itemModifiers: {
|
|
7714
7714
|
type: [String, Array],
|
|
@@ -7731,18 +7731,18 @@ var ld = {
|
|
|
7731
7731
|
],
|
|
7732
7732
|
default: void 0
|
|
7733
7733
|
}
|
|
7734
|
-
},
|
|
7734
|
+
}, md = ["update:modelValue"], hd = {
|
|
7735
7735
|
key: 0,
|
|
7736
7736
|
class: "vv-button-group__legend"
|
|
7737
|
-
},
|
|
7737
|
+
}, gd = /* @__PURE__ */ f({
|
|
7738
7738
|
name: "VvButtonGroup",
|
|
7739
|
-
props:
|
|
7740
|
-
emits:
|
|
7739
|
+
props: pd,
|
|
7740
|
+
emits: md,
|
|
7741
7741
|
setup(e, { emit: t }) {
|
|
7742
7742
|
let n = e, r = t, { disabled: i, toggle: a, modifiers: o, multiple: l, unselectable: u, itemModifiers: d } = ue(n);
|
|
7743
7743
|
te(() => {
|
|
7744
7744
|
typeof n.modelValue == "string" && l.value && console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.");
|
|
7745
|
-
}),
|
|
7745
|
+
}), Au(Il, {
|
|
7746
7746
|
modelValue: I({
|
|
7747
7747
|
get: () => l.value ? n.modelValue : Array.isArray(n.modelValue) ? n.modelValue[0] : n.modelValue,
|
|
7748
7748
|
set: (e) => e !== void 0 && (Array.isArray(n.modelValue) || l.value) && !Array.isArray(e) ? r("update:modelValue", [e]) : r("update:modelValue", e)
|
|
@@ -7753,22 +7753,22 @@ var ld = {
|
|
|
7753
7753
|
unselectable: u,
|
|
7754
7754
|
modifiers: d
|
|
7755
7755
|
});
|
|
7756
|
-
let f =
|
|
7756
|
+
let f = wu("vv-button-group", o);
|
|
7757
7757
|
return (e, t) => (H(), B("fieldset", {
|
|
7758
7758
|
class: s(V(f)),
|
|
7759
7759
|
role: "group"
|
|
7760
|
-
}, [e.$slots.legend || e.legendLabel ? (H(), B("legend",
|
|
7760
|
+
}, [e.$slots.legend || e.legendLabel ? (H(), B("legend", hd, [v(e.$slots, "legend", {}, () => [c(_(e.legendLabel), 1)])])) : L("v-if", !0), v(e.$slots, "default")], 2));
|
|
7761
7761
|
}
|
|
7762
7762
|
});
|
|
7763
|
-
({ ...
|
|
7764
|
-
...
|
|
7765
|
-
...
|
|
7763
|
+
({ ...tu }), {
|
|
7764
|
+
...gu,
|
|
7765
|
+
...tu
|
|
7766
7766
|
};
|
|
7767
|
-
function
|
|
7768
|
-
return Array.isArray(e) ? e.filter((e) =>
|
|
7767
|
+
function _d(e) {
|
|
7768
|
+
return Array.isArray(e) ? e.filter((e) => ld(e)).join(" ") : e;
|
|
7769
7769
|
}
|
|
7770
|
-
function
|
|
7771
|
-
let n = I(() => we(e) ? e.value : e), r = I(() =>
|
|
7770
|
+
function vd(e, t) {
|
|
7771
|
+
let n = I(() => we(e) ? e.value : e), r = I(() => _d(n.value.invalidLabel)), i = I(() => _d(n.value.validLabel)), a = I(() => n.value.loadingLabel), o = I(() => n.value.hintLabel), s = I(() => !!(n.value.loading && (t.loading || a.value))), c = I(() => !s.value && !!(n.value.invalid && (t.invalid || r.value))), l = I(() => !s.value && !c.value && !!(n.value.valid && (t.valid || i.value))), u = I(() => !s.value && !c.value && !l.value && !!(t.hint || o.value)), d = I(() => c.value || l.value || s.value || u.value);
|
|
7772
7772
|
return {
|
|
7773
7773
|
hasInvalidLabelOrSlot: c,
|
|
7774
7774
|
hasHintLabelOrSlot: u,
|
|
@@ -7809,8 +7809,8 @@ function _d(e, t) {
|
|
|
7809
7809
|
})
|
|
7810
7810
|
};
|
|
7811
7811
|
}
|
|
7812
|
-
function
|
|
7813
|
-
let r =
|
|
7812
|
+
function yd(e, t, n) {
|
|
7813
|
+
let r = Nu(), i = I(() => {
|
|
7814
7814
|
if (!(!r || !r.defaults.value?.[e])) return r.defaults.value[e];
|
|
7815
7815
|
});
|
|
7816
7816
|
return I(() => {
|
|
@@ -7836,23 +7836,23 @@ function vd(e, t, n) {
|
|
|
7836
7836
|
}, {});
|
|
7837
7837
|
});
|
|
7838
7838
|
}
|
|
7839
|
-
var
|
|
7840
|
-
...
|
|
7841
|
-
...
|
|
7842
|
-
...Hl,
|
|
7839
|
+
var bd = {
|
|
7840
|
+
...fu,
|
|
7841
|
+
...su,
|
|
7843
7842
|
...Ul,
|
|
7844
|
-
...tu,
|
|
7845
7843
|
...Wl,
|
|
7846
|
-
...Gl,
|
|
7847
|
-
...$l,
|
|
7848
|
-
...eu,
|
|
7849
7844
|
...nu,
|
|
7850
|
-
...
|
|
7851
|
-
...su,
|
|
7852
|
-
...uu,
|
|
7853
|
-
...Ql,
|
|
7845
|
+
...Gl,
|
|
7854
7846
|
...Kl,
|
|
7855
|
-
...
|
|
7847
|
+
...eu,
|
|
7848
|
+
...tu,
|
|
7849
|
+
...ru,
|
|
7850
|
+
...ou,
|
|
7851
|
+
...cu,
|
|
7852
|
+
...du,
|
|
7853
|
+
...$l,
|
|
7854
|
+
...ql,
|
|
7855
|
+
...Zl,
|
|
7856
7856
|
transitionName: {
|
|
7857
7857
|
type: String,
|
|
7858
7858
|
default: "vv-dropdown--mobile-fade-block"
|
|
@@ -7940,7 +7940,7 @@ var yd = {
|
|
|
7940
7940
|
default: "action sm"
|
|
7941
7941
|
},
|
|
7942
7942
|
triggerWidth: {
|
|
7943
|
-
...
|
|
7943
|
+
...du.triggerWidth,
|
|
7944
7944
|
default: !0
|
|
7945
7945
|
},
|
|
7946
7946
|
dropdownModifiers: {
|
|
@@ -7964,21 +7964,21 @@ var yd = {
|
|
|
7964
7964
|
default: !0
|
|
7965
7965
|
}
|
|
7966
7966
|
};
|
|
7967
|
-
function
|
|
7967
|
+
function xd() {
|
|
7968
7968
|
return {
|
|
7969
|
-
...
|
|
7969
|
+
...bd,
|
|
7970
7970
|
options: {
|
|
7971
|
-
...
|
|
7971
|
+
...bd.options,
|
|
7972
7972
|
type: Array
|
|
7973
7973
|
},
|
|
7974
7974
|
searchFunction: {
|
|
7975
|
-
...
|
|
7975
|
+
...bd.searchFunction,
|
|
7976
7976
|
type: Function
|
|
7977
7977
|
}
|
|
7978
7978
|
};
|
|
7979
7979
|
}
|
|
7980
|
-
var
|
|
7981
|
-
components: { VvIcon:
|
|
7980
|
+
var Sd = f({
|
|
7981
|
+
components: { VvIcon: Wu },
|
|
7982
7982
|
props: {
|
|
7983
7983
|
inputType: {
|
|
7984
7984
|
type: String,
|
|
@@ -7999,7 +7999,7 @@ var xd = f({
|
|
|
7999
7999
|
},
|
|
8000
8000
|
emits: ["clear"],
|
|
8001
8001
|
setup(e, { emit: t }) {
|
|
8002
|
-
let { hasIcon: n } =
|
|
8002
|
+
let { hasIcon: n } = Bu(I(() => e.icon));
|
|
8003
8003
|
function r(n) {
|
|
8004
8004
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
8005
8005
|
}
|
|
@@ -8009,7 +8009,7 @@ var xd = f({
|
|
|
8009
8009
|
};
|
|
8010
8010
|
},
|
|
8011
8011
|
render() {
|
|
8012
|
-
let e = this.hasIcon ? z(
|
|
8012
|
+
let e = this.hasIcon ? z(Wu, {
|
|
8013
8013
|
...this.hasIcon,
|
|
8014
8014
|
class: `vv-${this.inputType}__icon`
|
|
8015
8015
|
}) : void 0;
|
|
@@ -8021,10 +8021,10 @@ var xd = f({
|
|
|
8021
8021
|
onClick: this.onClick
|
|
8022
8022
|
}, e);
|
|
8023
8023
|
}
|
|
8024
|
-
}),
|
|
8025
|
-
...lu,
|
|
8024
|
+
}), Cd = {
|
|
8026
8025
|
...uu,
|
|
8027
|
-
...
|
|
8026
|
+
...du,
|
|
8027
|
+
...tu,
|
|
8028
8028
|
modelValue: {
|
|
8029
8029
|
type: Boolean,
|
|
8030
8030
|
default: void 0
|
|
@@ -8035,17 +8035,17 @@ var xd = f({
|
|
|
8035
8035
|
},
|
|
8036
8036
|
role: {
|
|
8037
8037
|
type: String,
|
|
8038
|
-
default:
|
|
8039
|
-
validator: (e) => Object.values(
|
|
8038
|
+
default: Ml.menu,
|
|
8039
|
+
validator: (e) => Object.values(Ml).includes(e)
|
|
8040
8040
|
}
|
|
8041
|
-
},
|
|
8041
|
+
}, wd = { focusOnHover: {
|
|
8042
8042
|
type: Boolean,
|
|
8043
8043
|
default: !1
|
|
8044
|
-
} },
|
|
8045
|
-
...
|
|
8046
|
-
...
|
|
8047
|
-
...
|
|
8048
|
-
...
|
|
8044
|
+
} }, Td = {
|
|
8045
|
+
...Kl,
|
|
8046
|
+
...Jl,
|
|
8047
|
+
...lu,
|
|
8048
|
+
...tu,
|
|
8049
8049
|
deselectHintLabel: { type: String },
|
|
8050
8050
|
selectHintLabel: { type: String },
|
|
8051
8051
|
selectedHintLabel: { type: String },
|
|
@@ -8054,14 +8054,14 @@ var xd = f({
|
|
|
8054
8054
|
default: !1
|
|
8055
8055
|
}
|
|
8056
8056
|
};
|
|
8057
|
-
function
|
|
8058
|
-
let i =
|
|
8057
|
+
function Ed({ reference: e, id: t, expanded: n, aria: r }) {
|
|
8058
|
+
let i = Le();
|
|
8059
8059
|
return {
|
|
8060
8060
|
bus: i,
|
|
8061
8061
|
component: f({
|
|
8062
8062
|
name: "VvDropdownTriggerProvider",
|
|
8063
8063
|
setup() {
|
|
8064
|
-
o(
|
|
8064
|
+
o(Rl, {
|
|
8065
8065
|
reference: e,
|
|
8066
8066
|
id: t,
|
|
8067
8067
|
expanded: n,
|
|
@@ -8075,28 +8075,28 @@ function Td({ reference: e, id: t, expanded: n, aria: r }) {
|
|
|
8075
8075
|
})
|
|
8076
8076
|
};
|
|
8077
8077
|
}
|
|
8078
|
-
function
|
|
8079
|
-
let n = I(() => e.value ===
|
|
8080
|
-
return o(
|
|
8078
|
+
function Dd({ role: e, ...t }) {
|
|
8079
|
+
let n = I(() => e.value === Ml.listbox ? Nl.option : Nl.presentation);
|
|
8080
|
+
return o(zl, {
|
|
8081
8081
|
role: n,
|
|
8082
8082
|
...t
|
|
8083
8083
|
}), { itemRole: n };
|
|
8084
8084
|
}
|
|
8085
|
-
function
|
|
8086
|
-
o(
|
|
8087
|
-
role: R(
|
|
8085
|
+
function Od({ expanded: e }) {
|
|
8086
|
+
o(Bl, {
|
|
8087
|
+
role: R(jl.menuitem),
|
|
8088
8088
|
expanded: e
|
|
8089
8089
|
});
|
|
8090
8090
|
}
|
|
8091
|
-
var
|
|
8091
|
+
var kd = [
|
|
8092
8092
|
"id",
|
|
8093
8093
|
"tabindex",
|
|
8094
8094
|
"role",
|
|
8095
8095
|
"aria-labelledby"
|
|
8096
|
-
],
|
|
8096
|
+
], Ad = /* @__PURE__ */ f({
|
|
8097
8097
|
name: "VvDropdown",
|
|
8098
8098
|
inheritAttrs: !1,
|
|
8099
|
-
props:
|
|
8099
|
+
props: Cd,
|
|
8100
8100
|
emits: [
|
|
8101
8101
|
"update:modelValue",
|
|
8102
8102
|
"beforeEnter",
|
|
@@ -8115,14 +8115,14 @@ var Od = [
|
|
|
8115
8115
|
"leaveCancelled"
|
|
8116
8116
|
],
|
|
8117
8117
|
setup(e, { expose: t, emit: n }) {
|
|
8118
|
-
let r = e, a = n, { id: o } = ue(r), c =
|
|
8118
|
+
let r = e, a = n, { id: o } = ue(r), c = zu(o), l = S(), u = R("auto"), d = R("auto"), f = R(), p = R(), h = R(), _ = R(), b = I({
|
|
8119
8119
|
get: () => r.reference ?? f.value,
|
|
8120
8120
|
set: (e) => {
|
|
8121
8121
|
f.value = e;
|
|
8122
8122
|
}
|
|
8123
8123
|
}), x = R(!1);
|
|
8124
8124
|
w(() => {
|
|
8125
|
-
|
|
8125
|
+
Qe(p.value, () => {
|
|
8126
8126
|
x.value = window.getComputedStyle(p.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
8127
8127
|
}, {
|
|
8128
8128
|
attributeFilter: ["style"],
|
|
@@ -8131,18 +8131,18 @@ var Od = [
|
|
|
8131
8131
|
});
|
|
8132
8132
|
let C = I(() => {
|
|
8133
8133
|
let e = [];
|
|
8134
|
-
if (r.autoPlacement ? typeof r.autoPlacement == "boolean" ? e.push(
|
|
8134
|
+
if (r.autoPlacement ? typeof r.autoPlacement == "boolean" ? e.push(Be()) : e.push(Be(r.autoPlacement)) : r.flip && (typeof r.flip == "boolean" ? e.push(Pe({ fallbackStrategy: "initialPlacement" })) : e.push(Pe(r.flip))), r.shift && (typeof r.shift == "boolean" ? e.push(Ve()) : e.push(Ve(r.shift))), r.size) {
|
|
8135
8135
|
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
8136
8136
|
u.value = `${e}px`, d.value = `${t}px`;
|
|
8137
8137
|
};
|
|
8138
|
-
typeof r.size == "boolean" ? e.push(
|
|
8138
|
+
typeof r.size == "boolean" ? e.push(Fe({ apply: t })) : e.push(Fe({
|
|
8139
8139
|
...r.size,
|
|
8140
8140
|
apply: t
|
|
8141
8141
|
}));
|
|
8142
8142
|
}
|
|
8143
|
-
return r.offset && (e.push(
|
|
8144
|
-
}), { x: T, y: E, middlewareData: D, placement: O, strategy: A } =
|
|
8145
|
-
whileElementsMounted: (...e) =>
|
|
8143
|
+
return r.offset && (e.push(ze(Number(r.offset))), ["string", "number"].includes(typeof r.offset) ? e.push(ze(Number(r.offset))) : e.push(ze(r.offset))), r.arrow && e.push(He({ element: h })), e;
|
|
8144
|
+
}), { x: T, y: E, middlewareData: D, placement: O, strategy: A } = Re(b, p, {
|
|
8145
|
+
whileElementsMounted: (...e) => Ie(...e, { animationFrame: r.strategy === Tl.fixed }),
|
|
8146
8146
|
placement: I(() => r.placement),
|
|
8147
8147
|
strategy: I(() => r.strategy),
|
|
8148
8148
|
middleware: C
|
|
@@ -8160,17 +8160,17 @@ var Od = [
|
|
|
8160
8160
|
}), te = I(() => O.value.split("-")[0]), ne = I(() => {
|
|
8161
8161
|
if (x.value) return;
|
|
8162
8162
|
let e = {
|
|
8163
|
-
[
|
|
8164
|
-
[
|
|
8165
|
-
[
|
|
8166
|
-
[
|
|
8163
|
+
[El.top]: El.bottom,
|
|
8164
|
+
[El.right]: El.left,
|
|
8165
|
+
[El.bottom]: El.top,
|
|
8166
|
+
[El.left]: El.right
|
|
8167
8167
|
}[te.value];
|
|
8168
8168
|
return {
|
|
8169
8169
|
left: D.value.arrow?.x === void 0 ? void 0 : `${D.value.arrow?.x}px`,
|
|
8170
8170
|
top: D.value.arrow?.y === void 0 ? void 0 : `${D.value.arrow?.y}px`,
|
|
8171
8171
|
[e]: `${-(h.value?.offsetWidth ?? 0) / 2}px`
|
|
8172
8172
|
};
|
|
8173
|
-
}), re =
|
|
8173
|
+
}), re = Ke(r, "modelValue", a), ie = R(!1), M = I({
|
|
8174
8174
|
get: () => re.value ?? ie.value,
|
|
8175
8175
|
set: (e) => {
|
|
8176
8176
|
if (re.value === void 0) {
|
|
@@ -8192,21 +8192,21 @@ var Od = [
|
|
|
8192
8192
|
function se(e) {
|
|
8193
8193
|
b.value = e;
|
|
8194
8194
|
}
|
|
8195
|
-
|
|
8195
|
+
Je(p, () => {
|
|
8196
8196
|
!r.keepOpen && M.value && (M.value = !1);
|
|
8197
8197
|
}, { ignore: [b] });
|
|
8198
8198
|
let ce = I(() => b.value?.getAttribute?.("id") ?? void 0), le = I(() => ({
|
|
8199
8199
|
"aria-controls": c.value,
|
|
8200
8200
|
"aria-haspopup": !0,
|
|
8201
8201
|
"aria-expanded": M.value
|
|
8202
|
-
})), { component: de, bus: fe } =
|
|
8202
|
+
})), { component: de, bus: fe } = Ed({
|
|
8203
8203
|
reference: b,
|
|
8204
8204
|
id: c,
|
|
8205
8205
|
expanded: M,
|
|
8206
8206
|
aria: le
|
|
8207
8207
|
});
|
|
8208
8208
|
fe.on("click", oe);
|
|
8209
|
-
let { role: he, modifiers: _e } = ue(r), ve =
|
|
8209
|
+
let { role: he, modifiers: _e } = ue(r), ve = wu("vv-dropdown", _e, I(() => ({ arrow: r.arrow }))), { focused: z } = qe(p);
|
|
8210
8210
|
function ye(e) {
|
|
8211
8211
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
8212
8212
|
}
|
|
@@ -8259,19 +8259,19 @@ var Od = [
|
|
|
8259
8259
|
focusPrev: we,
|
|
8260
8260
|
customPosition: x
|
|
8261
8261
|
});
|
|
8262
|
-
let { itemRole: De } =
|
|
8262
|
+
let { itemRole: De } = Dd({
|
|
8263
8263
|
role: he,
|
|
8264
8264
|
expanded: M,
|
|
8265
8265
|
focused: z,
|
|
8266
|
-
hovered:
|
|
8266
|
+
hovered: Ye(p)
|
|
8267
8267
|
});
|
|
8268
|
-
|
|
8268
|
+
Xe("Escape", (e) => {
|
|
8269
8269
|
M.value && (e.preventDefault(), ae());
|
|
8270
|
-
}),
|
|
8270
|
+
}), Xe("ArrowDown", (e) => {
|
|
8271
8271
|
M.value && z.value && (e.preventDefault(), Ce());
|
|
8272
|
-
}),
|
|
8272
|
+
}), Xe("ArrowUp", (e) => {
|
|
8273
8273
|
M.value && z.value && (e.preventDefault(), we());
|
|
8274
|
-
}),
|
|
8274
|
+
}), Xe([" ", "Enter"], (e) => {
|
|
8275
8275
|
let t = e.target;
|
|
8276
8276
|
M.value && z.value && t && t?.click();
|
|
8277
8277
|
});
|
|
@@ -8345,7 +8345,7 @@ var Od = [
|
|
|
8345
8345
|
toggle: oe,
|
|
8346
8346
|
expanded: V(M),
|
|
8347
8347
|
role: V(De)
|
|
8348
|
-
})))], 16,
|
|
8348
|
+
})))], 16, kd),
|
|
8349
8349
|
v(e.$slots, "after", P(k({
|
|
8350
8350
|
show: N,
|
|
8351
8351
|
hide: ae,
|
|
@@ -8357,14 +8357,14 @@ var Od = [
|
|
|
8357
8357
|
}, 16, ["name"])], 64));
|
|
8358
8358
|
}
|
|
8359
8359
|
});
|
|
8360
|
-
({
|
|
8361
|
-
var
|
|
8360
|
+
({ ...$l });
|
|
8361
|
+
var jd = /* @__PURE__ */ f({
|
|
8362
8362
|
name: "VvDropdownItem",
|
|
8363
|
-
props:
|
|
8363
|
+
props: wd,
|
|
8364
8364
|
setup(e) {
|
|
8365
|
-
let t = e, { role: n, expanded: r } =
|
|
8366
|
-
|
|
8367
|
-
let a =
|
|
8365
|
+
let t = e, { role: n, expanded: r } = Fu(), i = R(null);
|
|
8366
|
+
Od({ expanded: r });
|
|
8367
|
+
let a = Ye(i), { focused: o } = We(i), { focused: s } = qe(i);
|
|
8368
8368
|
return F(a, (e) => {
|
|
8369
8369
|
e && t.focusOnHover && (o.value = !0);
|
|
8370
8370
|
}), (e, t) => (H(), B("div", j({ role: V(n) }, {
|
|
@@ -8373,16 +8373,16 @@ var Ad = /* @__PURE__ */ f({
|
|
|
8373
8373
|
class: ["vv-dropdown__item", { "focus-visible": V(o) || V(s) }]
|
|
8374
8374
|
}), [v(e.$slots, "default")], 16));
|
|
8375
8375
|
}
|
|
8376
|
-
}),
|
|
8376
|
+
}), Md = ["title"], Nd = /* @__PURE__ */ f({
|
|
8377
8377
|
name: "VvDropdownOption",
|
|
8378
|
-
props:
|
|
8378
|
+
props: Td,
|
|
8379
8379
|
setup(e) {
|
|
8380
|
-
let t = e, { modifiers: n } = ue(t), r =
|
|
8380
|
+
let t = e, { modifiers: n } = ue(t), r = wu("vv-dropdown-option", n, I(() => ({
|
|
8381
8381
|
disabled: t.disabled,
|
|
8382
8382
|
selected: t.selected,
|
|
8383
8383
|
unselectable: t.unselectable && t.selected
|
|
8384
8384
|
}))), a = I(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
8385
|
-
return (e, t) => (H(), ke(
|
|
8385
|
+
return (e, t) => (H(), ke(jd, {
|
|
8386
8386
|
class: s(V(r)),
|
|
8387
8387
|
tabindex: e.disabled ? -1 : 0,
|
|
8388
8388
|
"aria-selected": e.selected,
|
|
@@ -8396,7 +8396,7 @@ var Ad = /* @__PURE__ */ f({
|
|
|
8396
8396
|
disabled: e.disabled,
|
|
8397
8397
|
selected: e.selected,
|
|
8398
8398
|
unselectable: e.unselectable
|
|
8399
|
-
})), () => [c(_(V(a)), 1)])], 8,
|
|
8399
|
+
})), () => [c(_(V(a)), 1)])], 8, Md)]),
|
|
8400
8400
|
_: 3
|
|
8401
8401
|
}, 8, [
|
|
8402
8402
|
"class",
|
|
@@ -8406,24 +8406,24 @@ var Ad = /* @__PURE__ */ f({
|
|
|
8406
8406
|
"focus-on-hover"
|
|
8407
8407
|
]));
|
|
8408
8408
|
}
|
|
8409
|
-
}),
|
|
8410
|
-
...du,
|
|
8409
|
+
}), Pd = {
|
|
8411
8410
|
...fu,
|
|
8412
8411
|
...pu,
|
|
8413
|
-
...
|
|
8414
|
-
...
|
|
8412
|
+
...mu,
|
|
8413
|
+
...su,
|
|
8415
8414
|
...Ul,
|
|
8416
|
-
...tu,
|
|
8417
8415
|
...Wl,
|
|
8416
|
+
...nu,
|
|
8418
8417
|
...Gl,
|
|
8419
|
-
|
|
8418
|
+
...Kl,
|
|
8420
8419
|
...eu,
|
|
8421
|
-
...
|
|
8422
|
-
...
|
|
8423
|
-
...
|
|
8420
|
+
...tu,
|
|
8421
|
+
...ru,
|
|
8422
|
+
...ou,
|
|
8424
8423
|
...cu,
|
|
8425
|
-
...
|
|
8426
|
-
|
|
8424
|
+
...lu,
|
|
8425
|
+
...$l,
|
|
8426
|
+
...Zl,
|
|
8427
8427
|
multiple: Boolean,
|
|
8428
8428
|
required: Boolean,
|
|
8429
8429
|
size: [String, Number],
|
|
@@ -8443,24 +8443,24 @@ var Ad = /* @__PURE__ */ f({
|
|
|
8443
8443
|
},
|
|
8444
8444
|
placeholder: String
|
|
8445
8445
|
};
|
|
8446
|
-
function
|
|
8446
|
+
function Fd() {
|
|
8447
8447
|
return {
|
|
8448
|
-
...
|
|
8448
|
+
...Pd,
|
|
8449
8449
|
options: {
|
|
8450
|
-
...
|
|
8450
|
+
...Pd.options,
|
|
8451
8451
|
type: Array,
|
|
8452
8452
|
default: () => []
|
|
8453
8453
|
}
|
|
8454
8454
|
};
|
|
8455
8455
|
}
|
|
8456
|
-
function
|
|
8457
|
-
let { focused: n } =
|
|
8456
|
+
function Id(e, t) {
|
|
8457
|
+
let { focused: n } = We(e);
|
|
8458
8458
|
return F(n, (n) => {
|
|
8459
8459
|
t(n ? "focus" : "blur", V(e));
|
|
8460
8460
|
}), { focused: n };
|
|
8461
8461
|
}
|
|
8462
|
-
|
|
8463
|
-
var
|
|
8462
|
+
Fd(), xd();
|
|
8463
|
+
var Ld = [
|
|
8464
8464
|
"open",
|
|
8465
8465
|
"close",
|
|
8466
8466
|
"update:modelValue",
|
|
@@ -8472,9 +8472,9 @@ var Id = [
|
|
|
8472
8472
|
"beforeLeave",
|
|
8473
8473
|
"leave",
|
|
8474
8474
|
"leaveCancelled"
|
|
8475
|
-
],
|
|
8476
|
-
...
|
|
8477
|
-
...
|
|
8475
|
+
], Rd = {
|
|
8476
|
+
...tu,
|
|
8477
|
+
...uu,
|
|
8478
8478
|
title: String,
|
|
8479
8479
|
modelValue: {
|
|
8480
8480
|
type: Boolean,
|
|
@@ -8493,18 +8493,18 @@ var Id = [
|
|
|
8493
8493
|
type: String,
|
|
8494
8494
|
default: "Close"
|
|
8495
8495
|
}
|
|
8496
|
-
},
|
|
8496
|
+
}, zd = {
|
|
8497
8497
|
key: 0,
|
|
8498
8498
|
class: "vv-dialog__header"
|
|
8499
|
-
},
|
|
8499
|
+
}, Bd = ["aria-label", "title"], Vd = { class: "vv-dialog__content" }, Hd = {
|
|
8500
8500
|
key: 1,
|
|
8501
8501
|
class: "vv-dialog__footer"
|
|
8502
|
-
},
|
|
8502
|
+
}, Ud = /* @__PURE__ */ f({
|
|
8503
8503
|
name: "VvDialog",
|
|
8504
|
-
props:
|
|
8505
|
-
emits:
|
|
8504
|
+
props: Rd,
|
|
8505
|
+
emits: Ld,
|
|
8506
8506
|
setup(e, { expose: t, emit: n }) {
|
|
8507
|
-
let r = e, a = n, o = R(), s =
|
|
8507
|
+
let r = e, a = n, o = R(), s = Ke(r, "modelValue", a), l = R(!1), u = I({
|
|
8508
8508
|
get: () => s.value ?? l.value,
|
|
8509
8509
|
set: (e) => {
|
|
8510
8510
|
if (s.value === void 0) {
|
|
@@ -8513,7 +8513,7 @@ var Id = [
|
|
|
8513
8513
|
}
|
|
8514
8514
|
s.value = e;
|
|
8515
8515
|
}
|
|
8516
|
-
}), d = R(null), { modifiers: f } = ue(r), p =
|
|
8516
|
+
}), d = R(null), { modifiers: f } = ue(r), p = wu("vv-dialog", f, I(() => r.size ? { [r.size]: !!r.size } : {})), m = I(() => {
|
|
8517
8517
|
let { id: e } = r;
|
|
8518
8518
|
return { id: e };
|
|
8519
8519
|
}), h = I(() => `vv-dialog--${r.transition}`), y = {
|
|
@@ -8542,7 +8542,7 @@ var Id = [
|
|
|
8542
8542
|
a("leaveCancelled");
|
|
8543
8543
|
}
|
|
8544
8544
|
};
|
|
8545
|
-
|
|
8545
|
+
Je(d, () => {
|
|
8546
8546
|
r.keepOpen || b();
|
|
8547
8547
|
});
|
|
8548
8548
|
function b() {
|
|
@@ -8569,29 +8569,29 @@ var Id = [
|
|
|
8569
8569
|
ref: d,
|
|
8570
8570
|
class: "vv-dialog__wrapper"
|
|
8571
8571
|
}, [
|
|
8572
|
-
e.$slots.header || e.title ? (H(), B("header",
|
|
8572
|
+
e.$slots.header || e.title ? (H(), B("header", zd, [v(e.$slots, "header", {}, () => [c(_(e.title) + " ", 1), Te("button", {
|
|
8573
8573
|
type: "button",
|
|
8574
8574
|
"aria-label": e.labelClose,
|
|
8575
8575
|
title: e.labelClose,
|
|
8576
8576
|
class: "vv-dialog__close",
|
|
8577
8577
|
onClickPassive: b
|
|
8578
|
-
}, null, 40,
|
|
8579
|
-
Te("div",
|
|
8580
|
-
e.$slots.footer ? (H(), B("footer",
|
|
8578
|
+
}, null, 40, Bd)])])) : L("v-if", !0),
|
|
8579
|
+
Te("div", Vd, [v(e.$slots, "default")]),
|
|
8580
|
+
e.$slots.footer ? (H(), B("footer", Hd, [v(e.$slots, "footer")])) : L("v-if", !0)
|
|
8581
8581
|
], 512)], 16), [[me, V(u)]])]),
|
|
8582
8582
|
_: 3
|
|
8583
8583
|
}, 16, ["name"]));
|
|
8584
8584
|
}
|
|
8585
|
-
}),
|
|
8585
|
+
}), Wd = /* @__PURE__ */ f({
|
|
8586
8586
|
__name: "VvDropdownAction",
|
|
8587
8587
|
props: {
|
|
8588
|
-
...
|
|
8589
|
-
...
|
|
8588
|
+
..._u,
|
|
8589
|
+
...tu
|
|
8590
8590
|
},
|
|
8591
8591
|
setup(e) {
|
|
8592
|
-
let { modifiers: t } = ue(e), n =
|
|
8593
|
-
return (e, t) => (H(), ke(
|
|
8594
|
-
default: i(() => [Ee(
|
|
8592
|
+
let { modifiers: t } = ue(e), n = wu("vv-dropdown-action", t);
|
|
8593
|
+
return (e, t) => (H(), ke(jd, null, {
|
|
8594
|
+
default: i(() => [Ee(Lu, j({
|
|
8595
8595
|
disabled: e.disabled,
|
|
8596
8596
|
pressed: e.pressed,
|
|
8597
8597
|
active: e.active,
|
|
@@ -8609,50 +8609,50 @@ var Id = [
|
|
|
8609
8609
|
}
|
|
8610
8610
|
});
|
|
8611
8611
|
({
|
|
8612
|
-
...
|
|
8613
|
-
...eu,
|
|
8614
|
-
...Hl,
|
|
8615
|
-
...Ul,
|
|
8612
|
+
...fu,
|
|
8616
8613
|
...tu,
|
|
8617
|
-
...
|
|
8614
|
+
...Ul,
|
|
8618
8615
|
...Wl,
|
|
8616
|
+
...nu,
|
|
8619
8617
|
...$l,
|
|
8620
8618
|
...Gl,
|
|
8619
|
+
...eu,
|
|
8621
8620
|
...Kl,
|
|
8622
|
-
...
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8621
|
+
...ql,
|
|
8622
|
+
...ou
|
|
8623
|
+
}), Sl.add, Sl.edit, Sl.download;
|
|
8624
|
+
var Gd = (e) => e.toString().padStart(2, "0"), Kd = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:?\d{2})?$/;
|
|
8625
|
+
function qd(e) {
|
|
8626
|
+
if (typeof e != "string" || !Kd.test(e)) return !1;
|
|
8627
8627
|
let t = new Date(e);
|
|
8628
8628
|
return !Number.isNaN(t.getTime()) && t.toISOString() === e;
|
|
8629
8629
|
}
|
|
8630
|
-
function
|
|
8631
|
-
if (typeof e == "string" && !
|
|
8630
|
+
function Jd(e, t = "date", n) {
|
|
8631
|
+
if (typeof e == "string" && !qd(e)) return "";
|
|
8632
8632
|
let r = new Date(e);
|
|
8633
8633
|
if (Number.isNaN(r.getTime())) return "";
|
|
8634
|
-
let i = `${r.getFullYear()}-${
|
|
8635
|
-
if (t === "month" || (i += `-${
|
|
8636
|
-
let a = n ? `${
|
|
8634
|
+
let i = `${r.getFullYear()}-${Gd(r.getMonth() + 1)}`;
|
|
8635
|
+
if (t === "month" || (i += `-${Gd(r.getDate())}`, t === "date")) return i;
|
|
8636
|
+
let a = n ? `${Gd(r.getHours())}:${Gd(r.getMinutes())}:${Gd(r.getSeconds())}` : `${Gd(r.getHours())}:${Gd(r.getMinutes())}`;
|
|
8637
8637
|
return t === "time" ? a : `${i}T${a}`;
|
|
8638
8638
|
}
|
|
8639
|
-
var
|
|
8640
|
-
function
|
|
8639
|
+
var Yd = /^\d{4}-\d{2}-\d{2}$/, Xd = /^\d{4}-\d{2}$/, Zd = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, Qd = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
|
|
8640
|
+
function $d(e, t = "date") {
|
|
8641
8641
|
if (!e?.trim()) return null;
|
|
8642
8642
|
let n = /* @__PURE__ */ new Date(), r = n.getFullYear(), i = n.getMonth(), a = n.getDate();
|
|
8643
8643
|
if (t === "date") {
|
|
8644
|
-
if (!
|
|
8644
|
+
if (!Yd.test(e)) throw Error("Invalid date format. Expected: YYYY-MM-DD");
|
|
8645
8645
|
return /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
8646
8646
|
}
|
|
8647
8647
|
if (t === "month") {
|
|
8648
|
-
if (!
|
|
8648
|
+
if (!Xd.test(e)) throw Error("Invalid month format. Expected: YYYY-MM");
|
|
8649
8649
|
return /* @__PURE__ */ new Date(`${e}-01T00:00:00`);
|
|
8650
8650
|
}
|
|
8651
8651
|
if (t === "time") {
|
|
8652
|
-
if (!
|
|
8653
|
-
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${
|
|
8652
|
+
if (!Zd.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
|
|
8653
|
+
return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${Gd(i + 1)}-${Gd(a)}T${e}`) : /* @__PURE__ */ new Date(`${r}-${Gd(i + 1)}-${Gd(a)}T${e}:00`);
|
|
8654
8654
|
}
|
|
8655
|
-
if (!
|
|
8655
|
+
if (!Qd.test(e)) throw Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
|
|
8656
8656
|
return e.length === 16 ? /* @__PURE__ */ new Date(`${e}:00`) : /* @__PURE__ */ new Date(`${e}`);
|
|
8657
8657
|
}
|
|
8658
8658
|
var $ = {
|
|
@@ -8669,7 +8669,7 @@ var $ = {
|
|
|
8669
8669
|
DATETIME_LOCAL: "datetime-local",
|
|
8670
8670
|
MONTH: "month",
|
|
8671
8671
|
WEEK: "week"
|
|
8672
|
-
},
|
|
8672
|
+
}, ef = [
|
|
8673
8673
|
"update:modelValue",
|
|
8674
8674
|
"update:masked",
|
|
8675
8675
|
"accept",
|
|
@@ -8688,9 +8688,9 @@ var $ = {
|
|
|
8688
8688
|
"keydown",
|
|
8689
8689
|
"keypress",
|
|
8690
8690
|
"clear"
|
|
8691
|
-
],
|
|
8692
|
-
...
|
|
8693
|
-
...
|
|
8691
|
+
], tf = {
|
|
8692
|
+
...hu,
|
|
8693
|
+
...yu,
|
|
8694
8694
|
modelValue: [
|
|
8695
8695
|
String,
|
|
8696
8696
|
Number,
|
|
@@ -8719,19 +8719,19 @@ var $ = {
|
|
|
8719
8719
|
multiple: Boolean,
|
|
8720
8720
|
iconShowPassword: {
|
|
8721
8721
|
type: [String, Object],
|
|
8722
|
-
default:
|
|
8722
|
+
default: Sl.showPassword
|
|
8723
8723
|
},
|
|
8724
8724
|
iconHidePassword: {
|
|
8725
8725
|
type: [String, Object],
|
|
8726
|
-
default:
|
|
8726
|
+
default: Sl.hidePassword
|
|
8727
8727
|
},
|
|
8728
8728
|
iconClear: {
|
|
8729
8729
|
type: [String, Object],
|
|
8730
|
-
default:
|
|
8730
|
+
default: Sl.clear
|
|
8731
8731
|
},
|
|
8732
8732
|
iconRemoveSuggestion: {
|
|
8733
8733
|
type: [String, Object],
|
|
8734
|
-
default:
|
|
8734
|
+
default: Sl.remove
|
|
8735
8735
|
},
|
|
8736
8736
|
labelStepUp: {
|
|
8737
8737
|
type: String,
|
|
@@ -8790,8 +8790,8 @@ var $ = {
|
|
|
8790
8790
|
type: String,
|
|
8791
8791
|
default: "text"
|
|
8792
8792
|
}
|
|
8793
|
-
},
|
|
8794
|
-
components: { VvIcon:
|
|
8793
|
+
}, nf = f({
|
|
8794
|
+
components: { VvIcon: Wu },
|
|
8795
8795
|
props: {
|
|
8796
8796
|
inputType: {
|
|
8797
8797
|
type: String,
|
|
@@ -8811,16 +8811,16 @@ var $ = {
|
|
|
8811
8811
|
},
|
|
8812
8812
|
iconShow: {
|
|
8813
8813
|
type: [String, Object],
|
|
8814
|
-
default:
|
|
8814
|
+
default: Sl.showPassword
|
|
8815
8815
|
},
|
|
8816
8816
|
iconHide: {
|
|
8817
8817
|
type: [String, Object],
|
|
8818
|
-
default:
|
|
8818
|
+
default: Sl.hidePassword
|
|
8819
8819
|
}
|
|
8820
8820
|
},
|
|
8821
8821
|
emits: ["toggle-password"],
|
|
8822
8822
|
setup(e, { emit: t }) {
|
|
8823
|
-
let n = R(!1), r = I(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } =
|
|
8823
|
+
let n = R(!1), r = I(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } = Bu(r);
|
|
8824
8824
|
function a(r) {
|
|
8825
8825
|
r?.stopPropagation(), e.disabled || (n.value = !n.value, t("toggle-password", n.value));
|
|
8826
8826
|
}
|
|
@@ -8832,7 +8832,7 @@ var $ = {
|
|
|
8832
8832
|
};
|
|
8833
8833
|
},
|
|
8834
8834
|
render() {
|
|
8835
|
-
let e = this.hasIcon ? z(
|
|
8835
|
+
let e = this.hasIcon ? z(Wu, {
|
|
8836
8836
|
...this.hasIcon,
|
|
8837
8837
|
class: `vv-${this.inputType}__icon`
|
|
8838
8838
|
}) : void 0;
|
|
@@ -8844,8 +8844,8 @@ var $ = {
|
|
|
8844
8844
|
onClick: this.onClick
|
|
8845
8845
|
}, e);
|
|
8846
8846
|
}
|
|
8847
|
-
}),
|
|
8848
|
-
components: { VvIcon:
|
|
8847
|
+
}), rf = f({
|
|
8848
|
+
components: { VvIcon: Wu },
|
|
8849
8849
|
props: {
|
|
8850
8850
|
inputType: {
|
|
8851
8851
|
type: String,
|
|
@@ -8886,14 +8886,14 @@ var $ = {
|
|
|
8886
8886
|
});
|
|
8887
8887
|
}
|
|
8888
8888
|
});
|
|
8889
|
-
function
|
|
8889
|
+
function af(e, t, n) {
|
|
8890
8890
|
return {
|
|
8891
8891
|
name: "VvInputTextActions",
|
|
8892
8892
|
components: {
|
|
8893
|
-
VvIcon:
|
|
8894
|
-
VvInputPasswordAction:
|
|
8895
|
-
VvInputStepAction:
|
|
8896
|
-
VvInputClearAction:
|
|
8893
|
+
VvIcon: Wu,
|
|
8894
|
+
VvInputPasswordAction: nf,
|
|
8895
|
+
VvInputStepAction: rf,
|
|
8896
|
+
VvInputClearAction: Sd
|
|
8897
8897
|
},
|
|
8898
8898
|
setup() {
|
|
8899
8899
|
return {
|
|
@@ -8913,7 +8913,7 @@ function rf(e, t, n) {
|
|
|
8913
8913
|
switch (e) {
|
|
8914
8914
|
case $.SEARCH: {
|
|
8915
8915
|
let { onClear: e } = this.$attrs;
|
|
8916
|
-
n = [z(
|
|
8916
|
+
n = [z(Sd, {
|
|
8917
8917
|
disabled: this.isDisabled || !this.isDirty,
|
|
8918
8918
|
label: this.labelClear,
|
|
8919
8919
|
onClear: e
|
|
@@ -8922,7 +8922,7 @@ function rf(e, t, n) {
|
|
|
8922
8922
|
}
|
|
8923
8923
|
case $.PASSWORD: {
|
|
8924
8924
|
let { onTogglePassword: e } = this.$attrs;
|
|
8925
|
-
n = [z(
|
|
8925
|
+
n = [z(nf, {
|
|
8926
8926
|
disabled: this.isDisabled,
|
|
8927
8927
|
onTogglePassword: e,
|
|
8928
8928
|
labelShow: this.labelShowPassword,
|
|
@@ -8934,13 +8934,13 @@ function rf(e, t, n) {
|
|
|
8934
8934
|
}
|
|
8935
8935
|
case $.NUMBER: {
|
|
8936
8936
|
let { onStepUp: e, onStepDown: r } = this.$attrs;
|
|
8937
|
-
n = [z(
|
|
8937
|
+
n = [z(rf, {
|
|
8938
8938
|
mode: "up",
|
|
8939
8939
|
disabled: this.isDisabled || t.max !== void 0 && t.modelValue === t.max,
|
|
8940
8940
|
label: this.labelStepUp,
|
|
8941
8941
|
onStepUp: e,
|
|
8942
8942
|
onStepDown: r
|
|
8943
|
-
}), z(
|
|
8943
|
+
}), z(rf, {
|
|
8944
8944
|
mode: "down",
|
|
8945
8945
|
disabled: this.isDisabled || t.min !== void 0 && t.modelValue === t.min,
|
|
8946
8946
|
label: this.labelStepDown,
|
|
@@ -8954,7 +8954,7 @@ function rf(e, t, n) {
|
|
|
8954
8954
|
}
|
|
8955
8955
|
};
|
|
8956
8956
|
}
|
|
8957
|
-
function
|
|
8957
|
+
function of(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
8958
8958
|
let a;
|
|
8959
8959
|
return typeof n == "string" && (n = Number.parseInt(n)), I({
|
|
8960
8960
|
get: () => r(e?.value),
|
|
@@ -8965,7 +8965,7 @@ function af(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
8965
8965
|
}
|
|
8966
8966
|
});
|
|
8967
8967
|
}
|
|
8968
|
-
function
|
|
8968
|
+
function sf(e, t) {
|
|
8969
8969
|
let n = I(() => (V(e) ?? "").length), r = I(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit !== void 0 && n.value < t?.upperLimit ? t.upperLimit - n.value : 0);
|
|
8970
8970
|
return {
|
|
8971
8971
|
length: n,
|
|
@@ -8973,27 +8973,27 @@ function of(e, t) {
|
|
|
8973
8973
|
formatted: I(() => 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 : n.value)
|
|
8974
8974
|
};
|
|
8975
8975
|
}
|
|
8976
|
-
var
|
|
8976
|
+
var cf = ["for"], lf = {
|
|
8977
8977
|
key: 0,
|
|
8978
8978
|
class: "vv-input-text__input-before"
|
|
8979
|
-
},
|
|
8979
|
+
}, uf = ["id"], df = {
|
|
8980
8980
|
key: 1,
|
|
8981
8981
|
class: "vv-input-text__unit"
|
|
8982
|
-
},
|
|
8982
|
+
}, ff = {
|
|
8983
8983
|
key: 5,
|
|
8984
8984
|
class: "vv-input-text__input-after"
|
|
8985
|
-
},
|
|
8985
|
+
}, pf = {
|
|
8986
8986
|
key: 6,
|
|
8987
8987
|
class: "vv-input-text__limit"
|
|
8988
|
-
},
|
|
8988
|
+
}, mf = { class: "flex-1" }, hf = ["title", "onClick"], gf = /* @__PURE__ */ f({
|
|
8989
8989
|
name: "VvInputText",
|
|
8990
|
-
props:
|
|
8991
|
-
emits:
|
|
8990
|
+
props: tf,
|
|
8991
|
+
emits: ef,
|
|
8992
8992
|
setup(e, { expose: t, emit: n }) {
|
|
8993
|
-
let r = e, a = n, o = le(), l =
|
|
8993
|
+
let r = e, a = n, o = le(), l = Nu(), u = yd("VvInputText", tf, r), { count: d, debounce: f, icon: p, iconPosition: m, iconRemoveSuggestion: h, id: g, invalid: y, label: b, labelRemoveSuggestion: x, loading: S, maxlength: C, minlength: T, modelValue: E, step: D, storageType: O, type: A, unit: ee, valid: te } = ue(r), ne = zu(g), ie = I(() => `${ne.value}-hint`), M = I(() => r.floating && cd(r.placeholder) ? " " : r.placeholder), N = of(E, a, f?.value ?? 0), ae = I(() => {
|
|
8994
8994
|
let e = typeof D.value == "number" ? D.value : Number.parseInt(D.value);
|
|
8995
8995
|
return Number.isNaN(e) ? !1 : e % 60 != 0;
|
|
8996
|
-
}), se = /^-0?[.,]?[0*]?$/, ce = /./, de = /^-$|^$/, fe = R(!1), pe = R(), me = R(), { el: he, mask: _e, typed: ve, masked: z, unmasked: ye } =
|
|
8996
|
+
}), se = /^-0?[.,]?[0*]?$/, ce = /./, de = /^-$|^$/, fe = R(!1), pe = R(), me = R(), { el: he, mask: _e, typed: ve, masked: z, unmasked: ye } = Ue(I(() => {
|
|
8997
8997
|
if (!r.iMask) return { mask: ce };
|
|
8998
8998
|
if (r.iMask.mask === Number) {
|
|
8999
8999
|
let e = { ...r.iMask };
|
|
@@ -9036,7 +9036,7 @@ var sf = ["for"], cf = {
|
|
|
9036
9036
|
return;
|
|
9037
9037
|
}
|
|
9038
9038
|
let e = ve.value;
|
|
9039
|
-
if (e instanceof Date || (e =
|
|
9039
|
+
if (e instanceof Date || (e = $d(ve.value, A.value)), pe.value || me.value) {
|
|
9040
9040
|
let t = new Date(pe.value || me.value);
|
|
9041
9041
|
if ((A.value === $.DATETIME_LOCAL || A.value === $.DATE || A.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (A.value === $.DATETIME_LOCAL || A.value === $.DATE) && t.setDate(e.getDate()), (A.value === $.DATETIME_LOCAL || A.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), pe.value instanceof Date) {
|
|
9042
9042
|
if (N.value?.getTime() === t.getTime()) return;
|
|
@@ -9046,7 +9046,7 @@ var sf = ["for"], cf = {
|
|
|
9046
9046
|
N.value = t.toISOString();
|
|
9047
9047
|
return;
|
|
9048
9048
|
}
|
|
9049
|
-
N.value =
|
|
9049
|
+
N.value = Jd(e, A.value, ae.value);
|
|
9050
9050
|
return;
|
|
9051
9051
|
}
|
|
9052
9052
|
!N.value && !ye.value || (N.value = ye.value);
|
|
@@ -9064,10 +9064,10 @@ var sf = ["for"], cf = {
|
|
|
9064
9064
|
}
|
|
9065
9065
|
if (!(A.value === $.NUMBER && se.test(ye.value) && e === 0)) {
|
|
9066
9066
|
if (ct.value) {
|
|
9067
|
-
if (e instanceof Date ||
|
|
9067
|
+
if (e instanceof Date || qd(e)) {
|
|
9068
9068
|
if (e instanceof Date ? (pe.value = e, me.value = void 0) : (me.value = e, pe.value = void 0), A.value !== $.WEEK) {
|
|
9069
9069
|
let t = new Date(e), n = A.value;
|
|
9070
|
-
ve.value =
|
|
9070
|
+
ve.value = Jd(t, n, ae.value), ye.value = ve.value;
|
|
9071
9071
|
}
|
|
9072
9072
|
return;
|
|
9073
9073
|
}
|
|
@@ -9089,7 +9089,7 @@ var sf = ["for"], cf = {
|
|
|
9089
9089
|
$inner: Ce,
|
|
9090
9090
|
$wrapper: we
|
|
9091
9091
|
});
|
|
9092
|
-
let { focused: Oe } =
|
|
9092
|
+
let { focused: Oe } = Id(Se, a), Ae = I(() => Oe.value && !r.disabled && !r.readonly);
|
|
9093
9093
|
function je(e) {
|
|
9094
9094
|
e ? Me() : Ne();
|
|
9095
9095
|
}
|
|
@@ -9097,11 +9097,11 @@ var sf = ["for"], cf = {
|
|
|
9097
9097
|
u.value.selectOnFocus && Se.value && Se.value.select(), tt.value.size && De.value?.show();
|
|
9098
9098
|
}
|
|
9099
9099
|
function Ne() {
|
|
9100
|
-
if (!
|
|
9100
|
+
if (!Qe.value || !et.value) return;
|
|
9101
9101
|
let e = r.maxSuggestions;
|
|
9102
9102
|
N.value !== void 0 && N.value !== null && N.value !== "" && (et.value.size >= e && !et.value.has(N.value) && (et.value = new Set([...et.value].slice(et.value.size - e + 1))), et.value.add(N.value));
|
|
9103
9103
|
}
|
|
9104
|
-
F(Ae, je), F(
|
|
9104
|
+
F(Ae, je), F(Ze(Se), (e) => {
|
|
9105
9105
|
e && r.autofocus && !r.disabled && !r.readonly && (Oe.value = !0);
|
|
9106
9106
|
});
|
|
9107
9107
|
let Pe = R(!1), Fe = I(() => r.type === $.PASSWORD);
|
|
@@ -9128,39 +9128,39 @@ var sf = ["for"], cf = {
|
|
|
9128
9128
|
}
|
|
9129
9129
|
}
|
|
9130
9130
|
let Ve = I(() => r.type === $.SEARCH);
|
|
9131
|
-
function
|
|
9131
|
+
function He() {
|
|
9132
9132
|
N.value = "", a("clear");
|
|
9133
9133
|
}
|
|
9134
|
-
let { hasIconBefore: We, hasIconAfter: Ge } =
|
|
9134
|
+
let { hasIconBefore: We, hasIconAfter: Ge } = Bu(p, m), Ke = I(() => {
|
|
9135
9135
|
if (Ge.value !== void 0) return Ge.value;
|
|
9136
9136
|
switch (r.type) {
|
|
9137
|
-
case $.COLOR: return { name:
|
|
9137
|
+
case $.COLOR: return { name: Sl.showColorPicker };
|
|
9138
9138
|
case $.DATE:
|
|
9139
9139
|
case $.DATETIME_LOCAL:
|
|
9140
9140
|
case $.WEEK:
|
|
9141
|
-
case $.MONTH: return { name:
|
|
9142
|
-
case $.TIME: return { name:
|
|
9141
|
+
case $.MONTH: return { name: Sl.showDatePicker };
|
|
9142
|
+
case $.TIME: return { name: Sl.showTimePicker };
|
|
9143
9143
|
}
|
|
9144
|
-
}), { hasIcon: qe } =
|
|
9144
|
+
}), { hasIcon: qe } = Bu(h), { formatted: Je } = sf(N, {
|
|
9145
9145
|
mode: d.value,
|
|
9146
9146
|
upperLimit: Number(C?.value),
|
|
9147
9147
|
lowerLimit: Number(T?.value)
|
|
9148
|
-
}), Ye = I(() => r.disabled || r.readonly), Xe = I(() => Ye.value ? -1 : r.tabindex),
|
|
9148
|
+
}), Ye = I(() => r.disabled || r.readonly), Xe = I(() => Ye.value ? -1 : r.tabindex), Qe = I(() => !cd(E?.value)), $e = I(() => {
|
|
9149
9149
|
if (y.value === !0) return !0;
|
|
9150
9150
|
if (te.value === !0) return !1;
|
|
9151
|
-
}), et =
|
|
9151
|
+
}), et = ku(I(() => r.storageKey ?? (l?.experimentalFeatures.forceInputSuggestions ? r.name : void 0)), O, /* @__PURE__ */ new Set()), tt = I(() => {
|
|
9152
9152
|
let e = /* @__PURE__ */ new Map();
|
|
9153
9153
|
if (et.value) for (let t of et.value) e.set(t, { isFromStorage: !0 });
|
|
9154
9154
|
if (r.suggestions) for (let t of r.suggestions) e.set(t, { isFromStorage: !1 });
|
|
9155
9155
|
return e;
|
|
9156
|
-
}), nt = I(() => tt.value.size === 0 ? [] : [...tt.value.entries()].filter(([e]) =>
|
|
9156
|
+
}), nt = I(() => tt.value.size === 0 ? [] : [...tt.value.entries()].filter(([e]) => cd(N.value) || `${e}`.toLowerCase().includes(`${N.value}`.toLowerCase()) && e !== N.value).reverse().map(([e]) => e)), rt = I(() => tt.value.size > 0);
|
|
9157
9157
|
function it(e) {
|
|
9158
9158
|
N.value = e, De.value?.hide(), a("suggestion:selected", e);
|
|
9159
9159
|
}
|
|
9160
9160
|
function U(e) {
|
|
9161
9161
|
tt.value.get(e)?.isFromStorage && (et.value?.delete(e), a("suggestion:removed", e));
|
|
9162
9162
|
}
|
|
9163
|
-
let { modifiers: at } = ue(r), ot =
|
|
9163
|
+
let { modifiers: at } = ue(r), ot = wu("vv-input-text", at, I(() => ({
|
|
9164
9164
|
valid: te.value,
|
|
9165
9165
|
invalid: y.value,
|
|
9166
9166
|
loading: S.value,
|
|
@@ -9169,8 +9169,8 @@ var sf = ["for"], cf = {
|
|
|
9169
9169
|
readonly: r.readonly,
|
|
9170
9170
|
"icon-before": !!We.value,
|
|
9171
9171
|
"icon-after": !!Ke.value,
|
|
9172
|
-
floating: r.floating && !
|
|
9173
|
-
dirty:
|
|
9172
|
+
floating: r.floating && !cd(r.label),
|
|
9173
|
+
dirty: Qe.value,
|
|
9174
9174
|
focus: Ae.value && !Ye.value,
|
|
9175
9175
|
"auto-width": r.autoWidth
|
|
9176
9176
|
}))), st = I(() => [
|
|
@@ -9194,7 +9194,7 @@ var sf = ["for"], cf = {
|
|
|
9194
9194
|
$.EMAIL,
|
|
9195
9195
|
$.PASSWORD
|
|
9196
9196
|
].includes(A.value)), ut = I(() => {
|
|
9197
|
-
let e = Fe.value && Pe.value || Le.value && !
|
|
9197
|
+
let e = Fe.value && Pe.value || Le.value && !Qe.value && !Oe.value || r.iMask ? $.TEXT : r.type, t = {
|
|
9198
9198
|
type: e,
|
|
9199
9199
|
name: r.name,
|
|
9200
9200
|
tabindex: Xe.value,
|
|
@@ -9219,8 +9219,8 @@ var sf = ["for"], cf = {
|
|
|
9219
9219
|
togglePassword: Ie,
|
|
9220
9220
|
stepUp: ze,
|
|
9221
9221
|
stepDown: Be,
|
|
9222
|
-
clear:
|
|
9223
|
-
})), { HintSlot: ft, hasHintLabelOrSlot: pt, hasInvalidLabelOrSlot: mt, hintSlotScope: ht } =
|
|
9222
|
+
clear: He
|
|
9223
|
+
})), { HintSlot: ft, hasHintLabelOrSlot: pt, hasInvalidLabelOrSlot: mt, hintSlotScope: ht } = vd(u, o), gt = af($.PASSWORD, r, Qe), _t = af($.NUMBER, r, Qe), vt = af($.SEARCH, r, Qe);
|
|
9224
9224
|
function yt() {
|
|
9225
9225
|
Ye.value || (Oe.value = !0);
|
|
9226
9226
|
}
|
|
@@ -9243,20 +9243,20 @@ var sf = ["for"], cf = {
|
|
|
9243
9243
|
key: 0,
|
|
9244
9244
|
for: V(ne),
|
|
9245
9245
|
class: "vv-input-text__label"
|
|
9246
|
-
}, _(V(b)), 9,
|
|
9246
|
+
}, _(V(b)), 9, cf)) : L("v-if", !0),
|
|
9247
9247
|
Te("div", {
|
|
9248
9248
|
ref_key: "wrapperEl",
|
|
9249
9249
|
ref: we,
|
|
9250
9250
|
class: "vv-input-text__wrapper"
|
|
9251
9251
|
}, [
|
|
9252
|
-
e.$slots.before ? (H(), B("div",
|
|
9252
|
+
e.$slots.before ? (H(), B("div", lf, [v(e.$slots, "before", P(k(V(dt))))])) : L("v-if", !0),
|
|
9253
9253
|
Te("div", {
|
|
9254
9254
|
ref_key: "innerEl",
|
|
9255
9255
|
ref: Ce,
|
|
9256
9256
|
class: "vv-input-text__inner",
|
|
9257
9257
|
onClick: be(yt, ["stop"])
|
|
9258
9258
|
}, [
|
|
9259
|
-
V(We) ? (H(), ke(
|
|
9259
|
+
V(We) ? (H(), ke(Wu, j({ key: 0 }, V(We), { class: "vv-input-text__icon" }), null, 16)) : L("v-if", !0),
|
|
9260
9260
|
Te("input", j({
|
|
9261
9261
|
id: V(ne),
|
|
9262
9262
|
ref_key: "inputEl",
|
|
@@ -9266,10 +9266,10 @@ var sf = ["for"], cf = {
|
|
|
9266
9266
|
onKeyup: t[0] ||= (e) => a("keyup", e),
|
|
9267
9267
|
onKeydown: xt,
|
|
9268
9268
|
onKeypress: t[1] ||= (e) => a("keypress", e)
|
|
9269
|
-
}), null, 16,
|
|
9270
|
-
(V(ee) || e.$slots.unit) && V(
|
|
9269
|
+
}), null, 16, uf),
|
|
9270
|
+
(V(ee) || e.$slots.unit) && V(Qe) ? (H(), B("div", df, [v(e.$slots, "unit", P(k(V(dt))), () => [c(_(V(ee)), 1)])])) : L("v-if", !0)
|
|
9271
9271
|
], 512),
|
|
9272
|
-
V(Ke) ? (H(), ke(
|
|
9272
|
+
V(Ke) ? (H(), ke(Wu, j({ key: 1 }, V(Ke), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : V(Fe) && !e.hideActions && !V(Ye) ? (H(), ke(V(gt), {
|
|
9273
9273
|
key: 2,
|
|
9274
9274
|
onTogglePassword: Ie
|
|
9275
9275
|
})) : V(Re) && !e.hideActions && !V(Ye) ? (H(), ke(V(_t), {
|
|
@@ -9278,10 +9278,10 @@ var sf = ["for"], cf = {
|
|
|
9278
9278
|
onStepDown: Be
|
|
9279
9279
|
})) : V(Ve) && !e.hideActions && !V(Ye) ? (H(), ke(V(vt), {
|
|
9280
9280
|
key: 4,
|
|
9281
|
-
onClear:
|
|
9281
|
+
onClear: He
|
|
9282
9282
|
})) : L("v-if", !0),
|
|
9283
|
-
e.$slots.after ? (H(), B("div",
|
|
9284
|
-
V(d) ? (H(), B("span",
|
|
9283
|
+
e.$slots.after ? (H(), B("div", ff, [v(e.$slots, "after", P(k(V(dt))))])) : L("v-if", !0),
|
|
9284
|
+
V(d) ? (H(), B("span", pf, [v(e.$slots, "count", P(k(V(dt))), () => [c(_(V(Je)), 1)])])) : L("v-if", !0)
|
|
9285
9285
|
], 512),
|
|
9286
9286
|
Ee(V(ft), {
|
|
9287
9287
|
id: V(ie),
|
|
@@ -9308,7 +9308,7 @@ var sf = ["for"], cf = {
|
|
|
9308
9308
|
key: "3"
|
|
9309
9309
|
} : void 0
|
|
9310
9310
|
]), 1032, ["id"]),
|
|
9311
|
-
V(rt) ? (H(), ke(
|
|
9311
|
+
V(rt) ? (H(), ke(Ad, {
|
|
9312
9312
|
key: 1,
|
|
9313
9313
|
ref_key: "suggestionsDropdownEl",
|
|
9314
9314
|
ref: De,
|
|
@@ -9316,18 +9316,18 @@ var sf = ["for"], cf = {
|
|
|
9316
9316
|
"autofocus-first": !1,
|
|
9317
9317
|
"trigger-width": !0
|
|
9318
9318
|
}, {
|
|
9319
|
-
items: i(() => [(H(!0), B(ge, null, oe(V(nt), (t) => (H(), ke(
|
|
9319
|
+
items: i(() => [(H(!0), B(ge, null, oe(V(nt), (t) => (H(), ke(Nd, {
|
|
9320
9320
|
key: String(t),
|
|
9321
9321
|
onClick: be((e) => it(t), ["stop"])
|
|
9322
9322
|
}, {
|
|
9323
|
-
default: i(() => [Te("div",
|
|
9323
|
+
default: i(() => [Te("div", mf, [v(e.$slots, "suggestion", j({ ref_for: !0 }, { value: t }), () => [c(_(t), 1)])]), V(tt).get(t)?.isFromStorage && V(qe) ? (H(), B("button", {
|
|
9324
9324
|
key: 0,
|
|
9325
9325
|
type: "button",
|
|
9326
9326
|
tabindex: "-1",
|
|
9327
9327
|
class: "cursor-pointer",
|
|
9328
9328
|
title: V(x),
|
|
9329
9329
|
onClick: be((e) => U(t), ["stop"])
|
|
9330
|
-
}, [Ee(
|
|
9330
|
+
}, [Ee(Wu, j({ ref_for: !0 }, V(qe)), null, 16)], 8, hf)) : L("v-if", !0)]),
|
|
9331
9331
|
_: 2
|
|
9332
9332
|
}, 1032, ["onClick"]))), 128))]),
|
|
9333
9333
|
_: 3
|
|
@@ -9336,22 +9336,22 @@ var sf = ["for"], cf = {
|
|
|
9336
9336
|
}
|
|
9337
9337
|
});
|
|
9338
9338
|
({
|
|
9339
|
-
...
|
|
9340
|
-
...
|
|
9341
|
-
}), { ...
|
|
9342
|
-
var
|
|
9339
|
+
...tu,
|
|
9340
|
+
...vu
|
|
9341
|
+
}), { ...tu }, { ...tu };
|
|
9342
|
+
var _f = {
|
|
9343
9343
|
hard: "hard",
|
|
9344
9344
|
soft: "soft"
|
|
9345
|
-
},
|
|
9345
|
+
}, vf = {
|
|
9346
9346
|
true: !0,
|
|
9347
9347
|
false: !1,
|
|
9348
9348
|
default: "default"
|
|
9349
9349
|
};
|
|
9350
9350
|
({
|
|
9351
|
-
...
|
|
9352
|
-
...
|
|
9353
|
-
}),
|
|
9351
|
+
...hu,
|
|
9352
|
+
...yu
|
|
9353
|
+
}), _f.soft, vf.default, Sl.remove, { ...tu }, El.bottom;
|
|
9354
9354
|
//#endregion
|
|
9355
|
-
export {
|
|
9355
|
+
export { gf as a, fd as c, xl as d, Ud as i, Ou as l, gd as n, Wu as o, Wd as r, Ad as s, ed as t, Xu as u };
|
|
9356
9356
|
|
|
9357
|
-
//# sourceMappingURL=index.es-
|
|
9357
|
+
//# sourceMappingURL=index.es-7fUi-rc0.js.map
|