@defaultusr/dai-ui 1.1.7 → 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 +64 -63
- 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,8 +223,8 @@ 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
229
|
return (l, i) => (a(), u("button", _(o.value, {
|
|
230
230
|
type: "button",
|
|
@@ -236,6 +236,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
236
236
|
], 64)) : (a(), u("span", Le, k(e.placeholder || "Select..."), 1)),
|
|
237
237
|
i[0] || (i[0] = d("svg", {
|
|
238
238
|
class: "dai-combobox-btn__chevron",
|
|
239
|
+
role: "presentation",
|
|
239
240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
241
|
viewBox: "0 0 16 16"
|
|
241
242
|
}, [
|
|
@@ -252,7 +253,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
252
253
|
}), Te = /* @__PURE__ */ v({
|
|
253
254
|
__name: "comboboxOptions",
|
|
254
255
|
setup(e) {
|
|
255
|
-
return (t, o) => (a(),
|
|
256
|
+
return (t, o) => (a(), m(P, {
|
|
256
257
|
"enter-from-class": "dai-combobox-options--anim",
|
|
257
258
|
"leave-to-class": "dai-combobox-options--anim"
|
|
258
259
|
}, {
|
|
@@ -278,7 +279,7 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
278
279
|
value: {}
|
|
279
280
|
},
|
|
280
281
|
setup(e) {
|
|
281
|
-
return (t, o) => (a(),
|
|
282
|
+
return (t, o) => (a(), m(r(ie), {
|
|
282
283
|
value: e.value,
|
|
283
284
|
class: "dai-combobox-option"
|
|
284
285
|
}, {
|
|
@@ -310,12 +311,12 @@ const _e = { class: "dai-label" }, S = /* @__PURE__ */ v({
|
|
|
310
311
|
tabindex: "-1",
|
|
311
312
|
"aria-hidden": "true"
|
|
312
313
|
};
|
|
313
|
-
function
|
|
314
|
+
function Oe(e, t) {
|
|
314
315
|
return a(), u("button", Fe, [
|
|
315
316
|
p(e.$slots, "default")
|
|
316
317
|
]);
|
|
317
318
|
}
|
|
318
|
-
const Y = /* @__PURE__ */ Ie(je, [["render",
|
|
319
|
+
const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
|
|
319
320
|
key: 0,
|
|
320
321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
322
|
fill: "none",
|
|
@@ -370,16 +371,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
370
371
|
n,
|
|
371
372
|
t.validators,
|
|
372
373
|
t.showValidationError
|
|
373
|
-
),
|
|
374
|
+
), f = N(!1);
|
|
374
375
|
T(i, () => {
|
|
375
376
|
s.value = n.value?.files || null;
|
|
376
377
|
});
|
|
377
378
|
let C;
|
|
378
|
-
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" ? {
|
|
379
380
|
mask: "{+7} (000) 000-00-00"
|
|
380
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);
|
|
381
382
|
function W() {
|
|
382
|
-
|
|
383
|
+
f.value = !f.value;
|
|
383
384
|
}
|
|
384
385
|
function J() {
|
|
385
386
|
i.value = "";
|
|
@@ -399,7 +400,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
399
400
|
i.value = C.value;
|
|
400
401
|
});
|
|
401
402
|
});
|
|
402
|
-
}), (B, z) => (a(),
|
|
403
|
+
}), (B, z) => (a(), m(S, _(t, {
|
|
403
404
|
"label-for": r(o),
|
|
404
405
|
"validation-message": e.showValidationError ? "" : r(b),
|
|
405
406
|
invalid: t.invalid || !r(g),
|
|
@@ -420,14 +421,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
420
421
|
onInputPassive: ee,
|
|
421
422
|
onKeyupPassive: z[0] || (z[0] = (bt) => !r(g) && r(y)()),
|
|
422
423
|
class: "dai-form-control__input-group__control dai-form-control__input"
|
|
423
|
-
}), null, 16,
|
|
424
|
+
}), null, 16, Se),
|
|
424
425
|
p(B.$slots, "append"),
|
|
425
|
-
t.type === "password" && i.value ? (a(),
|
|
426
|
+
t.type === "password" && i.value ? (a(), m(Y, {
|
|
426
427
|
key: 0,
|
|
427
428
|
onClick: W
|
|
428
429
|
}, {
|
|
429
430
|
default: c(() => [
|
|
430
|
-
|
|
431
|
+
f.value ? (a(), u("svg", Ne, [...z[2] || (z[2] = [
|
|
431
432
|
d("path", {
|
|
432
433
|
"stroke-linecap": "round",
|
|
433
434
|
"stroke-linejoin": "round",
|
|
@@ -451,7 +452,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
451
452
|
]),
|
|
452
453
|
_: 1
|
|
453
454
|
})) : h("", !0),
|
|
454
|
-
e.clearable && i.value && !t.disabled ? (a(),
|
|
455
|
+
e.clearable && i.value && !t.disabled ? (a(), m(Y, {
|
|
455
456
|
key: 1,
|
|
456
457
|
onClick: J
|
|
457
458
|
}, {
|
|
@@ -511,7 +512,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
511
512
|
t.validators,
|
|
512
513
|
t.showValidationError
|
|
513
514
|
);
|
|
514
|
-
return (b, y) => (a(),
|
|
515
|
+
return (b, y) => (a(), m(S, _(t, {
|
|
515
516
|
"label-for": r(o),
|
|
516
517
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
517
518
|
invalid: t.invalid || !r(s),
|
|
@@ -523,14 +524,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
523
524
|
ref: i
|
|
524
525
|
}, { ...b.$attrs, class: void 0 }, {
|
|
525
526
|
id: r(o),
|
|
526
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
527
|
+
"onUpdate:modelValue": y[0] || (y[0] = (f) => l.value = f),
|
|
527
528
|
class: "dai-form-control__input-group__control dai-select"
|
|
528
529
|
}), [
|
|
529
530
|
p(b.$slots, "default", {}, () => [
|
|
530
|
-
(a(!0), u(I, null, X(e.options, (
|
|
531
|
-
value:
|
|
532
|
-
key:
|
|
533
|
-
}, 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))
|
|
534
535
|
])
|
|
535
536
|
], 16, Xe), [
|
|
536
537
|
[pe, l.value]
|
|
@@ -580,7 +581,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
580
581
|
emits: ["update:modelValue"],
|
|
581
582
|
setup(e) {
|
|
582
583
|
const t = e, o = x(e, "modelValue");
|
|
583
|
-
return (l, i) => (a(),
|
|
584
|
+
return (l, i) => (a(), m(r(Ee), _(t, {
|
|
584
585
|
displayValue: (s) => e.options.find((n) => n[e.optionValue] === s)?.[e.optionText] || "",
|
|
585
586
|
modelValue: o.value,
|
|
586
587
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
|
|
@@ -589,7 +590,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
589
590
|
V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
590
591
|
V(r(Te), null, {
|
|
591
592
|
default: c(() => [
|
|
592
|
-
(a(!0), u(I, null, X(e.options, (s) => (a(),
|
|
593
|
+
(a(!0), u(I, null, X(e.options, (s) => (a(), m(r(Ae), {
|
|
593
594
|
key: s[e.optionValue],
|
|
594
595
|
value: s[e.optionValue]
|
|
595
596
|
}, {
|
|
@@ -626,10 +627,10 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
626
627
|
);
|
|
627
628
|
function b() {
|
|
628
629
|
if (!t.autosize) return;
|
|
629
|
-
const y = i.value,
|
|
630
|
-
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`;
|
|
631
632
|
}
|
|
632
|
-
return j(b), (y,
|
|
633
|
+
return j(b), (y, f) => (a(), m(S, _(t, {
|
|
633
634
|
"label-for": r(o),
|
|
634
635
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
635
636
|
invalid: !r(s),
|
|
@@ -641,8 +642,8 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
641
642
|
ref: i
|
|
642
643
|
}, { ...y.$attrs, class: void 0 }, {
|
|
643
644
|
id: r(o),
|
|
644
|
-
"onUpdate:modelValue":
|
|
645
|
-
onKeyupPassive:
|
|
645
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C),
|
|
646
|
+
onKeyupPassive: f[1] || (f[1] = (C) => !r(s) && r(g)()),
|
|
646
647
|
onInputPassive: b,
|
|
647
648
|
class: ["form-control__textarea", {
|
|
648
649
|
"form-control__textarea--autosize": e.autosize
|
|
@@ -691,7 +692,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
691
692
|
}), null, 16, Ye), [
|
|
692
693
|
[be, o.value]
|
|
693
694
|
]),
|
|
694
|
-
e.label || n.$slots.default ? (a(),
|
|
695
|
+
e.label || n.$slots.default ? (a(), m(O, {
|
|
695
696
|
key: 0,
|
|
696
697
|
for: r(l)
|
|
697
698
|
}, {
|
|
@@ -702,7 +703,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
702
703
|
]),
|
|
703
704
|
_: 3
|
|
704
705
|
}, 8, ["for"])) : h("", !0),
|
|
705
|
-
e.hint || n.$slots.hint ? (a(),
|
|
706
|
+
e.hint || n.$slots.hint ? (a(), m(D, {
|
|
706
707
|
key: 1,
|
|
707
708
|
class: "dai-checkbox-control__hint"
|
|
708
709
|
}, {
|
|
@@ -798,7 +799,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
798
799
|
class: "dai-switch__thumb"
|
|
799
800
|
}, null, -1)
|
|
800
801
|
])], 10, Je),
|
|
801
|
-
e.label || l.$slots.default ? (a(),
|
|
802
|
+
e.label || l.$slots.default ? (a(), m(O, {
|
|
802
803
|
key: 0,
|
|
803
804
|
for: r(o)
|
|
804
805
|
}, {
|
|
@@ -809,7 +810,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
809
810
|
]),
|
|
810
811
|
_: 3
|
|
811
812
|
}, 8, ["for"])) : h("", !0),
|
|
812
|
-
e.hint || l.$slots.hint ? (a(),
|
|
813
|
+
e.hint || l.$slots.hint ? (a(), m(D, {
|
|
813
814
|
key: 1,
|
|
814
815
|
class: "dai-switch-control__hint"
|
|
815
816
|
}, {
|
|
@@ -848,7 +849,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
848
849
|
},
|
|
849
850
|
setup(e) {
|
|
850
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");
|
|
851
|
-
return (s, n) => (a(),
|
|
852
|
+
return (s, n) => (a(), m(ge(e.href ? "a" : "button"), {
|
|
852
853
|
type: e.href ? void 0 : o.value,
|
|
853
854
|
form: typeof e.submit == "string" ? e.submit : void 0,
|
|
854
855
|
href: e.href,
|
|
@@ -906,7 +907,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
906
907
|
}), zt = /* @__PURE__ */ v({
|
|
907
908
|
__name: "popoverDialog",
|
|
908
909
|
setup(e) {
|
|
909
|
-
return (t, o) => (a(),
|
|
910
|
+
return (t, o) => (a(), m(P, {
|
|
910
911
|
"enter-from-class": "dai-popover-dialog--anim",
|
|
911
912
|
"leave-to-class": "dai-popover-dialog--anim"
|
|
912
913
|
}, {
|
|
@@ -924,7 +925,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
924
925
|
}), Et = /* @__PURE__ */ v({
|
|
925
926
|
__name: "menuItems",
|
|
926
927
|
setup(e) {
|
|
927
|
-
return (t, o) => (a(),
|
|
928
|
+
return (t, o) => (a(), m(P, {
|
|
928
929
|
"enter-from-class": "dai-menu-items--anim",
|
|
929
930
|
"leave-to-class": "dai-menu-items--anim"
|
|
930
931
|
}, {
|
|
@@ -948,7 +949,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
948
949
|
icon: {}
|
|
949
950
|
},
|
|
950
951
|
setup(e) {
|
|
951
|
-
return (t, o) => (a(),
|
|
952
|
+
return (t, o) => (a(), m(r(re), { class: "dai-menu-item" }, {
|
|
952
953
|
default: c(({ isActive: l, isSelected: i }) => [
|
|
953
954
|
e.icon ? (a(), u("div", ot, [
|
|
954
955
|
d("div", {
|
|
@@ -971,7 +972,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
971
972
|
value: {}
|
|
972
973
|
},
|
|
973
974
|
setup(e) {
|
|
974
|
-
return (t, o) => (a(),
|
|
975
|
+
return (t, o) => (a(), m(r(de), {
|
|
975
976
|
id: e.id,
|
|
976
977
|
"aria-controls": e.ariaControls,
|
|
977
978
|
value: e.value,
|
|
@@ -998,7 +999,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
998
999
|
transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
|
|
999
1000
|
});
|
|
1000
1001
|
}
|
|
1001
|
-
return j(() => we(i)), (s, n) => (a(),
|
|
1002
|
+
return j(() => we(i)), (s, n) => (a(), m(r(ue), {
|
|
1002
1003
|
ref_key: "tablist",
|
|
1003
1004
|
ref: t,
|
|
1004
1005
|
onClickPassive: i,
|
|
@@ -1046,7 +1047,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1046
1047
|
window.addEventListener("click", s, { passive: !0 });
|
|
1047
1048
|
}), R(() => {
|
|
1048
1049
|
window.removeEventListener("click", s);
|
|
1049
|
-
}), (n, g) => (a(),
|
|
1050
|
+
}), (n, g) => (a(), m(Z, { to: "body" }, [
|
|
1050
1051
|
V(P, {
|
|
1051
1052
|
appear: "",
|
|
1052
1053
|
"enter-from-class": "nui-offcanvas--animate-hidden",
|
|
@@ -1110,7 +1111,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1110
1111
|
}, ut = { class: "dai-notification__content" }, ct = {
|
|
1111
1112
|
key: 0,
|
|
1112
1113
|
class: "dai-notification__content__detail"
|
|
1113
|
-
},
|
|
1114
|
+
}, ft = /* @__PURE__ */ v({
|
|
1114
1115
|
__name: "notification",
|
|
1115
1116
|
props: /* @__PURE__ */ M({
|
|
1116
1117
|
color: {},
|
|
@@ -1222,15 +1223,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1222
1223
|
"leave-active-class": "dai-notification-queue__item--anim-out"
|
|
1223
1224
|
}, {
|
|
1224
1225
|
default: c(() => [
|
|
1225
|
-
(a(!0), u(I, null, X(l.value, (
|
|
1226
|
-
key:
|
|
1227
|
-
color:
|
|
1228
|
-
icon:
|
|
1229
|
-
message:
|
|
1230
|
-
detail:
|
|
1231
|
-
timeout:
|
|
1232
|
-
modelValue:
|
|
1233
|
-
"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)],
|
|
1234
1235
|
class: "dai-notification-queue__item"
|
|
1235
1236
|
}, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1236
1237
|
]),
|
|
@@ -1238,7 +1239,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1238
1239
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1239
1240
|
], 2));
|
|
1240
1241
|
}
|
|
1241
|
-
}),
|
|
1242
|
+
}), mt = ["aria-valuenow"], It = /* @__PURE__ */ v({
|
|
1242
1243
|
__name: "progressbar",
|
|
1243
1244
|
props: {
|
|
1244
1245
|
value: {},
|
|
@@ -1274,7 +1275,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1274
1275
|
"progress-infinite": o.value
|
|
1275
1276
|
}, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
|
|
1276
1277
|
}, null, 6)
|
|
1277
|
-
], 14,
|
|
1278
|
+
], 14, mt));
|
|
1278
1279
|
}
|
|
1279
1280
|
}), vt = {
|
|
1280
1281
|
key: 0,
|
|
@@ -1294,7 +1295,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Se]]), Oe = ["id", "type", "pattern
|
|
|
1294
1295
|
}
|
|
1295
1296
|
return T(t, (l) => {
|
|
1296
1297
|
l ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
1297
|
-
}), (l, i) => (a(),
|
|
1298
|
+
}), (l, i) => (a(), m(Z, { to: "body" }, [
|
|
1298
1299
|
V(P, {
|
|
1299
1300
|
appear: "",
|
|
1300
1301
|
name: "modal",
|
|
@@ -1332,11 +1333,11 @@ export {
|
|
|
1332
1333
|
Ae as ComboboxOption,
|
|
1333
1334
|
Te as ComboboxOptions,
|
|
1334
1335
|
kt as Input,
|
|
1335
|
-
|
|
1336
|
+
St as Menu,
|
|
1336
1337
|
Lt as MenuItem,
|
|
1337
1338
|
Et as MenuItems,
|
|
1338
1339
|
jt as Modal,
|
|
1339
|
-
|
|
1340
|
+
ft as Notification,
|
|
1340
1341
|
At as NotificationQueue,
|
|
1341
1342
|
Pt as Offcanvas,
|
|
1342
1343
|
Ut as Popover,
|