manolis-ui 0.17.16 → 0.18.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 +470 -441
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +165 -0
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as _, computed as ee, createElementBlock as
|
|
1
|
+
import { defineComponent as _, computed as ee, createElementBlock as s, openBlock as a, normalizeClass as z, createCommentVNode as O, renderSlot as V, createTextVNode as Re, createElementVNode as n, Fragment as U, renderList as G, toDisplayString as L, ref as h, watch as H, h as De, onMounted as he, withDirectives as Se, createVNode as ue, isRef as qe, vModelCheckbox as Ue, unref as se, provide as We, onUnmounted as Ve, normalizeStyle as we, Transition as Pe, withCtx as Ce, inject as Ke, useId as Xe, defineAsyncComponent as ze, nextTick as me, onBeforeUnmount as Ee, withModifiers as re, createBlock as ve, resolveDynamicComponent as Te, mergeProps as Be, withKeys as pe, resolveComponent as Oe, vModelText as Ne, useSlots as Ye, Comment as Ge, vShow as Je } from "vue";
|
|
2
2
|
const Ze = ["disabled"], Qe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, kn = /* @__PURE__ */ _({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -54,7 +54,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
54
54
|
default:
|
|
55
55
|
return "btn-neutral";
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), i = ee(() => {
|
|
58
58
|
switch (d.shape) {
|
|
59
59
|
case "square":
|
|
60
60
|
return "btn-square";
|
|
@@ -64,19 +64,19 @@ const Ze = ["disabled"], Qe = {
|
|
|
64
64
|
return "";
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
return (
|
|
67
|
+
return (o, u) => (a(), s("button", {
|
|
68
68
|
class: z([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": d.outlined },
|
|
71
71
|
{ "btn-active": d.active },
|
|
72
72
|
t.value,
|
|
73
73
|
l.value,
|
|
74
|
-
|
|
74
|
+
i.value
|
|
75
75
|
]),
|
|
76
76
|
disabled: d.disabled
|
|
77
77
|
}, [
|
|
78
|
-
e.loading ? (
|
|
79
|
-
V(
|
|
78
|
+
e.loading ? (a(), s("span", Qe)) : O("", !0),
|
|
79
|
+
V(o.$slots, "default", {}, () => [
|
|
80
80
|
u[0] || (u[0] = Re("Submit", -1))
|
|
81
81
|
])
|
|
82
82
|
], 10, Ze));
|
|
@@ -84,7 +84,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
84
84
|
}), et = {
|
|
85
85
|
tabindex: "0",
|
|
86
86
|
class: "z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"
|
|
87
|
-
}, tt = ["href"],
|
|
87
|
+
}, tt = ["href"], $n = /* @__PURE__ */ _({
|
|
88
88
|
__name: "dropdown",
|
|
89
89
|
props: {
|
|
90
90
|
items: {},
|
|
@@ -103,26 +103,26 @@ const Ze = ["disabled"], Qe = {
|
|
|
103
103
|
start: "",
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = e;
|
|
106
|
-
return (
|
|
106
|
+
return (i, o) => (a(), s("div", {
|
|
107
107
|
class: z(["dropdown", d[t.position], l[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
V(
|
|
109
|
+
V(i.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
113
|
-
|
|
113
|
+
o[0] || (o[0] = n("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
114
114
|
]),
|
|
115
115
|
n("ul", et, [
|
|
116
|
-
(
|
|
116
|
+
(a(!0), s(U, null, G(e.items, (u) => (a(), s("li", null, [
|
|
117
117
|
n("a", {
|
|
118
118
|
href: u.link
|
|
119
119
|
}, L(u.text), 9, tt)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
V(
|
|
121
|
+
V(i.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}), lt = { class: "modal-box" }, nt = { class: "modal-action" },
|
|
125
|
+
}), lt = { class: "modal-box" }, nt = { class: "modal-action" }, Sn = /* @__PURE__ */ _({
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
@@ -134,23 +134,23 @@ const Ze = ["disabled"], Qe = {
|
|
|
134
134
|
top: "modal-top",
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
|
-
}, t = h(null),
|
|
137
|
+
}, t = h(null), i = () => {
|
|
138
138
|
var u;
|
|
139
139
|
(u = t.value) == null || u.showModal();
|
|
140
|
-
},
|
|
140
|
+
}, o = () => {
|
|
141
141
|
var u;
|
|
142
142
|
(u = t.value) == null || u.close();
|
|
143
143
|
};
|
|
144
|
-
return
|
|
144
|
+
return H(
|
|
145
145
|
() => d.forceOpen,
|
|
146
146
|
(u) => {
|
|
147
|
-
u == !0 &&
|
|
147
|
+
u == !0 && i(), u == !1 && o();
|
|
148
148
|
}
|
|
149
|
-
), (u, m) => (
|
|
150
|
-
d.forceOpen == null ? (
|
|
149
|
+
), (u, m) => (a(), s(U, null, [
|
|
150
|
+
d.forceOpen == null ? (a(), s("span", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: i
|
|
154
154
|
}, [
|
|
155
155
|
V(u.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
m[0] || (m[0] = n("button", { class: "btn" }, "Open", -1))
|
|
@@ -167,7 +167,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
167
167
|
V(u.$slots, "actions"),
|
|
168
168
|
n("form", {
|
|
169
169
|
method: "dialog",
|
|
170
|
-
onSubmit:
|
|
170
|
+
onSubmit: o,
|
|
171
171
|
class: z(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
173
|
V(u.$slots, "close-button", {}, () => [
|
|
@@ -179,14 +179,14 @@ const Ze = ["disabled"], Qe = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}), at = { class: "flex justify-center items-center swap-on" }, ot = { class: "flex justify-center items-center swap-off" },
|
|
182
|
+
}), at = { class: "flex justify-center items-center swap-on" }, ot = { class: "flex justify-center items-center swap-off" }, Cn = /* @__PURE__ */ _({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
186
186
|
},
|
|
187
187
|
setup(e) {
|
|
188
188
|
const d = e;
|
|
189
|
-
return (l, t) => (
|
|
189
|
+
return (l, t) => (a(), s("label", {
|
|
190
190
|
class: z(["swap", d.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
|
|
@@ -229,7 +229,7 @@ var $e = {
|
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
231
|
*/
|
|
232
|
-
const it = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, iconNode:
|
|
232
|
+
const it = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, iconNode: i, name: o, class: u, ...m }, { slots: r }) => De(
|
|
233
233
|
"svg",
|
|
234
234
|
{
|
|
235
235
|
...$e,
|
|
@@ -237,10 +237,10 @@ const it = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, ico
|
|
|
237
237
|
height: e || $e.height,
|
|
238
238
|
stroke: t || $e.stroke,
|
|
239
239
|
"stroke-width": l ? Number(d) * 24 / Number(e) : d,
|
|
240
|
-
class: ["lucide", `lucide-${st(
|
|
240
|
+
class: ["lucide", `lucide-${st(o ?? "icon")}`],
|
|
241
241
|
...m
|
|
242
242
|
},
|
|
243
|
-
[...
|
|
243
|
+
[...i.map((y) => De(...y)), ...r.default ? [r.default()] : []]
|
|
244
244
|
);
|
|
245
245
|
/**
|
|
246
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -320,10 +320,10 @@ const ct = xe("SunIcon", [
|
|
|
320
320
|
const t = window.localStorage.getItem(e);
|
|
321
321
|
l.value = t ? JSON.parse(t) : d;
|
|
322
322
|
}
|
|
323
|
-
}),
|
|
323
|
+
}), H(l, (t) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(t));
|
|
325
325
|
}), l;
|
|
326
|
-
}, ft = { class: "swap-rotate swap" }, mt = ["true-value", "false-value"],
|
|
326
|
+
}, ft = { class: "swap-rotate swap" }, mt = ["true-value", "false-value"], In = /* @__PURE__ */ _({
|
|
327
327
|
__name: "theme-controller",
|
|
328
328
|
props: {
|
|
329
329
|
lightTheme: { default: "light" },
|
|
@@ -331,53 +331,82 @@ const ct = xe("SunIcon", [
|
|
|
331
331
|
},
|
|
332
332
|
setup(e) {
|
|
333
333
|
const d = e, l = vt("theme", d.lightTheme);
|
|
334
|
-
function t(
|
|
335
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
334
|
+
function t(i) {
|
|
335
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", i);
|
|
336
336
|
}
|
|
337
|
-
return he(() => t(l.value ? l.value : "")),
|
|
338
|
-
t(
|
|
339
|
-
}), (
|
|
337
|
+
return he(() => t(l.value ? l.value : "")), H(l, (i) => {
|
|
338
|
+
t(i);
|
|
339
|
+
}), (i, o) => (a(), s("label", ft, [
|
|
340
340
|
Se(n("input", {
|
|
341
341
|
type: "checkbox",
|
|
342
342
|
class: "theme-controller",
|
|
343
|
-
"onUpdate:modelValue":
|
|
343
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => qe(l) ? l.value = u : null),
|
|
344
344
|
"true-value": d.lightTheme,
|
|
345
345
|
"false-value": d.darkTheme
|
|
346
346
|
}, null, 8, mt), [
|
|
347
|
-
[
|
|
347
|
+
[Ue, se(l)]
|
|
348
348
|
]),
|
|
349
349
|
ue(se(ct), { class: "swap-off fill-current" }),
|
|
350
350
|
ue(se(dt), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}), pt =
|
|
353
|
+
}), pt = {
|
|
354
|
+
key: 0,
|
|
355
|
+
class: "join join-vertical w-full"
|
|
356
|
+
}, ht = ["name"], gt = {
|
|
357
|
+
key: 1,
|
|
358
|
+
type: "checkbox"
|
|
359
|
+
}, yt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, bt = { class: "collapse-content" }, wt = ["innerHTML"], xt = ["name"], kt = {
|
|
360
|
+
key: 1,
|
|
361
|
+
type: "checkbox"
|
|
362
|
+
}, $t = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, St = { class: "collapse-content" }, Ct = ["innerHTML"], Mn = /* @__PURE__ */ _({
|
|
354
363
|
__name: "accordion",
|
|
355
364
|
props: {
|
|
356
365
|
name: {},
|
|
357
366
|
items: {},
|
|
358
367
|
joinItems: { type: Boolean, default: !1 },
|
|
359
|
-
icon: {}
|
|
368
|
+
icon: {},
|
|
369
|
+
toggle: { type: Boolean, default: !1 }
|
|
360
370
|
},
|
|
361
371
|
setup(e) {
|
|
362
372
|
const d = e;
|
|
363
|
-
return (l, t) =>
|
|
364
|
-
|
|
365
|
-
|
|
373
|
+
return (l, t) => d.joinItems ? (a(), s("div", pt, [
|
|
374
|
+
(a(!0), s(U, null, G(d.items, (i, o) => (a(), s("div", {
|
|
375
|
+
class: z(["collapse border border-base-300 join-item", [e.icon ? `collapse-${e.icon}` : ""]]),
|
|
376
|
+
key: o
|
|
377
|
+
}, [
|
|
378
|
+
e.toggle ? (a(), s("input", gt)) : (a(), s("input", {
|
|
379
|
+
key: 0,
|
|
380
|
+
type: "radio",
|
|
381
|
+
name: e.name,
|
|
382
|
+
value: "true"
|
|
383
|
+
}, null, 8, ht)),
|
|
384
|
+
n("div", yt, L(i.title), 1),
|
|
385
|
+
n("div", bt, [
|
|
386
|
+
n("span", {
|
|
387
|
+
innerHTML: i.content
|
|
388
|
+
}, null, 8, wt)
|
|
389
|
+
])
|
|
390
|
+
], 2))), 128))
|
|
391
|
+
])) : (a(!0), s(U, { key: 1 }, G(d.items, (i, o) => (a(), s("div", {
|
|
392
|
+
class: z(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : ""]]),
|
|
393
|
+
key: o
|
|
366
394
|
}, [
|
|
367
|
-
|
|
395
|
+
e.toggle ? (a(), s("input", kt)) : (a(), s("input", {
|
|
396
|
+
key: 0,
|
|
368
397
|
type: "radio",
|
|
369
398
|
name: e.name,
|
|
370
399
|
value: "true"
|
|
371
|
-
}, null, 8,
|
|
372
|
-
n("div",
|
|
373
|
-
n("div",
|
|
400
|
+
}, null, 8, xt)),
|
|
401
|
+
n("div", $t, L(i.title), 1),
|
|
402
|
+
n("div", St, [
|
|
374
403
|
n("span", {
|
|
375
|
-
innerHTML:
|
|
376
|
-
}, null, 8,
|
|
404
|
+
innerHTML: i.content
|
|
405
|
+
}, null, 8, Ct)
|
|
377
406
|
])
|
|
378
407
|
], 2))), 128));
|
|
379
408
|
}
|
|
380
|
-
}),
|
|
409
|
+
}), It = ["src"], Mt = { class: "text-xl" }, zn = /* @__PURE__ */ _({
|
|
381
410
|
__name: "avatar",
|
|
382
411
|
props: {
|
|
383
412
|
image: {},
|
|
@@ -387,31 +416,31 @@ const ct = xe("SunIcon", [
|
|
|
387
416
|
},
|
|
388
417
|
setup(e) {
|
|
389
418
|
const d = e, l = h(d.onlineStatus);
|
|
390
|
-
return
|
|
419
|
+
return H(
|
|
391
420
|
() => d.onlineStatus,
|
|
392
421
|
(t) => {
|
|
393
422
|
t && (l.value = t);
|
|
394
423
|
}
|
|
395
|
-
), (t,
|
|
424
|
+
), (t, i) => (a(), s("div", {
|
|
396
425
|
class: z(["avatar", [{ "avatar-online": l.value === "online" }, { "avatar-offline": l.value === "offline" }]])
|
|
397
426
|
}, [
|
|
398
|
-
e.image ? (
|
|
427
|
+
e.image ? (a(), s("div", {
|
|
399
428
|
key: 0,
|
|
400
429
|
class: z(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
401
430
|
}, [
|
|
402
431
|
n("img", {
|
|
403
432
|
src: e.image,
|
|
404
433
|
class: "w-full h-full"
|
|
405
|
-
}, null, 8,
|
|
406
|
-
], 2)) : (
|
|
434
|
+
}, null, 8, It)
|
|
435
|
+
], 2)) : (a(), s("div", {
|
|
407
436
|
key: 1,
|
|
408
437
|
class: z(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
409
438
|
}, [
|
|
410
|
-
n("p",
|
|
439
|
+
n("p", Mt, L(e.initials), 1)
|
|
411
440
|
], 2))
|
|
412
441
|
], 2));
|
|
413
442
|
}
|
|
414
|
-
}),
|
|
443
|
+
}), Tn = /* @__PURE__ */ _({
|
|
415
444
|
__name: "badge",
|
|
416
445
|
props: {
|
|
417
446
|
color: { default: "neutral" },
|
|
@@ -435,25 +464,25 @@ const ct = xe("SunIcon", [
|
|
|
435
464
|
warning: "badge-warning",
|
|
436
465
|
error: "badge-error"
|
|
437
466
|
};
|
|
438
|
-
return (
|
|
467
|
+
return (i, o) => (a(), s("span", {
|
|
439
468
|
class: z(["badge", l[d.size], t[d.color], { "badge-outline": d.outline }])
|
|
440
469
|
}, [
|
|
441
|
-
V(
|
|
470
|
+
V(i.$slots, "default")
|
|
442
471
|
], 2));
|
|
443
472
|
}
|
|
444
|
-
}),
|
|
473
|
+
}), zt = ["src", "alt"], Tt = {
|
|
445
474
|
key: 0,
|
|
446
475
|
class: "card-body"
|
|
447
|
-
},
|
|
476
|
+
}, Bt = {
|
|
448
477
|
key: 0,
|
|
449
478
|
class: "group-hover:text-primary text-lg text-left cursor-pointer card-title"
|
|
450
|
-
},
|
|
479
|
+
}, Ot = {
|
|
451
480
|
key: 1,
|
|
452
481
|
class: "text-left"
|
|
453
|
-
},
|
|
482
|
+
}, Dt = { class: "flex-col flex-nowrap mt-auto card-actions" }, Vt = {
|
|
454
483
|
key: 1,
|
|
455
484
|
class: "card-body"
|
|
456
|
-
},
|
|
485
|
+
}, Bn = /* @__PURE__ */ _({
|
|
457
486
|
__name: "card",
|
|
458
487
|
props: {
|
|
459
488
|
imgUrl: { default: "" },
|
|
@@ -471,12 +500,12 @@ const ct = xe("SunIcon", [
|
|
|
471
500
|
},
|
|
472
501
|
setup(e) {
|
|
473
502
|
const d = e, l = h(d.outlined);
|
|
474
|
-
return
|
|
503
|
+
return H(
|
|
475
504
|
() => d.outlined,
|
|
476
505
|
(t) => {
|
|
477
506
|
l.value = t;
|
|
478
507
|
}
|
|
479
|
-
), (t,
|
|
508
|
+
), (t, i) => (a(), s("div", {
|
|
480
509
|
class: z(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
481
510
|
{ "border-4 border-primary": l.value },
|
|
482
511
|
e.color ?? "",
|
|
@@ -487,7 +516,7 @@ const ct = xe("SunIcon", [
|
|
|
487
516
|
n("figure", {
|
|
488
517
|
class: z([{ "contents!": e.horizontal && e.imgWidth }])
|
|
489
518
|
}, [
|
|
490
|
-
e.imgUrl || e.imgUrl && !e.loading ? (
|
|
519
|
+
e.imgUrl || e.imgUrl && !e.loading ? (a(), s("img", {
|
|
491
520
|
key: 0,
|
|
492
521
|
src: e.imgUrl,
|
|
493
522
|
alt: e.alt,
|
|
@@ -498,21 +527,21 @@ const ct = xe("SunIcon", [
|
|
|
498
527
|
!e.horizontal && e.imgHeight ? e.imgHeight : "h-full",
|
|
499
528
|
e.horizontal && e.imgWidth ? e.imgWidth : "w-full"
|
|
500
529
|
]])
|
|
501
|
-
}, null, 10,
|
|
502
|
-
e.loading && e.imgUrl ? (
|
|
530
|
+
}, null, 10, zt)) : O("", !0),
|
|
531
|
+
e.loading && e.imgUrl ? (a(), s("div", {
|
|
503
532
|
key: 1,
|
|
504
533
|
class: z(["w-full skeleton", e.imgHeight])
|
|
505
534
|
}, null, 2)) : O("", !0)
|
|
506
535
|
], 2),
|
|
507
|
-
e.loading ? O("", !0) : (
|
|
508
|
-
e.title ? (
|
|
536
|
+
e.loading ? O("", !0) : (a(), s("div", Tt, [
|
|
537
|
+
e.title ? (a(), s("h2", Bt, L(e.title), 1)) : O("", !0),
|
|
509
538
|
V(t.$slots, "details"),
|
|
510
|
-
e.description ? (
|
|
511
|
-
n("div",
|
|
539
|
+
e.description ? (a(), s("p", Ot, L(e.description), 1)) : O("", !0),
|
|
540
|
+
n("div", Dt, [
|
|
512
541
|
V(t.$slots, "actions")
|
|
513
542
|
])
|
|
514
543
|
])),
|
|
515
|
-
e.loading ? (
|
|
544
|
+
e.loading ? (a(), s("div", Vt, [...i[0] || (i[0] = [
|
|
516
545
|
n("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
517
546
|
n("div", { class: "w-28 h-4 skeleton" }),
|
|
518
547
|
n("div", { class: "w-full h-4 skeleton" }),
|
|
@@ -521,17 +550,17 @@ const ct = xe("SunIcon", [
|
|
|
521
550
|
])])) : O("", !0)
|
|
522
551
|
], 2));
|
|
523
552
|
}
|
|
524
|
-
}), _e = Symbol("CarouselItemStyle"),
|
|
553
|
+
}), _e = Symbol("CarouselItemStyle"), Et = { class: "relative h-full" }, Lt = {
|
|
525
554
|
key: 0,
|
|
526
555
|
class: "flex-shrink-0"
|
|
527
|
-
},
|
|
556
|
+
}, jt = {
|
|
528
557
|
key: 0,
|
|
529
558
|
class: "flex-shrink-0"
|
|
530
|
-
},
|
|
559
|
+
}, Pt = {
|
|
531
560
|
key: 1,
|
|
532
561
|
id: "carousel-indicators",
|
|
533
562
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
534
|
-
},
|
|
563
|
+
}, At = ["onClick", "aria-label"], Rt = /* @__PURE__ */ _({
|
|
535
564
|
__name: "carousel",
|
|
536
565
|
props: {
|
|
537
566
|
showIndicators: {
|
|
@@ -587,8 +616,8 @@ const ct = xe("SunIcon", [
|
|
|
587
616
|
}
|
|
588
617
|
},
|
|
589
618
|
setup(e, { expose: d }) {
|
|
590
|
-
const l = e, t = h(l.initialSlide),
|
|
591
|
-
const I = Object.keys(l.breakpoints).map(Number).sort((P,
|
|
619
|
+
const l = e, t = h(l.initialSlide), i = h(null), o = h(null), u = h(0), m = h(!1), r = h(0), y = h(0), M = h(!1), R = h(0), k = h(0), c = h(0), E = h(0), C = h(0), W = h(0), F = h(0), K = h(null), Q = h(null), le = h(0), f = h(null), b = ee(() => {
|
|
620
|
+
const I = Object.keys(l.breakpoints).map(Number).sort((P, q) => P - q);
|
|
592
621
|
let $ = {};
|
|
593
622
|
for (const P of I)
|
|
594
623
|
y.value >= P && ($ = { ...$, ...l.breakpoints[P] });
|
|
@@ -601,44 +630,44 @@ const ct = xe("SunIcon", [
|
|
|
601
630
|
});
|
|
602
631
|
We(_e, v);
|
|
603
632
|
const D = () => {
|
|
604
|
-
|
|
633
|
+
o.value ? r.value = o.value.children.length : r.value = 0;
|
|
605
634
|
}, x = () => {
|
|
606
|
-
if (!
|
|
607
|
-
const $ = l.sliderOrientation === "horizontal" ?
|
|
635
|
+
if (!i.value || g.value <= 0) return 0;
|
|
636
|
+
const $ = l.sliderOrientation === "horizontal" ? i.value.offsetWidth : i.value.offsetHeight, P = (g.value - 1) * S.value;
|
|
608
637
|
return $ <= 0 ? 0 : ($ - P) / g.value;
|
|
609
638
|
}, j = ee(() => {
|
|
610
|
-
if (!
|
|
611
|
-
const $ = l.sliderOrientation === "horizontal" ?
|
|
612
|
-
return Math.max(0,
|
|
639
|
+
if (!i.value || r.value === 0 || g.value === 0) return 0;
|
|
640
|
+
const $ = l.sliderOrientation === "horizontal" ? i.value.offsetWidth : i.value.offsetHeight, P = x(), q = r.value * (P + S.value) - S.value;
|
|
641
|
+
return Math.max(0, q - $);
|
|
613
642
|
}), A = async (I, $ = !1) => {
|
|
614
|
-
if (!
|
|
643
|
+
if (!i.value || g.value <= 0 || m.value || (D(), r.value === 0)) return;
|
|
615
644
|
const P = x();
|
|
616
645
|
if (P <= 0) return;
|
|
617
|
-
const
|
|
646
|
+
const q = P + S.value, Z = j.value;
|
|
618
647
|
let X = I;
|
|
619
|
-
l.infinite ? X = (I %
|
|
620
|
-
const oe = X *
|
|
648
|
+
l.infinite ? X = (I % r.value + r.value) % r.value : X = Math.max(0, Math.min(I, r.value - g.value));
|
|
649
|
+
const oe = X * q, Y = l.infinite ? oe : Math.max(0, Math.min(oe, Z));
|
|
621
650
|
if ($ || l.slideDuration === 0) {
|
|
622
|
-
|
|
651
|
+
o.value && (o.value.style.transitionDuration = "0ms", o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`), u.value = Y, t.value = X, m.value = !1, l.autoplay && ce();
|
|
623
652
|
return;
|
|
624
653
|
}
|
|
625
654
|
m.value = !0;
|
|
626
655
|
const ie = u.value, ne = Y - ie, be = performance.now(), fe = (ke) => {
|
|
627
|
-
if (!
|
|
628
|
-
const Fe = ke - be, je = Math.min(1, Fe / l.slideDuration),
|
|
629
|
-
|
|
656
|
+
if (!o.value) return;
|
|
657
|
+
const Fe = ke - be, je = Math.min(1, Fe / l.slideDuration), He = 1 - Math.pow(1 - je, 3), Me = ie + ne * He;
|
|
658
|
+
o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Me}px, 0, 0)` : `translate3d(0, ${-Me}px, 0)`, u.value = Me, je < 1 ? K.value = requestAnimationFrame(fe) : (o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`, u.value = Y, t.value = X, m.value = !1, l.autoplay && ce(), K.value = null);
|
|
630
659
|
};
|
|
631
660
|
K.value = requestAnimationFrame(fe);
|
|
632
661
|
}, te = () => {
|
|
633
|
-
l.infinite && t.value >=
|
|
662
|
+
l.infinite && t.value >= r.value - g.value ? A(0) : A(t.value + 1);
|
|
634
663
|
}, de = () => {
|
|
635
|
-
l.infinite && t.value <= 0 ? A(
|
|
664
|
+
l.infinite && t.value <= 0 ? A(r.value - g.value) : A(t.value - 1);
|
|
636
665
|
}, p = (I) => {
|
|
637
666
|
A(I);
|
|
638
667
|
}, w = (I) => {
|
|
639
668
|
m.value && K.value && (l.autoplay && ae(), cancelAnimationFrame(K.value), m.value = !1);
|
|
640
669
|
const $ = "touches" in I ? I.touches[0] : I;
|
|
641
|
-
R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value, E.value = 0, C.value = 0,
|
|
670
|
+
R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value, E.value = 0, C.value = 0, W.value = 0, F.value = performance.now(), i.value && (i.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", T, { passive: !1 }), document.addEventListener("mouseup", N), document.addEventListener("touchmove", T, { passive: !1 }), document.addEventListener("touchend", N);
|
|
642
671
|
}, T = (I) => {
|
|
643
672
|
const $ = "touches" in I ? I.touches[0] : I;
|
|
644
673
|
if (!f.value) {
|
|
@@ -660,21 +689,21 @@ const ct = xe("SunIcon", [
|
|
|
660
689
|
else
|
|
661
690
|
return;
|
|
662
691
|
}
|
|
663
|
-
if (!M.value || !
|
|
692
|
+
if (!M.value || !o.value || !i.value) return;
|
|
664
693
|
I.cancelable && I.preventDefault();
|
|
665
|
-
const P = performance.now(),
|
|
666
|
-
|
|
667
|
-
const ie =
|
|
694
|
+
const P = performance.now(), q = P - F.value, Z = l.sliderOrientation === "horizontal" ? $.clientX : $.clientY, X = l.sliderOrientation === "horizontal" ? R.value : k.value, oe = l.sliderOrientation === "horizontal" ? C.value || X : W.value || X, Y = Z - oe;
|
|
695
|
+
q > 0 && (E.value = Y / q * 1e3);
|
|
696
|
+
const ie = Z - X;
|
|
668
697
|
let ne = c.value - ie;
|
|
669
|
-
ne < 0 ? ne = ne * 0.3 : ne > j.value && (ne = j.value + (ne - j.value) * 0.3), le.value = ne,
|
|
698
|
+
ne < 0 ? ne = ne * 0.3 : ne > j.value && (ne = j.value + (ne - j.value) * 0.3), le.value = ne, o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-le.value}px, 0, 0)` : `translate3d(0, ${-le.value}px, 0)`, l.sliderOrientation === "horizontal" ? C.value = Z : W.value = Z, F.value = P;
|
|
670
699
|
}, B = () => {
|
|
671
700
|
document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", N), document.removeEventListener("touchmove", T), document.removeEventListener("touchend", N);
|
|
672
701
|
}, N = () => {
|
|
673
|
-
if (!M.value || !
|
|
674
|
-
const $ = l.sliderOrientation === "horizontal" ? c.value - (C.value - R.value) : c.value - (
|
|
702
|
+
if (!M.value || !i.value || !o.value) return;
|
|
703
|
+
const $ = l.sliderOrientation === "horizontal" ? c.value - (C.value - R.value) : c.value - (W.value - k.value), P = Math.max(0, Math.min($, j.value)), q = x() + S.value;
|
|
675
704
|
if (M.value = !1, B(), u.value = P, l.infinite) {
|
|
676
705
|
if ($ < 0) {
|
|
677
|
-
A(
|
|
706
|
+
A(r.value - 1);
|
|
678
707
|
return;
|
|
679
708
|
} else if ($ > j.value) {
|
|
680
709
|
A(0);
|
|
@@ -684,17 +713,17 @@ const ct = xe("SunIcon", [
|
|
|
684
713
|
A(0);
|
|
685
714
|
return;
|
|
686
715
|
} else if ($ > j.value) {
|
|
687
|
-
const Y = Math.max(0,
|
|
716
|
+
const Y = Math.max(0, r.value - Math.floor(g.value));
|
|
688
717
|
A(Y);
|
|
689
718
|
return;
|
|
690
719
|
}
|
|
691
|
-
const
|
|
720
|
+
const Z = Math.max(0, r.value - Math.floor(g.value)), X = 100, oe = Math.round(P / q);
|
|
692
721
|
if (Math.abs(E.value) > X) {
|
|
693
722
|
const Y = -Math.sign(E.value), ie = oe + Y;
|
|
694
|
-
A(Math.max(0, Math.min(
|
|
723
|
+
A(Math.max(0, Math.min(Z, ie)));
|
|
695
724
|
} else
|
|
696
|
-
A(Math.max(0, Math.min(
|
|
697
|
-
},
|
|
725
|
+
A(Math.max(0, Math.min(Z, oe)));
|
|
726
|
+
}, J = () => {
|
|
698
727
|
!l.autoplay || Q.value !== null || (Q.value = setInterval(() => {
|
|
699
728
|
te();
|
|
700
729
|
}, l.autoplayInterval));
|
|
@@ -702,65 +731,65 @@ const ct = xe("SunIcon", [
|
|
|
702
731
|
Q.value !== null && (clearInterval(Q.value), Q.value = null);
|
|
703
732
|
}, ce = () => {
|
|
704
733
|
ae(), setTimeout(() => {
|
|
705
|
-
|
|
734
|
+
J();
|
|
706
735
|
}, 500);
|
|
707
736
|
}, ye = () => {
|
|
708
737
|
y.value = window.innerWidth;
|
|
709
738
|
}, Ie = () => {
|
|
710
|
-
if (!
|
|
739
|
+
if (!i.value || g.value <= 0 || (D(), r.value === 0)) return;
|
|
711
740
|
const I = x();
|
|
712
741
|
if (I <= 0) return;
|
|
713
|
-
const $ = Math.max(0,
|
|
714
|
-
|
|
742
|
+
const $ = Math.max(0, r.value - g.value), P = Math.min(Math.max(0, l.initialSlide), $), q = P * (I + S.value), Z = j.value, X = Math.max(0, Math.min(q, Z));
|
|
743
|
+
o.value && (o.value.style.transitionDuration = "0ms", o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-X}px, 0, 0)` : `translate3d(0, ${-X}px, 0)`), u.value = X, t.value = P;
|
|
715
744
|
};
|
|
716
745
|
Ve(() => {
|
|
717
746
|
window.removeEventListener("resize", ye);
|
|
718
747
|
});
|
|
719
748
|
let Le = !1;
|
|
720
749
|
return he(() => {
|
|
721
|
-
var $, P,
|
|
750
|
+
var $, P, q, Z, X, oe, Y, ie;
|
|
722
751
|
y.value = window.innerWidth;
|
|
723
|
-
const I =
|
|
752
|
+
const I = H(r, (ne) => {
|
|
724
753
|
ne > 0 && !Le && (Ie(), Le = !0, I());
|
|
725
754
|
});
|
|
726
|
-
l.autoplay &&
|
|
755
|
+
l.autoplay && J(), window.addEventListener("resize", ye), D(), ($ = i.value) == null || $.addEventListener("mousedown", w), (P = i.value) == null || P.addEventListener("touchstart", w, { passive: !0 }), l.showNavigationButtons && ((X = (Z = (q = i.value) == null ? void 0 : q.parentElement) == null ? void 0 : Z.querySelector(".absolute.flex.justify-between")) == null || X.addEventListener("click", ce)), l.showIndicators && ((ie = (Y = (oe = i.value) == null ? void 0 : oe.parentElement) == null ? void 0 : Y.querySelector(".bottom-5.flex.justify-center")) == null || ie.addEventListener("click", ce));
|
|
727
756
|
}), Ve(() => {
|
|
728
757
|
window.removeEventListener("resize", ye);
|
|
729
|
-
}),
|
|
730
|
-
I ?
|
|
731
|
-
}),
|
|
758
|
+
}), H(() => l.autoplay, (I) => {
|
|
759
|
+
I ? J() : ae();
|
|
760
|
+
}), H(() => l.autoplayInterval, ce), H(() => l.initialSlide, (I) => {
|
|
732
761
|
requestAnimationFrame(() => A(I, !0));
|
|
733
|
-
}),
|
|
762
|
+
}), H([g, S], () => {
|
|
734
763
|
requestAnimationFrame(() => {
|
|
735
764
|
requestAnimationFrame(() => {
|
|
736
|
-
if (D(),
|
|
737
|
-
const I = Math.max(0,
|
|
765
|
+
if (D(), r.value === 0) return;
|
|
766
|
+
const I = Math.max(0, r.value - g.value), $ = Math.min(t.value, I);
|
|
738
767
|
A($, !0);
|
|
739
768
|
});
|
|
740
769
|
});
|
|
741
|
-
}), d({ scrollToSlide: A }), (I, $) => (
|
|
770
|
+
}), d({ scrollToSlide: A }), (I, $) => (a(), s("div", Et, [
|
|
742
771
|
n("div", {
|
|
743
772
|
ref_key: "carouselContainer",
|
|
744
|
-
ref:
|
|
773
|
+
ref: i,
|
|
745
774
|
class: z(["rounded w-full h-full carousel", [{ "carousel-horizontal": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }, { "cursor-grabbing !select-none": M.value }]]),
|
|
746
775
|
style: { scrollSnapType: "none" }
|
|
747
776
|
}, [
|
|
748
777
|
n("div", {
|
|
749
778
|
ref_key: "slidesContainer",
|
|
750
|
-
ref:
|
|
779
|
+
ref: o,
|
|
751
780
|
class: z(["w-full h-full transition-transform duration-0 ease-out", e.sliderOrientation === "horizontal" ? "flex" : "block"]),
|
|
752
781
|
style: we({ gap: `${S.value}px` })
|
|
753
782
|
}, [
|
|
754
783
|
V(I.$slots, "default", {}, void 0, !0)
|
|
755
784
|
], 6)
|
|
756
785
|
], 2),
|
|
757
|
-
e.showNavigationButtons ? (
|
|
786
|
+
e.showNavigationButtons ? (a(), s("div", {
|
|
758
787
|
key: 0,
|
|
759
788
|
class: z([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
|
|
760
789
|
}, [
|
|
761
790
|
ue(Pe, { name: "fade" }, {
|
|
762
791
|
default: Ce(() => [
|
|
763
|
-
l.infinite || t.value > 0 ? (
|
|
792
|
+
l.infinite || t.value > 0 ? (a(), s("div", Lt, [
|
|
764
793
|
n("div", {
|
|
765
794
|
onClick: de,
|
|
766
795
|
role: "button",
|
|
@@ -780,7 +809,7 @@ const ct = xe("SunIcon", [
|
|
|
780
809
|
$[2] || ($[2] = n("div", { class: "flex-grow" }, null, -1)),
|
|
781
810
|
ue(Pe, { name: "fade" }, {
|
|
782
811
|
default: Ce(() => [
|
|
783
|
-
l.infinite || t.value <
|
|
812
|
+
l.infinite || t.value < r.value - g.value ? (a(), s("div", jt, [
|
|
784
813
|
n("div", {
|
|
785
814
|
onClick: te,
|
|
786
815
|
role: "button",
|
|
@@ -798,51 +827,51 @@ const ct = xe("SunIcon", [
|
|
|
798
827
|
_: 3
|
|
799
828
|
})
|
|
800
829
|
], 2)) : O("", !0),
|
|
801
|
-
e.showIndicators ? (
|
|
802
|
-
(
|
|
803
|
-
key: `dot-${
|
|
804
|
-
onClick: (
|
|
805
|
-
class: z(["btn btn-circle btn-xs", { "btn-active":
|
|
806
|
-
"aria-label": `Go to slide ${
|
|
807
|
-
}, null, 10,
|
|
830
|
+
e.showIndicators ? (a(), s("div", Pt, [
|
|
831
|
+
(a(!0), s(U, null, G(r.value, (P, q) => (a(), s("button", {
|
|
832
|
+
key: `dot-${q}`,
|
|
833
|
+
onClick: (Z) => p(q),
|
|
834
|
+
class: z(["btn btn-circle btn-xs", { "btn-active": q === t.value }]),
|
|
835
|
+
"aria-label": `Go to slide ${q + 1}`
|
|
836
|
+
}, null, 10, At))), 128))
|
|
808
837
|
])) : O("", !0)
|
|
809
838
|
]));
|
|
810
839
|
}
|
|
811
840
|
}), ge = (e, d) => {
|
|
812
841
|
const l = e.__vccOpts || e;
|
|
813
|
-
for (const [t,
|
|
814
|
-
l[t] =
|
|
842
|
+
for (const [t, i] of d)
|
|
843
|
+
l[t] = i;
|
|
815
844
|
return l;
|
|
816
|
-
},
|
|
845
|
+
}, On = /* @__PURE__ */ ge(Rt, [["__scopeId", "data-v-dd58428c"]]), Nt = /* @__PURE__ */ _({
|
|
817
846
|
__name: "carouselItem",
|
|
818
847
|
setup(e) {
|
|
819
848
|
const d = Ke(_e, h({}));
|
|
820
|
-
return (l, t) => (
|
|
849
|
+
return (l, t) => (a(), s("div", {
|
|
821
850
|
class: "w-full h-full carousel-item",
|
|
822
851
|
style: we(se(d))
|
|
823
852
|
}, [
|
|
824
853
|
V(l.$slots, "default", {}, void 0, !0)
|
|
825
854
|
], 4));
|
|
826
855
|
}
|
|
827
|
-
}),
|
|
856
|
+
}), Dn = /* @__PURE__ */ ge(Nt, [["__scopeId", "data-v-507384bc"]]), _t = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Ft = ["onClick"], Ht = {
|
|
828
857
|
key: 0,
|
|
829
858
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
830
|
-
},
|
|
859
|
+
}, qt = {
|
|
831
860
|
key: 1,
|
|
832
861
|
class: "flex flex-col"
|
|
833
|
-
},
|
|
862
|
+
}, Ut = { class: "text-sm" }, Wt = {
|
|
834
863
|
key: 0,
|
|
835
864
|
class: "opacity-75 overflow-hidden text-xs truncate ..."
|
|
836
|
-
},
|
|
865
|
+
}, Kt = {
|
|
837
866
|
key: 1,
|
|
838
867
|
class: "hidden md:block opacity-35 overflow-hidden text-xs truncate ..."
|
|
839
|
-
},
|
|
868
|
+
}, Xt = { class: "hidden" }, Yt = ["id"], Gt = { class: "modal-box" }, Jt = { class: "font-bold text-lg" }, Zt = ["name", "checked"], Qt = { class: "collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl" }, el = {
|
|
840
869
|
key: 0,
|
|
841
870
|
class: "opacity-75 overflow-hidden text-sm truncate ..."
|
|
842
|
-
},
|
|
871
|
+
}, tl = {
|
|
843
872
|
key: 1,
|
|
844
873
|
class: "opacity-35 text-sm"
|
|
845
|
-
},
|
|
874
|
+
}, ll = { class: "collapse-content flex place-content-center p-0" }, nl = /* @__PURE__ */ _({
|
|
846
875
|
__name: "advancedSearch",
|
|
847
876
|
props: {
|
|
848
877
|
searchOptions: {},
|
|
@@ -852,15 +881,15 @@ const ct = xe("SunIcon", [
|
|
|
852
881
|
},
|
|
853
882
|
emits: ["search", "update:search-data"],
|
|
854
883
|
setup(e, { emit: d }) {
|
|
855
|
-
const l = e, t = d,
|
|
856
|
-
datetime: ze(() => Promise.resolve().then(() =>
|
|
884
|
+
const l = e, t = d, i = l.id ?? `advancedSearch-${Xe()}`, o = h(null), u = h(null), m = {
|
|
885
|
+
datetime: ze(() => Promise.resolve().then(() => bl)),
|
|
857
886
|
"standard-select": ze(() => import("./select-Cz4vf_YE.js")),
|
|
858
887
|
// Add other components here when you create them:
|
|
859
888
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
860
889
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
861
890
|
"custom-text": ze(() => import("./inputField-BxT95oyM.js"))
|
|
862
891
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
863
|
-
},
|
|
892
|
+
}, r = h({}), y = h({
|
|
864
893
|
left: "0px",
|
|
865
894
|
top: "0px",
|
|
866
895
|
transform: "translateX(0%)"
|
|
@@ -912,7 +941,7 @@ const ct = xe("SunIcon", [
|
|
|
912
941
|
};
|
|
913
942
|
function k(f) {
|
|
914
943
|
var v, D;
|
|
915
|
-
const b = (v =
|
|
944
|
+
const b = (v = o.value) == null ? void 0 : v.name;
|
|
916
945
|
if (!b) {
|
|
917
946
|
console.warn("componentValueUpdated called but no active tab.");
|
|
918
947
|
return;
|
|
@@ -937,30 +966,30 @@ const ct = xe("SunIcon", [
|
|
|
937
966
|
}
|
|
938
967
|
async function C(f) {
|
|
939
968
|
var S;
|
|
940
|
-
const b = document.getElementById(`advancedSearchMobile-${
|
|
941
|
-
((S =
|
|
969
|
+
const b = document.getElementById(`advancedSearchMobile-${i}`), g = b && b.contains(f.target);
|
|
970
|
+
((S = o.value) == null ? void 0 : S.displayMode) === "popup" && M.value && !M.value.contains(f.target) && !g && (await me(), o.value = null);
|
|
942
971
|
}
|
|
943
|
-
async function
|
|
972
|
+
async function W() {
|
|
944
973
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
945
974
|
const f = document.getElementById(
|
|
946
|
-
`advancedSearchMobile-${
|
|
975
|
+
`advancedSearchMobile-${i}`
|
|
947
976
|
);
|
|
948
|
-
f ? (
|
|
949
|
-
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${
|
|
977
|
+
f ? (o.value = null, f.showModal()) : console.warn(
|
|
978
|
+
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${i}".`
|
|
950
979
|
);
|
|
951
980
|
}
|
|
952
981
|
}
|
|
953
982
|
async function F(f) {
|
|
954
983
|
var g, S, v;
|
|
955
984
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
956
|
-
|
|
985
|
+
W();
|
|
957
986
|
return;
|
|
958
987
|
}
|
|
959
988
|
const b = f.displayMode ?? "popup";
|
|
960
|
-
if (((g =
|
|
961
|
-
|
|
962
|
-
else if (
|
|
963
|
-
const D =
|
|
989
|
+
if (((g = o.value) == null ? void 0 : g.name) === f.name && ((S = o.value) == null ? void 0 : S.displayMode) === b)
|
|
990
|
+
o.value = null;
|
|
991
|
+
else if (o.value = { ...f, displayMode: b }, await me(), ((v = o.value) == null ? void 0 : v.displayMode) === "popup") {
|
|
992
|
+
const D = r.value[f.name];
|
|
964
993
|
if (D && M.value) {
|
|
965
994
|
const x = D.getBoundingClientRect(), j = M.value.getBoundingClientRect(), A = x.bottom - j.top, te = x.left + x.width / 2 - j.left;
|
|
966
995
|
y.value = {
|
|
@@ -981,19 +1010,19 @@ const ct = xe("SunIcon", [
|
|
|
981
1010
|
const b = f.relatedTarget;
|
|
982
1011
|
setTimeout(() => {
|
|
983
1012
|
var g;
|
|
984
|
-
((g =
|
|
1013
|
+
((g = o.value) == null ? void 0 : g.displayMode) === "inline" && M.value && (!b || !M.value.contains(b)) ? (console.log("Blur detected outside container, closing inline view."), o.value = null) : console.log(
|
|
985
1014
|
"Blur detected, but staying within container or not an inline tab."
|
|
986
1015
|
);
|
|
987
1016
|
}, 50);
|
|
988
1017
|
}, Q = () => {
|
|
989
|
-
console.log("Enter key pressed on inline component, closing inline view."),
|
|
1018
|
+
console.log("Enter key pressed on inline component, closing inline view."), o.value = null;
|
|
990
1019
|
};
|
|
991
|
-
|
|
1020
|
+
H(u, (f) => {
|
|
992
1021
|
var b;
|
|
993
1022
|
console.log(
|
|
994
1023
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
995
1024
|
f
|
|
996
|
-
), console.log("advanced-search: activeTab.value:",
|
|
1025
|
+
), console.log("advanced-search: activeTab.value:", o.value), f && ((b = o.value) == null ? void 0 : b.displayMode) === "inline" ? (console.log(
|
|
997
1026
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
998
1027
|
), me(() => {
|
|
999
1028
|
console.log(
|
|
@@ -1018,19 +1047,19 @@ const ct = xe("SunIcon", [
|
|
|
1018
1047
|
const le = () => {
|
|
1019
1048
|
var f, b;
|
|
1020
1049
|
if (typeof window < "u") {
|
|
1021
|
-
const g = window.innerWidth <= 768, S =
|
|
1022
|
-
!g && (((f =
|
|
1050
|
+
const g = window.innerWidth <= 768, S = o.value !== null && (o.value.displayMode === "popup" || o.value.displayMode === "inline") && window.innerWidth > 768;
|
|
1051
|
+
!g && (((f = o.value) == null ? void 0 : f.displayMode) === "popup" || ((b = o.value) == null ? void 0 : b.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), o.value = null), g && !S && o.value !== null && (console.log(
|
|
1023
1052
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
1024
|
-
),
|
|
1053
|
+
), o.value = null);
|
|
1025
1054
|
const v = document.getElementById(
|
|
1026
|
-
`advancedSearchMobile-${
|
|
1055
|
+
`advancedSearchMobile-${i}`
|
|
1027
1056
|
);
|
|
1028
|
-
v != null && v.open && !g && (console.log("Modal is open on desktop, closing modal and active tab."), v.close(),
|
|
1057
|
+
v != null && v.open && !g && (console.log("Modal is open on desktop, closing modal and active tab."), v.close(), o.value = null);
|
|
1029
1058
|
}
|
|
1030
1059
|
};
|
|
1031
1060
|
return (f, b) => {
|
|
1032
1061
|
var g, S;
|
|
1033
|
-
return
|
|
1062
|
+
return a(), s(U, null, [
|
|
1034
1063
|
n("div", {
|
|
1035
1064
|
ref_key: "searchContainer",
|
|
1036
1065
|
ref: M,
|
|
@@ -1038,27 +1067,27 @@ const ct = xe("SunIcon", [
|
|
|
1038
1067
|
}, [
|
|
1039
1068
|
n("div", {
|
|
1040
1069
|
class: "group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",
|
|
1041
|
-
onClick:
|
|
1070
|
+
onClick: W
|
|
1042
1071
|
}, [
|
|
1043
|
-
n("div",
|
|
1044
|
-
(
|
|
1072
|
+
n("div", _t, [
|
|
1073
|
+
(a(!0), s(U, null, G(((g = l.searchOptions.find(
|
|
1045
1074
|
(v) => v.category === l.currentCategory
|
|
1046
1075
|
)) == null ? void 0 : g.tabs) || [], (v, D) => {
|
|
1047
1076
|
var x, j, A, te, de;
|
|
1048
|
-
return
|
|
1077
|
+
return a(), s("button", {
|
|
1049
1078
|
key: `${v.name}-${D}`,
|
|
1050
1079
|
onClick: re((p) => F(v), ["stop"]),
|
|
1051
1080
|
class: z([{
|
|
1052
|
-
"tab-active": ((x =
|
|
1053
|
-
"tab-active-inline": ((j =
|
|
1081
|
+
"tab-active": ((x = o.value) == null ? void 0 : x.name) === v.name,
|
|
1082
|
+
"tab-active-inline": ((j = o.value) == null ? void 0 : j.name) === v.name && ((A = o.value) == null ? void 0 : A.displayMode) === "inline"
|
|
1054
1083
|
// Add new class
|
|
1055
1084
|
}, "group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
|
|
1056
1085
|
ref_for: !0,
|
|
1057
|
-
ref: (p) =>
|
|
1086
|
+
ref: (p) => r.value[v.name] = p
|
|
1058
1087
|
}, [
|
|
1059
|
-
((te =
|
|
1060
|
-
(
|
|
1061
|
-
modelValue:
|
|
1088
|
+
((te = o.value) == null ? void 0 : te.name) === v.name && ((de = o.value) == null ? void 0 : de.displayMode) === "inline" ? (a(), s("div", Ht, [
|
|
1089
|
+
(a(), ve(Te(m[o.value.type]), Be({ ref_for: !0 }, o.value.props || {}, {
|
|
1090
|
+
modelValue: o.value.value,
|
|
1062
1091
|
onUpdated: b[0] || (b[0] = (p) => c(p)),
|
|
1063
1092
|
"onUpdate:modelValue": b[1] || (b[1] = (p) => c(p)),
|
|
1064
1093
|
onBlur: K,
|
|
@@ -1067,20 +1096,20 @@ const ct = xe("SunIcon", [
|
|
|
1067
1096
|
ref_key: "inlineComponentRef",
|
|
1068
1097
|
ref: u
|
|
1069
1098
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
1070
|
-
])) : (
|
|
1071
|
-
n("p",
|
|
1072
|
-
v.value !== void 0 && v.value !== null && v.value !== "" ? (
|
|
1099
|
+
])) : (a(), s("div", qt, [
|
|
1100
|
+
n("p", Ut, L(v.name), 1),
|
|
1101
|
+
v.value !== void 0 && v.value !== null && v.value !== "" ? (a(), s("p", Wt, L(R(v)), 1)) : (a(), s("p", Kt, L(v.description), 1))
|
|
1073
1102
|
]))
|
|
1074
|
-
], 10,
|
|
1103
|
+
], 10, Ft);
|
|
1075
1104
|
}), 128))
|
|
1076
1105
|
]),
|
|
1077
|
-
|
|
1106
|
+
o.value && o.value.displayMode === "popup" ? (a(), s("div", {
|
|
1078
1107
|
key: 0,
|
|
1079
1108
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
1080
1109
|
style: we(y.value)
|
|
1081
1110
|
}, [
|
|
1082
|
-
(
|
|
1083
|
-
modelValue:
|
|
1111
|
+
(a(), ve(Te(m[o.value.type]), Be(o.value.props || {}, {
|
|
1112
|
+
modelValue: o.value.value,
|
|
1084
1113
|
onUpdated: b[2] || (b[2] = (v) => k(v)),
|
|
1085
1114
|
"onUpdate:modelValue": b[3] || (b[3] = (v) => k(v))
|
|
1086
1115
|
}), null, 16, ["modelValue"]))
|
|
@@ -1097,7 +1126,7 @@ const ct = xe("SunIcon", [
|
|
|
1097
1126
|
})
|
|
1098
1127
|
])
|
|
1099
1128
|
]),
|
|
1100
|
-
n("div",
|
|
1129
|
+
n("div", Xt, [
|
|
1101
1130
|
n("button", {
|
|
1102
1131
|
title: "search",
|
|
1103
1132
|
onClick: b[4] || (b[4] = () => {
|
|
@@ -1111,31 +1140,31 @@ const ct = xe("SunIcon", [
|
|
|
1111
1140
|
])
|
|
1112
1141
|
], 512),
|
|
1113
1142
|
n("dialog", {
|
|
1114
|
-
id: `advancedSearchMobile-${se(
|
|
1143
|
+
id: `advancedSearchMobile-${se(i)}`,
|
|
1115
1144
|
class: "modal"
|
|
1116
1145
|
}, [
|
|
1117
|
-
n("div",
|
|
1146
|
+
n("div", Gt, [
|
|
1118
1147
|
V(f.$slots, "additionalForMobile", {}, () => [
|
|
1119
|
-
n("h3",
|
|
1148
|
+
n("h3", Jt, L(e.currentCategory), 1)
|
|
1120
1149
|
], !0),
|
|
1121
|
-
(
|
|
1150
|
+
(a(!0), s(U, null, G(((S = l.searchOptions.find(
|
|
1122
1151
|
(v) => v.category === l.currentCategory
|
|
1123
|
-
)) == null ? void 0 : S.tabs) || [], (v, D) => (
|
|
1152
|
+
)) == null ? void 0 : S.tabs) || [], (v, D) => (a(), s("div", {
|
|
1124
1153
|
class: "collapse bg-base-200 my-4",
|
|
1125
1154
|
key: v.name
|
|
1126
1155
|
}, [
|
|
1127
1156
|
n("input", {
|
|
1128
1157
|
type: "radio",
|
|
1129
|
-
name: `accordion-${se(
|
|
1158
|
+
name: `accordion-${se(i)}`,
|
|
1130
1159
|
checked: D === 0
|
|
1131
|
-
}, null, 8,
|
|
1132
|
-
n("div",
|
|
1160
|
+
}, null, 8, Zt),
|
|
1161
|
+
n("div", Qt, [
|
|
1133
1162
|
n("div", null, L(v.name), 1),
|
|
1134
|
-
v.value !== void 0 && v.value !== null && v.value !== "" ? (
|
|
1163
|
+
v.value !== void 0 && v.value !== null && v.value !== "" ? (a(), s("div", el, L(R(v)), 1)) : (a(), s("div", tl, L(v.description), 1))
|
|
1135
1164
|
]),
|
|
1136
|
-
n("div",
|
|
1165
|
+
n("div", ll, [
|
|
1137
1166
|
b[7] || (b[7] = n("br", null, null, -1)),
|
|
1138
|
-
(
|
|
1167
|
+
(a(), ve(Te(m[v.type]), Be({ ref_for: !0 }, v.props || {}, {
|
|
1139
1168
|
modelValue: v.value,
|
|
1140
1169
|
onUpdated: b[5] || (b[5] = (x) => k(x)),
|
|
1141
1170
|
"onUpdate:modelValue": b[6] || (b[6] = (x) => k(x))
|
|
@@ -1151,20 +1180,20 @@ const ct = xe("SunIcon", [
|
|
|
1151
1180
|
])
|
|
1152
1181
|
])
|
|
1153
1182
|
])
|
|
1154
|
-
], 8,
|
|
1183
|
+
], 8, Yt)
|
|
1155
1184
|
], 64);
|
|
1156
1185
|
};
|
|
1157
1186
|
}
|
|
1158
|
-
}),
|
|
1187
|
+
}), Vn = /* @__PURE__ */ ge(nl, [["__scopeId", "data-v-577c3624"]]), al = { class: "z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm" }, ol = { key: 0 }, sl = { key: 1 }, il = ["id", "onKeydown"], rl = {
|
|
1159
1188
|
key: 2,
|
|
1160
1189
|
class: "flex justify-center p-4"
|
|
1161
|
-
},
|
|
1190
|
+
}, ul = { class: "join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto" }, dl = { class: "join-item" }, cl = ["id", "disabled", "value"], vl = { class: "join-item" }, fl = ["id", "disabled", "value"], ml = {
|
|
1162
1191
|
key: 3,
|
|
1163
1192
|
class: "p-4 min-w-2xs"
|
|
1164
|
-
},
|
|
1193
|
+
}, pl = ["id", "disabled", "value"], hl = {
|
|
1165
1194
|
key: 4,
|
|
1166
1195
|
class: "flex px-4 my-4 w-full justify-end"
|
|
1167
|
-
},
|
|
1196
|
+
}, gl = /* @__PURE__ */ _({
|
|
1168
1197
|
__name: "datetimePicker",
|
|
1169
1198
|
props: {
|
|
1170
1199
|
mode: { default: "datetime" },
|
|
@@ -1183,7 +1212,7 @@ const ct = xe("SunIcon", [
|
|
|
1183
1212
|
},
|
|
1184
1213
|
emits: ["update:modelValue", "change"],
|
|
1185
1214
|
setup(e, { emit: d }) {
|
|
1186
|
-
const l = typeof window < "u", t = e,
|
|
1215
|
+
const l = typeof window < "u", t = e, i = d, o = h(null), u = h(!1), m = h(null), r = h(null), y = h(null), M = h(null), R = h(null), k = h({
|
|
1187
1216
|
from: "",
|
|
1188
1217
|
to: "",
|
|
1189
1218
|
single: ""
|
|
@@ -1191,13 +1220,13 @@ const ct = xe("SunIcon", [
|
|
|
1191
1220
|
single: null,
|
|
1192
1221
|
start: null,
|
|
1193
1222
|
end: null
|
|
1194
|
-
}), E = (p) => p instanceof Date ? p.toISOString() : p, C = (p) => p.split("T")[0] || "",
|
|
1223
|
+
}), E = (p) => p instanceof Date ? p.toISOString() : p, C = (p) => p.split("T")[0] || "", W = (p) => {
|
|
1195
1224
|
const w = p instanceof Date ? p : new Date(p);
|
|
1196
1225
|
if (isNaN(w.getTime())) return "";
|
|
1197
1226
|
const T = String(w.getHours()).padStart(2, "0"), B = String(w.getMinutes()).padStart(2, "0");
|
|
1198
1227
|
return `${T}:${B}`;
|
|
1199
1228
|
}, F = () => {
|
|
1200
|
-
const p = /* @__PURE__ */ new Date(), w =
|
|
1229
|
+
const p = /* @__PURE__ */ new Date(), w = W(p);
|
|
1201
1230
|
let T = t.initialDate;
|
|
1202
1231
|
if (!T && t.mode !== "time" && (T = t.range ? { start: p, end: p } : p), !!T) {
|
|
1203
1232
|
if (!T) {
|
|
@@ -1206,10 +1235,10 @@ const ct = xe("SunIcon", [
|
|
|
1206
1235
|
}
|
|
1207
1236
|
if (t.range && typeof T == "object" && "start" in T) {
|
|
1208
1237
|
const B = E(T.start), N = E(T.end);
|
|
1209
|
-
c.value.start = C(B), c.value.end = C(N), t.mode !== "date" && (k.value.from =
|
|
1238
|
+
c.value.start = C(B), c.value.end = C(N), t.mode !== "date" && (k.value.from = W(B), k.value.to = W(N));
|
|
1210
1239
|
} else {
|
|
1211
1240
|
const B = E(T);
|
|
1212
|
-
c.value.single = C(B), t.mode !== "date" && (k.value.single =
|
|
1241
|
+
c.value.single = C(B), t.mode !== "date" && (k.value.single = W(B));
|
|
1213
1242
|
}
|
|
1214
1243
|
}
|
|
1215
1244
|
}, K = ee(() => {
|
|
@@ -1223,8 +1252,8 @@ const ct = xe("SunIcon", [
|
|
|
1223
1252
|
day: "numeric"
|
|
1224
1253
|
});
|
|
1225
1254
|
} catch {
|
|
1226
|
-
const [N,
|
|
1227
|
-
return `${ae}/${
|
|
1255
|
+
const [N, J, ae] = B.split("-");
|
|
1256
|
+
return `${ae}/${J}/${N}`;
|
|
1228
1257
|
}
|
|
1229
1258
|
};
|
|
1230
1259
|
let w = "", T = "";
|
|
@@ -1234,11 +1263,11 @@ const ct = xe("SunIcon", [
|
|
|
1234
1263
|
return T;
|
|
1235
1264
|
if (t.mode === "datetime")
|
|
1236
1265
|
if (t.range) {
|
|
1237
|
-
const B = c.value.start, N = c.value.end,
|
|
1238
|
-
if (B && N &&
|
|
1239
|
-
return `${p(B)} ${
|
|
1266
|
+
const B = c.value.start, N = c.value.end, J = k.value.from, ae = k.value.to;
|
|
1267
|
+
if (B && N && J && ae)
|
|
1268
|
+
return `${p(B)} ${J} - ${p(N)} ${ae}`;
|
|
1240
1269
|
if (B)
|
|
1241
|
-
return `${p(B)} ${
|
|
1270
|
+
return `${p(B)} ${J || ""}`.trim();
|
|
1242
1271
|
} else {
|
|
1243
1272
|
const B = c.value.single, N = k.value.single;
|
|
1244
1273
|
return `${p(B)} ${N || ""}`.trim();
|
|
@@ -1247,8 +1276,8 @@ const ct = xe("SunIcon", [
|
|
|
1247
1276
|
}), Q = () => {
|
|
1248
1277
|
if (m.value)
|
|
1249
1278
|
c.value.single = m.value.value || null;
|
|
1250
|
-
else if (
|
|
1251
|
-
const p =
|
|
1279
|
+
else if (r.value) {
|
|
1280
|
+
const p = r.value.value;
|
|
1252
1281
|
if (typeof p == "string" && p.includes("/")) {
|
|
1253
1282
|
const [w, T] = p.split("/");
|
|
1254
1283
|
c.value.start = w || null, c.value.end = T || null;
|
|
@@ -1257,14 +1286,14 @@ const ct = xe("SunIcon", [
|
|
|
1257
1286
|
}
|
|
1258
1287
|
}, le = () => c.value.start && c.value.end ? `${c.value.start}/${c.value.end}` : null, f = () => {
|
|
1259
1288
|
if (t.range) {
|
|
1260
|
-
const T = c.value.start, B = c.value.end || c.value.start, N = k.value.from,
|
|
1289
|
+
const T = c.value.start, B = c.value.end || c.value.start, N = k.value.from, J = k.value.to;
|
|
1261
1290
|
if (t.mode === "time")
|
|
1262
|
-
return N &&
|
|
1291
|
+
return N && J ? { start: N, end: J } : null;
|
|
1263
1292
|
if (t.mode === "date")
|
|
1264
1293
|
return T && B ? { start: T, end: B } : null;
|
|
1265
1294
|
if (t.mode === "datetime") {
|
|
1266
1295
|
if (!T || !B) return null;
|
|
1267
|
-
const ae = N ? `${N}:00` : "00:00:00", ce =
|
|
1296
|
+
const ae = N ? `${N}:00` : "00:00:00", ce = J ? `${J}:00` : "23:59:59", ye = `${T}T${ae}`, Ie = `${B}T${ce}`;
|
|
1268
1297
|
return { start: ye, end: Ie };
|
|
1269
1298
|
}
|
|
1270
1299
|
return null;
|
|
@@ -1283,7 +1312,7 @@ const ct = xe("SunIcon", [
|
|
|
1283
1312
|
}, b = async () => {
|
|
1284
1313
|
Q();
|
|
1285
1314
|
const p = f();
|
|
1286
|
-
|
|
1315
|
+
i("update:modelValue", p), i("change", p);
|
|
1287
1316
|
}, g = () => {
|
|
1288
1317
|
me(() => {
|
|
1289
1318
|
b();
|
|
@@ -1297,7 +1326,7 @@ const ct = xe("SunIcon", [
|
|
|
1297
1326
|
b(), u.value = !1;
|
|
1298
1327
|
}, x = (p) => {
|
|
1299
1328
|
!t.popup || !u.value || setTimeout(() => {
|
|
1300
|
-
const w =
|
|
1329
|
+
const w = o.value, T = p.target, B = `date-picker-${t.id}-popup`;
|
|
1301
1330
|
w && !w.contains(T) && !p.target.closest(`#${B}`) && D();
|
|
1302
1331
|
}, 0);
|
|
1303
1332
|
}, j = () => {
|
|
@@ -1306,49 +1335,49 @@ const ct = xe("SunIcon", [
|
|
|
1306
1335
|
b(), t.popup && (u.value = !1);
|
|
1307
1336
|
}, te = () => {
|
|
1308
1337
|
if (!l) return;
|
|
1309
|
-
const p = t.range ?
|
|
1338
|
+
const p = t.range ? r.value : m.value;
|
|
1310
1339
|
p && typeof p.navigate == "function" && p.navigate(-1);
|
|
1311
1340
|
}, de = () => {
|
|
1312
1341
|
if (!l) return;
|
|
1313
|
-
const p = t.range ?
|
|
1342
|
+
const p = t.range ? r.value : m.value;
|
|
1314
1343
|
p && typeof p.navigate == "function" && p.navigate(1);
|
|
1315
1344
|
};
|
|
1316
1345
|
return he(() => {
|
|
1317
1346
|
l && import("./cally-ZU3K2Th7.js").catch((p) => {
|
|
1318
1347
|
console.warn("Failed to load cally:", p);
|
|
1319
1348
|
}), F();
|
|
1320
|
-
}),
|
|
1349
|
+
}), H(c, async (p) => {
|
|
1321
1350
|
if (await me(), m.value && p.single) {
|
|
1322
1351
|
const w = p.single;
|
|
1323
1352
|
m.value.value !== w && (m.value.value = w);
|
|
1324
1353
|
}
|
|
1325
|
-
if (
|
|
1354
|
+
if (r.value) {
|
|
1326
1355
|
const w = le();
|
|
1327
|
-
w &&
|
|
1356
|
+
w && r.value.value !== w && (r.value.value = w);
|
|
1328
1357
|
}
|
|
1329
1358
|
b();
|
|
1330
|
-
}, { immediate: !0, deep: !0 }),
|
|
1331
|
-
await me(), m.value && c.value.single && !m.value.value && (m.value.value = c.value.single),
|
|
1332
|
-
}, { immediate: !0 }),
|
|
1359
|
+
}, { immediate: !0, deep: !0 }), H([c, m, r], async () => {
|
|
1360
|
+
await me(), m.value && c.value.single && !m.value.value && (m.value.value = c.value.single), r.value && c.value.start && c.value.end && !r.value.value && (r.value.value = `${c.value.start}/${c.value.end}`), b();
|
|
1361
|
+
}, { immediate: !0 }), H([y, M, R], () => {
|
|
1333
1362
|
b();
|
|
1334
1363
|
}, { immediate: !0 }), (p, w) => {
|
|
1335
1364
|
const T = Oe("calendar-month"), B = Oe("calendar-date"), N = Oe("calendar-range");
|
|
1336
|
-
return
|
|
1365
|
+
return a(), s("div", {
|
|
1337
1366
|
class: "inline-block relative w-fit lg:w-full",
|
|
1338
1367
|
ref_key: "pickerContainer",
|
|
1339
|
-
ref:
|
|
1368
|
+
ref: o,
|
|
1340
1369
|
onMousedownCapture: x
|
|
1341
1370
|
}, [
|
|
1342
|
-
t.popup ? (
|
|
1371
|
+
t.popup ? (a(), s("div", {
|
|
1343
1372
|
key: 0,
|
|
1344
1373
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1345
|
-
onClick: w[0] || (w[0] = (
|
|
1374
|
+
onClick: w[0] || (w[0] = (J) => t.disabled ? null : v())
|
|
1346
1375
|
}, [
|
|
1347
|
-
n("div",
|
|
1348
|
-
K.value ? (
|
|
1376
|
+
n("div", al, [
|
|
1377
|
+
K.value ? (a(), s("span", sl, L(K.value), 1)) : (a(), s("span", ol, L(t.placeholder), 1))
|
|
1349
1378
|
])
|
|
1350
1379
|
])) : O("", !0),
|
|
1351
|
-
u.value || !t.popup ? (
|
|
1380
|
+
u.value || !t.popup ? (a(), s("div", {
|
|
1352
1381
|
key: 1,
|
|
1353
1382
|
class: z(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
|
|
1354
1383
|
id: `date-picker-${t.id}-popup`,
|
|
@@ -1359,7 +1388,7 @@ const ct = xe("SunIcon", [
|
|
|
1359
1388
|
pe(re(A, ["prevent"]), ["enter"])
|
|
1360
1389
|
]
|
|
1361
1390
|
}, [
|
|
1362
|
-
!t.range && t.mode !== "time" && l ? (
|
|
1391
|
+
!t.range && t.mode !== "time" && l ? (a(), ve(B, {
|
|
1363
1392
|
key: 0,
|
|
1364
1393
|
class: "cally w-full",
|
|
1365
1394
|
ref_key: "datePicker",
|
|
@@ -1418,11 +1447,11 @@ const ct = xe("SunIcon", [
|
|
|
1418
1447
|
]),
|
|
1419
1448
|
_: 1
|
|
1420
1449
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : O("", !0),
|
|
1421
|
-
t.range && t.mode !== "time" && l ? (
|
|
1450
|
+
t.range && t.mode !== "time" && l ? (a(), ve(N, {
|
|
1422
1451
|
key: 1,
|
|
1423
1452
|
class: "cally w-full",
|
|
1424
1453
|
ref_key: "rangeDatePicker",
|
|
1425
|
-
ref:
|
|
1454
|
+
ref: r,
|
|
1426
1455
|
id: `${t.id}-date-range`,
|
|
1427
1456
|
min: t.min,
|
|
1428
1457
|
max: t.max,
|
|
@@ -1477,9 +1506,9 @@ const ct = xe("SunIcon", [
|
|
|
1477
1506
|
]),
|
|
1478
1507
|
_: 1
|
|
1479
1508
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : O("", !0),
|
|
1480
|
-
t.range && t.mode !== "date" ? (
|
|
1481
|
-
n("div",
|
|
1482
|
-
n("div",
|
|
1509
|
+
t.range && t.mode !== "date" ? (a(), s("div", rl, [
|
|
1510
|
+
n("div", ul, [
|
|
1511
|
+
n("div", dl, [
|
|
1483
1512
|
n("input", {
|
|
1484
1513
|
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1485
1514
|
type: "time",
|
|
@@ -1490,7 +1519,7 @@ const ct = xe("SunIcon", [
|
|
|
1490
1519
|
onChange: S,
|
|
1491
1520
|
disabled: t.disabled,
|
|
1492
1521
|
value: k.value.from || ""
|
|
1493
|
-
}, null, 40,
|
|
1522
|
+
}, null, 40, cl)
|
|
1494
1523
|
]),
|
|
1495
1524
|
w[6] || (w[6] = n("svg", {
|
|
1496
1525
|
class: "join-item",
|
|
@@ -1504,7 +1533,7 @@ const ct = xe("SunIcon", [
|
|
|
1504
1533
|
}, [
|
|
1505
1534
|
n("path", { d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" })
|
|
1506
1535
|
], -1)),
|
|
1507
|
-
n("div",
|
|
1536
|
+
n("div", vl, [
|
|
1508
1537
|
n("input", {
|
|
1509
1538
|
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1510
1539
|
type: "time",
|
|
@@ -1514,11 +1543,11 @@ const ct = xe("SunIcon", [
|
|
|
1514
1543
|
onChange: S,
|
|
1515
1544
|
disabled: t.disabled,
|
|
1516
1545
|
value: k.value.to || ""
|
|
1517
|
-
}, null, 40,
|
|
1546
|
+
}, null, 40, fl)
|
|
1518
1547
|
])
|
|
1519
1548
|
])
|
|
1520
1549
|
])) : O("", !0),
|
|
1521
|
-
!t.range && t.mode !== "date" ? (
|
|
1550
|
+
!t.range && t.mode !== "date" ? (a(), s("div", ml, [
|
|
1522
1551
|
n("input", {
|
|
1523
1552
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1524
1553
|
type: "time",
|
|
@@ -1528,22 +1557,22 @@ const ct = xe("SunIcon", [
|
|
|
1528
1557
|
onChange: S,
|
|
1529
1558
|
disabled: t.disabled,
|
|
1530
1559
|
value: k.value.single || ""
|
|
1531
|
-
}, null, 40,
|
|
1560
|
+
}, null, 40, pl)
|
|
1532
1561
|
])) : O("", !0),
|
|
1533
|
-
t.popup && t.closeText ? (
|
|
1562
|
+
t.popup && t.closeText ? (a(), s("div", hl, [
|
|
1534
1563
|
n("button", {
|
|
1535
1564
|
class: "btn btn-primary max-lg:w-full",
|
|
1536
1565
|
onClick: D
|
|
1537
1566
|
}, L(t.closeText), 1)
|
|
1538
1567
|
])) : O("", !0)
|
|
1539
|
-
], 42,
|
|
1568
|
+
], 42, il)) : O("", !0)
|
|
1540
1569
|
], 544);
|
|
1541
1570
|
};
|
|
1542
1571
|
}
|
|
1543
|
-
}),
|
|
1572
|
+
}), yl = /* @__PURE__ */ ge(gl, [["__scopeId", "data-v-e0b34494"]]), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1544
1573
|
__proto__: null,
|
|
1545
|
-
default:
|
|
1546
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1574
|
+
default: yl
|
|
1575
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = ["value", "checked", "onChange", "disabled"], En = /* @__PURE__ */ _({
|
|
1547
1576
|
__name: "rating",
|
|
1548
1577
|
props: {
|
|
1549
1578
|
initialRating: { default: 0 },
|
|
@@ -1557,23 +1586,23 @@ const ct = xe("SunIcon", [
|
|
|
1557
1586
|
},
|
|
1558
1587
|
setup(e) {
|
|
1559
1588
|
const d = e, l = h(d.initialRating);
|
|
1560
|
-
|
|
1589
|
+
H(
|
|
1561
1590
|
() => d.initialRating,
|
|
1562
|
-
(
|
|
1563
|
-
l.value =
|
|
1591
|
+
(i) => {
|
|
1592
|
+
l.value = i;
|
|
1564
1593
|
}
|
|
1565
1594
|
);
|
|
1566
|
-
const t = (
|
|
1567
|
-
l.value =
|
|
1595
|
+
const t = (i) => {
|
|
1596
|
+
l.value = i;
|
|
1568
1597
|
};
|
|
1569
|
-
return (
|
|
1598
|
+
return (i, o) => (a(), s("div", {
|
|
1570
1599
|
class: z(["rating", [
|
|
1571
1600
|
`rating-${d.size}`,
|
|
1572
1601
|
{ "rating-half": e.halfStars },
|
|
1573
1602
|
{ "pointer-events-none": !e.isInteractive }
|
|
1574
1603
|
]])
|
|
1575
1604
|
}, [
|
|
1576
|
-
(
|
|
1605
|
+
(a(!0), s(U, null, G(e.numberOfStars * (e.halfStars ? 2 : 1), (u) => (a(), s("input", {
|
|
1577
1606
|
key: u,
|
|
1578
1607
|
type: "radio",
|
|
1579
1608
|
value: e.halfStars ? u * 0.5 : u,
|
|
@@ -1606,10 +1635,10 @@ const ct = xe("SunIcon", [
|
|
|
1606
1635
|
marginRight: e.halfStars && u % 2 === 0 ? `${d.gap}px` : e.halfStars ? "0" : `${d.gap}px`
|
|
1607
1636
|
}),
|
|
1608
1637
|
disabled: !e.isInteractive
|
|
1609
|
-
}, null, 46,
|
|
1638
|
+
}, null, 46, wl))), 128))
|
|
1610
1639
|
], 2));
|
|
1611
1640
|
}
|
|
1612
|
-
}),
|
|
1641
|
+
}), xl = { class: "badge" }, kl = ["onClick"], $l = { class: "opacity-75" }, Sl = ["placeholder"], Ln = /* @__PURE__ */ _({
|
|
1613
1642
|
__name: "taginput",
|
|
1614
1643
|
props: {
|
|
1615
1644
|
modelValue: {},
|
|
@@ -1619,36 +1648,36 @@ const ct = xe("SunIcon", [
|
|
|
1619
1648
|
},
|
|
1620
1649
|
emits: ["update:modelValue"],
|
|
1621
1650
|
setup(e, { emit: d }) {
|
|
1622
|
-
const l = e, t = d,
|
|
1651
|
+
const l = e, t = d, i = h([...l.modelValue]), o = l.maxTagAmount === void 0 ? -1 : l.maxTagAmount, u = h(null), m = h(""), r = ee(() => o < 0 || i.value.length < o), y = () => {
|
|
1623
1652
|
const c = m.value.trim();
|
|
1624
|
-
c && !
|
|
1653
|
+
c && !i.value.includes(c) && (i.value.push(c), t("update:modelValue", i.value), m.value = "");
|
|
1625
1654
|
}, M = (c) => {
|
|
1626
|
-
|
|
1655
|
+
i.value = i.value.filter((E) => E !== c), t("update:modelValue", i.value);
|
|
1627
1656
|
}, R = () => {
|
|
1628
|
-
m.value === "" && (
|
|
1657
|
+
m.value === "" && (i.value.pop(), t("update:modelValue", i.value));
|
|
1629
1658
|
}, k = (c) => {
|
|
1630
1659
|
c.key === "Enter" ? y() : c.key === "Backspace" && m.value === "" && R();
|
|
1631
1660
|
};
|
|
1632
|
-
return
|
|
1633
|
-
|
|
1634
|
-
}), (c, E) => (
|
|
1661
|
+
return H(() => l.modelValue, (c) => {
|
|
1662
|
+
i.value = [...c];
|
|
1663
|
+
}), (c, E) => (a(), s("div", {
|
|
1635
1664
|
class: z(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", c.$props.class])
|
|
1636
1665
|
}, [
|
|
1637
|
-
(
|
|
1666
|
+
(a(!0), s(U, null, G(i.value, (C) => V(c.$slots, "tag", {
|
|
1638
1667
|
key: C,
|
|
1639
1668
|
tag: C
|
|
1640
1669
|
}, () => [
|
|
1641
|
-
n("div",
|
|
1670
|
+
n("div", xl, [
|
|
1642
1671
|
n("button", {
|
|
1643
1672
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1644
|
-
onClick: (
|
|
1673
|
+
onClick: (W) => M(C),
|
|
1645
1674
|
"aria-label": "Remove tag"
|
|
1646
|
-
}, "X", 8,
|
|
1647
|
-
n("span",
|
|
1675
|
+
}, "X", 8, kl),
|
|
1676
|
+
n("span", $l, L(C), 1)
|
|
1648
1677
|
])
|
|
1649
1678
|
])), 128)),
|
|
1650
|
-
V(c.$slots, "input", { showInput:
|
|
1651
|
-
|
|
1679
|
+
V(c.$slots, "input", { showInput: r.value }, () => [
|
|
1680
|
+
r.value ? Se((a(), s("input", {
|
|
1652
1681
|
key: 0,
|
|
1653
1682
|
ref_key: "inputRef",
|
|
1654
1683
|
ref: u,
|
|
@@ -1658,21 +1687,21 @@ const ct = xe("SunIcon", [
|
|
|
1658
1687
|
class: "h-full input input-ghost",
|
|
1659
1688
|
onKeydown: k,
|
|
1660
1689
|
"aria-label": "Add tags"
|
|
1661
|
-
}, null, 40,
|
|
1690
|
+
}, null, 40, Sl)), [
|
|
1662
1691
|
[Ne, m.value]
|
|
1663
1692
|
]) : O("", !0)
|
|
1664
1693
|
])
|
|
1665
1694
|
], 2));
|
|
1666
1695
|
}
|
|
1667
|
-
}),
|
|
1696
|
+
}), Cl = { class: "w-full max-w-xs form-control" }, Il = {
|
|
1668
1697
|
key: 0,
|
|
1669
1698
|
class: "label"
|
|
1670
|
-
},
|
|
1699
|
+
}, Ml = { class: "label-text" }, zl = ["value"], Tl = {
|
|
1671
1700
|
key: 0,
|
|
1672
1701
|
value: "",
|
|
1673
1702
|
disabled: "",
|
|
1674
1703
|
selected: ""
|
|
1675
|
-
},
|
|
1704
|
+
}, Bl = ["value"], jn = /* @__PURE__ */ _({
|
|
1676
1705
|
__name: "select",
|
|
1677
1706
|
props: {
|
|
1678
1707
|
options: {},
|
|
@@ -1683,43 +1712,43 @@ const ct = xe("SunIcon", [
|
|
|
1683
1712
|
emits: ["update:modelValue"],
|
|
1684
1713
|
setup(e, { expose: d, emit: l }) {
|
|
1685
1714
|
console.log(e.placeholder);
|
|
1686
|
-
const
|
|
1687
|
-
const y =
|
|
1688
|
-
|
|
1715
|
+
const i = l, o = h(null), u = (r) => {
|
|
1716
|
+
const y = r.target;
|
|
1717
|
+
i("update:modelValue", y.value);
|
|
1689
1718
|
};
|
|
1690
1719
|
return d({
|
|
1691
1720
|
focusInput: () => {
|
|
1692
|
-
var
|
|
1693
|
-
console.log("select.vue: focusInput method called."), (
|
|
1721
|
+
var r;
|
|
1722
|
+
console.log("select.vue: focusInput method called."), (r = o.value) == null || r.focus();
|
|
1694
1723
|
}
|
|
1695
1724
|
// You can expose other properties or methods here if needed by the parent
|
|
1696
1725
|
// e.g., the current value: modelValue
|
|
1697
|
-
}), (
|
|
1698
|
-
e.label ? (
|
|
1699
|
-
n("span",
|
|
1726
|
+
}), (r, y) => (a(), s("div", Cl, [
|
|
1727
|
+
e.label ? (a(), s("label", Il, [
|
|
1728
|
+
n("span", Ml, L(e.label), 1)
|
|
1700
1729
|
])) : O("", !0),
|
|
1701
1730
|
n("select", {
|
|
1702
1731
|
ref_key: "selectElement",
|
|
1703
|
-
ref:
|
|
1732
|
+
ref: o,
|
|
1704
1733
|
class: "rounded-md w-full select-bordered select",
|
|
1705
1734
|
value: e.modelValue,
|
|
1706
1735
|
onChange: u
|
|
1707
1736
|
}, [
|
|
1708
|
-
e.placeholder ? (
|
|
1709
|
-
(
|
|
1737
|
+
e.placeholder ? (a(), s("option", Tl, L(e.placeholder), 1)) : O("", !0),
|
|
1738
|
+
(a(!0), s(U, null, G(e.options, (M) => (a(), s("option", {
|
|
1710
1739
|
key: M.value,
|
|
1711
1740
|
value: M.value
|
|
1712
|
-
}, L(M.text), 9,
|
|
1713
|
-
], 40,
|
|
1741
|
+
}, L(M.text), 9, Bl))), 128))
|
|
1742
|
+
], 40, zl)
|
|
1714
1743
|
]));
|
|
1715
1744
|
}
|
|
1716
|
-
}),
|
|
1745
|
+
}), Ol = {
|
|
1717
1746
|
key: 0,
|
|
1718
1747
|
class: "label"
|
|
1719
|
-
},
|
|
1748
|
+
}, Dl = { class: "label-text" }, Vl = ["onKeydown", "aria-expanded", "aria-activedescendant"], El = ["placeholder", "disabled"], Ll = {
|
|
1720
1749
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1721
1750
|
role: "listbox"
|
|
1722
|
-
},
|
|
1751
|
+
}, jl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Pl = ["onMousedown", "id", "aria-selected"], Pn = {
|
|
1723
1752
|
__name: "filterableSelect",
|
|
1724
1753
|
props: {
|
|
1725
1754
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1750,14 +1779,14 @@ const ct = xe("SunIcon", [
|
|
|
1750
1779
|
},
|
|
1751
1780
|
emits: ["update:modelValue", "select", "clear"],
|
|
1752
1781
|
setup(e, { expose: d, emit: l }) {
|
|
1753
|
-
const t = e,
|
|
1754
|
-
const D = (
|
|
1782
|
+
const t = e, i = l, o = Ye(), u = ee(() => {
|
|
1783
|
+
const D = (o.default ? o.default() : []).filter((x) => x.type !== Ge);
|
|
1755
1784
|
return console.log("hasDefaultSlotContent computed:", D.length > 0), D.length > 0;
|
|
1756
|
-
}), m = h(""),
|
|
1785
|
+
}), m = h(""), r = h(null), y = h(!1), M = h(null), R = h(null), k = h(null), c = h(null), E = () => {
|
|
1757
1786
|
y.value = !t.disabled;
|
|
1758
1787
|
}, C = () => {
|
|
1759
|
-
y.value = !1, c.value = null, u.value || (
|
|
1760
|
-
},
|
|
1788
|
+
y.value = !1, c.value = null, u.value || (r.value && m.value !== r.value.text ? m.value = r.value.text : r.value || (m.value = ""));
|
|
1789
|
+
}, W = () => {
|
|
1761
1790
|
y.value ? C() : E();
|
|
1762
1791
|
}, F = ee(() => {
|
|
1763
1792
|
const v = m.value ? m.value.toLowerCase() : "";
|
|
@@ -1765,14 +1794,14 @@ const ct = xe("SunIcon", [
|
|
|
1765
1794
|
(x) => x && x.text ? x.text.toLowerCase().includes(v) : ""
|
|
1766
1795
|
);
|
|
1767
1796
|
});
|
|
1768
|
-
|
|
1797
|
+
H(
|
|
1769
1798
|
() => t.modelValue,
|
|
1770
1799
|
(v, D) => {
|
|
1771
1800
|
if (v !== D && C(), v == null)
|
|
1772
|
-
|
|
1801
|
+
r.value = null, !y.value && !u.value && (m.value = "");
|
|
1773
1802
|
else {
|
|
1774
1803
|
const x = t.options.find((j) => j.value === v);
|
|
1775
|
-
x ? (
|
|
1804
|
+
x ? (r.value = x, !y.value && !u.value && (m.value = x.text)) : (r.value = null, !y.value && !u.value && (m.value = ""));
|
|
1776
1805
|
}
|
|
1777
1806
|
},
|
|
1778
1807
|
{ immediate: !0 }
|
|
@@ -1785,7 +1814,7 @@ const ct = xe("SunIcon", [
|
|
|
1785
1814
|
R.value && !R.value.contains(document.activeElement) && C();
|
|
1786
1815
|
}, 100);
|
|
1787
1816
|
};
|
|
1788
|
-
|
|
1817
|
+
H(y, (v) => {
|
|
1789
1818
|
v ? setTimeout(() => {
|
|
1790
1819
|
document.addEventListener("click", K);
|
|
1791
1820
|
}, 0) : document.removeEventListener("click", K);
|
|
@@ -1794,10 +1823,10 @@ const ct = xe("SunIcon", [
|
|
|
1794
1823
|
});
|
|
1795
1824
|
const le = () => {
|
|
1796
1825
|
if (t.disabled) return;
|
|
1797
|
-
const v =
|
|
1798
|
-
|
|
1826
|
+
const v = r.value;
|
|
1827
|
+
i("update:modelValue", null), v && i("clear", v);
|
|
1799
1828
|
}, f = (v) => {
|
|
1800
|
-
|
|
1829
|
+
r.value = v, u.value || (m.value = v.text), i("update:modelValue", v.value), i("select", v), C();
|
|
1801
1830
|
}, b = () => {
|
|
1802
1831
|
F.value.length > 0 && f(F.value[0]);
|
|
1803
1832
|
}, g = () => {
|
|
@@ -1832,20 +1861,20 @@ const ct = xe("SunIcon", [
|
|
|
1832
1861
|
});
|
|
1833
1862
|
}
|
|
1834
1863
|
};
|
|
1835
|
-
return
|
|
1836
|
-
v ? (window.addEventListener("keydown", S), !u.value && !m.value &&
|
|
1864
|
+
return H(y, (v) => {
|
|
1865
|
+
v ? (window.addEventListener("keydown", S), !u.value && !m.value && r.value && (m.value = r.value.text)) : window.removeEventListener("keydown", S);
|
|
1837
1866
|
}), Ee(() => {
|
|
1838
1867
|
document.removeEventListener("click", K), window.removeEventListener("keydown", S);
|
|
1839
1868
|
}), d({
|
|
1840
1869
|
isDropdownOpen: y,
|
|
1841
1870
|
// Expose state
|
|
1842
|
-
selectedItem:
|
|
1871
|
+
selectedItem: r,
|
|
1843
1872
|
// Expose selected item
|
|
1844
1873
|
openDropdown: E,
|
|
1845
1874
|
// Expose method to open
|
|
1846
1875
|
closeDropdown: C,
|
|
1847
1876
|
// Expose method to close
|
|
1848
|
-
toggleDropdown:
|
|
1877
|
+
toggleDropdown: W,
|
|
1849
1878
|
// Expose method to toggle
|
|
1850
1879
|
selectItem: f,
|
|
1851
1880
|
// Expose method to select an item programmatically
|
|
@@ -1853,21 +1882,21 @@ const ct = xe("SunIcon", [
|
|
|
1853
1882
|
// Expose filter text (useful if parent controls filtering)
|
|
1854
1883
|
hasDefaultSlotContent: u
|
|
1855
1884
|
// Expose to know if the default slot is used
|
|
1856
|
-
}), (v, D) => (
|
|
1885
|
+
}), (v, D) => (a(), s("div", {
|
|
1857
1886
|
class: "relative w-full max-w-xs form-control",
|
|
1858
1887
|
ref_key: "componentRoot",
|
|
1859
1888
|
ref: R
|
|
1860
1889
|
}, [
|
|
1861
|
-
e.label ? (
|
|
1862
|
-
n("span",
|
|
1890
|
+
e.label ? (a(), s("label", Ol, [
|
|
1891
|
+
n("span", Dl, L(e.label), 1)
|
|
1863
1892
|
])) : O("", !0),
|
|
1864
1893
|
n("div", {
|
|
1865
1894
|
class: z(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !u.value, select: !u.value }]),
|
|
1866
1895
|
style: we(
|
|
1867
|
-
|
|
1896
|
+
r.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1868
1897
|
),
|
|
1869
1898
|
tabindex: "0",
|
|
1870
|
-
onClick: D[1] || (D[1] = (x) => u.value ?
|
|
1899
|
+
onClick: D[1] || (D[1] = (x) => u.value ? W() : E()),
|
|
1871
1900
|
onKeydown: [
|
|
1872
1901
|
pe(re(b, ["prevent"]), ["enter"]),
|
|
1873
1902
|
pe(re(b, ["prevent"]), ["space"])
|
|
@@ -1882,7 +1911,7 @@ const ct = xe("SunIcon", [
|
|
|
1882
1911
|
ref: k
|
|
1883
1912
|
}, [
|
|
1884
1913
|
V(v.$slots, "default", {}, () => [
|
|
1885
|
-
u.value ? O("", !0) : Se((
|
|
1914
|
+
u.value ? O("", !0) : Se((a(), s("input", {
|
|
1886
1915
|
key: 0,
|
|
1887
1916
|
type: "text",
|
|
1888
1917
|
placeholder: e.placeholder,
|
|
@@ -1894,50 +1923,50 @@ const ct = xe("SunIcon", [
|
|
|
1894
1923
|
onInput: g,
|
|
1895
1924
|
tabindex: "-1",
|
|
1896
1925
|
disabled: t.disabled
|
|
1897
|
-
}, null, 40,
|
|
1926
|
+
}, null, 40, El)), [
|
|
1898
1927
|
[Ne, m.value]
|
|
1899
1928
|
])
|
|
1900
1929
|
]),
|
|
1901
|
-
|
|
1930
|
+
r.value && !e.disabled ? (a(), ve(se(ut), {
|
|
1902
1931
|
key: 0,
|
|
1903
1932
|
size: 20,
|
|
1904
1933
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1905
1934
|
onClick: re(le, ["stop"])
|
|
1906
1935
|
})) : O("", !0),
|
|
1907
|
-
u.value && !
|
|
1936
|
+
u.value && !r.value ? (a(), ve(se(rt), {
|
|
1908
1937
|
key: 1,
|
|
1909
1938
|
class: z([{ "rotate-180": y.value }, "mx-2"]),
|
|
1910
1939
|
size: 20
|
|
1911
1940
|
}, null, 8, ["class"])) : O("", !0)
|
|
1912
|
-
], 46,
|
|
1913
|
-
Se(n("div",
|
|
1914
|
-
n("ul",
|
|
1915
|
-
(
|
|
1941
|
+
], 46, Vl),
|
|
1942
|
+
Se(n("div", Ll, [
|
|
1943
|
+
n("ul", jl, [
|
|
1944
|
+
(a(!0), s(U, null, G(F.value, (x, j) => (a(), s("li", {
|
|
1916
1945
|
key: x.value,
|
|
1917
1946
|
onMousedown: re((A) => f(x), ["prevent"]),
|
|
1918
1947
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1919
1948
|
id: "option-" + j,
|
|
1920
1949
|
role: "option",
|
|
1921
|
-
"aria-selected":
|
|
1950
|
+
"aria-selected": r.value && r.value.value === x.value
|
|
1922
1951
|
}, [
|
|
1923
1952
|
n("a", null, L(x.text), 1)
|
|
1924
|
-
], 40,
|
|
1953
|
+
], 40, Pl))), 128))
|
|
1925
1954
|
])
|
|
1926
1955
|
], 512), [
|
|
1927
1956
|
[Je, y.value && F.value.length > 0]
|
|
1928
1957
|
])
|
|
1929
1958
|
], 512));
|
|
1930
1959
|
}
|
|
1931
|
-
},
|
|
1960
|
+
}, Al = { class: "w-full max-w-xs form-control" }, Rl = {
|
|
1932
1961
|
key: 0,
|
|
1933
1962
|
class: "label"
|
|
1934
|
-
},
|
|
1963
|
+
}, Nl = { class: "label-text" }, _l = ["type", "placeholder", "disabled", "value"], Fl = {
|
|
1935
1964
|
key: 1,
|
|
1936
1965
|
class: "label"
|
|
1937
|
-
},
|
|
1966
|
+
}, Hl = { class: "label-text-alt text-error validator-hint" }, ql = {
|
|
1938
1967
|
key: 2,
|
|
1939
1968
|
class: "label"
|
|
1940
|
-
},
|
|
1969
|
+
}, Ul = { class: "label-text-alt text-success validator-hint" }, An = /* @__PURE__ */ _({
|
|
1941
1970
|
__name: "inputField",
|
|
1942
1971
|
props: {
|
|
1943
1972
|
modelValue: { default: "" },
|
|
@@ -1954,38 +1983,38 @@ const ct = xe("SunIcon", [
|
|
|
1954
1983
|
},
|
|
1955
1984
|
emits: ["update:modelValue", "validate"],
|
|
1956
1985
|
setup(e, { expose: d, emit: l }) {
|
|
1957
|
-
const t = e,
|
|
1958
|
-
var
|
|
1986
|
+
const t = e, i = l, o = h(null), u = h(!1), m = h(""), r = ee(() => {
|
|
1987
|
+
var W, F, K, Q;
|
|
1959
1988
|
let c = !0, E = "";
|
|
1960
1989
|
const C = t.modelValue;
|
|
1961
|
-
return (
|
|
1962
|
-
}), y = ee(() => u.value && !
|
|
1990
|
+
return (W = t.rules) != null && W.required && (C == null || C === "") && (c = !1, E = "This field is required."), c && ((F = t.rules) == null ? void 0 : F.minLength) !== void 0 && typeof C == "string" && C.length < t.rules.minLength && (c = !1, E = `Must be at least ${t.rules.minLength} characters.`), c && ((K = t.rules) == null ? void 0 : K.maxLength) !== void 0 && typeof C == "string" && C.length > t.rules.maxLength && (c = !1, E = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((Q = t.rules) != null && Q.email) && typeof C == "string" && C && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C) || (c = !1, E = "Please enter a valid email address.")), m.value = E, i("validate", c), c;
|
|
1991
|
+
}), y = ee(() => u.value && !r.value), M = (c) => {
|
|
1963
1992
|
const E = c.target;
|
|
1964
|
-
|
|
1993
|
+
i("update:modelValue", E.value), u.value && r.value;
|
|
1965
1994
|
}, R = () => {
|
|
1966
|
-
u.value = !0,
|
|
1995
|
+
u.value = !0, r.value;
|
|
1967
1996
|
};
|
|
1968
|
-
return
|
|
1997
|
+
return H(
|
|
1969
1998
|
() => t.modelValue,
|
|
1970
1999
|
() => {
|
|
1971
|
-
u.value &&
|
|
2000
|
+
u.value && r.value;
|
|
1972
2001
|
}
|
|
1973
2002
|
), d({
|
|
1974
2003
|
focusInput: () => {
|
|
1975
2004
|
var c;
|
|
1976
|
-
console.log("inputField.vue: focusInput method called."), (c =
|
|
2005
|
+
console.log("inputField.vue: focusInput method called."), (c = o.value) == null || c.focus();
|
|
1977
2006
|
},
|
|
1978
|
-
isValid:
|
|
2007
|
+
isValid: r,
|
|
1979
2008
|
isTouched: u,
|
|
1980
2009
|
errorMessage: m
|
|
1981
|
-
}), (c, E) => (
|
|
1982
|
-
e.label ? (
|
|
1983
|
-
n("span",
|
|
2010
|
+
}), (c, E) => (a(), s("div", Al, [
|
|
2011
|
+
e.label ? (a(), s("label", Rl, [
|
|
2012
|
+
n("span", Nl, L(e.label), 1)
|
|
1984
2013
|
])) : O("", !0),
|
|
1985
2014
|
V(c.$slots, "default"),
|
|
1986
2015
|
n("input", {
|
|
1987
2016
|
ref_key: "inputElement",
|
|
1988
|
-
ref:
|
|
2017
|
+
ref: o,
|
|
1989
2018
|
type: e.type,
|
|
1990
2019
|
placeholder: e.placeholder,
|
|
1991
2020
|
disabled: t.disabled,
|
|
@@ -2001,33 +2030,33 @@ const ct = xe("SunIcon", [
|
|
|
2001
2030
|
"input-ghost": e.style === "ghost",
|
|
2002
2031
|
// Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
|
|
2003
2032
|
// This ensures validation feedback overrides base colors.
|
|
2004
|
-
"input-neutral": e.color === "neutral" && !y.value && !(
|
|
2005
|
-
"input-primary": e.color === "primary" && !y.value && !(
|
|
2006
|
-
"input-secondary": e.color === "secondary" && !y.value && !(
|
|
2007
|
-
"input-accent": e.color === "accent" && !y.value && !(
|
|
2008
|
-
"input-info": e.color === "info" && !y.value && !(
|
|
2009
|
-
"input-success": e.color === "success" && !y.value && !(
|
|
2033
|
+
"input-neutral": e.color === "neutral" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2034
|
+
"input-primary": e.color === "primary" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2035
|
+
"input-secondary": e.color === "secondary" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2036
|
+
"input-accent": e.color === "accent" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2037
|
+
"input-info": e.color === "info" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2038
|
+
"input-success": e.color === "success" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2010
2039
|
// Color success applies only if not in error or validation success state
|
|
2011
|
-
"input-warning": e.color === "warning" && !y.value && !(
|
|
2040
|
+
"input-warning": e.color === "warning" && !y.value && !(r.value && u.value && e.needsValidation),
|
|
2012
2041
|
// Validation state classes - These take precedence visually via conditions or CSS specificity.
|
|
2013
2042
|
"input-error": y.value,
|
|
2014
2043
|
// Apply error style if validation fails
|
|
2015
|
-
"input-success-validation":
|
|
2044
|
+
"input-success-validation": r.value && u.value && !y.value && e.needsValidation
|
|
2016
2045
|
// 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.
|
|
2017
2046
|
}
|
|
2018
2047
|
]]),
|
|
2019
2048
|
value: e.modelValue,
|
|
2020
2049
|
onInput: M,
|
|
2021
2050
|
onBlur: R
|
|
2022
|
-
}, null, 42,
|
|
2023
|
-
y.value ? (
|
|
2024
|
-
n("span",
|
|
2025
|
-
])) :
|
|
2026
|
-
n("span",
|
|
2051
|
+
}, null, 42, _l),
|
|
2052
|
+
y.value ? (a(), s("div", Fl, [
|
|
2053
|
+
n("span", Hl, L(m.value), 1)
|
|
2054
|
+
])) : r.value && u.value && e.successMessage ? (a(), s("div", ql, [
|
|
2055
|
+
n("span", Ul, L(e.successMessage), 1)
|
|
2027
2056
|
])) : O("", !0)
|
|
2028
2057
|
]));
|
|
2029
2058
|
}
|
|
2030
|
-
}),
|
|
2059
|
+
}), Rn = /* @__PURE__ */ _({
|
|
2031
2060
|
__name: "loader",
|
|
2032
2061
|
props: {
|
|
2033
2062
|
loading: { type: Boolean, default: !0 },
|
|
@@ -2037,12 +2066,12 @@ const ct = xe("SunIcon", [
|
|
|
2037
2066
|
},
|
|
2038
2067
|
setup(e) {
|
|
2039
2068
|
const d = e, l = h(d.loading);
|
|
2040
|
-
return
|
|
2069
|
+
return H(
|
|
2041
2070
|
() => d.loading,
|
|
2042
2071
|
(t) => {
|
|
2043
2072
|
l.value = t;
|
|
2044
2073
|
}
|
|
2045
|
-
), (t,
|
|
2074
|
+
), (t, i) => l.value ? (a(), s("span", {
|
|
2046
2075
|
key: 0,
|
|
2047
2076
|
class: z(["loading", [
|
|
2048
2077
|
{ "loading-xs": e.size === "xs" },
|
|
@@ -2069,13 +2098,13 @@ const ct = xe("SunIcon", [
|
|
|
2069
2098
|
]])
|
|
2070
2099
|
}, null, 2)) : O("", !0);
|
|
2071
2100
|
}
|
|
2072
|
-
}),
|
|
2101
|
+
}), Wl = { class: "container flex flex-col sm:flex-row" }, Kl = { class: "footer-title" }, Xl = ["href"], Yl = {
|
|
2073
2102
|
key: 0,
|
|
2074
2103
|
class: "sm:hidden w-full"
|
|
2075
|
-
},
|
|
2104
|
+
}, Gl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Jl = {
|
|
2076
2105
|
tabindex: "0",
|
|
2077
2106
|
class: "collapse collapse-plus w-full"
|
|
2078
|
-
},
|
|
2107
|
+
}, Zl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Ql = { class: "collapse-content flex w-full text-sm" }, en = { class: "flex flex-col gap-2.5" }, tn = { class: "w-full" }, ln = ["href"], nn = { class: "sm:w-1/4" }, Nn = /* @__PURE__ */ _({
|
|
2079
2108
|
__name: "footer",
|
|
2080
2109
|
props: {
|
|
2081
2110
|
items: {},
|
|
@@ -2086,38 +2115,38 @@ const ct = xe("SunIcon", [
|
|
|
2086
2115
|
},
|
|
2087
2116
|
setup(e) {
|
|
2088
2117
|
const d = e;
|
|
2089
|
-
return (l, t) => (
|
|
2118
|
+
return (l, t) => (a(), s("div", {
|
|
2090
2119
|
class: z(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2091
2120
|
}, [
|
|
2092
|
-
n("footer",
|
|
2121
|
+
n("footer", Wl, [
|
|
2093
2122
|
n("div", {
|
|
2094
2123
|
class: z(["footer sm:footer-horizontal sm:w-3/4", [{ "sm:grid-rows-1": d.rows === 1 }, { "sm:grid-rows-2": d.rows === 2 }, { "sm:grid-rows-3": d.rows === 3 }]])
|
|
2095
2124
|
}, [
|
|
2096
|
-
(
|
|
2125
|
+
(a(!0), s(U, null, G(d.items, (i) => (a(), s("nav", {
|
|
2097
2126
|
class: z([{ "hidden sm:grid w-max": e.collapseOnMobile }])
|
|
2098
2127
|
}, [
|
|
2099
|
-
n("h6",
|
|
2100
|
-
(
|
|
2128
|
+
n("h6", Kl, L(i.title), 1),
|
|
2129
|
+
(a(!0), s(U, null, G(i.items, (o) => (a(), s("a", {
|
|
2101
2130
|
class: "link link-hover",
|
|
2102
|
-
href:
|
|
2103
|
-
}, L(
|
|
2131
|
+
href: o.link
|
|
2132
|
+
}, L(o.text), 9, Xl))), 256))
|
|
2104
2133
|
], 2))), 256)),
|
|
2105
2134
|
n("nav", {
|
|
2106
2135
|
class: z(["empty:hidden", [{ "hidden sm:grid": e.collapseOnMobile }]])
|
|
2107
2136
|
}, [
|
|
2108
2137
|
V(l.$slots, "extra-row")
|
|
2109
2138
|
], 2),
|
|
2110
|
-
e.collapseOnMobile ? (
|
|
2111
|
-
(
|
|
2112
|
-
n("div",
|
|
2113
|
-
n("div",
|
|
2114
|
-
n("div",
|
|
2115
|
-
n("ul",
|
|
2116
|
-
(
|
|
2139
|
+
e.collapseOnMobile ? (a(), s("nav", Yl, [
|
|
2140
|
+
(a(!0), s(U, null, G(d.items, (i) => (a(), s("ul", Gl, [
|
|
2141
|
+
n("div", Jl, [
|
|
2142
|
+
n("div", Zl, L(i.title), 1),
|
|
2143
|
+
n("div", Ql, [
|
|
2144
|
+
n("ul", en, [
|
|
2145
|
+
(a(!0), s(U, null, G(i.items, (o) => (a(), s("li", tn, [
|
|
2117
2146
|
n("a", {
|
|
2118
2147
|
class: "w-full font-medium link link-hover",
|
|
2119
|
-
href:
|
|
2120
|
-
}, L(
|
|
2148
|
+
href: o.link
|
|
2149
|
+
}, L(o.text), 9, ln)
|
|
2121
2150
|
]))), 256))
|
|
2122
2151
|
])
|
|
2123
2152
|
])
|
|
@@ -2125,18 +2154,18 @@ const ct = xe("SunIcon", [
|
|
|
2125
2154
|
]))), 256))
|
|
2126
2155
|
])) : O("", !0)
|
|
2127
2156
|
], 2),
|
|
2128
|
-
n("aside",
|
|
2157
|
+
n("aside", nn, [
|
|
2129
2158
|
V(l.$slots, "default")
|
|
2130
2159
|
])
|
|
2131
2160
|
])
|
|
2132
2161
|
], 2));
|
|
2133
2162
|
}
|
|
2134
|
-
}),
|
|
2135
|
-
function
|
|
2136
|
-
return
|
|
2137
|
-
n("div",
|
|
2163
|
+
}), an = {}, on = { class: "min-h-40 container hero" }, sn = { class: "px-0! text-center hero-content" }, rn = { class: "mt-9 text-4xl" };
|
|
2164
|
+
function un(e, d) {
|
|
2165
|
+
return a(), s("div", on, [
|
|
2166
|
+
n("div", sn, [
|
|
2138
2167
|
n("div", null, [
|
|
2139
|
-
n("h1",
|
|
2168
|
+
n("h1", rn, [
|
|
2140
2169
|
V(e.$slots, "title", {}, () => [
|
|
2141
2170
|
d[0] || (d[0] = Re("hero title", -1))
|
|
2142
2171
|
])
|
|
@@ -2151,7 +2180,7 @@ function tn(e, d) {
|
|
|
2151
2180
|
])
|
|
2152
2181
|
]);
|
|
2153
2182
|
}
|
|
2154
|
-
const
|
|
2183
|
+
const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-row place-content-center gap-4 categories" }, cn = ["onClick"], Fn = /* @__PURE__ */ _({
|
|
2155
2184
|
__name: "categoryNavigation",
|
|
2156
2185
|
props: {
|
|
2157
2186
|
searchOptions: {},
|
|
@@ -2160,52 +2189,52 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2160
2189
|
emits: ["update:currentCategory"],
|
|
2161
2190
|
setup(e, { emit: d }) {
|
|
2162
2191
|
const l = e, t = d;
|
|
2163
|
-
function
|
|
2164
|
-
t("update:currentCategory",
|
|
2192
|
+
function i(o) {
|
|
2193
|
+
t("update:currentCategory", o);
|
|
2165
2194
|
}
|
|
2166
|
-
return (
|
|
2167
|
-
(
|
|
2195
|
+
return (o, u) => (a(), s("div", dn, [
|
|
2196
|
+
(a(!0), s(U, null, G(l.searchOptions, (m) => (a(), s("div", {
|
|
2168
2197
|
key: m.category
|
|
2169
2198
|
}, [
|
|
2170
2199
|
n("button", {
|
|
2171
|
-
onClick: (
|
|
2200
|
+
onClick: (r) => i(m.category),
|
|
2172
2201
|
class: z(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === m.category }])
|
|
2173
|
-
}, L(m.category), 11,
|
|
2202
|
+
}, L(m.category), 11, cn)
|
|
2174
2203
|
]))), 128))
|
|
2175
2204
|
]));
|
|
2176
2205
|
}
|
|
2177
|
-
}),
|
|
2206
|
+
}), vn = { class: "md:flex hidden navbar-start" }, fn = { class: "md:flex justify-center items-center hidden navbar-center" }, mn = { class: "md:flex hidden navbar-end" }, pn = { class: "navbar-bottom md:flex hidden" }, hn = /* @__PURE__ */ _({
|
|
2178
2207
|
__name: "navigationBar",
|
|
2179
2208
|
props: {
|
|
2180
2209
|
isCollapsed: { type: Boolean, default: !0 }
|
|
2181
2210
|
},
|
|
2182
2211
|
setup(e) {
|
|
2183
2212
|
const d = e;
|
|
2184
|
-
return (l, t) => (
|
|
2213
|
+
return (l, t) => (a(), s("nav", {
|
|
2185
2214
|
class: z(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", d.isCollapsed ? "collapsed" : ""])
|
|
2186
2215
|
}, [
|
|
2187
|
-
n("div",
|
|
2216
|
+
n("div", vn, [
|
|
2188
2217
|
V(l.$slots, "start", {}, void 0, !0)
|
|
2189
2218
|
]),
|
|
2190
|
-
n("div",
|
|
2219
|
+
n("div", fn, [
|
|
2191
2220
|
V(l.$slots, "center", {}, void 0, !0)
|
|
2192
2221
|
]),
|
|
2193
|
-
n("div",
|
|
2222
|
+
n("div", mn, [
|
|
2194
2223
|
V(l.$slots, "end", {}, void 0, !0)
|
|
2195
2224
|
]),
|
|
2196
|
-
n("div",
|
|
2225
|
+
n("div", pn, [
|
|
2197
2226
|
V(l.$slots, "bottom", {}, void 0, !0)
|
|
2198
2227
|
])
|
|
2199
2228
|
], 2));
|
|
2200
2229
|
}
|
|
2201
|
-
}),
|
|
2230
|
+
}), Hn = /* @__PURE__ */ ge(hn, [["__scopeId", "data-v-8ddb2b45"]]), gn = {
|
|
2202
2231
|
key: 0,
|
|
2203
2232
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
2204
|
-
},
|
|
2233
|
+
}, yn = ["onClick", "aria-selected"], bn = {
|
|
2205
2234
|
key: 0,
|
|
2206
2235
|
role: "tabpanel",
|
|
2207
2236
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
2208
|
-
},
|
|
2237
|
+
}, wn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, qn = /* @__PURE__ */ _({
|
|
2209
2238
|
__name: "tab",
|
|
2210
2239
|
props: {
|
|
2211
2240
|
items: {},
|
|
@@ -2215,30 +2244,30 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2215
2244
|
},
|
|
2216
2245
|
emits: ["tab-changed"],
|
|
2217
2246
|
setup(e, { emit: d }) {
|
|
2218
|
-
const l = e, t = h(l.items[0]),
|
|
2219
|
-
function
|
|
2220
|
-
t.value =
|
|
2247
|
+
const l = e, t = h(l.items[0]), i = d;
|
|
2248
|
+
function o(r) {
|
|
2249
|
+
t.value = r, i("tab-changed", r);
|
|
2221
2250
|
}
|
|
2222
2251
|
function u() {
|
|
2223
2252
|
const y = (l.items.indexOf(t.value) + 1) % l.items.length;
|
|
2224
|
-
|
|
2253
|
+
o(l.items[y]);
|
|
2225
2254
|
}
|
|
2226
2255
|
function m() {
|
|
2227
2256
|
const y = (l.items.indexOf(t.value) - 1 + l.items.length) % l.items.length;
|
|
2228
|
-
|
|
2257
|
+
o(l.items[y]);
|
|
2229
2258
|
}
|
|
2230
2259
|
return he(() => {
|
|
2231
|
-
l.items &&
|
|
2260
|
+
l.items && o(l.items[0]);
|
|
2232
2261
|
}), Ve(() => {
|
|
2233
2262
|
l.rotateTabsAfter && l.rotateTabsAfter > 0 && setInterval(() => {
|
|
2234
2263
|
u();
|
|
2235
2264
|
}, l.rotateTabsAfter * 1e3);
|
|
2236
|
-
}), (
|
|
2265
|
+
}), (r, y) => (a(), s(U, null, [
|
|
2237
2266
|
n("div", {
|
|
2238
2267
|
role: "tablist",
|
|
2239
2268
|
class: z(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2240
2269
|
}, [
|
|
2241
|
-
e.withControlls ? (
|
|
2270
|
+
e.withControlls ? (a(), s("div", gn, [
|
|
2242
2271
|
n("button", {
|
|
2243
2272
|
onClick: y[0] || (y[0] = (M) => m()),
|
|
2244
2273
|
class: "cursor-pointer"
|
|
@@ -2248,21 +2277,21 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2248
2277
|
class: "text-primary cursor-pointer"
|
|
2249
2278
|
}, "Next")
|
|
2250
2279
|
])) : O("", !0),
|
|
2251
|
-
(
|
|
2280
|
+
(a(!0), s(U, null, G(e.items, (M) => (a(), s(U, null, [
|
|
2252
2281
|
n("a", {
|
|
2253
2282
|
type: "button",
|
|
2254
2283
|
role: "tab",
|
|
2255
2284
|
class: z(["min-w-max tab", M === t.value ? "bg-primary text-base-100" : ""]),
|
|
2256
|
-
onClick: (R) =>
|
|
2285
|
+
onClick: (R) => o(M),
|
|
2257
2286
|
"aria-selected": t.value == M
|
|
2258
|
-
}, L(M), 11,
|
|
2259
|
-
e.buttonOnlyMode ? O("", !0) : (
|
|
2260
|
-
V(
|
|
2287
|
+
}, L(M), 11, yn),
|
|
2288
|
+
e.buttonOnlyMode ? O("", !0) : (a(), s("div", bn, [
|
|
2289
|
+
V(r.$slots, `${M}-tab`)
|
|
2261
2290
|
]))
|
|
2262
2291
|
], 64))), 256))
|
|
2263
2292
|
], 2),
|
|
2264
|
-
n("div",
|
|
2265
|
-
V(
|
|
2293
|
+
n("div", wn, [
|
|
2294
|
+
V(r.$slots, "default")
|
|
2266
2295
|
])
|
|
2267
2296
|
], 64));
|
|
2268
2297
|
}
|
|
@@ -2270,28 +2299,28 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2270
2299
|
typeof document > "u" && (globalThis.document = {});
|
|
2271
2300
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2272
2301
|
export {
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2302
|
+
Mn as Accordion,
|
|
2303
|
+
Vn as AdvancedSearch,
|
|
2304
|
+
zn as Avatar,
|
|
2305
|
+
Tn as Badge,
|
|
2306
|
+
kn as ButtonComponent,
|
|
2307
|
+
Bn as Card,
|
|
2308
|
+
On as Carousel,
|
|
2309
|
+
Dn as CarouselItem,
|
|
2310
|
+
Fn as CategoryNavigation,
|
|
2311
|
+
yl as DatetimePicker,
|
|
2312
|
+
$n as Dropdown,
|
|
2313
|
+
Pn as FilterableSelect,
|
|
2314
|
+
Nn as Footer,
|
|
2315
|
+
_n as Hero,
|
|
2316
|
+
An as InputField,
|
|
2317
|
+
Rn as Loader,
|
|
2318
|
+
Sn as Modal,
|
|
2319
|
+
Hn as NavigationBar,
|
|
2320
|
+
En as Rating,
|
|
2321
|
+
jn as Selector,
|
|
2322
|
+
Cn as Swap,
|
|
2323
|
+
qn as Tab,
|
|
2324
|
+
Ln as TagInput,
|
|
2325
|
+
In as ThemeController
|
|
2297
2326
|
};
|