@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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as
|
|
3
|
-
import { t as
|
|
4
|
-
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.
|
|
5
|
-
|
|
6
|
-
var
|
|
1
|
+
import { $ as e, B as t, C as n, Ct as r, E as i, G as a, L as o, M as s, O as c, R as l, St as u, T as d, Tt as f, _ as p, _t as m, a as h, b as g, bt as _, ct as v, d as y, et as b, g as x, h as S, it as C, k as w, m as T, pt as E, q as D, r as O, v as k, vt as A, x as ee, xt as j, y as M, z as te } from "./vue.runtime.esm-bundler-B3bThTaf.js";
|
|
2
|
+
import { m as N } from "./dist-C5Y-NI3i.js";
|
|
3
|
+
import { t as P } from "./dot-prop-BEIkPL0b.js";
|
|
4
|
+
//#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/VvRadioGroup/VvRadioGroup.es.js
|
|
5
|
+
c(), C(), j(), O();
|
|
6
|
+
var F = {
|
|
7
7
|
showPassword: "eye-on",
|
|
8
8
|
hidePassword: "eye-off",
|
|
9
9
|
showDatePicker: "calendar",
|
|
@@ -14,17 +14,17 @@ var I = {
|
|
|
14
14
|
remove: "trash",
|
|
15
15
|
edit: "edit",
|
|
16
16
|
download: "download"
|
|
17
|
-
},
|
|
17
|
+
}, I = /* @__PURE__ */ (function(e) {
|
|
18
18
|
return e.local = "local", e.session = "session", e;
|
|
19
|
-
})({}),
|
|
19
|
+
})({}), L = /* @__PURE__ */ (function(e) {
|
|
20
20
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
21
|
-
})({}),
|
|
21
|
+
})({}), R = /* @__PURE__ */ (function(e) {
|
|
22
22
|
return e.before = "before", e.after = "after", e;
|
|
23
|
-
})({}),
|
|
23
|
+
})({}), z = /* @__PURE__ */ (function(e) {
|
|
24
24
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
25
|
-
})({}),
|
|
25
|
+
})({}), B = /* @__PURE__ */ (function(e) {
|
|
26
26
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
27
|
-
})({}),
|
|
27
|
+
})({}), ne = /* @__PURE__ */ Symbol.for("volver"), V = /* @__PURE__ */ Symbol.for("radioGroup"), H = {
|
|
28
28
|
to: { type: [String, Object] },
|
|
29
29
|
href: String,
|
|
30
30
|
target: String,
|
|
@@ -72,7 +72,7 @@ var I = {
|
|
|
72
72
|
type: Boolean,
|
|
73
73
|
default: !1
|
|
74
74
|
} };
|
|
75
|
-
|
|
75
|
+
F.clear;
|
|
76
76
|
var ae = { pressed: {
|
|
77
77
|
type: Boolean,
|
|
78
78
|
default: !1
|
|
@@ -124,8 +124,8 @@ var ae = { pressed: {
|
|
|
124
124
|
},
|
|
125
125
|
iconPosition: {
|
|
126
126
|
type: String,
|
|
127
|
-
default:
|
|
128
|
-
validation: (e) => Object.values(
|
|
127
|
+
default: R.before,
|
|
128
|
+
validation: (e) => Object.values(R).includes(e)
|
|
129
129
|
}
|
|
130
130
|
}, ue = { tabindex: {
|
|
131
131
|
type: [String, Number],
|
|
@@ -134,7 +134,7 @@ var ae = { pressed: {
|
|
|
134
134
|
type: Boolean,
|
|
135
135
|
default: !1
|
|
136
136
|
} }, fe = { id: [String, Number] };
|
|
137
|
-
|
|
137
|
+
L.bottom;
|
|
138
138
|
var pe = {
|
|
139
139
|
...fe,
|
|
140
140
|
name: {
|
|
@@ -231,39 +231,39 @@ var ge = {
|
|
|
231
231
|
...re,
|
|
232
232
|
...ie,
|
|
233
233
|
...H
|
|
234
|
-
}),
|
|
234
|
+
}), z.button, B.button, I.local;
|
|
235
235
|
var ve = ["update:modelValue", "change"];
|
|
236
|
-
function
|
|
237
|
-
return n ?
|
|
236
|
+
function ye(e, t, n) {
|
|
237
|
+
return n ? $(e, n) === $(t, n) : Q(e, t);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function be(e, t) {
|
|
240
240
|
if (e.length !== t.length) return !1;
|
|
241
|
-
for (let n = e.length; n-- !== 0;) if (
|
|
241
|
+
for (let n = e.length; n-- !== 0;) if (!Q(e[n], t[n])) return !1;
|
|
242
242
|
return !0;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function xe(e, t) {
|
|
245
245
|
let n = Object.keys(e), { length: r } = n;
|
|
246
246
|
if (r !== Object.keys(t).length) return !1;
|
|
247
247
|
for (let e = r; e-- !== 0;) if (!Object.hasOwn(t, n[e])) return !1;
|
|
248
248
|
for (let i = r; i-- !== 0;) {
|
|
249
249
|
let r = n[i];
|
|
250
|
-
if (
|
|
250
|
+
if (!Q(e[r], t[r])) return !1;
|
|
251
251
|
}
|
|
252
252
|
return !0;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Q(e, t) {
|
|
255
255
|
if (e === t) return !0;
|
|
256
256
|
if (!e || !t || typeof e != "object" || typeof t != "object") return Number.isNaN(e) && Number.isNaN(t);
|
|
257
257
|
let n = Array.isArray(e), r = Array.isArray(t);
|
|
258
258
|
if (n !== r) return !1;
|
|
259
|
-
if (n && r) return
|
|
259
|
+
if (n && r) return be(e, t);
|
|
260
260
|
let i = e instanceof Date, a = t instanceof Date;
|
|
261
261
|
if (i !== a) return !1;
|
|
262
262
|
if (i && a) return e.getTime() === t.getTime();
|
|
263
263
|
let o = e instanceof RegExp, s = t instanceof RegExp;
|
|
264
|
-
return o === s ? o && s ? e.toString() === t.toString() :
|
|
264
|
+
return o === s ? o && s ? e.toString() === t.toString() : xe(e, t) : !1;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function $(e, t) {
|
|
267
267
|
if (e && Object.keys(e).length && t) {
|
|
268
268
|
if (!t.includes(".")) return e[t];
|
|
269
269
|
let n = t.split("."), r = e;
|
|
@@ -277,7 +277,7 @@ function xe(e, t) {
|
|
|
277
277
|
}
|
|
278
278
|
function Se(e, t) {
|
|
279
279
|
if (e != null && t?.length) {
|
|
280
|
-
for (let n of t) if (
|
|
280
|
+
for (let n of t) if (ye(e, n)) return !0;
|
|
281
281
|
}
|
|
282
282
|
return !1;
|
|
283
283
|
}
|
|
@@ -288,19 +288,19 @@ function we(e) {
|
|
|
288
288
|
return Array.isArray(e) ? e.filter((e) => Ce(e)).join(" ") : e;
|
|
289
289
|
}
|
|
290
290
|
function Te(e, t) {
|
|
291
|
-
let r =
|
|
291
|
+
let r = T(() => v(e) ? e.value : e), a = T(() => we(r.value.invalidLabel)), o = T(() => we(r.value.validLabel)), s = T(() => r.value.loadingLabel), c = T(() => r.value.hintLabel), l = T(() => !!(r.value.loading && (t.loading || s.value))), u = T(() => !l.value && !!(r.value.invalid && (t.invalid || a.value))), d = T(() => !l.value && !u.value && !!(r.value.valid && (t.valid || o.value))), f = T(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = T(() => u.value || d.value || l.value || f.value);
|
|
292
292
|
return {
|
|
293
|
-
hasInvalidLabelOrSlot:
|
|
294
|
-
hasHintLabelOrSlot:
|
|
295
|
-
hasValidLabelOrSlot:
|
|
296
|
-
hasLoadingLabelOrSlot:
|
|
297
|
-
hintSlotScope:
|
|
293
|
+
hasInvalidLabelOrSlot: u,
|
|
294
|
+
hasHintLabelOrSlot: f,
|
|
295
|
+
hasValidLabelOrSlot: d,
|
|
296
|
+
hasLoadingLabelOrSlot: l,
|
|
297
|
+
hintSlotScope: T(() => ({
|
|
298
298
|
modelValue: r.value.modelValue,
|
|
299
299
|
valid: r.value.valid,
|
|
300
300
|
invalid: r.value.invalid,
|
|
301
301
|
loading: r.value.loading
|
|
302
302
|
})),
|
|
303
|
-
HintSlot:
|
|
303
|
+
HintSlot: n({
|
|
304
304
|
name: "HintSlot",
|
|
305
305
|
props: { tag: {
|
|
306
306
|
type: String,
|
|
@@ -308,32 +308,32 @@ function Te(e, t) {
|
|
|
308
308
|
} },
|
|
309
309
|
setup() {
|
|
310
310
|
return {
|
|
311
|
-
isVisible:
|
|
312
|
-
invalidLabel:
|
|
313
|
-
validLabel:
|
|
314
|
-
loadingLabel:
|
|
315
|
-
hintLabel:
|
|
316
|
-
hasInvalidLabelOrSlot:
|
|
317
|
-
hasValidLabelOrSlot:
|
|
318
|
-
hasLoadingLabelOrSlot:
|
|
319
|
-
hasHintLabelOrSlot:
|
|
311
|
+
isVisible: p,
|
|
312
|
+
invalidLabel: a,
|
|
313
|
+
validLabel: o,
|
|
314
|
+
loadingLabel: s,
|
|
315
|
+
hintLabel: c,
|
|
316
|
+
hasInvalidLabelOrSlot: u,
|
|
317
|
+
hasValidLabelOrSlot: d,
|
|
318
|
+
hasLoadingLabelOrSlot: l,
|
|
319
|
+
hasHintLabelOrSlot: f
|
|
320
320
|
};
|
|
321
321
|
},
|
|
322
322
|
render() {
|
|
323
323
|
if (this.isVisible) {
|
|
324
324
|
let e;
|
|
325
|
-
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ?
|
|
325
|
+
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? i(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? i(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? i(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : i(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
326
326
|
}
|
|
327
327
|
return null;
|
|
328
328
|
}
|
|
329
329
|
})
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function Ee(
|
|
333
|
-
let
|
|
334
|
-
function
|
|
335
|
-
let i =
|
|
336
|
-
if (i) return
|
|
332
|
+
function Ee(e) {
|
|
333
|
+
let t = w(e, void 0), n = T(() => t !== void 0);
|
|
334
|
+
function r(e, n, r) {
|
|
335
|
+
let i = t?.[e];
|
|
336
|
+
if (i) return T({
|
|
337
337
|
get() {
|
|
338
338
|
return i.value;
|
|
339
339
|
},
|
|
@@ -341,8 +341,8 @@ function Ee(t) {
|
|
|
341
341
|
i.value = e;
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
let a =
|
|
345
|
-
return
|
|
344
|
+
let a = m(n, e);
|
|
345
|
+
return T({
|
|
346
346
|
get() {
|
|
347
347
|
return a.value;
|
|
348
348
|
},
|
|
@@ -352,9 +352,9 @@ function Ee(t) {
|
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
return {
|
|
355
|
-
group:
|
|
356
|
-
isInGroup:
|
|
357
|
-
getGroupOrLocalRef:
|
|
355
|
+
group: t,
|
|
356
|
+
isInGroup: n,
|
|
357
|
+
getGroupOrLocalRef: r
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
var De = ge, Oe = [
|
|
@@ -364,7 +364,7 @@ var De = ge, Oe = [
|
|
|
364
364
|
"blur"
|
|
365
365
|
];
|
|
366
366
|
function ke(e, t) {
|
|
367
|
-
let { id: n } =
|
|
367
|
+
let { id: n } = A(e), { group: r, isInGroup: i, getGroupOrLocalRef: a } = Ee(V);
|
|
368
368
|
return {
|
|
369
369
|
id: n,
|
|
370
370
|
group: r,
|
|
@@ -372,12 +372,12 @@ function ke(e, t) {
|
|
|
372
372
|
modelValue: a("modelValue", e, t),
|
|
373
373
|
valid: a("valid", e),
|
|
374
374
|
invalid: a("invalid", e),
|
|
375
|
-
readonly:
|
|
376
|
-
disabled:
|
|
375
|
+
readonly: T(() => !!(e.readonly || r?.readonly.value)),
|
|
376
|
+
disabled: T(() => !!(e.disabled || r?.disabled.value))
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
function Ae() {
|
|
380
|
-
return
|
|
380
|
+
return w(ne, void 0);
|
|
381
381
|
}
|
|
382
382
|
function je(e, t, n) {
|
|
383
383
|
let r = t;
|
|
@@ -392,10 +392,10 @@ function je(e, t, n) {
|
|
|
392
392
|
return r;
|
|
393
393
|
}
|
|
394
394
|
function Me(e, t, n) {
|
|
395
|
-
let r = Ae(), i =
|
|
395
|
+
let r = Ae(), i = T(() => {
|
|
396
396
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
397
397
|
});
|
|
398
|
-
return
|
|
398
|
+
return T(() => {
|
|
399
399
|
if (i.value === void 0) return n;
|
|
400
400
|
let e = i.value, r = t, a = n;
|
|
401
401
|
return Object.keys(r).reduce((t, n) => {
|
|
@@ -405,15 +405,15 @@ function Me(e, t, n) {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
function Ne(e) {
|
|
408
|
-
return
|
|
408
|
+
return T(() => String(e?.value || a()));
|
|
409
409
|
}
|
|
410
410
|
function Pe(e, t, n) {
|
|
411
|
-
return
|
|
411
|
+
return T(() => {
|
|
412
412
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
413
413
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
414
414
|
t && (r[`${e}--${t}`] = !0);
|
|
415
415
|
}), n && Object.keys(n.value).forEach((t) => {
|
|
416
|
-
r[`${e}--${t}`] =
|
|
416
|
+
r[`${e}--${t}`] = _(n.value[t]);
|
|
417
417
|
}), r;
|
|
418
418
|
});
|
|
419
419
|
}
|
|
@@ -426,73 +426,73 @@ var Fe = ["for"], Ie = [
|
|
|
426
426
|
"aria-invalid",
|
|
427
427
|
"aria-describedby",
|
|
428
428
|
"aria-errormessage"
|
|
429
|
-
], Le = /* @__PURE__ */
|
|
429
|
+
], Le = /* @__PURE__ */ n({
|
|
430
430
|
name: "VvRadio",
|
|
431
431
|
props: De,
|
|
432
432
|
emits: Oe,
|
|
433
|
-
setup(
|
|
434
|
-
let
|
|
435
|
-
if (
|
|
436
|
-
if (
|
|
437
|
-
}),
|
|
433
|
+
setup(n, { emit: i }) {
|
|
434
|
+
let a = n, s = i, c = D(), l = Me("VvRadio", De, a), { id: p, disabled: m, readonly: y, modelValue: x, valid: C, invalid: w } = ke(a, s), O = Ne(p), j = T(() => `${O.value}-hint`), te = T(() => P.value ? -1 : a.tabindex), N = E(), P = T(() => m.value || y.value), F = T(() => {
|
|
435
|
+
if (w.value === !0) return !0;
|
|
436
|
+
if (C.value === !0) return !1;
|
|
437
|
+
}), I = T(() => Array.isArray(x.value) ? Se(a.value, x.value) : ye(a.value, x.value)), L = T(() => ![
|
|
438
438
|
"string",
|
|
439
439
|
"number",
|
|
440
440
|
"boolean"
|
|
441
|
-
].includes(typeof
|
|
441
|
+
].includes(typeof a.value) || a.value), R = T({
|
|
442
442
|
get() {
|
|
443
|
-
return
|
|
443
|
+
return I.value ? L.value : null;
|
|
444
444
|
},
|
|
445
445
|
set(e) {
|
|
446
|
-
Array.isArray(
|
|
446
|
+
Array.isArray(x.value) ? x.value = [a.value] : x.value = a.value, s("change", e);
|
|
447
447
|
}
|
|
448
|
-
}), { modifiers:
|
|
449
|
-
valid:
|
|
450
|
-
invalid:
|
|
451
|
-
disabled:
|
|
448
|
+
}), { modifiers: z } = A(a), B = Pe("vv-radio", z, T(() => ({
|
|
449
|
+
valid: C.value,
|
|
450
|
+
invalid: w.value,
|
|
451
|
+
disabled: m.value,
|
|
452
452
|
readonly: y.value
|
|
453
|
-
}))), { HintSlot:
|
|
454
|
-
return (
|
|
455
|
-
class:
|
|
456
|
-
for:
|
|
453
|
+
}))), { HintSlot: ne, hasHintLabelOrSlot: V, hasInvalidLabelOrSlot: H, hintSlotScope: U } = Te(l, c);
|
|
454
|
+
return (n, i) => (o(), k("label", {
|
|
455
|
+
class: u(_(B)),
|
|
456
|
+
for: _(O)
|
|
457
457
|
}, [
|
|
458
|
-
|
|
459
|
-
id:
|
|
458
|
+
b(S("input", {
|
|
459
|
+
id: _(O),
|
|
460
460
|
ref_key: "input",
|
|
461
|
-
ref:
|
|
462
|
-
"onUpdate:modelValue":
|
|
461
|
+
ref: N,
|
|
462
|
+
"onUpdate:modelValue": i[0] ||= (e) => v(R) ? R.value = e : null,
|
|
463
463
|
type: "radio",
|
|
464
464
|
class: "vv-radio__input",
|
|
465
|
-
name:
|
|
466
|
-
disabled:
|
|
467
|
-
value:
|
|
468
|
-
tabindex:
|
|
469
|
-
"aria-invalid":
|
|
470
|
-
"aria-describedby":
|
|
471
|
-
"aria-errormessage":
|
|
472
|
-
}, null, 8, Ie), [[
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
id:
|
|
465
|
+
name: n.name,
|
|
466
|
+
disabled: _(P),
|
|
467
|
+
value: _(L),
|
|
468
|
+
tabindex: _(te),
|
|
469
|
+
"aria-invalid": _(F),
|
|
470
|
+
"aria-describedby": _(V) ? _(j) : void 0,
|
|
471
|
+
"aria-errormessage": _(H) ? _(j) : void 0
|
|
472
|
+
}, null, 8, Ie), [[h, _(R)]]),
|
|
473
|
+
t(n.$slots, "default", { value: _(x) }, () => [g(f(n.label), 1)]),
|
|
474
|
+
ee(_(ne), {
|
|
475
|
+
id: _(j),
|
|
476
476
|
class: "vv-radio__hint"
|
|
477
|
-
},
|
|
478
|
-
|
|
477
|
+
}, M({ _: 2 }, [
|
|
478
|
+
n.$slots.hint ? {
|
|
479
479
|
name: "hint",
|
|
480
|
-
fn:
|
|
480
|
+
fn: e(() => [t(n.$slots, "hint", r(d(_(U))))]),
|
|
481
481
|
key: "0"
|
|
482
482
|
} : void 0,
|
|
483
|
-
|
|
483
|
+
n.$slots.loading ? {
|
|
484
484
|
name: "loading",
|
|
485
|
-
fn:
|
|
485
|
+
fn: e(() => [t(n.$slots, "loading", r(d(_(U))))]),
|
|
486
486
|
key: "1"
|
|
487
487
|
} : void 0,
|
|
488
|
-
|
|
488
|
+
n.$slots.valid ? {
|
|
489
489
|
name: "valid",
|
|
490
|
-
fn:
|
|
490
|
+
fn: e(() => [t(n.$slots, "valid", r(d(_(U))))]),
|
|
491
491
|
key: "2"
|
|
492
492
|
} : void 0,
|
|
493
|
-
|
|
493
|
+
n.$slots.invalid ? {
|
|
494
494
|
name: "invalid",
|
|
495
|
-
fn:
|
|
495
|
+
fn: e(() => [t(n.$slots, "invalid", r(d(_(U))))]),
|
|
496
496
|
key: "3"
|
|
497
497
|
} : void 0
|
|
498
498
|
]), 1032, ["id"])
|
|
@@ -500,75 +500,75 @@ var Fe = ["for"], Ie = [
|
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
502
|
function Re(e, t) {
|
|
503
|
-
|
|
503
|
+
l(e, t);
|
|
504
504
|
}
|
|
505
505
|
function ze(e) {
|
|
506
|
-
let { options: t, labelKey: n, valueKey: r, disabledKey: i } =
|
|
506
|
+
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = A(e);
|
|
507
507
|
return {
|
|
508
508
|
options: t,
|
|
509
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
510
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
511
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
509
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? P(e, n.value) : e),
|
|
510
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? P(e, r.value) : e,
|
|
511
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!P(e, i.value) : !1,
|
|
512
512
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
var Be = ["textContent"], Ve = { class: "vv-radio-group__wrapper" }, He = /* @__PURE__ */
|
|
515
|
+
var Be = ["textContent"], Ve = { class: "vv-radio-group__wrapper" }, He = /* @__PURE__ */ n({
|
|
516
516
|
name: "VvRadioGroup",
|
|
517
517
|
props: _e,
|
|
518
518
|
emits: ve,
|
|
519
|
-
setup(
|
|
520
|
-
let
|
|
519
|
+
setup(n, { emit: i }) {
|
|
520
|
+
let a = n, c = i, l = D(), m = Me("VvRadioGroup", _e, a), h = N(a, "modelValue", c), { disabled: g, readonly: v, vertical: b, valid: C, invalid: w, modifiers: E } = A(a);
|
|
521
521
|
Re(V, {
|
|
522
|
-
modelValue:
|
|
523
|
-
disabled:
|
|
524
|
-
readonly:
|
|
525
|
-
valid:
|
|
526
|
-
invalid:
|
|
522
|
+
modelValue: h,
|
|
523
|
+
disabled: g,
|
|
524
|
+
readonly: v,
|
|
525
|
+
valid: C,
|
|
526
|
+
invalid: w
|
|
527
527
|
});
|
|
528
|
-
let { getOptionLabel:
|
|
529
|
-
disabled:
|
|
530
|
-
readonly:
|
|
531
|
-
required:
|
|
532
|
-
horizontal: !
|
|
533
|
-
valid:
|
|
534
|
-
invalid:
|
|
528
|
+
let { getOptionLabel: O, getOptionValue: j, isOptionDisabled: P } = ze(a), F = Pe("vv-radio-group", E, T(() => ({
|
|
529
|
+
disabled: g.value,
|
|
530
|
+
readonly: v.value,
|
|
531
|
+
required: a.required,
|
|
532
|
+
horizontal: !b.value,
|
|
533
|
+
valid: C.value,
|
|
534
|
+
invalid: w.value
|
|
535
535
|
})));
|
|
536
|
-
function
|
|
536
|
+
function I(e, t) {
|
|
537
537
|
return {
|
|
538
|
-
id: `${
|
|
539
|
-
name:
|
|
540
|
-
label:
|
|
541
|
-
value:
|
|
542
|
-
required:
|
|
543
|
-
disabled:
|
|
538
|
+
id: `${a.name}_opt${t}`,
|
|
539
|
+
name: a.name,
|
|
540
|
+
label: O(e),
|
|
541
|
+
value: j(e),
|
|
542
|
+
required: a.required,
|
|
543
|
+
disabled: P(e)
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
let { HintSlot:
|
|
547
|
-
return (
|
|
548
|
-
|
|
546
|
+
let { HintSlot: L, hintSlotScope: R } = Te(m, l);
|
|
547
|
+
return (n, i) => (o(), k("fieldset", { class: u(_(F)) }, [
|
|
548
|
+
n.label ? (o(), k("legend", {
|
|
549
549
|
key: 0,
|
|
550
|
-
textContent:
|
|
551
|
-
}, null, 8, Be)) :
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
550
|
+
textContent: f(n.label)
|
|
551
|
+
}, null, 8, Be)) : p("v-if", !0),
|
|
552
|
+
S("div", Ve, [n.options.length > 0 ? (o(!0), k(y, { key: 0 }, te(n.options, (e, t) => (o(), x(Le, s({ key: t }, { ref_for: !0 }, I(e, t)), null, 16))), 128)) : t(n.$slots, "default", {}, void 0, void 0, 1)]),
|
|
553
|
+
ee(_(L), { class: "vv-radio-group__hint" }, M({ _: 2 }, [
|
|
554
|
+
n.$slots.hint ? {
|
|
555
555
|
name: "hint",
|
|
556
|
-
fn:
|
|
556
|
+
fn: e(() => [t(n.$slots, "hint", r(d(_(R))))]),
|
|
557
557
|
key: "0"
|
|
558
558
|
} : void 0,
|
|
559
|
-
|
|
559
|
+
n.$slots.loading ? {
|
|
560
560
|
name: "loading",
|
|
561
|
-
fn:
|
|
561
|
+
fn: e(() => [t(n.$slots, "loading", r(d(_(R))))]),
|
|
562
562
|
key: "1"
|
|
563
563
|
} : void 0,
|
|
564
|
-
|
|
564
|
+
n.$slots.valid ? {
|
|
565
565
|
name: "valid",
|
|
566
|
-
fn:
|
|
566
|
+
fn: e(() => [t(n.$slots, "valid", r(d(_(R))))]),
|
|
567
567
|
key: "2"
|
|
568
568
|
} : void 0,
|
|
569
|
-
|
|
569
|
+
n.$slots.invalid ? {
|
|
570
570
|
name: "invalid",
|
|
571
|
-
fn:
|
|
571
|
+
fn: e(() => [t(n.$slots, "invalid", r(d(_(R))))]),
|
|
572
572
|
key: "3"
|
|
573
573
|
} : void 0
|
|
574
574
|
]), 1024)
|
|
@@ -578,4 +578,4 @@ var Be = ["textContent"], Ve = { class: "vv-radio-group__wrapper" }, He = /* @__
|
|
|
578
578
|
//#endregion
|
|
579
579
|
export { He as default };
|
|
580
580
|
|
|
581
|
-
//# sourceMappingURL=VvRadioGroup.es
|
|
581
|
+
//# sourceMappingURL=VvRadioGroup.es-DSv6UdEy.js.map
|