manolis-ui 0.9.1 → 0.10.2
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.js +222 -215
- package/dist/manolis-ui.umd.cjs +4 -4
- package/dist/style.css +55 -0
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as D, createCommentVNode as
|
|
1
|
+
import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as D, createCommentVNode as B, renderSlot as M, createTextVNode as ke, createElementVNode as s, Fragment as O, renderList as P, toDisplayString as C, ref as x, watch as q, h as me, onMounted as ee, withDirectives as H, createVNode as se, isRef as ze, vModelCheckbox as Ae, unref as R, provide as Pe, normalizeStyle as re, inject as Ee, useId as Le, defineAsyncComponent as ce, nextTick as pe, onBeforeUnmount as ge, withModifiers as Q, createBlock as ae, resolveDynamicComponent as ve, mergeProps as fe, withKeys as he, onUnmounted as $e, vModelSelect as Z, vModelText as oe, useSlots as Ue, Comment as Re, vShow as Ne } from "vue";
|
|
2
2
|
const je = ["disabled"], Fe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -14,8 +14,8 @@ const je = ["disabled"], Fe = {
|
|
|
14
14
|
disabled: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(i) {
|
|
17
|
-
const
|
|
18
|
-
switch (
|
|
17
|
+
const p = i, e = E(() => {
|
|
18
|
+
switch (p.size) {
|
|
19
19
|
case "large":
|
|
20
20
|
return "btn-lg";
|
|
21
21
|
case "small":
|
|
@@ -30,7 +30,7 @@ const je = ["disabled"], Fe = {
|
|
|
30
30
|
return "";
|
|
31
31
|
}
|
|
32
32
|
}), t = E(() => {
|
|
33
|
-
switch (
|
|
33
|
+
switch (p.type) {
|
|
34
34
|
case "neutral":
|
|
35
35
|
return "btn-neutral";
|
|
36
36
|
case "primary":
|
|
@@ -55,7 +55,7 @@ const je = ["disabled"], Fe = {
|
|
|
55
55
|
return "btn-neutral";
|
|
56
56
|
}
|
|
57
57
|
}), o = E(() => {
|
|
58
|
-
switch (
|
|
58
|
+
switch (p.shape) {
|
|
59
59
|
case "square":
|
|
60
60
|
return "btn-square";
|
|
61
61
|
case "circle":
|
|
@@ -67,15 +67,15 @@ const je = ["disabled"], Fe = {
|
|
|
67
67
|
return (l, r) => (n(), a("button", {
|
|
68
68
|
class: D([
|
|
69
69
|
"btn",
|
|
70
|
-
{ "btn-outline":
|
|
71
|
-
{ "btn-active":
|
|
70
|
+
{ "btn-outline": p.outlined },
|
|
71
|
+
{ "btn-active": p.active },
|
|
72
72
|
t.value,
|
|
73
73
|
e.value,
|
|
74
74
|
o.value
|
|
75
75
|
]),
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: p.disabled
|
|
77
77
|
}, [
|
|
78
|
-
l.loading ? (n(), a("span", Fe)) :
|
|
78
|
+
l.loading ? (n(), a("span", Fe)) : B("", !0),
|
|
79
79
|
M(l.$slots, "default", {}, () => [
|
|
80
80
|
r[0] || (r[0] = ke("Submit"))
|
|
81
81
|
])
|
|
@@ -94,7 +94,7 @@ const je = ["disabled"], Fe = {
|
|
|
94
94
|
forceOpen: { type: Boolean, default: !1 }
|
|
95
95
|
},
|
|
96
96
|
setup(i) {
|
|
97
|
-
const
|
|
97
|
+
const p = {
|
|
98
98
|
left: "dropdown-left",
|
|
99
99
|
right: "dropdown-right",
|
|
100
100
|
bottom: "dropdown-bottom",
|
|
@@ -104,7 +104,7 @@ const je = ["disabled"], Fe = {
|
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = i;
|
|
106
106
|
return (o, l) => (n(), a("div", {
|
|
107
|
-
class: D(["dropdown",
|
|
107
|
+
class: D(["dropdown", p[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
109
|
M(o.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
@@ -113,7 +113,7 @@ const je = ["disabled"], Fe = {
|
|
|
113
113
|
l[0] || (l[0] = s("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
114
114
|
]),
|
|
115
115
|
s("ul", qe, [
|
|
116
|
-
(n(!0), a(
|
|
116
|
+
(n(!0), a(O, null, P(o.items, (r) => (n(), a("li", null, [
|
|
117
117
|
s("a", {
|
|
118
118
|
href: r.link
|
|
119
119
|
}, C(r.text), 9, He)
|
|
@@ -126,10 +126,11 @@ const je = ["disabled"], Fe = {
|
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
129
|
-
withBackdrop: { type: Boolean, default: !1 }
|
|
129
|
+
withBackdrop: { type: Boolean, default: !1 },
|
|
130
|
+
forceOpen: { type: [Boolean, null], default: null }
|
|
130
131
|
},
|
|
131
132
|
setup(i) {
|
|
132
|
-
const
|
|
133
|
+
const p = i, e = {
|
|
133
134
|
top: "modal-top",
|
|
134
135
|
bottom: "modal-bottom",
|
|
135
136
|
center: "modal-middle"
|
|
@@ -140,19 +141,25 @@ const je = ["disabled"], Fe = {
|
|
|
140
141
|
var r;
|
|
141
142
|
(r = t.value) == null || r.close();
|
|
142
143
|
};
|
|
143
|
-
return (
|
|
144
|
-
|
|
144
|
+
return q(
|
|
145
|
+
() => p.forceOpen,
|
|
146
|
+
(r) => {
|
|
147
|
+
r == !0 && o(), r == !1 && l();
|
|
148
|
+
}
|
|
149
|
+
), (r, b) => (n(), a(O, null, [
|
|
150
|
+
p.forceOpen == null ? (n(), a("span", {
|
|
151
|
+
key: 0,
|
|
145
152
|
class: "w-fit cursor-pointer",
|
|
146
153
|
onClick: o
|
|
147
154
|
}, [
|
|
148
155
|
M(r.$slots, "trigger", { role: "button" }, () => [
|
|
149
156
|
b[0] || (b[0] = s("button", { class: "btn" }, "Open", -1))
|
|
150
157
|
])
|
|
151
|
-
]),
|
|
158
|
+
])) : B("", !0),
|
|
152
159
|
s("dialog", {
|
|
153
160
|
ref_key: "dialog",
|
|
154
161
|
ref: t,
|
|
155
|
-
class: D(["modal", e[
|
|
162
|
+
class: D(["modal", e[p.position]])
|
|
156
163
|
}, [
|
|
157
164
|
s("div", We, [
|
|
158
165
|
M(r.$slots, "default"),
|
|
@@ -178,9 +185,9 @@ const je = ["disabled"], Fe = {
|
|
|
178
185
|
effect: {}
|
|
179
186
|
},
|
|
180
187
|
setup(i) {
|
|
181
|
-
const
|
|
188
|
+
const p = i;
|
|
182
189
|
return (e, t) => (n(), a("label", {
|
|
183
|
-
class: D(["swap",
|
|
190
|
+
class: D(["swap", p.effect ? `swap-${e.effect}` : ""])
|
|
184
191
|
}, [
|
|
185
192
|
t[0] || (t[0] = s("input", { type: "checkbox" }, null, -1)),
|
|
186
193
|
s("div", Ye, [
|
|
@@ -222,14 +229,14 @@ var de = {
|
|
|
222
229
|
* This source code is licensed under the ISC license.
|
|
223
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
224
231
|
*/
|
|
225
|
-
const Ge = ({ size: i, strokeWidth:
|
|
232
|
+
const Ge = ({ size: i, strokeWidth: p = 2, absoluteStrokeWidth: e, color: t, iconNode: o, name: l, class: r, ...b }, { slots: d }) => me(
|
|
226
233
|
"svg",
|
|
227
234
|
{
|
|
228
235
|
...de,
|
|
229
236
|
width: i || de.width,
|
|
230
237
|
height: i || de.height,
|
|
231
238
|
stroke: t || de.stroke,
|
|
232
|
-
"stroke-width": e ? Number(
|
|
239
|
+
"stroke-width": e ? Number(p) * 24 / Number(i) : p,
|
|
233
240
|
class: ["lucide", `lucide-${Xe(l ?? "icon")}`],
|
|
234
241
|
...b
|
|
235
242
|
},
|
|
@@ -241,11 +248,11 @@ const Ge = ({ size: i, strokeWidth: v = 2, absoluteStrokeWidth: e, color: t, ico
|
|
|
241
248
|
* This source code is licensed under the ISC license.
|
|
242
249
|
* See the LICENSE file in the root directory of this source tree.
|
|
243
250
|
*/
|
|
244
|
-
const te = (i,
|
|
251
|
+
const te = (i, p) => (e, { slots: t }) => me(
|
|
245
252
|
Ge,
|
|
246
253
|
{
|
|
247
254
|
...e,
|
|
248
|
-
iconNode:
|
|
255
|
+
iconNode: p,
|
|
249
256
|
name: i
|
|
250
257
|
},
|
|
251
258
|
t
|
|
@@ -318,14 +325,14 @@ const lt = te("SunIcon", [
|
|
|
318
325
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
319
326
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
320
327
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
321
|
-
]), nt = (i,
|
|
328
|
+
]), nt = (i, p) => {
|
|
322
329
|
const e = x(null);
|
|
323
330
|
return ee(() => {
|
|
324
331
|
if (typeof window < "u") {
|
|
325
332
|
const t = window.localStorage.getItem(i);
|
|
326
|
-
e.value = t ? JSON.parse(t) :
|
|
333
|
+
e.value = t ? JSON.parse(t) : p;
|
|
327
334
|
}
|
|
328
|
-
}),
|
|
335
|
+
}), q(e, (t) => {
|
|
329
336
|
typeof window < "u" && window.localStorage.setItem(i, JSON.stringify(t));
|
|
330
337
|
}), e;
|
|
331
338
|
}, at = { class: "swap-rotate swap" }, ot = ["true-value", "false-value"], yn = /* @__PURE__ */ L({
|
|
@@ -335,19 +342,19 @@ const lt = te("SunIcon", [
|
|
|
335
342
|
darkTheme: { default: "dark" }
|
|
336
343
|
},
|
|
337
344
|
setup(i) {
|
|
338
|
-
const
|
|
345
|
+
const p = i, e = nt("theme", p.lightTheme);
|
|
339
346
|
function t(o) {
|
|
340
347
|
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", o);
|
|
341
348
|
}
|
|
342
|
-
return ee(() => t(e.value ? e.value : "")),
|
|
349
|
+
return ee(() => t(e.value ? e.value : "")), q(e, (o) => {
|
|
343
350
|
t(o);
|
|
344
351
|
}), (o, l) => (n(), a("label", at, [
|
|
345
|
-
|
|
352
|
+
H(s("input", {
|
|
346
353
|
type: "checkbox",
|
|
347
354
|
class: "theme-controller",
|
|
348
355
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => ze(e) ? e.value = r : null),
|
|
349
|
-
"true-value":
|
|
350
|
-
"false-value":
|
|
356
|
+
"true-value": p.lightTheme,
|
|
357
|
+
"false-value": p.darkTheme
|
|
351
358
|
}, null, 8, ot), [
|
|
352
359
|
[Ae, R(e)]
|
|
353
360
|
]),
|
|
@@ -364,8 +371,8 @@ const lt = te("SunIcon", [
|
|
|
364
371
|
icon: {}
|
|
365
372
|
},
|
|
366
373
|
setup(i) {
|
|
367
|
-
const
|
|
368
|
-
return (e, t) => (n(!0), a(
|
|
374
|
+
const p = i;
|
|
375
|
+
return (e, t) => (n(!0), a(O, null, P(p.items, (o, l) => (n(), a("div", {
|
|
369
376
|
class: D(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
370
377
|
key: l
|
|
371
378
|
}, [
|
|
@@ -391,9 +398,9 @@ const lt = te("SunIcon", [
|
|
|
391
398
|
fullyRounded: { type: Boolean, default: !1 }
|
|
392
399
|
},
|
|
393
400
|
setup(i) {
|
|
394
|
-
const
|
|
395
|
-
return
|
|
396
|
-
() =>
|
|
401
|
+
const p = i, e = x(p.onlineStatus);
|
|
402
|
+
return q(
|
|
403
|
+
() => p.onlineStatus,
|
|
397
404
|
(t) => {
|
|
398
405
|
t && (e.value = t);
|
|
399
406
|
}
|
|
@@ -424,7 +431,7 @@ const lt = te("SunIcon", [
|
|
|
424
431
|
size: { default: "medium" }
|
|
425
432
|
},
|
|
426
433
|
setup(i) {
|
|
427
|
-
const
|
|
434
|
+
const p = i, e = {
|
|
428
435
|
"extra small": "badge-xs",
|
|
429
436
|
small: "badge-sm",
|
|
430
437
|
medium: "badge-md",
|
|
@@ -441,7 +448,7 @@ const lt = te("SunIcon", [
|
|
|
441
448
|
error: "badge-error"
|
|
442
449
|
};
|
|
443
450
|
return (o, l) => (n(), a("span", {
|
|
444
|
-
class: D(["badge", e[
|
|
451
|
+
class: D(["badge", e[p.size], t[p.color], { "badge-outline": p.outline }])
|
|
445
452
|
}, [
|
|
446
453
|
M(o.$slots, "default")
|
|
447
454
|
], 2));
|
|
@@ -473,9 +480,9 @@ const lt = te("SunIcon", [
|
|
|
473
480
|
imgHeight: { default: "h-44" }
|
|
474
481
|
},
|
|
475
482
|
setup(i) {
|
|
476
|
-
const
|
|
477
|
-
return
|
|
478
|
-
() =>
|
|
483
|
+
const p = i, e = x(p.outlined);
|
|
484
|
+
return q(
|
|
485
|
+
() => p.outlined,
|
|
479
486
|
(t) => {
|
|
480
487
|
e.value = t;
|
|
481
488
|
}
|
|
@@ -493,16 +500,16 @@ const lt = te("SunIcon", [
|
|
|
493
500
|
},
|
|
494
501
|
t.imgHeight
|
|
495
502
|
]])
|
|
496
|
-
}, null, 10, pt)) :
|
|
503
|
+
}, null, 10, pt)) : B("", !0),
|
|
497
504
|
t.loading && t.imgUrl ? (n(), a("div", {
|
|
498
505
|
key: 1,
|
|
499
506
|
class: D(["w-full skeleton", t.imgHeight])
|
|
500
|
-
}, null, 2)) :
|
|
507
|
+
}, null, 2)) : B("", !0)
|
|
501
508
|
]),
|
|
502
|
-
t.loading ?
|
|
503
|
-
t.title ? (n(), a("h2", ft, C(t.title), 1)) :
|
|
509
|
+
t.loading ? B("", !0) : (n(), a("div", vt, [
|
|
510
|
+
t.title ? (n(), a("h2", ft, C(t.title), 1)) : B("", !0),
|
|
504
511
|
M(t.$slots, "details"),
|
|
505
|
-
t.description ? (n(), a("p", mt, C(t.description), 1)) :
|
|
512
|
+
t.description ? (n(), a("p", mt, C(t.description), 1)) : B("", !0),
|
|
506
513
|
s("div", gt, [
|
|
507
514
|
M(t.$slots, "actions")
|
|
508
515
|
])
|
|
@@ -513,7 +520,7 @@ const lt = te("SunIcon", [
|
|
|
513
520
|
s("div", { class: "w-full h-4 skeleton" }),
|
|
514
521
|
s("div", { class: "w-full h-4 skeleton" })
|
|
515
522
|
], -1)
|
|
516
|
-
]))) :
|
|
523
|
+
]))) : B("", !0)
|
|
517
524
|
], 2));
|
|
518
525
|
}
|
|
519
526
|
}), _e = Symbol("CarouselItemStyle"), bt = { class: "relative h-full" }, yt = {
|
|
@@ -559,7 +566,7 @@ const lt = te("SunIcon", [
|
|
|
559
566
|
validator: (i) => i >= 0
|
|
560
567
|
}
|
|
561
568
|
},
|
|
562
|
-
setup(i, { expose:
|
|
569
|
+
setup(i, { expose: p }) {
|
|
563
570
|
const e = i, t = x(e.initialSlide), o = x(null), l = x(!1), r = x(0), b = E(() => ({
|
|
564
571
|
width: `calc((100% - ${e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0}px) / ${e.slidesPerView})`
|
|
565
572
|
}));
|
|
@@ -570,16 +577,16 @@ const lt = te("SunIcon", [
|
|
|
570
577
|
if (!o.value || e.slidesPerView <= 0 || l.value || (d(), r.value === 0)) return;
|
|
571
578
|
const $ = (w % r.value + r.value) % r.value, I = o.value, z = e.sliderOrientation === "vertical" ? (I.offsetHeight - (e.slidesPerView - 1) * e.gap) / e.slidesPerView : (I.offsetWidth - (e.slidesPerView - 1) * e.gap) / e.slidesPerView;
|
|
572
579
|
if (z <= 0) return;
|
|
573
|
-
const j = z + e.gap, W = $ * j, Y = e.sliderOrientation === "vertical" ? I.scrollHeight - I.offsetHeight : I.scrollWidth - I.offsetWidth,
|
|
580
|
+
const j = z + e.gap, W = $ * j, Y = e.sliderOrientation === "vertical" ? I.scrollHeight - I.offsetHeight : I.scrollWidth - I.offsetWidth, v = Math.max(0, Math.min(W, Y + 0.5));
|
|
574
581
|
l.value = !0, I.style.scrollBehavior = "auto";
|
|
575
|
-
const y = e.sliderOrientation === "vertical" ? I.scrollTop : I.scrollLeft, S =
|
|
582
|
+
const y = e.sliderOrientation === "vertical" ? I.scrollTop : I.scrollLeft, S = v - y;
|
|
576
583
|
if (Math.abs(S) < 1) {
|
|
577
584
|
l.value = !1, t.value = $;
|
|
578
585
|
return;
|
|
579
586
|
}
|
|
580
587
|
const T = performance.now(), u = (A) => {
|
|
581
588
|
const _ = A - T, V = Math.min(1, _ / e.slideDuration), K = V < 0.5 ? 4 * V * V * V : 1 - Math.pow(-2 * V + 2, 3) / 2, J = y + S * K;
|
|
582
|
-
e.sliderOrientation === "vertical" ? I.scrollTop = J : I.scrollLeft = J, V < 1 ? requestAnimationFrame(u) : (e.sliderOrientation === "vertical" ? I.scrollTop =
|
|
589
|
+
e.sliderOrientation === "vertical" ? I.scrollTop = J : I.scrollLeft = J, V < 1 ? requestAnimationFrame(u) : (e.sliderOrientation === "vertical" ? I.scrollTop = v : I.scrollLeft = v, t.value = $, l.value = !1);
|
|
583
590
|
};
|
|
584
591
|
requestAnimationFrame(u);
|
|
585
592
|
}, k = () => {
|
|
@@ -592,16 +599,16 @@ const lt = te("SunIcon", [
|
|
|
592
599
|
if (!o.value || e.slidesPerView <= 0 || (d(), r.value === 0)) return;
|
|
593
600
|
const w = o.value, $ = e.sliderOrientation === "vertical" ? w.offsetHeight : w.offsetWidth, I = e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0, z = ($ - I) / e.slidesPerView;
|
|
594
601
|
if (z <= 0) return;
|
|
595
|
-
const j = Math.max(0, r.value - e.slidesPerView), W = Math.min(Math.max(0, e.initialSlide), j), Y = W * (z + e.gap),
|
|
602
|
+
const j = Math.max(0, r.value - e.slidesPerView), W = Math.min(Math.max(0, e.initialSlide), j), Y = W * (z + e.gap), v = e.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth, y = Math.max(0, Math.min(Y, v + 0.5));
|
|
596
603
|
e.sliderOrientation === "vertical" ? w.scrollTo({ top: y, behavior: "auto" }) : w.scrollTo({ left: y, behavior: "auto" }), t.value = W;
|
|
597
604
|
};
|
|
598
605
|
return ee(() => {
|
|
599
606
|
requestAnimationFrame(() => {
|
|
600
607
|
requestAnimationFrame(f);
|
|
601
608
|
}), d();
|
|
602
|
-
}),
|
|
609
|
+
}), q(() => e.initialSlide, (w) => {
|
|
603
610
|
requestAnimationFrame(() => m(w));
|
|
604
|
-
}),
|
|
611
|
+
}), q(() => [e.slidesPerView, e.gap], () => {
|
|
605
612
|
requestAnimationFrame(() => {
|
|
606
613
|
requestAnimationFrame(() => {
|
|
607
614
|
if (d(), r.value === 0) return;
|
|
@@ -609,7 +616,7 @@ const lt = te("SunIcon", [
|
|
|
609
616
|
e.slideDuration = 0, m($), e.slideDuration = I;
|
|
610
617
|
});
|
|
611
618
|
});
|
|
612
|
-
}),
|
|
619
|
+
}), p({ scrollToSlide: m }), (w, $) => (n(), a("div", bt, [
|
|
613
620
|
s("div", {
|
|
614
621
|
ref_key: "carouselContainer",
|
|
615
622
|
ref: o,
|
|
@@ -643,29 +650,29 @@ const lt = te("SunIcon", [
|
|
|
643
650
|
}, "❯", -1))
|
|
644
651
|
], !0)
|
|
645
652
|
])
|
|
646
|
-
])) :
|
|
653
|
+
])) : B("", !0),
|
|
647
654
|
i.showIndicators ? (n(), a("div", wt, [
|
|
648
|
-
(n(!0), a(
|
|
655
|
+
(n(!0), a(O, null, P(r.value, (I, z) => (n(), a("button", {
|
|
649
656
|
key: `dot-${z}`,
|
|
650
657
|
onClick: (j) => N(z),
|
|
651
658
|
class: D(["btn btn-circle btn-xs", { "btn-active": z === t.value }]),
|
|
652
659
|
"aria-label": `Go to slide ${z + 1}`
|
|
653
660
|
}, null, 10, kt))), 128))
|
|
654
|
-
])) :
|
|
661
|
+
])) : B("", !0)
|
|
655
662
|
]));
|
|
656
663
|
}
|
|
657
|
-
}), le = (i,
|
|
664
|
+
}), le = (i, p) => {
|
|
658
665
|
const e = i.__vccOpts || i;
|
|
659
|
-
for (const [t, o] of
|
|
666
|
+
for (const [t, o] of p)
|
|
660
667
|
e[t] = o;
|
|
661
668
|
return e;
|
|
662
669
|
}, Sn = /* @__PURE__ */ le($t, [["__scopeId", "data-v-db55a6a5"]]), _t = /* @__PURE__ */ L({
|
|
663
670
|
__name: "carouselItem",
|
|
664
671
|
setup(i) {
|
|
665
|
-
const
|
|
672
|
+
const p = Ee(_e, x({}));
|
|
666
673
|
return (e, t) => (n(), a("div", {
|
|
667
674
|
class: "w-full h-full carousel-item",
|
|
668
|
-
style: re(R(
|
|
675
|
+
style: re(R(p))
|
|
669
676
|
}, [
|
|
670
677
|
M(e.$slots, "default", {}, void 0, !0)
|
|
671
678
|
], 4));
|
|
@@ -697,8 +704,8 @@ const lt = te("SunIcon", [
|
|
|
697
704
|
value: {}
|
|
698
705
|
},
|
|
699
706
|
emits: ["search", "update:search-data"],
|
|
700
|
-
setup(i, { emit:
|
|
701
|
-
const e = i, t =
|
|
707
|
+
setup(i, { emit: p }) {
|
|
708
|
+
const e = i, t = p, o = e.id ?? `advancedSearch-${Le()}`, l = x(null), r = x(null), b = {
|
|
702
709
|
datetime: ce(() => Promise.resolve().then(() => pl)),
|
|
703
710
|
"standard-select": ce(() => import("./select-Cz4vf_YE.js")),
|
|
704
711
|
// Add other components here when you create them:
|
|
@@ -710,53 +717,53 @@ const lt = te("SunIcon", [
|
|
|
710
717
|
left: "0px",
|
|
711
718
|
top: "0px",
|
|
712
719
|
transform: "translateX(0%)"
|
|
713
|
-
}), k = x(null), U = (
|
|
720
|
+
}), k = x(null), U = (v) => {
|
|
714
721
|
var y;
|
|
715
|
-
if (
|
|
722
|
+
if (v.value === void 0 || v.value === null || v.value === "")
|
|
716
723
|
return "";
|
|
717
|
-
switch (
|
|
724
|
+
switch (v.type) {
|
|
718
725
|
case "datetime":
|
|
719
|
-
if (typeof
|
|
726
|
+
if (typeof v.value == "string")
|
|
720
727
|
try {
|
|
721
|
-
const S = new Date(
|
|
728
|
+
const S = new Date(v.value);
|
|
722
729
|
if (!isNaN(S.getTime()))
|
|
723
730
|
return S.toLocaleString();
|
|
724
731
|
} catch {
|
|
725
732
|
}
|
|
726
|
-
else if (
|
|
733
|
+
else if (v.range && typeof v.value == "object" && v.value !== null && "start" in v.value && "end" in v.value)
|
|
727
734
|
try {
|
|
728
|
-
const S = new Date(
|
|
735
|
+
const S = new Date(v.value.start), T = new Date(v.value.end);
|
|
729
736
|
if (!isNaN(S.getTime()) && !isNaN(T.getTime()))
|
|
730
737
|
return `${S.toLocaleDateString()} - ${T.toLocaleDateString()}`;
|
|
731
738
|
} catch {
|
|
732
739
|
}
|
|
733
740
|
break;
|
|
734
741
|
case "custom-range":
|
|
735
|
-
if (typeof
|
|
736
|
-
return `${
|
|
742
|
+
if (typeof v.value == "object" && v.value !== null && "start" in v.value && "end" in v.value)
|
|
743
|
+
return `${v.value.start} - ${v.value.end}`;
|
|
737
744
|
break;
|
|
738
745
|
case "custom-number":
|
|
739
|
-
if (typeof
|
|
740
|
-
return
|
|
746
|
+
if (typeof v.value == "number")
|
|
747
|
+
return v.value.toString();
|
|
741
748
|
break;
|
|
742
749
|
case "standard-select":
|
|
743
750
|
case "custom-select":
|
|
744
|
-
if ((y =
|
|
745
|
-
const S =
|
|
746
|
-
(T) => T.value ===
|
|
751
|
+
if ((y = v.props) != null && y.options && Array.isArray(v.props.options)) {
|
|
752
|
+
const S = v.props.options.find(
|
|
753
|
+
(T) => T.value === v.value
|
|
747
754
|
);
|
|
748
755
|
if (S)
|
|
749
756
|
return S.text;
|
|
750
757
|
}
|
|
751
|
-
return String(
|
|
758
|
+
return String(v.value);
|
|
752
759
|
case "custom-text":
|
|
753
|
-
if (typeof
|
|
754
|
-
return
|
|
760
|
+
if (typeof v.value == "string")
|
|
761
|
+
return v.value;
|
|
755
762
|
break;
|
|
756
763
|
}
|
|
757
|
-
return String(
|
|
764
|
+
return String(v.value);
|
|
758
765
|
};
|
|
759
|
-
function N(
|
|
766
|
+
function N(v) {
|
|
760
767
|
var u, A;
|
|
761
768
|
const y = (u = l.value) == null ? void 0 : u.name;
|
|
762
769
|
if (!y) {
|
|
@@ -768,45 +775,45 @@ const lt = te("SunIcon", [
|
|
|
768
775
|
)) == null ? void 0 : A.tabs, T = S == null ? void 0 : S.find(
|
|
769
776
|
(_) => _.name === y
|
|
770
777
|
);
|
|
771
|
-
T ? (T.value =
|
|
778
|
+
T ? (T.value = v, t("update:search-data", {
|
|
772
779
|
tab: T.name,
|
|
773
|
-
data:
|
|
780
|
+
data: v
|
|
774
781
|
})) : console.error(
|
|
775
782
|
`Tab with name "${y}" not found in current category.`
|
|
776
783
|
);
|
|
777
784
|
}
|
|
778
|
-
function f(
|
|
779
|
-
N(
|
|
785
|
+
function f(v) {
|
|
786
|
+
N(v);
|
|
780
787
|
}
|
|
781
788
|
function w() {
|
|
782
789
|
t("search");
|
|
783
790
|
}
|
|
784
|
-
async function $(
|
|
791
|
+
async function $(v) {
|
|
785
792
|
var T;
|
|
786
|
-
const y = document.getElementById(`advancedSearchMobile-${o}`), S = y && y.contains(
|
|
787
|
-
((T = l.value) == null ? void 0 : T.displayMode) === "popup" && k.value && !k.value.contains(
|
|
793
|
+
const y = document.getElementById(`advancedSearchMobile-${o}`), S = y && y.contains(v.target);
|
|
794
|
+
((T = l.value) == null ? void 0 : T.displayMode) === "popup" && k.value && !k.value.contains(v.target) && !S && (await pe(), l.value = null);
|
|
788
795
|
}
|
|
789
796
|
async function I() {
|
|
790
797
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
791
|
-
const
|
|
798
|
+
const v = document.getElementById(
|
|
792
799
|
`advancedSearchMobile-${o}`
|
|
793
800
|
);
|
|
794
|
-
|
|
801
|
+
v ? (l.value = null, v.showModal()) : console.warn(
|
|
795
802
|
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${o}".`
|
|
796
803
|
);
|
|
797
804
|
}
|
|
798
805
|
}
|
|
799
|
-
async function z(
|
|
806
|
+
async function z(v) {
|
|
800
807
|
var S, T, u;
|
|
801
808
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
802
809
|
I();
|
|
803
810
|
return;
|
|
804
811
|
}
|
|
805
|
-
const y =
|
|
806
|
-
if (((S = l.value) == null ? void 0 : S.name) ===
|
|
812
|
+
const y = v.displayMode ?? "popup";
|
|
813
|
+
if (((S = l.value) == null ? void 0 : S.name) === v.name && ((T = l.value) == null ? void 0 : T.displayMode) === y)
|
|
807
814
|
l.value = null;
|
|
808
|
-
else if (l.value = { ...
|
|
809
|
-
const A = d.value[
|
|
815
|
+
else if (l.value = { ...v, displayMode: y }, await pe(), ((u = l.value) == null ? void 0 : u.displayMode) === "popup") {
|
|
816
|
+
const A = d.value[v.name];
|
|
810
817
|
if (A && k.value) {
|
|
811
818
|
const _ = A.getBoundingClientRect(), V = k.value.getBoundingClientRect(), K = _.bottom - V.top, J = _.left + _.width / 2 - V.left;
|
|
812
819
|
m.value = {
|
|
@@ -819,12 +826,12 @@ const lt = te("SunIcon", [
|
|
|
819
826
|
} else
|
|
820
827
|
console.error(
|
|
821
828
|
"Tab element or search container not found for positioning:",
|
|
822
|
-
|
|
829
|
+
v.name
|
|
823
830
|
);
|
|
824
831
|
}
|
|
825
832
|
}
|
|
826
|
-
const j = (
|
|
827
|
-
const y =
|
|
833
|
+
const j = (v) => {
|
|
834
|
+
const y = v.relatedTarget;
|
|
828
835
|
setTimeout(() => {
|
|
829
836
|
var S;
|
|
830
837
|
((S = l.value) == null ? void 0 : S.displayMode) === "inline" && k.value && (!y || !k.value.contains(y)) ? (console.log("Blur detected outside container, closing inline view."), l.value = null) : console.log(
|
|
@@ -834,27 +841,27 @@ const lt = te("SunIcon", [
|
|
|
834
841
|
}, W = () => {
|
|
835
842
|
console.log("Enter key pressed on inline component, closing inline view."), l.value = null;
|
|
836
843
|
};
|
|
837
|
-
|
|
844
|
+
q(r, (v) => {
|
|
838
845
|
var y;
|
|
839
846
|
console.log(
|
|
840
847
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
841
|
-
|
|
842
|
-
), console.log("advanced-search: activeTab.value:", l.value),
|
|
848
|
+
v
|
|
849
|
+
), console.log("advanced-search: activeTab.value:", l.value), v && ((y = l.value) == null ? void 0 : y.displayMode) === "inline" ? (console.log(
|
|
843
850
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
844
851
|
), pe(() => {
|
|
845
852
|
console.log(
|
|
846
853
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
847
|
-
), console.log("advanced-search: Type of newValue:", typeof
|
|
854
|
+
), console.log("advanced-search: Type of newValue:", typeof v), console.log(
|
|
848
855
|
"advanced-search: Does newValue have focusInput?",
|
|
849
|
-
typeof
|
|
850
|
-
),
|
|
856
|
+
typeof v.focusInput == "function"
|
|
857
|
+
), v && typeof v.focusInput == "function" ? (console.log(
|
|
851
858
|
"advanced-search: Calling exposed focusInput() method on child instance."
|
|
852
|
-
),
|
|
859
|
+
), v.focusInput()) : console.warn(
|
|
853
860
|
'advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',
|
|
854
|
-
|
|
861
|
+
v
|
|
855
862
|
);
|
|
856
863
|
})) : console.log(
|
|
857
|
-
|
|
864
|
+
v ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
|
|
858
865
|
);
|
|
859
866
|
}), ee(() => {
|
|
860
867
|
document.addEventListener("click", $), window.addEventListener("resize", Y);
|
|
@@ -862,10 +869,10 @@ const lt = te("SunIcon", [
|
|
|
862
869
|
document.removeEventListener("click", $), window.removeEventListener("resize", Y);
|
|
863
870
|
});
|
|
864
871
|
const Y = () => {
|
|
865
|
-
var
|
|
872
|
+
var v, y;
|
|
866
873
|
if (typeof window < "u") {
|
|
867
874
|
const S = window.innerWidth <= 768, T = l.value !== null && (l.value.displayMode === "popup" || l.value.displayMode === "inline") && window.innerWidth > 768;
|
|
868
|
-
!S && (((
|
|
875
|
+
!S && (((v = l.value) == null ? void 0 : v.displayMode) === "popup" || ((y = l.value) == null ? void 0 : y.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), l.value = null), S && !T && l.value !== null && (console.log(
|
|
869
876
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
870
877
|
), l.value = null);
|
|
871
878
|
const u = document.getElementById(
|
|
@@ -874,9 +881,9 @@ const lt = te("SunIcon", [
|
|
|
874
881
|
u != null && u.open && !S && (console.log("Modal is open on desktop, closing modal and active tab."), u.close(), l.value = null);
|
|
875
882
|
}
|
|
876
883
|
};
|
|
877
|
-
return (
|
|
884
|
+
return (v, y) => {
|
|
878
885
|
var S, T;
|
|
879
|
-
return n(), a(
|
|
886
|
+
return n(), a(O, null, [
|
|
880
887
|
s("div", {
|
|
881
888
|
ref_key: "searchContainer",
|
|
882
889
|
ref: k,
|
|
@@ -887,7 +894,7 @@ const lt = te("SunIcon", [
|
|
|
887
894
|
onClick: I
|
|
888
895
|
}, [
|
|
889
896
|
s("div", St, [
|
|
890
|
-
(n(!0), a(
|
|
897
|
+
(n(!0), a(O, null, P(((S = e.searchOptions.find(
|
|
891
898
|
(u) => u.category === e.currentCategory
|
|
892
899
|
)) == null ? void 0 : S.tabs) || [], (u, A) => {
|
|
893
900
|
var _, V, K, J, ie;
|
|
@@ -930,7 +937,7 @@ const lt = te("SunIcon", [
|
|
|
930
937
|
onUpdated: y[2] || (y[2] = (u) => N(u)),
|
|
931
938
|
"onUpdate:modelValue": y[3] || (y[3] = (u) => N(u))
|
|
932
939
|
}), null, 16, ["modelValue"]))
|
|
933
|
-
], 4)) :
|
|
940
|
+
], 4)) : B("", !0),
|
|
934
941
|
s("button", {
|
|
935
942
|
title: "search",
|
|
936
943
|
type: "submit",
|
|
@@ -961,10 +968,10 @@ const lt = te("SunIcon", [
|
|
|
961
968
|
class: "modal"
|
|
962
969
|
}, [
|
|
963
970
|
s("div", Ot, [
|
|
964
|
-
M(
|
|
965
|
-
s("h3", zt, C(
|
|
971
|
+
M(v.$slots, "additionalForMobile", {}, () => [
|
|
972
|
+
s("h3", zt, C(v.currentCategory), 1)
|
|
966
973
|
], !0),
|
|
967
|
-
(n(!0), a(
|
|
974
|
+
(n(!0), a(O, null, P(((T = e.searchOptions.find(
|
|
968
975
|
(u) => u.category === e.currentCategory
|
|
969
976
|
)) == null ? void 0 : T.tabs) || [], (u, A) => (n(), a("div", {
|
|
970
977
|
class: "collapse bg-base-200 my-4",
|
|
@@ -1060,15 +1067,15 @@ const lt = te("SunIcon", [
|
|
|
1060
1067
|
}
|
|
1061
1068
|
},
|
|
1062
1069
|
emits: ["updated"],
|
|
1063
|
-
setup(i, { emit:
|
|
1070
|
+
setup(i, { emit: p }) {
|
|
1064
1071
|
const e = i;
|
|
1065
|
-
|
|
1072
|
+
q(
|
|
1066
1073
|
() => e.range,
|
|
1067
1074
|
(g) => {
|
|
1068
1075
|
g ? (l.value = { start: null, end: null }, r.value = { start: null, end: null }) : (l.value = null, r.value = null);
|
|
1069
1076
|
}
|
|
1070
1077
|
);
|
|
1071
|
-
const t =
|
|
1078
|
+
const t = p, o = x(!1), l = x(e.range ? { start: null, end: null } : null), r = x(e.range ? { start: null, end: null } : null), b = x(
|
|
1072
1079
|
(/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })
|
|
1073
1080
|
), d = x((/* @__PURE__ */ new Date()).getFullYear()), m = x(e.range ? { start: 0, end: 0 } : 0), k = x(e.range ? { start: 0, end: 0 } : 0), U = x(null), N = E(() => `${e.id}-input`), f = E(() => `${e.id}-popup`), w = E(
|
|
1074
1081
|
() => e.mode === "date" || e.mode === "datetime"
|
|
@@ -1088,7 +1095,7 @@ const lt = te("SunIcon", [
|
|
|
1088
1095
|
);
|
|
1089
1096
|
}), Y = E(
|
|
1090
1097
|
() => Array.from({ length: j.value }, (g, h) => h)
|
|
1091
|
-
),
|
|
1098
|
+
), v = Array.from({ length: 24 }, (g, h) => h), y = Array.from({ length: 60 }, (g, h) => h), S = E(
|
|
1092
1099
|
() => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
1093
1100
|
navigator.userAgent
|
|
1094
1101
|
)
|
|
@@ -1201,7 +1208,7 @@ const lt = te("SunIcon", [
|
|
|
1201
1208
|
}, [
|
|
1202
1209
|
se(R(Ze))
|
|
1203
1210
|
], 8, jt)
|
|
1204
|
-
], !0) :
|
|
1211
|
+
], !0) : B("", !0)
|
|
1205
1212
|
]),
|
|
1206
1213
|
o.value || !i.popup ? (n(), a("div", {
|
|
1207
1214
|
key: 0,
|
|
@@ -1229,24 +1236,24 @@ const lt = te("SunIcon", [
|
|
|
1229
1236
|
})
|
|
1230
1237
|
], -1)
|
|
1231
1238
|
]), 8, Ht),
|
|
1232
|
-
|
|
1239
|
+
H(s("select", {
|
|
1233
1240
|
class: "border-none w-fit select",
|
|
1234
1241
|
"onUpdate:modelValue": h[1] || (h[1] = (c) => b.value = c),
|
|
1235
1242
|
onChange: F
|
|
1236
1243
|
}, [
|
|
1237
|
-
(n(), a(
|
|
1244
|
+
(n(), a(O, null, P(T, (c, G) => s("option", {
|
|
1238
1245
|
key: G,
|
|
1239
1246
|
value: c
|
|
1240
1247
|
}, C(c), 9, Wt)), 64))
|
|
1241
1248
|
], 544), [
|
|
1242
1249
|
[Z, b.value]
|
|
1243
1250
|
]),
|
|
1244
|
-
|
|
1251
|
+
H(s("select", {
|
|
1245
1252
|
class: "border-none w-24 select",
|
|
1246
1253
|
"onUpdate:modelValue": h[2] || (h[2] = (c) => d.value = c),
|
|
1247
1254
|
onChange: F
|
|
1248
1255
|
}, [
|
|
1249
|
-
(n(!0), a(
|
|
1256
|
+
(n(!0), a(O, null, P(u.value, (c) => (n(), a("option", {
|
|
1250
1257
|
key: c,
|
|
1251
1258
|
value: c
|
|
1252
1259
|
}, C(c), 9, Kt))), 128))
|
|
@@ -1272,17 +1279,17 @@ const lt = te("SunIcon", [
|
|
|
1272
1279
|
})
|
|
1273
1280
|
], -1)
|
|
1274
1281
|
]))
|
|
1275
|
-
])) :
|
|
1282
|
+
])) : B("", !0),
|
|
1276
1283
|
w.value ? (n(), a("div", Yt, [
|
|
1277
|
-
(n(), a(
|
|
1284
|
+
(n(), a(O, null, P(z, (c) => s("div", {
|
|
1278
1285
|
key: c,
|
|
1279
1286
|
class: "text-center"
|
|
1280
1287
|
}, C(c), 1)), 64)),
|
|
1281
|
-
(n(!0), a(
|
|
1288
|
+
(n(!0), a(O, null, P(Y.value, (c) => (n(), a("div", {
|
|
1282
1289
|
key: c,
|
|
1283
1290
|
class: "text-center"
|
|
1284
1291
|
}))), 128)),
|
|
1285
|
-
(n(!0), a(
|
|
1292
|
+
(n(!0), a(O, null, P(W.value, (c) => (n(), a("div", {
|
|
1286
1293
|
key: c,
|
|
1287
1294
|
class: D(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
1288
1295
|
"bg-primary text-primary-content": Ie(c),
|
|
@@ -1293,13 +1300,13 @@ const lt = te("SunIcon", [
|
|
|
1293
1300
|
}]),
|
|
1294
1301
|
onClick: (G) => Ce(c)
|
|
1295
1302
|
}, C(c.getDate()), 11, Jt))), 128))
|
|
1296
|
-
])) :
|
|
1303
|
+
])) : B("", !0),
|
|
1297
1304
|
$.value ? (n(), a("div", Xt, [
|
|
1298
|
-
e.range ?
|
|
1305
|
+
e.range ? B("", !0) : (n(), a("h3", Gt, "Select Time")),
|
|
1299
1306
|
e.range ? (n(), a("div", ll, [
|
|
1300
1307
|
s("div", null, [
|
|
1301
1308
|
h[14] || (h[14] = s("p", { class: "font-bold" }, "Start Time", -1)),
|
|
1302
|
-
S.value ?
|
|
1309
|
+
S.value ? H((n(), a("input", {
|
|
1303
1310
|
key: 0,
|
|
1304
1311
|
type: "time",
|
|
1305
1312
|
class: "input-bordered w-full input",
|
|
@@ -1308,12 +1315,12 @@ const lt = te("SunIcon", [
|
|
|
1308
1315
|
}, null, 544)), [
|
|
1309
1316
|
[oe, r.value.start]
|
|
1310
1317
|
]) : (n(), a("div", nl, [
|
|
1311
|
-
|
|
1318
|
+
H(s("select", {
|
|
1312
1319
|
class: "w-full select-bordered select",
|
|
1313
1320
|
"onUpdate:modelValue": h[7] || (h[7] = (c) => m.value.start = c),
|
|
1314
1321
|
onChange: F
|
|
1315
1322
|
}, [
|
|
1316
|
-
(n(!0), a(
|
|
1323
|
+
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1317
1324
|
key: c,
|
|
1318
1325
|
value: c
|
|
1319
1326
|
}, C(c.toString().padStart(2, "0")), 9, al))), 128))
|
|
@@ -1325,12 +1332,12 @@ const lt = te("SunIcon", [
|
|
|
1325
1332
|
{ number: !0 }
|
|
1326
1333
|
]
|
|
1327
1334
|
]),
|
|
1328
|
-
|
|
1335
|
+
H(s("select", {
|
|
1329
1336
|
class: "w-full select-bordered select",
|
|
1330
1337
|
"onUpdate:modelValue": h[8] || (h[8] = (c) => k.value.start = c),
|
|
1331
1338
|
onChange: F
|
|
1332
1339
|
}, [
|
|
1333
|
-
(n(!0), a(
|
|
1340
|
+
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1334
1341
|
key: c,
|
|
1335
1342
|
value: c
|
|
1336
1343
|
}, C(c.toString().padStart(2, "0")), 9, ol))), 128))
|
|
@@ -1346,7 +1353,7 @@ const lt = te("SunIcon", [
|
|
|
1346
1353
|
]),
|
|
1347
1354
|
s("div", null, [
|
|
1348
1355
|
h[15] || (h[15] = s("p", { class: "font-bold" }, "End Time", -1)),
|
|
1349
|
-
S.value ?
|
|
1356
|
+
S.value ? H((n(), a("input", {
|
|
1350
1357
|
key: 0,
|
|
1351
1358
|
type: "time",
|
|
1352
1359
|
class: "input-bordered w-full input",
|
|
@@ -1355,12 +1362,12 @@ const lt = te("SunIcon", [
|
|
|
1355
1362
|
}, null, 544)), [
|
|
1356
1363
|
[oe, r.value.end]
|
|
1357
1364
|
]) : (n(), a("div", sl, [
|
|
1358
|
-
|
|
1365
|
+
H(s("select", {
|
|
1359
1366
|
class: "w-full select-bordered select",
|
|
1360
1367
|
"onUpdate:modelValue": h[10] || (h[10] = (c) => m.value.end = c),
|
|
1361
1368
|
onChange: F
|
|
1362
1369
|
}, [
|
|
1363
|
-
(n(!0), a(
|
|
1370
|
+
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1364
1371
|
key: c,
|
|
1365
1372
|
value: c
|
|
1366
1373
|
}, C(c.toString().padStart(2, "0")), 9, rl))), 128))
|
|
@@ -1372,12 +1379,12 @@ const lt = te("SunIcon", [
|
|
|
1372
1379
|
{ number: !0 }
|
|
1373
1380
|
]
|
|
1374
1381
|
]),
|
|
1375
|
-
|
|
1382
|
+
H(s("select", {
|
|
1376
1383
|
class: "w-full select-bordered select",
|
|
1377
1384
|
"onUpdate:modelValue": h[11] || (h[11] = (c) => k.value.end = c),
|
|
1378
1385
|
onChange: F
|
|
1379
1386
|
}, [
|
|
1380
|
-
(n(!0), a(
|
|
1387
|
+
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1381
1388
|
key: c,
|
|
1382
1389
|
value: c
|
|
1383
1390
|
}, C(c.toString().padStart(2, "0")), 9, il))), 128))
|
|
@@ -1392,7 +1399,7 @@ const lt = te("SunIcon", [
|
|
|
1392
1399
|
]))
|
|
1393
1400
|
])
|
|
1394
1401
|
])) : (n(), a("div", Zt, [
|
|
1395
|
-
S.value ?
|
|
1402
|
+
S.value ? H((n(), a("input", {
|
|
1396
1403
|
key: 0,
|
|
1397
1404
|
type: "time",
|
|
1398
1405
|
class: "input-bordered w-full input",
|
|
@@ -1401,12 +1408,12 @@ const lt = te("SunIcon", [
|
|
|
1401
1408
|
}, null, 544)), [
|
|
1402
1409
|
[oe, r.value]
|
|
1403
1410
|
]) : (n(), a("div", Qt, [
|
|
1404
|
-
|
|
1411
|
+
H(s("select", {
|
|
1405
1412
|
class: "w-full select-bordered select",
|
|
1406
1413
|
"onUpdate:modelValue": h[4] || (h[4] = (c) => m.value = c),
|
|
1407
1414
|
onChange: F
|
|
1408
1415
|
}, [
|
|
1409
|
-
(n(!0), a(
|
|
1416
|
+
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1410
1417
|
key: c,
|
|
1411
1418
|
value: c
|
|
1412
1419
|
}, C(c.toString().padStart(2, "0")), 9, el))), 128))
|
|
@@ -1418,12 +1425,12 @@ const lt = te("SunIcon", [
|
|
|
1418
1425
|
{ number: !0 }
|
|
1419
1426
|
]
|
|
1420
1427
|
]),
|
|
1421
|
-
|
|
1428
|
+
H(s("select", {
|
|
1422
1429
|
class: "w-full select-bordered select",
|
|
1423
1430
|
"onUpdate:modelValue": h[5] || (h[5] = (c) => k.value = c),
|
|
1424
1431
|
onChange: F
|
|
1425
1432
|
}, [
|
|
1426
|
-
(n(!0), a(
|
|
1433
|
+
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1427
1434
|
key: c,
|
|
1428
1435
|
value: c
|
|
1429
1436
|
}, C(c.toString().padStart(2, "0")), 9, tl))), 128))
|
|
@@ -1437,7 +1444,7 @@ const lt = te("SunIcon", [
|
|
|
1437
1444
|
])
|
|
1438
1445
|
]))
|
|
1439
1446
|
]))
|
|
1440
|
-
])) :
|
|
1447
|
+
])) : B("", !0),
|
|
1441
1448
|
s("div", ul, [
|
|
1442
1449
|
s("button", {
|
|
1443
1450
|
class: D(["btn btn-secondary", i.popup ? "w-fit" : "w-full"]),
|
|
@@ -1447,9 +1454,9 @@ const lt = te("SunIcon", [
|
|
|
1447
1454
|
key: 0,
|
|
1448
1455
|
class: "btn btn-primary btn-wide",
|
|
1449
1456
|
onClick: X
|
|
1450
|
-
}, " Close ")) :
|
|
1457
|
+
}, " Close ")) : B("", !0)
|
|
1451
1458
|
])
|
|
1452
|
-
], 10, Ft)) :
|
|
1459
|
+
], 10, Ft)) : B("", !0)
|
|
1453
1460
|
], 512));
|
|
1454
1461
|
}
|
|
1455
1462
|
}, cl = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-bab9b3c1"]]), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1468,9 +1475,9 @@ const lt = te("SunIcon", [
|
|
|
1468
1475
|
gap: { default: 0 }
|
|
1469
1476
|
},
|
|
1470
1477
|
setup(i) {
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
-
() =>
|
|
1478
|
+
const p = i, e = x(p.initialRating);
|
|
1479
|
+
q(
|
|
1480
|
+
() => p.initialRating,
|
|
1474
1481
|
(o) => {
|
|
1475
1482
|
e.value = o;
|
|
1476
1483
|
}
|
|
@@ -1480,12 +1487,12 @@ const lt = te("SunIcon", [
|
|
|
1480
1487
|
};
|
|
1481
1488
|
return (o, l) => (n(), a("div", {
|
|
1482
1489
|
class: D(["rating", [
|
|
1483
|
-
`rating-${
|
|
1490
|
+
`rating-${p.size}`,
|
|
1484
1491
|
{ "rating-half": o.halfStars },
|
|
1485
1492
|
{ "pointer-events-none": !o.isInteractive }
|
|
1486
1493
|
]])
|
|
1487
1494
|
}, [
|
|
1488
|
-
(n(!0), a(
|
|
1495
|
+
(n(!0), a(O, null, P(o.numberOfStars * (o.halfStars ? 2 : 1), (r) => (n(), a("input", {
|
|
1489
1496
|
key: r,
|
|
1490
1497
|
type: "radio",
|
|
1491
1498
|
value: o.halfStars ? r * 0.5 : r,
|
|
@@ -1512,10 +1519,10 @@ const lt = te("SunIcon", [
|
|
|
1512
1519
|
"mask-triangle-3": o.shape === "triangle-left",
|
|
1513
1520
|
"mask-triangle-4": o.shape === "triangle-right"
|
|
1514
1521
|
},
|
|
1515
|
-
e.value >= (o.halfStars ? r * 0.5 : r) ?
|
|
1522
|
+
e.value >= (o.halfStars ? r * 0.5 : r) ? p.color : ""
|
|
1516
1523
|
]]),
|
|
1517
1524
|
style: re({
|
|
1518
|
-
marginRight: o.halfStars && r % 2 === 0 ? `${
|
|
1525
|
+
marginRight: o.halfStars && r % 2 === 0 ? `${p.gap}px` : o.halfStars ? "0" : `${p.gap}px`
|
|
1519
1526
|
}),
|
|
1520
1527
|
disabled: !o.isInteractive
|
|
1521
1528
|
}, null, 46, vl))), 128))
|
|
@@ -1530,8 +1537,8 @@ const lt = te("SunIcon", [
|
|
|
1530
1537
|
class: {}
|
|
1531
1538
|
},
|
|
1532
1539
|
emits: ["update:modelValue"],
|
|
1533
|
-
setup(i, { emit:
|
|
1534
|
-
const e = i, t =
|
|
1540
|
+
setup(i, { emit: p }) {
|
|
1541
|
+
const e = i, t = p, o = x([...e.modelValue]), l = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, r = x(null), b = x(""), d = E(() => l < 0 || o.value.length < l), m = () => {
|
|
1535
1542
|
const f = b.value.trim();
|
|
1536
1543
|
f && !o.value.includes(f) && (o.value.push(f), t("update:modelValue", o.value), b.value = "");
|
|
1537
1544
|
}, k = (f) => {
|
|
@@ -1541,12 +1548,12 @@ const lt = te("SunIcon", [
|
|
|
1541
1548
|
}, N = (f) => {
|
|
1542
1549
|
f.key === "Enter" ? m() : f.key === "Backspace" && b.value === "" && U();
|
|
1543
1550
|
};
|
|
1544
|
-
return
|
|
1551
|
+
return q(() => e.modelValue, (f) => {
|
|
1545
1552
|
o.value = [...f];
|
|
1546
1553
|
}), (f, w) => (n(), a("div", {
|
|
1547
1554
|
class: D(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", f.$props.class])
|
|
1548
1555
|
}, [
|
|
1549
|
-
(n(!0), a(
|
|
1556
|
+
(n(!0), a(O, null, P(o.value, ($) => M(f.$slots, "tag", {
|
|
1550
1557
|
key: $,
|
|
1551
1558
|
tag: $
|
|
1552
1559
|
}, () => [
|
|
@@ -1560,7 +1567,7 @@ const lt = te("SunIcon", [
|
|
|
1560
1567
|
])
|
|
1561
1568
|
])), 128)),
|
|
1562
1569
|
M(f.$slots, "input", { showInput: d.value }, () => [
|
|
1563
|
-
d.value ?
|
|
1570
|
+
d.value ? H((n(), a("input", {
|
|
1564
1571
|
key: 0,
|
|
1565
1572
|
ref_key: "inputRef",
|
|
1566
1573
|
ref: r,
|
|
@@ -1572,7 +1579,7 @@ const lt = te("SunIcon", [
|
|
|
1572
1579
|
"aria-label": "Add tags"
|
|
1573
1580
|
}, null, 40, hl)), [
|
|
1574
1581
|
[oe, b.value]
|
|
1575
|
-
]) :
|
|
1582
|
+
]) : B("", !0)
|
|
1576
1583
|
])
|
|
1577
1584
|
], 2));
|
|
1578
1585
|
}
|
|
@@ -1593,13 +1600,13 @@ const lt = te("SunIcon", [
|
|
|
1593
1600
|
modelValue: {}
|
|
1594
1601
|
},
|
|
1595
1602
|
emits: ["update:modelValue"],
|
|
1596
|
-
setup(i, { expose:
|
|
1603
|
+
setup(i, { expose: p, emit: e }) {
|
|
1597
1604
|
console.log(i.placeholder);
|
|
1598
1605
|
const o = e, l = x(null), r = (d) => {
|
|
1599
1606
|
const m = d.target;
|
|
1600
1607
|
o("update:modelValue", m.value);
|
|
1601
1608
|
};
|
|
1602
|
-
return
|
|
1609
|
+
return p({
|
|
1603
1610
|
focusInput: () => {
|
|
1604
1611
|
var d;
|
|
1605
1612
|
console.log("select.vue: focusInput method called."), (d = l.value) == null || d.focus();
|
|
@@ -1609,7 +1616,7 @@ const lt = te("SunIcon", [
|
|
|
1609
1616
|
}), (d, m) => (n(), a("div", bl, [
|
|
1610
1617
|
d.label ? (n(), a("label", yl, [
|
|
1611
1618
|
s("span", wl, C(d.label), 1)
|
|
1612
|
-
])) :
|
|
1619
|
+
])) : B("", !0),
|
|
1613
1620
|
s("select", {
|
|
1614
1621
|
ref_key: "selectElement",
|
|
1615
1622
|
ref: l,
|
|
@@ -1617,8 +1624,8 @@ const lt = te("SunIcon", [
|
|
|
1617
1624
|
value: d.modelValue,
|
|
1618
1625
|
onChange: r
|
|
1619
1626
|
}, [
|
|
1620
|
-
d.placeholder ? (n(), a("option", $l, C(d.placeholder), 1)) :
|
|
1621
|
-
(n(!0), a(
|
|
1627
|
+
d.placeholder ? (n(), a("option", $l, C(d.placeholder), 1)) : B("", !0),
|
|
1628
|
+
(n(!0), a(O, null, P(d.options, (k) => (n(), a("option", {
|
|
1622
1629
|
key: k.value,
|
|
1623
1630
|
value: k.value
|
|
1624
1631
|
}, C(k.text), 9, _l))), 128))
|
|
@@ -1661,7 +1668,7 @@ const lt = te("SunIcon", [
|
|
|
1661
1668
|
}
|
|
1662
1669
|
},
|
|
1663
1670
|
emits: ["update:modelValue", "select", "clear"],
|
|
1664
|
-
setup(i, { expose:
|
|
1671
|
+
setup(i, { expose: p, emit: e }) {
|
|
1665
1672
|
const t = i, o = e, l = Ue(), r = E(() => {
|
|
1666
1673
|
const A = (l.default ? l.default() : []).filter((_) => _.type !== Re);
|
|
1667
1674
|
return console.log("hasDefaultSlotContent computed:", A.length > 0), A.length > 0;
|
|
@@ -1677,7 +1684,7 @@ const lt = te("SunIcon", [
|
|
|
1677
1684
|
(_) => _.text.toLowerCase().includes(u)
|
|
1678
1685
|
);
|
|
1679
1686
|
});
|
|
1680
|
-
|
|
1687
|
+
q(
|
|
1681
1688
|
() => t.modelValue,
|
|
1682
1689
|
(u, A) => {
|
|
1683
1690
|
if (u !== A && $(), u == null)
|
|
@@ -1697,7 +1704,7 @@ const lt = te("SunIcon", [
|
|
|
1697
1704
|
U.value && !U.value.contains(document.activeElement) && $();
|
|
1698
1705
|
}, 100);
|
|
1699
1706
|
};
|
|
1700
|
-
|
|
1707
|
+
q(m, (u) => {
|
|
1701
1708
|
u ? setTimeout(() => {
|
|
1702
1709
|
document.addEventListener("click", j);
|
|
1703
1710
|
}, 0) : document.removeEventListener("click", j);
|
|
@@ -1708,10 +1715,10 @@ const lt = te("SunIcon", [
|
|
|
1708
1715
|
if (t.disabled) return;
|
|
1709
1716
|
const u = d.value;
|
|
1710
1717
|
o("update:modelValue", null), u && o("clear", u);
|
|
1711
|
-
},
|
|
1718
|
+
}, v = (u) => {
|
|
1712
1719
|
d.value = u, r.value || (b.value = u.text), o("update:modelValue", u.value), o("select", u), $();
|
|
1713
1720
|
}, y = () => {
|
|
1714
|
-
z.value.length > 0 &&
|
|
1721
|
+
z.value.length > 0 && v(z.value[0]);
|
|
1715
1722
|
}, S = () => {
|
|
1716
1723
|
m.value || w();
|
|
1717
1724
|
}, T = (u) => {
|
|
@@ -1729,7 +1736,7 @@ const lt = te("SunIcon", [
|
|
|
1729
1736
|
const V = z.value.find(
|
|
1730
1737
|
(K, J) => "option-" + J === f.value
|
|
1731
1738
|
);
|
|
1732
|
-
V &&
|
|
1739
|
+
V && v(V);
|
|
1733
1740
|
return;
|
|
1734
1741
|
} else if (u.key === "Escape") {
|
|
1735
1742
|
u.preventDefault(), $(), N.value && N.value.focus();
|
|
@@ -1744,11 +1751,11 @@ const lt = te("SunIcon", [
|
|
|
1744
1751
|
});
|
|
1745
1752
|
}
|
|
1746
1753
|
};
|
|
1747
|
-
return
|
|
1754
|
+
return q(m, (u) => {
|
|
1748
1755
|
u ? (window.addEventListener("keydown", T), !r.value && !b.value && d.value && (b.value = d.value.text)) : window.removeEventListener("keydown", T);
|
|
1749
1756
|
}), ge(() => {
|
|
1750
1757
|
document.removeEventListener("click", j), window.removeEventListener("keydown", T);
|
|
1751
|
-
}),
|
|
1758
|
+
}), p({
|
|
1752
1759
|
isDropdownOpen: m,
|
|
1753
1760
|
// Expose state
|
|
1754
1761
|
selectedItem: d,
|
|
@@ -1759,7 +1766,7 @@ const lt = te("SunIcon", [
|
|
|
1759
1766
|
// Expose method to close
|
|
1760
1767
|
toggleDropdown: I,
|
|
1761
1768
|
// Expose method to toggle
|
|
1762
|
-
selectItem:
|
|
1769
|
+
selectItem: v,
|
|
1763
1770
|
// Expose method to select an item programmatically
|
|
1764
1771
|
filterText: b,
|
|
1765
1772
|
// Expose filter text (useful if parent controls filtering)
|
|
@@ -1772,7 +1779,7 @@ const lt = te("SunIcon", [
|
|
|
1772
1779
|
}, [
|
|
1773
1780
|
i.label ? (n(), a("label", Sl, [
|
|
1774
1781
|
s("span", xl, C(i.label), 1)
|
|
1775
|
-
])) :
|
|
1782
|
+
])) : B("", !0),
|
|
1776
1783
|
s("div", {
|
|
1777
1784
|
class: D(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !r.value, select: !r.value }]),
|
|
1778
1785
|
style: re(
|
|
@@ -1794,7 +1801,7 @@ const lt = te("SunIcon", [
|
|
|
1794
1801
|
ref: N
|
|
1795
1802
|
}, [
|
|
1796
1803
|
M(u.$slots, "default", {}, () => [
|
|
1797
|
-
r.value ?
|
|
1804
|
+
r.value ? B("", !0) : H((n(), a("input", {
|
|
1798
1805
|
key: 0,
|
|
1799
1806
|
type: "text",
|
|
1800
1807
|
placeholder: i.placeholder,
|
|
@@ -1815,18 +1822,18 @@ const lt = te("SunIcon", [
|
|
|
1815
1822
|
size: 20,
|
|
1816
1823
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1817
1824
|
onClick: Q(Y, ["stop"])
|
|
1818
|
-
})) :
|
|
1825
|
+
})) : B("", !0),
|
|
1819
1826
|
r.value && !d.value ? (n(), ae(R(Qe), {
|
|
1820
1827
|
key: 1,
|
|
1821
1828
|
class: D([{ "rotate-180": m.value }, "mx-2"]),
|
|
1822
1829
|
size: 20
|
|
1823
|
-
}, null, 8, ["class"])) :
|
|
1830
|
+
}, null, 8, ["class"])) : B("", !0)
|
|
1824
1831
|
], 46, Cl),
|
|
1825
|
-
|
|
1832
|
+
H(s("div", Ml, [
|
|
1826
1833
|
s("ul", Dl, [
|
|
1827
|
-
(n(!0), a(
|
|
1834
|
+
(n(!0), a(O, null, P(z.value, (_, V) => (n(), a("li", {
|
|
1828
1835
|
key: _.value,
|
|
1829
|
-
onMousedown: Q((K) =>
|
|
1836
|
+
onMousedown: Q((K) => v(_), ["prevent"]),
|
|
1830
1837
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1831
1838
|
id: "option-" + V,
|
|
1832
1839
|
role: "option",
|
|
@@ -1865,7 +1872,7 @@ const lt = te("SunIcon", [
|
|
|
1865
1872
|
disabled: { type: Boolean, default: !1 }
|
|
1866
1873
|
},
|
|
1867
1874
|
emits: ["update:modelValue", "validate"],
|
|
1868
|
-
setup(i, { expose:
|
|
1875
|
+
setup(i, { expose: p, emit: e }) {
|
|
1869
1876
|
const t = i, o = e, l = x(null), r = x(!1), b = x(""), d = E(() => {
|
|
1870
1877
|
var I, z, j, W;
|
|
1871
1878
|
let f = !0, w = "";
|
|
@@ -1877,12 +1884,12 @@ const lt = te("SunIcon", [
|
|
|
1877
1884
|
}, U = () => {
|
|
1878
1885
|
r.value = !0, d.value;
|
|
1879
1886
|
};
|
|
1880
|
-
return
|
|
1887
|
+
return q(
|
|
1881
1888
|
() => t.modelValue,
|
|
1882
1889
|
() => {
|
|
1883
1890
|
r.value && d.value;
|
|
1884
1891
|
}
|
|
1885
|
-
),
|
|
1892
|
+
), p({
|
|
1886
1893
|
focusInput: () => {
|
|
1887
1894
|
var f;
|
|
1888
1895
|
console.log("inputField.vue: focusInput method called."), (f = l.value) == null || f.focus();
|
|
@@ -1893,7 +1900,7 @@ const lt = te("SunIcon", [
|
|
|
1893
1900
|
}), (f, w) => (n(), a("div", Vl, [
|
|
1894
1901
|
f.label ? (n(), a("label", Bl, [
|
|
1895
1902
|
s("span", Ol, C(f.label), 1)
|
|
1896
|
-
])) :
|
|
1903
|
+
])) : B("", !0),
|
|
1897
1904
|
M(f.$slots, "default"),
|
|
1898
1905
|
s("input", {
|
|
1899
1906
|
ref_key: "inputElement",
|
|
@@ -1936,7 +1943,7 @@ const lt = te("SunIcon", [
|
|
|
1936
1943
|
s("span", Pl, C(b.value), 1)
|
|
1937
1944
|
])) : d.value && r.value && f.successMessage ? (n(), a("div", El, [
|
|
1938
1945
|
s("span", Ll, C(f.successMessage), 1)
|
|
1939
|
-
])) :
|
|
1946
|
+
])) : B("", !0)
|
|
1940
1947
|
]));
|
|
1941
1948
|
}
|
|
1942
1949
|
}), Bn = /* @__PURE__ */ L({
|
|
@@ -1948,9 +1955,9 @@ const lt = te("SunIcon", [
|
|
|
1948
1955
|
color: { default: "primary" }
|
|
1949
1956
|
},
|
|
1950
1957
|
setup(i) {
|
|
1951
|
-
const
|
|
1952
|
-
return
|
|
1953
|
-
() =>
|
|
1958
|
+
const p = i, e = x(p.loading);
|
|
1959
|
+
return q(
|
|
1960
|
+
() => p.loading,
|
|
1954
1961
|
(t) => {
|
|
1955
1962
|
e.value = t;
|
|
1956
1963
|
}
|
|
@@ -1979,7 +1986,7 @@ const lt = te("SunIcon", [
|
|
|
1979
1986
|
{ "text-warning": t.color === "warning" },
|
|
1980
1987
|
{ "text-error": t.color === "error" }
|
|
1981
1988
|
]])
|
|
1982
|
-
}, null, 2)) :
|
|
1989
|
+
}, null, 2)) : B("", !0);
|
|
1983
1990
|
}
|
|
1984
1991
|
}), Ul = { class: "footer sm:footer-horizontal container" }, Rl = { class: "footer-title" }, Nl = ["href"], jl = {
|
|
1985
1992
|
key: 0,
|
|
@@ -1996,27 +2003,27 @@ const lt = te("SunIcon", [
|
|
|
1996
2003
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1997
2004
|
},
|
|
1998
2005
|
setup(i) {
|
|
1999
|
-
const
|
|
2006
|
+
const p = i;
|
|
2000
2007
|
return (e, t) => (n(), a("div", {
|
|
2001
2008
|
class: D(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2002
2009
|
}, [
|
|
2003
2010
|
s("footer", Ul, [
|
|
2004
|
-
(n(!0), a(
|
|
2011
|
+
(n(!0), a(O, null, P(p.items, (o) => (n(), a("nav", {
|
|
2005
2012
|
class: D([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2006
2013
|
}, [
|
|
2007
2014
|
s("h6", Rl, C(o.title), 1),
|
|
2008
|
-
(n(!0), a(
|
|
2015
|
+
(n(!0), a(O, null, P(o.items, (l) => (n(), a("a", {
|
|
2009
2016
|
class: "link link-hover",
|
|
2010
2017
|
href: l.link
|
|
2011
2018
|
}, C(l.text), 9, Nl))), 256))
|
|
2012
2019
|
], 2))), 256)),
|
|
2013
2020
|
e.collapseOnMobile ? (n(), a("nav", jl, [
|
|
2014
|
-
(n(!0), a(
|
|
2021
|
+
(n(!0), a(O, null, P(p.items, (o) => (n(), a("ul", Fl, [
|
|
2015
2022
|
s("div", ql, [
|
|
2016
2023
|
s("div", Hl, C(o.title), 1),
|
|
2017
2024
|
s("div", Wl, [
|
|
2018
2025
|
s("ul", Kl, [
|
|
2019
|
-
(n(!0), a(
|
|
2026
|
+
(n(!0), a(O, null, P(o.items, (l) => (n(), a("li", Yl, [
|
|
2020
2027
|
s("a", {
|
|
2021
2028
|
class: "w-full font-medium link link-hover",
|
|
2022
2029
|
href: l.link
|
|
@@ -2026,7 +2033,7 @@ const lt = te("SunIcon", [
|
|
|
2026
2033
|
])
|
|
2027
2034
|
])
|
|
2028
2035
|
]))), 256))
|
|
2029
|
-
])) :
|
|
2036
|
+
])) : B("", !0),
|
|
2030
2037
|
s("aside", Xl, [
|
|
2031
2038
|
M(e.$slots, "default")
|
|
2032
2039
|
])
|
|
@@ -2034,20 +2041,20 @@ const lt = te("SunIcon", [
|
|
|
2034
2041
|
], 2));
|
|
2035
2042
|
}
|
|
2036
2043
|
}), Gl = {}, Zl = { class: "min-h-40 container hero" }, Ql = { class: "px-0! text-center hero-content" }, en = { class: "mt-9 text-4xl" };
|
|
2037
|
-
function tn(i,
|
|
2044
|
+
function tn(i, p) {
|
|
2038
2045
|
return n(), a("div", Zl, [
|
|
2039
2046
|
s("div", Ql, [
|
|
2040
2047
|
s("div", null, [
|
|
2041
2048
|
s("h1", en, [
|
|
2042
2049
|
M(i.$slots, "title", {}, () => [
|
|
2043
|
-
|
|
2050
|
+
p[0] || (p[0] = ke("hero title"))
|
|
2044
2051
|
])
|
|
2045
2052
|
]),
|
|
2046
2053
|
s("p", null, [
|
|
2047
2054
|
M(i.$slots, "description", { class: "py-9" })
|
|
2048
2055
|
]),
|
|
2049
2056
|
M(i.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
2050
|
-
|
|
2057
|
+
p[1] || (p[1] = s("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2051
2058
|
])
|
|
2052
2059
|
])
|
|
2053
2060
|
])
|
|
@@ -2060,13 +2067,13 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2060
2067
|
currentCategory: {}
|
|
2061
2068
|
},
|
|
2062
2069
|
emits: ["update:currentCategory"],
|
|
2063
|
-
setup(i, { emit:
|
|
2064
|
-
const e = i, t =
|
|
2070
|
+
setup(i, { emit: p }) {
|
|
2071
|
+
const e = i, t = p;
|
|
2065
2072
|
function o(l) {
|
|
2066
2073
|
t("update:currentCategory", l);
|
|
2067
2074
|
}
|
|
2068
2075
|
return (l, r) => (n(), a("div", ln, [
|
|
2069
|
-
(n(!0), a(
|
|
2076
|
+
(n(!0), a(O, null, P(e.searchOptions, (b) => (n(), a("div", {
|
|
2070
2077
|
key: b.category
|
|
2071
2078
|
}, [
|
|
2072
2079
|
s("button", {
|
|
@@ -2082,9 +2089,9 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2082
2089
|
isCollapsed: { type: Boolean, default: !0 }
|
|
2083
2090
|
},
|
|
2084
2091
|
setup(i) {
|
|
2085
|
-
const
|
|
2092
|
+
const p = i;
|
|
2086
2093
|
return (e, t) => (n(), a("nav", {
|
|
2087
|
-
class: D(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",
|
|
2094
|
+
class: D(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", p.isCollapsed ? "collapsed" : ""])
|
|
2088
2095
|
}, [
|
|
2089
2096
|
s("div", an, [
|
|
2090
2097
|
M(e.$slots, "start", {}, void 0, !0)
|
|
@@ -2116,8 +2123,8 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2116
2123
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
2117
2124
|
},
|
|
2118
2125
|
emits: ["tab-changed"],
|
|
2119
|
-
setup(i, { emit:
|
|
2120
|
-
const e = i, t = x(e.items[0]), o =
|
|
2126
|
+
setup(i, { emit: p }) {
|
|
2127
|
+
const e = i, t = x(e.items[0]), o = p;
|
|
2121
2128
|
function l(d) {
|
|
2122
2129
|
t.value = d, o("tab-changed", d);
|
|
2123
2130
|
}
|
|
@@ -2135,7 +2142,7 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2135
2142
|
e.rotateTabsAfter && e.rotateTabsAfter > 0 && setInterval(() => {
|
|
2136
2143
|
r();
|
|
2137
2144
|
}, e.rotateTabsAfter * 1e3);
|
|
2138
|
-
}), (d, m) => (n(), a(
|
|
2145
|
+
}), (d, m) => (n(), a(O, null, [
|
|
2139
2146
|
s("div", {
|
|
2140
2147
|
role: "tablist",
|
|
2141
2148
|
class: D(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": d.buttonOnlyMode }])
|
|
@@ -2149,8 +2156,8 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2149
2156
|
onClick: m[1] || (m[1] = (k) => r()),
|
|
2150
2157
|
class: "text-primary cursor-pointer"
|
|
2151
2158
|
}, "Next")
|
|
2152
|
-
])) :
|
|
2153
|
-
(n(!0), a(
|
|
2159
|
+
])) : B("", !0),
|
|
2160
|
+
(n(!0), a(O, null, P(d.items, (k) => (n(), a(O, null, [
|
|
2154
2161
|
s("a", {
|
|
2155
2162
|
type: "button",
|
|
2156
2163
|
role: "tab",
|
|
@@ -2158,7 +2165,7 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2158
2165
|
onClick: (U) => l(k),
|
|
2159
2166
|
"aria-selected": t.value == k
|
|
2160
2167
|
}, C(k), 11, cn),
|
|
2161
|
-
d.buttonOnlyMode ?
|
|
2168
|
+
d.buttonOnlyMode ? B("", !0) : (n(), a("div", pn, [
|
|
2162
2169
|
M(d.$slots, `${k}-tab`)
|
|
2163
2170
|
]))
|
|
2164
2171
|
], 64))), 256))
|