@dronico/droni-kit 1.19.0 → 1.21.0
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/CHANGELOG.md +14 -0
- package/dist/droni-kit.cjs.js +9 -9
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.es.js +996 -834
- package/dist/index.d.ts +2 -1
- package/dist/stories/Elements/DuiDropdownItem.vue.d.ts +1 -1
- package/dist/stories/Forms/DuiFile.stories.d.ts +125 -0
- package/dist/stories/Forms/DuiFile.vue.d.ts +78 -0
- package/dist/stories/Forms/DuiSelect.stories.d.ts +1 -1
- package/dist/stories/Forms/DuiSelect.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/droni-kit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Le, defineComponent as
|
|
1
|
+
import { getCurrentInstance as Le, defineComponent as P, computed as o, openBlock as t, createBlock as O, resolveDynamicComponent as Q, mergeProps as E, withCtx as W, renderSlot as T, createElementBlock as a, ref as K, watch as ae, normalizeClass as n, createElementVNode as c, toDisplayString as j, createCommentVNode as S, Fragment as A, renderList as F, createTextVNode as I, withDirectives as pe, vShow as ge, useSlots as we, unref as R, createVNode as de, onMounted as me, onBeforeUnmount as fe, Teleport as he, Transition as xe, normalizeStyle as ce, withModifiers as te, nextTick as le, withKeys as ye, reactive as ze, readonly as Ie, TransitionGroup as Ae } from "vue";
|
|
2
2
|
function We() {
|
|
3
3
|
try {
|
|
4
4
|
const d = Le(), r = d == null ? void 0 : d.appContext.app;
|
|
@@ -7,12 +7,12 @@ function We() {
|
|
|
7
7
|
return !1;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function oe(d) {
|
|
11
11
|
return d ? We() ? "RouterLink" : "a" : "button";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
return r === "a" ? (
|
|
13
|
+
function ue(d, r, e = {}) {
|
|
14
|
+
const b = { ...e };
|
|
15
|
+
return r === "a" ? (b.href = typeof d == "string" ? d : "#", b.role = "button") : r !== "button" && r !== "span" && (b.to = d), b;
|
|
16
16
|
}
|
|
17
17
|
const Ee = { key: 1 }, Oe = `
|
|
18
18
|
dk:transition
|
|
@@ -25,7 +25,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
25
25
|
dk:text-ellipsis
|
|
26
26
|
dk:whitespace-nowrap
|
|
27
27
|
dk:active:scale-95
|
|
28
|
-
dk:max-w-full`,
|
|
28
|
+
dk:max-w-full`, ie = /* @__PURE__ */ P({
|
|
29
29
|
__name: "DuiButton",
|
|
30
30
|
props: {
|
|
31
31
|
variant: { default: "solid" },
|
|
@@ -40,14 +40,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
40
40
|
to: { default: void 0 }
|
|
41
41
|
},
|
|
42
42
|
setup(d) {
|
|
43
|
-
const r = d, e = o(() =>
|
|
44
|
-
const
|
|
45
|
-
return e.value === "button" && (
|
|
46
|
-
}),
|
|
43
|
+
const r = d, e = o(() => oe(r.to)), b = o(() => {
|
|
44
|
+
const s = {};
|
|
45
|
+
return e.value === "button" && (s.type = r.type), ue(r.to, e.value, s);
|
|
46
|
+
}), m = {
|
|
47
47
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
48
48
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
49
49
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
50
|
-
},
|
|
50
|
+
}, i = {
|
|
51
51
|
all: "dk:rounded",
|
|
52
52
|
top: "dk:rounded-t",
|
|
53
53
|
bottom: "dk:rounded-b",
|
|
@@ -228,21 +228,182 @@ const Ee = { key: 1 }, Oe = `
|
|
|
228
228
|
}
|
|
229
229
|
}, y = o(() => {
|
|
230
230
|
var C;
|
|
231
|
-
const
|
|
232
|
-
return [Oe,
|
|
231
|
+
const s = (((C = z[r.variant]) == null ? void 0 : C[r.color]) || "") + " " + z[r.variant].base, g = m[r.size] || "", h = r.block ? "dk:w-full" : "", x = i[r.rounded] || "";
|
|
232
|
+
return [Oe, s, g, h, x].join(" ");
|
|
233
233
|
});
|
|
234
|
-
return (
|
|
234
|
+
return (s, g) => (t(), O(Q(e.value), E(b.value, {
|
|
235
235
|
class: y.value,
|
|
236
236
|
title: r.title,
|
|
237
237
|
disabled: r.disabled || r.loading
|
|
238
238
|
}), {
|
|
239
|
-
default:
|
|
240
|
-
r.loading ? (t(), a("span", Ee, "Cargando...")) :
|
|
239
|
+
default: W(() => [
|
|
240
|
+
r.loading ? (t(), a("span", Ee, "Cargando...")) : T(s.$slots, "default", { key: 0 })
|
|
241
241
|
]),
|
|
242
242
|
_: 3
|
|
243
243
|
}, 16, ["class", "title", "disabled"]));
|
|
244
244
|
}
|
|
245
|
-
}), Ne = ["
|
|
245
|
+
}), Ne = ["href"], Fe = ["accept"], zt = /* @__PURE__ */ P({
|
|
246
|
+
inheritAttrs: !1,
|
|
247
|
+
__name: "DuiFile",
|
|
248
|
+
props: {
|
|
249
|
+
modelValue: {
|
|
250
|
+
type: String,
|
|
251
|
+
default: ""
|
|
252
|
+
},
|
|
253
|
+
accept: {
|
|
254
|
+
type: String,
|
|
255
|
+
default: "*"
|
|
256
|
+
},
|
|
257
|
+
size: {
|
|
258
|
+
type: String,
|
|
259
|
+
default: "md"
|
|
260
|
+
},
|
|
261
|
+
block: {
|
|
262
|
+
type: Boolean,
|
|
263
|
+
default: !0
|
|
264
|
+
},
|
|
265
|
+
rounded: {
|
|
266
|
+
type: String,
|
|
267
|
+
default: "all"
|
|
268
|
+
},
|
|
269
|
+
uploadBtn: {
|
|
270
|
+
type: Boolean,
|
|
271
|
+
default: !0
|
|
272
|
+
},
|
|
273
|
+
browserBtn: {
|
|
274
|
+
type: Boolean,
|
|
275
|
+
default: !0
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
emits: ["update:modelValue", "open-browser", "upload-file"],
|
|
279
|
+
setup(d, { emit: r }) {
|
|
280
|
+
const e = d, b = r, m = K(null), i = K(""), z = {
|
|
281
|
+
sm: "dk:gap-1 dk:px-2 dk:py-1",
|
|
282
|
+
md: "dk:gap-2 dk:px-3 dk:py-2",
|
|
283
|
+
lg: "dk:gap-3 dk:px-4 dk:py-3"
|
|
284
|
+
}, y = {
|
|
285
|
+
all: "dk:rounded-xl",
|
|
286
|
+
top: "dk:rounded-t-xl",
|
|
287
|
+
bottom: "dk:rounded-b-xl",
|
|
288
|
+
left: "dk:rounded-l-xl",
|
|
289
|
+
right: "dk:rounded-r-xl",
|
|
290
|
+
none: "dk:rounded-none"
|
|
291
|
+
}, s = o(() => e.block ? "dk:w-full" : "dk:inline-flex dk:max-w-full"), g = o(() => {
|
|
292
|
+
const l = z[e.size] || z.md, u = y[e.rounded] || y.all;
|
|
293
|
+
return [
|
|
294
|
+
"dk:flex dk:w-full dk:flex-col dk:items-stretch dk:justify-between dk:border-b dk:border-zinc-300 dk:bg-zinc-50 dk:text-zinc-800 dk:shadow-sm dk:transition-colors",
|
|
295
|
+
"dk:dark:border-zinc-600 dk:dark:bg-zinc-800 dk:dark:text-zinc-100",
|
|
296
|
+
"dk:sm:flex-row dk:sm:items-center",
|
|
297
|
+
l,
|
|
298
|
+
u
|
|
299
|
+
].join(" ");
|
|
300
|
+
}), h = o(() => "dk:min-w-0 dk:flex-1"), x = o(() => [
|
|
301
|
+
"dk:flex dk:flex-col dk:gap-2 dk:w-full",
|
|
302
|
+
"dk:sm:w-auto dk:sm:flex-row dk:sm:items-center dk:sm:justify-end"
|
|
303
|
+
].join(" ")), C = o(() => [
|
|
304
|
+
"dk:mt-1 dk:max-w-full dk:overflow-hidden dk:text-ellipsis dk:whitespace-nowrap dk:text-sm",
|
|
305
|
+
e.modelValue || i.value ? "dk:text-zinc-900 dk:dark:text-zinc-100" : "dk:text-zinc-500 dk:dark:text-zinc-400"
|
|
306
|
+
].join(" ")), D = o(() => i.value ? i.value : e.modelValue ? v(e.modelValue) : "No hay archivo seleccionado");
|
|
307
|
+
ae(
|
|
308
|
+
() => e.modelValue,
|
|
309
|
+
(l) => {
|
|
310
|
+
l && (i.value = "");
|
|
311
|
+
}
|
|
312
|
+
);
|
|
313
|
+
function v(l) {
|
|
314
|
+
try {
|
|
315
|
+
const $ = new URL(l, typeof window < "u" ? window.location.origin : "http://localhost").pathname.split("/").filter(Boolean);
|
|
316
|
+
return decodeURIComponent($[$.length - 1] || l);
|
|
317
|
+
} catch {
|
|
318
|
+
const u = l.split("?")[0].split("#")[0].split("/").filter(Boolean);
|
|
319
|
+
return decodeURIComponent(u[u.length - 1] || l);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function p() {
|
|
323
|
+
b("open-browser");
|
|
324
|
+
}
|
|
325
|
+
function k() {
|
|
326
|
+
var l;
|
|
327
|
+
(l = m.value) == null || l.click();
|
|
328
|
+
}
|
|
329
|
+
function f(l) {
|
|
330
|
+
var M;
|
|
331
|
+
const u = l.target, $ = (M = u.files) == null ? void 0 : M[0];
|
|
332
|
+
$ && (i.value = $.name, b("upload-file", $), w(u));
|
|
333
|
+
}
|
|
334
|
+
function w(l) {
|
|
335
|
+
l.value = "";
|
|
336
|
+
}
|
|
337
|
+
return (l, u) => (t(), a("div", {
|
|
338
|
+
class: n(s.value)
|
|
339
|
+
}, [
|
|
340
|
+
c("div", {
|
|
341
|
+
class: n(g.value)
|
|
342
|
+
}, [
|
|
343
|
+
c("div", {
|
|
344
|
+
class: n(h.value)
|
|
345
|
+
}, [
|
|
346
|
+
e.modelValue ?? i.value ? (t(), a("p", {
|
|
347
|
+
key: 0,
|
|
348
|
+
class: n(C.value)
|
|
349
|
+
}, [
|
|
350
|
+
c("a", {
|
|
351
|
+
href: e.modelValue,
|
|
352
|
+
target: "_blank",
|
|
353
|
+
class: "dk:ml-2 dk:text-pink-500 dk:underline dk:transition-colors dk:hover:text-pink-800 dk:dark:text-pink-400 dk:dark:hover:text-pink-300"
|
|
354
|
+
}, j(D.value), 9, Ne)
|
|
355
|
+
], 2)) : S("", !0)
|
|
356
|
+
], 2),
|
|
357
|
+
c("div", {
|
|
358
|
+
class: n(x.value)
|
|
359
|
+
}, [
|
|
360
|
+
e.browserBtn ? (t(), O(ie, {
|
|
361
|
+
key: 0,
|
|
362
|
+
color: "primary",
|
|
363
|
+
variant: "outline",
|
|
364
|
+
size: "sm",
|
|
365
|
+
block: !1,
|
|
366
|
+
title: "Abrir navegador de archivos",
|
|
367
|
+
onClick: p
|
|
368
|
+
}, {
|
|
369
|
+
default: W(() => [...u[0] || (u[0] = [
|
|
370
|
+
c("i", {
|
|
371
|
+
class: "mdi mdi-folder-search-outline",
|
|
372
|
+
"aria-hidden": "true"
|
|
373
|
+
}, null, -1)
|
|
374
|
+
])]),
|
|
375
|
+
_: 1
|
|
376
|
+
})) : S("", !0),
|
|
377
|
+
e.uploadBtn ? (t(), O(ie, {
|
|
378
|
+
key: 1,
|
|
379
|
+
color: "neutral",
|
|
380
|
+
variant: "solid",
|
|
381
|
+
size: "sm",
|
|
382
|
+
block: !1,
|
|
383
|
+
title: "Subir nuevo archivo",
|
|
384
|
+
onClick: k
|
|
385
|
+
}, {
|
|
386
|
+
default: W(() => [...u[1] || (u[1] = [
|
|
387
|
+
c("i", {
|
|
388
|
+
class: "mdi mdi-upload",
|
|
389
|
+
"aria-hidden": "true"
|
|
390
|
+
}, null, -1)
|
|
391
|
+
])]),
|
|
392
|
+
_: 1
|
|
393
|
+
})) : S("", !0)
|
|
394
|
+
], 2)
|
|
395
|
+
], 2),
|
|
396
|
+
c("input", {
|
|
397
|
+
ref_key: "fileInputRef",
|
|
398
|
+
ref: m,
|
|
399
|
+
type: "file",
|
|
400
|
+
class: "dk:hidden",
|
|
401
|
+
accept: e.accept,
|
|
402
|
+
onChange: f
|
|
403
|
+
}, null, 40, Fe)
|
|
404
|
+
], 2));
|
|
405
|
+
}
|
|
406
|
+
}), Ue = ["value"], Ke = `
|
|
246
407
|
dk:border-b
|
|
247
408
|
dk:border-zinc-300
|
|
248
409
|
dk:bg-zinc-50
|
|
@@ -254,7 +415,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
254
415
|
dk:dark:bg-zinc-800
|
|
255
416
|
dk:dark:text-zinc-100
|
|
256
417
|
dk:dark:focus:bg-zinc-700
|
|
257
|
-
dk:dark:[color-scheme:dark]`,
|
|
418
|
+
dk:dark:[color-scheme:dark]`, Ct = /* @__PURE__ */ P({
|
|
258
419
|
inheritAttrs: !1,
|
|
259
420
|
__name: "DuiInput",
|
|
260
421
|
props: {
|
|
@@ -277,12 +438,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
277
438
|
},
|
|
278
439
|
emits: ["update:modelValue"],
|
|
279
440
|
setup(d, { emit: r }) {
|
|
280
|
-
const e = d,
|
|
281
|
-
function
|
|
282
|
-
const
|
|
283
|
-
|
|
441
|
+
const e = d, b = r;
|
|
442
|
+
function m(s) {
|
|
443
|
+
const g = s.target;
|
|
444
|
+
b("update:modelValue", g.value);
|
|
284
445
|
}
|
|
285
|
-
const
|
|
446
|
+
const i = {
|
|
286
447
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
287
448
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
288
449
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -294,15 +455,15 @@ const Ee = { key: 1 }, Oe = `
|
|
|
294
455
|
right: "dk:rounded-r",
|
|
295
456
|
none: "dk:rounded-none"
|
|
296
457
|
}, y = o(() => {
|
|
297
|
-
const
|
|
298
|
-
return [
|
|
458
|
+
const s = i[e.size] || "", g = e.block ? "dk:w-full" : "", h = z[e.rounded] || "";
|
|
459
|
+
return [Ke, s, g, h].join(" ");
|
|
299
460
|
});
|
|
300
|
-
return (
|
|
461
|
+
return (s, g) => (t(), a("input", E({
|
|
301
462
|
class: y.value,
|
|
302
463
|
value: d.modelValue
|
|
303
|
-
},
|
|
464
|
+
}, s.$attrs, { onInput: m }), null, 16, Ue));
|
|
304
465
|
}
|
|
305
|
-
}),
|
|
466
|
+
}), qe = ["value"], He = `
|
|
306
467
|
dk:border-b
|
|
307
468
|
dk:border-zinc-300
|
|
308
469
|
dk:bg-zinc-50
|
|
@@ -314,7 +475,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
314
475
|
dk:dark:bg-zinc-800
|
|
315
476
|
dk:dark:text-zinc-100
|
|
316
477
|
dk:dark:focus:bg-zinc-700
|
|
317
|
-
dk:dark:[color-scheme:dark]`,
|
|
478
|
+
dk:dark:[color-scheme:dark]`, $t = /* @__PURE__ */ P({
|
|
318
479
|
inheritAttrs: !1,
|
|
319
480
|
__name: "DuiTextarea",
|
|
320
481
|
props: {
|
|
@@ -345,12 +506,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
345
506
|
},
|
|
346
507
|
emits: ["update:modelValue"],
|
|
347
508
|
setup(d, { emit: r }) {
|
|
348
|
-
const e = d,
|
|
349
|
-
function
|
|
350
|
-
const
|
|
351
|
-
e.autoheight &&
|
|
509
|
+
const e = d, b = r;
|
|
510
|
+
function m(h) {
|
|
511
|
+
const x = h.target;
|
|
512
|
+
e.autoheight && g(x), b("update:modelValue", x.value);
|
|
352
513
|
}
|
|
353
|
-
const
|
|
514
|
+
const i = {
|
|
354
515
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
355
516
|
md: "dk:text-base dk:px-3 dk:py-2",
|
|
356
517
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -366,24 +527,24 @@ const Ee = { key: 1 }, Oe = `
|
|
|
366
527
|
both: "dk:resize",
|
|
367
528
|
horizontal: "dk:resize-x",
|
|
368
529
|
vertical: "dk:resize-y"
|
|
369
|
-
},
|
|
370
|
-
const
|
|
371
|
-
return [
|
|
372
|
-
}),
|
|
373
|
-
|
|
530
|
+
}, s = o(() => {
|
|
531
|
+
const h = i[e.size] || "", x = e.block ? "dk:w-full" : "", C = z[e.rounded] || "", D = y[e.resize] || "";
|
|
532
|
+
return [He, h, x, C, D].join(" ");
|
|
533
|
+
}), g = (h) => {
|
|
534
|
+
h.style.height = "auto", h.style.height = `${h.scrollHeight + 5}px`;
|
|
374
535
|
};
|
|
375
|
-
return (
|
|
376
|
-
class:
|
|
536
|
+
return (h, x) => (t(), a("textarea", E(h.$attrs, {
|
|
537
|
+
class: s.value,
|
|
377
538
|
value: d.modelValue,
|
|
378
|
-
onInput:
|
|
379
|
-
}), null, 16,
|
|
539
|
+
onInput: m
|
|
540
|
+
}), null, 16, qe));
|
|
380
541
|
}
|
|
381
|
-
}),
|
|
542
|
+
}), Qe = {
|
|
382
543
|
key: 0,
|
|
383
544
|
disabled: "",
|
|
384
545
|
selected: "",
|
|
385
546
|
hidden: ""
|
|
386
|
-
},
|
|
547
|
+
}, Ge = ["value", "selected"], Je = `
|
|
387
548
|
dk:border-b
|
|
388
549
|
dk:border-zinc-300
|
|
389
550
|
dk:bg-zinc-50
|
|
@@ -396,7 +557,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
396
557
|
dk:dark:text-zinc-100
|
|
397
558
|
dk:dark:focus:bg-zinc-700
|
|
398
559
|
dk:dark:[color-scheme:dark]
|
|
399
|
-
`,
|
|
560
|
+
`, St = /* @__PURE__ */ P({
|
|
400
561
|
inheritAttrs: !1,
|
|
401
562
|
__name: "DuiSelect",
|
|
402
563
|
props: {
|
|
@@ -435,12 +596,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
435
596
|
},
|
|
436
597
|
emits: ["update:modelValue"],
|
|
437
598
|
setup(d, { emit: r }) {
|
|
438
|
-
const e = d,
|
|
439
|
-
function
|
|
440
|
-
const
|
|
441
|
-
!isNaN(
|
|
599
|
+
const e = d, b = r;
|
|
600
|
+
function m(s) {
|
|
601
|
+
const h = s.target.value, x = Number(h);
|
|
602
|
+
!isNaN(x) && h !== "" ? b("update:modelValue", x) : b("update:modelValue", h);
|
|
442
603
|
}
|
|
443
|
-
const
|
|
604
|
+
const i = {
|
|
444
605
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
445
606
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
446
607
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -452,25 +613,25 @@ const Ee = { key: 1 }, Oe = `
|
|
|
452
613
|
right: "dk:rounded-r",
|
|
453
614
|
none: "dk:rounded-none"
|
|
454
615
|
}, y = o(() => {
|
|
455
|
-
const
|
|
456
|
-
return [
|
|
616
|
+
const s = i[e.size] || "", g = e.block ? "dk:w-full" : "", h = z[e.rounded] || "";
|
|
617
|
+
return [Je, s, g, h].join(" ");
|
|
457
618
|
});
|
|
458
|
-
return (
|
|
619
|
+
return (s, g) => (t(), a("select", E(s.$attrs, {
|
|
459
620
|
class: y.value,
|
|
460
|
-
onChange:
|
|
621
|
+
onChange: m
|
|
461
622
|
}), [
|
|
462
|
-
d.placeholder ? (t(), a("option",
|
|
463
|
-
(t(!0), a(
|
|
464
|
-
key:
|
|
465
|
-
value:
|
|
466
|
-
selected:
|
|
467
|
-
}, j(
|
|
623
|
+
d.placeholder ? (t(), a("option", Qe, j(d.placeholder), 1)) : S("", !0),
|
|
624
|
+
(t(!0), a(A, null, F(d.options, (h, x) => (t(), a("option", {
|
|
625
|
+
key: x,
|
|
626
|
+
value: h[d.itemValue] ?? "",
|
|
627
|
+
selected: h[d.itemValue] == d.modelValue
|
|
628
|
+
}, j(h[d.itemLabel] ?? ""), 9, Ge))), 128))
|
|
468
629
|
], 16));
|
|
469
630
|
}
|
|
470
|
-
}),
|
|
631
|
+
}), Xe = {
|
|
471
632
|
key: 1,
|
|
472
633
|
class: "dk:text-rose-500 dk:ml-1"
|
|
473
|
-
},
|
|
634
|
+
}, Ye = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, Ze = "dk:space-y-1", Re = /* @__PURE__ */ P({
|
|
474
635
|
__name: "DuiLabel",
|
|
475
636
|
props: {
|
|
476
637
|
title: {
|
|
@@ -499,68 +660,68 @@ const Ee = { key: 1 }, Oe = `
|
|
|
499
660
|
}
|
|
500
661
|
},
|
|
501
662
|
setup(d) {
|
|
502
|
-
const r =
|
|
663
|
+
const r = K(!1), e = d, b = {
|
|
503
664
|
s: "dk:text-sm",
|
|
504
665
|
m: "dk:text-base",
|
|
505
666
|
l: "dk:text-lg"
|
|
506
|
-
},
|
|
667
|
+
}, m = {
|
|
507
668
|
s: "dk:mt-1",
|
|
508
669
|
m: "dk:mt-1.5",
|
|
509
670
|
l: "dk:mt-2"
|
|
510
|
-
},
|
|
671
|
+
}, i = {
|
|
511
672
|
s: "dk:text-xs",
|
|
512
673
|
m: "dk:text-sm",
|
|
513
674
|
l: "dk:text-base"
|
|
514
|
-
}, z = o(() => [
|
|
515
|
-
const
|
|
516
|
-
return [
|
|
517
|
-
}),
|
|
518
|
-
return (
|
|
519
|
-
class:
|
|
675
|
+
}, z = o(() => [Ze].join(" ")), y = o(() => {
|
|
676
|
+
const h = b[e.size] || b.m, x = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", C = e.helpText ? "dk:cursor-help" : "";
|
|
677
|
+
return [x, h, C].join(" ");
|
|
678
|
+
}), s = o(() => [m[e.size] || m.m].join(" ")), g = o(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", i[e.size] || i.m].join(" "));
|
|
679
|
+
return (h, x) => (t(), a("label", {
|
|
680
|
+
class: n(z.value)
|
|
520
681
|
}, [
|
|
521
682
|
d.title ? (t(), a("div", {
|
|
522
683
|
key: 0,
|
|
523
684
|
class: "dk:relative",
|
|
524
|
-
onMouseenter:
|
|
525
|
-
onMouseleave:
|
|
685
|
+
onMouseenter: x[0] || (x[0] = (C) => r.value = !!d.helpText),
|
|
686
|
+
onMouseleave: x[1] || (x[1] = (C) => r.value = !1)
|
|
526
687
|
}, [
|
|
527
|
-
|
|
528
|
-
class:
|
|
688
|
+
c("div", {
|
|
689
|
+
class: n(y.value)
|
|
529
690
|
}, [
|
|
530
691
|
d.icon ? (t(), a("i", {
|
|
531
692
|
key: 0,
|
|
532
|
-
class:
|
|
693
|
+
class: n([d.icon, "dk:mr-2"])
|
|
533
694
|
}, null, 2)) : S("", !0),
|
|
534
|
-
|
|
535
|
-
d.required ? (t(), a("span",
|
|
695
|
+
I(" " + j(d.title) + " ", 1),
|
|
696
|
+
d.required ? (t(), a("span", Xe, "*")) : S("", !0)
|
|
536
697
|
], 2),
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
698
|
+
pe(c("div", Ye, [
|
|
699
|
+
I(j(d.helpText) + " ", 1),
|
|
700
|
+
x[2] || (x[2] = c("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
540
701
|
], 512), [
|
|
541
|
-
[
|
|
702
|
+
[ge, r.value && d.helpText]
|
|
542
703
|
])
|
|
543
704
|
], 32)) : S("", !0),
|
|
544
|
-
|
|
545
|
-
class: s
|
|
705
|
+
c("div", {
|
|
706
|
+
class: n(s.value)
|
|
546
707
|
}, [
|
|
547
|
-
|
|
708
|
+
T(h.$slots, "default", {}, void 0, !0)
|
|
548
709
|
], 2),
|
|
549
710
|
d.error ? (t(), a("div", {
|
|
550
711
|
key: 1,
|
|
551
|
-
class:
|
|
712
|
+
class: n(g.value)
|
|
552
713
|
}, [
|
|
553
|
-
|
|
554
|
-
|
|
714
|
+
x[3] || (x[3] = c("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
|
|
715
|
+
I(" " + j(d.error), 1)
|
|
555
716
|
], 2)) : S("", !0)
|
|
556
717
|
], 2));
|
|
557
718
|
}
|
|
558
|
-
}),
|
|
719
|
+
}), ne = (d, r) => {
|
|
559
720
|
const e = d.__vccOpts || d;
|
|
560
|
-
for (const [
|
|
561
|
-
e[
|
|
721
|
+
for (const [b, m] of r)
|
|
722
|
+
e[b] = m;
|
|
562
723
|
return e;
|
|
563
|
-
},
|
|
724
|
+
}, jt = /* @__PURE__ */ ne(Re, [["__scopeId", "data-v-aa6b6cdc"]]), ed = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, dd = ["checked", "disabled"], Vt = /* @__PURE__ */ P({
|
|
564
725
|
inheritAttrs: !1,
|
|
565
726
|
__name: "DuiCheckbox",
|
|
566
727
|
props: {
|
|
@@ -599,7 +760,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
599
760
|
},
|
|
600
761
|
emits: ["update:modelValue"],
|
|
601
762
|
setup(d, { emit: r }) {
|
|
602
|
-
const e = d,
|
|
763
|
+
const e = d, b = r, m = we(), i = {
|
|
603
764
|
sm: {
|
|
604
765
|
track: "dk:w-9 dk:h-5",
|
|
605
766
|
thumb: "dk:w-3.5 dk:h-3.5",
|
|
@@ -629,74 +790,74 @@ const Ee = { key: 1 }, Oe = `
|
|
|
629
790
|
success: "dk:peer-checked:bg-emerald-600 dk:peer-checked:dark:bg-emerald-500",
|
|
630
791
|
warning: "dk:peer-checked:bg-amber-500 dk:peer-checked:dark:bg-amber-400",
|
|
631
792
|
danger: "dk:peer-checked:bg-rose-600 dk:peer-checked:dark:bg-rose-500"
|
|
632
|
-
},
|
|
633
|
-
const
|
|
634
|
-
return ["dk:inline-flex dk:items-center dk:gap-3 dk:select-none",
|
|
635
|
-
}),
|
|
793
|
+
}, s = o(() => !!(e.label || m.default)), g = o(() => {
|
|
794
|
+
const v = e.block ? "dk:w-full dk:justify-between" : "", p = e.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
|
|
795
|
+
return ["dk:inline-flex dk:items-center dk:gap-3 dk:select-none", v, p].join(" ");
|
|
796
|
+
}), h = o(() => [
|
|
636
797
|
"dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",
|
|
637
798
|
e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
|
|
638
|
-
].join(" ")),
|
|
639
|
-
const
|
|
799
|
+
].join(" ")), x = o(() => {
|
|
800
|
+
const v = i[e.size] || i.md, p = z[e.rounded] || z.all, k = y[e.color] || y.primary;
|
|
640
801
|
return [
|
|
641
802
|
"dk:inline-flex dk:items-center dk:transition-colors dk:duration-200",
|
|
642
803
|
"dk:bg-zinc-300 dk:dark:bg-zinc-700",
|
|
643
804
|
"dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500",
|
|
644
805
|
"dk:peer-disabled:opacity-70",
|
|
645
|
-
|
|
646
|
-
|
|
806
|
+
v.track,
|
|
807
|
+
p,
|
|
647
808
|
k
|
|
648
809
|
].join(" ");
|
|
649
810
|
}), C = o(() => {
|
|
650
|
-
const
|
|
811
|
+
const v = i[e.size] || i.md;
|
|
651
812
|
return [
|
|
652
813
|
"dk:absolute dk:left-1 dk:top-1/2 dk:-translate-y-1/2",
|
|
653
814
|
"dk:bg-white dk:dark:bg-zinc-100",
|
|
654
815
|
"dk:rounded-full dk:shadow-sm dk:transition-transform dk:duration-200",
|
|
655
816
|
"dk:pointer-events-none",
|
|
656
|
-
|
|
657
|
-
|
|
817
|
+
v.thumb,
|
|
818
|
+
v.translate
|
|
658
819
|
].join(" ");
|
|
659
820
|
});
|
|
660
|
-
function D(
|
|
661
|
-
const
|
|
662
|
-
|
|
821
|
+
function D(v) {
|
|
822
|
+
const p = v.target;
|
|
823
|
+
b("update:modelValue", p.checked);
|
|
663
824
|
}
|
|
664
|
-
return (
|
|
665
|
-
class:
|
|
825
|
+
return (v, p) => (t(), a("label", {
|
|
826
|
+
class: n(g.value)
|
|
666
827
|
}, [
|
|
667
|
-
|
|
828
|
+
s.value && d.labelPosition === "left" ? (t(), a("span", {
|
|
668
829
|
key: 0,
|
|
669
|
-
class:
|
|
830
|
+
class: n(h.value)
|
|
670
831
|
}, [
|
|
671
|
-
|
|
672
|
-
|
|
832
|
+
T(v.$slots, "default", {}, () => [
|
|
833
|
+
I(j(d.label), 1)
|
|
673
834
|
])
|
|
674
835
|
], 2)) : S("", !0),
|
|
675
|
-
|
|
676
|
-
|
|
836
|
+
c("span", ed, [
|
|
837
|
+
c("input", E({
|
|
677
838
|
type: "checkbox",
|
|
678
839
|
class: "dk:sr-only dk:peer",
|
|
679
840
|
checked: d.modelValue,
|
|
680
841
|
disabled: d.disabled
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
class:
|
|
842
|
+
}, v.$attrs, { onChange: D }), null, 16, dd),
|
|
843
|
+
c("span", {
|
|
844
|
+
class: n(x.value)
|
|
684
845
|
}, null, 2),
|
|
685
|
-
|
|
686
|
-
class:
|
|
846
|
+
c("span", {
|
|
847
|
+
class: n(C.value)
|
|
687
848
|
}, null, 2)
|
|
688
849
|
]),
|
|
689
|
-
|
|
850
|
+
s.value && d.labelPosition === "right" ? (t(), a("span", {
|
|
690
851
|
key: 1,
|
|
691
|
-
class:
|
|
852
|
+
class: n(h.value)
|
|
692
853
|
}, [
|
|
693
|
-
|
|
694
|
-
|
|
854
|
+
T(v.$slots, "default", {}, () => [
|
|
855
|
+
I(j(d.label), 1)
|
|
695
856
|
])
|
|
696
857
|
], 2)) : S("", !0)
|
|
697
858
|
], 2));
|
|
698
859
|
}
|
|
699
|
-
}),
|
|
860
|
+
}), td = ["aria-labelledby"], rd = ["id"], ad = { class: "dk:relative dk:inline-flex dk:flex-shrink-0" }, od = ["name", "value", "checked", "disabled", "onChange"], Bt = /* @__PURE__ */ P({
|
|
700
861
|
inheritAttrs: !1,
|
|
701
862
|
__name: "DuiRadio",
|
|
702
863
|
props: {
|
|
@@ -712,9 +873,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
712
873
|
},
|
|
713
874
|
emits: ["update:modelValue", "change"],
|
|
714
875
|
setup(d, { emit: r }) {
|
|
715
|
-
const e = d,
|
|
716
|
-
function
|
|
717
|
-
|
|
876
|
+
const e = d, b = r, m = Math.random().toString(36).slice(2, 8);
|
|
877
|
+
function i(w) {
|
|
878
|
+
b("update:modelValue", w), b("change", w);
|
|
718
879
|
}
|
|
719
880
|
const z = {
|
|
720
881
|
sm: { radio: "dk:w-3.5 dk:h-3.5", dot: "dk:w-1.5 dk:h-1.5", label: "dk:text-xs", description: "dk:text-xs" },
|
|
@@ -727,102 +888,102 @@ const Ee = { key: 1 }, Oe = `
|
|
|
727
888
|
success: "dk:peer-checked:border-emerald-600 dk:dark:peer-checked:border-emerald-400",
|
|
728
889
|
warning: "dk:peer-checked:border-amber-500 dk:dark:peer-checked:border-amber-400",
|
|
729
890
|
danger: "dk:peer-checked:border-rose-600 dk:dark:peer-checked:border-rose-400"
|
|
730
|
-
},
|
|
891
|
+
}, s = {
|
|
731
892
|
neutral: "dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-400",
|
|
732
893
|
primary: "dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-400",
|
|
733
894
|
secondary: "dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-400",
|
|
734
895
|
success: "dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-400",
|
|
735
896
|
warning: "dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",
|
|
736
897
|
danger: "dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-400"
|
|
737
|
-
},
|
|
898
|
+
}, g = {
|
|
738
899
|
neutral: "dk:peer-focus-visible:ring-zinc-400",
|
|
739
900
|
primary: "dk:peer-focus-visible:ring-slate-400",
|
|
740
901
|
secondary: "dk:peer-focus-visible:ring-pink-400",
|
|
741
902
|
success: "dk:peer-focus-visible:ring-emerald-400",
|
|
742
903
|
warning: "dk:peer-focus-visible:ring-amber-400",
|
|
743
904
|
danger: "dk:peer-focus-visible:ring-rose-400"
|
|
744
|
-
},
|
|
745
|
-
function C(w,
|
|
746
|
-
const $ =
|
|
905
|
+
}, h = o(() => [e.orientation === "horizontal" ? "dk:flex dk:flex-row dk:flex-wrap dk:gap-x-5 dk:gap-y-3" : "dk:flex dk:flex-col dk:gap-3"].join(" ")), x = o(() => "dk:block dk:text-xs dk:font-semibold dk:uppercase dk:tracking-wide dk:text-zinc-500 dk:dark:text-zinc-400 dk:mb-1");
|
|
906
|
+
function C(w, l) {
|
|
907
|
+
const $ = l || e.disabled ? "dk:opacity-50 dk:cursor-not-allowed" : "dk:cursor-pointer", M = e.block ? "dk:w-full dk:justify-between" : "";
|
|
747
908
|
return ["dk:inline-flex dk:items-start dk:gap-3 dk:select-none", $, M].join(" ");
|
|
748
909
|
}
|
|
749
910
|
function D(w) {
|
|
750
|
-
const
|
|
911
|
+
const l = z[e.size], u = y[e.color], $ = g[e.color];
|
|
751
912
|
return [
|
|
752
913
|
"dk:rounded-full dk:border-2 dk:transition-colors dk:duration-150",
|
|
753
914
|
"dk:border-zinc-300 dk:dark:border-zinc-600",
|
|
754
915
|
"dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2",
|
|
755
916
|
"dk:bg-white dk:dark:bg-zinc-900",
|
|
756
|
-
|
|
757
|
-
|
|
917
|
+
l.radio,
|
|
918
|
+
u,
|
|
758
919
|
$
|
|
759
920
|
].join(" ");
|
|
760
921
|
}
|
|
761
|
-
const
|
|
762
|
-
const w = z[e.size],
|
|
922
|
+
const v = o(() => {
|
|
923
|
+
const w = z[e.size], l = s[e.color];
|
|
763
924
|
return [
|
|
764
925
|
"dk:absolute dk:inset-0 dk:m-auto dk:rounded-full dk:scale-0 dk:peer-checked:scale-100 dk:transition-transform dk:duration-150 dk:pointer-events-none",
|
|
765
926
|
w.dot,
|
|
766
|
-
|
|
927
|
+
l
|
|
767
928
|
].join(" ");
|
|
768
|
-
}),
|
|
769
|
-
return (w,
|
|
770
|
-
class:
|
|
929
|
+
}), p = o(() => "dk:flex dk:flex-col"), k = o(() => [z[e.size].label, "dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")), f = o(() => [z[e.size].description, "dk:leading-snug dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"].join(" "));
|
|
930
|
+
return (w, l) => (t(), a("div", {
|
|
931
|
+
class: n(h.value),
|
|
771
932
|
role: "radiogroup",
|
|
772
|
-
"aria-labelledby": d.groupLabel ? `rg-label-${R(
|
|
933
|
+
"aria-labelledby": d.groupLabel ? `rg-label-${R(m)}` : void 0
|
|
773
934
|
}, [
|
|
774
935
|
d.groupLabel ? (t(), a("span", {
|
|
775
936
|
key: 0,
|
|
776
|
-
id: `rg-label-${R(
|
|
777
|
-
class:
|
|
778
|
-
}, j(d.groupLabel), 11,
|
|
779
|
-
(t(!0), a(
|
|
780
|
-
key:
|
|
781
|
-
class:
|
|
937
|
+
id: `rg-label-${R(m)}`,
|
|
938
|
+
class: n(x.value)
|
|
939
|
+
}, j(d.groupLabel), 11, rd)) : S("", !0),
|
|
940
|
+
(t(!0), a(A, null, F(d.options, (u) => (t(), a("label", {
|
|
941
|
+
key: u.value,
|
|
942
|
+
class: n(C(u.value, u.disabled))
|
|
782
943
|
}, [
|
|
783
|
-
|
|
784
|
-
|
|
944
|
+
c("span", ad, [
|
|
945
|
+
c("input", E({
|
|
785
946
|
type: "radio",
|
|
786
947
|
class: "dk:sr-only dk:peer",
|
|
787
948
|
name: d.name,
|
|
788
|
-
value:
|
|
789
|
-
checked: d.modelValue ===
|
|
790
|
-
disabled:
|
|
949
|
+
value: u.value,
|
|
950
|
+
checked: d.modelValue === u.value,
|
|
951
|
+
disabled: u.disabled || d.disabled
|
|
791
952
|
}, { ref_for: !0 }, w.$attrs, {
|
|
792
|
-
onChange: ($) => u
|
|
793
|
-
}), null, 16,
|
|
794
|
-
|
|
795
|
-
class:
|
|
953
|
+
onChange: ($) => i(u.value)
|
|
954
|
+
}), null, 16, od),
|
|
955
|
+
c("span", {
|
|
956
|
+
class: n(D(u.value))
|
|
796
957
|
}, null, 2),
|
|
797
|
-
|
|
798
|
-
class:
|
|
958
|
+
c("span", {
|
|
959
|
+
class: n(v.value)
|
|
799
960
|
}, null, 2)
|
|
800
961
|
]),
|
|
801
|
-
|
|
802
|
-
class:
|
|
962
|
+
c("span", {
|
|
963
|
+
class: n(p.value)
|
|
803
964
|
}, [
|
|
804
|
-
|
|
805
|
-
class:
|
|
806
|
-
}, j(
|
|
807
|
-
|
|
965
|
+
c("span", {
|
|
966
|
+
class: n(k.value)
|
|
967
|
+
}, j(u.label), 3),
|
|
968
|
+
u.description ? (t(), a("span", {
|
|
808
969
|
key: 0,
|
|
809
|
-
class:
|
|
810
|
-
}, j(
|
|
970
|
+
class: n(f.value)
|
|
971
|
+
}, j(u.description), 3)) : S("", !0)
|
|
811
972
|
], 2)
|
|
812
973
|
], 2))), 128))
|
|
813
|
-
], 10,
|
|
974
|
+
], 10, td));
|
|
814
975
|
}
|
|
815
|
-
}),
|
|
976
|
+
}), kd = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, nd = ["aria-checked", "checked", "disabled"], sd = {
|
|
816
977
|
key: 0,
|
|
817
978
|
viewBox: "0 0 12 12",
|
|
818
979
|
fill: "currentColor",
|
|
819
980
|
class: "dk:w-2.5 dk:h-2.5"
|
|
820
|
-
},
|
|
981
|
+
}, ld = {
|
|
821
982
|
key: 1,
|
|
822
983
|
viewBox: "0 0 12 12",
|
|
823
984
|
fill: "none",
|
|
824
985
|
class: "dk:w-2.5 dk:h-2.5"
|
|
825
|
-
},
|
|
986
|
+
}, Mt = /* @__PURE__ */ P({
|
|
826
987
|
inheritAttrs: !1,
|
|
827
988
|
__name: "DuiSwitch",
|
|
828
989
|
props: {
|
|
@@ -865,7 +1026,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
865
1026
|
},
|
|
866
1027
|
emits: ["update:modelValue", "change"],
|
|
867
1028
|
setup(d, { emit: r }) {
|
|
868
|
-
const e = d,
|
|
1029
|
+
const e = d, b = r, m = we(), i = {
|
|
869
1030
|
sm: {
|
|
870
1031
|
track: "dk:w-8 dk:h-4",
|
|
871
1032
|
thumb: "dk:w-3 dk:h-3",
|
|
@@ -891,25 +1052,25 @@ const Ee = { key: 1 }, Oe = `
|
|
|
891
1052
|
success: "dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-500",
|
|
892
1053
|
warning: "dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",
|
|
893
1054
|
danger: "dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-500"
|
|
894
|
-
}, y = o(() => !!(e.label ||
|
|
895
|
-
const k = e.block ? "dk:w-full dk:justify-between" : "",
|
|
896
|
-
return [
|
|
897
|
-
}),
|
|
1055
|
+
}, y = o(() => !!(e.label || m.default)), s = o(() => {
|
|
1056
|
+
const k = e.block ? "dk:w-full dk:justify-between" : "", f = e.block ? "dk:flex" : "dk:inline-flex", w = e.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
|
|
1057
|
+
return [f, "dk:items-center dk:gap-3 dk:select-none", k, w].join(" ");
|
|
1058
|
+
}), g = o(() => [
|
|
898
1059
|
"dk:flex dk:flex-col",
|
|
899
1060
|
"dk:text-sm dk:leading-snug dk:text-zinc-700 dk:dark:text-zinc-200",
|
|
900
1061
|
e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
|
|
901
|
-
].join(" ")),
|
|
902
|
-
const k =
|
|
1062
|
+
].join(" ")), h = o(() => "dk:text-xs dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"), x = o(() => {
|
|
1063
|
+
const k = i[e.size], f = z[e.color];
|
|
903
1064
|
return [
|
|
904
1065
|
"dk:relative dk:inline-flex dk:items-center dk:transition-colors dk:duration-200 dk:rounded-full",
|
|
905
1066
|
"dk:bg-zinc-300 dk:dark:bg-zinc-600",
|
|
906
1067
|
"dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500",
|
|
907
1068
|
"dk:peer-disabled:opacity-70",
|
|
908
1069
|
k.track,
|
|
909
|
-
|
|
1070
|
+
f
|
|
910
1071
|
].join(" ");
|
|
911
1072
|
}), C = o(() => {
|
|
912
|
-
const k =
|
|
1073
|
+
const k = i[e.size];
|
|
913
1074
|
return [
|
|
914
1075
|
"dk:absolute",
|
|
915
1076
|
k.offset,
|
|
@@ -926,48 +1087,48 @@ const Ee = { key: 1 }, Oe = `
|
|
|
926
1087
|
success: "dk:text-emerald-600 dk:dark:text-emerald-400",
|
|
927
1088
|
warning: "dk:text-amber-600 dk:dark:text-amber-400",
|
|
928
1089
|
danger: "dk:text-rose-600 dk:dark:text-rose-400"
|
|
929
|
-
},
|
|
930
|
-
function
|
|
931
|
-
const
|
|
932
|
-
|
|
1090
|
+
}, v = o(() => e.modelValue ? D[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500");
|
|
1091
|
+
function p(k) {
|
|
1092
|
+
const f = k.target;
|
|
1093
|
+
b("update:modelValue", f.checked), b("change", f.checked);
|
|
933
1094
|
}
|
|
934
|
-
return (k,
|
|
935
|
-
class: s
|
|
1095
|
+
return (k, f) => (t(), a("label", {
|
|
1096
|
+
class: n(s.value)
|
|
936
1097
|
}, [
|
|
937
1098
|
y.value && d.labelPosition === "left" ? (t(), a("span", {
|
|
938
1099
|
key: 0,
|
|
939
|
-
class:
|
|
1100
|
+
class: n(g.value)
|
|
940
1101
|
}, [
|
|
941
|
-
|
|
942
|
-
|
|
1102
|
+
T(k.$slots, "default", {}, () => [
|
|
1103
|
+
I(j(d.label), 1)
|
|
943
1104
|
]),
|
|
944
1105
|
d.description ? (t(), a("span", {
|
|
945
1106
|
key: 0,
|
|
946
|
-
class:
|
|
1107
|
+
class: n(h.value)
|
|
947
1108
|
}, j(d.description), 3)) : S("", !0)
|
|
948
1109
|
], 2)) : S("", !0),
|
|
949
|
-
|
|
950
|
-
|
|
1110
|
+
c("span", kd, [
|
|
1111
|
+
c("input", E({
|
|
951
1112
|
type: "checkbox",
|
|
952
1113
|
class: "dk:sr-only dk:peer",
|
|
953
1114
|
role: "switch",
|
|
954
1115
|
"aria-checked": d.modelValue,
|
|
955
1116
|
checked: d.modelValue,
|
|
956
1117
|
disabled: d.disabled
|
|
957
|
-
}, k.$attrs, { onChange:
|
|
958
|
-
|
|
959
|
-
class:
|
|
1118
|
+
}, k.$attrs, { onChange: p }), null, 16, nd),
|
|
1119
|
+
c("span", {
|
|
1120
|
+
class: n(x.value)
|
|
960
1121
|
}, null, 2),
|
|
961
|
-
|
|
962
|
-
class:
|
|
1122
|
+
c("span", {
|
|
1123
|
+
class: n(C.value)
|
|
963
1124
|
}, [
|
|
964
1125
|
d.showIcons ? (t(), a("span", {
|
|
965
1126
|
key: 0,
|
|
966
1127
|
"aria-hidden": "true",
|
|
967
|
-
class:
|
|
1128
|
+
class: n(v.value)
|
|
968
1129
|
}, [
|
|
969
|
-
d.modelValue ? (t(), a("svg",
|
|
970
|
-
|
|
1130
|
+
d.modelValue ? (t(), a("svg", sd, [...f[0] || (f[0] = [
|
|
1131
|
+
c("path", {
|
|
971
1132
|
d: "M3.5 6.5l2 2 3-3",
|
|
972
1133
|
stroke: "currentColor",
|
|
973
1134
|
"stroke-width": "1.5",
|
|
@@ -975,8 +1136,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
975
1136
|
"stroke-linejoin": "round",
|
|
976
1137
|
fill: "none"
|
|
977
1138
|
}, null, -1)
|
|
978
|
-
])])) : (t(), a("svg",
|
|
979
|
-
|
|
1139
|
+
])])) : (t(), a("svg", ld, [...f[1] || (f[1] = [
|
|
1140
|
+
c("line", {
|
|
980
1141
|
x1: "3",
|
|
981
1142
|
y1: "3",
|
|
982
1143
|
x2: "9",
|
|
@@ -985,7 +1146,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
985
1146
|
"stroke-width": "1.5",
|
|
986
1147
|
"stroke-linecap": "round"
|
|
987
1148
|
}, null, -1),
|
|
988
|
-
|
|
1149
|
+
c("line", {
|
|
989
1150
|
x1: "9",
|
|
990
1151
|
y1: "3",
|
|
991
1152
|
x2: "3",
|
|
@@ -1000,25 +1161,25 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1000
1161
|
]),
|
|
1001
1162
|
y.value && d.labelPosition === "right" ? (t(), a("span", {
|
|
1002
1163
|
key: 1,
|
|
1003
|
-
class:
|
|
1164
|
+
class: n(g.value)
|
|
1004
1165
|
}, [
|
|
1005
|
-
|
|
1006
|
-
|
|
1166
|
+
T(k.$slots, "default", {}, () => [
|
|
1167
|
+
I(j(d.label), 1)
|
|
1007
1168
|
]),
|
|
1008
1169
|
d.description ? (t(), a("span", {
|
|
1009
1170
|
key: 0,
|
|
1010
|
-
class:
|
|
1171
|
+
class: n(h.value)
|
|
1011
1172
|
}, j(d.description), 3)) : S("", !0)
|
|
1012
1173
|
], 2)) : S("", !0)
|
|
1013
1174
|
], 2));
|
|
1014
1175
|
}
|
|
1015
|
-
}),
|
|
1176
|
+
}), id = `
|
|
1016
1177
|
dk:px-4
|
|
1017
1178
|
dk:py-3
|
|
1018
1179
|
dk:text-sm
|
|
1019
1180
|
dk:leading-relaxed
|
|
1020
1181
|
dk:max-w-full
|
|
1021
|
-
`,
|
|
1182
|
+
`, Dt = /* @__PURE__ */ P({
|
|
1022
1183
|
__name: "DuiAlert",
|
|
1023
1184
|
props: {
|
|
1024
1185
|
variant: {
|
|
@@ -1042,7 +1203,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1042
1203
|
left: "dk:rounded-l",
|
|
1043
1204
|
right: "dk:rounded-r",
|
|
1044
1205
|
none: "dk:rounded-none"
|
|
1045
|
-
},
|
|
1206
|
+
}, b = {
|
|
1046
1207
|
solid: {
|
|
1047
1208
|
base: "",
|
|
1048
1209
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -1070,22 +1231,22 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1070
1231
|
warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
|
|
1071
1232
|
danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
|
|
1072
1233
|
}
|
|
1073
|
-
},
|
|
1074
|
-
var
|
|
1075
|
-
const
|
|
1076
|
-
return [
|
|
1234
|
+
}, m = o(() => {
|
|
1235
|
+
var s;
|
|
1236
|
+
const i = ((s = b[r.variant]) == null ? void 0 : s[r.color]) || "", z = b[r.variant].base || "", y = e[r.rounded] || "";
|
|
1237
|
+
return [id, z, i, y].join(" ");
|
|
1077
1238
|
});
|
|
1078
|
-
return (
|
|
1079
|
-
class:
|
|
1239
|
+
return (i, z) => (t(), a("div", {
|
|
1240
|
+
class: n(m.value),
|
|
1080
1241
|
role: "alert"
|
|
1081
1242
|
}, [
|
|
1082
|
-
|
|
1243
|
+
T(i.$slots, "default")
|
|
1083
1244
|
], 2));
|
|
1084
1245
|
}
|
|
1085
|
-
}),
|
|
1246
|
+
}), cd = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, ud = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, bd = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200 dk:relative" }, pd = { key: 0 }, gd = ["colspan"], md = {
|
|
1086
1247
|
key: 0,
|
|
1087
1248
|
class: "dk:bg-gray-50 dk:dark:bg-gray-700 dk:border-t dk:border-gray-200 dk:dark:border-gray-600"
|
|
1088
|
-
},
|
|
1249
|
+
}, fd = ["colspan"], hd = { class: "pagination-container" }, xd = { class: "pagination-info" }, vd = { class: "pagination-buttons" }, yd = { class: "page-numbers" }, wd = ["onClick"], zd = /* @__PURE__ */ P({
|
|
1089
1250
|
__name: "DuiTable",
|
|
1090
1251
|
props: {
|
|
1091
1252
|
columns: {
|
|
@@ -1107,101 +1268,101 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1107
1268
|
},
|
|
1108
1269
|
emits: ["paginate"],
|
|
1109
1270
|
setup(d, { emit: r }) {
|
|
1110
|
-
const e = d,
|
|
1271
|
+
const e = d, b = r, m = o(() => e.pagination ? Math.ceil(e.pagination.total / e.pagination.perPage) : 0), i = o(() => {
|
|
1111
1272
|
if (!e.pagination) return [];
|
|
1112
|
-
const y = [],
|
|
1113
|
-
let
|
|
1114
|
-
C -
|
|
1115
|
-
for (let D =
|
|
1273
|
+
const y = [], s = 5, { page: g } = e.pagination, h = m.value;
|
|
1274
|
+
let x = Math.max(1, g - Math.floor(s / 2)), C = Math.min(h, x + s - 1);
|
|
1275
|
+
C - x < s - 1 && (x = Math.max(1, C - s + 1));
|
|
1276
|
+
for (let D = x; D <= C; D++)
|
|
1116
1277
|
y.push(D);
|
|
1117
1278
|
return y;
|
|
1118
1279
|
}), z = (y) => {
|
|
1119
|
-
e.pagination && y >= 1 && y <=
|
|
1280
|
+
e.pagination && y >= 1 && y <= m.value && b("paginate", y);
|
|
1120
1281
|
};
|
|
1121
|
-
return (y,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
(t(!0), a(
|
|
1126
|
-
key:
|
|
1127
|
-
class:
|
|
1128
|
-
}, j(
|
|
1282
|
+
return (y, s) => (t(), a("div", cd, [
|
|
1283
|
+
c("table", ud, [
|
|
1284
|
+
c("thead", bd, [
|
|
1285
|
+
c("tr", null, [
|
|
1286
|
+
(t(!0), a(A, null, F(e.columns, (g) => (t(), a("th", {
|
|
1287
|
+
key: g.name,
|
|
1288
|
+
class: n(["dk:px-6 dk:py-3", g.classes])
|
|
1289
|
+
}, j(g.label), 3))), 128))
|
|
1129
1290
|
]),
|
|
1130
|
-
e.loading ? (t(), a("tr",
|
|
1131
|
-
|
|
1291
|
+
e.loading ? (t(), a("tr", pd, [
|
|
1292
|
+
c("td", {
|
|
1132
1293
|
colspan: e.columns.length,
|
|
1133
1294
|
class: "dk:p-0"
|
|
1134
|
-
}, [...
|
|
1135
|
-
|
|
1136
|
-
])], 8,
|
|
1295
|
+
}, [...s[2] || (s[2] = [
|
|
1296
|
+
c("div", { class: "loading-bar" }, null, -1)
|
|
1297
|
+
])], 8, gd)
|
|
1137
1298
|
])) : S("", !0)
|
|
1138
1299
|
]),
|
|
1139
|
-
|
|
1140
|
-
class:
|
|
1300
|
+
c("tbody", {
|
|
1301
|
+
class: n({ "is-loading": e.loading })
|
|
1141
1302
|
}, [
|
|
1142
|
-
(t(!0), a(
|
|
1143
|
-
key:
|
|
1303
|
+
(t(!0), a(A, null, F(e.rows, (g, h) => (t(), a("tr", {
|
|
1304
|
+
key: h,
|
|
1144
1305
|
class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
|
|
1145
1306
|
}, [
|
|
1146
|
-
(t(!0), a(
|
|
1147
|
-
key:
|
|
1307
|
+
(t(!0), a(A, null, F(e.columns, (x) => (t(), a("td", {
|
|
1308
|
+
key: x.name,
|
|
1148
1309
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
1149
1310
|
}, [
|
|
1150
|
-
|
|
1151
|
-
|
|
1311
|
+
T(y.$slots, x.name, E({ ref_for: !0 }, g), () => [
|
|
1312
|
+
I(j(g[x.name]), 1)
|
|
1152
1313
|
], !0)
|
|
1153
1314
|
]))), 128))
|
|
1154
1315
|
]))), 128))
|
|
1155
1316
|
], 2),
|
|
1156
|
-
e.pagination ? (t(), a("tfoot",
|
|
1157
|
-
|
|
1158
|
-
|
|
1317
|
+
e.pagination ? (t(), a("tfoot", md, [
|
|
1318
|
+
c("tr", null, [
|
|
1319
|
+
c("td", {
|
|
1159
1320
|
colspan: e.columns.length,
|
|
1160
1321
|
class: "dk:px-6 dk:py-4"
|
|
1161
1322
|
}, [
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
de(
|
|
1323
|
+
c("div", hd, [
|
|
1324
|
+
c("div", xd, " Página " + j(e.pagination.page) + " de " + j(m.value) + " | " + j(e.pagination.total) + " registros ", 1),
|
|
1325
|
+
c("div", vd, [
|
|
1326
|
+
de(ie, {
|
|
1166
1327
|
variant: "outline",
|
|
1167
1328
|
color: "neutral",
|
|
1168
1329
|
size: "sm",
|
|
1169
|
-
onClick:
|
|
1330
|
+
onClick: s[0] || (s[0] = (g) => z(e.pagination.page - 1)),
|
|
1170
1331
|
disabled: e.pagination.page === 1
|
|
1171
1332
|
}, {
|
|
1172
|
-
default:
|
|
1173
|
-
|
|
1333
|
+
default: W(() => [...s[3] || (s[3] = [
|
|
1334
|
+
I(" ← Anterior ", -1)
|
|
1174
1335
|
])]),
|
|
1175
1336
|
_: 1
|
|
1176
1337
|
}, 8, ["disabled"]),
|
|
1177
|
-
|
|
1178
|
-
(t(!0), a(
|
|
1179
|
-
key:
|
|
1180
|
-
onClick: (
|
|
1181
|
-
class:
|
|
1182
|
-
}, j(
|
|
1338
|
+
c("div", yd, [
|
|
1339
|
+
(t(!0), a(A, null, F(i.value, (g) => (t(), a("button", {
|
|
1340
|
+
key: g,
|
|
1341
|
+
onClick: (h) => z(g),
|
|
1342
|
+
class: n(["page-number", { active: g === e.pagination.page }])
|
|
1343
|
+
}, j(g), 11, wd))), 128))
|
|
1183
1344
|
]),
|
|
1184
|
-
de(
|
|
1345
|
+
de(ie, {
|
|
1185
1346
|
variant: "outline",
|
|
1186
1347
|
color: "neutral",
|
|
1187
1348
|
size: "sm",
|
|
1188
|
-
onClick:
|
|
1189
|
-
disabled: e.pagination.page ===
|
|
1349
|
+
onClick: s[1] || (s[1] = (g) => z(e.pagination.page + 1)),
|
|
1350
|
+
disabled: e.pagination.page === m.value
|
|
1190
1351
|
}, {
|
|
1191
|
-
default:
|
|
1192
|
-
|
|
1352
|
+
default: W(() => [...s[4] || (s[4] = [
|
|
1353
|
+
I(" Siguiente → ", -1)
|
|
1193
1354
|
])]),
|
|
1194
1355
|
_: 1
|
|
1195
1356
|
}, 8, ["disabled"])
|
|
1196
1357
|
])
|
|
1197
1358
|
])
|
|
1198
|
-
], 8,
|
|
1359
|
+
], 8, fd)
|
|
1199
1360
|
])
|
|
1200
1361
|
])) : S("", !0)
|
|
1201
1362
|
])
|
|
1202
1363
|
]));
|
|
1203
1364
|
}
|
|
1204
|
-
}),
|
|
1365
|
+
}), _t = /* @__PURE__ */ ne(zd, [["__scopeId", "data-v-60002528"]]), Cd = { key: 1 }, $d = `
|
|
1205
1366
|
dk:transition
|
|
1206
1367
|
dk:text-center
|
|
1207
1368
|
dk:disabled:opacity-50
|
|
@@ -1212,7 +1373,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1212
1373
|
dk:text-ellipsis
|
|
1213
1374
|
dk:whitespace-nowrap
|
|
1214
1375
|
dk:active:scale-95
|
|
1215
|
-
dk:max-w-full`,
|
|
1376
|
+
dk:max-w-full`, Tt = /* @__PURE__ */ P({
|
|
1216
1377
|
__name: "DuiAction",
|
|
1217
1378
|
props: {
|
|
1218
1379
|
variant: { default: "solid" },
|
|
@@ -1225,11 +1386,11 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1225
1386
|
to: { default: void 0 }
|
|
1226
1387
|
},
|
|
1227
1388
|
setup(d) {
|
|
1228
|
-
const r = d, e = o(() => r.to ?
|
|
1389
|
+
const r = d, e = o(() => r.to ? oe(r.to) : "span"), b = o(() => ue(r.to, e.value)), m = {
|
|
1229
1390
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
1230
1391
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
1231
1392
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
1232
|
-
},
|
|
1393
|
+
}, i = {
|
|
1233
1394
|
all: "dk:rounded",
|
|
1234
1395
|
top: "dk:rounded-t",
|
|
1235
1396
|
bottom: "dk:rounded-b",
|
|
@@ -1410,23 +1571,23 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1410
1571
|
}
|
|
1411
1572
|
}, y = o(() => {
|
|
1412
1573
|
var C;
|
|
1413
|
-
const
|
|
1414
|
-
return [
|
|
1574
|
+
const s = (((C = z[r.variant]) == null ? void 0 : C[r.color]) || "") + " " + z[r.variant].base, g = m[r.size] || "", h = r.block ? "dk:block" : "dk:inline-block", x = i[r.rounded] || "";
|
|
1575
|
+
return [$d, s, g, h, x].join(" ");
|
|
1415
1576
|
});
|
|
1416
|
-
return (
|
|
1577
|
+
return (s, g) => (t(), O(Q(e.value), E(b.value, {
|
|
1417
1578
|
class: y.value,
|
|
1418
1579
|
title: r.title
|
|
1419
1580
|
}), {
|
|
1420
|
-
default:
|
|
1421
|
-
r.loading ? (t(), a("span",
|
|
1581
|
+
default: W(() => [
|
|
1582
|
+
r.loading ? (t(), a("span", Cd, "Cargando...")) : T(s.$slots, "default", { key: 0 })
|
|
1422
1583
|
]),
|
|
1423
1584
|
_: 3
|
|
1424
1585
|
}, 16, ["class", "title"]));
|
|
1425
1586
|
}
|
|
1426
|
-
}),
|
|
1587
|
+
}), Sd = {
|
|
1427
1588
|
key: 0,
|
|
1428
1589
|
class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
|
|
1429
|
-
},
|
|
1590
|
+
}, jd = ["src", "alt"], Pt = /* @__PURE__ */ P({
|
|
1430
1591
|
__name: "DuiCard",
|
|
1431
1592
|
props: {
|
|
1432
1593
|
size: { default: "m" },
|
|
@@ -1436,10 +1597,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1436
1597
|
to: { default: void 0 }
|
|
1437
1598
|
},
|
|
1438
1599
|
setup(d) {
|
|
1439
|
-
const r = d, e = () => r.to ?
|
|
1440
|
-
const
|
|
1441
|
-
return
|
|
1442
|
-
},
|
|
1600
|
+
const r = d, e = () => r.to ? oe(r.to) : "div", b = () => r.to ? oe(r.to) : "h3", m = () => {
|
|
1601
|
+
const p = e();
|
|
1602
|
+
return ue(r.to, p);
|
|
1603
|
+
}, i = {
|
|
1443
1604
|
s: {
|
|
1444
1605
|
padding: "dk:p-3",
|
|
1445
1606
|
spacing: "dk:space-y-2",
|
|
@@ -1480,19 +1641,19 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1480
1641
|
].join(" ")), y = o(() => [
|
|
1481
1642
|
"dk:w-full dk:h-48 dk:object-cover",
|
|
1482
1643
|
"dk:relative dk:z-10"
|
|
1483
|
-
].join(" ")),
|
|
1484
|
-
const
|
|
1644
|
+
].join(" ")), s = o(() => {
|
|
1645
|
+
const p = i[r.size];
|
|
1485
1646
|
return [
|
|
1486
|
-
|
|
1487
|
-
|
|
1647
|
+
p.padding,
|
|
1648
|
+
p.spacing,
|
|
1488
1649
|
// Glass effect for content wrapper
|
|
1489
1650
|
"dk:relative dk:z-10"
|
|
1490
1651
|
].join(" ");
|
|
1491
|
-
}),
|
|
1492
|
-
|
|
1493
|
-
].join(" ")),
|
|
1652
|
+
}), g = o(() => [
|
|
1653
|
+
i[r.size].spacing
|
|
1654
|
+
].join(" ")), h = o(() => {
|
|
1494
1655
|
const k = [
|
|
1495
|
-
|
|
1656
|
+
i[r.size].titleSize,
|
|
1496
1657
|
"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
|
|
1497
1658
|
"dk:line-clamp-2"
|
|
1498
1659
|
];
|
|
@@ -1500,75 +1661,75 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1500
1661
|
"dk:no-underline dk:hover:underline dk:transition-colors",
|
|
1501
1662
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
1502
1663
|
), k.join(" ");
|
|
1503
|
-
}),
|
|
1504
|
-
const
|
|
1664
|
+
}), x = o(() => {
|
|
1665
|
+
const p = [
|
|
1505
1666
|
"dk:block",
|
|
1506
1667
|
"dk:transition-transform dk:duration-300",
|
|
1507
1668
|
"dk:hover:scale-105",
|
|
1508
1669
|
"dk:relative dk:z-10"
|
|
1509
1670
|
];
|
|
1510
|
-
return r.to &&
|
|
1671
|
+
return r.to && p.push("dk:no-underline"), p.join(" ");
|
|
1511
1672
|
}), C = o(() => [
|
|
1512
|
-
|
|
1673
|
+
i[r.size].subtitleSize,
|
|
1513
1674
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
1514
1675
|
"dk:line-clamp-3"
|
|
1515
1676
|
].join(" ")), D = o(() => [
|
|
1516
|
-
|
|
1677
|
+
i[r.size].contentSize,
|
|
1517
1678
|
"dk:text-gray-700 dk:dark:text-gray-300"
|
|
1518
|
-
].join(" ")),
|
|
1679
|
+
].join(" ")), v = o(() => [
|
|
1519
1680
|
"dk:border-t dk:border-gray-300/40 dk:dark:border-white/10",
|
|
1520
1681
|
"dk:pt-3 dk:mt-3",
|
|
1521
1682
|
"dk:relative dk:z-10"
|
|
1522
1683
|
].join(" "));
|
|
1523
|
-
return (
|
|
1524
|
-
class:
|
|
1684
|
+
return (p, k) => (t(), a("div", {
|
|
1685
|
+
class: n(z.value)
|
|
1525
1686
|
}, [
|
|
1526
|
-
d.image ? (t(), a("div",
|
|
1527
|
-
(t(),
|
|
1528
|
-
default:
|
|
1529
|
-
|
|
1687
|
+
d.image ? (t(), a("div", Sd, [
|
|
1688
|
+
(t(), O(Q(e()), E(m(), { class: x.value }), {
|
|
1689
|
+
default: W(() => [
|
|
1690
|
+
c("img", {
|
|
1530
1691
|
src: d.image,
|
|
1531
1692
|
alt: d.title || "Card image",
|
|
1532
|
-
class:
|
|
1533
|
-
}, null, 10,
|
|
1693
|
+
class: n(y.value)
|
|
1694
|
+
}, null, 10, jd)
|
|
1534
1695
|
]),
|
|
1535
1696
|
_: 1
|
|
1536
1697
|
}, 16, ["class"]))
|
|
1537
1698
|
])) : S("", !0),
|
|
1538
|
-
|
|
1539
|
-
class: s
|
|
1699
|
+
c("div", {
|
|
1700
|
+
class: n(s.value)
|
|
1540
1701
|
}, [
|
|
1541
1702
|
d.title || d.subtitle ? (t(), a("div", {
|
|
1542
1703
|
key: 0,
|
|
1543
|
-
class:
|
|
1704
|
+
class: n(g.value)
|
|
1544
1705
|
}, [
|
|
1545
|
-
d.title ? (t(),
|
|
1546
|
-
default:
|
|
1547
|
-
|
|
1706
|
+
d.title ? (t(), O(Q(b()), E({ key: 0 }, m(), { class: h.value }), {
|
|
1707
|
+
default: W(() => [
|
|
1708
|
+
I(j(d.title), 1)
|
|
1548
1709
|
]),
|
|
1549
1710
|
_: 1
|
|
1550
1711
|
}, 16, ["class"])) : S("", !0),
|
|
1551
1712
|
d.subtitle ? (t(), a("p", {
|
|
1552
1713
|
key: 1,
|
|
1553
|
-
class:
|
|
1714
|
+
class: n(C.value)
|
|
1554
1715
|
}, j(d.subtitle), 3)) : S("", !0)
|
|
1555
1716
|
], 2)) : S("", !0),
|
|
1556
|
-
|
|
1717
|
+
p.$slots.default ? (t(), a("div", {
|
|
1557
1718
|
key: 1,
|
|
1558
|
-
class:
|
|
1719
|
+
class: n(D.value)
|
|
1559
1720
|
}, [
|
|
1560
|
-
|
|
1721
|
+
T(p.$slots, "default")
|
|
1561
1722
|
], 2)) : S("", !0),
|
|
1562
|
-
|
|
1723
|
+
p.$slots.footer ? (t(), a("div", {
|
|
1563
1724
|
key: 2,
|
|
1564
|
-
class:
|
|
1725
|
+
class: n(v.value)
|
|
1565
1726
|
}, [
|
|
1566
|
-
|
|
1727
|
+
T(p.$slots, "footer")
|
|
1567
1728
|
], 2)) : S("", !0)
|
|
1568
1729
|
], 2)
|
|
1569
1730
|
], 2));
|
|
1570
1731
|
}
|
|
1571
|
-
}),
|
|
1732
|
+
}), Vd = ["aria-labelledby", "aria-describedby"], Lt = /* @__PURE__ */ P({
|
|
1572
1733
|
__name: "DuiModal",
|
|
1573
1734
|
props: {
|
|
1574
1735
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1589,21 +1750,21 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1589
1750
|
},
|
|
1590
1751
|
emits: ["update:modelValue", "open", "close", "backdrop", "escape"],
|
|
1591
1752
|
setup(d, { emit: r }) {
|
|
1592
|
-
const e = d,
|
|
1753
|
+
const e = d, b = r, m = Math.random().toString(36).slice(2, 10), i = `dui-modal-title-${m}`, z = `dui-modal-description-${m}`, y = {
|
|
1593
1754
|
all: "dk:rounded-xl",
|
|
1594
1755
|
top: "dk:rounded-t-xl",
|
|
1595
1756
|
bottom: "dk:rounded-b-xl",
|
|
1596
1757
|
left: "dk:rounded-l-xl",
|
|
1597
1758
|
right: "dk:rounded-r-xl",
|
|
1598
1759
|
none: "dk:rounded-none"
|
|
1599
|
-
},
|
|
1760
|
+
}, s = {
|
|
1600
1761
|
xs: "dk:w-full dk:max-w-xs",
|
|
1601
1762
|
sm: "dk:w-full dk:max-w-md",
|
|
1602
1763
|
md: "dk:w-full dk:max-w-xl",
|
|
1603
1764
|
lg: "dk:w-full dk:max-w-3xl",
|
|
1604
1765
|
xl: "dk:w-full dk:max-w-5xl",
|
|
1605
1766
|
full: "dk:h-[calc(100vh-2rem)] dk:w-[calc(100vw-2rem)] dk:max-w-none"
|
|
1606
|
-
},
|
|
1767
|
+
}, g = {
|
|
1607
1768
|
solid: {
|
|
1608
1769
|
base: "dk:border dk:shadow-xl",
|
|
1609
1770
|
neutral: "dk:bg-white dk:text-zinc-900 dk:border-zinc-200 dk:dark:bg-zinc-900 dk:dark:text-zinc-100 dk:dark:border-zinc-700",
|
|
@@ -1631,95 +1792,95 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1631
1792
|
warning: "dk:bg-amber-100/85 dk:text-amber-900 dk:border-amber-300/70 dk:dark:bg-amber-900/70 dk:dark:text-amber-100 dk:dark:border-amber-600/60",
|
|
1632
1793
|
danger: "dk:bg-rose-100/85 dk:text-rose-900 dk:border-rose-300/70 dk:dark:bg-rose-900/70 dk:dark:text-rose-100 dk:dark:border-rose-600/60"
|
|
1633
1794
|
}
|
|
1634
|
-
},
|
|
1795
|
+
}, h = o(() => [
|
|
1635
1796
|
"dk:fixed dk:inset-0 dk:bg-black/55",
|
|
1636
1797
|
e.blurBackdrop ? "dk:backdrop-blur-[2px]" : ""
|
|
1637
|
-
].join(" ")),
|
|
1798
|
+
].join(" ")), x = o(() => [
|
|
1638
1799
|
"dk:flex dk:min-h-full dk:w-full dk:p-4",
|
|
1639
1800
|
e.centered ? "dk:items-center" : "dk:items-start dk:pt-8",
|
|
1640
1801
|
"dk:justify-center"
|
|
1641
1802
|
].join(" ")), C = o(() => {
|
|
1642
|
-
const $ =
|
|
1803
|
+
const $ = g[e.variant].base, M = g[e.variant][e.color], L = y[e.rounded], J = s[e.size];
|
|
1643
1804
|
return [
|
|
1644
1805
|
"dk:relative dk:flex dk:flex-col dk:overflow-hidden",
|
|
1645
1806
|
$,
|
|
1646
1807
|
M,
|
|
1647
|
-
|
|
1808
|
+
L,
|
|
1648
1809
|
J
|
|
1649
1810
|
].join(" ");
|
|
1650
1811
|
}), D = o(() => [
|
|
1651
1812
|
"dk:flex dk:items-start dk:justify-between dk:gap-3 dk:px-5 dk:pt-5 dk:pb-3",
|
|
1652
1813
|
"dk:border-b dk:border-current/10"
|
|
1653
|
-
].join(" ")),
|
|
1814
|
+
].join(" ")), v = o(() => [
|
|
1654
1815
|
"dk:px-5 dk:py-4",
|
|
1655
1816
|
e.scrollable ? "dk:max-h-[65vh] dk:overflow-y-auto" : ""
|
|
1656
|
-
].join(" ")),
|
|
1817
|
+
].join(" ")), p = o(() => [
|
|
1657
1818
|
"dk:px-5 dk:py-4 dk:border-t dk:border-current/10",
|
|
1658
1819
|
"dk:flex dk:items-center dk:justify-end dk:gap-2"
|
|
1659
1820
|
].join(" "));
|
|
1660
1821
|
function k() {
|
|
1661
1822
|
if (typeof document > "u") return;
|
|
1662
|
-
const $ = document.body,
|
|
1663
|
-
$.dataset.duiModalCount = String(
|
|
1823
|
+
const $ = document.body, L = Number($.dataset.duiModalCount || "0") + 1;
|
|
1824
|
+
$.dataset.duiModalCount = String(L), L === 1 && ($.style.overflow = "hidden");
|
|
1664
1825
|
}
|
|
1665
|
-
function
|
|
1826
|
+
function f() {
|
|
1666
1827
|
if (typeof document > "u") return;
|
|
1667
|
-
const $ = document.body, M = Number($.dataset.duiModalCount || "0"),
|
|
1668
|
-
$.dataset.duiModalCount = String(
|
|
1828
|
+
const $ = document.body, M = Number($.dataset.duiModalCount || "0"), L = Math.max(0, M - 1);
|
|
1829
|
+
$.dataset.duiModalCount = String(L), L === 0 && ($.style.overflow = "");
|
|
1669
1830
|
}
|
|
1670
1831
|
function w($) {
|
|
1671
|
-
|
|
1832
|
+
b("update:modelValue", !1), b("close", $);
|
|
1672
1833
|
}
|
|
1673
|
-
function
|
|
1674
|
-
|
|
1834
|
+
function l() {
|
|
1835
|
+
b("backdrop"), !(e.persistent || !e.closeOnBackdrop) && w("backdrop");
|
|
1675
1836
|
}
|
|
1676
|
-
function
|
|
1677
|
-
$.key !== "Escape" || !e.modelValue || (
|
|
1837
|
+
function u($) {
|
|
1838
|
+
$.key !== "Escape" || !e.modelValue || (b("escape"), !(e.persistent || !e.closeOnEsc) && w("escape"));
|
|
1678
1839
|
}
|
|
1679
|
-
return
|
|
1840
|
+
return ae(
|
|
1680
1841
|
() => e.modelValue,
|
|
1681
1842
|
($, M) => {
|
|
1682
|
-
$ && !M && (k(),
|
|
1843
|
+
$ && !M && (k(), b("open")), !$ && M && f();
|
|
1683
1844
|
}
|
|
1684
|
-
),
|
|
1685
|
-
e.modelValue && k(), typeof window < "u" && window.addEventListener("keydown",
|
|
1686
|
-
}),
|
|
1687
|
-
e.modelValue &&
|
|
1688
|
-
}), ($, M) => (t(),
|
|
1689
|
-
de(
|
|
1845
|
+
), me(() => {
|
|
1846
|
+
e.modelValue && k(), typeof window < "u" && window.addEventListener("keydown", u);
|
|
1847
|
+
}), fe(() => {
|
|
1848
|
+
e.modelValue && f(), typeof window < "u" && window.removeEventListener("keydown", u);
|
|
1849
|
+
}), ($, M) => (t(), O(he, { to: "body" }, [
|
|
1850
|
+
de(xe, {
|
|
1690
1851
|
"enter-active-class": "dk:transition-opacity dk:duration-200",
|
|
1691
1852
|
"leave-active-class": "dk:transition-opacity dk:duration-200",
|
|
1692
1853
|
"enter-from-class": "dk:opacity-0",
|
|
1693
1854
|
"leave-to-class": "dk:opacity-0"
|
|
1694
1855
|
}, {
|
|
1695
|
-
default:
|
|
1856
|
+
default: W(() => [
|
|
1696
1857
|
e.modelValue ? (t(), a("div", {
|
|
1697
1858
|
key: 0,
|
|
1698
|
-
style:
|
|
1699
|
-
class:
|
|
1700
|
-
onClick:
|
|
1859
|
+
style: ce({ zIndex: String(e.zIndex) }),
|
|
1860
|
+
class: n(h.value),
|
|
1861
|
+
onClick: l
|
|
1701
1862
|
}, [
|
|
1702
|
-
|
|
1703
|
-
class:
|
|
1863
|
+
c("div", {
|
|
1864
|
+
class: n(x.value)
|
|
1704
1865
|
}, [
|
|
1705
|
-
|
|
1866
|
+
c("div", {
|
|
1706
1867
|
role: "dialog",
|
|
1707
1868
|
"aria-modal": "true",
|
|
1708
|
-
"aria-labelledby": e.title ?
|
|
1869
|
+
"aria-labelledby": e.title ? i : void 0,
|
|
1709
1870
|
"aria-describedby": e.description ? z : void 0,
|
|
1710
|
-
class:
|
|
1871
|
+
class: n(C.value),
|
|
1711
1872
|
onClick: M[1] || (M[1] = te(() => {
|
|
1712
1873
|
}, ["stop"]))
|
|
1713
1874
|
}, [
|
|
1714
1875
|
$.$slots.header || e.title || e.description || e.showClose ? (t(), a("header", {
|
|
1715
1876
|
key: 0,
|
|
1716
|
-
class:
|
|
1877
|
+
class: n(D.value)
|
|
1717
1878
|
}, [
|
|
1718
|
-
|
|
1719
|
-
|
|
1879
|
+
c("div", null, [
|
|
1880
|
+
T($.$slots, "header", {}, () => [
|
|
1720
1881
|
e.title ? (t(), a("h2", {
|
|
1721
1882
|
key: 0,
|
|
1722
|
-
id:
|
|
1883
|
+
id: i,
|
|
1723
1884
|
class: "dk:text-lg dk:font-semibold"
|
|
1724
1885
|
}, j(e.title), 1)) : S("", !0),
|
|
1725
1886
|
e.description ? (t(), a("p", {
|
|
@@ -1734,23 +1895,23 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1734
1895
|
type: "button",
|
|
1735
1896
|
class: "dk:inline-flex dk:h-8 dk:w-8 dk:items-center dk:justify-center dk:rounded dk:text-current dk:opacity-70 dk:transition-opacity dk:hover:opacity-100 dk:focus-visible:opacity-100 dk:outline-none dk:ring-2 dk:ring-current/30",
|
|
1736
1897
|
"aria-label": "Cerrar modal",
|
|
1737
|
-
onClick: M[0] || (M[0] = (
|
|
1898
|
+
onClick: M[0] || (M[0] = (L) => w("button"))
|
|
1738
1899
|
}, [...M[2] || (M[2] = [
|
|
1739
|
-
|
|
1900
|
+
c("span", { "aria-hidden": "true" }, "×", -1)
|
|
1740
1901
|
])])) : S("", !0)
|
|
1741
1902
|
], 2)) : S("", !0),
|
|
1742
|
-
|
|
1743
|
-
class:
|
|
1903
|
+
c("section", {
|
|
1904
|
+
class: n(v.value)
|
|
1744
1905
|
}, [
|
|
1745
|
-
|
|
1906
|
+
T($.$slots, "default")
|
|
1746
1907
|
], 2),
|
|
1747
1908
|
$.$slots.footer ? (t(), a("footer", {
|
|
1748
1909
|
key: 1,
|
|
1749
|
-
class:
|
|
1910
|
+
class: n(p.value)
|
|
1750
1911
|
}, [
|
|
1751
|
-
|
|
1912
|
+
T($.$slots, "footer")
|
|
1752
1913
|
], 2)) : S("", !0)
|
|
1753
|
-
], 10,
|
|
1914
|
+
], 10, Vd)
|
|
1754
1915
|
], 2)
|
|
1755
1916
|
], 6)) : S("", !0)
|
|
1756
1917
|
]),
|
|
@@ -1758,7 +1919,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1758
1919
|
})
|
|
1759
1920
|
]));
|
|
1760
1921
|
}
|
|
1761
|
-
}),
|
|
1922
|
+
}), Bd = ["aria-describedby"], Md = { class: "dk:inline-flex dk:items-center" }, It = /* @__PURE__ */ P({
|
|
1762
1923
|
__name: "DuiTooltip",
|
|
1763
1924
|
props: {
|
|
1764
1925
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -1784,9 +1945,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1784
1945
|
},
|
|
1785
1946
|
emits: ["update:modelValue", "open", "close"],
|
|
1786
1947
|
setup(d, { emit: r }) {
|
|
1787
|
-
const e = d,
|
|
1948
|
+
const e = d, b = r, m = K(null), i = K(null), z = K(!1), y = o(() => e.modelValue !== void 0), s = o(() => y.value ? !!e.modelValue : z.value), g = K(e.placement), h = K({ top: 0, left: 0 }), x = K(!1);
|
|
1788
1949
|
let C = null, D = null;
|
|
1789
|
-
const
|
|
1950
|
+
const v = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`, p = {
|
|
1790
1951
|
all: "dk:rounded-md",
|
|
1791
1952
|
top: "dk:rounded-t-md",
|
|
1792
1953
|
bottom: "dk:rounded-b-md",
|
|
@@ -1797,7 +1958,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1797
1958
|
sm: "dk:px-2 dk:py-1 dk:text-xs",
|
|
1798
1959
|
md: "dk:px-2.5 dk:py-1.5 dk:text-sm",
|
|
1799
1960
|
lg: "dk:px-3 dk:py-2 dk:text-base"
|
|
1800
|
-
},
|
|
1961
|
+
}, f = {
|
|
1801
1962
|
xs: "dk:max-w-40",
|
|
1802
1963
|
sm: "dk:max-w-56",
|
|
1803
1964
|
md: "dk:max-w-72",
|
|
@@ -1805,9 +1966,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1805
1966
|
full: "dk:max-w-[min(92vw,42rem)]"
|
|
1806
1967
|
};
|
|
1807
1968
|
function w(B) {
|
|
1808
|
-
return typeof B == "string" && B in
|
|
1969
|
+
return typeof B == "string" && B in f;
|
|
1809
1970
|
}
|
|
1810
|
-
const
|
|
1971
|
+
const l = {
|
|
1811
1972
|
solid: {
|
|
1812
1973
|
base: "dk:border dk:shadow-lg",
|
|
1813
1974
|
neutral: "dk:bg-zinc-900 dk:text-zinc-100 dk:border-zinc-700 dk:dark:bg-zinc-200 dk:dark:text-zinc-900 dk:dark:border-zinc-300",
|
|
@@ -1826,26 +1987,26 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1826
1987
|
warning: "dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",
|
|
1827
1988
|
danger: "dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"
|
|
1828
1989
|
}
|
|
1829
|
-
},
|
|
1830
|
-
const B =
|
|
1990
|
+
}, u = o(() => {
|
|
1991
|
+
const B = p[e.rounded], V = k[e.size], _ = l[e.variant].base, U = l[e.variant][e.color], N = w(e.maxWidth) ? f[e.maxWidth] : "";
|
|
1831
1992
|
return [
|
|
1832
1993
|
"dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default",
|
|
1833
1994
|
"dk:break-words dk:whitespace-normal",
|
|
1834
1995
|
B,
|
|
1835
1996
|
V,
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1997
|
+
_,
|
|
1998
|
+
U,
|
|
1999
|
+
N
|
|
1839
2000
|
].join(" ");
|
|
1840
2001
|
}), $ = o(() => {
|
|
1841
2002
|
const B = {
|
|
1842
|
-
top: `${
|
|
1843
|
-
left: `${
|
|
2003
|
+
top: `${h.value.top}px`,
|
|
2004
|
+
left: `${h.value.left}px`,
|
|
1844
2005
|
zIndex: String(e.zIndex)
|
|
1845
2006
|
};
|
|
1846
2007
|
return typeof e.maxWidth == "number" ? B.maxWidth = `${e.maxWidth}px` : typeof e.maxWidth == "string" && !w(e.maxWidth) && (B.maxWidth = e.maxWidth), B;
|
|
1847
2008
|
}), M = o(() => {
|
|
1848
|
-
const B =
|
|
2009
|
+
const B = l[e.variant][e.color], V = g.value, _ = {
|
|
1849
2010
|
top: "dk:-bottom-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45",
|
|
1850
2011
|
"top-start": "dk:-bottom-1.5 dk:left-3 dk:rotate-45",
|
|
1851
2012
|
"top-end": "dk:-bottom-1.5 dk:right-3 dk:rotate-45",
|
|
@@ -1862,28 +2023,28 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1862
2023
|
return [
|
|
1863
2024
|
"dk:absolute dk:block dk:h-3 dk:w-3",
|
|
1864
2025
|
B,
|
|
1865
|
-
|
|
2026
|
+
_[V] || _.top
|
|
1866
2027
|
].join(" ");
|
|
1867
2028
|
});
|
|
1868
|
-
function
|
|
2029
|
+
function L() {
|
|
1869
2030
|
C && (clearTimeout(C), C = null), D && (clearTimeout(D), D = null);
|
|
1870
2031
|
}
|
|
1871
2032
|
function J(B, V) {
|
|
1872
|
-
e.disabled || (y.value ?
|
|
2033
|
+
e.disabled || (y.value ? b("update:modelValue", B) : z.value = B, B ? (b("open", V), le(() => {
|
|
1873
2034
|
X();
|
|
1874
|
-
})) :
|
|
2035
|
+
})) : b("close", V));
|
|
1875
2036
|
}
|
|
1876
2037
|
function Y(B) {
|
|
1877
|
-
|
|
2038
|
+
L(), C = setTimeout(() => {
|
|
1878
2039
|
J(!0, B);
|
|
1879
2040
|
}, Math.max(0, e.showDelay));
|
|
1880
2041
|
}
|
|
1881
2042
|
function Z(B) {
|
|
1882
|
-
|
|
1883
|
-
B === "hover" && e.interactive &&
|
|
2043
|
+
L(), D = setTimeout(() => {
|
|
2044
|
+
B === "hover" && e.interactive && x.value || J(!1, B);
|
|
1884
2045
|
}, Math.max(0, e.hideDelay));
|
|
1885
2046
|
}
|
|
1886
|
-
function
|
|
2047
|
+
function be(B) {
|
|
1887
2048
|
return {
|
|
1888
2049
|
top: "bottom",
|
|
1889
2050
|
"top-start": "bottom-start",
|
|
@@ -1899,23 +2060,23 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1899
2060
|
"right-end": "left-end"
|
|
1900
2061
|
}[B];
|
|
1901
2062
|
}
|
|
1902
|
-
function ee(B, V,
|
|
1903
|
-
const [
|
|
2063
|
+
function ee(B, V, _) {
|
|
2064
|
+
const [U, N] = B.split("-"), G = e.offset;
|
|
1904
2065
|
let q = 0, H = 0;
|
|
1905
|
-
|
|
1906
|
-
const
|
|
1907
|
-
return q = Math.min(Math.max(
|
|
2066
|
+
U === "top" && (q = V.top - _.height - G, N === "start" ? H = V.left : N === "end" ? H = V.right - _.width : H = V.left + V.width / 2 - _.width / 2), U === "bottom" && (q = V.bottom + G, N === "start" ? H = V.left : N === "end" ? H = V.right - _.width : H = V.left + V.width / 2 - _.width / 2), U === "left" && (H = V.left - _.width - G, N === "start" ? q = V.top : N === "end" ? q = V.bottom - _.height : q = V.top + V.height / 2 - _.height / 2), U === "right" && (H = V.right + G, N === "start" ? q = V.top : N === "end" ? q = V.bottom - _.height : q = V.top + V.height / 2 - _.height / 2);
|
|
2067
|
+
const se = e.viewportPadding, Te = window.innerWidth, Pe = window.innerHeight;
|
|
2068
|
+
return q = Math.min(Math.max(se, q), Pe - _.height - se), H = Math.min(Math.max(se, H), Te - _.width - se), { top: q, left: H };
|
|
1908
2069
|
}
|
|
1909
|
-
function $e(B, V,
|
|
2070
|
+
function $e(B, V, _) {
|
|
1910
2071
|
if (!e.flip) return !1;
|
|
1911
|
-
const [
|
|
1912
|
-
return
|
|
2072
|
+
const [U] = B.split("-"), N = e.offset, G = e.viewportPadding;
|
|
2073
|
+
return U === "top" ? V.top - _.height - N < G : U === "bottom" ? V.bottom + _.height + N > window.innerHeight - G : U === "left" ? V.left - _.width - N < G : V.right + _.width + N > window.innerWidth - G;
|
|
1913
2074
|
}
|
|
1914
2075
|
function X() {
|
|
1915
|
-
if (!
|
|
1916
|
-
const B =
|
|
1917
|
-
let
|
|
1918
|
-
$e(
|
|
2076
|
+
if (!m.value || !i.value) return;
|
|
2077
|
+
const B = m.value.getBoundingClientRect(), V = i.value.getBoundingClientRect();
|
|
2078
|
+
let _ = e.placement;
|
|
2079
|
+
$e(_, B, V) && (_ = be(_)), g.value = _, h.value = ee(_, B, V);
|
|
1919
2080
|
}
|
|
1920
2081
|
function Se() {
|
|
1921
2082
|
e.trigger === "hover" && Y("hover");
|
|
@@ -1924,8 +2085,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1924
2085
|
var V;
|
|
1925
2086
|
if (e.trigger === "hover") {
|
|
1926
2087
|
if (e.interactive) {
|
|
1927
|
-
const
|
|
1928
|
-
if (
|
|
2088
|
+
const _ = B.relatedTarget;
|
|
2089
|
+
if (_ && ((V = i.value) != null && V.contains(_)))
|
|
1929
2090
|
return;
|
|
1930
2091
|
}
|
|
1931
2092
|
Z("hover");
|
|
@@ -1938,85 +2099,85 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1938
2099
|
e.trigger !== "focus" && e.trigger !== "hover" || Z("focus");
|
|
1939
2100
|
}
|
|
1940
2101
|
function Me(B) {
|
|
1941
|
-
e.trigger === "click" && (B.stopPropagation(),
|
|
2102
|
+
e.trigger === "click" && (B.stopPropagation(), s.value ? Z("click") : Y("click"));
|
|
1942
2103
|
}
|
|
1943
2104
|
function De() {
|
|
1944
|
-
e.interactive && (
|
|
2105
|
+
e.interactive && (x.value = !0, L());
|
|
1945
2106
|
}
|
|
1946
|
-
function
|
|
1947
|
-
var
|
|
2107
|
+
function _e(B) {
|
|
2108
|
+
var _;
|
|
1948
2109
|
if (!e.interactive) return;
|
|
1949
2110
|
const V = B.relatedTarget;
|
|
1950
|
-
V && ((
|
|
2111
|
+
V && ((_ = m.value) != null && _.contains(V)) || (x.value = !1, Z("hover"));
|
|
1951
2112
|
}
|
|
1952
|
-
function
|
|
1953
|
-
var
|
|
1954
|
-
if (e.trigger !== "click" || !
|
|
2113
|
+
function ve(B) {
|
|
2114
|
+
var _, U;
|
|
2115
|
+
if (e.trigger !== "click" || !s.value) return;
|
|
1955
2116
|
const V = B.target;
|
|
1956
|
-
(
|
|
2117
|
+
(_ = m.value) != null && _.contains(V) || (U = i.value) != null && U.contains(V) || Z("outside");
|
|
1957
2118
|
}
|
|
1958
|
-
return
|
|
2119
|
+
return ae(
|
|
1959
2120
|
() => e.modelValue,
|
|
1960
2121
|
(B) => {
|
|
1961
|
-
y.value && B &&
|
|
2122
|
+
y.value && B && le(X);
|
|
1962
2123
|
}
|
|
1963
|
-
),
|
|
2124
|
+
), ae(
|
|
1964
2125
|
() => e.placement,
|
|
1965
2126
|
() => {
|
|
1966
|
-
|
|
2127
|
+
s.value && le(X);
|
|
1967
2128
|
}
|
|
1968
|
-
),
|
|
1969
|
-
B &&
|
|
1970
|
-
}), ge(() => {
|
|
1971
|
-
typeof window > "u" || (window.addEventListener("resize", X), window.addEventListener("scroll", X, !0), window.addEventListener("click", xe));
|
|
2129
|
+
), ae(s, (B) => {
|
|
2130
|
+
B && le(X);
|
|
1972
2131
|
}), me(() => {
|
|
1973
|
-
|
|
1974
|
-
}), (
|
|
1975
|
-
|
|
2132
|
+
typeof window > "u" || (window.addEventListener("resize", X), window.addEventListener("scroll", X, !0), window.addEventListener("click", ve));
|
|
2133
|
+
}), fe(() => {
|
|
2134
|
+
L(), !(typeof window > "u") && (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, !0), window.removeEventListener("click", ve));
|
|
2135
|
+
}), (B, V) => (t(), a(A, null, [
|
|
2136
|
+
c("span", {
|
|
1976
2137
|
ref_key: "triggerRef",
|
|
1977
|
-
ref:
|
|
2138
|
+
ref: m,
|
|
1978
2139
|
class: "dk:relative dk:inline-flex dk:max-w-full",
|
|
1979
|
-
"aria-describedby":
|
|
2140
|
+
"aria-describedby": s.value ? v : void 0,
|
|
1980
2141
|
onMouseenter: Se,
|
|
1981
2142
|
onMouseleave: je,
|
|
1982
2143
|
onFocusin: Ve,
|
|
1983
2144
|
onFocusout: Be,
|
|
1984
2145
|
onClick: Me
|
|
1985
2146
|
}, [
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2147
|
+
T(B.$slots, "trigger", {}, () => [
|
|
2148
|
+
T(B.$slots, "default", {}, () => [
|
|
2149
|
+
c("span", Md, j(e.fallbackTriggerText), 1)
|
|
1989
2150
|
])
|
|
1990
2151
|
])
|
|
1991
|
-
], 40,
|
|
1992
|
-
(t(),
|
|
2152
|
+
], 40, Bd),
|
|
2153
|
+
(t(), O(he, {
|
|
1993
2154
|
to: e.teleportTo
|
|
1994
2155
|
}, [
|
|
1995
|
-
de(
|
|
2156
|
+
de(xe, {
|
|
1996
2157
|
"enter-active-class": "dk:transition-opacity dk:duration-150",
|
|
1997
2158
|
"leave-active-class": "dk:transition-opacity dk:duration-100",
|
|
1998
2159
|
"enter-from-class": "dk:opacity-0",
|
|
1999
2160
|
"leave-to-class": "dk:opacity-0"
|
|
2000
2161
|
}, {
|
|
2001
|
-
default:
|
|
2002
|
-
|
|
2162
|
+
default: W(() => [
|
|
2163
|
+
s.value && !e.disabled ? (t(), a("div", {
|
|
2003
2164
|
key: 0,
|
|
2004
2165
|
ref_key: "tooltipRef",
|
|
2005
|
-
ref:
|
|
2006
|
-
id:
|
|
2166
|
+
ref: i,
|
|
2167
|
+
id: v,
|
|
2007
2168
|
role: "tooltip",
|
|
2008
|
-
class:
|
|
2009
|
-
style:
|
|
2169
|
+
class: n(u.value),
|
|
2170
|
+
style: ce($.value),
|
|
2010
2171
|
onMouseenter: De,
|
|
2011
|
-
onMouseleave:
|
|
2172
|
+
onMouseleave: _e
|
|
2012
2173
|
}, [
|
|
2013
|
-
|
|
2014
|
-
|
|
2174
|
+
T(B.$slots, "content", {}, () => [
|
|
2175
|
+
I(j(e.text), 1)
|
|
2015
2176
|
]),
|
|
2016
2177
|
e.arrow ? (t(), a("span", {
|
|
2017
2178
|
key: 0,
|
|
2018
2179
|
"aria-hidden": "true",
|
|
2019
|
-
class:
|
|
2180
|
+
class: n(M.value)
|
|
2020
2181
|
}, null, 2)) : S("", !0)
|
|
2021
2182
|
], 38)) : S("", !0)
|
|
2022
2183
|
]),
|
|
@@ -2025,7 +2186,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2025
2186
|
], 8, ["to"]))
|
|
2026
2187
|
], 64));
|
|
2027
2188
|
}
|
|
2028
|
-
}),
|
|
2189
|
+
}), Dd = ["open"], _d = ["onClick"], Td = { class: "dui-acc-title" }, Pd = { class: "dui-acc-panel" }, Ld = /* @__PURE__ */ P({
|
|
2029
2190
|
__name: "DuiAccordion",
|
|
2030
2191
|
props: {
|
|
2031
2192
|
items: {},
|
|
@@ -2038,20 +2199,20 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2038
2199
|
},
|
|
2039
2200
|
emits: ["update:modelValue", "change"],
|
|
2040
2201
|
setup(d, { emit: r }) {
|
|
2041
|
-
const e = d,
|
|
2042
|
-
function
|
|
2043
|
-
return e.modelValue === void 0 ?
|
|
2202
|
+
const e = d, b = r, m = K([]);
|
|
2203
|
+
function i() {
|
|
2204
|
+
return e.modelValue === void 0 ? m.value : Array.isArray(e.modelValue) ? e.modelValue : e.modelValue ? [e.modelValue] : [];
|
|
2044
2205
|
}
|
|
2045
2206
|
function z(w) {
|
|
2046
|
-
return
|
|
2207
|
+
return i().includes(w);
|
|
2047
2208
|
}
|
|
2048
|
-
function y(w,
|
|
2049
|
-
if (
|
|
2050
|
-
const
|
|
2209
|
+
function y(w, l) {
|
|
2210
|
+
if (l) return;
|
|
2211
|
+
const u = i();
|
|
2051
2212
|
let $;
|
|
2052
|
-
e.multiple ? $ =
|
|
2213
|
+
e.multiple ? $ = u.includes(w) ? u.filter((M) => M !== w) : [...u, w] : $ = u.includes(w) ? [] : [w], m.value = $, b("update:modelValue", e.multiple ? $ : $[0] ?? ""), b("change", w);
|
|
2053
2214
|
}
|
|
2054
|
-
const
|
|
2215
|
+
const s = {
|
|
2055
2216
|
sm: {
|
|
2056
2217
|
summary: "dk:px-3 dk:py-2.5 dk:text-sm dk:gap-2",
|
|
2057
2218
|
content: "dk:px-3 dk:pt-0 dk:pb-3 dk:text-sm",
|
|
@@ -2070,21 +2231,21 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2070
2231
|
icon: "dk:text-xl",
|
|
2071
2232
|
chevron: "dk:w-5 dk:h-5"
|
|
2072
2233
|
}
|
|
2073
|
-
},
|
|
2234
|
+
}, g = {
|
|
2074
2235
|
neutral: "dk:bg-zinc-50 dk:dark:bg-zinc-800/60",
|
|
2075
2236
|
primary: "dk:bg-slate-50 dk:dark:bg-slate-800/60",
|
|
2076
2237
|
secondary: "dk:bg-pink-50 dk:dark:bg-pink-900/30",
|
|
2077
2238
|
success: "dk:bg-emerald-50 dk:dark:bg-emerald-900/30",
|
|
2078
2239
|
warning: "dk:bg-amber-50 dk:dark:bg-amber-900/30",
|
|
2079
2240
|
danger: "dk:bg-rose-50 dk:dark:bg-rose-900/30"
|
|
2080
|
-
},
|
|
2241
|
+
}, h = {
|
|
2081
2242
|
neutral: "dk:text-zinc-900 dk:dark:text-zinc-50",
|
|
2082
2243
|
primary: "dk:text-slate-800 dk:dark:text-slate-100",
|
|
2083
2244
|
secondary: "dk:text-pink-800 dk:dark:text-pink-100",
|
|
2084
2245
|
success: "dk:text-emerald-800 dk:dark:text-emerald-100",
|
|
2085
2246
|
warning: "dk:text-amber-800 dk:dark:text-amber-100",
|
|
2086
2247
|
danger: "dk:text-rose-800 dk:dark:text-rose-100"
|
|
2087
|
-
},
|
|
2248
|
+
}, x = {
|
|
2088
2249
|
neutral: "dk:text-zinc-500 dk:dark:text-zinc-400",
|
|
2089
2250
|
primary: "dk:text-slate-500 dk:dark:text-slate-400",
|
|
2090
2251
|
secondary: "dk:text-pink-500 dk:dark:text-pink-400",
|
|
@@ -2092,48 +2253,48 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2092
2253
|
warning: "dk:text-amber-500 dk:dark:text-amber-400",
|
|
2093
2254
|
danger: "dk:text-rose-500 dk:dark:text-rose-400"
|
|
2094
2255
|
}, C = o(() => e.variant === "separated" ? "dk:flex dk:flex-col dk:gap-2" : e.variant === "ghost" ? "dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700/60" : e.flush ? "dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700" : "dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:rounded-xl dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700 dk:overflow-hidden dk:shadow-sm"), D = o(() => e.variant === "separated" ? "dk:rounded-xl dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:overflow-hidden dk:shadow-sm dk:bg-white dk:dark:bg-zinc-900" : e.variant === "ghost" ? "" : "dk:bg-white dk:dark:bg-zinc-900");
|
|
2095
|
-
function
|
|
2096
|
-
const
|
|
2256
|
+
function v(w, l) {
|
|
2257
|
+
const u = s[e.size], $ = z(w), M = [
|
|
2097
2258
|
"dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none",
|
|
2098
2259
|
"dk:transition-colors dk:duration-150",
|
|
2099
|
-
|
|
2100
|
-
],
|
|
2101
|
-
return [...M, ...
|
|
2260
|
+
u.summary
|
|
2261
|
+
], L = $ ? [g[e.color], h[e.color]] : ["dk:text-zinc-700 dk:dark:text-zinc-300", "dk:hover:bg-zinc-50 dk:dark:hover:bg-zinc-800/50 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"], J = "dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500", Y = l ? "dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
|
|
2262
|
+
return [...M, ...L, J, Y].join(" ");
|
|
2102
2263
|
}
|
|
2103
|
-
function
|
|
2104
|
-
const
|
|
2264
|
+
function p(w) {
|
|
2265
|
+
const l = s[e.size];
|
|
2105
2266
|
return [
|
|
2106
2267
|
"dk:flex-shrink-0 dk:transition-transform dk:duration-250 dk:ease-in-out dk:ml-auto",
|
|
2107
|
-
z(w) ? "dk:rotate-180 " +
|
|
2108
|
-
|
|
2268
|
+
z(w) ? "dk:rotate-180 " + x[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500",
|
|
2269
|
+
l.chevron
|
|
2109
2270
|
].join(" ");
|
|
2110
2271
|
}
|
|
2111
|
-
const k = o(() => ["dk:flex-shrink-0 dk:leading-none",
|
|
2112
|
-
|
|
2272
|
+
const k = o(() => ["dk:flex-shrink-0 dk:leading-none", s[e.size].icon].join(" ")), f = o(() => [
|
|
2273
|
+
s[e.size].content,
|
|
2113
2274
|
"dk:text-zinc-600 dk:dark:text-zinc-400 dk:leading-relaxed"
|
|
2114
2275
|
].join(" "));
|
|
2115
|
-
return (w,
|
|
2116
|
-
class:
|
|
2276
|
+
return (w, l) => (t(), a("div", {
|
|
2277
|
+
class: n(C.value)
|
|
2117
2278
|
}, [
|
|
2118
|
-
(t(!0), a(
|
|
2119
|
-
key:
|
|
2120
|
-
open: z(
|
|
2121
|
-
class:
|
|
2122
|
-
onToggle:
|
|
2279
|
+
(t(!0), a(A, null, F(d.items, (u, $) => (t(), a("details", {
|
|
2280
|
+
key: u.value ?? $,
|
|
2281
|
+
open: z(u.value ?? String($)),
|
|
2282
|
+
class: n(D.value),
|
|
2283
|
+
onToggle: l[0] || (l[0] = te(() => {
|
|
2123
2284
|
}, ["prevent"]))
|
|
2124
2285
|
}, [
|
|
2125
|
-
|
|
2126
|
-
class:
|
|
2127
|
-
onClick: te((M) => y(
|
|
2286
|
+
c("summary", {
|
|
2287
|
+
class: n(v(u.value ?? String($), u.disabled)),
|
|
2288
|
+
onClick: te((M) => y(u.value ?? String($), u.disabled), ["prevent"])
|
|
2128
2289
|
}, [
|
|
2129
|
-
|
|
2290
|
+
u.icon ? (t(), a("span", {
|
|
2130
2291
|
key: 0,
|
|
2131
2292
|
"aria-hidden": "true",
|
|
2132
|
-
class:
|
|
2133
|
-
}, j(
|
|
2134
|
-
|
|
2293
|
+
class: n(k.value)
|
|
2294
|
+
}, j(u.icon), 3)) : S("", !0),
|
|
2295
|
+
c("span", Td, j(u.title), 1),
|
|
2135
2296
|
(t(), a("svg", {
|
|
2136
|
-
class:
|
|
2297
|
+
class: n(p(u.value ?? String($))),
|
|
2137
2298
|
viewBox: "0 0 16 16",
|
|
2138
2299
|
fill: "none",
|
|
2139
2300
|
stroke: "currentColor",
|
|
@@ -2141,23 +2302,23 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2141
2302
|
"stroke-linecap": "round",
|
|
2142
2303
|
"stroke-linejoin": "round",
|
|
2143
2304
|
"aria-hidden": "true"
|
|
2144
|
-
}, [...
|
|
2145
|
-
|
|
2305
|
+
}, [...l[1] || (l[1] = [
|
|
2306
|
+
c("polyline", { points: "4 6 8 10 12 6" }, null, -1)
|
|
2146
2307
|
])], 2))
|
|
2147
|
-
], 10,
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
class:
|
|
2308
|
+
], 10, _d),
|
|
2309
|
+
c("div", Pd, [
|
|
2310
|
+
c("div", {
|
|
2311
|
+
class: n(f.value)
|
|
2151
2312
|
}, [
|
|
2152
|
-
|
|
2153
|
-
|
|
2313
|
+
T(w.$slots, u.value ?? String($), {}, () => [
|
|
2314
|
+
c("p", null, j(u.content), 1)
|
|
2154
2315
|
], !0)
|
|
2155
2316
|
], 2)
|
|
2156
2317
|
])
|
|
2157
|
-
], 42,
|
|
2318
|
+
], 42, Dd))), 128))
|
|
2158
2319
|
], 2));
|
|
2159
2320
|
}
|
|
2160
|
-
}),
|
|
2321
|
+
}), At = /* @__PURE__ */ ne(Ld, [["__scopeId", "data-v-9bd77ff3"]]), Id = ["aria-label"], Wt = /* @__PURE__ */ P({
|
|
2161
2322
|
inheritAttrs: !1,
|
|
2162
2323
|
__name: "DuiBadge",
|
|
2163
2324
|
props: {
|
|
@@ -2172,12 +2333,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2172
2333
|
},
|
|
2173
2334
|
emits: ["dismiss"],
|
|
2174
2335
|
setup(d, { emit: r }) {
|
|
2175
|
-
const e = d,
|
|
2336
|
+
const e = d, b = r, m = {
|
|
2176
2337
|
xs: "dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",
|
|
2177
2338
|
sm: "dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",
|
|
2178
2339
|
md: "dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",
|
|
2179
2340
|
lg: "dk:text-base dk:px-3 dk:py-1.5 dk:gap-2"
|
|
2180
|
-
},
|
|
2341
|
+
}, i = {
|
|
2181
2342
|
full: "dk:rounded-full",
|
|
2182
2343
|
md: "dk:rounded-md",
|
|
2183
2344
|
none: "dk:rounded-none"
|
|
@@ -2213,45 +2374,45 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2213
2374
|
success: "dk:bg-emerald-500 dk:dark:bg-emerald-400",
|
|
2214
2375
|
warning: "dk:bg-amber-500 dk:dark:bg-amber-400",
|
|
2215
2376
|
danger: "dk:bg-rose-500 dk:dark:bg-rose-400"
|
|
2216
|
-
},
|
|
2217
|
-
const C = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", D =
|
|
2218
|
-
return [C, D,
|
|
2219
|
-
}),
|
|
2377
|
+
}, s = o(() => {
|
|
2378
|
+
const C = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", D = m[e.size], v = i[e.rounded], p = z[e.variant][e.color], k = e.href ? "dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity" : "";
|
|
2379
|
+
return [C, D, v, p, k].join(" ");
|
|
2380
|
+
}), g = o(() => ["dk:rounded-full dk:flex-shrink-0", { xs: "dk:w-1.5 dk:h-1.5", sm: "dk:w-2 dk:h-2", md: "dk:w-2 dk:h-2", lg: "dk:w-2.5 dk:h-2.5" }[e.size], y[e.color]].join(" ")), h = o(() => "dk:flex-shrink-0 dk:flex dk:items-center"), x = o(() => [
|
|
2220
2381
|
"dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center",
|
|
2221
2382
|
"dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none",
|
|
2222
2383
|
"dk:opacity-60 dk:hover:opacity-100 dk:transition-opacity dk:outline-none",
|
|
2223
2384
|
"dk:hover:bg-black/10 dk:dark:hover:bg-white/10"
|
|
2224
2385
|
].join(" "));
|
|
2225
|
-
return (C, D) => (t(),
|
|
2386
|
+
return (C, D) => (t(), O(Q(d.href ? "a" : "span"), E({
|
|
2226
2387
|
href: d.href,
|
|
2227
|
-
class:
|
|
2388
|
+
class: s.value
|
|
2228
2389
|
}, C.$attrs), {
|
|
2229
|
-
default:
|
|
2390
|
+
default: W(() => [
|
|
2230
2391
|
C.$slots.icon || d.dot ? (t(), a("span", {
|
|
2231
2392
|
key: 0,
|
|
2232
2393
|
"aria-hidden": "true",
|
|
2233
|
-
class:
|
|
2394
|
+
class: n(h.value)
|
|
2234
2395
|
}, [
|
|
2235
2396
|
d.dot ? (t(), a("span", {
|
|
2236
2397
|
key: 0,
|
|
2237
|
-
class:
|
|
2238
|
-
}, null, 2)) :
|
|
2398
|
+
class: n(g.value)
|
|
2399
|
+
}, null, 2)) : T(C.$slots, "icon", { key: 1 })
|
|
2239
2400
|
], 2)) : S("", !0),
|
|
2240
|
-
|
|
2241
|
-
|
|
2401
|
+
T(C.$slots, "default", {}, () => [
|
|
2402
|
+
I(j(d.label), 1)
|
|
2242
2403
|
]),
|
|
2243
2404
|
d.dismissible ? (t(), a("button", {
|
|
2244
2405
|
key: 1,
|
|
2245
2406
|
type: "button",
|
|
2246
|
-
class:
|
|
2407
|
+
class: n(x.value),
|
|
2247
2408
|
"aria-label": d.label ? `Quitar ${d.label}` : "Quitar",
|
|
2248
|
-
onClick: D[0] || (D[0] = te((
|
|
2249
|
-
}, " × ", 10,
|
|
2409
|
+
onClick: D[0] || (D[0] = te((v) => b("dismiss"), ["prevent"]))
|
|
2410
|
+
}, " × ", 10, Id)) : S("", !0)
|
|
2250
2411
|
]),
|
|
2251
2412
|
_: 3
|
|
2252
2413
|
}, 16, ["href", "class"]));
|
|
2253
2414
|
}
|
|
2254
|
-
}),
|
|
2415
|
+
}), Ad = ["onKeydown"], Wd = ["aria-label"], Et = /* @__PURE__ */ P({
|
|
2255
2416
|
__name: "DuiDropdown",
|
|
2256
2417
|
props: {
|
|
2257
2418
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -2266,27 +2427,27 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2266
2427
|
},
|
|
2267
2428
|
emits: ["update:modelValue", "open", "close"],
|
|
2268
2429
|
setup(d, { emit: r }) {
|
|
2269
|
-
const e = d,
|
|
2430
|
+
const e = d, b = r, m = K(null), i = K(!1), z = o(() => e.modelValue !== void 0 ? e.modelValue : i.value);
|
|
2270
2431
|
function y() {
|
|
2271
2432
|
if (e.disabled) return;
|
|
2272
|
-
const
|
|
2273
|
-
|
|
2433
|
+
const p = !z.value;
|
|
2434
|
+
i.value = p, b("update:modelValue", p), b(p ? "open" : "close");
|
|
2274
2435
|
}
|
|
2275
|
-
function
|
|
2276
|
-
|
|
2436
|
+
function s() {
|
|
2437
|
+
i.value = !1, b("update:modelValue", !1), b("close");
|
|
2277
2438
|
}
|
|
2278
|
-
function
|
|
2279
|
-
|
|
2439
|
+
function g(p) {
|
|
2440
|
+
m.value && !m.value.contains(p.target) && s();
|
|
2280
2441
|
}
|
|
2281
|
-
|
|
2282
|
-
const
|
|
2442
|
+
me(() => document.addEventListener("mousedown", g)), fe(() => document.removeEventListener("mousedown", g));
|
|
2443
|
+
const h = {
|
|
2283
2444
|
"bottom-start": "dk:top-full dk:left-0 dk:mt-1 dk:origin-top-left",
|
|
2284
2445
|
"bottom-end": "dk:top-full dk:right-0 dk:mt-1 dk:origin-top-right",
|
|
2285
2446
|
bottom: "dk:top-full dk:left-1/2 dk:-translate-x-1/2 dk:mt-1 dk:origin-top",
|
|
2286
2447
|
"top-start": "dk:bottom-full dk:left-0 dk:mb-1 dk:origin-bottom-left",
|
|
2287
2448
|
"top-end": "dk:bottom-full dk:right-0 dk:mb-1 dk:origin-bottom-right",
|
|
2288
2449
|
top: "dk:bottom-full dk:left-1/2 dk:-translate-x-1/2 dk:mb-1 dk:origin-bottom"
|
|
2289
|
-
},
|
|
2450
|
+
}, x = {
|
|
2290
2451
|
all: "dk:rounded-xl",
|
|
2291
2452
|
sm: "dk:rounded-lg",
|
|
2292
2453
|
none: "dk:rounded-none"
|
|
@@ -2315,51 +2476,51 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2315
2476
|
warning: "dk:bg-amber-100/85 dk:dark:bg-amber-900/70 dk:backdrop-blur-md dk:border dk:border-amber-300/70 dk:dark:border-amber-600/60 dk:text-amber-800 dk:dark:text-amber-200",
|
|
2316
2477
|
danger: "dk:bg-rose-100/85 dk:dark:bg-rose-900/70 dk:backdrop-blur-md dk:border dk:border-rose-300/70 dk:dark:border-rose-600/60 dk:text-rose-800 dk:dark:text-rose-200"
|
|
2317
2478
|
}
|
|
2318
|
-
}, D = o(() => ({ minWidth: e.minWidth })),
|
|
2479
|
+
}, D = o(() => ({ minWidth: e.minWidth })), v = o(() => [
|
|
2319
2480
|
"dk:absolute dk:z-50 dk:shadow-lg dk:py-1",
|
|
2320
|
-
|
|
2321
|
-
|
|
2481
|
+
h[e.placement],
|
|
2482
|
+
x[e.rounded],
|
|
2322
2483
|
C[e.variant][e.color]
|
|
2323
2484
|
].join(" "));
|
|
2324
|
-
return (
|
|
2485
|
+
return (p, k) => (t(), a("div", {
|
|
2325
2486
|
ref_key: "wrapperRef",
|
|
2326
|
-
ref:
|
|
2487
|
+
ref: m,
|
|
2327
2488
|
class: "dk:relative dk:inline-block"
|
|
2328
2489
|
}, [
|
|
2329
|
-
|
|
2490
|
+
c("div", {
|
|
2330
2491
|
onClick: y,
|
|
2331
2492
|
onKeydown: [
|
|
2332
|
-
|
|
2333
|
-
|
|
2493
|
+
ye(te(y, ["prevent"]), ["enter"]),
|
|
2494
|
+
ye(te(y, ["prevent"]), ["space"])
|
|
2334
2495
|
]
|
|
2335
2496
|
}, [
|
|
2336
|
-
|
|
2337
|
-
], 40,
|
|
2338
|
-
de(
|
|
2497
|
+
T(p.$slots, "trigger")
|
|
2498
|
+
], 40, Ad),
|
|
2499
|
+
de(xe, {
|
|
2339
2500
|
"enter-active-class": "dk:transition-all dk:duration-150 dk:ease-out",
|
|
2340
2501
|
"leave-active-class": "dk:transition-all dk:duration-100 dk:ease-in",
|
|
2341
2502
|
"enter-from-class": "dk:opacity-0 dk:scale-95",
|
|
2342
2503
|
"leave-to-class": "dk:opacity-0 dk:scale-95"
|
|
2343
2504
|
}, {
|
|
2344
|
-
default:
|
|
2505
|
+
default: W(() => [
|
|
2345
2506
|
z.value ? (t(), a("div", {
|
|
2346
2507
|
key: 0,
|
|
2347
|
-
class:
|
|
2348
|
-
style:
|
|
2508
|
+
class: n(v.value),
|
|
2509
|
+
style: ce(D.value),
|
|
2349
2510
|
role: "menu",
|
|
2350
2511
|
"aria-label": d.ariaLabel
|
|
2351
2512
|
}, [
|
|
2352
|
-
|
|
2353
|
-
], 14,
|
|
2513
|
+
T(p.$slots, "default")
|
|
2514
|
+
], 14, Wd)) : S("", !0)
|
|
2354
2515
|
]),
|
|
2355
2516
|
_: 3
|
|
2356
2517
|
})
|
|
2357
2518
|
], 512));
|
|
2358
2519
|
}
|
|
2359
|
-
}),
|
|
2520
|
+
}), Ed = { class: "dk:flex-1 dk:truncate" }, Od = {
|
|
2360
2521
|
key: 1,
|
|
2361
2522
|
class: "dk:ml-auto dk:opacity-60 dk:text-xs"
|
|
2362
|
-
},
|
|
2523
|
+
}, Ot = /* @__PURE__ */ P({
|
|
2363
2524
|
__name: "DuiDropdownItem",
|
|
2364
2525
|
props: {
|
|
2365
2526
|
label: { default: void 0 },
|
|
@@ -2372,60 +2533,60 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2372
2533
|
},
|
|
2373
2534
|
emits: ["click"],
|
|
2374
2535
|
setup(d, { emit: r }) {
|
|
2375
|
-
const e = d,
|
|
2536
|
+
const e = d, b = r, m = o(() => e.href ? { href: e.href, target: e.target } : { type: "button", disabled: e.disabled }), i = {
|
|
2376
2537
|
sm: "dk:px-3 dk:py-1 dk:text-xs",
|
|
2377
2538
|
md: "dk:px-3 dk:py-2 dk:text-sm",
|
|
2378
2539
|
lg: "dk:px-4 dk:py-2.5 dk:text-base"
|
|
2379
2540
|
}, z = o(() => {
|
|
2380
|
-
const
|
|
2381
|
-
return [
|
|
2541
|
+
const g = "dk:flex dk:w-full dk:items-center dk:gap-2 dk:transition-colors dk:duration-100 dk:outline-none dk:text-left dk:select-none", h = i[e.size], x = e.danger ? "dk:text-rose-600 dk:dark:text-rose-400 dk:hover:bg-rose-50 dk:dark:hover:bg-rose-900/40 dk:focus-visible:bg-rose-50 dk:dark:focus-visible:bg-rose-900/40" : "dk:hover:bg-black/5 dk:dark:hover:bg-white/10 dk:focus-visible:bg-black/5 dk:dark:focus-visible:bg-white/10", C = e.disabled ? "dk:opacity-50 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
|
|
2542
|
+
return [g, h, x, C].join(" ");
|
|
2382
2543
|
}), y = o(() => "dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");
|
|
2383
|
-
function
|
|
2384
|
-
e.disabled ||
|
|
2544
|
+
function s(g) {
|
|
2545
|
+
e.disabled || b("click", g);
|
|
2385
2546
|
}
|
|
2386
|
-
return (
|
|
2547
|
+
return (g, h) => (t(), O(Q(d.href ? "a" : "button"), E(m.value, {
|
|
2387
2548
|
class: z.value,
|
|
2388
2549
|
role: "menuitem",
|
|
2389
2550
|
"aria-disabled": d.disabled,
|
|
2390
|
-
onClick:
|
|
2551
|
+
onClick: s
|
|
2391
2552
|
}), {
|
|
2392
|
-
default:
|
|
2393
|
-
|
|
2553
|
+
default: W(() => [
|
|
2554
|
+
g.$slots.icon || d.icon ? (t(), a("span", {
|
|
2394
2555
|
key: 0,
|
|
2395
|
-
class:
|
|
2556
|
+
class: n(y.value),
|
|
2396
2557
|
"aria-hidden": "true"
|
|
2397
2558
|
}, [
|
|
2398
|
-
|
|
2399
|
-
|
|
2559
|
+
T(g.$slots, "icon", {}, () => [
|
|
2560
|
+
I(j(d.icon), 1)
|
|
2400
2561
|
])
|
|
2401
2562
|
], 2)) : S("", !0),
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2563
|
+
c("span", Ed, [
|
|
2564
|
+
T(g.$slots, "default", {}, () => [
|
|
2565
|
+
I(j(d.label), 1)
|
|
2405
2566
|
])
|
|
2406
2567
|
]),
|
|
2407
|
-
|
|
2408
|
-
|
|
2568
|
+
g.$slots.trailing ? (t(), a("span", Od, [
|
|
2569
|
+
T(g.$slots, "trailing")
|
|
2409
2570
|
])) : S("", !0)
|
|
2410
2571
|
]),
|
|
2411
2572
|
_: 3
|
|
2412
2573
|
}, 16, ["class", "aria-disabled"]));
|
|
2413
2574
|
}
|
|
2414
|
-
}),
|
|
2575
|
+
}), Nd = {}, Fd = {
|
|
2415
2576
|
class: "dk:my-1 dk:border-current/10",
|
|
2416
2577
|
role: "separator",
|
|
2417
2578
|
"aria-orientation": "horizontal"
|
|
2418
2579
|
};
|
|
2419
|
-
function
|
|
2420
|
-
return t(), a("hr",
|
|
2580
|
+
function Ud(d, r) {
|
|
2581
|
+
return t(), a("hr", Fd);
|
|
2421
2582
|
}
|
|
2422
|
-
const
|
|
2583
|
+
const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = ["disabled", "aria-label"], Hd = {
|
|
2423
2584
|
key: 0,
|
|
2424
2585
|
class: "dk:hidden dk:sm:inline"
|
|
2425
|
-
},
|
|
2586
|
+
}, Qd = ["aria-label", "aria-current", "onClick"], Gd = ["disabled", "aria-label"], Jd = {
|
|
2426
2587
|
key: 0,
|
|
2427
2588
|
class: "dk:hidden dk:sm:inline"
|
|
2428
|
-
},
|
|
2589
|
+
}, Ft = /* @__PURE__ */ P({
|
|
2429
2590
|
__name: "DuiPagination",
|
|
2430
2591
|
props: {
|
|
2431
2592
|
modelValue: {},
|
|
@@ -2444,31 +2605,31 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2444
2605
|
},
|
|
2445
2606
|
emits: ["update:modelValue", "change"],
|
|
2446
2607
|
setup(d, { emit: r }) {
|
|
2447
|
-
const e = d,
|
|
2448
|
-
function
|
|
2449
|
-
|
|
2608
|
+
const e = d, b = r, m = o(() => Math.max(1, Math.ceil(e.total / e.perPage)));
|
|
2609
|
+
function i(p) {
|
|
2610
|
+
p < 1 || p > m.value || p === e.modelValue || (b("update:modelValue", p), b("change", p));
|
|
2450
2611
|
}
|
|
2451
2612
|
const z = o(() => {
|
|
2452
|
-
const
|
|
2453
|
-
if (
|
|
2454
|
-
return Array.from({ length:
|
|
2455
|
-
const
|
|
2456
|
-
for (let M = 1; M <= w; M++)
|
|
2457
|
-
const
|
|
2458
|
-
|
|
2459
|
-
for (let M =
|
|
2460
|
-
$ <
|
|
2461
|
-
for (let M =
|
|
2462
|
-
return
|
|
2613
|
+
const p = m.value, k = e.modelValue, f = e.siblingCount, w = e.showBoundary ? 1 : 0;
|
|
2614
|
+
if (p <= 2 * f + 2 * w + 3)
|
|
2615
|
+
return Array.from({ length: p }, (M, L) => L + 1);
|
|
2616
|
+
const l = [];
|
|
2617
|
+
for (let M = 1; M <= w; M++) l.push(M);
|
|
2618
|
+
const u = Math.max(w + 1, k - f), $ = Math.min(p - w, k + f);
|
|
2619
|
+
u > w + 1 && l.push("...");
|
|
2620
|
+
for (let M = u; M <= $; M++) l.push(M);
|
|
2621
|
+
$ < p - w && l.push("...");
|
|
2622
|
+
for (let M = p - w + 1; M <= p; M++) l.push(M);
|
|
2623
|
+
return l;
|
|
2463
2624
|
}), y = {
|
|
2464
2625
|
sm: "dk:w-7 dk:h-7 dk:text-xs",
|
|
2465
2626
|
md: "dk:w-9 dk:h-9 dk:text-sm",
|
|
2466
2627
|
lg: "dk:w-11 dk:h-11 dk:text-base"
|
|
2467
|
-
},
|
|
2628
|
+
}, s = {
|
|
2468
2629
|
full: "dk:rounded-full",
|
|
2469
2630
|
md: "dk:rounded-lg",
|
|
2470
2631
|
none: "dk:rounded-none"
|
|
2471
|
-
},
|
|
2632
|
+
}, g = {
|
|
2472
2633
|
solid: {
|
|
2473
2634
|
neutral: "dk:bg-zinc-700 dk:text-white dk:dark:bg-zinc-500",
|
|
2474
2635
|
primary: "dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",
|
|
@@ -2493,39 +2654,39 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2493
2654
|
warning: "dk:bg-amber-100 dk:text-amber-800 dk:dark:bg-amber-700 dk:dark:text-amber-100",
|
|
2494
2655
|
danger: "dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"
|
|
2495
2656
|
}
|
|
2496
|
-
},
|
|
2497
|
-
const
|
|
2657
|
+
}, h = o(() => "dk:flex dk:items-center dk:gap-1 dk:flex-wrap"), x = o(() => {
|
|
2658
|
+
const p = y[e.size], k = s[e.rounded];
|
|
2498
2659
|
return [
|
|
2499
2660
|
"dk:inline-flex dk:items-center dk:justify-center dk:font-medium dk:transition-colors dk:duration-150 dk:outline-none dk:select-none dk:cursor-pointer dk:disabled:cursor-not-allowed dk:disabled:pointer-events-none",
|
|
2500
|
-
|
|
2661
|
+
p,
|
|
2501
2662
|
k,
|
|
2502
2663
|
"dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400"
|
|
2503
2664
|
].join(" ");
|
|
2504
2665
|
}), C = o(() => [
|
|
2505
|
-
|
|
2666
|
+
x.value,
|
|
2506
2667
|
"dk:text-zinc-600 dk:dark:text-zinc-400",
|
|
2507
2668
|
"dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700",
|
|
2508
2669
|
"dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
|
|
2509
2670
|
].join(" "));
|
|
2510
|
-
function D(
|
|
2511
|
-
return
|
|
2512
|
-
|
|
2671
|
+
function D(p) {
|
|
2672
|
+
return p === e.modelValue ? [x.value, g[e.variant][e.color]].join(" ") : [
|
|
2673
|
+
x.value,
|
|
2513
2674
|
"dk:text-zinc-600 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
|
|
2514
2675
|
].join(" ");
|
|
2515
2676
|
}
|
|
2516
|
-
const
|
|
2517
|
-
return (
|
|
2677
|
+
const v = o(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none", y[e.size]].join(" "));
|
|
2678
|
+
return (p, k) => (t(), a("nav", {
|
|
2518
2679
|
"aria-label": d.ariaLabel,
|
|
2519
|
-
class:
|
|
2680
|
+
class: n(h.value)
|
|
2520
2681
|
}, [
|
|
2521
|
-
|
|
2682
|
+
c("button", {
|
|
2522
2683
|
type: "button",
|
|
2523
2684
|
disabled: d.modelValue <= 1,
|
|
2524
2685
|
"aria-label": d.prevLabel,
|
|
2525
|
-
class:
|
|
2526
|
-
onClick: k[0] || (k[0] = (
|
|
2686
|
+
class: n([C.value, d.modelValue <= 1 ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
|
|
2687
|
+
onClick: k[0] || (k[0] = (f) => i(d.modelValue - 1))
|
|
2527
2688
|
}, [
|
|
2528
|
-
k[2] || (k[2] =
|
|
2689
|
+
k[2] || (k[2] = c("svg", {
|
|
2529
2690
|
class: "dk:w-4 dk:h-4",
|
|
2530
2691
|
viewBox: "0 0 16 16",
|
|
2531
2692
|
fill: "none",
|
|
@@ -2535,33 +2696,33 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2535
2696
|
"stroke-linejoin": "round",
|
|
2536
2697
|
"aria-hidden": "true"
|
|
2537
2698
|
}, [
|
|
2538
|
-
|
|
2699
|
+
c("polyline", { points: "10 4 6 8 10 12" })
|
|
2539
2700
|
], -1)),
|
|
2540
|
-
d.showLabels ? (t(), a("span",
|
|
2541
|
-
], 10,
|
|
2542
|
-
(t(!0), a(
|
|
2543
|
-
|
|
2701
|
+
d.showLabels ? (t(), a("span", Hd, j(d.prevLabel), 1)) : S("", !0)
|
|
2702
|
+
], 10, qd),
|
|
2703
|
+
(t(!0), a(A, null, F(z.value, (f) => (t(), a(A, { key: f }, [
|
|
2704
|
+
f === "..." ? (t(), a("span", {
|
|
2544
2705
|
key: 0,
|
|
2545
|
-
class:
|
|
2706
|
+
class: n(v.value),
|
|
2546
2707
|
"aria-hidden": "true"
|
|
2547
2708
|
}, "…", 2)) : (t(), a("button", {
|
|
2548
2709
|
key: 1,
|
|
2549
2710
|
type: "button",
|
|
2550
|
-
"aria-label": `Pagina ${
|
|
2551
|
-
"aria-current": d.modelValue ===
|
|
2552
|
-
class:
|
|
2553
|
-
onClick: (w) =>
|
|
2554
|
-
}, j(
|
|
2711
|
+
"aria-label": `Pagina ${f}`,
|
|
2712
|
+
"aria-current": d.modelValue === f ? "page" : void 0,
|
|
2713
|
+
class: n(D(f)),
|
|
2714
|
+
onClick: (w) => i(f)
|
|
2715
|
+
}, j(f), 11, Qd))
|
|
2555
2716
|
], 64))), 128)),
|
|
2556
|
-
|
|
2717
|
+
c("button", {
|
|
2557
2718
|
type: "button",
|
|
2558
|
-
disabled: d.modelValue >=
|
|
2719
|
+
disabled: d.modelValue >= m.value,
|
|
2559
2720
|
"aria-label": d.nextLabel,
|
|
2560
|
-
class:
|
|
2561
|
-
onClick: k[1] || (k[1] = (
|
|
2721
|
+
class: n([C.value, d.modelValue >= m.value ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
|
|
2722
|
+
onClick: k[1] || (k[1] = (f) => i(d.modelValue + 1))
|
|
2562
2723
|
}, [
|
|
2563
|
-
d.showLabels ? (t(), a("span",
|
|
2564
|
-
k[3] || (k[3] =
|
|
2724
|
+
d.showLabels ? (t(), a("span", Jd, j(d.nextLabel), 1)) : S("", !0),
|
|
2725
|
+
k[3] || (k[3] = c("svg", {
|
|
2565
2726
|
class: "dk:w-4 dk:h-4",
|
|
2566
2727
|
viewBox: "0 0 16 16",
|
|
2567
2728
|
fill: "none",
|
|
@@ -2571,12 +2732,12 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2571
2732
|
"stroke-linejoin": "round",
|
|
2572
2733
|
"aria-hidden": "true"
|
|
2573
2734
|
}, [
|
|
2574
|
-
|
|
2735
|
+
c("polyline", { points: "6 4 10 8 6 12" })
|
|
2575
2736
|
], -1))
|
|
2576
|
-
], 10,
|
|
2577
|
-
], 10,
|
|
2737
|
+
], 10, Gd)
|
|
2738
|
+
], 10, Kd));
|
|
2578
2739
|
}
|
|
2579
|
-
}),
|
|
2740
|
+
}), Xd = /* @__PURE__ */ P({
|
|
2580
2741
|
__name: "DuiSkeleton",
|
|
2581
2742
|
props: {
|
|
2582
2743
|
variant: { default: "text" },
|
|
@@ -2590,35 +2751,35 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2590
2751
|
if (y !== void 0)
|
|
2591
2752
|
return typeof y == "number" ? `${y}px` : y;
|
|
2592
2753
|
}
|
|
2593
|
-
const
|
|
2754
|
+
const b = o(() => ({
|
|
2594
2755
|
width: e(r.width),
|
|
2595
2756
|
height: e(r.height)
|
|
2596
|
-
})),
|
|
2757
|
+
})), m = {
|
|
2597
2758
|
pulse: "dui-skeleton-pulse",
|
|
2598
2759
|
wave: "dui-skeleton-wave",
|
|
2599
2760
|
none: ""
|
|
2600
|
-
},
|
|
2761
|
+
}, i = {
|
|
2601
2762
|
text: "dk:block dk:h-4 dk:w-full dk:rounded",
|
|
2602
2763
|
circular: "dk:block dk:w-10 dk:h-10 dk:rounded-full",
|
|
2603
2764
|
rectangular: "dk:block dk:w-full dk:h-20 dk:rounded-none",
|
|
2604
2765
|
rounded: "dk:block dk:w-full dk:h-20 dk:rounded-xl"
|
|
2605
2766
|
}, z = o(() => [
|
|
2606
2767
|
"dk:bg-zinc-200 dk:dark:bg-zinc-700",
|
|
2607
|
-
|
|
2608
|
-
|
|
2768
|
+
i[r.variant],
|
|
2769
|
+
m[r.animation]
|
|
2609
2770
|
].join(" "));
|
|
2610
|
-
return (y,
|
|
2611
|
-
class:
|
|
2612
|
-
style:
|
|
2771
|
+
return (y, s) => (t(), a("span", {
|
|
2772
|
+
class: n(z.value),
|
|
2773
|
+
style: ce(b.value),
|
|
2613
2774
|
"aria-hidden": "true",
|
|
2614
2775
|
role: "presentation"
|
|
2615
2776
|
}, null, 6));
|
|
2616
2777
|
}
|
|
2617
|
-
}),
|
|
2778
|
+
}), Ut = /* @__PURE__ */ ne(Xd, [["__scopeId", "data-v-8c9c6005"]]), Yd = ["aria-label"], Zd = ["id", "aria-controls", "aria-selected", "disabled", "onClick", "onKeydown"], Rd = {
|
|
2618
2779
|
key: 0,
|
|
2619
2780
|
"aria-hidden": "true",
|
|
2620
2781
|
class: "dk:flex-shrink-0"
|
|
2621
|
-
},
|
|
2782
|
+
}, et = ["id", "aria-labelledby", "tabindex", "hidden"], Kt = /* @__PURE__ */ P({
|
|
2622
2783
|
__name: "DuiTabs",
|
|
2623
2784
|
props: {
|
|
2624
2785
|
modelValue: {},
|
|
@@ -2631,99 +2792,99 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2631
2792
|
},
|
|
2632
2793
|
emits: ["update:modelValue", "change"],
|
|
2633
2794
|
setup(d, { emit: r }) {
|
|
2634
|
-
const e = d,
|
|
2635
|
-
function
|
|
2636
|
-
|
|
2795
|
+
const e = d, b = r, m = Math.random().toString(36).slice(2, 8);
|
|
2796
|
+
function i(v, p) {
|
|
2797
|
+
p || (b("update:modelValue", v), b("change", v));
|
|
2637
2798
|
}
|
|
2638
|
-
function z(
|
|
2639
|
-
const k = e.tabs.filter((w) => !w.disabled).map((w) => w.value),
|
|
2640
|
-
if (
|
|
2641
|
-
|
|
2642
|
-
const w = k[(
|
|
2643
|
-
|
|
2799
|
+
function z(v, p) {
|
|
2800
|
+
const k = e.tabs.filter((w) => !w.disabled).map((w) => w.value), f = k.indexOf(p);
|
|
2801
|
+
if (v.key === "ArrowRight" || v.key === "ArrowDown") {
|
|
2802
|
+
v.preventDefault();
|
|
2803
|
+
const w = k[(f + 1) % k.length];
|
|
2804
|
+
i(w);
|
|
2644
2805
|
}
|
|
2645
|
-
if (
|
|
2646
|
-
|
|
2647
|
-
const w = k[(
|
|
2648
|
-
|
|
2806
|
+
if (v.key === "ArrowLeft" || v.key === "ArrowUp") {
|
|
2807
|
+
v.preventDefault();
|
|
2808
|
+
const w = k[(f - 1 + k.length) % k.length];
|
|
2809
|
+
i(w);
|
|
2649
2810
|
}
|
|
2650
|
-
|
|
2811
|
+
v.key === "Home" && (v.preventDefault(), i(k[0])), v.key === "End" && (v.preventDefault(), i(k[k.length - 1]));
|
|
2651
2812
|
}
|
|
2652
2813
|
const y = {
|
|
2653
2814
|
sm: "dk:text-xs dk:px-3 dk:py-1.5",
|
|
2654
2815
|
md: "dk:text-sm dk:px-4 dk:py-2",
|
|
2655
2816
|
lg: "dk:text-base dk:px-5 dk:py-2.5"
|
|
2656
|
-
},
|
|
2817
|
+
}, s = {
|
|
2657
2818
|
neutral: { underline: "dk:border-zinc-600 dk:text-zinc-700 dk:dark:border-zinc-400 dk:dark:text-zinc-200", pills: "dk:bg-zinc-600 dk:text-white dk:dark:bg-zinc-500", boxed: "dk:bg-white dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-200 dk:shadow-sm" },
|
|
2658
2819
|
primary: { underline: "dk:border-slate-600 dk:text-slate-700 dk:dark:border-slate-400 dk:dark:text-slate-200", pills: "dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500", boxed: "dk:bg-white dk:text-slate-700 dk:dark:bg-zinc-800 dk:dark:text-slate-200 dk:shadow-sm" },
|
|
2659
2820
|
secondary: { underline: "dk:border-pink-600 dk:text-pink-700 dk:dark:border-pink-400 dk:dark:text-pink-200", pills: "dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500", boxed: "dk:bg-white dk:text-pink-700 dk:dark:bg-zinc-800 dk:dark:text-pink-200 dk:shadow-sm" },
|
|
2660
2821
|
success: { underline: "dk:border-emerald-600 dk:text-emerald-700 dk:dark:border-emerald-400 dk:dark:text-emerald-200", pills: "dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500", boxed: "dk:bg-white dk:text-emerald-700 dk:dark:bg-zinc-800 dk:dark:text-emerald-200 dk:shadow-sm" },
|
|
2661
2822
|
warning: { underline: "dk:border-amber-500 dk:text-amber-700 dk:dark:border-amber-400 dk:dark:text-amber-200", pills: "dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400", boxed: "dk:bg-white dk:text-amber-700 dk:dark:bg-zinc-800 dk:dark:text-amber-200 dk:shadow-sm" },
|
|
2662
2823
|
danger: { underline: "dk:border-rose-600 dk:text-rose-700 dk:dark:border-rose-400 dk:dark:text-rose-200", pills: "dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500", boxed: "dk:bg-white dk:text-rose-700 dk:dark:bg-zinc-800 dk:dark:text-rose-200 dk:shadow-sm" }
|
|
2663
|
-
},
|
|
2664
|
-
const
|
|
2824
|
+
}, g = o(() => "dk:w-full"), h = o(() => {
|
|
2825
|
+
const v = "dk:flex dk:items-center dk:gap-0.5", p = e.fullWidth ? "dk:w-full" : "", k = {
|
|
2665
2826
|
underline: "dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700",
|
|
2666
2827
|
pills: "dk:gap-1",
|
|
2667
2828
|
boxed: "dk:bg-zinc-100 dk:dark:bg-zinc-800 dk:p-1 dk:rounded-xl dk:gap-1"
|
|
2668
2829
|
}[e.variant];
|
|
2669
|
-
return [
|
|
2830
|
+
return [v, p, k].join(" ");
|
|
2670
2831
|
});
|
|
2671
|
-
function
|
|
2672
|
-
const k = "dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t",
|
|
2832
|
+
function x(v, p) {
|
|
2833
|
+
const k = "dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t", f = y[e.size], w = e.modelValue === v, l = p ? "dk:opacity-40 dk:cursor-not-allowed" : "dk:cursor-pointer", u = "dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";
|
|
2673
2834
|
if (e.variant === "underline") {
|
|
2674
|
-
const
|
|
2675
|
-
return [k,
|
|
2835
|
+
const L = w ? `dk:border-b-2 ${s[e.color].underline}` : "dk:border-b-2 dk:border-transparent dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200 dk:hover:border-zinc-300 dk:dark:hover:border-zinc-600";
|
|
2836
|
+
return [k, f, L, l, u].join(" ");
|
|
2676
2837
|
}
|
|
2677
2838
|
if (e.variant === "pills") {
|
|
2678
|
-
const
|
|
2679
|
-
return [k,
|
|
2839
|
+
const L = w ? `dk:rounded-lg ${s[e.color].pills}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200";
|
|
2840
|
+
return [k, f, L, l, u].join(" ");
|
|
2680
2841
|
}
|
|
2681
|
-
const $ = w ? `dk:rounded-lg ${
|
|
2682
|
-
return [k,
|
|
2842
|
+
const $ = w ? `dk:rounded-lg ${s[e.color].boxed}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-black/5 dk:dark:hover:bg-white/5 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200", M = e.fullWidth ? "dk:flex-1 dk:text-center dk:justify-center" : "";
|
|
2843
|
+
return [k, f, $, l, u, M].join(" ");
|
|
2683
2844
|
}
|
|
2684
2845
|
const C = o(() => "dk:ml-1 dk:inline-flex dk:items-center dk:justify-center dk:rounded-full dk:bg-current/15 dk:text-current dk:text-[10px] dk:font-semibold dk:px-1.5 dk:py-px dk:leading-none"), D = o(() => [{ sm: "dk:pt-3", md: "dk:pt-4", lg: "dk:pt-5" }[e.size], "dk:outline-none"].join(" "));
|
|
2685
|
-
return (
|
|
2686
|
-
class:
|
|
2846
|
+
return (v, p) => (t(), a("div", {
|
|
2847
|
+
class: n(g.value)
|
|
2687
2848
|
}, [
|
|
2688
|
-
|
|
2689
|
-
class:
|
|
2849
|
+
c("div", {
|
|
2850
|
+
class: n(h.value),
|
|
2690
2851
|
role: "tablist",
|
|
2691
2852
|
"aria-label": d.ariaLabel
|
|
2692
2853
|
}, [
|
|
2693
|
-
(t(!0), a(
|
|
2854
|
+
(t(!0), a(A, null, F(d.tabs, (k) => (t(), a("button", {
|
|
2694
2855
|
key: k.value,
|
|
2695
2856
|
type: "button",
|
|
2696
|
-
id: `tab-${R(
|
|
2697
|
-
"aria-controls": `panel-${R(
|
|
2857
|
+
id: `tab-${R(m)}-${k.value}`,
|
|
2858
|
+
"aria-controls": `panel-${R(m)}-${k.value}`,
|
|
2698
2859
|
"aria-selected": d.modelValue === k.value,
|
|
2699
2860
|
disabled: k.disabled,
|
|
2700
2861
|
role: "tab",
|
|
2701
|
-
class:
|
|
2702
|
-
onClick: (
|
|
2703
|
-
onKeydown: (
|
|
2862
|
+
class: n(x(k.value, k.disabled)),
|
|
2863
|
+
onClick: (f) => i(k.value, k.disabled),
|
|
2864
|
+
onKeydown: (f) => z(f, k.value)
|
|
2704
2865
|
}, [
|
|
2705
|
-
k.icon ? (t(), a("span",
|
|
2706
|
-
|
|
2866
|
+
k.icon ? (t(), a("span", Rd, j(k.icon), 1)) : S("", !0),
|
|
2867
|
+
I(" " + j(k.label) + " ", 1),
|
|
2707
2868
|
k.badge !== void 0 ? (t(), a("span", {
|
|
2708
2869
|
key: 1,
|
|
2709
|
-
class:
|
|
2870
|
+
class: n(C.value)
|
|
2710
2871
|
}, j(k.badge), 3)) : S("", !0)
|
|
2711
|
-
], 42,
|
|
2712
|
-
], 10,
|
|
2713
|
-
(t(!0), a(
|
|
2872
|
+
], 42, Zd))), 128))
|
|
2873
|
+
], 10, Yd),
|
|
2874
|
+
(t(!0), a(A, null, F(d.tabs, (k) => (t(), a("div", {
|
|
2714
2875
|
key: k.value,
|
|
2715
|
-
id: `panel-${R(
|
|
2716
|
-
"aria-labelledby": `tab-${R(
|
|
2876
|
+
id: `panel-${R(m)}-${k.value}`,
|
|
2877
|
+
"aria-labelledby": `tab-${R(m)}-${k.value}`,
|
|
2717
2878
|
role: "tabpanel",
|
|
2718
2879
|
tabindex: d.modelValue === k.value ? 0 : -1,
|
|
2719
2880
|
hidden: d.modelValue !== k.value,
|
|
2720
|
-
class:
|
|
2881
|
+
class: n(D.value)
|
|
2721
2882
|
}, [
|
|
2722
|
-
|
|
2723
|
-
], 10,
|
|
2883
|
+
T(v.$slots, k.value)
|
|
2884
|
+
], 10, et))), 128))
|
|
2724
2885
|
], 2));
|
|
2725
2886
|
}
|
|
2726
|
-
}),
|
|
2887
|
+
}), ke = ze({ toasts: [] });
|
|
2727
2888
|
function re(d) {
|
|
2728
2889
|
const r = Math.random().toString(36).slice(2, 10), e = {
|
|
2729
2890
|
id: r,
|
|
@@ -2734,35 +2895,35 @@ function re(d) {
|
|
|
2734
2895
|
closable: d.closable ?? !0,
|
|
2735
2896
|
icon: d.icon
|
|
2736
2897
|
};
|
|
2737
|
-
return
|
|
2898
|
+
return ke.toasts.push(e), e.duration > 0 && setTimeout(() => Ce(r), e.duration), r;
|
|
2738
2899
|
}
|
|
2739
2900
|
function Ce(d) {
|
|
2740
|
-
const r =
|
|
2741
|
-
r !== -1 &&
|
|
2901
|
+
const r = ke.toasts.findIndex((e) => e.id === d);
|
|
2902
|
+
r !== -1 && ke.toasts.splice(r, 1);
|
|
2742
2903
|
}
|
|
2743
|
-
function
|
|
2744
|
-
|
|
2904
|
+
function dt() {
|
|
2905
|
+
ke.toasts.splice(0);
|
|
2745
2906
|
}
|
|
2746
|
-
function
|
|
2907
|
+
function tt() {
|
|
2747
2908
|
return {
|
|
2748
|
-
toasts:
|
|
2909
|
+
toasts: Ie(ke.toasts),
|
|
2749
2910
|
add: re,
|
|
2750
2911
|
remove: Ce,
|
|
2751
|
-
clear:
|
|
2912
|
+
clear: dt,
|
|
2752
2913
|
success: (d, r) => re({ ...r, message: d, color: "success" }),
|
|
2753
2914
|
error: (d, r) => re({ ...r, message: d, color: "danger" }),
|
|
2754
2915
|
warning: (d, r) => re({ ...r, message: d, color: "warning" }),
|
|
2755
2916
|
info: (d, r) => re({ ...r, message: d, color: "primary" })
|
|
2756
2917
|
};
|
|
2757
2918
|
}
|
|
2758
|
-
const
|
|
2919
|
+
const rt = {
|
|
2759
2920
|
key: 0,
|
|
2760
2921
|
"aria-hidden": "true",
|
|
2761
2922
|
class: "dk:flex-shrink-0 dk:text-lg"
|
|
2762
|
-
},
|
|
2923
|
+
}, at = { class: "dk:flex-1 dk:min-w-0" }, ot = {
|
|
2763
2924
|
key: 0,
|
|
2764
2925
|
class: "dk:text-sm dk:font-semibold dk:leading-snug"
|
|
2765
|
-
},
|
|
2926
|
+
}, kt = ["onClick"], nt = "dk:flex-shrink-0 dk:flex dk:items-center dk:justify-center dk:w-5 dk:h-5 dk:rounded dk:text-current dk:opacity-70 dk:hover:opacity-100 dk:transition-opacity dk:text-base dk:leading-none dk:outline-none dk:ring-1 dk:ring-current/30 dk:focus-visible:ring-2", qt = /* @__PURE__ */ P({
|
|
2766
2927
|
__name: "DuiToast",
|
|
2767
2928
|
props: {
|
|
2768
2929
|
position: { default: "top-right" },
|
|
@@ -2770,7 +2931,7 @@ const dt = {
|
|
|
2770
2931
|
zIndex: { default: 9999 }
|
|
2771
2932
|
},
|
|
2772
2933
|
setup(d) {
|
|
2773
|
-
const r = d, { toasts: e, remove:
|
|
2934
|
+
const r = d, { toasts: e, remove: b } = tt(), m = o(() => e.slice(0, r.maxToasts)), i = {
|
|
2774
2935
|
"top-right": "dk:top-4 dk:right-4 dk:items-end",
|
|
2775
2936
|
"top-left": "dk:top-4 dk:left-4 dk:items-start",
|
|
2776
2937
|
"top-center": "dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center",
|
|
@@ -2779,16 +2940,16 @@ const dt = {
|
|
|
2779
2940
|
"bottom-center": "dk:bottom-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center"
|
|
2780
2941
|
}, z = o(() => [
|
|
2781
2942
|
"dk:fixed dk:pointer-events-none",
|
|
2782
|
-
|
|
2943
|
+
i[r.position],
|
|
2783
2944
|
`dk:z-[${r.zIndex}]`
|
|
2784
|
-
].join(" ")), y = o(() => "dk:relative dk:flex dk:flex-col dk:gap-2 dk:w-80 dk:max-w-[calc(100vw-2rem)]"),
|
|
2945
|
+
].join(" ")), y = o(() => "dk:relative dk:flex dk:flex-col dk:gap-2 dk:w-80 dk:max-w-[calc(100vw-2rem)]"), s = {
|
|
2785
2946
|
neutral: "dk:bg-zinc-800 dk:dark:bg-zinc-700 dk:text-white dk:border-zinc-600",
|
|
2786
2947
|
primary: "dk:bg-slate-700 dk:dark:bg-slate-700 dk:text-white dk:border-slate-500",
|
|
2787
2948
|
secondary: "dk:bg-pink-600 dk:dark:bg-pink-700 dk:text-white dk:border-pink-400",
|
|
2788
2949
|
success: "dk:bg-emerald-600 dk:dark:bg-emerald-700 dk:text-white dk:border-emerald-400",
|
|
2789
2950
|
warning: "dk:bg-amber-600 dk:dark:bg-amber-700 dk:text-white dk:border-amber-400",
|
|
2790
2951
|
danger: "dk:bg-rose-600 dk:dark:bg-rose-700 dk:text-white dk:border-rose-400"
|
|
2791
|
-
},
|
|
2952
|
+
}, g = {
|
|
2792
2953
|
neutral: "dk:bg-zinc-300",
|
|
2793
2954
|
primary: "dk:bg-slate-300",
|
|
2794
2955
|
secondary: "dk:bg-pink-200",
|
|
@@ -2796,55 +2957,55 @@ const dt = {
|
|
|
2796
2957
|
warning: "dk:bg-amber-200",
|
|
2797
2958
|
danger: "dk:bg-rose-200"
|
|
2798
2959
|
};
|
|
2799
|
-
function
|
|
2960
|
+
function h(C) {
|
|
2800
2961
|
return [
|
|
2801
2962
|
"dk:pointer-events-auto dk:flex dk:items-start dk:gap-3",
|
|
2802
2963
|
"dk:rounded-xl dk:border dk:px-4 dk:py-3 dk:shadow-xl",
|
|
2803
|
-
|
|
2964
|
+
s[C]
|
|
2804
2965
|
].join(" ");
|
|
2805
2966
|
}
|
|
2806
|
-
function
|
|
2807
|
-
return ["dk:flex-shrink-0 dk:w-2 dk:h-2 dk:rounded-full dk:mt-1",
|
|
2967
|
+
function x(C) {
|
|
2968
|
+
return ["dk:flex-shrink-0 dk:w-2 dk:h-2 dk:rounded-full dk:mt-1", g[C]].join(" ");
|
|
2808
2969
|
}
|
|
2809
|
-
return (C, D) => (t(),
|
|
2810
|
-
|
|
2811
|
-
class:
|
|
2970
|
+
return (C, D) => (t(), O(he, { to: "body" }, [
|
|
2971
|
+
c("div", {
|
|
2972
|
+
class: n(z.value),
|
|
2812
2973
|
"aria-live": "polite",
|
|
2813
2974
|
"aria-atomic": "false"
|
|
2814
2975
|
}, [
|
|
2815
|
-
de(
|
|
2976
|
+
de(Ae, {
|
|
2816
2977
|
tag: "div",
|
|
2817
|
-
class:
|
|
2978
|
+
class: n(y.value),
|
|
2818
2979
|
"enter-active-class": "dk:transition-all dk:duration-300 dk:ease-out",
|
|
2819
2980
|
"leave-active-class": "dk:transition-all dk:duration-200 dk:ease-in dk:absolute dk:w-full",
|
|
2820
2981
|
"enter-from-class": "dk:opacity-0 dk:translate-y-2 dk:scale-95",
|
|
2821
2982
|
"leave-to-class": "dk:opacity-0 dk:scale-95",
|
|
2822
2983
|
"move-class": "dk:transition-all dk:duration-300"
|
|
2823
2984
|
}, {
|
|
2824
|
-
default:
|
|
2825
|
-
(t(!0), a(
|
|
2826
|
-
key:
|
|
2985
|
+
default: W(() => [
|
|
2986
|
+
(t(!0), a(A, null, F(m.value, (v) => (t(), a("div", {
|
|
2987
|
+
key: v.id,
|
|
2827
2988
|
role: "alert",
|
|
2828
|
-
class:
|
|
2989
|
+
class: n(h(v.color))
|
|
2829
2990
|
}, [
|
|
2830
|
-
|
|
2991
|
+
v.icon ? (t(), a("span", rt, j(v.icon), 1)) : (t(), a("span", {
|
|
2831
2992
|
key: 1,
|
|
2832
|
-
class:
|
|
2993
|
+
class: n(x(v.color)),
|
|
2833
2994
|
"aria-hidden": "true"
|
|
2834
2995
|
}, null, 2)),
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
class:
|
|
2839
|
-
}, j(
|
|
2996
|
+
c("div", at, [
|
|
2997
|
+
v.title ? (t(), a("p", ot, j(v.title), 1)) : S("", !0),
|
|
2998
|
+
c("p", {
|
|
2999
|
+
class: n(["dk:text-sm dk:leading-snug", { "dk:opacity-80": v.title }])
|
|
3000
|
+
}, j(v.message), 3)
|
|
2840
3001
|
]),
|
|
2841
|
-
|
|
3002
|
+
v.closable ? (t(), a("button", {
|
|
2842
3003
|
key: 2,
|
|
2843
3004
|
type: "button",
|
|
2844
|
-
class:
|
|
3005
|
+
class: n(nt),
|
|
2845
3006
|
"aria-label": "Cerrar notificacion",
|
|
2846
|
-
onClick: (
|
|
2847
|
-
}, " × ", 8,
|
|
3007
|
+
onClick: (p) => R(b)(v.id)
|
|
3008
|
+
}, " × ", 8, kt)) : S("", !0)
|
|
2848
3009
|
], 2))), 128))
|
|
2849
3010
|
]),
|
|
2850
3011
|
_: 1
|
|
@@ -2852,23 +3013,23 @@ const dt = {
|
|
|
2852
3013
|
], 2)
|
|
2853
3014
|
]));
|
|
2854
3015
|
}
|
|
2855
|
-
}),
|
|
3016
|
+
}), st = {
|
|
2856
3017
|
key: 0,
|
|
2857
3018
|
class: "dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"
|
|
2858
|
-
},
|
|
3019
|
+
}, lt = { class: "dk:hidden dk:md:flex dk:items-center dk:flex-1" }, it = {
|
|
2859
3020
|
key: 0,
|
|
2860
3021
|
class: "dk:relative dk:group"
|
|
2861
|
-
},
|
|
3022
|
+
}, ct = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-56 dk:py-2 dk:mt-1 dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:bg-none dk:dark:bg-zinc-900 dk:backdrop-blur-md dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-zinc-800 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50" }, ut = {
|
|
2862
3023
|
key: 1,
|
|
2863
3024
|
class: "dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"
|
|
2864
|
-
},
|
|
3025
|
+
}, bt = {
|
|
2865
3026
|
class: "dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",
|
|
2866
3027
|
fill: "none",
|
|
2867
3028
|
viewBox: "0 0 24 24"
|
|
2868
|
-
},
|
|
3029
|
+
}, pt = ["d"], gt = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:bg-none dk:dark:bg-zinc-900 dk:backdrop-blur-md dk:border-t dk:border-white/40 dk:dark:border-zinc-800 dk:shadow-lg dk:dark:shadow-black/30 dk:z-40" }, mt = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, ft = { key: 0 }, ht = ["onClick"], xt = { class: "dk:flex dk:items-center" }, vt = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, yt = {
|
|
2869
3030
|
key: 0,
|
|
2870
3031
|
class: "dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"
|
|
2871
|
-
},
|
|
3032
|
+
}, Ht = /* @__PURE__ */ P({
|
|
2872
3033
|
__name: "DuiNavbar",
|
|
2873
3034
|
props: {
|
|
2874
3035
|
items: { default: () => [] },
|
|
@@ -2877,18 +3038,18 @@ const dt = {
|
|
|
2877
3038
|
underlineColor: { default: "primary" }
|
|
2878
3039
|
},
|
|
2879
3040
|
setup(d) {
|
|
2880
|
-
const r = d, e =
|
|
2881
|
-
const w =
|
|
2882
|
-
return
|
|
3041
|
+
const r = d, e = K(!1), b = ze({}), m = (f) => oe(f.to), i = (f) => {
|
|
3042
|
+
const w = m(f);
|
|
3043
|
+
return ue(f.to, w);
|
|
2883
3044
|
}, z = () => {
|
|
2884
3045
|
e.value = !e.value;
|
|
2885
3046
|
}, y = () => {
|
|
2886
|
-
e.value = !1, Object.keys(
|
|
2887
|
-
|
|
3047
|
+
e.value = !1, Object.keys(b).forEach((f) => {
|
|
3048
|
+
b[f] = !1;
|
|
2888
3049
|
});
|
|
2889
|
-
},
|
|
2890
|
-
|
|
2891
|
-
},
|
|
3050
|
+
}, s = (f) => {
|
|
3051
|
+
b[f] = !b[f];
|
|
3052
|
+
}, g = {
|
|
2892
3053
|
s: {
|
|
2893
3054
|
height: "dk:h-12",
|
|
2894
3055
|
padding: "dk:px-3",
|
|
@@ -2907,8 +3068,8 @@ const dt = {
|
|
|
2907
3068
|
text: "dk:text-lg",
|
|
2908
3069
|
itemPadding: "dk:px-4 dk:py-3"
|
|
2909
3070
|
}
|
|
2910
|
-
},
|
|
2911
|
-
const
|
|
3071
|
+
}, h = o(() => {
|
|
3072
|
+
const f = g[r.size];
|
|
2912
3073
|
return [
|
|
2913
3074
|
"dk:relative",
|
|
2914
3075
|
"dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
@@ -2921,11 +3082,11 @@ const dt = {
|
|
|
2921
3082
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
2922
3083
|
"dk:dark:before:hidden",
|
|
2923
3084
|
"dk:flex dk:items-center dk:w-full dk:gap-4",
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
3085
|
+
f.height,
|
|
3086
|
+
f.padding,
|
|
3087
|
+
f.text
|
|
2927
3088
|
].join(" ");
|
|
2928
|
-
}),
|
|
3089
|
+
}), x = o(() => [
|
|
2929
3090
|
"dk:flex dk:items-center dk:space-x-1 dk:flex-1",
|
|
2930
3091
|
{
|
|
2931
3092
|
left: "dk:justify-start",
|
|
@@ -2933,7 +3094,7 @@ const dt = {
|
|
|
2933
3094
|
right: "dk:justify-end"
|
|
2934
3095
|
}[r.itemsAlignment]
|
|
2935
3096
|
].join(" ")), C = () => {
|
|
2936
|
-
const
|
|
3097
|
+
const f = {
|
|
2937
3098
|
neutral: "dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",
|
|
2938
3099
|
primary: "dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",
|
|
2939
3100
|
secondary: "dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",
|
|
@@ -2941,13 +3102,13 @@ const dt = {
|
|
|
2941
3102
|
danger: "dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",
|
|
2942
3103
|
warning: "dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"
|
|
2943
3104
|
};
|
|
2944
|
-
return
|
|
3105
|
+
return f[r.underlineColor] || f.primary;
|
|
2945
3106
|
}, D = o(() => {
|
|
2946
|
-
const
|
|
2947
|
-
return (
|
|
2948
|
-
const $ =
|
|
3107
|
+
const f = g[r.size], w = C();
|
|
3108
|
+
return (l, u = !0) => {
|
|
3109
|
+
const $ = l.active ?? !1, M = u ? "dk:pl-3" : "dk:pl-2", L = "dk:pr-3", J = u ? "dk:pl-2" : "dk:pl-1", Y = "dk:pr-2", Z = u ? "dk:pl-4" : "dk:pl-3", be = "dk:pr-4";
|
|
2949
3110
|
let ee = "";
|
|
2950
|
-
return
|
|
3111
|
+
return f.itemPadding.includes("px-2") ? ee = `${J} ${Y} dk:py-1.5` : f.itemPadding.includes("px-4") ? ee = `${Z} ${be} dk:py-3` : ee = `${M} ${L} dk:py-2`, [
|
|
2951
3112
|
// Block style with animated underline
|
|
2952
3113
|
"dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
|
|
2953
3114
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
@@ -2962,13 +3123,13 @@ const dt = {
|
|
|
2962
3123
|
ee
|
|
2963
3124
|
].join(" ");
|
|
2964
3125
|
};
|
|
2965
|
-
}),
|
|
3126
|
+
}), v = o(() => [
|
|
2966
3127
|
"dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm dk:whitespace-nowrap",
|
|
2967
3128
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-white/50 dk:dark:hover:bg-white/10",
|
|
2968
3129
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
2969
3130
|
"dk:transition-all dk:duration-200 dk:no-underline",
|
|
2970
3131
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
|
|
2971
|
-
].join(" ")),
|
|
3132
|
+
].join(" ")), p = o(() => [
|
|
2972
3133
|
"dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
2973
3134
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
|
|
2974
3135
|
"dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
|
|
@@ -2982,36 +3143,36 @@ const dt = {
|
|
|
2982
3143
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500",
|
|
2983
3144
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
2984
3145
|
].join(" "));
|
|
2985
|
-
return (
|
|
2986
|
-
class:
|
|
3146
|
+
return (f, w) => (t(), a("nav", {
|
|
3147
|
+
class: n(h.value)
|
|
2987
3148
|
}, [
|
|
2988
|
-
|
|
2989
|
-
|
|
3149
|
+
f.$slots.brand ? (t(), a("div", st, [
|
|
3150
|
+
T(f.$slots, "brand")
|
|
2990
3151
|
])) : S("", !0),
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
class:
|
|
3152
|
+
c("div", lt, [
|
|
3153
|
+
c("div", {
|
|
3154
|
+
class: n(x.value)
|
|
2994
3155
|
}, [
|
|
2995
|
-
(t(!0), a(
|
|
2996
|
-
key:
|
|
3156
|
+
(t(!0), a(A, null, F(d.items, (l) => (t(), a(A, {
|
|
3157
|
+
key: l.label
|
|
2997
3158
|
}, [
|
|
2998
|
-
|
|
2999
|
-
(t(),
|
|
3000
|
-
class: D.value(
|
|
3159
|
+
l.children && l.children.length > 0 ? (t(), a("div", it, [
|
|
3160
|
+
(t(), O(Q(m(l)), E({ ref_for: !0 }, i(l), {
|
|
3161
|
+
class: D.value(l, !0)
|
|
3001
3162
|
}), {
|
|
3002
|
-
default:
|
|
3003
|
-
|
|
3163
|
+
default: W(() => [
|
|
3164
|
+
l.icon ? (t(), a("i", {
|
|
3004
3165
|
key: 0,
|
|
3005
|
-
class:
|
|
3166
|
+
class: n([l.icon, "dk:mr-2"])
|
|
3006
3167
|
}, null, 2)) : S("", !0),
|
|
3007
|
-
|
|
3008
|
-
w[0] || (w[0] =
|
|
3168
|
+
I(" " + j(l.label) + " ", 1),
|
|
3169
|
+
w[0] || (w[0] = c("svg", {
|
|
3009
3170
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
3010
3171
|
fill: "none",
|
|
3011
3172
|
stroke: "currentColor",
|
|
3012
3173
|
viewBox: "0 0 24 24"
|
|
3013
3174
|
}, [
|
|
3014
|
-
|
|
3175
|
+
c("path", {
|
|
3015
3176
|
"stroke-linecap": "round",
|
|
3016
3177
|
"stroke-linejoin": "round",
|
|
3017
3178
|
"stroke-width": "2",
|
|
@@ -3021,156 +3182,157 @@ const dt = {
|
|
|
3021
3182
|
]),
|
|
3022
3183
|
_: 2
|
|
3023
3184
|
}, 1040, ["class"])),
|
|
3024
|
-
|
|
3025
|
-
(t(!0), a(
|
|
3026
|
-
key:
|
|
3027
|
-
}, { ref_for: !0 }, u
|
|
3028
|
-
default:
|
|
3029
|
-
|
|
3185
|
+
c("div", ct, [
|
|
3186
|
+
(t(!0), a(A, null, F(l.children, (u) => (t(), O(Q(m(u)), E({
|
|
3187
|
+
key: u.label
|
|
3188
|
+
}, { ref_for: !0 }, i(u), { class: v.value }), {
|
|
3189
|
+
default: W(() => [
|
|
3190
|
+
u.icon ? (t(), a("i", {
|
|
3030
3191
|
key: 0,
|
|
3031
|
-
class:
|
|
3192
|
+
class: n([u.icon, "dk:mr-2"])
|
|
3032
3193
|
}, null, 2)) : S("", !0),
|
|
3033
|
-
|
|
3194
|
+
I(" " + j(u.label), 1)
|
|
3034
3195
|
]),
|
|
3035
3196
|
_: 2
|
|
3036
3197
|
}, 1040, ["class"]))), 128))
|
|
3037
3198
|
])
|
|
3038
|
-
])) : (t(),
|
|
3199
|
+
])) : (t(), O(Q(m(l)), E({
|
|
3039
3200
|
key: 1,
|
|
3040
3201
|
ref_for: !0
|
|
3041
|
-
},
|
|
3042
|
-
class: D.value(
|
|
3202
|
+
}, i(l), {
|
|
3203
|
+
class: D.value(l, !1)
|
|
3043
3204
|
}), {
|
|
3044
|
-
default:
|
|
3045
|
-
|
|
3205
|
+
default: W(() => [
|
|
3206
|
+
l.icon ? (t(), a("i", {
|
|
3046
3207
|
key: 0,
|
|
3047
|
-
class:
|
|
3208
|
+
class: n([l.icon, "dk:mr-2"])
|
|
3048
3209
|
}, null, 2)) : S("", !0),
|
|
3049
|
-
|
|
3210
|
+
I(" " + j(l.label), 1)
|
|
3050
3211
|
]),
|
|
3051
3212
|
_: 2
|
|
3052
3213
|
}, 1040, ["class"]))
|
|
3053
3214
|
], 64))), 128))
|
|
3054
3215
|
], 2)
|
|
3055
3216
|
]),
|
|
3056
|
-
|
|
3057
|
-
|
|
3217
|
+
f.$slots.actions ? (t(), a("div", ut, [
|
|
3218
|
+
T(f.$slots, "actions")
|
|
3058
3219
|
])) : S("", !0),
|
|
3059
|
-
|
|
3220
|
+
c("button", {
|
|
3060
3221
|
type: "button",
|
|
3061
3222
|
onClick: z,
|
|
3062
3223
|
class: "dk:md:hidden dk:ml-auto dk:flex-shrink-0 dk:p-2 dk:rounded-md dk:hover:bg-gray-100 dk:dark:hover:bg-gray-700 dk:transition-colors"
|
|
3063
3224
|
}, [
|
|
3064
|
-
(t(), a("svg",
|
|
3065
|
-
|
|
3225
|
+
(t(), a("svg", bt, [
|
|
3226
|
+
c("path", {
|
|
3066
3227
|
"stroke-linecap": "round",
|
|
3067
3228
|
"stroke-linejoin": "round",
|
|
3068
3229
|
"stroke-width": "2",
|
|
3069
3230
|
d: e.value ? "M6 18L18 6M6 6l12 12" : "M4 6h16M4 12h16M4 18h16"
|
|
3070
|
-
}, null, 8,
|
|
3231
|
+
}, null, 8, pt)
|
|
3071
3232
|
]))
|
|
3072
3233
|
]),
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
(t(!0), a(
|
|
3076
|
-
key:
|
|
3234
|
+
pe(c("div", gt, [
|
|
3235
|
+
c("div", mt, [
|
|
3236
|
+
(t(!0), a(A, null, F(d.items, (l) => (t(), a(A, {
|
|
3237
|
+
key: l.label
|
|
3077
3238
|
}, [
|
|
3078
|
-
|
|
3079
|
-
|
|
3239
|
+
l.children && l.children.length > 0 ? (t(), a("div", ft, [
|
|
3240
|
+
c("button", {
|
|
3080
3241
|
type: "button",
|
|
3081
|
-
onClick: (
|
|
3082
|
-
class:
|
|
3242
|
+
onClick: (u) => s(l.label),
|
|
3243
|
+
class: n([p.value, "dk:justify-between"])
|
|
3083
3244
|
}, [
|
|
3084
|
-
|
|
3085
|
-
|
|
3245
|
+
c("div", xt, [
|
|
3246
|
+
l.icon ? (t(), a("i", {
|
|
3086
3247
|
key: 0,
|
|
3087
|
-
class:
|
|
3248
|
+
class: n([l.icon, "dk:mr-2"])
|
|
3088
3249
|
}, null, 2)) : S("", !0),
|
|
3089
|
-
|
|
3250
|
+
I(" " + j(l.label), 1)
|
|
3090
3251
|
]),
|
|
3091
3252
|
(t(), a("svg", {
|
|
3092
|
-
class:
|
|
3253
|
+
class: n(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", b[l.label] ? "dk:rotate-180" : ""]),
|
|
3093
3254
|
fill: "none",
|
|
3094
3255
|
stroke: "currentColor",
|
|
3095
3256
|
viewBox: "0 0 24 24"
|
|
3096
3257
|
}, [...w[1] || (w[1] = [
|
|
3097
|
-
|
|
3258
|
+
c("path", {
|
|
3098
3259
|
"stroke-linecap": "round",
|
|
3099
3260
|
"stroke-linejoin": "round",
|
|
3100
3261
|
"stroke-width": "2",
|
|
3101
3262
|
d: "M19 9l-7 7-7-7"
|
|
3102
3263
|
}, null, -1)
|
|
3103
3264
|
])], 2))
|
|
3104
|
-
], 10,
|
|
3105
|
-
|
|
3106
|
-
(t(!0), a(
|
|
3107
|
-
key:
|
|
3108
|
-
}, { ref_for: !0 }, u
|
|
3265
|
+
], 10, ht),
|
|
3266
|
+
pe(c("div", vt, [
|
|
3267
|
+
(t(!0), a(A, null, F(l.children, (u) => (t(), O(Q(m(u)), E({
|
|
3268
|
+
key: u.label
|
|
3269
|
+
}, { ref_for: !0 }, i(u), {
|
|
3109
3270
|
class: k.value,
|
|
3110
3271
|
onClick: y
|
|
3111
3272
|
}), {
|
|
3112
|
-
default:
|
|
3113
|
-
|
|
3273
|
+
default: W(() => [
|
|
3274
|
+
u.icon ? (t(), a("i", {
|
|
3114
3275
|
key: 0,
|
|
3115
|
-
class:
|
|
3276
|
+
class: n([u.icon, "dk:mr-2"])
|
|
3116
3277
|
}, null, 2)) : S("", !0),
|
|
3117
|
-
|
|
3278
|
+
I(" " + j(u.label), 1)
|
|
3118
3279
|
]),
|
|
3119
3280
|
_: 2
|
|
3120
3281
|
}, 1040, ["class"]))), 128))
|
|
3121
3282
|
], 512), [
|
|
3122
|
-
[
|
|
3283
|
+
[ge, b[l.label]]
|
|
3123
3284
|
])
|
|
3124
|
-
])) : (t(),
|
|
3285
|
+
])) : (t(), O(Q(m(l)), E({
|
|
3125
3286
|
key: 1,
|
|
3126
3287
|
ref_for: !0
|
|
3127
|
-
},
|
|
3128
|
-
class:
|
|
3288
|
+
}, i(l), {
|
|
3289
|
+
class: p.value,
|
|
3129
3290
|
onClick: y
|
|
3130
3291
|
}), {
|
|
3131
|
-
default:
|
|
3132
|
-
|
|
3292
|
+
default: W(() => [
|
|
3293
|
+
l.icon ? (t(), a("i", {
|
|
3133
3294
|
key: 0,
|
|
3134
|
-
class:
|
|
3295
|
+
class: n([l.icon, "dk:mr-2"])
|
|
3135
3296
|
}, null, 2)) : S("", !0),
|
|
3136
|
-
|
|
3297
|
+
I(" " + j(l.label), 1)
|
|
3137
3298
|
]),
|
|
3138
3299
|
_: 2
|
|
3139
3300
|
}, 1040, ["class"]))
|
|
3140
3301
|
], 64))), 128)),
|
|
3141
|
-
|
|
3142
|
-
|
|
3302
|
+
f.$slots.actions ? (t(), a("div", yt, [
|
|
3303
|
+
T(f.$slots, "actions")
|
|
3143
3304
|
])) : S("", !0)
|
|
3144
3305
|
])
|
|
3145
3306
|
], 512), [
|
|
3146
|
-
[
|
|
3307
|
+
[ge, e.value]
|
|
3147
3308
|
])
|
|
3148
3309
|
], 2));
|
|
3149
3310
|
}
|
|
3150
3311
|
});
|
|
3151
3312
|
export {
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
Ct as
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3313
|
+
At as DuiAccordion,
|
|
3314
|
+
Tt as DuiAction,
|
|
3315
|
+
Dt as DuiAlert,
|
|
3316
|
+
Wt as DuiBadge,
|
|
3317
|
+
ie as DuiButton,
|
|
3318
|
+
Pt as DuiCard,
|
|
3319
|
+
Vt as DuiCheckbox,
|
|
3320
|
+
Et as DuiDropdown,
|
|
3321
|
+
Ot as DuiDropdownItem,
|
|
3322
|
+
Nt as DuiDropdownSeparator,
|
|
3323
|
+
zt as DuiFile,
|
|
3324
|
+
Ct as DuiInput,
|
|
3325
|
+
jt as DuiLabel,
|
|
3326
|
+
Lt as DuiModal,
|
|
3327
|
+
Ht as DuiNavbar,
|
|
3328
|
+
Ft as DuiPagination,
|
|
3329
|
+
Bt as DuiRadio,
|
|
3330
|
+
St as DuiSelect,
|
|
3331
|
+
Ut as DuiSkeleton,
|
|
3332
|
+
Mt as DuiSwitch,
|
|
3333
|
+
_t as DuiTable,
|
|
3334
|
+
Kt as DuiTabs,
|
|
3335
|
+
$t as DuiTextarea,
|
|
3336
|
+
qt as DuiToast,
|
|
3337
|
+
It as DuiTooltip
|
|
3176
3338
|
};
|