manolis-ui 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +78 -52
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +445 -439
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +19 -8
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as P, computed as U, createElementBlock as r, openBlock as a, normalizeClass as
|
|
1
|
+
import { defineComponent as P, computed as U, createElementBlock as r, openBlock as a, normalizeClass as V, createCommentVNode as T, renderSlot as M, createTextVNode as ee, createElementVNode as l, Fragment as j, renderList as E, toDisplayString as O, ref as k, watch as A, h as ie, onMounted as K, withDirectives as te, createVNode as G, isRef as pe, vModelCheckbox as he, unref as F, provide as ge, normalizeStyle as Z, inject as be, useId as ye, defineAsyncComponent as le, nextTick as ne, onBeforeUnmount as re, withModifiers as H, createBlock as W, resolveDynamicComponent as ae, mergeProps as oe, withKeys as ue, resolveComponent as se, withCtx as ce, vModelText as me, useSlots as we, Comment as xe, vShow as ke, onUnmounted as $e } from "vue";
|
|
2
2
|
const Ce = ["disabled"], Se = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, Al = /* @__PURE__ */ P({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -14,8 +14,8 @@ const Ce = ["disabled"], Se = {
|
|
|
14
14
|
disabled: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(e) {
|
|
17
|
-
const
|
|
18
|
-
switch (
|
|
17
|
+
const f = e, t = U(() => {
|
|
18
|
+
switch (f.size) {
|
|
19
19
|
case "large":
|
|
20
20
|
return "btn-lg";
|
|
21
21
|
case "small":
|
|
@@ -30,7 +30,7 @@ const Ce = ["disabled"], Se = {
|
|
|
30
30
|
return "";
|
|
31
31
|
}
|
|
32
32
|
}), o = U(() => {
|
|
33
|
-
switch (
|
|
33
|
+
switch (f.type) {
|
|
34
34
|
case "neutral":
|
|
35
35
|
return "btn-neutral";
|
|
36
36
|
case "primary":
|
|
@@ -54,8 +54,8 @@ const Ce = ["disabled"], Se = {
|
|
|
54
54
|
default:
|
|
55
55
|
return "btn-neutral";
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
58
|
-
switch (
|
|
57
|
+
}), d = U(() => {
|
|
58
|
+
switch (f.shape) {
|
|
59
59
|
case "square":
|
|
60
60
|
return "btn-square";
|
|
61
61
|
case "circle":
|
|
@@ -65,26 +65,26 @@ const Ce = ["disabled"], Se = {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
return (s, i) => (a(), r("button", {
|
|
68
|
-
class:
|
|
68
|
+
class: V([
|
|
69
69
|
"btn",
|
|
70
|
-
{ "btn-outline":
|
|
71
|
-
{ "btn-active":
|
|
70
|
+
{ "btn-outline": f.outlined },
|
|
71
|
+
{ "btn-active": f.active },
|
|
72
72
|
o.value,
|
|
73
73
|
t.value,
|
|
74
|
-
|
|
74
|
+
d.value
|
|
75
75
|
]),
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: f.disabled
|
|
77
77
|
}, [
|
|
78
78
|
e.loading ? (a(), r("span", Se)) : T("", !0),
|
|
79
|
-
|
|
80
|
-
i[0] || (i[0] =
|
|
79
|
+
M(s.$slots, "default", {}, () => [
|
|
80
|
+
i[0] || (i[0] = ee("Submit", -1))
|
|
81
81
|
])
|
|
82
82
|
], 10, Ce));
|
|
83
83
|
}
|
|
84
84
|
}), Ie = {
|
|
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
|
-
}, Te = ["href"],
|
|
87
|
+
}, Te = ["href"], Rl = /* @__PURE__ */ P({
|
|
88
88
|
__name: "dropdown",
|
|
89
89
|
props: {
|
|
90
90
|
items: {},
|
|
@@ -94,7 +94,7 @@ const Ce = ["disabled"], Se = {
|
|
|
94
94
|
forceOpen: { type: Boolean, default: !1 }
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
const
|
|
97
|
+
const f = {
|
|
98
98
|
left: "dropdown-left",
|
|
99
99
|
right: "dropdown-right",
|
|
100
100
|
bottom: "dropdown-bottom",
|
|
@@ -103,10 +103,10 @@ const Ce = ["disabled"], Se = {
|
|
|
103
103
|
start: "",
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, o = e;
|
|
106
|
-
return (
|
|
107
|
-
class:
|
|
106
|
+
return (d, s) => (a(), r("div", {
|
|
107
|
+
class: V(["dropdown", f[o.position], t[o.floatPosition], { "dropdown-open": o.forceOpen }, { "dropdown-hover": o.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
M(d.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
@@ -118,11 +118,11 @@ const Ce = ["disabled"], Se = {
|
|
|
118
118
|
href: i.link
|
|
119
119
|
}, O(i.text), 9, Te)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
M(d.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}), Me = { class: "modal-box" }, Ve = { class: "modal-action" },
|
|
125
|
+
}), Me = { class: "modal-box" }, Ve = { class: "modal-action" }, Nl = /* @__PURE__ */ P({
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
@@ -130,11 +130,11 @@ const Ce = ["disabled"], Se = {
|
|
|
130
130
|
forceOpen: { type: [Boolean, null], default: null }
|
|
131
131
|
},
|
|
132
132
|
setup(e) {
|
|
133
|
-
const
|
|
133
|
+
const f = e, t = {
|
|
134
134
|
top: "modal-top",
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
|
-
}, o = k(null),
|
|
137
|
+
}, o = k(null), d = () => {
|
|
138
138
|
var i;
|
|
139
139
|
(i = o.value) == null || i.showModal();
|
|
140
140
|
}, s = () => {
|
|
@@ -142,35 +142,35 @@ const Ce = ["disabled"], Se = {
|
|
|
142
142
|
(i = o.value) == null || i.close();
|
|
143
143
|
};
|
|
144
144
|
return A(
|
|
145
|
-
() =>
|
|
145
|
+
() => f.forceOpen,
|
|
146
146
|
(i) => {
|
|
147
|
-
i == !0 &&
|
|
147
|
+
i == !0 && d(), i == !1 && s();
|
|
148
148
|
}
|
|
149
149
|
), (i, g) => (a(), r(j, null, [
|
|
150
|
-
|
|
150
|
+
f.forceOpen == null ? (a(), r("span", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: d
|
|
154
154
|
}, [
|
|
155
|
-
|
|
155
|
+
M(i.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
g[0] || (g[0] = l("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : T("", !0),
|
|
159
159
|
l("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
161
|
ref: o,
|
|
162
|
-
class:
|
|
162
|
+
class: V(["modal", t[f.position]])
|
|
163
163
|
}, [
|
|
164
164
|
l("div", Me, [
|
|
165
|
-
|
|
165
|
+
M(i.$slots, "default"),
|
|
166
166
|
l("div", Ve, [
|
|
167
|
-
|
|
167
|
+
M(i.$slots, "actions"),
|
|
168
168
|
l("form", {
|
|
169
169
|
method: "dialog",
|
|
170
170
|
onSubmit: s,
|
|
171
|
-
class:
|
|
171
|
+
class: V(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
M(i.$slots, "close-button", {}, () => [
|
|
174
174
|
g[1] || (g[1] = l("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
@@ -179,22 +179,22 @@ const Ce = ["disabled"], Se = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" },
|
|
182
|
+
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" }, _l = /* @__PURE__ */ P({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
186
186
|
},
|
|
187
187
|
setup(e) {
|
|
188
|
-
const
|
|
188
|
+
const f = e;
|
|
189
189
|
return (t, o) => (a(), r("label", {
|
|
190
|
-
class:
|
|
190
|
+
class: V(["swap", f.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
o[0] || (o[0] = l("input", { type: "checkbox" }, null, -1)),
|
|
193
193
|
l("div", Be, [
|
|
194
|
-
|
|
194
|
+
M(t.$slots, "on")
|
|
195
195
|
]),
|
|
196
196
|
l("div", De, [
|
|
197
|
-
|
|
197
|
+
M(t.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -229,18 +229,18 @@ var Y = {
|
|
|
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 Oe = ({ size: e, strokeWidth:
|
|
232
|
+
const Oe = ({ size: e, strokeWidth: f = 2, absoluteStrokeWidth: t, color: o, iconNode: d, name: s, class: i, ...g }, { slots: v }) => ie(
|
|
233
233
|
"svg",
|
|
234
234
|
{
|
|
235
235
|
...Y,
|
|
236
236
|
width: e || Y.width,
|
|
237
237
|
height: e || Y.height,
|
|
238
238
|
stroke: o || Y.stroke,
|
|
239
|
-
"stroke-width": t ? Number(
|
|
239
|
+
"stroke-width": t ? Number(f) * 24 / Number(e) : f,
|
|
240
240
|
class: ["lucide", `lucide-${ze(s ?? "icon")}`],
|
|
241
241
|
...g
|
|
242
242
|
},
|
|
243
|
-
[...
|
|
243
|
+
[...d.map((p) => ie(...p)), ...v.default ? [v.default()] : []]
|
|
244
244
|
);
|
|
245
245
|
/**
|
|
246
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -248,11 +248,11 @@ const Oe = ({ size: e, strokeWidth: c = 2, absoluteStrokeWidth: t, color: o, 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 Q = (e,
|
|
251
|
+
const Q = (e, f) => (t, { slots: o }) => ie(
|
|
252
252
|
Oe,
|
|
253
253
|
{
|
|
254
254
|
...t,
|
|
255
|
-
iconNode:
|
|
255
|
+
iconNode: f,
|
|
256
256
|
name: e
|
|
257
257
|
},
|
|
258
258
|
o
|
|
@@ -313,36 +313,36 @@ const Ee = Q("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
|
-
]), Ae = (e,
|
|
316
|
+
]), Ae = (e, f) => {
|
|
317
317
|
const t = k(null);
|
|
318
318
|
return K(() => {
|
|
319
319
|
if (typeof window < "u") {
|
|
320
320
|
const o = window.localStorage.getItem(e);
|
|
321
|
-
t.value = o ? JSON.parse(o) :
|
|
321
|
+
t.value = o ? JSON.parse(o) : f;
|
|
322
322
|
}
|
|
323
323
|
}), A(t, (o) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(o));
|
|
325
325
|
}), t;
|
|
326
|
-
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"],
|
|
326
|
+
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"], Fl = /* @__PURE__ */ P({
|
|
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
|
|
334
|
-
function o(
|
|
335
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
333
|
+
const f = e, t = Ae("theme", f.lightTheme);
|
|
334
|
+
function o(d) {
|
|
335
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", d);
|
|
336
336
|
}
|
|
337
|
-
return K(() => o(t.value ? t.value : "")), A(t, (
|
|
338
|
-
o(
|
|
339
|
-
}), (
|
|
340
|
-
|
|
337
|
+
return K(() => o(t.value ? t.value : "")), A(t, (d) => {
|
|
338
|
+
o(d);
|
|
339
|
+
}), (d, s) => (a(), r("label", Re, [
|
|
340
|
+
te(l("input", {
|
|
341
341
|
type: "checkbox",
|
|
342
342
|
class: "theme-controller",
|
|
343
343
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => pe(t) ? t.value = i : null),
|
|
344
|
-
"true-value":
|
|
345
|
-
"false-value":
|
|
344
|
+
"true-value": f.lightTheme,
|
|
345
|
+
"false-value": f.darkTheme
|
|
346
346
|
}, null, 8, Ne), [
|
|
347
347
|
[he, F(t)]
|
|
348
348
|
]),
|
|
@@ -350,7 +350,7 @@ const Ee = Q("SunIcon", [
|
|
|
350
350
|
G(F(Le), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}), _e = ["name"], Fe = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Ue = { class: "collapse-content" }, qe = ["innerHTML"],
|
|
353
|
+
}), _e = ["name"], Fe = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Ue = { class: "collapse-content" }, qe = ["innerHTML"], Ul = /* @__PURE__ */ P({
|
|
354
354
|
__name: "accordion",
|
|
355
355
|
props: {
|
|
356
356
|
name: {},
|
|
@@ -359,9 +359,9 @@ const Ee = Q("SunIcon", [
|
|
|
359
359
|
icon: {}
|
|
360
360
|
},
|
|
361
361
|
setup(e) {
|
|
362
|
-
const
|
|
363
|
-
return (t, o) => (a(!0), r(j, null, E(
|
|
364
|
-
class:
|
|
362
|
+
const f = e;
|
|
363
|
+
return (t, o) => (a(!0), r(j, null, E(f.items, (d, s) => (a(), r("div", {
|
|
364
|
+
class: V(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
365
365
|
key: s
|
|
366
366
|
}, [
|
|
367
367
|
l("input", {
|
|
@@ -369,15 +369,15 @@ const Ee = Q("SunIcon", [
|
|
|
369
369
|
name: e.name,
|
|
370
370
|
value: "true"
|
|
371
371
|
}, null, 8, _e),
|
|
372
|
-
l("div", Fe, O(
|
|
372
|
+
l("div", Fe, O(d.title), 1),
|
|
373
373
|
l("div", Ue, [
|
|
374
374
|
l("span", {
|
|
375
|
-
innerHTML:
|
|
375
|
+
innerHTML: d.content
|
|
376
376
|
}, null, 8, qe)
|
|
377
377
|
])
|
|
378
378
|
], 2))), 128));
|
|
379
379
|
}
|
|
380
|
-
}), He = ["src"], We = { class: "text-xl" },
|
|
380
|
+
}), He = ["src"], We = { class: "text-xl" }, ql = /* @__PURE__ */ P({
|
|
381
381
|
__name: "avatar",
|
|
382
382
|
props: {
|
|
383
383
|
image: {},
|
|
@@ -386,18 +386,18 @@ const Ee = Q("SunIcon", [
|
|
|
386
386
|
fullyRounded: { type: Boolean, default: !1 }
|
|
387
387
|
},
|
|
388
388
|
setup(e) {
|
|
389
|
-
const
|
|
389
|
+
const f = e, t = k(f.onlineStatus);
|
|
390
390
|
return A(
|
|
391
|
-
() =>
|
|
391
|
+
() => f.onlineStatus,
|
|
392
392
|
(o) => {
|
|
393
393
|
o && (t.value = o);
|
|
394
394
|
}
|
|
395
|
-
), (o,
|
|
396
|
-
class:
|
|
395
|
+
), (o, d) => (a(), r("div", {
|
|
396
|
+
class: V(["avatar", [{ "avatar-online": t.value === "online" }, { "avatar-offline": t.value === "offline" }]])
|
|
397
397
|
}, [
|
|
398
398
|
e.image ? (a(), r("div", {
|
|
399
399
|
key: 0,
|
|
400
|
-
class:
|
|
400
|
+
class: V(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
401
401
|
}, [
|
|
402
402
|
l("img", {
|
|
403
403
|
src: e.image,
|
|
@@ -405,13 +405,13 @@ const Ee = Q("SunIcon", [
|
|
|
405
405
|
}, null, 8, He)
|
|
406
406
|
], 2)) : (a(), r("div", {
|
|
407
407
|
key: 1,
|
|
408
|
-
class:
|
|
408
|
+
class: V(["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
410
|
l("p", We, O(e.initials), 1)
|
|
411
411
|
], 2))
|
|
412
412
|
], 2));
|
|
413
413
|
}
|
|
414
|
-
}),
|
|
414
|
+
}), Hl = /* @__PURE__ */ P({
|
|
415
415
|
__name: "badge",
|
|
416
416
|
props: {
|
|
417
417
|
color: { default: "neutral" },
|
|
@@ -419,7 +419,7 @@ const Ee = Q("SunIcon", [
|
|
|
419
419
|
size: { default: "medium" }
|
|
420
420
|
},
|
|
421
421
|
setup(e) {
|
|
422
|
-
const
|
|
422
|
+
const f = e, t = {
|
|
423
423
|
"extra small": "badge-xs",
|
|
424
424
|
small: "badge-sm",
|
|
425
425
|
medium: "badge-md",
|
|
@@ -435,10 +435,10 @@ const Ee = Q("SunIcon", [
|
|
|
435
435
|
warning: "badge-warning",
|
|
436
436
|
error: "badge-error"
|
|
437
437
|
};
|
|
438
|
-
return (
|
|
439
|
-
class:
|
|
438
|
+
return (d, s) => (a(), r("span", {
|
|
439
|
+
class: V(["badge", t[f.size], o[f.color], { "badge-outline": f.outline }])
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
M(d.$slots, "default")
|
|
442
442
|
], 2));
|
|
443
443
|
}
|
|
444
444
|
}), Ke = ["src", "alt"], Xe = {
|
|
@@ -453,7 +453,7 @@ const Ee = Q("SunIcon", [
|
|
|
453
453
|
}, Ze = { class: "flex-col flex-nowrap mt-auto card-actions" }, Qe = {
|
|
454
454
|
key: 1,
|
|
455
455
|
class: "card-body"
|
|
456
|
-
},
|
|
456
|
+
}, Wl = /* @__PURE__ */ P({
|
|
457
457
|
__name: "card",
|
|
458
458
|
props: {
|
|
459
459
|
imgUrl: { default: "" },
|
|
@@ -470,14 +470,14 @@ const Ee = Q("SunIcon", [
|
|
|
470
470
|
horizontal: { type: Boolean, default: !1 }
|
|
471
471
|
},
|
|
472
472
|
setup(e) {
|
|
473
|
-
const
|
|
473
|
+
const f = e, t = k(f.outlined);
|
|
474
474
|
return A(
|
|
475
|
-
() =>
|
|
475
|
+
() => f.outlined,
|
|
476
476
|
(o) => {
|
|
477
477
|
t.value = o;
|
|
478
478
|
}
|
|
479
|
-
), (o,
|
|
480
|
-
class:
|
|
479
|
+
), (o, d) => (a(), r("div", {
|
|
480
|
+
class: V(["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": t.value },
|
|
482
482
|
e.color ?? "",
|
|
483
483
|
e.background,
|
|
@@ -485,13 +485,13 @@ const Ee = Q("SunIcon", [
|
|
|
485
485
|
]])
|
|
486
486
|
}, [
|
|
487
487
|
l("figure", {
|
|
488
|
-
class:
|
|
488
|
+
class: V([{ "contents!": e.horizontal && e.imgWidth }])
|
|
489
489
|
}, [
|
|
490
490
|
e.imgUrl || e.imgUrl && !e.loading ? (a(), r("img", {
|
|
491
491
|
key: 0,
|
|
492
492
|
src: e.imgUrl,
|
|
493
493
|
alt: e.alt,
|
|
494
|
-
class:
|
|
494
|
+
class: V(["rounded-sm object-cover", [
|
|
495
495
|
{
|
|
496
496
|
hidden: e.loading
|
|
497
497
|
},
|
|
@@ -501,18 +501,18 @@ const Ee = Q("SunIcon", [
|
|
|
501
501
|
}, null, 10, Ke)) : T("", !0),
|
|
502
502
|
e.loading && e.imgUrl ? (a(), r("div", {
|
|
503
503
|
key: 1,
|
|
504
|
-
class:
|
|
504
|
+
class: V(["w-full skeleton", e.imgHeight])
|
|
505
505
|
}, null, 2)) : T("", !0)
|
|
506
506
|
], 2),
|
|
507
507
|
e.loading ? T("", !0) : (a(), r("div", Xe, [
|
|
508
508
|
e.title ? (a(), r("h2", Ge, O(e.title), 1)) : T("", !0),
|
|
509
|
-
|
|
509
|
+
M(o.$slots, "details"),
|
|
510
510
|
e.description ? (a(), r("p", Je, O(e.description), 1)) : T("", !0),
|
|
511
511
|
l("div", Ze, [
|
|
512
|
-
|
|
512
|
+
M(o.$slots, "actions")
|
|
513
513
|
])
|
|
514
514
|
])),
|
|
515
|
-
e.loading ? (a(), r("div", Qe, [...
|
|
515
|
+
e.loading ? (a(), r("div", Qe, [...d[0] || (d[0] = [
|
|
516
516
|
l("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
517
517
|
l("div", { class: "w-28 h-4 skeleton" }),
|
|
518
518
|
l("div", { class: "w-full h-4 skeleton" }),
|
|
@@ -564,26 +564,26 @@ const Ee = Q("SunIcon", [
|
|
|
564
564
|
validator: (e) => e >= 0
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
|
-
setup(e, { expose:
|
|
568
|
-
const t = e, o = k(t.initialSlide),
|
|
567
|
+
setup(e, { expose: f }) {
|
|
568
|
+
const t = e, o = k(t.initialSlide), d = k(null), s = k(!1), i = k(0), g = U(() => ({
|
|
569
569
|
width: `calc((100% - ${t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0}px) / ${t.slidesPerView})`
|
|
570
570
|
}));
|
|
571
571
|
ge(ve, g);
|
|
572
572
|
const v = () => {
|
|
573
|
-
|
|
573
|
+
d.value ? i.value = d.value.children.length : i.value = 0;
|
|
574
574
|
}, p = async (w) => {
|
|
575
|
-
if (!
|
|
576
|
-
const x = (w % i.value + i.value) % i.value, C =
|
|
575
|
+
if (!d.value || t.slidesPerView <= 0 || s.value || (v(), i.value === 0)) return;
|
|
576
|
+
const x = (w % i.value + i.value) % i.value, C = d.value, B = t.sliderOrientation === "vertical" ? (C.offsetHeight - (t.slidesPerView - 1) * t.gap) / t.slidesPerView : (C.offsetWidth - (t.slidesPerView - 1) * t.gap) / t.slidesPerView;
|
|
577
577
|
if (B <= 0) return;
|
|
578
578
|
const L = B + t.gap, R = x * L, N = t.sliderOrientation === "vertical" ? C.scrollHeight - C.offsetHeight : C.scrollWidth - C.offsetWidth, m = Math.max(0, Math.min(R, N + 0.5));
|
|
579
579
|
s.value = !0, C.style.scrollBehavior = "auto";
|
|
580
|
-
const
|
|
581
|
-
if (Math.abs(
|
|
580
|
+
const u = t.sliderOrientation === "vertical" ? C.scrollTop : C.scrollLeft, c = m - u;
|
|
581
|
+
if (Math.abs(c) < 1) {
|
|
582
582
|
s.value = !1, o.value = x;
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
const b = performance.now(), n = ($) => {
|
|
586
|
-
const h = $ - b, D = Math.min(1, h / t.slideDuration), _ = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q =
|
|
586
|
+
const h = $ - b, D = Math.min(1, h / t.slideDuration), _ = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = u + c * _;
|
|
587
587
|
t.sliderOrientation === "vertical" ? C.scrollTop = q : C.scrollLeft = q, D < 1 ? requestAnimationFrame(n) : (t.sliderOrientation === "vertical" ? C.scrollTop = m : C.scrollLeft = m, o.value = x, s.value = !1);
|
|
588
588
|
};
|
|
589
589
|
requestAnimationFrame(n);
|
|
@@ -594,11 +594,11 @@ const Ee = Q("SunIcon", [
|
|
|
594
594
|
}, z = (w) => {
|
|
595
595
|
p(w);
|
|
596
596
|
}, y = () => {
|
|
597
|
-
if (!
|
|
598
|
-
const w =
|
|
597
|
+
if (!d.value || t.slidesPerView <= 0 || (v(), i.value === 0)) return;
|
|
598
|
+
const w = d.value, x = t.sliderOrientation === "vertical" ? w.offsetHeight : w.offsetWidth, C = t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0, B = (x - C) / t.slidesPerView;
|
|
599
599
|
if (B <= 0) return;
|
|
600
|
-
const L = Math.max(0, i.value - t.slidesPerView), R = Math.min(Math.max(0, t.initialSlide), L), N = R * (B + t.gap), m = t.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth,
|
|
601
|
-
t.sliderOrientation === "vertical" ? w.scrollTo({ top:
|
|
600
|
+
const L = Math.max(0, i.value - t.slidesPerView), R = Math.min(Math.max(0, t.initialSlide), L), N = R * (B + t.gap), m = t.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth, u = Math.max(0, Math.min(N, m + 0.5));
|
|
601
|
+
t.sliderOrientation === "vertical" ? w.scrollTo({ top: u, behavior: "auto" }) : w.scrollTo({ left: u, behavior: "auto" }), o.value = R;
|
|
602
602
|
};
|
|
603
603
|
return K(() => {
|
|
604
604
|
requestAnimationFrame(() => {
|
|
@@ -614,14 +614,14 @@ const Ee = Q("SunIcon", [
|
|
|
614
614
|
t.slideDuration = 0, p(x), t.slideDuration = C;
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
|
-
}),
|
|
617
|
+
}), f({ scrollToSlide: p }), (w, x) => (a(), r("div", Ye, [
|
|
618
618
|
l("div", {
|
|
619
619
|
ref_key: "carouselContainer",
|
|
620
|
-
ref:
|
|
621
|
-
class:
|
|
620
|
+
ref: d,
|
|
621
|
+
class: V(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }]]),
|
|
622
622
|
style: Z({ gap: `${e.gap}px` })
|
|
623
623
|
}, [
|
|
624
|
-
|
|
624
|
+
M(w.$slots, "default", {}, void 0, !0)
|
|
625
625
|
], 6),
|
|
626
626
|
e.showNavigationButtons ? (a(), r("div", et, [
|
|
627
627
|
l("div", {
|
|
@@ -629,7 +629,7 @@ const Ee = Q("SunIcon", [
|
|
|
629
629
|
role: "button",
|
|
630
630
|
"aria-label": "Previous Slide"
|
|
631
631
|
}, [
|
|
632
|
-
|
|
632
|
+
M(w.$slots, "prevButton", {}, () => [
|
|
633
633
|
x[0] || (x[0] = l("button", {
|
|
634
634
|
class: "btn btn-circle",
|
|
635
635
|
tabindex: "-1"
|
|
@@ -641,7 +641,7 @@ const Ee = Q("SunIcon", [
|
|
|
641
641
|
role: "button",
|
|
642
642
|
"aria-label": "Next Slide"
|
|
643
643
|
}, [
|
|
644
|
-
|
|
644
|
+
M(w.$slots, "nextButton", {}, () => [
|
|
645
645
|
x[1] || (x[1] = l("button", {
|
|
646
646
|
class: "btn btn-circle",
|
|
647
647
|
tabindex: "-1"
|
|
@@ -653,29 +653,29 @@ const Ee = Q("SunIcon", [
|
|
|
653
653
|
(a(!0), r(j, null, E(i.value, (C, B) => (a(), r("button", {
|
|
654
654
|
key: `dot-${B}`,
|
|
655
655
|
onClick: (L) => z(B),
|
|
656
|
-
class:
|
|
656
|
+
class: V(["btn btn-circle btn-xs", { "btn-active": B === o.value }]),
|
|
657
657
|
"aria-label": `Go to slide ${B + 1}`
|
|
658
658
|
}, null, 10, lt))), 128))
|
|
659
659
|
])) : T("", !0)
|
|
660
660
|
]));
|
|
661
661
|
}
|
|
662
|
-
}), J = (e,
|
|
662
|
+
}), J = (e, f) => {
|
|
663
663
|
const t = e.__vccOpts || e;
|
|
664
|
-
for (const [o,
|
|
665
|
-
t[o] =
|
|
664
|
+
for (const [o, d] of f)
|
|
665
|
+
t[o] = d;
|
|
666
666
|
return t;
|
|
667
|
-
},
|
|
667
|
+
}, Kl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
|
|
668
668
|
__name: "carouselItem",
|
|
669
669
|
setup(e) {
|
|
670
|
-
const
|
|
670
|
+
const f = be(ve, k({}));
|
|
671
671
|
return (t, o) => (a(), r("div", {
|
|
672
672
|
class: "w-full h-full carousel-item",
|
|
673
|
-
style: Z(F(
|
|
673
|
+
style: Z(F(f))
|
|
674
674
|
}, [
|
|
675
|
-
|
|
675
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
676
676
|
], 4));
|
|
677
677
|
}
|
|
678
|
-
}),
|
|
678
|
+
}), Xl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
681
681
|
}, rt = {
|
|
@@ -702,37 +702,37 @@ const Ee = Q("SunIcon", [
|
|
|
702
702
|
value: {}
|
|
703
703
|
},
|
|
704
704
|
emits: ["search", "update:search-data"],
|
|
705
|
-
setup(e, { emit:
|
|
706
|
-
const t = e, o =
|
|
707
|
-
datetime:
|
|
708
|
-
"standard-select":
|
|
705
|
+
setup(e, { emit: f }) {
|
|
706
|
+
const t = e, o = f, d = t.id ?? `advancedSearch-${ye()}`, s = k(null), i = k(null), g = {
|
|
707
|
+
datetime: le(() => Promise.resolve().then(() => Lt)),
|
|
708
|
+
"standard-select": le(() => import("./select-Cz4vf_YE.js")),
|
|
709
709
|
// Add other components here when you create them:
|
|
710
710
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
711
711
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
712
|
-
"custom-text":
|
|
712
|
+
"custom-text": le(() => import("./inputField-BxT95oyM.js"))
|
|
713
713
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
714
714
|
}, v = k({}), p = k({
|
|
715
715
|
left: "0px",
|
|
716
716
|
top: "0px",
|
|
717
717
|
transform: "translateX(0%)"
|
|
718
718
|
}), S = k(null), I = (m) => {
|
|
719
|
-
var
|
|
719
|
+
var u;
|
|
720
720
|
if (m.value === void 0 || m.value === null || m.value === "")
|
|
721
721
|
return "";
|
|
722
722
|
switch (m.type) {
|
|
723
723
|
case "datetime":
|
|
724
724
|
if (typeof m.value == "string")
|
|
725
725
|
try {
|
|
726
|
-
const
|
|
727
|
-
if (!isNaN(
|
|
728
|
-
return
|
|
726
|
+
const c = new Date(m.value);
|
|
727
|
+
if (!isNaN(c.getTime()))
|
|
728
|
+
return c.toLocaleString();
|
|
729
729
|
} catch {
|
|
730
730
|
}
|
|
731
731
|
else if (m.range && typeof m.value == "object" && m.value !== null && "start" in m.value && "end" in m.value)
|
|
732
732
|
try {
|
|
733
|
-
const
|
|
734
|
-
if (!isNaN(
|
|
735
|
-
return `${
|
|
733
|
+
const c = new Date(m.value.start), b = new Date(m.value.end);
|
|
734
|
+
if (!isNaN(c.getTime()) && !isNaN(b.getTime()))
|
|
735
|
+
return `${c.toLocaleDateString()} - ${b.toLocaleDateString()}`;
|
|
736
736
|
} catch {
|
|
737
737
|
}
|
|
738
738
|
break;
|
|
@@ -746,12 +746,12 @@ const Ee = Q("SunIcon", [
|
|
|
746
746
|
break;
|
|
747
747
|
case "standard-select":
|
|
748
748
|
case "custom-select":
|
|
749
|
-
if ((
|
|
750
|
-
const
|
|
749
|
+
if ((u = m.props) != null && u.options && Array.isArray(m.props.options)) {
|
|
750
|
+
const c = m.props.options.find(
|
|
751
751
|
(b) => b.value === m.value
|
|
752
752
|
);
|
|
753
|
-
if (
|
|
754
|
-
return
|
|
753
|
+
if (c)
|
|
754
|
+
return c.text;
|
|
755
755
|
}
|
|
756
756
|
return String(m.value);
|
|
757
757
|
case "custom-text":
|
|
@@ -763,21 +763,21 @@ const Ee = Q("SunIcon", [
|
|
|
763
763
|
};
|
|
764
764
|
function z(m) {
|
|
765
765
|
var n, $;
|
|
766
|
-
const
|
|
767
|
-
if (!
|
|
766
|
+
const u = (n = s.value) == null ? void 0 : n.name;
|
|
767
|
+
if (!u) {
|
|
768
768
|
console.warn("componentValueUpdated called but no active tab.");
|
|
769
769
|
return;
|
|
770
770
|
}
|
|
771
|
-
const
|
|
771
|
+
const c = ($ = t.searchOptions.find(
|
|
772
772
|
(h) => (h == null ? void 0 : h.category) === t.currentCategory
|
|
773
|
-
)) == null ? void 0 : $.tabs, b =
|
|
774
|
-
(h) => h.name ===
|
|
773
|
+
)) == null ? void 0 : $.tabs, b = c == null ? void 0 : c.find(
|
|
774
|
+
(h) => h.name === u
|
|
775
775
|
);
|
|
776
776
|
b ? (b.value = m, o("update:search-data", {
|
|
777
777
|
tab: b.name,
|
|
778
778
|
data: m
|
|
779
779
|
})) : console.error(
|
|
780
|
-
`Tab with name "${
|
|
780
|
+
`Tab with name "${u}" not found in current category.`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
783
783
|
function y(m) {
|
|
@@ -788,29 +788,29 @@ const Ee = Q("SunIcon", [
|
|
|
788
788
|
}
|
|
789
789
|
async function x(m) {
|
|
790
790
|
var b;
|
|
791
|
-
const
|
|
792
|
-
((b = s.value) == null ? void 0 : b.displayMode) === "popup" && S.value && !S.value.contains(m.target) && !
|
|
791
|
+
const u = document.getElementById(`advancedSearchMobile-${d}`), c = u && u.contains(m.target);
|
|
792
|
+
((b = s.value) == null ? void 0 : b.displayMode) === "popup" && S.value && !S.value.contains(m.target) && !c && (await ne(), s.value = null);
|
|
793
793
|
}
|
|
794
794
|
async function C() {
|
|
795
795
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
796
796
|
const m = document.getElementById(
|
|
797
|
-
`advancedSearchMobile-${
|
|
797
|
+
`advancedSearchMobile-${d}`
|
|
798
798
|
);
|
|
799
799
|
m ? (s.value = null, m.showModal()) : console.warn(
|
|
800
|
-
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${
|
|
800
|
+
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${d}".`
|
|
801
801
|
);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
async function B(m) {
|
|
805
|
-
var
|
|
805
|
+
var c, b, n;
|
|
806
806
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
807
807
|
C();
|
|
808
808
|
return;
|
|
809
809
|
}
|
|
810
|
-
const
|
|
811
|
-
if (((
|
|
810
|
+
const u = m.displayMode ?? "popup";
|
|
811
|
+
if (((c = s.value) == null ? void 0 : c.name) === m.name && ((b = s.value) == null ? void 0 : b.displayMode) === u)
|
|
812
812
|
s.value = null;
|
|
813
|
-
else if (s.value = { ...m, displayMode:
|
|
813
|
+
else if (s.value = { ...m, displayMode: u }, await ne(), ((n = s.value) == null ? void 0 : n.displayMode) === "popup") {
|
|
814
814
|
const $ = v.value[m.name];
|
|
815
815
|
if ($ && S.value) {
|
|
816
816
|
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), _ = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
|
|
@@ -829,10 +829,10 @@ const Ee = Q("SunIcon", [
|
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
const L = (m) => {
|
|
832
|
-
const
|
|
832
|
+
const u = m.relatedTarget;
|
|
833
833
|
setTimeout(() => {
|
|
834
|
-
var
|
|
835
|
-
((
|
|
834
|
+
var c;
|
|
835
|
+
((c = s.value) == null ? void 0 : c.displayMode) === "inline" && S.value && (!u || !S.value.contains(u)) ? (console.log("Blur detected outside container, closing inline view."), s.value = null) : console.log(
|
|
836
836
|
"Blur detected, but staying within container or not an inline tab."
|
|
837
837
|
);
|
|
838
838
|
}, 50);
|
|
@@ -840,13 +840,13 @@ const Ee = Q("SunIcon", [
|
|
|
840
840
|
console.log("Enter key pressed on inline component, closing inline view."), s.value = null;
|
|
841
841
|
};
|
|
842
842
|
A(i, (m) => {
|
|
843
|
-
var
|
|
843
|
+
var u;
|
|
844
844
|
console.log(
|
|
845
845
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
846
846
|
m
|
|
847
|
-
), console.log("advanced-search: activeTab.value:", s.value), m && ((
|
|
847
|
+
), console.log("advanced-search: activeTab.value:", s.value), m && ((u = s.value) == null ? void 0 : u.displayMode) === "inline" ? (console.log(
|
|
848
848
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
849
|
-
),
|
|
849
|
+
), ne(() => {
|
|
850
850
|
console.log(
|
|
851
851
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
852
852
|
), console.log("advanced-search: Type of newValue:", typeof m), console.log(
|
|
@@ -863,24 +863,24 @@ const Ee = Q("SunIcon", [
|
|
|
863
863
|
);
|
|
864
864
|
}), K(() => {
|
|
865
865
|
document.addEventListener("click", x), window.addEventListener("resize", N);
|
|
866
|
-
}),
|
|
866
|
+
}), re(() => {
|
|
867
867
|
document.removeEventListener("click", x), window.removeEventListener("resize", N);
|
|
868
868
|
});
|
|
869
869
|
const N = () => {
|
|
870
|
-
var m,
|
|
870
|
+
var m, u;
|
|
871
871
|
if (typeof window < "u") {
|
|
872
|
-
const
|
|
873
|
-
!
|
|
872
|
+
const c = window.innerWidth <= 768, b = s.value !== null && (s.value.displayMode === "popup" || s.value.displayMode === "inline") && window.innerWidth > 768;
|
|
873
|
+
!c && (((m = s.value) == null ? void 0 : m.displayMode) === "popup" || ((u = s.value) == null ? void 0 : u.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), s.value = null), c && !b && s.value !== null && (console.log(
|
|
874
874
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
875
875
|
), s.value = null);
|
|
876
876
|
const n = document.getElementById(
|
|
877
|
-
`advancedSearchMobile-${
|
|
877
|
+
`advancedSearchMobile-${d}`
|
|
878
878
|
);
|
|
879
|
-
n != null && n.open && !
|
|
879
|
+
n != null && n.open && !c && (console.log("Modal is open on desktop, closing modal and active tab."), n.close(), s.value = null);
|
|
880
880
|
}
|
|
881
881
|
};
|
|
882
|
-
return (m,
|
|
883
|
-
var
|
|
882
|
+
return (m, u) => {
|
|
883
|
+
var c, b;
|
|
884
884
|
return a(), r(j, null, [
|
|
885
885
|
l("div", {
|
|
886
886
|
ref_key: "searchContainer",
|
|
@@ -892,14 +892,14 @@ const Ee = Q("SunIcon", [
|
|
|
892
892
|
onClick: C
|
|
893
893
|
}, [
|
|
894
894
|
l("div", ot, [
|
|
895
|
-
(a(!0), r(j, null, E(((
|
|
895
|
+
(a(!0), r(j, null, E(((c = t.searchOptions.find(
|
|
896
896
|
(n) => n.category === t.currentCategory
|
|
897
|
-
)) == null ? void 0 :
|
|
897
|
+
)) == null ? void 0 : c.tabs) || [], (n, $) => {
|
|
898
898
|
var h, D, _, q, de;
|
|
899
899
|
return a(), r("button", {
|
|
900
900
|
key: `${n.name}-${$}`,
|
|
901
901
|
onClick: H((X) => B(n), ["stop"]),
|
|
902
|
-
class:
|
|
902
|
+
class: V([{
|
|
903
903
|
"tab-active": ((h = s.value) == null ? void 0 : h.name) === n.name,
|
|
904
904
|
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((_ = s.value) == null ? void 0 : _.displayMode) === "inline"
|
|
905
905
|
// Add new class
|
|
@@ -908,12 +908,12 @@ const Ee = Q("SunIcon", [
|
|
|
908
908
|
ref: (X) => v.value[n.name] = X
|
|
909
909
|
}, [
|
|
910
910
|
((q = s.value) == null ? void 0 : q.name) === n.name && ((de = s.value) == null ? void 0 : de.displayMode) === "inline" ? (a(), r("div", it, [
|
|
911
|
-
(a(), W(
|
|
911
|
+
(a(), W(ae(g[s.value.type]), oe({ ref_for: !0 }, s.value.props || {}, {
|
|
912
912
|
modelValue: s.value.value,
|
|
913
|
-
onUpdated:
|
|
914
|
-
"onUpdate:modelValue":
|
|
913
|
+
onUpdated: u[0] || (u[0] = (X) => y(X)),
|
|
914
|
+
"onUpdate:modelValue": u[1] || (u[1] = (X) => y(X)),
|
|
915
915
|
onBlur: L,
|
|
916
|
-
onKeydown:
|
|
916
|
+
onKeydown: ue(H(R, ["stop", "prevent"]), ["enter"]),
|
|
917
917
|
ref_for: !0,
|
|
918
918
|
ref_key: "inlineComponentRef",
|
|
919
919
|
ref: i
|
|
@@ -930,10 +930,10 @@ const Ee = Q("SunIcon", [
|
|
|
930
930
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
931
931
|
style: Z(p.value)
|
|
932
932
|
}, [
|
|
933
|
-
(a(), W(
|
|
933
|
+
(a(), W(ae(g[s.value.type]), oe(s.value.props || {}, {
|
|
934
934
|
modelValue: s.value.value,
|
|
935
|
-
onUpdated:
|
|
936
|
-
"onUpdate:modelValue":
|
|
935
|
+
onUpdated: u[2] || (u[2] = (n) => z(n)),
|
|
936
|
+
"onUpdate:modelValue": u[3] || (u[3] = (n) => z(n))
|
|
937
937
|
}), null, 16, ["modelValue"]))
|
|
938
938
|
], 4)) : T("", !0),
|
|
939
939
|
l("button", {
|
|
@@ -951,7 +951,7 @@ const Ee = Q("SunIcon", [
|
|
|
951
951
|
l("div", ft, [
|
|
952
952
|
l("button", {
|
|
953
953
|
title: "search",
|
|
954
|
-
onClick:
|
|
954
|
+
onClick: u[4] || (u[4] = () => {
|
|
955
955
|
})
|
|
956
956
|
}, [
|
|
957
957
|
G(F(fe), {
|
|
@@ -962,11 +962,11 @@ const Ee = Q("SunIcon", [
|
|
|
962
962
|
])
|
|
963
963
|
], 512),
|
|
964
964
|
l("dialog", {
|
|
965
|
-
id: `advancedSearchMobile-${F(
|
|
965
|
+
id: `advancedSearchMobile-${F(d)}`,
|
|
966
966
|
class: "modal"
|
|
967
967
|
}, [
|
|
968
968
|
l("div", vt, [
|
|
969
|
-
|
|
969
|
+
M(m.$slots, "additionalForMobile", {}, () => [
|
|
970
970
|
l("h3", pt, O(e.currentCategory), 1)
|
|
971
971
|
], !0),
|
|
972
972
|
(a(!0), r(j, null, E(((b = t.searchOptions.find(
|
|
@@ -977,7 +977,7 @@ const Ee = Q("SunIcon", [
|
|
|
977
977
|
}, [
|
|
978
978
|
l("input", {
|
|
979
979
|
type: "radio",
|
|
980
|
-
name: `accordion-${F(
|
|
980
|
+
name: `accordion-${F(d)}`,
|
|
981
981
|
checked: $ === 0
|
|
982
982
|
}, null, 8, ht),
|
|
983
983
|
l("div", gt, [
|
|
@@ -985,11 +985,11 @@ const Ee = Q("SunIcon", [
|
|
|
985
985
|
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt, O(I(n)), 1)) : (a(), r("div", yt, O(n.description), 1))
|
|
986
986
|
]),
|
|
987
987
|
l("div", wt, [
|
|
988
|
-
|
|
989
|
-
(a(), W(
|
|
988
|
+
u[7] || (u[7] = l("br", null, null, -1)),
|
|
989
|
+
(a(), W(ae(g[n.type]), oe({ ref_for: !0 }, n.props || {}, {
|
|
990
990
|
modelValue: n.value,
|
|
991
|
-
onUpdated:
|
|
992
|
-
"onUpdate:modelValue":
|
|
991
|
+
onUpdated: u[5] || (u[5] = (h) => z(h)),
|
|
992
|
+
"onUpdate:modelValue": u[6] || (u[6] = (h) => z(h))
|
|
993
993
|
}), null, 16, ["modelValue"]))
|
|
994
994
|
])
|
|
995
995
|
]))), 128)),
|
|
@@ -1006,16 +1006,16 @@ const Ee = Q("SunIcon", [
|
|
|
1006
1006
|
], 64);
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
|
-
}),
|
|
1009
|
+
}), Gl = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-577c3624"]]), kt = { 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" }, $t = { key: 0 }, Ct = ["id"], St = {
|
|
1010
1010
|
key: 2,
|
|
1011
|
-
class: "
|
|
1012
|
-
}, It = { class: "join-
|
|
1011
|
+
class: "flex justify-center p-4"
|
|
1012
|
+
}, It = { 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" }, Tt = { class: "join-item" }, Mt = ["id", "disabled"], Vt = { class: "join-item" }, Bt = ["id", "disabled"], Dt = {
|
|
1013
1013
|
key: 3,
|
|
1014
|
-
class: "
|
|
1015
|
-
},
|
|
1014
|
+
class: "p-4 min-w-2xs"
|
|
1015
|
+
}, zt = ["id", "disabled"], Ot = {
|
|
1016
1016
|
key: 4,
|
|
1017
|
-
class: "flex
|
|
1018
|
-
},
|
|
1017
|
+
class: "flex px-4 my-4 w-full justify-end"
|
|
1018
|
+
}, Pt = /* @__PURE__ */ P({
|
|
1019
1019
|
__name: "datetimePicker",
|
|
1020
1020
|
props: {
|
|
1021
1021
|
mode: { default: "datetime" },
|
|
@@ -1030,16 +1030,16 @@ const Ee = Q("SunIcon", [
|
|
|
1030
1030
|
max: {}
|
|
1031
1031
|
},
|
|
1032
1032
|
emits: ["update:modelValue", "change"],
|
|
1033
|
-
setup(e, { emit:
|
|
1033
|
+
setup(e, { emit: f }) {
|
|
1034
1034
|
K(async () => {
|
|
1035
1035
|
await import("./cally-ZU3K2Th7.js");
|
|
1036
1036
|
});
|
|
1037
|
-
const t = e, o =
|
|
1037
|
+
const t = e, o = f, d = k(null), s = k(!1), i = k(null), g = k(null), v = k(null), p = k(null), S = k(null), I = k({ from: "", to: "", single: "" }), z = k({
|
|
1038
1038
|
single: null,
|
|
1039
1039
|
start: null,
|
|
1040
1040
|
end: null
|
|
1041
1041
|
}), y = U(() => {
|
|
1042
|
-
const
|
|
1042
|
+
const u = (n) => {
|
|
1043
1043
|
if (!n || n.includes(":")) return n;
|
|
1044
1044
|
if (/^\d{4}-\d{2}-\d{2}$/.test(n))
|
|
1045
1045
|
try {
|
|
@@ -1050,66 +1050,66 @@ const Ee = Q("SunIcon", [
|
|
|
1050
1050
|
}
|
|
1051
1051
|
return n;
|
|
1052
1052
|
};
|
|
1053
|
-
let
|
|
1054
|
-
if (t.mode !== "time" && (t.range && z.value.start && z.value.end ?
|
|
1055
|
-
return t.range ?
|
|
1053
|
+
let c = "", b = "";
|
|
1054
|
+
if (t.mode !== "time" && (t.range && z.value.start && z.value.end ? c = `${z.value.start} - ${z.value.end}` : !t.range && z.value.single && (c = z.value.single)), t.mode !== "date" && (t.range && I.value.from && I.value.to ? b = `${I.value.from} - ${I.value.to}` : !t.range && I.value.single && (b = I.value.single)), t.mode === "date")
|
|
1055
|
+
return t.range ? c.split(" - ").map(u).join(" - ") : u(c);
|
|
1056
1056
|
if (t.mode === "time") return b;
|
|
1057
1057
|
if (t.range) {
|
|
1058
|
-
const [n, $] =
|
|
1058
|
+
const [n, $] = c.split(" - ").map(u), [h, D] = b.split(" - ");
|
|
1059
1059
|
return `${n} ${h} - ${$} ${D}`.trim();
|
|
1060
1060
|
}
|
|
1061
|
-
return `${
|
|
1061
|
+
return `${u(c)} ${b}`.trim();
|
|
1062
1062
|
});
|
|
1063
1063
|
console.log(y);
|
|
1064
1064
|
const w = () => {
|
|
1065
1065
|
if (t.range) {
|
|
1066
|
-
const { start:
|
|
1066
|
+
const { start: u, end: c } = z.value, { from: b, to: n } = I.value;
|
|
1067
1067
|
let $ = null, h = null;
|
|
1068
|
-
if (t.mode === "time" && b && n ? ($ = b, h = n) : t.mode === "date" &&
|
|
1068
|
+
if (t.mode === "time" && b && n ? ($ = b, h = n) : t.mode === "date" && u && c ? ($ = u, h = c) : t.mode === "datetime" && u && c && b && n && ($ = `${u}T${b}`, h = `${c}T${n}`), $ && h)
|
|
1069
1069
|
return { start: $, end: h };
|
|
1070
1070
|
} else {
|
|
1071
|
-
const
|
|
1072
|
-
if (t.mode === "date") return
|
|
1073
|
-
if (t.mode === "time") return
|
|
1074
|
-
if (t.mode === "datetime" &&
|
|
1075
|
-
return `${
|
|
1071
|
+
const u = z.value.single, c = I.value.single;
|
|
1072
|
+
if (t.mode === "date") return u;
|
|
1073
|
+
if (t.mode === "time") return c || null;
|
|
1074
|
+
if (t.mode === "datetime" && u && c)
|
|
1075
|
+
return `${u}T${c}`;
|
|
1076
1076
|
}
|
|
1077
1077
|
return null;
|
|
1078
1078
|
}, x = () => {
|
|
1079
1079
|
if (i.value)
|
|
1080
1080
|
z.value.single = i.value.value || null;
|
|
1081
1081
|
else if (g.value) {
|
|
1082
|
-
const
|
|
1083
|
-
z.value.start = (
|
|
1082
|
+
const u = g.value.value;
|
|
1083
|
+
z.value.start = (u == null ? void 0 : u.start) || null, z.value.end = (u == null ? void 0 : u.end) || null;
|
|
1084
1084
|
}
|
|
1085
1085
|
}, C = () => {
|
|
1086
1086
|
x();
|
|
1087
|
-
const
|
|
1088
|
-
o("update:modelValue",
|
|
1087
|
+
const u = w();
|
|
1088
|
+
o("update:modelValue", u), o("change", u);
|
|
1089
1089
|
}, B = () => {
|
|
1090
|
-
var
|
|
1091
|
-
t.range ? (I.value.from = ((
|
|
1090
|
+
var u, c, b;
|
|
1091
|
+
t.range ? (I.value.from = ((u = p.value) == null ? void 0 : u.value) || "", I.value.to = ((c = S.value) == null ? void 0 : c.value) || "") : I.value.single = ((b = v.value) == null ? void 0 : b.value) || "", C();
|
|
1092
1092
|
}, L = () => {
|
|
1093
1093
|
s.value = !s.value, s.value && C();
|
|
1094
1094
|
}, R = () => {
|
|
1095
1095
|
s.value = !1, C();
|
|
1096
|
-
}, N = (
|
|
1096
|
+
}, N = (u) => {
|
|
1097
1097
|
if (!t.popup || !s.value) return;
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1098
|
+
const c = d.value, b = u.target;
|
|
1099
|
+
c && !c.contains(b) && R();
|
|
1100
1100
|
}, m = () => {
|
|
1101
|
-
const
|
|
1101
|
+
const u = (c) => c instanceof Date ? c.toISOString() : c;
|
|
1102
1102
|
if (t.initialDate) {
|
|
1103
1103
|
if (t.range && typeof t.initialDate == "object" && "start" in t.initialDate) {
|
|
1104
|
-
const
|
|
1105
|
-
if (z.value.start =
|
|
1106
|
-
const n = new Date(
|
|
1104
|
+
const c = u(t.initialDate.start), b = u(t.initialDate.end);
|
|
1105
|
+
if (z.value.start = c.split("T")[0], z.value.end = b.split("T")[0], t.mode !== "date") {
|
|
1106
|
+
const n = new Date(c), $ = new Date(b), h = (D) => `${String(D.getUTCHours()).padStart(2, "0")}:${String(D.getUTCMinutes()).padStart(2, "0")}`;
|
|
1107
1107
|
I.value.from = h(n), I.value.to = h($), p.value && (p.value.value = I.value.from), S.value && (S.value.value = I.value.to);
|
|
1108
1108
|
}
|
|
1109
1109
|
} else if (typeof t.initialDate == "string" || t.initialDate instanceof Date) {
|
|
1110
|
-
const
|
|
1111
|
-
if (z.value.single =
|
|
1112
|
-
const b = new Date(
|
|
1110
|
+
const c = u(t.initialDate);
|
|
1111
|
+
if (z.value.single = c.split("T")[0], t.mode !== "date") {
|
|
1112
|
+
const b = new Date(c), n = `${String(b.getUTCHours()).padStart(2, "0")}:${String(b.getUTCMinutes()).padStart(2, "0")}`;
|
|
1113
1113
|
I.value.single = n, v.value && (v.value.value = n);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
@@ -1117,27 +1117,27 @@ const Ee = Q("SunIcon", [
|
|
|
1117
1117
|
};
|
|
1118
1118
|
return K(() => {
|
|
1119
1119
|
m(), C();
|
|
1120
|
-
}), (
|
|
1121
|
-
const b =
|
|
1120
|
+
}), (u, c) => {
|
|
1121
|
+
const b = se("calendar-month"), n = se("calendar-date"), $ = se("calendar-range");
|
|
1122
1122
|
return a(), r("div", {
|
|
1123
1123
|
class: "inline-block relative w-fit lg:w-full",
|
|
1124
1124
|
ref_key: "pickerContainer",
|
|
1125
|
-
ref:
|
|
1125
|
+
ref: d,
|
|
1126
1126
|
onMousedownCapture: N
|
|
1127
1127
|
}, [
|
|
1128
1128
|
t.popup ? (a(), r("div", {
|
|
1129
1129
|
key: 0,
|
|
1130
1130
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1131
|
-
onClick:
|
|
1131
|
+
onClick: c[0] || (c[0] = (h) => t.disabled ? null : L())
|
|
1132
1132
|
}, [
|
|
1133
1133
|
l("div", kt, [
|
|
1134
1134
|
y.value ? T("", !0) : (a(), r("span", $t, O(e.placeholder), 1)),
|
|
1135
|
-
|
|
1135
|
+
ee(" " + O(y.value), 1)
|
|
1136
1136
|
])
|
|
1137
1137
|
])) : T("", !0),
|
|
1138
1138
|
s.value || !t.popup ? (a(), r("div", {
|
|
1139
1139
|
key: 1,
|
|
1140
|
-
class:
|
|
1140
|
+
class: V(["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 }]),
|
|
1141
1141
|
id: `date-picker-${t.id}-popup`
|
|
1142
1142
|
}, [
|
|
1143
1143
|
!t.range && t.mode !== "time" ? (a(), W(n, {
|
|
@@ -1152,7 +1152,7 @@ const Ee = Q("SunIcon", [
|
|
|
1152
1152
|
onChange: C
|
|
1153
1153
|
}, {
|
|
1154
1154
|
default: ce(() => [
|
|
1155
|
-
|
|
1155
|
+
c[1] || (c[1] = l("button", {
|
|
1156
1156
|
slot: "previous",
|
|
1157
1157
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1158
1158
|
}, [
|
|
@@ -1171,7 +1171,7 @@ const Ee = Q("SunIcon", [
|
|
|
1171
1171
|
})
|
|
1172
1172
|
])
|
|
1173
1173
|
], -1)),
|
|
1174
|
-
|
|
1174
|
+
c[2] || (c[2] = l("button", {
|
|
1175
1175
|
slot: "next",
|
|
1176
1176
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1177
1177
|
}, [
|
|
@@ -1208,7 +1208,7 @@ const Ee = Q("SunIcon", [
|
|
|
1208
1208
|
onChange: C
|
|
1209
1209
|
}, {
|
|
1210
1210
|
default: ce(() => [
|
|
1211
|
-
|
|
1211
|
+
c[3] || (c[3] = l("button", {
|
|
1212
1212
|
slot: "previous",
|
|
1213
1213
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1214
1214
|
}, [
|
|
@@ -1227,7 +1227,7 @@ const Ee = Q("SunIcon", [
|
|
|
1227
1227
|
})
|
|
1228
1228
|
])
|
|
1229
1229
|
], -1)),
|
|
1230
|
-
|
|
1230
|
+
c[4] || (c[4] = l("button", {
|
|
1231
1231
|
slot: "next",
|
|
1232
1232
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1233
1233
|
}, [
|
|
@@ -1254,42 +1254,44 @@ const Ee = Q("SunIcon", [
|
|
|
1254
1254
|
}, 8, ["id", "min", "max", "disabled"])) : T("", !0),
|
|
1255
1255
|
t.range && t.mode !== "date" ? (a(), r("div", St, [
|
|
1256
1256
|
l("div", It, [
|
|
1257
|
-
l("
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
l("
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1257
|
+
l("div", Tt, [
|
|
1258
|
+
l("input", {
|
|
1259
|
+
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",
|
|
1260
|
+
type: "time",
|
|
1261
|
+
ref_key: "timeFromInput",
|
|
1262
|
+
ref: p,
|
|
1263
|
+
id: `${t.id}-time-from`,
|
|
1264
|
+
placeholder: "van",
|
|
1265
|
+
onChange: B,
|
|
1266
|
+
disabled: t.disabled
|
|
1267
|
+
}, null, 40, Mt)
|
|
1268
|
+
]),
|
|
1269
|
+
c[5] || (c[5] = l("svg", {
|
|
1270
|
+
class: "join-item",
|
|
1271
|
+
viewBox: "0 0 1024 1024",
|
|
1272
|
+
focusable: "false",
|
|
1273
|
+
"data-icon": "swap-right",
|
|
1274
|
+
width: "1em",
|
|
1275
|
+
height: "1em",
|
|
1276
|
+
fill: "currentColor",
|
|
1277
|
+
"aria-hidden": "true"
|
|
1278
|
+
}, [
|
|
1279
|
+
l("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" })
|
|
1280
|
+
], -1)),
|
|
1281
|
+
l("div", Vt, [
|
|
1282
|
+
l("input", {
|
|
1283
|
+
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",
|
|
1284
|
+
type: "time",
|
|
1285
|
+
ref_key: "timeToInput",
|
|
1286
|
+
ref: S,
|
|
1287
|
+
id: `${t.id}-time-to`,
|
|
1288
|
+
onChange: B,
|
|
1289
|
+
disabled: t.disabled
|
|
1290
|
+
}, null, 40, Bt)
|
|
1291
|
+
])
|
|
1290
1292
|
])
|
|
1291
1293
|
])) : T("", !0),
|
|
1292
|
-
!t.range && t.mode !== "date" ? (a(), r("div",
|
|
1294
|
+
!t.range && t.mode !== "date" ? (a(), r("div", Dt, [
|
|
1293
1295
|
l("input", {
|
|
1294
1296
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1295
1297
|
type: "time",
|
|
@@ -1298,22 +1300,26 @@ const Ee = Q("SunIcon", [
|
|
|
1298
1300
|
id: `${t.id}-time`,
|
|
1299
1301
|
onChange: B,
|
|
1300
1302
|
disabled: t.disabled
|
|
1301
|
-
}, null, 40,
|
|
1303
|
+
}, null, 40, zt)
|
|
1302
1304
|
])) : T("", !0),
|
|
1303
|
-
t.popup ? (a(), r("div",
|
|
1305
|
+
t.popup ? (a(), r("div", Ot, [
|
|
1304
1306
|
l("button", {
|
|
1305
|
-
class: "btn btn-primary",
|
|
1307
|
+
class: "btn btn-primary max-lg:w-full",
|
|
1306
1308
|
onClick: R
|
|
1307
|
-
},
|
|
1309
|
+
}, [
|
|
1310
|
+
M(u.$slots, "default", {}, () => [
|
|
1311
|
+
c[6] || (c[6] = ee("Close", -1))
|
|
1312
|
+
], !0)
|
|
1313
|
+
])
|
|
1308
1314
|
])) : T("", !0)
|
|
1309
1315
|
], 10, Ct)) : T("", !0)
|
|
1310
1316
|
], 544);
|
|
1311
1317
|
};
|
|
1312
1318
|
}
|
|
1313
|
-
}),
|
|
1319
|
+
}), jt = /* @__PURE__ */ J(Pt, [["__scopeId", "data-v-6a59f578"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1314
1320
|
__proto__: null,
|
|
1315
|
-
default:
|
|
1316
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1321
|
+
default: jt
|
|
1322
|
+
}, Symbol.toStringTag, { value: "Module" })), Et = ["value", "checked", "onChange", "disabled"], Jl = /* @__PURE__ */ P({
|
|
1317
1323
|
__name: "rating",
|
|
1318
1324
|
props: {
|
|
1319
1325
|
initialRating: { default: 0 },
|
|
@@ -1326,19 +1332,19 @@ const Ee = Q("SunIcon", [
|
|
|
1326
1332
|
gap: { default: 0 }
|
|
1327
1333
|
},
|
|
1328
1334
|
setup(e) {
|
|
1329
|
-
const
|
|
1335
|
+
const f = e, t = k(f.initialRating);
|
|
1330
1336
|
A(
|
|
1331
|
-
() =>
|
|
1332
|
-
(
|
|
1333
|
-
t.value =
|
|
1337
|
+
() => f.initialRating,
|
|
1338
|
+
(d) => {
|
|
1339
|
+
t.value = d;
|
|
1334
1340
|
}
|
|
1335
1341
|
);
|
|
1336
|
-
const o = (
|
|
1337
|
-
t.value =
|
|
1342
|
+
const o = (d) => {
|
|
1343
|
+
t.value = d;
|
|
1338
1344
|
};
|
|
1339
|
-
return (
|
|
1340
|
-
class:
|
|
1341
|
-
`rating-${
|
|
1345
|
+
return (d, s) => (a(), r("div", {
|
|
1346
|
+
class: V(["rating", [
|
|
1347
|
+
`rating-${f.size}`,
|
|
1342
1348
|
{ "rating-half": e.halfStars },
|
|
1343
1349
|
{ "pointer-events-none": !e.isInteractive }
|
|
1344
1350
|
]])
|
|
@@ -1349,7 +1355,7 @@ const Ee = Q("SunIcon", [
|
|
|
1349
1355
|
value: e.halfStars ? i * 0.5 : i,
|
|
1350
1356
|
checked: t.value === (e.halfStars ? i * 0.5 : i),
|
|
1351
1357
|
onChange: (g) => e.isInteractive ? o(e.halfStars ? i * 0.5 : i) : null,
|
|
1352
|
-
class:
|
|
1358
|
+
class: V(["mask", [
|
|
1353
1359
|
{
|
|
1354
1360
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1355
1361
|
"mask-half-1": e.halfStars && i % 2 !== 0,
|
|
@@ -1370,16 +1376,16 @@ const Ee = Q("SunIcon", [
|
|
|
1370
1376
|
"mask-triangle-3": e.shape === "triangle-left",
|
|
1371
1377
|
"mask-triangle-4": e.shape === "triangle-right"
|
|
1372
1378
|
},
|
|
1373
|
-
t.value >= (e.halfStars ? i * 0.5 : i) ?
|
|
1379
|
+
t.value >= (e.halfStars ? i * 0.5 : i) ? f.color : ""
|
|
1374
1380
|
]]),
|
|
1375
1381
|
style: Z({
|
|
1376
|
-
marginRight: e.halfStars && i % 2 === 0 ? `${
|
|
1382
|
+
marginRight: e.halfStars && i % 2 === 0 ? `${f.gap}px` : e.halfStars ? "0" : `${f.gap}px`
|
|
1377
1383
|
}),
|
|
1378
1384
|
disabled: !e.isInteractive
|
|
1379
|
-
}, null, 46,
|
|
1385
|
+
}, null, 46, Et))), 128))
|
|
1380
1386
|
], 2));
|
|
1381
1387
|
}
|
|
1382
|
-
}),
|
|
1388
|
+
}), At = { class: "badge" }, Rt = ["onClick"], Nt = { class: "opacity-75" }, _t = ["placeholder"], Zl = /* @__PURE__ */ P({
|
|
1383
1389
|
__name: "taginput",
|
|
1384
1390
|
props: {
|
|
1385
1391
|
modelValue: {},
|
|
@@ -1388,37 +1394,37 @@ const Ee = Q("SunIcon", [
|
|
|
1388
1394
|
class: {}
|
|
1389
1395
|
},
|
|
1390
1396
|
emits: ["update:modelValue"],
|
|
1391
|
-
setup(e, { emit:
|
|
1392
|
-
const t = e, o =
|
|
1397
|
+
setup(e, { emit: f }) {
|
|
1398
|
+
const t = e, o = f, d = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v = U(() => s < 0 || d.value.length < s), p = () => {
|
|
1393
1399
|
const y = g.value.trim();
|
|
1394
|
-
y && !
|
|
1400
|
+
y && !d.value.includes(y) && (d.value.push(y), o("update:modelValue", d.value), g.value = "");
|
|
1395
1401
|
}, S = (y) => {
|
|
1396
|
-
|
|
1402
|
+
d.value = d.value.filter((w) => w !== y), o("update:modelValue", d.value);
|
|
1397
1403
|
}, I = () => {
|
|
1398
|
-
g.value === "" && (
|
|
1404
|
+
g.value === "" && (d.value.pop(), o("update:modelValue", d.value));
|
|
1399
1405
|
}, z = (y) => {
|
|
1400
1406
|
y.key === "Enter" ? p() : y.key === "Backspace" && g.value === "" && I();
|
|
1401
1407
|
};
|
|
1402
1408
|
return A(() => t.modelValue, (y) => {
|
|
1403
|
-
|
|
1409
|
+
d.value = [...y];
|
|
1404
1410
|
}), (y, w) => (a(), r("div", {
|
|
1405
|
-
class:
|
|
1411
|
+
class: V(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", y.$props.class])
|
|
1406
1412
|
}, [
|
|
1407
|
-
(a(!0), r(j, null, E(
|
|
1413
|
+
(a(!0), r(j, null, E(d.value, (x) => M(y.$slots, "tag", {
|
|
1408
1414
|
key: x,
|
|
1409
1415
|
tag: x
|
|
1410
1416
|
}, () => [
|
|
1411
|
-
l("div",
|
|
1417
|
+
l("div", At, [
|
|
1412
1418
|
l("button", {
|
|
1413
1419
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1414
1420
|
onClick: (C) => S(x),
|
|
1415
1421
|
"aria-label": "Remove tag"
|
|
1416
|
-
}, "X", 8,
|
|
1417
|
-
l("span",
|
|
1422
|
+
}, "X", 8, Rt),
|
|
1423
|
+
l("span", Nt, O(x), 1)
|
|
1418
1424
|
])
|
|
1419
1425
|
])), 128)),
|
|
1420
|
-
|
|
1421
|
-
v.value ?
|
|
1426
|
+
M(y.$slots, "input", { showInput: v.value }, () => [
|
|
1427
|
+
v.value ? te((a(), r("input", {
|
|
1422
1428
|
key: 0,
|
|
1423
1429
|
ref_key: "inputRef",
|
|
1424
1430
|
ref: i,
|
|
@@ -1428,21 +1434,21 @@ const Ee = Q("SunIcon", [
|
|
|
1428
1434
|
class: "h-full input input-ghost",
|
|
1429
1435
|
onKeydown: z,
|
|
1430
1436
|
"aria-label": "Add tags"
|
|
1431
|
-
}, null, 40,
|
|
1437
|
+
}, null, 40, _t)), [
|
|
1432
1438
|
[me, g.value]
|
|
1433
1439
|
]) : T("", !0)
|
|
1434
1440
|
])
|
|
1435
1441
|
], 2));
|
|
1436
1442
|
}
|
|
1437
|
-
}),
|
|
1443
|
+
}), Ft = { class: "w-full max-w-xs form-control" }, Ut = {
|
|
1438
1444
|
key: 0,
|
|
1439
1445
|
class: "label"
|
|
1440
|
-
},
|
|
1446
|
+
}, qt = { class: "label-text" }, Ht = ["value"], Wt = {
|
|
1441
1447
|
key: 0,
|
|
1442
1448
|
value: "",
|
|
1443
1449
|
disabled: "",
|
|
1444
1450
|
selected: ""
|
|
1445
|
-
},
|
|
1451
|
+
}, Kt = ["value"], Ql = /* @__PURE__ */ P({
|
|
1446
1452
|
__name: "select",
|
|
1447
1453
|
props: {
|
|
1448
1454
|
options: {},
|
|
@@ -1451,22 +1457,22 @@ const Ee = Q("SunIcon", [
|
|
|
1451
1457
|
modelValue: {}
|
|
1452
1458
|
},
|
|
1453
1459
|
emits: ["update:modelValue"],
|
|
1454
|
-
setup(e, { expose:
|
|
1460
|
+
setup(e, { expose: f, emit: t }) {
|
|
1455
1461
|
console.log(e.placeholder);
|
|
1456
|
-
const
|
|
1462
|
+
const d = t, s = k(null), i = (v) => {
|
|
1457
1463
|
const p = v.target;
|
|
1458
|
-
|
|
1464
|
+
d("update:modelValue", p.value);
|
|
1459
1465
|
};
|
|
1460
|
-
return
|
|
1466
|
+
return f({
|
|
1461
1467
|
focusInput: () => {
|
|
1462
1468
|
var v;
|
|
1463
1469
|
console.log("select.vue: focusInput method called."), (v = s.value) == null || v.focus();
|
|
1464
1470
|
}
|
|
1465
1471
|
// You can expose other properties or methods here if needed by the parent
|
|
1466
1472
|
// e.g., the current value: modelValue
|
|
1467
|
-
}), (v, p) => (a(), r("div",
|
|
1468
|
-
e.label ? (a(), r("label",
|
|
1469
|
-
l("span",
|
|
1473
|
+
}), (v, p) => (a(), r("div", Ft, [
|
|
1474
|
+
e.label ? (a(), r("label", Ut, [
|
|
1475
|
+
l("span", qt, O(e.label), 1)
|
|
1470
1476
|
])) : T("", !0),
|
|
1471
1477
|
l("select", {
|
|
1472
1478
|
ref_key: "selectElement",
|
|
@@ -1475,21 +1481,21 @@ const Ee = Q("SunIcon", [
|
|
|
1475
1481
|
value: e.modelValue,
|
|
1476
1482
|
onChange: i
|
|
1477
1483
|
}, [
|
|
1478
|
-
e.placeholder ? (a(), r("option",
|
|
1484
|
+
e.placeholder ? (a(), r("option", Wt, O(e.placeholder), 1)) : T("", !0),
|
|
1479
1485
|
(a(!0), r(j, null, E(e.options, (S) => (a(), r("option", {
|
|
1480
1486
|
key: S.value,
|
|
1481
1487
|
value: S.value
|
|
1482
|
-
}, O(S.text), 9,
|
|
1483
|
-
], 40,
|
|
1488
|
+
}, O(S.text), 9, Kt))), 128))
|
|
1489
|
+
], 40, Ht)
|
|
1484
1490
|
]));
|
|
1485
1491
|
}
|
|
1486
|
-
}),
|
|
1492
|
+
}), Xt = {
|
|
1487
1493
|
key: 0,
|
|
1488
1494
|
class: "label"
|
|
1489
|
-
},
|
|
1495
|
+
}, Gt = { class: "label-text" }, Jt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Zt = ["placeholder", "disabled"], Qt = {
|
|
1490
1496
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1491
1497
|
role: "listbox"
|
|
1492
|
-
},
|
|
1498
|
+
}, Yt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, el = ["onMousedown", "id", "aria-selected"], Yl = {
|
|
1493
1499
|
__name: "filterableSelect",
|
|
1494
1500
|
props: {
|
|
1495
1501
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1519,8 +1525,8 @@ const Ee = Q("SunIcon", [
|
|
|
1519
1525
|
}
|
|
1520
1526
|
},
|
|
1521
1527
|
emits: ["update:modelValue", "select", "clear"],
|
|
1522
|
-
setup(e, { expose:
|
|
1523
|
-
const o = e,
|
|
1528
|
+
setup(e, { expose: f, emit: t }) {
|
|
1529
|
+
const o = e, d = t, s = we(), i = U(() => {
|
|
1524
1530
|
const $ = (s.default ? s.default() : []).filter((h) => h.type !== xe);
|
|
1525
1531
|
return console.log("hasDefaultSlotContent computed:", $.length > 0), $.length > 0;
|
|
1526
1532
|
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null), z = k(null), y = k(null), w = () => {
|
|
@@ -1559,18 +1565,18 @@ const Ee = Q("SunIcon", [
|
|
|
1559
1565
|
n ? setTimeout(() => {
|
|
1560
1566
|
document.addEventListener("click", L);
|
|
1561
1567
|
}, 0) : document.removeEventListener("click", L);
|
|
1562
|
-
}),
|
|
1568
|
+
}), re(() => {
|
|
1563
1569
|
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1564
1570
|
});
|
|
1565
1571
|
const N = () => {
|
|
1566
1572
|
if (o.disabled) return;
|
|
1567
1573
|
const n = v.value;
|
|
1568
|
-
|
|
1574
|
+
d("update:modelValue", null), n && d("clear", n);
|
|
1569
1575
|
}, m = (n) => {
|
|
1570
|
-
v.value = n, i.value || (g.value = n.text),
|
|
1571
|
-
},
|
|
1576
|
+
v.value = n, i.value || (g.value = n.text), d("update:modelValue", n.value), d("select", n), x();
|
|
1577
|
+
}, u = () => {
|
|
1572
1578
|
B.value.length > 0 && m(B.value[0]);
|
|
1573
|
-
},
|
|
1579
|
+
}, c = () => {
|
|
1574
1580
|
p.value || w();
|
|
1575
1581
|
}, b = (n) => {
|
|
1576
1582
|
if (!p.value || B.value.length === 0) return;
|
|
@@ -1604,9 +1610,9 @@ const Ee = Q("SunIcon", [
|
|
|
1604
1610
|
};
|
|
1605
1611
|
return A(p, (n) => {
|
|
1606
1612
|
n ? (window.addEventListener("keydown", b), !i.value && !g.value && v.value && (g.value = v.value.text)) : window.removeEventListener("keydown", b);
|
|
1607
|
-
}),
|
|
1613
|
+
}), re(() => {
|
|
1608
1614
|
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1609
|
-
}),
|
|
1615
|
+
}), f({
|
|
1610
1616
|
isDropdownOpen: p,
|
|
1611
1617
|
// Expose state
|
|
1612
1618
|
selectedItem: v,
|
|
@@ -1628,19 +1634,19 @@ const Ee = Q("SunIcon", [
|
|
|
1628
1634
|
ref_key: "componentRoot",
|
|
1629
1635
|
ref: I
|
|
1630
1636
|
}, [
|
|
1631
|
-
e.label ? (a(), r("label",
|
|
1632
|
-
l("span",
|
|
1637
|
+
e.label ? (a(), r("label", Xt, [
|
|
1638
|
+
l("span", Gt, O(e.label), 1)
|
|
1633
1639
|
])) : T("", !0),
|
|
1634
1640
|
l("div", {
|
|
1635
|
-
class:
|
|
1641
|
+
class: V(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !i.value, select: !i.value }]),
|
|
1636
1642
|
style: Z(
|
|
1637
1643
|
v.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1638
1644
|
),
|
|
1639
1645
|
tabindex: "0",
|
|
1640
1646
|
onClick: $[1] || ($[1] = (h) => i.value ? C() : w()),
|
|
1641
1647
|
onKeydown: [
|
|
1642
|
-
|
|
1643
|
-
|
|
1648
|
+
ue(H(u, ["prevent"]), ["enter"]),
|
|
1649
|
+
ue(H(u, ["prevent"]), ["space"])
|
|
1644
1650
|
],
|
|
1645
1651
|
onBlur: R,
|
|
1646
1652
|
role: "combobox",
|
|
@@ -1651,8 +1657,8 @@ const Ee = Q("SunIcon", [
|
|
|
1651
1657
|
ref_key: "activatorWrapper",
|
|
1652
1658
|
ref: z
|
|
1653
1659
|
}, [
|
|
1654
|
-
|
|
1655
|
-
i.value ? T("", !0) :
|
|
1660
|
+
M(n.$slots, "default", {}, () => [
|
|
1661
|
+
i.value ? T("", !0) : te((a(), r("input", {
|
|
1656
1662
|
key: 0,
|
|
1657
1663
|
type: "text",
|
|
1658
1664
|
placeholder: e.placeholder,
|
|
@@ -1661,10 +1667,10 @@ const Ee = Q("SunIcon", [
|
|
|
1661
1667
|
ref_key: "filterInput",
|
|
1662
1668
|
ref: S,
|
|
1663
1669
|
onFocus: w,
|
|
1664
|
-
onInput:
|
|
1670
|
+
onInput: c,
|
|
1665
1671
|
tabindex: "-1",
|
|
1666
1672
|
disabled: o.disabled
|
|
1667
|
-
}, null, 40,
|
|
1673
|
+
}, null, 40, Zt)), [
|
|
1668
1674
|
[me, g.value]
|
|
1669
1675
|
])
|
|
1670
1676
|
]),
|
|
@@ -1676,12 +1682,12 @@ const Ee = Q("SunIcon", [
|
|
|
1676
1682
|
})) : T("", !0),
|
|
1677
1683
|
i.value && !v.value ? (a(), W(F(Pe), {
|
|
1678
1684
|
key: 1,
|
|
1679
|
-
class:
|
|
1685
|
+
class: V([{ "rotate-180": p.value }, "mx-2"]),
|
|
1680
1686
|
size: 20
|
|
1681
1687
|
}, null, 8, ["class"])) : T("", !0)
|
|
1682
|
-
], 46,
|
|
1683
|
-
|
|
1684
|
-
l("ul",
|
|
1688
|
+
], 46, Jt),
|
|
1689
|
+
te(l("div", Qt, [
|
|
1690
|
+
l("ul", Yt, [
|
|
1685
1691
|
(a(!0), r(j, null, E(B.value, (h, D) => (a(), r("li", {
|
|
1686
1692
|
key: h.value,
|
|
1687
1693
|
onMousedown: H((_) => m(h), ["prevent"]),
|
|
@@ -1691,23 +1697,23 @@ const Ee = Q("SunIcon", [
|
|
|
1691
1697
|
"aria-selected": v.value && v.value.value === h.value
|
|
1692
1698
|
}, [
|
|
1693
1699
|
l("a", null, O(h.text), 1)
|
|
1694
|
-
], 40,
|
|
1700
|
+
], 40, el))), 128))
|
|
1695
1701
|
])
|
|
1696
1702
|
], 512), [
|
|
1697
1703
|
[ke, p.value && B.value.length > 0]
|
|
1698
1704
|
])
|
|
1699
1705
|
], 512));
|
|
1700
1706
|
}
|
|
1701
|
-
},
|
|
1707
|
+
}, tl = { class: "w-full max-w-xs form-control" }, ll = {
|
|
1702
1708
|
key: 0,
|
|
1703
1709
|
class: "label"
|
|
1704
|
-
},
|
|
1710
|
+
}, nl = { class: "label-text" }, al = ["type", "placeholder", "disabled", "value"], ol = {
|
|
1705
1711
|
key: 1,
|
|
1706
1712
|
class: "label"
|
|
1707
|
-
},
|
|
1713
|
+
}, sl = { class: "label-text-alt text-error validator-hint" }, il = {
|
|
1708
1714
|
key: 2,
|
|
1709
1715
|
class: "label"
|
|
1710
|
-
},
|
|
1716
|
+
}, rl = { class: "label-text-alt text-success validator-hint" }, en = /* @__PURE__ */ P({
|
|
1711
1717
|
__name: "inputField",
|
|
1712
1718
|
props: {
|
|
1713
1719
|
modelValue: { default: "" },
|
|
@@ -1723,15 +1729,15 @@ const Ee = Q("SunIcon", [
|
|
|
1723
1729
|
disabled: { type: Boolean, default: !1 }
|
|
1724
1730
|
},
|
|
1725
1731
|
emits: ["update:modelValue", "validate"],
|
|
1726
|
-
setup(e, { expose:
|
|
1727
|
-
const o = e,
|
|
1732
|
+
setup(e, { expose: f, emit: t }) {
|
|
1733
|
+
const o = e, d = t, s = k(null), i = k(!1), g = k(""), v = U(() => {
|
|
1728
1734
|
var C, B, L, R;
|
|
1729
1735
|
let y = !0, w = "";
|
|
1730
1736
|
const x = o.modelValue;
|
|
1731
|
-
return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w,
|
|
1737
|
+
return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w, d("validate", y), y;
|
|
1732
1738
|
}), p = U(() => i.value && !v.value), S = (y) => {
|
|
1733
1739
|
const w = y.target;
|
|
1734
|
-
|
|
1740
|
+
d("update:modelValue", w.value), i.value && v.value;
|
|
1735
1741
|
}, I = () => {
|
|
1736
1742
|
i.value = !0, v.value;
|
|
1737
1743
|
};
|
|
@@ -1740,7 +1746,7 @@ const Ee = Q("SunIcon", [
|
|
|
1740
1746
|
() => {
|
|
1741
1747
|
i.value && v.value;
|
|
1742
1748
|
}
|
|
1743
|
-
),
|
|
1749
|
+
), f({
|
|
1744
1750
|
focusInput: () => {
|
|
1745
1751
|
var y;
|
|
1746
1752
|
console.log("inputField.vue: focusInput method called."), (y = s.value) == null || y.focus();
|
|
@@ -1748,18 +1754,18 @@ const Ee = Q("SunIcon", [
|
|
|
1748
1754
|
isValid: v,
|
|
1749
1755
|
isTouched: i,
|
|
1750
1756
|
errorMessage: g
|
|
1751
|
-
}), (y, w) => (a(), r("div",
|
|
1752
|
-
e.label ? (a(), r("label",
|
|
1753
|
-
l("span",
|
|
1757
|
+
}), (y, w) => (a(), r("div", tl, [
|
|
1758
|
+
e.label ? (a(), r("label", ll, [
|
|
1759
|
+
l("span", nl, O(e.label), 1)
|
|
1754
1760
|
])) : T("", !0),
|
|
1755
|
-
|
|
1761
|
+
M(y.$slots, "default"),
|
|
1756
1762
|
l("input", {
|
|
1757
1763
|
ref_key: "inputElement",
|
|
1758
1764
|
ref: s,
|
|
1759
1765
|
type: e.type,
|
|
1760
1766
|
placeholder: e.placeholder,
|
|
1761
1767
|
disabled: o.disabled,
|
|
1762
|
-
class:
|
|
1768
|
+
class: V(["input-bordered rounded-md w-full input validator", [
|
|
1763
1769
|
{
|
|
1764
1770
|
// Size classes - Apply based on size prop
|
|
1765
1771
|
"input-xs": e.size === "xs",
|
|
@@ -1789,15 +1795,15 @@ const Ee = Q("SunIcon", [
|
|
|
1789
1795
|
value: e.modelValue,
|
|
1790
1796
|
onInput: S,
|
|
1791
1797
|
onBlur: I
|
|
1792
|
-
}, null, 42,
|
|
1793
|
-
p.value ? (a(), r("div",
|
|
1794
|
-
l("span",
|
|
1795
|
-
])) : v.value && i.value && e.successMessage ? (a(), r("div",
|
|
1796
|
-
l("span",
|
|
1798
|
+
}, null, 42, al),
|
|
1799
|
+
p.value ? (a(), r("div", ol, [
|
|
1800
|
+
l("span", sl, O(g.value), 1)
|
|
1801
|
+
])) : v.value && i.value && e.successMessage ? (a(), r("div", il, [
|
|
1802
|
+
l("span", rl, O(e.successMessage), 1)
|
|
1797
1803
|
])) : T("", !0)
|
|
1798
1804
|
]));
|
|
1799
1805
|
}
|
|
1800
|
-
}),
|
|
1806
|
+
}), tn = /* @__PURE__ */ P({
|
|
1801
1807
|
__name: "loader",
|
|
1802
1808
|
props: {
|
|
1803
1809
|
loading: { type: Boolean, default: !0 },
|
|
@@ -1806,15 +1812,15 @@ const Ee = Q("SunIcon", [
|
|
|
1806
1812
|
color: { default: "primary" }
|
|
1807
1813
|
},
|
|
1808
1814
|
setup(e) {
|
|
1809
|
-
const
|
|
1815
|
+
const f = e, t = k(f.loading);
|
|
1810
1816
|
return A(
|
|
1811
|
-
() =>
|
|
1817
|
+
() => f.loading,
|
|
1812
1818
|
(o) => {
|
|
1813
1819
|
t.value = o;
|
|
1814
1820
|
}
|
|
1815
|
-
), (o,
|
|
1821
|
+
), (o, d) => t.value ? (a(), r("span", {
|
|
1816
1822
|
key: 0,
|
|
1817
|
-
class:
|
|
1823
|
+
class: V(["loading", [
|
|
1818
1824
|
{ "loading-xs": e.size === "xs" },
|
|
1819
1825
|
{ "loading-sm": e.size === "sm" },
|
|
1820
1826
|
{ "loading-md": e.size === "md" },
|
|
@@ -1839,13 +1845,13 @@ const Ee = Q("SunIcon", [
|
|
|
1839
1845
|
]])
|
|
1840
1846
|
}, null, 2)) : T("", !0);
|
|
1841
1847
|
}
|
|
1842
|
-
}),
|
|
1848
|
+
}), ul = { class: "footer sm:footer-horizontal container" }, dl = { class: "footer-title" }, cl = ["href"], fl = {
|
|
1843
1849
|
key: 0,
|
|
1844
1850
|
class: "sm:hidden w-full"
|
|
1845
|
-
},
|
|
1851
|
+
}, ml = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, vl = {
|
|
1846
1852
|
tabindex: "0",
|
|
1847
1853
|
class: "collapse collapse-plus w-full"
|
|
1848
|
-
},
|
|
1854
|
+
}, pl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, hl = { class: "collapse-content flex w-full text-sm" }, gl = { class: "flex flex-col gap-2.5" }, bl = { class: "w-full" }, yl = ["href"], wl = { class: "w-full" }, ln = /* @__PURE__ */ P({
|
|
1849
1855
|
__name: "footer",
|
|
1850
1856
|
props: {
|
|
1851
1857
|
items: {},
|
|
@@ -1854,118 +1860,118 @@ const Ee = Q("SunIcon", [
|
|
|
1854
1860
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1855
1861
|
},
|
|
1856
1862
|
setup(e) {
|
|
1857
|
-
const
|
|
1863
|
+
const f = e;
|
|
1858
1864
|
return (t, o) => (a(), r("div", {
|
|
1859
|
-
class:
|
|
1865
|
+
class: V(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1860
1866
|
}, [
|
|
1861
|
-
l("footer",
|
|
1862
|
-
(a(!0), r(j, null, E(
|
|
1863
|
-
class:
|
|
1867
|
+
l("footer", ul, [
|
|
1868
|
+
(a(!0), r(j, null, E(f.items, (d) => (a(), r("nav", {
|
|
1869
|
+
class: V([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
1864
1870
|
}, [
|
|
1865
|
-
l("h6",
|
|
1866
|
-
(a(!0), r(j, null, E(
|
|
1871
|
+
l("h6", dl, O(d.title), 1),
|
|
1872
|
+
(a(!0), r(j, null, E(d.items, (s) => (a(), r("a", {
|
|
1867
1873
|
class: "link link-hover",
|
|
1868
1874
|
href: s.link
|
|
1869
|
-
}, O(s.text), 9,
|
|
1875
|
+
}, O(s.text), 9, cl))), 256))
|
|
1870
1876
|
], 2))), 256)),
|
|
1871
|
-
e.collapseOnMobile ? (a(), r("nav",
|
|
1872
|
-
(a(!0), r(j, null, E(
|
|
1873
|
-
l("div",
|
|
1874
|
-
l("div",
|
|
1875
|
-
l("div",
|
|
1876
|
-
l("ul",
|
|
1877
|
-
(a(!0), r(j, null, E(
|
|
1877
|
+
e.collapseOnMobile ? (a(), r("nav", fl, [
|
|
1878
|
+
(a(!0), r(j, null, E(f.items, (d) => (a(), r("ul", ml, [
|
|
1879
|
+
l("div", vl, [
|
|
1880
|
+
l("div", pl, O(d.title), 1),
|
|
1881
|
+
l("div", hl, [
|
|
1882
|
+
l("ul", gl, [
|
|
1883
|
+
(a(!0), r(j, null, E(d.items, (s) => (a(), r("li", bl, [
|
|
1878
1884
|
l("a", {
|
|
1879
1885
|
class: "w-full font-medium link link-hover",
|
|
1880
1886
|
href: s.link
|
|
1881
|
-
}, O(s.text), 9,
|
|
1887
|
+
}, O(s.text), 9, yl)
|
|
1882
1888
|
]))), 256))
|
|
1883
1889
|
])
|
|
1884
1890
|
])
|
|
1885
1891
|
])
|
|
1886
1892
|
]))), 256))
|
|
1887
1893
|
])) : T("", !0),
|
|
1888
|
-
l("aside",
|
|
1889
|
-
|
|
1894
|
+
l("aside", wl, [
|
|
1895
|
+
M(t.$slots, "default")
|
|
1890
1896
|
])
|
|
1891
1897
|
])
|
|
1892
1898
|
], 2));
|
|
1893
1899
|
}
|
|
1894
|
-
}),
|
|
1895
|
-
function
|
|
1896
|
-
return a(), r("div",
|
|
1897
|
-
l("div",
|
|
1900
|
+
}), xl = {}, kl = { class: "min-h-40 container hero" }, $l = { class: "px-0! text-center hero-content" }, Cl = { class: "mt-9 text-4xl" };
|
|
1901
|
+
function Sl(e, f) {
|
|
1902
|
+
return a(), r("div", kl, [
|
|
1903
|
+
l("div", $l, [
|
|
1898
1904
|
l("div", null, [
|
|
1899
|
-
l("h1",
|
|
1900
|
-
|
|
1901
|
-
|
|
1905
|
+
l("h1", Cl, [
|
|
1906
|
+
M(e.$slots, "title", {}, () => [
|
|
1907
|
+
f[0] || (f[0] = ee("hero title", -1))
|
|
1902
1908
|
])
|
|
1903
1909
|
]),
|
|
1904
1910
|
l("p", null, [
|
|
1905
|
-
|
|
1911
|
+
M(e.$slots, "description", { class: "py-9" })
|
|
1906
1912
|
]),
|
|
1907
|
-
|
|
1908
|
-
|
|
1913
|
+
M(e.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
1914
|
+
f[1] || (f[1] = l("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
1909
1915
|
])
|
|
1910
1916
|
])
|
|
1911
1917
|
])
|
|
1912
1918
|
]);
|
|
1913
1919
|
}
|
|
1914
|
-
const
|
|
1920
|
+
const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row place-content-center gap-4 categories" }, Tl = ["onClick"], an = /* @__PURE__ */ P({
|
|
1915
1921
|
__name: "categoryNavigation",
|
|
1916
1922
|
props: {
|
|
1917
1923
|
searchOptions: {},
|
|
1918
1924
|
currentCategory: {}
|
|
1919
1925
|
},
|
|
1920
1926
|
emits: ["update:currentCategory"],
|
|
1921
|
-
setup(e, { emit:
|
|
1922
|
-
const t = e, o =
|
|
1923
|
-
function
|
|
1927
|
+
setup(e, { emit: f }) {
|
|
1928
|
+
const t = e, o = f;
|
|
1929
|
+
function d(s) {
|
|
1924
1930
|
o("update:currentCategory", s);
|
|
1925
1931
|
}
|
|
1926
|
-
return (s, i) => (a(), r("div",
|
|
1932
|
+
return (s, i) => (a(), r("div", Il, [
|
|
1927
1933
|
(a(!0), r(j, null, E(t.searchOptions, (g) => (a(), r("div", {
|
|
1928
1934
|
key: g.category
|
|
1929
1935
|
}, [
|
|
1930
1936
|
l("button", {
|
|
1931
|
-
onClick: (v) =>
|
|
1932
|
-
class:
|
|
1933
|
-
}, O(g.category), 11,
|
|
1937
|
+
onClick: (v) => d(g.category),
|
|
1938
|
+
class: V(["truncate btn btn-ghost", { "font-semibold": t.currentCategory === g.category }])
|
|
1939
|
+
}, O(g.category), 11, Tl)
|
|
1934
1940
|
]))), 128))
|
|
1935
1941
|
]));
|
|
1936
1942
|
}
|
|
1937
|
-
}),
|
|
1943
|
+
}), Ml = { class: "md:flex hidden navbar-start" }, Vl = { class: "md:flex justify-center items-center hidden navbar-center" }, Bl = { class: "md:flex hidden navbar-end" }, Dl = { class: "navbar-bottom md:flex hidden" }, zl = /* @__PURE__ */ P({
|
|
1938
1944
|
__name: "navigationBar",
|
|
1939
1945
|
props: {
|
|
1940
1946
|
isCollapsed: { type: Boolean, default: !0 }
|
|
1941
1947
|
},
|
|
1942
1948
|
setup(e) {
|
|
1943
|
-
const
|
|
1949
|
+
const f = e;
|
|
1944
1950
|
return (t, o) => (a(), r("nav", {
|
|
1945
|
-
class:
|
|
1951
|
+
class: V(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", f.isCollapsed ? "collapsed" : ""])
|
|
1946
1952
|
}, [
|
|
1947
|
-
l("div", Tl, [
|
|
1948
|
-
V(t.$slots, "start", {}, void 0, !0)
|
|
1949
|
-
]),
|
|
1950
1953
|
l("div", Ml, [
|
|
1951
|
-
|
|
1954
|
+
M(t.$slots, "start", {}, void 0, !0)
|
|
1952
1955
|
]),
|
|
1953
1956
|
l("div", Vl, [
|
|
1954
|
-
|
|
1957
|
+
M(t.$slots, "center", {}, void 0, !0)
|
|
1955
1958
|
]),
|
|
1956
1959
|
l("div", Bl, [
|
|
1957
|
-
|
|
1960
|
+
M(t.$slots, "end", {}, void 0, !0)
|
|
1961
|
+
]),
|
|
1962
|
+
l("div", Dl, [
|
|
1963
|
+
M(t.$slots, "bottom", {}, void 0, !0)
|
|
1958
1964
|
])
|
|
1959
1965
|
], 2));
|
|
1960
1966
|
}
|
|
1961
|
-
}),
|
|
1967
|
+
}), on = /* @__PURE__ */ J(zl, [["__scopeId", "data-v-8ddb2b45"]]), Ol = {
|
|
1962
1968
|
key: 0,
|
|
1963
1969
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
1964
|
-
},
|
|
1970
|
+
}, Pl = ["onClick", "aria-selected"], jl = {
|
|
1965
1971
|
key: 0,
|
|
1966
1972
|
role: "tabpanel",
|
|
1967
1973
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
1968
|
-
},
|
|
1974
|
+
}, Ll = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, sn = /* @__PURE__ */ P({
|
|
1969
1975
|
__name: "tab",
|
|
1970
1976
|
props: {
|
|
1971
1977
|
items: {},
|
|
@@ -1974,10 +1980,10 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
1974
1980
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
1975
1981
|
},
|
|
1976
1982
|
emits: ["tab-changed"],
|
|
1977
|
-
setup(e, { emit:
|
|
1978
|
-
const t = e, o = k(t.items[0]),
|
|
1983
|
+
setup(e, { emit: f }) {
|
|
1984
|
+
const t = e, o = k(t.items[0]), d = f;
|
|
1979
1985
|
function s(v) {
|
|
1980
|
-
o.value = v,
|
|
1986
|
+
o.value = v, d("tab-changed", v);
|
|
1981
1987
|
}
|
|
1982
1988
|
function i() {
|
|
1983
1989
|
const p = (t.items.indexOf(o.value) + 1) % t.items.length;
|
|
@@ -1996,9 +2002,9 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
1996
2002
|
}), (v, p) => (a(), r(j, null, [
|
|
1997
2003
|
l("div", {
|
|
1998
2004
|
role: "tablist",
|
|
1999
|
-
class:
|
|
2005
|
+
class: V(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2000
2006
|
}, [
|
|
2001
|
-
e.withControlls ? (a(), r("div",
|
|
2007
|
+
e.withControlls ? (a(), r("div", Ol, [
|
|
2002
2008
|
l("button", {
|
|
2003
2009
|
onClick: p[0] || (p[0] = (S) => g()),
|
|
2004
2010
|
class: "cursor-pointer"
|
|
@@ -2012,17 +2018,17 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
2012
2018
|
l("a", {
|
|
2013
2019
|
type: "button",
|
|
2014
2020
|
role: "tab",
|
|
2015
|
-
class:
|
|
2021
|
+
class: V(["min-w-max tab", S === o.value ? "bg-primary text-base-100" : ""]),
|
|
2016
2022
|
onClick: (I) => s(S),
|
|
2017
2023
|
"aria-selected": o.value == S
|
|
2018
|
-
}, O(S), 11,
|
|
2019
|
-
e.buttonOnlyMode ? T("", !0) : (a(), r("div",
|
|
2020
|
-
|
|
2024
|
+
}, O(S), 11, Pl),
|
|
2025
|
+
e.buttonOnlyMode ? T("", !0) : (a(), r("div", jl, [
|
|
2026
|
+
M(v.$slots, `${S}-tab`)
|
|
2021
2027
|
]))
|
|
2022
2028
|
], 64))), 256))
|
|
2023
2029
|
], 2),
|
|
2024
|
-
l("div",
|
|
2025
|
-
|
|
2030
|
+
l("div", Ll, [
|
|
2031
|
+
M(v.$slots, "default")
|
|
2026
2032
|
])
|
|
2027
2033
|
], 64));
|
|
2028
2034
|
}
|
|
@@ -2030,28 +2036,28 @@ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row
|
|
|
2030
2036
|
typeof document > "u" && (globalThis.document = {});
|
|
2031
2037
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2032
2038
|
export {
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2039
|
+
Ul as Accordion,
|
|
2040
|
+
Gl as AdvancedSearch,
|
|
2041
|
+
ql as Avatar,
|
|
2042
|
+
Hl as Badge,
|
|
2043
|
+
Al as ButtonComponent,
|
|
2044
|
+
Wl as Card,
|
|
2045
|
+
Kl as Carousel,
|
|
2046
|
+
Xl as CarouselItem,
|
|
2047
|
+
an as CategoryNavigation,
|
|
2048
|
+
jt as DatetimePicker,
|
|
2049
|
+
Rl as Dropdown,
|
|
2050
|
+
Yl as FilterableSelect,
|
|
2051
|
+
ln as Footer,
|
|
2052
|
+
nn as Hero,
|
|
2053
|
+
en as InputField,
|
|
2054
|
+
tn as Loader,
|
|
2055
|
+
Nl as Modal,
|
|
2056
|
+
on as NavigationBar,
|
|
2057
|
+
Jl as Rating,
|
|
2058
|
+
Ql as Selector,
|
|
2059
|
+
_l as Swap,
|
|
2060
|
+
sn as Tab,
|
|
2061
|
+
Zl as TagInput,
|
|
2062
|
+
Fl as ThemeController
|
|
2057
2063
|
};
|