vuiii 1.0.0-beta.91 → 1.0.0-beta.92
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/vuiii.js +195 -194
- package/package.json +1 -1
package/dist/vuiii.js
CHANGED
|
@@ -27,7 +27,7 @@ var ae = /* @__PURE__ */ Object.assign({
|
|
|
27
27
|
"../assets/icons/triangle-right.svg": () => import("./triangle-right-xwrGdoER.js").then((e) => e.default),
|
|
28
28
|
"../assets/icons/triangle-up.svg": () => import("./triangle-up-D_dSA8BG.js").then((e) => e.default),
|
|
29
29
|
"../assets/icons/x.svg": () => import("./x-bczynWUe.js").then((e) => e.default)
|
|
30
|
-
}), V;
|
|
30
|
+
}), V, H = /* @__PURE__ */ new Map();
|
|
31
31
|
function oe(e) {
|
|
32
32
|
let t = Object.keys(ae).find((t) => t.endsWith(`/${e}.svg`)), n = t ? ae[t] : void 0;
|
|
33
33
|
if (n) return f(async () => {
|
|
@@ -47,8 +47,9 @@ function se(e) {
|
|
|
47
47
|
V = e;
|
|
48
48
|
}
|
|
49
49
|
function ce(e) {
|
|
50
|
+
if (H.has(e)) return H.get(e);
|
|
50
51
|
let t;
|
|
51
|
-
return V && (t = V(e)), t ||= oe(e), t
|
|
52
|
+
return V && (t = V(e)), t ||= oe(e), t ? H.set(e, t) : console.error("Unable to resolve icon component for name: " + e), t;
|
|
52
53
|
}
|
|
53
54
|
//#endregion
|
|
54
55
|
//#region src/components/Icon.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -62,11 +63,11 @@ var le = /* @__PURE__ */ p({
|
|
|
62
63
|
let t = e, n = j(void 0);
|
|
63
64
|
return R(() => t.name, () => n.value = ce(t.name), { immediate: !0 }), (e, t) => (T(), a(A(n.value), { class: y(["Icon", { [`Icon--${e.$props.size}`]: e.$props.size }]) }, null, 8, ["class"]));
|
|
64
65
|
}
|
|
65
|
-
}),
|
|
66
|
+
}), U = (e, t) => {
|
|
66
67
|
let n = e.__vccOpts || e;
|
|
67
68
|
for (let [e, r] of t) n[e] = r;
|
|
68
69
|
return n;
|
|
69
|
-
},
|
|
70
|
+
}, W = /* @__PURE__ */ U(le, [["__scopeId", "data-v-1bcc75ac"]]), ue = { key: 0 }, G = /* @__PURE__ */ p({
|
|
70
71
|
__name: "Button",
|
|
71
72
|
props: {
|
|
72
73
|
disabled: { type: Boolean },
|
|
@@ -99,14 +100,14 @@ var le = /* @__PURE__ */ p({
|
|
|
99
100
|
type: n.value === "button" ? e.$props.type : void 0
|
|
100
101
|
}), {
|
|
101
102
|
default: z(() => [
|
|
102
|
-
O(e.$slots, "prefix", {}, () => [e.$props.prefixIcon || e.$props.loading ? (T(), a(
|
|
103
|
+
O(e.$slots, "prefix", {}, () => [e.$props.prefixIcon || e.$props.loading ? (T(), a(W, {
|
|
103
104
|
key: 0,
|
|
104
105
|
class: "vuiii-button__icon vuiii-button__icon--prefix",
|
|
105
106
|
name: e.$props.loading ? "spinner" : e.$props.prefixIcon,
|
|
106
107
|
size: e.$props.size
|
|
107
108
|
}, null, 8, ["name", "size"])) : o("", !0)]),
|
|
108
109
|
e.$slots.default || e.$props.label ? (T(), s("span", ue, [O(e.$slots, "default", {}, () => [u(M(e.$props.label), 1)])])) : o("", !0),
|
|
109
|
-
O(e.$slots, "suffix", {}, () => [e.$props.suffixIcon ? (T(), a(
|
|
110
|
+
O(e.$slots, "suffix", {}, () => [e.$props.suffixIcon ? (T(), a(W, {
|
|
110
111
|
key: 0,
|
|
111
112
|
class: "vuiii-button__icon vuiii-button__icon--suffix",
|
|
112
113
|
name: e.$props.suffixIcon,
|
|
@@ -143,7 +144,7 @@ function fe(e, t) {
|
|
|
143
144
|
}
|
|
144
145
|
//#endregion
|
|
145
146
|
//#region src/composables/useOnKeyPress.ts
|
|
146
|
-
function
|
|
147
|
+
function pe(e, t, n) {
|
|
147
148
|
let r = (n) => {
|
|
148
149
|
n.key.toLowerCase() === e.toLowerCase() && t(n);
|
|
149
150
|
};
|
|
@@ -155,7 +156,7 @@ function G(e, t, n) {
|
|
|
155
156
|
}
|
|
156
157
|
//#endregion
|
|
157
158
|
//#region src/components/Dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
158
|
-
var
|
|
159
|
+
var me = { class: "Dropdown__trigger" }, he = /* @__PURE__ */ p({
|
|
159
160
|
__name: "Dropdown",
|
|
160
161
|
props: {
|
|
161
162
|
label: {},
|
|
@@ -179,7 +180,7 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
179
180
|
}
|
|
180
181
|
return fe(u, (e) => {
|
|
181
182
|
l.value && !e.defaultPrevented && (e.preventDefault(), g());
|
|
182
|
-
}),
|
|
183
|
+
}), pe("Escape", (e) => {
|
|
183
184
|
l.value && !e.defaultPrevented && (e.preventDefault(), g());
|
|
184
185
|
}), t({
|
|
185
186
|
open: h,
|
|
@@ -194,12 +195,12 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
194
195
|
"--anchor-id": f,
|
|
195
196
|
"--position-area": p.value
|
|
196
197
|
})
|
|
197
|
-
}, [c("div",
|
|
198
|
+
}, [c("div", me, [O(t.$slots, "trigger", b(m({
|
|
198
199
|
open: h,
|
|
199
200
|
close: g,
|
|
200
201
|
toggle: _,
|
|
201
202
|
isOpen: l.value
|
|
202
|
-
})), () => [d(
|
|
203
|
+
})), () => [d(G, {
|
|
203
204
|
label: e.label,
|
|
204
205
|
variant: e.variant,
|
|
205
206
|
block: e.block,
|
|
@@ -219,14 +220,14 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
219
220
|
_: 3
|
|
220
221
|
})], 6));
|
|
221
222
|
}
|
|
222
|
-
}),
|
|
223
|
+
}), ge = { class: "DropdownMenu" }, _e = {
|
|
223
224
|
key: 0,
|
|
224
225
|
class: "DropdownMenu__items"
|
|
225
|
-
},
|
|
226
|
+
}, ve = [
|
|
226
227
|
"onClick",
|
|
227
228
|
"onMouseenter",
|
|
228
229
|
"onMouseleave"
|
|
229
|
-
],
|
|
230
|
+
], ye = /* @__PURE__ */ p({
|
|
230
231
|
__name: "DropdownMenu",
|
|
231
232
|
props: {
|
|
232
233
|
items: {},
|
|
@@ -244,7 +245,7 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
244
245
|
block: "nearest",
|
|
245
246
|
behavior: "smooth"
|
|
246
247
|
});
|
|
247
|
-
}), (n, r) => (T(), s("div",
|
|
248
|
+
}), (n, r) => (T(), s("div", ge, [t.items?.length ? (T(), s("ul", _e, [(T(!0), s(e, null, D(t.items, (e, r) => (T(), s("li", {
|
|
248
249
|
key: r,
|
|
249
250
|
class: y(["DropdownMenu__item", { "DropdownMenu__item--withCursor": t.cursorIndex === r }]),
|
|
250
251
|
ref_for: !0,
|
|
@@ -272,9 +273,9 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
272
273
|
item: e,
|
|
273
274
|
index: r,
|
|
274
275
|
cursorIndex: t.cursorIndex
|
|
275
|
-
}), () => [u(M(e), 1)])], 40,
|
|
276
|
+
}), () => [u(M(e), 1)])], 40, ve)])], 2))), 128))])) : o("", !0)]));
|
|
276
277
|
}
|
|
277
|
-
}), K = /* @__PURE__ */
|
|
278
|
+
}), K = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
278
279
|
inheritAttrs: !1,
|
|
279
280
|
__name: "InputWrapper",
|
|
280
281
|
props: {
|
|
@@ -305,7 +306,7 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
305
306
|
tabindex: "-1",
|
|
306
307
|
onClick: n[0] ||= B((t) => e.$emit("prefix-icon-click"), ["prevent"])
|
|
307
308
|
}, {
|
|
308
|
-
default: z(() => [e.$props.prefixIcon ? (T(), a(
|
|
309
|
+
default: z(() => [e.$props.prefixIcon ? (T(), a(W, {
|
|
309
310
|
key: 0,
|
|
310
311
|
name: e.$props.prefixIcon || "",
|
|
311
312
|
size: e.$props.size
|
|
@@ -318,7 +319,7 @@ var pe = { class: "Dropdown__trigger" }, me = /* @__PURE__ */ p({
|
|
|
318
319
|
tabindex: "-1",
|
|
319
320
|
onClick: n[1] ||= B((t) => e.$emit("suffix-icon-click"), ["prevent"])
|
|
320
321
|
}, {
|
|
321
|
-
default: z(() => [e.$props.suffixIcon ? (T(), a(
|
|
322
|
+
default: z(() => [e.$props.suffixIcon ? (T(), a(W, {
|
|
322
323
|
key: 0,
|
|
323
324
|
name: e.$props.suffixIcon || "",
|
|
324
325
|
size: e.$props.size
|
|
@@ -339,7 +340,7 @@ function q() {
|
|
|
339
340
|
}
|
|
340
341
|
//#endregion
|
|
341
342
|
//#region src/composables/useCursor.ts
|
|
342
|
-
function
|
|
343
|
+
function be(e, t = {}) {
|
|
343
344
|
let n = E(0), r = i(() => N(e)[n.value]), a = () => {
|
|
344
345
|
let r = n.value + 1, i = N(e).length;
|
|
345
346
|
n.value = t.cycle ? r % i : Math.min(r, i - 1);
|
|
@@ -362,7 +363,7 @@ function ye(e, t = {}) {
|
|
|
362
363
|
function J(e, t) {
|
|
363
364
|
return typeof t == "function" ? t(e) : t ? e[t] : e;
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function xe(e, t = {}, n) {
|
|
366
367
|
let r = t.stringifyValue || String, i = r(J(e, t.value));
|
|
367
368
|
return {
|
|
368
369
|
value: i,
|
|
@@ -375,13 +376,13 @@ function be(e, t = {}, n) {
|
|
|
375
376
|
};
|
|
376
377
|
}
|
|
377
378
|
function Y(e, t = {}, n) {
|
|
378
|
-
return Array.isArray(e) ? e.map((e) =>
|
|
379
|
-
...
|
|
379
|
+
return Array.isArray(e) ? e.map((e) => xe(e, t, n)) : typeof e == "object" && e ? Object.entries(e || {}).reduce((e, [r, i]) => e.concat({
|
|
380
|
+
...xe(r, t, n),
|
|
380
381
|
label: i,
|
|
381
382
|
data: r
|
|
382
383
|
}), []) : [];
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function Se(e, t = {}, n) {
|
|
385
386
|
return Array.isArray(e) ? e.map((e) => ({
|
|
386
387
|
label: J(e, t.groupLabel),
|
|
387
388
|
options: Y(J(e, t.groupOptions), t, n)
|
|
@@ -392,14 +393,14 @@ function xe(e, t = {}, n) {
|
|
|
392
393
|
}
|
|
393
394
|
//#endregion
|
|
394
395
|
//#region src/components/Autocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
395
|
-
var
|
|
396
|
+
var Ce = [
|
|
396
397
|
"placeholder",
|
|
397
398
|
"disabled",
|
|
398
399
|
"value"
|
|
399
|
-
],
|
|
400
|
+
], we = { class: "Autocomplete__optionLabel" }, Te = {
|
|
400
401
|
key: 0,
|
|
401
402
|
class: "Autocomplete__optionDescription"
|
|
402
|
-
},
|
|
403
|
+
}, Ee = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
403
404
|
inheritAttrs: !1,
|
|
404
405
|
__name: "Autocomplete",
|
|
405
406
|
props: /* @__PURE__ */ _({
|
|
@@ -439,7 +440,7 @@ var Se = [
|
|
|
439
440
|
description: u.optionDescription,
|
|
440
441
|
icon: u.optionIcon
|
|
441
442
|
};
|
|
442
|
-
return u.groupOptions ?
|
|
443
|
+
return u.groupOptions ? Se(u.options, {
|
|
443
444
|
groupLabel: u.groupLabel,
|
|
444
445
|
groupOptions: u.groupOptions,
|
|
445
446
|
...e
|
|
@@ -453,7 +454,7 @@ var Se = [
|
|
|
453
454
|
let x = i(() => {
|
|
454
455
|
let e = u.filter || b;
|
|
455
456
|
return _.value.filter((t) => e(t, r.value));
|
|
456
|
-
}), S = i(() => x.value), { cursorIndex: C, cursorItem: w, moveCursorForward: D, moveCursorBack: k, resetCursor: A } =
|
|
457
|
+
}), S = i(() => x.value), { cursorIndex: C, cursorItem: w, moveCursorForward: D, moveCursorBack: k, resetCursor: A } = be(S);
|
|
457
458
|
function j() {
|
|
458
459
|
u.disabled || m.value?.open();
|
|
459
460
|
}
|
|
@@ -497,7 +498,7 @@ var Se = [
|
|
|
497
498
|
open: j,
|
|
498
499
|
close: P,
|
|
499
500
|
filter: b
|
|
500
|
-
}), (t, n) => (T(), a(
|
|
501
|
+
}), (t, n) => (T(), a(he, {
|
|
501
502
|
ref_key: "dropdownRef",
|
|
502
503
|
ref: m,
|
|
503
504
|
class: "Autocomplete",
|
|
@@ -529,7 +530,7 @@ var Se = [
|
|
|
529
530
|
onInput: te,
|
|
530
531
|
onClick: L,
|
|
531
532
|
onKeydown: F
|
|
532
|
-
}), null, 16,
|
|
533
|
+
}), null, 16, Ce)]),
|
|
533
534
|
_: 2
|
|
534
535
|
}, [t.$slots.prefix ? {
|
|
535
536
|
name: "prefix",
|
|
@@ -548,7 +549,7 @@ var Se = [
|
|
|
548
549
|
"suffixIcon",
|
|
549
550
|
"pill"
|
|
550
551
|
])]),
|
|
551
|
-
default: z(({ close: e }) => [S.value.length > 0 ? (T(), a(
|
|
552
|
+
default: z(({ close: e }) => [S.value.length > 0 ? (T(), a(ye, {
|
|
552
553
|
key: 0,
|
|
553
554
|
class: "Autocomplete__dropdownMenu",
|
|
554
555
|
items: S.value,
|
|
@@ -560,19 +561,19 @@ var Se = [
|
|
|
560
561
|
option: e,
|
|
561
562
|
index: n,
|
|
562
563
|
isHighlighted: N(C) === n
|
|
563
|
-
}, () => [c("div",
|
|
564
|
+
}, () => [c("div", we, M(e.label), 1), e.description ? (T(), s("div", Te, M(e.description), 1)) : o("", !0)], !0)]),
|
|
564
565
|
_: 3
|
|
565
566
|
}, 8, ["items", "cursorIndex"])) : o("", !0)]),
|
|
566
567
|
_: 3
|
|
567
568
|
}, 8, ["dropdownPlacement", "onOpen"]));
|
|
568
569
|
}
|
|
569
|
-
}), [["__scopeId", "data-v-ea21baf3"]]),
|
|
570
|
+
}), [["__scopeId", "data-v-ea21baf3"]]), De = { class: "Breadcrumbs" }, Oe = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
570
571
|
__name: "Breadcrumbs",
|
|
571
572
|
props: { breadcrumbs: { default: () => [] } },
|
|
572
573
|
setup(t) {
|
|
573
574
|
return (n, r) => {
|
|
574
575
|
let i = k("router-link");
|
|
575
|
-
return T(), s("div",
|
|
576
|
+
return T(), s("div", De, [(T(!0), s(e, null, D(t.breadcrumbs, (e, t) => (T(), s("div", {
|
|
576
577
|
key: t,
|
|
577
578
|
class: "Breadcrumbs__breadcrumb"
|
|
578
579
|
}, [d(i, {
|
|
@@ -581,37 +582,37 @@ var Se = [
|
|
|
581
582
|
}, {
|
|
582
583
|
default: z(() => [u(M(e.label), 1)]),
|
|
583
584
|
_: 2
|
|
584
|
-
}, 1032, ["to"]), d(
|
|
585
|
+
}, 1032, ["to"]), d(W, {
|
|
585
586
|
name: "chevron-right",
|
|
586
587
|
class: "Breadcrumbs__arrow"
|
|
587
588
|
})]))), 128))]);
|
|
588
589
|
};
|
|
589
590
|
}
|
|
590
|
-
}), [["__scopeId", "data-v-9a78ee8c"]]),
|
|
591
|
-
function
|
|
592
|
-
return T(), s("div",
|
|
591
|
+
}), [["__scopeId", "data-v-9a78ee8c"]]), ke = {}, Ae = { class: "ButtonGroup" };
|
|
592
|
+
function je(e, t) {
|
|
593
|
+
return T(), s("div", Ae, [O(e.$slots, "default", {}, void 0, !0)]);
|
|
593
594
|
}
|
|
594
|
-
var
|
|
595
|
+
var Me = /* @__PURE__ */ U(ke, [["render", je], ["__scopeId", "data-v-3d8ee6b9"]]), Ne = [
|
|
595
596
|
"checked",
|
|
596
597
|
"indeterminate",
|
|
597
598
|
"required",
|
|
598
599
|
"disabled"
|
|
599
|
-
],
|
|
600
|
+
], Pe = {
|
|
600
601
|
key: 0,
|
|
601
602
|
class: "Checkbox__switch"
|
|
602
|
-
},
|
|
603
|
+
}, Fe = {
|
|
603
604
|
key: 1,
|
|
604
605
|
class: "Checkbox__checkbox vuiii-input"
|
|
605
|
-
},
|
|
606
|
+
}, Ie = { key: 0 }, Le = {
|
|
606
607
|
key: 0,
|
|
607
608
|
class: "Checkbox__label"
|
|
608
|
-
},
|
|
609
|
+
}, Re = {
|
|
609
610
|
key: 0,
|
|
610
611
|
class: "Checkbox__required"
|
|
611
|
-
},
|
|
612
|
+
}, ze = {
|
|
612
613
|
key: 1,
|
|
613
614
|
class: "Checkbox__description"
|
|
614
|
-
},
|
|
615
|
+
}, Be = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
615
616
|
inheritAttrs: !1,
|
|
616
617
|
__name: "Checkbox",
|
|
617
618
|
props: /* @__PURE__ */ _({
|
|
@@ -647,28 +648,28 @@ var je = /* @__PURE__ */ H(Oe, [["render", Ae], ["__scopeId", "data-v-3d8ee6b9"]
|
|
|
647
648
|
required: e.required,
|
|
648
649
|
disabled: e.disabled,
|
|
649
650
|
type: "checkbox"
|
|
650
|
-
}, N(n), { onInput: r[0] ||= (e) => f(e) }), null, 16,
|
|
651
|
+
}, N(n), { onInput: r[0] ||= (e) => f(e) }), null, 16, Ne),
|
|
651
652
|
O(t.$slots, "symbol", b(m({
|
|
652
653
|
disabled: !!e.disabled,
|
|
653
654
|
size: e.size,
|
|
654
655
|
checked: l.value,
|
|
655
656
|
indeterminate: !!e.indeterminate
|
|
656
|
-
})), () => [t.$props.switch ? (T(), s("div",
|
|
657
|
+
})), () => [t.$props.switch ? (T(), s("div", Pe, [...r[1] ||= [c("div", { class: "Checkbox__switchDot" }, null, -1)]])) : (T(), s("div", Fe, [d(W, {
|
|
657
658
|
name: "check",
|
|
658
659
|
class: "Checkbox__checkboxIcon Checkbox__checkboxIcon--check",
|
|
659
660
|
size: t.$props.size
|
|
660
|
-
}, null, 8, ["size"]), d(
|
|
661
|
+
}, null, 8, ["size"]), d(W, {
|
|
661
662
|
name: "minus",
|
|
662
663
|
class: "Checkbox__checkboxIcon Checkbox__checkboxIcon--indeterminate",
|
|
663
664
|
size: t.$props.size
|
|
664
665
|
}, null, 8, ["size"])]))], !0),
|
|
665
|
-
t.$slots.default || t.$props.label || t.$props.description ? (T(), s("div",
|
|
666
|
+
t.$slots.default || t.$props.label || t.$props.description ? (T(), s("div", Ie, [t.$slots.default || t.$props.label ? (T(), s("div", Le, [t.$props.required ? (T(), s("span", Re, "*")) : o("", !0), O(t.$slots, "default", {}, () => [u(M(t.$props.label), 1)], !0)])) : o("", !0), t.$props.description ? (T(), s("div", ze, M(t.$props.description), 1)) : o("", !0)])) : o("", !0)
|
|
666
667
|
], 2));
|
|
667
668
|
}
|
|
668
669
|
}), [["__scopeId", "data-v-c6d0fc93"]]);
|
|
669
670
|
//#endregion
|
|
670
671
|
//#region src/utils/createTypeParser.ts
|
|
671
|
-
function
|
|
672
|
+
function Ve(e = "string") {
|
|
672
673
|
return {
|
|
673
674
|
string: {
|
|
674
675
|
stringify: (e) => e == null ? "" : String(e),
|
|
@@ -690,7 +691,7 @@ function Be(e = "string") {
|
|
|
690
691
|
}
|
|
691
692
|
//#endregion
|
|
692
693
|
//#region src/components/CheckboxGroup.vue
|
|
693
|
-
var
|
|
694
|
+
var He = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
694
695
|
__name: "CheckboxGroup",
|
|
695
696
|
props: /* @__PURE__ */ _({
|
|
696
697
|
options: {},
|
|
@@ -707,7 +708,7 @@ var Ve = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
707
708
|
}),
|
|
708
709
|
emits: ["update:modelValue"],
|
|
709
710
|
setup(t) {
|
|
710
|
-
let n = I(t, "modelValue"), r = t, a = i(() => r.valueParser ||
|
|
711
|
+
let n = I(t, "modelValue"), r = t, a = i(() => r.valueParser || Ve(r.type)), o = i(() => Y(r.options, {
|
|
711
712
|
value: r.optionValue,
|
|
712
713
|
label: r.optionLabel,
|
|
713
714
|
disabled: r.optionDisabled,
|
|
@@ -717,7 +718,7 @@ var Ve = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
717
718
|
let r = new Set(c.value.values()), i = a.value.parse(e);
|
|
718
719
|
t ? r.add(i) : r.delete(i), n.value = Array.from(r);
|
|
719
720
|
};
|
|
720
|
-
return (t, n) => (T(), s("div", { class: y(["CheckboxGroup", { "CheckboxGroup--inline": t.$props.inline }]) }, [(T(!0), s(e, null, D(o.value, (e) => (T(), s("div", { key: e.value }, [d(
|
|
721
|
+
return (t, n) => (T(), s("div", { class: y(["CheckboxGroup", { "CheckboxGroup--inline": t.$props.inline }]) }, [(T(!0), s(e, null, D(o.value, (e) => (T(), s("div", { key: e.value }, [d(Be, {
|
|
721
722
|
disabled: e.disabled,
|
|
722
723
|
"model-value": c.value.has(e.value),
|
|
723
724
|
label: e.label,
|
|
@@ -738,14 +739,14 @@ var Ve = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
738
739
|
"onUpdate:modelValue"
|
|
739
740
|
])]))), 128))], 2));
|
|
740
741
|
}
|
|
741
|
-
}), [["__scopeId", "data-v-dfeaef3c"]]),
|
|
742
|
+
}), [["__scopeId", "data-v-dfeaef3c"]]), Ue = {
|
|
742
743
|
cancelLabel: "Cancel",
|
|
743
744
|
confirmLabel: "OK"
|
|
744
|
-
},
|
|
745
|
+
}, We = E(1), X = E([]), Z = i(() => X.value[X.value.length - 1]), Ge = () => We.value++, Ke = (e, t, { modal: n } = {}) => {
|
|
745
746
|
let r = document.activeElement;
|
|
746
747
|
return r.blur?.(), new Promise((i) => {
|
|
747
748
|
let a = {
|
|
748
|
-
id:
|
|
749
|
+
id: Ge(),
|
|
749
750
|
component: g(e),
|
|
750
751
|
props: t,
|
|
751
752
|
resolve: i,
|
|
@@ -754,10 +755,10 @@ var Ve = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
754
755
|
};
|
|
755
756
|
X.value.push(a);
|
|
756
757
|
});
|
|
757
|
-
},
|
|
758
|
+
}, qe = (e) => {
|
|
758
759
|
typeof e == "string" && (e = { content: e });
|
|
759
|
-
let { title: t, content: n, confirmVariant: r, confirmLabel: i =
|
|
760
|
-
return
|
|
760
|
+
let { title: t, content: n, confirmVariant: r, confirmLabel: i = Ue.confirmLabel, confirmIcon: a, modal: o } = e;
|
|
761
|
+
return Ke(at, {
|
|
761
762
|
title: t,
|
|
762
763
|
content: n,
|
|
763
764
|
modal: o,
|
|
@@ -767,10 +768,10 @@ var Ve = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
767
768
|
icon: a
|
|
768
769
|
}]
|
|
769
770
|
});
|
|
770
|
-
},
|
|
771
|
+
}, Je = (e) => {
|
|
771
772
|
typeof e == "string" && (e = { content: e });
|
|
772
|
-
let { title: t, content: n, cancelLabel: r =
|
|
773
|
-
return
|
|
773
|
+
let { title: t, content: n, cancelLabel: r = Ue.cancelLabel, cancelVariant: i, cancelIcon: a, confirmLabel: o = Ue.confirmLabel, confirmVariant: s, confirmIcon: c, modal: l } = e;
|
|
774
|
+
return Ke(at, {
|
|
774
775
|
title: t,
|
|
775
776
|
content: n,
|
|
776
777
|
modal: l,
|
|
@@ -786,29 +787,29 @@ var Ve = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
786
787
|
value: !0
|
|
787
788
|
}]
|
|
788
789
|
});
|
|
789
|
-
},
|
|
790
|
+
}, Ye = (e, t = void 0) => {
|
|
790
791
|
X.value = X.value.filter((t) => t.id !== e.id), e.resolve(t), e.focusElement && e.focusElement.focus?.();
|
|
791
792
|
}, Q = (e, t = void 0) => {
|
|
792
|
-
e.onBeforeClose ? e.onBeforeClose(() =>
|
|
793
|
-
},
|
|
793
|
+
e.onBeforeClose ? e.onBeforeClose(() => Ye(e, t)) : Ye(e, t);
|
|
794
|
+
}, Xe = (e) => (e && Z.value && (Z.value.onBeforeClose = e), (e) => {
|
|
794
795
|
Z.value && Q(Z.value, e);
|
|
795
|
-
}),
|
|
796
|
-
open:
|
|
797
|
-
alert:
|
|
798
|
-
confirm:
|
|
796
|
+
}), Ze = {
|
|
797
|
+
open: Ke,
|
|
798
|
+
alert: qe,
|
|
799
|
+
confirm: Je
|
|
799
800
|
};
|
|
800
|
-
function
|
|
801
|
-
return
|
|
801
|
+
function Qe() {
|
|
802
|
+
return Ze;
|
|
802
803
|
}
|
|
803
804
|
//#endregion
|
|
804
805
|
//#region src/components/dialogStack/DialogLayout.vue?vue&type=script&setup=true&lang.ts
|
|
805
|
-
var
|
|
806
|
+
var $e = {
|
|
806
807
|
key: 1,
|
|
807
808
|
class: "DialogLayout__header"
|
|
808
|
-
},
|
|
809
|
+
}, et = { class: "DialogLayout__title" }, tt = { class: "DialogLayout__body" }, nt = { class: "DialogLayout__content" }, rt = {
|
|
809
810
|
key: 2,
|
|
810
811
|
class: "DialogLayout__footer"
|
|
811
|
-
},
|
|
812
|
+
}, it = { class: "DialogLayout__buttons" }, at = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
812
813
|
__name: "DialogLayout",
|
|
813
814
|
props: {
|
|
814
815
|
title: { default: "" },
|
|
@@ -820,7 +821,7 @@ var Qe = {
|
|
|
820
821
|
buttons: { default: () => [] }
|
|
821
822
|
},
|
|
822
823
|
setup(t) {
|
|
823
|
-
let n = L(), r =
|
|
824
|
+
let n = L(), r = Xe(), a = E(), l = t, u = i(() => !!(n.header || l.title)), f = i(() => !!n.footer || !!l.buttons?.length), p = i(() => {
|
|
824
825
|
let e = l.width + (Number(l.width) ? "px" : "");
|
|
825
826
|
return e && e !== "auto" ? {
|
|
826
827
|
width: "100%",
|
|
@@ -858,16 +859,16 @@ var Qe = {
|
|
|
858
859
|
key: 0,
|
|
859
860
|
class: "DialogLayout__close",
|
|
860
861
|
onClick: n[0] ||= (e) => N(r)()
|
|
861
|
-
}, [d(
|
|
862
|
+
}, [d(W, {
|
|
862
863
|
name: "x",
|
|
863
864
|
class: "DialogLayout__closeIcon"
|
|
864
865
|
})])) : o("", !0),
|
|
865
|
-
u.value ? (T(), s("div",
|
|
866
|
-
c("div",
|
|
867
|
-
f.value ? (T(), s("div",
|
|
866
|
+
u.value ? (T(), s("div", $e, [O(t.$slots, "header", {}, () => [c("div", et, M(t.$props.title), 1)], !0)])) : o("", !0),
|
|
867
|
+
c("div", tt, [O(t.$slots, "default", {}, () => [c("div", nt, M(t.$props.content), 1)], !0)]),
|
|
868
|
+
f.value ? (T(), s("div", rt, [O(t.$slots, "footer", {}, () => [c("div", it, [(T(!0), s(e, null, D(t.$props.buttons, (e, t) => (T(), s("span", {
|
|
868
869
|
key: t,
|
|
869
870
|
class: "DialogLayout__buttonWrapper"
|
|
870
|
-
}, [d(
|
|
871
|
+
}, [d(G, {
|
|
871
872
|
type: "button",
|
|
872
873
|
label: e.label,
|
|
873
874
|
variant: e.variant,
|
|
@@ -885,19 +886,19 @@ var Qe = {
|
|
|
885
886
|
])]))), 128))])], !0)])) : o("", !0)
|
|
886
887
|
], 6));
|
|
887
888
|
}
|
|
888
|
-
}), [["__scopeId", "data-v-cd6f3494"]]),
|
|
889
|
+
}), [["__scopeId", "data-v-cd6f3494"]]), ot = { class: "DialogStack" }, st = {
|
|
889
890
|
key: 0,
|
|
890
891
|
class: "DialogStack__backdrop"
|
|
891
|
-
},
|
|
892
|
+
}, ct = ["onClick"], lt = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
892
893
|
__name: "DialogStack",
|
|
893
894
|
setup(i) {
|
|
894
895
|
let l = (e, t) => {
|
|
895
896
|
!t.modal && e.target === e.currentTarget && Q(t);
|
|
896
897
|
};
|
|
897
|
-
return
|
|
898
|
+
return pe("Escape", (e) => {
|
|
898
899
|
Z.value && !Z.value.modal && !e.defaultPrevented && (Q(Z.value), e.preventDefault());
|
|
899
|
-
}), (i, u) => (T(), a(t, { to: "body" }, [c("div",
|
|
900
|
-
default: z(() => [N(X).length ? (T(), s("div",
|
|
900
|
+
}), (i, u) => (T(), a(t, { to: "body" }, [c("div", ot, [d(n, { name: "DialogStack__backdrop" }, {
|
|
901
|
+
default: z(() => [N(X).length ? (T(), s("div", st)) : o("", !0)]),
|
|
901
902
|
_: 1
|
|
902
903
|
}), d(r, { name: "DialogStack__dialog" }, {
|
|
903
904
|
default: z(() => [(T(!0), s(e, null, D(N(X), (e) => (T(), s("div", {
|
|
@@ -912,11 +913,11 @@ var Qe = {
|
|
|
912
913
|
"data-dialog-id",
|
|
913
914
|
"class",
|
|
914
915
|
"onClose"
|
|
915
|
-
]))], 8,
|
|
916
|
+
]))], 8, ct))), 128))]),
|
|
916
917
|
_: 1
|
|
917
918
|
})])]));
|
|
918
919
|
}
|
|
919
|
-
}), [["__scopeId", "data-v-8b831c07"]]),
|
|
920
|
+
}), [["__scopeId", "data-v-8b831c07"]]), ut = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
920
921
|
__name: "Divider",
|
|
921
922
|
props: { orientation: { default: "horizontal" } },
|
|
922
923
|
setup(e) {
|
|
@@ -925,7 +926,7 @@ var Qe = {
|
|
|
925
926
|
}), [["__scopeId", "data-v-01030df7"]]);
|
|
926
927
|
//#endregion
|
|
927
928
|
//#region src/utils/debounce.ts
|
|
928
|
-
function
|
|
929
|
+
function dt(e, t) {
|
|
929
930
|
let n;
|
|
930
931
|
return (...r) => {
|
|
931
932
|
n && clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
@@ -933,31 +934,31 @@ function ut(e, t) {
|
|
|
933
934
|
}
|
|
934
935
|
//#endregion
|
|
935
936
|
//#region src/utils/loadURLAsFile.ts
|
|
936
|
-
async function
|
|
937
|
+
async function ft(e) {
|
|
937
938
|
let t = await (await fetch(`undefined/media/download-from-url?url=${encodeURIComponent(e)}`)).blob();
|
|
938
939
|
return new File([t], e.split("/").pop(), { type: t.type });
|
|
939
940
|
}
|
|
940
941
|
//#endregion
|
|
941
942
|
//#region src/utils/retrieveMediaUrlFromHTML.ts
|
|
942
|
-
function
|
|
943
|
+
function pt(e) {
|
|
943
944
|
return new DOMParser().parseFromString(e, "text/html").querySelector("img, video, audio")?.getAttribute("src") || null;
|
|
944
945
|
}
|
|
945
946
|
//#endregion
|
|
946
947
|
//#region src/utils/retrieveFilesFromDataTransfer.ts
|
|
947
|
-
async function
|
|
948
|
+
async function mt(e) {
|
|
948
949
|
let t = Array.from(e.files);
|
|
949
950
|
if (t.length) return t;
|
|
950
951
|
let n = e.getData("text/html");
|
|
951
952
|
if (n) {
|
|
952
|
-
let e =
|
|
953
|
-
if (e) return [await
|
|
953
|
+
let e = pt(n);
|
|
954
|
+
if (e) return [await ft(e)];
|
|
954
955
|
}
|
|
955
956
|
return [];
|
|
956
957
|
}
|
|
957
958
|
//#endregion
|
|
958
959
|
//#region src/composables/useDropArea.ts
|
|
959
|
-
function
|
|
960
|
-
let r = E(!1), a = i(() => Array.isArray(n.accept) ? n.accept : n.accept?.split(",").map((e) => e.trim())), o =
|
|
960
|
+
function ht(e, t, n = {}) {
|
|
961
|
+
let r = E(!1), a = i(() => Array.isArray(n.accept) ? n.accept : n.accept?.split(",").map((e) => e.trim())), o = dt((e) => r.value = e, 1), s = (e) => Array.from(e.dataTransfer?.items || []).some((e) => ["file", "text/html"].includes(e.kind)), c = (e) => {
|
|
961
962
|
s(e) && (e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "copy", o(!0));
|
|
962
963
|
}, l = (e) => {
|
|
963
964
|
s(e) && (e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "copy");
|
|
@@ -968,7 +969,7 @@ function mt(e, t, n = {}) {
|
|
|
968
969
|
e.preventDefault(), e.stopPropagation();
|
|
969
970
|
try {
|
|
970
971
|
if (!e.dataTransfer) return;
|
|
971
|
-
let i = await
|
|
972
|
+
let i = await mt(e.dataTransfer);
|
|
972
973
|
n.accept && (i = i.filter((e) => a.value?.some((t) => e.type.startsWith(t)))), n.multiple || (i = i.slice(0, 1)), r.value = !1, i.length && t(i);
|
|
973
974
|
} catch (e) {
|
|
974
975
|
n.onError?.(e);
|
|
@@ -983,7 +984,7 @@ function mt(e, t, n = {}) {
|
|
|
983
984
|
}
|
|
984
985
|
//#endregion
|
|
985
986
|
//#region src/components/FilePicker.vue?vue&type=script&setup=true&lang.ts
|
|
986
|
-
var
|
|
987
|
+
var gt = ["multiple", "accept"], _t = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
987
988
|
__name: "FilePicker",
|
|
988
989
|
props: {
|
|
989
990
|
multiple: {
|
|
@@ -1003,7 +1004,7 @@ var ht = ["multiple", "accept"], gt = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
1003
1004
|
let t = e.target;
|
|
1004
1005
|
a("files", t.files ? Array.from(t.files) : []), t.value = "";
|
|
1005
1006
|
}
|
|
1006
|
-
return
|
|
1007
|
+
return ht(o, (e) => a("files", e), {
|
|
1007
1008
|
accept: r.accept,
|
|
1008
1009
|
multiple: r.multiple
|
|
1009
1010
|
}), (n, r) => (T(), s(e, null, [c("button", v({
|
|
@@ -1012,7 +1013,7 @@ var ht = ["multiple", "accept"], gt = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
1012
1013
|
onClick: f,
|
|
1013
1014
|
ref_key: "pickerOpener",
|
|
1014
1015
|
ref: o
|
|
1015
|
-
}, n.$attrs), [O(n.$slots, "default", {}, () => [d(
|
|
1016
|
+
}, n.$attrs), [O(n.$slots, "default", {}, () => [d(G, {
|
|
1016
1017
|
"prefix-icon": "arrow-up-tray",
|
|
1017
1018
|
label: t.label,
|
|
1018
1019
|
variant: "primary",
|
|
@@ -1025,24 +1026,24 @@ var ht = ["multiple", "accept"], gt = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
1025
1026
|
accept: u.value,
|
|
1026
1027
|
hidden: "",
|
|
1027
1028
|
onChange: p
|
|
1028
|
-
}, null, 40,
|
|
1029
|
+
}, null, 40, gt)], 64));
|
|
1029
1030
|
}
|
|
1030
|
-
}), [["__scopeId", "data-v-4d841d5a"]]),
|
|
1031
|
+
}), [["__scopeId", "data-v-4d841d5a"]]), vt = {
|
|
1031
1032
|
key: 0,
|
|
1032
1033
|
class: "FormGroup__header"
|
|
1033
|
-
},
|
|
1034
|
+
}, yt = ["for"], bt = {
|
|
1034
1035
|
key: 0,
|
|
1035
1036
|
class: "FormGroup__required"
|
|
1036
|
-
},
|
|
1037
|
+
}, xt = {
|
|
1037
1038
|
key: 1,
|
|
1038
1039
|
class: "FormGroup__description"
|
|
1039
|
-
},
|
|
1040
|
+
}, St = {
|
|
1040
1041
|
key: 2,
|
|
1041
1042
|
class: "FormGroup__hint"
|
|
1042
|
-
},
|
|
1043
|
+
}, Ct = {
|
|
1043
1044
|
key: 3,
|
|
1044
1045
|
class: "FormGroup__error"
|
|
1045
|
-
},
|
|
1046
|
+
}, wt = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1046
1047
|
__name: "FormGroup",
|
|
1047
1048
|
props: {
|
|
1048
1049
|
label: {},
|
|
@@ -1054,17 +1055,17 @@ var ht = ["multiple", "accept"], gt = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
1054
1055
|
},
|
|
1055
1056
|
setup(e) {
|
|
1056
1057
|
return (e, t) => (T(), s("div", { class: y(["FormGroup", { "FormGroup--invalid": e.$props.error }]) }, [
|
|
1057
|
-
e.$props.label || e.$slots.label ? (T(), s("div",
|
|
1058
|
+
e.$props.label || e.$slots.label ? (T(), s("div", vt, [c("label", {
|
|
1058
1059
|
class: "FormGroup__label",
|
|
1059
1060
|
for: e.$props.for
|
|
1060
|
-
}, [O(e.$slots, "label", {}, () => [u(M(e.$props.label), 1)], !0)], 8,
|
|
1061
|
-
e.$slots.description || e.$props.description ? (T(), s("div",
|
|
1061
|
+
}, [O(e.$slots, "label", {}, () => [u(M(e.$props.label), 1)], !0)], 8, yt), e.$props.required ? (T(), s("div", bt, "*")) : o("", !0)])) : o("", !0),
|
|
1062
|
+
e.$slots.description || e.$props.description ? (T(), s("div", xt, [O(e.$slots, "description", {}, () => [u(M(e.$props.description), 1)], !0)])) : o("", !0),
|
|
1062
1063
|
O(e.$slots, "default", {}, void 0, !0),
|
|
1063
|
-
e.$slots.hint || e.$props.hint ? (T(), s("div",
|
|
1064
|
-
e.$props.error && typeof e.$props.error == "string" ? (T(), s("div",
|
|
1064
|
+
e.$slots.hint || e.$props.hint ? (T(), s("div", St, [O(e.$slots, "hint", {}, () => [u(M(e.$props.hint), 1)], !0)])) : o("", !0),
|
|
1065
|
+
e.$props.error && typeof e.$props.error == "string" ? (T(), s("div", Ct, M(e.$props.error), 1)) : o("", !0)
|
|
1065
1066
|
], 2));
|
|
1066
1067
|
}
|
|
1067
|
-
}), [["__scopeId", "data-v-ee1b1915"]]),
|
|
1068
|
+
}), [["__scopeId", "data-v-ee1b1915"]]), Tt = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1068
1069
|
__name: "FormFields",
|
|
1069
1070
|
props: {
|
|
1070
1071
|
fields: {},
|
|
@@ -1100,7 +1101,7 @@ var ht = ["multiple", "accept"], gt = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
1100
1101
|
"model-value",
|
|
1101
1102
|
"validation-results",
|
|
1102
1103
|
"orientation"
|
|
1103
|
-
])) : f === N("–") ? (T(), a(
|
|
1104
|
+
])) : f === N("–") ? (T(), a(ut, { key: 1 })) : (T(), a(wt, {
|
|
1104
1105
|
key: 2,
|
|
1105
1106
|
label: f.label,
|
|
1106
1107
|
description: f.description,
|
|
@@ -1138,7 +1139,7 @@ var ht = ["multiple", "accept"], gt = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
|
1138
1139
|
}), [["__scopeId", "data-v-1644d62b"]]);
|
|
1139
1140
|
//#endregion
|
|
1140
1141
|
//#region src/composables/useFilteredProps.ts
|
|
1141
|
-
function
|
|
1142
|
+
function Et(e, t) {
|
|
1142
1143
|
return t = [
|
|
1143
1144
|
...t,
|
|
1144
1145
|
"modelValue",
|
|
@@ -1147,7 +1148,7 @@ function Tt(e, t) {
|
|
|
1147
1148
|
}
|
|
1148
1149
|
//#endregion
|
|
1149
1150
|
//#region src/components/IconButton.vue
|
|
1150
|
-
var
|
|
1151
|
+
var Dt = /* @__PURE__ */ p({
|
|
1151
1152
|
__name: "IconButton",
|
|
1152
1153
|
props: {
|
|
1153
1154
|
disabled: { type: Boolean },
|
|
@@ -1164,17 +1165,17 @@ var Et = /* @__PURE__ */ p({
|
|
|
1164
1165
|
},
|
|
1165
1166
|
emits: ["click"],
|
|
1166
1167
|
setup(e, { emit: t }) {
|
|
1167
|
-
let n =
|
|
1168
|
-
return (t, i) => (T(), a(
|
|
1168
|
+
let n = Et(e, ["icon"]), r = t;
|
|
1169
|
+
return (t, i) => (T(), a(G, v({
|
|
1169
1170
|
class: "vuiii-icon-button",
|
|
1170
1171
|
prefixIcon: e.icon
|
|
1171
1172
|
}, N(n), { onClick: i[0] ||= (e) => r("click", e) }), null, 16, ["prefixIcon"]));
|
|
1172
1173
|
}
|
|
1173
|
-
}),
|
|
1174
|
+
}), Ot = [
|
|
1174
1175
|
"aria-label",
|
|
1175
1176
|
"type",
|
|
1176
1177
|
"value"
|
|
1177
|
-
],
|
|
1178
|
+
], kt = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1178
1179
|
inheritAttrs: !1,
|
|
1179
1180
|
__name: "Input",
|
|
1180
1181
|
props: /* @__PURE__ */ _({
|
|
@@ -1228,7 +1229,7 @@ var Et = /* @__PURE__ */ p({
|
|
|
1228
1229
|
type: t.$attrs.type || "text",
|
|
1229
1230
|
value: n.value,
|
|
1230
1231
|
onInput: r[0] ||= (e) => d(e)
|
|
1231
|
-
}), null, 16,
|
|
1232
|
+
}), null, 16, Ot)]),
|
|
1232
1233
|
_: 2
|
|
1233
1234
|
}, [N(o).prefix ? {
|
|
1234
1235
|
name: "prefix",
|
|
@@ -1248,7 +1249,7 @@ var Et = /* @__PURE__ */ p({
|
|
|
1248
1249
|
"disabled"
|
|
1249
1250
|
]));
|
|
1250
1251
|
}
|
|
1251
|
-
}), [["__scopeId", "data-v-5d327377"]]),
|
|
1252
|
+
}), [["__scopeId", "data-v-5d327377"]]), At = /* @__PURE__ */ p({
|
|
1252
1253
|
__name: "RadioButtonGroup",
|
|
1253
1254
|
props: /* @__PURE__ */ _({
|
|
1254
1255
|
options: {},
|
|
@@ -1294,8 +1295,8 @@ var Et = /* @__PURE__ */ p({
|
|
|
1294
1295
|
description: r.optionDescription,
|
|
1295
1296
|
icon: r.optionIcon
|
|
1296
1297
|
}, n.value));
|
|
1297
|
-
return (r, i) => (T(), a(
|
|
1298
|
-
default: z(() => [(T(!0), s(e, null, D(o.value, (e) => (T(), a(
|
|
1298
|
+
return (r, i) => (T(), a(Me, null, {
|
|
1299
|
+
default: z(() => [(T(!0), s(e, null, D(o.value, (e) => (T(), a(G, {
|
|
1299
1300
|
key: e.value,
|
|
1300
1301
|
outlined: !e.isSelected,
|
|
1301
1302
|
label: e.label,
|
|
@@ -1318,17 +1319,17 @@ var Et = /* @__PURE__ */ p({
|
|
|
1318
1319
|
_: 1
|
|
1319
1320
|
}));
|
|
1320
1321
|
}
|
|
1321
|
-
}),
|
|
1322
|
+
}), jt = [
|
|
1322
1323
|
"value",
|
|
1323
1324
|
"name",
|
|
1324
1325
|
"disabled",
|
|
1325
1326
|
"readonly",
|
|
1326
1327
|
"checked",
|
|
1327
1328
|
"onInput"
|
|
1328
|
-
],
|
|
1329
|
+
], Mt = { key: 0 }, Nt = { class: "RadioGroup__label" }, Pt = {
|
|
1329
1330
|
key: 0,
|
|
1330
1331
|
class: "RadioGroup__description"
|
|
1331
|
-
},
|
|
1332
|
+
}, Ft = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1332
1333
|
inheritAttrs: !1,
|
|
1333
1334
|
__name: "RadioGroup",
|
|
1334
1335
|
props: /* @__PURE__ */ _({
|
|
@@ -1348,7 +1349,7 @@ var Et = /* @__PURE__ */ p({
|
|
|
1348
1349
|
}),
|
|
1349
1350
|
emits: ["update:modelValue"],
|
|
1350
1351
|
setup(t) {
|
|
1351
|
-
let n = I(t, "modelValue"), r = P(), a = q(), l = r.name || `RadioGroup-input-${F()}`, u = t, d = i(() => u.valueParser ||
|
|
1352
|
+
let n = I(t, "modelValue"), r = P(), a = q(), l = r.name || `RadioGroup-input-${F()}`, u = t, d = i(() => u.valueParser || Ve(u.type)), f = i(() => Y(u.options, {
|
|
1352
1353
|
value: u.optionValue,
|
|
1353
1354
|
label: u.optionLabel,
|
|
1354
1355
|
disabled: u.optionDisabled,
|
|
@@ -1371,23 +1372,23 @@ var Et = /* @__PURE__ */ p({
|
|
|
1371
1372
|
readonly: n.$props.readonly,
|
|
1372
1373
|
checked: e.isSelected,
|
|
1373
1374
|
onInput: (t) => p(e.value)
|
|
1374
|
-
}), null, 16,
|
|
1375
|
+
}), null, 16, jt),
|
|
1375
1376
|
O(n.$slots, "symbol", v({ ref_for: !0 }, {
|
|
1376
1377
|
disabled: !!t.disabled,
|
|
1377
1378
|
checked: !!e.isSelected
|
|
1378
1379
|
}), () => [r[0] ||= c("div", { class: "RadioGroup__radio vuiii-input" }, [c("div", { class: "RadioGroup__radioDot" })], -1)], !0),
|
|
1379
|
-
e.label || e.description || n.$slots.default ? (T(), s("div",
|
|
1380
|
+
e.label || e.description || n.$slots.default ? (T(), s("div", Mt, [O(n.$slots, "default", v({ ref_for: !0 }, { option: e }), () => [c("div", Nt, M(e.label), 1)], !0), e.description ? (T(), s("div", Pt, M(e.description), 1)) : o("", !0)])) : o("", !0)
|
|
1380
1381
|
], 2))), 128))], 2));
|
|
1381
1382
|
}
|
|
1382
|
-
}), [["__scopeId", "data-v-d4362b39"]]),
|
|
1383
|
+
}), [["__scopeId", "data-v-d4362b39"]]), It = ["value", "required"], Lt = ["disabled", "hidden"], Rt = ["label"], zt = [
|
|
1383
1384
|
"disabled",
|
|
1384
1385
|
"value",
|
|
1385
1386
|
"selected"
|
|
1386
|
-
],
|
|
1387
|
+
], Bt = [
|
|
1387
1388
|
"disabled",
|
|
1388
1389
|
"value",
|
|
1389
1390
|
"selected"
|
|
1390
|
-
],
|
|
1391
|
+
], Vt = { class: "Select__dropdownIcon vuiii-input__suffix-icon" }, Ht = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1391
1392
|
inheritAttrs: !1,
|
|
1392
1393
|
__name: "Select",
|
|
1393
1394
|
props: /* @__PURE__ */ _({
|
|
@@ -1412,8 +1413,8 @@ var Et = /* @__PURE__ */ p({
|
|
|
1412
1413
|
}),
|
|
1413
1414
|
emits: ["update:modelValue"],
|
|
1414
1415
|
setup(t) {
|
|
1415
|
-
let n = I(t, "modelValue"), r = q(), l = t, u = i(() => l.valueParser ||
|
|
1416
|
-
if (l.groupOptions) return
|
|
1416
|
+
let n = I(t, "modelValue"), r = q(), l = t, u = i(() => l.valueParser || Ve(l.type)), f = i(() => u.value.stringify(n.value)), p = i(() => {
|
|
1417
|
+
if (l.groupOptions) return Se(l.options, {
|
|
1417
1418
|
groupLabel: l.groupLabel,
|
|
1418
1419
|
groupOptions: l.groupOptions,
|
|
1419
1420
|
value: l.optionValue,
|
|
@@ -1439,7 +1440,7 @@ var Et = /* @__PURE__ */ p({
|
|
|
1439
1440
|
disabled: n.$props.disabled,
|
|
1440
1441
|
pill: n.$props.pill
|
|
1441
1442
|
}, {
|
|
1442
|
-
suffix: z(() => [c("div",
|
|
1443
|
+
suffix: z(() => [c("div", Vt, [d(W, {
|
|
1443
1444
|
name: "triangle-down",
|
|
1444
1445
|
size: n.$props.size
|
|
1445
1446
|
}, null, 8, ["size"])])]),
|
|
@@ -1455,7 +1456,7 @@ var Et = /* @__PURE__ */ p({
|
|
|
1455
1456
|
hidden: n.$props.required,
|
|
1456
1457
|
value: "",
|
|
1457
1458
|
selected: ""
|
|
1458
|
-
}, M(n.$props.placeholder), 9,
|
|
1459
|
+
}, M(n.$props.placeholder), 9, Lt)) : o("", !0), p.value ? (T(!0), s(e, { key: 1 }, D(p.value, (t, n) => (T(), s("optgroup", {
|
|
1459
1460
|
key: n,
|
|
1460
1461
|
label: t.label
|
|
1461
1462
|
}, [(T(!0), s(e, null, D(t.options, (e) => (T(), s("option", {
|
|
@@ -1463,12 +1464,12 @@ var Et = /* @__PURE__ */ p({
|
|
|
1463
1464
|
disabled: e.disabled,
|
|
1464
1465
|
value: e.value,
|
|
1465
1466
|
selected: e.isSelected
|
|
1466
|
-
}, M(e.label), 9,
|
|
1467
|
+
}, M(e.label), 9, zt))), 128))], 8, Rt))), 128)) : (T(!0), s(e, { key: 2 }, D(m.value, (e) => (T(), s("option", {
|
|
1467
1468
|
key: e.value,
|
|
1468
1469
|
disabled: e.disabled,
|
|
1469
1470
|
value: e.value,
|
|
1470
1471
|
selected: e.isSelected
|
|
1471
|
-
}, M(e.label), 9,
|
|
1472
|
+
}, M(e.label), 9, Bt))), 128))], 16, It)]),
|
|
1472
1473
|
_: 1
|
|
1473
1474
|
}, 8, [
|
|
1474
1475
|
"class",
|
|
@@ -1478,7 +1479,7 @@ var Et = /* @__PURE__ */ p({
|
|
|
1478
1479
|
"pill"
|
|
1479
1480
|
]));
|
|
1480
1481
|
}
|
|
1481
|
-
}), [["__scopeId", "data-v-e5de88b0"]]),
|
|
1482
|
+
}), [["__scopeId", "data-v-e5de88b0"]]), Ut = { class: "ShortcutIcon" }, Wt = /* @__PURE__ */ p({
|
|
1482
1483
|
__name: "ShortcutIcon",
|
|
1483
1484
|
props: { shortcut: {} },
|
|
1484
1485
|
setup(t) {
|
|
@@ -1497,40 +1498,40 @@ var Et = /* @__PURE__ */ p({
|
|
|
1497
1498
|
let c = t.length === 1 ? t.toUpperCase() : t;
|
|
1498
1499
|
return e.push({ label: c }), e;
|
|
1499
1500
|
});
|
|
1500
|
-
return (t, n) => (T(), s("span",
|
|
1501
|
+
return (t, n) => (T(), s("span", Ut, [(T(!0), s(e, null, D(a.value, (e) => (T(), s("kbd", {
|
|
1501
1502
|
key: e.label,
|
|
1502
1503
|
class: "ShortcutIcon__key"
|
|
1503
1504
|
}, M(e.label), 1))), 128))]));
|
|
1504
1505
|
}
|
|
1505
|
-
}),
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1506
|
+
}), Gt = 7e3, Kt = 5, qt = E(1), $ = E([]);
|
|
1507
|
+
function Jt() {
|
|
1508
|
+
return qt.value++;
|
|
1508
1509
|
}
|
|
1509
|
-
function
|
|
1510
|
+
function Yt(e) {
|
|
1510
1511
|
$.value = $.value.filter(({ id: t }) => t !== e);
|
|
1511
1512
|
}
|
|
1512
|
-
function
|
|
1513
|
+
function Xt(e, t = "success", n = Gt) {
|
|
1513
1514
|
let r = {
|
|
1514
|
-
id:
|
|
1515
|
+
id: Jt(),
|
|
1515
1516
|
text: e,
|
|
1516
1517
|
type: t
|
|
1517
1518
|
};
|
|
1518
|
-
$.value.push(r), $.value.length >
|
|
1519
|
+
$.value.push(r), $.value.length > Kt && $.value.shift(), n > 0 && setTimeout(() => Yt(r.id), n);
|
|
1519
1520
|
}
|
|
1520
|
-
var
|
|
1521
|
-
success: (e, t =
|
|
1522
|
-
error: (e, t =
|
|
1521
|
+
var Zt = {
|
|
1522
|
+
success: (e, t = Gt) => Xt(e, "success", t),
|
|
1523
|
+
error: (e, t = Gt) => Xt(e, "error", t)
|
|
1523
1524
|
};
|
|
1524
|
-
function
|
|
1525
|
-
return
|
|
1525
|
+
function Qt() {
|
|
1526
|
+
return Zt;
|
|
1526
1527
|
}
|
|
1527
1528
|
//#endregion
|
|
1528
1529
|
//#region src/components/snackbar/SnackbarStack.vue?vue&type=script&setup=true&lang.ts
|
|
1529
|
-
var
|
|
1530
|
+
var $t = { class: "Snackbar" }, en = ["onClick"], tn = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1530
1531
|
__name: "SnackbarStack",
|
|
1531
1532
|
setup(n) {
|
|
1532
1533
|
let o = i(() => [...$.value].reverse());
|
|
1533
|
-
return (n, i) => (T(), a(t, { to: "body" }, [c("div",
|
|
1534
|
+
return (n, i) => (T(), a(t, { to: "body" }, [c("div", $t, [d(r, { name: "Snackbar__transition" }, {
|
|
1534
1535
|
default: z(() => [(T(!0), s(e, null, D(o.value, (e, t) => (T(), s("div", {
|
|
1535
1536
|
key: e.id,
|
|
1536
1537
|
class: "Snackbar__message"
|
|
@@ -1539,22 +1540,22 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1539
1540
|
style: x({ transform: `translateY(-${100 * t}%)` })
|
|
1540
1541
|
}, [c("div", { class: y(["Snackbar__messageBlock", `Snackbar__messageBlock--${e.type}`]) }, [c("div", null, M(e.text), 1), c("div", {
|
|
1541
1542
|
class: "Snackbar__messageClose",
|
|
1542
|
-
onClick: (t) => N(
|
|
1543
|
-
}, [d(
|
|
1543
|
+
onClick: (t) => N(Yt)(e.id)
|
|
1544
|
+
}, [d(W, {
|
|
1544
1545
|
class: "Snackbar__messageCloseIcon",
|
|
1545
1546
|
name: "x"
|
|
1546
|
-
})], 8,
|
|
1547
|
+
})], 8, en)], 2)], 4)]))), 128))]),
|
|
1547
1548
|
_: 1
|
|
1548
1549
|
})])]));
|
|
1549
1550
|
}
|
|
1550
|
-
}), [["__scopeId", "data-v-0a947963"]]),
|
|
1551
|
+
}), [["__scopeId", "data-v-0a947963"]]), nn = { key: 0 }, rn = ["width"], an = ["onClick"], on = { class: "vuiii-table__sortIcon" }, sn = {
|
|
1551
1552
|
key: 1,
|
|
1552
1553
|
class: "vuiii-table__label"
|
|
1553
|
-
},
|
|
1554
|
+
}, cn = { key: 0 }, ln = [
|
|
1554
1555
|
"onClick",
|
|
1555
1556
|
"onMouseenter",
|
|
1556
1557
|
"onMouseleave"
|
|
1557
|
-
],
|
|
1558
|
+
], un = { key: 0 }, dn = ["colspan"], fn = { class: "vuiii-table__noDataMessage" }, pn = /* @__PURE__ */ p({
|
|
1558
1559
|
__name: "Table",
|
|
1559
1560
|
props: /* @__PURE__ */ _({
|
|
1560
1561
|
items: {},
|
|
@@ -1620,7 +1621,7 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1620
1621
|
}
|
|
1621
1622
|
return (n, i) => {
|
|
1622
1623
|
let l = k("router-link");
|
|
1623
|
-
return T(), s("table", { class: y(["vuiii-table", { "vuiii-table--hover": n.$props.highlightOnHover && t.items?.length }]) }, [h.value ? (T(), s("thead",
|
|
1624
|
+
return T(), s("table", { class: y(["vuiii-table", { "vuiii-table--hover": n.$props.highlightOnHover && t.items?.length }]) }, [h.value ? (T(), s("thead", nn, [c("tr", null, [(T(!0), s(e, null, D(m.value, (e, t) => (T(), s("th", {
|
|
1624
1625
|
key: t,
|
|
1625
1626
|
style: x({ textAlign: e.align || "left" }),
|
|
1626
1627
|
width: e.width,
|
|
@@ -1631,10 +1632,10 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1631
1632
|
onClick: B((t) => b(e.name), ["prevent"]),
|
|
1632
1633
|
role: "button",
|
|
1633
1634
|
tabindex: "0"
|
|
1634
|
-
}, [u(M(e.label) + " ", 1), c("div",
|
|
1635
|
+
}, [u(M(e.label) + " ", 1), c("div", on, [d(W, {
|
|
1635
1636
|
name: "caret-sort",
|
|
1636
1637
|
size: "small"
|
|
1637
|
-
})])], 10,
|
|
1638
|
+
})])], 10, an)) : (T(), s("div", sn, M(e.label), 1))])], 14, rn))), 128)), n.$slots.tools ? (T(), s("th", cn)) : o("", !0)])])) : o("", !0), c("tbody", null, [(T(!0), s(e, null, D(_.value, (t, r) => (T(), s("tr", {
|
|
1638
1639
|
key: r,
|
|
1639
1640
|
class: y(t.rowClass),
|
|
1640
1641
|
onClick: (e) => ee(e, {
|
|
@@ -1673,14 +1674,14 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1673
1674
|
}, [O(n.$slots, "rowOptions", v({ ref_for: !0 }, {
|
|
1674
1675
|
item: t.item,
|
|
1675
1676
|
index: r
|
|
1676
|
-
}))])) : o("", !0)], 42,
|
|
1677
|
+
}))])) : o("", !0)], 42, ln))), 128)), !t.items?.length && (n.$props.noDataMessage || n.$slots.noDataMessage) ? (T(), s("tr", un, [c("td", { colspan: Object.keys(t.columns).length }, [O(n.$slots, "noDataMessage", {}, () => [c("div", fn, M(n.$props.noDataMessage), 1)])], 8, dn)])) : o("", !0)])], 2);
|
|
1677
1678
|
};
|
|
1678
1679
|
}
|
|
1679
|
-
}),
|
|
1680
|
+
}), mn = [
|
|
1680
1681
|
"value",
|
|
1681
1682
|
"disabled",
|
|
1682
1683
|
"readonly"
|
|
1683
|
-
],
|
|
1684
|
+
], hn = /* @__PURE__ */ U(/* @__PURE__ */ p({
|
|
1684
1685
|
inheritAttrs: !1,
|
|
1685
1686
|
__name: "Textarea",
|
|
1686
1687
|
props: /* @__PURE__ */ _({
|
|
@@ -1720,7 +1721,7 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1720
1721
|
disabled: e.$props.disabled,
|
|
1721
1722
|
readonly: e.$props.readonly,
|
|
1722
1723
|
onInput: t[0] ||= (e) => s(e)
|
|
1723
|
-
}), null, 16,
|
|
1724
|
+
}), null, 16, mn)]),
|
|
1724
1725
|
_: 2
|
|
1725
1726
|
}, [N(i).prefix ? {
|
|
1726
1727
|
name: "prefix",
|
|
@@ -1734,7 +1735,7 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1734
1735
|
"prefix-icon"
|
|
1735
1736
|
]));
|
|
1736
1737
|
}
|
|
1737
|
-
}), [["__scopeId", "data-v-dde25ebf"]]),
|
|
1738
|
+
}), [["__scopeId", "data-v-dde25ebf"]]), gn = { class: "Tooltip__trigger" }, _n = /* @__PURE__ */ p({
|
|
1738
1739
|
__name: "Tooltip",
|
|
1739
1740
|
props: {
|
|
1740
1741
|
title: {},
|
|
@@ -1762,13 +1763,13 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1762
1763
|
"--offset": e.offset == null ? void 0 : `${e.offset}px`,
|
|
1763
1764
|
"--delay": e.delay == null ? void 0 : `${e.delay}ms`
|
|
1764
1765
|
})
|
|
1765
|
-
}, [c("div",
|
|
1766
|
+
}, [c("div", gn, [O(t.$slots, "default")]), e.title || t.$slots.title ? (T(), s("div", {
|
|
1766
1767
|
key: 0,
|
|
1767
1768
|
class: y(["Tooltip__bubble", [`Tooltip__bubble--${e.placement}`, { "Tooltip__bubble--withArrow": e.withArrow }]]),
|
|
1768
1769
|
role: "tooltip"
|
|
1769
1770
|
}, [O(t.$slots, "title", {}, () => [u(M(e.title), 1)])], 2)) : o("", !0)], 6));
|
|
1770
1771
|
}
|
|
1771
|
-
}),
|
|
1772
|
+
}), vn = (e = document.body) => {
|
|
1772
1773
|
let t = (e) => {
|
|
1773
1774
|
e.defaultPrevented || (e.dataTransfer.dropEffect = "none", e.preventDefault());
|
|
1774
1775
|
}, n = (e) => {
|
|
@@ -1782,8 +1783,8 @@ var Qt = { class: "Snackbar" }, $t = ["onClick"], en = /* @__PURE__ */ H(/* @__P
|
|
|
1782
1783
|
};
|
|
1783
1784
|
//#endregion
|
|
1784
1785
|
//#region src/composables/useSubmitAction.ts
|
|
1785
|
-
function
|
|
1786
|
-
let n =
|
|
1786
|
+
function yn(e, t = {}) {
|
|
1787
|
+
let n = Qt(), r = Qe(), i = ie(), a = E(!1), o = E(!1), s = E(null), c = E(t.initialResultValue), l = async (...l) => {
|
|
1787
1788
|
try {
|
|
1788
1789
|
if (a.value = !0, s.value = null, t.onBeforeSubmit && await t.onBeforeSubmit({
|
|
1789
1790
|
params: l,
|
|
@@ -1831,8 +1832,8 @@ function vn(e, t = {}) {
|
|
|
1831
1832
|
}
|
|
1832
1833
|
//#endregion
|
|
1833
1834
|
//#region src/composables/useLoadData.ts
|
|
1834
|
-
var
|
|
1835
|
-
let { isSubmitting: n, hasSubmitted: r, submit: i, result: a, error: o } =
|
|
1835
|
+
var bn = (e, t = {}) => {
|
|
1836
|
+
let { isSubmitting: n, hasSubmitted: r, submit: i, result: a, error: o } = yn(e, {
|
|
1836
1837
|
onBeforeSubmit: t.onBeforeLoad ? ({ params: e, dialog: n, snackbar: r }) => t.onBeforeLoad({
|
|
1837
1838
|
params: e,
|
|
1838
1839
|
dialog: n,
|
|
@@ -1866,12 +1867,12 @@ var yn = (e, t = {}) => {
|
|
|
1866
1867
|
data: a,
|
|
1867
1868
|
error: o
|
|
1868
1869
|
};
|
|
1869
|
-
},
|
|
1870
|
-
function
|
|
1871
|
-
let n = E([]), r = E(), { immediate: i, initialValue: a, ...o } = t, { isLoading: s, hasLoaded: c, load: l } =
|
|
1870
|
+
}, xn = 25;
|
|
1871
|
+
function Sn(e, t = {}) {
|
|
1872
|
+
let n = E([]), r = E(), { immediate: i, initialValue: a, ...o } = t, { isLoading: s, hasLoaded: c, load: l } = bn(e, o), u = async (e = 1) => {
|
|
1872
1873
|
let i = await l({
|
|
1873
1874
|
page: e,
|
|
1874
|
-
itemsPerPage: t.itemsPerPage ||
|
|
1875
|
+
itemsPerPage: t.itemsPerPage || xn
|
|
1875
1876
|
});
|
|
1876
1877
|
return n.value = i.items, r.value = i.pagination, i;
|
|
1877
1878
|
};
|
|
@@ -1885,7 +1886,7 @@ function xn(e, t = {}) {
|
|
|
1885
1886
|
if (!r.value?.hasNextPage) return;
|
|
1886
1887
|
let e = await l({
|
|
1887
1888
|
page: r.value.currentPage + 1,
|
|
1888
|
-
itemsPerPage: t.itemsPerPage ||
|
|
1889
|
+
itemsPerPage: t.itemsPerPage || xn
|
|
1889
1890
|
});
|
|
1890
1891
|
return t.append ? n.value = [...n.value, ...e.items] : n.value = e.items, r.value = e.pagination, e;
|
|
1891
1892
|
},
|
|
@@ -1893,7 +1894,7 @@ function xn(e, t = {}) {
|
|
|
1893
1894
|
if (!r.value?.hasPreviousPage) return;
|
|
1894
1895
|
let e = await l({
|
|
1895
1896
|
page: r.value.currentPage - 1,
|
|
1896
|
-
itemsPerPage: t.itemsPerPage ||
|
|
1897
|
+
itemsPerPage: t.itemsPerPage || xn
|
|
1897
1898
|
});
|
|
1898
1899
|
return t.append ? n.value = [...e.items, ...n.value] : n.value = e.items, r.value = e.pagination, e;
|
|
1899
1900
|
}
|
|
@@ -1901,7 +1902,7 @@ function xn(e, t = {}) {
|
|
|
1901
1902
|
}
|
|
1902
1903
|
//#endregion
|
|
1903
1904
|
//#region src/composables/useOnFocusOutside.ts
|
|
1904
|
-
function
|
|
1905
|
+
function Cn(e, t) {
|
|
1905
1906
|
let n = (n) => {
|
|
1906
1907
|
e.value?.contains(n.target) || t(n);
|
|
1907
1908
|
};
|
|
@@ -1911,8 +1912,8 @@ function Sn(e, t) {
|
|
|
1911
1912
|
}
|
|
1912
1913
|
//#endregion
|
|
1913
1914
|
//#region src/composables/useRouteQuery.ts
|
|
1914
|
-
var
|
|
1915
|
-
function
|
|
1915
|
+
var wn = (e) => e !== "" && e != null && (Array.isArray(e) ? e.length > 0 : !0);
|
|
1916
|
+
function Tn(e) {
|
|
1916
1917
|
let t = ie(), n = re(), r = i(() => {
|
|
1917
1918
|
let t = n.query;
|
|
1918
1919
|
return e.filter?.length && (t = Object.fromEntries(Object.entries(t).filter(([t]) => e.filter?.includes(t)))), t = Object.fromEntries(Object.entries(t).map(([t, n]) => [t, decodeURIComponent(e.parse?.[t] ? e.parse[t](n) : n)])), e.defaults && Object.entries(e.defaults).forEach(([e, n]) => {
|
|
@@ -1922,19 +1923,19 @@ function wn(e) {
|
|
|
1922
1923
|
return R(r, () => e.onChange?.(r.value), { immediate: e.immediate }), {
|
|
1923
1924
|
queryParams: r,
|
|
1924
1925
|
setQuery: (e) => {
|
|
1925
|
-
let n = Object.fromEntries(Object.entries(e).filter(([e, t]) =>
|
|
1926
|
+
let n = Object.fromEntries(Object.entries(e).filter(([e, t]) => wn(t)).map(([e, t]) => [e, a(e, t)]));
|
|
1926
1927
|
return t.push({ query: n });
|
|
1927
1928
|
},
|
|
1928
1929
|
setQueryParam: (e, r) => {
|
|
1929
1930
|
let i = { ...n.query };
|
|
1930
|
-
return i[e] =
|
|
1931
|
+
return i[e] = wn(r) ? a(e, r) : void 0, t.push({ query: i });
|
|
1931
1932
|
}
|
|
1932
1933
|
};
|
|
1933
1934
|
}
|
|
1934
1935
|
//#endregion
|
|
1935
1936
|
//#region src/composables/usePageFromRouteQuery.ts
|
|
1936
|
-
function
|
|
1937
|
-
let { queryParams: t, setQuery: n } =
|
|
1937
|
+
function En(e) {
|
|
1938
|
+
let { queryParams: t, setQuery: n } = Tn({
|
|
1938
1939
|
onChange: (t) => e.onChange?.(t.page),
|
|
1939
1940
|
filter: ["page"],
|
|
1940
1941
|
parse: { page: (e) => Number(e) || 1 },
|
|
@@ -1947,7 +1948,7 @@ function Tn(e) {
|
|
|
1947
1948
|
}
|
|
1948
1949
|
//#endregion
|
|
1949
1950
|
//#region src/composables/useValidation.ts
|
|
1950
|
-
function
|
|
1951
|
+
function Dn(e) {
|
|
1951
1952
|
let t = E(), n = E(!1), r = async (r) => (n.value = !0, t.value = await e(r), n.value = !1, a.value), a = i(() => t.value?.isValid ?? !1), o = i(() => !a.value), s = i(() => t.value && !n.value ? t.value.errorMessages : {}), c = i(() => t.value?.validatedFields ?? {});
|
|
1952
1953
|
return {
|
|
1953
1954
|
isValidating: i(() => n.value),
|
|
@@ -1960,18 +1961,18 @@ function En(e) {
|
|
|
1960
1961
|
}
|
|
1961
1962
|
//#endregion
|
|
1962
1963
|
//#region src/utils/resolveFilesFromClipboardEvent.ts
|
|
1963
|
-
function
|
|
1964
|
+
function On(e, t = {}) {
|
|
1964
1965
|
let n = Array.from(e.clipboardData?.items || []).filter((e) => e.kind === "file").map((e) => e.getAsFile()).filter((e) => e !== null);
|
|
1965
1966
|
return t.accept && (n = n.filter((e) => e.type.startsWith(t.accept + "/"))), t.multiple || (n = n.slice(0, 1)), n;
|
|
1966
1967
|
}
|
|
1967
1968
|
//#endregion
|
|
1968
1969
|
//#region src/valueParsers/dateValueParser.ts
|
|
1969
|
-
var
|
|
1970
|
+
var kn = {
|
|
1970
1971
|
stringify: (e) => e.toISOString().slice(0, 10),
|
|
1971
1972
|
parse: (e) => new Date(e)
|
|
1972
|
-
},
|
|
1973
|
+
}, An = {
|
|
1973
1974
|
stringify: (e) => String(e),
|
|
1974
1975
|
parse: (e) => Number(e)
|
|
1975
|
-
},
|
|
1976
|
+
}, jn = class extends Error {};
|
|
1976
1977
|
//#endregion
|
|
1977
|
-
export {
|
|
1978
|
+
export { Ee as Autocomplete, Oe as Breadcrumbs, G as Button, Me as ButtonGroup, Be as Checkbox, He as CheckboxGroup, kn as DateValueParser, at as DialogLayout, lt as DialogStack, ut as Divider, he as Dropdown, ye as DropdownMenu, de as FadeTransition, _t as FilePicker, Tt as FormFields, wt as FormGroup, W as Icon, Dt as IconButton, kt as Input, An as NumberValueParser, At as RadioButtonGroup, Ft as RadioGroup, Ht as Select, Wt as ShortcutIcon, tn as SnackbarStack, pn as Table, hn as Textarea, _n as Tooltip, jn as ValidationError, Y as normalizeOptions, se as registerCustomIconResolver, On as resolveFilesFromClipboardEvent, mt as retrieveFilesFromDataTransfer, pt as retrieveMediaUrlFromHTML, Xe as useCloseDialog, be as useCursor, Qe as useDialogStack, ht as useDropArea, bn as useLoadData, Sn as useLoadPaginatedData, fe as useOnClickOutside, Cn as useOnFocusOutside, pe as useOnKeyPress, En as usePageFromRouteQuery, vn as usePreventHandlingDrop, Tn as useRouteQuery, Qt as useSnackbar, yn as useSubmitAction, Dn as useValidation };
|