manolis-ui 0.14.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +227 -224
- package/dist/manolis-ui.umd.cjs +4 -4
- package/dist/style.css +19 -8
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as P, computed as
|
|
1
|
+
import { defineComponent as P, computed as _, createElementBlock as r, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as ue, createElementVNode as l, Fragment as j, renderList as E, toDisplayString as z, ref as k, watch as A, h as se, onMounted as K, withDirectives as ee, createVNode as G, isRef as pe, vModelCheckbox as he, unref as U, provide as ge, normalizeStyle as Z, inject as be, useId as ye, defineAsyncComponent as te, nextTick as le, onBeforeUnmount as ie, withModifiers as H, createBlock as W, resolveDynamicComponent as ne, mergeProps as ae, withKeys as re, resolveComponent as oe, withCtx as ce, vModelText as me, useSlots as we, Comment as xe, vShow as ke, onUnmounted as $e } from "vue";
|
|
2
2
|
const Ce = ["disabled"], Se = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, Al = /* @__PURE__ */ P({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -14,7 +14,7 @@ const Ce = ["disabled"], Se = {
|
|
|
14
14
|
disabled: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(e) {
|
|
17
|
-
const c = e, t =
|
|
17
|
+
const c = e, t = _(() => {
|
|
18
18
|
switch (c.size) {
|
|
19
19
|
case "large":
|
|
20
20
|
return "btn-lg";
|
|
@@ -29,7 +29,7 @@ const Ce = ["disabled"], Se = {
|
|
|
29
29
|
default:
|
|
30
30
|
return "";
|
|
31
31
|
}
|
|
32
|
-
}), o =
|
|
32
|
+
}), o = _(() => {
|
|
33
33
|
switch (c.type) {
|
|
34
34
|
case "neutral":
|
|
35
35
|
return "btn-neutral";
|
|
@@ -54,7 +54,7 @@ const Ce = ["disabled"], Se = {
|
|
|
54
54
|
default:
|
|
55
55
|
return "btn-neutral";
|
|
56
56
|
}
|
|
57
|
-
}), u =
|
|
57
|
+
}), u = _(() => {
|
|
58
58
|
switch (c.shape) {
|
|
59
59
|
case "square":
|
|
60
60
|
return "btn-square";
|
|
@@ -84,7 +84,7 @@ const Ce = ["disabled"], Se = {
|
|
|
84
84
|
}), Ie = {
|
|
85
85
|
tabindex: "0",
|
|
86
86
|
class: "z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"
|
|
87
|
-
}, Te = ["href"],
|
|
87
|
+
}, Te = ["href"], Rl = /* @__PURE__ */ P({
|
|
88
88
|
__name: "dropdown",
|
|
89
89
|
props: {
|
|
90
90
|
items: {},
|
|
@@ -116,13 +116,13 @@ const Ce = ["disabled"], Se = {
|
|
|
116
116
|
(a(!0), r(j, null, E(e.items, (i) => (a(), r("li", null, [
|
|
117
117
|
l("a", {
|
|
118
118
|
href: i.link
|
|
119
|
-
},
|
|
119
|
+
}, z(i.text), 9, Te)
|
|
120
120
|
]))), 256)),
|
|
121
121
|
V(u.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}), Me = { class: "modal-box" }, Ve = { class: "modal-action" },
|
|
125
|
+
}), Me = { class: "modal-box" }, Ve = { class: "modal-action" }, Nl = /* @__PURE__ */ P({
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
@@ -179,7 +179,7 @@ const Ce = ["disabled"], Se = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" },
|
|
182
|
+
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" }, Fl = /* @__PURE__ */ P({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
@@ -323,7 +323,7 @@ const Ee = Q("SunIcon", [
|
|
|
323
323
|
}), A(t, (o) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(o));
|
|
325
325
|
}), t;
|
|
326
|
-
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"],
|
|
326
|
+
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"], Ul = /* @__PURE__ */ P({
|
|
327
327
|
__name: "theme-controller",
|
|
328
328
|
props: {
|
|
329
329
|
lightTheme: { default: "light" },
|
|
@@ -344,13 +344,13 @@ const Ee = Q("SunIcon", [
|
|
|
344
344
|
"true-value": c.lightTheme,
|
|
345
345
|
"false-value": c.darkTheme
|
|
346
346
|
}, null, 8, Ne), [
|
|
347
|
-
[he,
|
|
347
|
+
[he, U(t)]
|
|
348
348
|
]),
|
|
349
|
-
G(
|
|
350
|
-
G(
|
|
349
|
+
G(U(Ee), { class: "swap-off fill-current" }),
|
|
350
|
+
G(U(Le), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), Fe = ["name"], Ue = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, _e = { class: "collapse-content" }, qe = ["innerHTML"], _l = /* @__PURE__ */ P({
|
|
354
354
|
__name: "accordion",
|
|
355
355
|
props: {
|
|
356
356
|
name: {},
|
|
@@ -368,16 +368,16 @@ const Ee = Q("SunIcon", [
|
|
|
368
368
|
type: "radio",
|
|
369
369
|
name: e.name,
|
|
370
370
|
value: "true"
|
|
371
|
-
}, null, 8,
|
|
372
|
-
l("div",
|
|
373
|
-
l("div",
|
|
371
|
+
}, null, 8, Fe),
|
|
372
|
+
l("div", Ue, z(u.title), 1),
|
|
373
|
+
l("div", _e, [
|
|
374
374
|
l("span", {
|
|
375
375
|
innerHTML: u.content
|
|
376
376
|
}, null, 8, qe)
|
|
377
377
|
])
|
|
378
378
|
], 2))), 128));
|
|
379
379
|
}
|
|
380
|
-
}), He = ["src"], We = { class: "text-xl" },
|
|
380
|
+
}), He = ["src"], We = { class: "text-xl" }, ql = /* @__PURE__ */ P({
|
|
381
381
|
__name: "avatar",
|
|
382
382
|
props: {
|
|
383
383
|
image: {},
|
|
@@ -407,11 +407,11 @@ const Ee = Q("SunIcon", [
|
|
|
407
407
|
key: 1,
|
|
408
408
|
class: M(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
409
409
|
}, [
|
|
410
|
-
l("p", We,
|
|
410
|
+
l("p", We, z(e.initials), 1)
|
|
411
411
|
], 2))
|
|
412
412
|
], 2));
|
|
413
413
|
}
|
|
414
|
-
}),
|
|
414
|
+
}), Hl = /* @__PURE__ */ P({
|
|
415
415
|
__name: "badge",
|
|
416
416
|
props: {
|
|
417
417
|
color: { default: "neutral" },
|
|
@@ -453,7 +453,7 @@ const Ee = Q("SunIcon", [
|
|
|
453
453
|
}, Ze = { class: "flex-col flex-nowrap mt-auto card-actions" }, Qe = {
|
|
454
454
|
key: 1,
|
|
455
455
|
class: "card-body"
|
|
456
|
-
},
|
|
456
|
+
}, Wl = /* @__PURE__ */ P({
|
|
457
457
|
__name: "card",
|
|
458
458
|
props: {
|
|
459
459
|
imgUrl: { default: "" },
|
|
@@ -505,9 +505,9 @@ const Ee = Q("SunIcon", [
|
|
|
505
505
|
}, null, 2)) : T("", !0)
|
|
506
506
|
], 2),
|
|
507
507
|
e.loading ? T("", !0) : (a(), r("div", Xe, [
|
|
508
|
-
e.title ? (a(), r("h2", Ge,
|
|
508
|
+
e.title ? (a(), r("h2", Ge, z(e.title), 1)) : T("", !0),
|
|
509
509
|
V(o.$slots, "details"),
|
|
510
|
-
e.description ? (a(), r("p", Je,
|
|
510
|
+
e.description ? (a(), r("p", Je, z(e.description), 1)) : T("", !0),
|
|
511
511
|
l("div", Ze, [
|
|
512
512
|
V(o.$slots, "actions")
|
|
513
513
|
])
|
|
@@ -565,7 +565,7 @@ const Ee = Q("SunIcon", [
|
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
567
|
setup(e, { expose: c }) {
|
|
568
|
-
const t = e, o = k(t.initialSlide), u = k(null), s = k(!1), i = k(0), g =
|
|
568
|
+
const t = e, o = k(t.initialSlide), u = k(null), s = k(!1), i = k(0), g = _(() => ({
|
|
569
569
|
width: `calc((100% - ${t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0}px) / ${t.slidesPerView})`
|
|
570
570
|
}));
|
|
571
571
|
ge(ve, g);
|
|
@@ -583,7 +583,7 @@ const Ee = Q("SunIcon", [
|
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
const b = performance.now(), n = ($) => {
|
|
586
|
-
const h = $ - b, D = Math.min(1, h / t.slideDuration),
|
|
586
|
+
const h = $ - b, D = Math.min(1, h / t.slideDuration), F = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = d + f * F;
|
|
587
587
|
t.sliderOrientation === "vertical" ? C.scrollTop = q : C.scrollLeft = q, D < 1 ? requestAnimationFrame(n) : (t.sliderOrientation === "vertical" ? C.scrollTop = m : C.scrollLeft = m, o.value = x, s.value = !1);
|
|
588
588
|
};
|
|
589
589
|
requestAnimationFrame(n);
|
|
@@ -591,7 +591,7 @@ const Ee = Q("SunIcon", [
|
|
|
591
591
|
p(o.value + 1);
|
|
592
592
|
}, I = () => {
|
|
593
593
|
p(o.value - 1);
|
|
594
|
-
},
|
|
594
|
+
}, O = (w) => {
|
|
595
595
|
p(w);
|
|
596
596
|
}, y = () => {
|
|
597
597
|
if (!u.value || t.slidesPerView <= 0 || (v(), i.value === 0)) return;
|
|
@@ -652,7 +652,7 @@ const Ee = Q("SunIcon", [
|
|
|
652
652
|
e.showIndicators ? (a(), r("div", tt, [
|
|
653
653
|
(a(!0), r(j, null, E(i.value, (C, B) => (a(), r("button", {
|
|
654
654
|
key: `dot-${B}`,
|
|
655
|
-
onClick: (L) =>
|
|
655
|
+
onClick: (L) => O(B),
|
|
656
656
|
class: M(["btn btn-circle btn-xs", { "btn-active": B === o.value }]),
|
|
657
657
|
"aria-label": `Go to slide ${B + 1}`
|
|
658
658
|
}, null, 10, lt))), 128))
|
|
@@ -664,18 +664,18 @@ const Ee = Q("SunIcon", [
|
|
|
664
664
|
for (const [o, u] of c)
|
|
665
665
|
t[o] = u;
|
|
666
666
|
return t;
|
|
667
|
-
},
|
|
667
|
+
}, Kl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
|
|
668
668
|
__name: "carouselItem",
|
|
669
669
|
setup(e) {
|
|
670
670
|
const c = be(ve, k({}));
|
|
671
671
|
return (t, o) => (a(), r("div", {
|
|
672
672
|
class: "w-full h-full carousel-item",
|
|
673
|
-
style: Z(
|
|
673
|
+
style: Z(U(c))
|
|
674
674
|
}, [
|
|
675
675
|
V(t.$slots, "default", {}, void 0, !0)
|
|
676
676
|
], 4));
|
|
677
677
|
}
|
|
678
|
-
}),
|
|
678
|
+
}), Xl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
681
681
|
}, rt = {
|
|
@@ -704,7 +704,7 @@ const Ee = Q("SunIcon", [
|
|
|
704
704
|
emits: ["search", "update:search-data"],
|
|
705
705
|
setup(e, { emit: c }) {
|
|
706
706
|
const t = e, o = c, u = t.id ?? `advancedSearch-${ye()}`, s = k(null), i = k(null), g = {
|
|
707
|
-
datetime: te(() => Promise.resolve().then(() =>
|
|
707
|
+
datetime: te(() => Promise.resolve().then(() => Lt)),
|
|
708
708
|
"standard-select": te(() => import("./select-Cz4vf_YE.js")),
|
|
709
709
|
// Add other components here when you create them:
|
|
710
710
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
@@ -761,7 +761,7 @@ const Ee = Q("SunIcon", [
|
|
|
761
761
|
}
|
|
762
762
|
return String(m.value);
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function O(m) {
|
|
765
765
|
var n, $;
|
|
766
766
|
const d = (n = s.value) == null ? void 0 : n.name;
|
|
767
767
|
if (!d) {
|
|
@@ -781,7 +781,7 @@ const Ee = Q("SunIcon", [
|
|
|
781
781
|
);
|
|
782
782
|
}
|
|
783
783
|
function y(m) {
|
|
784
|
-
|
|
784
|
+
O(m);
|
|
785
785
|
}
|
|
786
786
|
function w() {
|
|
787
787
|
o("search");
|
|
@@ -813,10 +813,10 @@ const Ee = Q("SunIcon", [
|
|
|
813
813
|
else if (s.value = { ...m, displayMode: d }, await le(), ((n = s.value) == null ? void 0 : n.displayMode) === "popup") {
|
|
814
814
|
const $ = v.value[m.name];
|
|
815
815
|
if ($ && S.value) {
|
|
816
|
-
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(),
|
|
816
|
+
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), F = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
|
|
817
817
|
p.value = {
|
|
818
818
|
left: `${q}px`,
|
|
819
|
-
top: `${
|
|
819
|
+
top: `${F + 8}px`,
|
|
820
820
|
// Add a small gap
|
|
821
821
|
transform: "translateX(-50%)"
|
|
822
822
|
// Center horizontally
|
|
@@ -895,13 +895,13 @@ const Ee = Q("SunIcon", [
|
|
|
895
895
|
(a(!0), r(j, null, E(((f = t.searchOptions.find(
|
|
896
896
|
(n) => n.category === t.currentCategory
|
|
897
897
|
)) == null ? void 0 : f.tabs) || [], (n, $) => {
|
|
898
|
-
var h, D,
|
|
898
|
+
var h, D, F, q, de;
|
|
899
899
|
return a(), r("button", {
|
|
900
900
|
key: `${n.name}-${$}`,
|
|
901
901
|
onClick: H((X) => B(n), ["stop"]),
|
|
902
902
|
class: M([{
|
|
903
903
|
"tab-active": ((h = s.value) == null ? void 0 : h.name) === n.name,
|
|
904
|
-
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((
|
|
904
|
+
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((F = s.value) == null ? void 0 : F.displayMode) === "inline"
|
|
905
905
|
// Add new class
|
|
906
906
|
}, "group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
|
|
907
907
|
ref_for: !0,
|
|
@@ -919,8 +919,8 @@ const Ee = Q("SunIcon", [
|
|
|
919
919
|
ref: i
|
|
920
920
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
921
921
|
])) : (a(), r("div", rt, [
|
|
922
|
-
l("p", ut,
|
|
923
|
-
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("p", dt,
|
|
922
|
+
l("p", ut, z(n.name), 1),
|
|
923
|
+
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("p", dt, z(I(n)), 1)) : (a(), r("p", ct, z(n.description), 1))
|
|
924
924
|
]))
|
|
925
925
|
], 10, st);
|
|
926
926
|
}), 128))
|
|
@@ -932,8 +932,8 @@ const Ee = Q("SunIcon", [
|
|
|
932
932
|
}, [
|
|
933
933
|
(a(), W(ne(g[s.value.type]), ae(s.value.props || {}, {
|
|
934
934
|
modelValue: s.value.value,
|
|
935
|
-
onUpdated: d[2] || (d[2] = (n) =>
|
|
936
|
-
"onUpdate:modelValue": d[3] || (d[3] = (n) =>
|
|
935
|
+
onUpdated: d[2] || (d[2] = (n) => O(n)),
|
|
936
|
+
"onUpdate:modelValue": d[3] || (d[3] = (n) => O(n))
|
|
937
937
|
}), null, 16, ["modelValue"]))
|
|
938
938
|
], 4)) : T("", !0),
|
|
939
939
|
l("button", {
|
|
@@ -942,7 +942,7 @@ const Ee = Q("SunIcon", [
|
|
|
942
942
|
class: "ml-1 btn btn-primary btn-square",
|
|
943
943
|
onClick: H(w, ["stop"])
|
|
944
944
|
}, [
|
|
945
|
-
G(
|
|
945
|
+
G(U(fe), {
|
|
946
946
|
size: 24,
|
|
947
947
|
color: "white"
|
|
948
948
|
})
|
|
@@ -954,7 +954,7 @@ const Ee = Q("SunIcon", [
|
|
|
954
954
|
onClick: d[4] || (d[4] = () => {
|
|
955
955
|
})
|
|
956
956
|
}, [
|
|
957
|
-
G(
|
|
957
|
+
G(U(fe), {
|
|
958
958
|
size: 24,
|
|
959
959
|
color: "white"
|
|
960
960
|
})
|
|
@@ -962,12 +962,12 @@ const Ee = Q("SunIcon", [
|
|
|
962
962
|
])
|
|
963
963
|
], 512),
|
|
964
964
|
l("dialog", {
|
|
965
|
-
id: `advancedSearchMobile-${
|
|
965
|
+
id: `advancedSearchMobile-${U(u)}`,
|
|
966
966
|
class: "modal"
|
|
967
967
|
}, [
|
|
968
968
|
l("div", vt, [
|
|
969
969
|
V(m.$slots, "additionalForMobile", {}, () => [
|
|
970
|
-
l("h3", pt,
|
|
970
|
+
l("h3", pt, z(e.currentCategory), 1)
|
|
971
971
|
], !0),
|
|
972
972
|
(a(!0), r(j, null, E(((b = t.searchOptions.find(
|
|
973
973
|
(n) => n.category === t.currentCategory
|
|
@@ -977,19 +977,19 @@ const Ee = Q("SunIcon", [
|
|
|
977
977
|
}, [
|
|
978
978
|
l("input", {
|
|
979
979
|
type: "radio",
|
|
980
|
-
name: `accordion-${
|
|
980
|
+
name: `accordion-${U(u)}`,
|
|
981
981
|
checked: $ === 0
|
|
982
982
|
}, null, 8, ht),
|
|
983
983
|
l("div", gt, [
|
|
984
|
-
l("div", null,
|
|
985
|
-
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt,
|
|
984
|
+
l("div", null, z(n.name), 1),
|
|
985
|
+
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt, z(I(n)), 1)) : (a(), r("div", yt, z(n.description), 1))
|
|
986
986
|
]),
|
|
987
987
|
l("div", wt, [
|
|
988
988
|
d[7] || (d[7] = l("br", null, null, -1)),
|
|
989
989
|
(a(), W(ne(g[n.type]), ae({ ref_for: !0 }, n.props || {}, {
|
|
990
990
|
modelValue: n.value,
|
|
991
|
-
onUpdated: d[5] || (d[5] = (h) =>
|
|
992
|
-
"onUpdate:modelValue": d[6] || (d[6] = (h) =>
|
|
991
|
+
onUpdated: d[5] || (d[5] = (h) => O(h)),
|
|
992
|
+
"onUpdate:modelValue": d[6] || (d[6] = (h) => O(h))
|
|
993
993
|
}), null, 16, ["modelValue"]))
|
|
994
994
|
])
|
|
995
995
|
]))), 128)),
|
|
@@ -1006,16 +1006,16 @@ const Ee = Q("SunIcon", [
|
|
|
1006
1006
|
], 64);
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
|
-
}),
|
|
1009
|
+
}), Gl = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-577c3624"]]), kt = { class: "z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm" }, $t = { key: 0 }, Ct = ["id"], St = {
|
|
1010
1010
|
key: 2,
|
|
1011
|
-
class: "
|
|
1012
|
-
}, It = { class: "join-
|
|
1011
|
+
class: "flex justify-center p-4"
|
|
1012
|
+
}, It = { class: "join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto" }, Tt = { class: "join-item" }, Mt = ["id", "disabled"], Vt = { class: "join-item" }, Bt = ["id", "disabled"], Dt = {
|
|
1013
1013
|
key: 3,
|
|
1014
|
-
class: "
|
|
1015
|
-
},
|
|
1014
|
+
class: "p-4 min-w-2xs"
|
|
1015
|
+
}, zt = ["id", "disabled"], Ot = {
|
|
1016
1016
|
key: 4,
|
|
1017
|
-
class: "flex
|
|
1018
|
-
},
|
|
1017
|
+
class: "flex px-4 my-4 w-full justify-end"
|
|
1018
|
+
}, Pt = /* @__PURE__ */ P({
|
|
1019
1019
|
__name: "datetimePicker",
|
|
1020
1020
|
props: {
|
|
1021
1021
|
mode: { default: "datetime" },
|
|
@@ -1027,18 +1027,19 @@ const Ee = Q("SunIcon", [
|
|
|
1027
1027
|
disabled: { type: Boolean, default: !1 },
|
|
1028
1028
|
locale: { default: "nl-NL" },
|
|
1029
1029
|
min: {},
|
|
1030
|
-
max: {}
|
|
1030
|
+
max: {},
|
|
1031
|
+
closeText: { default: "Close" }
|
|
1031
1032
|
},
|
|
1032
1033
|
emits: ["update:modelValue", "change"],
|
|
1033
1034
|
setup(e, { emit: c }) {
|
|
1034
1035
|
K(async () => {
|
|
1035
1036
|
await import("./cally-ZU3K2Th7.js");
|
|
1036
1037
|
});
|
|
1037
|
-
const t = e, o = c, u = k(null), s = k(!1), i = k(null), g = k(null), v = k(null), p = k(null), S = k(null), I = k({ from: "", to: "", single: "" }),
|
|
1038
|
+
const t = e, o = c, u = k(null), s = k(!1), i = k(null), g = k(null), v = k(null), p = k(null), S = k(null), I = k({ from: "", to: "", single: "" }), O = k({
|
|
1038
1039
|
single: null,
|
|
1039
1040
|
start: null,
|
|
1040
1041
|
end: null
|
|
1041
|
-
}), y =
|
|
1042
|
+
}), y = _(() => {
|
|
1042
1043
|
const d = (n) => {
|
|
1043
1044
|
if (!n || n.includes(":")) return n;
|
|
1044
1045
|
if (/^\d{4}-\d{2}-\d{2}$/.test(n))
|
|
@@ -1051,7 +1052,7 @@ const Ee = Q("SunIcon", [
|
|
|
1051
1052
|
return n;
|
|
1052
1053
|
};
|
|
1053
1054
|
let f = "", b = "";
|
|
1054
|
-
if (t.mode !== "time" && (t.range &&
|
|
1055
|
+
if (t.mode !== "time" && (t.range && O.value.start && O.value.end ? f = `${O.value.start} - ${O.value.end}` : !t.range && O.value.single && (f = O.value.single)), t.mode !== "date" && (t.range && I.value.from && I.value.to ? b = `${I.value.from} - ${I.value.to}` : !t.range && I.value.single && (b = I.value.single)), t.mode === "date")
|
|
1055
1056
|
return t.range ? f.split(" - ").map(d).join(" - ") : d(f);
|
|
1056
1057
|
if (t.mode === "time") return b;
|
|
1057
1058
|
if (t.range) {
|
|
@@ -1063,12 +1064,12 @@ const Ee = Q("SunIcon", [
|
|
|
1063
1064
|
console.log(y);
|
|
1064
1065
|
const w = () => {
|
|
1065
1066
|
if (t.range) {
|
|
1066
|
-
const { start: d, end: f } =
|
|
1067
|
+
const { start: d, end: f } = O.value, { from: b, to: n } = I.value;
|
|
1067
1068
|
let $ = null, h = null;
|
|
1068
1069
|
if (t.mode === "time" && b && n ? ($ = b, h = n) : t.mode === "date" && d && f ? ($ = d, h = f) : t.mode === "datetime" && d && f && b && n && ($ = `${d}T${b}`, h = `${f}T${n}`), $ && h)
|
|
1069
1070
|
return { start: $, end: h };
|
|
1070
1071
|
} else {
|
|
1071
|
-
const d =
|
|
1072
|
+
const d = O.value.single, f = I.value.single;
|
|
1072
1073
|
if (t.mode === "date") return d;
|
|
1073
1074
|
if (t.mode === "time") return f || null;
|
|
1074
1075
|
if (t.mode === "datetime" && d && f)
|
|
@@ -1077,10 +1078,10 @@ const Ee = Q("SunIcon", [
|
|
|
1077
1078
|
return null;
|
|
1078
1079
|
}, x = () => {
|
|
1079
1080
|
if (i.value)
|
|
1080
|
-
|
|
1081
|
+
O.value.single = i.value.value || null;
|
|
1081
1082
|
else if (g.value) {
|
|
1082
1083
|
const d = g.value.value;
|
|
1083
|
-
|
|
1084
|
+
O.value.start = (d == null ? void 0 : d.start) || null, O.value.end = (d == null ? void 0 : d.end) || null;
|
|
1084
1085
|
}
|
|
1085
1086
|
}, C = () => {
|
|
1086
1087
|
x();
|
|
@@ -1102,13 +1103,13 @@ const Ee = Q("SunIcon", [
|
|
|
1102
1103
|
if (t.initialDate) {
|
|
1103
1104
|
if (t.range && typeof t.initialDate == "object" && "start" in t.initialDate) {
|
|
1104
1105
|
const f = d(t.initialDate.start), b = d(t.initialDate.end);
|
|
1105
|
-
if (
|
|
1106
|
+
if (O.value.start = f.split("T")[0], O.value.end = b.split("T")[0], t.mode !== "date") {
|
|
1106
1107
|
const n = new Date(f), $ = new Date(b), h = (D) => `${String(D.getUTCHours()).padStart(2, "0")}:${String(D.getUTCMinutes()).padStart(2, "0")}`;
|
|
1107
1108
|
I.value.from = h(n), I.value.to = h($), p.value && (p.value.value = I.value.from), S.value && (S.value.value = I.value.to);
|
|
1108
1109
|
}
|
|
1109
1110
|
} else if (typeof t.initialDate == "string" || t.initialDate instanceof Date) {
|
|
1110
1111
|
const f = d(t.initialDate);
|
|
1111
|
-
if (
|
|
1112
|
+
if (O.value.single = f.split("T")[0], t.mode !== "date") {
|
|
1112
1113
|
const b = new Date(f), n = `${String(b.getUTCHours()).padStart(2, "0")}:${String(b.getUTCMinutes()).padStart(2, "0")}`;
|
|
1113
1114
|
I.value.single = n, v.value && (v.value.value = n);
|
|
1114
1115
|
}
|
|
@@ -1131,13 +1132,13 @@ const Ee = Q("SunIcon", [
|
|
|
1131
1132
|
onClick: f[0] || (f[0] = (h) => t.disabled ? null : L())
|
|
1132
1133
|
}, [
|
|
1133
1134
|
l("div", kt, [
|
|
1134
|
-
y.value ? T("", !0) : (a(), r("span", $t,
|
|
1135
|
-
ue(" " +
|
|
1135
|
+
y.value ? T("", !0) : (a(), r("span", $t, z(e.placeholder), 1)),
|
|
1136
|
+
ue(" " + z(y.value), 1)
|
|
1136
1137
|
])
|
|
1137
1138
|
])) : T("", !0),
|
|
1138
1139
|
s.value || !t.popup ? (a(), r("div", {
|
|
1139
1140
|
key: 1,
|
|
1140
|
-
class: M(["z-50 bg-base-100 rounded-md w-full", { "absolute top-full left-0 mt-2 shadow-lg
|
|
1141
|
+
class: M(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
|
|
1141
1142
|
id: `date-picker-${t.id}-popup`
|
|
1142
1143
|
}, [
|
|
1143
1144
|
!t.range && t.mode !== "time" ? (a(), W(n, {
|
|
@@ -1254,42 +1255,44 @@ const Ee = Q("SunIcon", [
|
|
|
1254
1255
|
}, 8, ["id", "min", "max", "disabled"])) : T("", !0),
|
|
1255
1256
|
t.range && t.mode !== "date" ? (a(), r("div", St, [
|
|
1256
1257
|
l("div", It, [
|
|
1257
|
-
l("
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
l("
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1258
|
+
l("div", Tt, [
|
|
1259
|
+
l("input", {
|
|
1260
|
+
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1261
|
+
type: "time",
|
|
1262
|
+
ref_key: "timeFromInput",
|
|
1263
|
+
ref: p,
|
|
1264
|
+
id: `${t.id}-time-from`,
|
|
1265
|
+
placeholder: "van",
|
|
1266
|
+
onChange: B,
|
|
1267
|
+
disabled: t.disabled
|
|
1268
|
+
}, null, 40, Mt)
|
|
1269
|
+
]),
|
|
1270
|
+
f[5] || (f[5] = l("svg", {
|
|
1271
|
+
class: "join-item",
|
|
1272
|
+
viewBox: "0 0 1024 1024",
|
|
1273
|
+
focusable: "false",
|
|
1274
|
+
"data-icon": "swap-right",
|
|
1275
|
+
width: "1em",
|
|
1276
|
+
height: "1em",
|
|
1277
|
+
fill: "currentColor",
|
|
1278
|
+
"aria-hidden": "true"
|
|
1279
|
+
}, [
|
|
1280
|
+
l("path", { d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" })
|
|
1281
|
+
], -1)),
|
|
1282
|
+
l("div", Vt, [
|
|
1283
|
+
l("input", {
|
|
1284
|
+
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1285
|
+
type: "time",
|
|
1286
|
+
ref_key: "timeToInput",
|
|
1287
|
+
ref: S,
|
|
1288
|
+
id: `${t.id}-time-to`,
|
|
1289
|
+
onChange: B,
|
|
1290
|
+
disabled: t.disabled
|
|
1291
|
+
}, null, 40, Bt)
|
|
1292
|
+
])
|
|
1290
1293
|
])
|
|
1291
1294
|
])) : T("", !0),
|
|
1292
|
-
!t.range && t.mode !== "date" ? (a(), r("div",
|
|
1295
|
+
!t.range && t.mode !== "date" ? (a(), r("div", Dt, [
|
|
1293
1296
|
l("input", {
|
|
1294
1297
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1295
1298
|
type: "time",
|
|
@@ -1298,22 +1301,22 @@ const Ee = Q("SunIcon", [
|
|
|
1298
1301
|
id: `${t.id}-time`,
|
|
1299
1302
|
onChange: B,
|
|
1300
1303
|
disabled: t.disabled
|
|
1301
|
-
}, null, 40,
|
|
1304
|
+
}, null, 40, zt)
|
|
1302
1305
|
])) : T("", !0),
|
|
1303
|
-
t.popup ? (a(), r("div",
|
|
1306
|
+
t.popup && e.closeText ? (a(), r("div", Ot, [
|
|
1304
1307
|
l("button", {
|
|
1305
|
-
class: "btn btn-primary",
|
|
1308
|
+
class: "btn btn-primary max-lg:w-full",
|
|
1306
1309
|
onClick: R
|
|
1307
|
-
},
|
|
1310
|
+
}, z(e.closeText), 1)
|
|
1308
1311
|
])) : T("", !0)
|
|
1309
1312
|
], 10, Ct)) : T("", !0)
|
|
1310
1313
|
], 544);
|
|
1311
1314
|
};
|
|
1312
1315
|
}
|
|
1313
|
-
}),
|
|
1316
|
+
}), jt = /* @__PURE__ */ J(Pt, [["__scopeId", "data-v-423cdcd2"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1314
1317
|
__proto__: null,
|
|
1315
|
-
default:
|
|
1316
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1318
|
+
default: jt
|
|
1319
|
+
}, Symbol.toStringTag, { value: "Module" })), Et = ["value", "checked", "onChange", "disabled"], Jl = /* @__PURE__ */ P({
|
|
1317
1320
|
__name: "rating",
|
|
1318
1321
|
props: {
|
|
1319
1322
|
initialRating: { default: 0 },
|
|
@@ -1376,10 +1379,10 @@ const Ee = Q("SunIcon", [
|
|
|
1376
1379
|
marginRight: e.halfStars && i % 2 === 0 ? `${c.gap}px` : e.halfStars ? "0" : `${c.gap}px`
|
|
1377
1380
|
}),
|
|
1378
1381
|
disabled: !e.isInteractive
|
|
1379
|
-
}, null, 46,
|
|
1382
|
+
}, null, 46, Et))), 128))
|
|
1380
1383
|
], 2));
|
|
1381
1384
|
}
|
|
1382
|
-
}),
|
|
1385
|
+
}), At = { class: "badge" }, Rt = ["onClick"], Nt = { class: "opacity-75" }, Ft = ["placeholder"], Zl = /* @__PURE__ */ P({
|
|
1383
1386
|
__name: "taginput",
|
|
1384
1387
|
props: {
|
|
1385
1388
|
modelValue: {},
|
|
@@ -1389,14 +1392,14 @@ const Ee = Q("SunIcon", [
|
|
|
1389
1392
|
},
|
|
1390
1393
|
emits: ["update:modelValue"],
|
|
1391
1394
|
setup(e, { emit: c }) {
|
|
1392
|
-
const t = e, o = c, u = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v =
|
|
1395
|
+
const t = e, o = c, u = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v = _(() => s < 0 || u.value.length < s), p = () => {
|
|
1393
1396
|
const y = g.value.trim();
|
|
1394
1397
|
y && !u.value.includes(y) && (u.value.push(y), o("update:modelValue", u.value), g.value = "");
|
|
1395
1398
|
}, S = (y) => {
|
|
1396
1399
|
u.value = u.value.filter((w) => w !== y), o("update:modelValue", u.value);
|
|
1397
1400
|
}, I = () => {
|
|
1398
1401
|
g.value === "" && (u.value.pop(), o("update:modelValue", u.value));
|
|
1399
|
-
},
|
|
1402
|
+
}, O = (y) => {
|
|
1400
1403
|
y.key === "Enter" ? p() : y.key === "Backspace" && g.value === "" && I();
|
|
1401
1404
|
};
|
|
1402
1405
|
return A(() => t.modelValue, (y) => {
|
|
@@ -1408,13 +1411,13 @@ const Ee = Q("SunIcon", [
|
|
|
1408
1411
|
key: x,
|
|
1409
1412
|
tag: x
|
|
1410
1413
|
}, () => [
|
|
1411
|
-
l("div",
|
|
1414
|
+
l("div", At, [
|
|
1412
1415
|
l("button", {
|
|
1413
1416
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1414
1417
|
onClick: (C) => S(x),
|
|
1415
1418
|
"aria-label": "Remove tag"
|
|
1416
|
-
}, "X", 8,
|
|
1417
|
-
l("span",
|
|
1419
|
+
}, "X", 8, Rt),
|
|
1420
|
+
l("span", Nt, z(x), 1)
|
|
1418
1421
|
])
|
|
1419
1422
|
])), 128)),
|
|
1420
1423
|
V(y.$slots, "input", { showInput: v.value }, () => [
|
|
@@ -1426,23 +1429,23 @@ const Ee = Q("SunIcon", [
|
|
|
1426
1429
|
type: "text",
|
|
1427
1430
|
placeholder: e.placeholder || "Type here",
|
|
1428
1431
|
class: "h-full input input-ghost",
|
|
1429
|
-
onKeydown:
|
|
1432
|
+
onKeydown: O,
|
|
1430
1433
|
"aria-label": "Add tags"
|
|
1431
|
-
}, null, 40,
|
|
1434
|
+
}, null, 40, Ft)), [
|
|
1432
1435
|
[me, g.value]
|
|
1433
1436
|
]) : T("", !0)
|
|
1434
1437
|
])
|
|
1435
1438
|
], 2));
|
|
1436
1439
|
}
|
|
1437
|
-
}),
|
|
1440
|
+
}), Ut = { class: "w-full max-w-xs form-control" }, _t = {
|
|
1438
1441
|
key: 0,
|
|
1439
1442
|
class: "label"
|
|
1440
|
-
},
|
|
1443
|
+
}, qt = { class: "label-text" }, Ht = ["value"], Wt = {
|
|
1441
1444
|
key: 0,
|
|
1442
1445
|
value: "",
|
|
1443
1446
|
disabled: "",
|
|
1444
1447
|
selected: ""
|
|
1445
|
-
},
|
|
1448
|
+
}, Kt = ["value"], Ql = /* @__PURE__ */ P({
|
|
1446
1449
|
__name: "select",
|
|
1447
1450
|
props: {
|
|
1448
1451
|
options: {},
|
|
@@ -1464,9 +1467,9 @@ const Ee = Q("SunIcon", [
|
|
|
1464
1467
|
}
|
|
1465
1468
|
// You can expose other properties or methods here if needed by the parent
|
|
1466
1469
|
// e.g., the current value: modelValue
|
|
1467
|
-
}), (v, p) => (a(), r("div",
|
|
1468
|
-
e.label ? (a(), r("label",
|
|
1469
|
-
l("span",
|
|
1470
|
+
}), (v, p) => (a(), r("div", Ut, [
|
|
1471
|
+
e.label ? (a(), r("label", _t, [
|
|
1472
|
+
l("span", qt, z(e.label), 1)
|
|
1470
1473
|
])) : T("", !0),
|
|
1471
1474
|
l("select", {
|
|
1472
1475
|
ref_key: "selectElement",
|
|
@@ -1475,21 +1478,21 @@ const Ee = Q("SunIcon", [
|
|
|
1475
1478
|
value: e.modelValue,
|
|
1476
1479
|
onChange: i
|
|
1477
1480
|
}, [
|
|
1478
|
-
e.placeholder ? (a(), r("option",
|
|
1481
|
+
e.placeholder ? (a(), r("option", Wt, z(e.placeholder), 1)) : T("", !0),
|
|
1479
1482
|
(a(!0), r(j, null, E(e.options, (S) => (a(), r("option", {
|
|
1480
1483
|
key: S.value,
|
|
1481
1484
|
value: S.value
|
|
1482
|
-
},
|
|
1483
|
-
], 40,
|
|
1485
|
+
}, z(S.text), 9, Kt))), 128))
|
|
1486
|
+
], 40, Ht)
|
|
1484
1487
|
]));
|
|
1485
1488
|
}
|
|
1486
|
-
}),
|
|
1489
|
+
}), Xt = {
|
|
1487
1490
|
key: 0,
|
|
1488
1491
|
class: "label"
|
|
1489
|
-
},
|
|
1492
|
+
}, Gt = { class: "label-text" }, Jt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Zt = ["placeholder", "disabled"], Qt = {
|
|
1490
1493
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1491
1494
|
role: "listbox"
|
|
1492
|
-
},
|
|
1495
|
+
}, Yt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, el = ["onMousedown", "id", "aria-selected"], Yl = {
|
|
1493
1496
|
__name: "filterableSelect",
|
|
1494
1497
|
props: {
|
|
1495
1498
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1520,16 +1523,16 @@ const Ee = Q("SunIcon", [
|
|
|
1520
1523
|
},
|
|
1521
1524
|
emits: ["update:modelValue", "select", "clear"],
|
|
1522
1525
|
setup(e, { expose: c, emit: t }) {
|
|
1523
|
-
const o = e, u = t, s = we(), i =
|
|
1526
|
+
const o = e, u = t, s = we(), i = _(() => {
|
|
1524
1527
|
const $ = (s.default ? s.default() : []).filter((h) => h.type !== xe);
|
|
1525
1528
|
return console.log("hasDefaultSlotContent computed:", $.length > 0), $.length > 0;
|
|
1526
|
-
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null),
|
|
1529
|
+
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null), O = k(null), y = k(null), w = () => {
|
|
1527
1530
|
p.value = !o.disabled;
|
|
1528
1531
|
}, x = () => {
|
|
1529
1532
|
p.value = !1, y.value = null, i.value || (v.value && g.value !== v.value.text ? g.value = v.value.text : v.value || (g.value = ""));
|
|
1530
1533
|
}, C = () => {
|
|
1531
1534
|
p.value ? x() : w();
|
|
1532
|
-
}, B =
|
|
1535
|
+
}, B = _(() => {
|
|
1533
1536
|
const n = g.value ? g.value.toLowerCase() : "";
|
|
1534
1537
|
return n === "" && !p.value ? [] : o.options.filter(
|
|
1535
1538
|
(h) => h && h.text ? h.text.toLowerCase().includes(n) : ""
|
|
@@ -1575,7 +1578,7 @@ const Ee = Q("SunIcon", [
|
|
|
1575
1578
|
}, b = (n) => {
|
|
1576
1579
|
if (!p.value || B.value.length === 0) return;
|
|
1577
1580
|
const $ = B.value.findIndex(
|
|
1578
|
-
(D,
|
|
1581
|
+
(D, F) => "option-" + F === y.value
|
|
1579
1582
|
);
|
|
1580
1583
|
let h = -1;
|
|
1581
1584
|
if (n.key === "ArrowDown")
|
|
@@ -1585,12 +1588,12 @@ const Ee = Q("SunIcon", [
|
|
|
1585
1588
|
else if (n.key === "Enter" && y.value) {
|
|
1586
1589
|
n.preventDefault();
|
|
1587
1590
|
const D = B.value.find(
|
|
1588
|
-
(
|
|
1591
|
+
(F, q) => "option-" + q === y.value
|
|
1589
1592
|
);
|
|
1590
1593
|
D && m(D);
|
|
1591
1594
|
return;
|
|
1592
1595
|
} else if (n.key === "Escape") {
|
|
1593
|
-
n.preventDefault(), x(),
|
|
1596
|
+
n.preventDefault(), x(), O.value && O.value.focus();
|
|
1594
1597
|
return;
|
|
1595
1598
|
} else if (i.value)
|
|
1596
1599
|
return;
|
|
@@ -1628,8 +1631,8 @@ const Ee = Q("SunIcon", [
|
|
|
1628
1631
|
ref_key: "componentRoot",
|
|
1629
1632
|
ref: I
|
|
1630
1633
|
}, [
|
|
1631
|
-
e.label ? (a(), r("label",
|
|
1632
|
-
l("span",
|
|
1634
|
+
e.label ? (a(), r("label", Xt, [
|
|
1635
|
+
l("span", Gt, z(e.label), 1)
|
|
1633
1636
|
])) : T("", !0),
|
|
1634
1637
|
l("div", {
|
|
1635
1638
|
class: M(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !i.value, select: !i.value }]),
|
|
@@ -1649,7 +1652,7 @@ const Ee = Q("SunIcon", [
|
|
|
1649
1652
|
"aria-activedescendant": y.value,
|
|
1650
1653
|
"aria-autocomplete": "list",
|
|
1651
1654
|
ref_key: "activatorWrapper",
|
|
1652
|
-
ref:
|
|
1655
|
+
ref: O
|
|
1653
1656
|
}, [
|
|
1654
1657
|
V(n.$slots, "default", {}, () => [
|
|
1655
1658
|
i.value ? T("", !0) : ee((a(), r("input", {
|
|
@@ -1664,50 +1667,50 @@ const Ee = Q("SunIcon", [
|
|
|
1664
1667
|
onInput: f,
|
|
1665
1668
|
tabindex: "-1",
|
|
1666
1669
|
disabled: o.disabled
|
|
1667
|
-
}, null, 40,
|
|
1670
|
+
}, null, 40, Zt)), [
|
|
1668
1671
|
[me, g.value]
|
|
1669
1672
|
])
|
|
1670
1673
|
]),
|
|
1671
|
-
v.value && !e.disabled ? (a(), W(
|
|
1674
|
+
v.value && !e.disabled ? (a(), W(U(je), {
|
|
1672
1675
|
key: 0,
|
|
1673
1676
|
size: 20,
|
|
1674
1677
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1675
1678
|
onClick: H(N, ["stop"])
|
|
1676
1679
|
})) : T("", !0),
|
|
1677
|
-
i.value && !v.value ? (a(), W(
|
|
1680
|
+
i.value && !v.value ? (a(), W(U(Pe), {
|
|
1678
1681
|
key: 1,
|
|
1679
1682
|
class: M([{ "rotate-180": p.value }, "mx-2"]),
|
|
1680
1683
|
size: 20
|
|
1681
1684
|
}, null, 8, ["class"])) : T("", !0)
|
|
1682
|
-
], 46,
|
|
1683
|
-
ee(l("div",
|
|
1684
|
-
l("ul",
|
|
1685
|
+
], 46, Jt),
|
|
1686
|
+
ee(l("div", Qt, [
|
|
1687
|
+
l("ul", Yt, [
|
|
1685
1688
|
(a(!0), r(j, null, E(B.value, (h, D) => (a(), r("li", {
|
|
1686
1689
|
key: h.value,
|
|
1687
|
-
onMousedown: H((
|
|
1690
|
+
onMousedown: H((F) => m(h), ["prevent"]),
|
|
1688
1691
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1689
1692
|
id: "option-" + D,
|
|
1690
1693
|
role: "option",
|
|
1691
1694
|
"aria-selected": v.value && v.value.value === h.value
|
|
1692
1695
|
}, [
|
|
1693
|
-
l("a", null,
|
|
1694
|
-
], 40,
|
|
1696
|
+
l("a", null, z(h.text), 1)
|
|
1697
|
+
], 40, el))), 128))
|
|
1695
1698
|
])
|
|
1696
1699
|
], 512), [
|
|
1697
1700
|
[ke, p.value && B.value.length > 0]
|
|
1698
1701
|
])
|
|
1699
1702
|
], 512));
|
|
1700
1703
|
}
|
|
1701
|
-
},
|
|
1704
|
+
}, tl = { class: "w-full max-w-xs form-control" }, ll = {
|
|
1702
1705
|
key: 0,
|
|
1703
1706
|
class: "label"
|
|
1704
|
-
},
|
|
1707
|
+
}, nl = { class: "label-text" }, al = ["type", "placeholder", "disabled", "value"], ol = {
|
|
1705
1708
|
key: 1,
|
|
1706
1709
|
class: "label"
|
|
1707
|
-
},
|
|
1710
|
+
}, sl = { class: "label-text-alt text-error validator-hint" }, il = {
|
|
1708
1711
|
key: 2,
|
|
1709
1712
|
class: "label"
|
|
1710
|
-
},
|
|
1713
|
+
}, rl = { class: "label-text-alt text-success validator-hint" }, en = /* @__PURE__ */ P({
|
|
1711
1714
|
__name: "inputField",
|
|
1712
1715
|
props: {
|
|
1713
1716
|
modelValue: { default: "" },
|
|
@@ -1724,12 +1727,12 @@ const Ee = Q("SunIcon", [
|
|
|
1724
1727
|
},
|
|
1725
1728
|
emits: ["update:modelValue", "validate"],
|
|
1726
1729
|
setup(e, { expose: c, emit: t }) {
|
|
1727
|
-
const o = e, u = t, s = k(null), i = k(!1), g = k(""), v =
|
|
1730
|
+
const o = e, u = t, s = k(null), i = k(!1), g = k(""), v = _(() => {
|
|
1728
1731
|
var C, B, L, R;
|
|
1729
1732
|
let y = !0, w = "";
|
|
1730
1733
|
const x = o.modelValue;
|
|
1731
1734
|
return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w, u("validate", y), y;
|
|
1732
|
-
}), p =
|
|
1735
|
+
}), p = _(() => i.value && !v.value), S = (y) => {
|
|
1733
1736
|
const w = y.target;
|
|
1734
1737
|
u("update:modelValue", w.value), i.value && v.value;
|
|
1735
1738
|
}, I = () => {
|
|
@@ -1748,9 +1751,9 @@ const Ee = Q("SunIcon", [
|
|
|
1748
1751
|
isValid: v,
|
|
1749
1752
|
isTouched: i,
|
|
1750
1753
|
errorMessage: g
|
|
1751
|
-
}), (y, w) => (a(), r("div",
|
|
1752
|
-
e.label ? (a(), r("label",
|
|
1753
|
-
l("span",
|
|
1754
|
+
}), (y, w) => (a(), r("div", tl, [
|
|
1755
|
+
e.label ? (a(), r("label", ll, [
|
|
1756
|
+
l("span", nl, z(e.label), 1)
|
|
1754
1757
|
])) : T("", !0),
|
|
1755
1758
|
V(y.$slots, "default"),
|
|
1756
1759
|
l("input", {
|
|
@@ -1789,15 +1792,15 @@ const Ee = Q("SunIcon", [
|
|
|
1789
1792
|
value: e.modelValue,
|
|
1790
1793
|
onInput: S,
|
|
1791
1794
|
onBlur: I
|
|
1792
|
-
}, null, 42,
|
|
1793
|
-
p.value ? (a(), r("div",
|
|
1794
|
-
l("span",
|
|
1795
|
-
])) : v.value && i.value && e.successMessage ? (a(), r("div",
|
|
1796
|
-
l("span",
|
|
1795
|
+
}, null, 42, al),
|
|
1796
|
+
p.value ? (a(), r("div", ol, [
|
|
1797
|
+
l("span", sl, z(g.value), 1)
|
|
1798
|
+
])) : v.value && i.value && e.successMessage ? (a(), r("div", il, [
|
|
1799
|
+
l("span", rl, z(e.successMessage), 1)
|
|
1797
1800
|
])) : T("", !0)
|
|
1798
1801
|
]));
|
|
1799
1802
|
}
|
|
1800
|
-
}),
|
|
1803
|
+
}), tn = /* @__PURE__ */ P({
|
|
1801
1804
|
__name: "loader",
|
|
1802
1805
|
props: {
|
|
1803
1806
|
loading: { type: Boolean, default: !0 },
|
|
@@ -1839,13 +1842,13 @@ const Ee = Q("SunIcon", [
|
|
|
1839
1842
|
]])
|
|
1840
1843
|
}, null, 2)) : T("", !0);
|
|
1841
1844
|
}
|
|
1842
|
-
}),
|
|
1845
|
+
}), ul = { class: "footer sm:footer-horizontal container" }, dl = { class: "footer-title" }, cl = ["href"], fl = {
|
|
1843
1846
|
key: 0,
|
|
1844
1847
|
class: "sm:hidden w-full"
|
|
1845
|
-
},
|
|
1848
|
+
}, ml = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, vl = {
|
|
1846
1849
|
tabindex: "0",
|
|
1847
1850
|
class: "collapse collapse-plus w-full"
|
|
1848
|
-
},
|
|
1851
|
+
}, pl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, hl = { class: "collapse-content flex w-full text-sm" }, gl = { class: "flex flex-col gap-2.5" }, bl = { class: "w-full" }, yl = ["href"], wl = { class: "w-full" }, ln = /* @__PURE__ */ P({
|
|
1849
1852
|
__name: "footer",
|
|
1850
1853
|
props: {
|
|
1851
1854
|
items: {},
|
|
@@ -1858,45 +1861,45 @@ const Ee = Q("SunIcon", [
|
|
|
1858
1861
|
return (t, o) => (a(), r("div", {
|
|
1859
1862
|
class: M(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1860
1863
|
}, [
|
|
1861
|
-
l("footer",
|
|
1864
|
+
l("footer", ul, [
|
|
1862
1865
|
(a(!0), r(j, null, E(c.items, (u) => (a(), r("nav", {
|
|
1863
1866
|
class: M([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
1864
1867
|
}, [
|
|
1865
|
-
l("h6",
|
|
1868
|
+
l("h6", dl, z(u.title), 1),
|
|
1866
1869
|
(a(!0), r(j, null, E(u.items, (s) => (a(), r("a", {
|
|
1867
1870
|
class: "link link-hover",
|
|
1868
1871
|
href: s.link
|
|
1869
|
-
},
|
|
1872
|
+
}, z(s.text), 9, cl))), 256))
|
|
1870
1873
|
], 2))), 256)),
|
|
1871
|
-
e.collapseOnMobile ? (a(), r("nav",
|
|
1872
|
-
(a(!0), r(j, null, E(c.items, (u) => (a(), r("ul",
|
|
1873
|
-
l("div",
|
|
1874
|
-
l("div",
|
|
1875
|
-
l("div",
|
|
1876
|
-
l("ul",
|
|
1877
|
-
(a(!0), r(j, null, E(u.items, (s) => (a(), r("li",
|
|
1874
|
+
e.collapseOnMobile ? (a(), r("nav", fl, [
|
|
1875
|
+
(a(!0), r(j, null, E(c.items, (u) => (a(), r("ul", ml, [
|
|
1876
|
+
l("div", vl, [
|
|
1877
|
+
l("div", pl, z(u.title), 1),
|
|
1878
|
+
l("div", hl, [
|
|
1879
|
+
l("ul", gl, [
|
|
1880
|
+
(a(!0), r(j, null, E(u.items, (s) => (a(), r("li", bl, [
|
|
1878
1881
|
l("a", {
|
|
1879
1882
|
class: "w-full font-medium link link-hover",
|
|
1880
1883
|
href: s.link
|
|
1881
|
-
},
|
|
1884
|
+
}, z(s.text), 9, yl)
|
|
1882
1885
|
]))), 256))
|
|
1883
1886
|
])
|
|
1884
1887
|
])
|
|
1885
1888
|
])
|
|
1886
1889
|
]))), 256))
|
|
1887
1890
|
])) : T("", !0),
|
|
1888
|
-
l("aside",
|
|
1891
|
+
l("aside", wl, [
|
|
1889
1892
|
V(t.$slots, "default")
|
|
1890
1893
|
])
|
|
1891
1894
|
])
|
|
1892
1895
|
], 2));
|
|
1893
1896
|
}
|
|
1894
|
-
}),
|
|
1895
|
-
function
|
|
1896
|
-
return a(), r("div",
|
|
1897
|
-
l("div",
|
|
1897
|
+
}), xl = {}, kl = { class: "min-h-40 container hero" }, $l = { class: "px-0! text-center hero-content" }, Cl = { class: "mt-9 text-4xl" };
|
|
1898
|
+
function Sl(e, c) {
|
|
1899
|
+
return a(), r("div", kl, [
|
|
1900
|
+
l("div", $l, [
|
|
1898
1901
|
l("div", null, [
|
|
1899
|
-
l("h1",
|
|
1902
|
+
l("h1", Cl, [
|
|
1900
1903
|
V(e.$slots, "title", {}, () => [
|
|
1901
1904
|
c[0] || (c[0] = ue("hero title", -1))
|
|
1902
1905
|
])
|
|
@@ -1911,7 +1914,7 @@ function Cl(e, c) {
|
|
|
1911
1914
|
])
|
|
1912
1915
|
]);
|
|
1913
1916
|
}
|
|
1914
|
-
const
|
|
1917
|
+
const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row place-content-center gap-4 categories" }, Tl = ["onClick"], an = /* @__PURE__ */ P({
|
|
1915
1918
|
__name: "categoryNavigation",
|
|
1916
1919
|
props: {
|
|
1917
1920
|
searchOptions: {},
|
|
@@ -1923,18 +1926,18 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
1923
1926
|
function u(s) {
|
|
1924
1927
|
o("update:currentCategory", s);
|
|
1925
1928
|
}
|
|
1926
|
-
return (s, i) => (a(), r("div",
|
|
1929
|
+
return (s, i) => (a(), r("div", Il, [
|
|
1927
1930
|
(a(!0), r(j, null, E(t.searchOptions, (g) => (a(), r("div", {
|
|
1928
1931
|
key: g.category
|
|
1929
1932
|
}, [
|
|
1930
1933
|
l("button", {
|
|
1931
1934
|
onClick: (v) => u(g.category),
|
|
1932
1935
|
class: M(["truncate btn btn-ghost", { "font-semibold": t.currentCategory === g.category }])
|
|
1933
|
-
},
|
|
1936
|
+
}, z(g.category), 11, Tl)
|
|
1934
1937
|
]))), 128))
|
|
1935
1938
|
]));
|
|
1936
1939
|
}
|
|
1937
|
-
}),
|
|
1940
|
+
}), Ml = { class: "md:flex hidden navbar-start" }, Vl = { class: "md:flex justify-center items-center hidden navbar-center" }, Bl = { class: "md:flex hidden navbar-end" }, Dl = { class: "navbar-bottom md:flex hidden" }, zl = /* @__PURE__ */ P({
|
|
1938
1941
|
__name: "navigationBar",
|
|
1939
1942
|
props: {
|
|
1940
1943
|
isCollapsed: { type: Boolean, default: !0 }
|
|
@@ -1944,28 +1947,28 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
1944
1947
|
return (t, o) => (a(), r("nav", {
|
|
1945
1948
|
class: M(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", c.isCollapsed ? "collapsed" : ""])
|
|
1946
1949
|
}, [
|
|
1947
|
-
l("div",
|
|
1950
|
+
l("div", Ml, [
|
|
1948
1951
|
V(t.$slots, "start", {}, void 0, !0)
|
|
1949
1952
|
]),
|
|
1950
|
-
l("div",
|
|
1953
|
+
l("div", Vl, [
|
|
1951
1954
|
V(t.$slots, "center", {}, void 0, !0)
|
|
1952
1955
|
]),
|
|
1953
|
-
l("div",
|
|
1956
|
+
l("div", Bl, [
|
|
1954
1957
|
V(t.$slots, "end", {}, void 0, !0)
|
|
1955
1958
|
]),
|
|
1956
|
-
l("div",
|
|
1959
|
+
l("div", Dl, [
|
|
1957
1960
|
V(t.$slots, "bottom", {}, void 0, !0)
|
|
1958
1961
|
])
|
|
1959
1962
|
], 2));
|
|
1960
1963
|
}
|
|
1961
|
-
}),
|
|
1964
|
+
}), on = /* @__PURE__ */ J(zl, [["__scopeId", "data-v-8ddb2b45"]]), Ol = {
|
|
1962
1965
|
key: 0,
|
|
1963
1966
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
1964
|
-
},
|
|
1967
|
+
}, Pl = ["onClick", "aria-selected"], jl = {
|
|
1965
1968
|
key: 0,
|
|
1966
1969
|
role: "tabpanel",
|
|
1967
1970
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
1968
|
-
},
|
|
1971
|
+
}, Ll = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, sn = /* @__PURE__ */ P({
|
|
1969
1972
|
__name: "tab",
|
|
1970
1973
|
props: {
|
|
1971
1974
|
items: {},
|
|
@@ -1998,7 +2001,7 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
1998
2001
|
role: "tablist",
|
|
1999
2002
|
class: M(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2000
2003
|
}, [
|
|
2001
|
-
e.withControlls ? (a(), r("div",
|
|
2004
|
+
e.withControlls ? (a(), r("div", Ol, [
|
|
2002
2005
|
l("button", {
|
|
2003
2006
|
onClick: p[0] || (p[0] = (S) => g()),
|
|
2004
2007
|
class: "cursor-pointer"
|
|
@@ -2015,13 +2018,13 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
2015
2018
|
class: M(["min-w-max tab", S === o.value ? "bg-primary text-base-100" : ""]),
|
|
2016
2019
|
onClick: (I) => s(S),
|
|
2017
2020
|
"aria-selected": o.value == S
|
|
2018
|
-
},
|
|
2019
|
-
e.buttonOnlyMode ? T("", !0) : (a(), r("div",
|
|
2021
|
+
}, z(S), 11, Pl),
|
|
2022
|
+
e.buttonOnlyMode ? T("", !0) : (a(), r("div", jl, [
|
|
2020
2023
|
V(v.$slots, `${S}-tab`)
|
|
2021
2024
|
]))
|
|
2022
2025
|
], 64))), 256))
|
|
2023
2026
|
], 2),
|
|
2024
|
-
l("div",
|
|
2027
|
+
l("div", Ll, [
|
|
2025
2028
|
V(v.$slots, "default")
|
|
2026
2029
|
])
|
|
2027
2030
|
], 64));
|
|
@@ -2030,28 +2033,28 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
2030
2033
|
typeof document > "u" && (globalThis.document = {});
|
|
2031
2034
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2032
2035
|
export {
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2036
|
+
_l as Accordion,
|
|
2037
|
+
Gl as AdvancedSearch,
|
|
2038
|
+
ql as Avatar,
|
|
2039
|
+
Hl as Badge,
|
|
2040
|
+
Al as ButtonComponent,
|
|
2041
|
+
Wl as Card,
|
|
2042
|
+
Kl as Carousel,
|
|
2043
|
+
Xl as CarouselItem,
|
|
2044
|
+
an as CategoryNavigation,
|
|
2045
|
+
jt as DatetimePicker,
|
|
2046
|
+
Rl as Dropdown,
|
|
2047
|
+
Yl as FilterableSelect,
|
|
2048
|
+
ln as Footer,
|
|
2049
|
+
nn as Hero,
|
|
2050
|
+
en as InputField,
|
|
2051
|
+
tn as Loader,
|
|
2052
|
+
Nl as Modal,
|
|
2053
|
+
on as NavigationBar,
|
|
2054
|
+
Jl as Rating,
|
|
2055
|
+
Ql as Selector,
|
|
2056
|
+
Fl as Swap,
|
|
2057
|
+
sn as Tab,
|
|
2058
|
+
Zl as TagInput,
|
|
2059
|
+
Ul as ThemeController
|
|
2057
2060
|
};
|