@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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as
|
|
5
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
6
|
-
|
|
7
|
-
var
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, E as a, G as o, L as s, M as c, O as l, St as u, T as d, Tt as f, X as p, _ as m, bt as h, ct as ee, d as g, et as te, g as _, h as v, it as y, k as b, m as x, o as ne, pt as S, q as re, r as ie, v as C, vt as w, x as ae, xt as oe, y as se, z as T } from "./vue.runtime.esm-bundler-B3bThTaf.js";
|
|
2
|
+
import { a as E, i as D, t as O } from "./iconify-6ObncgfH.js";
|
|
3
|
+
import { c as ce, s as le } from "./dist-C5Y-NI3i.js";
|
|
4
|
+
import { t as k } from "./dot-prop-BEIkPL0b.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.18_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_fb2fc569fa47f04da7f3d790d6448706/node_modules/@volverjs/ui-vue/dist/components/VvSelect/VvSelect.es.js
|
|
6
|
+
l(), y(), oe(), ie();
|
|
7
|
+
var ue = {
|
|
8
8
|
showPassword: "eye-on",
|
|
9
9
|
hidePassword: "eye-off",
|
|
10
10
|
showDatePicker: "calendar",
|
|
@@ -15,15 +15,15 @@ var le = {
|
|
|
15
15
|
remove: "trash",
|
|
16
16
|
edit: "edit",
|
|
17
17
|
download: "download"
|
|
18
|
-
},
|
|
18
|
+
}, de = { prefix: "normal" }, fe = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.local = "local", e.session = "session", e;
|
|
20
|
-
})({}),
|
|
20
|
+
})({}), A = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
22
|
-
})({}),
|
|
22
|
+
})({}), j = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.before = "before", e.after = "after", e;
|
|
24
|
-
})({}), fe = /* @__PURE__ */ (function(e) {
|
|
25
|
-
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
26
24
|
})({}), pe = /* @__PURE__ */ (function(e) {
|
|
25
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
26
|
+
})({}), M = /* @__PURE__ */ (function(e) {
|
|
27
27
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
28
28
|
})({}), me = /* @__PURE__ */ Symbol.for("volver"), he = {
|
|
29
29
|
to: { type: [String, Object] },
|
|
@@ -79,7 +79,7 @@ var le = {
|
|
|
79
79
|
},
|
|
80
80
|
iconClear: {
|
|
81
81
|
type: [String, Object],
|
|
82
|
-
default:
|
|
82
|
+
default: ue.clear
|
|
83
83
|
},
|
|
84
84
|
labelClear: {
|
|
85
85
|
type: String,
|
|
@@ -136,8 +136,8 @@ var le = {
|
|
|
136
136
|
},
|
|
137
137
|
iconPosition: {
|
|
138
138
|
type: String,
|
|
139
|
-
default:
|
|
140
|
-
validation: (e) => Object.values(
|
|
139
|
+
default: j.before,
|
|
140
|
+
validation: (e) => Object.values(j).includes(e)
|
|
141
141
|
}
|
|
142
142
|
}, Y = { tabindex: {
|
|
143
143
|
type: [String, Number],
|
|
@@ -149,7 +149,7 @@ var le = {
|
|
|
149
149
|
type: Boolean,
|
|
150
150
|
default: !0
|
|
151
151
|
} }, _e = { id: [String, Number] };
|
|
152
|
-
|
|
152
|
+
A.bottom;
|
|
153
153
|
var Q = {
|
|
154
154
|
..._e,
|
|
155
155
|
name: {
|
|
@@ -209,7 +209,7 @@ var Q = {
|
|
|
209
209
|
...R,
|
|
210
210
|
...z,
|
|
211
211
|
...he
|
|
212
|
-
},
|
|
212
|
+
}, pe.button, M.button, fe.local;
|
|
213
213
|
var be = {
|
|
214
214
|
...Q,
|
|
215
215
|
...ve,
|
|
@@ -264,19 +264,19 @@ function Ce(e) {
|
|
|
264
264
|
return Array.isArray(e) ? e.filter((e) => Se(e)).join(" ") : e;
|
|
265
265
|
}
|
|
266
266
|
function we(e, t) {
|
|
267
|
-
let
|
|
267
|
+
let n = x(() => ee(e) ? e.value : e), i = x(() => Ce(n.value.invalidLabel)), o = x(() => Ce(n.value.validLabel)), s = x(() => n.value.loadingLabel), c = x(() => n.value.hintLabel), l = x(() => !!(n.value.loading && (t.loading || s.value))), u = x(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = x(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = x(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = x(() => u.value || d.value || l.value || f.value);
|
|
268
268
|
return {
|
|
269
|
-
hasInvalidLabelOrSlot:
|
|
270
|
-
hasHintLabelOrSlot:
|
|
271
|
-
hasValidLabelOrSlot:
|
|
272
|
-
hasLoadingLabelOrSlot:
|
|
273
|
-
hintSlotScope:
|
|
274
|
-
modelValue:
|
|
275
|
-
valid:
|
|
276
|
-
invalid:
|
|
277
|
-
loading:
|
|
269
|
+
hasInvalidLabelOrSlot: u,
|
|
270
|
+
hasHintLabelOrSlot: f,
|
|
271
|
+
hasValidLabelOrSlot: d,
|
|
272
|
+
hasLoadingLabelOrSlot: l,
|
|
273
|
+
hintSlotScope: x(() => ({
|
|
274
|
+
modelValue: n.value.modelValue,
|
|
275
|
+
valid: n.value.valid,
|
|
276
|
+
invalid: n.value.invalid,
|
|
277
|
+
loading: n.value.loading
|
|
278
278
|
})),
|
|
279
|
-
HintSlot:
|
|
279
|
+
HintSlot: r({
|
|
280
280
|
name: "HintSlot",
|
|
281
281
|
props: { tag: {
|
|
282
282
|
type: String,
|
|
@@ -284,21 +284,21 @@ function we(e, t) {
|
|
|
284
284
|
} },
|
|
285
285
|
setup() {
|
|
286
286
|
return {
|
|
287
|
-
isVisible:
|
|
287
|
+
isVisible: p,
|
|
288
288
|
invalidLabel: i,
|
|
289
|
-
validLabel:
|
|
290
|
-
loadingLabel:
|
|
291
|
-
hintLabel:
|
|
292
|
-
hasInvalidLabelOrSlot:
|
|
293
|
-
hasValidLabelOrSlot:
|
|
294
|
-
hasLoadingLabelOrSlot:
|
|
295
|
-
hasHintLabelOrSlot:
|
|
289
|
+
validLabel: o,
|
|
290
|
+
loadingLabel: s,
|
|
291
|
+
hintLabel: c,
|
|
292
|
+
hasInvalidLabelOrSlot: u,
|
|
293
|
+
hasValidLabelOrSlot: d,
|
|
294
|
+
hasLoadingLabelOrSlot: l,
|
|
295
|
+
hasHintLabelOrSlot: f
|
|
296
296
|
};
|
|
297
297
|
},
|
|
298
298
|
render() {
|
|
299
299
|
if (this.isVisible) {
|
|
300
300
|
let e;
|
|
301
|
-
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ?
|
|
301
|
+
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? a(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : a(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
302
302
|
}
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
@@ -306,21 +306,21 @@ function we(e, t) {
|
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
308
|
function Te() {
|
|
309
|
-
return
|
|
309
|
+
return b(me, void 0);
|
|
310
310
|
}
|
|
311
311
|
function Ee(e, t, n) {
|
|
312
|
-
return
|
|
312
|
+
return x(() => {
|
|
313
313
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
314
314
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
315
315
|
t && (r[`${e}--${t}`] = !0);
|
|
316
316
|
}), n && Object.keys(n.value).forEach((t) => {
|
|
317
|
-
r[`${e}--${t}`] =
|
|
317
|
+
r[`${e}--${t}`] = h(n.value[t]);
|
|
318
318
|
}), r;
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
var $ = /* @__PURE__ */
|
|
321
|
+
var $ = /* @__PURE__ */ r({
|
|
322
322
|
name: "VvIcon",
|
|
323
|
-
props: /* @__PURE__ */
|
|
323
|
+
props: /* @__PURE__ */ t({
|
|
324
324
|
name: {},
|
|
325
325
|
color: {},
|
|
326
326
|
width: {},
|
|
@@ -337,14 +337,14 @@ var $ = /* @__PURE__ */ C({
|
|
|
337
337
|
onLoad: { type: Function },
|
|
338
338
|
svg: {},
|
|
339
339
|
modifiers: {}
|
|
340
|
-
},
|
|
340
|
+
}, de),
|
|
341
341
|
setup(e) {
|
|
342
|
-
let t = e, n =
|
|
342
|
+
let t = e, n = x(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = S(!0), i = Te(), { modifiers: a } = w(t), o = Ee("vv-icon", a), l = x(() => t.provider || i?.iconsProvider), u = x(() => {
|
|
343
343
|
let e = t.name ?? "", n = `@${l.value}:${t.prefix}:${e}`;
|
|
344
|
-
if (
|
|
344
|
+
if (E(n)) return n;
|
|
345
345
|
let r = i?.iconsCollections.find((t) => {
|
|
346
346
|
let n = `@${l.value}:${t.prefix}:${e}`;
|
|
347
|
-
return
|
|
347
|
+
return E(n);
|
|
348
348
|
});
|
|
349
349
|
return r ? `@${l.value}:${r.prefix}:${e}` : e;
|
|
350
350
|
});
|
|
@@ -353,19 +353,19 @@ var $ = /* @__PURE__ */ C({
|
|
|
353
353
|
}
|
|
354
354
|
function f(e) {
|
|
355
355
|
let n = d(e), r = n?.innerHTML.trim() || "";
|
|
356
|
-
n && r &&
|
|
356
|
+
n && r && D(`@${l.value}:${t.prefix}:${t.name}`, {
|
|
357
357
|
body: r,
|
|
358
358
|
height: n.viewBox.baseVal.height,
|
|
359
359
|
width: n.viewBox.baseVal.width
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
return i && t.src && !
|
|
362
|
+
return i && t.src && !E(`@${l.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
363
363
|
e && f(e), r.value = !0;
|
|
364
364
|
}).catch((e) => {
|
|
365
365
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
366
|
-
})), t.svg && f(t.svg), (t, i) =>
|
|
366
|
+
})), t.svg && f(t.svg), (t, i) => h(r) ? (s(), _(h(O), c({
|
|
367
367
|
key: 0,
|
|
368
|
-
class:
|
|
368
|
+
class: h(o)
|
|
369
369
|
}, {
|
|
370
370
|
inline: e.inline,
|
|
371
371
|
width: e.width,
|
|
@@ -373,25 +373,25 @@ var $ = /* @__PURE__ */ C({
|
|
|
373
373
|
horizontalFlip: e.horizontalFlip,
|
|
374
374
|
verticalFlip: e.verticalFlip,
|
|
375
375
|
flip: e.flip,
|
|
376
|
-
rotate:
|
|
376
|
+
rotate: h(n),
|
|
377
377
|
color: e.color,
|
|
378
|
-
icon:
|
|
379
|
-
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) :
|
|
378
|
+
icon: h(u)
|
|
379
|
+
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : m("v-if", !0);
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
function De(e, t) {
|
|
383
|
-
let n =
|
|
383
|
+
let n = x(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = x(() => t?.value === j.before ? n.value : void 0), i = x(() => t?.value === j.after ? n.value : void 0);
|
|
384
384
|
return {
|
|
385
385
|
hasIcon: n,
|
|
386
|
-
hasIconLeft:
|
|
387
|
-
hasIconRight:
|
|
388
|
-
hasIconTop:
|
|
389
|
-
hasIconBottom:
|
|
386
|
+
hasIconLeft: x(() => t?.value === A.left ? n.value : void 0),
|
|
387
|
+
hasIconRight: x(() => t?.value === A.right ? n.value : void 0),
|
|
388
|
+
hasIconTop: x(() => t?.value === A.top ? n.value : void 0),
|
|
389
|
+
hasIconBottom: x(() => t?.value === A.bottom ? n.value : void 0),
|
|
390
390
|
hasIconBefore: r,
|
|
391
391
|
hasIconAfter: i
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
var Oe =
|
|
394
|
+
var Oe = r({
|
|
395
395
|
components: { VvIcon: $ },
|
|
396
396
|
props: {
|
|
397
397
|
inputType: {
|
|
@@ -413,7 +413,7 @@ var Oe = C({
|
|
|
413
413
|
},
|
|
414
414
|
emits: ["clear"],
|
|
415
415
|
setup(e, { emit: t }) {
|
|
416
|
-
let { hasIcon: n } = De(
|
|
416
|
+
let { hasIcon: n } = De(x(() => e.icon));
|
|
417
417
|
function r(n) {
|
|
418
418
|
n?.stopPropagation(), e.disabled || t("clear");
|
|
419
419
|
}
|
|
@@ -423,11 +423,11 @@ var Oe = C({
|
|
|
423
423
|
};
|
|
424
424
|
},
|
|
425
425
|
render() {
|
|
426
|
-
let e = this.hasIcon ?
|
|
426
|
+
let e = this.hasIcon ? a($, {
|
|
427
427
|
...this.hasIcon,
|
|
428
428
|
class: `vv-${this.inputType}__icon`
|
|
429
429
|
}) : void 0;
|
|
430
|
-
return
|
|
430
|
+
return a("button", {
|
|
431
431
|
disabled: this.disabled,
|
|
432
432
|
class: `vv-${this.inputType}__action`,
|
|
433
433
|
ariaLabel: this.label,
|
|
@@ -449,10 +449,10 @@ function ke(e, t, n) {
|
|
|
449
449
|
return r;
|
|
450
450
|
}
|
|
451
451
|
function Ae(e, t, n) {
|
|
452
|
-
let r = Te(), i =
|
|
452
|
+
let r = Te(), i = x(() => {
|
|
453
453
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
454
454
|
});
|
|
455
|
-
return
|
|
455
|
+
return x(() => {
|
|
456
456
|
if (i.value === void 0) return n;
|
|
457
457
|
let e = i.value, r = t, a = n;
|
|
458
458
|
return Object.keys(r).reduce((t, n) => {
|
|
@@ -462,21 +462,21 @@ function Ae(e, t, n) {
|
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
function je(e, t) {
|
|
465
|
-
let { focused: n } =
|
|
466
|
-
return
|
|
467
|
-
t(n ? "focus" : "blur",
|
|
465
|
+
let { focused: n } = ce(e);
|
|
466
|
+
return p(n, (n) => {
|
|
467
|
+
t(n ? "focus" : "blur", h(e));
|
|
468
468
|
}), { focused: n };
|
|
469
469
|
}
|
|
470
470
|
function Me(e) {
|
|
471
|
-
return
|
|
471
|
+
return x(() => String(e?.value || o()));
|
|
472
472
|
}
|
|
473
473
|
function Ne(e) {
|
|
474
|
-
let { options: t, labelKey: n, valueKey: r, disabledKey: i } =
|
|
474
|
+
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = w(e);
|
|
475
475
|
return {
|
|
476
476
|
options: t,
|
|
477
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
478
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
479
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
477
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? k(e, n.value) : e),
|
|
478
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? k(e, r.value) : e,
|
|
479
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!k(e, i.value) : !1,
|
|
480
480
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
481
481
|
};
|
|
482
482
|
}
|
|
@@ -486,7 +486,7 @@ var Pe = ["for"], Fe = { class: "vv-select__wrapper" }, Ie = {
|
|
|
486
486
|
}, Le = { class: "vv-select__inner" }, Re = ["id"], ze = ["disabled", "hidden"], Be = ["disabled", "value"], Ve = ["disabled", "label"], He = ["disabled", "value"], Ue = {
|
|
487
487
|
key: 2,
|
|
488
488
|
class: "vv-select__input-after"
|
|
489
|
-
}, We = /* @__PURE__ */
|
|
489
|
+
}, We = /* @__PURE__ */ r({
|
|
490
490
|
name: "VvSelect",
|
|
491
491
|
props: xe(),
|
|
492
492
|
emits: [
|
|
@@ -495,134 +495,134 @@ var Pe = ["for"], Fe = { class: "vv-select__wrapper" }, Ie = {
|
|
|
495
495
|
"blur",
|
|
496
496
|
"clear"
|
|
497
497
|
],
|
|
498
|
-
setup(
|
|
499
|
-
let
|
|
500
|
-
function
|
|
498
|
+
setup(t, { emit: r }) {
|
|
499
|
+
let a = t, o = r, l = re(), y = Ae("VvSelect", xe(), a), b = S(), { HintSlot: ie, hasHintLabelOrSlot: oe, hasInvalidLabelOrSlot: E, hintSlotScope: D } = we(y, l), { focused: O } = je(b, o);
|
|
500
|
+
function ce(e) {
|
|
501
501
|
return typeof e != "string" && e.options?.length;
|
|
502
502
|
}
|
|
503
|
-
let { id:
|
|
504
|
-
get: () =>
|
|
503
|
+
let { id: k, modifiers: ue, disabled: de, readonly: fe, loading: A, icon: j, iconPosition: pe, invalid: M, valid: me, floating: he, multiple: N } = w(a), P = Me(k), F = x(() => `${P.value}-hint`), I = x(() => a.disabled || a.readonly), L = x(() => I.value ? -1 : a.tabindex), R = x({
|
|
504
|
+
get: () => a.modelValue,
|
|
505
505
|
set: (e) => {
|
|
506
|
-
if (Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !
|
|
507
|
-
b.value.value = String(
|
|
506
|
+
if (Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !a.unselectable && b.value)) {
|
|
507
|
+
b.value.value = String(a.modelValue);
|
|
508
508
|
return;
|
|
509
509
|
}
|
|
510
|
-
|
|
510
|
+
o("update:modelValue", e);
|
|
511
511
|
}
|
|
512
|
-
}), z =
|
|
513
|
-
|
|
514
|
-
e &&
|
|
512
|
+
}), z = x(() => Array.isArray(R.value) ? R.value.length > 0 : R.value !== void 0 && R.value !== null), B = x(() => !I.value && a.unselectable), ge = le(b);
|
|
513
|
+
p(ge, (e) => {
|
|
514
|
+
e && a.autofocus && (O.value = !0);
|
|
515
515
|
});
|
|
516
|
-
let { hasIconBefore: V, hasIconAfter: H } = De(
|
|
517
|
-
if (
|
|
518
|
-
if (
|
|
519
|
-
}), W = Ee("vv-select",
|
|
516
|
+
let { hasIconBefore: V, hasIconAfter: H } = De(j, pe), U = x(() => {
|
|
517
|
+
if (a.invalid === !0) return !0;
|
|
518
|
+
if (a.valid === !0) return !1;
|
|
519
|
+
}), W = Ee("vv-select", ue, x(() => ({
|
|
520
520
|
valid: me.value,
|
|
521
|
-
invalid:
|
|
522
|
-
loading:
|
|
523
|
-
disabled:
|
|
524
|
-
readonly:
|
|
521
|
+
invalid: M.value,
|
|
522
|
+
loading: A.value,
|
|
523
|
+
disabled: de.value,
|
|
524
|
+
readonly: fe.value,
|
|
525
525
|
"icon-before": V.value !== void 0,
|
|
526
526
|
"icon-after": H.value !== void 0,
|
|
527
527
|
dirty: z.value,
|
|
528
|
-
focus:
|
|
528
|
+
focus: O.value && !I.value,
|
|
529
529
|
floating: he.value,
|
|
530
530
|
multiple: N.value
|
|
531
|
-
}))), { getOptionLabel: G, getOptionValue: K, isOptionDisabled: q, getOptionGrouped: J } = Ne(
|
|
532
|
-
|
|
533
|
-
if (e?.length &&
|
|
531
|
+
}))), { getOptionLabel: G, getOptionValue: K, isOptionDisabled: q, getOptionGrouped: J } = Ne(a);
|
|
532
|
+
p(() => a.options, (e) => {
|
|
533
|
+
if (e?.length && a.autoselectFirst && !z.value) {
|
|
534
534
|
let t = K(e[0]);
|
|
535
|
-
R.value =
|
|
535
|
+
R.value = a.multiple ? [t] : t;
|
|
536
536
|
}
|
|
537
537
|
}, { immediate: !0 });
|
|
538
538
|
function Y() {
|
|
539
|
-
Array.isArray(R.value) ? R.value = [] : R.value = void 0,
|
|
539
|
+
Array.isArray(R.value) ? R.value = [] : R.value = void 0, o("clear");
|
|
540
540
|
}
|
|
541
|
-
let X =
|
|
542
|
-
name:
|
|
541
|
+
let X = x(() => ({
|
|
542
|
+
name: a.name,
|
|
543
543
|
tabindex: L.value,
|
|
544
544
|
disabled: I.value,
|
|
545
|
-
required:
|
|
546
|
-
size:
|
|
547
|
-
autocomplete:
|
|
548
|
-
multiple:
|
|
545
|
+
required: a.required,
|
|
546
|
+
size: a.size,
|
|
547
|
+
autocomplete: a.autocomplete,
|
|
548
|
+
multiple: a.multiple,
|
|
549
549
|
"aria-invalid": U.value,
|
|
550
|
-
"aria-describedby":
|
|
551
|
-
"aria-errormessage":
|
|
552
|
-
})), Z =
|
|
553
|
-
valid:
|
|
554
|
-
invalid:
|
|
555
|
-
modelValue:
|
|
550
|
+
"aria-describedby": oe.value ? F.value : void 0,
|
|
551
|
+
"aria-errormessage": E.value ? F.value : void 0
|
|
552
|
+
})), Z = x(() => ({
|
|
553
|
+
valid: a.valid,
|
|
554
|
+
invalid: a.invalid,
|
|
555
|
+
modelValue: a.modelValue
|
|
556
556
|
}));
|
|
557
|
-
return (
|
|
558
|
-
|
|
557
|
+
return (t, r) => (s(), C("div", { class: u(h(W)) }, [
|
|
558
|
+
t.label ? (s(), C("label", {
|
|
559
559
|
key: 0,
|
|
560
|
-
for:
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
id:
|
|
560
|
+
for: h(P)
|
|
561
|
+
}, f(t.label), 9, Pe)) : m("v-if", !0),
|
|
562
|
+
v("div", Fe, [
|
|
563
|
+
t.$slots.before ? (s(), C("div", Ie, [n(t.$slots, "before", i(d(h(Z))))])) : m("v-if", !0),
|
|
564
|
+
v("div", Le, [
|
|
565
|
+
h(V) ? (s(), _($, c({ key: 0 }, h(V), { class: "vv-select__icon" }), null, 16)) : m("v-if", !0),
|
|
566
|
+
te(v("select", c({
|
|
567
|
+
id: h(P),
|
|
568
568
|
ref_key: "selectEl",
|
|
569
569
|
ref: b
|
|
570
|
-
},
|
|
570
|
+
}, h(X), { "onUpdate:modelValue": r[0] ||= (e) => ee(R) ? R.value = e : null }), [t.placeholder ? (s(), C("option", {
|
|
571
571
|
key: 0,
|
|
572
572
|
value: void 0,
|
|
573
|
-
disabled: !
|
|
574
|
-
hidden: !
|
|
575
|
-
},
|
|
576
|
-
key: `group-${
|
|
577
|
-
disabled:
|
|
578
|
-
label:
|
|
579
|
-
}, [(
|
|
580
|
-
key: `group-${
|
|
581
|
-
disabled:
|
|
582
|
-
value:
|
|
583
|
-
},
|
|
584
|
-
key:
|
|
585
|
-
disabled:
|
|
586
|
-
value:
|
|
587
|
-
},
|
|
588
|
-
|
|
573
|
+
disabled: !h(B),
|
|
574
|
+
hidden: !h(B)
|
|
575
|
+
}, f(t.placeholder), 9, ze)) : m("v-if", !0), (s(!0), C(g, null, T(t.options, (e, t) => (s(), C(g, null, [ce(e) ? (s(), C("optgroup", {
|
|
576
|
+
key: `group-${t}`,
|
|
577
|
+
disabled: h(q)(e),
|
|
578
|
+
label: h(G)(e)
|
|
579
|
+
}, [(s(!0), C(g, null, T(h(J)(e), (e, n) => (s(), C("option", {
|
|
580
|
+
key: `group-${t}-item-${n}`,
|
|
581
|
+
disabled: h(q)(e),
|
|
582
|
+
value: h(K)(e)
|
|
583
|
+
}, f(h(G)(e)), 9, He))), 128))], 8, Ve)) : (s(), C("option", {
|
|
584
|
+
key: t,
|
|
585
|
+
disabled: h(q)(e),
|
|
586
|
+
value: h(K)(e)
|
|
587
|
+
}, f(h(G)(e)), 9, Be))], 64))), 256))], 16, Re), [[ne, h(R)]]),
|
|
588
|
+
h(H) ? (s(), _($, c({ key: 1 }, h(H), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : m("v-if", !0)
|
|
589
589
|
]),
|
|
590
|
-
|
|
590
|
+
h(B) && h(y).showClearAction ? (s(), _(h(Oe), {
|
|
591
591
|
key: 1,
|
|
592
592
|
"input-type": "select",
|
|
593
|
-
label:
|
|
594
|
-
icon:
|
|
595
|
-
disabled: !
|
|
593
|
+
label: t.labelClear,
|
|
594
|
+
icon: t.iconClear,
|
|
595
|
+
disabled: !h(z),
|
|
596
596
|
onClear: Y
|
|
597
597
|
}, null, 8, [
|
|
598
598
|
"label",
|
|
599
599
|
"icon",
|
|
600
600
|
"disabled"
|
|
601
|
-
])) :
|
|
602
|
-
|
|
601
|
+
])) : m("v-if", !0),
|
|
602
|
+
t.$slots.after ? (s(), C("div", Ue, [n(t.$slots, "after", i(d(h(Z))))])) : m("v-if", !0)
|
|
603
603
|
]),
|
|
604
|
-
|
|
605
|
-
id:
|
|
604
|
+
ae(h(ie), {
|
|
605
|
+
id: h(F),
|
|
606
606
|
class: "vv-select__hint"
|
|
607
|
-
},
|
|
608
|
-
|
|
607
|
+
}, se({ _: 2 }, [
|
|
608
|
+
t.$slots.hint ? {
|
|
609
609
|
name: "hint",
|
|
610
|
-
fn:
|
|
610
|
+
fn: e(() => [n(t.$slots, "hint", i(d(h(D))))]),
|
|
611
611
|
key: "0"
|
|
612
612
|
} : void 0,
|
|
613
|
-
|
|
613
|
+
t.$slots.loading ? {
|
|
614
614
|
name: "loading",
|
|
615
|
-
fn:
|
|
615
|
+
fn: e(() => [n(t.$slots, "loading", i(d(h(D))))]),
|
|
616
616
|
key: "1"
|
|
617
617
|
} : void 0,
|
|
618
|
-
|
|
618
|
+
t.$slots.valid ? {
|
|
619
619
|
name: "valid",
|
|
620
|
-
fn:
|
|
620
|
+
fn: e(() => [n(t.$slots, "valid", i(d(h(D))))]),
|
|
621
621
|
key: "2"
|
|
622
622
|
} : void 0,
|
|
623
|
-
|
|
623
|
+
t.$slots.invalid ? {
|
|
624
624
|
name: "invalid",
|
|
625
|
-
fn:
|
|
625
|
+
fn: e(() => [n(t.$slots, "invalid", i(d(h(D))))]),
|
|
626
626
|
key: "3"
|
|
627
627
|
} : void 0
|
|
628
628
|
]), 1032, ["id"])
|
|
@@ -632,4 +632,4 @@ var Pe = ["for"], Fe = { class: "vv-select__wrapper" }, Ie = {
|
|
|
632
632
|
//#endregion
|
|
633
633
|
export { We as default };
|
|
634
634
|
|
|
635
|
-
//# sourceMappingURL=VvSelect.es-
|
|
635
|
+
//# sourceMappingURL=VvSelect.es-C244CAei.js.map
|