@stlhorizon/vue-ui 1.2.1 → 1.2.3
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 +889 -897
- 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
|
|
1
|
+
import { computed as u, createElementBlock as r, openBlock as a, normalizeClass as d, 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",
|
|
@@ -105,17 +138,17 @@ const Ue = {
|
|
|
105
138
|
},
|
|
106
139
|
setup(e) {
|
|
107
140
|
const s = e, t = u(() => {
|
|
108
|
-
const
|
|
109
|
-
return
|
|
141
|
+
const c = Ue[s.name];
|
|
142
|
+
return c ? c.template : (console.warn(`Icon "${s.name}" not found`), "");
|
|
110
143
|
}), l = u(() => {
|
|
111
|
-
const
|
|
144
|
+
const c = {
|
|
112
145
|
xs: "w-3 h-3",
|
|
113
146
|
sm: "w-4 h-4",
|
|
114
147
|
md: "w-5 h-5",
|
|
115
148
|
lg: "w-6 h-6",
|
|
116
149
|
xl: "w-8 h-8"
|
|
117
150
|
};
|
|
118
|
-
return
|
|
151
|
+
return c[s.size] || c.md;
|
|
119
152
|
}), n = u(
|
|
120
153
|
() => s.color ? `text-${s.color}` : "text-current"
|
|
121
154
|
), i = u(() => [
|
|
@@ -123,9 +156,9 @@ const Ue = {
|
|
|
123
156
|
n.value,
|
|
124
157
|
"inline-block"
|
|
125
158
|
]);
|
|
126
|
-
return (
|
|
159
|
+
return (c, m) => (a(), r("span", {
|
|
127
160
|
innerHTML: t.value,
|
|
128
|
-
class:
|
|
161
|
+
class: d(i.value),
|
|
129
162
|
"aria-hidden": !e.ariaLabel,
|
|
130
163
|
"aria-label": e.ariaLabel,
|
|
131
164
|
role: e.ariaLabel ? "img" : void 0
|
|
@@ -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: {
|
|
@@ -169,7 +202,7 @@ const Ue = {
|
|
|
169
202
|
}
|
|
170
203
|
), n = u(
|
|
171
204
|
() => v(l({ size: s.size, variant: s.variant }), s.class)
|
|
172
|
-
), i = u(() => "aspect-square h-full w-full object-cover"),
|
|
205
|
+
), i = u(() => "aspect-square h-full w-full object-cover"), c = u(
|
|
173
206
|
() => v(
|
|
174
207
|
"flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",
|
|
175
208
|
{
|
|
@@ -187,25 +220,25 @@ 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 (
|
|
194
|
-
class:
|
|
226
|
+
return (w, C) => (a(), r("div", {
|
|
227
|
+
class: d(n.value)
|
|
195
228
|
}, [
|
|
196
229
|
e.src ? (a(), r("img", {
|
|
197
230
|
key: 0,
|
|
198
231
|
src: e.src,
|
|
199
232
|
alt: e.alt,
|
|
200
|
-
class:
|
|
201
|
-
onError:
|
|
233
|
+
class: d(i.value),
|
|
234
|
+
onError: b
|
|
202
235
|
}, null, 42, Ge)) : e.initials ? (a(), r("span", {
|
|
203
236
|
key: 1,
|
|
204
|
-
class: c
|
|
237
|
+
class: d(c.value)
|
|
205
238
|
}, p(e.initials), 3)) : (a(), M(Y, {
|
|
206
239
|
key: 2,
|
|
207
240
|
name: "User",
|
|
208
|
-
class:
|
|
241
|
+
class: d(m.value)
|
|
209
242
|
}, null, 8, ["class"]))
|
|
210
243
|
], 2));
|
|
211
244
|
}
|
|
@@ -250,7 +283,7 @@ const Ue = {
|
|
|
250
283
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
251
284
|
</svg>
|
|
252
285
|
`
|
|
253
|
-
}, l = e, n = s, i = () => n("dismiss"),
|
|
286
|
+
}, l = e, n = s, i = () => n("dismiss"), c = x(
|
|
254
287
|
"inline-flex items-center font-medium border transition-all duration-200",
|
|
255
288
|
{
|
|
256
289
|
variants: {
|
|
@@ -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:
|
|
318
|
+
return (b, w) => (a(), r("span", {
|
|
319
|
+
class: d(D(v)(D(c)({ 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
|
-
class:
|
|
323
|
+
class: d(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,
|
|
485
|
+
}, n = e, i = s, c = 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
|
-
},
|
|
467
|
-
!n.disabled &&
|
|
468
|
-
},
|
|
499
|
+
}, C = () => {
|
|
500
|
+
!n.disabled && c.value && c.value.click();
|
|
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,
|
|
@@ -507,27 +540,27 @@ const Ue = {
|
|
|
507
540
|
"text-xs text-slate-500 mt-1"
|
|
508
541
|
]);
|
|
509
542
|
return oe(() => n.indeterminate, (B) => {
|
|
510
|
-
|
|
543
|
+
c.value && (c.value.indeterminate = B);
|
|
511
544
|
}, { immediate: !0 }), (B, $) => (a(), r("div", et, [
|
|
512
545
|
o("div", tt, [
|
|
513
546
|
o("input", {
|
|
514
547
|
id: m.value,
|
|
515
548
|
ref_key: "checkboxRef",
|
|
516
|
-
ref:
|
|
549
|
+
ref: c,
|
|
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
|
-
class:
|
|
523
|
-
"aria-describedby":
|
|
524
|
-
onChange:
|
|
555
|
+
class: d(R.value),
|
|
556
|
+
"aria-describedby": j.value,
|
|
557
|
+
onChange: w
|
|
525
558
|
}, null, 42, at),
|
|
526
559
|
o("div", {
|
|
527
|
-
class:
|
|
528
|
-
onClick:
|
|
560
|
+
class: d(z.value),
|
|
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,15 +572,15 @@ const Ue = {
|
|
|
539
572
|
o("div", st, [
|
|
540
573
|
o("label", {
|
|
541
574
|
for: m.value,
|
|
542
|
-
class:
|
|
575
|
+
class: d(k.value)
|
|
543
576
|
}, [
|
|
544
|
-
|
|
577
|
+
h(B.$slots, "default", {}, () => [
|
|
545
578
|
N(p(e.label), 1)
|
|
546
579
|
])
|
|
547
580
|
], 10, lt),
|
|
548
581
|
e.description ? (a(), r("p", {
|
|
549
582
|
key: 0,
|
|
550
|
-
class:
|
|
583
|
+
class: d(g.value)
|
|
551
584
|
}, p(e.description), 3)) : f("", !0)
|
|
552
585
|
])
|
|
553
586
|
]));
|
|
@@ -643,7 +676,7 @@ const Ue = {
|
|
|
643
676
|
}
|
|
644
677
|
}), l = u(() => s.spacing ? s.spacing : "");
|
|
645
678
|
return (n, i) => (a(), r("div", {
|
|
646
|
-
class:
|
|
679
|
+
class: d(D(v)(D(t)({ orientation: e.orientation, size: e.size, color: e.color }), { "opacity-50": e.faded }, l.value))
|
|
647
680
|
}, [
|
|
648
681
|
e.label && e.orientation === "horizontal" ? (a(), r("span", nt, p(e.label), 1)) : f("", !0)
|
|
649
682
|
], 2));
|
|
@@ -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: {
|
|
@@ -700,13 +733,13 @@ const Ue = {
|
|
|
700
733
|
), i = u(
|
|
701
734
|
() => l({ size: s.size })
|
|
702
735
|
);
|
|
703
|
-
return (
|
|
704
|
-
class:
|
|
736
|
+
return (c, m) => (a(), r("div", {
|
|
737
|
+
class: d(n.value),
|
|
705
738
|
role: "status",
|
|
706
739
|
"aria-label": e.label
|
|
707
740
|
}, [
|
|
708
741
|
(a(), r("svg", {
|
|
709
|
-
class:
|
|
742
|
+
class: d(i.value),
|
|
710
743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
711
744
|
fill: "none",
|
|
712
745
|
viewBox: "0 0 24 24"
|
|
@@ -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), c = x(
|
|
766
799
|
"relative overflow-hidden bg-muted",
|
|
767
800
|
{
|
|
768
801
|
variants: {
|
|
@@ -776,8 +809,8 @@ const Ue = {
|
|
|
776
809
|
}
|
|
777
810
|
}
|
|
778
811
|
), m = u(
|
|
779
|
-
() => v(
|
|
780
|
-
),
|
|
812
|
+
() => v(c({ aspectRatio: t.aspectRatio }), t.class)
|
|
813
|
+
), b = u(
|
|
781
814
|
() => v(
|
|
782
815
|
"h-full w-full transition-opacity duration-300",
|
|
783
816
|
{
|
|
@@ -790,38 +823,38 @@ 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);
|
|
801
834
|
};
|
|
802
835
|
return (R, z) => (a(), r("div", {
|
|
803
|
-
class:
|
|
836
|
+
class: d(m.value)
|
|
804
837
|
}, [
|
|
805
838
|
o("img", {
|
|
806
839
|
src: e.src,
|
|
807
840
|
alt: e.alt,
|
|
808
|
-
class:
|
|
841
|
+
class: d(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:
|
|
848
|
+
class: d(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:
|
|
857
|
+
class: d(C.value)
|
|
825
858
|
}, [
|
|
826
859
|
y(Y, {
|
|
827
860
|
name: "ImageOff",
|
|
@@ -906,23 +939,23 @@ 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), c = 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
|
-
if (l.error) return `${
|
|
953
|
+
if (l.error) return `${c.value}-error`;
|
|
921
954
|
}), z = u(() => ({
|
|
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,14 +979,14 @@ 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
|
-
class:
|
|
985
|
+
class: d(g.value)
|
|
953
986
|
}, null, 8, ["class"]))
|
|
954
987
|
])) : f("", !0),
|
|
955
988
|
o("input", {
|
|
956
|
-
id:
|
|
989
|
+
id: c.value,
|
|
957
990
|
ref_key: "inputRef",
|
|
958
991
|
ref: i,
|
|
959
992
|
type: e.type,
|
|
@@ -963,18 +996,18 @@ const Ue = {
|
|
|
963
996
|
readonly: e.readonly,
|
|
964
997
|
required: e.required,
|
|
965
998
|
autocomplete: e.autocomplete,
|
|
966
|
-
class:
|
|
999
|
+
class: d(B.value),
|
|
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
|
|
@@ -985,12 +1018,12 @@ const Ue = {
|
|
|
985
1018
|
})
|
|
986
1019
|
], 8, gt)) : e.iconRight ? (a(), M(X(e.iconRight), {
|
|
987
1020
|
key: 1,
|
|
988
|
-
class:
|
|
1021
|
+
class: d(g.value)
|
|
989
1022
|
}, null, 8, ["class"])) : f("", !0)
|
|
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,
|
|
@@ -1023,13 +1056,13 @@ const Ue = {
|
|
|
1023
1056
|
)
|
|
1024
1057
|
);
|
|
1025
1058
|
return (n, i) => (a(), r("label", {
|
|
1026
|
-
class:
|
|
1059
|
+
class: d(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,32 +1137,32 @@ const Ue = {
|
|
|
1104
1137
|
disabled: !1
|
|
1105
1138
|
}
|
|
1106
1139
|
}
|
|
1107
|
-
),
|
|
1140
|
+
), c = (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:
|
|
1120
|
-
onClick:
|
|
1152
|
+
class: d(D(v)(D(i)({ variant: e.variant, size: e.size, underline: e.underline, block: e.block, disabled: e.disabled }), b.$attrs.class)),
|
|
1153
|
+
onClick: c
|
|
1121
1154
|
}, {
|
|
1122
1155
|
default: S(() => [
|
|
1123
1156
|
e.icon && e.iconPosition === "left" ? (a(), M(Y, {
|
|
1124
1157
|
key: 0,
|
|
1125
1158
|
name: e.icon,
|
|
1126
|
-
class:
|
|
1159
|
+
class: d(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,
|
|
1132
|
-
class:
|
|
1165
|
+
class: d(n.value)
|
|
1133
1166
|
}, null, 8, ["name", "class"])) : f("", !0),
|
|
1134
1167
|
e.external && e.showExternalIcon ? (a(), M(Y, {
|
|
1135
1168
|
key: 2,
|
|
@@ -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,
|
|
@@ -1186,17 +1219,17 @@ const Ue = {
|
|
|
1186
1219
|
}
|
|
1187
1220
|
)
|
|
1188
1221
|
);
|
|
1189
|
-
return (
|
|
1190
|
-
class:
|
|
1222
|
+
return (c, m) => (a(), r("div", {
|
|
1223
|
+
class: d(l.value)
|
|
1191
1224
|
}, [
|
|
1192
1225
|
e.src ? (a(), r("img", {
|
|
1193
1226
|
key: 0,
|
|
1194
1227
|
src: e.src,
|
|
1195
1228
|
alt: e.alt || "Logo",
|
|
1196
|
-
class:
|
|
1197
|
-
}, null, 10,
|
|
1229
|
+
class: d(n.value)
|
|
1230
|
+
}, null, 10, ht)) : (a(), r("div", {
|
|
1198
1231
|
key: 1,
|
|
1199
|
-
class:
|
|
1232
|
+
class: d(i.value)
|
|
1200
1233
|
}, p(e.text || "Logo"), 3))
|
|
1201
1234
|
], 2));
|
|
1202
1235
|
}
|
|
@@ -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
|
{
|
|
@@ -1284,16 +1317,16 @@ const Ue = {
|
|
|
1284
1317
|
}
|
|
1285
1318
|
), i = u(
|
|
1286
1319
|
() => v(l({ size: s.size }), s.class)
|
|
1287
|
-
),
|
|
1320
|
+
), c = u(
|
|
1288
1321
|
() => n({ variant: s.variant })
|
|
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 (
|
|
1293
|
-
class:
|
|
1325
|
+
return (b, w) => (a(), r("div", {
|
|
1326
|
+
class: d(i.value)
|
|
1294
1327
|
}, [
|
|
1295
1328
|
o("div", {
|
|
1296
|
-
class: c
|
|
1329
|
+
class: d(c.value),
|
|
1297
1330
|
style: ce({ width: `${t.value}%` }),
|
|
1298
1331
|
role: "progressbar",
|
|
1299
1332
|
"aria-valuenow": t.value,
|
|
@@ -1302,7 +1335,7 @@ const Ue = {
|
|
|
1302
1335
|
}, null, 14, kt),
|
|
1303
1336
|
e.showLabel ? (a(), r("span", {
|
|
1304
1337
|
key: 0,
|
|
1305
|
-
class:
|
|
1338
|
+
class: d(m.value)
|
|
1306
1339
|
}, p(t.value) + "% ", 3)) : f("", !0)
|
|
1307
1340
|
], 2));
|
|
1308
1341
|
}
|
|
@@ -1335,7 +1368,7 @@ const Ue = {
|
|
|
1335
1368
|
}
|
|
1336
1369
|
}
|
|
1337
1370
|
}
|
|
1338
|
-
),
|
|
1371
|
+
), c = u(
|
|
1339
1372
|
() => v(
|
|
1340
1373
|
i({ size: t.size }),
|
|
1341
1374
|
t.disabled && "cursor-not-allowed opacity-50",
|
|
@@ -1350,32 +1383,32 @@ 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
|
-
class: c
|
|
1368
|
-
onClick:
|
|
1400
|
+
class: d(c.value),
|
|
1401
|
+
onClick: w
|
|
1369
1402
|
}, [
|
|
1370
1403
|
n.value ? (a(), r("div", {
|
|
1371
1404
|
key: 0,
|
|
1372
|
-
class:
|
|
1405
|
+
class: d(m.value)
|
|
1373
1406
|
}, null, 2)) : f("", !0)
|
|
1374
1407
|
], 10, $t),
|
|
1375
1408
|
e.label ? (a(), r("label", {
|
|
1376
1409
|
key: 0,
|
|
1377
|
-
class:
|
|
1378
|
-
onClick:
|
|
1410
|
+
class: d(b.value),
|
|
1411
|
+
onClick: w
|
|
1379
1412
|
}, p(e.label), 3)) : f("", !0)
|
|
1380
1413
|
]));
|
|
1381
1414
|
}
|
|
@@ -1413,11 +1446,11 @@ const Ue = {
|
|
|
1413
1446
|
);
|
|
1414
1447
|
return (n, i) => (a(), r("select", me({
|
|
1415
1448
|
value: e.modelValue,
|
|
1416
|
-
onChange: i[0] || (i[0] = (
|
|
1449
|
+
onChange: i[0] || (i[0] = (c) => n.$emit("update:modelValue", c.target.value)),
|
|
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 = {
|
|
@@ -1496,7 +1529,7 @@ const Ue = {
|
|
|
1496
1529
|
}
|
|
1497
1530
|
]
|
|
1498
1531
|
}
|
|
1499
|
-
),
|
|
1532
|
+
), c = u(
|
|
1500
1533
|
() => v(
|
|
1501
1534
|
n({
|
|
1502
1535
|
size: t.size,
|
|
@@ -1509,19 +1542,19 @@ 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
|
-
class: c
|
|
1521
|
-
onClick:
|
|
1553
|
+
class: d(c.value),
|
|
1554
|
+
onClick: b
|
|
1522
1555
|
}, [
|
|
1523
1556
|
o("span", {
|
|
1524
|
-
class:
|
|
1557
|
+
class: d(m.value)
|
|
1525
1558
|
}, null, 2)
|
|
1526
1559
|
], 10, Bt));
|
|
1527
1560
|
}
|
|
@@ -1594,15 +1627,15 @@ const Ue = {
|
|
|
1594
1627
|
}), s.class)
|
|
1595
1628
|
);
|
|
1596
1629
|
return (n, i) => (a(), M(X(e.as), {
|
|
1597
|
-
class:
|
|
1630
|
+
class: d(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,10 +1666,10 @@ 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
|
-
},
|
|
1639
|
-
() => l.error ? `${
|
|
1669
|
+
const l = e, n = t, i = H(null), c = 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(
|
|
1672
|
+
() => l.error ? `${c.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",
|
|
1642
1675
|
{
|
|
@@ -1666,19 +1699,19 @@ 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(),
|
|
1679
1712
|
select: () => i.value?.select()
|
|
1680
1713
|
}), (g, B) => (a(), r("textarea", {
|
|
1681
|
-
id:
|
|
1714
|
+
id: c.value,
|
|
1682
1715
|
ref_key: "textareaRef",
|
|
1683
1716
|
ref: i,
|
|
1684
1717
|
value: e.modelValue,
|
|
@@ -1688,16 +1721,16 @@ const Ue = {
|
|
|
1688
1721
|
required: e.required,
|
|
1689
1722
|
rows: e.rows,
|
|
1690
1723
|
maxlength: e.maxlength,
|
|
1691
|
-
class:
|
|
1724
|
+
class: d(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",
|
|
@@ -1742,23 +1775,23 @@ const Ue = {
|
|
|
1742
1775
|
}
|
|
1743
1776
|
}
|
|
1744
1777
|
}
|
|
1745
|
-
),
|
|
1778
|
+
), c = u(
|
|
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",
|
|
@@ -1770,12 +1803,12 @@ const Ue = {
|
|
|
1770
1803
|
default: S(() => [
|
|
1771
1804
|
t.value ? (a(), r("div", {
|
|
1772
1805
|
key: 0,
|
|
1773
|
-
class: c
|
|
1806
|
+
class: d(c.value),
|
|
1774
1807
|
role: "tooltip"
|
|
1775
1808
|
}, [
|
|
1776
1809
|
N(p(e.content) + " ", 1),
|
|
1777
1810
|
o("div", {
|
|
1778
|
-
class:
|
|
1811
|
+
class: d(m.value)
|
|
1779
1812
|
}, null, 2)
|
|
1780
1813
|
], 2)) : f("", !0)
|
|
1781
1814
|
]),
|
|
@@ -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: {
|
|
@@ -1877,7 +1910,7 @@ const Ue = {
|
|
|
1877
1910
|
center: "text-center",
|
|
1878
1911
|
right: "text-right",
|
|
1879
1912
|
justify: "text-justify"
|
|
1880
|
-
})[s.align]),
|
|
1913
|
+
})[s.align]), c = u(() => [
|
|
1881
1914
|
l.value,
|
|
1882
1915
|
n.value,
|
|
1883
1916
|
i.value,
|
|
@@ -1888,11 +1921,11 @@ const Ue = {
|
|
|
1888
1921
|
"whitespace-nowrap": s.noWrap
|
|
1889
1922
|
}
|
|
1890
1923
|
]);
|
|
1891
|
-
return (m,
|
|
1892
|
-
class: c
|
|
1924
|
+
return (m, b) => (a(), M(X(t.value), {
|
|
1925
|
+
class: d(c.value)
|
|
1893
1926
|
}, {
|
|
1894
1927
|
default: S(() => [
|
|
1895
|
-
|
|
1928
|
+
h(m.$slots, "default")
|
|
1896
1929
|
]),
|
|
1897
1930
|
_: 3
|
|
1898
1931
|
}, 8, ["class"]));
|
|
@@ -1926,9 +1959,9 @@ 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
|
+
}, c = (g) => {
|
|
1932
1965
|
l("action", g), g.onClick && g.onClick();
|
|
1933
1966
|
};
|
|
1934
1967
|
if (t.autoClose) {
|
|
@@ -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",
|
|
@@ -2018,31 +2051,31 @@ const Ue = {
|
|
|
2018
2051
|
default: S(() => [
|
|
2019
2052
|
n.value ? (a(), r("div", {
|
|
2020
2053
|
key: 0,
|
|
2021
|
-
class:
|
|
2054
|
+
class: d(D(v)(D(R)({ variant: e.variant }), g.$attrs.class)),
|
|
2022
2055
|
role: "alert"
|
|
2023
2056
|
}, [
|
|
2024
2057
|
o("div", Lt, [
|
|
2025
2058
|
e.showIcon ? (a(), r("div", Dt, [
|
|
2026
2059
|
(a(), M(X(T.value), {
|
|
2027
|
-
class:
|
|
2060
|
+
class: d(z.value)
|
|
2028
2061
|
}, null, 8, ["class"]))
|
|
2029
2062
|
])) : f("", !0),
|
|
2030
2063
|
o("div", At, [
|
|
2031
2064
|
e.title ? (a(), r("h4", Pt, p(e.title), 1)) : f("", !0),
|
|
2032
2065
|
o("div", {
|
|
2033
|
-
class:
|
|
2066
|
+
class: d(["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) => c($)
|
|
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:
|
|
2091
|
+
class: d(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: {
|
|
@@ -2101,23 +2134,23 @@ const Ue = {
|
|
|
2101
2134
|
);
|
|
2102
2135
|
return (n, i) => (a(), r("nav", {
|
|
2103
2136
|
"aria-label": e.ariaLabel,
|
|
2104
|
-
class:
|
|
2137
|
+
class: d(["flex", l.value])
|
|
2105
2138
|
}, [
|
|
2106
|
-
o("ol",
|
|
2107
|
-
(a(!0), r(Q, null, K(e.items, (
|
|
2139
|
+
o("ol", Ht, [
|
|
2140
|
+
(a(!0), r(Q, null, K(e.items, (c, m) => (a(), r("li", {
|
|
2108
2141
|
key: m,
|
|
2109
2142
|
class: "flex items-center"
|
|
2110
2143
|
}, [
|
|
2111
|
-
(a(), M(X(
|
|
2112
|
-
href:
|
|
2113
|
-
class:
|
|
2144
|
+
(a(), M(X(c.href ? "a" : "span"), {
|
|
2145
|
+
href: c.href,
|
|
2146
|
+
class: d([
|
|
2114
2147
|
"text-sm font-medium transition-colors hover:text-foreground",
|
|
2115
2148
|
m === e.items.length - 1 ? "text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
2116
2149
|
]),
|
|
2117
2150
|
"aria-current": m === e.items.length - 1 ? "page" : void 0
|
|
2118
2151
|
}, {
|
|
2119
2152
|
default: S(() => [
|
|
2120
|
-
N(p(
|
|
2153
|
+
N(p(c.label), 1)
|
|
2121
2154
|
]),
|
|
2122
2155
|
_: 2
|
|
2123
2156
|
}, 1032, ["href", "class", "aria-current"])),
|
|
@@ -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: {
|
|
@@ -2162,12 +2195,12 @@ const Ue = {
|
|
|
2162
2195
|
() => v(t({ orientation: s.orientation }))
|
|
2163
2196
|
);
|
|
2164
2197
|
return (n, i) => (a(), r("div", {
|
|
2165
|
-
class:
|
|
2198
|
+
class: d(l.value),
|
|
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
|
{
|
|
@@ -2232,7 +2265,7 @@ const Ue = {
|
|
|
2232
2265
|
padding: "md"
|
|
2233
2266
|
}
|
|
2234
2267
|
}
|
|
2235
|
-
),
|
|
2268
|
+
), c = x(
|
|
2236
2269
|
"border-b border-slate-100 last:border-b-0",
|
|
2237
2270
|
{
|
|
2238
2271
|
variants: {
|
|
@@ -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,56 +2312,56 @@ const Ue = {
|
|
|
2279
2312
|
}
|
|
2280
2313
|
}
|
|
2281
2314
|
});
|
|
2282
|
-
return (
|
|
2283
|
-
class:
|
|
2315
|
+
return (C, j) => (a(), r("div", {
|
|
2316
|
+
class: d(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
|
-
class:
|
|
2321
|
+
class: d(D(v)(D(c)({ 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", {
|
|
2294
2327
|
key: 0,
|
|
2295
|
-
class:
|
|
2328
|
+
class: d(Yt)
|
|
2296
2329
|
}, p(e.title), 1)) : f("", !0),
|
|
2297
2330
|
e.subtitle ? (a(), r("p", {
|
|
2298
2331
|
key: 1,
|
|
2299
|
-
class:
|
|
2332
|
+
class: d(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:
|
|
2343
|
+
class: d(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,
|
|
2316
2349
|
alt: e.imageAlt,
|
|
2317
|
-
class:
|
|
2350
|
+
class: d(Qt)
|
|
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
|
-
class:
|
|
2356
|
+
class: d(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:
|
|
2362
|
+
class: d(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
|
}
|
|
@@ -2338,9 +2371,9 @@ const Ue = {
|
|
|
2338
2371
|
__name: "CardHeader",
|
|
2339
2372
|
setup(e) {
|
|
2340
2373
|
return (s, t) => (a(), r("div", {
|
|
2341
|
-
class:
|
|
2374
|
+
class: d(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 = {
|
|
@@ -2365,9 +2398,9 @@ const Ue = {
|
|
|
2365
2398
|
() => v(t({ variant: s.variant }))
|
|
2366
2399
|
);
|
|
2367
2400
|
return (n, i) => (a(), r("div", {
|
|
2368
|
-
class:
|
|
2401
|
+
class: d(l.value)
|
|
2369
2402
|
}, [
|
|
2370
|
-
|
|
2403
|
+
h(n.$slots, "default")
|
|
2371
2404
|
], 2));
|
|
2372
2405
|
}
|
|
2373
2406
|
}, ta = {
|
|
@@ -2392,9 +2425,9 @@ const Ue = {
|
|
|
2392
2425
|
() => v(t({ variant: s.variant }))
|
|
2393
2426
|
);
|
|
2394
2427
|
return (n, i) => (a(), r("div", {
|
|
2395
|
-
class:
|
|
2428
|
+
class: d(l.value)
|
|
2396
2429
|
}, [
|
|
2397
|
-
|
|
2430
|
+
h(n.$slots, "default")
|
|
2398
2431
|
], 2));
|
|
2399
2432
|
}
|
|
2400
2433
|
}, aa = /* @__PURE__ */ Object.assign({
|
|
@@ -2403,9 +2436,9 @@ const Ue = {
|
|
|
2403
2436
|
__name: "CardContent",
|
|
2404
2437
|
setup(e) {
|
|
2405
2438
|
return (s, t) => (a(), r("div", {
|
|
2406
|
-
class:
|
|
2439
|
+
class: d(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({
|
|
@@ -2414,9 +2447,9 @@ const Ue = {
|
|
|
2414
2447
|
__name: "CardTitle",
|
|
2415
2448
|
setup(e) {
|
|
2416
2449
|
return (s, t) => (a(), r("h3", {
|
|
2417
|
-
class:
|
|
2450
|
+
class: d(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 = {
|
|
@@ -2465,12 +2498,12 @@ const Ue = {
|
|
|
2465
2498
|
id: e.id,
|
|
2466
2499
|
value: e.modelValue,
|
|
2467
2500
|
type: "date",
|
|
2468
|
-
class:
|
|
2501
|
+
class: d(l.value),
|
|
2469
2502
|
disabled: e.disabled,
|
|
2470
2503
|
required: e.required,
|
|
2471
2504
|
min: e.min,
|
|
2472
2505
|
max: e.max,
|
|
2473
|
-
onInput: i[0] || (i[0] = (
|
|
2506
|
+
onInput: i[0] || (i[0] = (c) => n.$emit("update:modelValue", c.target.value))
|
|
2474
2507
|
}, null, 42, na),
|
|
2475
2508
|
y(Y, {
|
|
2476
2509
|
name: "calendar",
|
|
@@ -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: {
|
|
@@ -2520,31 +2553,31 @@ const Ue = {
|
|
|
2520
2553
|
}
|
|
2521
2554
|
}
|
|
2522
2555
|
}
|
|
2523
|
-
),
|
|
2556
|
+
), c = u(
|
|
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
|
-
class: c
|
|
2543
|
-
onClick:
|
|
2575
|
+
class: d(c.value),
|
|
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",
|
|
@@ -2563,11 +2596,11 @@ const Ue = {
|
|
|
2563
2596
|
default: S(() => [
|
|
2564
2597
|
t.value ? (a(), r("div", {
|
|
2565
2598
|
key: 0,
|
|
2566
|
-
class:
|
|
2599
|
+
class: d(m.value),
|
|
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
|
|
@@ -2604,15 +2637,15 @@ const Ue = {
|
|
|
2604
2637
|
}
|
|
2605
2638
|
), i = u(
|
|
2606
2639
|
() => v(n({ variant: t.variant }))
|
|
2607
|
-
),
|
|
2640
|
+
), c = (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
|
-
class:
|
|
2645
|
+
class: d(i.value),
|
|
2613
2646
|
disabled: e.disabled,
|
|
2614
2647
|
role: "menuitem",
|
|
2615
|
-
onClick:
|
|
2648
|
+
onClick: c
|
|
2616
2649
|
}, {
|
|
2617
2650
|
default: S(() => [
|
|
2618
2651
|
e.icon ? (a(), M(Y, {
|
|
@@ -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), c = 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,48 +2690,48 @@ 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
|
+
c.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:
|
|
2693
|
-
onDrop:
|
|
2694
|
-
onDragover:
|
|
2695
|
-
onDragenter:
|
|
2725
|
+
class: d(b.value),
|
|
2726
|
+
onDrop: w,
|
|
2727
|
+
onDragover: C,
|
|
2728
|
+
onDragenter: j,
|
|
2696
2729
|
onDragleave: T,
|
|
2697
2730
|
onClick: R
|
|
2698
2731
|
}, [
|
|
2699
2732
|
o("input", {
|
|
2700
2733
|
ref_key: "fileInput",
|
|
2701
|
-
ref:
|
|
2734
|
+
ref: c,
|
|
2702
2735
|
type: "file",
|
|
2703
2736
|
multiple: e.multiple,
|
|
2704
2737
|
accept: e.accept,
|
|
@@ -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), c = 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",
|
|
@@ -2831,25 +2864,25 @@ const Ue = {
|
|
|
2831
2864
|
defaultVariants: { size: "md" }
|
|
2832
2865
|
});
|
|
2833
2866
|
return (T, R) => (a(), r("div", {
|
|
2834
|
-
class:
|
|
2867
|
+
class: d(D(v)(D(m)({ size: e.size }), T.$attrs.class))
|
|
2835
2868
|
}, [
|
|
2836
2869
|
e.label ? (a(), r("label", {
|
|
2837
2870
|
key: 0,
|
|
2838
2871
|
for: D(n),
|
|
2839
|
-
class:
|
|
2872
|
+
class: d(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:
|
|
2879
|
+
class: d(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
|
-
ariaDescribedBy:
|
|
2885
|
+
ariaDescribedBy: c.value
|
|
2853
2886
|
})
|
|
2854
2887
|
]),
|
|
2855
2888
|
y(ae, {
|
|
@@ -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:
|
|
2900
|
+
class: d(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:
|
|
2913
|
+
class: d(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:
|
|
2926
|
+
class: d(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)
|
|
@@ -2927,21 +2960,21 @@ const Ue = {
|
|
|
2927
2960
|
() => v(t({ variant: s.variant }))
|
|
2928
2961
|
);
|
|
2929
2962
|
return (n, i) => (a(), r("div", {
|
|
2930
|
-
class:
|
|
2963
|
+
class: d(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 = {
|
|
@@ -2980,25 +3013,25 @@ const Ue = {
|
|
|
2980
3013
|
interactive: "transition-colors rounded-md"
|
|
2981
3014
|
}
|
|
2982
3015
|
}
|
|
2983
|
-
}),
|
|
3016
|
+
}), c = u(
|
|
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 (
|
|
2991
|
-
class: c
|
|
3023
|
+
return (w, C) => (a(), r("li", {
|
|
3024
|
+
class: d(c.value),
|
|
2992
3025
|
role: e.role
|
|
2993
3026
|
}, [
|
|
2994
3027
|
(a(), M(X(e.href ? "a" : "div"), {
|
|
2995
3028
|
href: e.href,
|
|
2996
|
-
class:
|
|
2997
|
-
onClick:
|
|
3029
|
+
class: d(m.value),
|
|
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
|
|
@@ -3050,15 +3083,15 @@ const Ue = {
|
|
|
3050
3083
|
}
|
|
3051
3084
|
), i = u(
|
|
3052
3085
|
() => v(n({ variant: t.variant }))
|
|
3053
|
-
),
|
|
3086
|
+
), c = (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
|
-
class:
|
|
3091
|
+
class: d(i.value),
|
|
3059
3092
|
disabled: e.disabled,
|
|
3060
3093
|
role: "menuitem",
|
|
3061
|
-
onClick:
|
|
3094
|
+
onClick: c
|
|
3062
3095
|
}, {
|
|
3063
3096
|
default: S(() => [
|
|
3064
3097
|
e.icon ? (a(), M(Y, {
|
|
@@ -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,
|
|
@@ -3094,19 +3127,19 @@ const Ue = {
|
|
|
3094
3127
|
setup(e, { emit: s }) {
|
|
3095
3128
|
const t = e, l = s, n = () => {
|
|
3096
3129
|
l("update:modelValue", !1), l("close");
|
|
3097
|
-
}, i = (
|
|
3098
|
-
t.closeOnBackdrop &&
|
|
3130
|
+
}, i = (c) => {
|
|
3131
|
+
t.closeOnBackdrop && c.target === c.currentTarget && n();
|
|
3099
3132
|
};
|
|
3100
|
-
return oe(() => t.modelValue, (
|
|
3101
|
-
if (
|
|
3102
|
-
const m = (
|
|
3103
|
-
|
|
3133
|
+
return oe(() => t.modelValue, (c) => {
|
|
3134
|
+
if (c) {
|
|
3135
|
+
const m = (b) => {
|
|
3136
|
+
b.key === "Escape" && n();
|
|
3104
3137
|
};
|
|
3105
3138
|
return document.addEventListener("keydown", m), () => {
|
|
3106
3139
|
document.removeEventListener("keydown", m);
|
|
3107
3140
|
};
|
|
3108
3141
|
}
|
|
3109
|
-
}), (
|
|
3142
|
+
}), (c, m) => (a(), M(Ve, { to: "body" }, [
|
|
3110
3143
|
y(ae, {
|
|
3111
3144
|
"enter-active-class": "transition-opacity duration-300",
|
|
3112
3145
|
"enter-from-class": "opacity-0",
|
|
@@ -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(c.$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 = {
|
|
@@ -3181,9 +3214,9 @@ const Ue = {
|
|
|
3181
3214
|
() => v(t({ variant: s.variant }))
|
|
3182
3215
|
);
|
|
3183
3216
|
return (n, i) => (a(), r("div", {
|
|
3184
|
-
class:
|
|
3217
|
+
class: d(l.value)
|
|
3185
3218
|
}, [
|
|
3186
|
-
|
|
3219
|
+
h(n.$slots, "default")
|
|
3187
3220
|
], 2));
|
|
3188
3221
|
}
|
|
3189
3222
|
}, Za = {
|
|
@@ -3207,9 +3240,9 @@ const Ue = {
|
|
|
3207
3240
|
() => v(t({ variant: s.variant }))
|
|
3208
3241
|
);
|
|
3209
3242
|
return (n, i) => (a(), r("div", {
|
|
3210
|
-
class:
|
|
3243
|
+
class: d(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: {
|
|
@@ -3256,7 +3289,7 @@ const Ue = {
|
|
|
3256
3289
|
}
|
|
3257
3290
|
}
|
|
3258
3291
|
}
|
|
3259
|
-
),
|
|
3292
|
+
), c = {
|
|
3260
3293
|
default: "info",
|
|
3261
3294
|
success: "check-circle",
|
|
3262
3295
|
warning: "alert-triangle",
|
|
@@ -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(() => c[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,28 +3323,28 @@ const Ue = {
|
|
|
3290
3323
|
default: S(() => [
|
|
3291
3324
|
n.value ? (a(), r("div", {
|
|
3292
3325
|
key: 0,
|
|
3293
|
-
class:
|
|
3326
|
+
class: d(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:
|
|
3333
|
+
name: w.value,
|
|
3334
|
+
class: d(C.value)
|
|
3302
3335
|
}, null, 8, ["name", "class"])
|
|
3303
3336
|
])) : f("", !0),
|
|
3304
3337
|
o("div", Ya, [
|
|
3305
3338
|
e.title ? (a(), r("div", Xa, p(e.title), 1)) : f("", !0),
|
|
3306
3339
|
e.message ? (a(), r("div", {
|
|
3307
3340
|
key: 1,
|
|
3308
|
-
class:
|
|
3341
|
+
class: d(["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 {
|
|
@@ -3364,26 +3397,26 @@ const es = {
|
|
|
3364
3397
|
success: l = "Success",
|
|
3365
3398
|
error: n = "Error",
|
|
3366
3399
|
...i
|
|
3367
|
-
} = s,
|
|
3400
|
+
} = s, c = 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
|
-
ue(
|
|
3376
|
-
const
|
|
3377
|
-
return re(
|
|
3408
|
+
ue(c);
|
|
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
|
-
ue(
|
|
3383
|
-
const
|
|
3384
|
-
throw re(
|
|
3415
|
+
ue(c);
|
|
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
|
},
|
|
@@ -3455,35 +3488,42 @@ const es = {
|
|
|
3455
3488
|
"bottom-right": "bottom-0 right-0 flex-col-reverse"
|
|
3456
3489
|
}, i = u(
|
|
3457
3490
|
() => v(n[s.position])
|
|
3458
|
-
),
|
|
3491
|
+
), c = x(
|
|
3459
3492
|
"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",
|
|
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(
|
|
3474
|
-
default: "
|
|
3506
|
+
), m = (z) => v(c({ 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
|
-
class:
|
|
3526
|
+
class: d(D(v)(
|
|
3487
3527
|
i.value,
|
|
3488
3528
|
"fixed z-[100] flex max-h-screen w-full p-4 md:max-w-[420px]"
|
|
3489
3529
|
))
|
|
@@ -3502,14 +3542,14 @@ const es = {
|
|
|
3502
3542
|
default: S(() => [
|
|
3503
3543
|
(a(!0), r(Q, null, K(D(t), (g) => (a(), r("div", {
|
|
3504
3544
|
key: g.id,
|
|
3505
|
-
class:
|
|
3545
|
+
class: d([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:
|
|
3551
|
+
name: C(g),
|
|
3552
|
+
class: d([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,
|
|
3646
|
+
}, i = e, c = 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
|
-
|
|
3609
|
-
U.length >= i.minLength ? (
|
|
3648
|
+
c("update:modelValue", U), j.value && clearTimeout(j.value), j.value = setTimeout(() => {
|
|
3649
|
+
U.length >= i.minLength ? (c("search", U), w.value = !0) : w.value = !1;
|
|
3610
3650
|
}, i.debounce);
|
|
3611
3651
|
}, R = (A) => {
|
|
3612
|
-
|
|
3652
|
+
c("focus", A), i.modelValue.length >= i.minLength && (w.value = !0);
|
|
3613
3653
|
}, z = (A) => {
|
|
3614
|
-
|
|
3615
|
-
|
|
3654
|
+
c("blur", A), setTimeout(() => {
|
|
3655
|
+
w.value = !1, C.value = -1;
|
|
3616
3656
|
}, 150);
|
|
3617
|
-
},
|
|
3618
|
-
|
|
3657
|
+
}, k = () => {
|
|
3658
|
+
c("update:modelValue", ""), c("clear"), w.value = !1, b.value?.focus();
|
|
3619
3659
|
}, g = (A) => {
|
|
3620
|
-
|
|
3660
|
+
c("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
|
|
@@ -3677,16 +3717,16 @@ const es = {
|
|
|
3677
3717
|
o("div", us, [
|
|
3678
3718
|
o("div", ms, [
|
|
3679
3719
|
y(t, {
|
|
3680
|
-
class:
|
|
3720
|
+
class: d(te.value)
|
|
3681
3721
|
}, null, 8, ["class"])
|
|
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,
|
|
3689
|
-
class:
|
|
3729
|
+
class: d(E.value),
|
|
3690
3730
|
onInput: T,
|
|
3691
3731
|
onFocus: R,
|
|
3692
3732
|
onBlur: z,
|
|
@@ -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
|
-
class:
|
|
3759
|
+
class: d(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:
|
|
3764
|
+
class: d(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,20 +3802,20 @@ const es = {
|
|
|
3762
3802
|
},
|
|
3763
3803
|
emits: ["update:modelValue"],
|
|
3764
3804
|
setup(e, { emit: s }) {
|
|
3765
|
-
const t = e, l = s, n =
|
|
3766
|
-
oe(() => t.modelValue, (
|
|
3767
|
-
n.value =
|
|
3805
|
+
const t = e, l = s, n = H(t.modelValue);
|
|
3806
|
+
oe(() => t.modelValue, (c) => {
|
|
3807
|
+
n.value = c;
|
|
3768
3808
|
});
|
|
3769
3809
|
const i = () => {
|
|
3770
3810
|
l("update:modelValue", Number(n.value));
|
|
3771
3811
|
};
|
|
3772
|
-
return (
|
|
3812
|
+
return (c, m) => (a(), r("div", zs, [
|
|
3773
3813
|
xe(o("input", {
|
|
3774
3814
|
type: "range",
|
|
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,9 +3848,9 @@ 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
|
-
class:
|
|
3853
|
+
class: d([
|
|
3814
3854
|
"flex items-center justify-center w-8 h-8 rounded-full border-2",
|
|
3815
3855
|
e.active ? "bg-blue-500 border-blue-500 text-white" : e.completed ? "bg-green-500 border-green-500 text-white" : "border-slate-300 text-slate-500"
|
|
3816
3856
|
])
|
|
@@ -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
|
-
}), (i,
|
|
3879
|
+
}), (i, c) => (a(), r("div", null, [
|
|
3840
3880
|
o("div", Fs, [
|
|
3841
|
-
(a(!0), r(Q, null, K(l.value, (m,
|
|
3842
|
-
key:
|
|
3843
|
-
onClick: (
|
|
3844
|
-
class:
|
|
3881
|
+
(a(!0), r(Q, null, K(l.value, (m, b) => (a(), r("button", {
|
|
3882
|
+
key: b,
|
|
3883
|
+
onClick: (w) => n(b),
|
|
3884
|
+
class: d([
|
|
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
|
-
}), (i,
|
|
3867
|
-
|
|
3906
|
+
}), (i, c) => xe((a(), r("div", null, [
|
|
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
|
-
),
|
|
3907
|
-
if (!(l.disabled || l.items[
|
|
3946
|
+
), c = (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,63 +4029,63 @@ 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
|
-
), (
|
|
4015
|
-
class:
|
|
4054
|
+
), (q, W) => (a(), r("div", {
|
|
4055
|
+
class: d(g.value)
|
|
4016
4056
|
}, [
|
|
4017
4057
|
(a(!0), r(Q, null, K(e.items, (A, U) => (a(), r("div", {
|
|
4018
4058
|
key: A.id || U,
|
|
4019
|
-
class:
|
|
4059
|
+
class: d(B.value)
|
|
4020
4060
|
}, [
|
|
4021
4061
|
o("button", {
|
|
4022
|
-
class:
|
|
4062
|
+
class: d($(U)),
|
|
4023
4063
|
"aria-expanded": m(U),
|
|
4024
4064
|
"aria-controls": `panel-${A.id || U}`,
|
|
4025
4065
|
id: `header-${A.id || U}`,
|
|
4026
|
-
onClick: (J) =>
|
|
4066
|
+
onClick: (J) => c(U)
|
|
4027
4067
|
}, [
|
|
4028
|
-
o("div",
|
|
4068
|
+
o("div", qs, [
|
|
4029
4069
|
A.icon ? (a(), M(X(A.icon), {
|
|
4030
4070
|
key: 0,
|
|
4031
|
-
class:
|
|
4071
|
+
class: d(E.value)
|
|
4032
4072
|
}, null, 8, ["class"])) : f("", !0),
|
|
4033
4073
|
o("div", Es, [
|
|
4034
4074
|
o("h3", {
|
|
4035
|
-
class:
|
|
4075
|
+
class: d(I.value)
|
|
4036
4076
|
}, p(A.title), 3),
|
|
4037
4077
|
A.subtitle ? (a(), r("p", {
|
|
4038
4078
|
key: 0,
|
|
4039
|
-
class:
|
|
4079
|
+
class: d(P.value)
|
|
4040
4080
|
}, p(A.subtitle), 3)) : f("", !0)
|
|
4041
4081
|
])
|
|
4042
4082
|
]),
|
|
4043
4083
|
o("div", {
|
|
4044
|
-
class:
|
|
4084
|
+
class: d(te(U))
|
|
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",
|
|
@@ -4057,12 +4097,12 @@ const es = {
|
|
|
4057
4097
|
default: S(() => [
|
|
4058
4098
|
m(U) ? (a(), r("div", {
|
|
4059
4099
|
key: 0,
|
|
4060
|
-
class:
|
|
4100
|
+
class: d(se.value),
|
|
4061
4101
|
id: `panel-${A.id || U}`,
|
|
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: "",
|
|
@@ -4108,7 +4148,7 @@ const es = {
|
|
|
4108
4148
|
flush: ""
|
|
4109
4149
|
}
|
|
4110
4150
|
}
|
|
4111
|
-
}),
|
|
4151
|
+
}), c = x(
|
|
4112
4152
|
"flex items-center justify-between w-full text-left transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
4113
4153
|
{
|
|
4114
4154
|
variants: {
|
|
@@ -4127,25 +4167,25 @@ 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(c({ size: t.size }))
|
|
4174
|
+
), C = u(
|
|
4135
4175
|
() => v(m({ size: t.size }))
|
|
4136
4176
|
);
|
|
4137
|
-
return (
|
|
4138
|
-
class:
|
|
4177
|
+
return (j, T) => (a(), r("div", {
|
|
4178
|
+
class: d(b.value)
|
|
4139
4179
|
}, [
|
|
4140
4180
|
y(ee, {
|
|
4141
|
-
class:
|
|
4181
|
+
class: d(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
|
-
class:
|
|
4188
|
+
class: d(D(v)("w-5 h-5 transition-transform ml-2", { "rotate-180": l.value }))
|
|
4149
4189
|
}, null, 8, ["class"])
|
|
4150
4190
|
]),
|
|
4151
4191
|
_: 3
|
|
@@ -4161,9 +4201,9 @@ const es = {
|
|
|
4161
4201
|
default: S(() => [
|
|
4162
4202
|
l.value ? (a(), r("div", {
|
|
4163
4203
|
key: 0,
|
|
4164
|
-
class:
|
|
4204
|
+
class: d(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()), c = 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,16 +4239,16 @@ 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($) {
|
|
4206
|
-
return
|
|
4246
|
+
return c.value && c.value.getDate() === $ && c.value.getMonth() === n.value && c.value.getFullYear() === i.value;
|
|
4207
4247
|
}
|
|
4208
4248
|
function B($) {
|
|
4209
|
-
|
|
4249
|
+
c.value = new Date(i.value, n.value, $), emit("update:modelValue", c.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
|
-
class:
|
|
4286
|
+
class: d([
|
|
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
|
}, {
|
|
@@ -4331,30 +4371,30 @@ const es = {
|
|
|
4331
4371
|
variant: s.variant,
|
|
4332
4372
|
padding: s.padding
|
|
4333
4373
|
}))
|
|
4334
|
-
),
|
|
4374
|
+
), c = u(
|
|
4335
4375
|
() => v(l({ size: "md" }))
|
|
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
|
-
class:
|
|
4381
|
+
class: d(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
|
-
class: c
|
|
4388
|
+
class: d(c.value)
|
|
4349
4389
|
}, {
|
|
4350
4390
|
default: S(() => [
|
|
4351
4391
|
N(p(e.title), 1)
|
|
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
|
-
class:
|
|
4397
|
+
class: d(m.value)
|
|
4358
4398
|
}, {
|
|
4359
4399
|
default: S(() => [
|
|
4360
4400
|
N(p(e.description), 1)
|
|
@@ -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
|
-
}),
|
|
4476
|
-
const B =
|
|
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
|
-
},
|
|
4515
|
+
}), c = (k) => typeof k == "string" ? k : k?.key || k?.field || "unknown", m = (k, g) => {
|
|
4516
|
+
const B = c(g);
|
|
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,37 +4551,37 @@ const es = {
|
|
|
4511
4551
|
"font-medium"
|
|
4512
4552
|
)
|
|
4513
4553
|
);
|
|
4514
|
-
return (
|
|
4515
|
-
class:
|
|
4516
|
-
onClick:
|
|
4554
|
+
return (k, g) => (a(), r("tr", {
|
|
4555
|
+
class: d(j.value),
|
|
4556
|
+
onClick: w
|
|
4517
4557
|
}, [
|
|
4518
4558
|
e.selectable ? (a(), r("td", {
|
|
4519
4559
|
key: 0,
|
|
4520
|
-
class:
|
|
4560
|
+
class: d(R.value)
|
|
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
|
-
key:
|
|
4529
|
-
class:
|
|
4568
|
+
key: c(B),
|
|
4569
|
+
class: d(T(B))
|
|
4530
4570
|
}, [
|
|
4531
|
-
|
|
4571
|
+
h(k.$slots, `cell-${c(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
|
-
class:
|
|
4582
|
+
class: d(z.value)
|
|
4543
4583
|
}, [
|
|
4544
|
-
|
|
4584
|
+
h(k.$slots, "actions", {
|
|
4545
4585
|
item: e.item,
|
|
4546
4586
|
index: e.index
|
|
4547
4587
|
})
|
|
@@ -4657,7 +4697,7 @@ const es = {
|
|
|
4657
4697
|
defaultVariants: {
|
|
4658
4698
|
size: "md"
|
|
4659
4699
|
}
|
|
4660
|
-
}),
|
|
4700
|
+
}), c = x("border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm min-w-[60px] focus:border-transparent", {
|
|
4661
4701
|
variants: {
|
|
4662
4702
|
size: {
|
|
4663
4703
|
sm: "px-2 py-1",
|
|
@@ -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
|
-
() => v(
|
|
4693
|
-
), R = (z,
|
|
4732
|
+
() => v(c({ size: "sm" }))
|
|
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:
|
|
4742
|
+
class: d(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:
|
|
4753
|
+
class: d(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,8 +4761,8 @@ const es = {
|
|
|
4721
4761
|
y(we, {
|
|
4722
4762
|
id: "pageSize",
|
|
4723
4763
|
"model-value": e.pageSize.toString(),
|
|
4724
|
-
"onUpdate:modelValue":
|
|
4725
|
-
class:
|
|
4764
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => z.$emit("update:pageSize", parseInt(g))),
|
|
4765
|
+
class: d(T.value)
|
|
4726
4766
|
}, {
|
|
4727
4767
|
default: S(() => [
|
|
4728
4768
|
(a(!0), r(Q, null, K(e.pageSizeOptions, (g) => (a(), M(Le, {
|
|
@@ -4737,10 +4777,10 @@ const es = {
|
|
|
4737
4777
|
o("div", dl, [
|
|
4738
4778
|
o("button", {
|
|
4739
4779
|
disabled: e.currentPage === 1,
|
|
4740
|
-
onClick:
|
|
4741
|
-
class:
|
|
4780
|
+
onClick: k[1] || (k[1] = (g) => z.$emit("update:currentPage", 1)),
|
|
4781
|
+
class: d(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:
|
|
4761
|
-
class:
|
|
4800
|
+
onClick: k[2] || (k[2] = (g) => z.$emit("update:currentPage", e.currentPage - 1)),
|
|
4801
|
+
class: d(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,18 +4816,18 @@ 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
|
-
class:
|
|
4822
|
+
class: d(R(g === e.currentPage, !1))
|
|
4783
4823
|
}, p(g), 11, fl))), 128))
|
|
4784
4824
|
]),
|
|
4785
4825
|
o("button", {
|
|
4786
4826
|
disabled: e.currentPage === e.totalPages,
|
|
4787
|
-
onClick:
|
|
4788
|
-
class:
|
|
4827
|
+
onClick: k[3] || (k[3] = (g) => z.$emit("update:currentPage", e.currentPage + 1)),
|
|
4828
|
+
class: d(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:
|
|
4808
|
-
class:
|
|
4847
|
+
onClick: k[4] || (k[4] = (g) => z.$emit("update:currentPage", e.totalPages)),
|
|
4848
|
+
class: d(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), c = 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",
|
|
@@ -4970,46 +5010,46 @@ const es = {
|
|
|
4970
5010
|
}
|
|
4971
5011
|
}), T = u(() => {
|
|
4972
5012
|
let V = [...t.data];
|
|
4973
|
-
if (
|
|
4974
|
-
const
|
|
4975
|
-
|
|
4976
|
-
const de = $(Z,
|
|
5013
|
+
if (c.value) {
|
|
5014
|
+
const O = t.columns.find((Z) => Z.key === c.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
|
-
V.sortable && (
|
|
5003
|
-
},
|
|
5042
|
+
V.sortable && (c.value === V.key ? m.value = m.value === "asc" ? "desc" : "asc" : (c.value = V.key, m.value = "asc"), l("sort-change", { column: V.key, direction: m.value }));
|
|
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,17 +5081,17 @@ 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":
|
|
5047
|
-
"text-slate-300":
|
|
5086
|
+
"text-blue-600": c.value === V.key && m.value === O,
|
|
5087
|
+
"text-slate-300": c.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,
|
|
5054
|
-
class:
|
|
5093
|
+
}), (V, O) => (a(), r("div", {
|
|
5094
|
+
class: d(W.value)
|
|
5055
5095
|
}, [
|
|
5056
5096
|
e.title || e.description || V.$slots.header ? (a(), M(Ae, {
|
|
5057
5097
|
key: 0,
|
|
@@ -5061,24 +5101,24 @@ 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
|
-
class:
|
|
5113
|
+
class: d(A.value)
|
|
5074
5114
|
}, [
|
|
5075
5115
|
o("thead", {
|
|
5076
|
-
class:
|
|
5116
|
+
class: d(U.value)
|
|
5077
5117
|
}, [
|
|
5078
5118
|
o("tr", null, [
|
|
5079
5119
|
e.selectable ? (a(), r("th", {
|
|
5080
5120
|
key: 0,
|
|
5081
|
-
class:
|
|
5121
|
+
class: d(_.value)
|
|
5082
5122
|
}, [
|
|
5083
5123
|
y(ke, {
|
|
5084
5124
|
modelValue: g.value,
|
|
@@ -5088,19 +5128,19 @@ const es = {
|
|
|
5088
5128
|
], 2)) : f("", !0),
|
|
5089
5129
|
(a(!0), r(Q, null, K(e.columns, (Z) => (a(), r("th", {
|
|
5090
5130
|
key: Z.key,
|
|
5091
|
-
class:
|
|
5131
|
+
class: d(le(Z)),
|
|
5092
5132
|
onClick: (ne) => se(Z)
|
|
5093
5133
|
}, [
|
|
5094
5134
|
o("div", yl, [
|
|
5095
5135
|
o("span", null, p(Z.label), 1),
|
|
5096
5136
|
Z.sortable ? (a(), r("div", xl, [
|
|
5097
5137
|
(a(), r("svg", {
|
|
5098
|
-
class:
|
|
5138
|
+
class: d([ie(Z, "asc"), "w-3 h-3 transition-colors"]),
|
|
5099
5139
|
fill: "none",
|
|
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",
|
|
@@ -5108,12 +5148,12 @@ const es = {
|
|
|
5108
5148
|
}, null, -1)
|
|
5109
5149
|
])], 2)),
|
|
5110
5150
|
(a(), r("svg", {
|
|
5111
|
-
class:
|
|
5151
|
+
class: d([ie(Z, "desc"), "w-3 h-3 transition-colors"]),
|
|
5112
5152
|
fill: "none",
|
|
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,18 +5162,18 @@ 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
|
-
class:
|
|
5168
|
+
class: d(L.value)
|
|
5129
5169
|
}, " Actions ", 2)) : f("", !0)
|
|
5130
5170
|
])
|
|
5131
5171
|
], 2),
|
|
5132
5172
|
o("tbody", {
|
|
5133
|
-
class:
|
|
5173
|
+
class: d(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:
|
|
5164
|
-
class:
|
|
5203
|
+
colspan: k.value,
|
|
5204
|
+
class: d(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)
|
|
@@ -5250,9 +5290,9 @@ const es = {
|
|
|
5250
5290
|
},
|
|
5251
5291
|
setup(e) {
|
|
5252
5292
|
const s = e, t = u(() => {
|
|
5253
|
-
const
|
|
5254
|
-
return s.column.formatter ? s.column.formatter(
|
|
5255
|
-
}), l = () => s.column.accessor ? s.column.accessor(s.item) : s.column.key.split(".").reduce((
|
|
5293
|
+
const c = s.value ?? l();
|
|
5294
|
+
return s.column.formatter ? s.column.formatter(c, s.item) : c;
|
|
5295
|
+
}), l = () => s.column.accessor ? s.column.accessor(s.item) : s.column.key.split(".").reduce((c, m) => c?.[m], s.item), n = x("whitespace-nowrap", {
|
|
5256
5296
|
variants: {
|
|
5257
5297
|
align: {
|
|
5258
5298
|
left: "text-left",
|
|
@@ -5277,22 +5317,22 @@ const es = {
|
|
|
5277
5317
|
textSize: "sm"
|
|
5278
5318
|
}
|
|
5279
5319
|
}), i = u(() => {
|
|
5280
|
-
const
|
|
5320
|
+
const c = s.align || s.column.align || "left", m = `text-${s.textColor}`, b = s.width ? `w-${s.width}` : "";
|
|
5281
5321
|
return v(
|
|
5282
5322
|
n({
|
|
5283
|
-
align:
|
|
5323
|
+
align: c,
|
|
5284
5324
|
padding: s.padding,
|
|
5285
5325
|
textSize: s.textSize
|
|
5286
5326
|
}),
|
|
5287
5327
|
m,
|
|
5288
|
-
|
|
5328
|
+
b,
|
|
5289
5329
|
s.column.cellClasses
|
|
5290
5330
|
);
|
|
5291
5331
|
});
|
|
5292
|
-
return (
|
|
5293
|
-
class:
|
|
5332
|
+
return (c, m) => (a(), r("td", {
|
|
5333
|
+
class: d(i.value)
|
|
5294
5334
|
}, [
|
|
5295
|
-
|
|
5335
|
+
h(c.$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
|
-
},
|
|
5417
|
+
}, c = 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",
|
|
@@ -5431,23 +5471,23 @@ const es = {
|
|
|
5431
5471
|
defaultVariants: {
|
|
5432
5472
|
variant: "default"
|
|
5433
5473
|
}
|
|
5434
|
-
}), T = u(() =>
|
|
5474
|
+
}), T = u(() => c.searchQuery || c.selectedStatus || c.dateFrom || c.dateTo), R = u(() => {
|
|
5435
5475
|
const _ = [];
|
|
5436
|
-
if (
|
|
5476
|
+
if (c.searchQuery && c.searchQuery.trim() && _.push({
|
|
5437
5477
|
key: "search",
|
|
5438
5478
|
label: "Search",
|
|
5439
|
-
value:
|
|
5440
|
-
}),
|
|
5441
|
-
const L =
|
|
5479
|
+
value: c.searchQuery
|
|
5480
|
+
}), c.selectedStatus) {
|
|
5481
|
+
const L = c.statusOptions.find((F) => F.value === c.selectedStatus);
|
|
5442
5482
|
_.push({
|
|
5443
5483
|
key: "status",
|
|
5444
5484
|
label: "Status",
|
|
5445
|
-
value: L?.label ||
|
|
5485
|
+
value: L?.label || c.selectedStatus
|
|
5446
5486
|
});
|
|
5447
5487
|
}
|
|
5448
|
-
if (
|
|
5488
|
+
if (c.dateFrom || c.dateTo) {
|
|
5449
5489
|
let L = "";
|
|
5450
|
-
|
|
5490
|
+
c.dateFrom && c.dateTo ? L = `${c.dateFrom} to ${c.dateTo}` : c.dateFrom ? L = `From ${c.dateFrom}` : c.dateTo && (L = `Until ${c.dateTo}`), L && _.push({
|
|
5451
5491
|
key: "date",
|
|
5452
5492
|
label: "Date Range",
|
|
5453
5493
|
value: L
|
|
@@ -5455,36 +5495,36 @@ const es = {
|
|
|
5455
5495
|
}
|
|
5456
5496
|
return _;
|
|
5457
5497
|
}), z = u(
|
|
5458
|
-
() => v(
|
|
5459
|
-
variant:
|
|
5460
|
-
padding:
|
|
5498
|
+
() => v(b({
|
|
5499
|
+
variant: c.variant,
|
|
5500
|
+
padding: c.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: c.variant }))
|
|
5488
5528
|
), W = u(
|
|
5489
5529
|
() => "text-sm text-blue-700 font-medium"
|
|
5490
5530
|
), A = u(
|
|
@@ -5508,23 +5548,23 @@ const es = {
|
|
|
5508
5548
|
};
|
|
5509
5549
|
return (_, L) => (a(), r("div", null, [
|
|
5510
5550
|
o("div", {
|
|
5511
|
-
class:
|
|
5551
|
+
class: d(z.value)
|
|
5512
5552
|
}, [
|
|
5513
5553
|
o("div", Bl, [
|
|
5514
5554
|
o("div", Vl, [
|
|
5515
5555
|
y(t, {
|
|
5516
|
-
class:
|
|
5556
|
+
class: d(k.value)
|
|
5517
5557
|
}, null, 8, ["class"]),
|
|
5518
5558
|
y(pe, {
|
|
5519
5559
|
"model-value": e.searchQuery,
|
|
5520
5560
|
onInput: L[0] || (L[0] = (F) => _.$emit("update:searchQuery", F.target.value)),
|
|
5521
5561
|
placeholder: e.searchPlaceholder,
|
|
5522
|
-
class:
|
|
5562
|
+
class: d(g.value)
|
|
5523
5563
|
}, null, 8, ["model-value", "placeholder", "class"]),
|
|
5524
5564
|
e.searchQuery ? (a(), M(ee, {
|
|
5525
5565
|
key: 0,
|
|
5526
5566
|
onClick: L[1] || (L[1] = (F) => _.$emit("update:searchQuery", "")),
|
|
5527
|
-
class:
|
|
5567
|
+
class: d(B.value)
|
|
5528
5568
|
}, {
|
|
5529
5569
|
default: S(() => [
|
|
5530
5570
|
y(l, { class: "w-4 h-4" })
|
|
@@ -5537,7 +5577,7 @@ const es = {
|
|
|
5537
5577
|
y(we, {
|
|
5538
5578
|
"model-value": e.selectedStatus,
|
|
5539
5579
|
onChange: L[2] || (L[2] = (F) => _.$emit("update:selectedStatus", F.target.value)),
|
|
5540
|
-
class:
|
|
5580
|
+
class: d($.value)
|
|
5541
5581
|
}, {
|
|
5542
5582
|
default: S(() => [
|
|
5543
5583
|
L[7] || (L[7] = o("option", { value: "" }, "All Status", -1)),
|
|
@@ -5549,31 +5589,31 @@ 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:
|
|
5597
|
+
class: d(I.value)
|
|
5558
5598
|
}, null, 8, ["model-value", "class"]),
|
|
5559
5599
|
o("span", {
|
|
5560
|
-
class:
|
|
5600
|
+
class: d(P.value)
|
|
5561
5601
|
}, "to", 2),
|
|
5562
5602
|
y(pe, {
|
|
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:
|
|
5606
|
+
class: d(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, {
|
|
5574
5614
|
key: 0,
|
|
5575
5615
|
onClick: J,
|
|
5576
|
-
class:
|
|
5616
|
+
class: d(E.value)
|
|
5577
5617
|
}, {
|
|
5578
5618
|
default: S(() => [...L[8] || (L[8] = [
|
|
5579
5619
|
N(" Clear Filters ", -1)
|
|
@@ -5583,7 +5623,7 @@ const es = {
|
|
|
5583
5623
|
e.showExport ? (a(), M(ee, {
|
|
5584
5624
|
key: 1,
|
|
5585
5625
|
onClick: L[5] || (L[5] = (F) => _.$emit("export")),
|
|
5586
|
-
class:
|
|
5626
|
+
class: d(te.value)
|
|
5587
5627
|
}, {
|
|
5588
5628
|
default: S(() => [
|
|
5589
5629
|
y(n, { class: "w-4 h-4" }),
|
|
@@ -5594,7 +5634,7 @@ const es = {
|
|
|
5594
5634
|
e.showAdd ? (a(), M(ee, {
|
|
5595
5635
|
key: 2,
|
|
5596
5636
|
onClick: L[6] || (L[6] = (F) => _.$emit("add")),
|
|
5597
|
-
class:
|
|
5637
|
+
class: d(se.value)
|
|
5598
5638
|
}, {
|
|
5599
5639
|
default: S(() => [
|
|
5600
5640
|
y(i, { class: "w-4 h-4" }),
|
|
@@ -5606,20 +5646,20 @@ const es = {
|
|
|
5606
5646
|
], 2),
|
|
5607
5647
|
R.value.length > 0 ? (a(), r("div", {
|
|
5608
5648
|
key: 0,
|
|
5609
|
-
class:
|
|
5649
|
+
class: d(q.value)
|
|
5610
5650
|
}, [
|
|
5611
5651
|
o("div", Dl, [
|
|
5612
5652
|
o("span", {
|
|
5613
|
-
class:
|
|
5653
|
+
class: d(W.value)
|
|
5614
5654
|
}, "Active filters:", 2),
|
|
5615
5655
|
(a(!0), r(Q, null, K(R.value, (F) => (a(), r("div", {
|
|
5616
5656
|
key: F.key,
|
|
5617
|
-
class:
|
|
5657
|
+
class: d(A.value)
|
|
5618
5658
|
}, [
|
|
5619
5659
|
o("span", null, p(F.label) + ": " + p(F.value), 1),
|
|
5620
5660
|
y(ee, {
|
|
5621
5661
|
onClick: (ie) => le(F.key),
|
|
5622
|
-
class:
|
|
5662
|
+
class: d(U.value)
|
|
5623
5663
|
}, {
|
|
5624
5664
|
default: S(() => [
|
|
5625
5665
|
y(l, { class: "w-3 h-3" })
|
|
@@ -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), c = 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,29 +5797,29 @@ 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"
|
|
5774
5814
|
), E = u(
|
|
5775
5815
|
() => "text-sm text-slate-700 flex-1 select-none"
|
|
5776
5816
|
), te = (_) => {
|
|
5777
|
-
i.value &&
|
|
5817
|
+
i.value && c.value && !i.value.contains(_.target) && !c.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
|
}));
|
|
@@ -5795,7 +5835,7 @@ const es = {
|
|
|
5795
5835
|
}), ye(() => {
|
|
5796
5836
|
document.removeEventListener("click", te);
|
|
5797
5837
|
}), (_, L) => (a(), r("div", {
|
|
5798
|
-
class:
|
|
5838
|
+
class: d(R.value)
|
|
5799
5839
|
}, [
|
|
5800
5840
|
o("div", Pl, [
|
|
5801
5841
|
m.value > 0 ? (a(), r("div", Fl, [
|
|
@@ -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:
|
|
5847
|
+
class: d(q(F))
|
|
5808
5848
|
}, {
|
|
5809
5849
|
default: S(() => [
|
|
5810
5850
|
F.icon ? (a(), M(X(F.icon), {
|
|
@@ -5818,28 +5858,28 @@ const es = {
|
|
|
5818
5858
|
])
|
|
5819
5859
|
])) : e.totalItems > 0 ? (a(), r("div", {
|
|
5820
5860
|
key: 1,
|
|
5821
|
-
class:
|
|
5861
|
+
class: d(z.value)
|
|
5822
5862
|
}, p(e.totalItems) + " " + p(e.totalItems === 1 ? "item" : "items"), 3)) : f("", !0)
|
|
5823
5863
|
]),
|
|
5824
5864
|
o("div", _l, [
|
|
5825
5865
|
e.showDensityToggle ? (a(), r("div", {
|
|
5826
5866
|
key: 0,
|
|
5827
|
-
class:
|
|
5867
|
+
class: d(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
|
-
class:
|
|
5872
|
+
class: d(W(F.value)),
|
|
5833
5873
|
title: F.label,
|
|
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
|
-
class:
|
|
5882
|
+
class: d(g.value),
|
|
5843
5883
|
type: "button",
|
|
5844
5884
|
ref_key: "columnToggleButton",
|
|
5845
5885
|
ref: i
|
|
@@ -5849,29 +5889,29 @@ const es = {
|
|
|
5849
5889
|
], 2),
|
|
5850
5890
|
xe(o("div", {
|
|
5851
5891
|
ref_key: "columnMenu",
|
|
5852
|
-
ref:
|
|
5853
|
-
class:
|
|
5892
|
+
ref: c,
|
|
5893
|
+
class: d(B.value),
|
|
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
|
-
class:
|
|
5899
|
+
class: d($.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:
|
|
5904
|
+
class: d(I.value)
|
|
5865
5905
|
}, [
|
|
5866
5906
|
o("label", Ul, [
|
|
5867
5907
|
o("input", {
|
|
5868
5908
|
type: "checkbox",
|
|
5869
5909
|
checked: J(F.key),
|
|
5870
5910
|
onChange: (ie) => le(F.key, ie.target.checked),
|
|
5871
|
-
class:
|
|
5911
|
+
class: d(P.value)
|
|
5872
5912
|
}, null, 42, Zl),
|
|
5873
5913
|
o("span", {
|
|
5874
|
-
class:
|
|
5914
|
+
class: d(E.value)
|
|
5875
5915
|
}, p(F.label), 3)
|
|
5876
5916
|
])
|
|
5877
5917
|
], 2))), 128))
|
|
@@ -5885,16 +5925,16 @@ const es = {
|
|
|
5885
5925
|
key: 2,
|
|
5886
5926
|
onClick: L[1] || (L[1] = (F) => _.$emit("refresh")),
|
|
5887
5927
|
disabled: e.isRefreshing,
|
|
5888
|
-
class:
|
|
5928
|
+
class: d(A()),
|
|
5889
5929
|
type: "button"
|
|
5890
5930
|
}, [
|
|
5891
5931
|
y(Yl, {
|
|
5892
|
-
class:
|
|
5932
|
+
class: d(U())
|
|
5893
5933
|
}, null, 8, ["class"]),
|
|
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"),
|
|
5952
|
+
const l = G("Logo"), n = G("Text"), i = G("Typography"), c = G("Link"), m = G("Icon"), b = G("Divider");
|
|
5913
5953
|
return a(), r("footer", {
|
|
5914
|
-
class:
|
|
5954
|
+
class: d(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"
|
|
@@ -5938,7 +5978,7 @@ const es = {
|
|
|
5938
5978
|
_: 1
|
|
5939
5979
|
}),
|
|
5940
5980
|
o("div", rn, [
|
|
5941
|
-
y(
|
|
5981
|
+
y(c, {
|
|
5942
5982
|
href: "#",
|
|
5943
5983
|
class: "block text-gray-600 hover:text-gray-900"
|
|
5944
5984
|
}, {
|
|
@@ -5947,7 +5987,7 @@ const es = {
|
|
|
5947
5987
|
])]),
|
|
5948
5988
|
_: 1
|
|
5949
5989
|
}),
|
|
5950
|
-
y(
|
|
5990
|
+
y(c, {
|
|
5951
5991
|
href: "#",
|
|
5952
5992
|
class: "block text-gray-600 hover:text-gray-900"
|
|
5953
5993
|
}, {
|
|
@@ -5956,7 +5996,7 @@ const es = {
|
|
|
5956
5996
|
])]),
|
|
5957
5997
|
_: 1
|
|
5958
5998
|
}),
|
|
5959
|
-
y(
|
|
5999
|
+
y(c, {
|
|
5960
6000
|
href: "#",
|
|
5961
6001
|
class: "block text-gray-600 hover:text-gray-900"
|
|
5962
6002
|
}, {
|
|
@@ -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"
|
|
@@ -5980,7 +6020,7 @@ const es = {
|
|
|
5980
6020
|
_: 1
|
|
5981
6021
|
}),
|
|
5982
6022
|
o("div", on, [
|
|
5983
|
-
y(
|
|
6023
|
+
y(c, {
|
|
5984
6024
|
href: "#",
|
|
5985
6025
|
class: "text-gray-600 hover:text-gray-900"
|
|
5986
6026
|
}, {
|
|
@@ -5992,7 +6032,7 @@ const es = {
|
|
|
5992
6032
|
]),
|
|
5993
6033
|
_: 1
|
|
5994
6034
|
}),
|
|
5995
|
-
y(
|
|
6035
|
+
y(c, {
|
|
5996
6036
|
href: "#",
|
|
5997
6037
|
class: "text-gray-600 hover:text-gray-900"
|
|
5998
6038
|
}, {
|
|
@@ -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,9 +6058,9 @@ const es = {
|
|
|
6018
6058
|
_: 1
|
|
6019
6059
|
})
|
|
6020
6060
|
]),
|
|
6021
|
-
|
|
6061
|
+
h(s.$slots, "legal", {}, () => [
|
|
6022
6062
|
o("div", cn, [
|
|
6023
|
-
y(
|
|
6063
|
+
y(c, {
|
|
6024
6064
|
href: "#",
|
|
6025
6065
|
class: "text-gray-600 hover:text-gray-900"
|
|
6026
6066
|
}, {
|
|
@@ -6029,7 +6069,7 @@ const es = {
|
|
|
6029
6069
|
])]),
|
|
6030
6070
|
_: 1
|
|
6031
6071
|
}),
|
|
6032
|
-
y(
|
|
6072
|
+
y(c, {
|
|
6033
6073
|
href: "#",
|
|
6034
6074
|
class: "text-gray-600 hover:text-gray-900"
|
|
6035
6075
|
}, {
|
|
@@ -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: {
|
|
@@ -6056,24 +6096,24 @@ const es = {
|
|
|
6056
6096
|
emits: ["toggle-mobile-menu"],
|
|
6057
6097
|
setup(e) {
|
|
6058
6098
|
return (s, t) => {
|
|
6059
|
-
const l = G("Logo"), n = G("MainNavigation"), i = G("Button"),
|
|
6099
|
+
const l = G("Logo"), n = G("MainNavigation"), i = G("Button"), c = G("Icon");
|
|
6060
6100
|
return a(), r("header", {
|
|
6061
|
-
class:
|
|
6101
|
+
class: d(D(v)("bg-white border-b border-gray-200 shadow-sm", e.className))
|
|
6062
6102
|
}, [
|
|
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,15 +6131,15 @@ 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",
|
|
6099
6139
|
onClick: t[0] || (t[0] = (m) => s.$emit("toggle-mobile-menu"))
|
|
6100
6140
|
}, {
|
|
6101
6141
|
default: S(() => [
|
|
6102
|
-
y(
|
|
6142
|
+
y(c, {
|
|
6103
6143
|
name: "menu",
|
|
6104
6144
|
class: "h-5 w-5"
|
|
6105
6145
|
})
|
|
@@ -6131,26 +6171,26 @@ const es = {
|
|
|
6131
6171
|
},
|
|
6132
6172
|
setup(e) {
|
|
6133
6173
|
return (s, t) => {
|
|
6134
|
-
const l = G("Logo"), n = G("SidebarNavigation"), i = G("Divider"),
|
|
6174
|
+
const l = G("Logo"), n = G("SidebarNavigation"), i = G("Divider"), c = G("Avatar"), m = G("Text");
|
|
6135
6175
|
return a(), r("aside", {
|
|
6136
|
-
class:
|
|
6176
|
+
class: d(D(v)("bg-white border-r border-gray-200 h-full", e.className))
|
|
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
|
-
y(
|
|
6193
|
+
y(c, { size: "sm" }),
|
|
6154
6194
|
o("div", null, [
|
|
6155
6195
|
y(m, { class: "text-sm font-medium" }, {
|
|
6156
6196
|
default: S(() => [...t[0] || (t[0] = [
|
|
@@ -6183,12 +6223,12 @@ const es = {
|
|
|
6183
6223
|
},
|
|
6184
6224
|
setup(e) {
|
|
6185
6225
|
return (s, t) => (a(), r("div", {
|
|
6186
|
-
class:
|
|
6226
|
+
class: d([
|
|
6187
6227
|
"relative flex",
|
|
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: {
|
|
@@ -6216,35 +6256,35 @@ const es = {
|
|
|
6216
6256
|
},
|
|
6217
6257
|
setup(e) {
|
|
6218
6258
|
return (s, t) => (a(), r("div", {
|
|
6219
|
-
class:
|
|
6259
|
+
class: d([
|
|
6220
6260
|
"relative flex",
|
|
6221
6261
|
e.orientation === "vertical" ? "items-start mb-8 last:mb-0" : "flex-col items-center mx-8 last:mx-0"
|
|
6222
6262
|
])
|
|
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
|
]),
|
|
6230
6270
|
o("div", {
|
|
6231
|
-
class:
|
|
6271
|
+
class: d([
|
|
6232
6272
|
"ml-6",
|
|
6233
6273
|
e.orientation === "horizontal" ? "mt-2 text-center" : ""
|
|
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,77 +6294,29 @@ 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
|
-
title: {
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
},
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
},
|
|
6268
|
-
|
|
6269
|
-
type: String,
|
|
6270
|
-
default: "e"
|
|
6271
|
-
},
|
|
6272
|
-
primaryLogoText: {
|
|
6273
|
-
type: String,
|
|
6274
|
-
default: "HORIZON"
|
|
6275
|
-
},
|
|
6276
|
-
secondaryLogoPrefix: {
|
|
6277
|
-
type: String,
|
|
6278
|
-
default: "e"
|
|
6279
|
-
},
|
|
6280
|
-
secondaryLogoText: {
|
|
6281
|
-
type: String,
|
|
6282
|
-
default: "Risk & Compliance"
|
|
6283
|
-
},
|
|
6284
|
-
quote: {
|
|
6285
|
-
type: String,
|
|
6286
|
-
default: ""
|
|
6287
|
-
},
|
|
6288
|
-
primaryColor: {
|
|
6289
|
-
type: String,
|
|
6290
|
-
default: "#e74c3c"
|
|
6291
|
-
},
|
|
6292
|
-
backgroundColor: {
|
|
6293
|
-
type: String,
|
|
6294
|
-
default: "#2c2c2c"
|
|
6295
|
-
},
|
|
6300
|
+
title: { type: String, default: null },
|
|
6301
|
+
subtitle: { type: String, default: null },
|
|
6302
|
+
primaryLogoPrefix: { type: String, default: "e" },
|
|
6303
|
+
primaryLogoText: { type: String, default: "HORIZON" },
|
|
6304
|
+
secondaryLogoPrefix: { type: String, default: "e" },
|
|
6305
|
+
secondaryLogoText: { type: String, default: "Risk & Compliance" },
|
|
6306
|
+
quote: { type: String, default: "" },
|
|
6307
|
+
primaryColor: { type: String, default: "#e74c3c" },
|
|
6308
|
+
backgroundColor: { type: String, default: "#2c2c2c" },
|
|
6296
6309
|
backgroundImage: {
|
|
6297
6310
|
type: String,
|
|
6298
6311
|
default: "https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2069&q=80"
|
|
6299
6312
|
},
|
|
6300
|
-
backgroundOpacity: {
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
},
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
},
|
|
6308
|
-
companyType: {
|
|
6309
|
-
type: String,
|
|
6310
|
-
default: "TECHNOLOGIES"
|
|
6311
|
-
},
|
|
6312
|
-
companyTagline: {
|
|
6313
|
-
type: String,
|
|
6314
|
-
default: "People | Processes | Governance"
|
|
6315
|
-
},
|
|
6316
|
-
companyInitials: {
|
|
6317
|
-
type: String,
|
|
6318
|
-
default: "ST"
|
|
6319
|
-
},
|
|
6320
|
-
appName: {
|
|
6321
|
-
type: String,
|
|
6322
|
-
default: "eHorizon eBoard X"
|
|
6323
|
-
},
|
|
6324
|
-
appVersion: {
|
|
6325
|
-
type: String,
|
|
6326
|
-
default: "Version 2.0"
|
|
6327
|
-
},
|
|
6313
|
+
backgroundOpacity: { type: Number, default: 0.4 },
|
|
6314
|
+
companyName: { type: String, default: "SOFTWARE" },
|
|
6315
|
+
companyType: { type: String, default: "TECHNOLOGIES" },
|
|
6316
|
+
companyTagline: { type: String, default: "People | Processes | Governance" },
|
|
6317
|
+
companyInitials: { type: String, default: "ST" },
|
|
6318
|
+
appName: { type: String, default: "eHorizon eBoard X" },
|
|
6319
|
+
appVersion: { type: String, default: "Version 2.0" },
|
|
6328
6320
|
copyright: {
|
|
6329
6321
|
type: String,
|
|
6330
6322
|
default: "Copyright © 2025 Software Technologies Limited"
|
|
@@ -6338,12 +6330,10 @@ const es = {
|
|
|
6338
6330
|
]
|
|
6339
6331
|
}
|
|
6340
6332
|
},
|
|
6341
|
-
setup(
|
|
6342
|
-
return {
|
|
6343
|
-
currentYear: u(() => (/* @__PURE__ */ new Date()).getFullYear())
|
|
6344
|
-
};
|
|
6333
|
+
setup() {
|
|
6334
|
+
return { currentYear: u(() => (/* @__PURE__ */ new Date()).getFullYear()) };
|
|
6345
6335
|
}
|
|
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" },
|
|
6336
|
+
}, 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
6337
|
key: 0,
|
|
6348
6338
|
class: "mb-6"
|
|
6349
6339
|
}, En = { class: "text-center" }, Un = { class: "text-2xl font-bold text-gray-900" }, Zn = {
|
|
@@ -6357,6 +6347,7 @@ const es = {
|
|
|
6357
6347
|
class: "mt-6 text-center"
|
|
6358
6348
|
}, Yn = { class: "absolute bottom-4 right-4 text-right" }, Xn = { class: "flex items-end justify-end mb-2" }, Wn = { class: "text-right mr-3" }, Jn = { class: "text-red-500 font-bold text-xs" }, er = { class: "text-white text-xs" }, tr = { class: "text-white/70 text-xs" }, ar = { class: "w-8 h-8 bg-red-500 rounded flex items-center justify-center text-white font-bold text-xs" }, sr = { class: "text-white/70 text-xs" }, lr = { class: "absolute bottom-4 left-4 flex gap-2" }, nr = ["href"];
|
|
6359
6349
|
function rr(e, s, t, l, n, i) {
|
|
6350
|
+
const c = G("router-view");
|
|
6360
6351
|
return a(), r("div", {
|
|
6361
6352
|
class: "min-h-screen relative flex items-center justify-center",
|
|
6362
6353
|
style: ce({ backgroundColor: t.backgroundColor })
|
|
@@ -6394,10 +6385,10 @@ function rr(e, s, t, l, n, i) {
|
|
|
6394
6385
|
o("p", { class: "text-sm lg:text-base font-light text-white/70 italic leading-relaxed" })
|
|
6395
6386
|
], -1))
|
|
6396
6387
|
]),
|
|
6397
|
-
o("div",
|
|
6398
|
-
o("div",
|
|
6399
|
-
e.$slots["card-header"] || t.title ? (a(), r("div",
|
|
6400
|
-
|
|
6388
|
+
o("div", Hn, [
|
|
6389
|
+
o("div", On, [
|
|
6390
|
+
e.$slots["card-header"] || t.title ? (a(), r("div", qn, [
|
|
6391
|
+
h(e.$slots, "card-header", {}, () => [
|
|
6401
6392
|
o("div", En, [
|
|
6402
6393
|
o("h1", Un, p(t.title), 1),
|
|
6403
6394
|
t.subtitle ? (a(), r("p", Zn, p(t.subtitle), 1)) : f("", !0)
|
|
@@ -6405,14 +6396,15 @@ function rr(e, s, t, l, n, i) {
|
|
|
6405
6396
|
])
|
|
6406
6397
|
])) : f("", !0),
|
|
6407
6398
|
o("div", Gn, [
|
|
6408
|
-
|
|
6399
|
+
h(e.$slots, "default"),
|
|
6400
|
+
y(c)
|
|
6409
6401
|
]),
|
|
6410
6402
|
e.$slots["card-footer"] ? (a(), r("div", Kn, [
|
|
6411
|
-
|
|
6403
|
+
h(e.$slots, "card-footer")
|
|
6412
6404
|
])) : f("", !0)
|
|
6413
6405
|
]),
|
|
6414
6406
|
e.$slots.links ? (a(), r("div", Qn, [
|
|
6415
|
-
|
|
6407
|
+
h(e.$slots, "links")
|
|
6416
6408
|
])) : f("", !0)
|
|
6417
6409
|
])
|
|
6418
6410
|
])
|
|
@@ -6432,22 +6424,22 @@ function rr(e, s, t, l, n, i) {
|
|
|
6432
6424
|
])
|
|
6433
6425
|
]),
|
|
6434
6426
|
o("div", lr, [
|
|
6435
|
-
(a(!0), r(Q, null, K(t.socialLinks, (
|
|
6436
|
-
key:
|
|
6437
|
-
href:
|
|
6438
|
-
class:
|
|
6427
|
+
(a(!0), r(Q, null, K(t.socialLinks, (m) => (a(), r("a", {
|
|
6428
|
+
key: m.name,
|
|
6429
|
+
href: m.url,
|
|
6430
|
+
class: d([
|
|
6439
6431
|
"w-8 h-7 flex items-center justify-center rounded text-xs transition-colors",
|
|
6440
|
-
|
|
6432
|
+
m.variant === "primary" ? "bg-blue-600 hover:bg-blue-700 text-white" : m.variant === "info" ? "bg-cyan-500 hover:bg-cyan-600 text-white" : "bg-gray-600 hover:bg-gray-700 text-white"
|
|
6441
6433
|
])
|
|
6442
6434
|
}, [
|
|
6443
6435
|
o("i", {
|
|
6444
|
-
class:
|
|
6436
|
+
class: d(m.icon)
|
|
6445
6437
|
}, null, 2)
|
|
6446
6438
|
], 10, nr))), 128))
|
|
6447
6439
|
])
|
|
6448
6440
|
], 4);
|
|
6449
6441
|
}
|
|
6450
|
-
const or = /* @__PURE__ */ Ne(
|
|
6442
|
+
const or = /* @__PURE__ */ Ne(In, [["render", rr]]), ir = { class: "min-h-screen bg-gray-50" }, dr = { class: "flex-1" }, cr = {
|
|
6451
6443
|
key: 0,
|
|
6452
6444
|
class: "bg-white border-b border-gray-200"
|
|
6453
6445
|
}, 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 +6465,21 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6473
6465
|
},
|
|
6474
6466
|
setup(e) {
|
|
6475
6467
|
return (s, t) => {
|
|
6476
|
-
const l = G("Logo"), n = G("MainNavigation"), i = G("Button"),
|
|
6468
|
+
const l = G("Logo"), n = G("MainNavigation"), i = G("Button"), c = G("Header"), m = G("Breadcrumb"), b = G("Text"), w = G("Footer");
|
|
6477
6469
|
return a(), r("div", ir, [
|
|
6478
|
-
y(
|
|
6470
|
+
y(c, null, {
|
|
6479
6471
|
logo: S(() => [
|
|
6480
|
-
|
|
6472
|
+
h(s.$slots, "logo", {}, () => [
|
|
6481
6473
|
y(l)
|
|
6482
6474
|
])
|
|
6483
6475
|
]),
|
|
6484
6476
|
navigation: S(() => [
|
|
6485
|
-
|
|
6477
|
+
h(s.$slots, "navigation", {}, () => [
|
|
6486
6478
|
y(n, { items: e.navigationItems }, null, 8, ["items"])
|
|
6487
6479
|
])
|
|
6488
6480
|
]),
|
|
6489
6481
|
actions: S(() => [
|
|
6490
|
-
|
|
6482
|
+
h(s.$slots, "header-actions", {}, () => [
|
|
6491
6483
|
y(i, {
|
|
6492
6484
|
variant: "ghost",
|
|
6493
6485
|
size: "sm"
|
|
@@ -6510,20 +6502,20 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6510
6502
|
o("main", dr, [
|
|
6511
6503
|
e.showBreadcrumb ? (a(), r("div", cr, [
|
|
6512
6504
|
o("div", ur, [
|
|
6513
|
-
|
|
6505
|
+
h(s.$slots, "breadcrumb", {}, () => [
|
|
6514
6506
|
y(m, { items: e.breadcrumbItems }, null, 8, ["items"])
|
|
6515
6507
|
])
|
|
6516
6508
|
])
|
|
6517
6509
|
])) : f("", !0),
|
|
6518
6510
|
o("div", mr, [
|
|
6519
|
-
|
|
6511
|
+
h(s.$slots, "default")
|
|
6520
6512
|
])
|
|
6521
6513
|
]),
|
|
6522
|
-
y(
|
|
6514
|
+
y(w, null, {
|
|
6523
6515
|
brand: S(() => [
|
|
6524
|
-
|
|
6516
|
+
h(s.$slots, "footer-brand", {}, () => [
|
|
6525
6517
|
y(l, { class: "mb-4" }),
|
|
6526
|
-
y(
|
|
6518
|
+
y(b, { class: "text-gray-600 max-w-md" }, {
|
|
6527
6519
|
default: S(() => [...t[2] || (t[2] = [
|
|
6528
6520
|
N(" Your application description goes here. ", -1)
|
|
6529
6521
|
])]),
|
|
@@ -6662,18 +6654,18 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6662
6654
|
}
|
|
6663
6655
|
};
|
|
6664
6656
|
return E[e.errorType] || E.generic;
|
|
6665
|
-
}), l = u(() => t.value.icon), n = u(() => e.errorTitle || t.value.title), i = u(() => e.errorMessage || t.value.message),
|
|
6657
|
+
}), l = u(() => t.value.icon), n = u(() => e.errorTitle || t.value.title), i = u(() => e.errorMessage || t.value.message), c = () => {
|
|
6666
6658
|
window.history.length > 1 ? window.history.back() : window.location.href = e.homeUrl, s("back");
|
|
6667
6659
|
}, m = () => {
|
|
6668
6660
|
window.location.reload(), s("retry");
|
|
6669
|
-
},
|
|
6661
|
+
}, b = u(() => [
|
|
6670
6662
|
"min-h-screen relative flex items-center justify-center",
|
|
6671
6663
|
"px-4 sm:px-6 lg:px-8"
|
|
6672
|
-
]), k = u(() => [
|
|
6673
|
-
"absolute inset-0 -z-10"
|
|
6674
6664
|
]), w = u(() => [
|
|
6665
|
+
"absolute inset-0 -z-10"
|
|
6666
|
+
]), C = u(() => [
|
|
6675
6667
|
"w-full max-w-lg mx-auto text-center"
|
|
6676
|
-
]),
|
|
6668
|
+
]), j = u(() => [
|
|
6677
6669
|
"mb-8"
|
|
6678
6670
|
]), T = u(() => [
|
|
6679
6671
|
"space-y-6"
|
|
@@ -6681,7 +6673,7 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6681
6673
|
"flex justify-center mb-6"
|
|
6682
6674
|
]), z = u(() => [
|
|
6683
6675
|
"w-32 h-32 text-slate-400"
|
|
6684
|
-
]),
|
|
6676
|
+
]), k = u(() => [
|
|
6685
6677
|
"space-y-3"
|
|
6686
6678
|
]), g = u(() => [
|
|
6687
6679
|
"text-3xl font-bold text-slate-900"
|
|
@@ -6689,7 +6681,7 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6689
6681
|
"text-lg text-slate-600"
|
|
6690
6682
|
]), $ = u(() => [
|
|
6691
6683
|
"text-sm text-slate-500 font-mono"
|
|
6692
|
-
]),
|
|
6684
|
+
]), I = u(() => [
|
|
6693
6685
|
"mt-8"
|
|
6694
6686
|
]), P = u(() => [
|
|
6695
6687
|
"mt-6"
|
|
@@ -6698,48 +6690,48 @@ const or = /* @__PURE__ */ Ne(jn, [["render", rr]]), ir = { class: "min-h-screen
|
|
|
6698
6690
|
errorIcon: l,
|
|
6699
6691
|
errorTitle: n,
|
|
6700
6692
|
errorMessage: i,
|
|
6701
|
-
goBack:
|
|
6693
|
+
goBack: c,
|
|
6702
6694
|
retry: m,
|
|
6703
|
-
layoutClasses:
|
|
6704
|
-
backgroundClasses:
|
|
6705
|
-
contentClasses:
|
|
6706
|
-
headerClasses:
|
|
6695
|
+
layoutClasses: b,
|
|
6696
|
+
backgroundClasses: w,
|
|
6697
|
+
contentClasses: C,
|
|
6698
|
+
headerClasses: j,
|
|
6707
6699
|
errorContentClasses: T,
|
|
6708
6700
|
illustrationClasses: R,
|
|
6709
6701
|
iconClasses: z,
|
|
6710
|
-
detailsClasses:
|
|
6702
|
+
detailsClasses: k,
|
|
6711
6703
|
titleClasses: g,
|
|
6712
6704
|
messageClasses: B,
|
|
6713
6705
|
codeClasses: $,
|
|
6714
|
-
actionsClasses:
|
|
6706
|
+
actionsClasses: I,
|
|
6715
6707
|
helpClasses: P
|
|
6716
6708
|
};
|
|
6717
6709
|
}
|
|
6718
|
-
},
|
|
6710
|
+
}, 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
6711
|
function Cr(e, s, t, l, n, i) {
|
|
6720
|
-
const
|
|
6712
|
+
const c = G("Button");
|
|
6721
6713
|
return a(), r("div", {
|
|
6722
|
-
class:
|
|
6714
|
+
class: d(l.layoutClasses)
|
|
6723
6715
|
}, [
|
|
6724
6716
|
t.showBackground ? (a(), r("div", {
|
|
6725
6717
|
key: 0,
|
|
6726
|
-
class:
|
|
6718
|
+
class: d(l.backgroundClasses)
|
|
6727
6719
|
}, [
|
|
6728
|
-
|
|
6720
|
+
h(e.$slots, "background", {}, () => [
|
|
6729
6721
|
s[0] || (s[0] = o("div", { class: "absolute inset-0 bg-gradient-to-br from-slate-50 to-slate-100" }, null, -1))
|
|
6730
6722
|
])
|
|
6731
6723
|
], 2)) : f("", !0),
|
|
6732
6724
|
o("div", {
|
|
6733
|
-
class:
|
|
6725
|
+
class: d(l.contentClasses)
|
|
6734
6726
|
}, [
|
|
6735
6727
|
e.$slots.header || t.showLogo ? (a(), r("div", {
|
|
6736
6728
|
key: 0,
|
|
6737
|
-
class:
|
|
6729
|
+
class: d(l.headerClasses)
|
|
6738
6730
|
}, [
|
|
6739
|
-
|
|
6740
|
-
o("div",
|
|
6741
|
-
|
|
6742
|
-
o("div",
|
|
6731
|
+
h(e.$slots, "header", {}, () => [
|
|
6732
|
+
o("div", br, [
|
|
6733
|
+
h(e.$slots, "logo", {}, () => [
|
|
6734
|
+
o("div", hr, [
|
|
6743
6735
|
s[1] || (s[1] = o("div", { class: "w-10 h-10 bg-blue-600 rounded-xl flex items-center justify-center" }, [
|
|
6744
6736
|
o("span", { class: "text-white font-bold text-lg" }, "STL")
|
|
6745
6737
|
], -1)),
|
|
@@ -6750,47 +6742,47 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6750
6742
|
])
|
|
6751
6743
|
], 2)) : f("", !0),
|
|
6752
6744
|
o("div", {
|
|
6753
|
-
class:
|
|
6745
|
+
class: d(l.errorContentClasses)
|
|
6754
6746
|
}, [
|
|
6755
6747
|
e.$slots.illustration || t.showDefaultIllustration ? (a(), r("div", {
|
|
6756
6748
|
key: 0,
|
|
6757
|
-
class:
|
|
6749
|
+
class: d(l.illustrationClasses)
|
|
6758
6750
|
}, [
|
|
6759
|
-
|
|
6751
|
+
h(e.$slots, "illustration", {}, () => [
|
|
6760
6752
|
(a(), M(X(l.errorIcon), {
|
|
6761
|
-
class:
|
|
6753
|
+
class: d(l.iconClasses)
|
|
6762
6754
|
}, null, 8, ["class"]))
|
|
6763
6755
|
])
|
|
6764
6756
|
], 2)) : f("", !0),
|
|
6765
6757
|
o("div", {
|
|
6766
|
-
class:
|
|
6758
|
+
class: d(l.detailsClasses)
|
|
6767
6759
|
}, [
|
|
6768
6760
|
o("h1", {
|
|
6769
|
-
class:
|
|
6761
|
+
class: d(l.titleClasses)
|
|
6770
6762
|
}, [
|
|
6771
|
-
|
|
6763
|
+
h(e.$slots, "title", {}, () => [
|
|
6772
6764
|
N(p(l.errorTitle), 1)
|
|
6773
6765
|
])
|
|
6774
6766
|
], 2),
|
|
6775
6767
|
o("p", {
|
|
6776
|
-
class:
|
|
6768
|
+
class: d(l.messageClasses)
|
|
6777
6769
|
}, [
|
|
6778
|
-
|
|
6770
|
+
h(e.$slots, "message", {}, () => [
|
|
6779
6771
|
N(p(l.errorMessage), 1)
|
|
6780
6772
|
])
|
|
6781
6773
|
], 2),
|
|
6782
6774
|
t.errorCode ? (a(), r("div", {
|
|
6783
6775
|
key: 0,
|
|
6784
|
-
class:
|
|
6776
|
+
class: d(l.codeClasses)
|
|
6785
6777
|
}, " Error Code: " + p(t.errorCode), 3)) : f("", !0)
|
|
6786
6778
|
], 2),
|
|
6787
6779
|
e.$slots.actions || t.showDefaultActions ? (a(), r("div", {
|
|
6788
6780
|
key: 1,
|
|
6789
|
-
class:
|
|
6781
|
+
class: d(l.actionsClasses)
|
|
6790
6782
|
}, [
|
|
6791
|
-
|
|
6783
|
+
h(e.$slots, "actions", {}, () => [
|
|
6792
6784
|
o("div", xr, [
|
|
6793
|
-
t.showHomeButton ? (a(), M(
|
|
6785
|
+
t.showHomeButton ? (a(), M(c, {
|
|
6794
6786
|
key: 0,
|
|
6795
6787
|
href: t.homeUrl,
|
|
6796
6788
|
variant: "primary",
|
|
@@ -6801,7 +6793,7 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6801
6793
|
]),
|
|
6802
6794
|
_: 1
|
|
6803
6795
|
}, 8, ["href"])) : f("", !0),
|
|
6804
|
-
t.showBackButton ? (a(), M(
|
|
6796
|
+
t.showBackButton ? (a(), M(c, {
|
|
6805
6797
|
key: 1,
|
|
6806
6798
|
variant: "outline",
|
|
6807
6799
|
size: "lg",
|
|
@@ -6812,7 +6804,7 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6812
6804
|
]),
|
|
6813
6805
|
_: 1
|
|
6814
6806
|
}, 8, ["onClick"])) : f("", !0),
|
|
6815
|
-
t.showRetryButton ? (a(), M(
|
|
6807
|
+
t.showRetryButton ? (a(), M(c, {
|
|
6816
6808
|
key: 2,
|
|
6817
6809
|
variant: "ghost",
|
|
6818
6810
|
size: "lg",
|
|
@@ -6828,9 +6820,9 @@ function Cr(e, s, t, l, n, i) {
|
|
|
6828
6820
|
], 2)) : f("", !0),
|
|
6829
6821
|
e.$slots.help || t.helpText ? (a(), r("div", {
|
|
6830
6822
|
key: 2,
|
|
6831
|
-
class:
|
|
6823
|
+
class: d(l.helpClasses)
|
|
6832
6824
|
}, [
|
|
6833
|
-
|
|
6825
|
+
h(e.$slots, "help", {}, () => [
|
|
6834
6826
|
o("p", kr, [
|
|
6835
6827
|
N(p(t.helpText) + " ", 1),
|
|
6836
6828
|
t.supportUrl ? (a(), r("a", {
|
|
@@ -6854,21 +6846,21 @@ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
|
|
|
6854
6846
|
Icon: Y,
|
|
6855
6847
|
Image: ct,
|
|
6856
6848
|
Input: pe,
|
|
6857
|
-
Label:
|
|
6858
|
-
Link:
|
|
6849
|
+
Label: Ie,
|
|
6850
|
+
Link: bt,
|
|
6859
6851
|
Logo: yt,
|
|
6860
6852
|
Option: Le,
|
|
6861
6853
|
ProgressBar: wt,
|
|
6862
6854
|
Radio: St,
|
|
6863
6855
|
Select: we,
|
|
6864
|
-
Spinner:
|
|
6856
|
+
Spinner: je,
|
|
6865
6857
|
Switch: Vt,
|
|
6866
6858
|
Text: Tt,
|
|
6867
|
-
Textarea:
|
|
6868
|
-
Tooltip:
|
|
6869
|
-
Typography:
|
|
6859
|
+
Textarea: jt,
|
|
6860
|
+
Tooltip: It,
|
|
6861
|
+
Typography: he,
|
|
6870
6862
|
Alert: Rt,
|
|
6871
|
-
Breadcrumb:
|
|
6863
|
+
Breadcrumb: Ot,
|
|
6872
6864
|
ButtonGroup: Et,
|
|
6873
6865
|
Card: Wt,
|
|
6874
6866
|
CardHeader: Jt,
|
|
@@ -6892,10 +6884,10 @@ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
|
|
|
6892
6884
|
Toast: cs,
|
|
6893
6885
|
Search: Ss,
|
|
6894
6886
|
Slider: Ts,
|
|
6895
|
-
Stepper:
|
|
6887
|
+
Stepper: js,
|
|
6896
6888
|
StepperItem: Ps,
|
|
6897
6889
|
Tab: _s,
|
|
6898
|
-
TabPanel:
|
|
6890
|
+
TabPanel: Hs,
|
|
6899
6891
|
Accordion: Gs,
|
|
6900
6892
|
AccordionItem: Ks,
|
|
6901
6893
|
Calendar: el,
|
|
@@ -6907,10 +6899,10 @@ const $r = /* @__PURE__ */ Ne(pr, [["render", Cr]]), Be = {
|
|
|
6907
6899
|
DataTableFilters: Al,
|
|
6908
6900
|
DataTableToolBar: an,
|
|
6909
6901
|
Footer: un,
|
|
6910
|
-
Header:
|
|
6902
|
+
Header: hn,
|
|
6911
6903
|
Sidebar: $n,
|
|
6912
6904
|
Timeline: Sn,
|
|
6913
|
-
TimelineItem:
|
|
6905
|
+
TimelineItem: jn,
|
|
6914
6906
|
AuthLayout: or,
|
|
6915
6907
|
DefaultLayout: fr,
|
|
6916
6908
|
ErrorLayout: $r
|
|
@@ -6930,7 +6922,7 @@ export {
|
|
|
6930
6922
|
or as AuthLayout,
|
|
6931
6923
|
Ke as Avatar,
|
|
6932
6924
|
Ye as Badge,
|
|
6933
|
-
|
|
6925
|
+
Ot as Breadcrumb,
|
|
6934
6926
|
ee as Button,
|
|
6935
6927
|
Et as ButtonGroup,
|
|
6936
6928
|
el as Calendar,
|
|
@@ -6957,13 +6949,13 @@ export {
|
|
|
6957
6949
|
xa as FileUpload,
|
|
6958
6950
|
un as Footer,
|
|
6959
6951
|
za as FormField,
|
|
6960
|
-
|
|
6952
|
+
hn as Header,
|
|
6961
6953
|
Y as Icon,
|
|
6962
6954
|
ct as Image,
|
|
6963
6955
|
pe as Input,
|
|
6964
6956
|
Ta as InputGroup,
|
|
6965
|
-
|
|
6966
|
-
|
|
6957
|
+
Ie as Label,
|
|
6958
|
+
bt as Link,
|
|
6967
6959
|
Pa as ListItem,
|
|
6968
6960
|
yt as Logo,
|
|
6969
6961
|
Na as MenuItem,
|
|
@@ -6979,19 +6971,19 @@ export {
|
|
|
6979
6971
|
we as Select,
|
|
6980
6972
|
$n as Sidebar,
|
|
6981
6973
|
Ts as Slider,
|
|
6982
|
-
|
|
6983
|
-
|
|
6974
|
+
je as Spinner,
|
|
6975
|
+
js as Stepper,
|
|
6984
6976
|
Ps as StepperItem,
|
|
6985
6977
|
Vt as Switch,
|
|
6986
6978
|
_s as Tab,
|
|
6987
|
-
|
|
6979
|
+
Hs as TabPanel,
|
|
6988
6980
|
Tt as Text,
|
|
6989
|
-
|
|
6981
|
+
jt as Textarea,
|
|
6990
6982
|
Sn as Timeline,
|
|
6991
|
-
|
|
6983
|
+
jn as TimelineItem,
|
|
6992
6984
|
cs as Toast,
|
|
6993
|
-
|
|
6994
|
-
|
|
6985
|
+
It as Tooltip,
|
|
6986
|
+
he as Typography,
|
|
6995
6987
|
v as cn,
|
|
6996
6988
|
Vr as default,
|
|
6997
6989
|
Se as toast,
|