@8wave/ai-elements 0.124.0-beta.6 → 0.124.0-beta.8
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/{PkChatbotFilePreview-Dk748hZ0.js → PkChatbotFilePreview-DuvRnOes.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-Dk748hZ0.js.map → PkChatbotFilePreview-DuvRnOes.js.map} +1 -1
- package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js → PkEditorRadioButtons-Cif9q08d.js} +2 -2
- package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js.map → PkEditorRadioButtons-Cif9q08d.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-CC2W-RXG.js → PkFilePreview-D_piCsAW.js} +203 -203
- package/dist/_chunks/{PkFilePreview-CC2W-RXG.js.map → PkFilePreview-D_piCsAW.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js → PkFilePreviewDialog-Bq0ipzrJ.js} +3 -3
- package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js.map → PkFilePreviewDialog-Bq0ipzrJ.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-BUHSVQzX.js → PkHeldImage-EMuOT-Iv.js} +2 -2
- package/dist/_chunks/{PkHeldImage-BUHSVQzX.js.map → PkHeldImage-EMuOT-Iv.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-B7PfEr4P.js → PkLazyImg-CLCyyzuo.js} +2 -2
- package/dist/_chunks/{PkLazyImg-B7PfEr4P.js.map → PkLazyImg-CLCyyzuo.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js → PkStreamingMarkdown-CHwrLP75.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js.map → PkStreamingMarkdown-CHwrLP75.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-BMj7-urz.js → PkToolChatFile-DO4zjMJr.js} +4 -4
- package/dist/_chunks/{PkToolChatFile-BMj7-urz.js.map → PkToolChatFile-DO4zjMJr.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js → PkToolRequestGeolocation-C9PSITRU.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js.map → PkToolRequestGeolocation-C9PSITRU.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js → PkToolRequestOAuthConnection-CWi5SeCi.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js.map → PkToolRequestOAuthConnection-CWi5SeCi.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js → PkToolShareDocument-Buzu27rQ.js} +6 -6
- package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js.map → PkToolShareDocument-Buzu27rQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js → PkToolShowArtifact-B2-3-k2F.js} +4 -4
- package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js.map → PkToolShowArtifact-B2-3-k2F.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js → PkToolShowCalendarEvent-mVY2FS24.js} +4 -4
- package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js.map → PkToolShowCalendarEvent-mVY2FS24.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js → PkToolShowComparison-7NCImocZ.js} +4 -4
- package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js.map → PkToolShowComparison-7NCImocZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js → PkToolShowContactForm-DbOZHB_G.js} +5 -5
- package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js.map → PkToolShowContactForm-DbOZHB_G.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js → PkToolShowDiagram-BHd-C_cx.js} +4 -4
- package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js.map → PkToolShowDiagram-BHd-C_cx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js → PkToolShowEmail-B9F7dnif.js} +4 -4
- package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js.map → PkToolShowEmail-B9F7dnif.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js → PkToolShowForm-o2LuWDNq.js} +6 -6
- package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js.map → PkToolShowForm-o2LuWDNq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js → PkToolShowImageGallery-DAcW2Dau.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js.map → PkToolShowImageGallery-DAcW2Dau.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js → PkToolShowLocation-CLS9HQIJ.js} +4 -4
- package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js.map → PkToolShowLocation-CLS9HQIJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js → PkToolShowMessage-BoKDMyvU.js} +4 -4
- package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js.map → PkToolShowMessage-BoKDMyvU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js → PkToolShowProductList-OYwQCHar.js} +4 -4
- package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js.map → PkToolShowProductList-OYwQCHar.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js → PkToolShowQrCode-e6DxEcWY.js} +4 -4
- package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js.map → PkToolShowQrCode-e6DxEcWY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CTc2s510.js → PkToolShowSources-CUNneZCp.js} +4 -4
- package/dist/_chunks/{PkToolShowSources-CTc2s510.js.map → PkToolShowSources-CUNneZCp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js → PkToolShowSuggestedReply-BTE7TZ4Z.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js.map → PkToolShowSuggestedReply-BTE7TZ4Z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js → PkToolShowVideo-bTWeXtZd.js} +3 -3
- package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js.map → PkToolShowVideo-bTWeXtZd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js → PkToolShowWeather-Nr7POGAS.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js.map → PkToolShowWeather-Nr7POGAS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js → PkToolShowWebPages-DNbdkSSz.js} +4 -4
- package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js.map → PkToolShowWebPages-DNbdkSSz.js.map} +1 -1
- package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js → VvButtonLocalized-KEhD3ono.js} +2 -2
- package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js.map → VvButtonLocalized-KEhD3ono.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js → VvCheckboxGroup.es-D67JvxVf.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js.map → VvCheckboxGroup.es-D67JvxVf.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-D8QFCY85.js → VvCombobox.es-Bb9Dbtdg.js} +457 -457
- package/dist/_chunks/{VvCombobox.es-D8QFCY85.js.map → VvCombobox.es-Bb9Dbtdg.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-CaN-GUXU.js → VvInputText.es-CWgEXnVy.js} +396 -396
- package/dist/_chunks/{VvInputText.es-CaN-GUXU.js.map → VvInputText.es-CWgEXnVy.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js → VvRadioGroup.es-B3UbDh0z.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js.map → VvRadioGroup.es-B3UbDh0z.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js → VvSelect.es-BZkBK0gK.js} +170 -170
- package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js.map → VvSelect.es-BZkBK0gK.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-BNgA61wM.js → VvTextarea.es-C8vAvoJh.js} +139 -139
- package/dist/_chunks/{VvTextarea.es-BNgA61wM.js.map → VvTextarea.es-C8vAvoJh.js.map} +1 -1
- package/dist/_chunks/{dist-m75acBC9.js → dist-B3-I_01H.js} +67 -15
- package/dist/_chunks/dist-B3-I_01H.js.map +1 -0
- package/dist/_chunks/{index.es-fkUmGg9G.js → index.es-C7ON2BA3.js} +38 -38
- package/dist/_chunks/{index.es-fkUmGg9G.js.map → index.es-C7ON2BA3.js.map} +1 -1
- package/dist/_chunks/{index.es-DRbDRAW5.js → index.es-CYAq7LJb.js} +10 -10
- package/dist/_chunks/{index.es-DRbDRAW5.js.map → index.es-CYAq7LJb.js.map} +1 -1
- package/dist/_chunks/{utils-DAQfsk2H.js → utils-BHvRrCzW.js} +6 -2
- package/dist/_chunks/utils-BHvRrCzW.js.map +1 -0
- package/dist/ai-elements.es.js +2747 -2727
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/_chunks/utils-BuxgMuKv.js.map +1 -1
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +9 -0
- package/dist-vue/packages/components/src/chat/PkPageControlBar.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +8 -0
- package/package.json +1 -1
- package/dist/_chunks/dist-m75acBC9.js.map +0 -1
- package/dist/_chunks/utils-DAQfsk2H.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, K as l, L as u, M as d, Ot as f, P as p, Q as m, S as ee, St as h, Tt as
|
|
2
|
-
import { a as
|
|
3
|
-
import { b as
|
|
1
|
+
import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, K as l, L as u, M as d, Ot as f, P as p, Q as m, S as ee, St as h, Tt as te, V as ne, Y as re, _ as g, b as _, c as ie, d as v, et as ae, f as oe, g as y, gt as b, h as x, k as S, kt as C, l as se, nt as ce, ot as le, pt as ue, q as de, r as w, t as fe, tt as T, ut as E, v as D, w as O, wt as k, x as A, xt as pe, y as j, z as M } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
|
|
2
|
+
import { a as N, i as me, t as he } from "./iconify-oSMMdRMF.js";
|
|
3
|
+
import { b as ge, c as _e, d as P, f as ve, h as F, n as ye, r as I, u as be, x as L } from "./dist-B3-I_01H.js";
|
|
4
4
|
import { a as xe, c as R, i as Se, l as Ce, n as we, o as Te, r as Ee, s as De, t as Oe } from "./floating-ui.vue-HobyB7z6.js";
|
|
5
5
|
// ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.25_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_6457cdc65e61a009108dae6427ee3925/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
|
|
6
|
-
|
|
6
|
+
S(), w(), le(), te();
|
|
7
7
|
var z = {
|
|
8
8
|
showPassword: "eye-on",
|
|
9
9
|
hidePassword: "eye-off",
|
|
@@ -367,13 +367,13 @@ function dt(e) {
|
|
|
367
367
|
return Array.isArray(e) ? e.filter((e) => ut(e)).join(" ") : e;
|
|
368
368
|
}
|
|
369
369
|
function ft(e, t) {
|
|
370
|
-
let r =
|
|
370
|
+
let r = x(() => E(e) ? e.value : e), i = x(() => dt(r.value.invalidLabel)), a = x(() => dt(r.value.validLabel)), o = x(() => r.value.loadingLabel), s = x(() => r.value.hintLabel), c = x(() => !!(r.value.loading && (t.loading || o.value))), l = x(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = x(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = x(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), f = x(() => l.value || u.value || c.value || d.value);
|
|
371
371
|
return {
|
|
372
372
|
hasInvalidLabelOrSlot: l,
|
|
373
373
|
hasHintLabelOrSlot: d,
|
|
374
374
|
hasValidLabelOrSlot: u,
|
|
375
375
|
hasLoadingLabelOrSlot: c,
|
|
376
|
-
hintSlotScope:
|
|
376
|
+
hintSlotScope: x(() => ({
|
|
377
377
|
modelValue: r.value.modelValue,
|
|
378
378
|
valid: r.value.valid,
|
|
379
379
|
invalid: r.value.invalid,
|
|
@@ -442,11 +442,11 @@ var pt = {
|
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
function gt(e) {
|
|
445
|
-
let t =
|
|
446
|
-
return
|
|
445
|
+
let t = de();
|
|
446
|
+
return x(() => String(e?.value || t));
|
|
447
447
|
}
|
|
448
448
|
function _t(e, t) {
|
|
449
|
-
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r =
|
|
449
|
+
let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = x(() => n && h(t)), i = x(() => r.value ? "manual" : void 0);
|
|
450
450
|
function a() {
|
|
451
451
|
return (n && e.value?.matches(":popover-open")) ?? !1;
|
|
452
452
|
}
|
|
@@ -483,13 +483,13 @@ function vt({ reference: e, id: r, expanded: i, aria: a }) {
|
|
|
483
483
|
});
|
|
484
484
|
},
|
|
485
485
|
render() {
|
|
486
|
-
return n(
|
|
486
|
+
return n(oe, {}, this.$slots.default?.());
|
|
487
487
|
}
|
|
488
488
|
})
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
491
|
function yt({ role: e, ...n }) {
|
|
492
|
-
let r =
|
|
492
|
+
let r = x(() => e.value === K.listbox ? q.option : q.presentation);
|
|
493
493
|
return t(Y, {
|
|
494
494
|
role: r,
|
|
495
495
|
...n
|
|
@@ -497,12 +497,12 @@ function yt({ role: e, ...n }) {
|
|
|
497
497
|
}
|
|
498
498
|
function bt({ expanded: e }) {
|
|
499
499
|
t(X, {
|
|
500
|
-
role:
|
|
500
|
+
role: b(G.menuitem),
|
|
501
501
|
expanded: e
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function xt(e, t, n) {
|
|
505
|
-
return
|
|
505
|
+
return x(() => {
|
|
506
506
|
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
507
507
|
return i && Array.isArray(i) && i.forEach((t) => {
|
|
508
508
|
t && (r[`${e}--${t}`] = !0);
|
|
@@ -538,15 +538,15 @@ var St = ["popover"], Ct = [
|
|
|
538
538
|
"leaveCancelled"
|
|
539
539
|
],
|
|
540
540
|
setup(e, { expose: t, emit: n }) {
|
|
541
|
-
let d = e, h = n, { id:
|
|
542
|
-
get: () => d.reference ??
|
|
541
|
+
let d = e, h = n, { id: te } = pe(d), ne = gt(te), re = l(), g = b(), _ = b(), ie = b(), v = b(), S = x({
|
|
542
|
+
get: () => d.reference ?? g.value,
|
|
543
543
|
set: (e) => {
|
|
544
|
-
|
|
544
|
+
g.value = e;
|
|
545
545
|
}
|
|
546
|
-
}), { isTopLayer:
|
|
546
|
+
}), { isTopLayer: C, popover: le, show: ue, hide: de } = _t(_, () => d.topLayer), w = x(() => C.value ? V.fixed : d.strategy), E = b(!1);
|
|
547
547
|
u(() => {
|
|
548
|
-
|
|
549
|
-
E.value = globalThis.getComputedStyle(
|
|
548
|
+
F(_.value, () => {
|
|
549
|
+
E.value = globalThis.getComputedStyle(_.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
550
550
|
}, {
|
|
551
551
|
attributeFilter: ["style"],
|
|
552
552
|
window: globalThis.window
|
|
@@ -558,7 +558,7 @@ var St = ["popover"], Ct = [
|
|
|
558
558
|
function A(e) {
|
|
559
559
|
return !e.width && !e.height;
|
|
560
560
|
}
|
|
561
|
-
let
|
|
561
|
+
let N = {
|
|
562
562
|
name: "uncap",
|
|
563
563
|
fn({ elements: e, rects: t, middlewareData: n }) {
|
|
564
564
|
let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
|
|
@@ -567,9 +567,9 @@ var St = ["popover"], Ct = [
|
|
|
567
567
|
reset: { rects: !0 }
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
},
|
|
570
|
+
}, me = x(() => {
|
|
571
571
|
let e = [];
|
|
572
|
-
d.size && e.push(
|
|
572
|
+
d.size && e.push(N), d.offset && e.push(["string", "number"].includes(typeof d.offset) ? Te(Number(d.offset)) : Te(d.offset));
|
|
573
573
|
let t = typeof d.size == "object" ? d.size.padding : void 0;
|
|
574
574
|
if (d.autoPlacement ? e.push(O(d.autoPlacement, () => Ee(), (e) => Ee(e))) : d.flip && e.push(O(d.flip, () => xe({
|
|
575
575
|
fallbackStrategy: "initialPlacement",
|
|
@@ -581,28 +581,28 @@ var St = ["popover"], Ct = [
|
|
|
581
581
|
let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
|
|
582
582
|
if (A(r.floating) || E.value) return;
|
|
583
583
|
let { style: i } = n.floating;
|
|
584
|
-
i.maxWidth = d.triggerWidth &&
|
|
584
|
+
i.maxWidth = d.triggerWidth && S.value ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
|
|
585
585
|
};
|
|
586
586
|
e.push(O(d.size, () => R({ apply: t }), (e) => R({
|
|
587
587
|
...e,
|
|
588
588
|
apply: (n) => (t(n), e?.apply?.(n))
|
|
589
589
|
})));
|
|
590
590
|
}
|
|
591
|
-
return d.arrow && e.push(Oe({ element:
|
|
592
|
-
}), { x:
|
|
593
|
-
placement:
|
|
594
|
-
strategy:
|
|
595
|
-
middleware:
|
|
596
|
-
}), ke =
|
|
591
|
+
return d.arrow && e.push(Oe({ element: ie })), e;
|
|
592
|
+
}), { x: he, y: ge, middlewareData: P, placement: be, strategy: Ce, update: z } = we(S, _, {
|
|
593
|
+
placement: x(() => d.placement),
|
|
594
|
+
strategy: w,
|
|
595
|
+
middleware: me
|
|
596
|
+
}), ke = x(() => {
|
|
597
597
|
if (E.value) return;
|
|
598
|
-
let e = d.triggerWidth &&
|
|
598
|
+
let e = d.triggerWidth && S.value ? `${S.value?.offsetWidth}px` : void 0;
|
|
599
599
|
return {
|
|
600
600
|
position: Ce.value,
|
|
601
|
-
top: `${
|
|
602
|
-
left: `${
|
|
601
|
+
top: `${ge.value ?? 0}px`,
|
|
602
|
+
left: `${he.value ?? 0}px`,
|
|
603
603
|
width: e
|
|
604
604
|
};
|
|
605
|
-
}), B =
|
|
605
|
+
}), B = x(() => be.value.split("-")[0]), Ae = x(() => {
|
|
606
606
|
if (E.value) return;
|
|
607
607
|
let e = {
|
|
608
608
|
[H.top]: H.bottom,
|
|
@@ -611,11 +611,11 @@ var St = ["popover"], Ct = [
|
|
|
611
611
|
[H.left]: H.right
|
|
612
612
|
}[B.value];
|
|
613
613
|
return {
|
|
614
|
-
left:
|
|
615
|
-
top:
|
|
616
|
-
[e]: `${-(
|
|
614
|
+
left: P.value.arrow?.x === void 0 ? void 0 : `${P.value.arrow?.x}px`,
|
|
615
|
+
top: P.value.arrow?.y === void 0 ? void 0 : `${P.value.arrow?.y}px`,
|
|
616
|
+
[e]: `${-(ie.value?.offsetWidth ?? 0) / 2}px`
|
|
617
617
|
};
|
|
618
|
-
}), U =
|
|
618
|
+
}), U = L(d, "modelValue", h), je = b(!1), W = x({
|
|
619
619
|
get: () => U.value ?? je.value,
|
|
620
620
|
set: (e) => {
|
|
621
621
|
U.value === void 0 ? je.value = e : U.value = e;
|
|
@@ -623,22 +623,22 @@ var St = ["popover"], Ct = [
|
|
|
623
623
|
});
|
|
624
624
|
m([
|
|
625
625
|
W,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
626
|
+
S,
|
|
627
|
+
_,
|
|
628
|
+
w
|
|
629
629
|
], ([e, t, n, r], i, a) => {
|
|
630
630
|
e && t && n && a(Se(t, n, z, { animationFrame: r === V.fixed }));
|
|
631
631
|
}, {
|
|
632
632
|
flush: "post",
|
|
633
633
|
immediate: !0
|
|
634
|
-
}),
|
|
634
|
+
}), F(v, () => {
|
|
635
635
|
W.value && z();
|
|
636
636
|
}, {
|
|
637
637
|
childList: !0,
|
|
638
638
|
subtree: !0,
|
|
639
639
|
characterData: !0
|
|
640
|
-
}),
|
|
641
|
-
W.value &&
|
|
640
|
+
}), ae(() => {
|
|
641
|
+
W.value && ue();
|
|
642
642
|
});
|
|
643
643
|
function G() {
|
|
644
644
|
W.value = !0;
|
|
@@ -650,42 +650,42 @@ var St = ["popover"], Ct = [
|
|
|
650
650
|
W.value = !W.value;
|
|
651
651
|
}
|
|
652
652
|
function J(e) {
|
|
653
|
-
|
|
653
|
+
S.value = e;
|
|
654
654
|
}
|
|
655
|
-
ye(
|
|
655
|
+
ye(_, () => {
|
|
656
656
|
!d.keepOpen && W.value && (W.value = !1);
|
|
657
|
-
}, { ignore: [
|
|
658
|
-
let Me =
|
|
659
|
-
"aria-controls":
|
|
657
|
+
}, { ignore: [S] });
|
|
658
|
+
let Me = x(() => S.value?.getAttribute?.("id") ?? void 0), Y = x(() => ({
|
|
659
|
+
"aria-controls": ne.value,
|
|
660
660
|
"aria-haspopup": !0,
|
|
661
661
|
"aria-expanded": W.value
|
|
662
662
|
})), { component: X, bus: Ne } = vt({
|
|
663
|
-
reference:
|
|
664
|
-
id:
|
|
663
|
+
reference: S,
|
|
664
|
+
id: ne,
|
|
665
665
|
expanded: W,
|
|
666
666
|
aria: Y
|
|
667
667
|
});
|
|
668
668
|
Ne.on("click", q);
|
|
669
|
-
let { role: Z, modifiers: Pe } =
|
|
669
|
+
let { role: Z, modifiers: Pe } = pe(d), Fe = xt("vv-dropdown", Pe, x(() => ({ arrow: d.arrow }))), { focused: Q } = ve(_);
|
|
670
670
|
function $(e) {
|
|
671
671
|
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
672
672
|
}
|
|
673
673
|
function Ie() {
|
|
674
674
|
o(() => {
|
|
675
|
-
let e = $(
|
|
675
|
+
let e = $(_.value);
|
|
676
676
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
679
|
function Le() {
|
|
680
680
|
o(() => {
|
|
681
|
-
let e = $(
|
|
681
|
+
let e = $(v.value);
|
|
682
682
|
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
685
|
function Re() {
|
|
686
686
|
o(() => {
|
|
687
687
|
if (Q.value) {
|
|
688
|
-
let e = $(
|
|
688
|
+
let e = $(_.value);
|
|
689
689
|
if (e.length === 0 || !document.activeElement) return;
|
|
690
690
|
let t = e.indexOf(document.activeElement);
|
|
691
691
|
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
@@ -695,7 +695,7 @@ var St = ["popover"], Ct = [
|
|
|
695
695
|
function ze() {
|
|
696
696
|
o(() => {
|
|
697
697
|
if (Q.value) {
|
|
698
|
-
let e = $(
|
|
698
|
+
let e = $(_.value);
|
|
699
699
|
if (e.length === 0 || !document.activeElement) return;
|
|
700
700
|
let t = e.indexOf(document.activeElement);
|
|
701
701
|
if (t > 0) {
|
|
@@ -723,15 +723,15 @@ var St = ["popover"], Ct = [
|
|
|
723
723
|
role: Z,
|
|
724
724
|
expanded: W,
|
|
725
725
|
focused: Q,
|
|
726
|
-
hovered:
|
|
726
|
+
hovered: _e(_)
|
|
727
727
|
});
|
|
728
|
-
|
|
728
|
+
I("Escape", (e) => {
|
|
729
729
|
W.value && (e.preventDefault(), K());
|
|
730
|
-
}),
|
|
730
|
+
}), I("ArrowDown", (e) => {
|
|
731
731
|
W.value && Q.value && (e.preventDefault(), Re());
|
|
732
|
-
}),
|
|
732
|
+
}), I("ArrowUp", (e) => {
|
|
733
733
|
W.value && Q.value && (e.preventDefault(), ze());
|
|
734
|
-
}),
|
|
734
|
+
}), I([" ", "Enter"], (e) => {
|
|
735
735
|
let t = e.target;
|
|
736
736
|
W.value && Q.value && t && t?.click();
|
|
737
737
|
});
|
|
@@ -740,7 +740,7 @@ var St = ["popover"], Ct = [
|
|
|
740
740
|
h("beforeExpand"), h("beforeEnter");
|
|
741
741
|
},
|
|
742
742
|
"after-leave": () => {
|
|
743
|
-
W.value ||
|
|
743
|
+
W.value || de(), h("afterCollapse"), h("afterLeave");
|
|
744
744
|
},
|
|
745
745
|
enter: () => {
|
|
746
746
|
h("enter");
|
|
@@ -761,7 +761,7 @@ var St = ["popover"], Ct = [
|
|
|
761
761
|
h("leaveCancelled");
|
|
762
762
|
}
|
|
763
763
|
};
|
|
764
|
-
return (e, t) => (
|
|
764
|
+
return (e, t) => (M(), j(oe, null, [ee(k(X), null, {
|
|
765
765
|
default: T(() => [c(e.$slots, "default", r(i({
|
|
766
766
|
init: J,
|
|
767
767
|
show: G,
|
|
@@ -772,17 +772,17 @@ var St = ["popover"], Ct = [
|
|
|
772
772
|
})))]),
|
|
773
773
|
_: 3
|
|
774
774
|
}), ee(fe, p({ name: e.transitionName }, s(Ve), { persisted: "" }), {
|
|
775
|
-
default: T(() => [
|
|
775
|
+
default: T(() => [ce(y("div", {
|
|
776
776
|
ref_key: "floatingEl",
|
|
777
|
-
ref:
|
|
778
|
-
popover: k(
|
|
777
|
+
ref: _,
|
|
778
|
+
popover: k(le),
|
|
779
779
|
style: f(k(ke)),
|
|
780
780
|
class: a(k(Fe))
|
|
781
781
|
}, [
|
|
782
|
-
d.arrow ? (
|
|
782
|
+
d.arrow ? (M(), j("div", {
|
|
783
783
|
key: 0,
|
|
784
784
|
ref_key: "arrowEl",
|
|
785
|
-
ref:
|
|
785
|
+
ref: ie,
|
|
786
786
|
style: f(k(Ae)),
|
|
787
787
|
class: "vv-dropdown__arrow"
|
|
788
788
|
}, null, 4)) : D("v-if", !0),
|
|
@@ -792,10 +792,10 @@ var St = ["popover"], Ct = [
|
|
|
792
792
|
toggle: q,
|
|
793
793
|
expanded: k(W)
|
|
794
794
|
}))),
|
|
795
|
-
|
|
796
|
-
id: k(
|
|
795
|
+
y("div", p(k(re), {
|
|
796
|
+
id: k(ne),
|
|
797
797
|
ref_key: "listEl",
|
|
798
|
-
ref:
|
|
798
|
+
ref: v,
|
|
799
799
|
tabindex: k(W) ? void 0 : -1,
|
|
800
800
|
role: k(Z),
|
|
801
801
|
"aria-labelledby": k(Me),
|
|
@@ -813,7 +813,7 @@ var St = ["popover"], Ct = [
|
|
|
813
813
|
toggle: q,
|
|
814
814
|
expanded: k(W)
|
|
815
815
|
})))
|
|
816
|
-
], 14, St), [[
|
|
816
|
+
], 14, St), [[se, k(W)]])]),
|
|
817
817
|
_: 3
|
|
818
818
|
}, 16, ["name"])], 64));
|
|
819
819
|
}
|
|
@@ -825,12 +825,12 @@ var Et = /* @__PURE__ */ O({
|
|
|
825
825
|
name: "VvDropdownItem",
|
|
826
826
|
props: mt,
|
|
827
827
|
setup(e) {
|
|
828
|
-
let t = e, { role: n, expanded: r } = Tt(), i =
|
|
828
|
+
let t = e, { role: n, expanded: r } = Tt(), i = b(null);
|
|
829
829
|
bt({ expanded: r });
|
|
830
|
-
let a =
|
|
830
|
+
let a = _e(i), { focused: o } = P(i), { focused: s } = ve(i);
|
|
831
831
|
return m(a, (e) => {
|
|
832
832
|
e && t.focusOnHover && (o.value = !0);
|
|
833
|
-
}), (e, t) => (
|
|
833
|
+
}), (e, t) => (M(), j("div", p({ role: k(n) }, {
|
|
834
834
|
ref_key: "element",
|
|
835
835
|
ref: i,
|
|
836
836
|
class: ["vv-dropdown__item", { "focus-visible": k(o) || k(s) }]
|
|
@@ -840,26 +840,26 @@ var Et = /* @__PURE__ */ O({
|
|
|
840
840
|
name: "VvDropdownOption",
|
|
841
841
|
props: ht,
|
|
842
842
|
setup(e) {
|
|
843
|
-
let t = e, { modifiers: n } =
|
|
843
|
+
let t = e, { modifiers: n } = pe(t), o = xt("vv-dropdown-option", n, x(() => ({
|
|
844
844
|
disabled: t.disabled,
|
|
845
845
|
selected: t.selected,
|
|
846
846
|
unselectable: t.unselectable && t.selected
|
|
847
|
-
}))), s =
|
|
848
|
-
return (e, t) => (
|
|
847
|
+
}))), s = x(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
|
|
848
|
+
return (e, t) => (M(), g(Et, {
|
|
849
849
|
class: a(k(o)),
|
|
850
850
|
tabindex: e.disabled ? -1 : 0,
|
|
851
851
|
"aria-selected": e.selected,
|
|
852
852
|
"aria-disabled": e.disabled,
|
|
853
853
|
"focus-on-hover": e.focusOnHover
|
|
854
854
|
}, {
|
|
855
|
-
default: T(() => [c(e.$slots, "default"),
|
|
855
|
+
default: T(() => [c(e.$slots, "default"), y("span", {
|
|
856
856
|
class: "vv-dropdown-option__hint",
|
|
857
857
|
title: k(s)
|
|
858
858
|
}, [c(e.$slots, "hint", r(i({
|
|
859
859
|
disabled: e.disabled,
|
|
860
860
|
selected: e.selected,
|
|
861
861
|
unselectable: e.unselectable
|
|
862
|
-
})), () => [A(
|
|
862
|
+
})), () => [A(C(k(s)), 1)])], 8, Dt)]),
|
|
863
863
|
_: 3
|
|
864
864
|
}, 8, [
|
|
865
865
|
"class",
|
|
@@ -894,12 +894,12 @@ var At = /* @__PURE__ */ O({
|
|
|
894
894
|
modifiers: {}
|
|
895
895
|
}, ke),
|
|
896
896
|
setup(e) {
|
|
897
|
-
let t = e, n =
|
|
897
|
+
let t = e, n = x(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = b(!0), i = kt(), { modifiers: a } = pe(t), o = xt("vv-icon", a), s = x(() => t.provider || i?.iconsProvider), c = x(() => {
|
|
898
898
|
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
899
|
-
if (
|
|
899
|
+
if (N(n)) return n;
|
|
900
900
|
let r = i?.iconsCollections.find((t) => {
|
|
901
901
|
let n = `@${s.value}:${t.prefix}:${e}`;
|
|
902
|
-
return
|
|
902
|
+
return N(n);
|
|
903
903
|
});
|
|
904
904
|
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
905
905
|
});
|
|
@@ -908,17 +908,17 @@ var At = /* @__PURE__ */ O({
|
|
|
908
908
|
}
|
|
909
909
|
function u(e) {
|
|
910
910
|
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
911
|
-
n && r &&
|
|
911
|
+
n && r && me(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
912
912
|
body: r,
|
|
913
913
|
height: n.viewBox.baseVal.height,
|
|
914
914
|
width: n.viewBox.baseVal.width
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
|
-
return i && t.src && !
|
|
917
|
+
return i && t.src && !N(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
918
918
|
e && u(e), r.value = !0;
|
|
919
919
|
}).catch((e) => {
|
|
920
920
|
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
921
|
-
})), t.svg && u(t.svg), (t, i) => k(r) ? (
|
|
921
|
+
})), t.svg && u(t.svg), (t, i) => k(r) ? (M(), g(k(he), p({
|
|
922
922
|
key: 0,
|
|
923
923
|
class: k(o)
|
|
924
924
|
}, {
|
|
@@ -947,10 +947,10 @@ function jt(e, t, n) {
|
|
|
947
947
|
return r;
|
|
948
948
|
}
|
|
949
949
|
function Mt(e, t, n) {
|
|
950
|
-
let r = kt(), i =
|
|
950
|
+
let r = kt(), i = x(() => {
|
|
951
951
|
if (r?.defaults.value?.[e]) return r.defaults.value[e];
|
|
952
952
|
});
|
|
953
|
-
return
|
|
953
|
+
return x(() => {
|
|
954
954
|
if (i.value === void 0) return n;
|
|
955
955
|
let e = i.value, r = t, a = n;
|
|
956
956
|
return Object.keys(r).reduce((t, n) => {
|
|
@@ -960,7 +960,7 @@ function Mt(e, t, n) {
|
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
function Nt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
963
|
-
let a, o, s =
|
|
963
|
+
let a, o, s = x(() => {
|
|
964
964
|
let e = h(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
|
|
965
965
|
return Number.isNaN(t) ? 0 : t;
|
|
966
966
|
});
|
|
@@ -972,8 +972,8 @@ function Nt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
972
972
|
let e = i(o.value);
|
|
973
973
|
return c(), t("update:modelValue", e), e;
|
|
974
974
|
}
|
|
975
|
-
return
|
|
976
|
-
model:
|
|
975
|
+
return ue(c), {
|
|
976
|
+
model: x({
|
|
977
977
|
get: () => r(e?.value),
|
|
978
978
|
set: (e) => {
|
|
979
979
|
s.value <= 0 ? (c(), t("update:modelValue", i(e))) : (o = { value: e }, a && clearTimeout(a), a = setTimeout(l, s.value));
|
|
@@ -984,44 +984,44 @@ function Nt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
|
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
986
|
function Pt(e, t) {
|
|
987
|
-
let n =
|
|
987
|
+
let n = x(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = x(() => t?.value === U.before ? n.value : void 0), i = x(() => t?.value === U.after ? n.value : void 0);
|
|
988
988
|
return {
|
|
989
989
|
hasIcon: n,
|
|
990
|
-
hasIconLeft:
|
|
991
|
-
hasIconRight:
|
|
992
|
-
hasIconTop:
|
|
993
|
-
hasIconBottom:
|
|
990
|
+
hasIconLeft: x(() => t?.value === H.left ? n.value : void 0),
|
|
991
|
+
hasIconRight: x(() => t?.value === H.right ? n.value : void 0),
|
|
992
|
+
hasIconTop: x(() => t?.value === H.top ? n.value : void 0),
|
|
993
|
+
hasIconBottom: x(() => t?.value === H.bottom ? n.value : void 0),
|
|
994
994
|
hasIconBefore: r,
|
|
995
995
|
hasIconAfter: i
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
998
|
function Ft(e, t) {
|
|
999
|
-
let { focused: n } =
|
|
999
|
+
let { focused: n } = P(e);
|
|
1000
1000
|
return m(n, (n) => {
|
|
1001
1001
|
t(n ? "focus" : "blur", k(e));
|
|
1002
1002
|
}), { focused: n };
|
|
1003
1003
|
}
|
|
1004
1004
|
function It(e, t) {
|
|
1005
|
-
let n =
|
|
1005
|
+
let n = x(() => (k(e) ?? "").length), r = x(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
|
|
1006
1006
|
return {
|
|
1007
1007
|
length: n,
|
|
1008
1008
|
gap: r,
|
|
1009
|
-
formatted:
|
|
1009
|
+
formatted: x(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
function Lt(e, t = B.local, n) {
|
|
1013
|
-
let r =
|
|
1013
|
+
let r = b();
|
|
1014
1014
|
n && (r.value = n);
|
|
1015
1015
|
let i;
|
|
1016
1016
|
return u(() => {
|
|
1017
1017
|
e && m(e, (e, n) => {
|
|
1018
1018
|
let a = k(t) === B.session ? sessionStorage : localStorage;
|
|
1019
|
-
n && n !== e && a.removeItem(n), e ? (i =
|
|
1019
|
+
n && n !== e && a.removeItem(n), e ? (i = ge(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
|
|
1020
1020
|
}, { immediate: !0 }), E(t) && m(t, (t, n) => {
|
|
1021
1021
|
if (e?.value) {
|
|
1022
1022
|
if (t) {
|
|
1023
1023
|
let n = t === B.session ? sessionStorage : localStorage;
|
|
1024
|
-
i =
|
|
1024
|
+
i = ge(e.value, i?.value ?? r.value, n);
|
|
1025
1025
|
}
|
|
1026
1026
|
n && n !== t && (n === B.session ? sessionStorage : localStorage).removeItem(e.value);
|
|
1027
1027
|
}
|
|
@@ -1047,39 +1047,39 @@ var Rt = ["for"], zt = {
|
|
|
1047
1047
|
props: ct,
|
|
1048
1048
|
emits: st,
|
|
1049
1049
|
setup(e, { expose: t, emit: n }) {
|
|
1050
|
-
let o = e, s = n, l =
|
|
1050
|
+
let o = e, s = n, l = re(), u = kt(), d = Mt("VvTextarea", ct, o), f = b(), h = b(), te = b(), { id: ae, icon: S, iconPosition: se, iconRemoveSuggestion: le, labelRemoveSuggestion: ue, label: de, modelValue: w, count: fe, valid: O, invalid: N, loading: me, modifiers: he, debounce: ge, minlength: _e, maxlength: P, storageType: ve } = pe(o), F = gt(ae), ye = x(() => `${F.value}-hint`), I = x(() => o.floating && lt(o.placeholder) ? " " : o.placeholder), { model: L, flush: xe } = Nt(w, s, ge);
|
|
1051
1051
|
t({ flush: xe });
|
|
1052
|
-
let { hasIconBefore: R, hasIconAfter: Se } = Pt(
|
|
1052
|
+
let { hasIconBefore: R, hasIconAfter: Se } = Pt(S, se), { hasIcon: Ce } = Pt(le), { focused: we } = Ft(f, s), Te = x(() => we.value && !o.disabled && !o.readonly);
|
|
1053
1053
|
m(Te, (e) => {
|
|
1054
1054
|
let t = L.value;
|
|
1055
|
-
if (e || (t = xe() ?? t), e && d.value.selectOnFocus && f.value && f.value.select(), e && H.value?.size)
|
|
1055
|
+
if (e || (t = xe() ?? t), e && d.value.selectOnFocus && f.value && f.value.select(), e && H.value?.size) te.value?.show();
|
|
1056
1056
|
else if (H.value && !lt(t)) {
|
|
1057
1057
|
let e = o.maxSuggestions;
|
|
1058
1058
|
H.value.size >= e && !H.value.has(t) && (H.value = new Set([...H.value].slice(H.value.size - e + 1))), H.value.add(t);
|
|
1059
1059
|
}
|
|
1060
1060
|
});
|
|
1061
|
-
let Ee =
|
|
1061
|
+
let Ee = be(f);
|
|
1062
1062
|
m(Ee, (e) => {
|
|
1063
1063
|
e && o.autofocus && (we.value = !0);
|
|
1064
1064
|
});
|
|
1065
1065
|
let { formatted: De } = It(L, {
|
|
1066
1066
|
mode: fe?.value,
|
|
1067
|
-
upperLimit: Number(
|
|
1068
|
-
lowerLimit: Number(
|
|
1069
|
-
}), Oe =
|
|
1067
|
+
upperLimit: Number(P?.value),
|
|
1068
|
+
lowerLimit: Number(_e?.value)
|
|
1069
|
+
}), Oe = x(() => !o.disabled && !o.readonly), z = x(() => Oe.value ? o.tabindex : -1), ke = x(() => !lt(w)), B = x(() => {
|
|
1070
1070
|
if (o.invalid === !0) return !0;
|
|
1071
1071
|
if (o.valid === !0) return !1;
|
|
1072
|
-
}), V =
|
|
1072
|
+
}), V = x(() => o.storageKey ?? (u?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), H = Lt(V, ve, /* @__PURE__ */ new Set()), Ae = x(() => H.value ? [...H.value].filter((e) => lt(L.value) || `${e}`.toLowerCase().includes(`${L.value}`.toLowerCase()) && e !== L.value).reverse() : []), U = x(() => V?.value && H.value && H.value.size > 0);
|
|
1073
1073
|
function je(e) {
|
|
1074
|
-
L.value = e,
|
|
1074
|
+
L.value = e, te.value?.hide(), s("suggestion:selected", e);
|
|
1075
1075
|
}
|
|
1076
1076
|
function W(e) {
|
|
1077
1077
|
H.value?.delete(e), s("suggestion:removed", e);
|
|
1078
1078
|
}
|
|
1079
|
-
let { HintSlot: G, hasHintLabelOrSlot: K, hasInvalidLabelOrSlot: q, hintSlotScope: J } = ft(d, l), Me = xt("vv-textarea",
|
|
1079
|
+
let { HintSlot: G, hasHintLabelOrSlot: K, hasInvalidLabelOrSlot: q, hintSlotScope: J } = ft(d, l), Me = xt("vv-textarea", he, x(() => ({
|
|
1080
1080
|
valid: O.value,
|
|
1081
|
-
invalid:
|
|
1082
|
-
loading:
|
|
1081
|
+
invalid: N.value,
|
|
1082
|
+
loading: me.value,
|
|
1083
1083
|
disabled: o.disabled,
|
|
1084
1084
|
readonly: o.readonly,
|
|
1085
1085
|
required: o.required,
|
|
@@ -1089,7 +1089,7 @@ var Rt = ["for"], zt = {
|
|
|
1089
1089
|
dirty: ke.value,
|
|
1090
1090
|
focus: we.value,
|
|
1091
1091
|
resizable: o.resizable
|
|
1092
|
-
}))), Y =
|
|
1092
|
+
}))), Y = x(() => ({
|
|
1093
1093
|
name: o.name,
|
|
1094
1094
|
placeholder: I.value,
|
|
1095
1095
|
tabindex: z.value,
|
|
@@ -1106,9 +1106,9 @@ var Rt = ["for"], zt = {
|
|
|
1106
1106
|
"aria-label": o.ariaLabel || void 0,
|
|
1107
1107
|
"aria-labelledby": o.ariaLabelledby || void 0,
|
|
1108
1108
|
"aria-invalid": B.value,
|
|
1109
|
-
"aria-describedby": [o.ariaDescribedby, K.value ?
|
|
1110
|
-
"aria-errormessage": q.value ?
|
|
1111
|
-
})), X =
|
|
1109
|
+
"aria-describedby": [o.ariaDescribedby, K.value ? ye.value : void 0].filter(Boolean).join(" ") || void 0,
|
|
1110
|
+
"aria-errormessage": q.value ? ye.value : void 0
|
|
1111
|
+
})), X = x(() => ({
|
|
1112
1112
|
valid: o.valid,
|
|
1113
1113
|
invalid: o.invalid,
|
|
1114
1114
|
modelValue: o.modelValue,
|
|
@@ -1120,35 +1120,35 @@ var Rt = ["for"], zt = {
|
|
|
1120
1120
|
function Ne() {
|
|
1121
1121
|
L.value = void 0;
|
|
1122
1122
|
}
|
|
1123
|
-
return (e, t) => (
|
|
1124
|
-
k(
|
|
1123
|
+
return (e, t) => (M(), j("div", { class: a(k(Me)) }, [
|
|
1124
|
+
k(de) ? (M(), j("label", {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
for: k(F),
|
|
1127
1127
|
class: "vv-textarea__label"
|
|
1128
|
-
},
|
|
1129
|
-
|
|
1128
|
+
}, C(k(de)), 9, Rt)) : D("v-if", !0),
|
|
1129
|
+
y("div", {
|
|
1130
1130
|
ref_key: "wrapperEl",
|
|
1131
1131
|
ref: h,
|
|
1132
1132
|
class: "vv-textarea__wrapper"
|
|
1133
1133
|
}, [
|
|
1134
|
-
e.$slots.before ? (
|
|
1135
|
-
|
|
1136
|
-
k(R) ? (
|
|
1137
|
-
|
|
1134
|
+
e.$slots.before ? (M(), j("div", zt, [c(e.$slots, "before", r(i(k(X))))])) : D("v-if", !0),
|
|
1135
|
+
y("div", Bt, [
|
|
1136
|
+
k(R) ? (M(), g(At, p({ key: 0 }, k(R), { class: "vv-textarea__icon" }), null, 16)) : D("v-if", !0),
|
|
1137
|
+
ce(y("textarea", p({
|
|
1138
1138
|
id: k(F),
|
|
1139
1139
|
ref_key: "textareaEl",
|
|
1140
1140
|
ref: f,
|
|
1141
1141
|
"onUpdate:modelValue": t[0] ||= (e) => E(L) ? L.value = e : null
|
|
1142
|
-
}, k(Y), { onKeyup: t[1] ||= (e) => s("keyup", e) }), null, 16, Vt), [[
|
|
1143
|
-
k(Se) ? (
|
|
1142
|
+
}, k(Y), { onKeyup: t[1] ||= (e) => s("keyup", e) }), null, 16, Vt), [[ie, k(L)]]),
|
|
1143
|
+
k(Se) ? (M(), g(At, p({ key: 1 }, k(Se), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : D("v-if", !0)
|
|
1144
1144
|
]),
|
|
1145
|
-
e.$slots.after ? (
|
|
1146
|
-
k(fe) ? (
|
|
1145
|
+
e.$slots.after ? (M(), j("div", Ht, [c(e.$slots, "after", r(i(k(X))))])) : D("v-if", !0),
|
|
1146
|
+
k(fe) ? (M(), j("span", Ut, [c(e.$slots, "count", r(i(k(X))), () => [A(C(k(De)), 1)])])) : D("v-if", !0)
|
|
1147
1147
|
], 512),
|
|
1148
1148
|
ee(k(G), {
|
|
1149
|
-
id: k(
|
|
1149
|
+
id: k(ye),
|
|
1150
1150
|
class: "vv-textarea__hint"
|
|
1151
|
-
},
|
|
1151
|
+
}, _({ _: 2 }, [
|
|
1152
1152
|
e.$slots.hint ? {
|
|
1153
1153
|
name: "hint",
|
|
1154
1154
|
fn: T(() => [c(e.$slots, "hint", r(i(k(J))))]),
|
|
@@ -1170,26 +1170,26 @@ var Rt = ["for"], zt = {
|
|
|
1170
1170
|
key: "3"
|
|
1171
1171
|
} : void 0
|
|
1172
1172
|
]), 1032, ["id"]),
|
|
1173
|
-
k(U) ? (
|
|
1173
|
+
k(U) ? (M(), g(wt, {
|
|
1174
1174
|
key: 1,
|
|
1175
1175
|
ref_key: "suggestionsDropdownEl",
|
|
1176
|
-
ref:
|
|
1176
|
+
ref: te,
|
|
1177
1177
|
reference: k(h),
|
|
1178
1178
|
"autofocus-first": !1,
|
|
1179
1179
|
"trigger-width": !0,
|
|
1180
1180
|
"top-layer": k(d).topLayer
|
|
1181
1181
|
}, {
|
|
1182
|
-
items: T(() => [(
|
|
1182
|
+
items: T(() => [(M(!0), j(oe, null, ne(k(Ae), (t) => (M(), g(Ot, {
|
|
1183
1183
|
key: t,
|
|
1184
|
-
onClick:
|
|
1184
|
+
onClick: v((e) => je(t), ["stop"])
|
|
1185
1185
|
}, {
|
|
1186
|
-
default: T(() => [
|
|
1186
|
+
default: T(() => [y("div", Wt, [c(e.$slots, "suggestion", p({ ref_for: !0 }, { value: t }), () => [A(C(t), 1)])]), k(H) && k(Ce) ? (M(), j("button", {
|
|
1187
1187
|
key: 0,
|
|
1188
1188
|
type: "button",
|
|
1189
1189
|
tabindex: "-1",
|
|
1190
1190
|
class: "cursor-pointer",
|
|
1191
|
-
title: k(
|
|
1192
|
-
onClick:
|
|
1191
|
+
title: k(ue),
|
|
1192
|
+
onClick: v((e) => W(t), ["stop"])
|
|
1193
1193
|
}, [ee(At, p({ ref_for: !0 }, k(Ce)), null, 16)], 8, Gt)) : D("v-if", !0)]),
|
|
1194
1194
|
_: 2
|
|
1195
1195
|
}, 1032, ["onClick"]))), 128))]),
|
|
@@ -1200,4 +1200,4 @@ var Rt = ["for"], zt = {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
export { Kt as default };
|
|
1202
1202
|
|
|
1203
|
-
//# sourceMappingURL=VvTextarea.es-
|
|
1203
|
+
//# sourceMappingURL=VvTextarea.es-C8vAvoJh.js.map
|