@8wave/ai-elements 0.106.0-beta.2 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{PkLazyImg-BoH1s5ni.js → PkLazyImg-Beug40gC.js} +2 -2
- package/dist/_chunks/{PkLazyImg-BoH1s5ni.js.map → PkLazyImg-Beug40gC.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js → PkToolRequestGeolocation-DUHzWOSe.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js.map → PkToolRequestGeolocation-DUHzWOSe.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js → PkToolRequestOAuthConnection-CdtnIiy6.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js.map → PkToolRequestOAuthConnection-CdtnIiy6.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js → PkToolShowArtifact-B0gZZGvT.js} +3 -3
- package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js.map → PkToolShowArtifact-B0gZZGvT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js → PkToolShowCalendarEvent-DpEWSENB.js} +3 -3
- package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js.map → PkToolShowCalendarEvent-DpEWSENB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js → PkToolShowComparison-DkHRpM8n.js} +3 -3
- package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js.map → PkToolShowComparison-DkHRpM8n.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js → PkToolShowContactForm-B8YI2e0B.js} +3 -3
- package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js.map → PkToolShowContactForm-B8YI2e0B.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js → PkToolShowDiagram-vmSzw6s0.js} +3 -3
- package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js.map → PkToolShowDiagram-vmSzw6s0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js → PkToolShowEmail-BtntDg5l.js} +3 -3
- package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js.map → PkToolShowEmail-BtntDg5l.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CadrjzZx.js → PkToolShowForm-gD0MfOjQ.js} +104 -104
- package/dist/_chunks/PkToolShowForm-gD0MfOjQ.js.map +1 -0
- package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js → PkToolShowImageGallery-DL-bFOKl.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js.map → PkToolShowImageGallery-DL-bFOKl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js → PkToolShowLocation-DXPAEQCf.js} +3 -3
- package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js.map → PkToolShowLocation-DXPAEQCf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js → PkToolShowMessage-WendSuVW.js} +3 -3
- package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js.map → PkToolShowMessage-WendSuVW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js → PkToolShowProductList-_ULcSOL_.js} +3 -3
- package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js.map → PkToolShowProductList-_ULcSOL_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js → PkToolShowQrCode-BIhYJSTf.js} +3 -3
- package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js.map → PkToolShowQrCode-BIhYJSTf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js → PkToolShowSources-BprUew-i.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js.map → PkToolShowSources-BprUew-i.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js → PkToolShowSuggestedReply-FJMsf1Ft.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js.map → PkToolShowSuggestedReply-FJMsf1Ft.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js → PkToolShowVideo-DXQo_Frk.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js.map → PkToolShowVideo-DXQo_Frk.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js → PkToolShowWeather-Ca-ZrKx3.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js.map → PkToolShowWeather-Ca-ZrKx3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js → PkToolShowWebPages-DxxqCOav.js} +3 -3
- package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js.map → PkToolShowWebPages-DxxqCOav.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js → VvCheckboxGroup.es-6rXZzFDs.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js.map → VvCheckboxGroup.es-6rXZzFDs.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js → VvCombobox.es-DgB4YbSj.js} +409 -409
- package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js.map → VvCombobox.es-DgB4YbSj.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js → VvInputText.es-UTEISDKU.js} +181 -181
- package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js.map → VvInputText.es-UTEISDKU.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js → VvRadioGroup.es-CqMnxRGR.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js.map → VvRadioGroup.es-CqMnxRGR.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js → VvSelect.es-BLNrNcIi.js} +6 -6
- package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js.map → VvSelect.es-BLNrNcIi.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js → VvTextarea.es-ChkbZSw6.js} +296 -296
- package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js.map → VvTextarea.es-ChkbZSw6.js.map} +1 -1
- package/dist/_chunks/{dist-vbhhaYbZ.js → dist-Dhop5_et.js} +91 -28
- package/dist/_chunks/{dist-vbhhaYbZ.js.map → dist-Dhop5_et.js.map} +1 -1
- package/dist/_chunks/{index.es-DFq55nZZ.js → index.es-CNKCTfCu.js} +93 -93
- package/dist/_chunks/{index.es-DFq55nZZ.js.map → index.es-CNKCTfCu.js.map} +1 -1
- package/dist/_chunks/{index.es-DhjFGu5c.js → index.es-DB9_sQvG.js} +16 -16
- package/dist/_chunks/{index.es-DhjFGu5c.js.map → index.es-DB9_sQvG.js.map} +1 -1
- package/dist/ai-elements.es.js +2334 -2327
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-a8Wh4tN4.js → PkChatbot-i_07-rvf.js} +76 -68
- package/dist-vue/_chunks/PkChatbot-i_07-rvf.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotEmptyState-C7W0QgqW.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-D6rNh6PF.js → PkChatbotMessages-CZLj_OeK.js} +4 -4
- package/dist-vue/_chunks/PkChatbotMessages-CZLj_OeK.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js → PkChatbotViewChat-B6MfjQIa.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js.map → PkChatbotViewChat-B6MfjQIa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js → PkToolShowDiagram-D7jh-yIc.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js.map → PkToolShowDiagram-D7jh-yIc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CJtmt5yd.js → PkToolShowForm-BGp_gbtr.js} +54 -54
- package/dist-vue/_chunks/PkToolShowForm-BGp_gbtr.js.map +1 -0
- package/dist-vue/index.js +8 -8
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkToolShowForm-CadrjzZx.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-a8Wh4tN4.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-D6rNh6PF.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowForm-CJtmt5yd.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, H as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, St as g, T as _, Tt as v, U as y, V as b, W as x, X as S, Z as C, _ as w, _t as T, a as E, b as D, bt as O, c as k, ct as A, d as j, et as M, g as N, h as P, i as ee, it as te, k as F, m as I, pt as L, q as ne, r as re, t as R, u as ie, ut as ae, v as z, vt as B, w as oe, wt as se, x as ce, xt as le, y as ue, yt as de, z as fe } from "./vue.runtime.esm-bundler-D6KKITU0.js";
|
|
2
2
|
import { a as V, i as pe, t as me } from "./iconify-tggsk9QV.js";
|
|
3
|
-
import { c as he,
|
|
4
|
-
import { a as U, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
3
|
+
import { c as he, f as ge, h as _e, l as ve, m as H, n as ye, o as be, r as xe, u as Se } from "./dist-Dhop5_et.js";
|
|
4
|
+
import { a as U, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as W, t as ke } from "./floating-ui.vue-DYDaUjxz.js";
|
|
5
|
+
import { t as Ae } from "./dot-prop-BEIkPL0b.js";
|
|
6
|
+
import { t as je } from "./esm-CHpQDpfH.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.20_@json-render+core@0.19.0_zod@4.5.4__@volverjs+style@0.1.27_@vue_f2b5a47152e93c3451249216f4e73d36/node_modules/@volverjs/ui-vue/dist/components/index.es.js
|
|
8
8
|
f(), re(), te(), le();
|
|
9
|
-
var
|
|
9
|
+
var G = {
|
|
10
10
|
showPassword: "eye-on",
|
|
11
11
|
hidePassword: "eye-off",
|
|
12
12
|
showDatePicker: "calendar",
|
|
@@ -17,7 +17,7 @@ var W = {
|
|
|
17
17
|
remove: "trash",
|
|
18
18
|
edit: "edit",
|
|
19
19
|
download: "download"
|
|
20
|
-
},
|
|
20
|
+
}, Me = { prefix: "normal" }, Ne = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.local = "local", e.session = "session", e;
|
|
22
22
|
})({}), Pe = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
@@ -96,7 +96,7 @@ var W = {
|
|
|
96
96
|
},
|
|
97
97
|
iconClear: {
|
|
98
98
|
type: [String, Object],
|
|
99
|
-
default:
|
|
99
|
+
default: G.clear
|
|
100
100
|
},
|
|
101
101
|
labelClear: {
|
|
102
102
|
type: String,
|
|
@@ -349,8 +349,8 @@ var W = {
|
|
|
349
349
|
} }, Et = {
|
|
350
350
|
storageType: {
|
|
351
351
|
type: String,
|
|
352
|
-
default:
|
|
353
|
-
validator: (e) => Object.values(
|
|
352
|
+
default: Ne.local,
|
|
353
|
+
validator: (e) => Object.values(Ne).includes(e)
|
|
354
354
|
},
|
|
355
355
|
storageKey: String
|
|
356
356
|
};
|
|
@@ -422,7 +422,7 @@ var jt = ["id", "open"], Mt = ["aria-controls", "aria-expanded"], Nt = ["aria-hi
|
|
|
422
422
|
props: Ot,
|
|
423
423
|
emits: kt,
|
|
424
424
|
setup(e, { expose: t, emit: r }) {
|
|
425
|
-
let a = e, o = r, c = x(), u =
|
|
425
|
+
let a = e, o = r, c = x(), u = _e(a, "modelValue", o), d = I(() => a.name || c?.id || s()), { title: f, content: m, not: h } = B(a), { isInGroup: y, modifiers: b, disabled: C, bus: w } = At(a), T = L(!1);
|
|
426
426
|
S(u, (e) => {
|
|
427
427
|
typeof e == "boolean" && (T.value = h.value ? !e : e);
|
|
428
428
|
}, { immediate: !0 }), S(T, (e) => {
|
|
@@ -510,25 +510,25 @@ var jt = ["id", "open"], Mt = ["aria-controls", "aria-expanded"], Nt = ["aria-hi
|
|
|
510
510
|
...X,
|
|
511
511
|
...Et
|
|
512
512
|
});
|
|
513
|
-
function Ft(e, t =
|
|
513
|
+
function Ft(e, t = Ne.local, n) {
|
|
514
514
|
let r = L();
|
|
515
515
|
n && (r.value = n);
|
|
516
516
|
let i;
|
|
517
517
|
return o(() => {
|
|
518
518
|
e && S(e, (e, n) => {
|
|
519
|
-
let a = O(t) ===
|
|
519
|
+
let a = O(t) === Ne.session ? sessionStorage : localStorage;
|
|
520
520
|
if (n && n !== e && a.removeItem(n), e) {
|
|
521
|
-
i =
|
|
521
|
+
i = H(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
524
524
|
i = void 0;
|
|
525
525
|
}, { immediate: !0 }), A(t) && S(t, (t, n) => {
|
|
526
526
|
if (e?.value) {
|
|
527
527
|
if (t) {
|
|
528
|
-
let n = t ===
|
|
529
|
-
i =
|
|
528
|
+
let n = t === Ne.session ? sessionStorage : localStorage;
|
|
529
|
+
i = H(e.value, i?.value ?? r.value, n);
|
|
530
530
|
}
|
|
531
|
-
n && n !== t && (n ===
|
|
531
|
+
n && n !== t && (n === Ne.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
}), S(r, (e) => {
|
|
@@ -756,7 +756,7 @@ var Q = /* @__PURE__ */ r({
|
|
|
756
756
|
onLoad: { type: Function },
|
|
757
757
|
svg: {},
|
|
758
758
|
modifiers: {}
|
|
759
|
-
},
|
|
759
|
+
}, Me),
|
|
760
760
|
setup(e) {
|
|
761
761
|
let t = e, n = I(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = L(!0), i = Rt(), { modifiers: a } = B(t), o = Z("vv-icon", a), s = I(() => t.provider || i?.iconsProvider), c = I(() => {
|
|
762
762
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
@@ -1307,9 +1307,9 @@ function Fn(e) {
|
|
|
1307
1307
|
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = B(e);
|
|
1308
1308
|
return {
|
|
1309
1309
|
options: t,
|
|
1310
|
-
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ?
|
|
1311
|
-
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ?
|
|
1312
|
-
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!
|
|
1310
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? Ae(e, n.value) : e),
|
|
1311
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? Ae(e, r.value) : e,
|
|
1312
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!Ae(e, i.value) : !1,
|
|
1313
1313
|
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
1314
1314
|
};
|
|
1315
1315
|
}
|
|
@@ -1318,7 +1318,7 @@ var In = ["textContent"], Ln = { class: "vv-checkbox-group__wrapper" }, Rn = /*
|
|
|
1318
1318
|
props: Ct,
|
|
1319
1319
|
emits: Pn,
|
|
1320
1320
|
setup(t, { emit: r }) {
|
|
1321
|
-
let a = t, o = r, s = ne(), c = An("VvCheckboxGroup", Ct, a), d =
|
|
1321
|
+
let a = t, o = r, s = ne(), c = An("VvCheckboxGroup", Ct, a), d = _e(a, "modelValue", o), { disabled: f, readonly: p, vertical: m, valid: h, invalid: y, modifiers: b } = B(a);
|
|
1322
1322
|
It(Ge, {
|
|
1323
1323
|
modelValue: d,
|
|
1324
1324
|
disabled: f,
|
|
@@ -1695,7 +1695,7 @@ var Yn = ["popover"], Xn = [
|
|
|
1695
1695
|
}
|
|
1696
1696
|
let ae = I(() => {
|
|
1697
1697
|
let e = [];
|
|
1698
|
-
if (s.autoPlacement ? e.push(ie(s.autoPlacement, () => Oe(), (e) => Oe(e))) : s.flip && e.push(ie(s.flip, () => U({ fallbackStrategy: "initialPlacement" }), (e) => U(e))), s.shift && e.push(ie(s.shift, () =>
|
|
1698
|
+
if (s.autoPlacement ? e.push(ie(s.autoPlacement, () => Oe(), (e) => Oe(e))) : s.flip && e.push(ie(s.flip, () => U({ fallbackStrategy: "initialPlacement" }), (e) => U(e))), s.shift && e.push(ie(s.shift, () => W(), (e) => W(e))), s.size) {
|
|
1699
1699
|
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
1700
1700
|
v.value = `${e}px`, b.value = `${t}px`;
|
|
1701
1701
|
};
|
|
@@ -1704,7 +1704,7 @@ var Yn = ["popover"], Xn = [
|
|
|
1704
1704
|
apply: t
|
|
1705
1705
|
})));
|
|
1706
1706
|
}
|
|
1707
|
-
return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? De(Number(s.offset)) : De(s.offset)), s.arrow && e.push(
|
|
1707
|
+
return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? De(Number(s.offset)) : De(s.offset)), s.arrow && e.push(ke({ element: E })), e;
|
|
1708
1708
|
}), { x: oe, y: le, middlewareData: ue, placement: de, strategy: fe } = Ee(A, T, {
|
|
1709
1709
|
whileElementsMounted: (...e) => we(...e, { animationFrame: ne.value === Pe.fixed }),
|
|
1710
1710
|
placement: I(() => s.placement),
|
|
@@ -1734,11 +1734,11 @@ var Yn = ["popover"], Xn = [
|
|
|
1734
1734
|
top: ue.value.arrow?.y === void 0 ? void 0 : `${ue.value.arrow?.y}px`,
|
|
1735
1735
|
[e]: `${-(E.value?.offsetWidth ?? 0) / 2}px`
|
|
1736
1736
|
};
|
|
1737
|
-
}), he =
|
|
1738
|
-
get: () => he.value ??
|
|
1737
|
+
}), he = _e(s, "modelValue", c), ve = L(!1), H = I({
|
|
1738
|
+
get: () => he.value ?? ve.value,
|
|
1739
1739
|
set: (e) => {
|
|
1740
1740
|
if (he.value === void 0) {
|
|
1741
|
-
|
|
1741
|
+
ve.value = e;
|
|
1742
1742
|
return;
|
|
1743
1743
|
}
|
|
1744
1744
|
he.value = e;
|
|
@@ -1750,19 +1750,19 @@ var Yn = ["popover"], Xn = [
|
|
|
1750
1750
|
function Te() {
|
|
1751
1751
|
H.value = !0;
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function Ae() {
|
|
1754
1754
|
H.value = !1;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function je() {
|
|
1757
1757
|
H.value = !H.value;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function G(e) {
|
|
1760
1760
|
A.value = e;
|
|
1761
1761
|
}
|
|
1762
1762
|
ye(T, () => {
|
|
1763
1763
|
!s.keepOpen && H.value && (H.value = !1);
|
|
1764
1764
|
}, { ignore: [A] });
|
|
1765
|
-
let
|
|
1765
|
+
let Me = I(() => A.value?.getAttribute?.("id") ?? void 0), Ne = I(() => ({
|
|
1766
1766
|
"aria-controls": p.value,
|
|
1767
1767
|
"aria-haspopup": !0,
|
|
1768
1768
|
"aria-expanded": H.value
|
|
@@ -1770,10 +1770,10 @@ var Yn = ["popover"], Xn = [
|
|
|
1770
1770
|
reference: A,
|
|
1771
1771
|
id: p,
|
|
1772
1772
|
expanded: H,
|
|
1773
|
-
aria:
|
|
1773
|
+
aria: Ne
|
|
1774
1774
|
});
|
|
1775
|
-
Ie.on("click",
|
|
1776
|
-
let { role: Le, modifiers: q } = B(s), Re = Z("vv-dropdown", q, I(() => ({ arrow: s.arrow }))), { focused: ze } =
|
|
1775
|
+
Ie.on("click", je);
|
|
1776
|
+
let { role: Le, modifiers: q } = B(s), Re = Z("vv-dropdown", q, I(() => ({ arrow: s.arrow }))), { focused: ze } = Se(T);
|
|
1777
1777
|
function Be(e) {
|
|
1778
1778
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
1779
1779
|
}
|
|
@@ -1816,10 +1816,10 @@ var Yn = ["popover"], Xn = [
|
|
|
1816
1816
|
S(H, (e) => {
|
|
1817
1817
|
e && s.autofocusFirst && Ve();
|
|
1818
1818
|
}), r({
|
|
1819
|
-
toggle:
|
|
1819
|
+
toggle: je,
|
|
1820
1820
|
show: Te,
|
|
1821
|
-
hide:
|
|
1822
|
-
init:
|
|
1821
|
+
hide: Ae,
|
|
1822
|
+
init: G,
|
|
1823
1823
|
focusFirst: Ve,
|
|
1824
1824
|
focusFirstListElement: He,
|
|
1825
1825
|
focusNext: Ue,
|
|
@@ -1832,13 +1832,13 @@ var Yn = ["popover"], Xn = [
|
|
|
1832
1832
|
focused: ze,
|
|
1833
1833
|
hovered: be(T)
|
|
1834
1834
|
});
|
|
1835
|
-
|
|
1836
|
-
H.value && (e.preventDefault(),
|
|
1837
|
-
}),
|
|
1835
|
+
xe("Escape", (e) => {
|
|
1836
|
+
H.value && (e.preventDefault(), Ae());
|
|
1837
|
+
}), xe("ArrowDown", (e) => {
|
|
1838
1838
|
H.value && ze.value && (e.preventDefault(), Ue());
|
|
1839
|
-
}),
|
|
1839
|
+
}), xe("ArrowUp", (e) => {
|
|
1840
1840
|
H.value && ze.value && (e.preventDefault(), We());
|
|
1841
|
-
}),
|
|
1841
|
+
}), xe([" ", "Enter"], (e) => {
|
|
1842
1842
|
let t = e.target;
|
|
1843
1843
|
H.value && ze.value && t && t?.click();
|
|
1844
1844
|
});
|
|
@@ -1870,12 +1870,12 @@ var Yn = ["popover"], Xn = [
|
|
|
1870
1870
|
};
|
|
1871
1871
|
return (t, r) => (l(), z(j, null, [ce(O(Fe), null, {
|
|
1872
1872
|
default: e(() => [n(t.$slots, "default", i(_({
|
|
1873
|
-
init:
|
|
1873
|
+
init: G,
|
|
1874
1874
|
show: Te,
|
|
1875
|
-
hide:
|
|
1876
|
-
toggle:
|
|
1875
|
+
hide: Ae,
|
|
1876
|
+
toggle: je,
|
|
1877
1877
|
expanded: O(H),
|
|
1878
|
-
aria: O(
|
|
1878
|
+
aria: O(Ne)
|
|
1879
1879
|
})))]),
|
|
1880
1880
|
_: 3
|
|
1881
1881
|
}), ce(R, u({ name: t.transitionName }, y(Ke), { persisted: "" }), {
|
|
@@ -1895,8 +1895,8 @@ var Yn = ["popover"], Xn = [
|
|
|
1895
1895
|
}, null, 4)) : w("v-if", !0),
|
|
1896
1896
|
n(t.$slots, "before", i(_({
|
|
1897
1897
|
show: Te,
|
|
1898
|
-
hide:
|
|
1899
|
-
toggle:
|
|
1898
|
+
hide: Ae,
|
|
1899
|
+
toggle: je,
|
|
1900
1900
|
expanded: O(H)
|
|
1901
1901
|
}))),
|
|
1902
1902
|
P("div", u(O(h), {
|
|
@@ -1905,19 +1905,19 @@ var Yn = ["popover"], Xn = [
|
|
|
1905
1905
|
ref: D,
|
|
1906
1906
|
tabindex: O(H) ? void 0 : -1,
|
|
1907
1907
|
role: O(Le),
|
|
1908
|
-
"aria-labelledby": O(
|
|
1908
|
+
"aria-labelledby": O(Me),
|
|
1909
1909
|
class: "vv-dropdown__list"
|
|
1910
1910
|
}), [n(t.$slots, "items", i(_({
|
|
1911
1911
|
show: Te,
|
|
1912
|
-
hide:
|
|
1913
|
-
toggle:
|
|
1912
|
+
hide: Ae,
|
|
1913
|
+
toggle: je,
|
|
1914
1914
|
expanded: O(H),
|
|
1915
1915
|
role: O(Ge)
|
|
1916
1916
|
})))], 16, Xn),
|
|
1917
1917
|
n(t.$slots, "after", i(_({
|
|
1918
1918
|
show: Te,
|
|
1919
|
-
hide:
|
|
1920
|
-
toggle:
|
|
1919
|
+
hide: Ae,
|
|
1920
|
+
toggle: je,
|
|
1921
1921
|
expanded: O(H)
|
|
1922
1922
|
})))
|
|
1923
1923
|
], 14, Yn), [[k, O(H)]])]),
|
|
@@ -1932,7 +1932,7 @@ var Qn = /* @__PURE__ */ r({
|
|
|
1932
1932
|
setup(e) {
|
|
1933
1933
|
let t = e, { role: r, expanded: i } = Bt(), a = L(null);
|
|
1934
1934
|
Jn({ expanded: i });
|
|
1935
|
-
let o = be(a), { focused: s } =
|
|
1935
|
+
let o = be(a), { focused: s } = ve(a), { focused: c } = Se(a);
|
|
1936
1936
|
return S(o, (e) => {
|
|
1937
1937
|
e && t.focusOnHover && (s.value = !0);
|
|
1938
1938
|
}), (e, t) => (l(), z("div", u({ role: O(r) }, {
|
|
@@ -2022,7 +2022,7 @@ function nr() {
|
|
|
2022
2022
|
};
|
|
2023
2023
|
}
|
|
2024
2024
|
function rr(e, t) {
|
|
2025
|
-
let { focused: n } =
|
|
2025
|
+
let { focused: n } = ve(e);
|
|
2026
2026
|
return S(n, (n) => {
|
|
2027
2027
|
t(n ? "focus" : "blur", O(e));
|
|
2028
2028
|
}), { focused: n };
|
|
@@ -2072,7 +2072,7 @@ var ir = [
|
|
|
2072
2072
|
props: ar,
|
|
2073
2073
|
emits: ir,
|
|
2074
2074
|
setup(t, { expose: r, emit: i }) {
|
|
2075
|
-
let a = t, o = i, s = L(), c =
|
|
2075
|
+
let a = t, o = i, s = L(), c = _e(a, "modelValue", o), d = L(!1), f = I({
|
|
2076
2076
|
get: () => c.value ?? d.value,
|
|
2077
2077
|
set: (e) => {
|
|
2078
2078
|
if (c.value === void 0) {
|
|
@@ -2188,7 +2188,7 @@ var ir = [
|
|
|
2188
2188
|
...Y,
|
|
2189
2189
|
...et,
|
|
2190
2190
|
...ft
|
|
2191
|
-
}),
|
|
2191
|
+
}), G.add, G.edit, G.download, {
|
|
2192
2192
|
...vt,
|
|
2193
2193
|
...yt,
|
|
2194
2194
|
...pt,
|
|
@@ -2328,19 +2328,19 @@ var $ = {
|
|
|
2328
2328
|
multiple: Boolean,
|
|
2329
2329
|
iconShowPassword: {
|
|
2330
2330
|
type: [String, Object],
|
|
2331
|
-
default:
|
|
2331
|
+
default: G.showPassword
|
|
2332
2332
|
},
|
|
2333
2333
|
iconHidePassword: {
|
|
2334
2334
|
type: [String, Object],
|
|
2335
|
-
default:
|
|
2335
|
+
default: G.hidePassword
|
|
2336
2336
|
},
|
|
2337
2337
|
iconClear: {
|
|
2338
2338
|
type: [String, Object],
|
|
2339
|
-
default:
|
|
2339
|
+
default: G.clear
|
|
2340
2340
|
},
|
|
2341
2341
|
iconRemoveSuggestion: {
|
|
2342
2342
|
type: [String, Object],
|
|
2343
|
-
default:
|
|
2343
|
+
default: G.remove
|
|
2344
2344
|
},
|
|
2345
2345
|
labelStepUp: {
|
|
2346
2346
|
type: String,
|
|
@@ -2421,11 +2421,11 @@ var $ = {
|
|
|
2421
2421
|
},
|
|
2422
2422
|
iconShow: {
|
|
2423
2423
|
type: [String, Object],
|
|
2424
|
-
default:
|
|
2424
|
+
default: G.showPassword
|
|
2425
2425
|
},
|
|
2426
2426
|
iconHide: {
|
|
2427
2427
|
type: [String, Object],
|
|
2428
|
-
default:
|
|
2428
|
+
default: G.hidePassword
|
|
2429
2429
|
}
|
|
2430
2430
|
},
|
|
2431
2431
|
emits: ["toggle-password"],
|
|
@@ -2592,8 +2592,8 @@ var Or = ["for"], kr = {
|
|
|
2592
2592
|
let s = t, c = a, d = ne(), f = Rt(), p = An("VvInputText", Cr, s), { count: m, debounce: h, icon: y, iconPosition: b, iconRemoveSuggestion: x, id: C, invalid: T, label: E, labelRemoveSuggestion: k, loading: A, maxlength: M, minlength: ee, modelValue: te, step: F, storageType: re, type: R, unit: ae, valid: oe } = B(s), se = Wt(C), le = I(() => `${se.value}-hint`), de = I(() => s.floating && hn(s.placeholder) ? " " : s.placeholder), { model: V, flush: pe } = fr(te, c, h), me = I(() => {
|
|
2593
2593
|
let e = typeof F.value == "number" ? F.value : Number.parseInt(F.value);
|
|
2594
2594
|
return !Number.isNaN(e) && e % 60 != 0;
|
|
2595
|
-
}),
|
|
2596
|
-
if (!s.iMask) return { mask:
|
|
2595
|
+
}), ge = /^-0?[.,]?[0*]?$/, _e = /./, ve = /^-$|^$/, H = L(!1), ye = L(), be = L(), { el: xe, mask: Se, typed: U, masked: Ce, unmasked: we } = je(I(() => {
|
|
2596
|
+
if (!s.iMask) return { mask: _e };
|
|
2597
2597
|
if (s.iMask.mask === Number) {
|
|
2598
2598
|
let e = { ...s.iMask };
|
|
2599
2599
|
return s.min && (e.min = Number(s.min)), s.max && (e.max = Number(s.max)), e;
|
|
@@ -2602,7 +2602,7 @@ var Or = ["for"], kr = {
|
|
|
2602
2602
|
}), {
|
|
2603
2603
|
emit: c,
|
|
2604
2604
|
onAccept: () => {
|
|
2605
|
-
if (
|
|
2605
|
+
if (H.value) {
|
|
2606
2606
|
if (c("update:masked", Ce.value), R.value === $.NUMBER) {
|
|
2607
2607
|
Te();
|
|
2608
2608
|
return;
|
|
@@ -2616,12 +2616,12 @@ var Or = ["for"], kr = {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
});
|
|
2618
2618
|
function Te() {
|
|
2619
|
-
if (
|
|
2619
|
+
if (ve.test(we.value)) {
|
|
2620
2620
|
if (V.value === null || V.value === void 0) return;
|
|
2621
2621
|
V.value = void 0;
|
|
2622
2622
|
return;
|
|
2623
2623
|
}
|
|
2624
|
-
if (
|
|
2624
|
+
if (ge.test(we.value)) {
|
|
2625
2625
|
V.value = 0;
|
|
2626
2626
|
return;
|
|
2627
2627
|
}
|
|
@@ -2671,7 +2671,7 @@ var Or = ["for"], kr = {
|
|
|
2671
2671
|
U.value = e instanceof Date ? e : new Date(e);
|
|
2672
2672
|
return;
|
|
2673
2673
|
}
|
|
2674
|
-
if (!(R.value === $.NUMBER &&
|
|
2674
|
+
if (!(R.value === $.NUMBER && ge.test(we.value) && e === 0)) {
|
|
2675
2675
|
if (X.value) {
|
|
2676
2676
|
if (e instanceof Date || hr(e)) {
|
|
2677
2677
|
if (e instanceof Date ? (ye.value = e, be.value = void 0) : (be.value = e, ye.value = void 0), R.value !== $.WEEK) {
|
|
@@ -2686,25 +2686,25 @@ var Or = ["for"], kr = {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
2688
2688
|
o(() => {
|
|
2689
|
-
Se.value && (
|
|
2689
|
+
Se.value && (H.value = !0, Oe(s.modelValue));
|
|
2690
2690
|
}), S(() => s.modelValue, (e) => {
|
|
2691
2691
|
Se.value && Oe(e);
|
|
2692
2692
|
}), S(() => s.masked, (e) => {
|
|
2693
2693
|
Ce.value = e ?? "";
|
|
2694
2694
|
});
|
|
2695
|
-
let
|
|
2695
|
+
let W = xe, ke = L(), Ae = L(), Me = L();
|
|
2696
2696
|
r({
|
|
2697
|
-
$input:
|
|
2698
|
-
$inner:
|
|
2699
|
-
$wrapper:
|
|
2697
|
+
$input: W,
|
|
2698
|
+
$inner: ke,
|
|
2699
|
+
$wrapper: Ae,
|
|
2700
2700
|
flush: pe
|
|
2701
2701
|
});
|
|
2702
|
-
let { focused:
|
|
2702
|
+
let { focused: Ne } = rr(W, c), Pe = I(() => Ne.value && !s.disabled && !s.readonly);
|
|
2703
2703
|
function K(e) {
|
|
2704
2704
|
e ? Fe() : Ie();
|
|
2705
2705
|
}
|
|
2706
2706
|
function Fe() {
|
|
2707
|
-
p.value.selectOnFocus &&
|
|
2707
|
+
p.value.selectOnFocus && W.value && W.value.select(), et.value.size && Me.value?.show();
|
|
2708
2708
|
}
|
|
2709
2709
|
function Ie() {
|
|
2710
2710
|
let e = pe() ?? V.value;
|
|
@@ -2713,9 +2713,9 @@ var Or = ["for"], kr = {
|
|
|
2713
2713
|
Y.value.size >= t && !Y.value.has(e) && (Y.value = new Set([...Y.value].slice(Y.value.size - t + 1))), Y.value.add(e);
|
|
2714
2714
|
}
|
|
2715
2715
|
S(Pe, K);
|
|
2716
|
-
let Le =
|
|
2716
|
+
let Le = he(W);
|
|
2717
2717
|
S(Le, (e) => {
|
|
2718
|
-
e && s.autofocus && !s.disabled && !s.readonly && (
|
|
2718
|
+
e && s.autofocus && !s.disabled && !s.readonly && (Ne.value = !0);
|
|
2719
2719
|
});
|
|
2720
2720
|
let q = L(!1), Re = I(() => s.type === $.PASSWORD);
|
|
2721
2721
|
function ze() {
|
|
@@ -2728,7 +2728,7 @@ var Or = ["for"], kr = {
|
|
|
2728
2728
|
U.value = Number(U.value) + Number(F?.value ?? 1);
|
|
2729
2729
|
return;
|
|
2730
2730
|
}
|
|
2731
|
-
|
|
2731
|
+
W.value.stepUp(), V.value = Number(W.value.value);
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
2734
|
function Ue() {
|
|
@@ -2737,7 +2737,7 @@ var Or = ["for"], kr = {
|
|
|
2737
2737
|
U.value = Number(U.value) - Number(F?.value ?? 1);
|
|
2738
2738
|
return;
|
|
2739
2739
|
}
|
|
2740
|
-
|
|
2740
|
+
W.value.stepDown(), V.value = Number(W.value.value);
|
|
2741
2741
|
}
|
|
2742
2742
|
}
|
|
2743
2743
|
let We = I(() => s.type === $.SEARCH);
|
|
@@ -2747,12 +2747,12 @@ var Or = ["for"], kr = {
|
|
|
2747
2747
|
let { hasIconBefore: Ke, hasIconAfter: qe } = Gt(y, b), Je = I(() => {
|
|
2748
2748
|
if (qe.value !== void 0) return qe.value;
|
|
2749
2749
|
switch (s.type) {
|
|
2750
|
-
case $.COLOR: return { name:
|
|
2750
|
+
case $.COLOR: return { name: G.showColorPicker };
|
|
2751
2751
|
case $.DATE:
|
|
2752
2752
|
case $.DATETIME_LOCAL:
|
|
2753
2753
|
case $.WEEK:
|
|
2754
|
-
case $.MONTH: return { name:
|
|
2755
|
-
case $.TIME: return { name:
|
|
2754
|
+
case $.MONTH: return { name: G.showDatePicker };
|
|
2755
|
+
case $.TIME: return { name: G.showTimePicker };
|
|
2756
2756
|
}
|
|
2757
2757
|
}), { hasIcon: Ye } = Gt(x), { formatted: Xe } = Dr(V, {
|
|
2758
2758
|
mode: m.value,
|
|
@@ -2768,7 +2768,7 @@ var Or = ["for"], kr = {
|
|
|
2768
2768
|
return e;
|
|
2769
2769
|
}), tt = I(() => et.value.size === 0 ? [] : [...et.value.entries()].filter(([e]) => hn(V.value) || `${e}`.toLowerCase().includes(`${V.value}`.toLowerCase()) && e !== V.value).reverse().map(([e]) => e)), nt = I(() => et.value.size > 0);
|
|
2770
2770
|
function rt(e) {
|
|
2771
|
-
V.value = e,
|
|
2771
|
+
V.value = e, Me.value?.hide(), c("suggestion:selected", e);
|
|
2772
2772
|
}
|
|
2773
2773
|
function it(e) {
|
|
2774
2774
|
et.value.get(e)?.isFromStorage && (Y.value?.delete(e), c("suggestion:removed", e));
|
|
@@ -2807,7 +2807,7 @@ var Or = ["for"], kr = {
|
|
|
2807
2807
|
$.EMAIL,
|
|
2808
2808
|
$.PASSWORD
|
|
2809
2809
|
].includes(R.value)), lt = I(() => {
|
|
2810
|
-
let e = Re.value && q.value || Be.value && !J.value && !
|
|
2810
|
+
let e = Re.value && q.value || Be.value && !J.value && !Ne.value || s.iMask ? $.TEXT : s.type, t = {
|
|
2811
2811
|
type: e,
|
|
2812
2812
|
name: s.name,
|
|
2813
2813
|
tabindex: Qe.value,
|
|
@@ -2835,7 +2835,7 @@ var Or = ["for"], kr = {
|
|
|
2835
2835
|
clear: Ge
|
|
2836
2836
|
})), { HintSlot: dt, hasHintLabelOrSlot: ft, hasInvalidLabelOrSlot: pt, hintSlotScope: mt } = On(p, d), ht = Er($.PASSWORD, s, J), gt = Er($.NUMBER, s, J), _t = Er($.SEARCH, s, J);
|
|
2837
2837
|
function vt() {
|
|
2838
|
-
Ze.value || (
|
|
2838
|
+
Ze.value || (Ne.value = !0);
|
|
2839
2839
|
}
|
|
2840
2840
|
let yt = I(() => {
|
|
2841
2841
|
if (s.autoWidth) return { width: V.value === void 0 ? void 0 : `${String(V.value).length + 1}ch` };
|
|
@@ -2861,13 +2861,13 @@ var Or = ["for"], kr = {
|
|
|
2861
2861
|
}, v(O(E)), 9, Or)) : w("v-if", !0),
|
|
2862
2862
|
P("div", {
|
|
2863
2863
|
ref_key: "wrapperEl",
|
|
2864
|
-
ref:
|
|
2864
|
+
ref: Ae,
|
|
2865
2865
|
class: "vv-input-text__wrapper"
|
|
2866
2866
|
}, [
|
|
2867
2867
|
t.$slots.before ? (l(), z("div", kr, [n(t.$slots, "before", i(_(O(ut))))])) : w("v-if", !0),
|
|
2868
2868
|
P("div", {
|
|
2869
2869
|
ref_key: "innerEl",
|
|
2870
|
-
ref:
|
|
2870
|
+
ref: ke,
|
|
2871
2871
|
class: "vv-input-text__inner",
|
|
2872
2872
|
onClick: ie(vt, ["stop"])
|
|
2873
2873
|
}, [
|
|
@@ -2875,7 +2875,7 @@ var Or = ["for"], kr = {
|
|
|
2875
2875
|
P("input", u({
|
|
2876
2876
|
id: O(se),
|
|
2877
2877
|
ref_key: "inputEl",
|
|
2878
|
-
ref:
|
|
2878
|
+
ref: W
|
|
2879
2879
|
}, O(lt), {
|
|
2880
2880
|
style: O(yt),
|
|
2881
2881
|
onKeyup: r[0] ||= (e) => c("keyup", e),
|
|
@@ -2926,8 +2926,8 @@ var Or = ["for"], kr = {
|
|
|
2926
2926
|
O(nt) ? (l(), N(Zn, {
|
|
2927
2927
|
key: 1,
|
|
2928
2928
|
ref_key: "suggestionsDropdownEl",
|
|
2929
|
-
ref:
|
|
2930
|
-
reference: O(
|
|
2929
|
+
ref: Me,
|
|
2930
|
+
reference: O(Ae),
|
|
2931
2931
|
"autofocus-first": !1,
|
|
2932
2932
|
"trigger-width": !0,
|
|
2933
2933
|
"top-layer": O(p).topLayer
|
|
@@ -3060,7 +3060,7 @@ var Br = ["for"], Vr = [
|
|
|
3060
3060
|
props: Ct,
|
|
3061
3061
|
emits: Ur,
|
|
3062
3062
|
setup(t, { emit: r }) {
|
|
3063
|
-
let a = t, o = r, s = ne(), c = An("VvRadioGroup", Ct, a), d =
|
|
3063
|
+
let a = t, o = r, s = ne(), c = An("VvRadioGroup", Ct, a), d = _e(a, "modelValue", o), { disabled: f, readonly: p, vertical: m, valid: h, invalid: y, modifiers: b } = B(a);
|
|
3064
3064
|
It(We, {
|
|
3065
3065
|
modelValue: d,
|
|
3066
3066
|
disabled: f,
|
|
@@ -3130,8 +3130,8 @@ var qr = {
|
|
|
3130
3130
|
({
|
|
3131
3131
|
...xt,
|
|
3132
3132
|
...Et
|
|
3133
|
-
}), qr.soft, Jr.default,
|
|
3133
|
+
}), qr.soft, Jr.default, G.remove, _t.topLayer, { ...X }, K.bottom;
|
|
3134
3134
|
//#endregion
|
|
3135
3135
|
export { yn as a, Nn as c, Kr as d, Hr as f, Cn as i, Zn as l, dr as m, Q as n, ur as o, Pt as p, en as r, Rn as s, an as t, Ir as u };
|
|
3136
3136
|
|
|
3137
|
-
//# sourceMappingURL=index.es-
|
|
3137
|
+
//# sourceMappingURL=index.es-CNKCTfCu.js.map
|