manolis-ui 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/manolis-ui.js +351 -341
- package/dist/manolis-ui.umd.cjs +4 -4
- 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, [
|
|
@@ -205,7 +212,7 @@ const Xe = (i) => i.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
|
205
212
|
* This source code is licensed under the ISC license.
|
|
206
213
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
214
|
*/
|
|
208
|
-
var
|
|
215
|
+
var de = {
|
|
209
216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
210
217
|
width: 24,
|
|
211
218
|
height: 24,
|
|
@@ -222,18 +229,18 @@ var ue = {
|
|
|
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
|
-
...
|
|
229
|
-
width: i ||
|
|
230
|
-
height: i ||
|
|
231
|
-
stroke: t ||
|
|
232
|
-
"stroke-width": e ? Number(
|
|
235
|
+
...de,
|
|
236
|
+
width: i || de.width,
|
|
237
|
+
height: i || de.height,
|
|
238
|
+
stroke: t || de.stroke,
|
|
239
|
+
"stroke-width": e ? Number(p) * 24 / Number(i) : p,
|
|
233
240
|
class: ["lucide", `lucide-${Xe(l ?? "icon")}`],
|
|
234
241
|
...b
|
|
235
242
|
},
|
|
236
|
-
[...o.map((m) => me(...m)), ...
|
|
243
|
+
[...o.map((m) => me(...m)), ...d.default ? [d.default()] : []]
|
|
237
244
|
);
|
|
238
245
|
/**
|
|
239
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -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,27 +566,27 @@ 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
|
}));
|
|
566
573
|
Pe(_e, b);
|
|
567
|
-
const
|
|
574
|
+
const d = () => {
|
|
568
575
|
o.value ? r.value = o.value.children.length : r.value = 0;
|
|
569
576
|
}, m = async (w) => {
|
|
570
|
-
if (!o.value || e.slidesPerView <= 0 || l.value || (
|
|
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 = () => {
|
|
@@ -589,32 +596,32 @@ const lt = te("SunIcon", [
|
|
|
589
596
|
}, N = (w) => {
|
|
590
597
|
m(w);
|
|
591
598
|
}, f = () => {
|
|
592
|
-
if (!o.value || e.slidesPerView <= 0 || (
|
|
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
|
-
}),
|
|
602
|
-
}),
|
|
608
|
+
}), d();
|
|
609
|
+
}), q(() => e.initialSlide, (w) => {
|
|
603
610
|
requestAnimationFrame(() => m(w));
|
|
604
|
-
}),
|
|
611
|
+
}), q(() => [e.slidesPerView, e.gap], () => {
|
|
605
612
|
requestAnimationFrame(() => {
|
|
606
613
|
requestAnimationFrame(() => {
|
|
607
|
-
if (
|
|
614
|
+
if (d(), r.value === 0) return;
|
|
608
615
|
const w = Math.max(0, r.value - e.slidesPerView), $ = Math.min(t.value, w), I = e.slideDuration;
|
|
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,
|
|
616
623
|
class: D(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": i.sliderOrientation == "horizontal" }, { "carousel-vertical": i.sliderOrientation == "vertical" }]]),
|
|
617
|
-
style:
|
|
624
|
+
style: re({ gap: `${i.gap}px` })
|
|
618
625
|
}, [
|
|
619
626
|
M(w.$slots, "default", {}, void 0, !0)
|
|
620
627
|
], 6),
|
|
@@ -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:
|
|
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:
|
|
@@ -706,57 +713,57 @@ const lt = te("SunIcon", [
|
|
|
706
713
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
707
714
|
"custom-text": ce(() => import("./inputField-BxT95oyM.js"))
|
|
708
715
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
709
|
-
},
|
|
716
|
+
}, d = x({}), m = x({
|
|
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 =
|
|
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,10 +894,10 @@ 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
|
-
var _, V, K, J,
|
|
900
|
+
var _, V, K, J, ie;
|
|
894
901
|
return n(), a("button", {
|
|
895
902
|
key: `${u.name}-${A}`,
|
|
896
903
|
onClick: Q((X) => z(u), ["stop"]),
|
|
@@ -900,9 +907,9 @@ const lt = te("SunIcon", [
|
|
|
900
907
|
// Add new class
|
|
901
908
|
}, "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-[1px] after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
|
|
902
909
|
ref_for: !0,
|
|
903
|
-
ref: (X) =>
|
|
910
|
+
ref: (X) => d.value[u.name] = X
|
|
904
911
|
}, [
|
|
905
|
-
((J = l.value) == null ? void 0 : J.name) === u.name && ((
|
|
912
|
+
((J = l.value) == null ? void 0 : J.name) === u.name && ((ie = l.value) == null ? void 0 : ie.displayMode) === "inline" ? (n(), a("div", Ct, [
|
|
906
913
|
(n(), ae(ve(b[l.value.type]), fe({ ref_for: !0 }, l.value.props || {}, {
|
|
907
914
|
modelValue: l.value.value,
|
|
908
915
|
onUpdated: y[0] || (y[0] = (X) => f(X)),
|
|
@@ -923,14 +930,14 @@ const lt = te("SunIcon", [
|
|
|
923
930
|
l.value && l.value.displayMode === "popup" ? (n(), a("div", {
|
|
924
931
|
key: 0,
|
|
925
932
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
926
|
-
style:
|
|
933
|
+
style: re(m.value)
|
|
927
934
|
}, [
|
|
928
935
|
(n(), ae(ve(b[l.value.type]), fe(l.value.props || {}, {
|
|
929
936
|
modelValue: l.value.value,
|
|
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,35 +1067,35 @@ 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"
|
|
1075
1082
|
), $ = E(
|
|
1076
1083
|
() => e.mode === "time" || e.mode === "datetime"
|
|
1077
1084
|
);
|
|
1078
1085
|
E(
|
|
1079
|
-
() => new Date(
|
|
1086
|
+
() => new Date(d.value, I.value)
|
|
1080
1087
|
);
|
|
1081
1088
|
const I = E(() => T.indexOf(b.value)), z = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], j = E(
|
|
1082
|
-
() => new Date(
|
|
1089
|
+
() => new Date(d.value, I.value).getDay()
|
|
1083
1090
|
), W = E(() => {
|
|
1084
|
-
const g = new Date(
|
|
1091
|
+
const g = new Date(d.value, I.value + 1, 0).getDate();
|
|
1085
1092
|
return Array.from(
|
|
1086
1093
|
{ length: g },
|
|
1087
|
-
(h,
|
|
1094
|
+
(h, c) => new Date(d.value, I.value, c + 1)
|
|
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
|
)
|
|
@@ -1107,7 +1114,7 @@ const lt = te("SunIcon", [
|
|
|
1107
1114
|
"December"
|
|
1108
1115
|
], u = E(() => {
|
|
1109
1116
|
const g = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1110
|
-
return Array.from({ length: 100 }, (h,
|
|
1117
|
+
return Array.from({ length: 100 }, (h, c) => g - 50 + c);
|
|
1111
1118
|
}), A = E(() => {
|
|
1112
1119
|
if (!w.value || !l.value) return "";
|
|
1113
1120
|
if (e.range && l.value.start && l.value.end) {
|
|
@@ -1118,15 +1125,15 @@ const lt = te("SunIcon", [
|
|
|
1118
1125
|
}), _ = (g) => g instanceof Date ? g : new Date(g), V = (g) => g instanceof Date && !isNaN(g), K = E(() => {
|
|
1119
1126
|
if (!$.value) return "";
|
|
1120
1127
|
const g = (h) => {
|
|
1121
|
-
var
|
|
1122
|
-
const
|
|
1123
|
-
return S.value ? ((ye = r.value) == null ? void 0 : ye[h]) ?? r.value : `${
|
|
1128
|
+
var ue, ne, ye;
|
|
1129
|
+
const c = ((ue = m.value) == null ? void 0 : ue[h]) ?? m.value, G = ((ne = k.value) == null ? void 0 : ne[h]) ?? k.value;
|
|
1130
|
+
return S.value ? ((ye = r.value) == null ? void 0 : ye[h]) ?? r.value : `${c.toString().padStart(2, "0")}:${G.toString().padStart(2, "0")}`;
|
|
1124
1131
|
};
|
|
1125
1132
|
return e.range ? `${g("start")} - ${g("end")}` : g();
|
|
1126
1133
|
}), J = E(() => {
|
|
1127
1134
|
const g = A.value, h = K.value;
|
|
1128
1135
|
return `${g} ${h}`.trim();
|
|
1129
|
-
}),
|
|
1136
|
+
}), ie = () => o.value = !o.value, X = () => {
|
|
1130
1137
|
F(), Se();
|
|
1131
1138
|
}, Se = () => o.value = !1, xe = () => {
|
|
1132
1139
|
l.value = e.range ? { start: null, end: null } : null, r.value = e.range ? { start: null, end: null } : null, F();
|
|
@@ -1138,24 +1145,24 @@ const lt = te("SunIcon", [
|
|
|
1138
1145
|
return g.getDate() === h.getDate() && g.getMonth() === h.getMonth() && g.getFullYear() === h.getFullYear();
|
|
1139
1146
|
}, De = (g) => (g = _(g), e.range && V(l.value.start) && g.getTime() === l.value.start.getTime()), Te = (g) => (g = _(g), e.range && V(l.value.end) && g.getTime() === l.value.end.getTime()), Ve = (g) => {
|
|
1140
1147
|
if (g = _(g), e.range && V(l.value.start) && V(l.value.end)) {
|
|
1141
|
-
const h = l.value.start.getTime(),
|
|
1142
|
-
return G > h && G <
|
|
1148
|
+
const h = l.value.start.getTime(), c = l.value.end.getTime(), G = g.getTime();
|
|
1149
|
+
return G > h && G < c;
|
|
1143
1150
|
}
|
|
1144
1151
|
return !1;
|
|
1145
1152
|
}, Be = () => {
|
|
1146
1153
|
let g = I.value - 1;
|
|
1147
|
-
g < 0 && (g = 11,
|
|
1154
|
+
g < 0 && (g = 11, d.value--), b.value = T[g], F();
|
|
1148
1155
|
}, Oe = () => {
|
|
1149
1156
|
let g = I.value + 1;
|
|
1150
|
-
g > 11 && (g = 0,
|
|
1157
|
+
g > 11 && (g = 0, d.value++), b.value = T[g], F();
|
|
1151
1158
|
}, be = (g) => {
|
|
1152
1159
|
U.value && !U.value.contains(g.target) && o.value == !0 && X();
|
|
1153
1160
|
}, F = () => {
|
|
1154
1161
|
let g = {};
|
|
1155
|
-
const h = (
|
|
1156
|
-
|
|
1157
|
-
const ne = new Date(
|
|
1158
|
-
return ne.setUTCHours(G,
|
|
1162
|
+
const h = (c, G, ue) => {
|
|
1163
|
+
c instanceof Date && !isNaN(c) || (c = /* @__PURE__ */ new Date());
|
|
1164
|
+
const ne = new Date(c);
|
|
1165
|
+
return ne.setUTCHours(G, ue, 0, 0), ne.toISOString();
|
|
1159
1166
|
};
|
|
1160
1167
|
e.range ? (g.from = h(
|
|
1161
1168
|
l.value.start,
|
|
@@ -1183,7 +1190,7 @@ const lt = te("SunIcon", [
|
|
|
1183
1190
|
}, [
|
|
1184
1191
|
s("div", {
|
|
1185
1192
|
class: "flex items-center gap-2 cursor-pointer",
|
|
1186
|
-
onClick: h[0] || (h[0] = (
|
|
1193
|
+
onClick: h[0] || (h[0] = (c) => e.disabled ? null : ie())
|
|
1187
1194
|
}, [
|
|
1188
1195
|
i.popup ? M(g.$slots, "default", { key: 0 }, () => [
|
|
1189
1196
|
s("input", {
|
|
@@ -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,29 +1236,29 @@ 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
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
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
|
-
value:
|
|
1240
|
-
}, C(
|
|
1246
|
+
value: c
|
|
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
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
1253
|
+
"onUpdate:modelValue": h[2] || (h[2] = (c) => d.value = c),
|
|
1247
1254
|
onChange: F
|
|
1248
1255
|
}, [
|
|
1249
|
-
(n(!0), a(
|
|
1250
|
-
key:
|
|
1251
|
-
value:
|
|
1252
|
-
}, C(
|
|
1256
|
+
(n(!0), a(O, null, P(u.value, (c) => (n(), a("option", {
|
|
1257
|
+
key: c,
|
|
1258
|
+
value: c
|
|
1259
|
+
}, C(c), 9, Kt))), 128))
|
|
1253
1260
|
], 544), [
|
|
1254
|
-
[Z,
|
|
1261
|
+
[Z, d.value]
|
|
1255
1262
|
]),
|
|
1256
1263
|
s("button", {
|
|
1257
1264
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
@@ -1272,51 +1279,51 @@ 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(
|
|
1278
|
-
key:
|
|
1284
|
+
(n(), a(O, null, P(z, (c) => s("div", {
|
|
1285
|
+
key: c,
|
|
1279
1286
|
class: "text-center"
|
|
1280
|
-
}, C(
|
|
1281
|
-
(n(!0), a(
|
|
1282
|
-
key:
|
|
1287
|
+
}, C(c), 1)), 64)),
|
|
1288
|
+
(n(!0), a(O, null, P(Y.value, (c) => (n(), a("div", {
|
|
1289
|
+
key: c,
|
|
1283
1290
|
class: "text-center"
|
|
1284
1291
|
}))), 128)),
|
|
1285
|
-
(n(!0), a(
|
|
1286
|
-
key:
|
|
1292
|
+
(n(!0), a(O, null, P(W.value, (c) => (n(), a("div", {
|
|
1293
|
+
key: c,
|
|
1287
1294
|
class: D(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
1288
|
-
"bg-primary text-primary-content": Ie(
|
|
1289
|
-
today: Me(
|
|
1290
|
-
"range-start bg-primary text-primary-content": De(
|
|
1291
|
-
"range-end bg-primary text-primary-content": Te(
|
|
1292
|
-
"in-range bg-primary/20 hover:bg-primary/10": Ve(
|
|
1295
|
+
"bg-primary text-primary-content": Ie(c),
|
|
1296
|
+
today: Me(c),
|
|
1297
|
+
"range-start bg-primary text-primary-content": De(c),
|
|
1298
|
+
"range-end bg-primary text-primary-content": Te(c),
|
|
1299
|
+
"in-range bg-primary/20 hover:bg-primary/10": Ve(c)
|
|
1293
1300
|
}]),
|
|
1294
|
-
onClick: (G) => Ce(
|
|
1295
|
-
}, C(
|
|
1296
|
-
])) :
|
|
1301
|
+
onClick: (G) => Ce(c)
|
|
1302
|
+
}, C(c.getDate()), 11, Jt))), 128))
|
|
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",
|
|
1306
|
-
"onUpdate:modelValue": h[6] || (h[6] = (
|
|
1313
|
+
"onUpdate:modelValue": h[6] || (h[6] = (c) => r.value.start = c),
|
|
1307
1314
|
onChange: F
|
|
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
|
-
"onUpdate:modelValue": h[7] || (h[7] = (
|
|
1320
|
+
"onUpdate:modelValue": h[7] || (h[7] = (c) => m.value.start = c),
|
|
1314
1321
|
onChange: F
|
|
1315
1322
|
}, [
|
|
1316
|
-
(n(!0), a(
|
|
1317
|
-
key:
|
|
1318
|
-
value:
|
|
1319
|
-
}, C(
|
|
1323
|
+
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1324
|
+
key: c,
|
|
1325
|
+
value: c
|
|
1326
|
+
}, C(c.toString().padStart(2, "0")), 9, al))), 128))
|
|
1320
1327
|
], 544), [
|
|
1321
1328
|
[
|
|
1322
1329
|
Z,
|
|
@@ -1325,15 +1332,15 @@ 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
|
-
"onUpdate:modelValue": h[8] || (h[8] = (
|
|
1337
|
+
"onUpdate:modelValue": h[8] || (h[8] = (c) => k.value.start = c),
|
|
1331
1338
|
onChange: F
|
|
1332
1339
|
}, [
|
|
1333
|
-
(n(!0), a(
|
|
1334
|
-
key:
|
|
1335
|
-
value:
|
|
1336
|
-
}, C(
|
|
1340
|
+
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1341
|
+
key: c,
|
|
1342
|
+
value: c
|
|
1343
|
+
}, C(c.toString().padStart(2, "0")), 9, ol))), 128))
|
|
1337
1344
|
], 544), [
|
|
1338
1345
|
[
|
|
1339
1346
|
Z,
|
|
@@ -1346,24 +1353,24 @@ 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",
|
|
1353
|
-
"onUpdate:modelValue": h[9] || (h[9] = (
|
|
1360
|
+
"onUpdate:modelValue": h[9] || (h[9] = (c) => r.value.end = c),
|
|
1354
1361
|
onChange: F
|
|
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
|
-
"onUpdate:modelValue": h[10] || (h[10] = (
|
|
1367
|
+
"onUpdate:modelValue": h[10] || (h[10] = (c) => m.value.end = c),
|
|
1361
1368
|
onChange: F
|
|
1362
1369
|
}, [
|
|
1363
|
-
(n(!0), a(
|
|
1364
|
-
key:
|
|
1365
|
-
value:
|
|
1366
|
-
}, C(
|
|
1370
|
+
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1371
|
+
key: c,
|
|
1372
|
+
value: c
|
|
1373
|
+
}, C(c.toString().padStart(2, "0")), 9, rl))), 128))
|
|
1367
1374
|
], 544), [
|
|
1368
1375
|
[
|
|
1369
1376
|
Z,
|
|
@@ -1372,15 +1379,15 @@ 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
|
-
"onUpdate:modelValue": h[11] || (h[11] = (
|
|
1384
|
+
"onUpdate:modelValue": h[11] || (h[11] = (c) => k.value.end = c),
|
|
1378
1385
|
onChange: F
|
|
1379
1386
|
}, [
|
|
1380
|
-
(n(!0), a(
|
|
1381
|
-
key:
|
|
1382
|
-
value:
|
|
1383
|
-
}, C(
|
|
1387
|
+
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1388
|
+
key: c,
|
|
1389
|
+
value: c
|
|
1390
|
+
}, C(c.toString().padStart(2, "0")), 9, il))), 128))
|
|
1384
1391
|
], 544), [
|
|
1385
1392
|
[
|
|
1386
1393
|
Z,
|
|
@@ -1392,24 +1399,24 @@ 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",
|
|
1399
|
-
"onUpdate:modelValue": h[3] || (h[3] = (
|
|
1406
|
+
"onUpdate:modelValue": h[3] || (h[3] = (c) => r.value = c),
|
|
1400
1407
|
onChange: F
|
|
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
|
-
"onUpdate:modelValue": h[4] || (h[4] = (
|
|
1413
|
+
"onUpdate:modelValue": h[4] || (h[4] = (c) => m.value = c),
|
|
1407
1414
|
onChange: F
|
|
1408
1415
|
}, [
|
|
1409
|
-
(n(!0), a(
|
|
1410
|
-
key:
|
|
1411
|
-
value:
|
|
1412
|
-
}, C(
|
|
1416
|
+
(n(!0), a(O, null, P(R(v), (c) => (n(), a("option", {
|
|
1417
|
+
key: c,
|
|
1418
|
+
value: c
|
|
1419
|
+
}, C(c.toString().padStart(2, "0")), 9, el))), 128))
|
|
1413
1420
|
], 544), [
|
|
1414
1421
|
[
|
|
1415
1422
|
Z,
|
|
@@ -1418,15 +1425,15 @@ 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
|
-
"onUpdate:modelValue": h[5] || (h[5] = (
|
|
1430
|
+
"onUpdate:modelValue": h[5] || (h[5] = (c) => k.value = c),
|
|
1424
1431
|
onChange: F
|
|
1425
1432
|
}, [
|
|
1426
|
-
(n(!0), a(
|
|
1427
|
-
key:
|
|
1428
|
-
value:
|
|
1429
|
-
}, C(
|
|
1433
|
+
(n(!0), a(O, null, P(R(y), (c) => (n(), a("option", {
|
|
1434
|
+
key: c,
|
|
1435
|
+
value: c
|
|
1436
|
+
}, C(c.toString().padStart(2, "0")), 9, tl))), 128))
|
|
1430
1437
|
], 544), [
|
|
1431
1438
|
[
|
|
1432
1439
|
Z,
|
|
@@ -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
|
-
style:
|
|
1518
|
-
marginRight: o.halfStars && r % 2 === 0 ? `${
|
|
1524
|
+
style: re({
|
|
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
|
}, () => [
|
|
@@ -1559,8 +1566,8 @@ const lt = te("SunIcon", [
|
|
|
1559
1566
|
s("span", gl, C($), 1)
|
|
1560
1567
|
])
|
|
1561
1568
|
])), 128)),
|
|
1562
|
-
M(f.$slots, "input", { showInput:
|
|
1563
|
-
|
|
1569
|
+
M(f.$slots, "input", { showInput: 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,32 +1600,32 @@ 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
|
-
const o = e, l = x(null), r = (
|
|
1599
|
-
const m =
|
|
1605
|
+
const o = e, l = x(null), r = (d) => {
|
|
1606
|
+
const m = d.target;
|
|
1600
1607
|
o("update:modelValue", m.value);
|
|
1601
1608
|
};
|
|
1602
|
-
return
|
|
1609
|
+
return p({
|
|
1603
1610
|
focusInput: () => {
|
|
1604
|
-
var
|
|
1605
|
-
console.log("select.vue: focusInput method called."), (
|
|
1611
|
+
var d;
|
|
1612
|
+
console.log("select.vue: focusInput method called."), (d = l.value) == null || d.focus();
|
|
1606
1613
|
}
|
|
1607
1614
|
// You can expose other properties or methods here if needed by the parent
|
|
1608
1615
|
// e.g., the current value: modelValue
|
|
1609
|
-
}), (
|
|
1610
|
-
|
|
1611
|
-
s("span", wl, C(
|
|
1612
|
-
])) :
|
|
1616
|
+
}), (d, m) => (n(), a("div", bl, [
|
|
1617
|
+
d.label ? (n(), a("label", yl, [
|
|
1618
|
+
s("span", wl, C(d.label), 1)
|
|
1619
|
+
])) : B("", !0),
|
|
1613
1620
|
s("select", {
|
|
1614
1621
|
ref_key: "selectElement",
|
|
1615
1622
|
ref: l,
|
|
1616
1623
|
class: "rounded-md w-full select-bordered select",
|
|
1617
|
-
value:
|
|
1624
|
+
value: d.modelValue,
|
|
1618
1625
|
onChange: r
|
|
1619
1626
|
}, [
|
|
1620
|
-
|
|
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,14 +1668,14 @@ 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;
|
|
1668
|
-
}), b = x(""),
|
|
1675
|
+
}), b = x(""), d = x(null), m = x(!1), k = x(null), U = x(null), N = x(null), f = x(null), w = () => {
|
|
1669
1676
|
m.value = !t.disabled;
|
|
1670
1677
|
}, $ = () => {
|
|
1671
|
-
m.value = !1, f.value = null, r.value || (
|
|
1678
|
+
m.value = !1, f.value = null, r.value || (d.value && b.value !== d.value.text ? b.value = d.value.text : d.value || (b.value = ""));
|
|
1672
1679
|
}, I = () => {
|
|
1673
1680
|
m.value ? $() : w();
|
|
1674
1681
|
}, z = E(() => {
|
|
@@ -1677,14 +1684,14 @@ 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)
|
|
1684
|
-
|
|
1691
|
+
d.value = null, !m.value && !r.value && (b.value = "");
|
|
1685
1692
|
else {
|
|
1686
1693
|
const _ = t.options.find((V) => V.value === u);
|
|
1687
|
-
_ ? (
|
|
1694
|
+
_ ? (d.value = _, !m.value && !r.value && (b.value = _.text)) : (d.value = null, !m.value && !r.value && (b.value = ""));
|
|
1688
1695
|
}
|
|
1689
1696
|
},
|
|
1690
1697
|
{ immediate: !0 }
|
|
@@ -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);
|
|
@@ -1706,12 +1713,12 @@ const lt = te("SunIcon", [
|
|
|
1706
1713
|
});
|
|
1707
1714
|
const Y = () => {
|
|
1708
1715
|
if (t.disabled) return;
|
|
1709
|
-
const u =
|
|
1716
|
+
const u = d.value;
|
|
1710
1717
|
o("update:modelValue", null), u && o("clear", u);
|
|
1711
|
-
},
|
|
1712
|
-
|
|
1718
|
+
}, v = (u) => {
|
|
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,14 +1751,14 @@ const lt = te("SunIcon", [
|
|
|
1744
1751
|
});
|
|
1745
1752
|
}
|
|
1746
1753
|
};
|
|
1747
|
-
return
|
|
1748
|
-
u ? (window.addEventListener("keydown", T), !r.value && !b.value &&
|
|
1754
|
+
return q(m, (u) => {
|
|
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
|
-
selectedItem:
|
|
1761
|
+
selectedItem: d,
|
|
1755
1762
|
// Expose selected item
|
|
1756
1763
|
openDropdown: w,
|
|
1757
1764
|
// Expose method to open
|
|
@@ -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,9 +1779,12 @@ 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 }]),
|
|
1785
|
+
style: re(
|
|
1786
|
+
d.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1787
|
+
),
|
|
1778
1788
|
tabindex: "0",
|
|
1779
1789
|
onClick: A[1] || (A[1] = (_) => r.value ? I() : w()),
|
|
1780
1790
|
onKeydown: [
|
|
@@ -1791,7 +1801,7 @@ const lt = te("SunIcon", [
|
|
|
1791
1801
|
ref: N
|
|
1792
1802
|
}, [
|
|
1793
1803
|
M(u.$slots, "default", {}, () => [
|
|
1794
|
-
r.value ?
|
|
1804
|
+
r.value ? B("", !0) : H((n(), a("input", {
|
|
1795
1805
|
key: 0,
|
|
1796
1806
|
type: "text",
|
|
1797
1807
|
placeholder: i.placeholder,
|
|
@@ -1807,27 +1817,27 @@ const lt = te("SunIcon", [
|
|
|
1807
1817
|
[oe, b.value]
|
|
1808
1818
|
])
|
|
1809
1819
|
]),
|
|
1810
|
-
|
|
1820
|
+
d.value && !i.disabled ? (n(), ae(R(et), {
|
|
1811
1821
|
key: 0,
|
|
1812
1822
|
size: 20,
|
|
1813
1823
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1814
1824
|
onClick: Q(Y, ["stop"])
|
|
1815
|
-
})) :
|
|
1816
|
-
r.value && !
|
|
1825
|
+
})) : B("", !0),
|
|
1826
|
+
r.value && !d.value ? (n(), ae(R(Qe), {
|
|
1817
1827
|
key: 1,
|
|
1818
1828
|
class: D([{ "rotate-180": m.value }, "mx-2"]),
|
|
1819
1829
|
size: 20
|
|
1820
|
-
}, null, 8, ["class"])) :
|
|
1821
|
-
],
|
|
1822
|
-
|
|
1830
|
+
}, null, 8, ["class"])) : B("", !0)
|
|
1831
|
+
], 46, Cl),
|
|
1832
|
+
H(s("div", Ml, [
|
|
1823
1833
|
s("ul", Dl, [
|
|
1824
|
-
(n(!0), a(
|
|
1834
|
+
(n(!0), a(O, null, P(z.value, (_, V) => (n(), a("li", {
|
|
1825
1835
|
key: _.value,
|
|
1826
|
-
onMousedown: Q((K) =>
|
|
1836
|
+
onMousedown: Q((K) => v(_), ["prevent"]),
|
|
1827
1837
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1828
1838
|
id: "option-" + V,
|
|
1829
1839
|
role: "option",
|
|
1830
|
-
"aria-selected":
|
|
1840
|
+
"aria-selected": d.value && d.value.value === _.value
|
|
1831
1841
|
}, [
|
|
1832
1842
|
s("a", null, C(_.text), 1)
|
|
1833
1843
|
], 40, Tl))), 128))
|
|
@@ -1862,35 +1872,35 @@ const lt = te("SunIcon", [
|
|
|
1862
1872
|
disabled: { type: Boolean, default: !1 }
|
|
1863
1873
|
},
|
|
1864
1874
|
emits: ["update:modelValue", "validate"],
|
|
1865
|
-
setup(i, { expose:
|
|
1866
|
-
const t = i, o = e, l = x(null), r = x(!1), b = x(""),
|
|
1875
|
+
setup(i, { expose: p, emit: e }) {
|
|
1876
|
+
const t = i, o = e, l = x(null), r = x(!1), b = x(""), d = E(() => {
|
|
1867
1877
|
var I, z, j, W;
|
|
1868
1878
|
let f = !0, w = "";
|
|
1869
1879
|
const $ = t.modelValue;
|
|
1870
1880
|
return (I = t.rules) != null && I.required && ($ == null || $ === "") && (f = !1, w = "This field is required."), f && ((z = t.rules) == null ? void 0 : z.minLength) !== void 0 && typeof $ == "string" && $.length < t.rules.minLength && (f = !1, w = `Must be at least ${t.rules.minLength} characters.`), f && ((j = t.rules) == null ? void 0 : j.maxLength) !== void 0 && typeof $ == "string" && $.length > t.rules.maxLength && (f = !1, w = `Cannot exceed ${t.rules.maxLength} characters.`), f && ((W = t.rules) != null && W.email) && typeof $ == "string" && $ && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test($) || (f = !1, w = "Please enter a valid email address.")), b.value = w, o("validate", f), f;
|
|
1871
|
-
}), m = E(() => r.value && !
|
|
1881
|
+
}), m = E(() => r.value && !d.value), k = (f) => {
|
|
1872
1882
|
const w = f.target;
|
|
1873
|
-
o("update:modelValue", w.value), r.value &&
|
|
1883
|
+
o("update:modelValue", w.value), r.value && d.value;
|
|
1874
1884
|
}, U = () => {
|
|
1875
|
-
r.value = !0,
|
|
1885
|
+
r.value = !0, d.value;
|
|
1876
1886
|
};
|
|
1877
|
-
return
|
|
1887
|
+
return q(
|
|
1878
1888
|
() => t.modelValue,
|
|
1879
1889
|
() => {
|
|
1880
|
-
r.value &&
|
|
1890
|
+
r.value && d.value;
|
|
1881
1891
|
}
|
|
1882
|
-
),
|
|
1892
|
+
), p({
|
|
1883
1893
|
focusInput: () => {
|
|
1884
1894
|
var f;
|
|
1885
1895
|
console.log("inputField.vue: focusInput method called."), (f = l.value) == null || f.focus();
|
|
1886
1896
|
},
|
|
1887
|
-
isValid:
|
|
1897
|
+
isValid: d,
|
|
1888
1898
|
isTouched: r,
|
|
1889
1899
|
errorMessage: b
|
|
1890
1900
|
}), (f, w) => (n(), a("div", Vl, [
|
|
1891
1901
|
f.label ? (n(), a("label", Bl, [
|
|
1892
1902
|
s("span", Ol, C(f.label), 1)
|
|
1893
|
-
])) :
|
|
1903
|
+
])) : B("", !0),
|
|
1894
1904
|
M(f.$slots, "default"),
|
|
1895
1905
|
s("input", {
|
|
1896
1906
|
ref_key: "inputElement",
|
|
@@ -1910,18 +1920,18 @@ const lt = te("SunIcon", [
|
|
|
1910
1920
|
"input-ghost": f.style === "ghost",
|
|
1911
1921
|
// Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
|
|
1912
1922
|
// This ensures validation feedback overrides base colors.
|
|
1913
|
-
"input-neutral": f.color === "neutral" && !m.value && !(
|
|
1914
|
-
"input-primary": f.color === "primary" && !m.value && !(
|
|
1915
|
-
"input-secondary": f.color === "secondary" && !m.value && !(
|
|
1916
|
-
"input-accent": f.color === "accent" && !m.value && !(
|
|
1917
|
-
"input-info": f.color === "info" && !m.value && !(
|
|
1918
|
-
"input-success": f.color === "success" && !m.value && !(
|
|
1923
|
+
"input-neutral": f.color === "neutral" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1924
|
+
"input-primary": f.color === "primary" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1925
|
+
"input-secondary": f.color === "secondary" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1926
|
+
"input-accent": f.color === "accent" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1927
|
+
"input-info": f.color === "info" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1928
|
+
"input-success": f.color === "success" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1919
1929
|
// Color success applies only if not in error or validation success state
|
|
1920
|
-
"input-warning": f.color === "warning" && !m.value && !(
|
|
1930
|
+
"input-warning": f.color === "warning" && !m.value && !(d.value && r.value && f.needsValidation),
|
|
1921
1931
|
// Validation state classes - These take precedence visually via conditions or CSS specificity.
|
|
1922
1932
|
"input-error": m.value,
|
|
1923
1933
|
// Apply error style if validation fails
|
|
1924
|
-
"input-success-validation":
|
|
1934
|
+
"input-success-validation": d.value && r.value && !m.value && f.needsValidation
|
|
1925
1935
|
// Apply validation success style if valid, touched, not error, AND validation is needed. Using a distinct name 'input-success-validation' is recommended to avoid CSS conflicts with the 'input-success' color class.
|
|
1926
1936
|
}
|
|
1927
1937
|
]]),
|
|
@@ -1931,9 +1941,9 @@ const lt = te("SunIcon", [
|
|
|
1931
1941
|
}, null, 42, zl),
|
|
1932
1942
|
m.value ? (n(), a("div", Al, [
|
|
1933
1943
|
s("span", Pl, C(b.value), 1)
|
|
1934
|
-
])) :
|
|
1944
|
+
])) : d.value && r.value && f.successMessage ? (n(), a("div", El, [
|
|
1935
1945
|
s("span", Ll, C(f.successMessage), 1)
|
|
1936
|
-
])) :
|
|
1946
|
+
])) : B("", !0)
|
|
1937
1947
|
]));
|
|
1938
1948
|
}
|
|
1939
1949
|
}), Bn = /* @__PURE__ */ L({
|
|
@@ -1945,9 +1955,9 @@ const lt = te("SunIcon", [
|
|
|
1945
1955
|
color: { default: "primary" }
|
|
1946
1956
|
},
|
|
1947
1957
|
setup(i) {
|
|
1948
|
-
const
|
|
1949
|
-
return
|
|
1950
|
-
() =>
|
|
1958
|
+
const p = i, e = x(p.loading);
|
|
1959
|
+
return q(
|
|
1960
|
+
() => p.loading,
|
|
1951
1961
|
(t) => {
|
|
1952
1962
|
e.value = t;
|
|
1953
1963
|
}
|
|
@@ -1976,7 +1986,7 @@ const lt = te("SunIcon", [
|
|
|
1976
1986
|
{ "text-warning": t.color === "warning" },
|
|
1977
1987
|
{ "text-error": t.color === "error" }
|
|
1978
1988
|
]])
|
|
1979
|
-
}, null, 2)) :
|
|
1989
|
+
}, null, 2)) : B("", !0);
|
|
1980
1990
|
}
|
|
1981
1991
|
}), Ul = { class: "footer sm:footer-horizontal container" }, Rl = { class: "footer-title" }, Nl = ["href"], jl = {
|
|
1982
1992
|
key: 0,
|
|
@@ -1993,27 +2003,27 @@ const lt = te("SunIcon", [
|
|
|
1993
2003
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1994
2004
|
},
|
|
1995
2005
|
setup(i) {
|
|
1996
|
-
const
|
|
2006
|
+
const p = i;
|
|
1997
2007
|
return (e, t) => (n(), a("div", {
|
|
1998
2008
|
class: D(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1999
2009
|
}, [
|
|
2000
2010
|
s("footer", Ul, [
|
|
2001
|
-
(n(!0), a(
|
|
2011
|
+
(n(!0), a(O, null, P(p.items, (o) => (n(), a("nav", {
|
|
2002
2012
|
class: D([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2003
2013
|
}, [
|
|
2004
2014
|
s("h6", Rl, C(o.title), 1),
|
|
2005
|
-
(n(!0), a(
|
|
2015
|
+
(n(!0), a(O, null, P(o.items, (l) => (n(), a("a", {
|
|
2006
2016
|
class: "link link-hover",
|
|
2007
2017
|
href: l.link
|
|
2008
2018
|
}, C(l.text), 9, Nl))), 256))
|
|
2009
2019
|
], 2))), 256)),
|
|
2010
2020
|
e.collapseOnMobile ? (n(), a("nav", jl, [
|
|
2011
|
-
(n(!0), a(
|
|
2021
|
+
(n(!0), a(O, null, P(p.items, (o) => (n(), a("ul", Fl, [
|
|
2012
2022
|
s("div", ql, [
|
|
2013
2023
|
s("div", Hl, C(o.title), 1),
|
|
2014
2024
|
s("div", Wl, [
|
|
2015
2025
|
s("ul", Kl, [
|
|
2016
|
-
(n(!0), a(
|
|
2026
|
+
(n(!0), a(O, null, P(o.items, (l) => (n(), a("li", Yl, [
|
|
2017
2027
|
s("a", {
|
|
2018
2028
|
class: "w-full font-medium link link-hover",
|
|
2019
2029
|
href: l.link
|
|
@@ -2023,7 +2033,7 @@ const lt = te("SunIcon", [
|
|
|
2023
2033
|
])
|
|
2024
2034
|
])
|
|
2025
2035
|
]))), 256))
|
|
2026
|
-
])) :
|
|
2036
|
+
])) : B("", !0),
|
|
2027
2037
|
s("aside", Xl, [
|
|
2028
2038
|
M(e.$slots, "default")
|
|
2029
2039
|
])
|
|
@@ -2031,20 +2041,20 @@ const lt = te("SunIcon", [
|
|
|
2031
2041
|
], 2));
|
|
2032
2042
|
}
|
|
2033
2043
|
}), Gl = {}, Zl = { class: "min-h-40 container hero" }, Ql = { class: "px-0! text-center hero-content" }, en = { class: "mt-9 text-4xl" };
|
|
2034
|
-
function tn(i,
|
|
2044
|
+
function tn(i, p) {
|
|
2035
2045
|
return n(), a("div", Zl, [
|
|
2036
2046
|
s("div", Ql, [
|
|
2037
2047
|
s("div", null, [
|
|
2038
2048
|
s("h1", en, [
|
|
2039
2049
|
M(i.$slots, "title", {}, () => [
|
|
2040
|
-
|
|
2050
|
+
p[0] || (p[0] = ke("hero title"))
|
|
2041
2051
|
])
|
|
2042
2052
|
]),
|
|
2043
2053
|
s("p", null, [
|
|
2044
2054
|
M(i.$slots, "description", { class: "py-9" })
|
|
2045
2055
|
]),
|
|
2046
2056
|
M(i.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
2047
|
-
|
|
2057
|
+
p[1] || (p[1] = s("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2048
2058
|
])
|
|
2049
2059
|
])
|
|
2050
2060
|
])
|
|
@@ -2057,17 +2067,17 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2057
2067
|
currentCategory: {}
|
|
2058
2068
|
},
|
|
2059
2069
|
emits: ["update:currentCategory"],
|
|
2060
|
-
setup(i, { emit:
|
|
2061
|
-
const e = i, t =
|
|
2070
|
+
setup(i, { emit: p }) {
|
|
2071
|
+
const e = i, t = p;
|
|
2062
2072
|
function o(l) {
|
|
2063
2073
|
t("update:currentCategory", l);
|
|
2064
2074
|
}
|
|
2065
2075
|
return (l, r) => (n(), a("div", ln, [
|
|
2066
|
-
(n(!0), a(
|
|
2076
|
+
(n(!0), a(O, null, P(e.searchOptions, (b) => (n(), a("div", {
|
|
2067
2077
|
key: b.category
|
|
2068
2078
|
}, [
|
|
2069
2079
|
s("button", {
|
|
2070
|
-
onClick: (
|
|
2080
|
+
onClick: (d) => o(b.category),
|
|
2071
2081
|
class: D(["truncate btn btn-ghost", { "font-semibold": e.currentCategory === b.category }])
|
|
2072
2082
|
}, C(b.category), 11, nn)
|
|
2073
2083
|
]))), 128))
|
|
@@ -2079,9 +2089,9 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2079
2089
|
isCollapsed: { type: Boolean, default: !0 }
|
|
2080
2090
|
},
|
|
2081
2091
|
setup(i) {
|
|
2082
|
-
const
|
|
2092
|
+
const p = i;
|
|
2083
2093
|
return (e, t) => (n(), a("nav", {
|
|
2084
|
-
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" : ""])
|
|
2085
2095
|
}, [
|
|
2086
2096
|
s("div", an, [
|
|
2087
2097
|
M(e.$slots, "start", {}, void 0, !0)
|
|
@@ -2113,10 +2123,10 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2113
2123
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
2114
2124
|
},
|
|
2115
2125
|
emits: ["tab-changed"],
|
|
2116
|
-
setup(i, { emit:
|
|
2117
|
-
const e = i, t = x(e.items[0]), o =
|
|
2118
|
-
function l(
|
|
2119
|
-
t.value =
|
|
2126
|
+
setup(i, { emit: p }) {
|
|
2127
|
+
const e = i, t = x(e.items[0]), o = p;
|
|
2128
|
+
function l(d) {
|
|
2129
|
+
t.value = d, o("tab-changed", d);
|
|
2120
2130
|
}
|
|
2121
2131
|
function r() {
|
|
2122
2132
|
const m = (e.items.indexOf(t.value) + 1) % e.items.length;
|
|
@@ -2132,12 +2142,12 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2132
2142
|
e.rotateTabsAfter && e.rotateTabsAfter > 0 && setInterval(() => {
|
|
2133
2143
|
r();
|
|
2134
2144
|
}, e.rotateTabsAfter * 1e3);
|
|
2135
|
-
}), (
|
|
2145
|
+
}), (d, m) => (n(), a(O, null, [
|
|
2136
2146
|
s("div", {
|
|
2137
2147
|
role: "tablist",
|
|
2138
|
-
class: D(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto":
|
|
2148
|
+
class: D(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": d.buttonOnlyMode }])
|
|
2139
2149
|
}, [
|
|
2140
|
-
|
|
2150
|
+
d.withControlls ? (n(), a("div", dn, [
|
|
2141
2151
|
s("button", {
|
|
2142
2152
|
onClick: m[0] || (m[0] = (k) => b()),
|
|
2143
2153
|
class: "cursor-pointer"
|
|
@@ -2146,8 +2156,8 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2146
2156
|
onClick: m[1] || (m[1] = (k) => r()),
|
|
2147
2157
|
class: "text-primary cursor-pointer"
|
|
2148
2158
|
}, "Next")
|
|
2149
|
-
])) :
|
|
2150
|
-
(n(!0), a(
|
|
2159
|
+
])) : B("", !0),
|
|
2160
|
+
(n(!0), a(O, null, P(d.items, (k) => (n(), a(O, null, [
|
|
2151
2161
|
s("a", {
|
|
2152
2162
|
type: "button",
|
|
2153
2163
|
role: "tab",
|
|
@@ -2155,13 +2165,13 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2155
2165
|
onClick: (U) => l(k),
|
|
2156
2166
|
"aria-selected": t.value == k
|
|
2157
2167
|
}, C(k), 11, cn),
|
|
2158
|
-
|
|
2159
|
-
M(
|
|
2168
|
+
d.buttonOnlyMode ? B("", !0) : (n(), a("div", pn, [
|
|
2169
|
+
M(d.$slots, `${k}-tab`)
|
|
2160
2170
|
]))
|
|
2161
2171
|
], 64))), 256))
|
|
2162
2172
|
], 2),
|
|
2163
2173
|
s("div", vn, [
|
|
2164
|
-
M(
|
|
2174
|
+
M(d.$slots, "default")
|
|
2165
2175
|
])
|
|
2166
2176
|
], 64));
|
|
2167
2177
|
}
|