@defaultusr/dai-ui 1.1.6 → 1.1.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/main.js +68 -64
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Combobox as te, ComboboxInput as oe, injectCombobox as ae, ComboboxOptions as le, ComboboxOption as ie, useFormControl as A, PopoverDialog as ne, MenuItems as se, MenuItem as re, Tab as de, TabList as ue } from "vue-composable-ui";
|
|
2
|
-
import { Menu as
|
|
3
|
-
import { reactive as ce, watch as T, onUnmounted as R, defineComponent as v, createElementBlock as u, openBlock as a, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as
|
|
2
|
+
import { Menu as St, Popover as Ut, TabContainer as Nt, TabPanel as Xt } from "vue-composable-ui";
|
|
3
|
+
import { reactive as ce, watch as T, onUnmounted as R, defineComponent as v, createElementBlock as u, openBlock as a, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as m, createCommentVNode as h, createElementVNode as d, computed as $, createVNode as V, normalizeProps as fe, guardReactiveProps as me, withCtx as c, Transition as P, mergeModels as M, useModel as x, useId as L, mergeProps as _, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as N, onMounted as j, withDirectives as F, renderList as X, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as Z, TransitionGroup as ke, withModifiers as $e } from "vue";
|
|
4
4
|
import './assets/main.css';function xe(e, ...t) {
|
|
5
5
|
let o = [];
|
|
6
6
|
const l = ce(t);
|
|
@@ -20,7 +20,7 @@ import './assets/main.css';function xe(e, ...t) {
|
|
|
20
20
|
classList: l
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
const _e = { class: "dai-label" },
|
|
23
|
+
const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
24
24
|
__name: "label",
|
|
25
25
|
props: {
|
|
26
26
|
text: {}
|
|
@@ -69,7 +69,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
69
69
|
"dai-form-control__input-group--invalid": e.invalid
|
|
70
70
|
}])
|
|
71
71
|
}, [
|
|
72
|
-
e.label ? (a(),
|
|
72
|
+
e.label ? (a(), m(O, {
|
|
73
73
|
key: 0,
|
|
74
74
|
text: e.label,
|
|
75
75
|
for: e.labelFor,
|
|
@@ -84,7 +84,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
84
84
|
key: 0,
|
|
85
85
|
class: "dai-form-control__validation-message",
|
|
86
86
|
role: "alert"
|
|
87
|
-
},
|
|
87
|
+
}, S = /* @__PURE__ */ v({
|
|
88
88
|
inheritAttrs: !1,
|
|
89
89
|
__name: "formControl",
|
|
90
90
|
props: {
|
|
@@ -112,13 +112,13 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
112
112
|
"dai-form-control--lg": l.value === "large"
|
|
113
113
|
}])
|
|
114
114
|
}, [
|
|
115
|
-
e.label && e.labelPosition !== "inside" ? (a(),
|
|
115
|
+
e.label && e.labelPosition !== "inside" ? (a(), m(O, {
|
|
116
116
|
key: 0,
|
|
117
117
|
for: e.labelFor,
|
|
118
118
|
text: e.label
|
|
119
119
|
}, null, 8, ["for", "text"])) : h("", !0),
|
|
120
120
|
d("div", Ce, [
|
|
121
|
-
V(Me, me(
|
|
121
|
+
V(Me, fe(me({
|
|
122
122
|
...t,
|
|
123
123
|
label: e.labelPosition === "inside" ? e.label : void 0,
|
|
124
124
|
variant: o.value,
|
|
@@ -129,7 +129,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
131
131
|
}, 16),
|
|
132
|
-
e.hint ? (a(),
|
|
132
|
+
e.hint ? (a(), m(D, {
|
|
133
133
|
key: 0,
|
|
134
134
|
text: e.hint,
|
|
135
135
|
class: "dai-form-control__hint"
|
|
@@ -181,7 +181,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
181
181
|
emits: ["update:modelValue"],
|
|
182
182
|
setup(e) {
|
|
183
183
|
const t = e, o = x(e, "modelValue"), l = t.id || L();
|
|
184
|
-
return (i, s) => (a(),
|
|
184
|
+
return (i, s) => (a(), m(S, _(t, {
|
|
185
185
|
labelFor: r(l),
|
|
186
186
|
class: i.$attrs.class
|
|
187
187
|
}), {
|
|
@@ -203,7 +203,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
203
203
|
}), wt = /* @__PURE__ */ v({
|
|
204
204
|
__name: "comboboxInput",
|
|
205
205
|
setup(e) {
|
|
206
|
-
return (t, o) => (a(),
|
|
206
|
+
return (t, o) => (a(), m(r(oe), { class: "dai-form-control__input-group__control" }, {
|
|
207
207
|
default: c(() => [
|
|
208
208
|
p(t.$slots, "default")
|
|
209
209
|
]),
|
|
@@ -223,16 +223,20 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
223
223
|
if (!t)
|
|
224
224
|
throw new Error("Combobox injectable context is not provided");
|
|
225
225
|
const o = $(() => ({
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
...t.activatorAttrs.value,
|
|
227
|
+
onclick: () => t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 })
|
|
228
228
|
}));
|
|
229
|
-
return (l, i) => (a(), u("button", _(o.value, {
|
|
229
|
+
return (l, i) => (a(), u("button", _(o.value, {
|
|
230
|
+
type: "button",
|
|
231
|
+
class: "dai-form-control__input-group__control dai-combobox-btn"
|
|
232
|
+
}), [
|
|
230
233
|
p(l.$slots, "default", {}, () => [
|
|
231
234
|
r(t).displayValue.value ? (a(), u(I, { key: 1 }, [
|
|
232
235
|
E(k(r(t).displayValue), 1)
|
|
233
236
|
], 64)) : (a(), u("span", Le, k(e.placeholder || "Select..."), 1)),
|
|
234
237
|
i[0] || (i[0] = d("svg", {
|
|
235
238
|
class: "dai-combobox-btn__chevron",
|
|
239
|
+
role: "presentation",
|
|
236
240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
237
241
|
viewBox: "0 0 16 16"
|
|
238
242
|
}, [
|
|
@@ -249,7 +253,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
249
253
|
}), Te = /* @__PURE__ */ v({
|
|
250
254
|
__name: "comboboxOptions",
|
|
251
255
|
setup(e) {
|
|
252
|
-
return (t, o) => (a(),
|
|
256
|
+
return (t, o) => (a(), m(P, {
|
|
253
257
|
"enter-from-class": "dai-combobox-options--anim",
|
|
254
258
|
"leave-to-class": "dai-combobox-options--anim"
|
|
255
259
|
}, {
|
|
@@ -275,7 +279,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
275
279
|
value: {}
|
|
276
280
|
},
|
|
277
281
|
setup(e) {
|
|
278
|
-
return (t, o) => (a(),
|
|
282
|
+
return (t, o) => (a(), m(r(ie), {
|
|
279
283
|
value: e.value,
|
|
280
284
|
class: "dai-combobox-option"
|
|
281
285
|
}, {
|
|
@@ -307,12 +311,12 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
307
311
|
tabindex: "-1",
|
|
308
312
|
"aria-hidden": "true"
|
|
309
313
|
};
|
|
310
|
-
function
|
|
314
|
+
function Oe(e, t) {
|
|
311
315
|
return a(), u("button", Fe, [
|
|
312
316
|
p(e.$slots, "default")
|
|
313
317
|
]);
|
|
314
318
|
}
|
|
315
|
-
const Y = /* @__PURE__ */ Ie(je, [["render",
|
|
319
|
+
const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
|
|
316
320
|
key: 0,
|
|
317
321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
318
322
|
fill: "none",
|
|
@@ -367,16 +371,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
367
371
|
n,
|
|
368
372
|
t.validators,
|
|
369
373
|
t.showValidationError
|
|
370
|
-
),
|
|
374
|
+
), f = N(!1);
|
|
371
375
|
T(i, () => {
|
|
372
376
|
s.value = n.value?.files || null;
|
|
373
377
|
});
|
|
374
378
|
let C;
|
|
375
|
-
const G = $(() => t.type === "password" ?
|
|
379
|
+
const G = $(() => t.type === "password" ? f.value ? "text" : "password" : t.type), H = $(() => t.mask ? t.mask : t.type === "tel" ? {
|
|
376
380
|
mask: "{+7} (000) 000-00-00"
|
|
377
381
|
} : t.mask), K = $(() => t.pattern ? t.pattern : t.type === "tel" ? "^\\+7 \\(9\\d{2}\\) \\d{3}-\\d{2}-\\d{2}" : t.pattern), Q = $(() => t.title ? t.title : t.type === "tel" ? "+7 (999) 888-77-66" : t.title);
|
|
378
382
|
function W() {
|
|
379
|
-
|
|
383
|
+
f.value = !f.value;
|
|
380
384
|
}
|
|
381
385
|
function J() {
|
|
382
386
|
i.value = "";
|
|
@@ -396,7 +400,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
396
400
|
i.value = C.value;
|
|
397
401
|
});
|
|
398
402
|
});
|
|
399
|
-
}), (B, z) => (a(),
|
|
403
|
+
}), (B, z) => (a(), m(S, _(t, {
|
|
400
404
|
"label-for": r(o),
|
|
401
405
|
"validation-message": e.showValidationError ? "" : r(b),
|
|
402
406
|
invalid: t.invalid || !r(g),
|
|
@@ -417,14 +421,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
417
421
|
onInputPassive: ee,
|
|
418
422
|
onKeyupPassive: z[0] || (z[0] = (bt) => !r(g) && r(y)()),
|
|
419
423
|
class: "dai-form-control__input-group__control dai-form-control__input"
|
|
420
|
-
}), null, 16,
|
|
424
|
+
}), null, 16, Se),
|
|
421
425
|
p(B.$slots, "append"),
|
|
422
|
-
t.type === "password" && i.value ? (a(),
|
|
426
|
+
t.type === "password" && i.value ? (a(), m(Y, {
|
|
423
427
|
key: 0,
|
|
424
428
|
onClick: W
|
|
425
429
|
}, {
|
|
426
430
|
default: c(() => [
|
|
427
|
-
|
|
431
|
+
f.value ? (a(), u("svg", Ne, [...z[2] || (z[2] = [
|
|
428
432
|
d("path", {
|
|
429
433
|
"stroke-linecap": "round",
|
|
430
434
|
"stroke-linejoin": "round",
|
|
@@ -448,7 +452,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
448
452
|
]),
|
|
449
453
|
_: 1
|
|
450
454
|
})) : h("", !0),
|
|
451
|
-
e.clearable && i.value && !t.disabled ? (a(),
|
|
455
|
+
e.clearable && i.value && !t.disabled ? (a(), m(Y, {
|
|
452
456
|
key: 1,
|
|
453
457
|
onClick: J
|
|
454
458
|
}, {
|
|
@@ -508,7 +512,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
508
512
|
t.validators,
|
|
509
513
|
t.showValidationError
|
|
510
514
|
);
|
|
511
|
-
return (b, y) => (a(),
|
|
515
|
+
return (b, y) => (a(), m(S, _(t, {
|
|
512
516
|
"label-for": r(o),
|
|
513
517
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
514
518
|
invalid: t.invalid || !r(s),
|
|
@@ -520,14 +524,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
520
524
|
ref: i
|
|
521
525
|
}, { ...b.$attrs, class: void 0 }, {
|
|
522
526
|
id: r(o),
|
|
523
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
527
|
+
"onUpdate:modelValue": y[0] || (y[0] = (f) => l.value = f),
|
|
524
528
|
class: "dai-form-control__input-group__control dai-select"
|
|
525
529
|
}), [
|
|
526
530
|
p(b.$slots, "default", {}, () => [
|
|
527
|
-
(a(!0), u(I, null, X(e.options, (
|
|
528
|
-
value:
|
|
529
|
-
key:
|
|
530
|
-
}, k(
|
|
531
|
+
(a(!0), u(I, null, X(e.options, (f) => (a(), u("option", {
|
|
532
|
+
value: f[e.optionValue],
|
|
533
|
+
key: f[e.optionValue]
|
|
534
|
+
}, k(f[e.optionText]), 9, De))), 128))
|
|
531
535
|
])
|
|
532
536
|
], 16, Xe), [
|
|
533
537
|
[pe, l.value]
|
|
@@ -577,7 +581,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
577
581
|
emits: ["update:modelValue"],
|
|
578
582
|
setup(e) {
|
|
579
583
|
const t = e, o = x(e, "modelValue");
|
|
580
|
-
return (l, i) => (a(),
|
|
584
|
+
return (l, i) => (a(), m(r(Ee), _(t, {
|
|
581
585
|
displayValue: (s) => e.options.find((n) => n[e.optionValue] === s)?.[e.optionText] || "",
|
|
582
586
|
modelValue: o.value,
|
|
583
587
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
|
|
@@ -586,7 +590,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
586
590
|
V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
587
591
|
V(r(Te), null, {
|
|
588
592
|
default: c(() => [
|
|
589
|
-
(a(!0), u(I, null, X(e.options, (s) => (a(),
|
|
593
|
+
(a(!0), u(I, null, X(e.options, (s) => (a(), m(r(Ae), {
|
|
590
594
|
key: s[e.optionValue],
|
|
591
595
|
value: s[e.optionValue]
|
|
592
596
|
}, {
|
|
@@ -623,10 +627,10 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
623
627
|
);
|
|
624
628
|
function b() {
|
|
625
629
|
if (!t.autosize) return;
|
|
626
|
-
const y = i.value,
|
|
627
|
-
y.style.height = "auto", y.style.height = `${y.scrollHeight +
|
|
630
|
+
const y = i.value, f = y.offsetHeight - y.clientHeight;
|
|
631
|
+
y.style.height = "auto", y.style.height = `${y.scrollHeight + f}px`;
|
|
628
632
|
}
|
|
629
|
-
return j(b), (y,
|
|
633
|
+
return j(b), (y, f) => (a(), m(S, _(t, {
|
|
630
634
|
"label-for": r(o),
|
|
631
635
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
632
636
|
invalid: !r(s),
|
|
@@ -638,8 +642,8 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
638
642
|
ref: i
|
|
639
643
|
}, { ...y.$attrs, class: void 0 }, {
|
|
640
644
|
id: r(o),
|
|
641
|
-
"onUpdate:modelValue":
|
|
642
|
-
onKeyupPassive:
|
|
645
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C),
|
|
646
|
+
onKeyupPassive: f[1] || (f[1] = (C) => !r(s) && r(g)()),
|
|
643
647
|
onInputPassive: b,
|
|
644
648
|
class: ["form-control__textarea", {
|
|
645
649
|
"form-control__textarea--autosize": e.autosize
|
|
@@ -688,7 +692,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
688
692
|
}), null, 16, Ye), [
|
|
689
693
|
[be, o.value]
|
|
690
694
|
]),
|
|
691
|
-
e.label || n.$slots.default ? (a(),
|
|
695
|
+
e.label || n.$slots.default ? (a(), m(O, {
|
|
692
696
|
key: 0,
|
|
693
697
|
for: r(l)
|
|
694
698
|
}, {
|
|
@@ -699,7 +703,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
699
703
|
]),
|
|
700
704
|
_: 3
|
|
701
705
|
}, 8, ["for"])) : h("", !0),
|
|
702
|
-
e.hint || n.$slots.hint ? (a(),
|
|
706
|
+
e.hint || n.$slots.hint ? (a(), m(D, {
|
|
703
707
|
key: 1,
|
|
704
708
|
class: "dai-checkbox-control__hint"
|
|
705
709
|
}, {
|
|
@@ -795,7 +799,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
795
799
|
class: "dai-switch__thumb"
|
|
796
800
|
}, null, -1)
|
|
797
801
|
])], 10, Je),
|
|
798
|
-
e.label || l.$slots.default ? (a(),
|
|
802
|
+
e.label || l.$slots.default ? (a(), m(O, {
|
|
799
803
|
key: 0,
|
|
800
804
|
for: r(o)
|
|
801
805
|
}, {
|
|
@@ -806,7 +810,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
806
810
|
]),
|
|
807
811
|
_: 3
|
|
808
812
|
}, 8, ["for"])) : h("", !0),
|
|
809
|
-
e.hint || l.$slots.hint ? (a(),
|
|
813
|
+
e.hint || l.$slots.hint ? (a(), m(D, {
|
|
810
814
|
key: 1,
|
|
811
815
|
class: "dai-switch-control__hint"
|
|
812
816
|
}, {
|
|
@@ -845,7 +849,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
845
849
|
},
|
|
846
850
|
setup(e) {
|
|
847
851
|
const t = e, o = $(() => t.submit ? "submit" : t.reset ? "reset" : "button"), l = $(() => t.variant ? t.variant : t.plain ? "plain" : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), i = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
|
|
848
|
-
return (s, n) => (a(),
|
|
852
|
+
return (s, n) => (a(), m(ge(e.href ? "a" : "button"), {
|
|
849
853
|
type: e.href ? void 0 : o.value,
|
|
850
854
|
form: typeof e.submit == "string" ? e.submit : void 0,
|
|
851
855
|
href: e.href,
|
|
@@ -903,7 +907,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
903
907
|
}), zt = /* @__PURE__ */ v({
|
|
904
908
|
__name: "popoverDialog",
|
|
905
909
|
setup(e) {
|
|
906
|
-
return (t, o) => (a(),
|
|
910
|
+
return (t, o) => (a(), m(P, {
|
|
907
911
|
"enter-from-class": "dai-popover-dialog--anim",
|
|
908
912
|
"leave-to-class": "dai-popover-dialog--anim"
|
|
909
913
|
}, {
|
|
@@ -921,7 +925,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
921
925
|
}), Et = /* @__PURE__ */ v({
|
|
922
926
|
__name: "menuItems",
|
|
923
927
|
setup(e) {
|
|
924
|
-
return (t, o) => (a(),
|
|
928
|
+
return (t, o) => (a(), m(P, {
|
|
925
929
|
"enter-from-class": "dai-menu-items--anim",
|
|
926
930
|
"leave-to-class": "dai-menu-items--anim"
|
|
927
931
|
}, {
|
|
@@ -945,7 +949,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
945
949
|
icon: {}
|
|
946
950
|
},
|
|
947
951
|
setup(e) {
|
|
948
|
-
return (t, o) => (a(),
|
|
952
|
+
return (t, o) => (a(), m(r(re), { class: "dai-menu-item" }, {
|
|
949
953
|
default: c(({ isActive: l, isSelected: i }) => [
|
|
950
954
|
e.icon ? (a(), u("div", ot, [
|
|
951
955
|
d("div", {
|
|
@@ -968,7 +972,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
968
972
|
value: {}
|
|
969
973
|
},
|
|
970
974
|
setup(e) {
|
|
971
|
-
return (t, o) => (a(),
|
|
975
|
+
return (t, o) => (a(), m(r(de), {
|
|
972
976
|
id: e.id,
|
|
973
977
|
"aria-controls": e.ariaControls,
|
|
974
978
|
value: e.value,
|
|
@@ -995,7 +999,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
995
999
|
transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
|
|
996
1000
|
});
|
|
997
1001
|
}
|
|
998
|
-
return j(() => we(i)), (s, n) => (a(),
|
|
1002
|
+
return j(() => we(i)), (s, n) => (a(), m(r(ue), {
|
|
999
1003
|
ref_key: "tablist",
|
|
1000
1004
|
ref: t,
|
|
1001
1005
|
onClickPassive: i,
|
|
@@ -1043,7 +1047,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1043
1047
|
window.addEventListener("click", s, { passive: !0 });
|
|
1044
1048
|
}), R(() => {
|
|
1045
1049
|
window.removeEventListener("click", s);
|
|
1046
|
-
}), (n, g) => (a(),
|
|
1050
|
+
}), (n, g) => (a(), m(Z, { to: "body" }, [
|
|
1047
1051
|
V(P, {
|
|
1048
1052
|
appear: "",
|
|
1049
1053
|
"enter-from-class": "nui-offcanvas--animate-hidden",
|
|
@@ -1107,7 +1111,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1107
1111
|
}, ut = { class: "dai-notification__content" }, ct = {
|
|
1108
1112
|
key: 0,
|
|
1109
1113
|
class: "dai-notification__content__detail"
|
|
1110
|
-
},
|
|
1114
|
+
}, ft = /* @__PURE__ */ v({
|
|
1111
1115
|
__name: "notification",
|
|
1112
1116
|
props: /* @__PURE__ */ M({
|
|
1113
1117
|
color: {},
|
|
@@ -1219,15 +1223,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1219
1223
|
"leave-active-class": "dai-notification-queue__item--anim-out"
|
|
1220
1224
|
}, {
|
|
1221
1225
|
default: c(() => [
|
|
1222
|
-
(a(!0), u(I, null, X(l.value, (
|
|
1223
|
-
key:
|
|
1224
|
-
color:
|
|
1225
|
-
icon:
|
|
1226
|
-
message:
|
|
1227
|
-
detail:
|
|
1228
|
-
timeout:
|
|
1229
|
-
modelValue:
|
|
1230
|
-
"onUpdate:modelValue": [(C) =>
|
|
1226
|
+
(a(!0), u(I, null, X(l.value, (f) => (a(), m(ft, {
|
|
1227
|
+
key: f.id,
|
|
1228
|
+
color: f.color,
|
|
1229
|
+
icon: f.type,
|
|
1230
|
+
message: f.message,
|
|
1231
|
+
detail: f.detail,
|
|
1232
|
+
timeout: f.timeout ?? e.timeout,
|
|
1233
|
+
modelValue: f.show,
|
|
1234
|
+
"onUpdate:modelValue": [(C) => f.show = C, (C) => n(f.id)],
|
|
1231
1235
|
class: "dai-notification-queue__item"
|
|
1232
1236
|
}, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1233
1237
|
]),
|
|
@@ -1235,7 +1239,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1235
1239
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1236
1240
|
], 2));
|
|
1237
1241
|
}
|
|
1238
|
-
}),
|
|
1242
|
+
}), mt = ["aria-valuenow"], It = /* @__PURE__ */ v({
|
|
1239
1243
|
__name: "progressbar",
|
|
1240
1244
|
props: {
|
|
1241
1245
|
value: {},
|
|
@@ -1271,7 +1275,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1271
1275
|
"progress-infinite": o.value
|
|
1272
1276
|
}, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
|
|
1273
1277
|
}, null, 6)
|
|
1274
|
-
], 14,
|
|
1278
|
+
], 14, mt));
|
|
1275
1279
|
}
|
|
1276
1280
|
}), vt = {
|
|
1277
1281
|
key: 0,
|
|
@@ -1291,7 +1295,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1291
1295
|
}
|
|
1292
1296
|
return T(t, (l) => {
|
|
1293
1297
|
l ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
1294
|
-
}), (l, i) => (a(),
|
|
1298
|
+
}), (l, i) => (a(), m(Z, { to: "body" }, [
|
|
1295
1299
|
V(P, {
|
|
1296
1300
|
appear: "",
|
|
1297
1301
|
name: "modal",
|
|
@@ -1329,11 +1333,11 @@ export {
|
|
|
1329
1333
|
Ae as ComboboxOption,
|
|
1330
1334
|
Te as ComboboxOptions,
|
|
1331
1335
|
kt as Input,
|
|
1332
|
-
|
|
1336
|
+
St as Menu,
|
|
1333
1337
|
Lt as MenuItem,
|
|
1334
1338
|
Et as MenuItems,
|
|
1335
1339
|
jt as Modal,
|
|
1336
|
-
|
|
1340
|
+
ft as Notification,
|
|
1337
1341
|
At as NotificationQueue,
|
|
1338
1342
|
Pt as Offcanvas,
|
|
1339
1343
|
Ut as Popover,
|