manolis-ui 0.17.5 → 0.17.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +808 -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,16 +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
|
+
id: "carousel-indicators",
|
|
532
533
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
533
|
-
},
|
|
534
|
+
}, Ot = ["onClick", "aria-label"], Dt = /* @__PURE__ */ _({
|
|
534
535
|
__name: "carousel",
|
|
535
536
|
props: {
|
|
536
537
|
showIndicators: {
|
|
@@ -586,174 +587,187 @@ const ut = he("SunIcon", [
|
|
|
586
587
|
}
|
|
587
588
|
},
|
|
588
589
|
setup(e, { expose: v }) {
|
|
589
|
-
const l = e, t =
|
|
590
|
-
const
|
|
591
|
-
let
|
|
592
|
-
for (const P of
|
|
593
|
-
|
|
594
|
-
return
|
|
595
|
-
}),
|
|
596
|
-
const
|
|
597
|
-
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 ? {
|
|
598
599
|
width: P
|
|
599
600
|
} : { height: P };
|
|
600
601
|
});
|
|
601
|
-
|
|
602
|
-
const
|
|
602
|
+
We(_e, c);
|
|
603
|
+
const D = () => {
|
|
603
604
|
a.value ? i.value = a.value.children.length : i.value = 0;
|
|
604
|
-
},
|
|
605
|
-
if (!s.value ||
|
|
606
|
-
const
|
|
607
|
-
return
|
|
608
|
-
},
|
|
609
|
-
if (!s.value || i.value === 0 ||
|
|
610
|
-
const
|
|
611
|
-
return Math.max(0,
|
|
612
|
-
}),
|
|
613
|
-
if (!s.value ||
|
|
614
|
-
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();
|
|
615
616
|
if (P <= 0) return;
|
|
616
|
-
const
|
|
617
|
-
let
|
|
618
|
-
l.infinite ?
|
|
619
|
-
const
|
|
620
|
-
if (
|
|
621
|
-
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();
|
|
622
623
|
return;
|
|
623
624
|
}
|
|
624
|
-
|
|
625
|
-
const
|
|
625
|
+
m.value = !0;
|
|
626
|
+
const ie = u.value, ne = Y - ie, be = performance.now(), fe = (ke) => {
|
|
626
627
|
if (!a.value) return;
|
|
627
|
-
const
|
|
628
|
-
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);
|
|
629
630
|
};
|
|
630
|
-
|
|
631
|
-
},
|
|
632
|
-
l.infinite && t.value >= i.value -
|
|
633
|
-
},
|
|
634
|
-
l.infinite && t.value <= 0 ?
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
},
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
},
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
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;
|
|
656
662
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
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);
|
|
664
678
|
return;
|
|
665
|
-
} else if (
|
|
666
|
-
|
|
679
|
+
} else if ($ > j.value) {
|
|
680
|
+
A(0);
|
|
667
681
|
return;
|
|
668
682
|
}
|
|
669
|
-
} else if (
|
|
670
|
-
|
|
683
|
+
} else if ($ < 0) {
|
|
684
|
+
A(0);
|
|
671
685
|
return;
|
|
672
|
-
} else if (
|
|
673
|
-
const Y = Math.max(0, i.value - Math.floor(
|
|
674
|
-
|
|
686
|
+
} else if ($ > j.value) {
|
|
687
|
+
const Y = Math.max(0, i.value - Math.floor(g.value));
|
|
688
|
+
A(Y);
|
|
675
689
|
return;
|
|
676
690
|
}
|
|
677
|
-
const
|
|
678
|
-
if (Math.abs(
|
|
679
|
-
const Y = -Math.sign(
|
|
680
|
-
|
|
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)));
|
|
681
695
|
} else
|
|
682
|
-
|
|
683
|
-
}, T = () => {
|
|
684
|
-
!l.autoplay || Z.value !== null || (Z.value = setInterval(() => {
|
|
685
|
-
ee();
|
|
686
|
-
}, l.autoplayInterval));
|
|
687
|
-
}, q = () => {
|
|
688
|
-
Z.value !== null && (clearInterval(Z.value), Z.value = null);
|
|
696
|
+
A(Math.max(0, Math.min(J, oe)));
|
|
689
697
|
}, G = () => {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
},
|
|
698
|
+
!l.autoplay || Q.value !== null || (Q.value = setInterval(() => {
|
|
699
|
+
te();
|
|
700
|
+
}, l.autoplayInterval));
|
|
693
701
|
}, ae = () => {
|
|
694
|
-
|
|
695
|
-
},
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
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;
|
|
701
715
|
};
|
|
702
|
-
|
|
703
|
-
window.removeEventListener("resize",
|
|
716
|
+
Ve(() => {
|
|
717
|
+
window.removeEventListener("resize", ye);
|
|
704
718
|
});
|
|
705
|
-
let
|
|
706
|
-
return
|
|
707
|
-
var
|
|
708
|
-
|
|
709
|
-
const
|
|
710
|
-
|
|
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());
|
|
711
725
|
});
|
|
712
|
-
l.autoplay &&
|
|
713
|
-
}),
|
|
714
|
-
window.removeEventListener("resize",
|
|
715
|
-
}),
|
|
716
|
-
|
|
717
|
-
}),
|
|
718
|
-
requestAnimationFrame(() =>
|
|
719
|
-
}),
|
|
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], () => {
|
|
720
734
|
requestAnimationFrame(() => {
|
|
721
735
|
requestAnimationFrame(() => {
|
|
722
|
-
if (
|
|
723
|
-
const
|
|
724
|
-
|
|
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);
|
|
725
739
|
});
|
|
726
740
|
});
|
|
727
|
-
}), v({ scrollToSlide:
|
|
741
|
+
}), v({ scrollToSlide: A }), (I, $) => (o(), r("div", Mt, [
|
|
728
742
|
n("div", {
|
|
729
743
|
ref_key: "carouselContainer",
|
|
730
744
|
ref: s,
|
|
731
|
-
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 }]]),
|
|
732
746
|
style: { scrollSnapType: "none" }
|
|
733
747
|
}, [
|
|
734
748
|
n("div", {
|
|
735
749
|
ref_key: "slidesContainer",
|
|
736
750
|
ref: a,
|
|
737
|
-
class:
|
|
738
|
-
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` })
|
|
739
753
|
}, [
|
|
740
|
-
E(
|
|
754
|
+
E(I.$slots, "default", {}, void 0, !0)
|
|
741
755
|
], 6)
|
|
742
756
|
], 2),
|
|
743
757
|
e.showNavigationButtons ? (o(), r("div", {
|
|
744
758
|
key: 0,
|
|
745
|
-
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" }])
|
|
746
760
|
}, [
|
|
747
|
-
|
|
748
|
-
default:
|
|
749
|
-
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, [
|
|
750
764
|
n("div", {
|
|
751
|
-
onClick:
|
|
765
|
+
onClick: de,
|
|
752
766
|
role: "button",
|
|
753
767
|
"aria-label": "Previous Slide"
|
|
754
768
|
}, [
|
|
755
|
-
E(
|
|
756
|
-
|
|
769
|
+
E(I.$slots, "prevButton", {}, () => [
|
|
770
|
+
$[0] || ($[0] = n("button", {
|
|
757
771
|
class: "btn btn-circle text-xs",
|
|
758
772
|
tabindex: "-1"
|
|
759
773
|
}, "❮", -1))
|
|
@@ -763,17 +777,17 @@ const ut = he("SunIcon", [
|
|
|
763
777
|
]),
|
|
764
778
|
_: 3
|
|
765
779
|
}),
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
default:
|
|
769
|
-
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, [
|
|
770
784
|
n("div", {
|
|
771
|
-
onClick:
|
|
785
|
+
onClick: te,
|
|
772
786
|
role: "button",
|
|
773
787
|
"aria-label": "Next Slide"
|
|
774
788
|
}, [
|
|
775
|
-
E(
|
|
776
|
-
|
|
789
|
+
E(I.$slots, "nextButton", {}, () => [
|
|
790
|
+
$[1] || ($[1] = n("button", {
|
|
777
791
|
class: "btn btn-circle text-xs",
|
|
778
792
|
tabindex: "-1"
|
|
779
793
|
}, "❯", -1))
|
|
@@ -784,51 +798,51 @@ const ut = he("SunIcon", [
|
|
|
784
798
|
_: 3
|
|
785
799
|
})
|
|
786
800
|
], 2)) : B("", !0),
|
|
787
|
-
e.showIndicators ? (o(), r("div",
|
|
788
|
-
(o(!0), r(
|
|
789
|
-
key: `dot-${
|
|
790
|
-
onClick: (
|
|
791
|
-
class:
|
|
792
|
-
"aria-label": `Go to slide ${
|
|
793
|
-
}, 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))
|
|
794
808
|
])) : B("", !0)
|
|
795
809
|
]));
|
|
796
810
|
}
|
|
797
|
-
}),
|
|
811
|
+
}), ge = (e, v) => {
|
|
798
812
|
const l = e.__vccOpts || e;
|
|
799
813
|
for (const [t, s] of v)
|
|
800
814
|
l[t] = s;
|
|
801
815
|
return l;
|
|
802
|
-
},
|
|
816
|
+
}, Sn = /* @__PURE__ */ ge(Dt, [["__scopeId", "data-v-dd58428c"]]), Vt = /* @__PURE__ */ _({
|
|
803
817
|
__name: "carouselItem",
|
|
804
818
|
setup(e) {
|
|
805
|
-
const v =
|
|
819
|
+
const v = Ke(_e, h({}));
|
|
806
820
|
return (l, t) => (o(), r("div", {
|
|
807
821
|
class: "w-full h-full carousel-item",
|
|
808
|
-
style:
|
|
822
|
+
style: we(se(v))
|
|
809
823
|
}, [
|
|
810
824
|
E(l.$slots, "default", {}, void 0, !0)
|
|
811
825
|
], 4));
|
|
812
826
|
}
|
|
813
|
-
}),
|
|
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 = {
|
|
814
828
|
key: 0,
|
|
815
829
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
816
|
-
},
|
|
830
|
+
}, Pt = {
|
|
817
831
|
key: 1,
|
|
818
832
|
class: "flex flex-col"
|
|
819
|
-
},
|
|
833
|
+
}, At = { class: "text-sm" }, Rt = {
|
|
820
834
|
key: 0,
|
|
821
835
|
class: "opacity-75 overflow-hidden text-xs truncate ..."
|
|
822
|
-
},
|
|
836
|
+
}, Nt = {
|
|
823
837
|
key: 1,
|
|
824
838
|
class: "hidden md:block opacity-35 overflow-hidden text-xs truncate ..."
|
|
825
|
-
},
|
|
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 = {
|
|
826
840
|
key: 0,
|
|
827
841
|
class: "opacity-75 overflow-hidden text-sm truncate ..."
|
|
828
|
-
},
|
|
842
|
+
}, Xt = {
|
|
829
843
|
key: 1,
|
|
830
844
|
class: "opacity-35 text-sm"
|
|
831
|
-
},
|
|
845
|
+
}, Yt = { class: "collapse-content flex place-content-center p-0" }, Gt = /* @__PURE__ */ _({
|
|
832
846
|
__name: "advancedSearch",
|
|
833
847
|
props: {
|
|
834
848
|
searchOptions: {},
|
|
@@ -838,36 +852,36 @@ const ut = he("SunIcon", [
|
|
|
838
852
|
},
|
|
839
853
|
emits: ["search", "update:search-data"],
|
|
840
854
|
setup(e, { emit: v }) {
|
|
841
|
-
const l = e, t = v, s = l.id ?? `advancedSearch-${
|
|
842
|
-
datetime:
|
|
843
|
-
"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")),
|
|
844
858
|
// Add other components here when you create them:
|
|
845
859
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
846
860
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
847
|
-
"custom-text":
|
|
861
|
+
"custom-text": ze(() => import("./inputField-BxT95oyM.js"))
|
|
848
862
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
849
|
-
}, i =
|
|
863
|
+
}, i = h({}), y = h({
|
|
850
864
|
left: "0px",
|
|
851
865
|
top: "0px",
|
|
852
866
|
transform: "translateX(0%)"
|
|
853
|
-
}),
|
|
854
|
-
var
|
|
867
|
+
}), M = h(null), R = (f) => {
|
|
868
|
+
var b;
|
|
855
869
|
if (f.value === void 0 || f.value === null || f.value === "")
|
|
856
870
|
return "";
|
|
857
871
|
switch (f.type) {
|
|
858
872
|
case "datetime":
|
|
859
873
|
if (typeof f.value == "string")
|
|
860
874
|
try {
|
|
861
|
-
const
|
|
862
|
-
if (!isNaN(
|
|
863
|
-
return
|
|
875
|
+
const g = new Date(f.value);
|
|
876
|
+
if (!isNaN(g.getTime()))
|
|
877
|
+
return g.toLocaleString();
|
|
864
878
|
} catch {
|
|
865
879
|
}
|
|
866
880
|
else if (f.range && typeof f.value == "object" && f.value !== null && "start" in f.value && "end" in f.value)
|
|
867
881
|
try {
|
|
868
|
-
const
|
|
869
|
-
if (!isNaN(
|
|
870
|
-
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()}`;
|
|
871
885
|
} catch {
|
|
872
886
|
}
|
|
873
887
|
break;
|
|
@@ -881,12 +895,12 @@ const ut = he("SunIcon", [
|
|
|
881
895
|
break;
|
|
882
896
|
case "standard-select":
|
|
883
897
|
case "custom-select":
|
|
884
|
-
if ((
|
|
885
|
-
const
|
|
886
|
-
(
|
|
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
|
|
887
901
|
);
|
|
888
|
-
if (
|
|
889
|
-
return
|
|
902
|
+
if (g)
|
|
903
|
+
return g.text;
|
|
890
904
|
}
|
|
891
905
|
return String(f.value);
|
|
892
906
|
case "custom-text":
|
|
@@ -897,36 +911,36 @@ const ut = he("SunIcon", [
|
|
|
897
911
|
return String(f.value);
|
|
898
912
|
};
|
|
899
913
|
function k(f) {
|
|
900
|
-
var
|
|
901
|
-
const
|
|
902
|
-
if (!
|
|
914
|
+
var c, D;
|
|
915
|
+
const b = (c = a.value) == null ? void 0 : c.name;
|
|
916
|
+
if (!b) {
|
|
903
917
|
console.warn("componentValueUpdated called but no active tab.");
|
|
904
918
|
return;
|
|
905
919
|
}
|
|
906
|
-
const
|
|
907
|
-
(
|
|
908
|
-
)) == null ? void 0 :
|
|
909
|
-
(
|
|
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
|
|
910
924
|
);
|
|
911
|
-
|
|
912
|
-
tab:
|
|
925
|
+
S ? (S.value = f, t("update:search-data", {
|
|
926
|
+
tab: S.name,
|
|
913
927
|
data: f
|
|
914
928
|
})) : console.error(
|
|
915
|
-
`Tab with name "${
|
|
929
|
+
`Tab with name "${b}" not found in current category.`
|
|
916
930
|
);
|
|
917
931
|
}
|
|
918
|
-
function
|
|
932
|
+
function d(f) {
|
|
919
933
|
k(f);
|
|
920
934
|
}
|
|
921
|
-
function
|
|
935
|
+
function V() {
|
|
922
936
|
t("search");
|
|
923
937
|
}
|
|
924
|
-
async function
|
|
925
|
-
var
|
|
926
|
-
const
|
|
927
|
-
((
|
|
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);
|
|
928
942
|
}
|
|
929
|
-
async function
|
|
943
|
+
async function H() {
|
|
930
944
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
931
945
|
const f = document.getElementById(
|
|
932
946
|
`advancedSearchMobile-${s}`
|
|
@@ -937,21 +951,21 @@ const ut = he("SunIcon", [
|
|
|
937
951
|
}
|
|
938
952
|
}
|
|
939
953
|
async function F(f) {
|
|
940
|
-
var
|
|
954
|
+
var g, S, c;
|
|
941
955
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
942
|
-
|
|
956
|
+
H();
|
|
943
957
|
return;
|
|
944
958
|
}
|
|
945
|
-
const
|
|
946
|
-
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)
|
|
947
961
|
a.value = null;
|
|
948
|
-
else if (a.value = { ...f, displayMode:
|
|
949
|
-
const
|
|
950
|
-
if (
|
|
951
|
-
const
|
|
952
|
-
|
|
953
|
-
left: `${
|
|
954
|
-
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`,
|
|
955
969
|
// Add a small gap
|
|
956
970
|
transform: "translateX(-50%)"
|
|
957
971
|
// Center horizontally
|
|
@@ -963,25 +977,25 @@ const ut = he("SunIcon", [
|
|
|
963
977
|
);
|
|
964
978
|
}
|
|
965
979
|
}
|
|
966
|
-
const
|
|
967
|
-
const
|
|
980
|
+
const K = (f) => {
|
|
981
|
+
const b = f.relatedTarget;
|
|
968
982
|
setTimeout(() => {
|
|
969
|
-
var
|
|
970
|
-
((
|
|
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(
|
|
971
985
|
"Blur detected, but staying within container or not an inline tab."
|
|
972
986
|
);
|
|
973
987
|
}, 50);
|
|
974
|
-
},
|
|
988
|
+
}, Q = () => {
|
|
975
989
|
console.log("Enter key pressed on inline component, closing inline view."), a.value = null;
|
|
976
990
|
};
|
|
977
|
-
|
|
978
|
-
var
|
|
991
|
+
q(u, (f) => {
|
|
992
|
+
var b;
|
|
979
993
|
console.log(
|
|
980
994
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
981
995
|
f
|
|
982
|
-
), 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(
|
|
983
997
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
984
|
-
),
|
|
998
|
+
), me(() => {
|
|
985
999
|
console.log(
|
|
986
1000
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
987
1001
|
), console.log("advanced-search: Type of newValue:", typeof f), console.log(
|
|
@@ -996,100 +1010,100 @@ const ut = he("SunIcon", [
|
|
|
996
1010
|
})) : console.log(
|
|
997
1011
|
f ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
|
|
998
1012
|
);
|
|
999
|
-
}),
|
|
1000
|
-
document.addEventListener("click",
|
|
1001
|
-
}),
|
|
1002
|
-
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);
|
|
1003
1017
|
});
|
|
1004
1018
|
const le = () => {
|
|
1005
|
-
var f,
|
|
1019
|
+
var f, b;
|
|
1006
1020
|
if (typeof window < "u") {
|
|
1007
|
-
const
|
|
1008
|
-
!
|
|
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(
|
|
1009
1023
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
1010
1024
|
), a.value = null);
|
|
1011
|
-
const
|
|
1025
|
+
const c = document.getElementById(
|
|
1012
1026
|
`advancedSearchMobile-${s}`
|
|
1013
1027
|
);
|
|
1014
|
-
|
|
1028
|
+
c != null && c.open && !g && (console.log("Modal is open on desktop, closing modal and active tab."), c.close(), a.value = null);
|
|
1015
1029
|
}
|
|
1016
1030
|
};
|
|
1017
|
-
return (f,
|
|
1018
|
-
var
|
|
1019
|
-
return o(), r(
|
|
1031
|
+
return (f, b) => {
|
|
1032
|
+
var g, S;
|
|
1033
|
+
return o(), r(W, null, [
|
|
1020
1034
|
n("div", {
|
|
1021
1035
|
ref_key: "searchContainer",
|
|
1022
|
-
ref:
|
|
1036
|
+
ref: M,
|
|
1023
1037
|
class: "w-full"
|
|
1024
1038
|
}, [
|
|
1025
1039
|
n("div", {
|
|
1026
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",
|
|
1027
|
-
onClick:
|
|
1041
|
+
onClick: H
|
|
1028
1042
|
}, [
|
|
1029
|
-
n("div",
|
|
1030
|
-
(o(!0), r(
|
|
1031
|
-
(
|
|
1032
|
-
)) == null ? void 0 :
|
|
1033
|
-
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;
|
|
1034
1048
|
return o(), r("button", {
|
|
1035
|
-
key: `${
|
|
1036
|
-
onClick:
|
|
1037
|
-
class:
|
|
1038
|
-
"tab-active": ((
|
|
1039
|
-
"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"
|
|
1040
1054
|
// Add new class
|
|
1041
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"]),
|
|
1042
1056
|
ref_for: !0,
|
|
1043
|
-
ref: (
|
|
1057
|
+
ref: (p) => i.value[c.name] = p
|
|
1044
1058
|
}, [
|
|
1045
|
-
((
|
|
1046
|
-
(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 || {}, {
|
|
1047
1061
|
modelValue: a.value.value,
|
|
1048
|
-
onUpdated:
|
|
1049
|
-
"onUpdate:modelValue":
|
|
1050
|
-
onBlur:
|
|
1051
|
-
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"]),
|
|
1052
1066
|
ref_for: !0,
|
|
1053
1067
|
ref_key: "inlineComponentRef",
|
|
1054
1068
|
ref: u
|
|
1055
1069
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
1056
|
-
])) : (o(), r("div",
|
|
1057
|
-
n("p",
|
|
1058
|
-
|
|
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))
|
|
1059
1073
|
]))
|
|
1060
|
-
], 10,
|
|
1074
|
+
], 10, Lt);
|
|
1061
1075
|
}), 128))
|
|
1062
1076
|
]),
|
|
1063
1077
|
a.value && a.value.displayMode === "popup" ? (o(), r("div", {
|
|
1064
1078
|
key: 0,
|
|
1065
1079
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
1066
|
-
style:
|
|
1080
|
+
style: we(y.value)
|
|
1067
1081
|
}, [
|
|
1068
|
-
(o(),
|
|
1082
|
+
(o(), ve(Te(m[a.value.type]), Be(a.value.props || {}, {
|
|
1069
1083
|
modelValue: a.value.value,
|
|
1070
|
-
onUpdated:
|
|
1071
|
-
"onUpdate:modelValue":
|
|
1084
|
+
onUpdated: b[2] || (b[2] = (c) => k(c)),
|
|
1085
|
+
"onUpdate:modelValue": b[3] || (b[3] = (c) => k(c))
|
|
1072
1086
|
}), null, 16, ["modelValue"]))
|
|
1073
1087
|
], 4)) : B("", !0),
|
|
1074
1088
|
n("button", {
|
|
1075
1089
|
title: "search",
|
|
1076
1090
|
type: "submit",
|
|
1077
1091
|
class: "ml-1 btn btn-primary btn-square",
|
|
1078
|
-
onClick:
|
|
1092
|
+
onClick: re(V, ["stop"])
|
|
1079
1093
|
}, [
|
|
1080
|
-
|
|
1094
|
+
ue(se(Ae), {
|
|
1081
1095
|
size: 24,
|
|
1082
1096
|
color: "white"
|
|
1083
1097
|
})
|
|
1084
1098
|
])
|
|
1085
1099
|
]),
|
|
1086
|
-
n("div",
|
|
1100
|
+
n("div", _t, [
|
|
1087
1101
|
n("button", {
|
|
1088
1102
|
title: "search",
|
|
1089
|
-
onClick:
|
|
1103
|
+
onClick: b[4] || (b[4] = () => {
|
|
1090
1104
|
})
|
|
1091
1105
|
}, [
|
|
1092
|
-
|
|
1106
|
+
ue(se(Ae), {
|
|
1093
1107
|
size: 24,
|
|
1094
1108
|
color: "white"
|
|
1095
1109
|
})
|
|
@@ -1097,34 +1111,34 @@ const ut = he("SunIcon", [
|
|
|
1097
1111
|
])
|
|
1098
1112
|
], 512),
|
|
1099
1113
|
n("dialog", {
|
|
1100
|
-
id: `advancedSearchMobile-${
|
|
1114
|
+
id: `advancedSearchMobile-${se(s)}`,
|
|
1101
1115
|
class: "modal"
|
|
1102
1116
|
}, [
|
|
1103
|
-
n("div",
|
|
1117
|
+
n("div", qt, [
|
|
1104
1118
|
E(f.$slots, "additionalForMobile", {}, () => [
|
|
1105
|
-
n("h3",
|
|
1119
|
+
n("h3", Ut, L(e.currentCategory), 1)
|
|
1106
1120
|
], !0),
|
|
1107
|
-
(o(!0), r(
|
|
1108
|
-
(
|
|
1109
|
-
)) == 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", {
|
|
1110
1124
|
class: "collapse bg-base-200 my-4",
|
|
1111
|
-
key:
|
|
1125
|
+
key: c.name
|
|
1112
1126
|
}, [
|
|
1113
1127
|
n("input", {
|
|
1114
1128
|
type: "radio",
|
|
1115
|
-
name: `accordion-${
|
|
1116
|
-
checked:
|
|
1117
|
-
}, null, 8,
|
|
1118
|
-
n("div",
|
|
1119
|
-
n("div", null,
|
|
1120
|
-
|
|
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))
|
|
1121
1135
|
]),
|
|
1122
|
-
n("div",
|
|
1123
|
-
|
|
1124
|
-
(o(),
|
|
1125
|
-
modelValue:
|
|
1126
|
-
onUpdated:
|
|
1127
|
-
"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))
|
|
1128
1142
|
}), null, 16, ["modelValue"]))
|
|
1129
1143
|
])
|
|
1130
1144
|
]))), 128)),
|
|
@@ -1132,25 +1146,25 @@ const ut = he("SunIcon", [
|
|
|
1132
1146
|
n("form", { method: "dialog" }, [
|
|
1133
1147
|
n("button", {
|
|
1134
1148
|
class: "btn btn-primary",
|
|
1135
|
-
onClick:
|
|
1149
|
+
onClick: V
|
|
1136
1150
|
}, " Close and Search ")
|
|
1137
1151
|
])
|
|
1138
1152
|
])
|
|
1139
1153
|
])
|
|
1140
|
-
], 8,
|
|
1154
|
+
], 8, Ft)
|
|
1141
1155
|
], 64);
|
|
1142
1156
|
};
|
|
1143
1157
|
}
|
|
1144
|
-
}),
|
|
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 = {
|
|
1145
1159
|
key: 2,
|
|
1146
1160
|
class: "flex justify-center p-4"
|
|
1147
|
-
},
|
|
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 = {
|
|
1148
1162
|
key: 3,
|
|
1149
1163
|
class: "p-4 min-w-2xs"
|
|
1150
|
-
},
|
|
1164
|
+
}, rl = ["id", "disabled", "value"], ul = {
|
|
1151
1165
|
key: 4,
|
|
1152
1166
|
class: "flex px-4 my-4 w-full justify-end"
|
|
1153
|
-
},
|
|
1167
|
+
}, dl = /* @__PURE__ */ _({
|
|
1154
1168
|
__name: "datetimePicker",
|
|
1155
1169
|
props: {
|
|
1156
1170
|
mode: { default: "datetime" },
|
|
@@ -1169,37 +1183,37 @@ const ut = he("SunIcon", [
|
|
|
1169
1183
|
},
|
|
1170
1184
|
emits: ["update:modelValue", "change"],
|
|
1171
1185
|
setup(e, { emit: v }) {
|
|
1172
|
-
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({
|
|
1173
1187
|
from: "",
|
|
1174
1188
|
to: "",
|
|
1175
1189
|
single: ""
|
|
1176
|
-
}),
|
|
1190
|
+
}), d = h({
|
|
1177
1191
|
single: null,
|
|
1178
1192
|
start: null,
|
|
1179
1193
|
end: null
|
|
1180
|
-
}),
|
|
1181
|
-
const
|
|
1182
|
-
if (isNaN(
|
|
1183
|
-
const
|
|
1184
|
-
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}`;
|
|
1185
1199
|
}, F = () => {
|
|
1186
|
-
const
|
|
1187
|
-
let
|
|
1188
|
-
if (!
|
|
1189
|
-
if (!
|
|
1190
|
-
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);
|
|
1191
1205
|
return;
|
|
1192
1206
|
}
|
|
1193
|
-
if (t.range && typeof
|
|
1194
|
-
const T =
|
|
1195
|
-
|
|
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));
|
|
1196
1210
|
} else {
|
|
1197
|
-
const T =
|
|
1198
|
-
|
|
1211
|
+
const T = V(z);
|
|
1212
|
+
d.value.single = C(T), t.mode !== "date" && (k.value.single = H(T));
|
|
1199
1213
|
}
|
|
1200
1214
|
}
|
|
1201
|
-
},
|
|
1202
|
-
const
|
|
1215
|
+
}, K = ee(() => {
|
|
1216
|
+
const p = (T) => {
|
|
1203
1217
|
if (!T) return "";
|
|
1204
1218
|
if (T.includes(":")) return T;
|
|
1205
1219
|
try {
|
|
@@ -1209,160 +1223,160 @@ const ut = he("SunIcon", [
|
|
|
1209
1223
|
day: "numeric"
|
|
1210
1224
|
});
|
|
1211
1225
|
} catch {
|
|
1212
|
-
const [
|
|
1213
|
-
return `${ae}/${G}/${
|
|
1226
|
+
const [N, G, ae] = T.split("-");
|
|
1227
|
+
return `${ae}/${G}/${N}`;
|
|
1214
1228
|
}
|
|
1215
1229
|
};
|
|
1216
|
-
let
|
|
1217
|
-
if ((t.mode === "date" || t.mode === "datetime") && (t.range ?
|
|
1218
|
-
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);
|
|
1219
1233
|
if (t.mode === "time")
|
|
1220
|
-
return
|
|
1234
|
+
return z;
|
|
1221
1235
|
if (t.mode === "datetime")
|
|
1222
1236
|
if (t.range) {
|
|
1223
|
-
const T =
|
|
1224
|
-
if (T &&
|
|
1225
|
-
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}`;
|
|
1226
1240
|
if (T)
|
|
1227
|
-
return `${
|
|
1241
|
+
return `${p(T)} ${G || ""}`.trim();
|
|
1228
1242
|
} else {
|
|
1229
|
-
const T =
|
|
1230
|
-
return `${
|
|
1243
|
+
const T = d.value.single, N = k.value.single;
|
|
1244
|
+
return `${p(T)} ${N || ""}`.trim();
|
|
1231
1245
|
}
|
|
1232
1246
|
return "";
|
|
1233
|
-
}),
|
|
1234
|
-
if (
|
|
1235
|
-
|
|
1247
|
+
}), Q = () => {
|
|
1248
|
+
if (m.value)
|
|
1249
|
+
d.value.single = m.value.value || null;
|
|
1236
1250
|
else if (i.value) {
|
|
1237
|
-
const
|
|
1238
|
-
if (typeof
|
|
1239
|
-
const [
|
|
1240
|
-
|
|
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;
|
|
1241
1255
|
} else
|
|
1242
|
-
|
|
1256
|
+
d.value.start = p || null, d.value.end = p || null;
|
|
1243
1257
|
}
|
|
1244
|
-
}, le = () =>
|
|
1258
|
+
}, le = () => d.value.start && d.value.end ? `${d.value.start}/${d.value.end}` : null, f = () => {
|
|
1245
1259
|
if (t.range) {
|
|
1246
|
-
const
|
|
1260
|
+
const z = d.value.start, T = d.value.end || d.value.start, N = k.value.from, G = k.value.to;
|
|
1247
1261
|
if (t.mode === "time")
|
|
1248
|
-
return
|
|
1262
|
+
return N && G ? { start: N, end: G } : null;
|
|
1249
1263
|
if (t.mode === "date")
|
|
1250
|
-
return
|
|
1264
|
+
return z && T ? { start: z, end: T } : null;
|
|
1251
1265
|
if (t.mode === "datetime") {
|
|
1252
|
-
if (!
|
|
1253
|
-
const ae =
|
|
1254
|
-
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 };
|
|
1255
1269
|
}
|
|
1256
1270
|
return null;
|
|
1257
1271
|
}
|
|
1258
|
-
const
|
|
1272
|
+
const p = d.value.single, w = k.value.single;
|
|
1259
1273
|
if (t.mode === "time")
|
|
1260
|
-
return
|
|
1274
|
+
return w || null;
|
|
1261
1275
|
if (t.mode === "date")
|
|
1262
|
-
return
|
|
1276
|
+
return p || null;
|
|
1263
1277
|
if (t.mode === "datetime") {
|
|
1264
|
-
if (!
|
|
1265
|
-
const
|
|
1266
|
-
return `${
|
|
1278
|
+
if (!p) return null;
|
|
1279
|
+
const z = w ? `${w}:00` : "00:00:00";
|
|
1280
|
+
return `${p}T${z}`;
|
|
1267
1281
|
}
|
|
1268
1282
|
return null;
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1272
|
-
s("update:modelValue",
|
|
1273
|
-
},
|
|
1274
|
-
|
|
1275
|
-
|
|
1283
|
+
}, b = async () => {
|
|
1284
|
+
Q();
|
|
1285
|
+
const p = f();
|
|
1286
|
+
s("update:modelValue", p), s("change", p);
|
|
1287
|
+
}, g = () => {
|
|
1288
|
+
me(() => {
|
|
1289
|
+
b();
|
|
1276
1290
|
});
|
|
1277
|
-
},
|
|
1278
|
-
const
|
|
1279
|
-
t.range ?
|
|
1280
|
-
},
|
|
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 = () => {
|
|
1281
1295
|
u.value = !u.value;
|
|
1282
|
-
},
|
|
1283
|
-
|
|
1284
|
-
},
|
|
1296
|
+
}, D = () => {
|
|
1297
|
+
b(), u.value = !1;
|
|
1298
|
+
}, x = (p) => {
|
|
1285
1299
|
!t.popup || !u.value || setTimeout(() => {
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1300
|
+
const w = a.value, z = p.target, T = `date-picker-${t.id}-popup`;
|
|
1301
|
+
w && !w.contains(z) && !p.target.closest(`#${T}`) && D();
|
|
1288
1302
|
}, 0);
|
|
1289
|
-
},
|
|
1290
|
-
|
|
1291
|
-
},
|
|
1292
|
-
|
|
1293
|
-
},
|
|
1303
|
+
}, j = () => {
|
|
1304
|
+
D();
|
|
1305
|
+
}, A = () => {
|
|
1306
|
+
b(), t.popup && (u.value = !1);
|
|
1307
|
+
}, te = () => {
|
|
1294
1308
|
if (!l) return;
|
|
1295
|
-
const
|
|
1296
|
-
|
|
1297
|
-
},
|
|
1309
|
+
const p = t.range ? i.value : m.value;
|
|
1310
|
+
p && typeof p.navigate == "function" && p.navigate(-1);
|
|
1311
|
+
}, de = () => {
|
|
1298
1312
|
if (!l) return;
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1313
|
+
const p = t.range ? i.value : m.value;
|
|
1314
|
+
p && typeof p.navigate == "function" && p.navigate(1);
|
|
1301
1315
|
};
|
|
1302
|
-
return
|
|
1303
|
-
l && import("./cally-ZU3K2Th7.js").catch((
|
|
1304
|
-
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);
|
|
1305
1319
|
}), F();
|
|
1306
|
-
}),
|
|
1307
|
-
if (await
|
|
1308
|
-
const
|
|
1309
|
-
|
|
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);
|
|
1310
1324
|
}
|
|
1311
1325
|
if (i.value) {
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1326
|
+
const w = le();
|
|
1327
|
+
w && i.value.value !== w && (i.value.value = w);
|
|
1314
1328
|
}
|
|
1315
|
-
|
|
1316
|
-
}, { immediate: !0, deep: !0 }),
|
|
1317
|
-
await
|
|
1318
|
-
}, { immediate: !0 }),
|
|
1319
|
-
|
|
1320
|
-
}, { immediate: !0 }), (
|
|
1321
|
-
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");
|
|
1322
1336
|
return o(), r("div", {
|
|
1323
1337
|
class: "inline-block relative w-fit lg:w-full",
|
|
1324
1338
|
ref_key: "pickerContainer",
|
|
1325
1339
|
ref: a,
|
|
1326
|
-
onMousedownCapture:
|
|
1340
|
+
onMousedownCapture: x
|
|
1327
1341
|
}, [
|
|
1328
1342
|
t.popup ? (o(), r("div", {
|
|
1329
1343
|
key: 0,
|
|
1330
1344
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1331
|
-
onClick:
|
|
1345
|
+
onClick: w[0] || (w[0] = (G) => t.disabled ? null : c())
|
|
1332
1346
|
}, [
|
|
1333
|
-
n("div",
|
|
1334
|
-
|
|
1347
|
+
n("div", Jt, [
|
|
1348
|
+
K.value ? (o(), r("span", Qt, L(K.value), 1)) : (o(), r("span", Zt, L(t.placeholder), 1))
|
|
1335
1349
|
])
|
|
1336
1350
|
])) : B("", !0),
|
|
1337
1351
|
u.value || !t.popup ? (o(), r("div", {
|
|
1338
1352
|
key: 1,
|
|
1339
|
-
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 }]),
|
|
1340
1354
|
id: `date-picker-${t.id}-popup`,
|
|
1341
1355
|
onKeydown: [
|
|
1342
|
-
|
|
1356
|
+
w[1] || (w[1] = pe(re(() => {
|
|
1343
1357
|
}, ["prevent", "stop"]), ["tab"])),
|
|
1344
|
-
|
|
1345
|
-
|
|
1358
|
+
pe(j, ["esc"]),
|
|
1359
|
+
pe(re(A, ["prevent"]), ["enter"])
|
|
1346
1360
|
]
|
|
1347
1361
|
}, [
|
|
1348
|
-
!t.range && t.mode !== "time" && l ? (o(),
|
|
1362
|
+
!t.range && t.mode !== "time" && l ? (o(), ve(T, {
|
|
1349
1363
|
key: 0,
|
|
1350
1364
|
class: "cally w-full",
|
|
1351
1365
|
ref_key: "datePicker",
|
|
1352
|
-
ref:
|
|
1366
|
+
ref: m,
|
|
1353
1367
|
id: `${t.id}-date`,
|
|
1354
1368
|
min: t.min,
|
|
1355
1369
|
max: t.max,
|
|
1356
1370
|
disabled: t.disabled,
|
|
1357
1371
|
"first-day-of-week": t.firstDayOfWeek,
|
|
1358
|
-
onChange:
|
|
1372
|
+
onChange: g
|
|
1359
1373
|
}, {
|
|
1360
|
-
default:
|
|
1374
|
+
default: Ce(() => [
|
|
1361
1375
|
n("button", {
|
|
1362
1376
|
slot: "previous",
|
|
1363
1377
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1364
|
-
onClick:
|
|
1365
|
-
}, [...
|
|
1378
|
+
onClick: te
|
|
1379
|
+
}, [...w[2] || (w[2] = [
|
|
1366
1380
|
n("svg", {
|
|
1367
1381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1368
1382
|
class: "w-4 h-4",
|
|
@@ -1381,8 +1395,8 @@ const ut = he("SunIcon", [
|
|
|
1381
1395
|
n("button", {
|
|
1382
1396
|
slot: "next",
|
|
1383
1397
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1384
|
-
onClick:
|
|
1385
|
-
}, [...
|
|
1398
|
+
onClick: de
|
|
1399
|
+
}, [...w[3] || (w[3] = [
|
|
1386
1400
|
n("svg", {
|
|
1387
1401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1388
1402
|
class: "w-4 h-4",
|
|
@@ -1398,13 +1412,13 @@ const ut = he("SunIcon", [
|
|
|
1398
1412
|
})
|
|
1399
1413
|
], -1)
|
|
1400
1414
|
])]),
|
|
1401
|
-
|
|
1415
|
+
ue(z, {
|
|
1402
1416
|
locale: t.locale
|
|
1403
1417
|
}, null, 8, ["locale"])
|
|
1404
1418
|
]),
|
|
1405
1419
|
_: 1
|
|
1406
1420
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : B("", !0),
|
|
1407
|
-
t.range && t.mode !== "time" && l ? (o(),
|
|
1421
|
+
t.range && t.mode !== "time" && l ? (o(), ve(N, {
|
|
1408
1422
|
key: 1,
|
|
1409
1423
|
class: "cally w-full",
|
|
1410
1424
|
ref_key: "rangeDatePicker",
|
|
@@ -1414,14 +1428,14 @@ const ut = he("SunIcon", [
|
|
|
1414
1428
|
max: t.max,
|
|
1415
1429
|
disabled: t.disabled,
|
|
1416
1430
|
"first-day-of-week": t.firstDayOfWeek,
|
|
1417
|
-
onChange:
|
|
1431
|
+
onChange: g
|
|
1418
1432
|
}, {
|
|
1419
|
-
default:
|
|
1433
|
+
default: Ce(() => [
|
|
1420
1434
|
n("button", {
|
|
1421
1435
|
slot: "previous",
|
|
1422
1436
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1423
|
-
onClick:
|
|
1424
|
-
}, [...
|
|
1437
|
+
onClick: te
|
|
1438
|
+
}, [...w[4] || (w[4] = [
|
|
1425
1439
|
n("svg", {
|
|
1426
1440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1427
1441
|
class: "w-4 h-4",
|
|
@@ -1440,8 +1454,8 @@ const ut = he("SunIcon", [
|
|
|
1440
1454
|
n("button", {
|
|
1441
1455
|
slot: "next",
|
|
1442
1456
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1443
|
-
onClick:
|
|
1444
|
-
}, [...
|
|
1457
|
+
onClick: de
|
|
1458
|
+
}, [...w[5] || (w[5] = [
|
|
1445
1459
|
n("svg", {
|
|
1446
1460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1447
1461
|
class: "w-4 h-4",
|
|
@@ -1457,28 +1471,28 @@ const ut = he("SunIcon", [
|
|
|
1457
1471
|
})
|
|
1458
1472
|
], -1)
|
|
1459
1473
|
])]),
|
|
1460
|
-
|
|
1474
|
+
ue(z, {
|
|
1461
1475
|
locale: t.locale
|
|
1462
1476
|
}, null, 8, ["locale"])
|
|
1463
1477
|
]),
|
|
1464
1478
|
_: 1
|
|
1465
1479
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : B("", !0),
|
|
1466
|
-
t.range && t.mode !== "date" ? (o(), r("div",
|
|
1467
|
-
n("div",
|
|
1468
|
-
n("div",
|
|
1480
|
+
t.range && t.mode !== "date" ? (o(), r("div", tl, [
|
|
1481
|
+
n("div", ll, [
|
|
1482
|
+
n("div", nl, [
|
|
1469
1483
|
n("input", {
|
|
1470
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",
|
|
1471
1485
|
type: "time",
|
|
1472
1486
|
ref_key: "timeFromInput",
|
|
1473
|
-
ref:
|
|
1487
|
+
ref: M,
|
|
1474
1488
|
id: `${t.id}-time-from`,
|
|
1475
1489
|
placeholder: "from",
|
|
1476
|
-
onChange:
|
|
1490
|
+
onChange: S,
|
|
1477
1491
|
disabled: t.disabled,
|
|
1478
1492
|
value: k.value.from || ""
|
|
1479
|
-
}, null, 40,
|
|
1493
|
+
}, null, 40, al)
|
|
1480
1494
|
]),
|
|
1481
|
-
|
|
1495
|
+
w[6] || (w[6] = n("svg", {
|
|
1482
1496
|
class: "join-item",
|
|
1483
1497
|
viewBox: "0 0 1024 1024",
|
|
1484
1498
|
focusable: "false",
|
|
@@ -1490,46 +1504,46 @@ const ut = he("SunIcon", [
|
|
|
1490
1504
|
}, [
|
|
1491
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" })
|
|
1492
1506
|
], -1)),
|
|
1493
|
-
n("div",
|
|
1507
|
+
n("div", ol, [
|
|
1494
1508
|
n("input", {
|
|
1495
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",
|
|
1496
1510
|
type: "time",
|
|
1497
1511
|
ref_key: "timeToInput",
|
|
1498
|
-
ref:
|
|
1512
|
+
ref: R,
|
|
1499
1513
|
id: `${t.id}-time-to`,
|
|
1500
|
-
onChange:
|
|
1514
|
+
onChange: S,
|
|
1501
1515
|
disabled: t.disabled,
|
|
1502
1516
|
value: k.value.to || ""
|
|
1503
|
-
}, null, 40,
|
|
1517
|
+
}, null, 40, sl)
|
|
1504
1518
|
])
|
|
1505
1519
|
])
|
|
1506
1520
|
])) : B("", !0),
|
|
1507
|
-
!t.range && t.mode !== "date" ? (o(), r("div",
|
|
1521
|
+
!t.range && t.mode !== "date" ? (o(), r("div", il, [
|
|
1508
1522
|
n("input", {
|
|
1509
1523
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1510
1524
|
type: "time",
|
|
1511
1525
|
ref_key: "timeInput",
|
|
1512
|
-
ref:
|
|
1526
|
+
ref: y,
|
|
1513
1527
|
id: `${t.id}-time`,
|
|
1514
|
-
onChange:
|
|
1528
|
+
onChange: S,
|
|
1515
1529
|
disabled: t.disabled,
|
|
1516
1530
|
value: k.value.single || ""
|
|
1517
|
-
}, null, 40,
|
|
1531
|
+
}, null, 40, rl)
|
|
1518
1532
|
])) : B("", !0),
|
|
1519
|
-
t.popup && t.closeText ? (o(), r("div",
|
|
1533
|
+
t.popup && t.closeText ? (o(), r("div", ul, [
|
|
1520
1534
|
n("button", {
|
|
1521
1535
|
class: "btn btn-primary max-lg:w-full",
|
|
1522
|
-
onClick:
|
|
1523
|
-
},
|
|
1536
|
+
onClick: D
|
|
1537
|
+
}, L(t.closeText), 1)
|
|
1524
1538
|
])) : B("", !0)
|
|
1525
|
-
], 42,
|
|
1539
|
+
], 42, el)) : B("", !0)
|
|
1526
1540
|
], 544);
|
|
1527
1541
|
};
|
|
1528
1542
|
}
|
|
1529
|
-
}),
|
|
1543
|
+
}), cl = /* @__PURE__ */ ge(dl, [["__scopeId", "data-v-e0b34494"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1530
1544
|
__proto__: null,
|
|
1531
|
-
default:
|
|
1532
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1545
|
+
default: cl
|
|
1546
|
+
}, Symbol.toStringTag, { value: "Module" })), fl = ["value", "checked", "onChange", "disabled"], Mn = /* @__PURE__ */ _({
|
|
1533
1547
|
__name: "rating",
|
|
1534
1548
|
props: {
|
|
1535
1549
|
initialRating: { default: 0 },
|
|
@@ -1542,8 +1556,8 @@ const ut = he("SunIcon", [
|
|
|
1542
1556
|
gap: { default: 0 }
|
|
1543
1557
|
},
|
|
1544
1558
|
setup(e) {
|
|
1545
|
-
const v = e, l =
|
|
1546
|
-
|
|
1559
|
+
const v = e, l = h(v.initialRating);
|
|
1560
|
+
q(
|
|
1547
1561
|
() => v.initialRating,
|
|
1548
1562
|
(s) => {
|
|
1549
1563
|
l.value = s;
|
|
@@ -1553,19 +1567,19 @@ const ut = he("SunIcon", [
|
|
|
1553
1567
|
l.value = s;
|
|
1554
1568
|
};
|
|
1555
1569
|
return (s, a) => (o(), r("div", {
|
|
1556
|
-
class:
|
|
1570
|
+
class: O(["rating", [
|
|
1557
1571
|
`rating-${v.size}`,
|
|
1558
1572
|
{ "rating-half": e.halfStars },
|
|
1559
1573
|
{ "pointer-events-none": !e.isInteractive }
|
|
1560
1574
|
]])
|
|
1561
1575
|
}, [
|
|
1562
|
-
(o(!0), r(
|
|
1576
|
+
(o(!0), r(W, null, Z(e.numberOfStars * (e.halfStars ? 2 : 1), (u) => (o(), r("input", {
|
|
1563
1577
|
key: u,
|
|
1564
1578
|
type: "radio",
|
|
1565
1579
|
value: e.halfStars ? u * 0.5 : u,
|
|
1566
1580
|
checked: l.value === (e.halfStars ? u * 0.5 : u),
|
|
1567
|
-
onChange: (
|
|
1568
|
-
class:
|
|
1581
|
+
onChange: (m) => e.isInteractive ? t(e.halfStars ? u * 0.5 : u) : null,
|
|
1582
|
+
class: O(["mask", [
|
|
1569
1583
|
{
|
|
1570
1584
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1571
1585
|
"mask-half-1": e.halfStars && u % 2 !== 0,
|
|
@@ -1588,14 +1602,14 @@ const ut = he("SunIcon", [
|
|
|
1588
1602
|
},
|
|
1589
1603
|
l.value >= (e.halfStars ? u * 0.5 : u) ? v.color : ""
|
|
1590
1604
|
]]),
|
|
1591
|
-
style:
|
|
1605
|
+
style: we({
|
|
1592
1606
|
marginRight: e.halfStars && u % 2 === 0 ? `${v.gap}px` : e.halfStars ? "0" : `${v.gap}px`
|
|
1593
1607
|
}),
|
|
1594
1608
|
disabled: !e.isInteractive
|
|
1595
|
-
}, null, 46,
|
|
1609
|
+
}, null, 46, fl))), 128))
|
|
1596
1610
|
], 2));
|
|
1597
1611
|
}
|
|
1598
|
-
}),
|
|
1612
|
+
}), ml = { class: "badge" }, pl = ["onClick"], hl = { class: "opacity-75" }, gl = ["placeholder"], zn = /* @__PURE__ */ _({
|
|
1599
1613
|
__name: "taginput",
|
|
1600
1614
|
props: {
|
|
1601
1615
|
modelValue: {},
|
|
@@ -1605,60 +1619,60 @@ const ut = he("SunIcon", [
|
|
|
1605
1619
|
},
|
|
1606
1620
|
emits: ["update:modelValue"],
|
|
1607
1621
|
setup(e, { emit: v }) {
|
|
1608
|
-
const l = e, t = v, s =
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1611
|
-
},
|
|
1612
|
-
s.value = s.value.filter((
|
|
1613
|
-
},
|
|
1614
|
-
|
|
1615
|
-
}, k = (
|
|
1616
|
-
|
|
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();
|
|
1617
1631
|
};
|
|
1618
|
-
return
|
|
1619
|
-
s.value = [...
|
|
1620
|
-
}), (
|
|
1621
|
-
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])
|
|
1622
1636
|
}, [
|
|
1623
|
-
(o(!0), r(
|
|
1624
|
-
key:
|
|
1625
|
-
tag:
|
|
1637
|
+
(o(!0), r(W, null, Z(s.value, (C) => E(d.$slots, "tag", {
|
|
1638
|
+
key: C,
|
|
1639
|
+
tag: C
|
|
1626
1640
|
}, () => [
|
|
1627
|
-
n("div",
|
|
1641
|
+
n("div", ml, [
|
|
1628
1642
|
n("button", {
|
|
1629
1643
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1630
|
-
onClick: (
|
|
1644
|
+
onClick: (H) => M(C),
|
|
1631
1645
|
"aria-label": "Remove tag"
|
|
1632
|
-
}, "X", 8,
|
|
1633
|
-
n("span",
|
|
1646
|
+
}, "X", 8, pl),
|
|
1647
|
+
n("span", hl, L(C), 1)
|
|
1634
1648
|
])
|
|
1635
1649
|
])), 128)),
|
|
1636
|
-
E(
|
|
1637
|
-
i.value ?
|
|
1650
|
+
E(d.$slots, "input", { showInput: i.value }, () => [
|
|
1651
|
+
i.value ? Se((o(), r("input", {
|
|
1638
1652
|
key: 0,
|
|
1639
1653
|
ref_key: "inputRef",
|
|
1640
1654
|
ref: u,
|
|
1641
|
-
"onUpdate:modelValue":
|
|
1655
|
+
"onUpdate:modelValue": V[0] || (V[0] = (C) => m.value = C),
|
|
1642
1656
|
type: "text",
|
|
1643
1657
|
placeholder: e.placeholder || "Type here",
|
|
1644
1658
|
class: "h-full input input-ghost",
|
|
1645
1659
|
onKeydown: k,
|
|
1646
1660
|
"aria-label": "Add tags"
|
|
1647
|
-
}, null, 40,
|
|
1648
|
-
[
|
|
1661
|
+
}, null, 40, gl)), [
|
|
1662
|
+
[Ne, m.value]
|
|
1649
1663
|
]) : B("", !0)
|
|
1650
1664
|
])
|
|
1651
1665
|
], 2));
|
|
1652
1666
|
}
|
|
1653
|
-
}),
|
|
1667
|
+
}), yl = { class: "w-full max-w-xs form-control" }, bl = {
|
|
1654
1668
|
key: 0,
|
|
1655
1669
|
class: "label"
|
|
1656
|
-
},
|
|
1670
|
+
}, wl = { class: "label-text" }, xl = ["value"], kl = {
|
|
1657
1671
|
key: 0,
|
|
1658
1672
|
value: "",
|
|
1659
1673
|
disabled: "",
|
|
1660
1674
|
selected: ""
|
|
1661
|
-
},
|
|
1675
|
+
}, $l = ["value"], Tn = /* @__PURE__ */ _({
|
|
1662
1676
|
__name: "select",
|
|
1663
1677
|
props: {
|
|
1664
1678
|
options: {},
|
|
@@ -1669,9 +1683,9 @@ const ut = he("SunIcon", [
|
|
|
1669
1683
|
emits: ["update:modelValue"],
|
|
1670
1684
|
setup(e, { expose: v, emit: l }) {
|
|
1671
1685
|
console.log(e.placeholder);
|
|
1672
|
-
const s = l, a =
|
|
1673
|
-
const
|
|
1674
|
-
s("update:modelValue",
|
|
1686
|
+
const s = l, a = h(null), u = (i) => {
|
|
1687
|
+
const y = i.target;
|
|
1688
|
+
s("update:modelValue", y.value);
|
|
1675
1689
|
};
|
|
1676
1690
|
return v({
|
|
1677
1691
|
focusInput: () => {
|
|
@@ -1680,9 +1694,9 @@ const ut = he("SunIcon", [
|
|
|
1680
1694
|
}
|
|
1681
1695
|
// You can expose other properties or methods here if needed by the parent
|
|
1682
1696
|
// e.g., the current value: modelValue
|
|
1683
|
-
}), (i,
|
|
1684
|
-
e.label ? (o(), r("label",
|
|
1685
|
-
n("span",
|
|
1697
|
+
}), (i, y) => (o(), r("div", yl, [
|
|
1698
|
+
e.label ? (o(), r("label", bl, [
|
|
1699
|
+
n("span", wl, L(e.label), 1)
|
|
1686
1700
|
])) : B("", !0),
|
|
1687
1701
|
n("select", {
|
|
1688
1702
|
ref_key: "selectElement",
|
|
@@ -1691,21 +1705,21 @@ const ut = he("SunIcon", [
|
|
|
1691
1705
|
value: e.modelValue,
|
|
1692
1706
|
onChange: u
|
|
1693
1707
|
}, [
|
|
1694
|
-
e.placeholder ? (o(), r("option",
|
|
1695
|
-
(o(!0), r(
|
|
1696
|
-
key:
|
|
1697
|
-
value:
|
|
1698
|
-
},
|
|
1699
|
-
], 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)
|
|
1700
1714
|
]));
|
|
1701
1715
|
}
|
|
1702
|
-
}),
|
|
1716
|
+
}), Sl = {
|
|
1703
1717
|
key: 0,
|
|
1704
1718
|
class: "label"
|
|
1705
|
-
},
|
|
1719
|
+
}, Cl = { class: "label-text" }, Il = ["onKeydown", "aria-expanded", "aria-activedescendant"], Ml = ["placeholder", "disabled"], zl = {
|
|
1706
1720
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1707
1721
|
role: "listbox"
|
|
1708
|
-
},
|
|
1722
|
+
}, Tl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Bl = ["onMousedown", "id", "aria-selected"], Bn = {
|
|
1709
1723
|
__name: "filterableSelect",
|
|
1710
1724
|
props: {
|
|
1711
1725
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1736,194 +1750,194 @@ const ut = he("SunIcon", [
|
|
|
1736
1750
|
},
|
|
1737
1751
|
emits: ["update:modelValue", "select", "clear"],
|
|
1738
1752
|
setup(e, { expose: v, emit: l }) {
|
|
1739
|
-
const t = e, s = l, a =
|
|
1740
|
-
const
|
|
1741
|
-
return console.log("hasDefaultSlotContent computed:",
|
|
1742
|
-
}),
|
|
1743
|
-
|
|
1744
|
-
},
|
|
1745
|
-
|
|
1746
|
-
},
|
|
1747
|
-
|
|
1748
|
-
}, F =
|
|
1749
|
-
const
|
|
1750
|
-
return
|
|
1751
|
-
(
|
|
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) : ""
|
|
1752
1766
|
);
|
|
1753
1767
|
});
|
|
1754
|
-
|
|
1768
|
+
q(
|
|
1755
1769
|
() => t.modelValue,
|
|
1756
|
-
(
|
|
1757
|
-
if (
|
|
1758
|
-
i.value = null, !
|
|
1770
|
+
(c, D) => {
|
|
1771
|
+
if (c !== D && C(), c == null)
|
|
1772
|
+
i.value = null, !y.value && !u.value && (m.value = "");
|
|
1759
1773
|
else {
|
|
1760
|
-
const
|
|
1761
|
-
|
|
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 = ""));
|
|
1762
1776
|
}
|
|
1763
1777
|
},
|
|
1764
1778
|
{ immediate: !0 }
|
|
1765
1779
|
// Run immediately on component mount
|
|
1766
1780
|
);
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
},
|
|
1781
|
+
const K = (c) => {
|
|
1782
|
+
R.value && !R.value.contains(c.target) && C();
|
|
1783
|
+
}, Q = () => {
|
|
1770
1784
|
setTimeout(() => {
|
|
1771
|
-
|
|
1785
|
+
R.value && !R.value.contains(document.activeElement) && C();
|
|
1772
1786
|
}, 100);
|
|
1773
1787
|
};
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
document.addEventListener("click",
|
|
1777
|
-
}, 0) : document.removeEventListener("click",
|
|
1778
|
-
}),
|
|
1779
|
-
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);
|
|
1780
1794
|
});
|
|
1781
1795
|
const le = () => {
|
|
1782
1796
|
if (t.disabled) return;
|
|
1783
|
-
const
|
|
1784
|
-
s("update:modelValue", null),
|
|
1785
|
-
}, f = (
|
|
1786
|
-
i.value =
|
|
1787
|
-
},
|
|
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 = () => {
|
|
1788
1802
|
F.value.length > 0 && f(F.value[0]);
|
|
1789
|
-
},
|
|
1790
|
-
|
|
1791
|
-
},
|
|
1792
|
-
if (!
|
|
1793
|
-
const
|
|
1794
|
-
(
|
|
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
|
|
1795
1809
|
);
|
|
1796
|
-
let
|
|
1797
|
-
if (
|
|
1798
|
-
|
|
1799
|
-
else if (
|
|
1800
|
-
|
|
1801
|
-
else if (
|
|
1802
|
-
|
|
1803
|
-
const
|
|
1804
|
-
(
|
|
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
|
|
1805
1819
|
);
|
|
1806
|
-
|
|
1820
|
+
j && f(j);
|
|
1807
1821
|
return;
|
|
1808
|
-
} else if (
|
|
1809
|
-
|
|
1822
|
+
} else if (c.key === "Escape") {
|
|
1823
|
+
c.preventDefault(), C(), k.value && k.value.focus();
|
|
1810
1824
|
return;
|
|
1811
1825
|
} else if (u.value)
|
|
1812
1826
|
return;
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1817
|
-
|
|
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" });
|
|
1818
1832
|
});
|
|
1819
1833
|
}
|
|
1820
1834
|
};
|
|
1821
|
-
return
|
|
1822
|
-
|
|
1823
|
-
}),
|
|
1824
|
-
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);
|
|
1825
1839
|
}), v({
|
|
1826
|
-
isDropdownOpen:
|
|
1840
|
+
isDropdownOpen: y,
|
|
1827
1841
|
// Expose state
|
|
1828
1842
|
selectedItem: i,
|
|
1829
1843
|
// Expose selected item
|
|
1830
|
-
openDropdown:
|
|
1844
|
+
openDropdown: V,
|
|
1831
1845
|
// Expose method to open
|
|
1832
|
-
closeDropdown:
|
|
1846
|
+
closeDropdown: C,
|
|
1833
1847
|
// Expose method to close
|
|
1834
|
-
toggleDropdown:
|
|
1848
|
+
toggleDropdown: H,
|
|
1835
1849
|
// Expose method to toggle
|
|
1836
1850
|
selectItem: f,
|
|
1837
1851
|
// Expose method to select an item programmatically
|
|
1838
|
-
filterText:
|
|
1852
|
+
filterText: m,
|
|
1839
1853
|
// Expose filter text (useful if parent controls filtering)
|
|
1840
1854
|
hasDefaultSlotContent: u
|
|
1841
1855
|
// Expose to know if the default slot is used
|
|
1842
|
-
}), (
|
|
1856
|
+
}), (c, D) => (o(), r("div", {
|
|
1843
1857
|
class: "relative w-full max-w-xs form-control",
|
|
1844
1858
|
ref_key: "componentRoot",
|
|
1845
|
-
ref:
|
|
1859
|
+
ref: R
|
|
1846
1860
|
}, [
|
|
1847
|
-
e.label ? (o(), r("label",
|
|
1848
|
-
n("span",
|
|
1861
|
+
e.label ? (o(), r("label", Sl, [
|
|
1862
|
+
n("span", Cl, L(e.label), 1)
|
|
1849
1863
|
])) : B("", !0),
|
|
1850
1864
|
n("div", {
|
|
1851
|
-
class:
|
|
1852
|
-
style:
|
|
1865
|
+
class: O(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !u.value, select: !u.value }]),
|
|
1866
|
+
style: we(
|
|
1853
1867
|
i.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1854
1868
|
),
|
|
1855
1869
|
tabindex: "0",
|
|
1856
|
-
onClick:
|
|
1870
|
+
onClick: D[1] || (D[1] = (x) => u.value ? H() : V()),
|
|
1857
1871
|
onKeydown: [
|
|
1858
|
-
|
|
1859
|
-
|
|
1872
|
+
pe(re(b, ["prevent"]), ["enter"]),
|
|
1873
|
+
pe(re(b, ["prevent"]), ["space"])
|
|
1860
1874
|
],
|
|
1861
|
-
onBlur:
|
|
1875
|
+
onBlur: Q,
|
|
1862
1876
|
role: "combobox",
|
|
1863
1877
|
"aria-haspopup": "listbox",
|
|
1864
|
-
"aria-expanded":
|
|
1865
|
-
"aria-activedescendant":
|
|
1878
|
+
"aria-expanded": y.value,
|
|
1879
|
+
"aria-activedescendant": d.value,
|
|
1866
1880
|
"aria-autocomplete": "list",
|
|
1867
1881
|
ref_key: "activatorWrapper",
|
|
1868
1882
|
ref: k
|
|
1869
1883
|
}, [
|
|
1870
|
-
E(
|
|
1871
|
-
u.value ? B("", !0) :
|
|
1884
|
+
E(c.$slots, "default", {}, () => [
|
|
1885
|
+
u.value ? B("", !0) : Se((o(), r("input", {
|
|
1872
1886
|
key: 0,
|
|
1873
1887
|
type: "text",
|
|
1874
1888
|
placeholder: e.placeholder,
|
|
1875
1889
|
class: "bg-transparent border-none focus:outline-none w-full",
|
|
1876
|
-
"onUpdate:modelValue":
|
|
1890
|
+
"onUpdate:modelValue": D[0] || (D[0] = (x) => m.value = x),
|
|
1877
1891
|
ref_key: "filterInput",
|
|
1878
|
-
ref:
|
|
1879
|
-
onFocus:
|
|
1880
|
-
onInput:
|
|
1892
|
+
ref: M,
|
|
1893
|
+
onFocus: V,
|
|
1894
|
+
onInput: g,
|
|
1881
1895
|
tabindex: "-1",
|
|
1882
1896
|
disabled: t.disabled
|
|
1883
|
-
}, null, 40,
|
|
1884
|
-
[
|
|
1897
|
+
}, null, 40, Ml)), [
|
|
1898
|
+
[Ne, m.value]
|
|
1885
1899
|
])
|
|
1886
1900
|
]),
|
|
1887
|
-
i.value && !e.disabled ? (o(),
|
|
1901
|
+
i.value && !e.disabled ? (o(), ve(se(ut), {
|
|
1888
1902
|
key: 0,
|
|
1889
1903
|
size: 20,
|
|
1890
1904
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1891
|
-
onClick:
|
|
1905
|
+
onClick: re(le, ["stop"])
|
|
1892
1906
|
})) : B("", !0),
|
|
1893
|
-
u.value && !i.value ? (o(),
|
|
1907
|
+
u.value && !i.value ? (o(), ve(se(rt), {
|
|
1894
1908
|
key: 1,
|
|
1895
|
-
class:
|
|
1909
|
+
class: O([{ "rotate-180": y.value }, "mx-2"]),
|
|
1896
1910
|
size: 20
|
|
1897
1911
|
}, null, 8, ["class"])) : B("", !0)
|
|
1898
|
-
], 46,
|
|
1899
|
-
|
|
1900
|
-
n("ul",
|
|
1901
|
-
(o(!0), r(
|
|
1902
|
-
key:
|
|
1903
|
-
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"]),
|
|
1904
1918
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1905
|
-
id: "option-" +
|
|
1919
|
+
id: "option-" + j,
|
|
1906
1920
|
role: "option",
|
|
1907
|
-
"aria-selected": i.value && i.value.value ===
|
|
1921
|
+
"aria-selected": i.value && i.value.value === x.value
|
|
1908
1922
|
}, [
|
|
1909
|
-
n("a", null,
|
|
1910
|
-
], 40,
|
|
1923
|
+
n("a", null, L(x.text), 1)
|
|
1924
|
+
], 40, Bl))), 128))
|
|
1911
1925
|
])
|
|
1912
1926
|
], 512), [
|
|
1913
|
-
[
|
|
1927
|
+
[Je, y.value && F.value.length > 0]
|
|
1914
1928
|
])
|
|
1915
1929
|
], 512));
|
|
1916
1930
|
}
|
|
1917
|
-
},
|
|
1931
|
+
}, Ol = { class: "w-full max-w-xs form-control" }, Dl = {
|
|
1918
1932
|
key: 0,
|
|
1919
1933
|
class: "label"
|
|
1920
|
-
},
|
|
1934
|
+
}, Vl = { class: "label-text" }, El = ["type", "placeholder", "disabled", "value"], Ll = {
|
|
1921
1935
|
key: 1,
|
|
1922
1936
|
class: "label"
|
|
1923
|
-
},
|
|
1937
|
+
}, jl = { class: "label-text-alt text-error validator-hint" }, Pl = {
|
|
1924
1938
|
key: 2,
|
|
1925
1939
|
class: "label"
|
|
1926
|
-
},
|
|
1940
|
+
}, Al = { class: "label-text-alt text-success validator-hint" }, On = /* @__PURE__ */ _({
|
|
1927
1941
|
__name: "inputField",
|
|
1928
1942
|
props: {
|
|
1929
1943
|
modelValue: { default: "" },
|
|
@@ -1940,42 +1954,42 @@ const ut = he("SunIcon", [
|
|
|
1940
1954
|
},
|
|
1941
1955
|
emits: ["update:modelValue", "validate"],
|
|
1942
1956
|
setup(e, { expose: v, emit: l }) {
|
|
1943
|
-
const t = e, s = l, a =
|
|
1944
|
-
var
|
|
1945
|
-
let
|
|
1946
|
-
const
|
|
1947
|
-
return (
|
|
1948
|
-
}),
|
|
1949
|
-
const
|
|
1950
|
-
s("update:modelValue",
|
|
1951
|
-
},
|
|
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 = () => {
|
|
1952
1966
|
u.value = !0, i.value;
|
|
1953
1967
|
};
|
|
1954
|
-
return
|
|
1968
|
+
return q(
|
|
1955
1969
|
() => t.modelValue,
|
|
1956
1970
|
() => {
|
|
1957
1971
|
u.value && i.value;
|
|
1958
1972
|
}
|
|
1959
1973
|
), v({
|
|
1960
1974
|
focusInput: () => {
|
|
1961
|
-
var
|
|
1962
|
-
console.log("inputField.vue: focusInput method called."), (
|
|
1975
|
+
var d;
|
|
1976
|
+
console.log("inputField.vue: focusInput method called."), (d = a.value) == null || d.focus();
|
|
1963
1977
|
},
|
|
1964
1978
|
isValid: i,
|
|
1965
1979
|
isTouched: u,
|
|
1966
|
-
errorMessage:
|
|
1967
|
-
}), (
|
|
1968
|
-
e.label ? (o(), r("label",
|
|
1969
|
-
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)
|
|
1970
1984
|
])) : B("", !0),
|
|
1971
|
-
E(
|
|
1985
|
+
E(d.$slots, "default"),
|
|
1972
1986
|
n("input", {
|
|
1973
1987
|
ref_key: "inputElement",
|
|
1974
1988
|
ref: a,
|
|
1975
1989
|
type: e.type,
|
|
1976
1990
|
placeholder: e.placeholder,
|
|
1977
1991
|
disabled: t.disabled,
|
|
1978
|
-
class:
|
|
1992
|
+
class: O(["input-bordered rounded-md w-full input validator", [
|
|
1979
1993
|
{
|
|
1980
1994
|
// Size classes - Apply based on size prop
|
|
1981
1995
|
"input-xs": e.size === "xs",
|
|
@@ -1987,33 +2001,33 @@ const ut = he("SunIcon", [
|
|
|
1987
2001
|
"input-ghost": e.style === "ghost",
|
|
1988
2002
|
// Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
|
|
1989
2003
|
// This ensures validation feedback overrides base colors.
|
|
1990
|
-
"input-neutral": e.color === "neutral" && !
|
|
1991
|
-
"input-primary": e.color === "primary" && !
|
|
1992
|
-
"input-secondary": e.color === "secondary" && !
|
|
1993
|
-
"input-accent": e.color === "accent" && !
|
|
1994
|
-
"input-info": e.color === "info" && !
|
|
1995
|
-
"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),
|
|
1996
2010
|
// Color success applies only if not in error or validation success state
|
|
1997
|
-
"input-warning": e.color === "warning" && !
|
|
2011
|
+
"input-warning": e.color === "warning" && !y.value && !(i.value && u.value && e.needsValidation),
|
|
1998
2012
|
// Validation state classes - These take precedence visually via conditions or CSS specificity.
|
|
1999
|
-
"input-error":
|
|
2013
|
+
"input-error": y.value,
|
|
2000
2014
|
// Apply error style if validation fails
|
|
2001
|
-
"input-success-validation": i.value && u.value && !
|
|
2015
|
+
"input-success-validation": i.value && u.value && !y.value && e.needsValidation
|
|
2002
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.
|
|
2003
2017
|
}
|
|
2004
2018
|
]]),
|
|
2005
2019
|
value: e.modelValue,
|
|
2006
|
-
onInput:
|
|
2007
|
-
onBlur:
|
|
2008
|
-
}, null, 42,
|
|
2009
|
-
|
|
2010
|
-
n("span",
|
|
2011
|
-
])) : i.value && u.value && e.successMessage ? (o(), r("div",
|
|
2012
|
-
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)
|
|
2013
2027
|
])) : B("", !0)
|
|
2014
2028
|
]));
|
|
2015
2029
|
}
|
|
2016
|
-
}),
|
|
2030
|
+
}), Dn = /* @__PURE__ */ _({
|
|
2017
2031
|
__name: "loader",
|
|
2018
2032
|
props: {
|
|
2019
2033
|
loading: { type: Boolean, default: !0 },
|
|
@@ -2022,15 +2036,15 @@ const ut = he("SunIcon", [
|
|
|
2022
2036
|
color: { default: "primary" }
|
|
2023
2037
|
},
|
|
2024
2038
|
setup(e) {
|
|
2025
|
-
const v = e, l =
|
|
2026
|
-
return
|
|
2039
|
+
const v = e, l = h(v.loading);
|
|
2040
|
+
return q(
|
|
2027
2041
|
() => v.loading,
|
|
2028
2042
|
(t) => {
|
|
2029
2043
|
l.value = t;
|
|
2030
2044
|
}
|
|
2031
2045
|
), (t, s) => l.value ? (o(), r("span", {
|
|
2032
2046
|
key: 0,
|
|
2033
|
-
class:
|
|
2047
|
+
class: O(["loading", [
|
|
2034
2048
|
{ "loading-xs": e.size === "xs" },
|
|
2035
2049
|
{ "loading-sm": e.size === "sm" },
|
|
2036
2050
|
{ "loading-md": e.size === "md" },
|
|
@@ -2055,13 +2069,13 @@ const ut = he("SunIcon", [
|
|
|
2055
2069
|
]])
|
|
2056
2070
|
}, null, 2)) : B("", !0);
|
|
2057
2071
|
}
|
|
2058
|
-
}),
|
|
2072
|
+
}), Rl = { class: "footer sm:footer-horizontal container" }, Nl = { class: "footer-title" }, _l = ["href"], Fl = {
|
|
2059
2073
|
key: 0,
|
|
2060
2074
|
class: "sm:hidden w-full"
|
|
2061
|
-
},
|
|
2075
|
+
}, ql = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Ul = {
|
|
2062
2076
|
tabindex: "0",
|
|
2063
2077
|
class: "collapse collapse-plus w-full"
|
|
2064
|
-
},
|
|
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__ */ _({
|
|
2065
2079
|
__name: "footer",
|
|
2066
2080
|
props: {
|
|
2067
2081
|
items: {},
|
|
@@ -2072,49 +2086,49 @@ const ut = he("SunIcon", [
|
|
|
2072
2086
|
setup(e) {
|
|
2073
2087
|
const v = e;
|
|
2074
2088
|
return (l, t) => (o(), r("div", {
|
|
2075
|
-
class:
|
|
2089
|
+
class: O(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2076
2090
|
}, [
|
|
2077
|
-
n("footer",
|
|
2078
|
-
(o(!0), r(
|
|
2079
|
-
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 }])
|
|
2080
2094
|
}, [
|
|
2081
|
-
n("h6",
|
|
2082
|
-
(o(!0), r(
|
|
2095
|
+
n("h6", Nl, L(s.title), 1),
|
|
2096
|
+
(o(!0), r(W, null, Z(s.items, (a) => (o(), r("a", {
|
|
2083
2097
|
class: "link link-hover",
|
|
2084
2098
|
href: a.link
|
|
2085
|
-
},
|
|
2099
|
+
}, L(a.text), 9, _l))), 256))
|
|
2086
2100
|
], 2))), 256)),
|
|
2087
|
-
e.collapseOnMobile ? (o(), r("nav",
|
|
2088
|
-
(o(!0), r(
|
|
2089
|
-
n("div",
|
|
2090
|
-
n("div",
|
|
2091
|
-
n("div",
|
|
2092
|
-
n("ul",
|
|
2093
|
-
(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, [
|
|
2094
2108
|
n("a", {
|
|
2095
2109
|
class: "w-full font-medium link link-hover",
|
|
2096
2110
|
href: a.link
|
|
2097
|
-
},
|
|
2111
|
+
}, L(a.text), 9, Yl)
|
|
2098
2112
|
]))), 256))
|
|
2099
2113
|
])
|
|
2100
2114
|
])
|
|
2101
2115
|
])
|
|
2102
2116
|
]))), 256))
|
|
2103
2117
|
])) : B("", !0),
|
|
2104
|
-
n("aside",
|
|
2118
|
+
n("aside", Gl, [
|
|
2105
2119
|
E(l.$slots, "default")
|
|
2106
2120
|
])
|
|
2107
2121
|
])
|
|
2108
2122
|
], 2));
|
|
2109
2123
|
}
|
|
2110
|
-
}),
|
|
2111
|
-
function
|
|
2112
|
-
return o(), r("div",
|
|
2113
|
-
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, [
|
|
2114
2128
|
n("div", null, [
|
|
2115
|
-
n("h1",
|
|
2129
|
+
n("h1", en, [
|
|
2116
2130
|
E(e.$slots, "title", {}, () => [
|
|
2117
|
-
v[0] || (v[0] =
|
|
2131
|
+
v[0] || (v[0] = Re("hero title", -1))
|
|
2118
2132
|
])
|
|
2119
2133
|
]),
|
|
2120
2134
|
n("p", null, [
|
|
@@ -2127,7 +2141,7 @@ function Ql(e, v) {
|
|
|
2127
2141
|
])
|
|
2128
2142
|
]);
|
|
2129
2143
|
}
|
|
2130
|
-
const
|
|
2144
|
+
const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-row place-content-center gap-4 categories" }, nn = ["onClick"], Ln = /* @__PURE__ */ _({
|
|
2131
2145
|
__name: "categoryNavigation",
|
|
2132
2146
|
props: {
|
|
2133
2147
|
searchOptions: {},
|
|
@@ -2139,18 +2153,18 @@ const On = /* @__PURE__ */ me(Yl, [["render", Ql]]), en = { class: "flex flex-ro
|
|
|
2139
2153
|
function s(a) {
|
|
2140
2154
|
t("update:currentCategory", a);
|
|
2141
2155
|
}
|
|
2142
|
-
return (a, u) => (o(), r("div",
|
|
2143
|
-
(o(!0), r(
|
|
2144
|
-
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
|
|
2145
2159
|
}, [
|
|
2146
2160
|
n("button", {
|
|
2147
|
-
onClick: (i) => s(
|
|
2148
|
-
class:
|
|
2149
|
-
},
|
|
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)
|
|
2150
2164
|
]))), 128))
|
|
2151
2165
|
]));
|
|
2152
2166
|
}
|
|
2153
|
-
}),
|
|
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__ */ _({
|
|
2154
2168
|
__name: "navigationBar",
|
|
2155
2169
|
props: {
|
|
2156
2170
|
isCollapsed: { type: Boolean, default: !0 }
|
|
@@ -2158,30 +2172,30 @@ const On = /* @__PURE__ */ me(Yl, [["render", Ql]]), en = { class: "flex flex-ro
|
|
|
2158
2172
|
setup(e) {
|
|
2159
2173
|
const v = e;
|
|
2160
2174
|
return (l, t) => (o(), r("nav", {
|
|
2161
|
-
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" : ""])
|
|
2162
2176
|
}, [
|
|
2163
|
-
n("div",
|
|
2177
|
+
n("div", an, [
|
|
2164
2178
|
E(l.$slots, "start", {}, void 0, !0)
|
|
2165
2179
|
]),
|
|
2166
|
-
n("div",
|
|
2180
|
+
n("div", on, [
|
|
2167
2181
|
E(l.$slots, "center", {}, void 0, !0)
|
|
2168
2182
|
]),
|
|
2169
|
-
n("div",
|
|
2183
|
+
n("div", sn, [
|
|
2170
2184
|
E(l.$slots, "end", {}, void 0, !0)
|
|
2171
2185
|
]),
|
|
2172
|
-
n("div",
|
|
2186
|
+
n("div", rn, [
|
|
2173
2187
|
E(l.$slots, "bottom", {}, void 0, !0)
|
|
2174
2188
|
])
|
|
2175
2189
|
], 2));
|
|
2176
2190
|
}
|
|
2177
|
-
}),
|
|
2191
|
+
}), jn = /* @__PURE__ */ ge(un, [["__scopeId", "data-v-8ddb2b45"]]), dn = {
|
|
2178
2192
|
key: 0,
|
|
2179
2193
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
2180
|
-
},
|
|
2194
|
+
}, cn = ["onClick", "aria-selected"], vn = {
|
|
2181
2195
|
key: 0,
|
|
2182
2196
|
role: "tabpanel",
|
|
2183
2197
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
2184
|
-
},
|
|
2198
|
+
}, fn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, Pn = /* @__PURE__ */ _({
|
|
2185
2199
|
__name: "tab",
|
|
2186
2200
|
props: {
|
|
2187
2201
|
items: {},
|
|
@@ -2191,53 +2205,53 @@ const On = /* @__PURE__ */ me(Yl, [["render", Ql]]), en = { class: "flex flex-ro
|
|
|
2191
2205
|
},
|
|
2192
2206
|
emits: ["tab-changed"],
|
|
2193
2207
|
setup(e, { emit: v }) {
|
|
2194
|
-
const l = e, t =
|
|
2208
|
+
const l = e, t = h(l.items[0]), s = v;
|
|
2195
2209
|
function a(i) {
|
|
2196
2210
|
t.value = i, s("tab-changed", i);
|
|
2197
2211
|
}
|
|
2198
2212
|
function u() {
|
|
2199
|
-
const
|
|
2200
|
-
a(l.items[
|
|
2213
|
+
const y = (l.items.indexOf(t.value) + 1) % l.items.length;
|
|
2214
|
+
a(l.items[y]);
|
|
2201
2215
|
}
|
|
2202
|
-
function
|
|
2203
|
-
const
|
|
2204
|
-
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]);
|
|
2205
2219
|
}
|
|
2206
|
-
return
|
|
2220
|
+
return he(() => {
|
|
2207
2221
|
l.items && a(l.items[0]);
|
|
2208
|
-
}),
|
|
2222
|
+
}), Ve(() => {
|
|
2209
2223
|
l.rotateTabsAfter && l.rotateTabsAfter > 0 && setInterval(() => {
|
|
2210
2224
|
u();
|
|
2211
2225
|
}, l.rotateTabsAfter * 1e3);
|
|
2212
|
-
}), (i,
|
|
2226
|
+
}), (i, y) => (o(), r(W, null, [
|
|
2213
2227
|
n("div", {
|
|
2214
2228
|
role: "tablist",
|
|
2215
|
-
class:
|
|
2229
|
+
class: O(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2216
2230
|
}, [
|
|
2217
|
-
e.withControlls ? (o(), r("div",
|
|
2231
|
+
e.withControlls ? (o(), r("div", dn, [
|
|
2218
2232
|
n("button", {
|
|
2219
|
-
onClick:
|
|
2233
|
+
onClick: y[0] || (y[0] = (M) => m()),
|
|
2220
2234
|
class: "cursor-pointer"
|
|
2221
2235
|
}, "Previous"),
|
|
2222
2236
|
n("button", {
|
|
2223
|
-
onClick:
|
|
2237
|
+
onClick: y[1] || (y[1] = (M) => u()),
|
|
2224
2238
|
class: "text-primary cursor-pointer"
|
|
2225
2239
|
}, "Next")
|
|
2226
2240
|
])) : B("", !0),
|
|
2227
|
-
(o(!0), r(
|
|
2241
|
+
(o(!0), r(W, null, Z(e.items, (M) => (o(), r(W, null, [
|
|
2228
2242
|
n("a", {
|
|
2229
2243
|
type: "button",
|
|
2230
2244
|
role: "tab",
|
|
2231
|
-
class:
|
|
2232
|
-
onClick: (
|
|
2233
|
-
"aria-selected": t.value ==
|
|
2234
|
-
},
|
|
2235
|
-
e.buttonOnlyMode ? B("", !0) : (o(), r("div",
|
|
2236
|
-
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`)
|
|
2237
2251
|
]))
|
|
2238
2252
|
], 64))), 256))
|
|
2239
2253
|
], 2),
|
|
2240
|
-
n("div",
|
|
2254
|
+
n("div", fn, [
|
|
2241
2255
|
E(i.$slots, "default")
|
|
2242
2256
|
])
|
|
2243
2257
|
], 64));
|
|
@@ -2246,28 +2260,28 @@ const On = /* @__PURE__ */ me(Yl, [["render", Ql]]), en = { class: "flex flex-ro
|
|
|
2246
2260
|
typeof document > "u" && (globalThis.document = {});
|
|
2247
2261
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2248
2262
|
export {
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
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
|
|
2273
2287
|
};
|