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