@8wave/ai-elements 0.99.0-beta.1 → 0.99.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-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js → dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js} +379 -362
- package/dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js.map +1 -0
- package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js → PkToolRequestGeolocation-B73evGBg.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js.map → PkToolRequestGeolocation-B73evGBg.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js → PkToolRequestOAuthConnection-BWP5dsK_.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js.map → PkToolRequestOAuthConnection-BWP5dsK_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js → PkToolShowArtifact-bYYaMGxq.js} +7 -7
- package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js.map → PkToolShowArtifact-bYYaMGxq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js → PkToolShowCalendarEvent-DdEWaTj-.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js.map → PkToolShowCalendarEvent-DdEWaTj-.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js → PkToolShowComparison-Dcar7HPW.js} +4 -4
- package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js.map → PkToolShowComparison-Dcar7HPW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js → PkToolShowContactForm-DtjVW-n6.js} +13 -13
- package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js.map → PkToolShowContactForm-DtjVW-n6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js → PkToolShowDiagram-X35nsoIY.js} +8 -8
- package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js.map → PkToolShowDiagram-X35nsoIY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js → PkToolShowEmail-jVoK8qEh.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js.map → PkToolShowEmail-jVoK8qEh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-dFuoqTPs.js → PkToolShowForm-BP8asXtz.js} +101 -79
- package/dist/_chunks/PkToolShowForm-BP8asXtz.js.map +1 -0
- package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js → PkToolShowImageGallery-WQL3T4Hr.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js.map → PkToolShowImageGallery-WQL3T4Hr.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js → PkToolShowLocation-w2t7lKpb.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js.map → PkToolShowLocation-w2t7lKpb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js → PkToolShowMessage-BPo7WPim.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js.map → PkToolShowMessage-BPo7WPim.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-puiPFItN.js → PkToolShowProductList-BbY4ni7Y.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-puiPFItN.js.map → PkToolShowProductList-BbY4ni7Y.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js → PkToolShowQrCode-CN0ms27N.js} +4 -4
- package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js.map → PkToolShowQrCode-CN0ms27N.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js → PkToolShowSources-D2tBcx7n.js} +18 -18
- package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js.map → PkToolShowSources-D2tBcx7n.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js → PkToolShowSuggestedReply-Cdh_elSh.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js.map → PkToolShowSuggestedReply-Cdh_elSh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js → PkToolShowVideo-D3aU5FMO.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js.map → PkToolShowVideo-D3aU5FMO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js → PkToolShowWeather-CzanXIJp.js} +3 -3
- package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js.map → PkToolShowWeather-CzanXIJp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js → PkToolShowWebPages-DkMJrWmT.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js.map → PkToolShowWebPages-DkMJrWmT.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js → VvCheckbox.es-CRhIKQNR.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js.map → VvCheckbox.es-CRhIKQNR.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js → VvCheckboxGroup.es-gOy2kM1Y.js} +5 -5
- package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js.map → VvCheckboxGroup.es-gOy2kM1Y.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-CFA-K-cQ.js → VvCombobox.es-BOwH3LmO.js} +9 -9
- package/dist/_chunks/VvCombobox.es-BOwH3LmO.js.map +1 -0
- package/dist/_chunks/{VvInputText.es-csEQ-bSG.js → VvInputText.es-D8nXroKO.js} +536 -513
- package/dist/_chunks/VvInputText.es-D8nXroKO.js.map +1 -0
- package/dist/_chunks/{VvRadio.es-BpymhC73.js → VvRadio.es-Djy5J33A.js} +2 -2
- package/dist/_chunks/{VvRadio.es-BpymhC73.js.map → VvRadio.es-Djy5J33A.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-CSNzOJKx.js → VvRadioGroup.es-DQq3JYCR.js} +5 -5
- package/dist/_chunks/VvRadioGroup.es-DQq3JYCR.js.map +1 -0
- package/dist/_chunks/{VvSelect.es-CjKMd0nH.js → VvSelect.es-CE4x1ww0.js} +4 -4
- package/dist/_chunks/{VvSelect.es-CjKMd0nH.js.map → VvSelect.es-CE4x1ww0.js.map} +1 -1
- package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js +1129 -0
- package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js.map +1 -0
- package/dist/_chunks/{dist-BNET2z7b.js → dist-CvMCBce7.js} +39 -21
- package/dist/_chunks/dist-CvMCBce7.js.map +1 -0
- package/dist/_chunks/dot-prop-CObyt75F.js +141 -0
- package/dist/_chunks/dot-prop-CObyt75F.js.map +1 -0
- package/dist/_chunks/{floating-ui.vue-CIKvCpTA.js → floating-ui.vue-BacoFpVq.js} +278 -305
- package/dist/_chunks/floating-ui.vue-BacoFpVq.js.map +1 -0
- package/dist/_chunks/{index.es-u1dF1xg2.js → index.es-DpqfagWZ.js} +12 -12
- package/dist/_chunks/{index.es-u1dF1xg2.js.map → index.es-DpqfagWZ.js.map} +1 -1
- package/dist/_chunks/{index.es-BYny0uhz.js → index.es-_oXVRjHy.js} +2352 -2329
- package/dist/_chunks/index.es-_oXVRjHy.js.map +1 -0
- package/dist/ai-elements.es.js +4087 -5205
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.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/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/PkChatbot-Bf5uY3cO.js +236 -0
- package/dist-vue/_chunks/{PkChatbot-BlG1WlAO.js.map → PkChatbot-Bf5uY3cO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js → PkChatbotAuth-BGn2MDYD.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js.map → PkChatbotAuth-BGn2MDYD.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js → PkChatbotEmptyState-CPqLqXek.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js.map → PkChatbotEmptyState-CPqLqXek.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js → PkChatbotFeedbackForm-C_y__RH8.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js.map → PkChatbotFeedbackForm-C_y__RH8.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js → PkChatbotInput-jvb0vuak.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js.map → PkChatbotInput-jvb0vuak.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BrufA7o1.js → PkChatbotMessages-B3G12zah.js} +246 -246
- package/dist-vue/_chunks/{PkChatbotMessages-BrufA7o1.js.map → PkChatbotMessages-B3G12zah.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-BdU6YC_N.js +172 -0
- package/dist-vue/_chunks/{PkChatbotSteps-Dv9NkYER.js.map → PkChatbotSteps-BdU6YC_N.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CAqvbbfN.js → PkChatbotViewChat-c0Ecpzoc.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-CAqvbbfN.js.map → PkChatbotViewChat-c0Ecpzoc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-Cq41H-tc.js → PkChatbotViewConversations-BfhRCA_1.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-Cq41H-tc.js.map → PkChatbotViewConversations-BfhRCA_1.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DNuzmBJc.js → PkChatbotViewFiles-BipRoidH.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-DNuzmBJc.js.map → PkChatbotViewFiles-BipRoidH.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-C0BXIY2N.js → PkChatbotViewProfile-DuLwYpGZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-C0BXIY2N.js.map → PkChatbotViewProfile-DuLwYpGZ.js.map} +1 -1
- package/{dist/_chunks/PkStreamingMarkdown-Djw604Ny.js → dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js} +344 -347
- package/dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js → PkToolShowArtifact-COwSXmF4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js.map → PkToolShowArtifact-COwSXmF4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js → PkToolShowContactForm-DRRtCCxB.js} +10 -10
- package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js.map → PkToolShowContactForm-DRRtCCxB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CQuX08lk.js → PkToolShowForm-j7Ha-0X3.js} +109 -87
- package/dist-vue/_chunks/PkToolShowForm-j7Ha-0X3.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js → PkToolShowSources-BVLw4W5l.js} +43 -43
- package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js.map → PkToolShowSources-BVLw4W5l.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BMZltBLh.js → createChatbotApiClient-IH6wBh4s.js} +365 -381
- package/dist-vue/_chunks/createChatbotApiClient-IH6wBh4s.js.map +1 -0
- package/dist-vue/_chunks/{index.es-XfWQ82pb.js → index.es-Bk1O0p8N.js} +166 -156
- package/dist-vue/_chunks/index.es-Bk1O0p8N.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DZiorgLW.js → useChatbotStore-C3uKi2FS.js} +3 -5
- package/dist-vue/_chunks/useChatbotStore-C3uKi2FS.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +4430 -4221
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +27 -7
- package/dist-vue/packages/components/src/PkCheckboxField.d.ts +1 -1
- package/dist-vue/packages/components/src/PkOfflineScreen.d.ts +18 -0
- package/dist-vue/packages/components/src/PkPwaNotices.d.ts +19 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +9 -3
- package/dist-vue/packages/components/src/index.d.ts +3 -3
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
- package/dist-vue/packages/composable/src/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/useConnectivity.d.ts +28 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +81 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +24 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +24 -0
- package/dist-vue/style.css +1 -1
- package/package.json +3 -3
- package/dist/_chunks/PkStreamingMarkdown-Djw604Ny.js.map +0 -1
- package/dist/_chunks/PkToolShowForm-dFuoqTPs.js.map +0 -1
- package/dist/_chunks/VvCombobox.es-CFA-K-cQ.js.map +0 -1
- package/dist/_chunks/VvInputText.es-csEQ-bSG.js.map +0 -1
- package/dist/_chunks/VvRadioGroup.es-CSNzOJKx.js.map +0 -1
- package/dist/_chunks/VvTextarea.es-eEyRRpuT.js +0 -1109
- package/dist/_chunks/VvTextarea.es-eEyRRpuT.js.map +0 -1
- package/dist/_chunks/dist-BNET2z7b.js.map +0 -1
- package/dist/_chunks/dot-prop-BXrC9bAX.js +0 -131
- package/dist/_chunks/dot-prop-BXrC9bAX.js.map +0 -1
- package/dist/_chunks/floating-ui.vue-CIKvCpTA.js.map +0 -1
- package/dist/_chunks/index.es-BYny0uhz.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-BlG1WlAO.js +0 -236
- package/dist-vue/_chunks/PkChatbotSteps-Dv9NkYER.js +0 -172
- package/dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowForm-CQuX08lk.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BMZltBLh.js.map +0 -1
- package/dist-vue/_chunks/index.es-XfWQ82pb.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DZiorgLW.js.map +0 -1
- package/dist-vue/packages/components/src/PkPwaInstallPrompt.d.ts +0 -4
- package/dist-vue/packages/components/src/PkPwaOfflineNotice.d.ts +0 -4
|
@@ -1,1109 +0,0 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, F as i, G as a, H as o, Ht as s, K as c, L as l, M as u, O as d, P as f, Q as p, S as m, T as h, Ut as g, V as ee, Wt as _, Y as te, _ as v, at as ne, b as y, et as b, f as re, g as x, i as ie, j as S, kt as C, l as ae, lt as w, mt as T, n as oe, p as se, q as E, qt as D, tt as ce, u as le, v as O, x as ue, xt as k, y as A, yt as j, z as M } from "./vue.runtime.esm-bundler-DbhD_IvR.js";
|
|
2
|
-
import { a as N, i as P, t as de } from "./iconify-D4alNs0B.js";
|
|
3
|
-
import { c as fe, d as pe, l as me, m as he, n as ge, o as _e, p as F, r as I, s as ve } from "./dist-BNET2z7b.js";
|
|
4
|
-
import { a as ye, c as L, i as be, l as R, n as xe, o as z, r as Se, s as Ce, t as we } from "./floating-ui.vue-CIKvCpTA.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.15_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.24_@vue_60bb43b9efd217f7404117d92d31cb1d/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
|
|
6
|
-
e(), ie(), ne(), C();
|
|
7
|
-
var B = {
|
|
8
|
-
showPassword: "eye-on",
|
|
9
|
-
hidePassword: "eye-off",
|
|
10
|
-
showDatePicker: "calendar",
|
|
11
|
-
showTimePicker: "time",
|
|
12
|
-
showColorPicker: "color",
|
|
13
|
-
clear: "close",
|
|
14
|
-
add: "add",
|
|
15
|
-
remove: "trash",
|
|
16
|
-
edit: "edit",
|
|
17
|
-
download: "download"
|
|
18
|
-
}, Te = { prefix: "normal" }, V = /* @__PURE__ */ (function(e) {
|
|
19
|
-
return e.local = "local", e.session = "session", e;
|
|
20
|
-
})({}), H = /* @__PURE__ */ (function(e) {
|
|
21
|
-
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
22
|
-
})({}), U = /* @__PURE__ */ (function(e) {
|
|
23
|
-
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
24
|
-
})({}), W = /* @__PURE__ */ (function(e) {
|
|
25
|
-
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;
|
|
26
|
-
})({}), G = /* @__PURE__ */ (function(e) {
|
|
27
|
-
return e.before = "before", e.after = "after", e;
|
|
28
|
-
})({}), K = /* @__PURE__ */ (function(e) {
|
|
29
|
-
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
30
|
-
})({}), Ee = /* @__PURE__ */ (function(e) {
|
|
31
|
-
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
32
|
-
})({}), De = /* @__PURE__ */ (function(e) {
|
|
33
|
-
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
34
|
-
})({}), q = /* @__PURE__ */ (function(e) {
|
|
35
|
-
return e.listbox = "listbox", e.menu = "menu", e;
|
|
36
|
-
})({}), J = /* @__PURE__ */ (function(e) {
|
|
37
|
-
return e.option = "option", e.presentation = "presentation", e;
|
|
38
|
-
})({}), Oe = /* @__PURE__ */ Symbol.for("volver"), ke = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Y = /* @__PURE__ */ Symbol.for("dropdownItem"), Ae = /* @__PURE__ */ Symbol.for("dropdownAction"), X = {
|
|
39
|
-
to: { type: [String, Object] },
|
|
40
|
-
href: String,
|
|
41
|
-
target: String,
|
|
42
|
-
rel: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: "noopener noreferrer"
|
|
45
|
-
}
|
|
46
|
-
}, Z = {
|
|
47
|
-
valid: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
validLabel: {
|
|
52
|
-
type: [String, Array],
|
|
53
|
-
default: void 0
|
|
54
|
-
}
|
|
55
|
-
}, Q = {
|
|
56
|
-
invalid: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !1
|
|
59
|
-
},
|
|
60
|
-
invalidLabel: {
|
|
61
|
-
type: [String, Array],
|
|
62
|
-
default: void 0
|
|
63
|
-
}
|
|
64
|
-
}, je = {
|
|
65
|
-
loading: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: !1
|
|
68
|
-
},
|
|
69
|
-
loadingLabel: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: "Loading..."
|
|
72
|
-
}
|
|
73
|
-
}, $ = { disabled: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: !1
|
|
76
|
-
} }, Me = { required: {
|
|
77
|
-
type: Boolean,
|
|
78
|
-
default: !1
|
|
79
|
-
} }, Ne = { selected: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: !1
|
|
82
|
-
} }, Pe = { active: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !1
|
|
85
|
-
} }, Fe = { current: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: !1
|
|
88
|
-
} };
|
|
89
|
-
B.clear;
|
|
90
|
-
var Ie = { pressed: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: !1
|
|
93
|
-
} }, Le = { label: {
|
|
94
|
-
type: [String, Number],
|
|
95
|
-
default: void 0
|
|
96
|
-
} }, Re = { readonly: {
|
|
97
|
-
type: Boolean,
|
|
98
|
-
default: !1
|
|
99
|
-
} }, ze = { modifiers: {
|
|
100
|
-
type: [String, Array],
|
|
101
|
-
default: void 0
|
|
102
|
-
} }, Be = { hintLabel: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: ""
|
|
105
|
-
} }, Ve = {
|
|
106
|
-
options: {
|
|
107
|
-
type: Array,
|
|
108
|
-
default: () => []
|
|
109
|
-
},
|
|
110
|
-
labelKey: {
|
|
111
|
-
type: [String, Function],
|
|
112
|
-
default: "label"
|
|
113
|
-
},
|
|
114
|
-
valueKey: {
|
|
115
|
-
type: [String, Function],
|
|
116
|
-
default: "value"
|
|
117
|
-
},
|
|
118
|
-
disabledKey: {
|
|
119
|
-
type: [String, Function],
|
|
120
|
-
default: "disabled"
|
|
121
|
-
}
|
|
122
|
-
}, He = { count: {
|
|
123
|
-
type: [Boolean, String],
|
|
124
|
-
default: !1,
|
|
125
|
-
validator: (e) => [
|
|
126
|
-
!0,
|
|
127
|
-
!1,
|
|
128
|
-
"limit",
|
|
129
|
-
"countdown"
|
|
130
|
-
].includes(e)
|
|
131
|
-
} }, Ue = { debounce: {
|
|
132
|
-
type: [Number, String],
|
|
133
|
-
default: void 0
|
|
134
|
-
} }, We = {
|
|
135
|
-
icon: {
|
|
136
|
-
type: [String, Object],
|
|
137
|
-
default: void 0
|
|
138
|
-
},
|
|
139
|
-
iconPosition: {
|
|
140
|
-
type: String,
|
|
141
|
-
default: G.before,
|
|
142
|
-
validation: (e) => Object.values(G).includes(e)
|
|
143
|
-
}
|
|
144
|
-
}, Ge = { tabindex: {
|
|
145
|
-
type: [String, Number],
|
|
146
|
-
default: 0
|
|
147
|
-
} }, Ke = { floating: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
default: !1
|
|
150
|
-
} }, qe = { unselectable: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
default: !0
|
|
153
|
-
} }, Je = { id: [String, Number] }, Ye = {
|
|
154
|
-
placement: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: U.bottom,
|
|
157
|
-
validator: (e) => Object.values(U).includes(e) || Object.values(W).includes(e)
|
|
158
|
-
},
|
|
159
|
-
strategy: {
|
|
160
|
-
type: String,
|
|
161
|
-
default: void 0,
|
|
162
|
-
validator: (e) => Object.values(H).includes(e)
|
|
163
|
-
},
|
|
164
|
-
transitionName: {
|
|
165
|
-
type: String,
|
|
166
|
-
default: void 0
|
|
167
|
-
},
|
|
168
|
-
offset: {
|
|
169
|
-
type: [
|
|
170
|
-
Number,
|
|
171
|
-
String,
|
|
172
|
-
Object
|
|
173
|
-
],
|
|
174
|
-
default: 0
|
|
175
|
-
},
|
|
176
|
-
shift: {
|
|
177
|
-
type: [Boolean, Object],
|
|
178
|
-
default: !1
|
|
179
|
-
},
|
|
180
|
-
flip: {
|
|
181
|
-
type: [Boolean, Object],
|
|
182
|
-
default: !0
|
|
183
|
-
},
|
|
184
|
-
size: {
|
|
185
|
-
type: [Boolean, Object],
|
|
186
|
-
default: () => ({ padding: 10 })
|
|
187
|
-
},
|
|
188
|
-
autoPlacement: {
|
|
189
|
-
type: [Boolean, Object],
|
|
190
|
-
default: !1
|
|
191
|
-
},
|
|
192
|
-
arrow: {
|
|
193
|
-
type: Boolean,
|
|
194
|
-
default: !1
|
|
195
|
-
},
|
|
196
|
-
keepOpen: {
|
|
197
|
-
type: Boolean,
|
|
198
|
-
default: !1
|
|
199
|
-
},
|
|
200
|
-
autofocusFirst: {
|
|
201
|
-
type: Boolean,
|
|
202
|
-
default: !0
|
|
203
|
-
},
|
|
204
|
-
triggerWidth: {
|
|
205
|
-
type: Boolean,
|
|
206
|
-
default: !1
|
|
207
|
-
}
|
|
208
|
-
}, Xe = {
|
|
209
|
-
...Je,
|
|
210
|
-
name: {
|
|
211
|
-
type: String,
|
|
212
|
-
required: !0
|
|
213
|
-
}
|
|
214
|
-
}, Ze = { autofocus: {
|
|
215
|
-
type: Boolean,
|
|
216
|
-
default: !1
|
|
217
|
-
} }, Qe = { autocomplete: {
|
|
218
|
-
type: String,
|
|
219
|
-
default: "off"
|
|
220
|
-
} }, $e = {
|
|
221
|
-
...Xe,
|
|
222
|
-
...Ze,
|
|
223
|
-
...Qe,
|
|
224
|
-
...Ge,
|
|
225
|
-
...$,
|
|
226
|
-
...Re,
|
|
227
|
-
...Z,
|
|
228
|
-
...Q,
|
|
229
|
-
...Be,
|
|
230
|
-
...je,
|
|
231
|
-
...ze,
|
|
232
|
-
...He,
|
|
233
|
-
...Ue,
|
|
234
|
-
...We,
|
|
235
|
-
...Ke,
|
|
236
|
-
...Le,
|
|
237
|
-
minlength: {
|
|
238
|
-
type: [String, Number],
|
|
239
|
-
default: void 0
|
|
240
|
-
},
|
|
241
|
-
maxlength: {
|
|
242
|
-
type: [String, Number],
|
|
243
|
-
default: void 0
|
|
244
|
-
},
|
|
245
|
-
placeholder: {
|
|
246
|
-
type: String,
|
|
247
|
-
default: void 0
|
|
248
|
-
},
|
|
249
|
-
...Me
|
|
250
|
-
};
|
|
251
|
-
({
|
|
252
|
-
...Xe,
|
|
253
|
-
...Ge,
|
|
254
|
-
...Z,
|
|
255
|
-
...Q,
|
|
256
|
-
...Be,
|
|
257
|
-
...$,
|
|
258
|
-
...Re,
|
|
259
|
-
...ze,
|
|
260
|
-
...Le,
|
|
261
|
-
...je
|
|
262
|
-
}), {
|
|
263
|
-
...Z,
|
|
264
|
-
...Q,
|
|
265
|
-
...Ve,
|
|
266
|
-
...Be,
|
|
267
|
-
...$,
|
|
268
|
-
...Re,
|
|
269
|
-
...ze,
|
|
270
|
-
...Le,
|
|
271
|
-
...je,
|
|
272
|
-
...Me
|
|
273
|
-
}, {
|
|
274
|
-
...$,
|
|
275
|
-
...Le,
|
|
276
|
-
...Ie,
|
|
277
|
-
...Pe,
|
|
278
|
-
...Fe,
|
|
279
|
-
...X
|
|
280
|
-
}, K.button, Ee.button;
|
|
281
|
-
var et = {
|
|
282
|
-
storageType: {
|
|
283
|
-
type: String,
|
|
284
|
-
default: V.local,
|
|
285
|
-
validator: (e) => Object.values(V).includes(e)
|
|
286
|
-
},
|
|
287
|
-
storageKey: String
|
|
288
|
-
}, tt = {
|
|
289
|
-
hard: "hard",
|
|
290
|
-
soft: "soft"
|
|
291
|
-
}, nt = {
|
|
292
|
-
true: !0,
|
|
293
|
-
false: !1,
|
|
294
|
-
default: "default"
|
|
295
|
-
}, rt = [
|
|
296
|
-
"update:modelValue",
|
|
297
|
-
"focus",
|
|
298
|
-
"blur",
|
|
299
|
-
"keyup",
|
|
300
|
-
"suggestion:selected",
|
|
301
|
-
"suggestion:removed"
|
|
302
|
-
], it = {
|
|
303
|
-
...$e,
|
|
304
|
-
...et,
|
|
305
|
-
modelValue: String,
|
|
306
|
-
cols: {
|
|
307
|
-
type: [String, Number],
|
|
308
|
-
default: 20
|
|
309
|
-
},
|
|
310
|
-
rows: {
|
|
311
|
-
type: [String, Number],
|
|
312
|
-
default: 2
|
|
313
|
-
},
|
|
314
|
-
wrap: {
|
|
315
|
-
type: String,
|
|
316
|
-
default: tt.soft
|
|
317
|
-
},
|
|
318
|
-
spellcheck: {
|
|
319
|
-
type: [Boolean, String],
|
|
320
|
-
default: nt.default
|
|
321
|
-
},
|
|
322
|
-
iconRemoveSuggestion: {
|
|
323
|
-
type: [String, Object],
|
|
324
|
-
default: B.remove
|
|
325
|
-
},
|
|
326
|
-
labelRemoveSuggestion: {
|
|
327
|
-
type: String,
|
|
328
|
-
default: "Remove suggestion"
|
|
329
|
-
},
|
|
330
|
-
maxSuggestions: {
|
|
331
|
-
type: Number,
|
|
332
|
-
default: 5
|
|
333
|
-
},
|
|
334
|
-
selectOnFocus: {
|
|
335
|
-
type: Boolean,
|
|
336
|
-
default: !1
|
|
337
|
-
},
|
|
338
|
-
resizable: Boolean
|
|
339
|
-
};
|
|
340
|
-
function at(e) {
|
|
341
|
-
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(k(e));
|
|
342
|
-
}
|
|
343
|
-
function ot(e) {
|
|
344
|
-
return typeof e == "string";
|
|
345
|
-
}
|
|
346
|
-
function st(e) {
|
|
347
|
-
return Array.isArray(e) ? e.filter((e) => ot(e)).join(" ") : e;
|
|
348
|
-
}
|
|
349
|
-
function ct(e, t) {
|
|
350
|
-
let n = x(() => w(e) ? e.value : e), r = x(() => st(n.value.invalidLabel)), i = x(() => st(n.value.validLabel)), a = x(() => n.value.loadingLabel), o = x(() => n.value.hintLabel), s = x(() => !!(n.value.loading && (t.loading || a.value))), c = x(() => !s.value && !!(n.value.invalid && (t.invalid || r.value))), l = x(() => !s.value && !c.value && !!(n.value.valid && (t.valid || i.value))), u = x(() => !s.value && !c.value && !l.value && !!(t.hint || o.value)), f = x(() => c.value || l.value || s.value || u.value);
|
|
351
|
-
return {
|
|
352
|
-
hasInvalidLabelOrSlot: c,
|
|
353
|
-
hasHintLabelOrSlot: u,
|
|
354
|
-
hasValidLabelOrSlot: l,
|
|
355
|
-
hasLoadingLabelOrSlot: s,
|
|
356
|
-
hintSlotScope: x(() => ({
|
|
357
|
-
modelValue: n.value.modelValue,
|
|
358
|
-
valid: n.value.valid,
|
|
359
|
-
invalid: n.value.invalid,
|
|
360
|
-
loading: n.value.loading
|
|
361
|
-
})),
|
|
362
|
-
HintSlot: h({
|
|
363
|
-
name: "HintSlot",
|
|
364
|
-
props: { tag: {
|
|
365
|
-
type: String,
|
|
366
|
-
default: "small"
|
|
367
|
-
} },
|
|
368
|
-
setup() {
|
|
369
|
-
return {
|
|
370
|
-
isVisible: f,
|
|
371
|
-
invalidLabel: r,
|
|
372
|
-
validLabel: i,
|
|
373
|
-
loadingLabel: a,
|
|
374
|
-
hintLabel: o,
|
|
375
|
-
hasInvalidLabelOrSlot: c,
|
|
376
|
-
hasValidLabelOrSlot: l,
|
|
377
|
-
hasLoadingLabelOrSlot: s,
|
|
378
|
-
hasHintLabelOrSlot: u
|
|
379
|
-
};
|
|
380
|
-
},
|
|
381
|
-
render() {
|
|
382
|
-
if (this.isVisible) {
|
|
383
|
-
let e;
|
|
384
|
-
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? d(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? d(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? d(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : d(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
385
|
-
}
|
|
386
|
-
return null;
|
|
387
|
-
}
|
|
388
|
-
})
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
var lt = {
|
|
392
|
-
...Je,
|
|
393
|
-
...Ye,
|
|
394
|
-
...ze,
|
|
395
|
-
modelValue: {
|
|
396
|
-
type: Boolean,
|
|
397
|
-
default: void 0
|
|
398
|
-
},
|
|
399
|
-
reference: {
|
|
400
|
-
type: Object,
|
|
401
|
-
default: null
|
|
402
|
-
},
|
|
403
|
-
role: {
|
|
404
|
-
type: String,
|
|
405
|
-
default: q.menu,
|
|
406
|
-
validator: (e) => Object.values(q).includes(e)
|
|
407
|
-
}
|
|
408
|
-
}, ut = { focusOnHover: {
|
|
409
|
-
type: Boolean,
|
|
410
|
-
default: !1
|
|
411
|
-
} }, dt = {
|
|
412
|
-
...$,
|
|
413
|
-
...Ne,
|
|
414
|
-
...qe,
|
|
415
|
-
...ze,
|
|
416
|
-
deselectHintLabel: { type: String },
|
|
417
|
-
selectHintLabel: { type: String },
|
|
418
|
-
selectedHintLabel: { type: String },
|
|
419
|
-
focusOnHover: {
|
|
420
|
-
type: Boolean,
|
|
421
|
-
default: !1
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
function ft(e) {
|
|
425
|
-
return x(() => String(e?.value || E()));
|
|
426
|
-
}
|
|
427
|
-
function pt({ reference: e, id: n, expanded: r, aria: i }) {
|
|
428
|
-
let a = R();
|
|
429
|
-
return {
|
|
430
|
-
bus: a,
|
|
431
|
-
component: h({
|
|
432
|
-
name: "VvDropdownTriggerProvider",
|
|
433
|
-
setup() {
|
|
434
|
-
t(ke, {
|
|
435
|
-
reference: e,
|
|
436
|
-
id: n,
|
|
437
|
-
expanded: r,
|
|
438
|
-
aria: i,
|
|
439
|
-
bus: a
|
|
440
|
-
});
|
|
441
|
-
},
|
|
442
|
-
render() {
|
|
443
|
-
return d(se, {}, this.$slots.default?.());
|
|
444
|
-
}
|
|
445
|
-
})
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function mt({ role: e, ...n }) {
|
|
449
|
-
let r = x(() => e.value === q.listbox ? J.option : J.presentation);
|
|
450
|
-
return t(Y, {
|
|
451
|
-
role: r,
|
|
452
|
-
...n
|
|
453
|
-
}), { itemRole: r };
|
|
454
|
-
}
|
|
455
|
-
function ht({ expanded: e }) {
|
|
456
|
-
t(Ae, {
|
|
457
|
-
role: T(De.menuitem),
|
|
458
|
-
expanded: e
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
function gt(e, t, n) {
|
|
462
|
-
return x(() => {
|
|
463
|
-
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
464
|
-
return i && Array.isArray(i) && i.forEach((t) => {
|
|
465
|
-
t && (r[`${e}--${t}`] = !0);
|
|
466
|
-
}), n && Object.keys(n.value).forEach((t) => {
|
|
467
|
-
r[`${e}--${t}`] = k(n.value[t]);
|
|
468
|
-
}), r;
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
var _t = [
|
|
472
|
-
"id",
|
|
473
|
-
"tabindex",
|
|
474
|
-
"role",
|
|
475
|
-
"aria-labelledby"
|
|
476
|
-
], vt = /* @__PURE__ */ h({
|
|
477
|
-
name: "VvDropdown",
|
|
478
|
-
inheritAttrs: !1,
|
|
479
|
-
props: lt,
|
|
480
|
-
emits: [
|
|
481
|
-
"update:modelValue",
|
|
482
|
-
"beforeEnter",
|
|
483
|
-
"afterLeave",
|
|
484
|
-
"beforeExpand",
|
|
485
|
-
"beforeCollapse",
|
|
486
|
-
"afterExpand",
|
|
487
|
-
"afterCollapse",
|
|
488
|
-
"before-enter",
|
|
489
|
-
"after-leave",
|
|
490
|
-
"enter",
|
|
491
|
-
"afterEnter",
|
|
492
|
-
"enterCancelled",
|
|
493
|
-
"beforeLeave",
|
|
494
|
-
"leave",
|
|
495
|
-
"leaveCancelled"
|
|
496
|
-
],
|
|
497
|
-
setup(e, { expose: t, emit: u }) {
|
|
498
|
-
let d = e, m = u, { id: h } = j(d), ee = ft(h), te = c(), ne = T("auto"), re = T("auto"), ie = T(), S = T(), C = T(), ae = T(), w = x({
|
|
499
|
-
get: () => d.reference ?? ie.value,
|
|
500
|
-
set: (e) => {
|
|
501
|
-
ie.value = e;
|
|
502
|
-
}
|
|
503
|
-
}), E = T(!1);
|
|
504
|
-
l(() => {
|
|
505
|
-
pe(S.value, () => {
|
|
506
|
-
E.value = globalThis.getComputedStyle(S.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
507
|
-
}, {
|
|
508
|
-
attributeFilter: ["style"],
|
|
509
|
-
window: globalThis.window
|
|
510
|
-
});
|
|
511
|
-
});
|
|
512
|
-
function D(e, t, n) {
|
|
513
|
-
return typeof e == "boolean" ? t() : n(e);
|
|
514
|
-
}
|
|
515
|
-
let O = x(() => {
|
|
516
|
-
let e = [];
|
|
517
|
-
if (d.autoPlacement ? e.push(D(d.autoPlacement, () => Se(), (e) => Se(e))) : d.flip && e.push(D(d.flip, () => ye({ fallbackStrategy: "initialPlacement" }), (e) => ye(e))), d.shift && e.push(D(d.shift, () => Ce(), (e) => Ce(e))), d.size) {
|
|
518
|
-
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
519
|
-
ne.value = `${e}px`, re.value = `${t}px`;
|
|
520
|
-
};
|
|
521
|
-
e.push(D(d.size, () => L({ apply: t }), (e) => L({
|
|
522
|
-
...e,
|
|
523
|
-
apply: t
|
|
524
|
-
})));
|
|
525
|
-
}
|
|
526
|
-
return d.offset && e.push(["string", "number"].includes(typeof d.offset) ? z(Number(d.offset)) : z(d.offset)), d.arrow && e.push(we({ element: C })), e;
|
|
527
|
-
}), { x: ue, y: N, middlewareData: P, placement: de, strategy: fe } = xe(w, S, {
|
|
528
|
-
whileElementsMounted: (...e) => be(...e, { animationFrame: d.strategy === H.fixed }),
|
|
529
|
-
placement: x(() => d.placement),
|
|
530
|
-
strategy: x(() => d.strategy),
|
|
531
|
-
middleware: O
|
|
532
|
-
}), F = x(() => {
|
|
533
|
-
if (E.value) return;
|
|
534
|
-
let e = d.triggerWidth && w.value ? `${w.value?.offsetWidth}px` : void 0;
|
|
535
|
-
return {
|
|
536
|
-
position: fe.value,
|
|
537
|
-
top: `${N.value ?? 0}px`,
|
|
538
|
-
left: `${ue.value ?? 0}px`,
|
|
539
|
-
maxWidth: e ? void 0 : ne.value,
|
|
540
|
-
maxHeight: re.value,
|
|
541
|
-
width: e
|
|
542
|
-
};
|
|
543
|
-
}), ve = x(() => de.value.split("-")[0]), R = x(() => {
|
|
544
|
-
if (E.value) return;
|
|
545
|
-
let e = {
|
|
546
|
-
[U.top]: U.bottom,
|
|
547
|
-
[U.right]: U.left,
|
|
548
|
-
[U.bottom]: U.top,
|
|
549
|
-
[U.left]: U.right
|
|
550
|
-
}[ve.value];
|
|
551
|
-
return {
|
|
552
|
-
left: P.value.arrow?.x === void 0 ? void 0 : `${P.value.arrow?.x}px`,
|
|
553
|
-
top: P.value.arrow?.y === void 0 ? void 0 : `${P.value.arrow?.y}px`,
|
|
554
|
-
[e]: `${-(C.value?.offsetWidth ?? 0) / 2}px`
|
|
555
|
-
};
|
|
556
|
-
}), B = he(d, "modelValue", m), Te = T(!1), V = x({
|
|
557
|
-
get: () => B.value ?? Te.value,
|
|
558
|
-
set: (e) => {
|
|
559
|
-
if (B.value === void 0) {
|
|
560
|
-
Te.value = e;
|
|
561
|
-
return;
|
|
562
|
-
}
|
|
563
|
-
B.value = e;
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
function W() {
|
|
567
|
-
V.value = !0;
|
|
568
|
-
}
|
|
569
|
-
function G() {
|
|
570
|
-
V.value = !1;
|
|
571
|
-
}
|
|
572
|
-
function K() {
|
|
573
|
-
V.value = !V.value;
|
|
574
|
-
}
|
|
575
|
-
function Ee(e) {
|
|
576
|
-
w.value = e;
|
|
577
|
-
}
|
|
578
|
-
ge(S, () => {
|
|
579
|
-
!d.keepOpen && V.value && (V.value = !1);
|
|
580
|
-
}, { ignore: [w] });
|
|
581
|
-
let De = x(() => w.value?.getAttribute?.("id") ?? void 0), q = x(() => ({
|
|
582
|
-
"aria-controls": ee.value,
|
|
583
|
-
"aria-haspopup": !0,
|
|
584
|
-
"aria-expanded": V.value
|
|
585
|
-
})), { component: J, bus: Oe } = pt({
|
|
586
|
-
reference: w,
|
|
587
|
-
id: ee,
|
|
588
|
-
expanded: V,
|
|
589
|
-
aria: q
|
|
590
|
-
});
|
|
591
|
-
Oe.on("click", K);
|
|
592
|
-
let { role: ke, modifiers: Y } = j(d), Ae = gt("vv-dropdown", Y, x(() => ({ arrow: d.arrow }))), { focused: X } = me(S);
|
|
593
|
-
function Z(e) {
|
|
594
|
-
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
595
|
-
}
|
|
596
|
-
function Q() {
|
|
597
|
-
i(() => {
|
|
598
|
-
let e = Z(S.value);
|
|
599
|
-
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
function je() {
|
|
603
|
-
i(() => {
|
|
604
|
-
let e = Z(ae.value);
|
|
605
|
-
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
function $() {
|
|
609
|
-
i(() => {
|
|
610
|
-
if (X.value) {
|
|
611
|
-
let e = Z(S.value);
|
|
612
|
-
if (e.length === 0 || !document.activeElement) return;
|
|
613
|
-
let t = e.indexOf(document.activeElement);
|
|
614
|
-
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
function Me() {
|
|
619
|
-
i(() => {
|
|
620
|
-
if (X.value) {
|
|
621
|
-
let e = Z(S.value);
|
|
622
|
-
if (e.length === 0 || !document.activeElement) return;
|
|
623
|
-
let t = e.indexOf(document.activeElement);
|
|
624
|
-
if (t > 0) {
|
|
625
|
-
e[t - 1].focus({ preventScroll: !0 });
|
|
626
|
-
return;
|
|
627
|
-
}
|
|
628
|
-
e.at(-1)?.focus({ preventScroll: !0 });
|
|
629
|
-
}
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
p(V, (e) => {
|
|
633
|
-
e && d.autofocusFirst && Q();
|
|
634
|
-
}), t({
|
|
635
|
-
toggle: K,
|
|
636
|
-
show: W,
|
|
637
|
-
hide: G,
|
|
638
|
-
init: Ee,
|
|
639
|
-
focusFirst: Q,
|
|
640
|
-
focusFirstListElement: je,
|
|
641
|
-
focusNext: $,
|
|
642
|
-
focusPrev: Me,
|
|
643
|
-
customPosition: E
|
|
644
|
-
});
|
|
645
|
-
let { itemRole: Ne } = mt({
|
|
646
|
-
role: ke,
|
|
647
|
-
expanded: V,
|
|
648
|
-
focused: X,
|
|
649
|
-
hovered: _e(S)
|
|
650
|
-
});
|
|
651
|
-
I("Escape", (e) => {
|
|
652
|
-
V.value && (e.preventDefault(), G());
|
|
653
|
-
}), I("ArrowDown", (e) => {
|
|
654
|
-
V.value && X.value && (e.preventDefault(), $());
|
|
655
|
-
}), I("ArrowUp", (e) => {
|
|
656
|
-
V.value && X.value && (e.preventDefault(), Me());
|
|
657
|
-
}), I([" ", "Enter"], (e) => {
|
|
658
|
-
let t = e.target;
|
|
659
|
-
V.value && X.value && t && t?.click();
|
|
660
|
-
});
|
|
661
|
-
let Pe = {
|
|
662
|
-
"before-enter": () => {
|
|
663
|
-
m(V.value ? "beforeExpand" : "beforeCollapse"), m("beforeEnter");
|
|
664
|
-
},
|
|
665
|
-
"after-leave": () => {
|
|
666
|
-
m(V.value ? "afterExpand" : "afterCollapse"), m("afterLeave");
|
|
667
|
-
},
|
|
668
|
-
enter: () => {
|
|
669
|
-
m("enter");
|
|
670
|
-
},
|
|
671
|
-
"after-enter": () => {
|
|
672
|
-
m("afterEnter");
|
|
673
|
-
},
|
|
674
|
-
"enter-cancelled": () => {
|
|
675
|
-
m("enterCancelled");
|
|
676
|
-
},
|
|
677
|
-
"before-leave": () => {
|
|
678
|
-
m("beforeLeave");
|
|
679
|
-
},
|
|
680
|
-
leave: () => {
|
|
681
|
-
m("leave");
|
|
682
|
-
},
|
|
683
|
-
"leave-cancelled": () => {
|
|
684
|
-
m("leaveCancelled");
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
return (e, t) => (M(), y(se, null, [n(k(J), null, {
|
|
688
|
-
default: b(() => [o(e.$slots, "default", g(r({
|
|
689
|
-
init: Ee,
|
|
690
|
-
show: W,
|
|
691
|
-
hide: G,
|
|
692
|
-
toggle: K,
|
|
693
|
-
expanded: k(V),
|
|
694
|
-
aria: k(q)
|
|
695
|
-
})))]),
|
|
696
|
-
_: 3
|
|
697
|
-
}), n(oe, f({ name: e.transitionName }, a(Pe), { persisted: "" }), {
|
|
698
|
-
default: b(() => [ce(v("div", {
|
|
699
|
-
ref_key: "floatingEl",
|
|
700
|
-
ref: S,
|
|
701
|
-
style: _(k(F)),
|
|
702
|
-
class: s(k(Ae))
|
|
703
|
-
}, [
|
|
704
|
-
d.arrow ? (M(), y("div", {
|
|
705
|
-
key: 0,
|
|
706
|
-
ref_key: "arrowEl",
|
|
707
|
-
ref: C,
|
|
708
|
-
style: _(k(R)),
|
|
709
|
-
class: "vv-dropdown__arrow"
|
|
710
|
-
}, null, 4)) : A("v-if", !0),
|
|
711
|
-
o(e.$slots, "before", g(r({
|
|
712
|
-
show: W,
|
|
713
|
-
hide: G,
|
|
714
|
-
toggle: K,
|
|
715
|
-
expanded: k(V)
|
|
716
|
-
}))),
|
|
717
|
-
v("div", f(k(te), {
|
|
718
|
-
id: k(ee),
|
|
719
|
-
ref_key: "listEl",
|
|
720
|
-
ref: ae,
|
|
721
|
-
tabindex: k(V) ? void 0 : -1,
|
|
722
|
-
role: k(ke),
|
|
723
|
-
"aria-labelledby": k(De),
|
|
724
|
-
class: "vv-dropdown__list"
|
|
725
|
-
}), [o(e.$slots, "items", g(r({
|
|
726
|
-
show: W,
|
|
727
|
-
hide: G,
|
|
728
|
-
toggle: K,
|
|
729
|
-
expanded: k(V),
|
|
730
|
-
role: k(Ne)
|
|
731
|
-
})))], 16, _t),
|
|
732
|
-
o(e.$slots, "after", g(r({
|
|
733
|
-
show: W,
|
|
734
|
-
hide: G,
|
|
735
|
-
toggle: K,
|
|
736
|
-
expanded: k(V)
|
|
737
|
-
})))
|
|
738
|
-
], 6), [[le, k(V)]])]),
|
|
739
|
-
_: 3
|
|
740
|
-
}, 16, ["name"])], 64));
|
|
741
|
-
}
|
|
742
|
-
});
|
|
743
|
-
function yt() {
|
|
744
|
-
return S(Y, {});
|
|
745
|
-
}
|
|
746
|
-
var bt = /* @__PURE__ */ h({
|
|
747
|
-
name: "VvDropdownItem",
|
|
748
|
-
props: ut,
|
|
749
|
-
setup(e) {
|
|
750
|
-
let t = e, { role: n, expanded: r } = yt(), i = T(null);
|
|
751
|
-
ht({ expanded: r });
|
|
752
|
-
let a = _e(i), { focused: s } = fe(i), { focused: c } = me(i);
|
|
753
|
-
return p(a, (e) => {
|
|
754
|
-
e && t.focusOnHover && (s.value = !0);
|
|
755
|
-
}), (e, t) => (M(), y("div", f({ role: k(n) }, {
|
|
756
|
-
ref_key: "element",
|
|
757
|
-
ref: i,
|
|
758
|
-
class: ["vv-dropdown__item", { "focus-visible": k(s) || k(c) }]
|
|
759
|
-
}), [o(e.$slots, "default")], 16));
|
|
760
|
-
}
|
|
761
|
-
}), xt = ["title"], St = /* @__PURE__ */ h({
|
|
762
|
-
name: "VvDropdownOption",
|
|
763
|
-
props: dt,
|
|
764
|
-
setup(e) {
|
|
765
|
-
let t = e, { modifiers: n } = j(t), i = gt("vv-dropdown-option", n, x(() => ({
|
|
766
|
-
disabled: t.disabled,
|
|
767
|
-
selected: t.selected,
|
|
768
|
-
unselectable: t.unselectable && t.selected
|
|
769
|
-
}))), a = x(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
770
|
-
return (e, t) => (M(), O(bt, {
|
|
771
|
-
class: s(k(i)),
|
|
772
|
-
tabindex: e.disabled ? -1 : 0,
|
|
773
|
-
"aria-selected": e.selected,
|
|
774
|
-
"aria-disabled": e.disabled,
|
|
775
|
-
"focus-on-hover": e.focusOnHover
|
|
776
|
-
}, {
|
|
777
|
-
default: b(() => [o(e.$slots, "default"), v("span", {
|
|
778
|
-
class: "vv-dropdown-option__hint",
|
|
779
|
-
title: k(a)
|
|
780
|
-
}, [o(e.$slots, "hint", g(r({
|
|
781
|
-
disabled: e.disabled,
|
|
782
|
-
selected: e.selected,
|
|
783
|
-
unselectable: e.unselectable
|
|
784
|
-
})), () => [m(D(k(a)), 1)])], 8, xt)]),
|
|
785
|
-
_: 3
|
|
786
|
-
}, 8, [
|
|
787
|
-
"class",
|
|
788
|
-
"tabindex",
|
|
789
|
-
"aria-selected",
|
|
790
|
-
"aria-disabled",
|
|
791
|
-
"focus-on-hover"
|
|
792
|
-
]));
|
|
793
|
-
}
|
|
794
|
-
});
|
|
795
|
-
function Ct() {
|
|
796
|
-
return S(Oe, void 0);
|
|
797
|
-
}
|
|
798
|
-
var wt = /* @__PURE__ */ h({
|
|
799
|
-
name: "VvIcon",
|
|
800
|
-
props: /* @__PURE__ */ u({
|
|
801
|
-
name: {},
|
|
802
|
-
color: {},
|
|
803
|
-
width: {},
|
|
804
|
-
height: {},
|
|
805
|
-
provider: {},
|
|
806
|
-
prefix: {},
|
|
807
|
-
src: {},
|
|
808
|
-
horizontalFlip: { type: Boolean },
|
|
809
|
-
verticalFlip: { type: Boolean },
|
|
810
|
-
flip: {},
|
|
811
|
-
mode: {},
|
|
812
|
-
inline: { type: Boolean },
|
|
813
|
-
rotate: {},
|
|
814
|
-
onLoad: { type: Function },
|
|
815
|
-
svg: {},
|
|
816
|
-
modifiers: {}
|
|
817
|
-
}, Te),
|
|
818
|
-
setup(e) {
|
|
819
|
-
let t = e, n = x(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = T(!0), i = Ct(), { modifiers: a } = j(t), o = gt("vv-icon", a), s = x(() => t.provider || i?.iconsProvider), c = x(() => {
|
|
820
|
-
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
821
|
-
if (N(n)) return n;
|
|
822
|
-
let r = i?.iconsCollections.find((t) => N(`@${s.value}:${t.prefix}:${e}`));
|
|
823
|
-
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
824
|
-
});
|
|
825
|
-
function l(e) {
|
|
826
|
-
return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(e, "text/html").querySelector("svg");
|
|
827
|
-
}
|
|
828
|
-
function u(e) {
|
|
829
|
-
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
830
|
-
n && r && P(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
831
|
-
body: r,
|
|
832
|
-
height: n.viewBox.baseVal.height,
|
|
833
|
-
width: n.viewBox.baseVal.width
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
return i && t.src && !N(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
837
|
-
e && u(e), r.value = !0;
|
|
838
|
-
}).catch((e) => {
|
|
839
|
-
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
840
|
-
})), t.svg && u(t.svg), (t, i) => k(r) ? (M(), O(k(de), f({
|
|
841
|
-
key: 0,
|
|
842
|
-
class: k(o)
|
|
843
|
-
}, {
|
|
844
|
-
inline: e.inline,
|
|
845
|
-
width: e.width,
|
|
846
|
-
height: e.height,
|
|
847
|
-
horizontalFlip: e.horizontalFlip,
|
|
848
|
-
verticalFlip: e.verticalFlip,
|
|
849
|
-
flip: e.flip,
|
|
850
|
-
rotate: k(n),
|
|
851
|
-
color: e.color,
|
|
852
|
-
icon: k(c)
|
|
853
|
-
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : A("v-if", !0);
|
|
854
|
-
}
|
|
855
|
-
});
|
|
856
|
-
function Tt(e, t, n) {
|
|
857
|
-
let r = t;
|
|
858
|
-
if (Array.isArray(e) && e.length) {
|
|
859
|
-
let i = e[0];
|
|
860
|
-
i() === t && (r = n);
|
|
861
|
-
}
|
|
862
|
-
if (typeof e == "function" && e() === t && (r = n), typeof e == "object") {
|
|
863
|
-
let i = e.default;
|
|
864
|
-
typeof i == "function" && (i = i()), (typeof i == "object" ? JSON.stringify(i) === JSON.stringify(t) : i === t) && (r = n);
|
|
865
|
-
}
|
|
866
|
-
return r;
|
|
867
|
-
}
|
|
868
|
-
function Et(e, t, n) {
|
|
869
|
-
let r = Ct(), i = x(() => {
|
|
870
|
-
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
871
|
-
});
|
|
872
|
-
return x(() => {
|
|
873
|
-
if (i.value === void 0) return n;
|
|
874
|
-
let e = i.value, r = t, a = n;
|
|
875
|
-
return Object.keys(r).reduce((t, n) => {
|
|
876
|
-
let i = a[n];
|
|
877
|
-
return t[n] = n in e ? Tt(r[n], i, e[n]) : i, t;
|
|
878
|
-
}, {});
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
function Dt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
882
|
-
let a;
|
|
883
|
-
return typeof n == "string" && (n = Number.parseInt(n)), x({
|
|
884
|
-
get: () => r(e?.value),
|
|
885
|
-
set: (e) => {
|
|
886
|
-
a && clearTimeout(a), a = setTimeout(() => {
|
|
887
|
-
t("update:modelValue", i(e));
|
|
888
|
-
}, n);
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
function Ot(e, t) {
|
|
893
|
-
let n = x(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = x(() => t?.value === G.before ? n.value : void 0), i = x(() => t?.value === G.after ? n.value : void 0);
|
|
894
|
-
return {
|
|
895
|
-
hasIcon: n,
|
|
896
|
-
hasIconLeft: x(() => t?.value === U.left ? n.value : void 0),
|
|
897
|
-
hasIconRight: x(() => t?.value === U.right ? n.value : void 0),
|
|
898
|
-
hasIconTop: x(() => t?.value === U.top ? n.value : void 0),
|
|
899
|
-
hasIconBottom: x(() => t?.value === U.bottom ? n.value : void 0),
|
|
900
|
-
hasIconBefore: r,
|
|
901
|
-
hasIconAfter: i
|
|
902
|
-
};
|
|
903
|
-
}
|
|
904
|
-
function kt(e, t) {
|
|
905
|
-
let { focused: n } = fe(e);
|
|
906
|
-
return p(n, (n) => {
|
|
907
|
-
t(n ? "focus" : "blur", k(e));
|
|
908
|
-
}), { focused: n };
|
|
909
|
-
}
|
|
910
|
-
function At(e, t) {
|
|
911
|
-
let n = x(() => (k(e) ?? "").length), r = x(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
912
|
-
return {
|
|
913
|
-
length: n,
|
|
914
|
-
gap: r,
|
|
915
|
-
formatted: x(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
function jt(e, t = V.local, n) {
|
|
919
|
-
let r = T();
|
|
920
|
-
n && (r.value = n);
|
|
921
|
-
let i;
|
|
922
|
-
return l(() => {
|
|
923
|
-
e && p(e, (e, n) => {
|
|
924
|
-
let a = k(t) === V.session ? sessionStorage : localStorage;
|
|
925
|
-
if (n && n !== e && a.removeItem(n), e) {
|
|
926
|
-
i = F(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
927
|
-
return;
|
|
928
|
-
}
|
|
929
|
-
i = void 0;
|
|
930
|
-
}, { immediate: !0 }), w(t) && p(t, (t, n) => {
|
|
931
|
-
if (e?.value) {
|
|
932
|
-
if (t) {
|
|
933
|
-
let n = t === V.session ? sessionStorage : localStorage;
|
|
934
|
-
i = F(e.value, i?.value ?? r.value, n);
|
|
935
|
-
}
|
|
936
|
-
n && n !== t && (n === V.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
}), p(r, (e) => {
|
|
940
|
-
i && (i.value = e);
|
|
941
|
-
}, {
|
|
942
|
-
deep: !0,
|
|
943
|
-
immediate: !0
|
|
944
|
-
}), r;
|
|
945
|
-
}
|
|
946
|
-
var Mt = ["for"], Nt = {
|
|
947
|
-
key: 0,
|
|
948
|
-
class: "vv-textarea__input-before"
|
|
949
|
-
}, Pt = { class: "vv-textarea__inner" }, Ft = ["id"], It = {
|
|
950
|
-
key: 1,
|
|
951
|
-
class: "vv-textarea__input-after"
|
|
952
|
-
}, Lt = {
|
|
953
|
-
key: 2,
|
|
954
|
-
class: "vv-textarea__limit"
|
|
955
|
-
}, Rt = { class: "flex-1" }, zt = ["title", "onClick"], Bt = /* @__PURE__ */ h({
|
|
956
|
-
name: "VvTextarea",
|
|
957
|
-
props: it,
|
|
958
|
-
emits: rt,
|
|
959
|
-
setup(e, { emit: t }) {
|
|
960
|
-
let i = e, a = t, c = te(), l = Ct(), u = Et("VvTextarea", it, i), d = T(), h = T(), _ = T(), { id: ne, icon: ie, iconPosition: S, iconRemoveSuggestion: C, labelRemoveSuggestion: oe, label: E, modelValue: le, count: N, valid: P, invalid: de, loading: fe, modifiers: pe, debounce: me, minlength: he, maxlength: ge, storageType: _e } = j(i), F = ft(ne), I = x(() => `${F.value}-hint`), ye = x(() => i.floating && at(i.placeholder) ? " " : i.placeholder), L = Dt(le, a, me?.value), { hasIconBefore: be, hasIconAfter: R } = Ot(ie, S), { hasIcon: xe } = Ot(C), { focused: z } = kt(d, a);
|
|
961
|
-
p(x(() => z.value && !i.disabled && !i.readonly), (e) => {
|
|
962
|
-
if (e && u.value.selectOnFocus && d.value && d.value.select(), e && H.value?.size) {
|
|
963
|
-
_.value?.show();
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
if (B.value && H.value) {
|
|
967
|
-
let e = i.maxSuggestions;
|
|
968
|
-
H.value.size >= e && !H.value.has(L.value) && (H.value = new Set([...H.value].slice(H.value.size - e + 1))), H.value.add(L.value);
|
|
969
|
-
}
|
|
970
|
-
}), p(ve(d), (e) => {
|
|
971
|
-
e && i.autofocus && (z.value = !0);
|
|
972
|
-
});
|
|
973
|
-
let { formatted: Se } = At(L, {
|
|
974
|
-
mode: N?.value,
|
|
975
|
-
upperLimit: Number(ge?.value),
|
|
976
|
-
lowerLimit: Number(he?.value)
|
|
977
|
-
}), Ce = x(() => !i.disabled && !i.readonly), we = x(() => Ce.value ? i.tabindex : -1), B = x(() => !at(le)), Te = x(() => {
|
|
978
|
-
if (i.invalid === !0) return !0;
|
|
979
|
-
if (i.valid === !0) return !1;
|
|
980
|
-
}), V = x(() => i.storageKey ?? (l?.experimentalFeatures.forceInputSuggestions ? i.name : void 0)), H = jt(V, _e, /* @__PURE__ */ new Set()), U = x(() => H.value ? [...H.value].filter((e) => at(L.value) || `${e}`.toLowerCase().includes(`${L.value}`.toLowerCase()) && e !== L.value).reverse() : []), W = x(() => V?.value && H.value && H.value.size > 0);
|
|
981
|
-
function G(e) {
|
|
982
|
-
L.value = e, _.value?.hide(), a("suggestion:selected", e);
|
|
983
|
-
}
|
|
984
|
-
function K(e) {
|
|
985
|
-
H.value?.delete(e), a("suggestion:removed", e);
|
|
986
|
-
}
|
|
987
|
-
let { HintSlot: Ee, hasHintLabelOrSlot: De, hasInvalidLabelOrSlot: q, hintSlotScope: J } = ct(u, c), Oe = gt("vv-textarea", pe, x(() => ({
|
|
988
|
-
valid: P.value,
|
|
989
|
-
invalid: de.value,
|
|
990
|
-
loading: fe.value,
|
|
991
|
-
disabled: i.disabled,
|
|
992
|
-
readonly: i.readonly,
|
|
993
|
-
required: i.required,
|
|
994
|
-
"icon-before": be.value !== void 0,
|
|
995
|
-
"icon-after": R.value !== void 0,
|
|
996
|
-
floating: i.floating && !at(i.label),
|
|
997
|
-
dirty: B.value,
|
|
998
|
-
focus: z.value,
|
|
999
|
-
resizable: i.resizable
|
|
1000
|
-
}))), ke = x(() => ({
|
|
1001
|
-
name: i.name,
|
|
1002
|
-
placeholder: ye.value,
|
|
1003
|
-
tabindex: we.value,
|
|
1004
|
-
disabled: i.disabled,
|
|
1005
|
-
readonly: i.readonly,
|
|
1006
|
-
required: i.required,
|
|
1007
|
-
autocomplete: i.autocomplete,
|
|
1008
|
-
minlength: i.minlength,
|
|
1009
|
-
maxlength: i.maxlength,
|
|
1010
|
-
cols: i.cols,
|
|
1011
|
-
rows: i.rows,
|
|
1012
|
-
wrap: i.wrap,
|
|
1013
|
-
spellcheck: i.spellcheck,
|
|
1014
|
-
"aria-invalid": Te.value,
|
|
1015
|
-
"aria-describedby": De.value ? I.value : void 0,
|
|
1016
|
-
"aria-errormessage": q.value ? I.value : void 0
|
|
1017
|
-
})), Y = x(() => ({
|
|
1018
|
-
valid: i.valid,
|
|
1019
|
-
invalid: i.invalid,
|
|
1020
|
-
modelValue: i.modelValue,
|
|
1021
|
-
hintLabel: i.hintLabel,
|
|
1022
|
-
maxlength: i.maxlength,
|
|
1023
|
-
minlength: i.minlength,
|
|
1024
|
-
clear: Ae
|
|
1025
|
-
}));
|
|
1026
|
-
function Ae() {
|
|
1027
|
-
L.value = void 0;
|
|
1028
|
-
}
|
|
1029
|
-
return (e, t) => (M(), y("div", { class: s(k(Oe)) }, [
|
|
1030
|
-
k(E) ? (M(), y("label", {
|
|
1031
|
-
key: 0,
|
|
1032
|
-
for: k(F),
|
|
1033
|
-
class: "vv-textarea__label"
|
|
1034
|
-
}, D(k(E)), 9, Mt)) : A("v-if", !0),
|
|
1035
|
-
v("div", {
|
|
1036
|
-
ref_key: "wrapperEl",
|
|
1037
|
-
ref: h,
|
|
1038
|
-
class: "vv-textarea__wrapper"
|
|
1039
|
-
}, [
|
|
1040
|
-
e.$slots.before ? (M(), y("div", Nt, [o(e.$slots, "before", g(r(k(Y))))])) : A("v-if", !0),
|
|
1041
|
-
v("div", Pt, [
|
|
1042
|
-
k(be) ? (M(), O(wt, f({ key: 0 }, k(be), { class: "vv-textarea__icon" }), null, 16)) : A("v-if", !0),
|
|
1043
|
-
ce(v("textarea", f({
|
|
1044
|
-
id: k(F),
|
|
1045
|
-
ref_key: "textareaEl",
|
|
1046
|
-
ref: d,
|
|
1047
|
-
"onUpdate:modelValue": t[0] ||= (e) => w(L) ? L.value = e : null
|
|
1048
|
-
}, k(ke), { onKeyup: t[1] ||= (e) => a("keyup", e) }), null, 16, Ft), [[ae, k(L)]]),
|
|
1049
|
-
k(R) ? (M(), O(wt, f({ key: 1 }, k(R), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : A("v-if", !0)
|
|
1050
|
-
]),
|
|
1051
|
-
e.$slots.after ? (M(), y("div", It, [o(e.$slots, "after", g(r(k(Y))))])) : A("v-if", !0),
|
|
1052
|
-
k(N) ? (M(), y("span", Lt, [o(e.$slots, "count", g(r(k(Y))), () => [m(D(k(Se)), 1)])])) : A("v-if", !0)
|
|
1053
|
-
], 512),
|
|
1054
|
-
n(k(Ee), {
|
|
1055
|
-
id: k(I),
|
|
1056
|
-
class: "vv-textarea__hint"
|
|
1057
|
-
}, ue({ _: 2 }, [
|
|
1058
|
-
e.$slots.hint ? {
|
|
1059
|
-
name: "hint",
|
|
1060
|
-
fn: b(() => [o(e.$slots, "hint", g(r(k(J))))]),
|
|
1061
|
-
key: "0"
|
|
1062
|
-
} : void 0,
|
|
1063
|
-
e.$slots.loading ? {
|
|
1064
|
-
name: "loading",
|
|
1065
|
-
fn: b(() => [o(e.$slots, "loading", g(r(k(J))))]),
|
|
1066
|
-
key: "1"
|
|
1067
|
-
} : void 0,
|
|
1068
|
-
e.$slots.valid ? {
|
|
1069
|
-
name: "valid",
|
|
1070
|
-
fn: b(() => [o(e.$slots, "valid", g(r(k(J))))]),
|
|
1071
|
-
key: "2"
|
|
1072
|
-
} : void 0,
|
|
1073
|
-
e.$slots.invalid ? {
|
|
1074
|
-
name: "invalid",
|
|
1075
|
-
fn: b(() => [o(e.$slots, "invalid", g(r(k(J))))]),
|
|
1076
|
-
key: "3"
|
|
1077
|
-
} : void 0
|
|
1078
|
-
]), 1032, ["id"]),
|
|
1079
|
-
k(W) ? (M(), O(vt, {
|
|
1080
|
-
key: 1,
|
|
1081
|
-
ref_key: "suggestionsDropdownEl",
|
|
1082
|
-
ref: _,
|
|
1083
|
-
reference: k(h),
|
|
1084
|
-
"autofocus-first": !1,
|
|
1085
|
-
"trigger-width": !0
|
|
1086
|
-
}, {
|
|
1087
|
-
items: b(() => [(M(!0), y(se, null, ee(k(U), (t) => (M(), O(St, {
|
|
1088
|
-
key: t,
|
|
1089
|
-
onClick: re((e) => G(t), ["stop"])
|
|
1090
|
-
}, {
|
|
1091
|
-
default: b(() => [v("div", Rt, [o(e.$slots, "suggestion", f({ ref_for: !0 }, { value: t }), () => [m(D(t), 1)])]), k(H) && k(xe) ? (M(), y("button", {
|
|
1092
|
-
key: 0,
|
|
1093
|
-
type: "button",
|
|
1094
|
-
tabindex: "-1",
|
|
1095
|
-
class: "cursor-pointer",
|
|
1096
|
-
title: k(oe),
|
|
1097
|
-
onClick: re((e) => K(t), ["stop"])
|
|
1098
|
-
}, [n(wt, f({ ref_for: !0 }, k(xe)), null, 16)], 8, zt)) : A("v-if", !0)]),
|
|
1099
|
-
_: 2
|
|
1100
|
-
}, 1032, ["onClick"]))), 128))]),
|
|
1101
|
-
_: 3
|
|
1102
|
-
}, 8, ["reference"])) : A("v-if", !0)
|
|
1103
|
-
], 2));
|
|
1104
|
-
}
|
|
1105
|
-
});
|
|
1106
|
-
//#endregion
|
|
1107
|
-
export { Bt as default };
|
|
1108
|
-
|
|
1109
|
-
//# sourceMappingURL=VvTextarea.es-eEyRRpuT.js.map
|