@defaultusr/dai-ui 1.1.9 → 1.1.11
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 +187 -191
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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 St, Popover as Ut, TabContainer as
|
|
3
|
-
import { reactive as ce, watch as T, onUnmounted as
|
|
2
|
+
import { Menu as St, Popover as Ut, TabContainer as Dt, TabPanel as Nt } from "vue-composable-ui";
|
|
3
|
+
import { reactive as ce, watch as T, onUnmounted as Y, defineComponent as v, createElementBlock as u, openBlock as l, 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 $, useId as L, mergeProps as x, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as D, onMounted as j, withDirectives as O, renderList as N, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as R, TransitionGroup as ke, withModifiers as $e } from "vue";
|
|
4
4
|
import './assets/main.css';function xe(e, ...t) {
|
|
5
5
|
let o = [];
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
|
|
6
|
+
const i = ce(t);
|
|
7
|
+
function a() {
|
|
8
|
+
i.length && (e.classList.add(...i), o = [...i]);
|
|
9
9
|
}
|
|
10
10
|
function s() {
|
|
11
11
|
e.classList.remove(...o);
|
|
12
12
|
}
|
|
13
13
|
return T(
|
|
14
|
-
|
|
14
|
+
i,
|
|
15
15
|
() => {
|
|
16
|
-
s(),
|
|
16
|
+
s(), a();
|
|
17
17
|
},
|
|
18
18
|
{ immediate: !0 }
|
|
19
|
-
),
|
|
20
|
-
classList:
|
|
19
|
+
), Y(s), {
|
|
20
|
+
classList: i
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
const _e = { class: "dai-label" },
|
|
23
|
+
const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
|
|
24
24
|
__name: "label",
|
|
25
25
|
props: {
|
|
26
26
|
text: {}
|
|
@@ -32,7 +32,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}), Be = { class: "dai-hint" },
|
|
35
|
+
}), Be = { class: "dai-hint" }, X = /* @__PURE__ */ v({
|
|
36
36
|
__name: "hint",
|
|
37
37
|
props: {
|
|
38
38
|
text: {}
|
|
@@ -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 ? (l(),
|
|
72
|
+
e.label ? (l(), m(F, {
|
|
73
73
|
key: 0,
|
|
74
74
|
text: e.label,
|
|
75
75
|
for: e.labelFor,
|
|
@@ -104,32 +104,32 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
104
104
|
invalid: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(e) {
|
|
107
|
-
const t = e, o =
|
|
108
|
-
return (
|
|
107
|
+
const t = e, o = _(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), i = _(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
|
|
108
|
+
return (a, 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": i.value === "large"
|
|
113
113
|
}])
|
|
114
114
|
}, [
|
|
115
|
-
e.label && e.labelPosition !== "inside" ? (l(),
|
|
115
|
+
e.label && e.labelPosition !== "inside" ? (l(), m(F, {
|
|
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,
|
|
125
|
-
size:
|
|
125
|
+
size: i.value
|
|
126
126
|
})), {
|
|
127
127
|
default: c(() => [
|
|
128
|
-
p(
|
|
128
|
+
p(a.$slots, "default")
|
|
129
129
|
]),
|
|
130
130
|
_: 3
|
|
131
131
|
}, 16),
|
|
132
|
-
e.hint ? (l(),
|
|
132
|
+
e.hint ? (l(), m(X, {
|
|
133
133
|
key: 0,
|
|
134
134
|
text: e.hint,
|
|
135
135
|
class: "dai-form-control__hint"
|
|
@@ -180,19 +180,19 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
180
180
|
}),
|
|
181
181
|
emits: ["update:modelValue"],
|
|
182
182
|
setup(e) {
|
|
183
|
-
const t = e, o =
|
|
184
|
-
return (
|
|
185
|
-
labelFor: r(
|
|
186
|
-
class:
|
|
183
|
+
const t = e, o = $(e, "modelValue"), i = t.id || L();
|
|
184
|
+
return (a, s) => (l(), m(S, x(t, {
|
|
185
|
+
labelFor: r(i),
|
|
186
|
+
class: a.$attrs.class
|
|
187
187
|
}), {
|
|
188
188
|
default: c(() => [
|
|
189
|
-
V(r(te),
|
|
190
|
-
id: r(
|
|
189
|
+
V(r(te), x({ ...a.$attrs, class: void 0 }, {
|
|
190
|
+
id: r(i),
|
|
191
191
|
modelValue: o.value,
|
|
192
192
|
"onUpdate:modelValue": s[0] || (s[0] = (n) => o.value = n)
|
|
193
193
|
}), {
|
|
194
194
|
default: c(() => [
|
|
195
|
-
p(
|
|
195
|
+
p(a.$slots, "default")
|
|
196
196
|
]),
|
|
197
197
|
_: 3
|
|
198
198
|
}, 16, ["id", "modelValue"])
|
|
@@ -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) => (l(),
|
|
206
|
+
return (t, o) => (l(), m(r(oe), { class: "dai-form-control__input-group__control" }, {
|
|
207
207
|
default: c(() => [
|
|
208
208
|
p(t.$slots, "default")
|
|
209
209
|
]),
|
|
@@ -222,25 +222,21 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
222
222
|
const t = ve(ae);
|
|
223
223
|
if (!t)
|
|
224
224
|
throw new Error("Combobox injectable context is not provided");
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
console.log("btnAttrs changed:", a);
|
|
233
|
-
},
|
|
234
|
-
{ immediate: !0 }
|
|
235
|
-
), (a, i) => (l(), u("button", _(o.value, {
|
|
225
|
+
function o() {
|
|
226
|
+
t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 });
|
|
227
|
+
}
|
|
228
|
+
return (i, a) => (l(), u("button", x(r(t).activatorAttrs.value, {
|
|
229
|
+
onKeydown: a[0] || (a[0] = //@ts-ignore
|
|
230
|
+
(...s) => r(t).activatorOnKeyDown && r(t).activatorOnKeyDown(...s)),
|
|
231
|
+
onClick: o,
|
|
236
232
|
type: "button",
|
|
237
233
|
class: "dai-form-control__input-group__control dai-combobox-btn"
|
|
238
234
|
}), [
|
|
239
|
-
p(
|
|
235
|
+
p(i.$slots, "default", {}, () => [
|
|
240
236
|
r(t).displayValue.value ? (l(), u(I, { key: 1 }, [
|
|
241
237
|
E(k(r(t).displayValue), 1)
|
|
242
238
|
], 64)) : (l(), u("span", Le, k(e.placeholder || "Select..."), 1)),
|
|
243
|
-
|
|
239
|
+
a[1] || (a[1] = d("svg", {
|
|
244
240
|
class: "dai-combobox-btn__chevron",
|
|
245
241
|
role: "presentation",
|
|
246
242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -259,7 +255,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
259
255
|
}), Te = /* @__PURE__ */ v({
|
|
260
256
|
__name: "comboboxOptions",
|
|
261
257
|
setup(e) {
|
|
262
|
-
return (t, o) => (l(),
|
|
258
|
+
return (t, o) => (l(), m(P, {
|
|
263
259
|
"enter-from-class": "dai-combobox-options--anim",
|
|
264
260
|
"leave-to-class": "dai-combobox-options--anim"
|
|
265
261
|
}, {
|
|
@@ -285,16 +281,16 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
285
281
|
value: {}
|
|
286
282
|
},
|
|
287
283
|
setup(e) {
|
|
288
|
-
return (t, o) => (l(),
|
|
284
|
+
return (t, o) => (l(), m(r(ie), {
|
|
289
285
|
value: e.value,
|
|
290
286
|
class: "dai-combobox-option"
|
|
291
287
|
}, {
|
|
292
|
-
default: c(({ isActive:
|
|
288
|
+
default: c(({ isActive: i, isSelected: a }) => [
|
|
293
289
|
p(t.$slots, "default", {
|
|
294
|
-
isActive:
|
|
295
|
-
isSelected:
|
|
290
|
+
isActive: i,
|
|
291
|
+
isSelected: a
|
|
296
292
|
}),
|
|
297
|
-
|
|
293
|
+
a ? (l(), u("svg", Pe, [...o[0] || (o[0] = [
|
|
298
294
|
d("path", {
|
|
299
295
|
fill: "currentColor",
|
|
300
296
|
"fill-rule": "evenodd",
|
|
@@ -308,27 +304,27 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
|
|
|
308
304
|
}
|
|
309
305
|
}), Ie = (e, t) => {
|
|
310
306
|
const o = e.__vccOpts || e;
|
|
311
|
-
for (const [
|
|
312
|
-
o[
|
|
307
|
+
for (const [i, a] of t)
|
|
308
|
+
o[i] = a;
|
|
313
309
|
return o;
|
|
314
|
-
}, je = {},
|
|
310
|
+
}, je = {}, Oe = {
|
|
315
311
|
type: "button",
|
|
316
312
|
class: "dai-form-control__input-group__addon dai-form-control__input-group__addon--btn",
|
|
317
313
|
tabindex: "-1",
|
|
318
314
|
"aria-hidden": "true"
|
|
319
315
|
};
|
|
320
|
-
function
|
|
321
|
-
return l(), u("button",
|
|
316
|
+
function Fe(e, t) {
|
|
317
|
+
return l(), u("button", Oe, [
|
|
322
318
|
p(e.$slots, "default")
|
|
323
319
|
]);
|
|
324
320
|
}
|
|
325
|
-
const
|
|
321
|
+
const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
|
|
326
322
|
key: 0,
|
|
327
323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
328
324
|
fill: "none",
|
|
329
325
|
viewBox: "0 0 24 24",
|
|
330
326
|
stroke: "currentColor"
|
|
331
|
-
},
|
|
327
|
+
}, De = {
|
|
332
328
|
key: 1,
|
|
333
329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
334
330
|
fill: "none",
|
|
@@ -369,7 +365,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
369
365
|
}),
|
|
370
366
|
emits: ["update:modelValue", "update:files"],
|
|
371
367
|
setup(e) {
|
|
372
|
-
const t = e, o = t.id || L(),
|
|
368
|
+
const t = e, o = t.id || L(), i = _(() => typeof t.autocomplete == "string" ? t.autocomplete : t.autocomplete ? "on" : "off"), a = $(e, "modelValue"), s = $(e, "files", {
|
|
373
369
|
set(B) {
|
|
374
370
|
return n.value && (n.value.files = B), B;
|
|
375
371
|
}
|
|
@@ -377,25 +373,25 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
377
373
|
n,
|
|
378
374
|
t.validators,
|
|
379
375
|
t.showValidationError
|
|
380
|
-
),
|
|
381
|
-
T(
|
|
376
|
+
), f = D(!1);
|
|
377
|
+
T(a, () => {
|
|
382
378
|
s.value = n.value?.files || null;
|
|
383
379
|
});
|
|
384
380
|
let C;
|
|
385
|
-
const
|
|
381
|
+
const Z = _(() => t.type === "password" ? f.value ? "text" : "password" : t.type), H = _(() => t.mask ? t.mask : t.type === "tel" ? {
|
|
386
382
|
mask: "{+7} (000) 000-00-00"
|
|
387
|
-
} : t.mask),
|
|
383
|
+
} : t.mask), G = _(() => 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);
|
|
388
384
|
function W() {
|
|
389
|
-
|
|
385
|
+
f.value = !f.value;
|
|
390
386
|
}
|
|
391
387
|
function J() {
|
|
392
|
-
|
|
388
|
+
a.value = "";
|
|
393
389
|
}
|
|
394
390
|
function ee(B) {
|
|
395
391
|
if (C)
|
|
396
392
|
return;
|
|
397
393
|
const { value: z } = B.target;
|
|
398
|
-
|
|
394
|
+
a.value = z;
|
|
399
395
|
}
|
|
400
396
|
return j(() => {
|
|
401
397
|
H.value && import("imask").then((B) => {
|
|
@@ -403,10 +399,10 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
403
399
|
n.value,
|
|
404
400
|
H.value
|
|
405
401
|
), C.on("accept", () => {
|
|
406
|
-
|
|
402
|
+
a.value = C.value;
|
|
407
403
|
});
|
|
408
404
|
});
|
|
409
|
-
}), (B, z) => (l(),
|
|
405
|
+
}), (B, z) => (l(), m(S, x(t, {
|
|
410
406
|
"label-for": r(o),
|
|
411
407
|
"validation-message": e.showValidationError ? "" : r(b),
|
|
412
408
|
invalid: t.invalid || !r(g),
|
|
@@ -414,27 +410,27 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
414
410
|
}), {
|
|
415
411
|
default: c(() => [
|
|
416
412
|
p(B.$slots, "prepend"),
|
|
417
|
-
d("input",
|
|
413
|
+
d("input", x({
|
|
418
414
|
ref_key: "formElement",
|
|
419
415
|
ref: n
|
|
420
416
|
}, { ...B.$attrs, class: void 0 }, {
|
|
421
417
|
id: r(o),
|
|
422
|
-
type:
|
|
423
|
-
pattern:
|
|
418
|
+
type: Z.value,
|
|
419
|
+
pattern: G.value,
|
|
424
420
|
title: Q.value,
|
|
425
|
-
autocomplete:
|
|
426
|
-
value:
|
|
421
|
+
autocomplete: i.value,
|
|
422
|
+
value: a.value,
|
|
427
423
|
onInputPassive: ee,
|
|
428
424
|
onKeyupPassive: z[0] || (z[0] = (bt) => !r(g) && r(y)()),
|
|
429
425
|
class: "dai-form-control__input-group__control dai-form-control__input"
|
|
430
426
|
}), null, 16, Se),
|
|
431
427
|
p(B.$slots, "append"),
|
|
432
|
-
t.type === "password" &&
|
|
428
|
+
t.type === "password" && a.value ? (l(), m(K, {
|
|
433
429
|
key: 0,
|
|
434
430
|
onClick: W
|
|
435
431
|
}, {
|
|
436
432
|
default: c(() => [
|
|
437
|
-
|
|
433
|
+
f.value ? (l(), u("svg", De, [...z[2] || (z[2] = [
|
|
438
434
|
d("path", {
|
|
439
435
|
"stroke-linecap": "round",
|
|
440
436
|
"stroke-linejoin": "round",
|
|
@@ -458,7 +454,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
458
454
|
]),
|
|
459
455
|
_: 1
|
|
460
456
|
})) : h("", !0),
|
|
461
|
-
e.clearable &&
|
|
457
|
+
e.clearable && a.value && !t.disabled ? (l(), m(K, {
|
|
462
458
|
key: 1,
|
|
463
459
|
onClick: J
|
|
464
460
|
}, {
|
|
@@ -483,7 +479,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
483
479
|
_: 3
|
|
484
480
|
}, 16, ["label-for", "validation-message", "invalid", "class"]));
|
|
485
481
|
}
|
|
486
|
-
}),
|
|
482
|
+
}), Ne = ["id"], Xe = ["value"], $t = /* @__PURE__ */ v({
|
|
487
483
|
inheritAttrs: !1,
|
|
488
484
|
__name: "select",
|
|
489
485
|
props: /* @__PURE__ */ M({
|
|
@@ -513,34 +509,34 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
513
509
|
}),
|
|
514
510
|
emits: ["update:modelValue"],
|
|
515
511
|
setup(e) {
|
|
516
|
-
const t = e, o = t.id || L(),
|
|
517
|
-
|
|
512
|
+
const t = e, o = t.id || L(), i = $(e, "modelValue"), a = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
|
|
513
|
+
a,
|
|
518
514
|
t.validators,
|
|
519
515
|
t.showValidationError
|
|
520
516
|
);
|
|
521
|
-
return (b, y) => (l(),
|
|
517
|
+
return (b, y) => (l(), m(S, x(t, {
|
|
522
518
|
"label-for": r(o),
|
|
523
519
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
524
520
|
invalid: t.invalid || !r(s),
|
|
525
521
|
class: b.$attrs.class
|
|
526
522
|
}), {
|
|
527
523
|
default: c(() => [
|
|
528
|
-
|
|
524
|
+
O(d("select", x({
|
|
529
525
|
ref_key: "formElement",
|
|
530
|
-
ref:
|
|
526
|
+
ref: a
|
|
531
527
|
}, { ...b.$attrs, class: void 0 }, {
|
|
532
528
|
id: r(o),
|
|
533
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
529
|
+
"onUpdate:modelValue": y[0] || (y[0] = (f) => i.value = f),
|
|
534
530
|
class: "dai-form-control__input-group__control dai-select"
|
|
535
531
|
}), [
|
|
536
532
|
p(b.$slots, "default", {}, () => [
|
|
537
|
-
(l(!0), u(I, null,
|
|
538
|
-
value:
|
|
539
|
-
key:
|
|
540
|
-
}, k(
|
|
533
|
+
(l(!0), u(I, null, N(e.options, (f) => (l(), u("option", {
|
|
534
|
+
value: f[e.optionValue],
|
|
535
|
+
key: f[e.optionValue]
|
|
536
|
+
}, k(f[e.optionText]), 9, Xe))), 128))
|
|
541
537
|
])
|
|
542
|
-
], 16,
|
|
543
|
-
[pe,
|
|
538
|
+
], 16, Ne), [
|
|
539
|
+
[pe, i.value]
|
|
544
540
|
]),
|
|
545
541
|
y[1] || (y[1] = d("svg", {
|
|
546
542
|
class: "dai-select__chevron",
|
|
@@ -586,17 +582,17 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
586
582
|
}),
|
|
587
583
|
emits: ["update:modelValue"],
|
|
588
584
|
setup(e) {
|
|
589
|
-
const t = e, o =
|
|
590
|
-
return (
|
|
585
|
+
const t = e, o = $(e, "modelValue");
|
|
586
|
+
return (i, a) => (l(), m(r(Ee), x(t, {
|
|
591
587
|
displayValue: (s) => e.options.find((n) => n[e.optionValue] === s)?.[e.optionText] || "",
|
|
592
588
|
modelValue: o.value,
|
|
593
|
-
"onUpdate:modelValue":
|
|
589
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s)
|
|
594
590
|
}), {
|
|
595
591
|
default: c(() => [
|
|
596
592
|
V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
597
593
|
V(r(Te), null, {
|
|
598
594
|
default: c(() => [
|
|
599
|
-
(l(!0), u(I, null,
|
|
595
|
+
(l(!0), u(I, null, N(e.options, (s) => (l(), m(r(Ae), {
|
|
600
596
|
key: s[e.optionValue],
|
|
601
597
|
value: s[e.optionValue]
|
|
602
598
|
}, {
|
|
@@ -626,42 +622,42 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
626
622
|
}),
|
|
627
623
|
emits: ["update:modelValue"],
|
|
628
624
|
setup(e) {
|
|
629
|
-
const t = e, o = t.id || L(),
|
|
630
|
-
|
|
625
|
+
const t = e, o = t.id || L(), i = $(e, "modelValue"), a = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
|
|
626
|
+
a,
|
|
631
627
|
t.validators,
|
|
632
628
|
t.showValidationError
|
|
633
629
|
);
|
|
634
630
|
function b() {
|
|
635
631
|
if (!t.autosize) return;
|
|
636
|
-
const y =
|
|
637
|
-
y.style.height = "auto", y.style.height = `${y.scrollHeight +
|
|
632
|
+
const y = a.value, f = y.offsetHeight - y.clientHeight;
|
|
633
|
+
y.style.height = "auto", y.style.height = `${y.scrollHeight + f}px`;
|
|
638
634
|
}
|
|
639
|
-
return j(b), (y,
|
|
635
|
+
return j(b), (y, f) => (l(), m(S, x(t, {
|
|
640
636
|
"label-for": r(o),
|
|
641
637
|
"validation-message": e.showValidationError ? "" : r(n),
|
|
642
638
|
invalid: !r(s),
|
|
643
639
|
class: y.$attrs.class
|
|
644
640
|
}), {
|
|
645
641
|
default: c(() => [
|
|
646
|
-
|
|
642
|
+
O(d("textarea", x({
|
|
647
643
|
ref_key: "formElement",
|
|
648
|
-
ref:
|
|
644
|
+
ref: a
|
|
649
645
|
}, { ...y.$attrs, class: void 0 }, {
|
|
650
646
|
id: r(o),
|
|
651
|
-
"onUpdate:modelValue":
|
|
652
|
-
onKeyupPassive:
|
|
647
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => i.value = C),
|
|
648
|
+
onKeyupPassive: f[1] || (f[1] = (C) => !r(s) && r(g)()),
|
|
653
649
|
onInputPassive: b,
|
|
654
650
|
class: ["form-control__textarea", {
|
|
655
651
|
"form-control__textarea--autosize": e.autosize
|
|
656
652
|
}]
|
|
657
653
|
}), null, 16, He), [
|
|
658
|
-
[he,
|
|
654
|
+
[he, i.value]
|
|
659
655
|
])
|
|
660
656
|
]),
|
|
661
657
|
_: 1
|
|
662
658
|
}, 16, ["label-for", "validation-message", "invalid", "class"]));
|
|
663
659
|
}
|
|
664
|
-
}),
|
|
660
|
+
}), Ke = ["id"], Bt = /* @__PURE__ */ v({
|
|
665
661
|
inheritAttrs: !1,
|
|
666
662
|
__name: "checkbox",
|
|
667
663
|
props: /* @__PURE__ */ M({
|
|
@@ -676,31 +672,31 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
676
672
|
}),
|
|
677
673
|
emits: ["update:modelValue"],
|
|
678
674
|
setup(e) {
|
|
679
|
-
const t = e, o =
|
|
680
|
-
|
|
675
|
+
const t = e, o = $(e, "modelValue"), i = L(), a = q("formElement"), { isValid: s } = A(
|
|
676
|
+
a,
|
|
681
677
|
t.validators,
|
|
682
678
|
t.showValidationError
|
|
683
679
|
);
|
|
684
680
|
return (n, g) => (l(), u("div", {
|
|
685
681
|
class: w(["dai-checkbox-control", n.$attrs.class])
|
|
686
682
|
}, [
|
|
687
|
-
|
|
683
|
+
O(d("input", x({
|
|
688
684
|
ref_key: "formElement",
|
|
689
|
-
ref:
|
|
685
|
+
ref: a,
|
|
690
686
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
|
|
691
687
|
}, { ...n.$attrs, class: "" }, {
|
|
692
|
-
id: r(
|
|
688
|
+
id: r(i),
|
|
693
689
|
type: "checkbox",
|
|
694
690
|
class: ["dai-checkbox", {
|
|
695
691
|
[`dai-checkbox--${e.color}`]: e.color,
|
|
696
692
|
"dai-checkbox--invalid": !r(s)
|
|
697
693
|
}]
|
|
698
|
-
}), null, 16,
|
|
694
|
+
}), null, 16, Ke), [
|
|
699
695
|
[be, o.value]
|
|
700
696
|
]),
|
|
701
|
-
e.label || n.$slots.default ? (l(),
|
|
697
|
+
e.label || n.$slots.default ? (l(), m(F, {
|
|
702
698
|
key: 0,
|
|
703
|
-
for: r(
|
|
699
|
+
for: r(i)
|
|
704
700
|
}, {
|
|
705
701
|
default: c(() => [
|
|
706
702
|
p(n.$slots, "default", {}, () => [
|
|
@@ -709,7 +705,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
709
705
|
]),
|
|
710
706
|
_: 3
|
|
711
707
|
}, 8, ["for"])) : h("", !0),
|
|
712
|
-
e.hint || n.$slots.hint ? (l(),
|
|
708
|
+
e.hint || n.$slots.hint ? (l(), m(X, {
|
|
713
709
|
key: 1,
|
|
714
710
|
class: "dai-checkbox-control__hint"
|
|
715
711
|
}, {
|
|
@@ -722,10 +718,10 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
722
718
|
})) : h("", !0)
|
|
723
719
|
], 2));
|
|
724
720
|
}
|
|
725
|
-
}),
|
|
721
|
+
}), Ye = { class: "flex items-center h-5" }, Re = ["value", "id"], Ze = {
|
|
726
722
|
key: 0,
|
|
727
723
|
class: "text-sm"
|
|
728
|
-
},
|
|
724
|
+
}, Ge = ["for"], Qe = {
|
|
729
725
|
key: 0,
|
|
730
726
|
class: "text-secondary-500 dark:text-secondary-400"
|
|
731
727
|
}, Vt = /* @__PURE__ */ v({
|
|
@@ -744,36 +740,36 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
744
740
|
}),
|
|
745
741
|
emits: ["update:modelValue"],
|
|
746
742
|
setup(e) {
|
|
747
|
-
const t = e, o =
|
|
748
|
-
|
|
743
|
+
const t = e, o = $(e, "modelValue"), i = L(), a = q("formElement"), { isValid: s } = A(
|
|
744
|
+
a,
|
|
749
745
|
t.validators,
|
|
750
746
|
t.showValidationError
|
|
751
747
|
);
|
|
752
748
|
return (n, g) => (l(), u("div", {
|
|
753
749
|
class: w(["flex items-start gap-3", n.$attrs.class])
|
|
754
750
|
}, [
|
|
755
|
-
d("div",
|
|
756
|
-
|
|
751
|
+
d("div", Ye, [
|
|
752
|
+
O(d("input", x({
|
|
757
753
|
type: "radio",
|
|
758
754
|
ref_key: "formElement",
|
|
759
|
-
ref:
|
|
755
|
+
ref: a,
|
|
760
756
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
|
|
761
757
|
}, { ...n.$attrs, class: "" }, {
|
|
762
758
|
value: e.value,
|
|
763
|
-
id: r(
|
|
759
|
+
id: r(i),
|
|
764
760
|
class: ["radio", {
|
|
765
761
|
[`radio--${e.color}`]: e.color,
|
|
766
762
|
"radio--invalid": !r(s)
|
|
767
763
|
}]
|
|
768
|
-
}), null, 16,
|
|
764
|
+
}), null, 16, Re), [
|
|
769
765
|
[ye, o.value]
|
|
770
766
|
])
|
|
771
767
|
]),
|
|
772
|
-
e.label ? (l(), u("div",
|
|
768
|
+
e.label ? (l(), u("div", Ze, [
|
|
773
769
|
d("label", {
|
|
774
|
-
for: r(
|
|
770
|
+
for: r(i),
|
|
775
771
|
class: "font-medium select-none cursor-pointer"
|
|
776
|
-
}, k(e.label), 9,
|
|
772
|
+
}, k(e.label), 9, Ge),
|
|
777
773
|
e.hint ? (l(), u("p", Qe, k(e.hint), 1)) : h("", !0)
|
|
778
774
|
])) : h("", !0)
|
|
779
775
|
], 2));
|
|
@@ -789,39 +785,39 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
789
785
|
}),
|
|
790
786
|
emits: ["update:modelValue"],
|
|
791
787
|
setup(e) {
|
|
792
|
-
const t =
|
|
793
|
-
return (
|
|
788
|
+
const t = $(e, "modelValue"), o = L();
|
|
789
|
+
return (i, a) => (l(), u("div", We, [
|
|
794
790
|
d("button", {
|
|
795
|
-
onClick:
|
|
791
|
+
onClick: a[0] || (a[0] = (s) => t.value = !t.value),
|
|
796
792
|
id: r(o),
|
|
797
793
|
"aria-checked": t.value,
|
|
798
794
|
role: "switch",
|
|
799
795
|
type: "button",
|
|
800
796
|
tabindex: "0",
|
|
801
797
|
class: w(["dai-switch", [t.value ? "dai-switch--on" : "dai-switch--off"]])
|
|
802
|
-
}, [...
|
|
798
|
+
}, [...a[1] || (a[1] = [
|
|
803
799
|
d("div", {
|
|
804
800
|
"aria-hidden": "true",
|
|
805
801
|
class: "dai-switch__thumb"
|
|
806
802
|
}, null, -1)
|
|
807
803
|
])], 10, Je),
|
|
808
|
-
e.label ||
|
|
804
|
+
e.label || i.$slots.default ? (l(), m(F, {
|
|
809
805
|
key: 0,
|
|
810
806
|
for: r(o)
|
|
811
807
|
}, {
|
|
812
808
|
default: c(() => [
|
|
813
|
-
p(
|
|
809
|
+
p(i.$slots, "default", {}, () => [
|
|
814
810
|
E(k(e.label), 1)
|
|
815
811
|
])
|
|
816
812
|
]),
|
|
817
813
|
_: 3
|
|
818
814
|
}, 8, ["for"])) : h("", !0),
|
|
819
|
-
e.hint ||
|
|
815
|
+
e.hint || i.$slots.hint ? (l(), m(X, {
|
|
820
816
|
key: 1,
|
|
821
817
|
class: "dai-switch-control__hint"
|
|
822
818
|
}, {
|
|
823
819
|
default: c(() => [
|
|
824
|
-
p(
|
|
820
|
+
p(i.$slots, "hint", {}, () => [
|
|
825
821
|
E(k(e.hint), 1)
|
|
826
822
|
])
|
|
827
823
|
]),
|
|
@@ -854,19 +850,19 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
854
850
|
condensed: { type: Boolean }
|
|
855
851
|
},
|
|
856
852
|
setup(e) {
|
|
857
|
-
const t = e, o =
|
|
858
|
-
return (s, n) => (l(),
|
|
853
|
+
const t = e, o = _(() => t.submit ? "submit" : t.reset ? "reset" : "button"), i = _(() => t.variant ? t.variant : t.plain ? "plain" : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), a = _(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
|
|
854
|
+
return (s, n) => (l(), m(ge(e.href ? "a" : "button"), {
|
|
859
855
|
type: e.href ? void 0 : o.value,
|
|
860
856
|
form: typeof e.submit == "string" ? e.submit : void 0,
|
|
861
857
|
href: e.href,
|
|
862
858
|
class: w(["dai-btn", {
|
|
863
859
|
[`dai-btn--${e.color}`]: e.color,
|
|
864
|
-
"dai-btn--flat":
|
|
865
|
-
"dai-btn--plain":
|
|
866
|
-
"dai-btn--muted":
|
|
867
|
-
"dai-btn--outlined":
|
|
868
|
-
"dai-btn--sm":
|
|
869
|
-
"dai-btn--lg":
|
|
860
|
+
"dai-btn--flat": i.value === "flat",
|
|
861
|
+
"dai-btn--plain": i.value === "plain",
|
|
862
|
+
"dai-btn--muted": i.value === "muted",
|
|
863
|
+
"dai-btn--outlined": i.value === "outlined",
|
|
864
|
+
"dai-btn--sm": a.value === "small",
|
|
865
|
+
"dai-btn--lg": a.value === "large",
|
|
870
866
|
"dai-btn--loading": e.loading,
|
|
871
867
|
"dai-btn--block": e.block,
|
|
872
868
|
"dai-btn--rounded": e.rounded,
|
|
@@ -913,7 +909,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
913
909
|
}), zt = /* @__PURE__ */ v({
|
|
914
910
|
__name: "popoverDialog",
|
|
915
911
|
setup(e) {
|
|
916
|
-
return (t, o) => (l(),
|
|
912
|
+
return (t, o) => (l(), m(P, {
|
|
917
913
|
"enter-from-class": "dai-popover-dialog--anim",
|
|
918
914
|
"leave-to-class": "dai-popover-dialog--anim"
|
|
919
915
|
}, {
|
|
@@ -931,7 +927,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
931
927
|
}), Et = /* @__PURE__ */ v({
|
|
932
928
|
__name: "menuItems",
|
|
933
929
|
setup(e) {
|
|
934
|
-
return (t, o) => (l(),
|
|
930
|
+
return (t, o) => (l(), m(P, {
|
|
935
931
|
"enter-from-class": "dai-menu-items--anim",
|
|
936
932
|
"leave-to-class": "dai-menu-items--anim"
|
|
937
933
|
}, {
|
|
@@ -955,16 +951,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
955
951
|
icon: {}
|
|
956
952
|
},
|
|
957
953
|
setup(e) {
|
|
958
|
-
return (t, o) => (l(),
|
|
959
|
-
default: c(({ isActive:
|
|
954
|
+
return (t, o) => (l(), m(r(re), { class: "dai-menu-item" }, {
|
|
955
|
+
default: c(({ isActive: i, isSelected: a }) => [
|
|
960
956
|
e.icon ? (l(), u("div", ot, [
|
|
961
957
|
d("div", {
|
|
962
958
|
class: w(["h-5 w-5", e.icon])
|
|
963
959
|
}, null, 2)
|
|
964
960
|
])) : h("", !0),
|
|
965
961
|
p(t.$slots, "default", {
|
|
966
|
-
isActive:
|
|
967
|
-
isSelected:
|
|
962
|
+
isActive: i,
|
|
963
|
+
isSelected: a
|
|
968
964
|
})
|
|
969
965
|
]),
|
|
970
966
|
_: 3
|
|
@@ -978,7 +974,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
978
974
|
value: {}
|
|
979
975
|
},
|
|
980
976
|
setup(e) {
|
|
981
|
-
return (t, o) => (l(),
|
|
977
|
+
return (t, o) => (l(), m(r(de), {
|
|
982
978
|
id: e.id,
|
|
983
979
|
"aria-controls": e.ariaControls,
|
|
984
980
|
value: e.value,
|
|
@@ -993,22 +989,22 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
993
989
|
}), Tt = /* @__PURE__ */ v({
|
|
994
990
|
__name: "tabList",
|
|
995
991
|
setup(e) {
|
|
996
|
-
const t = q("tablist"), o = q("slider"),
|
|
997
|
-
function
|
|
992
|
+
const t = q("tablist"), o = q("slider"), i = D({});
|
|
993
|
+
function a() {
|
|
998
994
|
if (!o.value) return;
|
|
999
995
|
const s = t.value?.$el;
|
|
1000
996
|
if (!s) return;
|
|
1001
997
|
const n = s.querySelector("[aria-selected=true]");
|
|
1002
|
-
n && (
|
|
998
|
+
n && (i.value = {
|
|
1003
999
|
left: `${n.offsetLeft}px`,
|
|
1004
1000
|
right: `${s.offsetWidth - n.offsetLeft - n.offsetWidth}px`,
|
|
1005
1001
|
transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
|
|
1006
1002
|
});
|
|
1007
1003
|
}
|
|
1008
|
-
return j(() => we(
|
|
1004
|
+
return j(() => we(a)), (s, n) => (l(), m(r(ue), {
|
|
1009
1005
|
ref_key: "tablist",
|
|
1010
1006
|
ref: t,
|
|
1011
|
-
onClickPassive:
|
|
1007
|
+
onClickPassive: a,
|
|
1012
1008
|
class: "dai-tab-list"
|
|
1013
1009
|
}, {
|
|
1014
1010
|
default: c(() => [
|
|
@@ -1016,7 +1012,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1016
1012
|
ref_key: "slider",
|
|
1017
1013
|
ref: o,
|
|
1018
1014
|
class: "dai-tab-list__slider",
|
|
1019
|
-
style: U(
|
|
1015
|
+
style: U(i.value)
|
|
1020
1016
|
}, null, 4),
|
|
1021
1017
|
p(s.$slots, "default")
|
|
1022
1018
|
]),
|
|
@@ -1039,21 +1035,21 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1039
1035
|
}),
|
|
1040
1036
|
emits: ["update:modelValue"],
|
|
1041
1037
|
setup(e) {
|
|
1042
|
-
const t = e, o =
|
|
1038
|
+
const t = e, o = $(e, "modelValue"), i = t.id ?? L(), { classList: a } = xe(document.body, "nui-body-push");
|
|
1043
1039
|
T(o, () => {
|
|
1044
|
-
if (!t.push || (
|
|
1040
|
+
if (!t.push || (a.splice(1), !o.value))
|
|
1045
1041
|
return;
|
|
1046
1042
|
let n = "nui-body-push--" + t.position;
|
|
1047
|
-
t.lg && (n += "--lg"), t.xl && (n += "--xl"),
|
|
1043
|
+
t.lg && (n += "--lg"), t.xl && (n += "--xl"), a.push(n);
|
|
1048
1044
|
});
|
|
1049
1045
|
function s(n) {
|
|
1050
|
-
n.target.closest(`#${
|
|
1046
|
+
n.target.closest(`#${i}`) || t.closeOnOutsideClick && (o.value = !1);
|
|
1051
1047
|
}
|
|
1052
1048
|
return j(() => {
|
|
1053
1049
|
window.addEventListener("click", s, { passive: !0 });
|
|
1054
|
-
}),
|
|
1050
|
+
}), Y(() => {
|
|
1055
1051
|
window.removeEventListener("click", s);
|
|
1056
|
-
}), (n, g) => (l(),
|
|
1052
|
+
}), (n, g) => (l(), m(R, { to: "body" }, [
|
|
1057
1053
|
V(P, {
|
|
1058
1054
|
appear: "",
|
|
1059
1055
|
"enter-from-class": "nui-offcanvas--animate-hidden",
|
|
@@ -1064,9 +1060,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1064
1060
|
"leave-active-class": "ease-in-out"
|
|
1065
1061
|
}, {
|
|
1066
1062
|
default: c(() => [
|
|
1067
|
-
o.value ? (l(), u("div",
|
|
1063
|
+
o.value ? (l(), u("div", x({
|
|
1068
1064
|
key: 0,
|
|
1069
|
-
id: r(
|
|
1065
|
+
id: r(i)
|
|
1070
1066
|
}, n.$attrs, {
|
|
1071
1067
|
class: ["nui-offcanvas", {
|
|
1072
1068
|
[`nui-offcanvas--${e.position}`]: !0,
|
|
@@ -1117,7 +1113,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1117
1113
|
}, ut = { class: "dai-notification__content" }, ct = {
|
|
1118
1114
|
key: 0,
|
|
1119
1115
|
class: "dai-notification__content__detail"
|
|
1120
|
-
},
|
|
1116
|
+
}, ft = /* @__PURE__ */ v({
|
|
1121
1117
|
__name: "notification",
|
|
1122
1118
|
props: /* @__PURE__ */ M({
|
|
1123
1119
|
color: {},
|
|
@@ -1132,12 +1128,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1132
1128
|
}),
|
|
1133
1129
|
emits: ["update:modelValue"],
|
|
1134
1130
|
setup(e) {
|
|
1135
|
-
const t = e, o =
|
|
1136
|
-
let
|
|
1137
|
-
function
|
|
1138
|
-
clearTimeout(
|
|
1131
|
+
const t = e, o = $(e, "modelValue");
|
|
1132
|
+
let i;
|
|
1133
|
+
function a() {
|
|
1134
|
+
clearTimeout(i), o.value && t.timeout && (i = setTimeout(() => o.value = !1, t.timeout));
|
|
1139
1135
|
}
|
|
1140
|
-
return T(o,
|
|
1136
|
+
return T(o, a, { immediate: !0 }), (s, n) => o.value ? (l(), u("div", lt, [
|
|
1141
1137
|
d("div", {
|
|
1142
1138
|
class: w(["dai-notification", [`dai-notification--${e.color || "secondary"}`]])
|
|
1143
1139
|
}, [
|
|
@@ -1193,20 +1189,20 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1193
1189
|
}),
|
|
1194
1190
|
emits: ["update:queue"],
|
|
1195
1191
|
setup(e) {
|
|
1196
|
-
const t = e, o =
|
|
1197
|
-
let
|
|
1192
|
+
const t = e, o = $(e, "queue"), i = D([]);
|
|
1193
|
+
let a = 0;
|
|
1198
1194
|
function s() {
|
|
1199
|
-
o.value.length === 0 ||
|
|
1195
|
+
o.value.length === 0 || i.value.length >= t.length || (i.value.push({ ...o.value[0], id: a++, show: !0 }), o.value.shift());
|
|
1200
1196
|
}
|
|
1201
1197
|
function n(b) {
|
|
1202
1198
|
setTimeout(() => {
|
|
1203
|
-
|
|
1199
|
+
i.value = i.value.filter(
|
|
1204
1200
|
(y) => y.id !== b
|
|
1205
1201
|
), s();
|
|
1206
1202
|
}, 200);
|
|
1207
1203
|
}
|
|
1208
1204
|
T(o, s, { immediate: !0, deep: !0 });
|
|
1209
|
-
const g =
|
|
1205
|
+
const g = _(() => {
|
|
1210
1206
|
const b = ["dai-notification-queue__item--anim"];
|
|
1211
1207
|
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(" ");
|
|
1212
1208
|
});
|
|
@@ -1229,15 +1225,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1229
1225
|
"leave-active-class": "dai-notification-queue__item--anim-out"
|
|
1230
1226
|
}, {
|
|
1231
1227
|
default: c(() => [
|
|
1232
|
-
(l(!0), u(I, null,
|
|
1233
|
-
key:
|
|
1234
|
-
color:
|
|
1235
|
-
icon:
|
|
1236
|
-
message:
|
|
1237
|
-
detail:
|
|
1238
|
-
timeout:
|
|
1239
|
-
modelValue:
|
|
1240
|
-
"onUpdate:modelValue": [(C) =>
|
|
1228
|
+
(l(!0), u(I, null, N(i.value, (f) => (l(), m(ft, {
|
|
1229
|
+
key: f.id,
|
|
1230
|
+
color: f.color,
|
|
1231
|
+
icon: f.type,
|
|
1232
|
+
message: f.message,
|
|
1233
|
+
detail: f.detail,
|
|
1234
|
+
timeout: f.timeout ?? e.timeout,
|
|
1235
|
+
modelValue: f.show,
|
|
1236
|
+
"onUpdate:modelValue": [(C) => f.show = C, (C) => n(f.id)],
|
|
1241
1237
|
class: "dai-notification-queue__item"
|
|
1242
1238
|
}, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
1243
1239
|
]),
|
|
@@ -1245,7 +1241,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1245
1241
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1246
1242
|
], 2));
|
|
1247
1243
|
}
|
|
1248
|
-
}),
|
|
1244
|
+
}), mt = ["aria-valuenow"], It = /* @__PURE__ */ v({
|
|
1249
1245
|
__name: "progressbar",
|
|
1250
1246
|
props: {
|
|
1251
1247
|
value: {},
|
|
@@ -1254,8 +1250,8 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1254
1250
|
rounded: { type: Boolean, default: !0 }
|
|
1255
1251
|
},
|
|
1256
1252
|
setup(e) {
|
|
1257
|
-
const t = e, o =
|
|
1258
|
-
return (
|
|
1253
|
+
const t = e, o = _(() => t.value === void 0);
|
|
1254
|
+
return (i, a) => (l(), u("div", {
|
|
1259
1255
|
class: w(["overflow-hidden text-xs w-full flex-1", {
|
|
1260
1256
|
rounded: e.rounded,
|
|
1261
1257
|
"bg-primary-200": e.color == "primary",
|
|
@@ -1281,7 +1277,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1281
1277
|
"progress-infinite": o.value
|
|
1282
1278
|
}, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
|
|
1283
1279
|
}, null, 6)
|
|
1284
|
-
], 14,
|
|
1280
|
+
], 14, mt));
|
|
1285
1281
|
}
|
|
1286
1282
|
}), vt = {
|
|
1287
1283
|
key: 0,
|
|
@@ -1295,13 +1291,13 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1295
1291
|
},
|
|
1296
1292
|
emits: ["update:modelValue"],
|
|
1297
1293
|
setup(e) {
|
|
1298
|
-
const t =
|
|
1294
|
+
const t = $(e, "modelValue");
|
|
1299
1295
|
function o() {
|
|
1300
1296
|
t.value = !1;
|
|
1301
1297
|
}
|
|
1302
|
-
return T(t, (
|
|
1303
|
-
|
|
1304
|
-
}), (
|
|
1298
|
+
return T(t, (i) => {
|
|
1299
|
+
i ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
1300
|
+
}), (i, a) => (l(), m(R, { to: "body" }, [
|
|
1305
1301
|
V(P, {
|
|
1306
1302
|
appear: "",
|
|
1307
1303
|
name: "modal",
|
|
@@ -1309,7 +1305,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1309
1305
|
}, {
|
|
1310
1306
|
default: c(() => [
|
|
1311
1307
|
t.value ? (l(), u("div", vt, [
|
|
1312
|
-
|
|
1308
|
+
a[0] || (a[0] = d("div", {
|
|
1313
1309
|
class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
|
|
1314
1310
|
"aria-hidden": "true"
|
|
1315
1311
|
}, null, -1)),
|
|
@@ -1319,7 +1315,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
|
|
|
1319
1315
|
class: "min-h-full flex items-center justify-center p-4 sm:p-6"
|
|
1320
1316
|
}, [
|
|
1321
1317
|
d("div", ht, [
|
|
1322
|
-
p(
|
|
1318
|
+
p(i.$slots, "default", { close: o })
|
|
1323
1319
|
])
|
|
1324
1320
|
])
|
|
1325
1321
|
])
|
|
@@ -1343,7 +1339,7 @@ export {
|
|
|
1343
1339
|
Lt as MenuItem,
|
|
1344
1340
|
Et as MenuItems,
|
|
1345
1341
|
jt as Modal,
|
|
1346
|
-
|
|
1342
|
+
ft as Notification,
|
|
1347
1343
|
At as NotificationQueue,
|
|
1348
1344
|
Pt as Offcanvas,
|
|
1349
1345
|
Ut as Popover,
|
|
@@ -1354,9 +1350,9 @@ export {
|
|
|
1354
1350
|
xt as Selectbox,
|
|
1355
1351
|
Mt as Switch,
|
|
1356
1352
|
qt as Tab,
|
|
1357
|
-
|
|
1353
|
+
Dt as TabContainer,
|
|
1358
1354
|
Tt as TabList,
|
|
1359
|
-
|
|
1355
|
+
Nt as TabPanel,
|
|
1360
1356
|
_t as Textarea,
|
|
1361
1357
|
xe as useClassList
|
|
1362
1358
|
};
|