@8wave/ai-elements 0.103.0-beta.3 → 0.103.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/PkLazyImg-CyeqD59M.js +34 -0
- package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
- package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
- package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
- package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
- package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
- package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
- package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
- package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
- package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
- package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
- package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
- package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
- package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
- package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
- package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
- package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
- package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
- package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
- package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
- package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
- package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
- package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
- package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
- package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
- package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
- package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
- package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
- package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
- package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
- package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
- package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
- package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
- package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
- package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
- package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
- package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
- package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
- package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
- package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
- package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
- package/dist/ai-elements.es.js +1861 -1861
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
- package/dist-vue/index.js +10 -10
- package/package.json +2 -2
- package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
- package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
- package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
- package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
- package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
- package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
- package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
- package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
- package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
- package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
- package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
- package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
- package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
- package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
|
@@ -1,1166 +0,0 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, D as r, E as i, G as a, Ht as o, I as s, J as c, K as l, N as u, P as d, R as f, S as ee, Ut as p, V as m, W as te, Wt as h, Z as g, _, at as v, b as ne, bt as y, c as re, d as ie, dt as b, et as x, f as ae, g as S, h as C, j as w, k as oe, kt as T, l as se, lt as ce, mt as E, qt as D, r as le, t as ue, tt as de, v as O, w as k, x as A, xt as j, y as M, yt as N, z as P } from "./vue.runtime.esm-bundler-DF2of3lp.js";
|
|
2
|
-
import { a as F, i as fe, t as pe } from "./iconify-BGSTR7vH.js";
|
|
3
|
-
import { c as me, d as he, l as ge, m as _e, n as ve, o as I, p as L, r as R, s as ye } from "./dist-TFHdNK0W.js";
|
|
4
|
-
import { a as be, c as z, i as xe, l as Se, n as Ce, o as we, r as Te, s as Ee, t as De } from "./floating-ui.vue-Br_zOLJv.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.17_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_ec33527ad3a6f0f0071872380d65ccd9/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
|
|
6
|
-
oe(), le(), v(), T();
|
|
7
|
-
var Oe = {
|
|
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
|
-
}, ke = { prefix: "normal" }, B = /* @__PURE__ */ (function(e) {
|
|
19
|
-
return e.local = "local", e.session = "session", e;
|
|
20
|
-
})({}), V = /* @__PURE__ */ (function(e) {
|
|
21
|
-
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
22
|
-
})({}), H = /* @__PURE__ */ (function(e) {
|
|
23
|
-
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
24
|
-
})({}), U = /* @__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
|
-
})({}), W = /* @__PURE__ */ (function(e) {
|
|
27
|
-
return e.before = "before", e.after = "after", e;
|
|
28
|
-
})({}), G = /* @__PURE__ */ (function(e) {
|
|
29
|
-
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
30
|
-
})({}), K = /* @__PURE__ */ (function(e) {
|
|
31
|
-
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
32
|
-
})({}), q = /* @__PURE__ */ (function(e) {
|
|
33
|
-
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
34
|
-
})({}), J = /* @__PURE__ */ (function(e) {
|
|
35
|
-
return e.listbox = "listbox", e.menu = "menu", e;
|
|
36
|
-
})({}), Y = /* @__PURE__ */ (function(e) {
|
|
37
|
-
return e.option = "option", e.presentation = "presentation", e;
|
|
38
|
-
})({}), X = /* @__PURE__ */ Symbol.for("volver"), Ae = /* @__PURE__ */ Symbol.for("dropdownTrigger"), je = /* @__PURE__ */ Symbol.for("dropdownItem"), Z = /* @__PURE__ */ Symbol.for("dropdownAction"), Me = {
|
|
39
|
-
to: { type: [String, Object] },
|
|
40
|
-
href: String,
|
|
41
|
-
target: String,
|
|
42
|
-
rel: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: "noopener noreferrer"
|
|
45
|
-
}
|
|
46
|
-
}, Ne = {
|
|
47
|
-
valid: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
validLabel: {
|
|
52
|
-
type: [String, Array],
|
|
53
|
-
default: void 0
|
|
54
|
-
}
|
|
55
|
-
}, Pe = {
|
|
56
|
-
invalid: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !1
|
|
59
|
-
},
|
|
60
|
-
invalidLabel: {
|
|
61
|
-
type: [String, Array],
|
|
62
|
-
default: void 0
|
|
63
|
-
}
|
|
64
|
-
}, Q = {
|
|
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
|
-
} }, Fe = { required: {
|
|
77
|
-
type: Boolean,
|
|
78
|
-
default: !1
|
|
79
|
-
} }, Ie = { selected: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: !1
|
|
82
|
-
} }, Le = { active: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !1
|
|
85
|
-
} }, Re = { current: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: !1
|
|
88
|
-
} };
|
|
89
|
-
Oe.clear;
|
|
90
|
-
var ze = { pressed: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: !1
|
|
93
|
-
} }, Be = { label: {
|
|
94
|
-
type: [String, Number],
|
|
95
|
-
default: void 0
|
|
96
|
-
} }, Ve = { readonly: {
|
|
97
|
-
type: Boolean,
|
|
98
|
-
default: !1
|
|
99
|
-
} }, He = { modifiers: {
|
|
100
|
-
type: [String, Array],
|
|
101
|
-
default: void 0
|
|
102
|
-
} }, Ue = { hintLabel: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: ""
|
|
105
|
-
} }, We = {
|
|
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
|
-
}, Ge = { count: {
|
|
123
|
-
type: [Boolean, String],
|
|
124
|
-
default: !1,
|
|
125
|
-
validator: (e) => [
|
|
126
|
-
!0,
|
|
127
|
-
!1,
|
|
128
|
-
"limit",
|
|
129
|
-
"countdown"
|
|
130
|
-
].includes(e)
|
|
131
|
-
} }, Ke = { debounce: {
|
|
132
|
-
type: [Number, String],
|
|
133
|
-
default: void 0
|
|
134
|
-
} }, qe = {
|
|
135
|
-
icon: {
|
|
136
|
-
type: [String, Object],
|
|
137
|
-
default: void 0
|
|
138
|
-
},
|
|
139
|
-
iconPosition: {
|
|
140
|
-
type: String,
|
|
141
|
-
default: W.before,
|
|
142
|
-
validation: (e) => Object.values(W).includes(e)
|
|
143
|
-
}
|
|
144
|
-
}, Je = { tabindex: {
|
|
145
|
-
type: [String, Number],
|
|
146
|
-
default: 0
|
|
147
|
-
} }, Ye = { floating: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
default: !1
|
|
150
|
-
} }, Xe = { unselectable: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
default: !0
|
|
153
|
-
} }, Ze = { id: [String, Number] }, Qe = {
|
|
154
|
-
placement: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: H.bottom,
|
|
157
|
-
validator: (e) => Object.values(H).includes(e) || Object.values(U).includes(e)
|
|
158
|
-
},
|
|
159
|
-
strategy: {
|
|
160
|
-
type: String,
|
|
161
|
-
default: void 0,
|
|
162
|
-
validator: (e) => Object.values(V).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
|
-
topLayer: {
|
|
209
|
-
type: Boolean,
|
|
210
|
-
default: !1
|
|
211
|
-
}
|
|
212
|
-
}, $e = {
|
|
213
|
-
...Ze,
|
|
214
|
-
name: {
|
|
215
|
-
type: String,
|
|
216
|
-
required: !0
|
|
217
|
-
}
|
|
218
|
-
}, et = { autofocus: {
|
|
219
|
-
type: Boolean,
|
|
220
|
-
default: !1
|
|
221
|
-
} }, tt = { autocomplete: {
|
|
222
|
-
type: String,
|
|
223
|
-
default: "off"
|
|
224
|
-
} }, nt = {
|
|
225
|
-
...$e,
|
|
226
|
-
...et,
|
|
227
|
-
...tt,
|
|
228
|
-
...Je,
|
|
229
|
-
...$,
|
|
230
|
-
...Ve,
|
|
231
|
-
...Ne,
|
|
232
|
-
...Pe,
|
|
233
|
-
...Ue,
|
|
234
|
-
...Q,
|
|
235
|
-
...He,
|
|
236
|
-
...Ge,
|
|
237
|
-
...Ke,
|
|
238
|
-
...qe,
|
|
239
|
-
...Ye,
|
|
240
|
-
...Be,
|
|
241
|
-
minlength: {
|
|
242
|
-
type: [String, Number],
|
|
243
|
-
default: void 0
|
|
244
|
-
},
|
|
245
|
-
maxlength: {
|
|
246
|
-
type: [String, Number],
|
|
247
|
-
default: void 0
|
|
248
|
-
},
|
|
249
|
-
placeholder: {
|
|
250
|
-
type: String,
|
|
251
|
-
default: void 0
|
|
252
|
-
},
|
|
253
|
-
...Fe
|
|
254
|
-
};
|
|
255
|
-
({
|
|
256
|
-
...$e,
|
|
257
|
-
...Je,
|
|
258
|
-
...Ne,
|
|
259
|
-
...Pe,
|
|
260
|
-
...Ue,
|
|
261
|
-
...$,
|
|
262
|
-
...Ve,
|
|
263
|
-
...He,
|
|
264
|
-
...Be,
|
|
265
|
-
...Q
|
|
266
|
-
}), {
|
|
267
|
-
...Ne,
|
|
268
|
-
...Pe,
|
|
269
|
-
...We,
|
|
270
|
-
...Ue,
|
|
271
|
-
...$,
|
|
272
|
-
...Ve,
|
|
273
|
-
...He,
|
|
274
|
-
...Be,
|
|
275
|
-
...Q,
|
|
276
|
-
...Fe
|
|
277
|
-
}, {
|
|
278
|
-
...$,
|
|
279
|
-
...Be,
|
|
280
|
-
...ze,
|
|
281
|
-
...Le,
|
|
282
|
-
...Re,
|
|
283
|
-
...Me
|
|
284
|
-
}, G.button, K.button;
|
|
285
|
-
var rt = {
|
|
286
|
-
storageType: {
|
|
287
|
-
type: String,
|
|
288
|
-
default: B.local,
|
|
289
|
-
validator: (e) => Object.values(B).includes(e)
|
|
290
|
-
},
|
|
291
|
-
storageKey: String
|
|
292
|
-
}, it = {
|
|
293
|
-
hard: "hard",
|
|
294
|
-
soft: "soft"
|
|
295
|
-
}, at = {
|
|
296
|
-
true: !0,
|
|
297
|
-
false: !1,
|
|
298
|
-
default: "default"
|
|
299
|
-
}, ot = [
|
|
300
|
-
"update:modelValue",
|
|
301
|
-
"focus",
|
|
302
|
-
"blur",
|
|
303
|
-
"keyup",
|
|
304
|
-
"suggestion:selected",
|
|
305
|
-
"suggestion:removed"
|
|
306
|
-
], st = {
|
|
307
|
-
...nt,
|
|
308
|
-
...rt,
|
|
309
|
-
modelValue: String,
|
|
310
|
-
cols: {
|
|
311
|
-
type: [String, Number],
|
|
312
|
-
default: 20
|
|
313
|
-
},
|
|
314
|
-
rows: {
|
|
315
|
-
type: [String, Number],
|
|
316
|
-
default: 2
|
|
317
|
-
},
|
|
318
|
-
wrap: {
|
|
319
|
-
type: String,
|
|
320
|
-
default: it.soft
|
|
321
|
-
},
|
|
322
|
-
spellcheck: {
|
|
323
|
-
type: [Boolean, String],
|
|
324
|
-
default: at.default
|
|
325
|
-
},
|
|
326
|
-
iconRemoveSuggestion: {
|
|
327
|
-
type: [String, Object],
|
|
328
|
-
default: Oe.remove
|
|
329
|
-
},
|
|
330
|
-
labelRemoveSuggestion: {
|
|
331
|
-
type: String,
|
|
332
|
-
default: "Remove suggestion"
|
|
333
|
-
},
|
|
334
|
-
maxSuggestions: {
|
|
335
|
-
type: Number,
|
|
336
|
-
default: 5
|
|
337
|
-
},
|
|
338
|
-
selectOnFocus: {
|
|
339
|
-
type: Boolean,
|
|
340
|
-
default: !1
|
|
341
|
-
},
|
|
342
|
-
resizable: Boolean,
|
|
343
|
-
topLayer: Qe.topLayer
|
|
344
|
-
};
|
|
345
|
-
function ct(e) {
|
|
346
|
-
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(j(e));
|
|
347
|
-
}
|
|
348
|
-
function lt(e) {
|
|
349
|
-
return typeof e == "string";
|
|
350
|
-
}
|
|
351
|
-
function ut(e) {
|
|
352
|
-
return Array.isArray(e) ? e.filter((e) => lt(e)).join(" ") : e;
|
|
353
|
-
}
|
|
354
|
-
function dt(e, t) {
|
|
355
|
-
let n = C(() => ce(e) ? e.value : e), i = C(() => ut(n.value.invalidLabel)), a = C(() => ut(n.value.validLabel)), o = C(() => n.value.loadingLabel), s = C(() => n.value.hintLabel), c = C(() => !!(n.value.loading && (t.loading || o.value))), l = C(() => !c.value && !!(n.value.invalid && (t.invalid || i.value))), u = C(() => !c.value && !l.value && !!(n.value.valid && (t.valid || a.value))), d = C(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), f = C(() => l.value || u.value || c.value || d.value);
|
|
356
|
-
return {
|
|
357
|
-
hasInvalidLabelOrSlot: l,
|
|
358
|
-
hasHintLabelOrSlot: d,
|
|
359
|
-
hasValidLabelOrSlot: u,
|
|
360
|
-
hasLoadingLabelOrSlot: c,
|
|
361
|
-
hintSlotScope: C(() => ({
|
|
362
|
-
modelValue: n.value.modelValue,
|
|
363
|
-
valid: n.value.valid,
|
|
364
|
-
invalid: n.value.invalid,
|
|
365
|
-
loading: n.value.loading
|
|
366
|
-
})),
|
|
367
|
-
HintSlot: k({
|
|
368
|
-
name: "HintSlot",
|
|
369
|
-
props: { tag: {
|
|
370
|
-
type: String,
|
|
371
|
-
default: "small"
|
|
372
|
-
} },
|
|
373
|
-
setup() {
|
|
374
|
-
return {
|
|
375
|
-
isVisible: f,
|
|
376
|
-
invalidLabel: i,
|
|
377
|
-
validLabel: a,
|
|
378
|
-
loadingLabel: o,
|
|
379
|
-
hintLabel: s,
|
|
380
|
-
hasInvalidLabelOrSlot: l,
|
|
381
|
-
hasValidLabelOrSlot: u,
|
|
382
|
-
hasLoadingLabelOrSlot: c,
|
|
383
|
-
hasHintLabelOrSlot: d
|
|
384
|
-
};
|
|
385
|
-
},
|
|
386
|
-
render() {
|
|
387
|
-
if (this.isVisible) {
|
|
388
|
-
let e;
|
|
389
|
-
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? r(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? r(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? r(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : r(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
390
|
-
}
|
|
391
|
-
return null;
|
|
392
|
-
}
|
|
393
|
-
})
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
var ft = {
|
|
397
|
-
...Ze,
|
|
398
|
-
...Qe,
|
|
399
|
-
...He,
|
|
400
|
-
modelValue: {
|
|
401
|
-
type: Boolean,
|
|
402
|
-
default: void 0
|
|
403
|
-
},
|
|
404
|
-
reference: {
|
|
405
|
-
type: Object,
|
|
406
|
-
default: null
|
|
407
|
-
},
|
|
408
|
-
role: {
|
|
409
|
-
type: String,
|
|
410
|
-
default: J.menu,
|
|
411
|
-
validator: (e) => Object.values(J).includes(e)
|
|
412
|
-
}
|
|
413
|
-
}, pt = { focusOnHover: {
|
|
414
|
-
type: Boolean,
|
|
415
|
-
default: !1
|
|
416
|
-
} }, mt = {
|
|
417
|
-
...$,
|
|
418
|
-
...Ie,
|
|
419
|
-
...Xe,
|
|
420
|
-
...He,
|
|
421
|
-
deselectHintLabel: { type: String },
|
|
422
|
-
selectHintLabel: { type: String },
|
|
423
|
-
selectedHintLabel: { type: String },
|
|
424
|
-
focusOnHover: {
|
|
425
|
-
type: Boolean,
|
|
426
|
-
default: !1
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
function ht(e) {
|
|
430
|
-
return C(() => String(e?.value || l()));
|
|
431
|
-
}
|
|
432
|
-
function gt(e, t) {
|
|
433
|
-
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = C(() => n && y(t)), i = C(() => r.value ? "manual" : void 0);
|
|
434
|
-
function a() {
|
|
435
|
-
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
436
|
-
}
|
|
437
|
-
function o() {
|
|
438
|
-
if (!(!r.value || !e.value?.isConnected || a())) try {
|
|
439
|
-
e.value.showPopover();
|
|
440
|
-
} catch {}
|
|
441
|
-
}
|
|
442
|
-
function s() {
|
|
443
|
-
if (!(!e.value || !a())) try {
|
|
444
|
-
e.value.hidePopover();
|
|
445
|
-
} catch {}
|
|
446
|
-
}
|
|
447
|
-
return {
|
|
448
|
-
isTopLayer: r,
|
|
449
|
-
popover: i,
|
|
450
|
-
show: o,
|
|
451
|
-
hide: s
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
function _t({ reference: e, id: t, expanded: n, aria: i }) {
|
|
455
|
-
let a = Se();
|
|
456
|
-
return {
|
|
457
|
-
bus: a,
|
|
458
|
-
component: k({
|
|
459
|
-
name: "VvDropdownTriggerProvider",
|
|
460
|
-
setup() {
|
|
461
|
-
P(Ae, {
|
|
462
|
-
reference: e,
|
|
463
|
-
id: t,
|
|
464
|
-
expanded: n,
|
|
465
|
-
aria: i,
|
|
466
|
-
bus: a
|
|
467
|
-
});
|
|
468
|
-
},
|
|
469
|
-
render() {
|
|
470
|
-
return r(ae, {}, this.$slots.default?.());
|
|
471
|
-
}
|
|
472
|
-
})
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
function vt({ role: e, ...t }) {
|
|
476
|
-
let n = C(() => e.value === J.listbox ? Y.option : Y.presentation);
|
|
477
|
-
return P(je, {
|
|
478
|
-
role: n,
|
|
479
|
-
...t
|
|
480
|
-
}), { itemRole: n };
|
|
481
|
-
}
|
|
482
|
-
function yt({ expanded: e }) {
|
|
483
|
-
P(Z, {
|
|
484
|
-
role: E(q.menuitem),
|
|
485
|
-
expanded: e
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
function bt(e, t, n) {
|
|
489
|
-
return C(() => {
|
|
490
|
-
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
491
|
-
return i && Array.isArray(i) && i.forEach((t) => {
|
|
492
|
-
t && (r[`${e}--${t}`] = !0);
|
|
493
|
-
}), n && Object.keys(n.value).forEach((t) => {
|
|
494
|
-
r[`${e}--${t}`] = j(n.value[t]);
|
|
495
|
-
}), r;
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
var xt = ["popover"], St = [
|
|
499
|
-
"id",
|
|
500
|
-
"tabindex",
|
|
501
|
-
"role",
|
|
502
|
-
"aria-labelledby"
|
|
503
|
-
], Ct = /* @__PURE__ */ k({
|
|
504
|
-
name: "VvDropdown",
|
|
505
|
-
inheritAttrs: !1,
|
|
506
|
-
props: ft,
|
|
507
|
-
emits: [
|
|
508
|
-
"update:modelValue",
|
|
509
|
-
"beforeEnter",
|
|
510
|
-
"afterLeave",
|
|
511
|
-
"beforeExpand",
|
|
512
|
-
"beforeCollapse",
|
|
513
|
-
"afterExpand",
|
|
514
|
-
"afterCollapse",
|
|
515
|
-
"before-enter",
|
|
516
|
-
"after-leave",
|
|
517
|
-
"enter",
|
|
518
|
-
"afterEnter",
|
|
519
|
-
"enterCancelled",
|
|
520
|
-
"beforeLeave",
|
|
521
|
-
"leave",
|
|
522
|
-
"leaveCancelled"
|
|
523
|
-
],
|
|
524
|
-
setup(t, { expose: n, emit: r }) {
|
|
525
|
-
let c = t, l = r, { id: _ } = N(c), v = ht(_), ne = a(), y = E("auto"), re = E("auto"), ie = E(), b = E(), w = E(), oe = E(), T = C({
|
|
526
|
-
get: () => c.reference ?? ie.value,
|
|
527
|
-
set: (e) => {
|
|
528
|
-
ie.value = e;
|
|
529
|
-
}
|
|
530
|
-
}), { isTopLayer: ce, popover: D, show: le, hide: k } = gt(b, () => c.topLayer), A = C(() => ce.value ? V.fixed : c.strategy), P = E(!1);
|
|
531
|
-
s(() => {
|
|
532
|
-
he(b.value, () => {
|
|
533
|
-
P.value = globalThis.getComputedStyle(b.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
534
|
-
}, {
|
|
535
|
-
attributeFilter: ["style"],
|
|
536
|
-
window: globalThis.window
|
|
537
|
-
});
|
|
538
|
-
});
|
|
539
|
-
function F(e, t, n) {
|
|
540
|
-
return typeof e == "boolean" ? t() : n(e);
|
|
541
|
-
}
|
|
542
|
-
let fe = C(() => {
|
|
543
|
-
let e = [];
|
|
544
|
-
if (c.autoPlacement ? e.push(F(c.autoPlacement, () => Te(), (e) => Te(e))) : c.flip && e.push(F(c.flip, () => be({ fallbackStrategy: "initialPlacement" }), (e) => be(e))), c.shift && e.push(F(c.shift, () => Ee(), (e) => Ee(e))), c.size) {
|
|
545
|
-
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
546
|
-
y.value = `${e}px`, re.value = `${t}px`;
|
|
547
|
-
};
|
|
548
|
-
e.push(F(c.size, () => z({ apply: t }), (e) => z({
|
|
549
|
-
...e,
|
|
550
|
-
apply: t
|
|
551
|
-
})));
|
|
552
|
-
}
|
|
553
|
-
return c.offset && e.push(["string", "number"].includes(typeof c.offset) ? we(Number(c.offset)) : we(c.offset)), c.arrow && e.push(De({ element: w })), e;
|
|
554
|
-
}), { x: pe, y: me, middlewareData: L, placement: ye, strategy: Se } = Ce(T, b, {
|
|
555
|
-
whileElementsMounted: (...e) => xe(...e, { animationFrame: A.value === V.fixed }),
|
|
556
|
-
placement: C(() => c.placement),
|
|
557
|
-
strategy: A,
|
|
558
|
-
middleware: fe
|
|
559
|
-
}), Oe = C(() => {
|
|
560
|
-
if (P.value) return;
|
|
561
|
-
let e = c.triggerWidth && T.value ? `${T.value?.offsetWidth}px` : void 0;
|
|
562
|
-
return {
|
|
563
|
-
position: Se.value,
|
|
564
|
-
top: `${me.value ?? 0}px`,
|
|
565
|
-
left: `${pe.value ?? 0}px`,
|
|
566
|
-
maxWidth: e ? void 0 : y.value,
|
|
567
|
-
maxHeight: re.value,
|
|
568
|
-
width: e
|
|
569
|
-
};
|
|
570
|
-
}), ke = C(() => ye.value.split("-")[0]), B = C(() => {
|
|
571
|
-
if (P.value) return;
|
|
572
|
-
let e = {
|
|
573
|
-
[H.top]: H.bottom,
|
|
574
|
-
[H.right]: H.left,
|
|
575
|
-
[H.bottom]: H.top,
|
|
576
|
-
[H.left]: H.right
|
|
577
|
-
}[ke.value];
|
|
578
|
-
return {
|
|
579
|
-
left: L.value.arrow?.x === void 0 ? void 0 : `${L.value.arrow?.x}px`,
|
|
580
|
-
top: L.value.arrow?.y === void 0 ? void 0 : `${L.value.arrow?.y}px`,
|
|
581
|
-
[e]: `${-(w.value?.offsetWidth ?? 0) / 2}px`
|
|
582
|
-
};
|
|
583
|
-
}), U = _e(c, "modelValue", l), W = E(!1), G = C({
|
|
584
|
-
get: () => U.value ?? W.value,
|
|
585
|
-
set: (e) => {
|
|
586
|
-
if (U.value === void 0) {
|
|
587
|
-
W.value = e;
|
|
588
|
-
return;
|
|
589
|
-
}
|
|
590
|
-
U.value = e;
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
e(() => {
|
|
594
|
-
G.value && le();
|
|
595
|
-
});
|
|
596
|
-
function K() {
|
|
597
|
-
G.value = !0;
|
|
598
|
-
}
|
|
599
|
-
function q() {
|
|
600
|
-
G.value = !1;
|
|
601
|
-
}
|
|
602
|
-
function J() {
|
|
603
|
-
G.value = !G.value;
|
|
604
|
-
}
|
|
605
|
-
function Y(e) {
|
|
606
|
-
T.value = e;
|
|
607
|
-
}
|
|
608
|
-
ve(b, () => {
|
|
609
|
-
!c.keepOpen && G.value && (G.value = !1);
|
|
610
|
-
}, { ignore: [T] });
|
|
611
|
-
let X = C(() => T.value?.getAttribute?.("id") ?? void 0), Ae = C(() => ({
|
|
612
|
-
"aria-controls": v.value,
|
|
613
|
-
"aria-haspopup": !0,
|
|
614
|
-
"aria-expanded": G.value
|
|
615
|
-
})), { component: je, bus: Z } = _t({
|
|
616
|
-
reference: T,
|
|
617
|
-
id: v,
|
|
618
|
-
expanded: G,
|
|
619
|
-
aria: Ae
|
|
620
|
-
});
|
|
621
|
-
Z.on("click", J);
|
|
622
|
-
let { role: Me, modifiers: Ne } = N(c), Pe = bt("vv-dropdown", Ne, C(() => ({ arrow: c.arrow }))), { focused: Q } = ge(b);
|
|
623
|
-
function $(e) {
|
|
624
|
-
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
625
|
-
}
|
|
626
|
-
function Fe() {
|
|
627
|
-
d(() => {
|
|
628
|
-
let e = $(b.value);
|
|
629
|
-
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
function Ie() {
|
|
633
|
-
d(() => {
|
|
634
|
-
let e = $(oe.value);
|
|
635
|
-
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
function Le() {
|
|
639
|
-
d(() => {
|
|
640
|
-
if (Q.value) {
|
|
641
|
-
let e = $(b.value);
|
|
642
|
-
if (e.length === 0 || !document.activeElement) return;
|
|
643
|
-
let t = e.indexOf(document.activeElement);
|
|
644
|
-
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
645
|
-
}
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
function Re() {
|
|
649
|
-
d(() => {
|
|
650
|
-
if (Q.value) {
|
|
651
|
-
let e = $(b.value);
|
|
652
|
-
if (e.length === 0 || !document.activeElement) return;
|
|
653
|
-
let t = e.indexOf(document.activeElement);
|
|
654
|
-
if (t > 0) {
|
|
655
|
-
e[t - 1].focus({ preventScroll: !0 });
|
|
656
|
-
return;
|
|
657
|
-
}
|
|
658
|
-
e.at(-1)?.focus({ preventScroll: !0 });
|
|
659
|
-
}
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
g(G, (e) => {
|
|
663
|
-
e && c.autofocusFirst && Fe();
|
|
664
|
-
}), n({
|
|
665
|
-
toggle: J,
|
|
666
|
-
show: K,
|
|
667
|
-
hide: q,
|
|
668
|
-
init: Y,
|
|
669
|
-
focusFirst: Fe,
|
|
670
|
-
focusFirstListElement: Ie,
|
|
671
|
-
focusNext: Le,
|
|
672
|
-
focusPrev: Re,
|
|
673
|
-
customPosition: P
|
|
674
|
-
});
|
|
675
|
-
let { itemRole: ze } = vt({
|
|
676
|
-
role: Me,
|
|
677
|
-
expanded: G,
|
|
678
|
-
focused: Q,
|
|
679
|
-
hovered: I(b)
|
|
680
|
-
});
|
|
681
|
-
R("Escape", (e) => {
|
|
682
|
-
G.value && (e.preventDefault(), q());
|
|
683
|
-
}), R("ArrowDown", (e) => {
|
|
684
|
-
G.value && Q.value && (e.preventDefault(), Le());
|
|
685
|
-
}), R("ArrowUp", (e) => {
|
|
686
|
-
G.value && Q.value && (e.preventDefault(), Re());
|
|
687
|
-
}), R([" ", "Enter"], (e) => {
|
|
688
|
-
let t = e.target;
|
|
689
|
-
G.value && Q.value && t && t?.click();
|
|
690
|
-
});
|
|
691
|
-
let Be = {
|
|
692
|
-
"before-enter": () => {
|
|
693
|
-
l(G.value ? "beforeExpand" : "beforeCollapse"), l("beforeEnter");
|
|
694
|
-
},
|
|
695
|
-
"after-leave": () => {
|
|
696
|
-
G.value || k(), l(G.value ? "afterExpand" : "afterCollapse"), l("afterLeave");
|
|
697
|
-
},
|
|
698
|
-
enter: () => {
|
|
699
|
-
l("enter");
|
|
700
|
-
},
|
|
701
|
-
"after-enter": () => {
|
|
702
|
-
l("afterEnter");
|
|
703
|
-
},
|
|
704
|
-
"enter-cancelled": () => {
|
|
705
|
-
l("enterCancelled");
|
|
706
|
-
},
|
|
707
|
-
"before-leave": () => {
|
|
708
|
-
l("beforeLeave");
|
|
709
|
-
},
|
|
710
|
-
leave: () => {
|
|
711
|
-
l("leave");
|
|
712
|
-
},
|
|
713
|
-
"leave-cancelled": () => {
|
|
714
|
-
l("leaveCancelled");
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
return (e, t) => (f(), M(ae, null, [ee(j(je), null, {
|
|
718
|
-
default: x(() => [m(e.$slots, "default", p(i({
|
|
719
|
-
init: Y,
|
|
720
|
-
show: K,
|
|
721
|
-
hide: q,
|
|
722
|
-
toggle: J,
|
|
723
|
-
expanded: j(G),
|
|
724
|
-
aria: j(Ae)
|
|
725
|
-
})))]),
|
|
726
|
-
_: 3
|
|
727
|
-
}), ee(ue, u({ name: e.transitionName }, te(Be), { persisted: "" }), {
|
|
728
|
-
default: x(() => [de(S("div", {
|
|
729
|
-
ref_key: "floatingEl",
|
|
730
|
-
ref: b,
|
|
731
|
-
popover: j(D),
|
|
732
|
-
style: h(j(Oe)),
|
|
733
|
-
class: o(j(Pe))
|
|
734
|
-
}, [
|
|
735
|
-
c.arrow ? (f(), M("div", {
|
|
736
|
-
key: 0,
|
|
737
|
-
ref_key: "arrowEl",
|
|
738
|
-
ref: w,
|
|
739
|
-
style: h(j(B)),
|
|
740
|
-
class: "vv-dropdown__arrow"
|
|
741
|
-
}, null, 4)) : O("v-if", !0),
|
|
742
|
-
m(e.$slots, "before", p(i({
|
|
743
|
-
show: K,
|
|
744
|
-
hide: q,
|
|
745
|
-
toggle: J,
|
|
746
|
-
expanded: j(G)
|
|
747
|
-
}))),
|
|
748
|
-
S("div", u(j(ne), {
|
|
749
|
-
id: j(v),
|
|
750
|
-
ref_key: "listEl",
|
|
751
|
-
ref: oe,
|
|
752
|
-
tabindex: j(G) ? void 0 : -1,
|
|
753
|
-
role: j(Me),
|
|
754
|
-
"aria-labelledby": j(X),
|
|
755
|
-
class: "vv-dropdown__list"
|
|
756
|
-
}), [m(e.$slots, "items", p(i({
|
|
757
|
-
show: K,
|
|
758
|
-
hide: q,
|
|
759
|
-
toggle: J,
|
|
760
|
-
expanded: j(G),
|
|
761
|
-
role: j(ze)
|
|
762
|
-
})))], 16, St),
|
|
763
|
-
m(e.$slots, "after", p(i({
|
|
764
|
-
show: K,
|
|
765
|
-
hide: q,
|
|
766
|
-
toggle: J,
|
|
767
|
-
expanded: j(G)
|
|
768
|
-
})))
|
|
769
|
-
], 14, xt), [[se, j(G)]])]),
|
|
770
|
-
_: 3
|
|
771
|
-
}, 16, ["name"])], 64));
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
function wt() {
|
|
775
|
-
return t(je, {});
|
|
776
|
-
}
|
|
777
|
-
var Tt = /* @__PURE__ */ k({
|
|
778
|
-
name: "VvDropdownItem",
|
|
779
|
-
props: pt,
|
|
780
|
-
setup(e) {
|
|
781
|
-
let t = e, { role: n, expanded: r } = wt(), i = E(null);
|
|
782
|
-
yt({ expanded: r });
|
|
783
|
-
let a = I(i), { focused: o } = me(i), { focused: s } = ge(i);
|
|
784
|
-
return g(a, (e) => {
|
|
785
|
-
e && t.focusOnHover && (o.value = !0);
|
|
786
|
-
}), (e, t) => (f(), M("div", u({ role: j(n) }, {
|
|
787
|
-
ref_key: "element",
|
|
788
|
-
ref: i,
|
|
789
|
-
class: ["vv-dropdown__item", { "focus-visible": j(o) || j(s) }]
|
|
790
|
-
}), [m(e.$slots, "default")], 16));
|
|
791
|
-
}
|
|
792
|
-
}), Et = ["title"], Dt = /* @__PURE__ */ k({
|
|
793
|
-
name: "VvDropdownOption",
|
|
794
|
-
props: mt,
|
|
795
|
-
setup(e) {
|
|
796
|
-
let t = e, { modifiers: n } = N(t), r = bt("vv-dropdown-option", n, C(() => ({
|
|
797
|
-
disabled: t.disabled,
|
|
798
|
-
selected: t.selected,
|
|
799
|
-
unselectable: t.unselectable && t.selected
|
|
800
|
-
}))), a = C(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
801
|
-
return (e, t) => (f(), _(Tt, {
|
|
802
|
-
class: o(j(r)),
|
|
803
|
-
tabindex: e.disabled ? -1 : 0,
|
|
804
|
-
"aria-selected": e.selected,
|
|
805
|
-
"aria-disabled": e.disabled,
|
|
806
|
-
"focus-on-hover": e.focusOnHover
|
|
807
|
-
}, {
|
|
808
|
-
default: x(() => [m(e.$slots, "default"), S("span", {
|
|
809
|
-
class: "vv-dropdown-option__hint",
|
|
810
|
-
title: j(a)
|
|
811
|
-
}, [m(e.$slots, "hint", p(i({
|
|
812
|
-
disabled: e.disabled,
|
|
813
|
-
selected: e.selected,
|
|
814
|
-
unselectable: e.unselectable
|
|
815
|
-
})), () => [A(D(j(a)), 1)])], 8, Et)]),
|
|
816
|
-
_: 3
|
|
817
|
-
}, 8, [
|
|
818
|
-
"class",
|
|
819
|
-
"tabindex",
|
|
820
|
-
"aria-selected",
|
|
821
|
-
"aria-disabled",
|
|
822
|
-
"focus-on-hover"
|
|
823
|
-
]));
|
|
824
|
-
}
|
|
825
|
-
});
|
|
826
|
-
function Ot() {
|
|
827
|
-
return t(X, void 0);
|
|
828
|
-
}
|
|
829
|
-
var kt = /* @__PURE__ */ k({
|
|
830
|
-
name: "VvIcon",
|
|
831
|
-
props: /* @__PURE__ */ w({
|
|
832
|
-
name: {},
|
|
833
|
-
color: {},
|
|
834
|
-
width: {},
|
|
835
|
-
height: {},
|
|
836
|
-
provider: {},
|
|
837
|
-
prefix: {},
|
|
838
|
-
src: {},
|
|
839
|
-
horizontalFlip: { type: Boolean },
|
|
840
|
-
verticalFlip: { type: Boolean },
|
|
841
|
-
flip: {},
|
|
842
|
-
mode: {},
|
|
843
|
-
inline: { type: Boolean },
|
|
844
|
-
rotate: {},
|
|
845
|
-
onLoad: { type: Function },
|
|
846
|
-
svg: {},
|
|
847
|
-
modifiers: {}
|
|
848
|
-
}, ke),
|
|
849
|
-
setup(e) {
|
|
850
|
-
let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = E(!0), i = Ot(), { modifiers: a } = N(t), o = bt("vv-icon", a), s = C(() => t.provider || i?.iconsProvider), c = C(() => {
|
|
851
|
-
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
852
|
-
if (F(n)) return n;
|
|
853
|
-
let r = i?.iconsCollections.find((t) => {
|
|
854
|
-
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
855
|
-
return F(n);
|
|
856
|
-
});
|
|
857
|
-
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
858
|
-
});
|
|
859
|
-
function l(e) {
|
|
860
|
-
return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(e, "text/html").querySelector("svg");
|
|
861
|
-
}
|
|
862
|
-
function d(e) {
|
|
863
|
-
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
864
|
-
n && r && fe(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
865
|
-
body: r,
|
|
866
|
-
height: n.viewBox.baseVal.height,
|
|
867
|
-
width: n.viewBox.baseVal.width
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
return i && t.src && !F(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
871
|
-
e && d(e), r.value = !0;
|
|
872
|
-
}).catch((e) => {
|
|
873
|
-
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
874
|
-
})), t.svg && d(t.svg), (t, i) => j(r) ? (f(), _(j(pe), u({
|
|
875
|
-
key: 0,
|
|
876
|
-
class: j(o)
|
|
877
|
-
}, {
|
|
878
|
-
inline: e.inline,
|
|
879
|
-
width: e.width,
|
|
880
|
-
height: e.height,
|
|
881
|
-
horizontalFlip: e.horizontalFlip,
|
|
882
|
-
verticalFlip: e.verticalFlip,
|
|
883
|
-
flip: e.flip,
|
|
884
|
-
rotate: j(n),
|
|
885
|
-
color: e.color,
|
|
886
|
-
icon: j(c)
|
|
887
|
-
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : O("v-if", !0);
|
|
888
|
-
}
|
|
889
|
-
});
|
|
890
|
-
function At(e, t, n) {
|
|
891
|
-
let r = t;
|
|
892
|
-
if (Array.isArray(e) && e.length) {
|
|
893
|
-
let i = e[0];
|
|
894
|
-
i() === t && (r = n);
|
|
895
|
-
}
|
|
896
|
-
if (typeof e == "function" && e() === t && (r = n), typeof e == "object") {
|
|
897
|
-
let i = e.default;
|
|
898
|
-
typeof i == "function" && (i = i()), (typeof i == "object" ? JSON.stringify(i) === JSON.stringify(t) : i === t) && (r = n);
|
|
899
|
-
}
|
|
900
|
-
return r;
|
|
901
|
-
}
|
|
902
|
-
function jt(e, t, n) {
|
|
903
|
-
let r = Ot(), i = C(() => {
|
|
904
|
-
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
905
|
-
});
|
|
906
|
-
return C(() => {
|
|
907
|
-
if (i.value === void 0) return n;
|
|
908
|
-
let e = i.value, r = t, a = n;
|
|
909
|
-
return Object.keys(r).reduce((t, n) => {
|
|
910
|
-
let i = a[n];
|
|
911
|
-
return t[n] = n in e ? At(r[n], i, e[n]) : i, t;
|
|
912
|
-
}, {});
|
|
913
|
-
});
|
|
914
|
-
}
|
|
915
|
-
function Mt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
916
|
-
let a, o, s = C(() => {
|
|
917
|
-
let e = y(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
918
|
-
return Number.isNaN(t) ? 0 : t;
|
|
919
|
-
});
|
|
920
|
-
function c() {
|
|
921
|
-
a &&= (clearTimeout(a), void 0), o = void 0;
|
|
922
|
-
}
|
|
923
|
-
function l() {
|
|
924
|
-
if (!o) return;
|
|
925
|
-
let e = i(o.value);
|
|
926
|
-
return c(), t("update:modelValue", e), e;
|
|
927
|
-
}
|
|
928
|
-
return b(c), {
|
|
929
|
-
model: C({
|
|
930
|
-
get: () => r(e?.value),
|
|
931
|
-
set: (e) => {
|
|
932
|
-
if (s.value <= 0) {
|
|
933
|
-
c(), t("update:modelValue", i(e));
|
|
934
|
-
return;
|
|
935
|
-
}
|
|
936
|
-
o = { value: e }, a && clearTimeout(a), a = setTimeout(l, s.value);
|
|
937
|
-
}
|
|
938
|
-
}),
|
|
939
|
-
flush: l,
|
|
940
|
-
cancel: c
|
|
941
|
-
};
|
|
942
|
-
}
|
|
943
|
-
function Nt(e, t) {
|
|
944
|
-
let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === W.before ? n.value : void 0), i = C(() => t?.value === W.after ? n.value : void 0);
|
|
945
|
-
return {
|
|
946
|
-
hasIcon: n,
|
|
947
|
-
hasIconLeft: C(() => t?.value === H.left ? n.value : void 0),
|
|
948
|
-
hasIconRight: C(() => t?.value === H.right ? n.value : void 0),
|
|
949
|
-
hasIconTop: C(() => t?.value === H.top ? n.value : void 0),
|
|
950
|
-
hasIconBottom: C(() => t?.value === H.bottom ? n.value : void 0),
|
|
951
|
-
hasIconBefore: r,
|
|
952
|
-
hasIconAfter: i
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
function Pt(e, t) {
|
|
956
|
-
let { focused: n } = me(e);
|
|
957
|
-
return g(n, (n) => {
|
|
958
|
-
t(n ? "focus" : "blur", j(e));
|
|
959
|
-
}), { focused: n };
|
|
960
|
-
}
|
|
961
|
-
function Ft(e, t) {
|
|
962
|
-
let n = C(() => (j(e) ?? "").length), r = C(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
963
|
-
return {
|
|
964
|
-
length: n,
|
|
965
|
-
gap: r,
|
|
966
|
-
formatted: C(() => 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)
|
|
967
|
-
};
|
|
968
|
-
}
|
|
969
|
-
function It(e, t = B.local, n) {
|
|
970
|
-
let r = E();
|
|
971
|
-
n && (r.value = n);
|
|
972
|
-
let i;
|
|
973
|
-
return s(() => {
|
|
974
|
-
e && g(e, (e, n) => {
|
|
975
|
-
let a = j(t) === B.session ? sessionStorage : localStorage;
|
|
976
|
-
if (n && n !== e && a.removeItem(n), e) {
|
|
977
|
-
i = L(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
978
|
-
return;
|
|
979
|
-
}
|
|
980
|
-
i = void 0;
|
|
981
|
-
}, { immediate: !0 }), ce(t) && g(t, (t, n) => {
|
|
982
|
-
if (e?.value) {
|
|
983
|
-
if (t) {
|
|
984
|
-
let n = t === B.session ? sessionStorage : localStorage;
|
|
985
|
-
i = L(e.value, i?.value ?? r.value, n);
|
|
986
|
-
}
|
|
987
|
-
n && n !== t && (n === B.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
988
|
-
}
|
|
989
|
-
});
|
|
990
|
-
}), g(r, (e) => {
|
|
991
|
-
i && (i.value = e);
|
|
992
|
-
}, {
|
|
993
|
-
deep: !0,
|
|
994
|
-
immediate: !0
|
|
995
|
-
}), r;
|
|
996
|
-
}
|
|
997
|
-
var Lt = ["for"], Rt = {
|
|
998
|
-
key: 0,
|
|
999
|
-
class: "vv-textarea__input-before"
|
|
1000
|
-
}, zt = { class: "vv-textarea__inner" }, Bt = ["id"], Vt = {
|
|
1001
|
-
key: 1,
|
|
1002
|
-
class: "vv-textarea__input-after"
|
|
1003
|
-
}, Ht = {
|
|
1004
|
-
key: 2,
|
|
1005
|
-
class: "vv-textarea__limit"
|
|
1006
|
-
}, Ut = { class: "flex-1" }, Wt = ["title", "onClick"], Gt = /* @__PURE__ */ k({
|
|
1007
|
-
name: "VvTextarea",
|
|
1008
|
-
props: st,
|
|
1009
|
-
emits: ot,
|
|
1010
|
-
setup(e, { expose: t, emit: r }) {
|
|
1011
|
-
let a = e, s = r, l = c(), d = Ot(), te = jt("VvTextarea", st, a), h = E(), v = E(), y = E(), { id: b, icon: w, iconPosition: oe, iconRemoveSuggestion: T, labelRemoveSuggestion: se, label: le, modelValue: ue, count: k, valid: P, invalid: F, loading: fe, modifiers: pe, debounce: me, minlength: he, maxlength: ge, storageType: _e } = N(a), ve = ht(b), I = C(() => `${ve.value}-hint`), L = C(() => a.floating && ct(a.placeholder) ? " " : a.placeholder), { model: R, flush: be } = Mt(ue, s, me);
|
|
1012
|
-
t({ flush: be });
|
|
1013
|
-
let { hasIconBefore: z, hasIconAfter: xe } = Nt(w, oe), { hasIcon: Se } = Nt(T), { focused: Ce } = Pt(h, s), we = C(() => Ce.value && !a.disabled && !a.readonly);
|
|
1014
|
-
g(we, (e) => {
|
|
1015
|
-
let t = R.value;
|
|
1016
|
-
if (e || (t = be() ?? t), e && te.value.selectOnFocus && h.value && h.value.select(), e && H.value?.size) {
|
|
1017
|
-
y.value?.show();
|
|
1018
|
-
return;
|
|
1019
|
-
}
|
|
1020
|
-
if (H.value && !ct(t)) {
|
|
1021
|
-
let e = a.maxSuggestions;
|
|
1022
|
-
H.value.size >= e && !H.value.has(t) && (H.value = new Set([...H.value].slice(H.value.size - e + 1))), H.value.add(t);
|
|
1023
|
-
}
|
|
1024
|
-
});
|
|
1025
|
-
let Te = ye(h);
|
|
1026
|
-
g(Te, (e) => {
|
|
1027
|
-
e && a.autofocus && (Ce.value = !0);
|
|
1028
|
-
});
|
|
1029
|
-
let { formatted: Ee } = Ft(R, {
|
|
1030
|
-
mode: k?.value,
|
|
1031
|
-
upperLimit: Number(ge?.value),
|
|
1032
|
-
lowerLimit: Number(he?.value)
|
|
1033
|
-
}), De = C(() => !a.disabled && !a.readonly), Oe = C(() => De.value ? a.tabindex : -1), ke = C(() => !ct(ue)), B = C(() => {
|
|
1034
|
-
if (a.invalid === !0) return !0;
|
|
1035
|
-
if (a.valid === !0) return !1;
|
|
1036
|
-
}), V = C(() => a.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? a.name : void 0)), H = It(V, _e, /* @__PURE__ */ new Set()), U = C(() => H.value ? [...H.value].filter((e) => ct(R.value) || `${e}`.toLowerCase().includes(`${R.value}`.toLowerCase()) && e !== R.value).reverse() : []), W = C(() => V?.value && H.value && H.value.size > 0);
|
|
1037
|
-
function G(e) {
|
|
1038
|
-
R.value = e, y.value?.hide(), s("suggestion:selected", e);
|
|
1039
|
-
}
|
|
1040
|
-
function K(e) {
|
|
1041
|
-
H.value?.delete(e), s("suggestion:removed", e);
|
|
1042
|
-
}
|
|
1043
|
-
let { HintSlot: q, hasHintLabelOrSlot: J, hasInvalidLabelOrSlot: Y, hintSlotScope: X } = dt(te, l), Ae = bt("vv-textarea", pe, C(() => ({
|
|
1044
|
-
valid: P.value,
|
|
1045
|
-
invalid: F.value,
|
|
1046
|
-
loading: fe.value,
|
|
1047
|
-
disabled: a.disabled,
|
|
1048
|
-
readonly: a.readonly,
|
|
1049
|
-
required: a.required,
|
|
1050
|
-
"icon-before": z.value !== void 0,
|
|
1051
|
-
"icon-after": xe.value !== void 0,
|
|
1052
|
-
floating: a.floating && !ct(a.label),
|
|
1053
|
-
dirty: ke.value,
|
|
1054
|
-
focus: Ce.value,
|
|
1055
|
-
resizable: a.resizable
|
|
1056
|
-
}))), je = C(() => ({
|
|
1057
|
-
name: a.name,
|
|
1058
|
-
placeholder: L.value,
|
|
1059
|
-
tabindex: Oe.value,
|
|
1060
|
-
disabled: a.disabled,
|
|
1061
|
-
readonly: a.readonly,
|
|
1062
|
-
required: a.required,
|
|
1063
|
-
autocomplete: a.autocomplete,
|
|
1064
|
-
minlength: a.minlength,
|
|
1065
|
-
maxlength: a.maxlength,
|
|
1066
|
-
cols: a.cols,
|
|
1067
|
-
rows: a.rows,
|
|
1068
|
-
wrap: a.wrap,
|
|
1069
|
-
spellcheck: a.spellcheck,
|
|
1070
|
-
"aria-invalid": B.value,
|
|
1071
|
-
"aria-describedby": J.value ? I.value : void 0,
|
|
1072
|
-
"aria-errormessage": Y.value ? I.value : void 0
|
|
1073
|
-
})), Z = C(() => ({
|
|
1074
|
-
valid: a.valid,
|
|
1075
|
-
invalid: a.invalid,
|
|
1076
|
-
modelValue: a.modelValue,
|
|
1077
|
-
hintLabel: a.hintLabel,
|
|
1078
|
-
maxlength: a.maxlength,
|
|
1079
|
-
minlength: a.minlength,
|
|
1080
|
-
clear: Me
|
|
1081
|
-
}));
|
|
1082
|
-
function Me() {
|
|
1083
|
-
R.value = void 0;
|
|
1084
|
-
}
|
|
1085
|
-
return (e, t) => (f(), M("div", { class: o(j(Ae)) }, [
|
|
1086
|
-
j(le) ? (f(), M("label", {
|
|
1087
|
-
key: 0,
|
|
1088
|
-
for: j(ve),
|
|
1089
|
-
class: "vv-textarea__label"
|
|
1090
|
-
}, D(j(le)), 9, Lt)) : O("v-if", !0),
|
|
1091
|
-
S("div", {
|
|
1092
|
-
ref_key: "wrapperEl",
|
|
1093
|
-
ref: v,
|
|
1094
|
-
class: "vv-textarea__wrapper"
|
|
1095
|
-
}, [
|
|
1096
|
-
e.$slots.before ? (f(), M("div", Rt, [m(e.$slots, "before", p(i(j(Z))))])) : O("v-if", !0),
|
|
1097
|
-
S("div", zt, [
|
|
1098
|
-
j(z) ? (f(), _(kt, u({ key: 0 }, j(z), { class: "vv-textarea__icon" }), null, 16)) : O("v-if", !0),
|
|
1099
|
-
de(S("textarea", u({
|
|
1100
|
-
id: j(ve),
|
|
1101
|
-
ref_key: "textareaEl",
|
|
1102
|
-
ref: h,
|
|
1103
|
-
"onUpdate:modelValue": t[0] ||= (e) => ce(R) ? R.value = e : null
|
|
1104
|
-
}, j(je), { onKeyup: t[1] ||= (e) => s("keyup", e) }), null, 16, Bt), [[re, j(R)]]),
|
|
1105
|
-
j(xe) ? (f(), _(kt, u({ key: 1 }, j(xe), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : O("v-if", !0)
|
|
1106
|
-
]),
|
|
1107
|
-
e.$slots.after ? (f(), M("div", Vt, [m(e.$slots, "after", p(i(j(Z))))])) : O("v-if", !0),
|
|
1108
|
-
j(k) ? (f(), M("span", Ht, [m(e.$slots, "count", p(i(j(Z))), () => [A(D(j(Ee)), 1)])])) : O("v-if", !0)
|
|
1109
|
-
], 512),
|
|
1110
|
-
ee(j(q), {
|
|
1111
|
-
id: j(I),
|
|
1112
|
-
class: "vv-textarea__hint"
|
|
1113
|
-
}, ne({ _: 2 }, [
|
|
1114
|
-
e.$slots.hint ? {
|
|
1115
|
-
name: "hint",
|
|
1116
|
-
fn: x(() => [m(e.$slots, "hint", p(i(j(X))))]),
|
|
1117
|
-
key: "0"
|
|
1118
|
-
} : void 0,
|
|
1119
|
-
e.$slots.loading ? {
|
|
1120
|
-
name: "loading",
|
|
1121
|
-
fn: x(() => [m(e.$slots, "loading", p(i(j(X))))]),
|
|
1122
|
-
key: "1"
|
|
1123
|
-
} : void 0,
|
|
1124
|
-
e.$slots.valid ? {
|
|
1125
|
-
name: "valid",
|
|
1126
|
-
fn: x(() => [m(e.$slots, "valid", p(i(j(X))))]),
|
|
1127
|
-
key: "2"
|
|
1128
|
-
} : void 0,
|
|
1129
|
-
e.$slots.invalid ? {
|
|
1130
|
-
name: "invalid",
|
|
1131
|
-
fn: x(() => [m(e.$slots, "invalid", p(i(j(X))))]),
|
|
1132
|
-
key: "3"
|
|
1133
|
-
} : void 0
|
|
1134
|
-
]), 1032, ["id"]),
|
|
1135
|
-
j(W) ? (f(), _(Ct, {
|
|
1136
|
-
key: 1,
|
|
1137
|
-
ref_key: "suggestionsDropdownEl",
|
|
1138
|
-
ref: y,
|
|
1139
|
-
reference: j(v),
|
|
1140
|
-
"autofocus-first": !1,
|
|
1141
|
-
"trigger-width": !0,
|
|
1142
|
-
"top-layer": j(te).topLayer
|
|
1143
|
-
}, {
|
|
1144
|
-
items: x(() => [(f(!0), M(ae, null, n(j(U), (t) => (f(), _(Dt, {
|
|
1145
|
-
key: t,
|
|
1146
|
-
onClick: ie((e) => G(t), ["stop"])
|
|
1147
|
-
}, {
|
|
1148
|
-
default: x(() => [S("div", Ut, [m(e.$slots, "suggestion", u({ ref_for: !0 }, { value: t }), () => [A(D(t), 1)])]), j(H) && j(Se) ? (f(), M("button", {
|
|
1149
|
-
key: 0,
|
|
1150
|
-
type: "button",
|
|
1151
|
-
tabindex: "-1",
|
|
1152
|
-
class: "cursor-pointer",
|
|
1153
|
-
title: j(se),
|
|
1154
|
-
onClick: ie((e) => K(t), ["stop"])
|
|
1155
|
-
}, [ee(kt, u({ ref_for: !0 }, j(Se)), null, 16)], 8, Wt)) : O("v-if", !0)]),
|
|
1156
|
-
_: 2
|
|
1157
|
-
}, 1032, ["onClick"]))), 128))]),
|
|
1158
|
-
_: 3
|
|
1159
|
-
}, 8, ["reference", "top-layer"])) : O("v-if", !0)
|
|
1160
|
-
], 2));
|
|
1161
|
-
}
|
|
1162
|
-
});
|
|
1163
|
-
//#endregion
|
|
1164
|
-
export { Gt as default };
|
|
1165
|
-
|
|
1166
|
-
//# sourceMappingURL=VvTextarea.es-CAzFW944.js.map
|