@defaultusr/dai-ui 1.1.8 → 1.1.9
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 +140 -134
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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
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
|
|
3
|
+
import { reactive as ce, watch as T, onUnmounted as R, defineComponent as v, createElementBlock as u, openBlock as l, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as f, createCommentVNode as h, createElementVNode as d, computed as $, createVNode as V, normalizeProps as me, guardReactiveProps as fe, 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
|
-
const
|
|
6
|
+
const a = ce(t);
|
|
7
7
|
function i() {
|
|
8
|
-
|
|
8
|
+
a.length && (e.classList.add(...a), o = [...a]);
|
|
9
9
|
}
|
|
10
10
|
function s() {
|
|
11
11
|
e.classList.remove(...o);
|
|
12
12
|
}
|
|
13
13
|
return T(
|
|
14
|
-
|
|
14
|
+
a,
|
|
15
15
|
() => {
|
|
16
16
|
s(), i();
|
|
17
17
|
},
|
|
18
18
|
{ immediate: !0 }
|
|
19
19
|
), R(s), {
|
|
20
|
-
classList:
|
|
20
|
+
classList: a
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
@@ -26,7 +26,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
26
26
|
text: {}
|
|
27
27
|
},
|
|
28
28
|
setup(e) {
|
|
29
|
-
return (t, o) => (
|
|
29
|
+
return (t, o) => (l(), u("label", _e, [
|
|
30
30
|
p(t.$slots, "default", {}, () => [
|
|
31
31
|
E(k(e.text), 1)
|
|
32
32
|
])
|
|
@@ -38,7 +38,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
38
38
|
text: {}
|
|
39
39
|
},
|
|
40
40
|
setup(e) {
|
|
41
|
-
return (t, o) => (
|
|
41
|
+
return (t, o) => (l(), u("div", Be, [
|
|
42
42
|
p(t.$slots, "default", {}, () => [
|
|
43
43
|
E(k(e.text), 1)
|
|
44
44
|
])
|
|
@@ -57,7 +57,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
57
57
|
invalid: { type: Boolean }
|
|
58
58
|
},
|
|
59
59
|
setup(e) {
|
|
60
|
-
return (t, o) => (
|
|
60
|
+
return (t, o) => (l(), u("div", {
|
|
61
61
|
class: w(["dai-form-control__input-group", {
|
|
62
62
|
"dai-form-control__input-group--labeled": !!e.label,
|
|
63
63
|
"dai-form-control__input-group--outlined": e.variant === "outlined",
|
|
@@ -69,7 +69,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
69
69
|
"dai-form-control__input-group--invalid": e.invalid
|
|
70
70
|
}])
|
|
71
71
|
}, [
|
|
72
|
-
e.label ? (
|
|
72
|
+
e.label ? (l(), f(O, {
|
|
73
73
|
key: 0,
|
|
74
74
|
text: e.label,
|
|
75
75
|
for: e.labelFor,
|
|
@@ -104,39 +104,39 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
104
104
|
invalid: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(e) {
|
|
107
|
-
const t = e, o = $(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"),
|
|
108
|
-
return (i, s) => (
|
|
107
|
+
const t = e, o = $(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), a = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
|
|
108
|
+
return (i, s) => (l(), u("div", {
|
|
109
109
|
class: w(["dai-form-control", {
|
|
110
110
|
"dai-form-control--label-inline": e.labelPosition === "inline",
|
|
111
111
|
"dai-form-control--invalid": e.invalid,
|
|
112
|
-
"dai-form-control--lg":
|
|
112
|
+
"dai-form-control--lg": a.value === "large"
|
|
113
113
|
}])
|
|
114
114
|
}, [
|
|
115
|
-
e.label && e.labelPosition !== "inside" ? (
|
|
115
|
+
e.label && e.labelPosition !== "inside" ? (l(), f(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, fe(
|
|
121
|
+
V(Me, me(fe({
|
|
122
122
|
...t,
|
|
123
123
|
label: e.labelPosition === "inside" ? e.label : void 0,
|
|
124
124
|
variant: o.value,
|
|
125
|
-
size:
|
|
125
|
+
size: a.value
|
|
126
126
|
})), {
|
|
127
127
|
default: c(() => [
|
|
128
128
|
p(i.$slots, "default")
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
131
131
|
}, 16),
|
|
132
|
-
e.hint ? (
|
|
132
|
+
e.hint ? (l(), f(D, {
|
|
133
133
|
key: 0,
|
|
134
134
|
text: e.hint,
|
|
135
135
|
class: "dai-form-control__hint"
|
|
136
136
|
}, null, 8, ["text"])) : h("", !0),
|
|
137
137
|
V(P, { name: "dai-form-control__validation-message-transition" }, {
|
|
138
138
|
default: c(() => [
|
|
139
|
-
e.validationMessage ? (
|
|
139
|
+
e.validationMessage ? (l(), u("div", ze, [
|
|
140
140
|
s[0] || (s[0] = d("svg", {
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
142
|
viewBox: "0 0 256 256",
|
|
@@ -180,14 +180,14 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
180
180
|
}),
|
|
181
181
|
emits: ["update:modelValue"],
|
|
182
182
|
setup(e) {
|
|
183
|
-
const t = e, o = x(e, "modelValue"),
|
|
184
|
-
return (i, s) => (
|
|
185
|
-
labelFor: r(
|
|
183
|
+
const t = e, o = x(e, "modelValue"), a = t.id || L();
|
|
184
|
+
return (i, s) => (l(), f(S, _(t, {
|
|
185
|
+
labelFor: r(a),
|
|
186
186
|
class: i.$attrs.class
|
|
187
187
|
}), {
|
|
188
188
|
default: c(() => [
|
|
189
189
|
V(r(te), _({ ...i.$attrs, class: void 0 }, {
|
|
190
|
-
id: r(
|
|
190
|
+
id: r(a),
|
|
191
191
|
modelValue: o.value,
|
|
192
192
|
"onUpdate:modelValue": s[0] || (s[0] = (n) => o.value = n)
|
|
193
193
|
}), {
|
|
@@ -203,7 +203,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
203
203
|
}), wt = /* @__PURE__ */ v({
|
|
204
204
|
__name: "comboboxInput",
|
|
205
205
|
setup(e) {
|
|
206
|
-
return (t, o) => (
|
|
206
|
+
return (t, o) => (l(), f(r(oe), { class: "dai-form-control__input-group__control" }, {
|
|
207
207
|
default: c(() => [
|
|
208
208
|
p(t.$slots, "default")
|
|
209
209
|
]),
|
|
@@ -226,14 +226,20 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
226
226
|
...t.activatorAttrs.value,
|
|
227
227
|
onclick: () => t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 })
|
|
228
228
|
}));
|
|
229
|
-
return (
|
|
229
|
+
return T(
|
|
230
|
+
o,
|
|
231
|
+
(a) => {
|
|
232
|
+
console.log("btnAttrs changed:", a);
|
|
233
|
+
},
|
|
234
|
+
{ immediate: !0 }
|
|
235
|
+
), (a, i) => (l(), u("button", _(o.value, {
|
|
230
236
|
type: "button",
|
|
231
237
|
class: "dai-form-control__input-group__control dai-combobox-btn"
|
|
232
238
|
}), [
|
|
233
|
-
p(
|
|
234
|
-
r(t).displayValue.value ? (
|
|
239
|
+
p(a.$slots, "default", {}, () => [
|
|
240
|
+
r(t).displayValue.value ? (l(), u(I, { key: 1 }, [
|
|
235
241
|
E(k(r(t).displayValue), 1)
|
|
236
|
-
], 64)) : (
|
|
242
|
+
], 64)) : (l(), u("span", Le, k(e.placeholder || "Select..."), 1)),
|
|
237
243
|
i[0] || (i[0] = d("svg", {
|
|
238
244
|
class: "dai-combobox-btn__chevron",
|
|
239
245
|
role: "presentation",
|
|
@@ -253,7 +259,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
253
259
|
}), Te = /* @__PURE__ */ v({
|
|
254
260
|
__name: "comboboxOptions",
|
|
255
261
|
setup(e) {
|
|
256
|
-
return (t, o) => (
|
|
262
|
+
return (t, o) => (l(), f(P, {
|
|
257
263
|
"enter-from-class": "dai-combobox-options--anim",
|
|
258
264
|
"leave-to-class": "dai-combobox-options--anim"
|
|
259
265
|
}, {
|
|
@@ -279,16 +285,16 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
279
285
|
value: {}
|
|
280
286
|
},
|
|
281
287
|
setup(e) {
|
|
282
|
-
return (t, o) => (
|
|
288
|
+
return (t, o) => (l(), f(r(ie), {
|
|
283
289
|
value: e.value,
|
|
284
290
|
class: "dai-combobox-option"
|
|
285
291
|
}, {
|
|
286
|
-
default: c(({ isActive:
|
|
292
|
+
default: c(({ isActive: a, isSelected: i }) => [
|
|
287
293
|
p(t.$slots, "default", {
|
|
288
|
-
isActive:
|
|
294
|
+
isActive: a,
|
|
289
295
|
isSelected: i
|
|
290
296
|
}),
|
|
291
|
-
i ? (
|
|
297
|
+
i ? (l(), u("svg", Pe, [...o[0] || (o[0] = [
|
|
292
298
|
d("path", {
|
|
293
299
|
fill: "currentColor",
|
|
294
300
|
"fill-rule": "evenodd",
|
|
@@ -302,8 +308,8 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
302
308
|
}
|
|
303
309
|
}), Ie = (e, t) => {
|
|
304
310
|
const o = e.__vccOpts || e;
|
|
305
|
-
for (const [
|
|
306
|
-
o[
|
|
311
|
+
for (const [a, i] of t)
|
|
312
|
+
o[a] = i;
|
|
307
313
|
return o;
|
|
308
314
|
}, je = {}, Fe = {
|
|
309
315
|
type: "button",
|
|
@@ -312,7 +318,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
312
318
|
"aria-hidden": "true"
|
|
313
319
|
};
|
|
314
320
|
function Oe(e, t) {
|
|
315
|
-
return
|
|
321
|
+
return l(), u("button", Fe, [
|
|
316
322
|
p(e.$slots, "default")
|
|
317
323
|
]);
|
|
318
324
|
}
|
|
@@ -363,7 +369,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
363
369
|
}),
|
|
364
370
|
emits: ["update:modelValue", "update:files"],
|
|
365
371
|
setup(e) {
|
|
366
|
-
const t = e, o = t.id || L(),
|
|
372
|
+
const t = e, o = t.id || L(), a = $(() => typeof t.autocomplete == "string" ? t.autocomplete : t.autocomplete ? "on" : "off"), i = x(e, "modelValue"), s = x(e, "files", {
|
|
367
373
|
set(B) {
|
|
368
374
|
return n.value && (n.value.files = B), B;
|
|
369
375
|
}
|
|
@@ -371,16 +377,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
371
377
|
n,
|
|
372
378
|
t.validators,
|
|
373
379
|
t.showValidationError
|
|
374
|
-
),
|
|
380
|
+
), m = N(!1);
|
|
375
381
|
T(i, () => {
|
|
376
382
|
s.value = n.value?.files || null;
|
|
377
383
|
});
|
|
378
384
|
let C;
|
|
379
|
-
const G = $(() => t.type === "password" ?
|
|
385
|
+
const G = $(() => t.type === "password" ? m.value ? "text" : "password" : t.type), H = $(() => t.mask ? t.mask : t.type === "tel" ? {
|
|
380
386
|
mask: "{+7} (000) 000-00-00"
|
|
381
387
|
} : 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);
|
|
382
388
|
function W() {
|
|
383
|
-
|
|
389
|
+
m.value = !m.value;
|
|
384
390
|
}
|
|
385
391
|
function J() {
|
|
386
392
|
i.value = "";
|
|
@@ -400,7 +406,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
400
406
|
i.value = C.value;
|
|
401
407
|
});
|
|
402
408
|
});
|
|
403
|
-
}), (B, z) => (
|
|
409
|
+
}), (B, z) => (l(), f(S, _(t, {
|
|
404
410
|
"label-for": r(o),
|
|
405
411
|
"validation-message": e.showValidationError ? "" : r(b),
|
|
406
412
|
invalid: t.invalid || !r(g),
|
|
@@ -416,26 +422,26 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
416
422
|
type: G.value,
|
|
417
423
|
pattern: K.value,
|
|
418
424
|
title: Q.value,
|
|
419
|
-
autocomplete:
|
|
425
|
+
autocomplete: a.value,
|
|
420
426
|
value: i.value,
|
|
421
427
|
onInputPassive: ee,
|
|
422
428
|
onKeyupPassive: z[0] || (z[0] = (bt) => !r(g) && r(y)()),
|
|
423
429
|
class: "dai-form-control__input-group__control dai-form-control__input"
|
|
424
430
|
}), null, 16, Se),
|
|
425
431
|
p(B.$slots, "append"),
|
|
426
|
-
t.type === "password" && i.value ? (
|
|
432
|
+
t.type === "password" && i.value ? (l(), f(Y, {
|
|
427
433
|
key: 0,
|
|
428
434
|
onClick: W
|
|
429
435
|
}, {
|
|
430
436
|
default: c(() => [
|
|
431
|
-
|
|
437
|
+
m.value ? (l(), u("svg", Ne, [...z[2] || (z[2] = [
|
|
432
438
|
d("path", {
|
|
433
439
|
"stroke-linecap": "round",
|
|
434
440
|
"stroke-linejoin": "round",
|
|
435
441
|
"stroke-width": "2",
|
|
436
442
|
d: "M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"
|
|
437
443
|
}, null, -1)
|
|
438
|
-
])])) : (
|
|
444
|
+
])])) : (l(), u("svg", Ue, [...z[1] || (z[1] = [
|
|
439
445
|
d("path", {
|
|
440
446
|
"stroke-linecap": "round",
|
|
441
447
|
"stroke-linejoin": "round",
|
|
@@ -452,7 +458,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
452
458
|
]),
|
|
453
459
|
_: 1
|
|
454
460
|
})) : h("", !0),
|
|
455
|
-
e.clearable && i.value && !t.disabled ? (
|
|
461
|
+
e.clearable && i.value && !t.disabled ? (l(), f(Y, {
|
|
456
462
|
key: 1,
|
|
457
463
|
onClick: J
|
|
458
464
|
}, {
|
|
@@ -507,12 +513,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
507
513
|
}),
|
|
508
514
|
emits: ["update:modelValue"],
|
|
509
515
|
setup(e) {
|
|
510
|
-
const t = e, o = t.id || L(),
|
|
516
|
+
const t = e, o = t.id || L(), a = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
|
|
511
517
|
i,
|
|
512
518
|
t.validators,
|
|
513
519
|
t.showValidationError
|
|
514
520
|
);
|
|
515
|
-
return (b, y) => (
|
|
521
|
+
return (b, y) => (l(), f(S, _(t, {
|
|
516
522
|
"label-for": r(o),
|
|
517
523
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
518
524
|
invalid: t.invalid || !r(s),
|
|
@@ -524,17 +530,17 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
524
530
|
ref: i
|
|
525
531
|
}, { ...b.$attrs, class: void 0 }, {
|
|
526
532
|
id: r(o),
|
|
527
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
533
|
+
"onUpdate:modelValue": y[0] || (y[0] = (m) => a.value = m),
|
|
528
534
|
class: "dai-form-control__input-group__control dai-select"
|
|
529
535
|
}), [
|
|
530
536
|
p(b.$slots, "default", {}, () => [
|
|
531
|
-
(
|
|
532
|
-
value:
|
|
533
|
-
key:
|
|
534
|
-
}, k(
|
|
537
|
+
(l(!0), u(I, null, X(e.options, (m) => (l(), u("option", {
|
|
538
|
+
value: m[e.optionValue],
|
|
539
|
+
key: m[e.optionValue]
|
|
540
|
+
}, k(m[e.optionText]), 9, De))), 128))
|
|
535
541
|
])
|
|
536
542
|
], 16, Xe), [
|
|
537
|
-
[pe,
|
|
543
|
+
[pe, a.value]
|
|
538
544
|
]),
|
|
539
545
|
y[1] || (y[1] = d("svg", {
|
|
540
546
|
class: "dai-select__chevron",
|
|
@@ -581,7 +587,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
581
587
|
emits: ["update:modelValue"],
|
|
582
588
|
setup(e) {
|
|
583
589
|
const t = e, o = x(e, "modelValue");
|
|
584
|
-
return (
|
|
590
|
+
return (a, i) => (l(), f(r(Ee), _(t, {
|
|
585
591
|
displayValue: (s) => e.options.find((n) => n[e.optionValue] === s)?.[e.optionText] || "",
|
|
586
592
|
modelValue: o.value,
|
|
587
593
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
|
|
@@ -590,7 +596,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
590
596
|
V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
591
597
|
V(r(Te), null, {
|
|
592
598
|
default: c(() => [
|
|
593
|
-
(
|
|
599
|
+
(l(!0), u(I, null, X(e.options, (s) => (l(), f(r(Ae), {
|
|
594
600
|
key: s[e.optionValue],
|
|
595
601
|
value: s[e.optionValue]
|
|
596
602
|
}, {
|
|
@@ -620,17 +626,17 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
620
626
|
}),
|
|
621
627
|
emits: ["update:modelValue"],
|
|
622
628
|
setup(e) {
|
|
623
|
-
const t = e, o = t.id || L(),
|
|
629
|
+
const t = e, o = t.id || L(), a = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
|
|
624
630
|
i,
|
|
625
631
|
t.validators,
|
|
626
632
|
t.showValidationError
|
|
627
633
|
);
|
|
628
634
|
function b() {
|
|
629
635
|
if (!t.autosize) return;
|
|
630
|
-
const y = i.value,
|
|
631
|
-
y.style.height = "auto", y.style.height = `${y.scrollHeight +
|
|
636
|
+
const y = i.value, m = y.offsetHeight - y.clientHeight;
|
|
637
|
+
y.style.height = "auto", y.style.height = `${y.scrollHeight + m}px`;
|
|
632
638
|
}
|
|
633
|
-
return j(b), (y,
|
|
639
|
+
return j(b), (y, m) => (l(), f(S, _(t, {
|
|
634
640
|
"label-for": r(o),
|
|
635
641
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
636
642
|
invalid: !r(s),
|
|
@@ -642,14 +648,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
642
648
|
ref: i
|
|
643
649
|
}, { ...y.$attrs, class: void 0 }, {
|
|
644
650
|
id: r(o),
|
|
645
|
-
"onUpdate:modelValue":
|
|
646
|
-
onKeyupPassive:
|
|
651
|
+
"onUpdate:modelValue": m[0] || (m[0] = (C) => a.value = C),
|
|
652
|
+
onKeyupPassive: m[1] || (m[1] = (C) => !r(s) && r(g)()),
|
|
647
653
|
onInputPassive: b,
|
|
648
654
|
class: ["form-control__textarea", {
|
|
649
655
|
"form-control__textarea--autosize": e.autosize
|
|
650
656
|
}]
|
|
651
657
|
}), null, 16, He), [
|
|
652
|
-
[he,
|
|
658
|
+
[he, a.value]
|
|
653
659
|
])
|
|
654
660
|
]),
|
|
655
661
|
_: 1
|
|
@@ -670,12 +676,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
670
676
|
}),
|
|
671
677
|
emits: ["update:modelValue"],
|
|
672
678
|
setup(e) {
|
|
673
|
-
const t = e, o = x(e, "modelValue"),
|
|
679
|
+
const t = e, o = x(e, "modelValue"), a = L(), i = q("formElement"), { isValid: s } = A(
|
|
674
680
|
i,
|
|
675
681
|
t.validators,
|
|
676
682
|
t.showValidationError
|
|
677
683
|
);
|
|
678
|
-
return (n, g) => (
|
|
684
|
+
return (n, g) => (l(), u("div", {
|
|
679
685
|
class: w(["dai-checkbox-control", n.$attrs.class])
|
|
680
686
|
}, [
|
|
681
687
|
F(d("input", _({
|
|
@@ -683,7 +689,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
683
689
|
ref: i,
|
|
684
690
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
|
|
685
691
|
}, { ...n.$attrs, class: "" }, {
|
|
686
|
-
id: r(
|
|
692
|
+
id: r(a),
|
|
687
693
|
type: "checkbox",
|
|
688
694
|
class: ["dai-checkbox", {
|
|
689
695
|
[`dai-checkbox--${e.color}`]: e.color,
|
|
@@ -692,9 +698,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
692
698
|
}), null, 16, Ye), [
|
|
693
699
|
[be, o.value]
|
|
694
700
|
]),
|
|
695
|
-
e.label || n.$slots.default ? (
|
|
701
|
+
e.label || n.$slots.default ? (l(), f(O, {
|
|
696
702
|
key: 0,
|
|
697
|
-
for: r(
|
|
703
|
+
for: r(a)
|
|
698
704
|
}, {
|
|
699
705
|
default: c(() => [
|
|
700
706
|
p(n.$slots, "default", {}, () => [
|
|
@@ -703,7 +709,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
703
709
|
]),
|
|
704
710
|
_: 3
|
|
705
711
|
}, 8, ["for"])) : h("", !0),
|
|
706
|
-
e.hint || n.$slots.hint ? (
|
|
712
|
+
e.hint || n.$slots.hint ? (l(), f(D, {
|
|
707
713
|
key: 1,
|
|
708
714
|
class: "dai-checkbox-control__hint"
|
|
709
715
|
}, {
|
|
@@ -738,12 +744,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
738
744
|
}),
|
|
739
745
|
emits: ["update:modelValue"],
|
|
740
746
|
setup(e) {
|
|
741
|
-
const t = e, o = x(e, "modelValue"),
|
|
747
|
+
const t = e, o = x(e, "modelValue"), a = L(), i = q("formElement"), { isValid: s } = A(
|
|
742
748
|
i,
|
|
743
749
|
t.validators,
|
|
744
750
|
t.showValidationError
|
|
745
751
|
);
|
|
746
|
-
return (n, g) => (
|
|
752
|
+
return (n, g) => (l(), u("div", {
|
|
747
753
|
class: w(["flex items-start gap-3", n.$attrs.class])
|
|
748
754
|
}, [
|
|
749
755
|
d("div", Re, [
|
|
@@ -754,7 +760,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
754
760
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
|
|
755
761
|
}, { ...n.$attrs, class: "" }, {
|
|
756
762
|
value: e.value,
|
|
757
|
-
id: r(
|
|
763
|
+
id: r(a),
|
|
758
764
|
class: ["radio", {
|
|
759
765
|
[`radio--${e.color}`]: e.color,
|
|
760
766
|
"radio--invalid": !r(s)
|
|
@@ -763,12 +769,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
763
769
|
[ye, o.value]
|
|
764
770
|
])
|
|
765
771
|
]),
|
|
766
|
-
e.label ? (
|
|
772
|
+
e.label ? (l(), u("div", Ge, [
|
|
767
773
|
d("label", {
|
|
768
|
-
for: r(
|
|
774
|
+
for: r(a),
|
|
769
775
|
class: "font-medium select-none cursor-pointer"
|
|
770
776
|
}, k(e.label), 9, Ke),
|
|
771
|
-
e.hint ? (
|
|
777
|
+
e.hint ? (l(), u("p", Qe, k(e.hint), 1)) : h("", !0)
|
|
772
778
|
])) : h("", !0)
|
|
773
779
|
], 2));
|
|
774
780
|
}
|
|
@@ -784,7 +790,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
784
790
|
emits: ["update:modelValue"],
|
|
785
791
|
setup(e) {
|
|
786
792
|
const t = x(e, "modelValue"), o = L();
|
|
787
|
-
return (
|
|
793
|
+
return (a, i) => (l(), u("div", We, [
|
|
788
794
|
d("button", {
|
|
789
795
|
onClick: i[0] || (i[0] = (s) => t.value = !t.value),
|
|
790
796
|
id: r(o),
|
|
@@ -799,23 +805,23 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
799
805
|
class: "dai-switch__thumb"
|
|
800
806
|
}, null, -1)
|
|
801
807
|
])], 10, Je),
|
|
802
|
-
e.label ||
|
|
808
|
+
e.label || a.$slots.default ? (l(), f(O, {
|
|
803
809
|
key: 0,
|
|
804
810
|
for: r(o)
|
|
805
811
|
}, {
|
|
806
812
|
default: c(() => [
|
|
807
|
-
p(
|
|
813
|
+
p(a.$slots, "default", {}, () => [
|
|
808
814
|
E(k(e.label), 1)
|
|
809
815
|
])
|
|
810
816
|
]),
|
|
811
817
|
_: 3
|
|
812
818
|
}, 8, ["for"])) : h("", !0),
|
|
813
|
-
e.hint ||
|
|
819
|
+
e.hint || a.$slots.hint ? (l(), f(D, {
|
|
814
820
|
key: 1,
|
|
815
821
|
class: "dai-switch-control__hint"
|
|
816
822
|
}, {
|
|
817
823
|
default: c(() => [
|
|
818
|
-
p(
|
|
824
|
+
p(a.$slots, "hint", {}, () => [
|
|
819
825
|
E(k(e.hint), 1)
|
|
820
826
|
])
|
|
821
827
|
]),
|
|
@@ -848,17 +854,17 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
848
854
|
condensed: { type: Boolean }
|
|
849
855
|
},
|
|
850
856
|
setup(e) {
|
|
851
|
-
const t = e, o = $(() => t.submit ? "submit" : t.reset ? "reset" : "button"),
|
|
852
|
-
return (s, n) => (
|
|
857
|
+
const t = e, o = $(() => t.submit ? "submit" : t.reset ? "reset" : "button"), a = $(() => 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");
|
|
858
|
+
return (s, n) => (l(), f(ge(e.href ? "a" : "button"), {
|
|
853
859
|
type: e.href ? void 0 : o.value,
|
|
854
860
|
form: typeof e.submit == "string" ? e.submit : void 0,
|
|
855
861
|
href: e.href,
|
|
856
862
|
class: w(["dai-btn", {
|
|
857
863
|
[`dai-btn--${e.color}`]: e.color,
|
|
858
|
-
"dai-btn--flat":
|
|
859
|
-
"dai-btn--plain":
|
|
860
|
-
"dai-btn--muted":
|
|
861
|
-
"dai-btn--outlined":
|
|
864
|
+
"dai-btn--flat": a.value === "flat",
|
|
865
|
+
"dai-btn--plain": a.value === "plain",
|
|
866
|
+
"dai-btn--muted": a.value === "muted",
|
|
867
|
+
"dai-btn--outlined": a.value === "outlined",
|
|
862
868
|
"dai-btn--sm": i.value === "small",
|
|
863
869
|
"dai-btn--lg": i.value === "large",
|
|
864
870
|
"dai-btn--loading": e.loading,
|
|
@@ -868,7 +874,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
868
874
|
}])
|
|
869
875
|
}, {
|
|
870
876
|
default: c(() => [
|
|
871
|
-
e.loading ? (
|
|
877
|
+
e.loading ? (l(), u("span", et, [...n[0] || (n[0] = [
|
|
872
878
|
d("svg", {
|
|
873
879
|
xmlns: "http://www.w3.org/2000/svg",
|
|
874
880
|
fill: "none",
|
|
@@ -890,12 +896,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
890
896
|
], -1)
|
|
891
897
|
])])) : h("", !0),
|
|
892
898
|
d("span", tt, [
|
|
893
|
-
e.icon ? (
|
|
899
|
+
e.icon ? (l(), u("div", {
|
|
894
900
|
key: 0,
|
|
895
901
|
class: w([e.icon, "dai-btn__icon"])
|
|
896
902
|
}, null, 2)) : h("", !0),
|
|
897
903
|
p(s.$slots, "default"),
|
|
898
|
-
e.iconAfter ? (
|
|
904
|
+
e.iconAfter ? (l(), u("div", {
|
|
899
905
|
key: 1,
|
|
900
906
|
class: w([e.iconAfter, "dai-btn__icon"])
|
|
901
907
|
}, null, 2)) : h("", !0)
|
|
@@ -907,7 +913,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
907
913
|
}), zt = /* @__PURE__ */ v({
|
|
908
914
|
__name: "popoverDialog",
|
|
909
915
|
setup(e) {
|
|
910
|
-
return (t, o) => (
|
|
916
|
+
return (t, o) => (l(), f(P, {
|
|
911
917
|
"enter-from-class": "dai-popover-dialog--anim",
|
|
912
918
|
"leave-to-class": "dai-popover-dialog--anim"
|
|
913
919
|
}, {
|
|
@@ -925,7 +931,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
925
931
|
}), Et = /* @__PURE__ */ v({
|
|
926
932
|
__name: "menuItems",
|
|
927
933
|
setup(e) {
|
|
928
|
-
return (t, o) => (
|
|
934
|
+
return (t, o) => (l(), f(P, {
|
|
929
935
|
"enter-from-class": "dai-menu-items--anim",
|
|
930
936
|
"leave-to-class": "dai-menu-items--anim"
|
|
931
937
|
}, {
|
|
@@ -949,15 +955,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
949
955
|
icon: {}
|
|
950
956
|
},
|
|
951
957
|
setup(e) {
|
|
952
|
-
return (t, o) => (
|
|
953
|
-
default: c(({ isActive:
|
|
954
|
-
e.icon ? (
|
|
958
|
+
return (t, o) => (l(), f(r(re), { class: "dai-menu-item" }, {
|
|
959
|
+
default: c(({ isActive: a, isSelected: i }) => [
|
|
960
|
+
e.icon ? (l(), u("div", ot, [
|
|
955
961
|
d("div", {
|
|
956
962
|
class: w(["h-5 w-5", e.icon])
|
|
957
963
|
}, null, 2)
|
|
958
964
|
])) : h("", !0),
|
|
959
965
|
p(t.$slots, "default", {
|
|
960
|
-
isActive:
|
|
966
|
+
isActive: a,
|
|
961
967
|
isSelected: i
|
|
962
968
|
})
|
|
963
969
|
]),
|
|
@@ -972,7 +978,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
972
978
|
value: {}
|
|
973
979
|
},
|
|
974
980
|
setup(e) {
|
|
975
|
-
return (t, o) => (
|
|
981
|
+
return (t, o) => (l(), f(r(de), {
|
|
976
982
|
id: e.id,
|
|
977
983
|
"aria-controls": e.ariaControls,
|
|
978
984
|
value: e.value,
|
|
@@ -987,19 +993,19 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
987
993
|
}), Tt = /* @__PURE__ */ v({
|
|
988
994
|
__name: "tabList",
|
|
989
995
|
setup(e) {
|
|
990
|
-
const t = q("tablist"), o = q("slider"),
|
|
996
|
+
const t = q("tablist"), o = q("slider"), a = N({});
|
|
991
997
|
function i() {
|
|
992
998
|
if (!o.value) return;
|
|
993
999
|
const s = t.value?.$el;
|
|
994
1000
|
if (!s) return;
|
|
995
1001
|
const n = s.querySelector("[aria-selected=true]");
|
|
996
|
-
n && (
|
|
1002
|
+
n && (a.value = {
|
|
997
1003
|
left: `${n.offsetLeft}px`,
|
|
998
1004
|
right: `${s.offsetWidth - n.offsetLeft - n.offsetWidth}px`,
|
|
999
1005
|
transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
|
|
1000
1006
|
});
|
|
1001
1007
|
}
|
|
1002
|
-
return j(() => we(i)), (s, n) => (
|
|
1008
|
+
return j(() => we(i)), (s, n) => (l(), f(r(ue), {
|
|
1003
1009
|
ref_key: "tablist",
|
|
1004
1010
|
ref: t,
|
|
1005
1011
|
onClickPassive: i,
|
|
@@ -1010,7 +1016,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1010
1016
|
ref_key: "slider",
|
|
1011
1017
|
ref: o,
|
|
1012
1018
|
class: "dai-tab-list__slider",
|
|
1013
|
-
style: U(
|
|
1019
|
+
style: U(a.value)
|
|
1014
1020
|
}, null, 4),
|
|
1015
1021
|
p(s.$slots, "default")
|
|
1016
1022
|
]),
|
|
@@ -1033,7 +1039,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1033
1039
|
}),
|
|
1034
1040
|
emits: ["update:modelValue"],
|
|
1035
1041
|
setup(e) {
|
|
1036
|
-
const t = e, o = x(e, "modelValue"),
|
|
1042
|
+
const t = e, o = x(e, "modelValue"), a = t.id ?? L(), { classList: i } = xe(document.body, "nui-body-push");
|
|
1037
1043
|
T(o, () => {
|
|
1038
1044
|
if (!t.push || (i.splice(1), !o.value))
|
|
1039
1045
|
return;
|
|
@@ -1041,13 +1047,13 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1041
1047
|
t.lg && (n += "--lg"), t.xl && (n += "--xl"), i.push(n);
|
|
1042
1048
|
});
|
|
1043
1049
|
function s(n) {
|
|
1044
|
-
n.target.closest(`#${
|
|
1050
|
+
n.target.closest(`#${a}`) || t.closeOnOutsideClick && (o.value = !1);
|
|
1045
1051
|
}
|
|
1046
1052
|
return j(() => {
|
|
1047
1053
|
window.addEventListener("click", s, { passive: !0 });
|
|
1048
1054
|
}), R(() => {
|
|
1049
1055
|
window.removeEventListener("click", s);
|
|
1050
|
-
}), (n, g) => (
|
|
1056
|
+
}), (n, g) => (l(), f(Z, { to: "body" }, [
|
|
1051
1057
|
V(P, {
|
|
1052
1058
|
appear: "",
|
|
1053
1059
|
"enter-from-class": "nui-offcanvas--animate-hidden",
|
|
@@ -1058,9 +1064,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1058
1064
|
"leave-active-class": "ease-in-out"
|
|
1059
1065
|
}, {
|
|
1060
1066
|
default: c(() => [
|
|
1061
|
-
o.value ? (
|
|
1067
|
+
o.value ? (l(), u("div", _({
|
|
1062
1068
|
key: 0,
|
|
1063
|
-
id: r(
|
|
1069
|
+
id: r(a)
|
|
1064
1070
|
}, n.$attrs, {
|
|
1065
1071
|
class: ["nui-offcanvas", {
|
|
1066
1072
|
[`nui-offcanvas--${e.position}`]: !0,
|
|
@@ -1111,7 +1117,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1111
1117
|
}, ut = { class: "dai-notification__content" }, ct = {
|
|
1112
1118
|
key: 0,
|
|
1113
1119
|
class: "dai-notification__content__detail"
|
|
1114
|
-
},
|
|
1120
|
+
}, mt = /* @__PURE__ */ v({
|
|
1115
1121
|
__name: "notification",
|
|
1116
1122
|
props: /* @__PURE__ */ M({
|
|
1117
1123
|
color: {},
|
|
@@ -1127,20 +1133,20 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1127
1133
|
emits: ["update:modelValue"],
|
|
1128
1134
|
setup(e) {
|
|
1129
1135
|
const t = e, o = x(e, "modelValue");
|
|
1130
|
-
let
|
|
1136
|
+
let a;
|
|
1131
1137
|
function i() {
|
|
1132
|
-
clearTimeout(
|
|
1138
|
+
clearTimeout(a), o.value && t.timeout && (a = setTimeout(() => o.value = !1, t.timeout));
|
|
1133
1139
|
}
|
|
1134
|
-
return T(o, i, { immediate: !0 }), (s, n) => o.value ? (
|
|
1140
|
+
return T(o, i, { immediate: !0 }), (s, n) => o.value ? (l(), u("div", lt, [
|
|
1135
1141
|
d("div", {
|
|
1136
1142
|
class: w(["dai-notification", [`dai-notification--${e.color || "secondary"}`]])
|
|
1137
1143
|
}, [
|
|
1138
|
-
e.icon ? (
|
|
1144
|
+
e.icon ? (l(), u("div", {
|
|
1139
1145
|
key: 0,
|
|
1140
1146
|
class: w(["dai-notification__icon", [`dai-notification__icon--${e.icon}`]])
|
|
1141
1147
|
}, [
|
|
1142
|
-
(
|
|
1143
|
-
e.icon == "success" ? (
|
|
1148
|
+
(l(), u("svg", it, [
|
|
1149
|
+
e.icon == "success" ? (l(), u("path", nt)) : e.icon == "info" ? (l(), u("path", st)) : e.icon == "warning" ? (l(), u("path", rt)) : e.icon == "danger" ? (l(), u("path", dt)) : h("", !0)
|
|
1144
1150
|
]))
|
|
1145
1151
|
], 2)) : h("", !0),
|
|
1146
1152
|
d("div", ut, [
|
|
@@ -1149,9 +1155,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1149
1155
|
"dai-notification__content__message--bold": e.detail
|
|
1150
1156
|
}])
|
|
1151
1157
|
}, k(e.message), 3),
|
|
1152
|
-
e.detail ? (
|
|
1158
|
+
e.detail ? (l(), u("div", ct, k(e.detail), 1)) : h("", !0)
|
|
1153
1159
|
]),
|
|
1154
|
-
e.dismissible ? (
|
|
1160
|
+
e.dismissible ? (l(), u("div", {
|
|
1155
1161
|
key: 1,
|
|
1156
1162
|
onClick: n[0] || (n[0] = (g) => o.value = !1),
|
|
1157
1163
|
class: "dai-notification__dismiss"
|
|
@@ -1187,14 +1193,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1187
1193
|
}),
|
|
1188
1194
|
emits: ["update:queue"],
|
|
1189
1195
|
setup(e) {
|
|
1190
|
-
const t = e, o = x(e, "queue"),
|
|
1196
|
+
const t = e, o = x(e, "queue"), a = N([]);
|
|
1191
1197
|
let i = 0;
|
|
1192
1198
|
function s() {
|
|
1193
|
-
o.value.length === 0 ||
|
|
1199
|
+
o.value.length === 0 || a.value.length >= t.length || (a.value.push({ ...o.value[0], id: i++, show: !0 }), o.value.shift());
|
|
1194
1200
|
}
|
|
1195
1201
|
function n(b) {
|
|
1196
1202
|
setTimeout(() => {
|
|
1197
|
-
|
|
1203
|
+
a.value = a.value.filter(
|
|
1198
1204
|
(y) => y.id !== b
|
|
1199
1205
|
), s();
|
|
1200
1206
|
}, 200);
|
|
@@ -1204,7 +1210,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1204
1210
|
const b = ["dai-notification-queue__item--anim"];
|
|
1205
1211
|
return t.positionX === "right" ? b.push("dai-notification-queue__item--anim-x-right") : t.positionX === "left" ? b.push("dai-notification-queue__item--anim-x-left") : t.positionX === "center" && t.positionY === "top" ? b.push("dai-notification-queue__item--anim-y-top") : t.positionX === "center" && t.positionY === "bottom" && b.push("dai-notification-queue__item--anim-y-bottom"), b.join(" ");
|
|
1206
1212
|
});
|
|
1207
|
-
return (b, y) => (
|
|
1213
|
+
return (b, y) => (l(), u("div", {
|
|
1208
1214
|
class: w(["dai-notification-queue", {
|
|
1209
1215
|
"dai-notification-queue--fixed": e.position == "fixed",
|
|
1210
1216
|
"dai-notification-queue--absolute": e.position == "absolute",
|
|
@@ -1223,15 +1229,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1223
1229
|
"leave-active-class": "dai-notification-queue__item--anim-out"
|
|
1224
1230
|
}, {
|
|
1225
1231
|
default: c(() => [
|
|
1226
|
-
(
|
|
1227
|
-
key:
|
|
1228
|
-
color:
|
|
1229
|
-
icon:
|
|
1230
|
-
message:
|
|
1231
|
-
detail:
|
|
1232
|
-
timeout:
|
|
1233
|
-
modelValue:
|
|
1234
|
-
"onUpdate:modelValue": [(C) =>
|
|
1232
|
+
(l(!0), u(I, null, X(a.value, (m) => (l(), f(mt, {
|
|
1233
|
+
key: m.id,
|
|
1234
|
+
color: m.color,
|
|
1235
|
+
icon: m.type,
|
|
1236
|
+
message: m.message,
|
|
1237
|
+
detail: m.detail,
|
|
1238
|
+
timeout: m.timeout ?? e.timeout,
|
|
1239
|
+
modelValue: m.show,
|
|
1240
|
+
"onUpdate:modelValue": [(C) => m.show = C, (C) => n(m.id)],
|
|
1235
1241
|
class: "dai-notification-queue__item"
|
|
1236
1242
|
}, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1237
1243
|
]),
|
|
@@ -1239,7 +1245,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1239
1245
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1240
1246
|
], 2));
|
|
1241
1247
|
}
|
|
1242
|
-
}),
|
|
1248
|
+
}), ft = ["aria-valuenow"], It = /* @__PURE__ */ v({
|
|
1243
1249
|
__name: "progressbar",
|
|
1244
1250
|
props: {
|
|
1245
1251
|
value: {},
|
|
@@ -1249,7 +1255,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1249
1255
|
},
|
|
1250
1256
|
setup(e) {
|
|
1251
1257
|
const t = e, o = $(() => t.value === void 0);
|
|
1252
|
-
return (
|
|
1258
|
+
return (a, i) => (l(), u("div", {
|
|
1253
1259
|
class: w(["overflow-hidden text-xs w-full flex-1", {
|
|
1254
1260
|
rounded: e.rounded,
|
|
1255
1261
|
"bg-primary-200": e.color == "primary",
|
|
@@ -1275,7 +1281,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1275
1281
|
"progress-infinite": o.value
|
|
1276
1282
|
}, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
|
|
1277
1283
|
}, null, 6)
|
|
1278
|
-
], 14,
|
|
1284
|
+
], 14, ft));
|
|
1279
1285
|
}
|
|
1280
1286
|
}), vt = {
|
|
1281
1287
|
key: 0,
|
|
@@ -1293,16 +1299,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1293
1299
|
function o() {
|
|
1294
1300
|
t.value = !1;
|
|
1295
1301
|
}
|
|
1296
|
-
return T(t, (
|
|
1297
|
-
|
|
1298
|
-
}), (
|
|
1302
|
+
return T(t, (a) => {
|
|
1303
|
+
a ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
1304
|
+
}), (a, i) => (l(), f(Z, { to: "body" }, [
|
|
1299
1305
|
V(P, {
|
|
1300
1306
|
appear: "",
|
|
1301
1307
|
name: "modal",
|
|
1302
1308
|
duration: { enter: 300, leave: 200 }
|
|
1303
1309
|
}, {
|
|
1304
1310
|
default: c(() => [
|
|
1305
|
-
t.value ? (
|
|
1311
|
+
t.value ? (l(), u("div", vt, [
|
|
1306
1312
|
i[0] || (i[0] = d("div", {
|
|
1307
1313
|
class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
|
|
1308
1314
|
"aria-hidden": "true"
|
|
@@ -1313,7 +1319,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1313
1319
|
class: "min-h-full flex items-center justify-center p-4 sm:p-6"
|
|
1314
1320
|
}, [
|
|
1315
1321
|
d("div", ht, [
|
|
1316
|
-
p(
|
|
1322
|
+
p(a.$slots, "default", { close: o })
|
|
1317
1323
|
])
|
|
1318
1324
|
])
|
|
1319
1325
|
])
|
|
@@ -1337,7 +1343,7 @@ export {
|
|
|
1337
1343
|
Lt as MenuItem,
|
|
1338
1344
|
Et as MenuItems,
|
|
1339
1345
|
jt as Modal,
|
|
1340
|
-
|
|
1346
|
+
mt as Notification,
|
|
1341
1347
|
At as NotificationQueue,
|
|
1342
1348
|
Pt as Offcanvas,
|
|
1343
1349
|
Ut as Popover,
|