manolis-ui 0.0.2 → 0.0.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/dist/components/layout/footer.vue.d.ts +2 -2
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +95 -93
- package/dist/manolis-ui.umd.cjs +3 -3
- package/dist/style.css +8 -58
- package/package.json +1 -1
- package/src/components/layout/footer.vue +18 -34
|
@@ -16,10 +16,10 @@ declare function __VLS_template(): {
|
|
|
16
16
|
default?(_: {}): any;
|
|
17
17
|
};
|
|
18
18
|
refs: {};
|
|
19
|
-
rootEl:
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
20
|
};
|
|
21
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/manolis-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs button[data-v-08fa37eb]{cursor:pointer}.tab-content[data-v-08fa37eb]{position:absolute;z-index:10;transform-origin:top center;transition:opacity .3s ease}.tabs-boxed[data-v-08fa37eb] :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed[data-v-08fa37eb] :is(input:checked){background-color:var(--color-base-300);color:var(--color-base-content)}@media (max-width: 768px){.tab-content[data-v-08fa37eb]{width:100%;left:50%;transform:translate(-50%);top:auto;bottom:0}}@media (min-width: 769px){.tab-content[data-v-08fa37eb]{width:auto;left:unset;transform:unset}}.input[data-v-e7e203aa]{cursor:pointer}.
|
|
1
|
+
.tabs button[data-v-08fa37eb]{cursor:pointer}.tab-content[data-v-08fa37eb]{position:absolute;z-index:10;transform-origin:top center;transition:opacity .3s ease}.tabs-boxed[data-v-08fa37eb] :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed[data-v-08fa37eb] :is(input:checked){background-color:var(--color-base-300);color:var(--color-base-content)}@media (max-width: 768px){.tab-content[data-v-08fa37eb]{width:100%;left:50%;transform:translate(-50%);top:auto;bottom:0}}@media (min-width: 769px){.tab-content[data-v-08fa37eb]{width:auto;left:unset;transform:unset}}.input[data-v-e7e203aa]{cursor:pointer}.navigationbar[data-v-8ddb2b45]{display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto;grid-template-areas:"center center center" "bottom bottom bottom";position:fixed;width:100%!important;gap:0 1rem;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;z-index:5}@media (min-width: 768px){.navigationbar[data-v-8ddb2b45]{grid-template-columns:.7fr 1.6fr .7fr;grid-template-areas:"start center end" "bottom bottom bottom";grid-row-gap:2rem;padding:2rem}}.navbar-start[data-v-8ddb2b45]{grid-area:start;height:100%}.navbar-center[data-v-8ddb2b45]{grid-area:center;width:100%;height:100%}.navbar-end[data-v-8ddb2b45]{width:100%;height:100%;grid-area:end}.navbar-bottom[data-v-8ddb2b45]{grid-area:center;width:100%;display:flex;justify-content:center;align-items:center}@media (min-width: 768px){.navbar-bottom[data-v-8ddb2b45]{grid-area:bottom}}nav.navigationbar.collapsed[data-v-8ddb2b45]{top:0;z-index:10;grid-template-columns:auto 1fr auto!important}@media (min-width: 768px){nav.navigationbar.collapsed[data-v-8ddb2b45]{row-gap:0;padding:1rem}}nav.navigationbar.collapsed .navbar-bottom[data-v-8ddb2b45]{grid-area:center!important}
|
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, computed as S, openBlock as n, createElementBlock as a, normalizeClass as $, createCommentVNode as x, renderSlot as w, createTextVNode as ne, createElementVNode as t, Fragment as y, renderList as _, toDisplayString as
|
|
1
|
+
import { defineComponent as M, computed as S, openBlock as n, createElementBlock as a, normalizeClass as $, createCommentVNode as x, renderSlot as w, createTextVNode as ne, createElementVNode as t, Fragment as y, renderList as _, toDisplayString as b, ref as k, h as te, onMounted as F, watch as E, withDirectives as U, isRef as Te, vModelCheckbox as Me, unref as V, createVNode as W, defineAsyncComponent as Be, onBeforeUnmount as Ie, normalizeStyle as Oe, createBlock as re, resolveDynamicComponent as ie, mergeProps as ue, nextTick as de, onUnmounted as pe, vModelSelect as j, vModelText as ee } from "vue";
|
|
2
2
|
const Ue = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -107,13 +107,13 @@ const Ue = {
|
|
|
107
107
|
(n(!0), a(y, null, _(i.items, (p) => (n(), a("li", null, [
|
|
108
108
|
t("a", {
|
|
109
109
|
href: p.link
|
|
110
|
-
},
|
|
110
|
+
}, b(p.text), 9, Ae)
|
|
111
111
|
]))), 256)),
|
|
112
112
|
w(i.$slots, "additional")
|
|
113
113
|
])
|
|
114
114
|
], 2));
|
|
115
115
|
}
|
|
116
|
-
}), Pe = { class: "modal-box" }, je = { class: "modal-action" },
|
|
116
|
+
}), Pe = { class: "modal-box" }, je = { class: "modal-action" }, hn = /* @__PURE__ */ M({
|
|
117
117
|
__name: "modal",
|
|
118
118
|
props: {
|
|
119
119
|
position: { default: "center" },
|
|
@@ -131,13 +131,13 @@ const Ue = {
|
|
|
131
131
|
var p;
|
|
132
132
|
(p = s.value) == null || p.close();
|
|
133
133
|
};
|
|
134
|
-
return (p,
|
|
134
|
+
return (p, h) => (n(), a(y, null, [
|
|
135
135
|
t("span", {
|
|
136
136
|
class: "w-fit cursor-pointer",
|
|
137
137
|
onClick: i
|
|
138
138
|
}, [
|
|
139
139
|
w(p.$slots, "trigger", { role: "button" }, () => [
|
|
140
|
-
|
|
140
|
+
h[0] || (h[0] = t("button", { class: "btn" }, "Open", -1))
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
143
|
t("dialog", {
|
|
@@ -155,7 +155,7 @@ const Ue = {
|
|
|
155
155
|
class: $(p.withBackdrop ? "modal-backdrop" : "")
|
|
156
156
|
}, [
|
|
157
157
|
w(p.$slots, "close-button", {}, () => [
|
|
158
|
-
|
|
158
|
+
h[1] || (h[1] = t("button", { class: "btn" }, "Close", -1))
|
|
159
159
|
])
|
|
160
160
|
], 34)
|
|
161
161
|
])
|
|
@@ -163,7 +163,7 @@ const Ue = {
|
|
|
163
163
|
], 2)
|
|
164
164
|
], 64));
|
|
165
165
|
}
|
|
166
|
-
}), ze = { class: "swap-on" }, Ne = { class: "swap-off" },
|
|
166
|
+
}), ze = { class: "swap-on" }, Ne = { class: "swap-off" }, bn = /* @__PURE__ */ M({
|
|
167
167
|
__name: "swap",
|
|
168
168
|
props: {
|
|
169
169
|
effect: {}
|
|
@@ -196,7 +196,7 @@ const Ee = (d) => d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
|
196
196
|
* This source code is licensed under the ISC license.
|
|
197
197
|
* See the LICENSE file in the root directory of this source tree.
|
|
198
198
|
*/
|
|
199
|
-
var
|
|
199
|
+
var J = {
|
|
200
200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
201
201
|
width: 24,
|
|
202
202
|
height: 24,
|
|
@@ -213,16 +213,16 @@ var W = {
|
|
|
213
213
|
* This source code is licensed under the ISC license.
|
|
214
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
215
|
*/
|
|
216
|
-
const Le = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: s, iconNode: i, name: l, class: p, ...
|
|
216
|
+
const Le = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: s, iconNode: i, name: l, class: p, ...h }, { slots: f }) => te(
|
|
217
217
|
"svg",
|
|
218
218
|
{
|
|
219
|
-
...
|
|
220
|
-
width: d ||
|
|
221
|
-
height: d ||
|
|
222
|
-
stroke: s ||
|
|
219
|
+
...J,
|
|
220
|
+
width: d || J.width,
|
|
221
|
+
height: d || J.height,
|
|
222
|
+
stroke: s || J.stroke,
|
|
223
223
|
"stroke-width": e ? Number(u) * 24 / Number(d) : u,
|
|
224
224
|
class: ["lucide", `lucide-${Ee(l ?? "icon")}`],
|
|
225
|
-
...
|
|
225
|
+
...h
|
|
226
226
|
},
|
|
227
227
|
[...i.map((m) => te(...m)), ...f.default ? [f.default()] : []]
|
|
228
228
|
);
|
|
@@ -309,8 +309,8 @@ const Fe = ae("SunIcon", [
|
|
|
309
309
|
}, null, 8, Ye), [
|
|
310
310
|
[Me, V(e)]
|
|
311
311
|
]),
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
W(V(Fe), { class: "swap-off fill-current" }),
|
|
313
|
+
W(V(Re), { class: "swap-on fill-current" })
|
|
314
314
|
]));
|
|
315
315
|
}
|
|
316
316
|
}), Je = ["name"], We = { class: "collapse-title text-xl font-medium" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"], wn = /* @__PURE__ */ M({
|
|
@@ -332,7 +332,7 @@ const Fe = ae("SunIcon", [
|
|
|
332
332
|
name: e.name,
|
|
333
333
|
value: "true"
|
|
334
334
|
}, null, 8, Je),
|
|
335
|
-
t("div", We,
|
|
335
|
+
t("div", We, b(i.title), 1),
|
|
336
336
|
t("div", Xe, [
|
|
337
337
|
t("span", {
|
|
338
338
|
innerHTML: i.content
|
|
@@ -369,7 +369,7 @@ const Fe = ae("SunIcon", [
|
|
|
369
369
|
class: "w-full h-full"
|
|
370
370
|
}, null, 8, Ge)
|
|
371
371
|
])) : (n(), a("div", Qe, [
|
|
372
|
-
t("p", et,
|
|
372
|
+
t("p", et, b(s.initials), 1)
|
|
373
373
|
]))
|
|
374
374
|
], 2));
|
|
375
375
|
}
|
|
@@ -451,9 +451,9 @@ const Fe = ae("SunIcon", [
|
|
|
451
451
|
s.loading && s.imgUrl ? (n(), a("div", nt)) : x("", !0)
|
|
452
452
|
]),
|
|
453
453
|
s.loading ? x("", !0) : (n(), a("div", at, [
|
|
454
|
-
s.title ? (n(), a("h2", ot,
|
|
454
|
+
s.title ? (n(), a("h2", ot, b(s.title), 1)) : x("", !0),
|
|
455
455
|
w(s.$slots, "details"),
|
|
456
|
-
s.description ? (n(), a("p", st,
|
|
456
|
+
s.description ? (n(), a("p", st, b(s.description), 1)) : x("", !0),
|
|
457
457
|
t("div", lt, [
|
|
458
458
|
w(s.$slots, "actions")
|
|
459
459
|
])
|
|
@@ -470,7 +470,7 @@ const Fe = ae("SunIcon", [
|
|
|
470
470
|
}), it = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, ut = ["onClick"], dt = { class: "text-sm" }, ct = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, pt = { class: "hidden" }, mt = {
|
|
471
471
|
id: "advancedSearchMobile",
|
|
472
472
|
class: "modal"
|
|
473
|
-
}, vt = { class: "modal-box" }, ft = { class: "font-bold text-lg" }, gt = ["checked"],
|
|
473
|
+
}, vt = { class: "modal-box" }, ft = { class: "font-bold text-lg" }, gt = ["checked"], ht = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, bt = { class: "text-sm" }, yt = { class: "flex place-content-center p-0 collapse-content" }, wt = /* @__PURE__ */ M({
|
|
474
474
|
__name: "advancedSearch",
|
|
475
475
|
props: {
|
|
476
476
|
searchOptions: {},
|
|
@@ -480,7 +480,7 @@ const Fe = ae("SunIcon", [
|
|
|
480
480
|
setup(d, { emit: u }) {
|
|
481
481
|
const e = d, s = u, i = k(null), l = {
|
|
482
482
|
datetime: Be(() => Promise.resolve().then(() => Ht))
|
|
483
|
-
}, p = k({}),
|
|
483
|
+
}, p = k({}), h = k({ left: "0px", top: "0px", transform: "translateX(0%)" }), f = k(null);
|
|
484
484
|
function m(C, I) {
|
|
485
485
|
var B, O, g;
|
|
486
486
|
if ((B = i.value) != null && B.name) {
|
|
@@ -516,11 +516,11 @@ const Fe = ae("SunIcon", [
|
|
|
516
516
|
const I = p.value[C.name];
|
|
517
517
|
if (I) {
|
|
518
518
|
const O = I.getBoundingClientRect(), g = ((B = f.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
|
|
519
|
-
window.innerWidth > 768 ?
|
|
519
|
+
window.innerWidth > 768 ? h.value = {
|
|
520
520
|
left: `${O.left + O.width / 2 - g.left}px`,
|
|
521
521
|
top: `${O.bottom - g.top}px`,
|
|
522
522
|
transform: "translateX(-50%)"
|
|
523
|
-
} :
|
|
523
|
+
} : h.value = {
|
|
524
524
|
left: "50%",
|
|
525
525
|
top: `${O.bottom - g.top}px`,
|
|
526
526
|
transform: "translateX(-50%)"
|
|
@@ -555,15 +555,15 @@ const Fe = ae("SunIcon", [
|
|
|
555
555
|
ref_for: !0,
|
|
556
556
|
ref: (A) => p.value[g.name] = A
|
|
557
557
|
}, [
|
|
558
|
-
t("p", dt,
|
|
559
|
-
t("p", ct,
|
|
558
|
+
t("p", dt, b(g.name), 1),
|
|
559
|
+
t("p", ct, b(g.description), 1)
|
|
560
560
|
], 10, ut);
|
|
561
561
|
}), 128))
|
|
562
562
|
]),
|
|
563
563
|
i.value ? (n(), a("div", {
|
|
564
564
|
key: 0,
|
|
565
565
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
566
|
-
style: Oe(
|
|
566
|
+
style: Oe(h.value)
|
|
567
567
|
}, [
|
|
568
568
|
(n(), re(ie(l[i.value.type]), ue(i.value.props ? i.value.props : null, { onUpdated: m }), null, 16))
|
|
569
569
|
], 4)) : x("", !0),
|
|
@@ -573,7 +573,7 @@ const Fe = ae("SunIcon", [
|
|
|
573
573
|
class: "ml-1 btn btn-primary btn-square",
|
|
574
574
|
onClick: v
|
|
575
575
|
}, [
|
|
576
|
-
|
|
576
|
+
W(V(ce), {
|
|
577
577
|
size: 24,
|
|
578
578
|
color: "white"
|
|
579
579
|
})
|
|
@@ -585,7 +585,7 @@ const Fe = ae("SunIcon", [
|
|
|
585
585
|
onClick: I[0] || (I[0] = () => {
|
|
586
586
|
})
|
|
587
587
|
}, [
|
|
588
|
-
|
|
588
|
+
W(V(ce), {
|
|
589
589
|
size: 24,
|
|
590
590
|
color: "white"
|
|
591
591
|
})
|
|
@@ -595,7 +595,7 @@ const Fe = ae("SunIcon", [
|
|
|
595
595
|
t("dialog", mt, [
|
|
596
596
|
t("div", vt, [
|
|
597
597
|
w(C.$slots, "additionalForMobile", {}, () => [
|
|
598
|
-
t("h3", ft,
|
|
598
|
+
t("h3", ft, b(C.currentCategory), 1)
|
|
599
599
|
], !0),
|
|
600
600
|
(n(!0), a(y, null, _(((O = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : O.tabs) || [], (g, D) => (n(), a("div", {
|
|
601
601
|
class: "bg-base-200 my-4 collapse",
|
|
@@ -606,9 +606,9 @@ const Fe = ae("SunIcon", [
|
|
|
606
606
|
name: "my-accordion-1",
|
|
607
607
|
checked: D === 0
|
|
608
608
|
}, null, 8, gt),
|
|
609
|
-
t("div",
|
|
610
|
-
ne(
|
|
611
|
-
t("p",
|
|
609
|
+
t("div", ht, [
|
|
610
|
+
ne(b(g.name) + " ", 1),
|
|
611
|
+
t("p", bt, b(g.description), 1)
|
|
612
612
|
]),
|
|
613
613
|
t("div", yt, [
|
|
614
614
|
I[1] || (I[1] = t("br", null, null, -1)),
|
|
@@ -630,12 +630,12 @@ const Fe = ae("SunIcon", [
|
|
|
630
630
|
], 64);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
}),
|
|
633
|
+
}), X = (d, u) => {
|
|
634
634
|
const e = d.__vccOpts || d;
|
|
635
635
|
for (const [s, i] of u)
|
|
636
636
|
e[s] = i;
|
|
637
637
|
return e;
|
|
638
|
-
}, Cn = /* @__PURE__ */
|
|
638
|
+
}, Cn = /* @__PURE__ */ X(wt, [["__scopeId", "data-v-08fa37eb"]]), _t = ["placeholder", "value", "id"], kt = ["id"], $t = {
|
|
639
639
|
key: 0,
|
|
640
640
|
class: "flex justify-between items-center place-content-center mb-4"
|
|
641
641
|
}, Ct = ["value"], St = ["value"], xt = {
|
|
@@ -695,16 +695,16 @@ const Fe = ae("SunIcon", [
|
|
|
695
695
|
E(() => e.range, (r) => {
|
|
696
696
|
r ? (l.value = { start: null, end: null }, p.value = { start: null, end: null }) : (l.value = null, p.value = null);
|
|
697
697
|
});
|
|
698
|
-
const s = u, i = k(!1), l = k(e.range ? { start: null, end: null } : null), p = k(e.range ? { start: null, end: null } : null),
|
|
698
|
+
const s = u, i = k(!1), l = k(e.range ? { start: null, end: null } : null), p = k(e.range ? { start: null, end: null } : null), h = k((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), f = k((/* @__PURE__ */ new Date()).getFullYear()), m = k(e.range ? { start: 0, end: 0 } : 0), v = k(e.range ? { start: 0, end: 0 } : 0), z = k(null), Z = S(() => `${e.id}-input`), K = S(() => `${e.id}-popup`), C = S(() => e.mode === "date" || e.mode === "datetime"), I = S(() => e.mode === "time" || e.mode === "datetime");
|
|
699
699
|
S(() => new Date(f.value, B.value));
|
|
700
|
-
const B = S(() =>
|
|
700
|
+
const B = S(() => q.indexOf(h.value)), O = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], g = S(() => new Date(f.value, B.value).getDay()), D = S(() => {
|
|
701
701
|
const r = new Date(f.value, B.value + 1, 0).getDate();
|
|
702
702
|
return Array.from({ length: r }, (c, o) => new Date(f.value, B.value, o + 1));
|
|
703
|
-
}), A = S(() => Array.from({ length: g.value }, (r, c) => c)), G = Array.from({ length: 24 }, (r, c) => c), Q = Array.from({ length: 60 }, (r, c) => c),
|
|
703
|
+
}), A = S(() => Array.from({ length: g.value }, (r, c) => c)), G = Array.from({ length: 24 }, (r, c) => c), Q = Array.from({ length: 60 }, (r, c) => c), H = S(
|
|
704
704
|
() => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
705
705
|
navigator.userAgent
|
|
706
706
|
)
|
|
707
|
-
),
|
|
707
|
+
), q = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], me = S(() => {
|
|
708
708
|
const r = (/* @__PURE__ */ new Date()).getFullYear();
|
|
709
709
|
return Array.from({ length: 100 }, (c, o) => r - 50 + o);
|
|
710
710
|
}), ve = S(() => {
|
|
@@ -717,17 +717,17 @@ const Fe = ae("SunIcon", [
|
|
|
717
717
|
}), L = (r) => r instanceof Date ? r : new Date(r), N = (r) => r instanceof Date && !isNaN(r), fe = S(() => {
|
|
718
718
|
if (!I.value) return "";
|
|
719
719
|
const r = (c) => {
|
|
720
|
-
var
|
|
721
|
-
const o = ((
|
|
722
|
-
return
|
|
720
|
+
var Y, R, le;
|
|
721
|
+
const o = ((Y = m.value) == null ? void 0 : Y[c]) ?? m.value, P = ((R = v.value) == null ? void 0 : R[c]) ?? v.value;
|
|
722
|
+
return H.value ? ((le = p.value) == null ? void 0 : le[c]) ?? p.value : `${o.toString().padStart(2, "0")}:${P.toString().padStart(2, "0")}`;
|
|
723
723
|
};
|
|
724
724
|
return e.range ? `${r("start")} - ${r("end")}` : r();
|
|
725
725
|
}), ge = S(() => {
|
|
726
726
|
const r = ve.value, c = fe.value;
|
|
727
727
|
return `${r} ${c}`.trim();
|
|
728
|
-
}),
|
|
729
|
-
T(),
|
|
730
|
-
},
|
|
728
|
+
}), he = () => i.value = !i.value, oe = () => {
|
|
729
|
+
T(), be();
|
|
730
|
+
}, be = () => i.value = !1, ye = () => {
|
|
731
731
|
l.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, T();
|
|
732
732
|
}, we = (r) => {
|
|
733
733
|
e.range ? l.value.start && l.value.end ? l.value = { start: r, end: null } : l.value.start ? l.value.end = r : l.value.start = r : l.value = r, T();
|
|
@@ -743,18 +743,18 @@ const Fe = ae("SunIcon", [
|
|
|
743
743
|
return !1;
|
|
744
744
|
}, xe = () => {
|
|
745
745
|
let r = B.value - 1;
|
|
746
|
-
r < 0 && (r = 11, f.value--),
|
|
746
|
+
r < 0 && (r = 11, f.value--), h.value = q[r], T();
|
|
747
747
|
}, De = () => {
|
|
748
748
|
let r = B.value + 1;
|
|
749
|
-
r > 11 && (r = 0, f.value++),
|
|
749
|
+
r > 11 && (r = 0, f.value++), h.value = q[r], T();
|
|
750
750
|
}, se = (r) => {
|
|
751
751
|
z.value && !z.value.contains(r.target) && i.value == !0 && oe();
|
|
752
752
|
}, T = () => {
|
|
753
753
|
let r = {};
|
|
754
|
-
const c = (o, P,
|
|
754
|
+
const c = (o, P, Y) => {
|
|
755
755
|
o instanceof Date && !isNaN(o) || (o = /* @__PURE__ */ new Date());
|
|
756
756
|
const R = new Date(o);
|
|
757
|
-
return R.setUTCHours(P,
|
|
757
|
+
return R.setUTCHours(P, Y, 0, 0), R.toISOString();
|
|
758
758
|
};
|
|
759
759
|
e.range ? (r.from = c(
|
|
760
760
|
l.value.start,
|
|
@@ -782,7 +782,7 @@ const Fe = ae("SunIcon", [
|
|
|
782
782
|
}, [
|
|
783
783
|
t("div", {
|
|
784
784
|
class: "flex items-center gap-2 cursor-pointer",
|
|
785
|
-
onClick:
|
|
785
|
+
onClick: he
|
|
786
786
|
}, [
|
|
787
787
|
d.popup ? w(r.$slots, "default", { key: 0 }, () => [
|
|
788
788
|
t("input", {
|
|
@@ -823,15 +823,15 @@ const Fe = ae("SunIcon", [
|
|
|
823
823
|
])),
|
|
824
824
|
U(t("select", {
|
|
825
825
|
class: "border-none w-fit select",
|
|
826
|
-
"onUpdate:modelValue": c[0] || (c[0] = (o) =>
|
|
826
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => h.value = o),
|
|
827
827
|
onChange: T
|
|
828
828
|
}, [
|
|
829
|
-
(n(), a(y, null, _(
|
|
829
|
+
(n(), a(y, null, _(q, (o, P) => t("option", {
|
|
830
830
|
key: P,
|
|
831
831
|
value: o
|
|
832
|
-
},
|
|
832
|
+
}, b(o), 9, Ct)), 64))
|
|
833
833
|
], 544), [
|
|
834
|
-
[j,
|
|
834
|
+
[j, h.value]
|
|
835
835
|
]),
|
|
836
836
|
U(t("select", {
|
|
837
837
|
class: "border-none w-24 select",
|
|
@@ -841,7 +841,7 @@ const Fe = ae("SunIcon", [
|
|
|
841
841
|
(n(!0), a(y, null, _(me.value, (o) => (n(), a("option", {
|
|
842
842
|
key: o,
|
|
843
843
|
value: o
|
|
844
|
-
},
|
|
844
|
+
}, b(o), 9, St))), 128))
|
|
845
845
|
], 544), [
|
|
846
846
|
[j, f.value]
|
|
847
847
|
]),
|
|
@@ -869,7 +869,7 @@ const Fe = ae("SunIcon", [
|
|
|
869
869
|
(n(), a(y, null, _(O, (o) => t("div", {
|
|
870
870
|
key: o,
|
|
871
871
|
class: "text-center"
|
|
872
|
-
},
|
|
872
|
+
}, b(o), 1)), 64)),
|
|
873
873
|
(n(!0), a(y, null, _(A.value, (o) => (n(), a("div", {
|
|
874
874
|
key: o,
|
|
875
875
|
class: "text-center"
|
|
@@ -884,14 +884,14 @@ const Fe = ae("SunIcon", [
|
|
|
884
884
|
"in-range bg-primary/20 hover:bg-primary/10": Se(o)
|
|
885
885
|
}]),
|
|
886
886
|
onClick: (P) => we(o)
|
|
887
|
-
},
|
|
887
|
+
}, b(o.getDate()), 11, Dt))), 128))
|
|
888
888
|
])) : x("", !0),
|
|
889
889
|
I.value ? (n(), a("div", Tt, [
|
|
890
890
|
e.range ? x("", !0) : (n(), a("h3", Mt, "Select Time")),
|
|
891
891
|
e.range ? (n(), a("div", Vt, [
|
|
892
892
|
t("div", null, [
|
|
893
893
|
c[14] || (c[14] = t("p", { class: "font-bold" }, "Start Time", -1)),
|
|
894
|
-
|
|
894
|
+
H.value ? U((n(), a("input", {
|
|
895
895
|
key: 0,
|
|
896
896
|
type: "time",
|
|
897
897
|
class: "input-bordered w-full input",
|
|
@@ -908,7 +908,7 @@ const Fe = ae("SunIcon", [
|
|
|
908
908
|
(n(!0), a(y, null, _(V(G), (o) => (n(), a("option", {
|
|
909
909
|
key: o,
|
|
910
910
|
value: o
|
|
911
|
-
},
|
|
911
|
+
}, b(o.toString().padStart(2, "0")), 9, Pt))), 128))
|
|
912
912
|
], 544), [
|
|
913
913
|
[
|
|
914
914
|
j,
|
|
@@ -925,7 +925,7 @@ const Fe = ae("SunIcon", [
|
|
|
925
925
|
(n(!0), a(y, null, _(V(Q), (o) => (n(), a("option", {
|
|
926
926
|
key: o,
|
|
927
927
|
value: o
|
|
928
|
-
},
|
|
928
|
+
}, b(o.toString().padStart(2, "0")), 9, jt))), 128))
|
|
929
929
|
], 544), [
|
|
930
930
|
[
|
|
931
931
|
j,
|
|
@@ -938,7 +938,7 @@ const Fe = ae("SunIcon", [
|
|
|
938
938
|
]),
|
|
939
939
|
t("div", null, [
|
|
940
940
|
c[15] || (c[15] = t("p", { class: "font-bold" }, "End Time", -1)),
|
|
941
|
-
|
|
941
|
+
H.value ? U((n(), a("input", {
|
|
942
942
|
key: 0,
|
|
943
943
|
type: "time",
|
|
944
944
|
class: "input-bordered w-full input",
|
|
@@ -955,7 +955,7 @@ const Fe = ae("SunIcon", [
|
|
|
955
955
|
(n(!0), a(y, null, _(V(G), (o) => (n(), a("option", {
|
|
956
956
|
key: o,
|
|
957
957
|
value: o
|
|
958
|
-
},
|
|
958
|
+
}, b(o.toString().padStart(2, "0")), 9, Nt))), 128))
|
|
959
959
|
], 544), [
|
|
960
960
|
[
|
|
961
961
|
j,
|
|
@@ -972,7 +972,7 @@ const Fe = ae("SunIcon", [
|
|
|
972
972
|
(n(!0), a(y, null, _(V(Q), (o) => (n(), a("option", {
|
|
973
973
|
key: o,
|
|
974
974
|
value: o
|
|
975
|
-
},
|
|
975
|
+
}, b(o.toString().padStart(2, "0")), 9, Et))), 128))
|
|
976
976
|
], 544), [
|
|
977
977
|
[
|
|
978
978
|
j,
|
|
@@ -984,7 +984,7 @@ const Fe = ae("SunIcon", [
|
|
|
984
984
|
]))
|
|
985
985
|
])
|
|
986
986
|
])) : (n(), a("div", Bt, [
|
|
987
|
-
|
|
987
|
+
H.value ? U((n(), a("input", {
|
|
988
988
|
key: 0,
|
|
989
989
|
type: "time",
|
|
990
990
|
class: "input-bordered w-full input",
|
|
@@ -1001,7 +1001,7 @@ const Fe = ae("SunIcon", [
|
|
|
1001
1001
|
(n(!0), a(y, null, _(V(G), (o) => (n(), a("option", {
|
|
1002
1002
|
key: o,
|
|
1003
1003
|
value: o
|
|
1004
|
-
},
|
|
1004
|
+
}, b(o.toString().padStart(2, "0")), 9, Ot))), 128))
|
|
1005
1005
|
], 544), [
|
|
1006
1006
|
[
|
|
1007
1007
|
j,
|
|
@@ -1018,7 +1018,7 @@ const Fe = ae("SunIcon", [
|
|
|
1018
1018
|
(n(!0), a(y, null, _(V(Q), (o) => (n(), a("option", {
|
|
1019
1019
|
key: o,
|
|
1020
1020
|
value: o
|
|
1021
|
-
},
|
|
1021
|
+
}, b(o.toString().padStart(2, "0")), 9, Ut))), 128))
|
|
1022
1022
|
], 544), [
|
|
1023
1023
|
[
|
|
1024
1024
|
j,
|
|
@@ -1044,7 +1044,7 @@ const Fe = ae("SunIcon", [
|
|
|
1044
1044
|
], 10, kt)) : x("", !0)
|
|
1045
1045
|
], 512));
|
|
1046
1046
|
}
|
|
1047
|
-
}, Ft = /* @__PURE__ */
|
|
1047
|
+
}, Ft = /* @__PURE__ */ X(Rt, [["__scopeId", "data-v-e7e203aa"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1048
1048
|
__proto__: null,
|
|
1049
1049
|
default: Ft
|
|
1050
1050
|
}, Symbol.toStringTag, { value: "Module" })), qt = ["value", "checked", "onChange", "disabled"], Sn = /* @__PURE__ */ M({
|
|
@@ -1078,7 +1078,7 @@ const Fe = ae("SunIcon", [
|
|
|
1078
1078
|
type: "radio",
|
|
1079
1079
|
value: i.halfStars ? p * 0.5 : p,
|
|
1080
1080
|
checked: e.value === (i.halfStars ? p * 0.5 : p),
|
|
1081
|
-
onChange: (
|
|
1081
|
+
onChange: (h) => i.isInteractive ? s(i.halfStars ? p * 0.5 : p) : null,
|
|
1082
1082
|
class: $(["mask mask-star", {
|
|
1083
1083
|
"bg-yellow-400": e.value >= (i.halfStars ? p * 0.5 : p),
|
|
1084
1084
|
"mask-half-1": i.halfStars && p % 2 !== 0,
|
|
@@ -1107,27 +1107,29 @@ const Fe = ae("SunIcon", [
|
|
|
1107
1107
|
}
|
|
1108
1108
|
), (s, i) => e.value ? (n(), a("span", Yt)) : x("", !0);
|
|
1109
1109
|
}
|
|
1110
|
-
}), Jt = { class: "bg-base-200
|
|
1110
|
+
}), Jt = { class: "bg-base-200 text-base-content" }, Wt = { class: "mx-auto p-10 footer sm:footer-horizontal container" }, Xt = { class: "footer-title" }, Zt = ["href"], Dn = /* @__PURE__ */ M({
|
|
1111
1111
|
__name: "footer",
|
|
1112
1112
|
props: {
|
|
1113
1113
|
items: {}
|
|
1114
1114
|
},
|
|
1115
1115
|
setup(d) {
|
|
1116
1116
|
const u = d;
|
|
1117
|
-
return (e, s) => (n(), a("
|
|
1118
|
-
t("
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1117
|
+
return (e, s) => (n(), a("div", Jt, [
|
|
1118
|
+
t("footer", Wt, [
|
|
1119
|
+
(n(!0), a(y, null, _(u.items, (i) => (n(), a("nav", null, [
|
|
1120
|
+
t("h6", Xt, b(i.title), 1),
|
|
1121
|
+
(n(!0), a(y, null, _(i.items, (l) => (n(), a("a", {
|
|
1122
|
+
class: "link link-hover",
|
|
1123
|
+
href: l.link
|
|
1124
|
+
}, b(l.text), 9, Zt))), 256))
|
|
1125
|
+
]))), 256)),
|
|
1126
|
+
t("aside", null, [
|
|
1127
|
+
w(e.$slots, "default")
|
|
1128
|
+
])
|
|
1129
|
+
])
|
|
1128
1130
|
]));
|
|
1129
1131
|
}
|
|
1130
|
-
}),
|
|
1132
|
+
}), Kt = {}, Gt = { class: "min-h-40 container hero" }, Qt = { class: "px-0! text-center hero-content" }, en = { class: "mt-9 text-4xl" };
|
|
1131
1133
|
function tn(d, u) {
|
|
1132
1134
|
return n(), a("div", Gt, [
|
|
1133
1135
|
t("div", Qt, [
|
|
@@ -1147,7 +1149,7 @@ function tn(d, u) {
|
|
|
1147
1149
|
])
|
|
1148
1150
|
]);
|
|
1149
1151
|
}
|
|
1150
|
-
const Tn = /* @__PURE__ */
|
|
1152
|
+
const Tn = /* @__PURE__ */ X(Kt, [["render", tn]]), nn = { class: "categories flex flex-row gap-4 place-content-center" }, an = ["onClick"], Mn = /* @__PURE__ */ M({
|
|
1151
1153
|
__name: "categoryNavigation",
|
|
1152
1154
|
props: {
|
|
1153
1155
|
searchOptions: {},
|
|
@@ -1160,13 +1162,13 @@ const Tn = /* @__PURE__ */ H(Kt, [["render", tn]]), nn = { class: "categories fl
|
|
|
1160
1162
|
s("update:currentCategory", l);
|
|
1161
1163
|
}
|
|
1162
1164
|
return (l, p) => (n(), a("div", nn, [
|
|
1163
|
-
(n(!0), a(y, null, _(e.searchOptions, (
|
|
1164
|
-
key:
|
|
1165
|
+
(n(!0), a(y, null, _(e.searchOptions, (h) => (n(), a("div", {
|
|
1166
|
+
key: h.category
|
|
1165
1167
|
}, [
|
|
1166
1168
|
t("button", {
|
|
1167
|
-
onClick: (f) => i(
|
|
1168
|
-
class: $(["truncate", { "font-semibold": e.currentCategory ===
|
|
1169
|
-
}, h
|
|
1169
|
+
onClick: (f) => i(h.category),
|
|
1170
|
+
class: $(["truncate", { "font-semibold": e.currentCategory === h.category }])
|
|
1171
|
+
}, b(h.category), 11, an)
|
|
1170
1172
|
]))), 128))
|
|
1171
1173
|
]));
|
|
1172
1174
|
}
|
|
@@ -1194,7 +1196,7 @@ const Tn = /* @__PURE__ */ H(Kt, [["render", tn]]), nn = { class: "categories fl
|
|
|
1194
1196
|
])
|
|
1195
1197
|
], 2));
|
|
1196
1198
|
}
|
|
1197
|
-
}), Bn = /* @__PURE__ */
|
|
1199
|
+
}), Bn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-8ddb2b45"]]), dn = {
|
|
1198
1200
|
role: "tablist",
|
|
1199
1201
|
class: "tabs tabs-bordered tabs-lg mt-28 relative w-full"
|
|
1200
1202
|
}, cn = {
|
|
@@ -1220,7 +1222,7 @@ const Tn = /* @__PURE__ */ H(Kt, [["render", tn]]), nn = { class: "categories fl
|
|
|
1220
1222
|
const m = (e.items.indexOf(s.value) + 1) % e.items.length;
|
|
1221
1223
|
l(e.items[m]);
|
|
1222
1224
|
}
|
|
1223
|
-
function
|
|
1225
|
+
function h() {
|
|
1224
1226
|
const m = (e.items.indexOf(s.value) - 1 + e.items.length) % e.items.length;
|
|
1225
1227
|
l(e.items[m]);
|
|
1226
1228
|
}
|
|
@@ -1231,7 +1233,7 @@ const Tn = /* @__PURE__ */ H(Kt, [["render", tn]]), nn = { class: "categories fl
|
|
|
1231
1233
|
}), (f, m) => (n(), a("div", dn, [
|
|
1232
1234
|
f.withControlls ? (n(), a("div", cn, [
|
|
1233
1235
|
t("button", {
|
|
1234
|
-
onClick: m[0] || (m[0] = (v) =>
|
|
1236
|
+
onClick: m[0] || (m[0] = (v) => h()),
|
|
1235
1237
|
class: "cursor-pointer"
|
|
1236
1238
|
}, "Previous"),
|
|
1237
1239
|
t("button", {
|
|
@@ -1246,7 +1248,7 @@ const Tn = /* @__PURE__ */ H(Kt, [["render", tn]]), nn = { class: "categories fl
|
|
|
1246
1248
|
class: $(["tab min-w-max", v === s.value ? "bg-primary text-base-100" : ""]),
|
|
1247
1249
|
onClick: (z) => l(v),
|
|
1248
1250
|
"aria-selected": s.value == v
|
|
1249
|
-
},
|
|
1251
|
+
}, b(v), 11, pn),
|
|
1250
1252
|
t("div", mn, [
|
|
1251
1253
|
w(f.$slots, `${v}-tab`)
|
|
1252
1254
|
])
|
|
@@ -1267,10 +1269,10 @@ export {
|
|
|
1267
1269
|
Dn as Footer,
|
|
1268
1270
|
Tn as Hero,
|
|
1269
1271
|
xn as Loader,
|
|
1270
|
-
|
|
1272
|
+
hn as Modal,
|
|
1271
1273
|
Bn as NavigationBar,
|
|
1272
1274
|
Sn as Rating,
|
|
1273
|
-
|
|
1275
|
+
bn as Swap,
|
|
1274
1276
|
In as Tab,
|
|
1275
1277
|
yn as ThemeController
|
|
1276
1278
|
};
|
package/dist/manolis-ui.umd.cjs
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var D={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
12
12
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const ne=({size:c,strokeWidth:s=2,absoluteStrokeWidth:t,color:o,iconNode:r,name:l,class:d,...k},{slots:f})=>e.h("svg",{...
|
|
16
|
+
*/const ne=({size:c,strokeWidth:s=2,absoluteStrokeWidth:t,color:o,iconNode:r,name:l,class:d,...k},{slots:f})=>e.h("svg",{...D,width:c||D.width,height:c||D.height,stroke:o||D.stroke,"stroke-width":t?Number(s)*24/Number(c):s,class:["lucide",`lucide-${te(l??"icon")}`],...k},[...r.map(m=>e.h(...m)),...f.default?[f.default()]:[]]);/**
|
|
17
17
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const le=L("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),ae=(c,s)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(c);t.value=o?JSON.parse(o):s}}),e.watch(t,o=>{typeof window<"u"&&window.localStorage.setItem(c,JSON.stringify(o))}),t},re={class:"swap-rotate swap"},se=["true-value","false-value"],ce=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(c){const s=c,t=ae("theme",s.lightTheme);function o(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>o(t.value?t.value:"")),e.watch(t,r=>{o(r)}),(r,l)=>(e.openBlock(),e.createElementBlock("label",re,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":s.lightTheme,"false-value":s.darkTheme},null,8,se),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(le),{class:"swap-off fill-current"}),e.createVNode(e.unref(oe),{class:"swap-on fill-current"})]))}}),ie=["name"],de={class:"collapse-title text-xl font-medium"},me={class:"collapse-content"},pe=["innerHTML"],fe=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(c){const s=c;return(t,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse",[s.icon?`collapse-${s.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ie),e.createElementVNode("div",de,e.toDisplayString(r.title),1),e.createElementVNode("div",me,[e.createElementVNode("span",{innerHTML:r.content},null,8,pe)])],2))),128))}}),ue={key:0,class:"rounded-sm"},ge=["src"],ke={key:1,class:"bg-neutral text-neutral-content w-16 rounded-full flex justify-center p-[25%] text-center"},he={class:"text-xl"},be=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{}},setup(c){const s=c,t=e.ref(s.onlineStatus);return e.watch(()=>s.onlineStatus,o=>{o&&(t.value=o)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",o.onlineStatus])},[o.image?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("img",{src:o.image,class:"w-full h-full"},null,8,ge)])):(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("p",he,e.toDisplayString(o.initials),1)]))],2))}}),ye=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(c){const s=c,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[s.size],o[s.color],{"badge-outline":s.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),Be=["src","alt"],we={key:1,class:"w-full h-32 skeleton"},Ee={key:0,class:"card-body"},_e={key:0,class:"group-hover:text-primary text-left text-lg cursor-pointer card-title"},Se={key:1,class:"text-left"},Ce={class:"flex-col flex-nowrap mt-auto card-actions"},Ve={key:1,class:"card-body"},$e=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""}},setup(c){const s=c,t=e.ref(s.outlined);return e.watch(()=>s.outlined,o=>{t.value=o}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group",t.value?"border-4 border-primary":""])},[e.createElementVNode("figure",null,[o.imgUrl||o.imgUrl&&!o.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgUrl,alt:o.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:o.loading}])},null,10,Be)):e.createCommentVNode("",!0),o.loading&&o.imgUrl?(e.openBlock(),e.createElementBlock("div",we)):e.createCommentVNode("",!0)]),o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ee,[o.title?(e.openBlock(),e.createElementBlock("h2",_e,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),o.description?(e.openBlock(),e.createElementBlock("p",Se,e.toDisplayString(o.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ce,[e.renderSlot(o.$slots,"actions")])])),o.loading?(e.openBlock(),e.createElementBlock("div",Ve,r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),Ne={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},De=["onClick"],xe={class:"text-sm"},Me={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},Te={class:"hidden"},ze={id:"advancedSearchMobile",class:"modal"},Le={class:"modal-box"},Fe={class:"font-bold text-lg"},Ie=["checked"],Oe={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Ue={class:"text-sm"},Ae={class:"flex place-content-center p-0 collapse-content"},Pe=e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(c,{emit:s}){const t=c,o=s,r=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>it))},d=e.ref({}),k=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),f=e.ref(null);function m(h,w){var B,E,u;if((B=r.value)!=null&&B.name){o("update:search-data",{tab:r.value.name,data:h});return}if(t.searchOptions){let b=(u=(E=t.searchOptions)==null?void 0:E.find(_=>(_==null?void 0:_.category)===t.currentCategory))==null?void 0:u.tabs[w];b!==void 0&&(b.value=h,o("update:search-data",{tab:b==null?void 0:b.name,data:b==null?void 0:b.value}))}}function p(){o("search")}async function C(h){f.value&&!f.value.contains(h.target)&&(await e.nextTick(),r.value=null)}async function F(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById("advancedSearchMobile");h?h.showModal():console.warn("Modal element not found.")}}async function I(h){var B;r.value=h,await e.nextTick();const w=d.value[h.name];if(w){const E=w.getBoundingClientRect(),u=((B=f.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?k.value={left:`${E.left+E.width/2-u.left}px`,top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}:k.value={left:"50%",top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",h.name)}return e.onMounted(()=>{document.addEventListener("click",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),(h,w)=>{var B,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:f,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:F},[e.createElementVNode("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((B=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:B.tabs)||[],u=>{var b;return e.openBlock(),e.createElementBlock("button",{key:u.name,onClick:_=>I(u),class:e.normalizeClass([{"tab-active":((b=r.value)==null?void 0:b.name)===u.name},"group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),ref_for:!0,ref:_=>d.value[u.name]=_},[e.createElementVNode("p",xe,e.toDisplayString(u.name),1),e.createElementVNode("p",Me,e.toDisplayString(u.description),1)],10,De)}),128))]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(k.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[r.value.type]),e.mergeProps(r.value.props?r.value.props:null,{onUpdated:m}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:p},[e.createVNode(e.unref(A),{size:24,color:"white"})])]),e.createElementVNode("div",Te,[e.createElementVNode("button",{title:"search",onClick:w[0]||(w[0]=()=>{})},[e.createVNode(e.unref(A),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",ze,[e.createElementVNode("div",Le,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Fe,e.toDisplayString(h.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:E.tabs)||[],(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:u.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:b===0},null,8,Ie),e.createElementVNode("div",Oe,[e.createTextVNode(e.toDisplayString(u.name)+" ",1),e.createElementVNode("p",Ue,e.toDisplayString(u.description),1)]),e.createElementVNode("div",Ae,[w[1]||(w[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[u.type]),e.mergeProps({ref_for:!0},u.props||{},{onUpdated:_=>m(_,b)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:p},"Close and Search")])])])])],64)}}}),$=(c,s)=>{const t=c.__vccOpts||c;for(const[o,r]of s)t[o]=r;return t},je=$(Pe,[["__scopeId","data-v-08fa37eb"]]),Re=["placeholder","value","id"],He=["id"],qe={key:0,class:"flex justify-between items-center place-content-center mb-4"},Ye=["value"],Je=["value"],We={key:1,class:"gap-2 grid grid-cols-7"},Xe=["onClick"],Ze={key:2,class:"mt-4 lg:w-80"},Ke={key:0,class:"mb-2 font-bold text-lg"},Ge={key:1},Qe={key:1,class:"flex gap-4"},ve=["value"],et=["value"],tt={key:2,class:"flex flex-col gap-4"},nt={key:1,class:"flex gap-2"},ot=["value"],lt=["value"],at={key:1,class:"flex gap-2"},rt=["value"],st=["value"],ct={class:"flex gap-2 mt-4"},P=$({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:c=>["datetime","date","time"].includes(c)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(c,{emit:s}){const t=c;e.watch(()=>t.range,a=>{a?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const o=s,r=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),f=e.ref(new Date().getFullYear()),m=e.ref(t.range?{start:0,end:0}:0),p=e.ref(t.range?{start:0,end:0}:0),C=e.ref(null),F=e.computed(()=>`${t.id}-input`),I=e.computed(()=>`${t.id}-popup`),h=e.computed(()=>t.mode==="date"||t.mode==="datetime"),w=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(f.value,B.value));const B=e.computed(()=>T.indexOf(k.value)),E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=e.computed(()=>new Date(f.value,B.value).getDay()),b=e.computed(()=>{const a=new Date(f.value,B.value+1,0).getDate();return Array.from({length:a},(i,n)=>new Date(f.value,B.value,n+1))}),_=e.computed(()=>Array.from({length:u.value},(a,i)=>i)),O=Array.from({length:24},(a,i)=>i),U=Array.from({length:60},(a,i)=>i),M=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),T=["January","February","March","April","May","June","July","August","September","October","November","December"],Ot=e.computed(()=>{const a=new Date().getFullYear();return Array.from({length:100},(i,n)=>a-50+n)}),Ut=e.computed(()=>{if(!h.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const a=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${a} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),N=a=>a instanceof Date?a:new Date(a),V=a=>a instanceof Date&&!isNaN(a),At=e.computed(()=>{if(!w.value)return"";const a=i=>{var z,D,H;const n=((z=m.value)==null?void 0:z[i])??m.value,S=((D=p.value)==null?void 0:D[i])??p.value;return M.value?((H=d.value)==null?void 0:H[i])??d.value:`${n.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`};return t.range?`${a("start")} - ${a("end")}`:a()}),Pt=e.computed(()=>{const a=Ut.value,i=At.value;return`${a} ${i}`.trim()}),jt=()=>r.value=!r.value,j=()=>{y(),Rt()},Rt=()=>r.value=!1,Ht=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,y()},qt=a=>{t.range?l.value.start&&l.value.end?l.value={start:a,end:null}:l.value.start?l.value.end=a:l.value.start=a:l.value=a,y()},Yt=a=>(a=N(a),t.range?l.value.start&&V(l.value.start)&&a.getTime()===l.value.start.getTime()||l.value.end&&V(l.value.end)&&a.getTime()===l.value.end.getTime():V(l.value)&&a.getTime()===l.value.getTime()),Jt=a=>{a=N(a);const i=new Date;return a.getDate()===i.getDate()&&a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()},Wt=a=>(a=N(a),t.range&&V(l.value.start)&&a.getTime()===l.value.start.getTime()),Xt=a=>(a=N(a),t.range&&V(l.value.end)&&a.getTime()===l.value.end.getTime()),Zt=a=>{if(a=N(a),t.range&&V(l.value.start)&&V(l.value.end)){const i=l.value.start.getTime(),n=l.value.end.getTime(),S=a.getTime();return S>i&&S<n}return!1},Kt=()=>{let a=B.value-1;a<0&&(a=11,f.value--),k.value=T[a],y()},Gt=()=>{let a=B.value+1;a>11&&(a=0,f.value++),k.value=T[a],y()},R=a=>{C.value&&!C.value.contains(a.target)&&r.value==!0&&j()},y=()=>{let a={};const i=(n,S,z)=>{n instanceof Date&&!isNaN(n)||(n=new Date);const D=new Date(n);return D.setUTCHours(S,z,0,0),D.toISOString()};t.range?(a.from=i(l.value.start,m.value.start,p.value.start),a.to=i(l.value.end,m.value.end,p.value.end)):a=i(l.value,m.value,p.value),o("updated",a)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(m.value.start=m.value.start??new Date().getHours(),m.value.end=m.value.end??new Date().getHours(),p.value.start=p.value.start??new Date().getMinutes(),p.value.end=p.value.end??new Date().getMinutes()):(m.value=m.value??new Date().getHours(),p.value=p.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",R)),e.onUnmounted(()=>document.removeEventListener("click",R)),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:C},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:jt},[c.popup?e.renderSlot(a.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:c.placeholder,value:Pt.value,readonly:"",id:F.value},null,8,Re),i[11]||(i[11]=e.createElementVNode("button",{class:"btn btn-ghost"}," 📅 ",-1))],!0):e.createCommentVNode("",!0)]),r.value||!c.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 px-4 md:p-4 rounded-md w-full",[{absolute:c.popup}]]),id:I.value},[h.value?(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("button",{class:"md:block hidden btn btn-outline btn-primary md:btn-sm",onClick:Kt},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=n=>k.value=n),onChange:y},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,(n,S)=>e.createElementVNode("option",{key:S,value:n},e.toDisplayString(n),9,Ye)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=n=>f.value=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ot.value,n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n),9,Je))),128))],544),[[e.vModelSelect,f.value]]),e.createElementVNode("button",{class:"md:block hidden btn btn-outline btn-primary md:btn-sm",onClick:Gt},i[13]||(i[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,n=>e.createElementVNode("div",{key:n,class:"text-center"},e.toDisplayString(n),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Yt(n),today:Jt(n),"range-start bg-primary text-primary-content":Wt(n),"range-end bg-primary text-primary-content":Xt(n),"in-range bg-primary/20 hover:bg-primary/10":Zt(n)}]),onClick:S=>qt(n)},e.toDisplayString(n.getDate()),11,Xe))),128))])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",Ze,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",Ke,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=n=>d.value.start=n),onChange:y},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",nt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=n=>m.value.start=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(O),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,ot))),128))],544),[[e.vModelSelect,m.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=n=>p.value.start=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,lt))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[15]||(i[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=n=>d.value.end=n),onChange:y},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",at,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=n=>m.value.end=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(O),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,rt))),128))],544),[[e.vModelSelect,m.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=n=>p.value.end=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,st))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",Ge,[M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=n=>d.value=n),onChange:y},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",Qe,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=n=>m.value=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(O),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,ve))),128))],544),[[e.vModelSelect,m.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=n=>p.value=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,et))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",ct,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",c.popup?"w-fit":"w-full"]),onClick:Ht},"Clear",2),c.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:j},"Close")):e.createCommentVNode("",!0)])],10,He)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-e7e203aa"]]),it=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),dt=["value","checked","onChange","disabled"],mt=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(c){const s=c,t=e.ref(s.initialRating);e.watch(()=>s.initialRating,r=>{t.value=r});const o=r=>{t.value=r};return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${s.size}`,{"rating-half":r.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.numberOfStars*(r.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:r.halfStars?d*.5:d,checked:t.value===(r.halfStars?d*.5:d),onChange:k=>r.isInteractive?o(r.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(r.halfStars?d*.5:d),"mask-half-1":r.halfStars&&d%2!==0,"mask-half-2":r.halfStars&&d%2===0,"cursor-pointer":r.isInteractive,"cursor-default":!r.isInteractive}]),disabled:!r.isInteractive},null,42,dt))),128))],2))}}),pt={key:0,class:"loading loading-spinner loading-md mx-auto"},ft=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0}},setup(c){const s=c,t=e.ref(s.loading);return e.watch(()=>s.loading,o=>{t.value=o}),(o,r)=>t.value?(e.openBlock(),e.createElementBlock("span",pt)):e.createCommentVNode("",!0)}}),ut={class:"bg-base-200 p-10 text-base-content md:footer-horizontal"},gt={class:"after:absolute after:flex opacity-100 border-b-4 border-base-300 after:border-b-2 after:border-base-300 after:w-full after:h-1 font-bold text-xl footer-title"},kt=["href"],ht=$(e.defineComponent({__name:"footer",props:{items:{}},setup(c){const s=c;return(t,o)=>(e.openBlock(),e.createElementBlock("footer",ut,[e.createElementVNode("aside",null,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("h6",gt,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,kt))),256))]))),256))]))}}),[["__scopeId","data-v-90886159"]]),bt={},yt={class:"min-h-40 container hero"},Bt={class:"px-0! text-center hero-content"},wt={class:"mt-9 text-4xl"};function Et(c,s){return e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",null,[e.createElementVNode("h1",wt,[e.renderSlot(c.$slots,"title",{},()=>[s[0]||(s[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(c.$slots,"description",{class:"py-9"})]),e.renderSlot(c.$slots,"call-to-action-block",{class:"max-w-full"},()=>[s[1]||(s[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const _t=$(bt,[["render",Et]]),St={class:"categories flex flex-row gap-4 place-content-center"},Ct=["onClick"],Vt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(c,{emit:s}){const t=c,o=s;function r(l){o("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:f=>r(k.category),class:e.normalizeClass(["truncate",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,Ct)]))),128))]))}}),$t={class:"md:flex hidden navbar-start"},Nt={class:"md:flex justify-center items-center hidden navbar-center"},Dt={class:"md:flex hidden navbar-end"},xt={class:"navbar-bottom md:flex hidden"},Mt=$(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(c){const s=c;return(t,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",s.isCollapsed?"collapsed":""])},[e.createElementVNode("div",$t,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Nt,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Dt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",xt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Tt={role:"tablist",class:"tabs tabs-bordered tabs-lg mt-28 relative w-full"},zt={key:0,class:"hidden md:flex gap-4 right-0 top-4 absolute"},Lt=["onClick","aria-selected"],Ft={role:"tabpanel",class:"tab-content border-base-300 border-t-2 border-x-0 border-b-0 p-6 overflow-x-auto max-w-full"},It=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean},rotateTabsAfter:{}},emits:["tab-changed"],setup(c,{emit:s}){const t=c,o=e.ref(t.items[0]),r=s;function l(f){o.value=f,r("tab-changed",f)}function d(){const m=(t.items.indexOf(o.value)+1)%t.items.length;l(t.items[m])}function k(){const m=(t.items.indexOf(o.value)-1+t.items.length)%t.items.length;l(t.items[m])}return e.onUnmounted(()=>{t.rotateTabsAfter&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(f,m)=>(e.openBlock(),e.createElementBlock("div",Tt,[f.withControlls?(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("button",{onClick:m[0]||(m[0]=p=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:m[1]||(m[1]=p=>d()),class:"cursor-pointer text-primary"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,p=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["tab min-w-max",p===o.value?"bg-primary text-base-100":""]),onClick:C=>l(p),"aria-selected":o.value==p},e.toDisplayString(p),11,Lt),e.createElementVNode("div",Ft,[e.renderSlot(f.$slots,`${p}-tab`)])],64))),256))]))}});g.Accordion=fe,g.AdvancedSearch=je,g.Avatar=be,g.Badge=ye,g.ButtonComponent=Y,g.Card=$e,g.CategoryNavigation=Vt,g.DatetimePicker=P,g.Dropdown=X,g.Footer=ht,g.Hero=_t,g.Loader=ft,g.Modal=G,g.NavigationBar=Mt,g.Rating=mt,g.Swap=ee,g.Tab=It,g.ThemeController=ce,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
|
36
|
+
*/const le=L("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),ae=(c,s)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(c);t.value=o?JSON.parse(o):s}}),e.watch(t,o=>{typeof window<"u"&&window.localStorage.setItem(c,JSON.stringify(o))}),t},re={class:"swap-rotate swap"},se=["true-value","false-value"],ce=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(c){const s=c,t=ae("theme",s.lightTheme);function o(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>o(t.value?t.value:"")),e.watch(t,r=>{o(r)}),(r,l)=>(e.openBlock(),e.createElementBlock("label",re,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":s.lightTheme,"false-value":s.darkTheme},null,8,se),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(le),{class:"swap-off fill-current"}),e.createVNode(e.unref(oe),{class:"swap-on fill-current"})]))}}),ie=["name"],de={class:"collapse-title text-xl font-medium"},me={class:"collapse-content"},pe=["innerHTML"],fe=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(c){const s=c;return(t,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse",[s.icon?`collapse-${s.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ie),e.createElementVNode("div",de,e.toDisplayString(r.title),1),e.createElementVNode("div",me,[e.createElementVNode("span",{innerHTML:r.content},null,8,pe)])],2))),128))}}),ue={key:0,class:"rounded-sm"},ge=["src"],ke={key:1,class:"bg-neutral text-neutral-content w-16 rounded-full flex justify-center p-[25%] text-center"},he={class:"text-xl"},be=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{}},setup(c){const s=c,t=e.ref(s.onlineStatus);return e.watch(()=>s.onlineStatus,o=>{o&&(t.value=o)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",o.onlineStatus])},[o.image?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("img",{src:o.image,class:"w-full h-full"},null,8,ge)])):(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("p",he,e.toDisplayString(o.initials),1)]))],2))}}),ye=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(c){const s=c,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[s.size],o[s.color],{"badge-outline":s.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),Be=["src","alt"],we={key:1,class:"w-full h-32 skeleton"},Ee={key:0,class:"card-body"},_e={key:0,class:"group-hover:text-primary text-left text-lg cursor-pointer card-title"},Se={key:1,class:"text-left"},Ce={class:"flex-col flex-nowrap mt-auto card-actions"},Ve={key:1,class:"card-body"},$e=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""}},setup(c){const s=c,t=e.ref(s.outlined);return e.watch(()=>s.outlined,o=>{t.value=o}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group",t.value?"border-4 border-primary":""])},[e.createElementVNode("figure",null,[o.imgUrl||o.imgUrl&&!o.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgUrl,alt:o.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:o.loading}])},null,10,Be)):e.createCommentVNode("",!0),o.loading&&o.imgUrl?(e.openBlock(),e.createElementBlock("div",we)):e.createCommentVNode("",!0)]),o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ee,[o.title?(e.openBlock(),e.createElementBlock("h2",_e,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),o.description?(e.openBlock(),e.createElementBlock("p",Se,e.toDisplayString(o.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ce,[e.renderSlot(o.$slots,"actions")])])),o.loading?(e.openBlock(),e.createElementBlock("div",Ve,r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),Ne={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},De=["onClick"],xe={class:"text-sm"},Me={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},Te={class:"hidden"},ze={id:"advancedSearchMobile",class:"modal"},Le={class:"modal-box"},Fe={class:"font-bold text-lg"},Oe=["checked"],Ie={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Ue={class:"text-sm"},Ae={class:"flex place-content-center p-0 collapse-content"},Pe=e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(c,{emit:s}){const t=c,o=s,r=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>it))},d=e.ref({}),k=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),f=e.ref(null);function m(h,w){var B,E,u;if((B=r.value)!=null&&B.name){o("update:search-data",{tab:r.value.name,data:h});return}if(t.searchOptions){let b=(u=(E=t.searchOptions)==null?void 0:E.find(_=>(_==null?void 0:_.category)===t.currentCategory))==null?void 0:u.tabs[w];b!==void 0&&(b.value=h,o("update:search-data",{tab:b==null?void 0:b.name,data:b==null?void 0:b.value}))}}function p(){o("search")}async function C(h){f.value&&!f.value.contains(h.target)&&(await e.nextTick(),r.value=null)}async function F(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById("advancedSearchMobile");h?h.showModal():console.warn("Modal element not found.")}}async function O(h){var B;r.value=h,await e.nextTick();const w=d.value[h.name];if(w){const E=w.getBoundingClientRect(),u=((B=f.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?k.value={left:`${E.left+E.width/2-u.left}px`,top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}:k.value={left:"50%",top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",h.name)}return e.onMounted(()=>{document.addEventListener("click",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),(h,w)=>{var B,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:f,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:F},[e.createElementVNode("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((B=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:B.tabs)||[],u=>{var b;return e.openBlock(),e.createElementBlock("button",{key:u.name,onClick:_=>O(u),class:e.normalizeClass([{"tab-active":((b=r.value)==null?void 0:b.name)===u.name},"group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),ref_for:!0,ref:_=>d.value[u.name]=_},[e.createElementVNode("p",xe,e.toDisplayString(u.name),1),e.createElementVNode("p",Me,e.toDisplayString(u.description),1)],10,De)}),128))]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(k.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[r.value.type]),e.mergeProps(r.value.props?r.value.props:null,{onUpdated:m}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:p},[e.createVNode(e.unref(A),{size:24,color:"white"})])]),e.createElementVNode("div",Te,[e.createElementVNode("button",{title:"search",onClick:w[0]||(w[0]=()=>{})},[e.createVNode(e.unref(A),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",ze,[e.createElementVNode("div",Le,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Fe,e.toDisplayString(h.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:E.tabs)||[],(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:u.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:b===0},null,8,Oe),e.createElementVNode("div",Ie,[e.createTextVNode(e.toDisplayString(u.name)+" ",1),e.createElementVNode("p",Ue,e.toDisplayString(u.description),1)]),e.createElementVNode("div",Ae,[w[1]||(w[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[u.type]),e.mergeProps({ref_for:!0},u.props||{},{onUpdated:_=>m(_,b)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:p},"Close and Search")])])])])],64)}}}),x=(c,s)=>{const t=c.__vccOpts||c;for(const[o,r]of s)t[o]=r;return t},je=x(Pe,[["__scopeId","data-v-08fa37eb"]]),Re=["placeholder","value","id"],He=["id"],qe={key:0,class:"flex justify-between items-center place-content-center mb-4"},Ye=["value"],Je=["value"],We={key:1,class:"gap-2 grid grid-cols-7"},Xe=["onClick"],Ze={key:2,class:"mt-4 lg:w-80"},Ke={key:0,class:"mb-2 font-bold text-lg"},Ge={key:1},Qe={key:1,class:"flex gap-4"},ve=["value"],et=["value"],tt={key:2,class:"flex flex-col gap-4"},nt={key:1,class:"flex gap-2"},ot=["value"],lt=["value"],at={key:1,class:"flex gap-2"},rt=["value"],st=["value"],ct={class:"flex gap-2 mt-4"},P=x({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:c=>["datetime","date","time"].includes(c)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(c,{emit:s}){const t=c;e.watch(()=>t.range,a=>{a?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const o=s,r=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),f=e.ref(new Date().getFullYear()),m=e.ref(t.range?{start:0,end:0}:0),p=e.ref(t.range?{start:0,end:0}:0),C=e.ref(null),F=e.computed(()=>`${t.id}-input`),O=e.computed(()=>`${t.id}-popup`),h=e.computed(()=>t.mode==="date"||t.mode==="datetime"),w=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(f.value,B.value));const B=e.computed(()=>T.indexOf(k.value)),E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=e.computed(()=>new Date(f.value,B.value).getDay()),b=e.computed(()=>{const a=new Date(f.value,B.value+1,0).getDate();return Array.from({length:a},(i,n)=>new Date(f.value,B.value,n+1))}),_=e.computed(()=>Array.from({length:u.value},(a,i)=>i)),I=Array.from({length:24},(a,i)=>i),U=Array.from({length:60},(a,i)=>i),M=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),T=["January","February","March","April","May","June","July","August","September","October","November","December"],Ut=e.computed(()=>{const a=new Date().getFullYear();return Array.from({length:100},(i,n)=>a-50+n)}),At=e.computed(()=>{if(!h.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const a=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${a} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),$=a=>a instanceof Date?a:new Date(a),V=a=>a instanceof Date&&!isNaN(a),Pt=e.computed(()=>{if(!w.value)return"";const a=i=>{var z,N,H;const n=((z=m.value)==null?void 0:z[i])??m.value,S=((N=p.value)==null?void 0:N[i])??p.value;return M.value?((H=d.value)==null?void 0:H[i])??d.value:`${n.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`};return t.range?`${a("start")} - ${a("end")}`:a()}),jt=e.computed(()=>{const a=At.value,i=Pt.value;return`${a} ${i}`.trim()}),Rt=()=>r.value=!r.value,j=()=>{y(),Ht()},Ht=()=>r.value=!1,qt=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,y()},Yt=a=>{t.range?l.value.start&&l.value.end?l.value={start:a,end:null}:l.value.start?l.value.end=a:l.value.start=a:l.value=a,y()},Jt=a=>(a=$(a),t.range?l.value.start&&V(l.value.start)&&a.getTime()===l.value.start.getTime()||l.value.end&&V(l.value.end)&&a.getTime()===l.value.end.getTime():V(l.value)&&a.getTime()===l.value.getTime()),Wt=a=>{a=$(a);const i=new Date;return a.getDate()===i.getDate()&&a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()},Xt=a=>(a=$(a),t.range&&V(l.value.start)&&a.getTime()===l.value.start.getTime()),Zt=a=>(a=$(a),t.range&&V(l.value.end)&&a.getTime()===l.value.end.getTime()),Kt=a=>{if(a=$(a),t.range&&V(l.value.start)&&V(l.value.end)){const i=l.value.start.getTime(),n=l.value.end.getTime(),S=a.getTime();return S>i&&S<n}return!1},Gt=()=>{let a=B.value-1;a<0&&(a=11,f.value--),k.value=T[a],y()},Qt=()=>{let a=B.value+1;a>11&&(a=0,f.value++),k.value=T[a],y()},R=a=>{C.value&&!C.value.contains(a.target)&&r.value==!0&&j()},y=()=>{let a={};const i=(n,S,z)=>{n instanceof Date&&!isNaN(n)||(n=new Date);const N=new Date(n);return N.setUTCHours(S,z,0,0),N.toISOString()};t.range?(a.from=i(l.value.start,m.value.start,p.value.start),a.to=i(l.value.end,m.value.end,p.value.end)):a=i(l.value,m.value,p.value),o("updated",a)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(m.value.start=m.value.start??new Date().getHours(),m.value.end=m.value.end??new Date().getHours(),p.value.start=p.value.start??new Date().getMinutes(),p.value.end=p.value.end??new Date().getMinutes()):(m.value=m.value??new Date().getHours(),p.value=p.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",R)),e.onUnmounted(()=>document.removeEventListener("click",R)),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:C},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:Rt},[c.popup?e.renderSlot(a.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:c.placeholder,value:jt.value,readonly:"",id:F.value},null,8,Re),i[11]||(i[11]=e.createElementVNode("button",{class:"btn btn-ghost"}," 📅 ",-1))],!0):e.createCommentVNode("",!0)]),r.value||!c.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 px-4 md:p-4 rounded-md w-full",[{absolute:c.popup}]]),id:O.value},[h.value?(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("button",{class:"md:block hidden btn btn-outline btn-primary md:btn-sm",onClick:Gt},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=n=>k.value=n),onChange:y},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,(n,S)=>e.createElementVNode("option",{key:S,value:n},e.toDisplayString(n),9,Ye)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=n=>f.value=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ut.value,n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n),9,Je))),128))],544),[[e.vModelSelect,f.value]]),e.createElementVNode("button",{class:"md:block hidden btn btn-outline btn-primary md:btn-sm",onClick:Qt},i[13]||(i[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,n=>e.createElementVNode("div",{key:n,class:"text-center"},e.toDisplayString(n),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Jt(n),today:Wt(n),"range-start bg-primary text-primary-content":Xt(n),"range-end bg-primary text-primary-content":Zt(n),"in-range bg-primary/20 hover:bg-primary/10":Kt(n)}]),onClick:S=>Yt(n)},e.toDisplayString(n.getDate()),11,Xe))),128))])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",Ze,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",Ke,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=n=>d.value.start=n),onChange:y},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",nt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=n=>m.value.start=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,ot))),128))],544),[[e.vModelSelect,m.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=n=>p.value.start=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,lt))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[15]||(i[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=n=>d.value.end=n),onChange:y},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",at,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=n=>m.value.end=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,rt))),128))],544),[[e.vModelSelect,m.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=n=>p.value.end=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,st))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",Ge,[M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=n=>d.value=n),onChange:y},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",Qe,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=n=>m.value=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,ve))),128))],544),[[e.vModelSelect,m.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=n=>p.value=n),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),n=>(e.openBlock(),e.createElementBlock("option",{key:n,value:n},e.toDisplayString(n.toString().padStart(2,"0")),9,et))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",ct,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",c.popup?"w-fit":"w-full"]),onClick:qt},"Clear",2),c.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:j},"Close")):e.createCommentVNode("",!0)])],10,He)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-e7e203aa"]]),it=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),dt=["value","checked","onChange","disabled"],mt=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(c){const s=c,t=e.ref(s.initialRating);e.watch(()=>s.initialRating,r=>{t.value=r});const o=r=>{t.value=r};return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${s.size}`,{"rating-half":r.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.numberOfStars*(r.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:r.halfStars?d*.5:d,checked:t.value===(r.halfStars?d*.5:d),onChange:k=>r.isInteractive?o(r.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(r.halfStars?d*.5:d),"mask-half-1":r.halfStars&&d%2!==0,"mask-half-2":r.halfStars&&d%2===0,"cursor-pointer":r.isInteractive,"cursor-default":!r.isInteractive}]),disabled:!r.isInteractive},null,42,dt))),128))],2))}}),pt={key:0,class:"loading loading-spinner loading-md mx-auto"},ft=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0}},setup(c){const s=c,t=e.ref(s.loading);return e.watch(()=>s.loading,o=>{t.value=o}),(o,r)=>t.value?(e.openBlock(),e.createElementBlock("span",pt)):e.createCommentVNode("",!0)}}),ut={class:"bg-base-200 text-base-content"},gt={class:"mx-auto p-10 footer sm:footer-horizontal container"},kt={class:"footer-title"},ht=["href"],bt=e.defineComponent({__name:"footer",props:{items:{}},setup(c){const s=c;return(t,o)=>(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("footer",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("h6",kt,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,ht))),256))]))),256)),e.createElementVNode("aside",null,[e.renderSlot(t.$slots,"default")])])]))}}),yt={},Bt={class:"min-h-40 container hero"},wt={class:"px-0! text-center hero-content"},Et={class:"mt-9 text-4xl"};function _t(c,s){return e.openBlock(),e.createElementBlock("div",Bt,[e.createElementVNode("div",wt,[e.createElementVNode("div",null,[e.createElementVNode("h1",Et,[e.renderSlot(c.$slots,"title",{},()=>[s[0]||(s[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(c.$slots,"description",{class:"py-9"})]),e.renderSlot(c.$slots,"call-to-action-block",{class:"max-w-full"},()=>[s[1]||(s[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const St=x(yt,[["render",_t]]),Ct={class:"categories flex flex-row gap-4 place-content-center"},Vt=["onClick"],$t=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(c,{emit:s}){const t=c,o=s;function r(l){o("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:f=>r(k.category),class:e.normalizeClass(["truncate",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,Vt)]))),128))]))}}),Nt={class:"md:flex hidden navbar-start"},Dt={class:"md:flex justify-center items-center hidden navbar-center"},xt={class:"md:flex hidden navbar-end"},Mt={class:"navbar-bottom md:flex hidden"},Tt=x(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(c){const s=c;return(t,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",s.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Nt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Dt,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",xt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Mt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),zt={role:"tablist",class:"tabs tabs-bordered tabs-lg mt-28 relative w-full"},Lt={key:0,class:"hidden md:flex gap-4 right-0 top-4 absolute"},Ft=["onClick","aria-selected"],Ot={role:"tabpanel",class:"tab-content border-base-300 border-t-2 border-x-0 border-b-0 p-6 overflow-x-auto max-w-full"},It=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean},rotateTabsAfter:{}},emits:["tab-changed"],setup(c,{emit:s}){const t=c,o=e.ref(t.items[0]),r=s;function l(f){o.value=f,r("tab-changed",f)}function d(){const m=(t.items.indexOf(o.value)+1)%t.items.length;l(t.items[m])}function k(){const m=(t.items.indexOf(o.value)-1+t.items.length)%t.items.length;l(t.items[m])}return e.onUnmounted(()=>{t.rotateTabsAfter&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(f,m)=>(e.openBlock(),e.createElementBlock("div",zt,[f.withControlls?(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("button",{onClick:m[0]||(m[0]=p=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:m[1]||(m[1]=p=>d()),class:"cursor-pointer text-primary"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,p=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["tab min-w-max",p===o.value?"bg-primary text-base-100":""]),onClick:C=>l(p),"aria-selected":o.value==p},e.toDisplayString(p),11,Ft),e.createElementVNode("div",Ot,[e.renderSlot(f.$slots,`${p}-tab`)])],64))),256))]))}});g.Accordion=fe,g.AdvancedSearch=je,g.Avatar=be,g.Badge=ye,g.ButtonComponent=Y,g.Card=$e,g.CategoryNavigation=$t,g.DatetimePicker=P,g.Dropdown=X,g.Footer=bt,g.Hero=St,g.Loader=ft,g.Modal=G,g.NavigationBar=Tt,g.Rating=mt,g.Swap=ee,g.Tab=It,g.ThemeController=ce,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -2021,9 +2021,6 @@
|
|
|
2021
2021
|
.mb-4 {
|
|
2022
2022
|
margin-bottom: calc(var(--spacing) * 4);
|
|
2023
2023
|
}
|
|
2024
|
-
.mb-16 {
|
|
2025
|
-
margin-bottom: calc(var(--spacing) * 16);
|
|
2026
|
-
}
|
|
2027
2024
|
.ml-1 {
|
|
2028
2025
|
margin-left: calc(var(--spacing) * 1);
|
|
2029
2026
|
}
|
|
@@ -2417,9 +2414,6 @@
|
|
|
2417
2414
|
.flex-nowrap {
|
|
2418
2415
|
flex-wrap: nowrap;
|
|
2419
2416
|
}
|
|
2420
|
-
.flex-wrap {
|
|
2421
|
-
flex-wrap: wrap;
|
|
2422
|
-
}
|
|
2423
2417
|
.place-content-center {
|
|
2424
2418
|
place-content: center;
|
|
2425
2419
|
}
|
|
@@ -2726,9 +2720,6 @@
|
|
|
2726
2720
|
.opacity-35 {
|
|
2727
2721
|
opacity: 35%;
|
|
2728
2722
|
}
|
|
2729
|
-
.opacity-100 {
|
|
2730
|
-
opacity: 100%;
|
|
2731
|
-
}
|
|
2732
2723
|
.shadow-md {
|
|
2733
2724
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2734
2725
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2855,18 +2846,6 @@
|
|
|
2855
2846
|
right: calc(var(--spacing) * -2);
|
|
2856
2847
|
}
|
|
2857
2848
|
}
|
|
2858
|
-
.after\:flex {
|
|
2859
|
-
&::after {
|
|
2860
|
-
content: var(--tw-content);
|
|
2861
|
-
display: flex;
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
.after\:h-1 {
|
|
2865
|
-
&::after {
|
|
2866
|
-
content: var(--tw-content);
|
|
2867
|
-
height: calc(var(--spacing) * 1);
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
2849
|
.after\:h-10 {
|
|
2871
2850
|
&::after {
|
|
2872
2851
|
content: var(--tw-content);
|
|
@@ -2879,25 +2858,6 @@
|
|
|
2879
2858
|
width: 1px;
|
|
2880
2859
|
}
|
|
2881
2860
|
}
|
|
2882
|
-
.after\:w-full {
|
|
2883
|
-
&::after {
|
|
2884
|
-
content: var(--tw-content);
|
|
2885
|
-
width: 100%;
|
|
2886
|
-
}
|
|
2887
|
-
}
|
|
2888
|
-
.after\:border-b-2 {
|
|
2889
|
-
&::after {
|
|
2890
|
-
content: var(--tw-content);
|
|
2891
|
-
border-bottom-style: var(--tw-border-style);
|
|
2892
|
-
border-bottom-width: 2px;
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
.after\:border-base-300 {
|
|
2896
|
-
&::after {
|
|
2897
|
-
content: var(--tw-content);
|
|
2898
|
-
border-color: var(--color-base-300);
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
2861
|
.after\:bg-base-200 {
|
|
2902
2862
|
&::after {
|
|
2903
2863
|
content: var(--tw-content);
|
|
@@ -2944,6 +2904,14 @@
|
|
|
2944
2904
|
}
|
|
2945
2905
|
}
|
|
2946
2906
|
}
|
|
2907
|
+
.sm\:footer-horizontal {
|
|
2908
|
+
@media (width >= 40rem) {
|
|
2909
|
+
grid-auto-flow: column;
|
|
2910
|
+
&.footer-center {
|
|
2911
|
+
grid-auto-flow: row dense;
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2947
2915
|
.md\:pointer-events-auto {
|
|
2948
2916
|
@media (width >= 48rem) {
|
|
2949
2917
|
pointer-events: auto;
|
|
@@ -2974,14 +2942,6 @@
|
|
|
2974
2942
|
cursor: auto;
|
|
2975
2943
|
}
|
|
2976
2944
|
}
|
|
2977
|
-
.md\:footer-horizontal {
|
|
2978
|
-
@media (width >= 48rem) {
|
|
2979
|
-
grid-auto-flow: column;
|
|
2980
|
-
&.footer-center {
|
|
2981
|
-
grid-auto-flow: row dense;
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
2945
|
.md\:p-4 {
|
|
2986
2946
|
@media (width >= 48rem) {
|
|
2987
2947
|
padding: calc(var(--spacing) * 4);
|
|
@@ -3003,11 +2963,6 @@
|
|
|
3003
2963
|
}
|
|
3004
2964
|
}
|
|
3005
2965
|
}
|
|
3006
|
-
.lg\:w-2\/3 {
|
|
3007
|
-
@media (width >= 64rem) {
|
|
3008
|
-
width: calc(2/3 * 100%);
|
|
3009
|
-
}
|
|
3010
|
-
}
|
|
3011
2966
|
.lg\:w-80 {
|
|
3012
2967
|
@media (width >= 64rem) {
|
|
3013
2968
|
width: calc(var(--spacing) * 80);
|
|
@@ -3018,11 +2973,6 @@
|
|
|
3018
2973
|
width: 360px;
|
|
3019
2974
|
}
|
|
3020
2975
|
}
|
|
3021
|
-
.lg\:flex-row {
|
|
3022
|
-
@media (width >= 64rem) {
|
|
3023
|
-
flex-direction: row;
|
|
3024
|
-
}
|
|
3025
|
-
}
|
|
3026
2976
|
.lg\:bg-base-100 {
|
|
3027
2977
|
@media (width >= 64rem) {
|
|
3028
2978
|
background-color: var(--color-base-100);
|
package/package.json
CHANGED
|
@@ -18,37 +18,21 @@ interface FooterNavigationItem {
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<nav v-for="footerCols in props.items">
|
|
41
|
-
<h6 class="after:absolute after:flex opacity-100 border-b-4 border-base-300 after:border-b-2 after:border-base-300 after:w-full after:h-1 font-bold text-xl footer-title">{{ footerCols.title }}</h6>
|
|
42
|
-
<a v-for="footerItem in footerCols.items" class="link link-hover" :href="footerItem.link">{{ footerItem.text
|
|
43
|
-
}}</a>
|
|
44
|
-
</nav>
|
|
45
|
-
</footer>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<style scoped>
|
|
50
|
-
.footer>* {
|
|
51
|
-
width: max-content;
|
|
52
|
-
position: relative
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
21
|
+
<div class="bg-base-200 text-base-content">
|
|
22
|
+
<footer class="mx-auto p-10 footer sm:footer-horizontal container">
|
|
23
|
+
<nav v-for="footerCols in props.items">
|
|
24
|
+
<h6 class="footer-title">{{ footerCols.title }}</h6>
|
|
25
|
+
<a
|
|
26
|
+
v-for="footerItem in footerCols.items"
|
|
27
|
+
class="link link-hover"
|
|
28
|
+
:href="footerItem.link"
|
|
29
|
+
>{{ footerItem.text }}</a
|
|
30
|
+
>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
<aside>
|
|
34
|
+
<slot></slot>
|
|
35
|
+
</aside>
|
|
36
|
+
</footer>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|