@8wave/ai-elements 0.74.0 → 0.75.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-rIdQh5_D.js} +20 -20
- package/dist/_chunks/PkStreamingMarkdown-rIdQh5_D.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js → PkToolShowArtifact-CeLgwZBA.js} +6 -6
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js.map → PkToolShowArtifact-CeLgwZBA.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js → PkToolShowCalendarEvent-cQpAAE3a.js} +10 -10
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js.map → PkToolShowCalendarEvent-cQpAAE3a.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js → PkToolShowComparison-Cu-zT8-Z.js} +6 -6
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js.map → PkToolShowComparison-Cu-zT8-Z.js.map} +1 -1
- package/dist/_chunks/PkToolShowContactForm-CqoSVvjG.js +1658 -0
- package/dist/_chunks/PkToolShowContactForm-CqoSVvjG.js.map +1 -0
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js → PkToolShowEmail-oLGym0R9.js} +10 -10
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js.map → PkToolShowEmail-oLGym0R9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js → PkToolShowImageGallery-CDXSL1Mg.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js.map → PkToolShowImageGallery-CDXSL1Mg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js → PkToolShowLocation-BtRUdoEw.js} +7 -7
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js.map → PkToolShowLocation-BtRUdoEw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js → PkToolShowMessage-tJQGRhce.js} +9 -9
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js.map → PkToolShowMessage-tJQGRhce.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js → PkToolShowMultipleChoice-CtVvdyDg.js} +2 -2
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js.map → PkToolShowMultipleChoice-CtVvdyDg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js → PkToolShowProductList-D_k6CDdb.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js.map → PkToolShowProductList-D_k6CDdb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js → PkToolShowQrCode-S1j_T8wQ.js} +6 -6
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js.map → PkToolShowQrCode-S1j_T8wQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BQo5DRwt.js → PkToolShowSources-CroItMtG.js} +6 -5
- package/dist/_chunks/PkToolShowSources-CroItMtG.js.map +1 -0
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js → PkToolShowSuggestedReply-BRa5Lpti.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js.map → PkToolShowSuggestedReply-BRa5Lpti.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js → PkToolShowWeather-CUpCJ8Nj.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js.map → PkToolShowWeather-CUpCJ8Nj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js → PkToolShowWebPages-f-dHyxfD.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js.map → PkToolShowWebPages-f-dHyxfD.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js → VvCheckbox.es-BF8Mdg0O.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js.map → VvCheckbox.es-BF8Mdg0O.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js → VvCheckboxGroup.es-BJc8MmJ3.js} +109 -109
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js.map → VvCheckboxGroup.es-BJc8MmJ3.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js → VvCombobox.es-ILRHqAye.js} +256 -256
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js.map → VvCombobox.es-ILRHqAye.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js → VvInputText.es-CDnMeO26.js} +190 -190
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js.map → VvInputText.es-CDnMeO26.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js → VvRadio.es-C2p5vvAx.js} +2 -2
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js.map → VvRadio.es-C2p5vvAx.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js → VvRadioGroup.es-6GlWuDjY.js} +10 -10
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js.map → VvRadioGroup.es-6GlWuDjY.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js → VvSelect.es-i4lO9onq.js} +6 -6
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js.map → VvSelect.es-i4lO9onq.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js → VvTextarea.es-CGpiCS4S.js} +248 -248
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js.map → VvTextarea.es-CGpiCS4S.js.map} +1 -1
- package/dist/_chunks/{dist-DtF6poRc.js → dist-BTnzL-m0.js} +131 -119
- package/dist/_chunks/dist-BTnzL-m0.js.map +1 -0
- package/dist/_chunks/{index.es-BGFmj59S.js → index.es-CUjDCkXD.js} +449 -449
- package/dist/_chunks/{index.es-BGFmj59S.js.map → index.es-CUjDCkXD.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/ai-elements.es.js +4603 -3406
- 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-CXQSoKqt.js} +3 -3
- package/dist-vue/_chunks/{Media-Bic_vfSX.js.map → Media-CXQSoKqt.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js → PkChatbot-DAzGc7al.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js.map → PkChatbot-DAzGc7al.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js → PkChatbotFeedbackForm-DvUzirPP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js.map → PkChatbotFeedbackForm-DvUzirPP.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-dsjB0-26.js} +7 -7
- package/dist-vue/_chunks/PkChatbotMessages-dsjB0-26.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js → PkChatbotViewChat-CjoezIyz.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js.map → PkChatbotViewChat-CjoezIyz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js → PkChatbotViewConversations-DSQu6vY1.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js.map → PkChatbotViewConversations-DSQu6vY1.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js → PkChatbotViewProfile-BJJiaG9H.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js.map → PkChatbotViewProfile-BJJiaG9H.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-r_GgO-ZX.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js.map → PkToolShowContactForm-r_GgO-ZX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-ZtXFkIHt.js → PkToolShowSources-DK2DCvU3.js} +5 -4
- package/dist-vue/_chunks/PkToolShowSources-DK2DCvU3.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-f86KwRcq.js} +3 -3
- package/dist-vue/_chunks/createChatbotApiClient-f86KwRcq.js.map +1 -0
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js → index.es-_14zrNZB.js} +4 -4
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js.map → index.es-_14zrNZB.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-CJlkoNn7.js} +1058 -997
- package/dist-vue/_chunks/useChatbotStore-CJlkoNn7.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 +2846 -2870
- 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/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/package.json +3 -3
- 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-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,9 +1,9 @@
|
|
|
1
|
-
import { $ as e, B as t, Bt as n, C as r, E as i, F as a, G as o, Gt as s, H as c, Ht as l, K as u, L as ee, M as d, O as f, P as p, S as te, V as ne, Vt as m, Y as re, Z as h, _ as g, _t as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.13-beta.8_@volverjs+style@0.1.24-beta.3_@vueuse+core@14.
|
|
1
|
+
import { $ as e, B as t, Bt as n, C as r, E as i, F as a, G as o, Gt as s, H as c, Ht as l, K as u, L as ee, M as d, O as f, P as p, S as te, V as ne, Vt as m, Y as re, Z as h, _ as g, _t as ie, b as _, et as ae, f as oe, ft as v, h as se, j as ce, k as y, m as le, n as ue, q as b, st as x, v as S, w as de, x as C, y as w, yt as T, z as E } from "./vue.runtime.esm-bundler-BmggS4HU.js";
|
|
2
|
+
import { a as D, i as O, t as fe } from "./iconify-C1EOwL90.js";
|
|
3
|
+
import { a as pe, c as me, i as he, l as ge, n as _e, o as ve, r as k, s as ye, t as be } from "./floating-ui.vue-B5ZV-j8C.js";
|
|
4
|
+
import { t as xe } from "./esm-0nyRYwmP.js";
|
|
5
|
+
import { c as A, d as Se, f as Ce, l as j, n as we, o as Te, r as Ee, s as De, u as Oe } from "./dist-BTnzL-m0.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.13-beta.8_@volverjs+style@0.1.24-beta.3_@vueuse+core@14.3.0_vue@3._522f151ee0a8eb4c0a241a4ec2e81adb/node_modules/@volverjs/ui-vue/dist/components/VvInputText/VvInputText.es.js
|
|
7
7
|
var M = (e) => e.toString().padStart(2, "0"), N = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:?\d{2})?$/;
|
|
8
8
|
function ke(e) {
|
|
9
9
|
if (typeof e != "string" || !N.test(e)) return !1;
|
|
@@ -39,7 +39,7 @@ function R(e, t = "date") {
|
|
|
39
39
|
return e.length === 16 ? /* @__PURE__ */ new Date(`${e}:00`) : /* @__PURE__ */ new Date(`${e}`);
|
|
40
40
|
}
|
|
41
41
|
function je(e) {
|
|
42
|
-
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(
|
|
42
|
+
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(T(e));
|
|
43
43
|
}
|
|
44
44
|
function Me(e) {
|
|
45
45
|
return typeof e == "string";
|
|
@@ -48,7 +48,7 @@ function z(e) {
|
|
|
48
48
|
return Array.isArray(e) ? e.filter((e) => Me(e)).join(" ") : e;
|
|
49
49
|
}
|
|
50
50
|
function Ne(e, t) {
|
|
51
|
-
let n = g(() =>
|
|
51
|
+
let n = g(() => x(e) ? e.value : e), r = g(() => z(n.value.invalidLabel)), a = g(() => z(n.value.validLabel)), o = g(() => n.value.loadingLabel), s = g(() => n.value.hintLabel), c = g(() => !!(n.value.loading && (t.loading || o.value))), l = g(() => !c.value && !!(n.value.invalid && (t.invalid || r.value))), u = g(() => !c.value && !l.value && !!(n.value.valid && (t.valid || a.value))), ee = g(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), d = g(() => l.value || u.value || c.value || ee.value);
|
|
52
52
|
return {
|
|
53
53
|
hasInvalidLabelOrSlot: l,
|
|
54
54
|
hasHintLabelOrSlot: ee,
|
|
@@ -82,7 +82,7 @@ function Ne(e, t) {
|
|
|
82
82
|
render() {
|
|
83
83
|
if (this.isVisible) {
|
|
84
84
|
let e;
|
|
85
|
-
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ?
|
|
85
|
+
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? y(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? y(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? y(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : y(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
86
86
|
}
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
@@ -406,10 +406,10 @@ var dt = {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
function ht(e) {
|
|
409
|
-
return g(() => String(e?.value ||
|
|
409
|
+
return g(() => String(e?.value || b()));
|
|
410
410
|
}
|
|
411
411
|
function gt({ reference: e, id: n, expanded: r, aria: a }) {
|
|
412
|
-
let o =
|
|
412
|
+
let o = ge();
|
|
413
413
|
return {
|
|
414
414
|
bus: o,
|
|
415
415
|
component: i({
|
|
@@ -424,7 +424,7 @@ function gt({ reference: e, id: n, expanded: r, aria: a }) {
|
|
|
424
424
|
});
|
|
425
425
|
},
|
|
426
426
|
render() {
|
|
427
|
-
return
|
|
427
|
+
return y(se, {}, this.$slots.default?.());
|
|
428
428
|
}
|
|
429
429
|
})
|
|
430
430
|
};
|
|
@@ -438,7 +438,7 @@ function _t({ role: e, ...n }) {
|
|
|
438
438
|
}
|
|
439
439
|
function vt({ expanded: e }) {
|
|
440
440
|
t(Ve, {
|
|
441
|
-
role:
|
|
441
|
+
role: v(Ie.menuitem),
|
|
442
442
|
expanded: e
|
|
443
443
|
});
|
|
444
444
|
}
|
|
@@ -448,7 +448,7 @@ function yt(e, t, n) {
|
|
|
448
448
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
449
449
|
t && (r[`${e}--${t}`] = !0);
|
|
450
450
|
}), n && Object.keys(n.value).forEach((t) => {
|
|
451
|
-
r[`${e}--${t}`] =
|
|
451
|
+
r[`${e}--${t}`] = T(n.value[t]);
|
|
452
452
|
}), r;
|
|
453
453
|
});
|
|
454
454
|
}
|
|
@@ -479,50 +479,50 @@ var bt = [
|
|
|
479
479
|
"leaveCancelled"
|
|
480
480
|
],
|
|
481
481
|
setup(t, { expose: r, emit: i }) {
|
|
482
|
-
let s = t, d = i, { id: te } =
|
|
483
|
-
get: () => s.reference ??
|
|
482
|
+
let s = t, d = i, { id: te } = ie(s), ne = ht(te), re = u(), ce = v("auto"), y = v("auto"), le = v(), b = v(), x = v(), w = v(), D = g({
|
|
483
|
+
get: () => s.reference ?? le.value,
|
|
484
484
|
set: (e) => {
|
|
485
|
-
|
|
485
|
+
le.value = e;
|
|
486
486
|
}
|
|
487
|
-
}),
|
|
487
|
+
}), O = v(!1);
|
|
488
488
|
ee(() => {
|
|
489
|
-
|
|
490
|
-
|
|
489
|
+
Oe(b.value, () => {
|
|
490
|
+
O.value = window.getComputedStyle(b.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
491
491
|
}, {
|
|
492
492
|
attributeFilter: ["style"],
|
|
493
493
|
window
|
|
494
494
|
});
|
|
495
495
|
});
|
|
496
|
-
let
|
|
496
|
+
let fe = g(() => {
|
|
497
497
|
let e = [];
|
|
498
|
-
if (s.autoPlacement ? typeof s.autoPlacement == "boolean" ? e.push(
|
|
498
|
+
if (s.autoPlacement ? typeof s.autoPlacement == "boolean" ? e.push(k()) : e.push(k(s.autoPlacement)) : s.flip && (typeof s.flip == "boolean" ? e.push(pe({ fallbackStrategy: "initialPlacement" })) : e.push(pe(s.flip))), s.shift && (typeof s.shift == "boolean" ? e.push(ye()) : e.push(ye(s.shift))), s.size) {
|
|
499
499
|
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
500
|
-
|
|
500
|
+
ce.value = `${e}px`, y.value = `${t}px`;
|
|
501
501
|
};
|
|
502
|
-
typeof s.size == "boolean" ? e.push(
|
|
502
|
+
typeof s.size == "boolean" ? e.push(me({ apply: t })) : e.push(me({
|
|
503
503
|
...s.size,
|
|
504
504
|
apply: t
|
|
505
505
|
}));
|
|
506
506
|
}
|
|
507
|
-
return s.offset && (e.push(
|
|
508
|
-
}), { x:
|
|
509
|
-
whileElementsMounted: (...e) =>
|
|
507
|
+
return s.offset && (e.push(ve(Number(s.offset))), ["string", "number"].includes(typeof s.offset) ? e.push(ve(Number(s.offset))) : e.push(ve(s.offset))), s.arrow && e.push(be({ element: x })), e;
|
|
508
|
+
}), { x: ge, y: xe, middlewareData: A, placement: Se, strategy: De } = _e(D, b, {
|
|
509
|
+
whileElementsMounted: (...e) => he(...e, { animationFrame: s.strategy === V.fixed }),
|
|
510
510
|
placement: g(() => s.placement),
|
|
511
511
|
strategy: g(() => s.strategy),
|
|
512
|
-
middleware:
|
|
512
|
+
middleware: fe
|
|
513
513
|
}), M = g(() => {
|
|
514
|
-
if (
|
|
515
|
-
let e = s.triggerWidth &&
|
|
514
|
+
if (O.value) return;
|
|
515
|
+
let e = s.triggerWidth && D.value ? `${D.value?.offsetWidth}px` : void 0;
|
|
516
516
|
return {
|
|
517
|
-
position:
|
|
518
|
-
top: `${
|
|
519
|
-
left: `${
|
|
520
|
-
maxWidth: e ? void 0 :
|
|
521
|
-
maxHeight:
|
|
517
|
+
position: De.value,
|
|
518
|
+
top: `${xe.value ?? 0}px`,
|
|
519
|
+
left: `${ge.value ?? 0}px`,
|
|
520
|
+
maxWidth: e ? void 0 : ce.value,
|
|
521
|
+
maxHeight: y.value,
|
|
522
522
|
width: e
|
|
523
523
|
};
|
|
524
|
-
}), N = g(() =>
|
|
525
|
-
if (
|
|
524
|
+
}), N = g(() => Se.value.split("-")[0]), ke = g(() => {
|
|
525
|
+
if (O.value) return;
|
|
526
526
|
let e = {
|
|
527
527
|
[H.top]: H.bottom,
|
|
528
528
|
[H.right]: H.left,
|
|
@@ -530,11 +530,11 @@ var bt = [
|
|
|
530
530
|
[H.left]: H.right
|
|
531
531
|
}[N.value];
|
|
532
532
|
return {
|
|
533
|
-
left:
|
|
534
|
-
top:
|
|
535
|
-
[e]: `${-(
|
|
533
|
+
left: A.value.arrow?.x === void 0 ? void 0 : `${A.value.arrow?.x}px`,
|
|
534
|
+
top: A.value.arrow?.y === void 0 ? void 0 : `${A.value.arrow?.y}px`,
|
|
535
|
+
[e]: `${-(x.value?.offsetWidth ?? 0) / 2}px`
|
|
536
536
|
};
|
|
537
|
-
}), Ae =
|
|
537
|
+
}), Ae = Ce(s, "modelValue", d), P = v(!1), F = g({
|
|
538
538
|
get: () => Ae.value ?? P.value,
|
|
539
539
|
set: (e) => {
|
|
540
540
|
if (Ae.value === void 0) {
|
|
@@ -554,42 +554,42 @@ var bt = [
|
|
|
554
554
|
F.value = !F.value;
|
|
555
555
|
}
|
|
556
556
|
function je(e) {
|
|
557
|
-
|
|
557
|
+
D.value = e;
|
|
558
558
|
}
|
|
559
|
-
|
|
559
|
+
we(b, () => {
|
|
560
560
|
!s.keepOpen && F.value && (F.value = !1);
|
|
561
|
-
}, { ignore: [
|
|
562
|
-
let Me = g(() =>
|
|
561
|
+
}, { ignore: [D] });
|
|
562
|
+
let Me = g(() => D.value?.getAttribute?.("id") ?? void 0), z = g(() => ({
|
|
563
563
|
"aria-controls": ne.value,
|
|
564
564
|
"aria-haspopup": !0,
|
|
565
565
|
"aria-expanded": F.value
|
|
566
566
|
})), { component: Ne, bus: B } = gt({
|
|
567
|
-
reference:
|
|
567
|
+
reference: D,
|
|
568
568
|
id: ne,
|
|
569
569
|
expanded: F,
|
|
570
570
|
aria: z
|
|
571
571
|
});
|
|
572
572
|
B.on("click", R);
|
|
573
|
-
let { role: Pe, modifiers: U } =
|
|
573
|
+
let { role: Pe, modifiers: U } = ie(s), Fe = yt("vv-dropdown", U, g(() => ({ arrow: s.arrow }))), { focused: W } = j(b);
|
|
574
574
|
function Ie(e) {
|
|
575
575
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
576
576
|
}
|
|
577
577
|
function Le() {
|
|
578
578
|
a(() => {
|
|
579
|
-
let e = Ie(
|
|
579
|
+
let e = Ie(b.value);
|
|
580
580
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
function Re() {
|
|
584
584
|
a(() => {
|
|
585
|
-
let e = Ie(
|
|
585
|
+
let e = Ie(w.value);
|
|
586
586
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
function G() {
|
|
590
590
|
a(() => {
|
|
591
591
|
if (W.value) {
|
|
592
|
-
let e = Ie(
|
|
592
|
+
let e = Ie(b.value);
|
|
593
593
|
if (e.length === 0 || !document.activeElement) return;
|
|
594
594
|
let t = e.indexOf(document.activeElement);
|
|
595
595
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
@@ -599,7 +599,7 @@ var bt = [
|
|
|
599
599
|
function ze() {
|
|
600
600
|
a(() => {
|
|
601
601
|
if (W.value) {
|
|
602
|
-
let e = Ie(
|
|
602
|
+
let e = Ie(b.value);
|
|
603
603
|
if (e.length === 0 || !document.activeElement) return;
|
|
604
604
|
let t = e.indexOf(document.activeElement);
|
|
605
605
|
if (t > 0) {
|
|
@@ -621,21 +621,21 @@ var bt = [
|
|
|
621
621
|
focusFirstListElement: Re,
|
|
622
622
|
focusNext: G,
|
|
623
623
|
focusPrev: ze,
|
|
624
|
-
customPosition:
|
|
624
|
+
customPosition: O
|
|
625
625
|
});
|
|
626
626
|
let { itemRole: Be } = _t({
|
|
627
627
|
role: Pe,
|
|
628
628
|
expanded: F,
|
|
629
629
|
focused: W,
|
|
630
|
-
hovered:
|
|
630
|
+
hovered: Te(b)
|
|
631
631
|
});
|
|
632
|
-
|
|
632
|
+
Ee("Escape", (e) => {
|
|
633
633
|
F.value && (e.preventDefault(), L());
|
|
634
|
-
}),
|
|
634
|
+
}), Ee("ArrowDown", (e) => {
|
|
635
635
|
F.value && W.value && (e.preventDefault(), G());
|
|
636
|
-
}),
|
|
636
|
+
}), Ee("ArrowUp", (e) => {
|
|
637
637
|
F.value && W.value && (e.preventDefault(), ze());
|
|
638
|
-
}),
|
|
638
|
+
}), Ee([" ", "Enter"], (e) => {
|
|
639
639
|
let t = e.target;
|
|
640
640
|
F.value && W.value && t && t?.click();
|
|
641
641
|
});
|
|
@@ -665,104 +665,104 @@ var bt = [
|
|
|
665
665
|
d("leaveCancelled");
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
|
-
return (t, r) => (
|
|
668
|
+
return (t, r) => (E(), C(se, null, [de(T(Ne), null, {
|
|
669
669
|
default: e(() => [c(t.$slots, "default", m(f({
|
|
670
670
|
init: je,
|
|
671
671
|
show: I,
|
|
672
672
|
hide: L,
|
|
673
673
|
toggle: R,
|
|
674
|
-
expanded:
|
|
675
|
-
aria:
|
|
674
|
+
expanded: T(F),
|
|
675
|
+
aria: T(z)
|
|
676
676
|
})))]),
|
|
677
677
|
_: 3
|
|
678
|
-
}), ue
|
|
679
|
-
default: e(() => [
|
|
678
|
+
}), de(ue, p({ name: t.transitionName }, o(Ve), { persisted: "" }), {
|
|
679
|
+
default: e(() => [ae(S("div", {
|
|
680
680
|
ref_key: "floatingEl",
|
|
681
|
-
ref:
|
|
682
|
-
style: l(
|
|
683
|
-
class: n(
|
|
681
|
+
ref: b,
|
|
682
|
+
style: l(T(M)),
|
|
683
|
+
class: n(T(Fe))
|
|
684
684
|
}, [
|
|
685
|
-
s.arrow ? (
|
|
685
|
+
s.arrow ? (E(), C("div", {
|
|
686
686
|
key: 0,
|
|
687
687
|
ref_key: "arrowEl",
|
|
688
|
-
ref:
|
|
689
|
-
style: l(
|
|
688
|
+
ref: x,
|
|
689
|
+
style: l(T(ke)),
|
|
690
690
|
class: "vv-dropdown__arrow"
|
|
691
|
-
}, null, 4)) :
|
|
691
|
+
}, null, 4)) : _("v-if", !0),
|
|
692
692
|
c(t.$slots, "before", m(f({
|
|
693
693
|
show: I,
|
|
694
694
|
hide: L,
|
|
695
695
|
toggle: R,
|
|
696
|
-
expanded:
|
|
696
|
+
expanded: T(F)
|
|
697
697
|
}))),
|
|
698
|
-
|
|
699
|
-
id:
|
|
698
|
+
S("div", p(T(re), {
|
|
699
|
+
id: T(ne),
|
|
700
700
|
ref_key: "listEl",
|
|
701
|
-
ref:
|
|
702
|
-
tabindex:
|
|
703
|
-
role:
|
|
704
|
-
"aria-labelledby":
|
|
701
|
+
ref: w,
|
|
702
|
+
tabindex: T(F) ? void 0 : -1,
|
|
703
|
+
role: T(Pe),
|
|
704
|
+
"aria-labelledby": T(Me),
|
|
705
705
|
class: "vv-dropdown__list"
|
|
706
706
|
}), [c(t.$slots, "items", m(f({
|
|
707
707
|
show: I,
|
|
708
708
|
hide: L,
|
|
709
709
|
toggle: R,
|
|
710
|
-
expanded:
|
|
711
|
-
role:
|
|
710
|
+
expanded: T(F),
|
|
711
|
+
role: T(Be)
|
|
712
712
|
})))], 16, bt),
|
|
713
713
|
c(t.$slots, "after", m(f({
|
|
714
714
|
show: I,
|
|
715
715
|
hide: L,
|
|
716
716
|
toggle: R,
|
|
717
|
-
expanded:
|
|
717
|
+
expanded: T(F)
|
|
718
718
|
})))
|
|
719
|
-
], 6), [[
|
|
719
|
+
], 6), [[oe, T(F)]])]),
|
|
720
720
|
_: 3
|
|
721
721
|
}, 16, ["name"])], 64));
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
function St() {
|
|
725
|
-
return
|
|
725
|
+
return ce(Be, {});
|
|
726
726
|
}
|
|
727
727
|
var Ct = /* @__PURE__ */ i({
|
|
728
728
|
name: "VvDropdownItem",
|
|
729
729
|
props: pt,
|
|
730
730
|
setup(e) {
|
|
731
|
-
let t = e, { role: n, expanded: r } = St(), i =
|
|
731
|
+
let t = e, { role: n, expanded: r } = St(), i = v(null);
|
|
732
732
|
vt({ expanded: r });
|
|
733
|
-
let a =
|
|
733
|
+
let a = Te(i), { focused: o } = A(i), { focused: s } = j(i);
|
|
734
734
|
return h(a, (e) => {
|
|
735
735
|
e && t.focusOnHover && (o.value = !0);
|
|
736
|
-
}), (e, t) => (
|
|
736
|
+
}), (e, t) => (E(), C("div", p({ role: T(n) }, {
|
|
737
737
|
ref_key: "element",
|
|
738
738
|
ref: i,
|
|
739
|
-
class: ["vv-dropdown__item", { "focus-visible":
|
|
739
|
+
class: ["vv-dropdown__item", { "focus-visible": T(o) || T(s) }]
|
|
740
740
|
}), [c(e.$slots, "default")], 16));
|
|
741
741
|
}
|
|
742
742
|
}), wt = ["title"], Tt = /* @__PURE__ */ i({
|
|
743
743
|
name: "VvDropdownOption",
|
|
744
744
|
props: mt,
|
|
745
745
|
setup(t) {
|
|
746
|
-
let i = t, { modifiers: a } =
|
|
746
|
+
let i = t, { modifiers: a } = ie(i), o = yt("vv-dropdown-option", a, g(() => ({
|
|
747
747
|
disabled: i.disabled,
|
|
748
748
|
selected: i.selected,
|
|
749
749
|
unselectable: i.unselectable && i.selected
|
|
750
750
|
}))), l = g(() => i.selected ? i.unselectable ? i.deselectHintLabel : i.selectedHintLabel : i.disabled ? "" : i.selectHintLabel);
|
|
751
|
-
return (t, i) => (
|
|
752
|
-
class: n(
|
|
751
|
+
return (t, i) => (E(), w(Ct, {
|
|
752
|
+
class: n(T(o)),
|
|
753
753
|
tabindex: t.disabled ? -1 : 0,
|
|
754
754
|
"aria-selected": t.selected,
|
|
755
755
|
"aria-disabled": t.disabled,
|
|
756
756
|
"focus-on-hover": t.focusOnHover
|
|
757
757
|
}, {
|
|
758
|
-
default: e(() => [c(t.$slots, "default"),
|
|
758
|
+
default: e(() => [c(t.$slots, "default"), S("span", {
|
|
759
759
|
class: "vv-dropdown-option__hint",
|
|
760
|
-
title:
|
|
760
|
+
title: T(l)
|
|
761
761
|
}, [c(t.$slots, "hint", m(f({
|
|
762
762
|
disabled: t.disabled,
|
|
763
763
|
selected: t.selected,
|
|
764
764
|
unselectable: t.unselectable
|
|
765
|
-
})), () => [r(s(
|
|
765
|
+
})), () => [r(s(T(l)), 1)])], 8, wt)]),
|
|
766
766
|
_: 3
|
|
767
767
|
}, 8, [
|
|
768
768
|
"class",
|
|
@@ -774,7 +774,7 @@ var Ct = /* @__PURE__ */ i({
|
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
function Et() {
|
|
777
|
-
return
|
|
777
|
+
return ce(G, void 0);
|
|
778
778
|
}
|
|
779
779
|
var Q = /* @__PURE__ */ i({
|
|
780
780
|
name: "VvIcon",
|
|
@@ -797,10 +797,10 @@ var Q = /* @__PURE__ */ i({
|
|
|
797
797
|
modifiers: {}
|
|
798
798
|
}, He),
|
|
799
799
|
setup(e) {
|
|
800
|
-
let t = e, n = g(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r =
|
|
800
|
+
let t = e, n = g(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = v(!0), i = Et(), { modifiers: a } = ie(t), o = yt("vv-icon", a), s = g(() => t.provider || i?.iconsProvider), c = g(() => {
|
|
801
801
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
802
|
-
if (
|
|
803
|
-
let r = i?.iconsCollections.find((t) =>
|
|
802
|
+
if (D(n)) return n;
|
|
803
|
+
let r = i?.iconsCollections.find((t) => D(`@${s.value}:${t.prefix}:${e}`));
|
|
804
804
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
805
805
|
});
|
|
806
806
|
function l(e) {
|
|
@@ -809,19 +809,19 @@ var Q = /* @__PURE__ */ i({
|
|
|
809
809
|
}
|
|
810
810
|
function u(e) {
|
|
811
811
|
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
812
|
-
n && r &&
|
|
812
|
+
n && r && O(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
813
813
|
body: r,
|
|
814
814
|
height: n.viewBox.baseVal.height,
|
|
815
815
|
width: n.viewBox.baseVal.width
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
|
-
return i && t.src && !
|
|
818
|
+
return i && t.src && !D(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
819
819
|
e && u(e), r.value = !0;
|
|
820
820
|
}).catch((e) => {
|
|
821
821
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
822
|
-
})), t.svg && u(t.svg), (t, i) =>
|
|
822
|
+
})), t.svg && u(t.svg), (t, i) => T(r) ? (E(), w(T(fe), p({
|
|
823
823
|
key: 0,
|
|
824
|
-
class:
|
|
824
|
+
class: T(o)
|
|
825
825
|
}, {
|
|
826
826
|
inline: e.inline,
|
|
827
827
|
width: e.width,
|
|
@@ -829,10 +829,10 @@ var Q = /* @__PURE__ */ i({
|
|
|
829
829
|
horizontalFlip: e.horizontalFlip,
|
|
830
830
|
verticalFlip: e.verticalFlip,
|
|
831
831
|
flip: e.flip,
|
|
832
|
-
rotate:
|
|
832
|
+
rotate: T(n),
|
|
833
833
|
color: e.color,
|
|
834
|
-
icon:
|
|
835
|
-
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) :
|
|
834
|
+
icon: T(c)
|
|
835
|
+
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : _("v-if", !0);
|
|
836
836
|
}
|
|
837
837
|
}), $ = {
|
|
838
838
|
TEXT: "text",
|
|
@@ -1014,11 +1014,11 @@ var At = i({
|
|
|
1014
1014
|
};
|
|
1015
1015
|
},
|
|
1016
1016
|
render() {
|
|
1017
|
-
let e = this.hasIcon ?
|
|
1017
|
+
let e = this.hasIcon ? y(Q, {
|
|
1018
1018
|
...this.hasIcon,
|
|
1019
1019
|
class: `vv-${this.inputType}__icon`
|
|
1020
1020
|
}) : void 0;
|
|
1021
|
-
return
|
|
1021
|
+
return y("button", {
|
|
1022
1022
|
disabled: this.disabled,
|
|
1023
1023
|
class: `vv-${this.inputType}__action`,
|
|
1024
1024
|
ariaLabel: this.label,
|
|
@@ -1056,7 +1056,7 @@ var At = i({
|
|
|
1056
1056
|
},
|
|
1057
1057
|
emits: ["toggle-password"],
|
|
1058
1058
|
setup(e, { emit: t }) {
|
|
1059
|
-
let n =
|
|
1059
|
+
let n = v(!1), r = g(() => n.value ? e.iconHide : e.iconShow), { hasIcon: i } = kt(r);
|
|
1060
1060
|
function a(r) {
|
|
1061
1061
|
r?.stopPropagation(), e.disabled || (n.value = !n.value, t("toggle-password", n.value));
|
|
1062
1062
|
}
|
|
@@ -1068,11 +1068,11 @@ var At = i({
|
|
|
1068
1068
|
};
|
|
1069
1069
|
},
|
|
1070
1070
|
render() {
|
|
1071
|
-
let e = this.hasIcon ?
|
|
1071
|
+
let e = this.hasIcon ? y(Q, {
|
|
1072
1072
|
...this.hasIcon,
|
|
1073
1073
|
class: `vv-${this.inputType}__icon`
|
|
1074
1074
|
}) : void 0;
|
|
1075
|
-
return
|
|
1075
|
+
return y("button", {
|
|
1076
1076
|
disabled: this.disabled,
|
|
1077
1077
|
class: `vv-${this.inputType}__action`,
|
|
1078
1078
|
ariaLabel: this.active ? this.labelHide : this.labelShow,
|
|
@@ -1109,7 +1109,7 @@ var At = i({
|
|
|
1109
1109
|
};
|
|
1110
1110
|
},
|
|
1111
1111
|
render() {
|
|
1112
|
-
return
|
|
1112
|
+
return y("button", {
|
|
1113
1113
|
class: [
|
|
1114
1114
|
`vv-${this.inputType}__action`,
|
|
1115
1115
|
`vv-${this.inputType}__action-chevron`,
|
|
@@ -1149,7 +1149,7 @@ function Nt(e, t, n) {
|
|
|
1149
1149
|
switch (e) {
|
|
1150
1150
|
case $.SEARCH: {
|
|
1151
1151
|
let { onClear: e } = this.$attrs;
|
|
1152
|
-
n = [
|
|
1152
|
+
n = [y(At, {
|
|
1153
1153
|
disabled: this.isDisabled || !this.isDirty,
|
|
1154
1154
|
label: this.labelClear,
|
|
1155
1155
|
onClear: e
|
|
@@ -1158,7 +1158,7 @@ function Nt(e, t, n) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
case $.PASSWORD: {
|
|
1160
1160
|
let { onTogglePassword: e } = this.$attrs;
|
|
1161
|
-
n = [
|
|
1161
|
+
n = [y(jt, {
|
|
1162
1162
|
disabled: this.isDisabled,
|
|
1163
1163
|
onTogglePassword: e,
|
|
1164
1164
|
labelShow: this.labelShowPassword,
|
|
@@ -1170,13 +1170,13 @@ function Nt(e, t, n) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
case $.NUMBER: {
|
|
1172
1172
|
let { onStepUp: e, onStepDown: r } = this.$attrs;
|
|
1173
|
-
n = [
|
|
1173
|
+
n = [y(Mt, {
|
|
1174
1174
|
mode: "up",
|
|
1175
1175
|
disabled: this.isDisabled || t.max !== void 0 && t.modelValue === t.max,
|
|
1176
1176
|
label: this.labelStepUp,
|
|
1177
1177
|
onStepUp: e,
|
|
1178
1178
|
onStepDown: r
|
|
1179
|
-
}),
|
|
1179
|
+
}), y(Mt, {
|
|
1180
1180
|
mode: "down",
|
|
1181
1181
|
disabled: this.isDisabled || t.min !== void 0 && t.modelValue === t.min,
|
|
1182
1182
|
label: this.labelStepDown,
|
|
@@ -1186,7 +1186,7 @@ function Nt(e, t, n) {
|
|
|
1186
1186
|
break;
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
return Array.isArray(n) ?
|
|
1189
|
+
return Array.isArray(n) ? y("div", { class: "vv-input-text__actions-group" }, n) : n;
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
@@ -1229,13 +1229,13 @@ function Ft(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
1231
|
function It(e, t) {
|
|
1232
|
-
let { focused: n } =
|
|
1232
|
+
let { focused: n } = A(e);
|
|
1233
1233
|
return h(n, (n) => {
|
|
1234
|
-
t(n ? "focus" : "blur",
|
|
1234
|
+
t(n ? "focus" : "blur", T(e));
|
|
1235
1235
|
}), { focused: n };
|
|
1236
1236
|
}
|
|
1237
1237
|
function Lt(e, t) {
|
|
1238
|
-
let n = g(() => (
|
|
1238
|
+
let n = g(() => (T(e) ?? "").length), r = g(() => 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);
|
|
1239
1239
|
return {
|
|
1240
1240
|
length: n,
|
|
1241
1241
|
gap: r,
|
|
@@ -1243,22 +1243,22 @@ function Lt(e, t) {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
}
|
|
1245
1245
|
function Rt(e, t = B.local, n) {
|
|
1246
|
-
let r =
|
|
1246
|
+
let r = v();
|
|
1247
1247
|
n && (r.value = n);
|
|
1248
1248
|
let i;
|
|
1249
1249
|
return ee(() => {
|
|
1250
1250
|
e && h(e, (e, n) => {
|
|
1251
|
-
let a =
|
|
1251
|
+
let a = T(t) === B.session ? sessionStorage : localStorage;
|
|
1252
1252
|
if (n && n !== e && a.removeItem(n), e) {
|
|
1253
|
-
i =
|
|
1253
|
+
i = Se(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
1254
1254
|
return;
|
|
1255
1255
|
}
|
|
1256
1256
|
i = void 0;
|
|
1257
|
-
}, { immediate: !0 }),
|
|
1257
|
+
}, { immediate: !0 }), x(t) && h(t, (t, n) => {
|
|
1258
1258
|
if (e?.value) {
|
|
1259
1259
|
if (t) {
|
|
1260
1260
|
let n = t === B.session ? sessionStorage : localStorage;
|
|
1261
|
-
i =
|
|
1261
|
+
i = Se(e.value, i?.value ?? r.value, n);
|
|
1262
1262
|
}
|
|
1263
1263
|
n && n !== t && (n === B.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
1264
1264
|
}
|
|
@@ -1287,10 +1287,10 @@ var zt = ["for"], Bt = {
|
|
|
1287
1287
|
props: Ot,
|
|
1288
1288
|
emits: Dt,
|
|
1289
1289
|
setup(t, { expose: i, emit: a }) {
|
|
1290
|
-
let o = t, l = a, u = re(), d = Et(),
|
|
1291
|
-
let e = typeof
|
|
1290
|
+
let o = t, l = a, u = re(), d = Et(), ae = Pt("VvInputText", Ot, o), { count: oe, debounce: ce, icon: y, iconPosition: ue, iconRemoveSuggestion: b, id: x, invalid: D, label: O, labelRemoveSuggestion: fe, loading: pe, maxlength: me, minlength: he, modelValue: ge, step: _e, storageType: ve, type: k, unit: ye, valid: be } = ie(o), A = ht(x), Se = g(() => `${A.value}-hint`), Ce = g(() => o.floating && je(o.placeholder) ? " " : o.placeholder), j = Ft(ge, l, ce?.value ?? 0), we = g(() => {
|
|
1291
|
+
let e = typeof _e.value == "number" ? _e.value : Number.parseInt(_e.value);
|
|
1292
1292
|
return Number.isNaN(e) ? !1 : e % 60 != 0;
|
|
1293
|
-
}), Te = /^-0?[.,]?[0*]?$/, Ee = /./,
|
|
1293
|
+
}), Te = /^-0?[.,]?[0*]?$/, Ee = /./, Oe = /^-$|^$/, M = v(!1), N = v(), P = v(), { el: F, mask: I, typed: L, masked: Me, unmasked: z } = xe(g(() => {
|
|
1294
1294
|
if (!o.iMask) return { mask: Ee };
|
|
1295
1295
|
if (o.iMask.mask === Number) {
|
|
1296
1296
|
let e = { ...o.iMask };
|
|
@@ -1301,8 +1301,8 @@ var zt = ["for"], Bt = {
|
|
|
1301
1301
|
emit: l,
|
|
1302
1302
|
onAccept: () => {
|
|
1303
1303
|
if (M.value) {
|
|
1304
|
-
if (l("update:masked", Me.value),
|
|
1305
|
-
if (
|
|
1304
|
+
if (l("update:masked", Me.value), k.value === $.NUMBER) {
|
|
1305
|
+
if (Oe.test(z.value)) {
|
|
1306
1306
|
if (j.value === null || j.value === void 0) return;
|
|
1307
1307
|
j.value = void 0;
|
|
1308
1308
|
return;
|
|
@@ -1318,7 +1318,7 @@ var zt = ["for"], Bt = {
|
|
|
1318
1318
|
j.value = L.value;
|
|
1319
1319
|
return;
|
|
1320
1320
|
}
|
|
1321
|
-
if (
|
|
1321
|
+
if (k.value === $.DATETIME_LOCAL || k.value === $.DATE || k.value === $.TIME || k.value === $.MONTH) {
|
|
1322
1322
|
if (!L.value) {
|
|
1323
1323
|
if (!j.value) return;
|
|
1324
1324
|
if (N.value) {
|
|
@@ -1333,9 +1333,9 @@ var zt = ["for"], Bt = {
|
|
|
1333
1333
|
return;
|
|
1334
1334
|
}
|
|
1335
1335
|
let e = L.value;
|
|
1336
|
-
if (e instanceof Date || (e = R(L.value,
|
|
1336
|
+
if (e instanceof Date || (e = R(L.value, k.value)), N.value || P.value) {
|
|
1337
1337
|
let t = new Date(N.value || P.value);
|
|
1338
|
-
if ((
|
|
1338
|
+
if ((k.value === $.DATETIME_LOCAL || k.value === $.DATE || k.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (k.value === $.DATETIME_LOCAL || k.value === $.DATE) && t.setDate(e.getDate()), (k.value === $.DATETIME_LOCAL || k.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), N.value instanceof Date) {
|
|
1339
1339
|
if (j.value?.getTime() === t.getTime()) return;
|
|
1340
1340
|
j.value = t;
|
|
1341
1341
|
return;
|
|
@@ -1343,7 +1343,7 @@ var zt = ["for"], Bt = {
|
|
|
1343
1343
|
j.value = t.toISOString();
|
|
1344
1344
|
return;
|
|
1345
1345
|
}
|
|
1346
|
-
j.value = Ae(e,
|
|
1346
|
+
j.value = Ae(e, k.value, we.value);
|
|
1347
1347
|
return;
|
|
1348
1348
|
}
|
|
1349
1349
|
!j.value && !z.value || (j.value = z.value);
|
|
@@ -1359,11 +1359,11 @@ var zt = ["for"], Bt = {
|
|
|
1359
1359
|
L.value = e instanceof Date ? e : new Date(e);
|
|
1360
1360
|
return;
|
|
1361
1361
|
}
|
|
1362
|
-
if (!(
|
|
1362
|
+
if (!(k.value === $.NUMBER && Te.test(z.value) && e === 0)) {
|
|
1363
1363
|
if (ot.value) {
|
|
1364
1364
|
if (e instanceof Date || ke(e)) {
|
|
1365
|
-
if (e instanceof Date ? (N.value = e, P.value = void 0) : (P.value = e, N.value = void 0),
|
|
1366
|
-
let t = new Date(e), n =
|
|
1365
|
+
if (e instanceof Date ? (N.value = e, P.value = void 0) : (P.value = e, N.value = void 0), k.value !== $.WEEK) {
|
|
1366
|
+
let t = new Date(e), n = k.value;
|
|
1367
1367
|
L.value = Ae(t, n, we.value), z.value = L.value;
|
|
1368
1368
|
}
|
|
1369
1369
|
return;
|
|
@@ -1380,7 +1380,7 @@ var zt = ["for"], Bt = {
|
|
|
1380
1380
|
}), h(() => o.masked, (e) => {
|
|
1381
1381
|
Me.value = e ?? "";
|
|
1382
1382
|
});
|
|
1383
|
-
let V = F, H =
|
|
1383
|
+
let V = F, H = v(), Pe = v(), U = v();
|
|
1384
1384
|
i({
|
|
1385
1385
|
$input: V,
|
|
1386
1386
|
$inner: H,
|
|
@@ -1391,17 +1391,17 @@ var zt = ["for"], Bt = {
|
|
|
1391
1391
|
e ? Le() : Re();
|
|
1392
1392
|
}
|
|
1393
1393
|
function Le() {
|
|
1394
|
-
|
|
1394
|
+
ae.value.selectOnFocus && V.value && V.value.select(), Z.value.size && U.value?.show();
|
|
1395
1395
|
}
|
|
1396
1396
|
function Re() {
|
|
1397
1397
|
if (!Y.value || !X.value) return;
|
|
1398
1398
|
let e = o.maxSuggestions;
|
|
1399
1399
|
j.value !== void 0 && j.value !== null && j.value !== "" && (X.value.size >= e && !X.value.has(j.value) && (X.value = new Set([...X.value].slice(X.value.size - e + 1))), X.value.add(j.value));
|
|
1400
1400
|
}
|
|
1401
|
-
h(W, Ie), h(
|
|
1401
|
+
h(W, Ie), h(De(V), (e) => {
|
|
1402
1402
|
e && o.autofocus && !o.disabled && !o.readonly && (Fe.value = !0);
|
|
1403
1403
|
});
|
|
1404
|
-
let G =
|
|
1404
|
+
let G = v(!1), ze = g(() => o.type === $.PASSWORD);
|
|
1405
1405
|
function Be() {
|
|
1406
1406
|
G.value = !G.value;
|
|
1407
1407
|
}
|
|
@@ -1409,7 +1409,7 @@ var zt = ["for"], Bt = {
|
|
|
1409
1409
|
function Ue() {
|
|
1410
1410
|
if (!J.value) {
|
|
1411
1411
|
if (o.iMask) {
|
|
1412
|
-
L.value = Number(L.value) + Number(
|
|
1412
|
+
L.value = Number(L.value) + Number(_e?.value ?? 1);
|
|
1413
1413
|
return;
|
|
1414
1414
|
}
|
|
1415
1415
|
V.value.stepUp(), j.value = Number(V.value.value);
|
|
@@ -1418,7 +1418,7 @@ var zt = ["for"], Bt = {
|
|
|
1418
1418
|
function We() {
|
|
1419
1419
|
if (!J.value) {
|
|
1420
1420
|
if (o.iMask) {
|
|
1421
|
-
L.value = Number(L.value) - Number(
|
|
1421
|
+
L.value = Number(L.value) - Number(_e?.value ?? 1);
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
1424
|
V.value.stepDown(), j.value = Number(V.value.value);
|
|
@@ -1428,7 +1428,7 @@ var zt = ["for"], Bt = {
|
|
|
1428
1428
|
function Ke() {
|
|
1429
1429
|
j.value = "", l("clear");
|
|
1430
1430
|
}
|
|
1431
|
-
let { hasIconBefore: q, hasIconAfter: qe } = kt(
|
|
1431
|
+
let { hasIconBefore: q, hasIconAfter: qe } = kt(y, ue), Je = g(() => {
|
|
1432
1432
|
if (qe.value !== void 0) return qe.value;
|
|
1433
1433
|
switch (o.type) {
|
|
1434
1434
|
case $.COLOR: return { name: K.showColorPicker };
|
|
@@ -1438,14 +1438,14 @@ var zt = ["for"], Bt = {
|
|
|
1438
1438
|
case $.MONTH: return { name: K.showDatePicker };
|
|
1439
1439
|
case $.TIME: return { name: K.showTimePicker };
|
|
1440
1440
|
}
|
|
1441
|
-
}), { hasIcon: Ye } = kt(
|
|
1442
|
-
mode:
|
|
1443
|
-
upperLimit: Number(
|
|
1444
|
-
lowerLimit: Number(
|
|
1445
|
-
}), J = g(() => o.disabled || o.readonly), Ze = g(() => J.value ? -1 : o.tabindex), Y = g(() => !je(
|
|
1446
|
-
if (
|
|
1441
|
+
}), { hasIcon: Ye } = kt(b), { formatted: Xe } = Lt(j, {
|
|
1442
|
+
mode: oe.value,
|
|
1443
|
+
upperLimit: Number(me?.value),
|
|
1444
|
+
lowerLimit: Number(he?.value)
|
|
1445
|
+
}), J = g(() => o.disabled || o.readonly), Ze = g(() => J.value ? -1 : o.tabindex), Y = g(() => !je(ge?.value)), Qe = g(() => {
|
|
1446
|
+
if (D.value === !0) return !0;
|
|
1447
1447
|
if (be.value === !0) return !1;
|
|
1448
|
-
}), X = Rt(g(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)),
|
|
1448
|
+
}), X = Rt(g(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), ve, /* @__PURE__ */ new Set()), Z = g(() => {
|
|
1449
1449
|
let e = /* @__PURE__ */ new Map();
|
|
1450
1450
|
if (X.value) for (let t of X.value) e.set(t, { isFromStorage: !0 });
|
|
1451
1451
|
if (o.suggestions) for (let t of o.suggestions) e.set(t, { isFromStorage: !1 });
|
|
@@ -1457,10 +1457,10 @@ var zt = ["for"], Bt = {
|
|
|
1457
1457
|
function nt(e) {
|
|
1458
1458
|
Z.value.get(e)?.isFromStorage && (X.value?.delete(e), l("suggestion:removed", e));
|
|
1459
1459
|
}
|
|
1460
|
-
let { modifiers: rt } =
|
|
1460
|
+
let { modifiers: rt } = ie(o), it = yt("vv-input-text", rt, g(() => ({
|
|
1461
1461
|
valid: be.value,
|
|
1462
|
-
invalid:
|
|
1463
|
-
loading:
|
|
1462
|
+
invalid: D.value,
|
|
1463
|
+
loading: pe.value,
|
|
1464
1464
|
disabled: o.disabled,
|
|
1465
1465
|
required: o.required,
|
|
1466
1466
|
readonly: o.readonly,
|
|
@@ -1477,20 +1477,20 @@ var zt = ["for"], Bt = {
|
|
|
1477
1477
|
$.TEL,
|
|
1478
1478
|
$.EMAIL,
|
|
1479
1479
|
$.PASSWORD
|
|
1480
|
-
].includes(
|
|
1480
|
+
].includes(k.value)), ot = g(() => [
|
|
1481
1481
|
$.DATE,
|
|
1482
1482
|
$.MONTH,
|
|
1483
1483
|
$.WEEK,
|
|
1484
1484
|
$.TIME,
|
|
1485
1485
|
$.DATETIME_LOCAL
|
|
1486
|
-
].includes(
|
|
1486
|
+
].includes(k.value)), st = g(() => [
|
|
1487
1487
|
$.TEXT,
|
|
1488
1488
|
$.SEARCH,
|
|
1489
1489
|
$.URL,
|
|
1490
1490
|
$.TEL,
|
|
1491
1491
|
$.EMAIL,
|
|
1492
1492
|
$.PASSWORD
|
|
1493
|
-
].includes(
|
|
1493
|
+
].includes(k.value)), ct = g(() => {
|
|
1494
1494
|
let e = ze.value && G.value || Ve.value && !Y.value && !Fe.value || o.iMask ? $.TEXT : o.type, t = {
|
|
1495
1495
|
type: e,
|
|
1496
1496
|
name: o.name,
|
|
@@ -1517,7 +1517,7 @@ var zt = ["for"], Bt = {
|
|
|
1517
1517
|
stepUp: Ue,
|
|
1518
1518
|
stepDown: We,
|
|
1519
1519
|
clear: Ke
|
|
1520
|
-
})), { HintSlot: ut, hasHintLabelOrSlot: dt, hasInvalidLabelOrSlot: ft, hintSlotScope: pt } = Ne(
|
|
1520
|
+
})), { HintSlot: ut, hasHintLabelOrSlot: dt, hasInvalidLabelOrSlot: ft, hintSlotScope: pt } = Ne(ae, u), mt = Nt($.PASSWORD, o, Y), gt = Nt($.NUMBER, o, Y), _t = Nt($.SEARCH, o, Y);
|
|
1521
1521
|
function vt() {
|
|
1522
1522
|
J.value || (Fe.value = !0);
|
|
1523
1523
|
}
|
|
@@ -1535,104 +1535,104 @@ var zt = ["for"], Bt = {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
l("keydown", e);
|
|
1537
1537
|
}
|
|
1538
|
-
return (t, i) => (
|
|
1539
|
-
|
|
1538
|
+
return (t, i) => (E(), C("div", { class: n(T(it)) }, [
|
|
1539
|
+
T(O) ? (E(), C("label", {
|
|
1540
1540
|
key: 0,
|
|
1541
|
-
for:
|
|
1541
|
+
for: T(A),
|
|
1542
1542
|
class: "vv-input-text__label"
|
|
1543
|
-
}, s(
|
|
1544
|
-
|
|
1543
|
+
}, s(T(O)), 9, zt)) : _("v-if", !0),
|
|
1544
|
+
S("div", {
|
|
1545
1545
|
ref_key: "wrapperEl",
|
|
1546
1546
|
ref: Pe,
|
|
1547
1547
|
class: "vv-input-text__wrapper"
|
|
1548
1548
|
}, [
|
|
1549
|
-
t.$slots.before ? (
|
|
1550
|
-
|
|
1549
|
+
t.$slots.before ? (E(), C("div", Bt, [c(t.$slots, "before", m(f(T(lt))))])) : _("v-if", !0),
|
|
1550
|
+
S("div", {
|
|
1551
1551
|
ref_key: "innerEl",
|
|
1552
1552
|
ref: H,
|
|
1553
1553
|
class: "vv-input-text__inner",
|
|
1554
|
-
onClick:
|
|
1554
|
+
onClick: le(vt, ["stop"])
|
|
1555
1555
|
}, [
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
id:
|
|
1556
|
+
T(q) ? (E(), w(Q, p({ key: 0 }, T(q), { class: "vv-input-text__icon" }), null, 16)) : _("v-if", !0),
|
|
1557
|
+
S("input", p({
|
|
1558
|
+
id: T(A),
|
|
1559
1559
|
ref_key: "inputEl",
|
|
1560
1560
|
ref: V
|
|
1561
|
-
},
|
|
1562
|
-
style:
|
|
1561
|
+
}, T(ct), {
|
|
1562
|
+
style: T(bt),
|
|
1563
1563
|
onKeyup: i[0] ||= (e) => l("keyup", e),
|
|
1564
1564
|
onKeydown: St,
|
|
1565
1565
|
onKeypress: i[1] ||= (e) => l("keypress", e)
|
|
1566
1566
|
}), null, 16, Vt),
|
|
1567
|
-
(
|
|
1567
|
+
(T(ye) || t.$slots.unit) && T(Y) ? (E(), C("div", Ht, [c(t.$slots, "unit", m(f(T(lt))), () => [r(s(T(ye)), 1)])])) : _("v-if", !0)
|
|
1568
1568
|
], 512),
|
|
1569
|
-
|
|
1569
|
+
T(Je) ? (E(), w(Q, p({ key: 1 }, T(Je), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : T(ze) && !t.hideActions && !T(J) ? (E(), w(T(mt), {
|
|
1570
1570
|
key: 2,
|
|
1571
1571
|
onTogglePassword: Be
|
|
1572
|
-
})) :
|
|
1572
|
+
})) : T(He) && !t.hideActions && !T(J) ? (E(), w(T(gt), {
|
|
1573
1573
|
key: 3,
|
|
1574
1574
|
onStepUp: Ue,
|
|
1575
1575
|
onStepDown: We
|
|
1576
|
-
})) :
|
|
1576
|
+
})) : T(Ge) && !t.hideActions && !T(J) ? (E(), w(T(_t), {
|
|
1577
1577
|
key: 4,
|
|
1578
1578
|
onClear: Ke
|
|
1579
|
-
})) :
|
|
1580
|
-
t.$slots.after ? (
|
|
1581
|
-
|
|
1579
|
+
})) : _("v-if", !0),
|
|
1580
|
+
t.$slots.after ? (E(), C("div", Ut, [c(t.$slots, "after", m(f(T(lt))))])) : _("v-if", !0),
|
|
1581
|
+
T(oe) ? (E(), C("span", Wt, [c(t.$slots, "count", m(f(T(lt))), () => [r(s(T(Xe)), 1)])])) : _("v-if", !0)
|
|
1582
1582
|
], 512),
|
|
1583
|
-
|
|
1584
|
-
id:
|
|
1583
|
+
de(T(ut), {
|
|
1584
|
+
id: T(Se),
|
|
1585
1585
|
class: "vv-input-text__hint"
|
|
1586
1586
|
}, te({ _: 2 }, [
|
|
1587
1587
|
t.$slots.hint ? {
|
|
1588
1588
|
name: "hint",
|
|
1589
|
-
fn: e(() => [c(t.$slots, "hint", m(f(
|
|
1589
|
+
fn: e(() => [c(t.$slots, "hint", m(f(T(pt))))]),
|
|
1590
1590
|
key: "0"
|
|
1591
1591
|
} : void 0,
|
|
1592
1592
|
t.$slots.loading ? {
|
|
1593
1593
|
name: "loading",
|
|
1594
|
-
fn: e(() => [c(t.$slots, "loading", m(f(
|
|
1594
|
+
fn: e(() => [c(t.$slots, "loading", m(f(T(pt))))]),
|
|
1595
1595
|
key: "1"
|
|
1596
1596
|
} : void 0,
|
|
1597
1597
|
t.$slots.valid ? {
|
|
1598
1598
|
name: "valid",
|
|
1599
|
-
fn: e(() => [c(t.$slots, "valid", m(f(
|
|
1599
|
+
fn: e(() => [c(t.$slots, "valid", m(f(T(pt))))]),
|
|
1600
1600
|
key: "2"
|
|
1601
1601
|
} : void 0,
|
|
1602
1602
|
t.$slots.invalid ? {
|
|
1603
1603
|
name: "invalid",
|
|
1604
|
-
fn: e(() => [c(t.$slots, "invalid", m(f(
|
|
1604
|
+
fn: e(() => [c(t.$slots, "invalid", m(f(T(pt))))]),
|
|
1605
1605
|
key: "3"
|
|
1606
1606
|
} : void 0
|
|
1607
1607
|
]), 1032, ["id"]),
|
|
1608
|
-
|
|
1608
|
+
T(et) ? (E(), w(xt, {
|
|
1609
1609
|
key: 1,
|
|
1610
1610
|
ref_key: "suggestionsDropdownEl",
|
|
1611
1611
|
ref: U,
|
|
1612
|
-
reference:
|
|
1612
|
+
reference: T(Pe),
|
|
1613
1613
|
"autofocus-first": !1,
|
|
1614
1614
|
"trigger-width": !0
|
|
1615
1615
|
}, {
|
|
1616
|
-
items: e(() => [(
|
|
1616
|
+
items: e(() => [(E(!0), C(se, null, ne(T($e), (n) => (E(), w(Tt, {
|
|
1617
1617
|
key: String(n),
|
|
1618
|
-
onClick:
|
|
1618
|
+
onClick: le((e) => tt(n), ["stop"])
|
|
1619
1619
|
}, {
|
|
1620
|
-
default: e(() => [
|
|
1620
|
+
default: e(() => [S("div", Gt, [c(t.$slots, "suggestion", p({ ref_for: !0 }, { value: n }), () => [r(s(n), 1)])]), T(Z).get(n)?.isFromStorage && T(Ye) ? (E(), C("button", {
|
|
1621
1621
|
key: 0,
|
|
1622
1622
|
type: "button",
|
|
1623
1623
|
tabindex: "-1",
|
|
1624
1624
|
class: "cursor-pointer",
|
|
1625
|
-
title:
|
|
1626
|
-
onClick:
|
|
1627
|
-
}, [
|
|
1625
|
+
title: T(fe),
|
|
1626
|
+
onClick: le((e) => nt(n), ["stop"])
|
|
1627
|
+
}, [de(Q, p({ ref_for: !0 }, T(Ye)), null, 16)], 8, Kt)) : _("v-if", !0)]),
|
|
1628
1628
|
_: 2
|
|
1629
1629
|
}, 1032, ["onClick"]))), 128))]),
|
|
1630
1630
|
_: 3
|
|
1631
|
-
}, 8, ["reference"])) :
|
|
1631
|
+
}, 8, ["reference"])) : _("v-if", !0)
|
|
1632
1632
|
], 2));
|
|
1633
1633
|
}
|
|
1634
1634
|
});
|
|
1635
1635
|
//#endregion
|
|
1636
1636
|
export { qt as default };
|
|
1637
1637
|
|
|
1638
|
-
//# sourceMappingURL=VvInputText.es-
|
|
1638
|
+
//# sourceMappingURL=VvInputText.es-CDnMeO26.js.map
|