@stlhorizon/vue-ui 1.2.1 → 1.2.2
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/README.md +1 -0
- package/dist/index.esm.js +619 -579
- package/dist/index.js +32 -12
- package/dist/src/App.vue.d.ts.map +1 -1
- package/dist/src/components/Accordion.vue.d.ts +2 -2
- package/dist/src/components/AccordionItem.vue.d.ts +2 -2
- package/dist/src/components/Avatar.vue.d.ts +2 -2
- package/dist/src/components/Badge.vue.d.ts +2 -2
- package/dist/src/components/Button.vue.d.ts +4 -4
- package/dist/src/components/ButtonGroup.vue.d.ts +2 -2
- package/dist/src/components/Card.vue.d.ts +2 -2
- package/dist/src/components/Checkbox.vue.d.ts +10 -10
- package/dist/src/components/DataTable.vue.d.ts +2 -2
- package/dist/src/components/DataTableCell.vue.d.ts +2 -2
- package/dist/src/components/DatePicker.vue.d.ts +4 -4
- package/dist/src/components/Divider.vue.d.ts +2 -2
- package/dist/src/components/DropdownItem.vue.d.ts +2 -2
- package/dist/src/components/FormField.vue.d.ts +8 -8
- package/dist/src/components/Icon.vue.d.ts +2 -2
- package/dist/src/components/Input.vue.d.ts +7 -7
- package/dist/src/components/Label.vue.d.ts +2 -2
- package/dist/src/components/Link.vue.d.ts +12 -12
- package/dist/src/components/ListItem.vue.d.ts +4 -4
- package/dist/src/components/Logo.vue.d.ts +2 -2
- package/dist/src/components/MenuItem.vue.d.ts +2 -2
- package/dist/src/components/ProgressBar.vue.d.ts +4 -4
- package/dist/src/components/Radio.vue.d.ts +4 -4
- package/dist/src/components/Search.vue.d.ts +5 -5
- package/dist/src/components/Select.vue.d.ts +2 -2
- package/dist/src/components/Spinner.vue.d.ts +4 -4
- package/dist/src/components/Switch.vue.d.ts +2 -2
- package/dist/src/components/Text.vue.d.ts +4 -4
- package/dist/src/components/Textarea.vue.d.ts +6 -6
- package/dist/src/components/TimelineItem.vue.d.ts +2 -2
- package/dist/src/components/Toast.vue.d.ts.map +1 -1
- package/dist/src/components/Typography.vue.d.ts +6 -6
- package/dist/src/components/icons.d.ts +12 -0
- package/dist/src/components/icons.d.ts.map +1 -1
- package/dist/src/layouts/ErrorLayout.vue.d.ts +12 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as u, createElementBlock as r, openBlock as a, normalizeClass as c, ref as
|
|
1
|
+
import { computed as u, createElementBlock as r, openBlock as a, normalizeClass as c, ref as H, createBlock as M, toDisplayString as p, unref as D, createCommentVNode as f, renderSlot as h, resolveDynamicComponent as X, createVNode as y, mergeProps as me, createElementVNode as o, useId as be, watch as oe, createTextVNode as N, withCtx as S, normalizeStyle as ce, nextTick as Ce, Transition as ae, Fragment as Q, renderList as K, onMounted as ve, onUnmounted as ye, Teleport as Ve, markRaw as Te, TransitionGroup as Re, withDirectives as xe, vModelText as _e, provide as He, inject as Oe, vShow as Me, createSlots as qe, withModifiers as $e, resolveComponent as G } from "vue";
|
|
2
2
|
import { cva as x } from "class-variance-authority";
|
|
3
3
|
import { clsx as Ee } from "clsx";
|
|
4
4
|
function v(...e) {
|
|
@@ -88,6 +88,39 @@ const Ue = {
|
|
|
88
88
|
},
|
|
89
89
|
x: {
|
|
90
90
|
template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>'
|
|
91
|
+
},
|
|
92
|
+
// Status
|
|
93
|
+
bell: {
|
|
94
|
+
template: `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
95
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
96
|
+
d="M14.25 18.75a2.25 2.25 0 1 1-4.5 0m9-3v-5.25a6.75
|
|
97
|
+
6.75 0 1 0-13.5 0v5.25m13.5 0H3.75" />
|
|
98
|
+
</svg>`
|
|
99
|
+
},
|
|
100
|
+
"alert-triangle": {
|
|
101
|
+
template: `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
102
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
103
|
+
d="M12 9v3.75m0 3.75h.007v.008H12v-.008zM2.697
|
|
104
|
+
16.126c-.866 1.5.217 3.374 1.948
|
|
105
|
+
3.374h14.71c1.73 0 2.813-1.874
|
|
106
|
+
1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898
|
|
107
|
+
0L2.697 16.126z" />
|
|
108
|
+
</svg>`
|
|
109
|
+
},
|
|
110
|
+
"alert-circle": {
|
|
111
|
+
template: `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
112
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
113
|
+
d="M12 9v3.75m0 3.75h.007v.008H12v-.008zM21
|
|
114
|
+
12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z" />
|
|
115
|
+
</svg>`
|
|
116
|
+
},
|
|
117
|
+
loader: {
|
|
118
|
+
template: `<svg class="animate-spin" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
|
|
119
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"></circle>
|
|
120
|
+
<path class="opacity-75" fill="currentColor"
|
|
121
|
+
d="M4 12a8 8 0 018-8v4a4 4 0 00-4
|
|
122
|
+
4H4z" />
|
|
123
|
+
</svg>`
|
|
91
124
|
}
|
|
92
125
|
}, Ze = ["innerHTML", "aria-hidden", "aria-label", "role"], Y = {
|
|
93
126
|
__name: "Icon",
|
|
@@ -150,7 +183,7 @@ const Ue = {
|
|
|
150
183
|
class: String
|
|
151
184
|
},
|
|
152
185
|
setup(e) {
|
|
153
|
-
const s = e, t =
|
|
186
|
+
const s = e, t = H(!1), l = x(
|
|
154
187
|
"relative flex shrink-0 overflow-hidden rounded-full",
|
|
155
188
|
{
|
|
156
189
|
variants: {
|
|
@@ -187,10 +220,10 @@ const Ue = {
|
|
|
187
220
|
"h-5 w-5": s.size === "lg",
|
|
188
221
|
"h-6 w-6": s.size === "xl"
|
|
189
222
|
})
|
|
190
|
-
),
|
|
223
|
+
), b = () => {
|
|
191
224
|
t.value = !0;
|
|
192
225
|
};
|
|
193
|
-
return (
|
|
226
|
+
return (w, C) => (a(), r("div", {
|
|
194
227
|
class: c(n.value)
|
|
195
228
|
}, [
|
|
196
229
|
e.src ? (a(), r("img", {
|
|
@@ -198,7 +231,7 @@ const Ue = {
|
|
|
198
231
|
src: e.src,
|
|
199
232
|
alt: e.alt,
|
|
200
233
|
class: c(i.value),
|
|
201
|
-
onError:
|
|
234
|
+
onError: b
|
|
202
235
|
}, null, 42, Ge)) : e.initials ? (a(), r("span", {
|
|
203
236
|
key: 1,
|
|
204
237
|
class: c(d.value)
|
|
@@ -282,14 +315,14 @@ const Ue = {
|
|
|
282
315
|
md: "w-4 h-4",
|
|
283
316
|
lg: "w-5 h-5"
|
|
284
317
|
}[l.size]]);
|
|
285
|
-
return (
|
|
286
|
-
class: c(D(v)(D(d)({ variant: e.variant, size: e.size, shape: e.shape }),
|
|
318
|
+
return (b, w) => (a(), r("span", {
|
|
319
|
+
class: c(D(v)(D(d)({ variant: e.variant, size: e.size, shape: e.shape }), b.$attrs.class))
|
|
287
320
|
}, [
|
|
288
321
|
e.icon ? (a(), M(X(e.icon), {
|
|
289
322
|
key: 0,
|
|
290
323
|
class: c(m.value)
|
|
291
324
|
}, null, 8, ["class"])) : f("", !0),
|
|
292
|
-
b
|
|
325
|
+
h(b.$slots, "default"),
|
|
293
326
|
e.dismissible ? (a(), r("button", {
|
|
294
327
|
key: 1,
|
|
295
328
|
onClick: i,
|
|
@@ -381,8 +414,8 @@ const Ue = {
|
|
|
381
414
|
d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
|
|
382
415
|
}, null, -1)
|
|
383
416
|
])])) : f("", !0),
|
|
384
|
-
e.loading ? f("", !0) :
|
|
385
|
-
e.loading && e.loadingText ? (a(), r("span", Je, p(e.loadingText), 1)) :
|
|
417
|
+
e.loading ? f("", !0) : h(t.$slots, "icon", { key: 1 }),
|
|
418
|
+
e.loading && e.loadingText ? (a(), r("span", Je, p(e.loadingText), 1)) : h(t.$slots, "default", { key: 3 })
|
|
386
419
|
], 16, Xe));
|
|
387
420
|
}
|
|
388
421
|
}), et = { class: "flex items-center gap-3" }, tt = { class: "relative" }, at = ["id", "checked", "indeterminate", "disabled", "required", "aria-describedby"], st = { class: "flex-1" }, lt = ["for"], ke = {
|
|
@@ -449,23 +482,23 @@ const Ue = {
|
|
|
449
482
|
<path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" />
|
|
450
483
|
</svg>
|
|
451
484
|
`
|
|
452
|
-
}, n = e, i = s, d =
|
|
485
|
+
}, n = e, i = s, d = H(null), m = u(() => n.id || be()), b = u(() => Array.isArray(n.modelValue) ? n.modelValue.includes(n.value) : n.modelValue), w = (B) => {
|
|
453
486
|
const $ = B.target.checked;
|
|
454
487
|
if (Array.isArray(n.modelValue)) {
|
|
455
|
-
const
|
|
488
|
+
const I = [...n.modelValue];
|
|
456
489
|
if ($)
|
|
457
|
-
|
|
490
|
+
I.push(n.value);
|
|
458
491
|
else {
|
|
459
|
-
const P =
|
|
460
|
-
P > -1 &&
|
|
492
|
+
const P = I.indexOf(n.value);
|
|
493
|
+
P > -1 && I.splice(P, 1);
|
|
461
494
|
}
|
|
462
|
-
i("update:modelValue",
|
|
495
|
+
i("update:modelValue", I);
|
|
463
496
|
} else
|
|
464
497
|
i("update:modelValue", $);
|
|
465
498
|
i("change", $);
|
|
466
|
-
},
|
|
499
|
+
}, C = () => {
|
|
467
500
|
!n.disabled && d.value && d.value.click();
|
|
468
|
-
},
|
|
501
|
+
}, j = u(() => {
|
|
469
502
|
if (n.error) return `${m.value}-error`;
|
|
470
503
|
}), T = u(() => ({
|
|
471
504
|
sm: "w-4 h-4",
|
|
@@ -486,18 +519,18 @@ const Ue = {
|
|
|
486
519
|
"cursor-pointer select-none",
|
|
487
520
|
T.value,
|
|
488
521
|
{
|
|
489
|
-
"bg-blue-600 border-blue-600 text-white":
|
|
490
|
-
"bg-red-600 border-red-600 text-white":
|
|
491
|
-
"bg-slate-200 border-slate-300 text-slate-400":
|
|
492
|
-
"bg-white border-slate-300 hover:border-slate-400": !
|
|
493
|
-
"bg-white border-red-300 hover:border-red-400": !
|
|
494
|
-
"bg-slate-50 border-slate-200": !
|
|
522
|
+
"bg-blue-600 border-blue-600 text-white": b.value && !n.disabled && n.variant === "default",
|
|
523
|
+
"bg-red-600 border-red-600 text-white": b.value && !n.disabled && n.variant === "error",
|
|
524
|
+
"bg-slate-200 border-slate-300 text-slate-400": b.value && n.disabled,
|
|
525
|
+
"bg-white border-slate-300 hover:border-slate-400": !b.value && !n.disabled && n.variant === "default",
|
|
526
|
+
"bg-white border-red-300 hover:border-red-400": !b.value && !n.disabled && n.variant === "error",
|
|
527
|
+
"bg-slate-50 border-slate-200": !b.value && n.disabled,
|
|
495
528
|
"cursor-not-allowed": n.disabled,
|
|
496
529
|
"focus-within:ring-2 focus-within:ring-offset-2": !n.disabled,
|
|
497
530
|
"focus-within:ring-blue-500": !n.disabled && n.variant === "default",
|
|
498
531
|
"focus-within:ring-red-500": !n.disabled && n.variant === "error"
|
|
499
532
|
}
|
|
500
|
-
]),
|
|
533
|
+
]), k = u(() => [
|
|
501
534
|
"text-sm font-medium cursor-pointer select-none",
|
|
502
535
|
{
|
|
503
536
|
"text-slate-900": !n.disabled,
|
|
@@ -515,19 +548,19 @@ const Ue = {
|
|
|
515
548
|
ref_key: "checkboxRef",
|
|
516
549
|
ref: d,
|
|
517
550
|
type: "checkbox",
|
|
518
|
-
checked:
|
|
551
|
+
checked: b.value,
|
|
519
552
|
indeterminate: e.indeterminate,
|
|
520
553
|
disabled: e.disabled,
|
|
521
554
|
required: e.required,
|
|
522
555
|
class: c(R.value),
|
|
523
|
-
"aria-describedby":
|
|
524
|
-
onChange:
|
|
556
|
+
"aria-describedby": j.value,
|
|
557
|
+
onChange: w
|
|
525
558
|
}, null, 42, at),
|
|
526
559
|
o("div", {
|
|
527
560
|
class: c(z.value),
|
|
528
|
-
onClick:
|
|
561
|
+
onClick: C
|
|
529
562
|
}, [
|
|
530
|
-
|
|
563
|
+
b.value && !e.indeterminate ? (a(), M(t, {
|
|
531
564
|
key: 0,
|
|
532
565
|
class: "w-3 h-3"
|
|
533
566
|
})) : e.indeterminate ? (a(), M(l, {
|
|
@@ -539,9 +572,9 @@ const Ue = {
|
|
|
539
572
|
o("div", st, [
|
|
540
573
|
o("label", {
|
|
541
574
|
for: m.value,
|
|
542
|
-
class: c(
|
|
575
|
+
class: c(k.value)
|
|
543
576
|
}, [
|
|
544
|
-
|
|
577
|
+
h(B.$slots, "default", {}, () => [
|
|
545
578
|
N(p(e.label), 1)
|
|
546
579
|
])
|
|
547
580
|
], 10, lt),
|
|
@@ -651,7 +684,7 @@ const Ue = {
|
|
|
651
684
|
}, ot = ["aria-label"], it = {
|
|
652
685
|
key: 0,
|
|
653
686
|
class: "sr-only"
|
|
654
|
-
},
|
|
687
|
+
}, je = {
|
|
655
688
|
__name: "Spinner",
|
|
656
689
|
props: {
|
|
657
690
|
size: {
|
|
@@ -762,7 +795,7 @@ const Ue = {
|
|
|
762
795
|
},
|
|
763
796
|
emits: ["load", "error"],
|
|
764
797
|
setup(e, { emit: s }) {
|
|
765
|
-
const t = e, l = s, n =
|
|
798
|
+
const t = e, l = s, n = H(!0), i = H(!1), d = x(
|
|
766
799
|
"relative overflow-hidden bg-muted",
|
|
767
800
|
{
|
|
768
801
|
variants: {
|
|
@@ -777,7 +810,7 @@ const Ue = {
|
|
|
777
810
|
}
|
|
778
811
|
), m = u(
|
|
779
812
|
() => v(d({ aspectRatio: t.aspectRatio }), t.class)
|
|
780
|
-
),
|
|
813
|
+
), b = u(
|
|
781
814
|
() => v(
|
|
782
815
|
"h-full w-full transition-opacity duration-300",
|
|
783
816
|
{
|
|
@@ -790,11 +823,11 @@ const Ue = {
|
|
|
790
823
|
n.value && "opacity-0",
|
|
791
824
|
i.value && "hidden"
|
|
792
825
|
)
|
|
793
|
-
), k = u(
|
|
794
|
-
() => "absolute inset-0 flex items-center justify-center bg-muted"
|
|
795
826
|
), w = u(
|
|
827
|
+
() => "absolute inset-0 flex items-center justify-center bg-muted"
|
|
828
|
+
), C = u(
|
|
796
829
|
() => "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted"
|
|
797
|
-
),
|
|
830
|
+
), j = (R) => {
|
|
798
831
|
n.value = !1, i.value = !1, l("load", R);
|
|
799
832
|
}, T = (R) => {
|
|
800
833
|
n.value = !1, i.value = !0, l("error", R);
|
|
@@ -805,23 +838,23 @@ const Ue = {
|
|
|
805
838
|
o("img", {
|
|
806
839
|
src: e.src,
|
|
807
840
|
alt: e.alt,
|
|
808
|
-
class: c(
|
|
841
|
+
class: c(b.value),
|
|
809
842
|
loading: e.loading,
|
|
810
|
-
onLoad:
|
|
843
|
+
onLoad: j,
|
|
811
844
|
onError: T
|
|
812
845
|
}, null, 42, dt),
|
|
813
846
|
n.value ? (a(), r("div", {
|
|
814
847
|
key: 0,
|
|
815
|
-
class: c(
|
|
848
|
+
class: c(w.value)
|
|
816
849
|
}, [
|
|
817
|
-
e.showSpinner ? (a(), M(
|
|
850
|
+
e.showSpinner ? (a(), M(je, {
|
|
818
851
|
key: 0,
|
|
819
852
|
size: "sm"
|
|
820
853
|
})) : f("", !0)
|
|
821
854
|
], 2)) : f("", !0),
|
|
822
855
|
i.value ? (a(), r("div", {
|
|
823
856
|
key: 1,
|
|
824
|
-
class: c(
|
|
857
|
+
class: c(C.value)
|
|
825
858
|
}, [
|
|
826
859
|
y(Y, {
|
|
827
860
|
name: "ImageOff",
|
|
@@ -906,15 +939,15 @@ const Ue = {
|
|
|
906
939
|
},
|
|
907
940
|
emits: ["update:modelValue", "blur", "focus", "clear", "keydown"],
|
|
908
941
|
setup(e, { expose: s, emit: t }) {
|
|
909
|
-
const l = e, n = t, i =
|
|
942
|
+
const l = e, n = t, i = H(null), d = u(() => l.id || be()), m = ($) => {
|
|
910
943
|
n("update:modelValue", $.target.value);
|
|
911
|
-
},
|
|
944
|
+
}, b = ($) => {
|
|
912
945
|
n("blur", $);
|
|
913
|
-
}, k = ($) => {
|
|
914
|
-
n("focus", $);
|
|
915
946
|
}, w = ($) => {
|
|
947
|
+
n("focus", $);
|
|
948
|
+
}, C = ($) => {
|
|
916
949
|
n("keydown", $);
|
|
917
|
-
},
|
|
950
|
+
}, j = () => {
|
|
918
951
|
n("update:modelValue", ""), n("clear"), i.value?.focus();
|
|
919
952
|
}, T = u(() => !!l.error || l.variant === "error"), R = u(() => {
|
|
920
953
|
if (l.error) return `${d.value}-error`;
|
|
@@ -922,7 +955,7 @@ const Ue = {
|
|
|
922
955
|
sm: "px-3 py-1.5 text-sm",
|
|
923
956
|
md: "px-3 py-2 text-sm",
|
|
924
957
|
lg: "px-4 py-3 text-base"
|
|
925
|
-
})[l.size]),
|
|
958
|
+
})[l.size]), k = u(() => ({
|
|
926
959
|
default: "border-slate-300 focus:border-blue-500 focus:ring-blue-500",
|
|
927
960
|
error: "border-red-300 focus:border-red-500 focus:ring-red-500",
|
|
928
961
|
success: "border-green-300 focus:border-green-500 focus:ring-green-500"
|
|
@@ -936,7 +969,7 @@ const Ue = {
|
|
|
936
969
|
"disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
|
|
937
970
|
"placeholder:text-slate-400",
|
|
938
971
|
z.value,
|
|
939
|
-
|
|
972
|
+
k.value,
|
|
940
973
|
{
|
|
941
974
|
"pl-10": l.iconLeft,
|
|
942
975
|
"pr-10": l.iconRight || l.clearable
|
|
@@ -946,7 +979,7 @@ const Ue = {
|
|
|
946
979
|
focus: () => i.value?.focus(),
|
|
947
980
|
blur: () => i.value?.blur(),
|
|
948
981
|
select: () => i.value?.select()
|
|
949
|
-
}), ($,
|
|
982
|
+
}), ($, I) => (a(), r("div", ut, [
|
|
950
983
|
e.iconLeft ? (a(), r("div", mt, [
|
|
951
984
|
(a(), M(X(e.iconLeft), {
|
|
952
985
|
class: c(g.value)
|
|
@@ -967,14 +1000,14 @@ const Ue = {
|
|
|
967
1000
|
"aria-describedby": R.value,
|
|
968
1001
|
"aria-invalid": T.value,
|
|
969
1002
|
onInput: m,
|
|
970
|
-
onBlur:
|
|
971
|
-
onFocus:
|
|
972
|
-
onKeydown:
|
|
1003
|
+
onBlur: b,
|
|
1004
|
+
onFocus: w,
|
|
1005
|
+
onKeydown: C
|
|
973
1006
|
}, null, 42, ft),
|
|
974
1007
|
e.iconRight || e.clearable ? (a(), r("div", vt, [
|
|
975
1008
|
e.clearable && e.modelValue && !e.disabled ? (a(), r("button", {
|
|
976
1009
|
key: 0,
|
|
977
|
-
onClick:
|
|
1010
|
+
onClick: j,
|
|
978
1011
|
class: "text-slate-400 hover:text-slate-600 transition-colors",
|
|
979
1012
|
type: "button",
|
|
980
1013
|
"aria-label": e.clearLabel
|
|
@@ -990,7 +1023,7 @@ const Ue = {
|
|
|
990
1023
|
])) : f("", !0)
|
|
991
1024
|
]));
|
|
992
1025
|
}
|
|
993
|
-
}, pt = ["for"],
|
|
1026
|
+
}, pt = ["for"], Ie = {
|
|
994
1027
|
__name: "Label",
|
|
995
1028
|
props: {
|
|
996
1029
|
htmlFor: String,
|
|
@@ -1026,10 +1059,10 @@ const Ue = {
|
|
|
1026
1059
|
class: c(l.value),
|
|
1027
1060
|
for: e.htmlFor
|
|
1028
1061
|
}, [
|
|
1029
|
-
|
|
1062
|
+
h(n.$slots, "default")
|
|
1030
1063
|
], 10, pt));
|
|
1031
1064
|
}
|
|
1032
|
-
},
|
|
1065
|
+
}, bt = {
|
|
1033
1066
|
__name: "Link",
|
|
1034
1067
|
props: {
|
|
1035
1068
|
href: { type: String, default: null },
|
|
@@ -1104,19 +1137,19 @@ const Ue = {
|
|
|
1104
1137
|
disabled: !1
|
|
1105
1138
|
}
|
|
1106
1139
|
}
|
|
1107
|
-
), d = (
|
|
1140
|
+
), d = (b) => {
|
|
1108
1141
|
if (t.disabled) {
|
|
1109
|
-
|
|
1142
|
+
b.preventDefault();
|
|
1110
1143
|
return;
|
|
1111
1144
|
}
|
|
1112
|
-
m("click",
|
|
1145
|
+
m("click", b);
|
|
1113
1146
|
}, m = s;
|
|
1114
|
-
return (
|
|
1147
|
+
return (b, w) => (a(), M(X(l.value), {
|
|
1115
1148
|
href: l.value === "a" ? e.href : void 0,
|
|
1116
1149
|
to: l.value === "router-link" ? e.to : void 0,
|
|
1117
1150
|
target: e.external ? "_blank" : e.target,
|
|
1118
1151
|
rel: e.external ? "noopener noreferrer" : e.rel,
|
|
1119
|
-
class: c(D(v)(D(i)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }),
|
|
1152
|
+
class: c(D(v)(D(i)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }), b.$attrs.class)),
|
|
1120
1153
|
onClick: d
|
|
1121
1154
|
}, {
|
|
1122
1155
|
default: S(() => [
|
|
@@ -1125,7 +1158,7 @@ const Ue = {
|
|
|
1125
1158
|
name: e.icon,
|
|
1126
1159
|
class: c(n.value)
|
|
1127
1160
|
}, null, 8, ["name", "class"])) : f("", !0),
|
|
1128
|
-
b
|
|
1161
|
+
h(b.$slots, "default"),
|
|
1129
1162
|
e.icon && e.iconPosition === "right" ? (a(), M(Y, {
|
|
1130
1163
|
key: 1,
|
|
1131
1164
|
name: e.icon,
|
|
@@ -1140,7 +1173,7 @@ const Ue = {
|
|
|
1140
1173
|
_: 3
|
|
1141
1174
|
}, 8, ["href", "to", "target", "rel", "class"]));
|
|
1142
1175
|
}
|
|
1143
|
-
},
|
|
1176
|
+
}, ht = ["src", "alt"], yt = {
|
|
1144
1177
|
__name: "Logo",
|
|
1145
1178
|
props: {
|
|
1146
1179
|
src: String,
|
|
@@ -1194,7 +1227,7 @@ const Ue = {
|
|
|
1194
1227
|
src: e.src,
|
|
1195
1228
|
alt: e.alt || "Logo",
|
|
1196
1229
|
class: c(n.value)
|
|
1197
|
-
}, null, 10,
|
|
1230
|
+
}, null, 10, ht)) : (a(), r("div", {
|
|
1198
1231
|
key: 1,
|
|
1199
1232
|
class: c(i.value)
|
|
1200
1233
|
}, p(e.text || "Logo"), 3))
|
|
@@ -1226,7 +1259,7 @@ const Ue = {
|
|
|
1226
1259
|
disabled: e.disabled,
|
|
1227
1260
|
selected: e.selected
|
|
1228
1261
|
}, [
|
|
1229
|
-
|
|
1262
|
+
h(s.$slots, "default", {}, () => [
|
|
1230
1263
|
N(p(e.label), 1)
|
|
1231
1264
|
])
|
|
1232
1265
|
], 8, xt));
|
|
@@ -1257,8 +1290,8 @@ const Ue = {
|
|
|
1257
1290
|
},
|
|
1258
1291
|
setup(e) {
|
|
1259
1292
|
const s = e, t = u(() => {
|
|
1260
|
-
const
|
|
1261
|
-
return Math.min(Math.max(
|
|
1293
|
+
const b = s.value / s.max * 100;
|
|
1294
|
+
return Math.min(Math.max(b, 0), 100);
|
|
1262
1295
|
}), l = x(
|
|
1263
1296
|
"relative w-full overflow-hidden rounded-full bg-secondary",
|
|
1264
1297
|
{
|
|
@@ -1289,7 +1322,7 @@ const Ue = {
|
|
|
1289
1322
|
), m = u(
|
|
1290
1323
|
() => "absolute inset-0 flex items-center justify-center text-xs font-medium text-primary-foreground"
|
|
1291
1324
|
);
|
|
1292
|
-
return (
|
|
1325
|
+
return (b, w) => (a(), r("div", {
|
|
1293
1326
|
class: c(i.value)
|
|
1294
1327
|
}, [
|
|
1295
1328
|
o("div", {
|
|
@@ -1350,22 +1383,22 @@ const Ue = {
|
|
|
1350
1383
|
"h-3 w-3": t.size === "lg"
|
|
1351
1384
|
}
|
|
1352
1385
|
)
|
|
1353
|
-
),
|
|
1386
|
+
), b = u(
|
|
1354
1387
|
() => v(
|
|
1355
1388
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1356
1389
|
!t.disabled && "cursor-pointer"
|
|
1357
1390
|
)
|
|
1358
|
-
),
|
|
1391
|
+
), w = () => {
|
|
1359
1392
|
t.disabled || l("update:modelValue", t.value);
|
|
1360
1393
|
};
|
|
1361
|
-
return (
|
|
1394
|
+
return (C, j) => (a(), r("div", Ct, [
|
|
1362
1395
|
o("button", {
|
|
1363
1396
|
type: "button",
|
|
1364
1397
|
role: "radio",
|
|
1365
1398
|
"aria-checked": n.value,
|
|
1366
1399
|
disabled: e.disabled,
|
|
1367
1400
|
class: c(d.value),
|
|
1368
|
-
onClick:
|
|
1401
|
+
onClick: w
|
|
1369
1402
|
}, [
|
|
1370
1403
|
n.value ? (a(), r("div", {
|
|
1371
1404
|
key: 0,
|
|
@@ -1374,8 +1407,8 @@ const Ue = {
|
|
|
1374
1407
|
], 10, $t),
|
|
1375
1408
|
e.label ? (a(), r("label", {
|
|
1376
1409
|
key: 0,
|
|
1377
|
-
class: c(
|
|
1378
|
-
onClick:
|
|
1410
|
+
class: c(b.value),
|
|
1411
|
+
onClick: w
|
|
1379
1412
|
}, p(e.label), 3)) : f("", !0)
|
|
1380
1413
|
]));
|
|
1381
1414
|
}
|
|
@@ -1417,7 +1450,7 @@ const Ue = {
|
|
|
1417
1450
|
disabled: e.disabled,
|
|
1418
1451
|
class: l.value
|
|
1419
1452
|
}, n.$attrs), [
|
|
1420
|
-
|
|
1453
|
+
h(n.$slots, "default")
|
|
1421
1454
|
], 16, zt));
|
|
1422
1455
|
}
|
|
1423
1456
|
}, Bt = ["aria-checked", "disabled"], Vt = {
|
|
@@ -1509,16 +1542,16 @@ const Ue = {
|
|
|
1509
1542
|
size: t.size,
|
|
1510
1543
|
checked: t.modelValue
|
|
1511
1544
|
})
|
|
1512
|
-
),
|
|
1545
|
+
), b = () => {
|
|
1513
1546
|
t.disabled || l("update:modelValue", !t.modelValue);
|
|
1514
1547
|
};
|
|
1515
|
-
return (
|
|
1548
|
+
return (w, C) => (a(), r("button", {
|
|
1516
1549
|
type: "button",
|
|
1517
1550
|
role: "switch",
|
|
1518
1551
|
"aria-checked": e.modelValue,
|
|
1519
1552
|
disabled: e.disabled,
|
|
1520
1553
|
class: c(d.value),
|
|
1521
|
-
onClick:
|
|
1554
|
+
onClick: b
|
|
1522
1555
|
}, [
|
|
1523
1556
|
o("span", {
|
|
1524
1557
|
class: c(m.value)
|
|
@@ -1597,12 +1630,12 @@ const Ue = {
|
|
|
1597
1630
|
class: c(l.value)
|
|
1598
1631
|
}, {
|
|
1599
1632
|
default: S(() => [
|
|
1600
|
-
|
|
1633
|
+
h(n.$slots, "default")
|
|
1601
1634
|
]),
|
|
1602
1635
|
_: 3
|
|
1603
1636
|
}, 8, ["class"]));
|
|
1604
1637
|
}
|
|
1605
|
-
}, Mt = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"],
|
|
1638
|
+
}, Mt = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"], jt = {
|
|
1606
1639
|
__name: "Textarea",
|
|
1607
1640
|
props: {
|
|
1608
1641
|
modelValue: { type: String, default: "" },
|
|
@@ -1633,9 +1666,9 @@ const Ue = {
|
|
|
1633
1666
|
},
|
|
1634
1667
|
emits: ["update:modelValue", "blur", "focus", "keydown"],
|
|
1635
1668
|
setup(e, { expose: s, emit: t }) {
|
|
1636
|
-
const l = e, n = t, i =
|
|
1637
|
-
n("update:modelValue", g.target.value), l.autoResize && Ce(() =>
|
|
1638
|
-
},
|
|
1669
|
+
const l = e, n = t, i = H(null), d = u(() => l.id || be()), m = (g) => {
|
|
1670
|
+
n("update:modelValue", g.target.value), l.autoResize && Ce(() => k());
|
|
1671
|
+
}, b = (g) => n("blur", g), w = (g) => n("focus", g), C = (g) => n("keydown", g), j = u(() => !!l.error || l.variant === "error"), T = u(
|
|
1639
1672
|
() => l.error ? `${d.value}-error` : void 0
|
|
1640
1673
|
), R = x(
|
|
1641
1674
|
"block w-full rounded-lg border transition-colors duration-200 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
|
|
@@ -1666,13 +1699,13 @@ const Ue = {
|
|
|
1666
1699
|
}
|
|
1667
1700
|
), z = u(
|
|
1668
1701
|
() => v(R({ size: l.size, variant: l.variant, resize: l.resize }))
|
|
1669
|
-
),
|
|
1702
|
+
), k = () => {
|
|
1670
1703
|
if (!i.value || !l.autoResize) return;
|
|
1671
1704
|
const g = i.value;
|
|
1672
1705
|
g.style.height = "auto", g.style.height = `${g.scrollHeight}px`;
|
|
1673
1706
|
};
|
|
1674
1707
|
return oe(() => l.modelValue, () => {
|
|
1675
|
-
l.autoResize && Ce(() =>
|
|
1708
|
+
l.autoResize && Ce(() => k());
|
|
1676
1709
|
}, { immediate: !0 }), s({
|
|
1677
1710
|
focus: () => i.value?.focus(),
|
|
1678
1711
|
blur: () => i.value?.blur(),
|
|
@@ -1690,14 +1723,14 @@ const Ue = {
|
|
|
1690
1723
|
maxlength: e.maxlength,
|
|
1691
1724
|
class: c(z.value),
|
|
1692
1725
|
"aria-describedby": T.value,
|
|
1693
|
-
"aria-invalid":
|
|
1726
|
+
"aria-invalid": j.value,
|
|
1694
1727
|
onInput: m,
|
|
1695
|
-
onBlur:
|
|
1696
|
-
onFocus:
|
|
1697
|
-
onKeydown:
|
|
1728
|
+
onBlur: b,
|
|
1729
|
+
onFocus: w,
|
|
1730
|
+
onKeydown: C
|
|
1698
1731
|
}, null, 42, Mt));
|
|
1699
1732
|
}
|
|
1700
|
-
},
|
|
1733
|
+
}, It = {
|
|
1701
1734
|
__name: "Tooltip",
|
|
1702
1735
|
props: {
|
|
1703
1736
|
content: {
|
|
@@ -1716,7 +1749,7 @@ const Ue = {
|
|
|
1716
1749
|
class: String
|
|
1717
1750
|
},
|
|
1718
1751
|
setup(e) {
|
|
1719
|
-
const s = e, t =
|
|
1752
|
+
const s = e, t = H(!1);
|
|
1720
1753
|
let l = null;
|
|
1721
1754
|
const n = x(
|
|
1722
1755
|
"absolute z-50 px-3 py-1.5 text-sm text-primary-foreground bg-primary rounded-md shadow-md pointer-events-none whitespace-nowrap",
|
|
@@ -1746,19 +1779,19 @@ const Ue = {
|
|
|
1746
1779
|
() => v(n({ placement: s.placement }), s.class)
|
|
1747
1780
|
), m = u(
|
|
1748
1781
|
() => i({ placement: s.placement })
|
|
1749
|
-
),
|
|
1782
|
+
), b = () => {
|
|
1750
1783
|
l && clearTimeout(l), l = setTimeout(() => {
|
|
1751
1784
|
t.value = !0;
|
|
1752
1785
|
}, s.delay);
|
|
1753
|
-
},
|
|
1786
|
+
}, w = () => {
|
|
1754
1787
|
l && clearTimeout(l), t.value = !1;
|
|
1755
1788
|
};
|
|
1756
|
-
return (
|
|
1789
|
+
return (C, j) => (a(), r("div", {
|
|
1757
1790
|
class: "relative inline-block",
|
|
1758
|
-
onMouseenter:
|
|
1759
|
-
onMouseleave:
|
|
1791
|
+
onMouseenter: b,
|
|
1792
|
+
onMouseleave: w
|
|
1760
1793
|
}, [
|
|
1761
|
-
|
|
1794
|
+
h(C.$slots, "default"),
|
|
1762
1795
|
y(ae, {
|
|
1763
1796
|
"enter-active-class": "transition-opacity duration-200",
|
|
1764
1797
|
"enter-from-class": "opacity-0",
|
|
@@ -1783,7 +1816,7 @@ const Ue = {
|
|
|
1783
1816
|
})
|
|
1784
1817
|
], 32));
|
|
1785
1818
|
}
|
|
1786
|
-
},
|
|
1819
|
+
}, he = {
|
|
1787
1820
|
__name: "Typography",
|
|
1788
1821
|
props: {
|
|
1789
1822
|
variant: {
|
|
@@ -1888,11 +1921,11 @@ const Ue = {
|
|
|
1888
1921
|
"whitespace-nowrap": s.noWrap
|
|
1889
1922
|
}
|
|
1890
1923
|
]);
|
|
1891
|
-
return (m,
|
|
1924
|
+
return (m, b) => (a(), M(X(t.value), {
|
|
1892
1925
|
class: c(d.value)
|
|
1893
1926
|
}, {
|
|
1894
1927
|
default: S(() => [
|
|
1895
|
-
|
|
1928
|
+
h(m.$slots, "default")
|
|
1896
1929
|
]),
|
|
1897
1930
|
_: 3
|
|
1898
1931
|
}, 8, ["class"]));
|
|
@@ -1926,7 +1959,7 @@ const Ue = {
|
|
|
1926
1959
|
},
|
|
1927
1960
|
emits: ["dismiss", "action"],
|
|
1928
1961
|
setup(e, { emit: s }) {
|
|
1929
|
-
const t = e, l = s, n =
|
|
1962
|
+
const t = e, l = s, n = H(!0), i = () => {
|
|
1930
1963
|
n.value = !1, l("dismiss");
|
|
1931
1964
|
}, d = (g) => {
|
|
1932
1965
|
l("action", g), g.onClick && g.onClick();
|
|
@@ -1942,28 +1975,28 @@ const Ue = {
|
|
|
1942
1975
|
d="M12 9v2m0 4h.01M21 12A9 9 0 1112 3a9 9 0 019 9z" />
|
|
1943
1976
|
</svg>
|
|
1944
1977
|
`
|
|
1945
|
-
},
|
|
1978
|
+
}, b = {
|
|
1946
1979
|
template: `
|
|
1947
1980
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1948
1981
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
1949
1982
|
d="M9 12l2 2l4-4m5 2a9 9 0 11-18 0a9 9 0 0118 0z" />
|
|
1950
1983
|
</svg>
|
|
1951
1984
|
`
|
|
1952
|
-
},
|
|
1985
|
+
}, w = {
|
|
1953
1986
|
template: `
|
|
1954
1987
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1955
1988
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
1956
1989
|
d="M12 9v2m0 4h.01M10.29 3.86L1.82 18a1.5 1.5 0 001.29 2.25h18.78a1.5 1.5 0 001.29-2.25L13.71 3.86a1.5 1.5 0 00-2.42 0z" />
|
|
1957
1990
|
</svg>
|
|
1958
1991
|
`
|
|
1959
|
-
},
|
|
1992
|
+
}, C = {
|
|
1960
1993
|
template: `
|
|
1961
1994
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1962
1995
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
1963
1996
|
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0a9 9 0 0118 0z" />
|
|
1964
1997
|
</svg>
|
|
1965
1998
|
`
|
|
1966
|
-
},
|
|
1999
|
+
}, j = {
|
|
1967
2000
|
template: `
|
|
1968
2001
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1969
2002
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
@@ -1972,11 +2005,11 @@ const Ue = {
|
|
|
1972
2005
|
`
|
|
1973
2006
|
}, T = u(() => ({
|
|
1974
2007
|
info: m,
|
|
1975
|
-
success:
|
|
1976
|
-
warning:
|
|
1977
|
-
error:
|
|
2008
|
+
success: b,
|
|
2009
|
+
warning: w,
|
|
2010
|
+
error: C,
|
|
1978
2011
|
default: m,
|
|
1979
|
-
destructive:
|
|
2012
|
+
destructive: C
|
|
1980
2013
|
})[t.variant]), R = x(
|
|
1981
2014
|
"relative w-full rounded-lg border p-4 flex items-start gap-3",
|
|
1982
2015
|
{
|
|
@@ -1999,7 +2032,7 @@ const Ue = {
|
|
|
1999
2032
|
error: "text-red-500",
|
|
2000
2033
|
default: "text-foreground",
|
|
2001
2034
|
destructive: "text-destructive"
|
|
2002
|
-
}[t.variant]]),
|
|
2035
|
+
}[t.variant]]), k = u(() => ["flex-shrink-0 p-1 rounded-md transition-colors duration-200", {
|
|
2003
2036
|
info: "text-blue-500 hover:text-blue-700 hover:bg-blue-100",
|
|
2004
2037
|
success: "text-green-500 hover:text-green-700 hover:bg-green-100",
|
|
2005
2038
|
warning: "text-yellow-500 hover:text-yellow-700 hover:bg-yellow-100",
|
|
@@ -2032,17 +2065,17 @@ const Ue = {
|
|
|
2032
2065
|
o("div", {
|
|
2033
2066
|
class: c(["text-sm", { "mt-0": !e.title, "mt-1": e.title }])
|
|
2034
2067
|
}, [
|
|
2035
|
-
|
|
2068
|
+
h(g.$slots, "default", {}, () => [
|
|
2036
2069
|
N(p(e.message), 1)
|
|
2037
2070
|
])
|
|
2038
2071
|
], 2),
|
|
2039
2072
|
g.$slots.actions || e.actions.length > 0 ? (a(), r("div", Ft, [
|
|
2040
|
-
|
|
2073
|
+
h(g.$slots, "actions", {}, () => [
|
|
2041
2074
|
(a(!0), r(Q, null, K(e.actions, ($) => (a(), M(ee, {
|
|
2042
2075
|
key: $.label,
|
|
2043
2076
|
variant: $.variant || "outline",
|
|
2044
2077
|
size: $.size || "sm",
|
|
2045
|
-
onClick: (
|
|
2078
|
+
onClick: (I) => d($)
|
|
2046
2079
|
}, {
|
|
2047
2080
|
default: S(() => [
|
|
2048
2081
|
N(p($.label), 1)
|
|
@@ -2055,10 +2088,10 @@ const Ue = {
|
|
|
2055
2088
|
e.dismissible ? (a(), r("button", {
|
|
2056
2089
|
key: 1,
|
|
2057
2090
|
onClick: i,
|
|
2058
|
-
class: c(
|
|
2091
|
+
class: c(k.value),
|
|
2059
2092
|
"aria-label": e.dismissLabel
|
|
2060
2093
|
}, [
|
|
2061
|
-
y(
|
|
2094
|
+
y(j, { class: "w-4 h-4" })
|
|
2062
2095
|
], 10, Nt)) : f("", !0)
|
|
2063
2096
|
])
|
|
2064
2097
|
], 2)) : f("", !0)
|
|
@@ -2066,7 +2099,7 @@ const Ue = {
|
|
|
2066
2099
|
_: 3
|
|
2067
2100
|
}));
|
|
2068
2101
|
}
|
|
2069
|
-
}), _t = ["aria-label"],
|
|
2102
|
+
}), _t = ["aria-label"], Ht = { class: "flex items-center space-x-1" }, Ot = {
|
|
2070
2103
|
__name: "Breadcrumb",
|
|
2071
2104
|
props: {
|
|
2072
2105
|
items: {
|
|
@@ -2103,7 +2136,7 @@ const Ue = {
|
|
|
2103
2136
|
"aria-label": e.ariaLabel,
|
|
2104
2137
|
class: c(["flex", l.value])
|
|
2105
2138
|
}, [
|
|
2106
|
-
o("ol",
|
|
2139
|
+
o("ol", Ht, [
|
|
2107
2140
|
(a(!0), r(Q, null, K(e.items, (d, m) => (a(), r("li", {
|
|
2108
2141
|
key: m,
|
|
2109
2142
|
class: "flex items-center"
|
|
@@ -2130,7 +2163,7 @@ const Ue = {
|
|
|
2130
2163
|
])
|
|
2131
2164
|
], 10, _t));
|
|
2132
2165
|
}
|
|
2133
|
-
},
|
|
2166
|
+
}, qt = ["aria-label"], Et = {
|
|
2134
2167
|
__name: "ButtonGroup",
|
|
2135
2168
|
props: {
|
|
2136
2169
|
orientation: {
|
|
@@ -2166,8 +2199,8 @@ const Ue = {
|
|
|
2166
2199
|
role: "group",
|
|
2167
2200
|
"aria-label": e.ariaLabel
|
|
2168
2201
|
}, [
|
|
2169
|
-
|
|
2170
|
-
], 10,
|
|
2202
|
+
h(n.$slots, "default")
|
|
2203
|
+
], 10, qt));
|
|
2171
2204
|
}
|
|
2172
2205
|
}, Ut = { class: "flex items-start justify-between" }, Zt = { class: "flex-1 min-w-0" }, Gt = {
|
|
2173
2206
|
key: 0,
|
|
@@ -2198,8 +2231,8 @@ const Ue = {
|
|
|
2198
2231
|
},
|
|
2199
2232
|
emits: ["click"],
|
|
2200
2233
|
setup(e, { emit: s }) {
|
|
2201
|
-
const t = e, l = s, n = (
|
|
2202
|
-
t.clickable && l("click",
|
|
2234
|
+
const t = e, l = s, n = (C) => {
|
|
2235
|
+
t.clickable && l("click", C);
|
|
2203
2236
|
}, i = x(
|
|
2204
2237
|
"rounded-lg overflow-hidden transition-all duration-200",
|
|
2205
2238
|
{
|
|
@@ -2255,7 +2288,7 @@ const Ue = {
|
|
|
2255
2288
|
xl: "p-8"
|
|
2256
2289
|
}
|
|
2257
2290
|
}
|
|
2258
|
-
}),
|
|
2291
|
+
}), b = x(
|
|
2259
2292
|
"border-t border-slate-100 bg-slate-50/50",
|
|
2260
2293
|
{
|
|
2261
2294
|
variants: {
|
|
@@ -2268,7 +2301,7 @@ const Ue = {
|
|
|
2268
2301
|
}
|
|
2269
2302
|
}
|
|
2270
2303
|
}
|
|
2271
|
-
),
|
|
2304
|
+
), w = x("", {
|
|
2272
2305
|
variants: {
|
|
2273
2306
|
padding: {
|
|
2274
2307
|
none: "",
|
|
@@ -2279,15 +2312,15 @@ const Ue = {
|
|
|
2279
2312
|
}
|
|
2280
2313
|
}
|
|
2281
2314
|
});
|
|
2282
|
-
return (
|
|
2315
|
+
return (C, j) => (a(), r("div", {
|
|
2283
2316
|
class: c(D(v)(D(i)({ variant: e.variant, padding: e.padding, hoverable: e.hoverable, clickable: e.clickable, loading: e.loading }))),
|
|
2284
2317
|
onClick: n
|
|
2285
2318
|
}, [
|
|
2286
|
-
|
|
2319
|
+
C.$slots.header || e.title || e.subtitle ? (a(), r("div", {
|
|
2287
2320
|
key: 0,
|
|
2288
2321
|
class: c(D(v)(D(d)({ padding: e.padding })))
|
|
2289
2322
|
}, [
|
|
2290
|
-
|
|
2323
|
+
h(C.$slots, "header", {}, () => [
|
|
2291
2324
|
o("div", Ut, [
|
|
2292
2325
|
o("div", Zt, [
|
|
2293
2326
|
e.title ? (a(), r("h3", {
|
|
@@ -2299,17 +2332,17 @@ const Ue = {
|
|
|
2299
2332
|
class: c(Xt)
|
|
2300
2333
|
}, p(e.subtitle), 1)) : f("", !0)
|
|
2301
2334
|
]),
|
|
2302
|
-
|
|
2303
|
-
|
|
2335
|
+
C.$slots.actions ? (a(), r("div", Gt, [
|
|
2336
|
+
h(C.$slots, "actions")
|
|
2304
2337
|
])) : f("", !0)
|
|
2305
2338
|
])
|
|
2306
2339
|
])
|
|
2307
2340
|
], 2)) : f("", !0),
|
|
2308
|
-
|
|
2341
|
+
C.$slots.image || e.image ? (a(), r("div", {
|
|
2309
2342
|
key: 1,
|
|
2310
|
-
class: c(D(v)(D(
|
|
2343
|
+
class: c(D(v)(D(w)({ padding: e.padding })))
|
|
2311
2344
|
}, [
|
|
2312
|
-
|
|
2345
|
+
h(C.$slots, "image", {}, () => [
|
|
2313
2346
|
e.image ? (a(), r("img", {
|
|
2314
2347
|
key: 0,
|
|
2315
2348
|
src: e.image,
|
|
@@ -2318,17 +2351,17 @@ const Ue = {
|
|
|
2318
2351
|
}, null, 8, Kt)) : f("", !0)
|
|
2319
2352
|
])
|
|
2320
2353
|
], 2)) : f("", !0),
|
|
2321
|
-
|
|
2354
|
+
C.$slots.default ? (a(), r("div", {
|
|
2322
2355
|
key: 2,
|
|
2323
2356
|
class: c(D(v)(D(m)({ padding: e.padding })))
|
|
2324
2357
|
}, [
|
|
2325
|
-
|
|
2358
|
+
h(C.$slots, "default")
|
|
2326
2359
|
], 2)) : f("", !0),
|
|
2327
|
-
|
|
2360
|
+
C.$slots.footer ? (a(), r("div", {
|
|
2328
2361
|
key: 3,
|
|
2329
|
-
class: c(D(v)(D(
|
|
2362
|
+
class: c(D(v)(D(b)({ padding: e.padding })))
|
|
2330
2363
|
}, [
|
|
2331
|
-
|
|
2364
|
+
h(C.$slots, "footer")
|
|
2332
2365
|
], 2)) : f("", !0)
|
|
2333
2366
|
], 2));
|
|
2334
2367
|
}
|
|
@@ -2340,7 +2373,7 @@ const Ue = {
|
|
|
2340
2373
|
return (s, t) => (a(), r("div", {
|
|
2341
2374
|
class: c(D(v)("flex flex-col space-y-1.5 p-6", s.$attrs.class))
|
|
2342
2375
|
}, [
|
|
2343
|
-
|
|
2376
|
+
h(s.$slots, "default")
|
|
2344
2377
|
], 2));
|
|
2345
2378
|
}
|
|
2346
2379
|
}), ea = {
|
|
@@ -2367,7 +2400,7 @@ const Ue = {
|
|
|
2367
2400
|
return (n, i) => (a(), r("div", {
|
|
2368
2401
|
class: c(l.value)
|
|
2369
2402
|
}, [
|
|
2370
|
-
|
|
2403
|
+
h(n.$slots, "default")
|
|
2371
2404
|
], 2));
|
|
2372
2405
|
}
|
|
2373
2406
|
}, ta = {
|
|
@@ -2394,7 +2427,7 @@ const Ue = {
|
|
|
2394
2427
|
return (n, i) => (a(), r("div", {
|
|
2395
2428
|
class: c(l.value)
|
|
2396
2429
|
}, [
|
|
2397
|
-
|
|
2430
|
+
h(n.$slots, "default")
|
|
2398
2431
|
], 2));
|
|
2399
2432
|
}
|
|
2400
2433
|
}, aa = /* @__PURE__ */ Object.assign({
|
|
@@ -2405,7 +2438,7 @@ const Ue = {
|
|
|
2405
2438
|
return (s, t) => (a(), r("div", {
|
|
2406
2439
|
class: c(D(v)("p-6 pt-0", s.$attrs.class))
|
|
2407
2440
|
}, [
|
|
2408
|
-
|
|
2441
|
+
h(s.$slots, "default")
|
|
2409
2442
|
], 2));
|
|
2410
2443
|
}
|
|
2411
2444
|
}), sa = /* @__PURE__ */ Object.assign({
|
|
@@ -2416,7 +2449,7 @@ const Ue = {
|
|
|
2416
2449
|
return (s, t) => (a(), r("h3", {
|
|
2417
2450
|
class: c(D(v)("text-2xl font-semibold leading-none tracking-tight", s.$attrs.class))
|
|
2418
2451
|
}, [
|
|
2419
|
-
|
|
2452
|
+
h(s.$slots, "default")
|
|
2420
2453
|
], 2));
|
|
2421
2454
|
}
|
|
2422
2455
|
}), la = { class: "relative" }, na = ["id", "value", "disabled", "required", "min", "max"], ra = {
|
|
@@ -2497,7 +2530,7 @@ const Ue = {
|
|
|
2497
2530
|
}
|
|
2498
2531
|
},
|
|
2499
2532
|
setup(e) {
|
|
2500
|
-
const s = e, t =
|
|
2533
|
+
const s = e, t = H(!1), l = H(null), n = x(
|
|
2501
2534
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
2502
2535
|
{
|
|
2503
2536
|
variants: {
|
|
@@ -2524,27 +2557,27 @@ const Ue = {
|
|
|
2524
2557
|
() => v(n({ variant: s.variant }), "h-10 px-4 py-2")
|
|
2525
2558
|
), m = u(
|
|
2526
2559
|
() => v(i({ placement: s.placement }))
|
|
2527
|
-
),
|
|
2560
|
+
), b = () => {
|
|
2528
2561
|
t.value = !t.value;
|
|
2529
|
-
},
|
|
2530
|
-
l.value && !l.value.contains(
|
|
2562
|
+
}, w = (C) => {
|
|
2563
|
+
l.value && !l.value.contains(C.target) && (t.value = !1);
|
|
2531
2564
|
};
|
|
2532
2565
|
return ve(() => {
|
|
2533
|
-
document.addEventListener("click",
|
|
2566
|
+
document.addEventListener("click", w);
|
|
2534
2567
|
}), ye(() => {
|
|
2535
|
-
document.removeEventListener("click",
|
|
2536
|
-
}), (
|
|
2568
|
+
document.removeEventListener("click", w);
|
|
2569
|
+
}), (C, j) => (a(), r("div", {
|
|
2537
2570
|
class: "relative",
|
|
2538
2571
|
ref_key: "dropdownRef",
|
|
2539
2572
|
ref: l
|
|
2540
2573
|
}, [
|
|
2541
2574
|
o("button", {
|
|
2542
2575
|
class: c(d.value),
|
|
2543
|
-
onClick:
|
|
2576
|
+
onClick: b,
|
|
2544
2577
|
"aria-expanded": t.value,
|
|
2545
2578
|
"aria-haspopup": !0
|
|
2546
2579
|
}, [
|
|
2547
|
-
|
|
2580
|
+
h(C.$slots, "trigger", {}, () => [
|
|
2548
2581
|
o("span", null, p(e.triggerText), 1),
|
|
2549
2582
|
y(Y, {
|
|
2550
2583
|
name: "chevron-down",
|
|
@@ -2567,7 +2600,7 @@ const Ue = {
|
|
|
2567
2600
|
role: "menu",
|
|
2568
2601
|
"aria-orientation": "vertical"
|
|
2569
2602
|
}, [
|
|
2570
|
-
|
|
2603
|
+
h(C.$slots, "default")
|
|
2571
2604
|
], 2)) : f("", !0)
|
|
2572
2605
|
]),
|
|
2573
2606
|
_: 3
|
|
@@ -2607,7 +2640,7 @@ const Ue = {
|
|
|
2607
2640
|
), d = (m) => {
|
|
2608
2641
|
t.disabled || l("click", m);
|
|
2609
2642
|
};
|
|
2610
|
-
return (m,
|
|
2643
|
+
return (m, b) => (a(), M(X(e.href ? "a" : "button"), {
|
|
2611
2644
|
href: e.href,
|
|
2612
2645
|
class: c(i.value),
|
|
2613
2646
|
disabled: e.disabled,
|
|
@@ -2620,7 +2653,7 @@ const Ue = {
|
|
|
2620
2653
|
name: e.icon,
|
|
2621
2654
|
class: "mr-2 h-4 w-4"
|
|
2622
2655
|
}, null, 8, ["name"])) : f("", !0),
|
|
2623
|
-
|
|
2656
|
+
h(m.$slots, "default"),
|
|
2624
2657
|
e.shortcut ? (a(), r("span", da, p(e.shortcut), 1)) : f("", !0)
|
|
2625
2658
|
]),
|
|
2626
2659
|
_: 3
|
|
@@ -2632,7 +2665,7 @@ const Ue = {
|
|
|
2632
2665
|
}, ga = {
|
|
2633
2666
|
key: 0,
|
|
2634
2667
|
class: "mt-4 space-y-2"
|
|
2635
|
-
}, pa = { class: "flex items-center space-x-2" },
|
|
2668
|
+
}, pa = { class: "flex items-center space-x-2" }, ba = { class: "text-sm" }, ha = { class: "text-xs text-muted-foreground" }, ya = ["onClick"], xa = {
|
|
2636
2669
|
__name: "FileUpload",
|
|
2637
2670
|
props: {
|
|
2638
2671
|
multiple: Boolean,
|
|
@@ -2647,7 +2680,7 @@ const Ue = {
|
|
|
2647
2680
|
},
|
|
2648
2681
|
emits: ["files-selected", "file-removed"],
|
|
2649
2682
|
setup(e, { emit: s }) {
|
|
2650
|
-
const t = e, l = s, n =
|
|
2683
|
+
const t = e, l = s, n = H([]), i = H(!1), d = H(null), m = x(
|
|
2651
2684
|
"border-2 border-dashed rounded-lg cursor-pointer transition-colors hover:bg-muted/50",
|
|
2652
2685
|
{
|
|
2653
2686
|
variants: {
|
|
@@ -2657,42 +2690,42 @@ const Ue = {
|
|
|
2657
2690
|
}
|
|
2658
2691
|
}
|
|
2659
2692
|
}
|
|
2660
|
-
),
|
|
2693
|
+
), b = u(
|
|
2661
2694
|
() => v(
|
|
2662
2695
|
m({ variant: t.variant }),
|
|
2663
2696
|
i.value && "border-primary bg-primary/5"
|
|
2664
2697
|
)
|
|
2665
|
-
),
|
|
2698
|
+
), w = ($) => {
|
|
2666
2699
|
$.preventDefault(), i.value = !1;
|
|
2667
|
-
const
|
|
2668
|
-
|
|
2669
|
-
},
|
|
2700
|
+
const I = Array.from($.dataTransfer.files);
|
|
2701
|
+
k(I);
|
|
2702
|
+
}, C = ($) => {
|
|
2670
2703
|
$.preventDefault();
|
|
2671
|
-
},
|
|
2704
|
+
}, j = ($) => {
|
|
2672
2705
|
$.preventDefault(), i.value = !0;
|
|
2673
2706
|
}, T = ($) => {
|
|
2674
2707
|
$.preventDefault(), i.value = !1;
|
|
2675
2708
|
}, R = () => {
|
|
2676
2709
|
d.value?.click();
|
|
2677
2710
|
}, z = ($) => {
|
|
2678
|
-
const
|
|
2679
|
-
|
|
2680
|
-
},
|
|
2681
|
-
const
|
|
2682
|
-
t.multiple ? n.value.push(...
|
|
2711
|
+
const I = Array.from($.target.files);
|
|
2712
|
+
k(I);
|
|
2713
|
+
}, k = ($) => {
|
|
2714
|
+
const I = $.filter((P) => !(t.maxSize && P.size > t.maxSize));
|
|
2715
|
+
t.multiple ? n.value.push(...I) : n.value = I.slice(0, 1), l("files-selected", n.value);
|
|
2683
2716
|
}, g = ($) => {
|
|
2684
2717
|
n.value.splice($, 1), l("file-removed", n.value);
|
|
2685
2718
|
}, B = ($) => {
|
|
2686
2719
|
if ($ === 0) return "0 Bytes";
|
|
2687
|
-
const
|
|
2688
|
-
return parseFloat(($ / Math.pow(
|
|
2720
|
+
const I = 1024, P = ["Bytes", "KB", "MB", "GB"], E = Math.floor(Math.log($) / Math.log(I));
|
|
2721
|
+
return parseFloat(($ / Math.pow(I, E)).toFixed(2)) + " " + P[E];
|
|
2689
2722
|
};
|
|
2690
|
-
return ($,
|
|
2723
|
+
return ($, I) => (a(), r("div", ua, [
|
|
2691
2724
|
o("div", {
|
|
2692
|
-
class: c(
|
|
2693
|
-
onDrop:
|
|
2694
|
-
onDragover:
|
|
2695
|
-
onDragenter:
|
|
2725
|
+
class: c(b.value),
|
|
2726
|
+
onDrop: w,
|
|
2727
|
+
onDragover: C,
|
|
2728
|
+
onDragenter: j,
|
|
2696
2729
|
onDragleave: T,
|
|
2697
2730
|
onClick: R
|
|
2698
2731
|
}, [
|
|
@@ -2710,7 +2743,7 @@ const Ue = {
|
|
|
2710
2743
|
name: "upload",
|
|
2711
2744
|
class: "h-8 w-8 text-muted-foreground mb-2"
|
|
2712
2745
|
}),
|
|
2713
|
-
|
|
2746
|
+
I[0] || (I[0] = o("p", { class: "text-sm text-muted-foreground text-center" }, [
|
|
2714
2747
|
o("span", { class: "font-semibold" }, "Click to upload"),
|
|
2715
2748
|
N(" or drag and drop ")
|
|
2716
2749
|
], -1)),
|
|
@@ -2727,8 +2760,8 @@ const Ue = {
|
|
|
2727
2760
|
name: "file",
|
|
2728
2761
|
class: "h-4 w-4 text-muted-foreground"
|
|
2729
2762
|
}),
|
|
2730
|
-
o("span",
|
|
2731
|
-
o("span",
|
|
2763
|
+
o("span", ba, p(P.name), 1),
|
|
2764
|
+
o("span", ha, "(" + p(B(P.size)) + ")", 1)
|
|
2732
2765
|
]),
|
|
2733
2766
|
o("button", {
|
|
2734
2767
|
onClick: (te) => g(E),
|
|
@@ -2776,7 +2809,7 @@ const Ue = {
|
|
|
2776
2809
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
2777
2810
|
</svg>
|
|
2778
2811
|
`
|
|
2779
|
-
}, l = e, n =
|
|
2812
|
+
}, l = e, n = be(), i = u(() => !!l.error), d = u(() => {
|
|
2780
2813
|
const T = [];
|
|
2781
2814
|
return l.error ? T.push(`${n}-error`) : l.helpText && T.push(`${n}-help`), T.length > 0 ? T.join(" ") : void 0;
|
|
2782
2815
|
}), m = x("", {
|
|
@@ -2788,7 +2821,7 @@ const Ue = {
|
|
|
2788
2821
|
}
|
|
2789
2822
|
},
|
|
2790
2823
|
defaultVariants: { size: "md" }
|
|
2791
|
-
}),
|
|
2824
|
+
}), b = x("block text-slate-900", {
|
|
2792
2825
|
variants: {
|
|
2793
2826
|
size: {
|
|
2794
2827
|
sm: "text-xs font-medium",
|
|
@@ -2797,7 +2830,7 @@ const Ue = {
|
|
|
2797
2830
|
}
|
|
2798
2831
|
},
|
|
2799
2832
|
defaultVariants: { size: "md" }
|
|
2800
|
-
}),
|
|
2833
|
+
}), w = x("text-slate-600", {
|
|
2801
2834
|
variants: {
|
|
2802
2835
|
size: {
|
|
2803
2836
|
sm: "text-xs",
|
|
@@ -2806,7 +2839,7 @@ const Ue = {
|
|
|
2806
2839
|
}
|
|
2807
2840
|
},
|
|
2808
2841
|
defaultVariants: { size: "md" }
|
|
2809
|
-
}),
|
|
2842
|
+
}), C = x("flex items-start gap-2", {
|
|
2810
2843
|
variants: {
|
|
2811
2844
|
size: {
|
|
2812
2845
|
sm: "text-xs",
|
|
@@ -2820,7 +2853,7 @@ const Ue = {
|
|
|
2820
2853
|
}
|
|
2821
2854
|
},
|
|
2822
2855
|
defaultVariants: { size: "md", intent: "error" }
|
|
2823
|
-
}),
|
|
2856
|
+
}), j = x("text-slate-500", {
|
|
2824
2857
|
variants: {
|
|
2825
2858
|
size: {
|
|
2826
2859
|
sm: "text-xs",
|
|
@@ -2836,17 +2869,17 @@ const Ue = {
|
|
|
2836
2869
|
e.label ? (a(), r("label", {
|
|
2837
2870
|
key: 0,
|
|
2838
2871
|
for: D(n),
|
|
2839
|
-
class: c(D(v)(D(
|
|
2872
|
+
class: c(D(v)(D(b)({ size: e.size })))
|
|
2840
2873
|
}, [
|
|
2841
2874
|
N(p(e.label) + " ", 1),
|
|
2842
2875
|
e.required ? (a(), r("span", wa, "*")) : f("", !0)
|
|
2843
2876
|
], 10, ka)) : f("", !0),
|
|
2844
2877
|
e.description ? (a(), r("p", {
|
|
2845
2878
|
key: 1,
|
|
2846
|
-
class: c(D(v)(D(
|
|
2879
|
+
class: c(D(v)(D(w)({ size: e.size })))
|
|
2847
2880
|
}, p(e.description), 3)) : f("", !0),
|
|
2848
2881
|
o("div", Ca, [
|
|
2849
|
-
|
|
2882
|
+
h(T.$slots, "default", {
|
|
2850
2883
|
fieldId: D(n),
|
|
2851
2884
|
hasError: i.value,
|
|
2852
2885
|
ariaDescribedBy: d.value
|
|
@@ -2864,7 +2897,7 @@ const Ue = {
|
|
|
2864
2897
|
i.value ? (a(), r("div", {
|
|
2865
2898
|
key: 0,
|
|
2866
2899
|
id: `${D(n)}-error`,
|
|
2867
|
-
class: c(D(v)(D(
|
|
2900
|
+
class: c(D(v)(D(C)({ size: e.size, intent: "error" }))),
|
|
2868
2901
|
role: "alert",
|
|
2869
2902
|
"aria-live": "polite"
|
|
2870
2903
|
}, [
|
|
@@ -2877,7 +2910,7 @@ const Ue = {
|
|
|
2877
2910
|
e.helpText && !i.value ? (a(), r("p", {
|
|
2878
2911
|
key: 2,
|
|
2879
2912
|
id: `${D(n)}-help`,
|
|
2880
|
-
class: c(D(v)(D(
|
|
2913
|
+
class: c(D(v)(D(j)({ size: e.size })))
|
|
2881
2914
|
}, p(e.helpText), 11, Sa)) : f("", !0),
|
|
2882
2915
|
y(ae, {
|
|
2883
2916
|
"enter-active-class": "transition-all duration-200",
|
|
@@ -2890,7 +2923,7 @@ const Ue = {
|
|
|
2890
2923
|
default: S(() => [
|
|
2891
2924
|
e.success && !i.value ? (a(), r("div", {
|
|
2892
2925
|
key: 0,
|
|
2893
|
-
class: c(D(v)(D(
|
|
2926
|
+
class: c(D(v)(D(C)({ size: e.size, intent: "success" })))
|
|
2894
2927
|
}, [
|
|
2895
2928
|
y(t, { class: "w-4 h-4 flex-shrink-0 mt-0.5" }),
|
|
2896
2929
|
o("span", null, p(e.success), 1)
|
|
@@ -2930,18 +2963,18 @@ const Ue = {
|
|
|
2930
2963
|
class: c(l.value)
|
|
2931
2964
|
}, [
|
|
2932
2965
|
n.$slots.prefix ? (a(), r("div", Ba, [
|
|
2933
|
-
|
|
2966
|
+
h(n.$slots, "prefix")
|
|
2934
2967
|
])) : f("", !0),
|
|
2935
|
-
|
|
2968
|
+
h(n.$slots, "default"),
|
|
2936
2969
|
n.$slots.suffix ? (a(), r("div", Va, [
|
|
2937
|
-
|
|
2970
|
+
h(n.$slots, "suffix")
|
|
2938
2971
|
])) : f("", !0)
|
|
2939
2972
|
], 2));
|
|
2940
2973
|
}
|
|
2941
|
-
}, Ma = ["role"],
|
|
2974
|
+
}, Ma = ["role"], ja = {
|
|
2942
2975
|
key: 0,
|
|
2943
2976
|
class: "flex-shrink-0"
|
|
2944
|
-
},
|
|
2977
|
+
}, Ia = { class: "flex-1 min-w-0" }, La = {
|
|
2945
2978
|
key: 0,
|
|
2946
2979
|
class: "text-sm font-medium text-foreground"
|
|
2947
2980
|
}, Da = {
|
|
@@ -2984,21 +3017,21 @@ const Ue = {
|
|
|
2984
3017
|
() => v(n({ variant: t.variant }))
|
|
2985
3018
|
), m = u(
|
|
2986
3019
|
() => v(i({ variant: t.variant }))
|
|
2987
|
-
),
|
|
2988
|
-
l("click",
|
|
3020
|
+
), b = (w) => {
|
|
3021
|
+
l("click", w);
|
|
2989
3022
|
};
|
|
2990
|
-
return (
|
|
3023
|
+
return (w, C) => (a(), r("li", {
|
|
2991
3024
|
class: c(d.value),
|
|
2992
3025
|
role: e.role
|
|
2993
3026
|
}, [
|
|
2994
3027
|
(a(), M(X(e.href ? "a" : "div"), {
|
|
2995
3028
|
href: e.href,
|
|
2996
3029
|
class: c(m.value),
|
|
2997
|
-
onClick:
|
|
3030
|
+
onClick: b
|
|
2998
3031
|
}, {
|
|
2999
3032
|
default: S(() => [
|
|
3000
|
-
|
|
3001
|
-
|
|
3033
|
+
w.$slots.icon || e.icon ? (a(), r("div", ja, [
|
|
3034
|
+
h(w.$slots, "icon", {}, () => [
|
|
3002
3035
|
e.icon ? (a(), M(Y, {
|
|
3003
3036
|
key: 0,
|
|
3004
3037
|
name: e.icon,
|
|
@@ -3006,13 +3039,13 @@ const Ue = {
|
|
|
3006
3039
|
}, null, 8, ["name"])) : f("", !0)
|
|
3007
3040
|
])
|
|
3008
3041
|
])) : f("", !0),
|
|
3009
|
-
o("div",
|
|
3042
|
+
o("div", Ia, [
|
|
3010
3043
|
e.title ? (a(), r("div", La, p(e.title), 1)) : f("", !0),
|
|
3011
3044
|
e.description ? (a(), r("div", Da, p(e.description), 1)) : f("", !0),
|
|
3012
|
-
|
|
3045
|
+
h(w.$slots, "default")
|
|
3013
3046
|
]),
|
|
3014
|
-
|
|
3015
|
-
|
|
3047
|
+
w.$slots.action ? (a(), r("div", Aa, [
|
|
3048
|
+
h(w.$slots, "action")
|
|
3016
3049
|
])) : f("", !0)
|
|
3017
3050
|
]),
|
|
3018
3051
|
_: 3
|
|
@@ -3053,7 +3086,7 @@ const Ue = {
|
|
|
3053
3086
|
), d = (m) => {
|
|
3054
3087
|
t.disabled || l("click", m);
|
|
3055
3088
|
};
|
|
3056
|
-
return (m,
|
|
3089
|
+
return (m, b) => (a(), M(X(e.href ? "a" : "button"), {
|
|
3057
3090
|
href: e.href,
|
|
3058
3091
|
class: c(i.value),
|
|
3059
3092
|
disabled: e.disabled,
|
|
@@ -3066,7 +3099,7 @@ const Ue = {
|
|
|
3066
3099
|
name: e.icon,
|
|
3067
3100
|
class: "mr-2 h-4 w-4"
|
|
3068
3101
|
}, null, 8, ["name"])) : f("", !0),
|
|
3069
|
-
|
|
3102
|
+
h(m.$slots, "default"),
|
|
3070
3103
|
e.shortcut ? (a(), r("span", Fa, p(e.shortcut), 1)) : f("", !0),
|
|
3071
3104
|
e.hasSubmenu ? (a(), M(Y, {
|
|
3072
3105
|
key: 2,
|
|
@@ -3099,8 +3132,8 @@ const Ue = {
|
|
|
3099
3132
|
};
|
|
3100
3133
|
return oe(() => t.modelValue, (d) => {
|
|
3101
3134
|
if (d) {
|
|
3102
|
-
const m = (
|
|
3103
|
-
|
|
3135
|
+
const m = (b) => {
|
|
3136
|
+
b.key === "Escape" && n();
|
|
3104
3137
|
};
|
|
3105
3138
|
return document.addEventListener("keydown", m), () => {
|
|
3106
3139
|
document.removeEventListener("keydown", m);
|
|
@@ -3133,7 +3166,7 @@ const Ue = {
|
|
|
3133
3166
|
}),
|
|
3134
3167
|
m[0] || (m[0] = o("span", { class: "sr-only" }, "Close", -1))
|
|
3135
3168
|
])) : f("", !0),
|
|
3136
|
-
|
|
3169
|
+
h(d.$slots, "default")
|
|
3137
3170
|
])
|
|
3138
3171
|
])) : f("", !0)
|
|
3139
3172
|
]),
|
|
@@ -3141,10 +3174,10 @@ const Ue = {
|
|
|
3141
3174
|
})
|
|
3142
3175
|
]));
|
|
3143
3176
|
}
|
|
3144
|
-
},
|
|
3177
|
+
}, Ha = { class: "flex flex-col space-y-1.5 text-center sm:text-left" }, Oa = {
|
|
3145
3178
|
key: 0,
|
|
3146
3179
|
class: "text-lg font-semibold leading-none tracking-tight"
|
|
3147
|
-
},
|
|
3180
|
+
}, qa = {
|
|
3148
3181
|
key: 1,
|
|
3149
3182
|
class: "text-sm text-muted-foreground"
|
|
3150
3183
|
}, Ea = {
|
|
@@ -3154,10 +3187,10 @@ const Ue = {
|
|
|
3154
3187
|
description: String
|
|
3155
3188
|
},
|
|
3156
3189
|
setup(e) {
|
|
3157
|
-
return (s, t) => (a(), r("div",
|
|
3158
|
-
e.title ? (a(), r("h2",
|
|
3159
|
-
e.description ? (a(), r("p",
|
|
3160
|
-
|
|
3190
|
+
return (s, t) => (a(), r("div", Ha, [
|
|
3191
|
+
e.title ? (a(), r("h2", Oa, p(e.title), 1)) : f("", !0),
|
|
3192
|
+
e.description ? (a(), r("p", qa, p(e.description), 1)) : f("", !0),
|
|
3193
|
+
h(s.$slots, "default")
|
|
3161
3194
|
]));
|
|
3162
3195
|
}
|
|
3163
3196
|
}, Ua = {
|
|
@@ -3183,7 +3216,7 @@ const Ue = {
|
|
|
3183
3216
|
return (n, i) => (a(), r("div", {
|
|
3184
3217
|
class: c(l.value)
|
|
3185
3218
|
}, [
|
|
3186
|
-
|
|
3219
|
+
h(n.$slots, "default")
|
|
3187
3220
|
], 2));
|
|
3188
3221
|
}
|
|
3189
3222
|
}, Za = {
|
|
@@ -3209,7 +3242,7 @@ const Ue = {
|
|
|
3209
3242
|
return (n, i) => (a(), r("div", {
|
|
3210
3243
|
class: c(l.value)
|
|
3211
3244
|
}, [
|
|
3212
|
-
|
|
3245
|
+
h(n.$slots, "default")
|
|
3213
3246
|
], 2));
|
|
3214
3247
|
}
|
|
3215
3248
|
}, Ga = ["aria-live"], Ka = { class: "flex items-start space-x-3" }, Qa = {
|
|
@@ -3244,7 +3277,7 @@ const Ue = {
|
|
|
3244
3277
|
},
|
|
3245
3278
|
emits: ["dismiss"],
|
|
3246
3279
|
setup(e, { emit: s }) {
|
|
3247
|
-
const t = e, l = s, n =
|
|
3280
|
+
const t = e, l = s, n = H(!0), i = x(
|
|
3248
3281
|
"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-background shadow-lg ring-1 ring-black ring-opacity-5",
|
|
3249
3282
|
{
|
|
3250
3283
|
variants: {
|
|
@@ -3270,14 +3303,14 @@ const Ue = {
|
|
|
3270
3303
|
destructive: "text-destructive"
|
|
3271
3304
|
}
|
|
3272
3305
|
}
|
|
3273
|
-
}),
|
|
3306
|
+
}), b = u(
|
|
3274
3307
|
() => v(i({ variant: t.variant }), "p-4")
|
|
3275
|
-
),
|
|
3308
|
+
), w = u(() => d[t.variant]), C = u(() => m({ variant: t.variant })), j = () => {
|
|
3276
3309
|
n.value = !1, l("dismiss");
|
|
3277
3310
|
};
|
|
3278
3311
|
return ve(() => {
|
|
3279
3312
|
t.autoClose > 0 && setTimeout(() => {
|
|
3280
|
-
|
|
3313
|
+
j();
|
|
3281
3314
|
}, t.autoClose);
|
|
3282
3315
|
}), (T, R) => (a(), M(ae, {
|
|
3283
3316
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
@@ -3290,15 +3323,15 @@ const Ue = {
|
|
|
3290
3323
|
default: S(() => [
|
|
3291
3324
|
n.value ? (a(), r("div", {
|
|
3292
3325
|
key: 0,
|
|
3293
|
-
class: c(
|
|
3326
|
+
class: c(b.value),
|
|
3294
3327
|
role: "alert",
|
|
3295
3328
|
"aria-live": e.variant === "destructive" ? "assertive" : "polite"
|
|
3296
3329
|
}, [
|
|
3297
3330
|
o("div", Ka, [
|
|
3298
3331
|
e.showIcon ? (a(), r("div", Qa, [
|
|
3299
3332
|
y(Y, {
|
|
3300
|
-
name:
|
|
3301
|
-
class: c(
|
|
3333
|
+
name: w.value,
|
|
3334
|
+
class: c(C.value)
|
|
3302
3335
|
}, null, 8, ["name", "class"])
|
|
3303
3336
|
])) : f("", !0),
|
|
3304
3337
|
o("div", Ya, [
|
|
@@ -3307,11 +3340,11 @@ const Ue = {
|
|
|
3307
3340
|
key: 1,
|
|
3308
3341
|
class: c(["text-sm", { "mt-1": e.title }])
|
|
3309
3342
|
}, p(e.message), 3)) : f("", !0),
|
|
3310
|
-
|
|
3343
|
+
h(T.$slots, "default")
|
|
3311
3344
|
]),
|
|
3312
3345
|
e.dismissible ? (a(), r("button", {
|
|
3313
3346
|
key: 1,
|
|
3314
|
-
onClick:
|
|
3347
|
+
onClick: j,
|
|
3315
3348
|
class: "flex-shrink-0 rounded-md p-1.5 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
3316
3349
|
}, [
|
|
3317
3350
|
y(Y, {
|
|
@@ -3325,7 +3358,7 @@ const Ue = {
|
|
|
3325
3358
|
_: 3
|
|
3326
3359
|
}));
|
|
3327
3360
|
}
|
|
3328
|
-
}, fe =
|
|
3361
|
+
}, fe = H([]);
|
|
3329
3362
|
let Ja = 0;
|
|
3330
3363
|
const es = {
|
|
3331
3364
|
duration: 2e3,
|
|
@@ -3354,9 +3387,9 @@ const es = {
|
|
|
3354
3387
|
// Toast type methods
|
|
3355
3388
|
{
|
|
3356
3389
|
success: (e, s) => re(e, { ...s, variant: "success" }),
|
|
3357
|
-
error: (e, s) => re(e, { ...s, variant: "
|
|
3390
|
+
error: (e, s) => re(e, { ...s, variant: "error" }),
|
|
3358
3391
|
warning: (e, s) => re(e, { ...s, variant: "warning" }),
|
|
3359
|
-
info: (e, s) => re(e, { ...s, variant: "
|
|
3392
|
+
info: (e, s) => re(e, { ...s, variant: "info" }),
|
|
3360
3393
|
// Promise toast for async operations
|
|
3361
3394
|
promise: (e, s = {}) => {
|
|
3362
3395
|
const {
|
|
@@ -3366,24 +3399,24 @@ const es = {
|
|
|
3366
3399
|
...i
|
|
3367
3400
|
} = s, d = re(t, {
|
|
3368
3401
|
...i,
|
|
3369
|
-
variant: "
|
|
3402
|
+
variant: "loading",
|
|
3370
3403
|
duration: 0,
|
|
3371
3404
|
// Don't auto dismiss
|
|
3372
3405
|
dismissible: !1
|
|
3373
3406
|
});
|
|
3374
3407
|
return e.then((m) => {
|
|
3375
3408
|
ue(d);
|
|
3376
|
-
const
|
|
3377
|
-
return re(
|
|
3409
|
+
const b = typeof l == "function" ? l(m) : l;
|
|
3410
|
+
return re(b, {
|
|
3378
3411
|
...i,
|
|
3379
3412
|
variant: "success"
|
|
3380
3413
|
}), m;
|
|
3381
3414
|
}).catch((m) => {
|
|
3382
3415
|
ue(d);
|
|
3383
|
-
const
|
|
3384
|
-
throw re(
|
|
3416
|
+
const b = typeof n == "function" ? n(m) : n;
|
|
3417
|
+
throw re(b, {
|
|
3385
3418
|
...i,
|
|
3386
|
-
variant: "
|
|
3419
|
+
variant: "error"
|
|
3387
3420
|
}), m;
|
|
3388
3421
|
});
|
|
3389
3422
|
},
|
|
@@ -3460,28 +3493,35 @@ const es = {
|
|
|
3460
3493
|
{
|
|
3461
3494
|
variants: {
|
|
3462
3495
|
variant: {
|
|
3463
|
-
default: "border bg-
|
|
3464
|
-
|
|
3465
|
-
success: "border-green-
|
|
3466
|
-
warning: "border-yellow-500/20 bg-yellow-50 text-yellow-900 dark:border-yellow-500/30 dark:bg-yellow-950 dark:text-yellow-50"
|
|
3496
|
+
default: "border border-gray-300 bg-gray-50 text-gray-800 dark:border-gray-800 dark:bg-gray-500 dark:text-gray-50",
|
|
3497
|
+
info: "border-blue-500/20 bg-blue-50 text-blue-900 dark:border-blue-500/30 dark:bg-blue-950 dark:text-blue-50",
|
|
3498
|
+
success: "border border-green-200 bg-green-50 text-green-800 dark:border-green-200 dark:bg-green-50 dark:text-green-900",
|
|
3499
|
+
warning: "border-yellow-500/20 bg-yellow-50 text-yellow-900 dark:border-yellow-500/30 dark:bg-yellow-950 dark:text-yellow-50",
|
|
3500
|
+
error: "border-red-500/30 bg-red-50 text-red-900 dark:border-red-500/40 dark:bg-red-950 dark:text-red-50 ring-1 ring-red-500/20 dark:ring-red-500/30",
|
|
3501
|
+
loading: "border border-border animate-pulse bg-gray-800 text-gray-800 dark:border-gray-800 dark:bg-gray-700 dark:text-gray-50"
|
|
3467
3502
|
}
|
|
3468
3503
|
},
|
|
3469
|
-
defaultVariants: {
|
|
3470
|
-
variant: "default"
|
|
3471
|
-
}
|
|
3504
|
+
defaultVariants: { variant: "default" }
|
|
3472
3505
|
}
|
|
3473
|
-
), m = (z) => v(d({ variant: z.variant })),
|
|
3474
|
-
default: "
|
|
3506
|
+
), m = (z) => v(d({ variant: z.variant })), b = {
|
|
3507
|
+
default: "bell",
|
|
3508
|
+
info: "info",
|
|
3475
3509
|
success: "check-circle",
|
|
3476
3510
|
warning: "alert-triangle",
|
|
3477
|
-
|
|
3478
|
-
|
|
3511
|
+
error: "alert-circle",
|
|
3512
|
+
loading: "loader"
|
|
3513
|
+
}, w = {
|
|
3479
3514
|
default: "text-muted-foreground",
|
|
3515
|
+
info: "text-blue-600 dark:text-blue-400",
|
|
3480
3516
|
success: "text-green-600 dark:text-green-400",
|
|
3481
3517
|
warning: "text-yellow-600 dark:text-yellow-400",
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3518
|
+
error: "text-red-600 dark:text-red-400",
|
|
3519
|
+
loading: "text-muted-foreground animate-spin"
|
|
3520
|
+
}, C = (z) => z.icon || b[z.variant] || b.default, j = (z) => {
|
|
3521
|
+
const k = w[z.variant] || w.default;
|
|
3522
|
+
return z.variant === "loading" ? `${k} animate-spin` : k;
|
|
3523
|
+
}, T = (z) => z.icon !== !1, R = (z) => z.dismissible !== !1 && (z.closeButton || s.closeButton || z.dismissible);
|
|
3524
|
+
return (z, k) => (a(), M(Ve, { to: "body" }, [
|
|
3485
3525
|
o("div", {
|
|
3486
3526
|
class: c(D(v)(
|
|
3487
3527
|
i.value,
|
|
@@ -3504,12 +3544,12 @@ const es = {
|
|
|
3504
3544
|
key: g.id,
|
|
3505
3545
|
class: c([m(g), "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all"]),
|
|
3506
3546
|
role: "alert",
|
|
3507
|
-
"aria-live": g.variant === "
|
|
3547
|
+
"aria-live": g.variant === "error" ? "assertive" : "polite"
|
|
3508
3548
|
}, [
|
|
3509
3549
|
T(g) ? (a(), M(Y, {
|
|
3510
3550
|
key: 0,
|
|
3511
|
-
name:
|
|
3512
|
-
class: c([
|
|
3551
|
+
name: C(g),
|
|
3552
|
+
class: c([j(g), "h-4 w-4 shrink-0"])
|
|
3513
3553
|
}, null, 8, ["name", "class"])) : f("", !0),
|
|
3514
3554
|
o("div", ls, [
|
|
3515
3555
|
g.title ? (a(), r("div", ns, p(g.title), 1)) : f("", !0),
|
|
@@ -3548,10 +3588,10 @@ const es = {
|
|
|
3548
3588
|
}, gs = ["aria-label"], ps = {
|
|
3549
3589
|
key: 1,
|
|
3550
3590
|
class: "animate-spin"
|
|
3551
|
-
},
|
|
3591
|
+
}, bs = {
|
|
3552
3592
|
key: 0,
|
|
3553
3593
|
class: "max-h-64 overflow-y-auto"
|
|
3554
|
-
},
|
|
3594
|
+
}, hs = ["onClick", "onMouseenter"], ys = { class: "flex-1 text-left" }, xs = ["innerHTML"], ks = ["innerHTML"], ws = {
|
|
3555
3595
|
key: 1,
|
|
3556
3596
|
class: "text-xs text-slate-400 ml-3"
|
|
3557
3597
|
}, Cs = {
|
|
@@ -3603,42 +3643,42 @@ const es = {
|
|
|
3603
3643
|
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
|
|
3604
3644
|
<path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"/>
|
|
3605
3645
|
</svg>`
|
|
3606
|
-
}, i = e, d = s, m =
|
|
3646
|
+
}, i = e, d = s, m = H(null), b = H(null), w = H(!1), C = H(-1), j = H(null), T = (A) => {
|
|
3607
3647
|
const U = A.target.value;
|
|
3608
|
-
d("update:modelValue", U),
|
|
3609
|
-
U.length >= i.minLength ? (d("search", U),
|
|
3648
|
+
d("update:modelValue", U), j.value && clearTimeout(j.value), j.value = setTimeout(() => {
|
|
3649
|
+
U.length >= i.minLength ? (d("search", U), w.value = !0) : w.value = !1;
|
|
3610
3650
|
}, i.debounce);
|
|
3611
3651
|
}, R = (A) => {
|
|
3612
|
-
d("focus", A), i.modelValue.length >= i.minLength && (
|
|
3652
|
+
d("focus", A), i.modelValue.length >= i.minLength && (w.value = !0);
|
|
3613
3653
|
}, z = (A) => {
|
|
3614
3654
|
d("blur", A), setTimeout(() => {
|
|
3615
|
-
|
|
3655
|
+
w.value = !1, C.value = -1;
|
|
3616
3656
|
}, 150);
|
|
3617
|
-
},
|
|
3618
|
-
d("update:modelValue", ""), d("clear"),
|
|
3657
|
+
}, k = () => {
|
|
3658
|
+
d("update:modelValue", ""), d("clear"), w.value = !1, b.value?.focus();
|
|
3619
3659
|
}, g = (A) => {
|
|
3620
|
-
d("select", A),
|
|
3660
|
+
d("select", A), w.value = !1, C.value = -1;
|
|
3621
3661
|
}, B = (A) => {
|
|
3622
|
-
if (!(!
|
|
3662
|
+
if (!(!w.value || i.results.length === 0))
|
|
3623
3663
|
switch (A.key) {
|
|
3624
3664
|
case "ArrowDown":
|
|
3625
|
-
A.preventDefault(),
|
|
3665
|
+
A.preventDefault(), C.value = Math.min(C.value + 1, i.results.length - 1);
|
|
3626
3666
|
break;
|
|
3627
3667
|
case "ArrowUp":
|
|
3628
|
-
A.preventDefault(),
|
|
3668
|
+
A.preventDefault(), C.value = Math.max(C.value - 1, -1);
|
|
3629
3669
|
break;
|
|
3630
3670
|
case "Enter":
|
|
3631
|
-
A.preventDefault(),
|
|
3671
|
+
A.preventDefault(), C.value >= 0 && g(i.results[C.value]);
|
|
3632
3672
|
break;
|
|
3633
3673
|
case "Escape":
|
|
3634
|
-
A.preventDefault(),
|
|
3674
|
+
A.preventDefault(), w.value = !1, C.value = -1;
|
|
3635
3675
|
break;
|
|
3636
3676
|
}
|
|
3637
3677
|
}, $ = (A) => {
|
|
3638
3678
|
if (!i.highlightMatches || !i.modelValue || !A) return A;
|
|
3639
3679
|
const U = new RegExp(`(${i.modelValue})`, "gi");
|
|
3640
3680
|
return A.replace(U, '<mark class="bg-yellow-200">$1</mark>');
|
|
3641
|
-
},
|
|
3681
|
+
}, I = x(
|
|
3642
3682
|
"block w-full rounded-lg border bg-white transition-colors duration-200 placeholder:text-slate-400 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
|
|
3643
3683
|
{
|
|
3644
3684
|
variants: {
|
|
@@ -3659,17 +3699,17 @@ const es = {
|
|
|
3659
3699
|
}
|
|
3660
3700
|
},
|
|
3661
3701
|
defaultVariants: { size: "md" }
|
|
3662
|
-
}), E = u(() => v(
|
|
3702
|
+
}), E = u(() => v(I({ size: i.size }))), te = u(() => v(P({ size: i.size }))), se = u(
|
|
3663
3703
|
() => v("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
|
|
3664
|
-
),
|
|
3704
|
+
), q = (A) => v(
|
|
3665
3705
|
"flex items-center w-full px-4 py-3 text-left transition-colors duration-150 hover:bg-slate-50 focus:bg-slate-50 focus:outline-none",
|
|
3666
|
-
{ "bg-slate-50":
|
|
3706
|
+
{ "bg-slate-50": C.value === A }
|
|
3667
3707
|
), W = (A) => {
|
|
3668
|
-
m.value && !m.value.contains(A.target) && (
|
|
3708
|
+
m.value && !m.value.contains(A.target) && (w.value = !1, C.value = -1);
|
|
3669
3709
|
};
|
|
3670
3710
|
return ve(() => document.addEventListener("click", W)), ye(() => {
|
|
3671
|
-
document.removeEventListener("click", W),
|
|
3672
|
-
}), oe(() => i.results, () =>
|
|
3711
|
+
document.removeEventListener("click", W), j.value && clearTimeout(j.value);
|
|
3712
|
+
}), oe(() => i.results, () => C.value = -1), (A, U) => (a(), r("div", {
|
|
3673
3713
|
class: "relative",
|
|
3674
3714
|
ref_key: "searchRef",
|
|
3675
3715
|
ref: m
|
|
@@ -3682,7 +3722,7 @@ const es = {
|
|
|
3682
3722
|
]),
|
|
3683
3723
|
o("input", {
|
|
3684
3724
|
ref_key: "inputRef",
|
|
3685
|
-
ref:
|
|
3725
|
+
ref: b,
|
|
3686
3726
|
value: e.modelValue,
|
|
3687
3727
|
placeholder: e.placeholder,
|
|
3688
3728
|
disabled: e.disabled,
|
|
@@ -3695,7 +3735,7 @@ const es = {
|
|
|
3695
3735
|
e.modelValue || e.loading ? (a(), r("div", vs, [
|
|
3696
3736
|
!e.loading && e.clearable ? (a(), r("button", {
|
|
3697
3737
|
key: 0,
|
|
3698
|
-
onClick:
|
|
3738
|
+
onClick: k,
|
|
3699
3739
|
class: "text-slate-400 hover:text-slate-600 transition-colors p-1 rounded-full hover:bg-slate-100",
|
|
3700
3740
|
"aria-label": e.clearLabel
|
|
3701
3741
|
}, [
|
|
@@ -3714,16 +3754,16 @@ const es = {
|
|
|
3714
3754
|
"leave-to-class": "opacity-0 scale-95 translate-y-1"
|
|
3715
3755
|
}, {
|
|
3716
3756
|
default: S(() => [
|
|
3717
|
-
|
|
3757
|
+
w.value && (e.results.length > 0 || e.showNoResults) ? (a(), r("div", {
|
|
3718
3758
|
key: 0,
|
|
3719
3759
|
class: c(se.value)
|
|
3720
3760
|
}, [
|
|
3721
|
-
e.results.length > 0 ? (a(), r("div",
|
|
3761
|
+
e.results.length > 0 ? (a(), r("div", bs, [
|
|
3722
3762
|
(a(!0), r(Q, null, K(e.results, (J, le) => (a(), r("button", {
|
|
3723
3763
|
key: J.id || le,
|
|
3724
|
-
class: c(
|
|
3764
|
+
class: c(q(le)),
|
|
3725
3765
|
onClick: (_) => g(J),
|
|
3726
|
-
onMouseenter: (_) =>
|
|
3766
|
+
onMouseenter: (_) => C.value = le
|
|
3727
3767
|
}, [
|
|
3728
3768
|
J.icon ? (a(), M(X(J.icon), {
|
|
3729
3769
|
key: 0,
|
|
@@ -3741,10 +3781,10 @@ const es = {
|
|
|
3741
3781
|
}, null, 8, ks)) : f("", !0)
|
|
3742
3782
|
]),
|
|
3743
3783
|
J.category ? (a(), r("div", ws, p(J.category), 1)) : f("", !0)
|
|
3744
|
-
], 42,
|
|
3784
|
+
], 42, hs))), 128))
|
|
3745
3785
|
])) : e.showNoResults ? (a(), r("div", Cs, p(e.noResultsText), 1)) : f("", !0),
|
|
3746
3786
|
A.$slots.footer ? (a(), r("div", $s, [
|
|
3747
|
-
|
|
3787
|
+
h(A.$slots, "footer")
|
|
3748
3788
|
])) : f("", !0)
|
|
3749
3789
|
], 2)) : f("", !0)
|
|
3750
3790
|
]),
|
|
@@ -3762,7 +3802,7 @@ const es = {
|
|
|
3762
3802
|
},
|
|
3763
3803
|
emits: ["update:modelValue"],
|
|
3764
3804
|
setup(e, { emit: s }) {
|
|
3765
|
-
const t = e, l = s, n =
|
|
3805
|
+
const t = e, l = s, n = H(t.modelValue);
|
|
3766
3806
|
oe(() => t.modelValue, (d) => {
|
|
3767
3807
|
n.value = d;
|
|
3768
3808
|
});
|
|
@@ -3775,7 +3815,7 @@ const es = {
|
|
|
3775
3815
|
min: e.min,
|
|
3776
3816
|
max: e.max,
|
|
3777
3817
|
step: e.step,
|
|
3778
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
3818
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => n.value = b),
|
|
3779
3819
|
onInput: i,
|
|
3780
3820
|
class: "w-full accent-blue-500 cursor-pointer"
|
|
3781
3821
|
}, null, 40, Bs), [
|
|
@@ -3788,14 +3828,14 @@ const es = {
|
|
|
3788
3828
|
])
|
|
3789
3829
|
]));
|
|
3790
3830
|
}
|
|
3791
|
-
}, Ms = { class: "flex items-center space-x-4" },
|
|
3831
|
+
}, Ms = { class: "flex items-center space-x-4" }, js = {
|
|
3792
3832
|
__name: "Stepper",
|
|
3793
3833
|
setup(e) {
|
|
3794
3834
|
return (s, t) => (a(), r("div", Ms, [
|
|
3795
|
-
|
|
3835
|
+
h(s.$slots, "default")
|
|
3796
3836
|
]));
|
|
3797
3837
|
}
|
|
3798
|
-
},
|
|
3838
|
+
}, Is = { class: "flex items-center" }, Ls = { class: "ml-2" }, Ds = { class: "font-medium" }, As = {
|
|
3799
3839
|
key: 0,
|
|
3800
3840
|
class: "text-sm text-slate-400"
|
|
3801
3841
|
}, Ps = {
|
|
@@ -3808,7 +3848,7 @@ const es = {
|
|
|
3808
3848
|
completed: { type: Boolean, default: !1 }
|
|
3809
3849
|
},
|
|
3810
3850
|
setup(e) {
|
|
3811
|
-
return (s, t) => (a(), r("div",
|
|
3851
|
+
return (s, t) => (a(), r("div", Is, [
|
|
3812
3852
|
o("div", {
|
|
3813
3853
|
class: c([
|
|
3814
3854
|
"flex items-center justify-center w-8 h-8 rounded-full border-2",
|
|
@@ -3829,47 +3869,47 @@ const es = {
|
|
|
3829
3869
|
defaultIndex: { type: Number, default: 0 }
|
|
3830
3870
|
},
|
|
3831
3871
|
setup(e) {
|
|
3832
|
-
const t =
|
|
3872
|
+
const t = H(e.defaultIndex), l = H([]), n = (i) => {
|
|
3833
3873
|
t.value = i;
|
|
3834
3874
|
};
|
|
3835
|
-
return
|
|
3875
|
+
return He("tabsContext", {
|
|
3836
3876
|
activeIndex: t,
|
|
3837
3877
|
tabs: l,
|
|
3838
3878
|
registerTab: (i) => (l.value.push({ label: i }), l.value.length - 1)
|
|
3839
3879
|
}), (i, d) => (a(), r("div", null, [
|
|
3840
3880
|
o("div", Fs, [
|
|
3841
|
-
(a(!0), r(Q, null, K(l.value, (m,
|
|
3842
|
-
key:
|
|
3843
|
-
onClick: (
|
|
3881
|
+
(a(!0), r(Q, null, K(l.value, (m, b) => (a(), r("button", {
|
|
3882
|
+
key: b,
|
|
3883
|
+
onClick: (w) => n(b),
|
|
3844
3884
|
class: c([
|
|
3845
3885
|
"px-4 py-2 -mb-px border-b-2 font-medium text-sm transition-colors",
|
|
3846
|
-
t.value ===
|
|
3886
|
+
t.value === b ? "border-blue-500 text-blue-600" : "border-transparent text-slate-500 hover:text-slate-700 hover:border-slate-300"
|
|
3847
3887
|
])
|
|
3848
3888
|
}, p(m.label), 11, Ns))), 128))
|
|
3849
3889
|
]),
|
|
3850
3890
|
o("div", Rs, [
|
|
3851
|
-
|
|
3891
|
+
h(i.$slots, "default")
|
|
3852
3892
|
])
|
|
3853
3893
|
]));
|
|
3854
3894
|
}
|
|
3855
|
-
},
|
|
3895
|
+
}, Hs = {
|
|
3856
3896
|
__name: "TabPanel",
|
|
3857
3897
|
props: {
|
|
3858
3898
|
label: { type: String, required: !0 }
|
|
3859
3899
|
},
|
|
3860
3900
|
setup(e) {
|
|
3861
|
-
const s = e, t =
|
|
3901
|
+
const s = e, t = Oe("tabsContext"), l = H(null), n = H(!1);
|
|
3862
3902
|
return ve(() => {
|
|
3863
3903
|
l.value = t.registerTab(s.label), n.value = t.activeIndex.value === l.value, watch(t.activeIndex, (i) => {
|
|
3864
3904
|
n.value = i === l.value;
|
|
3865
3905
|
});
|
|
3866
3906
|
}), (i, d) => xe((a(), r("div", null, [
|
|
3867
|
-
|
|
3907
|
+
h(i.$slots, "default")
|
|
3868
3908
|
], 512)), [
|
|
3869
3909
|
[Me, n.value]
|
|
3870
3910
|
]);
|
|
3871
3911
|
}
|
|
3872
|
-
},
|
|
3912
|
+
}, Os = ["aria-expanded", "aria-controls", "id", "onClick"], qs = { class: "flex items-center flex-1 min-w-0" }, Es = { class: "flex-1 text-left" }, Us = ["id", "aria-labelledby"], Zs = ["innerHTML"], Gs = {
|
|
3873
3913
|
__name: "Accordion",
|
|
3874
3914
|
props: {
|
|
3875
3915
|
items: {
|
|
@@ -3901,20 +3941,20 @@ const es = {
|
|
|
3901
3941
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
3902
3942
|
</svg>
|
|
3903
3943
|
`
|
|
3904
|
-
}, l = e, n = s, i =
|
|
3944
|
+
}, l = e, n = s, i = H(
|
|
3905
3945
|
l.multiple ? Array.isArray(l.modelValue) ? [...l.modelValue] : [] : typeof l.modelValue == "number" ? [l.modelValue] : []
|
|
3906
|
-
), d = (
|
|
3907
|
-
if (!(l.disabled || l.items[
|
|
3946
|
+
), d = (q) => {
|
|
3947
|
+
if (!(l.disabled || l.items[q]?.disabled)) {
|
|
3908
3948
|
if (l.multiple) {
|
|
3909
|
-
const W = i.value.indexOf(
|
|
3910
|
-
W > -1 ? i.value.splice(W, 1) : i.value.push(
|
|
3949
|
+
const W = i.value.indexOf(q);
|
|
3950
|
+
W > -1 ? i.value.splice(W, 1) : i.value.push(q), n("update:modelValue", [...i.value]);
|
|
3911
3951
|
} else {
|
|
3912
|
-
const W = i.value.includes(
|
|
3952
|
+
const W = i.value.includes(q) ? null : q;
|
|
3913
3953
|
i.value = W !== null ? [W] : [], n("update:modelValue", W);
|
|
3914
3954
|
}
|
|
3915
|
-
n("change", { index:
|
|
3955
|
+
n("change", { index: q, expanded: i.value.includes(q) });
|
|
3916
3956
|
}
|
|
3917
|
-
}, m = (
|
|
3957
|
+
}, m = (q) => i.value.includes(q), b = x("w-full", {
|
|
3918
3958
|
variants: {
|
|
3919
3959
|
variant: {
|
|
3920
3960
|
default: "divide-y divide-slate-200",
|
|
@@ -3923,7 +3963,7 @@ const es = {
|
|
|
3923
3963
|
flush: "divide-y divide-slate-200"
|
|
3924
3964
|
}
|
|
3925
3965
|
}
|
|
3926
|
-
}),
|
|
3966
|
+
}), w = x("", {
|
|
3927
3967
|
variants: {
|
|
3928
3968
|
variant: {
|
|
3929
3969
|
default: "",
|
|
@@ -3932,7 +3972,7 @@ const es = {
|
|
|
3932
3972
|
flush: ""
|
|
3933
3973
|
}
|
|
3934
3974
|
}
|
|
3935
|
-
}),
|
|
3975
|
+
}), C = x(
|
|
3936
3976
|
"flex items-center w-full text-left transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
3937
3977
|
{
|
|
3938
3978
|
variants: {
|
|
@@ -3949,7 +3989,7 @@ const es = {
|
|
|
3949
3989
|
}
|
|
3950
3990
|
}
|
|
3951
3991
|
}
|
|
3952
|
-
),
|
|
3992
|
+
), j = x("text-slate-900", {
|
|
3953
3993
|
variants: {
|
|
3954
3994
|
size: {
|
|
3955
3995
|
sm: "text-sm font-medium",
|
|
@@ -3980,7 +4020,7 @@ const es = {
|
|
|
3980
4020
|
false: ""
|
|
3981
4021
|
}
|
|
3982
4022
|
}
|
|
3983
|
-
}),
|
|
4023
|
+
}), k = x("overflow-hidden text-slate-600 border-t border-slate-200", {
|
|
3984
4024
|
variants: {
|
|
3985
4025
|
size: {
|
|
3986
4026
|
sm: "p-3 text-sm",
|
|
@@ -3989,29 +4029,29 @@ const es = {
|
|
|
3989
4029
|
}
|
|
3990
4030
|
}
|
|
3991
4031
|
}), g = u(
|
|
3992
|
-
() => v(
|
|
4032
|
+
() => v(b({ variant: l.variant }))
|
|
3993
4033
|
), B = u(
|
|
3994
|
-
() => v(
|
|
3995
|
-
), $ = (
|
|
3996
|
-
|
|
3997
|
-
l.variant === "bordered" && m(
|
|
3998
|
-
l.variant === "filled" && m(
|
|
3999
|
-
(l.disabled || l.items[
|
|
4000
|
-
),
|
|
4001
|
-
() => v(
|
|
4034
|
+
() => v(w({ variant: l.variant }))
|
|
4035
|
+
), $ = (q) => v(
|
|
4036
|
+
C({ variant: l.variant, size: l.size }),
|
|
4037
|
+
l.variant === "bordered" && m(q) && "bg-slate-50",
|
|
4038
|
+
l.variant === "filled" && m(q) && "bg-white",
|
|
4039
|
+
(l.disabled || l.items[q]?.disabled) && "cursor-not-allowed opacity-50"
|
|
4040
|
+
), I = u(
|
|
4041
|
+
() => v(j({ size: l.size }))
|
|
4002
4042
|
), P = u(
|
|
4003
4043
|
() => v(T({ size: l.size }))
|
|
4004
4044
|
), E = u(
|
|
4005
4045
|
() => v(R({ size: l.size }))
|
|
4006
|
-
), te = (
|
|
4007
|
-
() => v(
|
|
4046
|
+
), te = (q) => v(z({ expanded: m(q) })), se = u(
|
|
4047
|
+
() => v(k({ size: l.size }))
|
|
4008
4048
|
);
|
|
4009
4049
|
return oe(
|
|
4010
4050
|
() => l.modelValue,
|
|
4011
|
-
(
|
|
4012
|
-
l.multiple ? i.value = Array.isArray(
|
|
4051
|
+
(q) => {
|
|
4052
|
+
l.multiple ? i.value = Array.isArray(q) ? [...q] : [] : i.value = typeof q == "number" ? [q] : [];
|
|
4013
4053
|
}
|
|
4014
|
-
), (
|
|
4054
|
+
), (q, W) => (a(), r("div", {
|
|
4015
4055
|
class: c(g.value)
|
|
4016
4056
|
}, [
|
|
4017
4057
|
(a(!0), r(Q, null, K(e.items, (A, U) => (a(), r("div", {
|
|
@@ -4025,14 +4065,14 @@ const es = {
|
|
|
4025
4065
|
id: `header-${A.id || U}`,
|
|
4026
4066
|
onClick: (J) => d(U)
|
|
4027
4067
|
}, [
|
|
4028
|
-
o("div",
|
|
4068
|
+
o("div", qs, [
|
|
4029
4069
|
A.icon ? (a(), M(X(A.icon), {
|
|
4030
4070
|
key: 0,
|
|
4031
4071
|
class: c(E.value)
|
|
4032
4072
|
}, null, 8, ["class"])) : f("", !0),
|
|
4033
4073
|
o("div", Es, [
|
|
4034
4074
|
o("h3", {
|
|
4035
|
-
class: c(
|
|
4075
|
+
class: c(I.value)
|
|
4036
4076
|
}, p(A.title), 3),
|
|
4037
4077
|
A.subtitle ? (a(), r("p", {
|
|
4038
4078
|
key: 0,
|
|
@@ -4045,7 +4085,7 @@ const es = {
|
|
|
4045
4085
|
}, [
|
|
4046
4086
|
y(t, { class: "w-5 h-5 transition-transform duration-200" })
|
|
4047
4087
|
], 2)
|
|
4048
|
-
], 10,
|
|
4088
|
+
], 10, Os),
|
|
4049
4089
|
y(ae, {
|
|
4050
4090
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
4051
4091
|
"enter-from-class": "opacity-0 max-h-0",
|
|
@@ -4062,7 +4102,7 @@ const es = {
|
|
|
4062
4102
|
"aria-labelledby": `header-${A.id || U}`,
|
|
4063
4103
|
role: "region"
|
|
4064
4104
|
}, [
|
|
4065
|
-
|
|
4105
|
+
h(q.$slots, A.slot || `item-${U}`, {
|
|
4066
4106
|
item: A,
|
|
4067
4107
|
index: U
|
|
4068
4108
|
}, () => [
|
|
@@ -4099,7 +4139,7 @@ const es = {
|
|
|
4099
4139
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
4100
4140
|
</svg>
|
|
4101
4141
|
`
|
|
4102
|
-
}, t = e, l =
|
|
4142
|
+
}, t = e, l = H(!1), n = () => l.value = !l.value, i = x("", {
|
|
4103
4143
|
variants: {
|
|
4104
4144
|
variant: {
|
|
4105
4145
|
default: "",
|
|
@@ -4127,23 +4167,23 @@ const es = {
|
|
|
4127
4167
|
lg: "p-6 text-lg"
|
|
4128
4168
|
}
|
|
4129
4169
|
}
|
|
4130
|
-
}),
|
|
4170
|
+
}), b = u(
|
|
4131
4171
|
() => v(i({ variant: t.variant }))
|
|
4132
|
-
), k = u(
|
|
4133
|
-
() => v(d({ size: t.size }))
|
|
4134
4172
|
), w = u(
|
|
4173
|
+
() => v(d({ size: t.size }))
|
|
4174
|
+
), C = u(
|
|
4135
4175
|
() => v(m({ size: t.size }))
|
|
4136
4176
|
);
|
|
4137
|
-
return (
|
|
4138
|
-
class: c(
|
|
4177
|
+
return (j, T) => (a(), r("div", {
|
|
4178
|
+
class: c(b.value)
|
|
4139
4179
|
}, [
|
|
4140
4180
|
y(ee, {
|
|
4141
|
-
class: c(
|
|
4181
|
+
class: c(w.value),
|
|
4142
4182
|
"aria-expanded": l.value,
|
|
4143
4183
|
onClick: n
|
|
4144
4184
|
}, {
|
|
4145
4185
|
default: S(() => [
|
|
4146
|
-
|
|
4186
|
+
h(j.$slots, "header", { isOpen: l.value }),
|
|
4147
4187
|
y(s, {
|
|
4148
4188
|
class: c(D(v)("w-5 h-5 transition-transform ml-2", { "rotate-180": l.value }))
|
|
4149
4189
|
}, null, 8, ["class"])
|
|
@@ -4161,9 +4201,9 @@ const es = {
|
|
|
4161
4201
|
default: S(() => [
|
|
4162
4202
|
l.value ? (a(), r("div", {
|
|
4163
4203
|
key: 0,
|
|
4164
|
-
class: c(
|
|
4204
|
+
class: c(C.value)
|
|
4165
4205
|
}, [
|
|
4166
|
-
|
|
4206
|
+
h(j.$slots, "content", { isOpen: l.value })
|
|
4167
4207
|
], 2)) : f("", !0)
|
|
4168
4208
|
]),
|
|
4169
4209
|
_: 3
|
|
@@ -4182,16 +4222,16 @@ const es = {
|
|
|
4182
4222
|
template: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
4183
4223
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
|
|
4184
4224
|
</svg>`
|
|
4185
|
-
}, l = /* @__PURE__ */ new Date(), n =
|
|
4225
|
+
}, l = /* @__PURE__ */ new Date(), n = H(l.getMonth()), i = H(l.getFullYear()), d = H(null), m = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], b = u(
|
|
4186
4226
|
() => new Date(i.value, n.value).toLocaleString("default", {
|
|
4187
4227
|
month: "long"
|
|
4188
4228
|
})
|
|
4189
|
-
),
|
|
4190
|
-
{ length:
|
|
4191
|
-
($,
|
|
4229
|
+
), w = u(() => new Date(i.value, n.value + 1, 0).getDate()), C = u(() => new Date(i.value, n.value, 1).getDay()), j = u(() => Array.from(
|
|
4230
|
+
{ length: C.value },
|
|
4231
|
+
($, I) => new Date(i.value, n.value, -I).getDate()
|
|
4192
4232
|
).reverse()), T = u(() => {
|
|
4193
|
-
const $ =
|
|
4194
|
-
return Array.from({ length:
|
|
4233
|
+
const $ = j.value.length + w.value, I = $ % 7 === 0 ? 0 : 7 - $ % 7;
|
|
4234
|
+
return Array.from({ length: I }, (P, E) => E + 1);
|
|
4195
4235
|
});
|
|
4196
4236
|
function R() {
|
|
4197
4237
|
n.value === 0 ? (n.value = 11, i.value--) : n.value--;
|
|
@@ -4199,7 +4239,7 @@ const es = {
|
|
|
4199
4239
|
function z() {
|
|
4200
4240
|
n.value === 11 ? (n.value = 0, i.value++) : n.value++;
|
|
4201
4241
|
}
|
|
4202
|
-
function
|
|
4242
|
+
function k($) {
|
|
4203
4243
|
return l.getDate() === $ && l.getMonth() === n.value && l.getFullYear() === i.value;
|
|
4204
4244
|
}
|
|
4205
4245
|
function g($) {
|
|
@@ -4208,7 +4248,7 @@ const es = {
|
|
|
4208
4248
|
function B($) {
|
|
4209
4249
|
d.value = new Date(i.value, n.value, $), emit("update:modelValue", d.value);
|
|
4210
4250
|
}
|
|
4211
|
-
return ($,
|
|
4251
|
+
return ($, I) => (a(), r("div", Qs, [
|
|
4212
4252
|
o("div", Ys, [
|
|
4213
4253
|
y(ee, {
|
|
4214
4254
|
class: "p-2 rounded-lg hover:bg-slate-100",
|
|
@@ -4220,7 +4260,7 @@ const es = {
|
|
|
4220
4260
|
]),
|
|
4221
4261
|
_: 1
|
|
4222
4262
|
}),
|
|
4223
|
-
o("div", Xs, p(
|
|
4263
|
+
o("div", Xs, p(b.value) + " " + p(i.value), 1),
|
|
4224
4264
|
y(ee, {
|
|
4225
4265
|
class: "p-2 rounded-lg hover:bg-slate-100",
|
|
4226
4266
|
onClick: z,
|
|
@@ -4236,16 +4276,16 @@ const es = {
|
|
|
4236
4276
|
(a(), r(Q, null, K(m, (P) => o("div", { key: P }, p(P), 1)), 64))
|
|
4237
4277
|
]),
|
|
4238
4278
|
o("div", Js, [
|
|
4239
|
-
(a(!0), r(Q, null, K(
|
|
4279
|
+
(a(!0), r(Q, null, K(j.value, (P) => (a(), r("div", {
|
|
4240
4280
|
key: "prev-" + P,
|
|
4241
4281
|
class: "text-slate-400 text-sm"
|
|
4242
4282
|
}, p(P), 1))), 128)),
|
|
4243
|
-
(a(!0), r(Q, null, K(
|
|
4283
|
+
(a(!0), r(Q, null, K(w.value, (P) => (a(), M(ee, {
|
|
4244
4284
|
key: P,
|
|
4245
4285
|
onClick: (E) => B(P),
|
|
4246
4286
|
class: c([
|
|
4247
4287
|
"w-10 h-10 rounded-full flex items-center justify-center mx-auto",
|
|
4248
|
-
|
|
4288
|
+
k(P) ? "bg-blue-500 text-white font-semibold" : "",
|
|
4249
4289
|
g(P) ? "bg-blue-100 text-blue-600 font-semibold" : "hover:bg-slate-100"
|
|
4250
4290
|
])
|
|
4251
4291
|
}, {
|
|
@@ -4336,14 +4376,14 @@ const es = {
|
|
|
4336
4376
|
), m = u(
|
|
4337
4377
|
() => v(n({ size: "md" }))
|
|
4338
4378
|
);
|
|
4339
|
-
return (
|
|
4379
|
+
return (b, w) => e.title || e.description || b.$slots.header ? (a(), r("div", {
|
|
4340
4380
|
key: 0,
|
|
4341
4381
|
class: c(i.value)
|
|
4342
4382
|
}, [
|
|
4343
|
-
b
|
|
4383
|
+
h(b.$slots, "header", {}, () => [
|
|
4344
4384
|
o("div", tl, [
|
|
4345
4385
|
o("div", null, [
|
|
4346
|
-
e.title ? (a(), M(
|
|
4386
|
+
e.title ? (a(), M(he, {
|
|
4347
4387
|
key: 0,
|
|
4348
4388
|
class: c(d.value)
|
|
4349
4389
|
}, {
|
|
@@ -4352,7 +4392,7 @@ const es = {
|
|
|
4352
4392
|
]),
|
|
4353
4393
|
_: 1
|
|
4354
4394
|
}, 8, ["class"])) : f("", !0),
|
|
4355
|
-
e.description ? (a(), M(
|
|
4395
|
+
e.description ? (a(), M(he, {
|
|
4356
4396
|
key: 1,
|
|
4357
4397
|
class: c(m.value)
|
|
4358
4398
|
}, {
|
|
@@ -4362,8 +4402,8 @@ const es = {
|
|
|
4362
4402
|
_: 1
|
|
4363
4403
|
}, 8, ["class"])) : f("", !0)
|
|
4364
4404
|
]),
|
|
4365
|
-
|
|
4366
|
-
b
|
|
4405
|
+
b.$slots.filters ? (a(), r("div", al, [
|
|
4406
|
+
h(b.$slots, "filters")
|
|
4367
4407
|
])) : f("", !0)
|
|
4368
4408
|
])
|
|
4369
4409
|
])
|
|
@@ -4472,15 +4512,15 @@ const es = {
|
|
|
4472
4512
|
density: "normal",
|
|
4473
4513
|
align: "left"
|
|
4474
4514
|
}
|
|
4475
|
-
}), d = (
|
|
4515
|
+
}), d = (k) => typeof k == "string" ? k : k?.key || k?.field || "unknown", m = (k, g) => {
|
|
4476
4516
|
const B = d(g);
|
|
4477
|
-
return typeof g == "object" && g.accessor ? g.accessor(
|
|
4478
|
-
},
|
|
4479
|
-
const B = m(
|
|
4480
|
-
return typeof g == "object" && g.formatter ? g.formatter(B,
|
|
4481
|
-
},
|
|
4517
|
+
return typeof g == "object" && g.accessor ? g.accessor(k) : B && B.includes(".") ? B.split(".").reduce(($, I) => $?.[I], k) : k?.[B];
|
|
4518
|
+
}, b = (k, g) => {
|
|
4519
|
+
const B = m(k, g);
|
|
4520
|
+
return typeof g == "object" && g.formatter ? g.formatter(B, k) : B == null ? "" : B instanceof Date ? B.toLocaleDateString() : Array.isArray(B) ? B.join(", ") : B;
|
|
4521
|
+
}, w = () => {
|
|
4482
4522
|
t.clickableRows && l("row-click", { item: t.item, index: t.index });
|
|
4483
|
-
},
|
|
4523
|
+
}, C = (k) => typeof k == "object" && k.align ? k.align : "left", j = u(
|
|
4484
4524
|
() => v(n({
|
|
4485
4525
|
striped: t.striped,
|
|
4486
4526
|
hoverable: t.hoverable && !t.clickableRows,
|
|
@@ -4488,14 +4528,14 @@ const es = {
|
|
|
4488
4528
|
selected: t.isSelected,
|
|
4489
4529
|
variant: t.variant
|
|
4490
4530
|
}))
|
|
4491
|
-
), T = (
|
|
4492
|
-
const g =
|
|
4531
|
+
), T = (k) => {
|
|
4532
|
+
const g = C(k);
|
|
4493
4533
|
return v(
|
|
4494
4534
|
i({
|
|
4495
4535
|
density: t.density,
|
|
4496
4536
|
align: g
|
|
4497
4537
|
}),
|
|
4498
|
-
|
|
4538
|
+
k.cellClasses
|
|
4499
4539
|
);
|
|
4500
4540
|
}, R = u(
|
|
4501
4541
|
() => v(
|
|
@@ -4511,9 +4551,9 @@ const es = {
|
|
|
4511
4551
|
"font-medium"
|
|
4512
4552
|
)
|
|
4513
4553
|
);
|
|
4514
|
-
return (
|
|
4515
|
-
class: c(
|
|
4516
|
-
onClick:
|
|
4554
|
+
return (k, g) => (a(), r("tr", {
|
|
4555
|
+
class: c(j.value),
|
|
4556
|
+
onClick: w
|
|
4517
4557
|
}, [
|
|
4518
4558
|
e.selectable ? (a(), r("td", {
|
|
4519
4559
|
key: 0,
|
|
@@ -4521,27 +4561,27 @@ const es = {
|
|
|
4521
4561
|
}, [
|
|
4522
4562
|
y(ke, {
|
|
4523
4563
|
modelValue: e.isSelected,
|
|
4524
|
-
"onUpdate:modelValue": g[0] || (g[0] = (B) =>
|
|
4564
|
+
"onUpdate:modelValue": g[0] || (g[0] = (B) => k.$emit("toggle-selection", e.item))
|
|
4525
4565
|
}, null, 8, ["modelValue"])
|
|
4526
4566
|
], 2)) : f("", !0),
|
|
4527
4567
|
(a(!0), r(Q, null, K(e.columns, (B) => (a(), r("td", {
|
|
4528
4568
|
key: d(B),
|
|
4529
4569
|
class: c(T(B))
|
|
4530
4570
|
}, [
|
|
4531
|
-
|
|
4571
|
+
h(k.$slots, `cell-${d(B)}`, {
|
|
4532
4572
|
item: e.item,
|
|
4533
4573
|
value: m(e.item, B),
|
|
4534
4574
|
column: B,
|
|
4535
4575
|
index: e.index
|
|
4536
4576
|
}, () => [
|
|
4537
|
-
N(p(
|
|
4577
|
+
N(p(b(e.item, B)), 1)
|
|
4538
4578
|
])
|
|
4539
4579
|
], 2))), 128)),
|
|
4540
|
-
|
|
4580
|
+
k.$slots.actions ? (a(), r("td", {
|
|
4541
4581
|
key: 1,
|
|
4542
4582
|
class: c(z.value)
|
|
4543
4583
|
}, [
|
|
4544
|
-
|
|
4584
|
+
h(k.$slots, "actions", {
|
|
4545
4585
|
item: e.item,
|
|
4546
4586
|
index: e.index
|
|
4547
4587
|
})
|
|
@@ -4668,52 +4708,52 @@ const es = {
|
|
|
4668
4708
|
defaultVariants: {
|
|
4669
4709
|
size: "sm"
|
|
4670
4710
|
}
|
|
4671
|
-
}), m = u(() => (t.currentPage - 1) * t.pageSize + 1),
|
|
4672
|
-
const z = [],
|
|
4673
|
-
if (
|
|
4674
|
-
for (let $ = 1; $ <=
|
|
4711
|
+
}), m = u(() => (t.currentPage - 1) * t.pageSize + 1), b = u(() => Math.min(t.currentPage * t.pageSize, t.total)), w = u(() => {
|
|
4712
|
+
const z = [], k = t.totalPages, g = t.currentPage, B = t.maxVisiblePages;
|
|
4713
|
+
if (k <= B)
|
|
4714
|
+
for (let $ = 1; $ <= k; $++)
|
|
4675
4715
|
z.push($);
|
|
4676
4716
|
else {
|
|
4677
4717
|
const $ = Math.floor(B / 2);
|
|
4678
|
-
let
|
|
4679
|
-
P -
|
|
4680
|
-
for (let E =
|
|
4718
|
+
let I = Math.max(1, g - $), P = Math.min(k, I + B - 1);
|
|
4719
|
+
P - I + 1 < B && (I = Math.max(1, P - B + 1));
|
|
4720
|
+
for (let E = I; E <= P; E++)
|
|
4681
4721
|
z.push(E);
|
|
4682
4722
|
}
|
|
4683
4723
|
return z;
|
|
4684
|
-
}),
|
|
4724
|
+
}), C = u(
|
|
4685
4725
|
() => v(l({
|
|
4686
4726
|
variant: t.variant,
|
|
4687
4727
|
padding: t.padding
|
|
4688
4728
|
}))
|
|
4689
|
-
),
|
|
4729
|
+
), j = u(
|
|
4690
4730
|
() => v(i({ size: "md" }))
|
|
4691
4731
|
), T = u(
|
|
4692
4732
|
() => v(d({ size: "sm" }))
|
|
4693
|
-
), R = (z,
|
|
4733
|
+
), R = (z, k) => {
|
|
4694
4734
|
let g = "inactive";
|
|
4695
|
-
return
|
|
4735
|
+
return k ? g = "disabled" : z && (g = "active"), v(n({
|
|
4696
4736
|
state: g,
|
|
4697
4737
|
size: "md"
|
|
4698
4738
|
}));
|
|
4699
4739
|
};
|
|
4700
|
-
return (z,
|
|
4740
|
+
return (z, k) => e.showPagination || z.$slots.footer ? (a(), r("div", {
|
|
4701
4741
|
key: 0,
|
|
4702
|
-
class: c(
|
|
4742
|
+
class: c(C.value)
|
|
4703
4743
|
}, [
|
|
4704
4744
|
o("div", sl, [
|
|
4705
|
-
e.selectable && e.selectedCount > 0 ? (a(), r("div", ll, p(e.selectedCount) + " of " + p(e.total) + " selected ", 1)) : (a(), r("div", nl, " Showing " + p(m.value) + " to " + p(
|
|
4745
|
+
e.selectable && e.selectedCount > 0 ? (a(), r("div", ll, p(e.selectedCount) + " of " + p(e.total) + " selected ", 1)) : (a(), r("div", nl, " Showing " + p(m.value) + " to " + p(b.value) + " of " + p(e.total) + " entries ", 1)),
|
|
4706
4746
|
z.$slots.footer ? (a(), r("div", rl, [
|
|
4707
|
-
|
|
4747
|
+
h(z.$slots, "footer")
|
|
4708
4748
|
])) : f("", !0),
|
|
4709
4749
|
e.showPagination ? (a(), r("div", ol, [
|
|
4710
4750
|
o("div", il, [
|
|
4711
|
-
y(
|
|
4751
|
+
y(Ie, {
|
|
4712
4752
|
for: "pageSize",
|
|
4713
|
-
class: c(
|
|
4753
|
+
class: c(j.value),
|
|
4714
4754
|
inline: !0
|
|
4715
4755
|
}, {
|
|
4716
|
-
default: S(() => [...
|
|
4756
|
+
default: S(() => [...k[5] || (k[5] = [
|
|
4717
4757
|
N("Show:", -1)
|
|
4718
4758
|
])]),
|
|
4719
4759
|
_: 1
|
|
@@ -4721,7 +4761,7 @@ const es = {
|
|
|
4721
4761
|
y(we, {
|
|
4722
4762
|
id: "pageSize",
|
|
4723
4763
|
"model-value": e.pageSize.toString(),
|
|
4724
|
-
"onUpdate:modelValue":
|
|
4764
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => z.$emit("update:pageSize", parseInt(g))),
|
|
4725
4765
|
class: c(T.value)
|
|
4726
4766
|
}, {
|
|
4727
4767
|
default: S(() => [
|
|
@@ -4737,10 +4777,10 @@ const es = {
|
|
|
4737
4777
|
o("div", dl, [
|
|
4738
4778
|
o("button", {
|
|
4739
4779
|
disabled: e.currentPage === 1,
|
|
4740
|
-
onClick:
|
|
4780
|
+
onClick: k[1] || (k[1] = (g) => z.$emit("update:currentPage", 1)),
|
|
4741
4781
|
class: c(R(!1, e.currentPage === 1)),
|
|
4742
4782
|
title: "First page"
|
|
4743
|
-
}, [...
|
|
4783
|
+
}, [...k[6] || (k[6] = [
|
|
4744
4784
|
o("svg", {
|
|
4745
4785
|
class: "w-4 h-4",
|
|
4746
4786
|
fill: "none",
|
|
@@ -4757,10 +4797,10 @@ const es = {
|
|
|
4757
4797
|
])], 10, cl),
|
|
4758
4798
|
o("button", {
|
|
4759
4799
|
disabled: e.currentPage === 1,
|
|
4760
|
-
onClick:
|
|
4800
|
+
onClick: k[2] || (k[2] = (g) => z.$emit("update:currentPage", e.currentPage - 1)),
|
|
4761
4801
|
class: c(R(!1, e.currentPage === 1)),
|
|
4762
4802
|
title: "Previous page"
|
|
4763
|
-
}, [...
|
|
4803
|
+
}, [...k[7] || (k[7] = [
|
|
4764
4804
|
o("svg", {
|
|
4765
4805
|
class: "w-4 h-4",
|
|
4766
4806
|
fill: "none",
|
|
@@ -4776,7 +4816,7 @@ const es = {
|
|
|
4776
4816
|
], -1)
|
|
4777
4817
|
])], 10, ul),
|
|
4778
4818
|
o("div", ml, [
|
|
4779
|
-
(a(!0), r(Q, null, K(
|
|
4819
|
+
(a(!0), r(Q, null, K(w.value, (g) => (a(), r("button", {
|
|
4780
4820
|
key: g,
|
|
4781
4821
|
onClick: (B) => z.$emit("update:currentPage", g),
|
|
4782
4822
|
class: c(R(g === e.currentPage, !1))
|
|
@@ -4784,10 +4824,10 @@ const es = {
|
|
|
4784
4824
|
]),
|
|
4785
4825
|
o("button", {
|
|
4786
4826
|
disabled: e.currentPage === e.totalPages,
|
|
4787
|
-
onClick:
|
|
4827
|
+
onClick: k[3] || (k[3] = (g) => z.$emit("update:currentPage", e.currentPage + 1)),
|
|
4788
4828
|
class: c(R(!1, e.currentPage === e.totalPages)),
|
|
4789
4829
|
title: "Next page"
|
|
4790
|
-
}, [...
|
|
4830
|
+
}, [...k[8] || (k[8] = [
|
|
4791
4831
|
o("svg", {
|
|
4792
4832
|
class: "w-4 h-4",
|
|
4793
4833
|
fill: "none",
|
|
@@ -4804,10 +4844,10 @@ const es = {
|
|
|
4804
4844
|
])], 10, vl),
|
|
4805
4845
|
o("button", {
|
|
4806
4846
|
disabled: e.currentPage === e.totalPages,
|
|
4807
|
-
onClick:
|
|
4847
|
+
onClick: k[4] || (k[4] = (g) => z.$emit("update:currentPage", e.totalPages)),
|
|
4808
4848
|
class: c(R(!1, e.currentPage === e.totalPages)),
|
|
4809
4849
|
title: "Last page"
|
|
4810
|
-
}, [...
|
|
4850
|
+
}, [...k[9] || (k[9] = [
|
|
4811
4851
|
o("svg", {
|
|
4812
4852
|
class: "w-4 h-4",
|
|
4813
4853
|
fill: "none",
|
|
@@ -4828,7 +4868,7 @@ const es = {
|
|
|
4828
4868
|
])
|
|
4829
4869
|
], 2)) : f("", !0);
|
|
4830
4870
|
}
|
|
4831
|
-
},
|
|
4871
|
+
}, bl = { class: "overflow-x-auto" }, hl = ["onClick"], yl = { class: "flex items-center gap-2" }, xl = {
|
|
4832
4872
|
key: 0,
|
|
4833
4873
|
class: "flex flex-col"
|
|
4834
4874
|
}, kl = { key: 0 }, wl = ["colspan"], Cl = { class: "text-center py-8" }, $l = { class: "text-slate-500" }, Sl = {
|
|
@@ -4924,7 +4964,7 @@ const es = {
|
|
|
4924
4964
|
},
|
|
4925
4965
|
emits: ["selection-change", "sort-change", "row-click"],
|
|
4926
4966
|
setup(e, { emit: s }) {
|
|
4927
|
-
const t = e, l = s, n =
|
|
4967
|
+
const t = e, l = s, n = H(1), i = H(t.pageSize), d = H(t.sortBy), m = H(t.sortOrder), b = x("bg-white border border-slate-200 rounded-lg overflow-hidden", {
|
|
4928
4968
|
variants: {
|
|
4929
4969
|
variant: {
|
|
4930
4970
|
default: "shadow-sm",
|
|
@@ -4935,7 +4975,7 @@ const es = {
|
|
|
4935
4975
|
defaultVariants: {
|
|
4936
4976
|
variant: "default"
|
|
4937
4977
|
}
|
|
4938
|
-
}),
|
|
4978
|
+
}), w = x("min-w-full", {
|
|
4939
4979
|
variants: {
|
|
4940
4980
|
variant: {
|
|
4941
4981
|
default: "divide-y divide-slate-200",
|
|
@@ -4946,7 +4986,7 @@ const es = {
|
|
|
4946
4986
|
defaultVariants: {
|
|
4947
4987
|
variant: "default"
|
|
4948
4988
|
}
|
|
4949
|
-
}),
|
|
4989
|
+
}), C = x("", {
|
|
4950
4990
|
variants: {
|
|
4951
4991
|
variant: {
|
|
4952
4992
|
default: "bg-slate-50",
|
|
@@ -4957,7 +4997,7 @@ const es = {
|
|
|
4957
4997
|
defaultVariants: {
|
|
4958
4998
|
variant: "default"
|
|
4959
4999
|
}
|
|
4960
|
-
}),
|
|
5000
|
+
}), j = x("divide-y", {
|
|
4961
5001
|
variants: {
|
|
4962
5002
|
variant: {
|
|
4963
5003
|
default: "bg-white divide-slate-200",
|
|
@@ -4971,45 +5011,45 @@ const es = {
|
|
|
4971
5011
|
}), T = u(() => {
|
|
4972
5012
|
let V = [...t.data];
|
|
4973
5013
|
if (d.value) {
|
|
4974
|
-
const
|
|
4975
|
-
|
|
4976
|
-
const de = $(Z,
|
|
5014
|
+
const O = t.columns.find((Z) => Z.key === d.value);
|
|
5015
|
+
O && V.sort((Z, ne) => {
|
|
5016
|
+
const de = $(Z, O), ge = $(ne, O);
|
|
4977
5017
|
return de < ge ? m.value === "asc" ? -1 : 1 : de > ge ? m.value === "asc" ? 1 : -1 : 0;
|
|
4978
5018
|
});
|
|
4979
5019
|
}
|
|
4980
5020
|
return V;
|
|
4981
5021
|
}), R = u(() => Math.ceil(T.value.length / i.value)), z = u(() => {
|
|
4982
5022
|
if (!t.showPagination) return T.value;
|
|
4983
|
-
const V = (n.value - 1) * i.value,
|
|
4984
|
-
return T.value.slice(V,
|
|
4985
|
-
}),
|
|
5023
|
+
const V = (n.value - 1) * i.value, O = V + i.value;
|
|
5024
|
+
return T.value.slice(V, O);
|
|
5025
|
+
}), k = u(() => {
|
|
4986
5026
|
let V = t.columns.length;
|
|
4987
5027
|
return t.selectable && V++, t.$slots?.actions && V++, V;
|
|
4988
5028
|
}), g = u(() => T.value.length > 0 && T.value.every((V) => P(V))), B = u(() => {
|
|
4989
|
-
const V = T.value.filter((
|
|
5029
|
+
const V = T.value.filter((O) => P(O)).length;
|
|
4990
5030
|
return V > 0 && V < T.value.length;
|
|
4991
|
-
}), $ = (V,
|
|
4992
|
-
(
|
|
5031
|
+
}), $ = (V, O) => O.accessor ? O.accessor(V) : O.key.split(".").reduce((Z, ne) => Z?.[ne], V), I = (V, O) => V[t.rowKey] || O, P = (V) => t.selectedItems.some(
|
|
5032
|
+
(O) => I(O) === I(V)
|
|
4993
5033
|
), E = (V) => {
|
|
4994
|
-
const
|
|
4995
|
-
(ne) =>
|
|
5034
|
+
const O = [...t.selectedItems], Z = O.findIndex(
|
|
5035
|
+
(ne) => I(ne) === I(V)
|
|
4996
5036
|
);
|
|
4997
|
-
Z > -1 ?
|
|
5037
|
+
Z > -1 ? O.splice(Z, 1) : O.push(V), l("selection-change", O);
|
|
4998
5038
|
}, te = () => {
|
|
4999
5039
|
const V = g.value ? [] : [...T.value];
|
|
5000
5040
|
l("selection-change", V);
|
|
5001
5041
|
}, se = (V) => {
|
|
5002
5042
|
V.sortable && (d.value === V.key ? m.value = m.value === "asc" ? "desc" : "asc" : (d.value = V.key, m.value = "asc"), l("sort-change", { column: V.key, direction: m.value }));
|
|
5003
|
-
},
|
|
5043
|
+
}, q = (V) => {
|
|
5004
5044
|
l("row-click", V);
|
|
5005
5045
|
}, W = u(
|
|
5006
|
-
() => v(
|
|
5046
|
+
() => v(b({ variant: t.variant }))
|
|
5007
5047
|
), A = u(
|
|
5008
|
-
() => v(k({ variant: t.variant }))
|
|
5009
|
-
), U = u(
|
|
5010
5048
|
() => v(w({ variant: t.variant }))
|
|
5049
|
+
), U = u(
|
|
5050
|
+
() => v(C({ variant: t.variant }))
|
|
5011
5051
|
), J = u(
|
|
5012
|
-
() => v(
|
|
5052
|
+
() => v(j({ variant: t.variant }))
|
|
5013
5053
|
), le = (V) => v(
|
|
5014
5054
|
{
|
|
5015
5055
|
compact: "px-4 py-2",
|
|
@@ -5041,16 +5081,16 @@ const es = {
|
|
|
5041
5081
|
comfortable: "px-8 py-8"
|
|
5042
5082
|
}[t.density],
|
|
5043
5083
|
"text-center"
|
|
5044
|
-
)), ie = (V,
|
|
5084
|
+
)), ie = (V, O) => v(
|
|
5045
5085
|
{
|
|
5046
|
-
"text-blue-600": d.value === V.key && m.value ===
|
|
5047
|
-
"text-slate-300": d.value !== V.key || m.value !==
|
|
5086
|
+
"text-blue-600": d.value === V.key && m.value === O,
|
|
5087
|
+
"text-slate-300": d.value !== V.key || m.value !== O
|
|
5048
5088
|
}
|
|
5049
5089
|
);
|
|
5050
5090
|
return oe(() => t.selectedItems, (V) => {
|
|
5051
5091
|
}, { deep: !0 }), oe(() => t.pageSize, (V) => {
|
|
5052
5092
|
i.value = V;
|
|
5053
|
-
}), (V,
|
|
5093
|
+
}), (V, O) => (a(), r("div", {
|
|
5054
5094
|
class: c(W.value)
|
|
5055
5095
|
}, [
|
|
5056
5096
|
e.title || e.description || V.$slots.header ? (a(), M(Ae, {
|
|
@@ -5061,14 +5101,14 @@ const es = {
|
|
|
5061
5101
|
padding: e.headerPadding
|
|
5062
5102
|
}, {
|
|
5063
5103
|
header: S(() => [
|
|
5064
|
-
|
|
5104
|
+
h(V.$slots, "header")
|
|
5065
5105
|
]),
|
|
5066
5106
|
filters: S(() => [
|
|
5067
|
-
|
|
5107
|
+
h(V.$slots, "filters")
|
|
5068
5108
|
]),
|
|
5069
5109
|
_: 3
|
|
5070
5110
|
}, 8, ["title", "description", "variant", "padding"])) : f("", !0),
|
|
5071
|
-
o("div",
|
|
5111
|
+
o("div", bl, [
|
|
5072
5112
|
o("table", {
|
|
5073
5113
|
class: c(A.value)
|
|
5074
5114
|
}, [
|
|
@@ -5100,7 +5140,7 @@ const es = {
|
|
|
5100
5140
|
viewBox: "0 0 24 24",
|
|
5101
5141
|
"stroke-width": "1.5",
|
|
5102
5142
|
stroke: "currentColor"
|
|
5103
|
-
}, [...
|
|
5143
|
+
}, [...O[2] || (O[2] = [
|
|
5104
5144
|
o("path", {
|
|
5105
5145
|
"stroke-linecap": "round",
|
|
5106
5146
|
"stroke-linejoin": "round",
|
|
@@ -5113,7 +5153,7 @@ const es = {
|
|
|
5113
5153
|
viewBox: "0 0 24 24",
|
|
5114
5154
|
"stroke-width": "1.5",
|
|
5115
5155
|
stroke: "currentColor"
|
|
5116
|
-
}, [...
|
|
5156
|
+
}, [...O[3] || (O[3] = [
|
|
5117
5157
|
o("path", {
|
|
5118
5158
|
"stroke-linecap": "round",
|
|
5119
5159
|
"stroke-linejoin": "round",
|
|
@@ -5122,7 +5162,7 @@ const es = {
|
|
|
5122
5162
|
])], 2))
|
|
5123
5163
|
])) : f("", !0)
|
|
5124
5164
|
])
|
|
5125
|
-
], 10,
|
|
5165
|
+
], 10, hl))), 128)),
|
|
5126
5166
|
V.$slots.actions ? (a(), r("th", {
|
|
5127
5167
|
key: 1,
|
|
5128
5168
|
class: c(L.value)
|
|
@@ -5133,7 +5173,7 @@ const es = {
|
|
|
5133
5173
|
class: c(J.value)
|
|
5134
5174
|
}, [
|
|
5135
5175
|
(a(!0), r(Q, null, K(z.value, (Z, ne) => (a(), M(Pe, {
|
|
5136
|
-
key:
|
|
5176
|
+
key: I(Z, ne),
|
|
5137
5177
|
item: Z,
|
|
5138
5178
|
columns: e.columns,
|
|
5139
5179
|
index: ne,
|
|
@@ -5144,28 +5184,28 @@ const es = {
|
|
|
5144
5184
|
"clickable-rows": e.clickableRows,
|
|
5145
5185
|
density: e.density,
|
|
5146
5186
|
onToggleSelection: E,
|
|
5147
|
-
onRowClick:
|
|
5148
|
-
},
|
|
5187
|
+
onRowClick: q
|
|
5188
|
+
}, qe({
|
|
5149
5189
|
actions: S((de) => [
|
|
5150
|
-
|
|
5190
|
+
h(V.$slots, "actions", me({ ref_for: !0 }, de))
|
|
5151
5191
|
]),
|
|
5152
5192
|
_: 2
|
|
5153
5193
|
}, [
|
|
5154
5194
|
K(e.columns, (de) => ({
|
|
5155
5195
|
name: `cell-${de.key}`,
|
|
5156
5196
|
fn: S((ge) => [
|
|
5157
|
-
|
|
5197
|
+
h(V.$slots, `cell-${de.key}`, me({ ref_for: !0 }, ge))
|
|
5158
5198
|
])
|
|
5159
5199
|
}))
|
|
5160
5200
|
]), 1032, ["item", "columns", "index", "selectable", "is-selected", "striped", "hoverable", "clickable-rows", "density"]))), 128)),
|
|
5161
5201
|
z.value.length === 0 ? (a(), r("tr", kl, [
|
|
5162
5202
|
o("td", {
|
|
5163
|
-
colspan:
|
|
5203
|
+
colspan: k.value,
|
|
5164
5204
|
class: c(F.value)
|
|
5165
5205
|
}, [
|
|
5166
|
-
|
|
5206
|
+
h(V.$slots, "empty", {}, () => [
|
|
5167
5207
|
o("div", Cl, [
|
|
5168
|
-
|
|
5208
|
+
O[4] || (O[4] = o("div", { class: "text-slate-400 mb-2" }, [
|
|
5169
5209
|
o("svg", {
|
|
5170
5210
|
class: "w-12 h-12 mx-auto",
|
|
5171
5211
|
fill: "none",
|
|
@@ -5199,11 +5239,11 @@ const es = {
|
|
|
5199
5239
|
"selected-count": e.selectedItems.length,
|
|
5200
5240
|
variant: e.paginationVariant,
|
|
5201
5241
|
padding: e.paginationPadding,
|
|
5202
|
-
"onUpdate:currentPage":
|
|
5203
|
-
"onUpdate:pageSize":
|
|
5242
|
+
"onUpdate:currentPage": O[0] || (O[0] = (Z) => n.value = Z),
|
|
5243
|
+
"onUpdate:pageSize": O[1] || (O[1] = (Z) => i.value = Z)
|
|
5204
5244
|
}, {
|
|
5205
5245
|
footer: S(() => [
|
|
5206
|
-
|
|
5246
|
+
h(V.$slots, "footer")
|
|
5207
5247
|
]),
|
|
5208
5248
|
_: 3
|
|
5209
5249
|
}, 8, ["current-page", "total-pages", "total", "page-size", "show-pagination", "selectable", "selected-count", "variant", "padding"])) : f("", !0)
|
|
@@ -5277,7 +5317,7 @@ const es = {
|
|
|
5277
5317
|
textSize: "sm"
|
|
5278
5318
|
}
|
|
5279
5319
|
}), i = u(() => {
|
|
5280
|
-
const d = s.align || s.column.align || "left", m = `text-${s.textColor}`,
|
|
5320
|
+
const d = s.align || s.column.align || "left", m = `text-${s.textColor}`, b = s.width ? `w-${s.width}` : "";
|
|
5281
5321
|
return v(
|
|
5282
5322
|
n({
|
|
5283
5323
|
align: d,
|
|
@@ -5285,14 +5325,14 @@ const es = {
|
|
|
5285
5325
|
textSize: s.textSize
|
|
5286
5326
|
}),
|
|
5287
5327
|
m,
|
|
5288
|
-
|
|
5328
|
+
b,
|
|
5289
5329
|
s.column.cellClasses
|
|
5290
5330
|
);
|
|
5291
5331
|
});
|
|
5292
5332
|
return (d, m) => (a(), r("td", {
|
|
5293
5333
|
class: c(i.value)
|
|
5294
5334
|
}, [
|
|
5295
|
-
|
|
5335
|
+
h(d.$slots, "default", {}, () => [
|
|
5296
5336
|
N(p(t.value), 1)
|
|
5297
5337
|
])
|
|
5298
5338
|
], 2));
|
|
@@ -5300,10 +5340,10 @@ const es = {
|
|
|
5300
5340
|
}, Bl = { class: "flex-1 min-w-64" }, Vl = { class: "relative" }, Tl = {
|
|
5301
5341
|
key: 0,
|
|
5302
5342
|
class: "min-w-32"
|
|
5303
|
-
}, Ml = ["value"],
|
|
5343
|
+
}, Ml = ["value"], jl = {
|
|
5304
5344
|
key: 1,
|
|
5305
5345
|
class: "flex items-center gap-2"
|
|
5306
|
-
},
|
|
5346
|
+
}, Il = {
|
|
5307
5347
|
key: 2,
|
|
5308
5348
|
class: "flex items-center gap-2"
|
|
5309
5349
|
}, Ll = { class: "flex items-center gap-2 ml-auto" }, Dl = { class: "flex items-center gap-2 flex-wrap" }, Al = {
|
|
@@ -5374,7 +5414,7 @@ const es = {
|
|
|
5374
5414
|
template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3" /></svg>'
|
|
5375
5415
|
}, i = {
|
|
5376
5416
|
template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" /></svg>'
|
|
5377
|
-
}, d = e, m = s,
|
|
5417
|
+
}, d = e, m = s, b = x("flex flex-wrap items-center gap-4 border-b border-slate-200", {
|
|
5378
5418
|
variants: {
|
|
5379
5419
|
variant: {
|
|
5380
5420
|
default: "bg-slate-50",
|
|
@@ -5391,7 +5431,7 @@ const es = {
|
|
|
5391
5431
|
variant: "default",
|
|
5392
5432
|
padding: "normal"
|
|
5393
5433
|
}
|
|
5394
|
-
}),
|
|
5434
|
+
}), w = x("border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500", {
|
|
5395
5435
|
variants: {
|
|
5396
5436
|
size: {
|
|
5397
5437
|
sm: "text-sm px-2 py-1",
|
|
@@ -5402,7 +5442,7 @@ const es = {
|
|
|
5402
5442
|
defaultVariants: {
|
|
5403
5443
|
size: "md"
|
|
5404
5444
|
}
|
|
5405
|
-
}),
|
|
5445
|
+
}), C = x("rounded-md flex items-center gap-2 font-medium transition-colors", {
|
|
5406
5446
|
variants: {
|
|
5407
5447
|
variant: {
|
|
5408
5448
|
default: "text-slate-600 hover:text-slate-800 border border-slate-300 hover:bg-slate-50",
|
|
@@ -5420,7 +5460,7 @@ const es = {
|
|
|
5420
5460
|
variant: "default",
|
|
5421
5461
|
size: "md"
|
|
5422
5462
|
}
|
|
5423
|
-
}),
|
|
5463
|
+
}), j = x("border-b", {
|
|
5424
5464
|
variants: {
|
|
5425
5465
|
variant: {
|
|
5426
5466
|
default: "px-4 py-2 bg-blue-50 border-blue-200",
|
|
@@ -5455,36 +5495,36 @@ const es = {
|
|
|
5455
5495
|
}
|
|
5456
5496
|
return _;
|
|
5457
5497
|
}), z = u(
|
|
5458
|
-
() => v(
|
|
5498
|
+
() => v(b({
|
|
5459
5499
|
variant: d.variant,
|
|
5460
5500
|
padding: d.padding
|
|
5461
5501
|
}))
|
|
5462
|
-
),
|
|
5502
|
+
), k = u(
|
|
5463
5503
|
() => "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-slate-400"
|
|
5464
5504
|
), g = u(
|
|
5465
5505
|
() => v(
|
|
5466
|
-
|
|
5506
|
+
w({ size: "md" }),
|
|
5467
5507
|
"w-full pl-10 focus:border-transparent"
|
|
5468
5508
|
)
|
|
5469
5509
|
), B = u(
|
|
5470
5510
|
() => "absolute right-2 top-1/2 transform -translate-y-1/2 text-slate-400 hover:text-slate-600 p-1"
|
|
5471
5511
|
), $ = u(
|
|
5472
5512
|
() => v(
|
|
5473
|
-
|
|
5513
|
+
w({ size: "md" }),
|
|
5474
5514
|
"w-full focus:border-transparent"
|
|
5475
5515
|
)
|
|
5476
|
-
),
|
|
5477
|
-
() => v(
|
|
5516
|
+
), I = u(
|
|
5517
|
+
() => v(w({ size: "md" }))
|
|
5478
5518
|
), P = u(
|
|
5479
5519
|
() => "text-slate-500"
|
|
5480
5520
|
), E = u(
|
|
5481
|
-
() => v(
|
|
5521
|
+
() => v(C({ variant: "default", size: "md" }))
|
|
5482
5522
|
), te = u(
|
|
5483
|
-
() => v(
|
|
5523
|
+
() => v(C({ variant: "primary", size: "md" }))
|
|
5484
5524
|
), se = u(
|
|
5485
|
-
() => v(
|
|
5486
|
-
),
|
|
5487
|
-
() => v(
|
|
5525
|
+
() => v(C({ variant: "success", size: "md" }))
|
|
5526
|
+
), q = u(
|
|
5527
|
+
() => v(j({ variant: d.variant }))
|
|
5488
5528
|
), W = u(
|
|
5489
5529
|
() => "text-sm text-blue-700 font-medium"
|
|
5490
5530
|
), A = u(
|
|
@@ -5513,7 +5553,7 @@ const es = {
|
|
|
5513
5553
|
o("div", Bl, [
|
|
5514
5554
|
o("div", Vl, [
|
|
5515
5555
|
y(t, {
|
|
5516
|
-
class: c(
|
|
5556
|
+
class: c(k.value)
|
|
5517
5557
|
}, null, 8, ["class"]),
|
|
5518
5558
|
y(pe, {
|
|
5519
5559
|
"model-value": e.searchQuery,
|
|
@@ -5549,12 +5589,12 @@ const es = {
|
|
|
5549
5589
|
_: 1
|
|
5550
5590
|
}, 8, ["model-value", "class"])
|
|
5551
5591
|
])) : f("", !0),
|
|
5552
|
-
e.showDateFilter ? (a(), r("div",
|
|
5592
|
+
e.showDateFilter ? (a(), r("div", jl, [
|
|
5553
5593
|
y(pe, {
|
|
5554
5594
|
type: "date",
|
|
5555
5595
|
"model-value": e.dateFrom,
|
|
5556
5596
|
onInput: L[3] || (L[3] = (F) => _.$emit("update:dateFrom", F.target.value)),
|
|
5557
|
-
class: c(
|
|
5597
|
+
class: c(I.value)
|
|
5558
5598
|
}, null, 8, ["model-value", "class"]),
|
|
5559
5599
|
o("span", {
|
|
5560
5600
|
class: c(P.value)
|
|
@@ -5563,11 +5603,11 @@ const es = {
|
|
|
5563
5603
|
type: "date",
|
|
5564
5604
|
"model-value": e.dateTo,
|
|
5565
5605
|
onInput: L[4] || (L[4] = (F) => _.$emit("update:dateTo", F.target.value)),
|
|
5566
|
-
class: c(
|
|
5606
|
+
class: c(I.value)
|
|
5567
5607
|
}, null, 8, ["model-value", "class"])
|
|
5568
5608
|
])) : f("", !0),
|
|
5569
|
-
_.$slots.filters ? (a(), r("div",
|
|
5570
|
-
|
|
5609
|
+
_.$slots.filters ? (a(), r("div", Il, [
|
|
5610
|
+
h(_.$slots, "filters")
|
|
5571
5611
|
])) : f("", !0),
|
|
5572
5612
|
o("div", Ll, [
|
|
5573
5613
|
T.value ? (a(), M(ee, {
|
|
@@ -5606,7 +5646,7 @@ const es = {
|
|
|
5606
5646
|
], 2),
|
|
5607
5647
|
R.value.length > 0 ? (a(), r("div", {
|
|
5608
5648
|
key: 0,
|
|
5609
|
-
class: c(
|
|
5649
|
+
class: c(q.value)
|
|
5610
5650
|
}, [
|
|
5611
5651
|
o("div", Dl, [
|
|
5612
5652
|
o("span", {
|
|
@@ -5634,10 +5674,10 @@ const es = {
|
|
|
5634
5674
|
}, Pl = { class: "flex items-center gap-3" }, Fl = {
|
|
5635
5675
|
key: 0,
|
|
5636
5676
|
class: "flex items-center gap-3"
|
|
5637
|
-
}, Nl = { class: "text-sm text-slate-600" }, Rl = { class: "flex items-center gap-2" }, _l = { class: "flex items-center gap-3" },
|
|
5677
|
+
}, Nl = { class: "text-sm text-slate-600" }, Rl = { class: "flex items-center gap-2" }, _l = { class: "flex items-center gap-3" }, Hl = ["onClick", "title"], Ol = {
|
|
5638
5678
|
key: 1,
|
|
5639
5679
|
class: "relative"
|
|
5640
|
-
},
|
|
5680
|
+
}, ql = { class: "p-3" }, El = { class: "space-y-1" }, Ul = { class: "flex items-center gap-2 cursor-pointer w-full" }, Zl = ["checked", "onChange"], Gl = ["disabled"], Kl = {
|
|
5641
5681
|
key: 3,
|
|
5642
5682
|
class: "flex items-center gap-2"
|
|
5643
5683
|
}, Ql = {
|
|
@@ -5698,11 +5738,11 @@ const es = {
|
|
|
5698
5738
|
},
|
|
5699
5739
|
emits: ["bulk-action", "update:density", "toggle-column", "refresh"],
|
|
5700
5740
|
setup(e, { emit: s }) {
|
|
5701
|
-
const t = e, l = s, n =
|
|
5741
|
+
const t = e, l = s, n = H(!1), i = H(null), d = H(null), m = u(() => t.selectedItems.length), b = [
|
|
5702
5742
|
{ value: "compact", label: "Compact", icon: Jl },
|
|
5703
5743
|
{ value: "normal", label: "Normal", icon: Wl },
|
|
5704
5744
|
{ value: "comfortable", label: "Comfortable", icon: Xl }
|
|
5705
|
-
],
|
|
5745
|
+
], w = x("flex items-center justify-between border-b border-slate-200", {
|
|
5706
5746
|
variants: {
|
|
5707
5747
|
variant: {
|
|
5708
5748
|
default: "bg-white",
|
|
@@ -5719,7 +5759,7 @@ const es = {
|
|
|
5719
5759
|
variant: "default",
|
|
5720
5760
|
padding: "normal"
|
|
5721
5761
|
}
|
|
5722
|
-
}),
|
|
5762
|
+
}), C = x("px-3 py-1.5 text-sm font-medium rounded-md flex items-center gap-1 transition-colors", {
|
|
5723
5763
|
variants: {
|
|
5724
5764
|
variant: {
|
|
5725
5765
|
danger: "text-red-700 bg-red-50 hover:bg-red-100 border border-red-200",
|
|
@@ -5730,7 +5770,7 @@ const es = {
|
|
|
5730
5770
|
defaultVariants: {
|
|
5731
5771
|
variant: "secondary"
|
|
5732
5772
|
}
|
|
5733
|
-
}),
|
|
5773
|
+
}), j = x("p-2 border border-slate-300 transition-colors", {
|
|
5734
5774
|
variants: {
|
|
5735
5775
|
active: {
|
|
5736
5776
|
true: "bg-blue-50 text-blue-600 border-blue-300",
|
|
@@ -5757,17 +5797,17 @@ const es = {
|
|
|
5757
5797
|
state: "normal"
|
|
5758
5798
|
}
|
|
5759
5799
|
}), R = u(
|
|
5760
|
-
() => v(
|
|
5800
|
+
() => v(w({
|
|
5761
5801
|
variant: t.variant,
|
|
5762
5802
|
padding: t.padding
|
|
5763
5803
|
}))
|
|
5764
|
-
), z = u(() => "text-sm text-slate-600"),
|
|
5804
|
+
), z = u(() => "text-sm text-slate-600"), k = u(() => "flex items-center"), g = u(
|
|
5765
5805
|
() => "flex items-center gap-2 px-3 py-2 text-sm text-slate-600 hover:text-slate-800 border border-slate-300 rounded-md hover:bg-slate-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1"
|
|
5766
5806
|
), B = u(
|
|
5767
5807
|
() => "absolute right-0 top-full mt-1 w-56 bg-white border border-slate-200 rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
|
|
5768
5808
|
), $ = u(
|
|
5769
5809
|
() => "text-xs font-medium text-slate-500 uppercase tracking-wider mb-2 border-b border-slate-100 pb-2"
|
|
5770
|
-
),
|
|
5810
|
+
), I = u(
|
|
5771
5811
|
() => "py-1 hover:bg-slate-50 rounded transition-colors"
|
|
5772
5812
|
), P = u(
|
|
5773
5813
|
() => "w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500 focus:ring-2 focus:ring-offset-1"
|
|
@@ -5777,9 +5817,9 @@ const es = {
|
|
|
5777
5817
|
i.value && d.value && !i.value.contains(_.target) && !d.value.contains(_.target) && (n.value = !1);
|
|
5778
5818
|
}, se = () => {
|
|
5779
5819
|
n.value = !n.value;
|
|
5780
|
-
},
|
|
5820
|
+
}, q = (_) => v(C({ variant: _.variant || "secondary" })), W = (_) => {
|
|
5781
5821
|
let L = "middle";
|
|
5782
|
-
return _ === "compact" ? L = "first" : _ === "comfortable" && (L = "last"), v(
|
|
5822
|
+
return _ === "compact" ? L = "first" : _ === "comfortable" && (L = "last"), v(j({
|
|
5783
5823
|
active: t.density === _,
|
|
5784
5824
|
position: L
|
|
5785
5825
|
}));
|
|
@@ -5804,7 +5844,7 @@ const es = {
|
|
|
5804
5844
|
(a(!0), r(Q, null, K(e.bulkActions, (F) => (a(), M(ee, {
|
|
5805
5845
|
key: F.key,
|
|
5806
5846
|
onClick: (ie) => _.$emit("bulk-action", { action: F.key, items: e.selectedItems }),
|
|
5807
|
-
class: c(
|
|
5847
|
+
class: c(q(F))
|
|
5808
5848
|
}, {
|
|
5809
5849
|
default: S(() => [
|
|
5810
5850
|
F.icon ? (a(), M(X(F.icon), {
|
|
@@ -5824,9 +5864,9 @@ const es = {
|
|
|
5824
5864
|
o("div", _l, [
|
|
5825
5865
|
e.showDensityToggle ? (a(), r("div", {
|
|
5826
5866
|
key: 0,
|
|
5827
|
-
class: c(
|
|
5867
|
+
class: c(k.value)
|
|
5828
5868
|
}, [
|
|
5829
|
-
(a(), r(Q, null, K(
|
|
5869
|
+
(a(), r(Q, null, K(b, (F) => o("button", {
|
|
5830
5870
|
key: F.value,
|
|
5831
5871
|
onClick: (ie) => _.$emit("update:density", F.value),
|
|
5832
5872
|
class: c(W(F.value)),
|
|
@@ -5834,9 +5874,9 @@ const es = {
|
|
|
5834
5874
|
type: "button"
|
|
5835
5875
|
}, [
|
|
5836
5876
|
(a(), M(X(F.icon), { class: "w-4 h-4" }))
|
|
5837
|
-
], 10,
|
|
5877
|
+
], 10, Hl)), 64))
|
|
5838
5878
|
], 2)) : f("", !0),
|
|
5839
|
-
e.showColumnToggle ? (a(), r("div",
|
|
5879
|
+
e.showColumnToggle ? (a(), r("div", Ol, [
|
|
5840
5880
|
o("button", {
|
|
5841
5881
|
onClick: $e(se, ["stop"]),
|
|
5842
5882
|
class: c(g.value),
|
|
@@ -5854,14 +5894,14 @@ const es = {
|
|
|
5854
5894
|
onClick: L[0] || (L[0] = $e(() => {
|
|
5855
5895
|
}, ["stop"]))
|
|
5856
5896
|
}, [
|
|
5857
|
-
o("div",
|
|
5897
|
+
o("div", ql, [
|
|
5858
5898
|
o("div", {
|
|
5859
5899
|
class: c($.value)
|
|
5860
5900
|
}, " Show Columns ", 2),
|
|
5861
5901
|
o("div", El, [
|
|
5862
5902
|
(a(!0), r(Q, null, K(e.toggleableColumns, (F) => (a(), r("div", {
|
|
5863
5903
|
key: F.key,
|
|
5864
|
-
class: c(
|
|
5904
|
+
class: c(I.value)
|
|
5865
5905
|
}, [
|
|
5866
5906
|
o("label", Ul, [
|
|
5867
5907
|
o("input", {
|
|
@@ -5894,7 +5934,7 @@ const es = {
|
|
|
5894
5934
|
L[3] || (L[3] = o("span", null, "Refresh", -1))
|
|
5895
5935
|
], 10, Gl)) : f("", !0),
|
|
5896
5936
|
_.$slots.actions ? (a(), r("div", Kl, [
|
|
5897
|
-
|
|
5937
|
+
h(_.$slots, "actions")
|
|
5898
5938
|
])) : f("", !0)
|
|
5899
5939
|
])
|
|
5900
5940
|
], 2));
|
|
@@ -5909,14 +5949,14 @@ const es = {
|
|
|
5909
5949
|
},
|
|
5910
5950
|
setup(e) {
|
|
5911
5951
|
return (s, t) => {
|
|
5912
|
-
const l = G("Logo"), n = G("Text"), i = G("Typography"), d = G("Link"), m = G("Icon"),
|
|
5952
|
+
const l = G("Logo"), n = G("Text"), i = G("Typography"), d = G("Link"), m = G("Icon"), b = G("Divider");
|
|
5913
5953
|
return a(), r("footer", {
|
|
5914
5954
|
class: c(D(v)("bg-gray-50 border-t border-gray-200", e.className))
|
|
5915
5955
|
}, [
|
|
5916
5956
|
o("div", sn, [
|
|
5917
5957
|
o("div", ln, [
|
|
5918
5958
|
o("div", nn, [
|
|
5919
|
-
|
|
5959
|
+
h(s.$slots, "brand", {}, () => [
|
|
5920
5960
|
y(l, { class: "mb-4" }),
|
|
5921
5961
|
y(n, { class: "text-gray-600 max-w-md" }, {
|
|
5922
5962
|
default: S(() => [...t[0] || (t[0] = [
|
|
@@ -5927,7 +5967,7 @@ const es = {
|
|
|
5927
5967
|
])
|
|
5928
5968
|
]),
|
|
5929
5969
|
o("div", null, [
|
|
5930
|
-
|
|
5970
|
+
h(s.$slots, "links", {}, () => [
|
|
5931
5971
|
y(i, {
|
|
5932
5972
|
variant: "h6",
|
|
5933
5973
|
class: "mb-4"
|
|
@@ -5969,7 +6009,7 @@ const es = {
|
|
|
5969
6009
|
])
|
|
5970
6010
|
]),
|
|
5971
6011
|
o("div", null, [
|
|
5972
|
-
|
|
6012
|
+
h(s.$slots, "social", {}, () => [
|
|
5973
6013
|
y(i, {
|
|
5974
6014
|
variant: "h6",
|
|
5975
6015
|
class: "mb-4"
|
|
@@ -6008,9 +6048,9 @@ const es = {
|
|
|
6008
6048
|
])
|
|
6009
6049
|
])
|
|
6010
6050
|
]),
|
|
6011
|
-
y(
|
|
6051
|
+
y(b, { class: "my-8" }),
|
|
6012
6052
|
o("div", dn, [
|
|
6013
|
-
|
|
6053
|
+
h(s.$slots, "copyright", {}, () => [
|
|
6014
6054
|
y(n, { class: "text-gray-600" }, {
|
|
6015
6055
|
default: S(() => [
|
|
6016
6056
|
N(" © " + p((/* @__PURE__ */ new Date()).getFullYear()) + " Your Company. All rights reserved. ", 1)
|
|
@@ -6018,7 +6058,7 @@ const es = {
|
|
|
6018
6058
|
_: 1
|
|
6019
6059
|
})
|
|
6020
6060
|
]),
|
|
6021
|
-
|
|
6061
|
+
h(s.$slots, "legal", {}, () => [
|
|
6022
6062
|
o("div", cn, [
|
|
6023
6063
|
y(d, {
|
|
6024
6064
|
href: "#",
|
|
@@ -6045,7 +6085,7 @@ const es = {
|
|
|
6045
6085
|
], 2);
|
|
6046
6086
|
};
|
|
6047
6087
|
}
|
|
6048
|
-
}, mn = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" }, fn = { class: "flex justify-between items-center h-16" }, vn = { class: "flex items-center" }, gn = { class: "hidden md:block" }, pn = { class: "flex items-center space-x-4" },
|
|
6088
|
+
}, mn = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" }, fn = { class: "flex justify-between items-center h-16" }, vn = { class: "flex items-center" }, gn = { class: "hidden md:block" }, pn = { class: "flex items-center space-x-4" }, bn = { class: "md:hidden" }, hn = {
|
|
6049
6089
|
__name: "Header",
|
|
6050
6090
|
props: {
|
|
6051
6091
|
className: {
|
|
@@ -6063,17 +6103,17 @@ const es = {
|
|
|
6063
6103
|
o("div", mn, [
|
|
6064
6104
|
o("div", fn, [
|
|
6065
6105
|
o("div", vn, [
|
|
6066
|
-
|
|
6106
|
+
h(s.$slots, "logo", {}, () => [
|
|
6067
6107
|
y(l)
|
|
6068
6108
|
])
|
|
6069
6109
|
]),
|
|
6070
6110
|
o("div", gn, [
|
|
6071
|
-
|
|
6111
|
+
h(s.$slots, "navigation", {}, () => [
|
|
6072
6112
|
y(n)
|
|
6073
6113
|
])
|
|
6074
6114
|
]),
|
|
6075
6115
|
o("div", pn, [
|
|
6076
|
-
|
|
6116
|
+
h(s.$slots, "actions", {}, () => [
|
|
6077
6117
|
y(i, {
|
|
6078
6118
|
variant: "ghost",
|
|
6079
6119
|
size: "sm"
|
|
@@ -6091,8 +6131,8 @@ const es = {
|
|
|
6091
6131
|
})
|
|
6092
6132
|
])
|
|
6093
6133
|
]),
|
|
6094
|
-
o("div",
|
|
6095
|
-
|
|
6134
|
+
o("div", bn, [
|
|
6135
|
+
h(s.$slots, "mobile-toggle", {}, () => [
|
|
6096
6136
|
y(i, {
|
|
6097
6137
|
variant: "ghost",
|
|
6098
6138
|
size: "sm",
|
|
@@ -6137,17 +6177,17 @@ const es = {
|
|
|
6137
6177
|
}, [
|
|
6138
6178
|
o("div", yn, [
|
|
6139
6179
|
o("div", xn, [
|
|
6140
|
-
|
|
6180
|
+
h(s.$slots, "header", {}, () => [
|
|
6141
6181
|
y(l)
|
|
6142
6182
|
])
|
|
6143
6183
|
]),
|
|
6144
6184
|
o("nav", kn, [
|
|
6145
|
-
|
|
6185
|
+
h(s.$slots, "navigation", {}, () => [
|
|
6146
6186
|
y(n, { items: e.items }, null, 8, ["items"])
|
|
6147
6187
|
])
|
|
6148
6188
|
]),
|
|
6149
6189
|
o("div", wn, [
|
|
6150
|
-
|
|
6190
|
+
h(s.$slots, "footer", {}, () => [
|
|
6151
6191
|
y(i, { class: "mb-4" }),
|
|
6152
6192
|
o("div", Cn, [
|
|
6153
6193
|
y(d, { size: "sm" }),
|
|
@@ -6188,7 +6228,7 @@ const es = {
|
|
|
6188
6228
|
e.orientation === "vertical" ? "flex-col" : "flex-row"
|
|
6189
6229
|
])
|
|
6190
6230
|
}, [
|
|
6191
|
-
|
|
6231
|
+
h(s.$slots, "default")
|
|
6192
6232
|
], 2));
|
|
6193
6233
|
}
|
|
6194
6234
|
}, zn = {
|
|
@@ -6197,7 +6237,7 @@ const es = {
|
|
|
6197
6237
|
}, Bn = { class: "z-10 flex items-center justify-center w-6 h-6 rounded-full border-2 border-blue-500 bg-white text-blue-500" }, Vn = { class: "text-slate-900 font-medium" }, Tn = {
|
|
6198
6238
|
key: 0,
|
|
6199
6239
|
class: "text-slate-500 text-sm"
|
|
6200
|
-
}, Mn = { class: "mt-2 text-slate-600 text-sm" },
|
|
6240
|
+
}, Mn = { class: "mt-2 text-slate-600 text-sm" }, jn = {
|
|
6201
6241
|
__name: "TimelineItem",
|
|
6202
6242
|
props: {
|
|
6203
6243
|
title: {
|
|
@@ -6223,7 +6263,7 @@ const es = {
|
|
|
6223
6263
|
}, [
|
|
6224
6264
|
e.orientation === "vertical" ? (a(), r("div", zn)) : f("", !0),
|
|
6225
6265
|
o("div", Bn, [
|
|
6226
|
-
|
|
6266
|
+
h(s.$slots, "icon", {}, () => [
|
|
6227
6267
|
t[0] || (t[0] = o("div", { class: "w-2 h-2 rounded-full bg-blue-500" }, null, -1))
|
|
6228
6268
|
])
|
|
6229
6269
|
]),
|
|
@@ -6234,17 +6274,17 @@ const es = {
|
|
|
6234
6274
|
])
|
|
6235
6275
|
}, [
|
|
6236
6276
|
o("h3", Vn, [
|
|
6237
|
-
|
|
6277
|
+
h(s.$slots, "title", {}, () => [
|
|
6238
6278
|
N(p(e.title), 1)
|
|
6239
6279
|
])
|
|
6240
6280
|
]),
|
|
6241
6281
|
e.subtitle ? (a(), r("p", Tn, [
|
|
6242
|
-
|
|
6282
|
+
h(s.$slots, "subtitle", {}, () => [
|
|
6243
6283
|
N(p(e.subtitle), 1)
|
|
6244
6284
|
])
|
|
6245
6285
|
])) : f("", !0),
|
|
6246
6286
|
o("div", Mn, [
|
|
6247
|
-
|
|
6287
|
+
h(s.$slots, "default")
|
|
6248
6288
|
])
|
|
6249
6289
|
], 2)
|
|
6250
6290
|
], 2));
|
|
@@ -6254,7 +6294,7 @@ const es = {
|
|
|
6254
6294
|
for (const [l, n] of s)
|
|
6255
6295
|
t[l] = n;
|
|
6256
6296
|
return t;
|
|
6257
|
-
},
|
|
6297
|
+
}, In = {
|
|
6258
6298
|
name: "AuthLayout",
|
|
6259
6299
|
props: {
|
|
6260
6300
|
title: {
|
|
@@ -6343,7 +6383,7 @@ const es = {
|
|
|
6343
6383
|
currentYear: u(() => (/* @__PURE__ */ new Date()).getFullYear())
|
|
6344
6384
|
};
|
|
6345
6385
|
}
|
|
6346
|
-
}, Ln = { class: "container mx-auto px-4 relative z-10" }, Dn = { class: "grid lg:grid-cols-10 gap-8 items-center min-h-screen" }, An = { class: "lg:col-span-6 text-white text-center lg:text-left space-y-6" }, Pn = { class: "mb-6" }, Fn = { class: "text-4xl lg:text-6xl font-bold mb-2" }, Nn = { class: "text-white" }, Rn = { class: "flex items-center justify-center lg:justify-start mb-6" }, _n = { class: "text-3xl lg:text-4xl font-bold text-white" },
|
|
6386
|
+
}, Ln = { class: "container mx-auto px-4 relative z-10" }, Dn = { class: "grid lg:grid-cols-10 gap-8 items-center min-h-screen" }, An = { class: "lg:col-span-6 text-white text-center lg:text-left space-y-6" }, Pn = { class: "mb-6" }, Fn = { class: "text-4xl lg:text-6xl font-bold mb-2" }, Nn = { class: "text-white" }, Rn = { class: "flex items-center justify-center lg:justify-start mb-6" }, _n = { class: "text-3xl lg:text-4xl font-bold text-white" }, Hn = { class: "lg:col-span-4" }, On = { class: "bg-white rounded-lg shadow-xl p-6 lg:p-8 max-w-md mx-auto" }, qn = {
|
|
6347
6387
|
key: 0,
|
|
6348
6388
|
class: "mb-6"
|
|
6349
6389
|
}, En = { class: "text-center" }, Un = { class: "text-2xl font-bold text-gray-900" }, Zn = {
|
|
@@ -6394,10 +6434,10 @@ function rr(e, s, t, l, n, i) {
|
|
|
6394
6434
|
o("p", { class: "text-sm lg:text-base font-light text-white/70 italic leading-relaxed" })
|
|
6395
6435
|
], -1))
|
|
6396
6436
|
]),
|
|
6397
|
-
o("div",
|
|
6398
|
-
o("div",
|
|
6399
|
-
e.$slots["card-header"] || t.title ? (a(), r("div",
|
|
6400
|
-
|
|
6437
|
+
o("div", Hn, [
|
|
6438
|
+
o("div", On, [
|
|
6439
|
+
e.$slots["card-header"] || t.title ? (a(), r("div", qn, [
|
|
6440
|
+
h(e.$slots, "card-header", {}, () => [
|
|
6401
6441
|
o("div", En, [
|
|
6402
6442
|
o("h1", Un, p(t.title), 1),
|
|
6403
6443
|
t.subtitle ? (a(), r("p", Zn, p(t.subtitle), 1)) : f("", !0)
|
|
@@ -6405,14 +6445,14 @@ function rr(e, s, t, l, n, i) {
|
|
|
6405
6445
|
])
|
|
6406
6446
|
])) : f("", !0),
|
|
6407
6447
|
o("div", Gn, [
|
|
6408
|
-
|
|
6448
|
+
h(e.$slots, "default")
|
|
6409
6449
|
]),
|
|
6410
6450
|
e.$slots["card-footer"] ? (a(), r("div", Kn, [
|
|
6411
|
-
|
|
6451
|
+
h(e.$slots, "card-footer")
|
|
6412
6452
|
])) : f("", !0)
|
|
6413
6453
|
]),
|
|
6414
6454
|
e.$slots.links ? (a(), r("div", Qn, [
|
|
6415
|
-
|
|
6455
|
+
h(e.$slots, "links")
|
|
6416
6456
|
])) : f("", !0)
|
|
6417
6457
|
])
|
|
6418
6458
|
])
|
|
@@ -6447,7 +6487,7 @@ function rr(e, s, t, l, n, i) {
|
|
|
6447
6487
|
])
|
|
6448
6488
|
], 4);
|
|
6449
6489
|
}
|
|
6450
|
-
const or = /* @__PURE__ */ Ne(
|
|
6490
|
+
const or = /* @__PURE__ */ Ne(In, [["render", rr]]), ir = { class: "min-h-screen bg-gray-50" }, dr = { class: "flex-1" }, cr = {
|
|
6451
6491
|
key: 0,
|
|
6452
6492
|
class: "bg-white border-b border-gray-200"
|
|
6453
6493
|
}, ur = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4" }, mr = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8" }, fr = {
|
|
@@ -6473,21 +6513,21 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6473
6513
|
},
|
|
6474
6514
|
setup(e) {
|
|
6475
6515
|
return (s, t) => {
|
|
6476
|
-
const l = G("Logo"), n = G("MainNavigation"), i = G("Button"), d = G("Header"), m = G("Breadcrumb"),
|
|
6516
|
+
const l = G("Logo"), n = G("MainNavigation"), i = G("Button"), d = G("Header"), m = G("Breadcrumb"), b = G("Text"), w = G("Footer");
|
|
6477
6517
|
return a(), r("div", ir, [
|
|
6478
6518
|
y(d, null, {
|
|
6479
6519
|
logo: S(() => [
|
|
6480
|
-
|
|
6520
|
+
h(s.$slots, "logo", {}, () => [
|
|
6481
6521
|
y(l)
|
|
6482
6522
|
])
|
|
6483
6523
|
]),
|
|
6484
6524
|
navigation: S(() => [
|
|
6485
|
-
|
|
6525
|
+
h(s.$slots, "navigation", {}, () => [
|
|
6486
6526
|
y(n, { items: e.navigationItems }, null, 8, ["items"])
|
|
6487
6527
|
])
|
|
6488
6528
|
]),
|
|
6489
6529
|
actions: S(() => [
|
|
6490
|
-
|
|
6530
|
+
h(s.$slots, "header-actions", {}, () => [
|
|
6491
6531
|
y(i, {
|
|
6492
6532
|
variant: "ghost",
|
|
6493
6533
|
size: "sm"
|
|
@@ -6510,20 +6550,20 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6510
6550
|
o("main", dr, [
|
|
6511
6551
|
e.showBreadcrumb ? (a(), r("div", cr, [
|
|
6512
6552
|
o("div", ur, [
|
|
6513
|
-
|
|
6553
|
+
h(s.$slots, "breadcrumb", {}, () => [
|
|
6514
6554
|
y(m, { items: e.breadcrumbItems }, null, 8, ["items"])
|
|
6515
6555
|
])
|
|
6516
6556
|
])
|
|
6517
6557
|
])) : f("", !0),
|
|
6518
6558
|
o("div", mr, [
|
|
6519
|
-
|
|
6559
|
+
h(s.$slots, "default")
|
|
6520
6560
|
])
|
|
6521
6561
|
]),
|
|
6522
|
-
y(
|
|
6562
|
+
y(w, null, {
|
|
6523
6563
|
brand: S(() => [
|
|
6524
|
-
|
|
6564
|
+
h(s.$slots, "footer-brand", {}, () => [
|
|
6525
6565
|
y(l, { class: "mb-4" }),
|
|
6526
|
-
y(
|
|
6566
|
+
y(b, { class: "text-gray-600 max-w-md" }, {
|
|
6527
6567
|
default: S(() => [...t[2] || (t[2] = [
|
|
6528
6568
|
N(" Your application description goes here. ", -1)
|
|
6529
6569
|
])]),
|
|
@@ -6666,14 +6706,14 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6666
6706
|
window.history.length > 1 ? window.history.back() : window.location.href = e.homeUrl, s("back");
|
|
6667
6707
|
}, m = () => {
|
|
6668
6708
|
window.location.reload(), s("retry");
|
|
6669
|
-
},
|
|
6709
|
+
}, b = u(() => [
|
|
6670
6710
|
"min-h-screen relative flex items-center justify-center",
|
|
6671
6711
|
"px-4 sm:px-6 lg:px-8"
|
|
6672
|
-
]), k = u(() => [
|
|
6673
|
-
"absolute inset-0 -z-10"
|
|
6674
6712
|
]), w = u(() => [
|
|
6713
|
+
"absolute inset-0 -z-10"
|
|
6714
|
+
]), C = u(() => [
|
|
6675
6715
|
"w-full max-w-lg mx-auto text-center"
|
|
6676
|
-
]),
|
|
6716
|
+
]), j = u(() => [
|
|
6677
6717
|
"mb-8"
|
|
6678
6718
|
]), T = u(() => [
|
|
6679
6719
|
"space-y-6"
|
|
@@ -6681,7 +6721,7 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6681
6721
|
"flex justify-center mb-6"
|
|
6682
6722
|
]), z = u(() => [
|
|
6683
6723
|
"w-32 h-32 text-slate-400"
|
|
6684
|
-
]),
|
|
6724
|
+
]), k = u(() => [
|
|
6685
6725
|
"space-y-3"
|
|
6686
6726
|
]), g = u(() => [
|
|
6687
6727
|
"text-3xl font-bold text-slate-900"
|
|
@@ -6689,7 +6729,7 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6689
6729
|
"text-lg text-slate-600"
|
|
6690
6730
|
]), $ = u(() => [
|
|
6691
6731
|
"text-sm text-slate-500 font-mono"
|
|
6692
|
-
]),
|
|
6732
|
+
]), I = u(() => [
|
|
6693
6733
|
"mt-8"
|
|
6694
6734
|
]), P = u(() => [
|
|
6695
6735
|
"mt-6"
|
|
@@ -6700,22 +6740,22 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6700
6740
|
errorMessage: i,
|
|
6701
6741
|
goBack: d,
|
|
6702
6742
|
retry: m,
|
|
6703
|
-
layoutClasses:
|
|
6704
|
-
backgroundClasses:
|
|
6705
|
-
contentClasses:
|
|
6706
|
-
headerClasses:
|
|
6743
|
+
layoutClasses: b,
|
|
6744
|
+
backgroundClasses: w,
|
|
6745
|
+
contentClasses: C,
|
|
6746
|
+
headerClasses: j,
|
|
6707
6747
|
errorContentClasses: T,
|
|
6708
6748
|
illustrationClasses: R,
|
|
6709
6749
|
iconClasses: z,
|
|
6710
|
-
detailsClasses:
|
|
6750
|
+
detailsClasses: k,
|
|
6711
6751
|
titleClasses: g,
|
|
6712
6752
|
messageClasses: B,
|
|
6713
6753
|
codeClasses: $,
|
|
6714
|
-
actionsClasses:
|
|
6754
|
+
actionsClasses: I,
|
|
6715
6755
|
helpClasses: P
|
|
6716
6756
|
};
|
|
6717
6757
|
}
|
|
6718
|
-
},
|
|
6758
|
+
}, br = { class: "flex justify-center" }, hr = { class: "flex items-center gap-3" }, yr = { class: "text-2xl font-bold text-slate-900" }, xr = { class: "flex flex-col sm:flex-row gap-3 justify-center" }, kr = { class: "text-sm text-slate-600" }, wr = ["href"];
|
|
6719
6759
|
function Cr(e, s, t, l, n, i) {
|
|
6720
6760
|
const d = G("Button");
|
|
6721
6761
|
return a(), r("div", {
|
|
@@ -6725,7 +6765,7 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6725
6765
|
key: 0,
|
|
6726
6766
|
class: c(l.backgroundClasses)
|
|
6727
6767
|
}, [
|
|
6728
|
-
|
|
6768
|
+
h(e.$slots, "background", {}, () => [
|
|
6729
6769
|
s[0] || (s[0] = o("div", { class: "absolute inset-0 bg-gradient-to-br from-slate-50 to-slate-100" }, null, -1))
|
|
6730
6770
|
])
|
|
6731
6771
|
], 2)) : f("", !0),
|
|
@@ -6736,10 +6776,10 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6736
6776
|
key: 0,
|
|
6737
6777
|
class: c(l.headerClasses)
|
|
6738
6778
|
}, [
|
|
6739
|
-
|
|
6740
|
-
o("div",
|
|
6741
|
-
|
|
6742
|
-
o("div",
|
|
6779
|
+
h(e.$slots, "header", {}, () => [
|
|
6780
|
+
o("div", br, [
|
|
6781
|
+
h(e.$slots, "logo", {}, () => [
|
|
6782
|
+
o("div", hr, [
|
|
6743
6783
|
s[1] || (s[1] = o("div", { class: "w-10 h-10 bg-blue-600 rounded-xl flex items-center justify-center" }, [
|
|
6744
6784
|
o("span", { class: "text-white font-bold text-lg" }, "STL")
|
|
6745
6785
|
], -1)),
|
|
@@ -6756,7 +6796,7 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6756
6796
|
key: 0,
|
|
6757
6797
|
class: c(l.illustrationClasses)
|
|
6758
6798
|
}, [
|
|
6759
|
-
|
|
6799
|
+
h(e.$slots, "illustration", {}, () => [
|
|
6760
6800
|
(a(), M(X(l.errorIcon), {
|
|
6761
6801
|
class: c(l.iconClasses)
|
|
6762
6802
|
}, null, 8, ["class"]))
|
|
@@ -6768,14 +6808,14 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6768
6808
|
o("h1", {
|
|
6769
6809
|
class: c(l.titleClasses)
|
|
6770
6810
|
}, [
|
|
6771
|
-
|
|
6811
|
+
h(e.$slots, "title", {}, () => [
|
|
6772
6812
|
N(p(l.errorTitle), 1)
|
|
6773
6813
|
])
|
|
6774
6814
|
], 2),
|
|
6775
6815
|
o("p", {
|
|
6776
6816
|
class: c(l.messageClasses)
|
|
6777
6817
|
}, [
|
|
6778
|
-
|
|
6818
|
+
h(e.$slots, "message", {}, () => [
|
|
6779
6819
|
N(p(l.errorMessage), 1)
|
|
6780
6820
|
])
|
|
6781
6821
|
], 2),
|
|
@@ -6788,7 +6828,7 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6788
6828
|
key: 1,
|
|
6789
6829
|
class: c(l.actionsClasses)
|
|
6790
6830
|
}, [
|
|
6791
|
-
|
|
6831
|
+
h(e.$slots, "actions", {}, () => [
|
|
6792
6832
|
o("div", xr, [
|
|
6793
6833
|
t.showHomeButton ? (a(), M(d, {
|
|
6794
6834
|
key: 0,
|
|
@@ -6830,7 +6870,7 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6830
6870
|
key: 2,
|
|
6831
6871
|
class: c(l.helpClasses)
|
|
6832
6872
|
}, [
|
|
6833
|
-
|
|
6873
|
+
h(e.$slots, "help", {}, () => [
|
|
6834
6874
|
o("p", kr, [
|
|
6835
6875
|
N(p(t.helpText) + " ", 1),
|
|
6836
6876
|
t.supportUrl ? (a(), r("a", {
|
|
@@ -6854,21 +6894,21 @@ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
|
|
|
6854
6894
|
Icon: Y,
|
|
6855
6895
|
Image: ct,
|
|
6856
6896
|
Input: pe,
|
|
6857
|
-
Label:
|
|
6858
|
-
Link:
|
|
6897
|
+
Label: Ie,
|
|
6898
|
+
Link: bt,
|
|
6859
6899
|
Logo: yt,
|
|
6860
6900
|
Option: Le,
|
|
6861
6901
|
ProgressBar: wt,
|
|
6862
6902
|
Radio: St,
|
|
6863
6903
|
Select: we,
|
|
6864
|
-
Spinner:
|
|
6904
|
+
Spinner: je,
|
|
6865
6905
|
Switch: Vt,
|
|
6866
6906
|
Text: Tt,
|
|
6867
|
-
Textarea:
|
|
6868
|
-
Tooltip:
|
|
6869
|
-
Typography:
|
|
6907
|
+
Textarea: jt,
|
|
6908
|
+
Tooltip: It,
|
|
6909
|
+
Typography: he,
|
|
6870
6910
|
Alert: Rt,
|
|
6871
|
-
Breadcrumb:
|
|
6911
|
+
Breadcrumb: Ot,
|
|
6872
6912
|
ButtonGroup: Et,
|
|
6873
6913
|
Card: Wt,
|
|
6874
6914
|
CardHeader: Jt,
|
|
@@ -6892,10 +6932,10 @@ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
|
|
|
6892
6932
|
Toast: cs,
|
|
6893
6933
|
Search: Ss,
|
|
6894
6934
|
Slider: Ts,
|
|
6895
|
-
Stepper:
|
|
6935
|
+
Stepper: js,
|
|
6896
6936
|
StepperItem: Ps,
|
|
6897
6937
|
Tab: _s,
|
|
6898
|
-
TabPanel:
|
|
6938
|
+
TabPanel: Hs,
|
|
6899
6939
|
Accordion: Gs,
|
|
6900
6940
|
AccordionItem: Ks,
|
|
6901
6941
|
Calendar: el,
|
|
@@ -6907,10 +6947,10 @@ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
|
|
|
6907
6947
|
DataTableFilters: Al,
|
|
6908
6948
|
DataTableToolBar: an,
|
|
6909
6949
|
Footer: un,
|
|
6910
|
-
Header:
|
|
6950
|
+
Header: hn,
|
|
6911
6951
|
Sidebar: $n,
|
|
6912
6952
|
Timeline: Sn,
|
|
6913
|
-
TimelineItem:
|
|
6953
|
+
TimelineItem: jn,
|
|
6914
6954
|
AuthLayout: or,
|
|
6915
6955
|
DefaultLayout: fr,
|
|
6916
6956
|
ErrorLayout: $r
|
|
@@ -6930,7 +6970,7 @@ export {
|
|
|
6930
6970
|
or as AuthLayout,
|
|
6931
6971
|
Ke as Avatar,
|
|
6932
6972
|
Ye as Badge,
|
|
6933
|
-
|
|
6973
|
+
Ot as Breadcrumb,
|
|
6934
6974
|
ee as Button,
|
|
6935
6975
|
Et as ButtonGroup,
|
|
6936
6976
|
el as Calendar,
|
|
@@ -6957,13 +6997,13 @@ export {
|
|
|
6957
6997
|
xa as FileUpload,
|
|
6958
6998
|
un as Footer,
|
|
6959
6999
|
za as FormField,
|
|
6960
|
-
|
|
7000
|
+
hn as Header,
|
|
6961
7001
|
Y as Icon,
|
|
6962
7002
|
ct as Image,
|
|
6963
7003
|
pe as Input,
|
|
6964
7004
|
Ta as InputGroup,
|
|
6965
|
-
|
|
6966
|
-
|
|
7005
|
+
Ie as Label,
|
|
7006
|
+
bt as Link,
|
|
6967
7007
|
Pa as ListItem,
|
|
6968
7008
|
yt as Logo,
|
|
6969
7009
|
Na as MenuItem,
|
|
@@ -6979,19 +7019,19 @@ export {
|
|
|
6979
7019
|
we as Select,
|
|
6980
7020
|
$n as Sidebar,
|
|
6981
7021
|
Ts as Slider,
|
|
6982
|
-
|
|
6983
|
-
|
|
7022
|
+
je as Spinner,
|
|
7023
|
+
js as Stepper,
|
|
6984
7024
|
Ps as StepperItem,
|
|
6985
7025
|
Vt as Switch,
|
|
6986
7026
|
_s as Tab,
|
|
6987
|
-
|
|
7027
|
+
Hs as TabPanel,
|
|
6988
7028
|
Tt as Text,
|
|
6989
|
-
|
|
7029
|
+
jt as Textarea,
|
|
6990
7030
|
Sn as Timeline,
|
|
6991
|
-
|
|
7031
|
+
jn as TimelineItem,
|
|
6992
7032
|
cs as Toast,
|
|
6993
|
-
|
|
6994
|
-
|
|
7033
|
+
It as Tooltip,
|
|
7034
|
+
he as Typography,
|
|
6995
7035
|
v as cn,
|
|
6996
7036
|
Vr as default,
|
|
6997
7037
|
Se as toast,
|