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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as P, computed as U, 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 O, 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 F, 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";
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
- }, El = /* @__PURE__ */ P({
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 = U(() => {
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 = U(() => {
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 = 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"], Al = /* @__PURE__ */ P({
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
- }, O(i.text), 9, Te)
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" }, Rl = /* @__PURE__ */ P({
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" }, Nl = /* @__PURE__ */ P({
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"], _l = /* @__PURE__ */ P({
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, F(t)]
347
+ [he, U(t)]
348
348
  ]),
349
- G(F(Ee), { class: "swap-off fill-current" }),
350
- G(F(Le), { class: "swap-on fill-current" })
349
+ G(U(Ee), { class: "swap-off fill-current" }),
350
+ G(U(Le), { class: "swap-on fill-current" })
351
351
  ]));
352
352
  }
353
- }), _e = ["name"], Fe = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Ue = { class: "collapse-content" }, qe = ["innerHTML"], Fl = /* @__PURE__ */ P({
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, _e),
372
- l("div", Fe, O(u.title), 1),
373
- l("div", Ue, [
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" }, Ul = /* @__PURE__ */ P({
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, O(e.initials), 1)
410
+ l("p", We, z(e.initials), 1)
411
411
  ], 2))
412
412
  ], 2));
413
413
  }
414
- }), ql = /* @__PURE__ */ P({
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
- }, Hl = /* @__PURE__ */ P({
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, O(e.title), 1)) : T("", !0),
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, O(e.description), 1)) : T("", !0),
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 = U(() => ({
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), _ = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = d + f * _;
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
- }, z = (w) => {
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) => z(B),
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
- }, Wl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
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(F(c))
673
+ style: Z(U(c))
674
674
  }, [
675
675
  V(t.$slots, "default", {}, void 0, !0)
676
676
  ], 4));
677
677
  }
678
- }), Kl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
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(() => jt)),
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 z(m) {
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
- z(m);
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(), _ = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
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: `${_ + 8}px`,
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, _, q, de;
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 && ((_ = s.value) == null ? void 0 : _.displayMode) === "inline"
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, O(n.name), 1),
923
- n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("p", dt, O(I(n)), 1)) : (a(), r("p", ct, O(n.description), 1))
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) => z(n)),
936
- "onUpdate:modelValue": d[3] || (d[3] = (n) => z(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(F(fe), {
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(F(fe), {
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-${F(u)}`,
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, O(e.currentCategory), 1)
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-${F(u)}`,
980
+ name: `accordion-${U(u)}`,
981
981
  checked: $ === 0
982
982
  }, null, 8, ht),
983
983
  l("div", gt, [
984
- l("div", null, O(n.name), 1),
985
- n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt, O(I(n)), 1)) : (a(), r("div", yt, O(n.description), 1))
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) => z(h)),
992
- "onUpdate:modelValue": d[6] || (d[6] = (h) => z(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
- }), Xl = /* @__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 = {
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: "join items-center gap-2 w-full justify-between py-2 px-4 max-md:input max-md:input-bordered rounded"
1012
- }, It = { class: "join-item" }, Tt = ["id", "disabled"], Mt = { class: "join-item" }, Vt = ["id", "disabled"], Bt = {
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: "px-4 min-w-xs my-2"
1015
- }, Dt = ["id", "disabled"], zt = {
1014
+ class: "p-4 min-w-2xs"
1015
+ }, zt = ["id", "disabled"], Ot = {
1016
1016
  key: 4,
1017
- class: "flex mt-4"
1018
- }, Ot = /* @__PURE__ */ P({
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: "" }), z = k({
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 = U(() => {
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 && z.value.start && z.value.end ? f = `${z.value.start} - ${z.value.end}` : !t.range && z.value.single && (f = z.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
+ 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 } = z.value, { from: b, to: n } = I.value;
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 = z.value.single, f = I.value.single;
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
- z.value.single = i.value.value || null;
1081
+ O.value.single = i.value.value || null;
1081
1082
  else if (g.value) {
1082
1083
  const d = g.value.value;
1083
- z.value.start = (d == null ? void 0 : d.start) || null, z.value.end = (d == null ? void 0 : d.end) || null;
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 (z.value.start = f.split("T")[0], z.value.end = b.split("T")[0], t.mode !== "date") {
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 (z.value.single = f.split("T")[0], t.mode !== "date") {
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, O(e.placeholder), 1)),
1135
- ue(" " + O(y.value), 1)
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 min-w-2xs": t.popup, "mt-2": !t.popup }]),
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("input", {
1258
- class: "max-md:max-w-xs 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",
1259
- type: "time",
1260
- ref_key: "timeFromInput",
1261
- ref: p,
1262
- id: `${t.id}-time-from`,
1263
- placeholder: "van",
1264
- onChange: B,
1265
- disabled: t.disabled
1266
- }, null, 40, Tt)
1267
- ]),
1268
- f[5] || (f[5] = l("svg", {
1269
- class: "join-item",
1270
- viewBox: "0 0 1024 1024",
1271
- focusable: "false",
1272
- "data-icon": "swap-right",
1273
- width: "1em",
1274
- height: "1em",
1275
- fill: "currentColor",
1276
- "aria-hidden": "true"
1277
- }, [
1278
- 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" })
1279
- ], -1)),
1280
- l("div", Mt, [
1281
- l("input", {
1282
- class: "hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
1283
- type: "time",
1284
- ref_key: "timeToInput",
1285
- ref: S,
1286
- id: `${t.id}-time-to`,
1287
- onChange: B,
1288
- disabled: t.disabled
1289
- }, null, 40, Vt)
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", Bt, [
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, Dt)
1304
+ }, null, 40, zt)
1302
1305
  ])) : T("", !0),
1303
- t.popup ? (a(), r("div", zt, [
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
- }, " Close ")
1310
+ }, z(e.closeText), 1)
1308
1311
  ])) : T("", !0)
1309
1312
  ], 10, Ct)) : T("", !0)
1310
1313
  ], 544);
1311
1314
  };
1312
1315
  }
1313
- }), Pt = /* @__PURE__ */ J(Ot, [["__scopeId", "data-v-34004a87"]]), jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1316
+ }), jt = /* @__PURE__ */ J(Pt, [["__scopeId", "data-v-423cdcd2"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1314
1317
  __proto__: null,
1315
- default: Pt
1316
- }, Symbol.toStringTag, { value: "Module" })), Lt = ["value", "checked", "onChange", "disabled"], Gl = /* @__PURE__ */ P({
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, Lt))), 128))
1382
+ }, null, 46, Et))), 128))
1380
1383
  ], 2));
1381
1384
  }
1382
- }), Et = { class: "badge" }, At = ["onClick"], Rt = { class: "opacity-75" }, Nt = ["placeholder"], Jl = /* @__PURE__ */ P({
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 = U(() => s < 0 || u.value.length < s), p = () => {
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
- }, z = (y) => {
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", Et, [
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, At),
1417
- l("span", Rt, O(x), 1)
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: z,
1432
+ onKeydown: O,
1430
1433
  "aria-label": "Add tags"
1431
- }, null, 40, Nt)), [
1434
+ }, null, 40, Ft)), [
1432
1435
  [me, g.value]
1433
1436
  ]) : T("", !0)
1434
1437
  ])
1435
1438
  ], 2));
1436
1439
  }
1437
- }), _t = { class: "w-full max-w-xs form-control" }, Ft = {
1440
+ }), Ut = { class: "w-full max-w-xs form-control" }, _t = {
1438
1441
  key: 0,
1439
1442
  class: "label"
1440
- }, Ut = { class: "label-text" }, qt = ["value"], Ht = {
1443
+ }, qt = { class: "label-text" }, Ht = ["value"], Wt = {
1441
1444
  key: 0,
1442
1445
  value: "",
1443
1446
  disabled: "",
1444
1447
  selected: ""
1445
- }, Wt = ["value"], Zl = /* @__PURE__ */ P({
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", _t, [
1468
- e.label ? (a(), r("label", Ft, [
1469
- l("span", Ut, O(e.label), 1)
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", Ht, O(e.placeholder), 1)) : T("", !0),
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
- }, O(S.text), 9, Wt))), 128))
1483
- ], 40, qt)
1485
+ }, z(S.text), 9, Kt))), 128))
1486
+ ], 40, Ht)
1484
1487
  ]));
1485
1488
  }
1486
- }), Kt = {
1489
+ }), Xt = {
1487
1490
  key: 0,
1488
1491
  class: "label"
1489
- }, Xt = { class: "label-text" }, Gt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Jt = ["placeholder", "disabled"], Zt = {
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
- }, Qt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Yt = ["onMousedown", "id", "aria-selected"], Ql = {
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 = U(() => {
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), z = k(null), y = k(null), w = () => {
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 = U(() => {
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, _) => "option-" + _ === y.value
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
- (_, q) => "option-" + q === y.value
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(), z.value && z.value.focus();
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", Kt, [
1632
- l("span", Xt, O(e.label), 1)
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: z
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, Jt)), [
1670
+ }, null, 40, Zt)), [
1668
1671
  [me, g.value]
1669
1672
  ])
1670
1673
  ]),
1671
- v.value && !e.disabled ? (a(), W(F(je), {
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(F(Pe), {
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, Gt),
1683
- ee(l("div", Zt, [
1684
- l("ul", Qt, [
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((_) => m(h), ["prevent"]),
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, O(h.text), 1)
1694
- ], 40, Yt))), 128))
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
- }, el = { class: "w-full max-w-xs form-control" }, tl = {
1704
+ }, tl = { class: "w-full max-w-xs form-control" }, ll = {
1702
1705
  key: 0,
1703
1706
  class: "label"
1704
- }, ll = { class: "label-text" }, nl = ["type", "placeholder", "disabled", "value"], al = {
1707
+ }, nl = { class: "label-text" }, al = ["type", "placeholder", "disabled", "value"], ol = {
1705
1708
  key: 1,
1706
1709
  class: "label"
1707
- }, ol = { class: "label-text-alt text-error validator-hint" }, sl = {
1710
+ }, sl = { class: "label-text-alt text-error validator-hint" }, il = {
1708
1711
  key: 2,
1709
1712
  class: "label"
1710
- }, il = { class: "label-text-alt text-success validator-hint" }, Yl = /* @__PURE__ */ P({
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 = U(() => {
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 = U(() => i.value && !v.value), S = (y) => {
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", el, [
1752
- e.label ? (a(), r("label", tl, [
1753
- l("span", ll, O(e.label), 1)
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, nl),
1793
- p.value ? (a(), r("div", al, [
1794
- l("span", ol, O(g.value), 1)
1795
- ])) : v.value && i.value && e.successMessage ? (a(), r("div", sl, [
1796
- l("span", il, O(e.successMessage), 1)
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
- }), en = /* @__PURE__ */ P({
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
- }), rl = { class: "footer sm:footer-horizontal container" }, ul = { class: "footer-title" }, dl = ["href"], cl = {
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
- }, fl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, ml = {
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
- }, vl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, pl = { class: "collapse-content flex w-full text-sm" }, hl = { class: "flex flex-col gap-2.5" }, gl = { class: "w-full" }, bl = ["href"], yl = { class: "w-full" }, tn = /* @__PURE__ */ P({
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", rl, [
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", ul, O(u.title), 1),
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
- }, O(s.text), 9, dl))), 256))
1872
+ }, z(s.text), 9, cl))), 256))
1870
1873
  ], 2))), 256)),
1871
- e.collapseOnMobile ? (a(), r("nav", cl, [
1872
- (a(!0), r(j, null, E(c.items, (u) => (a(), r("ul", fl, [
1873
- l("div", ml, [
1874
- l("div", vl, O(u.title), 1),
1875
- l("div", pl, [
1876
- l("ul", hl, [
1877
- (a(!0), r(j, null, E(u.items, (s) => (a(), r("li", gl, [
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
- }, O(s.text), 9, bl)
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", yl, [
1891
+ l("aside", wl, [
1889
1892
  V(t.$slots, "default")
1890
1893
  ])
1891
1894
  ])
1892
1895
  ], 2));
1893
1896
  }
1894
- }), wl = {}, xl = { class: "min-h-40 container hero" }, kl = { class: "px-0! text-center hero-content" }, $l = { class: "mt-9 text-4xl" };
1895
- function Cl(e, c) {
1896
- return a(), r("div", xl, [
1897
- l("div", kl, [
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", $l, [
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 ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row place-content-center gap-4 categories" }, Il = ["onClick"], nn = /* @__PURE__ */ P({
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", Sl, [
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
- }, O(g.category), 11, Il)
1936
+ }, z(g.category), 11, Tl)
1934
1937
  ]))), 128))
1935
1938
  ]));
1936
1939
  }
1937
- }), Tl = { class: "md:flex hidden navbar-start" }, Ml = { class: "md:flex justify-center items-center hidden navbar-center" }, Vl = { class: "md:flex hidden navbar-end" }, Bl = { class: "navbar-bottom md:flex hidden" }, Dl = /* @__PURE__ */ P({
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", Tl, [
1950
+ l("div", Ml, [
1948
1951
  V(t.$slots, "start", {}, void 0, !0)
1949
1952
  ]),
1950
- l("div", Ml, [
1953
+ l("div", Vl, [
1951
1954
  V(t.$slots, "center", {}, void 0, !0)
1952
1955
  ]),
1953
- l("div", Vl, [
1956
+ l("div", Bl, [
1954
1957
  V(t.$slots, "end", {}, void 0, !0)
1955
1958
  ]),
1956
- l("div", Bl, [
1959
+ l("div", Dl, [
1957
1960
  V(t.$slots, "bottom", {}, void 0, !0)
1958
1961
  ])
1959
1962
  ], 2));
1960
1963
  }
1961
- }), an = /* @__PURE__ */ J(Dl, [["__scopeId", "data-v-8ddb2b45"]]), zl = {
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
- }, Ol = ["onClick", "aria-selected"], Pl = {
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
- }, jl = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, on = /* @__PURE__ */ P({
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", zl, [
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
- }, O(S), 11, Ol),
2019
- e.buttonOnlyMode ? T("", !0) : (a(), r("div", Pl, [
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", jl, [
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
- Fl as Accordion,
2034
- Xl as AdvancedSearch,
2035
- Ul as Avatar,
2036
- ql as Badge,
2037
- El as ButtonComponent,
2038
- Hl as Card,
2039
- Wl as Carousel,
2040
- Kl as CarouselItem,
2041
- nn as CategoryNavigation,
2042
- Pt as DatetimePicker,
2043
- Al as Dropdown,
2044
- Ql as FilterableSelect,
2045
- tn as Footer,
2046
- ln as Hero,
2047
- Yl as InputField,
2048
- en as Loader,
2049
- Rl as Modal,
2050
- an as NavigationBar,
2051
- Gl as Rating,
2052
- Zl as Selector,
2053
- Nl as Swap,
2054
- on as Tab,
2055
- Jl as TagInput,
2056
- _l as ThemeController
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
  };