manolis-ui 0.10.2 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
- package/dist/manolis-ui.js +144 -134
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +179 -0
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as
|
|
1
|
+
import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as M, createCommentVNode as B, renderSlot as D, createTextVNode as ke, createElementVNode as s, Fragment as O, renderList as P, toDisplayString as x, ref as C, watch as q, h as me, onMounted as ee, withDirectives as H, createVNode as se, isRef as ze, vModelCheckbox as Ae, unref as R, provide as Pe, normalizeStyle as re, inject as Ee, useId as Le, defineAsyncComponent as ce, nextTick as pe, onBeforeUnmount as ge, withModifiers as Q, createBlock as ae, resolveDynamicComponent as ve, mergeProps as fe, withKeys as he, onUnmounted as $e, vModelSelect as Z, vModelText as oe, useSlots as Ue, Comment as Re, vShow as Ne } from "vue";
|
|
2
2
|
const je = ["disabled"], Fe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -65,7 +65,7 @@ const je = ["disabled"], Fe = {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
return (l, r) => (n(), a("button", {
|
|
68
|
-
class:
|
|
68
|
+
class: M([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": p.outlined },
|
|
71
71
|
{ "btn-active": p.active },
|
|
@@ -76,7 +76,7 @@ const je = ["disabled"], Fe = {
|
|
|
76
76
|
disabled: p.disabled
|
|
77
77
|
}, [
|
|
78
78
|
l.loading ? (n(), a("span", Fe)) : B("", !0),
|
|
79
|
-
|
|
79
|
+
D(l.$slots, "default", {}, () => [
|
|
80
80
|
r[0] || (r[0] = ke("Submit"))
|
|
81
81
|
])
|
|
82
82
|
], 10, je));
|
|
@@ -104,9 +104,9 @@ const je = ["disabled"], Fe = {
|
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = i;
|
|
106
106
|
return (o, l) => (n(), a("div", {
|
|
107
|
-
class:
|
|
107
|
+
class: M(["dropdown", p[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
D(o.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
@@ -116,9 +116,9 @@ const je = ["disabled"], Fe = {
|
|
|
116
116
|
(n(!0), a(O, null, P(o.items, (r) => (n(), a("li", null, [
|
|
117
117
|
s("a", {
|
|
118
118
|
href: r.link
|
|
119
|
-
},
|
|
119
|
+
}, x(r.text), 9, He)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
D(o.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
@@ -134,7 +134,7 @@ const je = ["disabled"], Fe = {
|
|
|
134
134
|
top: "modal-top",
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
|
-
}, t =
|
|
137
|
+
}, t = C(null), o = () => {
|
|
138
138
|
var r;
|
|
139
139
|
(r = t.value) == null || r.showModal();
|
|
140
140
|
}, l = () => {
|
|
@@ -152,25 +152,25 @@ const je = ["disabled"], Fe = {
|
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
153
|
onClick: o
|
|
154
154
|
}, [
|
|
155
|
-
|
|
155
|
+
D(r.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
b[0] || (b[0] = s("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : B("", !0),
|
|
159
159
|
s("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
161
|
ref: t,
|
|
162
|
-
class:
|
|
162
|
+
class: M(["modal", e[p.position]])
|
|
163
163
|
}, [
|
|
164
164
|
s("div", We, [
|
|
165
|
-
|
|
165
|
+
D(r.$slots, "default"),
|
|
166
166
|
s("div", Ke, [
|
|
167
|
-
|
|
167
|
+
D(r.$slots, "actions"),
|
|
168
168
|
s("form", {
|
|
169
169
|
method: "dialog",
|
|
170
170
|
onSubmit: l,
|
|
171
|
-
class:
|
|
171
|
+
class: M(r.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
D(r.$slots, "close-button", {}, () => [
|
|
174
174
|
b[1] || (b[1] = s("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
@@ -187,14 +187,14 @@ const je = ["disabled"], Fe = {
|
|
|
187
187
|
setup(i) {
|
|
188
188
|
const p = i;
|
|
189
189
|
return (e, t) => (n(), a("label", {
|
|
190
|
-
class:
|
|
190
|
+
class: M(["swap", p.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
t[0] || (t[0] = s("input", { type: "checkbox" }, null, -1)),
|
|
193
193
|
s("div", Ye, [
|
|
194
|
-
|
|
194
|
+
D(e.$slots, "on")
|
|
195
195
|
]),
|
|
196
196
|
s("div", Je, [
|
|
197
|
-
|
|
197
|
+
D(e.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -326,7 +326,7 @@ const lt = te("SunIcon", [
|
|
|
326
326
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
327
327
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
328
328
|
]), nt = (i, p) => {
|
|
329
|
-
const e =
|
|
329
|
+
const e = C(null);
|
|
330
330
|
return ee(() => {
|
|
331
331
|
if (typeof window < "u") {
|
|
332
332
|
const t = window.localStorage.getItem(i);
|
|
@@ -373,7 +373,7 @@ const lt = te("SunIcon", [
|
|
|
373
373
|
setup(i) {
|
|
374
374
|
const p = i;
|
|
375
375
|
return (e, t) => (n(!0), a(O, null, P(p.items, (o, l) => (n(), a("div", {
|
|
376
|
-
class:
|
|
376
|
+
class: M(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
377
377
|
key: l
|
|
378
378
|
}, [
|
|
379
379
|
s("input", {
|
|
@@ -381,7 +381,7 @@ const lt = te("SunIcon", [
|
|
|
381
381
|
name: e.name,
|
|
382
382
|
value: "true"
|
|
383
383
|
}, null, 8, st),
|
|
384
|
-
s("div", rt,
|
|
384
|
+
s("div", rt, x(o.title), 1),
|
|
385
385
|
s("div", it, [
|
|
386
386
|
s("span", {
|
|
387
387
|
innerHTML: o.content
|
|
@@ -398,18 +398,18 @@ const lt = te("SunIcon", [
|
|
|
398
398
|
fullyRounded: { type: Boolean, default: !1 }
|
|
399
399
|
},
|
|
400
400
|
setup(i) {
|
|
401
|
-
const p = i, e =
|
|
401
|
+
const p = i, e = C(p.onlineStatus);
|
|
402
402
|
return q(
|
|
403
403
|
() => p.onlineStatus,
|
|
404
404
|
(t) => {
|
|
405
405
|
t && (e.value = t);
|
|
406
406
|
}
|
|
407
407
|
), (t, o) => (n(), a("div", {
|
|
408
|
-
class:
|
|
408
|
+
class: M(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
|
|
409
409
|
}, [
|
|
410
410
|
t.image ? (n(), a("div", {
|
|
411
411
|
key: 0,
|
|
412
|
-
class:
|
|
412
|
+
class: M(["rounded", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
|
|
413
413
|
}, [
|
|
414
414
|
s("img", {
|
|
415
415
|
src: t.image,
|
|
@@ -417,9 +417,9 @@ const lt = te("SunIcon", [
|
|
|
417
417
|
}, null, 8, dt)
|
|
418
418
|
], 2)) : (n(), a("div", {
|
|
419
419
|
key: 1,
|
|
420
|
-
class:
|
|
420
|
+
class: M(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
|
|
421
421
|
}, [
|
|
422
|
-
s("p", ct,
|
|
422
|
+
s("p", ct, x(t.initials), 1)
|
|
423
423
|
], 2))
|
|
424
424
|
], 2));
|
|
425
425
|
}
|
|
@@ -448,9 +448,9 @@ const lt = te("SunIcon", [
|
|
|
448
448
|
error: "badge-error"
|
|
449
449
|
};
|
|
450
450
|
return (o, l) => (n(), a("span", {
|
|
451
|
-
class:
|
|
451
|
+
class: M(["badge", e[p.size], t[p.color], { "badge-outline": p.outline }])
|
|
452
452
|
}, [
|
|
453
|
-
|
|
453
|
+
D(o.$slots, "default")
|
|
454
454
|
], 2));
|
|
455
455
|
}
|
|
456
456
|
}), pt = ["src", "alt"], vt = {
|
|
@@ -477,41 +477,51 @@ const lt = te("SunIcon", [
|
|
|
477
477
|
class: { default: "" },
|
|
478
478
|
background: { default: "bg-base-100" },
|
|
479
479
|
color: { default: "" },
|
|
480
|
-
imgHeight: { default: "h-44" }
|
|
480
|
+
imgHeight: { default: "h-44" },
|
|
481
|
+
imgWidth: { default: "" },
|
|
482
|
+
horizontal: { type: Boolean, default: !1 }
|
|
481
483
|
},
|
|
482
484
|
setup(i) {
|
|
483
|
-
const p = i, e =
|
|
485
|
+
const p = i, e = C(p.outlined);
|
|
484
486
|
return q(
|
|
485
487
|
() => p.outlined,
|
|
486
488
|
(t) => {
|
|
487
489
|
e.value = t;
|
|
488
490
|
}
|
|
489
491
|
), (t, o) => (n(), a("div", {
|
|
490
|
-
class:
|
|
492
|
+
class: M(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
493
|
+
{ "border-4 border-primary": e.value },
|
|
494
|
+
t.color ?? "",
|
|
495
|
+
t.background,
|
|
496
|
+
{ "card-side": t.horizontal }
|
|
497
|
+
]])
|
|
491
498
|
}, [
|
|
492
|
-
s("figure",
|
|
499
|
+
s("figure", {
|
|
500
|
+
class: M([{ contents: t.horizontal }])
|
|
501
|
+
}, [
|
|
493
502
|
t.imgUrl || t.imgUrl && !t.loading ? (n(), a("img", {
|
|
494
503
|
key: 0,
|
|
495
504
|
src: t.imgUrl,
|
|
496
505
|
alt: t.alt,
|
|
497
|
-
class:
|
|
506
|
+
class: M(["rounded-sm object-cover", [
|
|
498
507
|
{
|
|
499
508
|
hidden: t.loading
|
|
500
509
|
},
|
|
501
|
-
t.imgHeight
|
|
510
|
+
!t.horizontal && t.imgHeight ? t.imgHeight : "h-full",
|
|
511
|
+
t.horizontal && t.imgWidth ? t.imgWidth : "w-full"
|
|
502
512
|
]])
|
|
503
513
|
}, null, 10, pt)) : B("", !0),
|
|
504
514
|
t.loading && t.imgUrl ? (n(), a("div", {
|
|
505
515
|
key: 1,
|
|
506
|
-
class:
|
|
516
|
+
class: M(["w-full skeleton", t.imgHeight])
|
|
507
517
|
}, null, 2)) : B("", !0)
|
|
508
|
-
]),
|
|
518
|
+
], 2),
|
|
509
519
|
t.loading ? B("", !0) : (n(), a("div", vt, [
|
|
510
|
-
t.title ? (n(), a("h2", ft,
|
|
511
|
-
|
|
512
|
-
t.description ? (n(), a("p", mt,
|
|
520
|
+
t.title ? (n(), a("h2", ft, x(t.title), 1)) : B("", !0),
|
|
521
|
+
D(t.$slots, "details"),
|
|
522
|
+
t.description ? (n(), a("p", mt, x(t.description), 1)) : B("", !0),
|
|
513
523
|
s("div", gt, [
|
|
514
|
-
|
|
524
|
+
D(t.$slots, "actions")
|
|
515
525
|
])
|
|
516
526
|
])),
|
|
517
527
|
t.loading ? (n(), a("div", ht, o[0] || (o[0] = [
|
|
@@ -567,7 +577,7 @@ const lt = te("SunIcon", [
|
|
|
567
577
|
}
|
|
568
578
|
},
|
|
569
579
|
setup(i, { expose: p }) {
|
|
570
|
-
const e = i, t =
|
|
580
|
+
const e = i, t = C(e.initialSlide), o = C(null), l = C(!1), r = C(0), b = E(() => ({
|
|
571
581
|
width: `calc((100% - ${e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0}px) / ${e.slidesPerView})`
|
|
572
582
|
}));
|
|
573
583
|
Pe(_e, b);
|
|
@@ -620,10 +630,10 @@ const lt = te("SunIcon", [
|
|
|
620
630
|
s("div", {
|
|
621
631
|
ref_key: "carouselContainer",
|
|
622
632
|
ref: o,
|
|
623
|
-
class:
|
|
633
|
+
class: M(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": i.sliderOrientation == "horizontal" }, { "carousel-vertical": i.sliderOrientation == "vertical" }]]),
|
|
624
634
|
style: re({ gap: `${i.gap}px` })
|
|
625
635
|
}, [
|
|
626
|
-
|
|
636
|
+
D(w.$slots, "default", {}, void 0, !0)
|
|
627
637
|
], 6),
|
|
628
638
|
i.showNavigationButtons ? (n(), a("div", yt, [
|
|
629
639
|
s("div", {
|
|
@@ -631,7 +641,7 @@ const lt = te("SunIcon", [
|
|
|
631
641
|
role: "button",
|
|
632
642
|
"aria-label": "Previous Slide"
|
|
633
643
|
}, [
|
|
634
|
-
|
|
644
|
+
D(w.$slots, "prevButton", {}, () => [
|
|
635
645
|
$[0] || ($[0] = s("button", {
|
|
636
646
|
class: "btn btn-circle",
|
|
637
647
|
tabindex: "-1"
|
|
@@ -643,7 +653,7 @@ const lt = te("SunIcon", [
|
|
|
643
653
|
role: "button",
|
|
644
654
|
"aria-label": "Next Slide"
|
|
645
655
|
}, [
|
|
646
|
-
|
|
656
|
+
D(w.$slots, "nextButton", {}, () => [
|
|
647
657
|
$[1] || ($[1] = s("button", {
|
|
648
658
|
class: "btn btn-circle",
|
|
649
659
|
tabindex: "-1"
|
|
@@ -655,7 +665,7 @@ const lt = te("SunIcon", [
|
|
|
655
665
|
(n(!0), a(O, null, P(r.value, (I, z) => (n(), a("button", {
|
|
656
666
|
key: `dot-${z}`,
|
|
657
667
|
onClick: (j) => N(z),
|
|
658
|
-
class:
|
|
668
|
+
class: M(["btn btn-circle btn-xs", { "btn-active": z === t.value }]),
|
|
659
669
|
"aria-label": `Go to slide ${z + 1}`
|
|
660
670
|
}, null, 10, kt))), 128))
|
|
661
671
|
])) : B("", !0)
|
|
@@ -669,15 +679,15 @@ const lt = te("SunIcon", [
|
|
|
669
679
|
}, Sn = /* @__PURE__ */ le($t, [["__scopeId", "data-v-db55a6a5"]]), _t = /* @__PURE__ */ L({
|
|
670
680
|
__name: "carouselItem",
|
|
671
681
|
setup(i) {
|
|
672
|
-
const p = Ee(_e,
|
|
682
|
+
const p = Ee(_e, C({}));
|
|
673
683
|
return (e, t) => (n(), a("div", {
|
|
674
684
|
class: "w-full h-full carousel-item",
|
|
675
685
|
style: re(R(p))
|
|
676
686
|
}, [
|
|
677
|
-
|
|
687
|
+
D(e.$slots, "default", {}, void 0, !0)
|
|
678
688
|
], 4));
|
|
679
689
|
}
|
|
680
|
-
}),
|
|
690
|
+
}), Cn = /* @__PURE__ */ le(_t, [["__scopeId", "data-v-507384bc"]]), St = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Ct = ["onClick"], xt = {
|
|
681
691
|
key: 0,
|
|
682
692
|
class: "inline-component-wrapper flex flex-grow justify-center items-center w-full h-full"
|
|
683
693
|
}, It = {
|
|
@@ -705,7 +715,7 @@ const lt = te("SunIcon", [
|
|
|
705
715
|
},
|
|
706
716
|
emits: ["search", "update:search-data"],
|
|
707
717
|
setup(i, { emit: p }) {
|
|
708
|
-
const e = i, t = p, o = e.id ?? `advancedSearch-${Le()}`, l =
|
|
718
|
+
const e = i, t = p, o = e.id ?? `advancedSearch-${Le()}`, l = C(null), r = C(null), b = {
|
|
709
719
|
datetime: ce(() => Promise.resolve().then(() => pl)),
|
|
710
720
|
"standard-select": ce(() => import("./select-Cz4vf_YE.js")),
|
|
711
721
|
// Add other components here when you create them:
|
|
@@ -713,11 +723,11 @@ const lt = te("SunIcon", [
|
|
|
713
723
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
714
724
|
"custom-text": ce(() => import("./inputField-BxT95oyM.js"))
|
|
715
725
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
716
|
-
}, d =
|
|
726
|
+
}, d = C({}), m = C({
|
|
717
727
|
left: "0px",
|
|
718
728
|
top: "0px",
|
|
719
729
|
transform: "translateX(0%)"
|
|
720
|
-
}), k =
|
|
730
|
+
}), k = C(null), U = (v) => {
|
|
721
731
|
var y;
|
|
722
732
|
if (v.value === void 0 || v.value === null || v.value === "")
|
|
723
733
|
return "";
|
|
@@ -901,7 +911,7 @@ const lt = te("SunIcon", [
|
|
|
901
911
|
return n(), a("button", {
|
|
902
912
|
key: `${u.name}-${A}`,
|
|
903
913
|
onClick: Q((X) => z(u), ["stop"]),
|
|
904
|
-
class:
|
|
914
|
+
class: M([{
|
|
905
915
|
"tab-active": ((_ = l.value) == null ? void 0 : _.name) === u.name,
|
|
906
916
|
"tab-active-inline": ((V = l.value) == null ? void 0 : V.name) === u.name && ((K = l.value) == null ? void 0 : K.displayMode) === "inline"
|
|
907
917
|
// Add new class
|
|
@@ -909,7 +919,7 @@ const lt = te("SunIcon", [
|
|
|
909
919
|
ref_for: !0,
|
|
910
920
|
ref: (X) => d.value[u.name] = X
|
|
911
921
|
}, [
|
|
912
|
-
((J = l.value) == null ? void 0 : J.name) === u.name && ((ie = l.value) == null ? void 0 : ie.displayMode) === "inline" ? (n(), a("div",
|
|
922
|
+
((J = l.value) == null ? void 0 : J.name) === u.name && ((ie = l.value) == null ? void 0 : ie.displayMode) === "inline" ? (n(), a("div", xt, [
|
|
913
923
|
(n(), ae(ve(b[l.value.type]), fe({ ref_for: !0 }, l.value.props || {}, {
|
|
914
924
|
modelValue: l.value.value,
|
|
915
925
|
onUpdated: y[0] || (y[0] = (X) => f(X)),
|
|
@@ -921,10 +931,10 @@ const lt = te("SunIcon", [
|
|
|
921
931
|
ref: r
|
|
922
932
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
923
933
|
])) : (n(), a("div", It, [
|
|
924
|
-
s("p", Mt,
|
|
925
|
-
u.value !== void 0 && u.value !== null && u.value !== "" ? (n(), a("p", Dt,
|
|
934
|
+
s("p", Mt, x(u.name), 1),
|
|
935
|
+
u.value !== void 0 && u.value !== null && u.value !== "" ? (n(), a("p", Dt, x(U(u)), 1)) : (n(), a("p", Tt, x(u.description), 1))
|
|
926
936
|
]))
|
|
927
|
-
], 10,
|
|
937
|
+
], 10, Ct);
|
|
928
938
|
}), 128))
|
|
929
939
|
]),
|
|
930
940
|
l.value && l.value.displayMode === "popup" ? (n(), a("div", {
|
|
@@ -968,8 +978,8 @@ const lt = te("SunIcon", [
|
|
|
968
978
|
class: "modal"
|
|
969
979
|
}, [
|
|
970
980
|
s("div", Ot, [
|
|
971
|
-
|
|
972
|
-
s("h3", zt,
|
|
981
|
+
D(v.$slots, "additionalForMobile", {}, () => [
|
|
982
|
+
s("h3", zt, x(v.currentCategory), 1)
|
|
973
983
|
], !0),
|
|
974
984
|
(n(!0), a(O, null, P(((T = e.searchOptions.find(
|
|
975
985
|
(u) => u.category === e.currentCategory
|
|
@@ -983,8 +993,8 @@ const lt = te("SunIcon", [
|
|
|
983
993
|
checked: A === 0
|
|
984
994
|
}, null, 8, At),
|
|
985
995
|
s("div", Pt, [
|
|
986
|
-
s("div", null,
|
|
987
|
-
u.value !== void 0 && u.value !== null && u.value !== "" ? (n(), a("div", Et,
|
|
996
|
+
s("div", null, x(u.name), 1),
|
|
997
|
+
u.value !== void 0 && u.value !== null && u.value !== "" ? (n(), a("div", Et, x(U(u)), 1)) : (n(), a("div", Lt, x(u.description), 1))
|
|
988
998
|
]),
|
|
989
999
|
s("div", Ut, [
|
|
990
1000
|
y[7] || (y[7] = s("br", null, null, -1)),
|
|
@@ -1008,7 +1018,7 @@ const lt = te("SunIcon", [
|
|
|
1008
1018
|
], 64);
|
|
1009
1019
|
};
|
|
1010
1020
|
}
|
|
1011
|
-
}),
|
|
1021
|
+
}), xn = /* @__PURE__ */ le(Rt, [["__scopeId", "data-v-2a095d4c"]]), Nt = ["placeholder", "value", "id", "disabled"], jt = ["disabled"], Ft = ["id"], qt = {
|
|
1012
1022
|
key: 0,
|
|
1013
1023
|
class: "flex justify-between items-center place-content-center mb-4"
|
|
1014
1024
|
}, Ht = ["disabled"], Wt = ["value"], Kt = ["value"], Yt = {
|
|
@@ -1075,9 +1085,9 @@ const lt = te("SunIcon", [
|
|
|
1075
1085
|
g ? (l.value = { start: null, end: null }, r.value = { start: null, end: null }) : (l.value = null, r.value = null);
|
|
1076
1086
|
}
|
|
1077
1087
|
);
|
|
1078
|
-
const t = p, o =
|
|
1088
|
+
const t = p, o = C(!1), l = C(e.range ? { start: null, end: null } : null), r = C(e.range ? { start: null, end: null } : null), b = C(
|
|
1079
1089
|
(/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })
|
|
1080
|
-
), d =
|
|
1090
|
+
), d = C((/* @__PURE__ */ new Date()).getFullYear()), m = C(e.range ? { start: 0, end: 0 } : 0), k = C(e.range ? { start: 0, end: 0 } : 0), U = C(null), N = E(() => `${e.id}-input`), f = E(() => `${e.id}-popup`), w = E(
|
|
1081
1091
|
() => e.mode === "date" || e.mode === "datetime"
|
|
1082
1092
|
), $ = E(
|
|
1083
1093
|
() => e.mode === "time" || e.mode === "datetime"
|
|
@@ -1135,9 +1145,9 @@ const lt = te("SunIcon", [
|
|
|
1135
1145
|
return `${g} ${h}`.trim();
|
|
1136
1146
|
}), ie = () => o.value = !o.value, X = () => {
|
|
1137
1147
|
F(), Se();
|
|
1138
|
-
}, Se = () => o.value = !1,
|
|
1148
|
+
}, Se = () => o.value = !1, Ce = () => {
|
|
1139
1149
|
l.value = e.range ? { start: null, end: null } : null, r.value = e.range ? { start: null, end: null } : null, F();
|
|
1140
|
-
},
|
|
1150
|
+
}, xe = (g) => {
|
|
1141
1151
|
e.range ? l.value.start && l.value.end ? l.value = { start: g, end: null } : l.value.start ? l.value.end = g : l.value.start = g : l.value = g, F();
|
|
1142
1152
|
}, Ie = (g) => (g = _(g), e.range ? l.value.start && V(l.value.start) && g.getTime() === l.value.start.getTime() || l.value.end && V(l.value.end) && g.getTime() === l.value.end.getTime() : V(l.value) && g.getTime() === l.value.getTime()), Me = (g) => {
|
|
1143
1153
|
g = _(g);
|
|
@@ -1192,7 +1202,7 @@ const lt = te("SunIcon", [
|
|
|
1192
1202
|
class: "flex items-center gap-2 cursor-pointer",
|
|
1193
1203
|
onClick: h[0] || (h[0] = (c) => e.disabled ? null : ie())
|
|
1194
1204
|
}, [
|
|
1195
|
-
i.popup ?
|
|
1205
|
+
i.popup ? D(g.$slots, "default", { key: 0 }, () => [
|
|
1196
1206
|
s("input", {
|
|
1197
1207
|
type: "text",
|
|
1198
1208
|
class: "input-bordered w-full cursor-pointer input",
|
|
@@ -1212,7 +1222,7 @@ const lt = te("SunIcon", [
|
|
|
1212
1222
|
]),
|
|
1213
1223
|
o.value || !i.popup ? (n(), a("div", {
|
|
1214
1224
|
key: 0,
|
|
1215
|
-
class:
|
|
1225
|
+
class: M(["z-50 bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: i.popup }]]),
|
|
1216
1226
|
id: f.value
|
|
1217
1227
|
}, [
|
|
1218
1228
|
w.value ? (n(), a("div", qt, [
|
|
@@ -1244,7 +1254,7 @@ const lt = te("SunIcon", [
|
|
|
1244
1254
|
(n(), a(O, null, P(T, (c, G) => s("option", {
|
|
1245
1255
|
key: G,
|
|
1246
1256
|
value: c
|
|
1247
|
-
},
|
|
1257
|
+
}, x(c), 9, Wt)), 64))
|
|
1248
1258
|
], 544), [
|
|
1249
1259
|
[Z, b.value]
|
|
1250
1260
|
]),
|
|
@@ -1256,7 +1266,7 @@ const lt = te("SunIcon", [
|
|
|
1256
1266
|
(n(!0), a(O, null, P(u.value, (c) => (n(), a("option", {
|
|
1257
1267
|
key: c,
|
|
1258
1268
|
value: c
|
|
1259
|
-
},
|
|
1269
|
+
}, x(c), 9, Kt))), 128))
|
|
1260
1270
|
], 544), [
|
|
1261
1271
|
[Z, d.value]
|
|
1262
1272
|
]),
|
|
@@ -1284,22 +1294,22 @@ const lt = te("SunIcon", [
|
|
|
1284
1294
|
(n(), a(O, null, P(z, (c) => s("div", {
|
|
1285
1295
|
key: c,
|
|
1286
1296
|
class: "text-center"
|
|
1287
|
-
},
|
|
1297
|
+
}, x(c), 1)), 64)),
|
|
1288
1298
|
(n(!0), a(O, null, P(Y.value, (c) => (n(), a("div", {
|
|
1289
1299
|
key: c,
|
|
1290
1300
|
class: "text-center"
|
|
1291
1301
|
}))), 128)),
|
|
1292
1302
|
(n(!0), a(O, null, P(W.value, (c) => (n(), a("div", {
|
|
1293
1303
|
key: c,
|
|
1294
|
-
class:
|
|
1304
|
+
class: M(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
1295
1305
|
"bg-primary text-primary-content": Ie(c),
|
|
1296
1306
|
today: Me(c),
|
|
1297
1307
|
"range-start bg-primary text-primary-content": De(c),
|
|
1298
1308
|
"range-end bg-primary text-primary-content": Te(c),
|
|
1299
1309
|
"in-range bg-primary/20 hover:bg-primary/10": Ve(c)
|
|
1300
1310
|
}]),
|
|
1301
|
-
onClick: (G) =>
|
|
1302
|
-
},
|
|
1311
|
+
onClick: (G) => xe(c)
|
|
1312
|
+
}, x(c.getDate()), 11, Jt))), 128))
|
|
1303
1313
|
])) : B("", !0),
|
|
1304
1314
|
$.value ? (n(), a("div", Xt, [
|
|
1305
1315
|
e.range ? B("", !0) : (n(), a("h3", Gt, "Select Time")),
|
|
@@ -1323,7 +1333,7 @@ const lt = te("SunIcon", [
|
|
|
1323
1333
|
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1324
1334
|
key: c,
|
|
1325
1335
|
value: c
|
|
1326
|
-
},
|
|
1336
|
+
}, x(c.toString().padStart(2, "0")), 9, al))), 128))
|
|
1327
1337
|
], 544), [
|
|
1328
1338
|
[
|
|
1329
1339
|
Z,
|
|
@@ -1340,7 +1350,7 @@ const lt = te("SunIcon", [
|
|
|
1340
1350
|
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1341
1351
|
key: c,
|
|
1342
1352
|
value: c
|
|
1343
|
-
},
|
|
1353
|
+
}, x(c.toString().padStart(2, "0")), 9, ol))), 128))
|
|
1344
1354
|
], 544), [
|
|
1345
1355
|
[
|
|
1346
1356
|
Z,
|
|
@@ -1370,7 +1380,7 @@ const lt = te("SunIcon", [
|
|
|
1370
1380
|
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1371
1381
|
key: c,
|
|
1372
1382
|
value: c
|
|
1373
|
-
},
|
|
1383
|
+
}, x(c.toString().padStart(2, "0")), 9, rl))), 128))
|
|
1374
1384
|
], 544), [
|
|
1375
1385
|
[
|
|
1376
1386
|
Z,
|
|
@@ -1387,7 +1397,7 @@ const lt = te("SunIcon", [
|
|
|
1387
1397
|
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1388
1398
|
key: c,
|
|
1389
1399
|
value: c
|
|
1390
|
-
},
|
|
1400
|
+
}, x(c.toString().padStart(2, "0")), 9, il))), 128))
|
|
1391
1401
|
], 544), [
|
|
1392
1402
|
[
|
|
1393
1403
|
Z,
|
|
@@ -1416,7 +1426,7 @@ const lt = te("SunIcon", [
|
|
|
1416
1426
|
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1417
1427
|
key: c,
|
|
1418
1428
|
value: c
|
|
1419
|
-
},
|
|
1429
|
+
}, x(c.toString().padStart(2, "0")), 9, el))), 128))
|
|
1420
1430
|
], 544), [
|
|
1421
1431
|
[
|
|
1422
1432
|
Z,
|
|
@@ -1433,7 +1443,7 @@ const lt = te("SunIcon", [
|
|
|
1433
1443
|
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1434
1444
|
key: c,
|
|
1435
1445
|
value: c
|
|
1436
|
-
},
|
|
1446
|
+
}, x(c.toString().padStart(2, "0")), 9, tl))), 128))
|
|
1437
1447
|
], 544), [
|
|
1438
1448
|
[
|
|
1439
1449
|
Z,
|
|
@@ -1447,8 +1457,8 @@ const lt = te("SunIcon", [
|
|
|
1447
1457
|
])) : B("", !0),
|
|
1448
1458
|
s("div", ul, [
|
|
1449
1459
|
s("button", {
|
|
1450
|
-
class:
|
|
1451
|
-
onClick:
|
|
1460
|
+
class: M(["btn btn-secondary", i.popup ? "w-fit" : "w-full"]),
|
|
1461
|
+
onClick: Ce
|
|
1452
1462
|
}, " Clear ", 2),
|
|
1453
1463
|
i.popup ? (n(), a("button", {
|
|
1454
1464
|
key: 0,
|
|
@@ -1475,7 +1485,7 @@ const lt = te("SunIcon", [
|
|
|
1475
1485
|
gap: { default: 0 }
|
|
1476
1486
|
},
|
|
1477
1487
|
setup(i) {
|
|
1478
|
-
const p = i, e =
|
|
1488
|
+
const p = i, e = C(p.initialRating);
|
|
1479
1489
|
q(
|
|
1480
1490
|
() => p.initialRating,
|
|
1481
1491
|
(o) => {
|
|
@@ -1486,7 +1496,7 @@ const lt = te("SunIcon", [
|
|
|
1486
1496
|
e.value = o;
|
|
1487
1497
|
};
|
|
1488
1498
|
return (o, l) => (n(), a("div", {
|
|
1489
|
-
class:
|
|
1499
|
+
class: M(["rating", [
|
|
1490
1500
|
`rating-${p.size}`,
|
|
1491
1501
|
{ "rating-half": o.halfStars },
|
|
1492
1502
|
{ "pointer-events-none": !o.isInteractive }
|
|
@@ -1498,7 +1508,7 @@ const lt = te("SunIcon", [
|
|
|
1498
1508
|
value: o.halfStars ? r * 0.5 : r,
|
|
1499
1509
|
checked: e.value === (o.halfStars ? r * 0.5 : r),
|
|
1500
1510
|
onChange: (b) => o.isInteractive ? t(o.halfStars ? r * 0.5 : r) : null,
|
|
1501
|
-
class:
|
|
1511
|
+
class: M(["mask", [
|
|
1502
1512
|
{
|
|
1503
1513
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1504
1514
|
"mask-half-1": o.halfStars && r % 2 !== 0,
|
|
@@ -1538,7 +1548,7 @@ const lt = te("SunIcon", [
|
|
|
1538
1548
|
},
|
|
1539
1549
|
emits: ["update:modelValue"],
|
|
1540
1550
|
setup(i, { emit: p }) {
|
|
1541
|
-
const e = i, t = p, o =
|
|
1551
|
+
const e = i, t = p, o = C([...e.modelValue]), l = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, r = C(null), b = C(""), d = E(() => l < 0 || o.value.length < l), m = () => {
|
|
1542
1552
|
const f = b.value.trim();
|
|
1543
1553
|
f && !o.value.includes(f) && (o.value.push(f), t("update:modelValue", o.value), b.value = "");
|
|
1544
1554
|
}, k = (f) => {
|
|
@@ -1551,9 +1561,9 @@ const lt = te("SunIcon", [
|
|
|
1551
1561
|
return q(() => e.modelValue, (f) => {
|
|
1552
1562
|
o.value = [...f];
|
|
1553
1563
|
}), (f, w) => (n(), a("div", {
|
|
1554
|
-
class:
|
|
1564
|
+
class: M(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", f.$props.class])
|
|
1555
1565
|
}, [
|
|
1556
|
-
(n(!0), a(O, null, P(o.value, ($) =>
|
|
1566
|
+
(n(!0), a(O, null, P(o.value, ($) => D(f.$slots, "tag", {
|
|
1557
1567
|
key: $,
|
|
1558
1568
|
tag: $
|
|
1559
1569
|
}, () => [
|
|
@@ -1563,10 +1573,10 @@ const lt = te("SunIcon", [
|
|
|
1563
1573
|
onClick: (I) => k($),
|
|
1564
1574
|
"aria-label": "Remove tag"
|
|
1565
1575
|
}, "X", 8, ml),
|
|
1566
|
-
s("span", gl,
|
|
1576
|
+
s("span", gl, x($), 1)
|
|
1567
1577
|
])
|
|
1568
1578
|
])), 128)),
|
|
1569
|
-
|
|
1579
|
+
D(f.$slots, "input", { showInput: d.value }, () => [
|
|
1570
1580
|
d.value ? H((n(), a("input", {
|
|
1571
1581
|
key: 0,
|
|
1572
1582
|
ref_key: "inputRef",
|
|
@@ -1602,7 +1612,7 @@ const lt = te("SunIcon", [
|
|
|
1602
1612
|
emits: ["update:modelValue"],
|
|
1603
1613
|
setup(i, { expose: p, emit: e }) {
|
|
1604
1614
|
console.log(i.placeholder);
|
|
1605
|
-
const o = e, l =
|
|
1615
|
+
const o = e, l = C(null), r = (d) => {
|
|
1606
1616
|
const m = d.target;
|
|
1607
1617
|
o("update:modelValue", m.value);
|
|
1608
1618
|
};
|
|
@@ -1615,7 +1625,7 @@ const lt = te("SunIcon", [
|
|
|
1615
1625
|
// e.g., the current value: modelValue
|
|
1616
1626
|
}), (d, m) => (n(), a("div", bl, [
|
|
1617
1627
|
d.label ? (n(), a("label", yl, [
|
|
1618
|
-
s("span", wl,
|
|
1628
|
+
s("span", wl, x(d.label), 1)
|
|
1619
1629
|
])) : B("", !0),
|
|
1620
1630
|
s("select", {
|
|
1621
1631
|
ref_key: "selectElement",
|
|
@@ -1624,18 +1634,18 @@ const lt = te("SunIcon", [
|
|
|
1624
1634
|
value: d.modelValue,
|
|
1625
1635
|
onChange: r
|
|
1626
1636
|
}, [
|
|
1627
|
-
d.placeholder ? (n(), a("option", $l,
|
|
1637
|
+
d.placeholder ? (n(), a("option", $l, x(d.placeholder), 1)) : B("", !0),
|
|
1628
1638
|
(n(!0), a(O, null, P(d.options, (k) => (n(), a("option", {
|
|
1629
1639
|
key: k.value,
|
|
1630
1640
|
value: k.value
|
|
1631
|
-
},
|
|
1641
|
+
}, x(k.text), 9, _l))), 128))
|
|
1632
1642
|
], 40, kl)
|
|
1633
1643
|
]));
|
|
1634
1644
|
}
|
|
1635
1645
|
}), Sl = {
|
|
1636
1646
|
key: 0,
|
|
1637
1647
|
class: "label"
|
|
1638
|
-
},
|
|
1648
|
+
}, Cl = { class: "label-text" }, xl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Il = ["placeholder", "disabled"], Ml = {
|
|
1639
1649
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1640
1650
|
role: "listbox"
|
|
1641
1651
|
}, Dl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Tl = ["onMousedown", "id", "aria-selected"], Tn = {
|
|
@@ -1672,7 +1682,7 @@ const lt = te("SunIcon", [
|
|
|
1672
1682
|
const t = i, o = e, l = Ue(), r = E(() => {
|
|
1673
1683
|
const A = (l.default ? l.default() : []).filter((_) => _.type !== Re);
|
|
1674
1684
|
return console.log("hasDefaultSlotContent computed:", A.length > 0), A.length > 0;
|
|
1675
|
-
}), b =
|
|
1685
|
+
}), b = C(""), d = C(null), m = C(!1), k = C(null), U = C(null), N = C(null), f = C(null), w = () => {
|
|
1676
1686
|
m.value = !t.disabled;
|
|
1677
1687
|
}, $ = () => {
|
|
1678
1688
|
m.value = !1, f.value = null, r.value || (d.value && b.value !== d.value.text ? b.value = d.value.text : d.value || (b.value = ""));
|
|
@@ -1778,10 +1788,10 @@ const lt = te("SunIcon", [
|
|
|
1778
1788
|
ref: U
|
|
1779
1789
|
}, [
|
|
1780
1790
|
i.label ? (n(), a("label", Sl, [
|
|
1781
|
-
s("span",
|
|
1791
|
+
s("span", Cl, x(i.label), 1)
|
|
1782
1792
|
])) : B("", !0),
|
|
1783
1793
|
s("div", {
|
|
1784
|
-
class:
|
|
1794
|
+
class: M(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !r.value, select: !r.value }]),
|
|
1785
1795
|
style: re(
|
|
1786
1796
|
d.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1787
1797
|
),
|
|
@@ -1800,7 +1810,7 @@ const lt = te("SunIcon", [
|
|
|
1800
1810
|
ref_key: "activatorWrapper",
|
|
1801
1811
|
ref: N
|
|
1802
1812
|
}, [
|
|
1803
|
-
|
|
1813
|
+
D(u.$slots, "default", {}, () => [
|
|
1804
1814
|
r.value ? B("", !0) : H((n(), a("input", {
|
|
1805
1815
|
key: 0,
|
|
1806
1816
|
type: "text",
|
|
@@ -1825,10 +1835,10 @@ const lt = te("SunIcon", [
|
|
|
1825
1835
|
})) : B("", !0),
|
|
1826
1836
|
r.value && !d.value ? (n(), ae(R(Qe), {
|
|
1827
1837
|
key: 1,
|
|
1828
|
-
class:
|
|
1838
|
+
class: M([{ "rotate-180": m.value }, "mx-2"]),
|
|
1829
1839
|
size: 20
|
|
1830
1840
|
}, null, 8, ["class"])) : B("", !0)
|
|
1831
|
-
], 46,
|
|
1841
|
+
], 46, xl),
|
|
1832
1842
|
H(s("div", Ml, [
|
|
1833
1843
|
s("ul", Dl, [
|
|
1834
1844
|
(n(!0), a(O, null, P(z.value, (_, V) => (n(), a("li", {
|
|
@@ -1839,7 +1849,7 @@ const lt = te("SunIcon", [
|
|
|
1839
1849
|
role: "option",
|
|
1840
1850
|
"aria-selected": d.value && d.value.value === _.value
|
|
1841
1851
|
}, [
|
|
1842
|
-
s("a", null,
|
|
1852
|
+
s("a", null, x(_.text), 1)
|
|
1843
1853
|
], 40, Tl))), 128))
|
|
1844
1854
|
])
|
|
1845
1855
|
], 512), [
|
|
@@ -1873,7 +1883,7 @@ const lt = te("SunIcon", [
|
|
|
1873
1883
|
},
|
|
1874
1884
|
emits: ["update:modelValue", "validate"],
|
|
1875
1885
|
setup(i, { expose: p, emit: e }) {
|
|
1876
|
-
const t = i, o = e, l =
|
|
1886
|
+
const t = i, o = e, l = C(null), r = C(!1), b = C(""), d = E(() => {
|
|
1877
1887
|
var I, z, j, W;
|
|
1878
1888
|
let f = !0, w = "";
|
|
1879
1889
|
const $ = t.modelValue;
|
|
@@ -1899,16 +1909,16 @@ const lt = te("SunIcon", [
|
|
|
1899
1909
|
errorMessage: b
|
|
1900
1910
|
}), (f, w) => (n(), a("div", Vl, [
|
|
1901
1911
|
f.label ? (n(), a("label", Bl, [
|
|
1902
|
-
s("span", Ol,
|
|
1912
|
+
s("span", Ol, x(f.label), 1)
|
|
1903
1913
|
])) : B("", !0),
|
|
1904
|
-
|
|
1914
|
+
D(f.$slots, "default"),
|
|
1905
1915
|
s("input", {
|
|
1906
1916
|
ref_key: "inputElement",
|
|
1907
1917
|
ref: l,
|
|
1908
1918
|
type: f.type,
|
|
1909
1919
|
placeholder: f.placeholder,
|
|
1910
1920
|
disabled: t.disabled,
|
|
1911
|
-
class:
|
|
1921
|
+
class: M(["input-bordered rounded-md w-full input validator", [
|
|
1912
1922
|
{
|
|
1913
1923
|
// Size classes - Apply based on size prop
|
|
1914
1924
|
"input-xs": f.size === "xs",
|
|
@@ -1940,9 +1950,9 @@ const lt = te("SunIcon", [
|
|
|
1940
1950
|
onBlur: U
|
|
1941
1951
|
}, null, 42, zl),
|
|
1942
1952
|
m.value ? (n(), a("div", Al, [
|
|
1943
|
-
s("span", Pl,
|
|
1953
|
+
s("span", Pl, x(b.value), 1)
|
|
1944
1954
|
])) : d.value && r.value && f.successMessage ? (n(), a("div", El, [
|
|
1945
|
-
s("span", Ll,
|
|
1955
|
+
s("span", Ll, x(f.successMessage), 1)
|
|
1946
1956
|
])) : B("", !0)
|
|
1947
1957
|
]));
|
|
1948
1958
|
}
|
|
@@ -1955,7 +1965,7 @@ const lt = te("SunIcon", [
|
|
|
1955
1965
|
color: { default: "primary" }
|
|
1956
1966
|
},
|
|
1957
1967
|
setup(i) {
|
|
1958
|
-
const p = i, e =
|
|
1968
|
+
const p = i, e = C(p.loading);
|
|
1959
1969
|
return q(
|
|
1960
1970
|
() => p.loading,
|
|
1961
1971
|
(t) => {
|
|
@@ -1963,7 +1973,7 @@ const lt = te("SunIcon", [
|
|
|
1963
1973
|
}
|
|
1964
1974
|
), (t, o) => e.value ? (n(), a("span", {
|
|
1965
1975
|
key: 0,
|
|
1966
|
-
class:
|
|
1976
|
+
class: M(["loading", [
|
|
1967
1977
|
{ "loading-xs": t.size === "xs" },
|
|
1968
1978
|
{ "loading-sm": t.size === "sm" },
|
|
1969
1979
|
{ "loading-md": t.size === "md" },
|
|
@@ -2005,29 +2015,29 @@ const lt = te("SunIcon", [
|
|
|
2005
2015
|
setup(i) {
|
|
2006
2016
|
const p = i;
|
|
2007
2017
|
return (e, t) => (n(), a("div", {
|
|
2008
|
-
class:
|
|
2018
|
+
class: M(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2009
2019
|
}, [
|
|
2010
2020
|
s("footer", Ul, [
|
|
2011
2021
|
(n(!0), a(O, null, P(p.items, (o) => (n(), a("nav", {
|
|
2012
|
-
class:
|
|
2022
|
+
class: M([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2013
2023
|
}, [
|
|
2014
|
-
s("h6", Rl,
|
|
2024
|
+
s("h6", Rl, x(o.title), 1),
|
|
2015
2025
|
(n(!0), a(O, null, P(o.items, (l) => (n(), a("a", {
|
|
2016
2026
|
class: "link link-hover",
|
|
2017
2027
|
href: l.link
|
|
2018
|
-
},
|
|
2028
|
+
}, x(l.text), 9, Nl))), 256))
|
|
2019
2029
|
], 2))), 256)),
|
|
2020
2030
|
e.collapseOnMobile ? (n(), a("nav", jl, [
|
|
2021
2031
|
(n(!0), a(O, null, P(p.items, (o) => (n(), a("ul", Fl, [
|
|
2022
2032
|
s("div", ql, [
|
|
2023
|
-
s("div", Hl,
|
|
2033
|
+
s("div", Hl, x(o.title), 1),
|
|
2024
2034
|
s("div", Wl, [
|
|
2025
2035
|
s("ul", Kl, [
|
|
2026
2036
|
(n(!0), a(O, null, P(o.items, (l) => (n(), a("li", Yl, [
|
|
2027
2037
|
s("a", {
|
|
2028
2038
|
class: "w-full font-medium link link-hover",
|
|
2029
2039
|
href: l.link
|
|
2030
|
-
},
|
|
2040
|
+
}, x(l.text), 9, Jl)
|
|
2031
2041
|
]))), 256))
|
|
2032
2042
|
])
|
|
2033
2043
|
])
|
|
@@ -2035,7 +2045,7 @@ const lt = te("SunIcon", [
|
|
|
2035
2045
|
]))), 256))
|
|
2036
2046
|
])) : B("", !0),
|
|
2037
2047
|
s("aside", Xl, [
|
|
2038
|
-
|
|
2048
|
+
D(e.$slots, "default")
|
|
2039
2049
|
])
|
|
2040
2050
|
])
|
|
2041
2051
|
], 2));
|
|
@@ -2046,14 +2056,14 @@ function tn(i, p) {
|
|
|
2046
2056
|
s("div", Ql, [
|
|
2047
2057
|
s("div", null, [
|
|
2048
2058
|
s("h1", en, [
|
|
2049
|
-
|
|
2059
|
+
D(i.$slots, "title", {}, () => [
|
|
2050
2060
|
p[0] || (p[0] = ke("hero title"))
|
|
2051
2061
|
])
|
|
2052
2062
|
]),
|
|
2053
2063
|
s("p", null, [
|
|
2054
|
-
|
|
2064
|
+
D(i.$slots, "description", { class: "py-9" })
|
|
2055
2065
|
]),
|
|
2056
|
-
|
|
2066
|
+
D(i.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
2057
2067
|
p[1] || (p[1] = s("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2058
2068
|
])
|
|
2059
2069
|
])
|
|
@@ -2078,8 +2088,8 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2078
2088
|
}, [
|
|
2079
2089
|
s("button", {
|
|
2080
2090
|
onClick: (d) => o(b.category),
|
|
2081
|
-
class:
|
|
2082
|
-
},
|
|
2091
|
+
class: M(["truncate btn btn-ghost", { "font-semibold": e.currentCategory === b.category }])
|
|
2092
|
+
}, x(b.category), 11, nn)
|
|
2083
2093
|
]))), 128))
|
|
2084
2094
|
]));
|
|
2085
2095
|
}
|
|
@@ -2091,19 +2101,19 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2091
2101
|
setup(i) {
|
|
2092
2102
|
const p = i;
|
|
2093
2103
|
return (e, t) => (n(), a("nav", {
|
|
2094
|
-
class:
|
|
2104
|
+
class: M(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", p.isCollapsed ? "collapsed" : ""])
|
|
2095
2105
|
}, [
|
|
2096
2106
|
s("div", an, [
|
|
2097
|
-
|
|
2107
|
+
D(e.$slots, "start", {}, void 0, !0)
|
|
2098
2108
|
]),
|
|
2099
2109
|
s("div", on, [
|
|
2100
|
-
|
|
2110
|
+
D(e.$slots, "center", {}, void 0, !0)
|
|
2101
2111
|
]),
|
|
2102
2112
|
s("div", sn, [
|
|
2103
|
-
|
|
2113
|
+
D(e.$slots, "end", {}, void 0, !0)
|
|
2104
2114
|
]),
|
|
2105
2115
|
s("div", rn, [
|
|
2106
|
-
|
|
2116
|
+
D(e.$slots, "bottom", {}, void 0, !0)
|
|
2107
2117
|
])
|
|
2108
2118
|
], 2));
|
|
2109
2119
|
}
|
|
@@ -2124,7 +2134,7 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2124
2134
|
},
|
|
2125
2135
|
emits: ["tab-changed"],
|
|
2126
2136
|
setup(i, { emit: p }) {
|
|
2127
|
-
const e = i, t =
|
|
2137
|
+
const e = i, t = C(e.items[0]), o = p;
|
|
2128
2138
|
function l(d) {
|
|
2129
2139
|
t.value = d, o("tab-changed", d);
|
|
2130
2140
|
}
|
|
@@ -2145,7 +2155,7 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2145
2155
|
}), (d, m) => (n(), a(O, null, [
|
|
2146
2156
|
s("div", {
|
|
2147
2157
|
role: "tablist",
|
|
2148
|
-
class:
|
|
2158
|
+
class: M(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": d.buttonOnlyMode }])
|
|
2149
2159
|
}, [
|
|
2150
2160
|
d.withControlls ? (n(), a("div", dn, [
|
|
2151
2161
|
s("button", {
|
|
@@ -2161,30 +2171,30 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2161
2171
|
s("a", {
|
|
2162
2172
|
type: "button",
|
|
2163
2173
|
role: "tab",
|
|
2164
|
-
class:
|
|
2174
|
+
class: M(["min-w-max tab", k === t.value ? "bg-primary text-base-100" : ""]),
|
|
2165
2175
|
onClick: (U) => l(k),
|
|
2166
2176
|
"aria-selected": t.value == k
|
|
2167
|
-
},
|
|
2177
|
+
}, x(k), 11, cn),
|
|
2168
2178
|
d.buttonOnlyMode ? B("", !0) : (n(), a("div", pn, [
|
|
2169
|
-
|
|
2179
|
+
D(d.$slots, `${k}-tab`)
|
|
2170
2180
|
]))
|
|
2171
2181
|
], 64))), 256))
|
|
2172
2182
|
], 2),
|
|
2173
2183
|
s("div", vn, [
|
|
2174
|
-
|
|
2184
|
+
D(d.$slots, "default")
|
|
2175
2185
|
])
|
|
2176
2186
|
], 64));
|
|
2177
2187
|
}
|
|
2178
2188
|
});
|
|
2179
2189
|
export {
|
|
2180
2190
|
wn as Accordion,
|
|
2181
|
-
|
|
2191
|
+
xn as AdvancedSearch,
|
|
2182
2192
|
kn as Avatar,
|
|
2183
2193
|
$n as Badge,
|
|
2184
2194
|
mn as ButtonComponent,
|
|
2185
2195
|
_n as Card,
|
|
2186
2196
|
Sn as Carousel,
|
|
2187
|
-
|
|
2197
|
+
Cn as CarouselItem,
|
|
2188
2198
|
An as CategoryNavigation,
|
|
2189
2199
|
cl as DatetimePicker,
|
|
2190
2200
|
gn as Dropdown,
|