manolis-ui 0.17.13 → 0.17.15
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 +1 -0
- package/dist/manolis-ui.js +121 -116
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +15 -0
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, computed as ee, createElementBlock as r, openBlock as o, normalizeClass as
|
|
1
|
+
import { defineComponent as _, computed as ee, createElementBlock as r, openBlock as o, normalizeClass as z, createCommentVNode as O, renderSlot as V, createTextVNode as Re, createElementVNode as n, Fragment as W, renderList as Z, toDisplayString as L, ref as h, watch as q, h as De, onMounted as he, withDirectives as Se, createVNode as ue, isRef as Ue, vModelCheckbox as He, unref as se, provide as We, onUnmounted as Ve, normalizeStyle as we, Transition as Pe, withCtx as Ce, inject as Ke, useId as Xe, defineAsyncComponent as ze, nextTick as me, onBeforeUnmount as Ee, withModifiers as re, createBlock as ve, resolveDynamicComponent as Te, mergeProps as Be, withKeys as pe, resolveComponent as Oe, vModelText as Ne, useSlots as Ye, Comment as Ge, vShow as Je } from "vue";
|
|
2
2
|
const Ze = ["disabled"], Qe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -65,7 +65,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
return (a, u) => (o(), r("button", {
|
|
68
|
-
class:
|
|
68
|
+
class: z([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": d.outlined },
|
|
71
71
|
{ "btn-active": d.active },
|
|
@@ -76,7 +76,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
76
76
|
disabled: d.disabled
|
|
77
77
|
}, [
|
|
78
78
|
e.loading ? (o(), r("span", Qe)) : O("", !0),
|
|
79
|
-
|
|
79
|
+
V(a.$slots, "default", {}, () => [
|
|
80
80
|
u[0] || (u[0] = Re("Submit", -1))
|
|
81
81
|
])
|
|
82
82
|
], 10, Ze));
|
|
@@ -104,9 +104,9 @@ const Ze = ["disabled"], Qe = {
|
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = e;
|
|
106
106
|
return (s, a) => (o(), r("div", {
|
|
107
|
-
class:
|
|
107
|
+
class: z(["dropdown", d[t.position], l[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
V(s.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
@@ -118,7 +118,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
118
118
|
href: u.link
|
|
119
119
|
}, L(u.text), 9, tt)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
V(s.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
@@ -152,25 +152,25 @@ const Ze = ["disabled"], Qe = {
|
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
153
|
onClick: s
|
|
154
154
|
}, [
|
|
155
|
-
|
|
155
|
+
V(u.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
m[0] || (m[0] = n("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : O("", !0),
|
|
159
159
|
n("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
161
|
ref: t,
|
|
162
|
-
class:
|
|
162
|
+
class: z(["modal", l[d.position]])
|
|
163
163
|
}, [
|
|
164
164
|
n("div", lt, [
|
|
165
|
-
|
|
165
|
+
V(u.$slots, "default"),
|
|
166
166
|
n("div", nt, [
|
|
167
|
-
|
|
167
|
+
V(u.$slots, "actions"),
|
|
168
168
|
n("form", {
|
|
169
169
|
method: "dialog",
|
|
170
170
|
onSubmit: a,
|
|
171
|
-
class:
|
|
171
|
+
class: z(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
V(u.$slots, "close-button", {}, () => [
|
|
174
174
|
m[1] || (m[1] = n("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
@@ -187,14 +187,14 @@ const Ze = ["disabled"], Qe = {
|
|
|
187
187
|
setup(e) {
|
|
188
188
|
const d = e;
|
|
189
189
|
return (l, t) => (o(), r("label", {
|
|
190
|
-
class:
|
|
190
|
+
class: z(["swap", d.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
|
|
193
193
|
n("div", at, [
|
|
194
|
-
|
|
194
|
+
V(l.$slots, "on")
|
|
195
195
|
]),
|
|
196
196
|
n("div", ot, [
|
|
197
|
-
|
|
197
|
+
V(l.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -361,7 +361,7 @@ const ct = xe("SunIcon", [
|
|
|
361
361
|
setup(e) {
|
|
362
362
|
const d = e;
|
|
363
363
|
return (l, t) => (o(!0), r(W, null, Z(d.items, (s, a) => (o(), r("div", {
|
|
364
|
-
class:
|
|
364
|
+
class: z(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
365
365
|
key: a
|
|
366
366
|
}, [
|
|
367
367
|
n("input", {
|
|
@@ -393,11 +393,11 @@ const ct = xe("SunIcon", [
|
|
|
393
393
|
t && (l.value = t);
|
|
394
394
|
}
|
|
395
395
|
), (t, s) => (o(), r("div", {
|
|
396
|
-
class:
|
|
396
|
+
class: z(["avatar", [{ "avatar-online": l.value === "online" }, { "avatar-offline": l.value === "offline" }]])
|
|
397
397
|
}, [
|
|
398
398
|
e.image ? (o(), r("div", {
|
|
399
399
|
key: 0,
|
|
400
|
-
class:
|
|
400
|
+
class: z(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
401
401
|
}, [
|
|
402
402
|
n("img", {
|
|
403
403
|
src: e.image,
|
|
@@ -405,7 +405,7 @@ const ct = xe("SunIcon", [
|
|
|
405
405
|
}, null, 8, bt)
|
|
406
406
|
], 2)) : (o(), r("div", {
|
|
407
407
|
key: 1,
|
|
408
|
-
class:
|
|
408
|
+
class: z(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
409
409
|
}, [
|
|
410
410
|
n("p", wt, L(e.initials), 1)
|
|
411
411
|
], 2))
|
|
@@ -436,9 +436,9 @@ const ct = xe("SunIcon", [
|
|
|
436
436
|
error: "badge-error"
|
|
437
437
|
};
|
|
438
438
|
return (s, a) => (o(), r("span", {
|
|
439
|
-
class:
|
|
439
|
+
class: z(["badge", l[d.size], t[d.color], { "badge-outline": d.outline }])
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
V(s.$slots, "default")
|
|
442
442
|
], 2));
|
|
443
443
|
}
|
|
444
444
|
}), xt = ["src", "alt"], kt = {
|
|
@@ -477,7 +477,7 @@ const ct = xe("SunIcon", [
|
|
|
477
477
|
l.value = t;
|
|
478
478
|
}
|
|
479
479
|
), (t, s) => (o(), r("div", {
|
|
480
|
-
class:
|
|
480
|
+
class: z(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
481
481
|
{ "border-4 border-primary": l.value },
|
|
482
482
|
e.color ?? "",
|
|
483
483
|
e.background,
|
|
@@ -485,13 +485,13 @@ const ct = xe("SunIcon", [
|
|
|
485
485
|
]])
|
|
486
486
|
}, [
|
|
487
487
|
n("figure", {
|
|
488
|
-
class:
|
|
488
|
+
class: z([{ "contents!": e.horizontal && e.imgWidth }])
|
|
489
489
|
}, [
|
|
490
490
|
e.imgUrl || e.imgUrl && !e.loading ? (o(), r("img", {
|
|
491
491
|
key: 0,
|
|
492
492
|
src: e.imgUrl,
|
|
493
493
|
alt: e.alt,
|
|
494
|
-
class:
|
|
494
|
+
class: z(["rounded-sm object-cover", [
|
|
495
495
|
{
|
|
496
496
|
hidden: e.loading
|
|
497
497
|
},
|
|
@@ -501,15 +501,15 @@ const ct = xe("SunIcon", [
|
|
|
501
501
|
}, null, 10, xt)) : O("", !0),
|
|
502
502
|
e.loading && e.imgUrl ? (o(), r("div", {
|
|
503
503
|
key: 1,
|
|
504
|
-
class:
|
|
504
|
+
class: z(["w-full skeleton", e.imgHeight])
|
|
505
505
|
}, null, 2)) : O("", !0)
|
|
506
506
|
], 2),
|
|
507
507
|
e.loading ? O("", !0) : (o(), r("div", kt, [
|
|
508
508
|
e.title ? (o(), r("h2", $t, L(e.title), 1)) : O("", !0),
|
|
509
|
-
|
|
509
|
+
V(t.$slots, "details"),
|
|
510
510
|
e.description ? (o(), r("p", St, L(e.description), 1)) : O("", !0),
|
|
511
511
|
n("div", Ct, [
|
|
512
|
-
|
|
512
|
+
V(t.$slots, "actions")
|
|
513
513
|
])
|
|
514
514
|
])),
|
|
515
515
|
e.loading ? (o(), r("div", It, [...s[0] || (s[0] = [
|
|
@@ -587,7 +587,7 @@ const ct = xe("SunIcon", [
|
|
|
587
587
|
}
|
|
588
588
|
},
|
|
589
589
|
setup(e, { expose: d }) {
|
|
590
|
-
const l = e, t = h(l.initialSlide), s = h(null), a = h(null), u = h(0), m = h(!1), i = h(0), y = h(0), M = h(!1), R = h(0), k = h(0), c = h(0),
|
|
590
|
+
const l = e, t = h(l.initialSlide), s = h(null), a = h(null), u = h(0), m = h(!1), i = h(0), y = h(0), M = h(!1), R = h(0), k = h(0), c = h(0), E = h(0), C = h(0), H = h(0), F = h(0), K = h(null), Q = h(null), le = h(0), f = h(null), b = ee(() => {
|
|
591
591
|
const I = Object.keys(l.breakpoints).map(Number).sort((P, U) => P - U);
|
|
592
592
|
let $ = {};
|
|
593
593
|
for (const P of I)
|
|
@@ -638,8 +638,8 @@ const ct = xe("SunIcon", [
|
|
|
638
638
|
}, w = (I) => {
|
|
639
639
|
m.value && K.value && (l.autoplay && ae(), cancelAnimationFrame(K.value), m.value = !1);
|
|
640
640
|
const $ = "touches" in I ? I.touches[0] : I;
|
|
641
|
-
R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value,
|
|
642
|
-
},
|
|
641
|
+
R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value, E.value = 0, C.value = 0, H.value = 0, F.value = performance.now(), s.value && (s.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", T, { passive: !1 }), document.addEventListener("mouseup", N), document.addEventListener("touchmove", T, { passive: !1 }), document.addEventListener("touchend", N);
|
|
642
|
+
}, T = (I) => {
|
|
643
643
|
const $ = "touches" in I ? I.touches[0] : I;
|
|
644
644
|
if (!f.value) {
|
|
645
645
|
const be = Math.abs($.clientX - R.value), fe = Math.abs($.clientY - k.value), ke = 5;
|
|
@@ -663,12 +663,12 @@ const ct = xe("SunIcon", [
|
|
|
663
663
|
if (!M.value || !a.value || !s.value) return;
|
|
664
664
|
I.cancelable && I.preventDefault();
|
|
665
665
|
const P = performance.now(), U = P - F.value, J = l.sliderOrientation === "horizontal" ? $.clientX : $.clientY, X = l.sliderOrientation === "horizontal" ? R.value : k.value, oe = l.sliderOrientation === "horizontal" ? C.value || X : H.value || X, Y = J - oe;
|
|
666
|
-
U > 0 && (
|
|
666
|
+
U > 0 && (E.value = Y / U * 1e3);
|
|
667
667
|
const ie = J - X;
|
|
668
668
|
let ne = c.value - ie;
|
|
669
669
|
ne < 0 ? ne = ne * 0.3 : ne > j.value && (ne = j.value + (ne - j.value) * 0.3), le.value = ne, a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-le.value}px, 0, 0)` : `translate3d(0, ${-le.value}px, 0)`, l.sliderOrientation === "horizontal" ? C.value = J : H.value = J, F.value = P;
|
|
670
670
|
}, B = () => {
|
|
671
|
-
document.removeEventListener("mousemove",
|
|
671
|
+
document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", N), document.removeEventListener("touchmove", T), document.removeEventListener("touchend", N);
|
|
672
672
|
}, N = () => {
|
|
673
673
|
if (!M.value || !s.value || !a.value) return;
|
|
674
674
|
const $ = l.sliderOrientation === "horizontal" ? c.value - (C.value - R.value) : c.value - (H.value - k.value), P = Math.max(0, Math.min($, j.value)), U = x() + S.value;
|
|
@@ -689,8 +689,8 @@ const ct = xe("SunIcon", [
|
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
691
|
const J = Math.max(0, i.value - Math.floor(g.value)), X = 100, oe = Math.round(P / U);
|
|
692
|
-
if (Math.abs(
|
|
693
|
-
const Y = -Math.sign(
|
|
692
|
+
if (Math.abs(E.value) > X) {
|
|
693
|
+
const Y = -Math.sign(E.value), ie = oe + Y;
|
|
694
694
|
A(Math.max(0, Math.min(J, ie)));
|
|
695
695
|
} else
|
|
696
696
|
A(Math.max(0, Math.min(J, oe)));
|
|
@@ -742,21 +742,21 @@ const ct = xe("SunIcon", [
|
|
|
742
742
|
n("div", {
|
|
743
743
|
ref_key: "carouselContainer",
|
|
744
744
|
ref: s,
|
|
745
|
-
class:
|
|
745
|
+
class: z(["rounded w-full h-full carousel", [{ "carousel-horizontal": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }, { "cursor-grabbing !select-none": M.value }]]),
|
|
746
746
|
style: { scrollSnapType: "none" }
|
|
747
747
|
}, [
|
|
748
748
|
n("div", {
|
|
749
749
|
ref_key: "slidesContainer",
|
|
750
750
|
ref: a,
|
|
751
|
-
class:
|
|
751
|
+
class: z(["w-full h-full transition-transform duration-0 ease-out", e.sliderOrientation === "horizontal" ? "flex" : "block"]),
|
|
752
752
|
style: we({ gap: `${S.value}px` })
|
|
753
753
|
}, [
|
|
754
|
-
|
|
754
|
+
V(I.$slots, "default", {}, void 0, !0)
|
|
755
755
|
], 6)
|
|
756
756
|
], 2),
|
|
757
757
|
e.showNavigationButtons ? (o(), r("div", {
|
|
758
758
|
key: 0,
|
|
759
|
-
class:
|
|
759
|
+
class: z([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
|
|
760
760
|
}, [
|
|
761
761
|
ue(Pe, { name: "fade" }, {
|
|
762
762
|
default: Ce(() => [
|
|
@@ -766,7 +766,7 @@ const ct = xe("SunIcon", [
|
|
|
766
766
|
role: "button",
|
|
767
767
|
"aria-label": "Previous Slide"
|
|
768
768
|
}, [
|
|
769
|
-
|
|
769
|
+
V(I.$slots, "prevButton", {}, () => [
|
|
770
770
|
$[0] || ($[0] = n("button", {
|
|
771
771
|
class: "btn btn-circle text-xs",
|
|
772
772
|
tabindex: "-1"
|
|
@@ -786,7 +786,7 @@ const ct = xe("SunIcon", [
|
|
|
786
786
|
role: "button",
|
|
787
787
|
"aria-label": "Next Slide"
|
|
788
788
|
}, [
|
|
789
|
-
|
|
789
|
+
V(I.$slots, "nextButton", {}, () => [
|
|
790
790
|
$[1] || ($[1] = n("button", {
|
|
791
791
|
class: "btn btn-circle text-xs",
|
|
792
792
|
tabindex: "-1"
|
|
@@ -802,7 +802,7 @@ const ct = xe("SunIcon", [
|
|
|
802
802
|
(o(!0), r(W, null, Z(i.value, (P, U) => (o(), r("button", {
|
|
803
803
|
key: `dot-${U}`,
|
|
804
804
|
onClick: (J) => p(U),
|
|
805
|
-
class:
|
|
805
|
+
class: z(["btn btn-circle btn-xs", { "btn-active": U === t.value }]),
|
|
806
806
|
"aria-label": `Go to slide ${U + 1}`
|
|
807
807
|
}, null, 10, Ot))), 128))
|
|
808
808
|
])) : O("", !0)
|
|
@@ -821,7 +821,7 @@ const ct = xe("SunIcon", [
|
|
|
821
821
|
class: "w-full h-full carousel-item",
|
|
822
822
|
style: we(se(d))
|
|
823
823
|
}, [
|
|
824
|
-
|
|
824
|
+
V(l.$slots, "default", {}, void 0, !0)
|
|
825
825
|
], 4));
|
|
826
826
|
}
|
|
827
827
|
}), Cn = /* @__PURE__ */ ge(Vt, [["__scopeId", "data-v-507384bc"]]), Et = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Lt = ["onClick"], jt = {
|
|
@@ -932,7 +932,7 @@ const ct = xe("SunIcon", [
|
|
|
932
932
|
function c(f) {
|
|
933
933
|
k(f);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function E() {
|
|
936
936
|
t("search");
|
|
937
937
|
}
|
|
938
938
|
async function C(f) {
|
|
@@ -1048,7 +1048,7 @@ const ct = xe("SunIcon", [
|
|
|
1048
1048
|
return o(), r("button", {
|
|
1049
1049
|
key: `${v.name}-${D}`,
|
|
1050
1050
|
onClick: re((p) => F(v), ["stop"]),
|
|
1051
|
-
class:
|
|
1051
|
+
class: z([{
|
|
1052
1052
|
"tab-active": ((x = a.value) == null ? void 0 : x.name) === v.name,
|
|
1053
1053
|
"tab-active-inline": ((j = a.value) == null ? void 0 : j.name) === v.name && ((A = a.value) == null ? void 0 : A.displayMode) === "inline"
|
|
1054
1054
|
// Add new class
|
|
@@ -1089,7 +1089,7 @@ const ct = xe("SunIcon", [
|
|
|
1089
1089
|
title: "search",
|
|
1090
1090
|
type: "submit",
|
|
1091
1091
|
class: "ml-1 btn btn-primary btn-square",
|
|
1092
|
-
onClick: re(
|
|
1092
|
+
onClick: re(E, ["stop"])
|
|
1093
1093
|
}, [
|
|
1094
1094
|
ue(se(Ae), {
|
|
1095
1095
|
size: 24,
|
|
@@ -1115,7 +1115,7 @@ const ct = xe("SunIcon", [
|
|
|
1115
1115
|
class: "modal"
|
|
1116
1116
|
}, [
|
|
1117
1117
|
n("div", qt, [
|
|
1118
|
-
|
|
1118
|
+
V(f.$slots, "additionalForMobile", {}, () => [
|
|
1119
1119
|
n("h3", Ut, L(e.currentCategory), 1)
|
|
1120
1120
|
], !0),
|
|
1121
1121
|
(o(!0), r(W, null, Z(((S = l.searchOptions.find(
|
|
@@ -1146,7 +1146,7 @@ const ct = xe("SunIcon", [
|
|
|
1146
1146
|
n("form", { method: "dialog" }, [
|
|
1147
1147
|
n("button", {
|
|
1148
1148
|
class: "btn btn-primary",
|
|
1149
|
-
onClick:
|
|
1149
|
+
onClick: E
|
|
1150
1150
|
}, " Close and Search ")
|
|
1151
1151
|
])
|
|
1152
1152
|
])
|
|
@@ -1191,24 +1191,24 @@ const ct = xe("SunIcon", [
|
|
|
1191
1191
|
single: null,
|
|
1192
1192
|
start: null,
|
|
1193
1193
|
end: null
|
|
1194
|
-
}),
|
|
1194
|
+
}), E = (p) => p instanceof Date ? p.toISOString() : p, C = (p) => p.split("T")[0] || "", H = (p) => {
|
|
1195
1195
|
const w = p instanceof Date ? p : new Date(p);
|
|
1196
1196
|
if (isNaN(w.getTime())) return "";
|
|
1197
|
-
const
|
|
1198
|
-
return `${
|
|
1197
|
+
const T = String(w.getHours()).padStart(2, "0"), B = String(w.getMinutes()).padStart(2, "0");
|
|
1198
|
+
return `${T}:${B}`;
|
|
1199
1199
|
}, F = () => {
|
|
1200
1200
|
const p = /* @__PURE__ */ new Date(), w = H(p);
|
|
1201
|
-
let
|
|
1202
|
-
if (!
|
|
1203
|
-
if (!
|
|
1201
|
+
let T = t.initialDate;
|
|
1202
|
+
if (!T && t.mode !== "time" && (T = t.range ? { start: p, end: p } : p), !!T) {
|
|
1203
|
+
if (!T) {
|
|
1204
1204
|
t.mode === "time" && (t.range ? (k.value.from = w, k.value.to = w) : k.value.single = w);
|
|
1205
1205
|
return;
|
|
1206
1206
|
}
|
|
1207
|
-
if (t.range && typeof
|
|
1208
|
-
const B =
|
|
1207
|
+
if (t.range && typeof T == "object" && "start" in T) {
|
|
1208
|
+
const B = E(T.start), N = E(T.end);
|
|
1209
1209
|
c.value.start = C(B), c.value.end = C(N), t.mode !== "date" && (k.value.from = H(B), k.value.to = H(N));
|
|
1210
1210
|
} else {
|
|
1211
|
-
const B =
|
|
1211
|
+
const B = E(T);
|
|
1212
1212
|
c.value.single = C(B), t.mode !== "date" && (k.value.single = H(B));
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
@@ -1227,11 +1227,11 @@ const ct = xe("SunIcon", [
|
|
|
1227
1227
|
return `${ae}/${G}/${N}`;
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
|
-
let w = "",
|
|
1231
|
-
if ((t.mode === "date" || t.mode === "datetime") && (t.range ? c.value.start && c.value.end && (w = `${c.value.start} - ${c.value.end}`) : c.value.single && (w = c.value.single)), (t.mode === "time" || t.mode === "datetime") && (t.range ? k.value.from && k.value.to && (
|
|
1230
|
+
let w = "", T = "";
|
|
1231
|
+
if ((t.mode === "date" || t.mode === "datetime") && (t.range ? c.value.start && c.value.end && (w = `${c.value.start} - ${c.value.end}`) : c.value.single && (w = c.value.single)), (t.mode === "time" || t.mode === "datetime") && (t.range ? k.value.from && k.value.to && (T = `${k.value.from} - ${k.value.to}`) : k.value.single && (T = k.value.single)), t.mode === "date")
|
|
1232
1232
|
return t.range ? w.split(" - ").map(p).join(" - ") : p(w);
|
|
1233
1233
|
if (t.mode === "time")
|
|
1234
|
-
return
|
|
1234
|
+
return T;
|
|
1235
1235
|
if (t.mode === "datetime")
|
|
1236
1236
|
if (t.range) {
|
|
1237
1237
|
const B = c.value.start, N = c.value.end, G = k.value.from, ae = k.value.to;
|
|
@@ -1250,21 +1250,21 @@ const ct = xe("SunIcon", [
|
|
|
1250
1250
|
else if (i.value) {
|
|
1251
1251
|
const p = i.value.value;
|
|
1252
1252
|
if (typeof p == "string" && p.includes("/")) {
|
|
1253
|
-
const [w,
|
|
1254
|
-
c.value.start = w || null, c.value.end =
|
|
1253
|
+
const [w, T] = p.split("/");
|
|
1254
|
+
c.value.start = w || null, c.value.end = T || null;
|
|
1255
1255
|
} else
|
|
1256
1256
|
c.value.start = p || null, c.value.end = p || null;
|
|
1257
1257
|
}
|
|
1258
1258
|
}, le = () => c.value.start && c.value.end ? `${c.value.start}/${c.value.end}` : null, f = () => {
|
|
1259
1259
|
if (t.range) {
|
|
1260
|
-
const
|
|
1260
|
+
const T = c.value.start, B = c.value.end || c.value.start, N = k.value.from, G = k.value.to;
|
|
1261
1261
|
if (t.mode === "time")
|
|
1262
1262
|
return N && G ? { start: N, end: G } : null;
|
|
1263
1263
|
if (t.mode === "date")
|
|
1264
|
-
return
|
|
1264
|
+
return T && B ? { start: T, end: B } : null;
|
|
1265
1265
|
if (t.mode === "datetime") {
|
|
1266
|
-
if (!
|
|
1267
|
-
const ae = N ? `${N}:00` : "00:00:00", ce = G ? `${G}:00` : "23:59:59", ye = `${
|
|
1266
|
+
if (!T || !B) return null;
|
|
1267
|
+
const ae = N ? `${N}:00` : "00:00:00", ce = G ? `${G}:00` : "23:59:59", ye = `${T}T${ae}`, Ie = `${B}T${ce}`;
|
|
1268
1268
|
return { start: ye, end: Ie };
|
|
1269
1269
|
}
|
|
1270
1270
|
return null;
|
|
@@ -1276,8 +1276,8 @@ const ct = xe("SunIcon", [
|
|
|
1276
1276
|
return p || null;
|
|
1277
1277
|
if (t.mode === "datetime") {
|
|
1278
1278
|
if (!p) return null;
|
|
1279
|
-
const
|
|
1280
|
-
return `${p}T${
|
|
1279
|
+
const T = w ? `${w}:00` : "00:00:00";
|
|
1280
|
+
return `${p}T${T}`;
|
|
1281
1281
|
}
|
|
1282
1282
|
return null;
|
|
1283
1283
|
}, b = async () => {
|
|
@@ -1297,8 +1297,8 @@ const ct = xe("SunIcon", [
|
|
|
1297
1297
|
b(), u.value = !1;
|
|
1298
1298
|
}, x = (p) => {
|
|
1299
1299
|
!t.popup || !u.value || setTimeout(() => {
|
|
1300
|
-
const w = a.value,
|
|
1301
|
-
w && !w.contains(
|
|
1300
|
+
const w = a.value, T = p.target, B = `date-picker-${t.id}-popup`;
|
|
1301
|
+
w && !w.contains(T) && !p.target.closest(`#${B}`) && D();
|
|
1302
1302
|
}, 0);
|
|
1303
1303
|
}, j = () => {
|
|
1304
1304
|
D();
|
|
@@ -1332,7 +1332,7 @@ const ct = xe("SunIcon", [
|
|
|
1332
1332
|
}, { immediate: !0 }), q([y, M, R], () => {
|
|
1333
1333
|
b();
|
|
1334
1334
|
}, { immediate: !0 }), (p, w) => {
|
|
1335
|
-
const
|
|
1335
|
+
const T = Oe("calendar-month"), B = Oe("calendar-date"), N = Oe("calendar-range");
|
|
1336
1336
|
return o(), r("div", {
|
|
1337
1337
|
class: "inline-block relative w-fit lg:w-full",
|
|
1338
1338
|
ref_key: "pickerContainer",
|
|
@@ -1350,7 +1350,7 @@ const ct = xe("SunIcon", [
|
|
|
1350
1350
|
])) : O("", !0),
|
|
1351
1351
|
u.value || !t.popup ? (o(), r("div", {
|
|
1352
1352
|
key: 1,
|
|
1353
|
-
class:
|
|
1353
|
+
class: z(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
|
|
1354
1354
|
id: `date-picker-${t.id}-popup`,
|
|
1355
1355
|
onKeydown: [
|
|
1356
1356
|
w[1] || (w[1] = pe(re(() => {
|
|
@@ -1412,7 +1412,7 @@ const ct = xe("SunIcon", [
|
|
|
1412
1412
|
})
|
|
1413
1413
|
], -1)
|
|
1414
1414
|
])]),
|
|
1415
|
-
ue(
|
|
1415
|
+
ue(T, {
|
|
1416
1416
|
locale: t.locale
|
|
1417
1417
|
}, null, 8, ["locale"])
|
|
1418
1418
|
]),
|
|
@@ -1471,7 +1471,7 @@ const ct = xe("SunIcon", [
|
|
|
1471
1471
|
})
|
|
1472
1472
|
], -1)
|
|
1473
1473
|
])]),
|
|
1474
|
-
ue(
|
|
1474
|
+
ue(T, {
|
|
1475
1475
|
locale: t.locale
|
|
1476
1476
|
}, null, 8, ["locale"])
|
|
1477
1477
|
]),
|
|
@@ -1567,7 +1567,7 @@ const ct = xe("SunIcon", [
|
|
|
1567
1567
|
l.value = s;
|
|
1568
1568
|
};
|
|
1569
1569
|
return (s, a) => (o(), r("div", {
|
|
1570
|
-
class:
|
|
1570
|
+
class: z(["rating", [
|
|
1571
1571
|
`rating-${d.size}`,
|
|
1572
1572
|
{ "rating-half": e.halfStars },
|
|
1573
1573
|
{ "pointer-events-none": !e.isInteractive }
|
|
@@ -1579,7 +1579,7 @@ const ct = xe("SunIcon", [
|
|
|
1579
1579
|
value: e.halfStars ? u * 0.5 : u,
|
|
1580
1580
|
checked: l.value === (e.halfStars ? u * 0.5 : u),
|
|
1581
1581
|
onChange: (m) => e.isInteractive ? t(e.halfStars ? u * 0.5 : u) : null,
|
|
1582
|
-
class:
|
|
1582
|
+
class: z(["mask", [
|
|
1583
1583
|
{
|
|
1584
1584
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1585
1585
|
"mask-half-1": e.halfStars && u % 2 !== 0,
|
|
@@ -1623,7 +1623,7 @@ const ct = xe("SunIcon", [
|
|
|
1623
1623
|
const c = m.value.trim();
|
|
1624
1624
|
c && !s.value.includes(c) && (s.value.push(c), t("update:modelValue", s.value), m.value = "");
|
|
1625
1625
|
}, M = (c) => {
|
|
1626
|
-
s.value = s.value.filter((
|
|
1626
|
+
s.value = s.value.filter((E) => E !== c), t("update:modelValue", s.value);
|
|
1627
1627
|
}, R = () => {
|
|
1628
1628
|
m.value === "" && (s.value.pop(), t("update:modelValue", s.value));
|
|
1629
1629
|
}, k = (c) => {
|
|
@@ -1631,10 +1631,10 @@ const ct = xe("SunIcon", [
|
|
|
1631
1631
|
};
|
|
1632
1632
|
return q(() => l.modelValue, (c) => {
|
|
1633
1633
|
s.value = [...c];
|
|
1634
|
-
}), (c,
|
|
1635
|
-
class:
|
|
1634
|
+
}), (c, E) => (o(), r("div", {
|
|
1635
|
+
class: z(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", c.$props.class])
|
|
1636
1636
|
}, [
|
|
1637
|
-
(o(!0), r(W, null, Z(s.value, (C) =>
|
|
1637
|
+
(o(!0), r(W, null, Z(s.value, (C) => V(c.$slots, "tag", {
|
|
1638
1638
|
key: C,
|
|
1639
1639
|
tag: C
|
|
1640
1640
|
}, () => [
|
|
@@ -1647,12 +1647,12 @@ const ct = xe("SunIcon", [
|
|
|
1647
1647
|
n("span", hl, L(C), 1)
|
|
1648
1648
|
])
|
|
1649
1649
|
])), 128)),
|
|
1650
|
-
|
|
1650
|
+
V(c.$slots, "input", { showInput: i.value }, () => [
|
|
1651
1651
|
i.value ? Se((o(), r("input", {
|
|
1652
1652
|
key: 0,
|
|
1653
1653
|
ref_key: "inputRef",
|
|
1654
1654
|
ref: u,
|
|
1655
|
-
"onUpdate:modelValue":
|
|
1655
|
+
"onUpdate:modelValue": E[0] || (E[0] = (C) => m.value = C),
|
|
1656
1656
|
type: "text",
|
|
1657
1657
|
placeholder: e.placeholder || "Type here",
|
|
1658
1658
|
class: "h-full input input-ghost",
|
|
@@ -1753,12 +1753,12 @@ const ct = xe("SunIcon", [
|
|
|
1753
1753
|
const t = e, s = l, a = Ye(), u = ee(() => {
|
|
1754
1754
|
const D = (a.default ? a.default() : []).filter((x) => x.type !== Ge);
|
|
1755
1755
|
return console.log("hasDefaultSlotContent computed:", D.length > 0), D.length > 0;
|
|
1756
|
-
}), m = h(""), i = h(null), y = h(!1), M = h(null), R = h(null), k = h(null), c = h(null),
|
|
1756
|
+
}), m = h(""), i = h(null), y = h(!1), M = h(null), R = h(null), k = h(null), c = h(null), E = () => {
|
|
1757
1757
|
y.value = !t.disabled;
|
|
1758
1758
|
}, C = () => {
|
|
1759
1759
|
y.value = !1, c.value = null, u.value || (i.value && m.value !== i.value.text ? m.value = i.value.text : i.value || (m.value = ""));
|
|
1760
1760
|
}, H = () => {
|
|
1761
|
-
y.value ? C() :
|
|
1761
|
+
y.value ? C() : E();
|
|
1762
1762
|
}, F = ee(() => {
|
|
1763
1763
|
const v = m.value ? m.value.toLowerCase() : "";
|
|
1764
1764
|
return v === "" && !y.value ? [] : t.options.filter(
|
|
@@ -1801,7 +1801,7 @@ const ct = xe("SunIcon", [
|
|
|
1801
1801
|
}, b = () => {
|
|
1802
1802
|
F.value.length > 0 && f(F.value[0]);
|
|
1803
1803
|
}, g = () => {
|
|
1804
|
-
y.value ||
|
|
1804
|
+
y.value || E();
|
|
1805
1805
|
}, S = (v) => {
|
|
1806
1806
|
if (!y.value || F.value.length === 0) return;
|
|
1807
1807
|
const D = F.value.findIndex(
|
|
@@ -1841,7 +1841,7 @@ const ct = xe("SunIcon", [
|
|
|
1841
1841
|
// Expose state
|
|
1842
1842
|
selectedItem: i,
|
|
1843
1843
|
// Expose selected item
|
|
1844
|
-
openDropdown:
|
|
1844
|
+
openDropdown: E,
|
|
1845
1845
|
// Expose method to open
|
|
1846
1846
|
closeDropdown: C,
|
|
1847
1847
|
// Expose method to close
|
|
@@ -1862,12 +1862,12 @@ const ct = xe("SunIcon", [
|
|
|
1862
1862
|
n("span", Cl, L(e.label), 1)
|
|
1863
1863
|
])) : O("", !0),
|
|
1864
1864
|
n("div", {
|
|
1865
|
-
class:
|
|
1865
|
+
class: z(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !u.value, select: !u.value }]),
|
|
1866
1866
|
style: we(
|
|
1867
1867
|
i.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1868
1868
|
),
|
|
1869
1869
|
tabindex: "0",
|
|
1870
|
-
onClick: D[1] || (D[1] = (x) => u.value ? H() :
|
|
1870
|
+
onClick: D[1] || (D[1] = (x) => u.value ? H() : E()),
|
|
1871
1871
|
onKeydown: [
|
|
1872
1872
|
pe(re(b, ["prevent"]), ["enter"]),
|
|
1873
1873
|
pe(re(b, ["prevent"]), ["space"])
|
|
@@ -1881,7 +1881,7 @@ const ct = xe("SunIcon", [
|
|
|
1881
1881
|
ref_key: "activatorWrapper",
|
|
1882
1882
|
ref: k
|
|
1883
1883
|
}, [
|
|
1884
|
-
|
|
1884
|
+
V(v.$slots, "default", {}, () => [
|
|
1885
1885
|
u.value ? O("", !0) : Se((o(), r("input", {
|
|
1886
1886
|
key: 0,
|
|
1887
1887
|
type: "text",
|
|
@@ -1890,7 +1890,7 @@ const ct = xe("SunIcon", [
|
|
|
1890
1890
|
"onUpdate:modelValue": D[0] || (D[0] = (x) => m.value = x),
|
|
1891
1891
|
ref_key: "filterInput",
|
|
1892
1892
|
ref: M,
|
|
1893
|
-
onFocus:
|
|
1893
|
+
onFocus: E,
|
|
1894
1894
|
onInput: g,
|
|
1895
1895
|
tabindex: "-1",
|
|
1896
1896
|
disabled: t.disabled
|
|
@@ -1906,7 +1906,7 @@ const ct = xe("SunIcon", [
|
|
|
1906
1906
|
})) : O("", !0),
|
|
1907
1907
|
u.value && !i.value ? (o(), ve(se(rt), {
|
|
1908
1908
|
key: 1,
|
|
1909
|
-
class:
|
|
1909
|
+
class: z([{ "rotate-180": y.value }, "mx-2"]),
|
|
1910
1910
|
size: 20
|
|
1911
1911
|
}, null, 8, ["class"])) : O("", !0)
|
|
1912
1912
|
], 46, Il),
|
|
@@ -1956,12 +1956,12 @@ const ct = xe("SunIcon", [
|
|
|
1956
1956
|
setup(e, { expose: d, emit: l }) {
|
|
1957
1957
|
const t = e, s = l, a = h(null), u = h(!1), m = h(""), i = ee(() => {
|
|
1958
1958
|
var H, F, K, Q;
|
|
1959
|
-
let c = !0,
|
|
1959
|
+
let c = !0, E = "";
|
|
1960
1960
|
const C = t.modelValue;
|
|
1961
|
-
return (H = t.rules) != null && H.required && (C == null || C === "") && (c = !1,
|
|
1961
|
+
return (H = t.rules) != null && H.required && (C == null || C === "") && (c = !1, E = "This field is required."), c && ((F = t.rules) == null ? void 0 : F.minLength) !== void 0 && typeof C == "string" && C.length < t.rules.minLength && (c = !1, E = `Must be at least ${t.rules.minLength} characters.`), c && ((K = t.rules) == null ? void 0 : K.maxLength) !== void 0 && typeof C == "string" && C.length > t.rules.maxLength && (c = !1, E = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((Q = t.rules) != null && Q.email) && typeof C == "string" && C && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C) || (c = !1, E = "Please enter a valid email address.")), m.value = E, s("validate", c), c;
|
|
1962
1962
|
}), y = ee(() => u.value && !i.value), M = (c) => {
|
|
1963
|
-
const
|
|
1964
|
-
s("update:modelValue",
|
|
1963
|
+
const E = c.target;
|
|
1964
|
+
s("update:modelValue", E.value), u.value && i.value;
|
|
1965
1965
|
}, R = () => {
|
|
1966
1966
|
u.value = !0, i.value;
|
|
1967
1967
|
};
|
|
@@ -1978,18 +1978,18 @@ const ct = xe("SunIcon", [
|
|
|
1978
1978
|
isValid: i,
|
|
1979
1979
|
isTouched: u,
|
|
1980
1980
|
errorMessage: m
|
|
1981
|
-
}), (c,
|
|
1981
|
+
}), (c, E) => (o(), r("div", Ol, [
|
|
1982
1982
|
e.label ? (o(), r("label", Dl, [
|
|
1983
1983
|
n("span", Vl, L(e.label), 1)
|
|
1984
1984
|
])) : O("", !0),
|
|
1985
|
-
|
|
1985
|
+
V(c.$slots, "default"),
|
|
1986
1986
|
n("input", {
|
|
1987
1987
|
ref_key: "inputElement",
|
|
1988
1988
|
ref: a,
|
|
1989
1989
|
type: e.type,
|
|
1990
1990
|
placeholder: e.placeholder,
|
|
1991
1991
|
disabled: t.disabled,
|
|
1992
|
-
class:
|
|
1992
|
+
class: z(["input-bordered rounded-md w-full input validator", [
|
|
1993
1993
|
{
|
|
1994
1994
|
// Size classes - Apply based on size prop
|
|
1995
1995
|
"input-xs": e.size === "xs",
|
|
@@ -2044,7 +2044,7 @@ const ct = xe("SunIcon", [
|
|
|
2044
2044
|
}
|
|
2045
2045
|
), (t, s) => l.value ? (o(), r("span", {
|
|
2046
2046
|
key: 0,
|
|
2047
|
-
class:
|
|
2047
|
+
class: z(["loading", [
|
|
2048
2048
|
{ "loading-xs": e.size === "xs" },
|
|
2049
2049
|
{ "loading-sm": e.size === "sm" },
|
|
2050
2050
|
{ "loading-md": e.size === "md" },
|
|
@@ -2075,7 +2075,7 @@ const ct = xe("SunIcon", [
|
|
|
2075
2075
|
}, ql = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Ul = {
|
|
2076
2076
|
tabindex: "0",
|
|
2077
2077
|
class: "collapse collapse-plus w-full"
|
|
2078
|
-
}, Hl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Wl = { class: "collapse-content flex w-full text-sm" }, Kl = { class: "flex flex-col gap-2.5" }, Xl = { class: "w-full" }, Yl = ["href"], Gl = { class: "w-
|
|
2078
|
+
}, Hl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Wl = { class: "collapse-content flex w-full text-sm" }, Kl = { class: "flex flex-col gap-2.5" }, Xl = { class: "w-full" }, Yl = ["href"], Gl = { class: "sm:w-1/4" }, Vn = /* @__PURE__ */ _({
|
|
2079
2079
|
__name: "footer",
|
|
2080
2080
|
props: {
|
|
2081
2081
|
items: {},
|
|
@@ -2087,14 +2087,14 @@ const ct = xe("SunIcon", [
|
|
|
2087
2087
|
setup(e) {
|
|
2088
2088
|
const d = e;
|
|
2089
2089
|
return (l, t) => (o(), r("div", {
|
|
2090
|
-
class:
|
|
2090
|
+
class: z(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2091
2091
|
}, [
|
|
2092
2092
|
n("footer", Rl, [
|
|
2093
2093
|
n("div", {
|
|
2094
|
-
class:
|
|
2094
|
+
class: z(["footer sm:footer-horizontal sm:w-3/4", [{ "sm:grid-rows-1": d.rows === 1 }, { "sm:grid-rows-2": d.rows === 2 }, { "sm:grid-rows-3": d.rows === 3 }]])
|
|
2095
2095
|
}, [
|
|
2096
2096
|
(o(!0), r(W, null, Z(d.items, (s) => (o(), r("nav", {
|
|
2097
|
-
class:
|
|
2097
|
+
class: z([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2098
2098
|
}, [
|
|
2099
2099
|
n("h6", Nl, L(s.title), 1),
|
|
2100
2100
|
(o(!0), r(W, null, Z(s.items, (a) => (o(), r("a", {
|
|
@@ -2102,6 +2102,11 @@ const ct = xe("SunIcon", [
|
|
|
2102
2102
|
href: a.link
|
|
2103
2103
|
}, L(a.text), 9, _l))), 256))
|
|
2104
2104
|
], 2))), 256)),
|
|
2105
|
+
n("nav", {
|
|
2106
|
+
class: z(["empty:hidden", [{ "hidden sm:grid": e.collapseOnMobile }]])
|
|
2107
|
+
}, [
|
|
2108
|
+
V(l.$slots, "extra-row")
|
|
2109
|
+
], 2),
|
|
2105
2110
|
e.collapseOnMobile ? (o(), r("nav", Fl, [
|
|
2106
2111
|
(o(!0), r(W, null, Z(d.items, (s) => (o(), r("ul", ql, [
|
|
2107
2112
|
n("div", Ul, [
|
|
@@ -2121,7 +2126,7 @@ const ct = xe("SunIcon", [
|
|
|
2121
2126
|
])) : O("", !0)
|
|
2122
2127
|
], 2),
|
|
2123
2128
|
n("aside", Gl, [
|
|
2124
|
-
|
|
2129
|
+
V(l.$slots, "default")
|
|
2125
2130
|
])
|
|
2126
2131
|
])
|
|
2127
2132
|
], 2));
|
|
@@ -2132,14 +2137,14 @@ function tn(e, d) {
|
|
|
2132
2137
|
n("div", Ql, [
|
|
2133
2138
|
n("div", null, [
|
|
2134
2139
|
n("h1", en, [
|
|
2135
|
-
|
|
2140
|
+
V(e.$slots, "title", {}, () => [
|
|
2136
2141
|
d[0] || (d[0] = Re("hero title", -1))
|
|
2137
2142
|
])
|
|
2138
2143
|
]),
|
|
2139
2144
|
n("p", null, [
|
|
2140
|
-
|
|
2145
|
+
V(e.$slots, "description", { class: "py-9" })
|
|
2141
2146
|
]),
|
|
2142
|
-
|
|
2147
|
+
V(e.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
2143
2148
|
d[1] || (d[1] = n("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2144
2149
|
])
|
|
2145
2150
|
])
|
|
@@ -2164,7 +2169,7 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2164
2169
|
}, [
|
|
2165
2170
|
n("button", {
|
|
2166
2171
|
onClick: (i) => s(m.category),
|
|
2167
|
-
class:
|
|
2172
|
+
class: z(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === m.category }])
|
|
2168
2173
|
}, L(m.category), 11, nn)
|
|
2169
2174
|
]))), 128))
|
|
2170
2175
|
]));
|
|
@@ -2177,19 +2182,19 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2177
2182
|
setup(e) {
|
|
2178
2183
|
const d = e;
|
|
2179
2184
|
return (l, t) => (o(), r("nav", {
|
|
2180
|
-
class:
|
|
2185
|
+
class: z(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", d.isCollapsed ? "collapsed" : ""])
|
|
2181
2186
|
}, [
|
|
2182
2187
|
n("div", an, [
|
|
2183
|
-
|
|
2188
|
+
V(l.$slots, "start", {}, void 0, !0)
|
|
2184
2189
|
]),
|
|
2185
2190
|
n("div", on, [
|
|
2186
|
-
|
|
2191
|
+
V(l.$slots, "center", {}, void 0, !0)
|
|
2187
2192
|
]),
|
|
2188
2193
|
n("div", sn, [
|
|
2189
|
-
|
|
2194
|
+
V(l.$slots, "end", {}, void 0, !0)
|
|
2190
2195
|
]),
|
|
2191
2196
|
n("div", rn, [
|
|
2192
|
-
|
|
2197
|
+
V(l.$slots, "bottom", {}, void 0, !0)
|
|
2193
2198
|
])
|
|
2194
2199
|
], 2));
|
|
2195
2200
|
}
|
|
@@ -2231,7 +2236,7 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2231
2236
|
}), (i, y) => (o(), r(W, null, [
|
|
2232
2237
|
n("div", {
|
|
2233
2238
|
role: "tablist",
|
|
2234
|
-
class:
|
|
2239
|
+
class: z(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2235
2240
|
}, [
|
|
2236
2241
|
e.withControlls ? (o(), r("div", dn, [
|
|
2237
2242
|
n("button", {
|
|
@@ -2247,17 +2252,17 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2247
2252
|
n("a", {
|
|
2248
2253
|
type: "button",
|
|
2249
2254
|
role: "tab",
|
|
2250
|
-
class:
|
|
2255
|
+
class: z(["min-w-max tab", M === t.value ? "bg-primary text-base-100" : ""]),
|
|
2251
2256
|
onClick: (R) => a(M),
|
|
2252
2257
|
"aria-selected": t.value == M
|
|
2253
2258
|
}, L(M), 11, cn),
|
|
2254
2259
|
e.buttonOnlyMode ? O("", !0) : (o(), r("div", vn, [
|
|
2255
|
-
|
|
2260
|
+
V(i.$slots, `${M}-tab`)
|
|
2256
2261
|
]))
|
|
2257
2262
|
], 64))), 256))
|
|
2258
2263
|
], 2),
|
|
2259
2264
|
n("div", fn, [
|
|
2260
|
-
|
|
2265
|
+
V(i.$slots, "default")
|
|
2261
2266
|
])
|
|
2262
2267
|
], 64));
|
|
2263
2268
|
}
|