manolis-ui 0.0.13 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/manolis-ui.js +384 -381
- package/dist/manolis-ui.umd.cjs +4 -4
- package/dist/style.css +33 -3
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as M, computed as S, createElementBlock as
|
|
1
|
+
import { defineComponent as M, computed as S, createElementBlock as o, openBlock as n, normalizeClass as k, createCommentVNode as x, renderSlot as w, createTextVNode as ne, createElementVNode as t, Fragment as y, renderList as _, toDisplayString as b, ref as $, h as te, onMounted as E, watch as N, withDirectives as U, createVNode as W, isRef as Te, vModelCheckbox as Me, unref as V, defineAsyncComponent as Be, onBeforeUnmount as Ie, normalizeStyle as Oe, createBlock as re, resolveDynamicComponent as ie, mergeProps as ue, nextTick as de, onUnmounted as pe, vModelSelect as R, vModelText as ee } from "vue";
|
|
2
2
|
const Ue = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, fn = /* @__PURE__ */ M({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -28,7 +28,7 @@ const Ue = {
|
|
|
28
28
|
default:
|
|
29
29
|
return "";
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), a = S(() => {
|
|
32
32
|
switch (u.type) {
|
|
33
33
|
case "neutral":
|
|
34
34
|
return "btn-neutral";
|
|
@@ -63,11 +63,11 @@ const Ue = {
|
|
|
63
63
|
return "";
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
return (
|
|
67
|
-
class:
|
|
66
|
+
return (s, p) => (n(), o("button", {
|
|
67
|
+
class: k(["btn", { "btn-outline": u.outlined }, { "btn-active": u.active }, a.value, e.value, i.value])
|
|
68
68
|
}, [
|
|
69
|
-
|
|
70
|
-
w(
|
|
69
|
+
s.loading ? (n(), o("span", Ue)) : x("", !0),
|
|
70
|
+
w(s.$slots, "default", {}, () => [
|
|
71
71
|
p[0] || (p[0] = ne("Submit"))
|
|
72
72
|
])
|
|
73
73
|
], 2));
|
|
@@ -75,7 +75,7 @@ const Ue = {
|
|
|
75
75
|
}), Ve = {
|
|
76
76
|
tabindex: "0",
|
|
77
77
|
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"
|
|
78
|
-
}, Ae = ["href"],
|
|
78
|
+
}, Ae = ["href"], vn = /* @__PURE__ */ M({
|
|
79
79
|
__name: "dropdown",
|
|
80
80
|
props: {
|
|
81
81
|
items: {},
|
|
@@ -93,18 +93,18 @@ const Ue = {
|
|
|
93
93
|
}, e = {
|
|
94
94
|
start: "",
|
|
95
95
|
end: "dropdown-end"
|
|
96
|
-
},
|
|
97
|
-
return (i,
|
|
98
|
-
class:
|
|
96
|
+
}, a = d;
|
|
97
|
+
return (i, s) => (n(), o("div", {
|
|
98
|
+
class: k(["dropdown", u[a.position], e[a.floatPosition], { "dropdown-open": a.forceOpen }, { "dropdown-hover": a.openOnHover }])
|
|
99
99
|
}, [
|
|
100
100
|
w(i.$slots, "default", {
|
|
101
101
|
tabindex: "0",
|
|
102
102
|
role: "button"
|
|
103
103
|
}, () => [
|
|
104
|
-
|
|
104
|
+
s[0] || (s[0] = t("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
105
105
|
]),
|
|
106
106
|
t("ul", Ve, [
|
|
107
|
-
(n(!0),
|
|
107
|
+
(n(!0), o(y, null, _(i.items, (p) => (n(), o("li", null, [
|
|
108
108
|
t("a", {
|
|
109
109
|
href: p.link
|
|
110
110
|
}, b(p.text), 9, Ae)
|
|
@@ -113,7 +113,7 @@ const Ue = {
|
|
|
113
113
|
])
|
|
114
114
|
], 2));
|
|
115
115
|
}
|
|
116
|
-
}), Pe = { class: "modal-box" },
|
|
116
|
+
}), Pe = { class: "modal-box" }, Re = { class: "modal-action" }, gn = /* @__PURE__ */ M({
|
|
117
117
|
__name: "modal",
|
|
118
118
|
props: {
|
|
119
119
|
position: { default: "center" },
|
|
@@ -124,14 +124,14 @@ const Ue = {
|
|
|
124
124
|
top: "modal-top",
|
|
125
125
|
bottom: "modal-bottom",
|
|
126
126
|
center: "modal-middle"
|
|
127
|
-
},
|
|
127
|
+
}, a = $(null), i = () => {
|
|
128
128
|
var p;
|
|
129
|
-
(p =
|
|
130
|
-
},
|
|
129
|
+
(p = a.value) == null || p.showModal();
|
|
130
|
+
}, s = () => {
|
|
131
131
|
var p;
|
|
132
|
-
(p =
|
|
132
|
+
(p = a.value) == null || p.close();
|
|
133
133
|
};
|
|
134
|
-
return (p, h) => (n(),
|
|
134
|
+
return (p, h) => (n(), o(y, null, [
|
|
135
135
|
t("span", {
|
|
136
136
|
class: "w-fit cursor-pointer",
|
|
137
137
|
onClick: i
|
|
@@ -142,17 +142,17 @@ const Ue = {
|
|
|
142
142
|
]),
|
|
143
143
|
t("dialog", {
|
|
144
144
|
ref_key: "dialog",
|
|
145
|
-
ref:
|
|
146
|
-
class:
|
|
145
|
+
ref: a,
|
|
146
|
+
class: k(["modal", e[u.position]])
|
|
147
147
|
}, [
|
|
148
148
|
t("div", Pe, [
|
|
149
149
|
w(p.$slots, "default"),
|
|
150
|
-
t("div",
|
|
150
|
+
t("div", Re, [
|
|
151
151
|
w(p.$slots, "actions"),
|
|
152
152
|
t("form", {
|
|
153
153
|
method: "dialog",
|
|
154
|
-
onSubmit:
|
|
155
|
-
class:
|
|
154
|
+
onSubmit: s,
|
|
155
|
+
class: k(p.withBackdrop ? "modal-backdrop" : "")
|
|
156
156
|
}, [
|
|
157
157
|
w(p.$slots, "close-button", {}, () => [
|
|
158
158
|
h[1] || (h[1] = t("button", { class: "btn" }, "Close", -1))
|
|
@@ -163,21 +163,21 @@ const Ue = {
|
|
|
163
163
|
], 2)
|
|
164
164
|
], 64));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), je = { class: "swap-on" }, ze = { class: "swap-off" }, hn = /* @__PURE__ */ M({
|
|
167
167
|
__name: "swap",
|
|
168
168
|
props: {
|
|
169
169
|
effect: {}
|
|
170
170
|
},
|
|
171
171
|
setup(d) {
|
|
172
172
|
const u = d;
|
|
173
|
-
return (e,
|
|
174
|
-
class:
|
|
173
|
+
return (e, a) => (n(), o("label", {
|
|
174
|
+
class: k(["swap", u.effect ? `swap-${e.effect}` : ""])
|
|
175
175
|
}, [
|
|
176
|
-
|
|
177
|
-
t("div",
|
|
176
|
+
a[0] || (a[0] = t("input", { type: "checkbox" }, null, -1)),
|
|
177
|
+
t("div", je, [
|
|
178
178
|
w(e.$slots, "on")
|
|
179
179
|
]),
|
|
180
|
-
t("div",
|
|
180
|
+
t("div", ze, [
|
|
181
181
|
w(e.$slots, "off")
|
|
182
182
|
])
|
|
183
183
|
], 2));
|
|
@@ -189,7 +189,7 @@ const Ue = {
|
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
191
|
*/
|
|
192
|
-
const
|
|
192
|
+
const Ne = (d) => d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
193
193
|
/**
|
|
194
194
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
195
195
|
*
|
|
@@ -213,18 +213,18 @@ var J = {
|
|
|
213
213
|
* This source code is licensed under the ISC license.
|
|
214
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
215
|
*/
|
|
216
|
-
const
|
|
216
|
+
const Ee = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: a, iconNode: i, name: s, class: p, ...h }, { slots: v }) => te(
|
|
217
217
|
"svg",
|
|
218
218
|
{
|
|
219
219
|
...J,
|
|
220
220
|
width: d || J.width,
|
|
221
221
|
height: d || J.height,
|
|
222
|
-
stroke:
|
|
222
|
+
stroke: a || J.stroke,
|
|
223
223
|
"stroke-width": e ? Number(u) * 24 / Number(d) : u,
|
|
224
|
-
class: ["lucide", `lucide-${
|
|
224
|
+
class: ["lucide", `lucide-${Ne(s ?? "icon")}`],
|
|
225
225
|
...h
|
|
226
226
|
},
|
|
227
|
-
[...i.map((m) => te(...m)), ...
|
|
227
|
+
[...i.map((m) => te(...m)), ...v.default ? [v.default()] : []]
|
|
228
228
|
);
|
|
229
229
|
/**
|
|
230
230
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -232,14 +232,14 @@ const Le = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: s, ico
|
|
|
232
232
|
* This source code is licensed under the ISC license.
|
|
233
233
|
* See the LICENSE file in the root directory of this source tree.
|
|
234
234
|
*/
|
|
235
|
-
const ae = (d, u) => (e, { slots:
|
|
236
|
-
|
|
235
|
+
const ae = (d, u) => (e, { slots: a }) => te(
|
|
236
|
+
Ee,
|
|
237
237
|
{
|
|
238
238
|
...e,
|
|
239
239
|
iconNode: u,
|
|
240
240
|
name: d
|
|
241
241
|
},
|
|
242
|
-
|
|
242
|
+
a
|
|
243
243
|
);
|
|
244
244
|
/**
|
|
245
245
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -247,7 +247,7 @@ const ae = (d, u) => (e, { slots: s }) => te(
|
|
|
247
247
|
* This source code is licensed under the ISC license.
|
|
248
248
|
* See the LICENSE file in the root directory of this source tree.
|
|
249
249
|
*/
|
|
250
|
-
const
|
|
250
|
+
const Le = ae("MoonIcon", [
|
|
251
251
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
252
252
|
]);
|
|
253
253
|
/**
|
|
@@ -277,16 +277,16 @@ const Fe = ae("SunIcon", [
|
|
|
277
277
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
278
278
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
279
279
|
]), He = (d, u) => {
|
|
280
|
-
const e =
|
|
281
|
-
return
|
|
280
|
+
const e = $(null);
|
|
281
|
+
return E(() => {
|
|
282
282
|
if (typeof window < "u") {
|
|
283
|
-
const
|
|
284
|
-
e.value =
|
|
283
|
+
const a = window.localStorage.getItem(d);
|
|
284
|
+
e.value = a ? JSON.parse(a) : u;
|
|
285
285
|
}
|
|
286
|
-
}),
|
|
287
|
-
typeof window < "u" && window.localStorage.setItem(d, JSON.stringify(
|
|
286
|
+
}), N(e, (a) => {
|
|
287
|
+
typeof window < "u" && window.localStorage.setItem(d, JSON.stringify(a));
|
|
288
288
|
}), e;
|
|
289
|
-
}, qe = { class: "swap-rotate swap" }, Ye = ["true-value", "false-value"],
|
|
289
|
+
}, qe = { class: "swap-rotate swap" }, Ye = ["true-value", "false-value"], bn = /* @__PURE__ */ M({
|
|
290
290
|
__name: "theme-controller",
|
|
291
291
|
props: {
|
|
292
292
|
lightTheme: { default: "light" },
|
|
@@ -294,26 +294,26 @@ const Fe = ae("SunIcon", [
|
|
|
294
294
|
},
|
|
295
295
|
setup(d) {
|
|
296
296
|
const u = d, e = He("theme", u.lightTheme);
|
|
297
|
-
function
|
|
297
|
+
function a(i) {
|
|
298
298
|
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", i);
|
|
299
299
|
}
|
|
300
|
-
return
|
|
301
|
-
|
|
302
|
-
}), (i,
|
|
300
|
+
return E(() => a(e.value ? e.value : "")), N(e, (i) => {
|
|
301
|
+
a(i);
|
|
302
|
+
}), (i, s) => (n(), o("label", qe, [
|
|
303
303
|
U(t("input", {
|
|
304
304
|
type: "checkbox",
|
|
305
305
|
class: "theme-controller",
|
|
306
|
-
"onUpdate:modelValue":
|
|
306
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => Te(e) ? e.value = p : null),
|
|
307
307
|
"true-value": u.lightTheme,
|
|
308
308
|
"false-value": u.darkTheme
|
|
309
309
|
}, null, 8, Ye), [
|
|
310
310
|
[Me, V(e)]
|
|
311
311
|
]),
|
|
312
312
|
W(V(Fe), { class: "swap-off fill-current" }),
|
|
313
|
-
W(V(
|
|
313
|
+
W(V(Le), { class: "swap-on fill-current" })
|
|
314
314
|
]));
|
|
315
315
|
}
|
|
316
|
-
}), Je = ["name"], We = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"],
|
|
316
|
+
}), Je = ["name"], We = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"], yn = /* @__PURE__ */ M({
|
|
317
317
|
__name: "accordion",
|
|
318
318
|
props: {
|
|
319
319
|
name: {},
|
|
@@ -323,9 +323,9 @@ const Fe = ae("SunIcon", [
|
|
|
323
323
|
},
|
|
324
324
|
setup(d) {
|
|
325
325
|
const u = d;
|
|
326
|
-
return (e,
|
|
327
|
-
class:
|
|
328
|
-
key:
|
|
326
|
+
return (e, a) => (n(!0), o(y, null, _(u.items, (i, s) => (n(), o("div", {
|
|
327
|
+
class: k(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
328
|
+
key: s
|
|
329
329
|
}, [
|
|
330
330
|
t("input", {
|
|
331
331
|
type: "radio",
|
|
@@ -340,40 +340,41 @@ const Fe = ae("SunIcon", [
|
|
|
340
340
|
])
|
|
341
341
|
], 2))), 128));
|
|
342
342
|
}
|
|
343
|
-
}), Ke = {
|
|
344
|
-
key: 0,
|
|
345
|
-
class: "rounded-sm"
|
|
346
|
-
}, Ge = ["src"], Qe = {
|
|
347
|
-
key: 1,
|
|
348
|
-
class: "flex justify-center bg-neutral p-[25%] rounded-full w-16 text-neutral-content text-center"
|
|
349
|
-
}, et = { class: "text-xl" }, kn = /* @__PURE__ */ M({
|
|
343
|
+
}), Ke = ["src"], Ge = { class: "text-xl" }, wn = /* @__PURE__ */ M({
|
|
350
344
|
__name: "avatar",
|
|
351
345
|
props: {
|
|
352
346
|
image: {},
|
|
353
347
|
onlineStatus: { default: "none" },
|
|
354
|
-
initials: {}
|
|
348
|
+
initials: {},
|
|
349
|
+
fullyRounded: { type: Boolean, default: !1 }
|
|
355
350
|
},
|
|
356
351
|
setup(d) {
|
|
357
|
-
const u = d, e =
|
|
358
|
-
return
|
|
352
|
+
const u = d, e = $(u.onlineStatus);
|
|
353
|
+
return N(
|
|
359
354
|
() => u.onlineStatus,
|
|
360
|
-
(
|
|
361
|
-
|
|
355
|
+
(a) => {
|
|
356
|
+
a && (e.value = a);
|
|
362
357
|
}
|
|
363
|
-
), (
|
|
364
|
-
class:
|
|
358
|
+
), (a, i) => (n(), o("div", {
|
|
359
|
+
class: k(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
|
|
365
360
|
}, [
|
|
366
|
-
|
|
361
|
+
a.image ? (n(), o("div", {
|
|
362
|
+
key: 0,
|
|
363
|
+
class: k(["rounded", [{ "rounded-full": a.fullyRounded }, { rounded: !a.fullyRounded }]])
|
|
364
|
+
}, [
|
|
367
365
|
t("img", {
|
|
368
|
-
src:
|
|
366
|
+
src: a.image,
|
|
369
367
|
class: "w-full h-full"
|
|
370
|
-
}, null, 8,
|
|
371
|
-
])) : (n(),
|
|
372
|
-
|
|
373
|
-
|
|
368
|
+
}, null, 8, Ke)
|
|
369
|
+
], 2)) : (n(), o("div", {
|
|
370
|
+
key: 1,
|
|
371
|
+
class: k(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": a.fullyRounded }, { rounded: !a.fullyRounded }]])
|
|
372
|
+
}, [
|
|
373
|
+
t("p", Ge, b(a.initials), 1)
|
|
374
|
+
], 2))
|
|
374
375
|
], 2));
|
|
375
376
|
}
|
|
376
|
-
}),
|
|
377
|
+
}), kn = /* @__PURE__ */ M({
|
|
377
378
|
__name: "badge",
|
|
378
379
|
props: {
|
|
379
380
|
color: { default: "neutral" },
|
|
@@ -386,7 +387,7 @@ const Fe = ae("SunIcon", [
|
|
|
386
387
|
small: "badge-sm",
|
|
387
388
|
medium: "badge-md",
|
|
388
389
|
large: "badge-lg"
|
|
389
|
-
},
|
|
390
|
+
}, a = {
|
|
390
391
|
neutral: "badge-neutral",
|
|
391
392
|
primary: "badge-primary",
|
|
392
393
|
secondary: "badge-secondary",
|
|
@@ -397,28 +398,28 @@ const Fe = ae("SunIcon", [
|
|
|
397
398
|
warning: "badge-warning",
|
|
398
399
|
error: "badge-error"
|
|
399
400
|
};
|
|
400
|
-
return (i,
|
|
401
|
-
class:
|
|
401
|
+
return (i, s) => (n(), o("span", {
|
|
402
|
+
class: k(["badge", e[u.size], a[u.color], { "badge-outline": u.outline }])
|
|
402
403
|
}, [
|
|
403
404
|
w(i.$slots, "default")
|
|
404
405
|
], 2));
|
|
405
406
|
}
|
|
406
|
-
}),
|
|
407
|
+
}), Qe = ["src", "alt"], et = {
|
|
407
408
|
key: 1,
|
|
408
409
|
class: "w-full h-32 skeleton"
|
|
409
|
-
},
|
|
410
|
+
}, tt = {
|
|
410
411
|
key: 0,
|
|
411
412
|
class: "card-body"
|
|
412
|
-
},
|
|
413
|
+
}, nt = {
|
|
413
414
|
key: 0,
|
|
414
415
|
class: "group-hover:text-primary text-left text-lg cursor-pointer card-title"
|
|
415
|
-
},
|
|
416
|
+
}, at = {
|
|
416
417
|
key: 1,
|
|
417
418
|
class: "text-left"
|
|
418
|
-
},
|
|
419
|
+
}, ot = { class: "flex-col flex-nowrap mt-auto card-actions" }, lt = {
|
|
419
420
|
key: 1,
|
|
420
421
|
class: "card-body"
|
|
421
|
-
},
|
|
422
|
+
}, _n = /* @__PURE__ */ M({
|
|
422
423
|
__name: "card",
|
|
423
424
|
props: {
|
|
424
425
|
imgUrl: { default: "" },
|
|
@@ -430,35 +431,35 @@ const Fe = ae("SunIcon", [
|
|
|
430
431
|
class: { default: "" }
|
|
431
432
|
},
|
|
432
433
|
setup(d) {
|
|
433
|
-
const u = d, e =
|
|
434
|
-
return
|
|
434
|
+
const u = d, e = $(u.outlined);
|
|
435
|
+
return N(
|
|
435
436
|
() => u.outlined,
|
|
436
|
-
(
|
|
437
|
-
e.value =
|
|
437
|
+
(a) => {
|
|
438
|
+
e.value = a;
|
|
438
439
|
}
|
|
439
|
-
), (
|
|
440
|
-
class:
|
|
440
|
+
), (a, i) => (n(), o("div", {
|
|
441
|
+
class: k(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group", e.value ? "border-4 border-primary" : ""])
|
|
441
442
|
}, [
|
|
442
443
|
t("figure", null, [
|
|
443
|
-
|
|
444
|
+
a.imgUrl || a.imgUrl && !a.loading ? (n(), o("img", {
|
|
444
445
|
key: 0,
|
|
445
|
-
src:
|
|
446
|
-
alt:
|
|
447
|
-
class:
|
|
448
|
-
hidden:
|
|
446
|
+
src: a.imgUrl,
|
|
447
|
+
alt: a.alt,
|
|
448
|
+
class: k(["rounded-sm w-full h-44 object-cover", {
|
|
449
|
+
hidden: a.loading
|
|
449
450
|
}])
|
|
450
|
-
}, null, 10,
|
|
451
|
-
|
|
451
|
+
}, null, 10, Qe)) : x("", !0),
|
|
452
|
+
a.loading && a.imgUrl ? (n(), o("div", et)) : x("", !0)
|
|
452
453
|
]),
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
w(
|
|
456
|
-
|
|
457
|
-
t("div",
|
|
458
|
-
w(
|
|
454
|
+
a.loading ? x("", !0) : (n(), o("div", tt, [
|
|
455
|
+
a.title ? (n(), o("h2", nt, b(a.title), 1)) : x("", !0),
|
|
456
|
+
w(a.$slots, "details"),
|
|
457
|
+
a.description ? (n(), o("p", at, b(a.description), 1)) : x("", !0),
|
|
458
|
+
t("div", ot, [
|
|
459
|
+
w(a.$slots, "actions")
|
|
459
460
|
])
|
|
460
461
|
])),
|
|
461
|
-
|
|
462
|
+
a.loading ? (n(), o("div", lt, i[0] || (i[0] = [
|
|
462
463
|
t("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
463
464
|
t("div", { class: "w-28 h-4 skeleton" }),
|
|
464
465
|
t("div", { class: "w-full h-4 skeleton" }),
|
|
@@ -467,10 +468,10 @@ const Fe = ae("SunIcon", [
|
|
|
467
468
|
]))) : x("", !0)
|
|
468
469
|
], 2));
|
|
469
470
|
}
|
|
470
|
-
}),
|
|
471
|
+
}), st = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, rt = ["onClick"], it = { class: "text-sm" }, ut = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, dt = { class: "hidden" }, ct = {
|
|
471
472
|
id: "advancedSearchMobile",
|
|
472
473
|
class: "modal"
|
|
473
|
-
},
|
|
474
|
+
}, pt = { class: "modal-box" }, mt = { class: "font-bold text-lg" }, ft = ["checked"], vt = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, gt = { class: "text-sm" }, ht = { class: "flex place-content-center p-0 collapse-content" }, bt = /* @__PURE__ */ M({
|
|
474
475
|
__name: "advancedSearch",
|
|
475
476
|
props: {
|
|
476
477
|
searchOptions: {},
|
|
@@ -478,13 +479,13 @@ const Fe = ae("SunIcon", [
|
|
|
478
479
|
},
|
|
479
480
|
emits: ["search", "update:search-data"],
|
|
480
481
|
setup(d, { emit: u }) {
|
|
481
|
-
const e = d,
|
|
482
|
-
datetime: Be(() => Promise.resolve().then(() =>
|
|
483
|
-
}, p =
|
|
482
|
+
const e = d, a = u, i = $(null), s = {
|
|
483
|
+
datetime: Be(() => Promise.resolve().then(() => Lt))
|
|
484
|
+
}, p = $({}), h = $({ left: "0px", top: "0px", transform: "translateX(0%)" }), v = $(null);
|
|
484
485
|
function m(C, I) {
|
|
485
486
|
var B, O, g;
|
|
486
487
|
if ((B = i.value) != null && B.name) {
|
|
487
|
-
|
|
488
|
+
a("update:search-data", {
|
|
488
489
|
tab: i.value.name,
|
|
489
490
|
data: C
|
|
490
491
|
});
|
|
@@ -492,17 +493,17 @@ const Fe = ae("SunIcon", [
|
|
|
492
493
|
}
|
|
493
494
|
if (e.searchOptions) {
|
|
494
495
|
let D = (g = (O = e.searchOptions) == null ? void 0 : O.find((A) => (A == null ? void 0 : A.category) === e.currentCategory)) == null ? void 0 : g.tabs[I];
|
|
495
|
-
D !== void 0 && (D.value = C,
|
|
496
|
+
D !== void 0 && (D.value = C, a("update:search-data", {
|
|
496
497
|
tab: D == null ? void 0 : D.name,
|
|
497
498
|
data: D == null ? void 0 : D.value
|
|
498
499
|
}));
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
502
|
+
function f() {
|
|
503
|
+
a("search");
|
|
503
504
|
}
|
|
504
|
-
async function
|
|
505
|
-
|
|
505
|
+
async function j(C) {
|
|
506
|
+
v.value && !v.value.contains(C.target) && (await de(), i.value = null);
|
|
506
507
|
}
|
|
507
508
|
async function Z() {
|
|
508
509
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
@@ -515,7 +516,7 @@ const Fe = ae("SunIcon", [
|
|
|
515
516
|
i.value = C, await de();
|
|
516
517
|
const I = p.value[C.name];
|
|
517
518
|
if (I) {
|
|
518
|
-
const O = I.getBoundingClientRect(), g = ((B =
|
|
519
|
+
const O = I.getBoundingClientRect(), g = ((B = v.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
|
|
519
520
|
window.innerWidth > 768 ? h.value = {
|
|
520
521
|
left: `${O.left + O.width / 2 - g.left}px`,
|
|
521
522
|
top: `${O.bottom - g.top}px`,
|
|
@@ -529,49 +530,49 @@ const Fe = ae("SunIcon", [
|
|
|
529
530
|
} else
|
|
530
531
|
console.error("Tab element not found for:", C.name);
|
|
531
532
|
}
|
|
532
|
-
return
|
|
533
|
-
document.addEventListener("click",
|
|
533
|
+
return E(() => {
|
|
534
|
+
document.addEventListener("click", j);
|
|
534
535
|
}), Ie(() => {
|
|
535
|
-
document.removeEventListener("click",
|
|
536
|
+
document.removeEventListener("click", j);
|
|
536
537
|
}), (C, I) => {
|
|
537
538
|
var B, O;
|
|
538
|
-
return n(),
|
|
539
|
+
return n(), o(y, null, [
|
|
539
540
|
t("div", {
|
|
540
541
|
ref_key: "searchContainer",
|
|
541
|
-
ref:
|
|
542
|
+
ref: v,
|
|
542
543
|
class: "w-full"
|
|
543
544
|
}, [
|
|
544
545
|
t("div", {
|
|
545
546
|
class: "group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",
|
|
546
547
|
onClick: Z
|
|
547
548
|
}, [
|
|
548
|
-
t("div",
|
|
549
|
-
(n(!0),
|
|
549
|
+
t("div", st, [
|
|
550
|
+
(n(!0), o(y, null, _(((B = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : B.tabs) || [], (g) => {
|
|
550
551
|
var D;
|
|
551
|
-
return n(),
|
|
552
|
+
return n(), o("button", {
|
|
552
553
|
key: g.name,
|
|
553
554
|
onClick: (A) => K(g),
|
|
554
|
-
class:
|
|
555
|
+
class: k([{ "tab-active": ((D = i.value) == null ? void 0 : D.name) === g.name }, "group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),
|
|
555
556
|
ref_for: !0,
|
|
556
557
|
ref: (A) => p.value[g.name] = A
|
|
557
558
|
}, [
|
|
558
|
-
t("p",
|
|
559
|
-
t("p",
|
|
560
|
-
], 10,
|
|
559
|
+
t("p", it, b(g.name), 1),
|
|
560
|
+
t("p", ut, b(g.description), 1)
|
|
561
|
+
], 10, rt);
|
|
561
562
|
}), 128))
|
|
562
563
|
]),
|
|
563
|
-
i.value ? (n(),
|
|
564
|
+
i.value ? (n(), o("div", {
|
|
564
565
|
key: 0,
|
|
565
566
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
566
567
|
style: Oe(h.value)
|
|
567
568
|
}, [
|
|
568
|
-
(n(), re(ie(
|
|
569
|
+
(n(), re(ie(s[i.value.type]), ue(i.value.props ? i.value.props : null, { onUpdated: m }), null, 16))
|
|
569
570
|
], 4)) : x("", !0),
|
|
570
571
|
t("button", {
|
|
571
572
|
title: "search",
|
|
572
573
|
type: "submit",
|
|
573
574
|
class: "ml-1 btn btn-primary btn-square",
|
|
574
|
-
onClick:
|
|
575
|
+
onClick: f
|
|
575
576
|
}, [
|
|
576
577
|
W(V(ce), {
|
|
577
578
|
size: 24,
|
|
@@ -579,7 +580,7 @@ const Fe = ae("SunIcon", [
|
|
|
579
580
|
})
|
|
580
581
|
])
|
|
581
582
|
]),
|
|
582
|
-
t("div",
|
|
583
|
+
t("div", dt, [
|
|
583
584
|
t("button", {
|
|
584
585
|
title: "search",
|
|
585
586
|
onClick: I[0] || (I[0] = () => {
|
|
@@ -592,12 +593,12 @@ const Fe = ae("SunIcon", [
|
|
|
592
593
|
])
|
|
593
594
|
])
|
|
594
595
|
], 512),
|
|
595
|
-
t("dialog",
|
|
596
|
-
t("div",
|
|
596
|
+
t("dialog", ct, [
|
|
597
|
+
t("div", pt, [
|
|
597
598
|
w(C.$slots, "additionalForMobile", {}, () => [
|
|
598
|
-
t("h3",
|
|
599
|
+
t("h3", mt, b(C.currentCategory), 1)
|
|
599
600
|
], !0),
|
|
600
|
-
(n(!0),
|
|
601
|
+
(n(!0), o(y, null, _(((O = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : O.tabs) || [], (g, D) => (n(), o("div", {
|
|
601
602
|
class: "bg-base-200 my-4 collapse",
|
|
602
603
|
key: g.name
|
|
603
604
|
}, [
|
|
@@ -605,14 +606,14 @@ const Fe = ae("SunIcon", [
|
|
|
605
606
|
type: "radio",
|
|
606
607
|
name: "my-accordion-1",
|
|
607
608
|
checked: D === 0
|
|
608
|
-
}, null, 8,
|
|
609
|
-
t("div",
|
|
609
|
+
}, null, 8, ft),
|
|
610
|
+
t("div", vt, [
|
|
610
611
|
ne(b(g.name) + " ", 1),
|
|
611
|
-
t("p",
|
|
612
|
+
t("p", gt, b(g.description), 1)
|
|
612
613
|
]),
|
|
613
|
-
t("div",
|
|
614
|
+
t("div", ht, [
|
|
614
615
|
I[1] || (I[1] = t("br", null, null, -1)),
|
|
615
|
-
(n(), re(ie(
|
|
616
|
+
(n(), re(ie(s[g.type]), ue({ ref_for: !0 }, g.props || {}, {
|
|
616
617
|
onUpdated: (A) => m(A, D)
|
|
617
618
|
}), null, 16, ["onUpdated"]))
|
|
618
619
|
])
|
|
@@ -621,7 +622,7 @@ const Fe = ae("SunIcon", [
|
|
|
621
622
|
t("form", { method: "dialog" }, [
|
|
622
623
|
t("button", {
|
|
623
624
|
class: "btn btn-primary",
|
|
624
|
-
onClick:
|
|
625
|
+
onClick: f
|
|
625
626
|
}, "Close and Search")
|
|
626
627
|
])
|
|
627
628
|
])
|
|
@@ -632,34 +633,34 @@ const Fe = ae("SunIcon", [
|
|
|
632
633
|
}
|
|
633
634
|
}), X = (d, u) => {
|
|
634
635
|
const e = d.__vccOpts || d;
|
|
635
|
-
for (const [
|
|
636
|
-
e[
|
|
636
|
+
for (const [a, i] of u)
|
|
637
|
+
e[a] = i;
|
|
637
638
|
return e;
|
|
638
|
-
},
|
|
639
|
+
}, $n = /* @__PURE__ */ X(bt, [["__scopeId", "data-v-08fa37eb"]]), yt = ["placeholder", "value", "id"], wt = ["id"], kt = {
|
|
639
640
|
key: 0,
|
|
640
641
|
class: "flex justify-between items-center place-content-center mb-4"
|
|
641
|
-
},
|
|
642
|
+
}, _t = ["value"], $t = ["value"], Ct = {
|
|
642
643
|
key: 1,
|
|
643
644
|
class: "gap-2 grid grid-cols-7"
|
|
644
|
-
},
|
|
645
|
+
}, St = ["onClick"], xt = {
|
|
645
646
|
key: 2,
|
|
646
647
|
class: "mt-4 lg:w-80"
|
|
647
|
-
},
|
|
648
|
+
}, Dt = {
|
|
648
649
|
key: 0,
|
|
649
650
|
class: "mb-2 font-bold text-lg"
|
|
650
|
-
},
|
|
651
|
+
}, Tt = { key: 1 }, Mt = {
|
|
651
652
|
key: 1,
|
|
652
653
|
class: "flex gap-4"
|
|
653
|
-
},
|
|
654
|
+
}, Bt = ["value"], It = ["value"], Ot = {
|
|
654
655
|
key: 2,
|
|
655
656
|
class: "flex flex-col gap-4"
|
|
656
|
-
},
|
|
657
|
+
}, Ut = {
|
|
657
658
|
key: 1,
|
|
658
659
|
class: "flex gap-2"
|
|
659
|
-
},
|
|
660
|
+
}, Vt = ["value"], At = ["value"], Pt = {
|
|
660
661
|
key: 1,
|
|
661
662
|
class: "flex gap-2"
|
|
662
|
-
},
|
|
663
|
+
}, Rt = ["value"], jt = ["value"], zt = { class: "flex gap-2 mt-4" }, Nt = {
|
|
663
664
|
__name: "datetimePicker",
|
|
664
665
|
props: {
|
|
665
666
|
mode: {
|
|
@@ -692,93 +693,93 @@ const Fe = ae("SunIcon", [
|
|
|
692
693
|
emits: ["updated"],
|
|
693
694
|
setup(d, { emit: u }) {
|
|
694
695
|
const e = d;
|
|
695
|
-
|
|
696
|
-
r ? (
|
|
696
|
+
N(() => e.range, (r) => {
|
|
697
|
+
r ? (s.value = { start: null, end: null }, p.value = { start: null, end: null }) : (s.value = null, p.value = null);
|
|
697
698
|
});
|
|
698
|
-
const
|
|
699
|
-
S(() => new Date(
|
|
700
|
-
const B = S(() => q.indexOf(h.value)), O = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], g = S(() => new Date(
|
|
701
|
-
const r = new Date(
|
|
702
|
-
return Array.from({ length: r }, (c,
|
|
699
|
+
const a = u, i = $(!1), s = $(e.range ? { start: null, end: null } : null), p = $(e.range ? { start: null, end: null } : null), h = $((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), v = $((/* @__PURE__ */ new Date()).getFullYear()), m = $(e.range ? { start: 0, end: 0 } : 0), f = $(e.range ? { start: 0, end: 0 } : 0), j = $(null), Z = S(() => `${e.id}-input`), K = S(() => `${e.id}-popup`), C = S(() => e.mode === "date" || e.mode === "datetime"), I = S(() => e.mode === "time" || e.mode === "datetime");
|
|
700
|
+
S(() => new Date(v.value, B.value));
|
|
701
|
+
const B = S(() => q.indexOf(h.value)), O = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], g = S(() => new Date(v.value, B.value).getDay()), D = S(() => {
|
|
702
|
+
const r = new Date(v.value, B.value + 1, 0).getDate();
|
|
703
|
+
return Array.from({ length: r }, (c, l) => new Date(v.value, B.value, l + 1));
|
|
703
704
|
}), A = S(() => Array.from({ length: g.value }, (r, c) => c)), G = Array.from({ length: 24 }, (r, c) => c), Q = Array.from({ length: 60 }, (r, c) => c), H = S(
|
|
704
705
|
() => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
705
706
|
navigator.userAgent
|
|
706
707
|
)
|
|
707
708
|
), q = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], me = S(() => {
|
|
708
709
|
const r = (/* @__PURE__ */ new Date()).getFullYear();
|
|
709
|
-
return Array.from({ length: 100 }, (c,
|
|
710
|
-
}),
|
|
711
|
-
if (!C.value || !
|
|
712
|
-
if (e.range &&
|
|
713
|
-
const r =
|
|
710
|
+
return Array.from({ length: 100 }, (c, l) => r - 50 + l);
|
|
711
|
+
}), fe = S(() => {
|
|
712
|
+
if (!C.value || !s.value) return "";
|
|
713
|
+
if (e.range && s.value.start && s.value.end) {
|
|
714
|
+
const r = s.value.start.toLocaleDateString("en-US"), c = s.value.end.toLocaleDateString("en-US");
|
|
714
715
|
return `${r} - ${c}`;
|
|
715
716
|
}
|
|
716
|
-
return !e.range &&
|
|
717
|
-
}), L = (r) => r instanceof Date ? r : new Date(r),
|
|
717
|
+
return !e.range && s.value ? s.value.toLocaleDateString("en-US") : "";
|
|
718
|
+
}), L = (r) => r instanceof Date ? r : new Date(r), z = (r) => r instanceof Date && !isNaN(r), ve = S(() => {
|
|
718
719
|
if (!I.value) return "";
|
|
719
720
|
const r = (c) => {
|
|
720
|
-
var Y,
|
|
721
|
-
const
|
|
722
|
-
return H.value ? ((
|
|
721
|
+
var Y, F, se;
|
|
722
|
+
const l = ((Y = m.value) == null ? void 0 : Y[c]) ?? m.value, P = ((F = f.value) == null ? void 0 : F[c]) ?? f.value;
|
|
723
|
+
return H.value ? ((se = p.value) == null ? void 0 : se[c]) ?? p.value : `${l.toString().padStart(2, "0")}:${P.toString().padStart(2, "0")}`;
|
|
723
724
|
};
|
|
724
725
|
return e.range ? `${r("start")} - ${r("end")}` : r();
|
|
725
726
|
}), ge = S(() => {
|
|
726
|
-
const r =
|
|
727
|
+
const r = fe.value, c = ve.value;
|
|
727
728
|
return `${r} ${c}`.trim();
|
|
728
729
|
}), he = () => i.value = !i.value, oe = () => {
|
|
729
730
|
T(), be();
|
|
730
731
|
}, be = () => i.value = !1, ye = () => {
|
|
731
|
-
|
|
732
|
+
s.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, T();
|
|
732
733
|
}, we = (r) => {
|
|
733
|
-
e.range ?
|
|
734
|
-
},
|
|
734
|
+
e.range ? s.value.start && s.value.end ? s.value = { start: r, end: null } : s.value.start ? s.value.end = r : s.value.start = r : s.value = r, T();
|
|
735
|
+
}, ke = (r) => (r = L(r), e.range ? s.value.start && z(s.value.start) && r.getTime() === s.value.start.getTime() || s.value.end && z(s.value.end) && r.getTime() === s.value.end.getTime() : z(s.value) && r.getTime() === s.value.getTime()), _e = (r) => {
|
|
735
736
|
r = L(r);
|
|
736
737
|
const c = /* @__PURE__ */ new Date();
|
|
737
738
|
return r.getDate() === c.getDate() && r.getMonth() === c.getMonth() && r.getFullYear() === c.getFullYear();
|
|
738
|
-
}, $e = (r) => (r = L(r), e.range &&
|
|
739
|
-
if (r = L(r), e.range &&
|
|
740
|
-
const c =
|
|
741
|
-
return P > c && P <
|
|
739
|
+
}, $e = (r) => (r = L(r), e.range && z(s.value.start) && r.getTime() === s.value.start.getTime()), Ce = (r) => (r = L(r), e.range && z(s.value.end) && r.getTime() === s.value.end.getTime()), Se = (r) => {
|
|
740
|
+
if (r = L(r), e.range && z(s.value.start) && z(s.value.end)) {
|
|
741
|
+
const c = s.value.start.getTime(), l = s.value.end.getTime(), P = r.getTime();
|
|
742
|
+
return P > c && P < l;
|
|
742
743
|
}
|
|
743
744
|
return !1;
|
|
744
745
|
}, xe = () => {
|
|
745
746
|
let r = B.value - 1;
|
|
746
|
-
r < 0 && (r = 11,
|
|
747
|
+
r < 0 && (r = 11, v.value--), h.value = q[r], T();
|
|
747
748
|
}, De = () => {
|
|
748
749
|
let r = B.value + 1;
|
|
749
|
-
r > 11 && (r = 0,
|
|
750
|
-
},
|
|
751
|
-
|
|
750
|
+
r > 11 && (r = 0, v.value++), h.value = q[r], T();
|
|
751
|
+
}, le = (r) => {
|
|
752
|
+
j.value && !j.value.contains(r.target) && i.value == !0 && oe();
|
|
752
753
|
}, T = () => {
|
|
753
754
|
let r = {};
|
|
754
|
-
const c = (
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
return
|
|
755
|
+
const c = (l, P, Y) => {
|
|
756
|
+
l instanceof Date && !isNaN(l) || (l = /* @__PURE__ */ new Date());
|
|
757
|
+
const F = new Date(l);
|
|
758
|
+
return F.setUTCHours(P, Y, 0, 0), F.toISOString();
|
|
758
759
|
};
|
|
759
760
|
e.range ? (r.from = c(
|
|
760
|
-
|
|
761
|
+
s.value.start,
|
|
761
762
|
m.value.start,
|
|
762
|
-
|
|
763
|
+
f.value.start
|
|
763
764
|
), r.to = c(
|
|
764
|
-
|
|
765
|
+
s.value.end,
|
|
765
766
|
m.value.end,
|
|
766
|
-
|
|
767
|
+
f.value.end
|
|
767
768
|
)) : r = c(
|
|
768
|
-
|
|
769
|
+
s.value,
|
|
769
770
|
m.value,
|
|
770
|
-
|
|
771
|
-
),
|
|
771
|
+
f.value
|
|
772
|
+
), a("updated", r);
|
|
772
773
|
};
|
|
773
|
-
return
|
|
774
|
-
e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ?
|
|
774
|
+
return E(() => {
|
|
775
|
+
e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ? s.value = {
|
|
775
776
|
start: new Date(e.initialDate.start),
|
|
776
777
|
end: new Date(e.initialDate.end)
|
|
777
|
-
} : e.initialDate.start && (
|
|
778
|
-
}), e.popup &&
|
|
778
|
+
} : e.initialDate.start && (s.value = { start: new Date(e.initialDate.start) })), e.range ? (m.value.start = m.value.start ?? (/* @__PURE__ */ new Date()).getHours(), m.value.end = m.value.end ?? (/* @__PURE__ */ new Date()).getHours(), f.value.start = f.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), f.value.end = f.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (m.value = m.value ?? (/* @__PURE__ */ new Date()).getHours(), f.value = f.value ?? (/* @__PURE__ */ new Date()).getMinutes());
|
|
779
|
+
}), e.popup && E(() => document.addEventListener("click", le)), pe(() => document.removeEventListener("click", le)), (r, c) => (n(), o("div", {
|
|
779
780
|
class: "inline-block relative w-full lg:w-[360px]",
|
|
780
781
|
ref_key: "pickerContainer",
|
|
781
|
-
ref:
|
|
782
|
+
ref: j
|
|
782
783
|
}, [
|
|
783
784
|
t("div", {
|
|
784
785
|
class: "flex items-center gap-2 cursor-pointer",
|
|
@@ -792,16 +793,16 @@ const Fe = ae("SunIcon", [
|
|
|
792
793
|
value: ge.value,
|
|
793
794
|
readonly: "",
|
|
794
795
|
id: Z.value
|
|
795
|
-
}, null, 8,
|
|
796
|
+
}, null, 8, yt),
|
|
796
797
|
c[11] || (c[11] = t("button", { class: "btn btn-ghost" }, " 📅 ", -1))
|
|
797
798
|
], !0) : x("", !0)
|
|
798
799
|
]),
|
|
799
|
-
i.value || !d.popup ? (n(),
|
|
800
|
+
i.value || !d.popup ? (n(), o("div", {
|
|
800
801
|
key: 0,
|
|
801
|
-
class:
|
|
802
|
+
class: k(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: d.popup }]]),
|
|
802
803
|
id: K.value
|
|
803
804
|
}, [
|
|
804
|
-
C.value ? (n(),
|
|
805
|
+
C.value ? (n(), o("div", kt, [
|
|
805
806
|
t("button", {
|
|
806
807
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
807
808
|
onClick: xe
|
|
@@ -823,27 +824,27 @@ const Fe = ae("SunIcon", [
|
|
|
823
824
|
])),
|
|
824
825
|
U(t("select", {
|
|
825
826
|
class: "border-none w-fit select",
|
|
826
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
827
|
+
"onUpdate:modelValue": c[0] || (c[0] = (l) => h.value = l),
|
|
827
828
|
onChange: T
|
|
828
829
|
}, [
|
|
829
|
-
(n(),
|
|
830
|
+
(n(), o(y, null, _(q, (l, P) => t("option", {
|
|
830
831
|
key: P,
|
|
831
|
-
value:
|
|
832
|
-
}, b(
|
|
832
|
+
value: l
|
|
833
|
+
}, b(l), 9, _t)), 64))
|
|
833
834
|
], 544), [
|
|
834
|
-
[
|
|
835
|
+
[R, h.value]
|
|
835
836
|
]),
|
|
836
837
|
U(t("select", {
|
|
837
838
|
class: "border-none w-24 select",
|
|
838
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
839
|
+
"onUpdate:modelValue": c[1] || (c[1] = (l) => v.value = l),
|
|
839
840
|
onChange: T
|
|
840
841
|
}, [
|
|
841
|
-
(n(!0),
|
|
842
|
-
key:
|
|
843
|
-
value:
|
|
844
|
-
}, b(
|
|
842
|
+
(n(!0), o(y, null, _(me.value, (l) => (n(), o("option", {
|
|
843
|
+
key: l,
|
|
844
|
+
value: l
|
|
845
|
+
}, b(l), 9, $t))), 128))
|
|
845
846
|
], 544), [
|
|
846
|
-
[
|
|
847
|
+
[R, v.value]
|
|
847
848
|
]),
|
|
848
849
|
t("button", {
|
|
849
850
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
@@ -865,53 +866,53 @@ const Fe = ae("SunIcon", [
|
|
|
865
866
|
], -1)
|
|
866
867
|
]))
|
|
867
868
|
])) : x("", !0),
|
|
868
|
-
C.value ? (n(),
|
|
869
|
-
(n(),
|
|
870
|
-
key:
|
|
869
|
+
C.value ? (n(), o("div", Ct, [
|
|
870
|
+
(n(), o(y, null, _(O, (l) => t("div", {
|
|
871
|
+
key: l,
|
|
871
872
|
class: "text-center"
|
|
872
|
-
}, b(
|
|
873
|
-
(n(!0),
|
|
874
|
-
key:
|
|
873
|
+
}, b(l), 1)), 64)),
|
|
874
|
+
(n(!0), o(y, null, _(A.value, (l) => (n(), o("div", {
|
|
875
|
+
key: l,
|
|
875
876
|
class: "text-center"
|
|
876
877
|
}))), 128)),
|
|
877
|
-
(n(!0),
|
|
878
|
-
key:
|
|
879
|
-
class:
|
|
880
|
-
"bg-primary text-primary-content":
|
|
881
|
-
today:
|
|
882
|
-
"range-start bg-primary text-primary-content": $e(
|
|
883
|
-
"range-end bg-primary text-primary-content": Ce(
|
|
884
|
-
"in-range bg-primary/20 hover:bg-primary/10": Se(
|
|
878
|
+
(n(!0), o(y, null, _(D.value, (l) => (n(), o("div", {
|
|
879
|
+
key: l,
|
|
880
|
+
class: k(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
881
|
+
"bg-primary text-primary-content": ke(l),
|
|
882
|
+
today: _e(l),
|
|
883
|
+
"range-start bg-primary text-primary-content": $e(l),
|
|
884
|
+
"range-end bg-primary text-primary-content": Ce(l),
|
|
885
|
+
"in-range bg-primary/20 hover:bg-primary/10": Se(l)
|
|
885
886
|
}]),
|
|
886
|
-
onClick: (P) => we(
|
|
887
|
-
}, b(
|
|
887
|
+
onClick: (P) => we(l)
|
|
888
|
+
}, b(l.getDate()), 11, St))), 128))
|
|
888
889
|
])) : x("", !0),
|
|
889
|
-
I.value ? (n(),
|
|
890
|
-
e.range ? x("", !0) : (n(),
|
|
891
|
-
e.range ? (n(),
|
|
890
|
+
I.value ? (n(), o("div", xt, [
|
|
891
|
+
e.range ? x("", !0) : (n(), o("h3", Dt, "Select Time")),
|
|
892
|
+
e.range ? (n(), o("div", Ot, [
|
|
892
893
|
t("div", null, [
|
|
893
894
|
c[14] || (c[14] = t("p", { class: "font-bold" }, "Start Time", -1)),
|
|
894
|
-
H.value ? U((n(),
|
|
895
|
+
H.value ? U((n(), o("input", {
|
|
895
896
|
key: 0,
|
|
896
897
|
type: "time",
|
|
897
898
|
class: "input-bordered w-full input",
|
|
898
|
-
"onUpdate:modelValue": c[5] || (c[5] = (
|
|
899
|
+
"onUpdate:modelValue": c[5] || (c[5] = (l) => p.value.start = l),
|
|
899
900
|
onChange: T
|
|
900
901
|
}, null, 544)), [
|
|
901
902
|
[ee, p.value.start]
|
|
902
|
-
]) : (n(),
|
|
903
|
+
]) : (n(), o("div", Ut, [
|
|
903
904
|
U(t("select", {
|
|
904
905
|
class: "w-full select-bordered select",
|
|
905
|
-
"onUpdate:modelValue": c[6] || (c[6] = (
|
|
906
|
+
"onUpdate:modelValue": c[6] || (c[6] = (l) => m.value.start = l),
|
|
906
907
|
onChange: T
|
|
907
908
|
}, [
|
|
908
|
-
(n(!0),
|
|
909
|
-
key:
|
|
910
|
-
value:
|
|
911
|
-
}, b(
|
|
909
|
+
(n(!0), o(y, null, _(V(G), (l) => (n(), o("option", {
|
|
910
|
+
key: l,
|
|
911
|
+
value: l
|
|
912
|
+
}, b(l.toString().padStart(2, "0")), 9, Vt))), 128))
|
|
912
913
|
], 544), [
|
|
913
914
|
[
|
|
914
|
-
|
|
915
|
+
R,
|
|
915
916
|
m.value.start,
|
|
916
917
|
void 0,
|
|
917
918
|
{ number: !0 }
|
|
@@ -919,17 +920,17 @@ const Fe = ae("SunIcon", [
|
|
|
919
920
|
]),
|
|
920
921
|
U(t("select", {
|
|
921
922
|
class: "w-full select-bordered select",
|
|
922
|
-
"onUpdate:modelValue": c[7] || (c[7] = (
|
|
923
|
+
"onUpdate:modelValue": c[7] || (c[7] = (l) => f.value.start = l),
|
|
923
924
|
onChange: T
|
|
924
925
|
}, [
|
|
925
|
-
(n(!0),
|
|
926
|
-
key:
|
|
927
|
-
value:
|
|
928
|
-
}, b(
|
|
926
|
+
(n(!0), o(y, null, _(V(Q), (l) => (n(), o("option", {
|
|
927
|
+
key: l,
|
|
928
|
+
value: l
|
|
929
|
+
}, b(l.toString().padStart(2, "0")), 9, At))), 128))
|
|
929
930
|
], 544), [
|
|
930
931
|
[
|
|
931
|
-
|
|
932
|
-
|
|
932
|
+
R,
|
|
933
|
+
f.value.start,
|
|
933
934
|
void 0,
|
|
934
935
|
{ number: !0 }
|
|
935
936
|
]
|
|
@@ -938,27 +939,27 @@ const Fe = ae("SunIcon", [
|
|
|
938
939
|
]),
|
|
939
940
|
t("div", null, [
|
|
940
941
|
c[15] || (c[15] = t("p", { class: "font-bold" }, "End Time", -1)),
|
|
941
|
-
H.value ? U((n(),
|
|
942
|
+
H.value ? U((n(), o("input", {
|
|
942
943
|
key: 0,
|
|
943
944
|
type: "time",
|
|
944
945
|
class: "input-bordered w-full input",
|
|
945
|
-
"onUpdate:modelValue": c[8] || (c[8] = (
|
|
946
|
+
"onUpdate:modelValue": c[8] || (c[8] = (l) => p.value.end = l),
|
|
946
947
|
onChange: T
|
|
947
948
|
}, null, 544)), [
|
|
948
949
|
[ee, p.value.end]
|
|
949
|
-
]) : (n(),
|
|
950
|
+
]) : (n(), o("div", Pt, [
|
|
950
951
|
U(t("select", {
|
|
951
952
|
class: "w-full select-bordered select",
|
|
952
|
-
"onUpdate:modelValue": c[9] || (c[9] = (
|
|
953
|
+
"onUpdate:modelValue": c[9] || (c[9] = (l) => m.value.end = l),
|
|
953
954
|
onChange: T
|
|
954
955
|
}, [
|
|
955
|
-
(n(!0),
|
|
956
|
-
key:
|
|
957
|
-
value:
|
|
958
|
-
}, b(
|
|
956
|
+
(n(!0), o(y, null, _(V(G), (l) => (n(), o("option", {
|
|
957
|
+
key: l,
|
|
958
|
+
value: l
|
|
959
|
+
}, b(l.toString().padStart(2, "0")), 9, Rt))), 128))
|
|
959
960
|
], 544), [
|
|
960
961
|
[
|
|
961
|
-
|
|
962
|
+
R,
|
|
962
963
|
m.value.end,
|
|
963
964
|
void 0,
|
|
964
965
|
{ number: !0 }
|
|
@@ -966,45 +967,45 @@ const Fe = ae("SunIcon", [
|
|
|
966
967
|
]),
|
|
967
968
|
U(t("select", {
|
|
968
969
|
class: "w-full select-bordered select",
|
|
969
|
-
"onUpdate:modelValue": c[10] || (c[10] = (
|
|
970
|
+
"onUpdate:modelValue": c[10] || (c[10] = (l) => f.value.end = l),
|
|
970
971
|
onChange: T
|
|
971
972
|
}, [
|
|
972
|
-
(n(!0),
|
|
973
|
-
key:
|
|
974
|
-
value:
|
|
975
|
-
}, b(
|
|
973
|
+
(n(!0), o(y, null, _(V(Q), (l) => (n(), o("option", {
|
|
974
|
+
key: l,
|
|
975
|
+
value: l
|
|
976
|
+
}, b(l.toString().padStart(2, "0")), 9, jt))), 128))
|
|
976
977
|
], 544), [
|
|
977
978
|
[
|
|
978
|
-
|
|
979
|
-
|
|
979
|
+
R,
|
|
980
|
+
f.value.end,
|
|
980
981
|
void 0,
|
|
981
982
|
{ number: !0 }
|
|
982
983
|
]
|
|
983
984
|
])
|
|
984
985
|
]))
|
|
985
986
|
])
|
|
986
|
-
])) : (n(),
|
|
987
|
-
H.value ? U((n(),
|
|
987
|
+
])) : (n(), o("div", Tt, [
|
|
988
|
+
H.value ? U((n(), o("input", {
|
|
988
989
|
key: 0,
|
|
989
990
|
type: "time",
|
|
990
991
|
class: "input-bordered w-full input",
|
|
991
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
992
|
+
"onUpdate:modelValue": c[2] || (c[2] = (l) => p.value = l),
|
|
992
993
|
onChange: T
|
|
993
994
|
}, null, 544)), [
|
|
994
995
|
[ee, p.value]
|
|
995
|
-
]) : (n(),
|
|
996
|
+
]) : (n(), o("div", Mt, [
|
|
996
997
|
U(t("select", {
|
|
997
998
|
class: "w-full select-bordered select",
|
|
998
|
-
"onUpdate:modelValue": c[3] || (c[3] = (
|
|
999
|
+
"onUpdate:modelValue": c[3] || (c[3] = (l) => m.value = l),
|
|
999
1000
|
onChange: T
|
|
1000
1001
|
}, [
|
|
1001
|
-
(n(!0),
|
|
1002
|
-
key:
|
|
1003
|
-
value:
|
|
1004
|
-
}, b(
|
|
1002
|
+
(n(!0), o(y, null, _(V(G), (l) => (n(), o("option", {
|
|
1003
|
+
key: l,
|
|
1004
|
+
value: l
|
|
1005
|
+
}, b(l.toString().padStart(2, "0")), 9, Bt))), 128))
|
|
1005
1006
|
], 544), [
|
|
1006
1007
|
[
|
|
1007
|
-
|
|
1008
|
+
R,
|
|
1008
1009
|
m.value,
|
|
1009
1010
|
void 0,
|
|
1010
1011
|
{ number: !0 }
|
|
@@ -1012,17 +1013,17 @@ const Fe = ae("SunIcon", [
|
|
|
1012
1013
|
]),
|
|
1013
1014
|
U(t("select", {
|
|
1014
1015
|
class: "w-full select-bordered select",
|
|
1015
|
-
"onUpdate:modelValue": c[4] || (c[4] = (
|
|
1016
|
+
"onUpdate:modelValue": c[4] || (c[4] = (l) => f.value = l),
|
|
1016
1017
|
onChange: T
|
|
1017
1018
|
}, [
|
|
1018
|
-
(n(!0),
|
|
1019
|
-
key:
|
|
1020
|
-
value:
|
|
1021
|
-
}, b(
|
|
1019
|
+
(n(!0), o(y, null, _(V(Q), (l) => (n(), o("option", {
|
|
1020
|
+
key: l,
|
|
1021
|
+
value: l
|
|
1022
|
+
}, b(l.toString().padStart(2, "0")), 9, It))), 128))
|
|
1022
1023
|
], 544), [
|
|
1023
1024
|
[
|
|
1024
|
-
|
|
1025
|
-
|
|
1025
|
+
R,
|
|
1026
|
+
f.value,
|
|
1026
1027
|
void 0,
|
|
1027
1028
|
{ number: !0 }
|
|
1028
1029
|
]
|
|
@@ -1030,24 +1031,24 @@ const Fe = ae("SunIcon", [
|
|
|
1030
1031
|
]))
|
|
1031
1032
|
]))
|
|
1032
1033
|
])) : x("", !0),
|
|
1033
|
-
t("div",
|
|
1034
|
+
t("div", zt, [
|
|
1034
1035
|
t("button", {
|
|
1035
|
-
class:
|
|
1036
|
+
class: k(["btn btn-secondary", d.popup ? "w-fit" : "w-full"]),
|
|
1036
1037
|
onClick: ye
|
|
1037
1038
|
}, "Clear", 2),
|
|
1038
|
-
d.popup ? (n(),
|
|
1039
|
+
d.popup ? (n(), o("button", {
|
|
1039
1040
|
key: 0,
|
|
1040
1041
|
class: "btn btn-primary btn-wide",
|
|
1041
1042
|
onClick: oe
|
|
1042
1043
|
}, "Close")) : x("", !0)
|
|
1043
1044
|
])
|
|
1044
|
-
], 10,
|
|
1045
|
+
], 10, wt)) : x("", !0)
|
|
1045
1046
|
], 512));
|
|
1046
1047
|
}
|
|
1047
|
-
},
|
|
1048
|
+
}, Et = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-cb781ab6"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1048
1049
|
__proto__: null,
|
|
1049
|
-
default:
|
|
1050
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1050
|
+
default: Et
|
|
1051
|
+
}, Symbol.toStringTag, { value: "Module" })), Ft = ["value", "checked", "onChange", "disabled"], Cn = /* @__PURE__ */ M({
|
|
1051
1052
|
__name: "rating",
|
|
1052
1053
|
props: {
|
|
1053
1054
|
initialRating: { default: 0 },
|
|
@@ -1057,29 +1058,29 @@ const Fe = ae("SunIcon", [
|
|
|
1057
1058
|
size: { default: "sm" }
|
|
1058
1059
|
},
|
|
1059
1060
|
setup(d) {
|
|
1060
|
-
const u = d, e =
|
|
1061
|
-
|
|
1061
|
+
const u = d, e = $(u.initialRating);
|
|
1062
|
+
N(
|
|
1062
1063
|
() => u.initialRating,
|
|
1063
1064
|
(i) => {
|
|
1064
1065
|
e.value = i;
|
|
1065
1066
|
}
|
|
1066
1067
|
);
|
|
1067
|
-
const
|
|
1068
|
+
const a = (i) => {
|
|
1068
1069
|
e.value = i;
|
|
1069
1070
|
};
|
|
1070
|
-
return (i,
|
|
1071
|
-
class:
|
|
1071
|
+
return (i, s) => (n(), o("div", {
|
|
1072
|
+
class: k(["rating", [
|
|
1072
1073
|
`rating-${u.size}`,
|
|
1073
1074
|
{ "rating-half": i.halfStars }
|
|
1074
1075
|
]])
|
|
1075
1076
|
}, [
|
|
1076
|
-
(n(!0),
|
|
1077
|
+
(n(!0), o(y, null, _(i.numberOfStars * (i.halfStars ? 2 : 1), (p) => (n(), o("input", {
|
|
1077
1078
|
key: p,
|
|
1078
1079
|
type: "radio",
|
|
1079
1080
|
value: i.halfStars ? p * 0.5 : p,
|
|
1080
1081
|
checked: e.value === (i.halfStars ? p * 0.5 : p),
|
|
1081
|
-
onChange: (h) => i.isInteractive ?
|
|
1082
|
-
class:
|
|
1082
|
+
onChange: (h) => i.isInteractive ? a(i.halfStars ? p * 0.5 : p) : null,
|
|
1083
|
+
class: k(["mask mask-star", {
|
|
1083
1084
|
"bg-yellow-400": e.value >= (i.halfStars ? p * 0.5 : p),
|
|
1084
1085
|
"mask-half-1": i.halfStars && p % 2 !== 0,
|
|
1085
1086
|
"mask-half-2": i.halfStars && p % 2 === 0,
|
|
@@ -1087,54 +1088,54 @@ const Fe = ae("SunIcon", [
|
|
|
1087
1088
|
"cursor-default": !i.isInteractive
|
|
1088
1089
|
}]),
|
|
1089
1090
|
disabled: !i.isInteractive
|
|
1090
|
-
}, null, 42,
|
|
1091
|
+
}, null, 42, Ft))), 128))
|
|
1091
1092
|
], 2));
|
|
1092
1093
|
}
|
|
1093
|
-
}),
|
|
1094
|
+
}), Ht = {
|
|
1094
1095
|
key: 0,
|
|
1095
1096
|
class: "loading loading-spinner loading-md mx-auto"
|
|
1096
|
-
},
|
|
1097
|
+
}, Sn = /* @__PURE__ */ M({
|
|
1097
1098
|
__name: "loader",
|
|
1098
1099
|
props: {
|
|
1099
1100
|
loading: { type: Boolean, default: !0 }
|
|
1100
1101
|
},
|
|
1101
1102
|
setup(d) {
|
|
1102
|
-
const u = d, e =
|
|
1103
|
-
return
|
|
1103
|
+
const u = d, e = $(u.loading);
|
|
1104
|
+
return N(
|
|
1104
1105
|
() => u.loading,
|
|
1105
|
-
(
|
|
1106
|
-
e.value =
|
|
1106
|
+
(a) => {
|
|
1107
|
+
e.value = a;
|
|
1107
1108
|
}
|
|
1108
|
-
), (
|
|
1109
|
+
), (a, i) => e.value ? (n(), o("span", Ht)) : x("", !0);
|
|
1109
1110
|
}
|
|
1110
|
-
}),
|
|
1111
|
+
}), qt = { class: "bg-base-200 mx-auto md:px-10 py-10 text-base-content" }, Yt = { class: "footer sm:footer-horizontal container" }, Jt = { class: "footer-title" }, Wt = ["href"], Xt = { class: "ml-auto" }, xn = /* @__PURE__ */ M({
|
|
1111
1112
|
__name: "footer",
|
|
1112
1113
|
props: {
|
|
1113
1114
|
items: {}
|
|
1114
1115
|
},
|
|
1115
1116
|
setup(d) {
|
|
1116
1117
|
const u = d;
|
|
1117
|
-
return (e,
|
|
1118
|
-
t("footer",
|
|
1119
|
-
(n(!0),
|
|
1120
|
-
t("h6",
|
|
1121
|
-
(n(!0),
|
|
1118
|
+
return (e, a) => (n(), o("div", qt, [
|
|
1119
|
+
t("footer", Yt, [
|
|
1120
|
+
(n(!0), o(y, null, _(u.items, (i) => (n(), o("nav", null, [
|
|
1121
|
+
t("h6", Jt, b(i.title), 1),
|
|
1122
|
+
(n(!0), o(y, null, _(i.items, (s) => (n(), o("a", {
|
|
1122
1123
|
class: "link link-hover",
|
|
1123
|
-
href:
|
|
1124
|
-
}, b(
|
|
1124
|
+
href: s.link
|
|
1125
|
+
}, b(s.text), 9, Wt))), 256))
|
|
1125
1126
|
]))), 256)),
|
|
1126
|
-
t("aside",
|
|
1127
|
+
t("aside", Xt, [
|
|
1127
1128
|
w(e.$slots, "default")
|
|
1128
1129
|
])
|
|
1129
1130
|
])
|
|
1130
1131
|
]));
|
|
1131
1132
|
}
|
|
1132
|
-
}),
|
|
1133
|
-
function
|
|
1134
|
-
return n(),
|
|
1135
|
-
t("div",
|
|
1133
|
+
}), Zt = {}, Kt = { class: "min-h-40 container hero" }, Gt = { class: "px-0! text-center hero-content" }, Qt = { class: "mt-9 text-4xl" };
|
|
1134
|
+
function en(d, u) {
|
|
1135
|
+
return n(), o("div", Kt, [
|
|
1136
|
+
t("div", Gt, [
|
|
1136
1137
|
t("div", null, [
|
|
1137
|
-
t("h1",
|
|
1138
|
+
t("h1", Qt, [
|
|
1138
1139
|
w(d.$slots, "title", {}, () => [
|
|
1139
1140
|
u[0] || (u[0] = ne("hero title"))
|
|
1140
1141
|
])
|
|
@@ -1149,7 +1150,7 @@ function nn(d, u) {
|
|
|
1149
1150
|
])
|
|
1150
1151
|
]);
|
|
1151
1152
|
}
|
|
1152
|
-
const
|
|
1153
|
+
const Dn = /* @__PURE__ */ X(Zt, [["render", en]]), tn = { class: "categories flex flex-row gap-4 place-content-center" }, nn = ["onClick"], Tn = /* @__PURE__ */ M({
|
|
1153
1154
|
__name: "categoryNavigation",
|
|
1154
1155
|
props: {
|
|
1155
1156
|
searchOptions: {},
|
|
@@ -1157,55 +1158,55 @@ const Mn = /* @__PURE__ */ X(Gt, [["render", nn]]), an = { class: "categories fl
|
|
|
1157
1158
|
},
|
|
1158
1159
|
emits: ["update:currentCategory"],
|
|
1159
1160
|
setup(d, { emit: u }) {
|
|
1160
|
-
const e = d,
|
|
1161
|
-
function i(
|
|
1162
|
-
|
|
1161
|
+
const e = d, a = u;
|
|
1162
|
+
function i(s) {
|
|
1163
|
+
a("update:currentCategory", s);
|
|
1163
1164
|
}
|
|
1164
|
-
return (
|
|
1165
|
-
(n(!0),
|
|
1165
|
+
return (s, p) => (n(), o("div", tn, [
|
|
1166
|
+
(n(!0), o(y, null, _(e.searchOptions, (h) => (n(), o("div", {
|
|
1166
1167
|
key: h.category
|
|
1167
1168
|
}, [
|
|
1168
1169
|
t("button", {
|
|
1169
|
-
onClick: (
|
|
1170
|
-
class:
|
|
1171
|
-
}, b(h.category), 11,
|
|
1170
|
+
onClick: (v) => i(h.category),
|
|
1171
|
+
class: k(["truncate", { "font-semibold": e.currentCategory === h.category }])
|
|
1172
|
+
}, b(h.category), 11, nn)
|
|
1172
1173
|
]))), 128))
|
|
1173
1174
|
]));
|
|
1174
1175
|
}
|
|
1175
|
-
}),
|
|
1176
|
+
}), an = { class: "md:flex hidden navbar-start" }, on = { class: "md:flex justify-center items-center hidden navbar-center" }, ln = { class: "md:flex hidden navbar-end" }, sn = { class: "navbar-bottom md:flex hidden" }, rn = /* @__PURE__ */ M({
|
|
1176
1177
|
__name: "navigationBar",
|
|
1177
1178
|
props: {
|
|
1178
1179
|
isCollapsed: { type: Boolean, default: !0 }
|
|
1179
1180
|
},
|
|
1180
1181
|
setup(d) {
|
|
1181
1182
|
const u = d;
|
|
1182
|
-
return (e,
|
|
1183
|
-
class:
|
|
1183
|
+
return (e, a) => (n(), o("nav", {
|
|
1184
|
+
class: k(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", u.isCollapsed ? "collapsed" : ""])
|
|
1184
1185
|
}, [
|
|
1185
|
-
t("div",
|
|
1186
|
+
t("div", an, [
|
|
1186
1187
|
w(e.$slots, "start", {}, void 0, !0)
|
|
1187
1188
|
]),
|
|
1188
|
-
t("div",
|
|
1189
|
+
t("div", on, [
|
|
1189
1190
|
w(e.$slots, "center", {}, void 0, !0)
|
|
1190
1191
|
]),
|
|
1191
|
-
t("div",
|
|
1192
|
+
t("div", ln, [
|
|
1192
1193
|
w(e.$slots, "end", {}, void 0, !0)
|
|
1193
1194
|
]),
|
|
1194
|
-
t("div",
|
|
1195
|
+
t("div", sn, [
|
|
1195
1196
|
w(e.$slots, "bottom", {}, void 0, !0)
|
|
1196
1197
|
])
|
|
1197
1198
|
], 2));
|
|
1198
1199
|
}
|
|
1199
|
-
}),
|
|
1200
|
+
}), Mn = /* @__PURE__ */ X(rn, [["__scopeId", "data-v-8ddb2b45"]]), un = {
|
|
1200
1201
|
role: "tablist",
|
|
1201
|
-
class: "
|
|
1202
|
-
},
|
|
1202
|
+
class: "relative tabs-bordered w-full tabs tabs-lg"
|
|
1203
|
+
}, dn = {
|
|
1203
1204
|
key: 0,
|
|
1204
|
-
class: "hidden
|
|
1205
|
-
},
|
|
1205
|
+
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
1206
|
+
}, cn = ["onClick", "aria-selected"], pn = {
|
|
1206
1207
|
role: "tabpanel",
|
|
1207
|
-
class: "
|
|
1208
|
-
},
|
|
1208
|
+
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
1209
|
+
}, Bn = /* @__PURE__ */ M({
|
|
1209
1210
|
__name: "tab",
|
|
1210
1211
|
props: {
|
|
1211
1212
|
items: {},
|
|
@@ -1214,65 +1215,67 @@ const Mn = /* @__PURE__ */ X(Gt, [["render", nn]]), an = { class: "categories fl
|
|
|
1214
1215
|
},
|
|
1215
1216
|
emits: ["tab-changed"],
|
|
1216
1217
|
setup(d, { emit: u }) {
|
|
1217
|
-
const e = d,
|
|
1218
|
-
function
|
|
1219
|
-
|
|
1218
|
+
const e = d, a = $(e.items[0]), i = u;
|
|
1219
|
+
function s(v) {
|
|
1220
|
+
a.value = v, i("tab-changed", v);
|
|
1220
1221
|
}
|
|
1221
1222
|
function p() {
|
|
1222
|
-
const m = (e.items.indexOf(
|
|
1223
|
-
|
|
1223
|
+
const m = (e.items.indexOf(a.value) + 1) % e.items.length;
|
|
1224
|
+
s(e.items[m]);
|
|
1224
1225
|
}
|
|
1225
1226
|
function h() {
|
|
1226
|
-
const m = (e.items.indexOf(
|
|
1227
|
-
|
|
1227
|
+
const m = (e.items.indexOf(a.value) - 1 + e.items.length) % e.items.length;
|
|
1228
|
+
s(e.items[m]);
|
|
1228
1229
|
}
|
|
1229
|
-
return
|
|
1230
|
+
return E(() => {
|
|
1231
|
+
e.items && s(e.items[0]);
|
|
1232
|
+
}), pe(() => {
|
|
1230
1233
|
e.rotateTabsAfter && setInterval(() => {
|
|
1231
1234
|
p();
|
|
1232
1235
|
}, e.rotateTabsAfter * 1e3);
|
|
1233
|
-
}), (
|
|
1234
|
-
|
|
1236
|
+
}), (v, m) => (n(), o("div", un, [
|
|
1237
|
+
v.withControlls ? (n(), o("div", dn, [
|
|
1235
1238
|
t("button", {
|
|
1236
|
-
onClick: m[0] || (m[0] = (
|
|
1239
|
+
onClick: m[0] || (m[0] = (f) => h()),
|
|
1237
1240
|
class: "cursor-pointer"
|
|
1238
1241
|
}, "Previous"),
|
|
1239
1242
|
t("button", {
|
|
1240
|
-
onClick: m[1] || (m[1] = (
|
|
1241
|
-
class: "cursor-pointer
|
|
1243
|
+
onClick: m[1] || (m[1] = (f) => p()),
|
|
1244
|
+
class: "text-primary cursor-pointer"
|
|
1242
1245
|
}, "Next")
|
|
1243
1246
|
])) : x("", !0),
|
|
1244
|
-
(n(!0),
|
|
1247
|
+
(n(!0), o(y, null, _(v.items, (f) => (n(), o(y, null, [
|
|
1245
1248
|
t("a", {
|
|
1246
1249
|
type: "button",
|
|
1247
1250
|
role: "tab",
|
|
1248
|
-
class:
|
|
1249
|
-
onClick: (
|
|
1250
|
-
"aria-selected":
|
|
1251
|
-
}, b(
|
|
1252
|
-
t("div",
|
|
1253
|
-
w(
|
|
1251
|
+
class: k(["min-w-max tab", f === a.value ? "bg-primary text-base-100" : ""]),
|
|
1252
|
+
onClick: (j) => s(f),
|
|
1253
|
+
"aria-selected": a.value == f
|
|
1254
|
+
}, b(f), 11, cn),
|
|
1255
|
+
t("div", pn, [
|
|
1256
|
+
w(v.$slots, `${f}-tab`)
|
|
1254
1257
|
])
|
|
1255
1258
|
], 64))), 256))
|
|
1256
1259
|
]));
|
|
1257
1260
|
}
|
|
1258
1261
|
});
|
|
1259
1262
|
export {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1263
|
+
yn as Accordion,
|
|
1264
|
+
$n as AdvancedSearch,
|
|
1265
|
+
wn as Avatar,
|
|
1266
|
+
kn as Badge,
|
|
1267
|
+
fn as ButtonComponent,
|
|
1268
|
+
_n as Card,
|
|
1269
|
+
Tn as CategoryNavigation,
|
|
1270
|
+
Et as DatetimePicker,
|
|
1271
|
+
vn as Dropdown,
|
|
1272
|
+
xn as Footer,
|
|
1273
|
+
Dn as Hero,
|
|
1274
|
+
Sn as Loader,
|
|
1275
|
+
gn as Modal,
|
|
1276
|
+
Mn as NavigationBar,
|
|
1277
|
+
Cn as Rating,
|
|
1278
|
+
hn as Swap,
|
|
1279
|
+
Bn as Tab,
|
|
1280
|
+
bn as ThemeController
|
|
1278
1281
|
};
|