manolis-ui 0.14.1 → 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 +477 -467
- package/dist/manolis-ui.umd.cjs +4 -4
- 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
|
|
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":
|
|
@@ -29,8 +29,8 @@ const Ce = ["disabled"], Se = {
|
|
|
29
29
|
default:
|
|
30
30
|
return "";
|
|
31
31
|
}
|
|
32
|
-
}), o =
|
|
33
|
-
switch (
|
|
32
|
+
}), o = U(() => {
|
|
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,44 +313,44 @@ 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
|
-
[he,
|
|
347
|
+
[he, F(t)]
|
|
348
348
|
]),
|
|
349
|
-
G(
|
|
350
|
-
G(
|
|
349
|
+
G(F(Ee), { class: "swap-off fill-current" }),
|
|
350
|
+
G(F(Le), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
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,25 +359,25 @@ 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", {
|
|
368
368
|
type: "radio",
|
|
369
369
|
name: e.name,
|
|
370
370
|
value: "true"
|
|
371
|
-
}, null, 8,
|
|
372
|
-
l("div",
|
|
373
|
-
l("div",
|
|
371
|
+
}, null, 8, _e),
|
|
372
|
+
l("div", Fe, O(d.title), 1),
|
|
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),
|
|
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(
|
|
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,35 +788,35 @@ 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
|
-
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(),
|
|
816
|
+
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), _ = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
|
|
817
817
|
p.value = {
|
|
818
818
|
left: `${q}px`,
|
|
819
|
-
top: `${
|
|
819
|
+
top: `${_ + 8}px`,
|
|
820
820
|
// Add a small gap
|
|
821
821
|
transform: "translateX(-50%)"
|
|
822
822
|
// Center horizontally
|
|
@@ -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,28 +892,28 @@ 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 :
|
|
898
|
-
var h, D,
|
|
897
|
+
)) == null ? void 0 : c.tabs) || [], (n, $) => {
|
|
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
|
-
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((
|
|
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
|
|
906
906
|
}, "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"]),
|
|
907
907
|
ref_for: !0,
|
|
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", {
|
|
@@ -942,7 +942,7 @@ const Ee = Q("SunIcon", [
|
|
|
942
942
|
class: "ml-1 btn btn-primary btn-square",
|
|
943
943
|
onClick: H(w, ["stop"])
|
|
944
944
|
}, [
|
|
945
|
-
G(
|
|
945
|
+
G(F(fe), {
|
|
946
946
|
size: 24,
|
|
947
947
|
color: "white"
|
|
948
948
|
})
|
|
@@ -951,10 +951,10 @@ 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
|
-
G(
|
|
957
|
+
G(F(fe), {
|
|
958
958
|
size: 24,
|
|
959
959
|
color: "white"
|
|
960
960
|
})
|
|
@@ -962,11 +962,11 @@ const Ee = Q("SunIcon", [
|
|
|
962
962
|
])
|
|
963
963
|
], 512),
|
|
964
964
|
l("dialog", {
|
|
965
|
-
id: `advancedSearchMobile-${
|
|
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-${
|
|
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,13 +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
|
+
key: 3,
|
|
1014
|
+
class: "p-4 min-w-2xs"
|
|
1015
|
+
}, zt = ["id", "disabled"], Ot = {
|
|
1013
1016
|
key: 4,
|
|
1014
|
-
class: "flex
|
|
1015
|
-
},
|
|
1017
|
+
class: "flex px-4 my-4 w-full justify-end"
|
|
1018
|
+
}, Pt = /* @__PURE__ */ P({
|
|
1016
1019
|
__name: "datetimePicker",
|
|
1017
1020
|
props: {
|
|
1018
1021
|
mode: { default: "datetime" },
|
|
@@ -1027,16 +1030,16 @@ const Ee = Q("SunIcon", [
|
|
|
1027
1030
|
max: {}
|
|
1028
1031
|
},
|
|
1029
1032
|
emits: ["update:modelValue", "change"],
|
|
1030
|
-
setup(e, { emit:
|
|
1033
|
+
setup(e, { emit: f }) {
|
|
1031
1034
|
K(async () => {
|
|
1032
1035
|
await import("./cally-ZU3K2Th7.js");
|
|
1033
1036
|
});
|
|
1034
|
-
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({
|
|
1035
1038
|
single: null,
|
|
1036
1039
|
start: null,
|
|
1037
1040
|
end: null
|
|
1038
|
-
}), y =
|
|
1039
|
-
const
|
|
1041
|
+
}), y = U(() => {
|
|
1042
|
+
const u = (n) => {
|
|
1040
1043
|
if (!n || n.includes(":")) return n;
|
|
1041
1044
|
if (/^\d{4}-\d{2}-\d{2}$/.test(n))
|
|
1042
1045
|
try {
|
|
@@ -1047,66 +1050,66 @@ const Ee = Q("SunIcon", [
|
|
|
1047
1050
|
}
|
|
1048
1051
|
return n;
|
|
1049
1052
|
};
|
|
1050
|
-
let
|
|
1051
|
-
if (t.mode !== "time" && (t.range && z.value.start && z.value.end ?
|
|
1052
|
-
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);
|
|
1053
1056
|
if (t.mode === "time") return b;
|
|
1054
1057
|
if (t.range) {
|
|
1055
|
-
const [n, $] =
|
|
1058
|
+
const [n, $] = c.split(" - ").map(u), [h, D] = b.split(" - ");
|
|
1056
1059
|
return `${n} ${h} - ${$} ${D}`.trim();
|
|
1057
1060
|
}
|
|
1058
|
-
return `${
|
|
1061
|
+
return `${u(c)} ${b}`.trim();
|
|
1059
1062
|
});
|
|
1060
1063
|
console.log(y);
|
|
1061
1064
|
const w = () => {
|
|
1062
1065
|
if (t.range) {
|
|
1063
|
-
const { start:
|
|
1066
|
+
const { start: u, end: c } = z.value, { from: b, to: n } = I.value;
|
|
1064
1067
|
let $ = null, h = null;
|
|
1065
|
-
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)
|
|
1066
1069
|
return { start: $, end: h };
|
|
1067
1070
|
} else {
|
|
1068
|
-
const
|
|
1069
|
-
if (t.mode === "date") return
|
|
1070
|
-
if (t.mode === "time") return
|
|
1071
|
-
if (t.mode === "datetime" &&
|
|
1072
|
-
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}`;
|
|
1073
1076
|
}
|
|
1074
1077
|
return null;
|
|
1075
1078
|
}, x = () => {
|
|
1076
1079
|
if (i.value)
|
|
1077
1080
|
z.value.single = i.value.value || null;
|
|
1078
1081
|
else if (g.value) {
|
|
1079
|
-
const
|
|
1080
|
-
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;
|
|
1081
1084
|
}
|
|
1082
1085
|
}, C = () => {
|
|
1083
1086
|
x();
|
|
1084
|
-
const
|
|
1085
|
-
o("update:modelValue",
|
|
1087
|
+
const u = w();
|
|
1088
|
+
o("update:modelValue", u), o("change", u);
|
|
1086
1089
|
}, B = () => {
|
|
1087
|
-
var
|
|
1088
|
-
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();
|
|
1089
1092
|
}, L = () => {
|
|
1090
1093
|
s.value = !s.value, s.value && C();
|
|
1091
1094
|
}, R = () => {
|
|
1092
1095
|
s.value = !1, C();
|
|
1093
|
-
}, N = (
|
|
1096
|
+
}, N = (u) => {
|
|
1094
1097
|
if (!t.popup || !s.value) return;
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1098
|
+
const c = d.value, b = u.target;
|
|
1099
|
+
c && !c.contains(b) && R();
|
|
1097
1100
|
}, m = () => {
|
|
1098
|
-
const
|
|
1101
|
+
const u = (c) => c instanceof Date ? c.toISOString() : c;
|
|
1099
1102
|
if (t.initialDate) {
|
|
1100
1103
|
if (t.range && typeof t.initialDate == "object" && "start" in t.initialDate) {
|
|
1101
|
-
const
|
|
1102
|
-
if (z.value.start =
|
|
1103
|
-
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")}`;
|
|
1104
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);
|
|
1105
1108
|
}
|
|
1106
1109
|
} else if (typeof t.initialDate == "string" || t.initialDate instanceof Date) {
|
|
1107
|
-
const
|
|
1108
|
-
if (z.value.single =
|
|
1109
|
-
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")}`;
|
|
1110
1113
|
I.value.single = n, v.value && (v.value.value = n);
|
|
1111
1114
|
}
|
|
1112
1115
|
}
|
|
@@ -1114,27 +1117,27 @@ const Ee = Q("SunIcon", [
|
|
|
1114
1117
|
};
|
|
1115
1118
|
return K(() => {
|
|
1116
1119
|
m(), C();
|
|
1117
|
-
}), (
|
|
1118
|
-
const b =
|
|
1120
|
+
}), (u, c) => {
|
|
1121
|
+
const b = se("calendar-month"), n = se("calendar-date"), $ = se("calendar-range");
|
|
1119
1122
|
return a(), r("div", {
|
|
1120
1123
|
class: "inline-block relative w-fit lg:w-full",
|
|
1121
1124
|
ref_key: "pickerContainer",
|
|
1122
|
-
ref:
|
|
1125
|
+
ref: d,
|
|
1123
1126
|
onMousedownCapture: N
|
|
1124
1127
|
}, [
|
|
1125
1128
|
t.popup ? (a(), r("div", {
|
|
1126
1129
|
key: 0,
|
|
1127
1130
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1128
|
-
onClick:
|
|
1131
|
+
onClick: c[0] || (c[0] = (h) => t.disabled ? null : L())
|
|
1129
1132
|
}, [
|
|
1130
1133
|
l("div", kt, [
|
|
1131
1134
|
y.value ? T("", !0) : (a(), r("span", $t, O(e.placeholder), 1)),
|
|
1132
|
-
|
|
1135
|
+
ee(" " + O(y.value), 1)
|
|
1133
1136
|
])
|
|
1134
1137
|
])) : T("", !0),
|
|
1135
1138
|
s.value || !t.popup ? (a(), r("div", {
|
|
1136
1139
|
key: 1,
|
|
1137
|
-
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 }]),
|
|
1138
1141
|
id: `date-picker-${t.id}-popup`
|
|
1139
1142
|
}, [
|
|
1140
1143
|
!t.range && t.mode !== "time" ? (a(), W(n, {
|
|
@@ -1149,7 +1152,7 @@ const Ee = Q("SunIcon", [
|
|
|
1149
1152
|
onChange: C
|
|
1150
1153
|
}, {
|
|
1151
1154
|
default: ce(() => [
|
|
1152
|
-
|
|
1155
|
+
c[1] || (c[1] = l("button", {
|
|
1153
1156
|
slot: "previous",
|
|
1154
1157
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1155
1158
|
}, [
|
|
@@ -1168,7 +1171,7 @@ const Ee = Q("SunIcon", [
|
|
|
1168
1171
|
})
|
|
1169
1172
|
])
|
|
1170
1173
|
], -1)),
|
|
1171
|
-
|
|
1174
|
+
c[2] || (c[2] = l("button", {
|
|
1172
1175
|
slot: "next",
|
|
1173
1176
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1174
1177
|
}, [
|
|
@@ -1205,7 +1208,7 @@ const Ee = Q("SunIcon", [
|
|
|
1205
1208
|
onChange: C
|
|
1206
1209
|
}, {
|
|
1207
1210
|
default: ce(() => [
|
|
1208
|
-
|
|
1211
|
+
c[3] || (c[3] = l("button", {
|
|
1209
1212
|
slot: "previous",
|
|
1210
1213
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1211
1214
|
}, [
|
|
@@ -1224,7 +1227,7 @@ const Ee = Q("SunIcon", [
|
|
|
1224
1227
|
})
|
|
1225
1228
|
])
|
|
1226
1229
|
], -1)),
|
|
1227
|
-
|
|
1230
|
+
c[4] || (c[4] = l("button", {
|
|
1228
1231
|
slot: "next",
|
|
1229
1232
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1230
1233
|
}, [
|
|
@@ -1251,65 +1254,72 @@ const Ee = Q("SunIcon", [
|
|
|
1251
1254
|
}, 8, ["id", "min", "max", "disabled"])) : T("", !0),
|
|
1252
1255
|
t.range && t.mode !== "date" ? (a(), r("div", St, [
|
|
1253
1256
|
l("div", It, [
|
|
1254
|
-
l("
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
l("
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
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
|
+
])
|
|
1287
1292
|
])
|
|
1288
1293
|
])) : T("", !0),
|
|
1289
|
-
!t.range && t.mode !== "date" ? (a(), r("
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1294
|
+
!t.range && t.mode !== "date" ? (a(), r("div", Dt, [
|
|
1295
|
+
l("input", {
|
|
1296
|
+
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1297
|
+
type: "time",
|
|
1298
|
+
ref_key: "timeInput",
|
|
1299
|
+
ref: v,
|
|
1300
|
+
id: `${t.id}-time`,
|
|
1301
|
+
onChange: B,
|
|
1302
|
+
disabled: t.disabled
|
|
1303
|
+
}, null, 40, zt)
|
|
1304
|
+
])) : T("", !0),
|
|
1305
|
+
t.popup ? (a(), r("div", Ot, [
|
|
1300
1306
|
l("button", {
|
|
1301
|
-
class: "btn btn-primary",
|
|
1307
|
+
class: "btn btn-primary max-lg:w-full",
|
|
1302
1308
|
onClick: R
|
|
1303
|
-
},
|
|
1309
|
+
}, [
|
|
1310
|
+
M(u.$slots, "default", {}, () => [
|
|
1311
|
+
c[6] || (c[6] = ee("Close", -1))
|
|
1312
|
+
], !0)
|
|
1313
|
+
])
|
|
1304
1314
|
])) : T("", !0)
|
|
1305
1315
|
], 10, Ct)) : T("", !0)
|
|
1306
1316
|
], 544);
|
|
1307
1317
|
};
|
|
1308
1318
|
}
|
|
1309
|
-
}),
|
|
1319
|
+
}), jt = /* @__PURE__ */ J(Pt, [["__scopeId", "data-v-6a59f578"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1310
1320
|
__proto__: null,
|
|
1311
|
-
default:
|
|
1312
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1321
|
+
default: jt
|
|
1322
|
+
}, Symbol.toStringTag, { value: "Module" })), Et = ["value", "checked", "onChange", "disabled"], Jl = /* @__PURE__ */ P({
|
|
1313
1323
|
__name: "rating",
|
|
1314
1324
|
props: {
|
|
1315
1325
|
initialRating: { default: 0 },
|
|
@@ -1322,19 +1332,19 @@ const Ee = Q("SunIcon", [
|
|
|
1322
1332
|
gap: { default: 0 }
|
|
1323
1333
|
},
|
|
1324
1334
|
setup(e) {
|
|
1325
|
-
const
|
|
1335
|
+
const f = e, t = k(f.initialRating);
|
|
1326
1336
|
A(
|
|
1327
|
-
() =>
|
|
1328
|
-
(
|
|
1329
|
-
t.value =
|
|
1337
|
+
() => f.initialRating,
|
|
1338
|
+
(d) => {
|
|
1339
|
+
t.value = d;
|
|
1330
1340
|
}
|
|
1331
1341
|
);
|
|
1332
|
-
const o = (
|
|
1333
|
-
t.value =
|
|
1342
|
+
const o = (d) => {
|
|
1343
|
+
t.value = d;
|
|
1334
1344
|
};
|
|
1335
|
-
return (
|
|
1336
|
-
class:
|
|
1337
|
-
`rating-${
|
|
1345
|
+
return (d, s) => (a(), r("div", {
|
|
1346
|
+
class: V(["rating", [
|
|
1347
|
+
`rating-${f.size}`,
|
|
1338
1348
|
{ "rating-half": e.halfStars },
|
|
1339
1349
|
{ "pointer-events-none": !e.isInteractive }
|
|
1340
1350
|
]])
|
|
@@ -1345,7 +1355,7 @@ const Ee = Q("SunIcon", [
|
|
|
1345
1355
|
value: e.halfStars ? i * 0.5 : i,
|
|
1346
1356
|
checked: t.value === (e.halfStars ? i * 0.5 : i),
|
|
1347
1357
|
onChange: (g) => e.isInteractive ? o(e.halfStars ? i * 0.5 : i) : null,
|
|
1348
|
-
class:
|
|
1358
|
+
class: V(["mask", [
|
|
1349
1359
|
{
|
|
1350
1360
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1351
1361
|
"mask-half-1": e.halfStars && i % 2 !== 0,
|
|
@@ -1366,16 +1376,16 @@ const Ee = Q("SunIcon", [
|
|
|
1366
1376
|
"mask-triangle-3": e.shape === "triangle-left",
|
|
1367
1377
|
"mask-triangle-4": e.shape === "triangle-right"
|
|
1368
1378
|
},
|
|
1369
|
-
t.value >= (e.halfStars ? i * 0.5 : i) ?
|
|
1379
|
+
t.value >= (e.halfStars ? i * 0.5 : i) ? f.color : ""
|
|
1370
1380
|
]]),
|
|
1371
1381
|
style: Z({
|
|
1372
|
-
marginRight: e.halfStars && i % 2 === 0 ? `${
|
|
1382
|
+
marginRight: e.halfStars && i % 2 === 0 ? `${f.gap}px` : e.halfStars ? "0" : `${f.gap}px`
|
|
1373
1383
|
}),
|
|
1374
1384
|
disabled: !e.isInteractive
|
|
1375
|
-
}, null, 46,
|
|
1385
|
+
}, null, 46, Et))), 128))
|
|
1376
1386
|
], 2));
|
|
1377
1387
|
}
|
|
1378
|
-
}),
|
|
1388
|
+
}), At = { class: "badge" }, Rt = ["onClick"], Nt = { class: "opacity-75" }, _t = ["placeholder"], Zl = /* @__PURE__ */ P({
|
|
1379
1389
|
__name: "taginput",
|
|
1380
1390
|
props: {
|
|
1381
1391
|
modelValue: {},
|
|
@@ -1384,37 +1394,37 @@ const Ee = Q("SunIcon", [
|
|
|
1384
1394
|
class: {}
|
|
1385
1395
|
},
|
|
1386
1396
|
emits: ["update:modelValue"],
|
|
1387
|
-
setup(e, { emit:
|
|
1388
|
-
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 = () => {
|
|
1389
1399
|
const y = g.value.trim();
|
|
1390
|
-
y && !
|
|
1400
|
+
y && !d.value.includes(y) && (d.value.push(y), o("update:modelValue", d.value), g.value = "");
|
|
1391
1401
|
}, S = (y) => {
|
|
1392
|
-
|
|
1402
|
+
d.value = d.value.filter((w) => w !== y), o("update:modelValue", d.value);
|
|
1393
1403
|
}, I = () => {
|
|
1394
|
-
g.value === "" && (
|
|
1404
|
+
g.value === "" && (d.value.pop(), o("update:modelValue", d.value));
|
|
1395
1405
|
}, z = (y) => {
|
|
1396
1406
|
y.key === "Enter" ? p() : y.key === "Backspace" && g.value === "" && I();
|
|
1397
1407
|
};
|
|
1398
1408
|
return A(() => t.modelValue, (y) => {
|
|
1399
|
-
|
|
1409
|
+
d.value = [...y];
|
|
1400
1410
|
}), (y, w) => (a(), r("div", {
|
|
1401
|
-
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])
|
|
1402
1412
|
}, [
|
|
1403
|
-
(a(!0), r(j, null, E(
|
|
1413
|
+
(a(!0), r(j, null, E(d.value, (x) => M(y.$slots, "tag", {
|
|
1404
1414
|
key: x,
|
|
1405
1415
|
tag: x
|
|
1406
1416
|
}, () => [
|
|
1407
|
-
l("div",
|
|
1417
|
+
l("div", At, [
|
|
1408
1418
|
l("button", {
|
|
1409
1419
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1410
1420
|
onClick: (C) => S(x),
|
|
1411
1421
|
"aria-label": "Remove tag"
|
|
1412
|
-
}, "X", 8,
|
|
1413
|
-
l("span",
|
|
1422
|
+
}, "X", 8, Rt),
|
|
1423
|
+
l("span", Nt, O(x), 1)
|
|
1414
1424
|
])
|
|
1415
1425
|
])), 128)),
|
|
1416
|
-
|
|
1417
|
-
v.value ?
|
|
1426
|
+
M(y.$slots, "input", { showInput: v.value }, () => [
|
|
1427
|
+
v.value ? te((a(), r("input", {
|
|
1418
1428
|
key: 0,
|
|
1419
1429
|
ref_key: "inputRef",
|
|
1420
1430
|
ref: i,
|
|
@@ -1424,21 +1434,21 @@ const Ee = Q("SunIcon", [
|
|
|
1424
1434
|
class: "h-full input input-ghost",
|
|
1425
1435
|
onKeydown: z,
|
|
1426
1436
|
"aria-label": "Add tags"
|
|
1427
|
-
}, null, 40,
|
|
1437
|
+
}, null, 40, _t)), [
|
|
1428
1438
|
[me, g.value]
|
|
1429
1439
|
]) : T("", !0)
|
|
1430
1440
|
])
|
|
1431
1441
|
], 2));
|
|
1432
1442
|
}
|
|
1433
|
-
}),
|
|
1443
|
+
}), Ft = { class: "w-full max-w-xs form-control" }, Ut = {
|
|
1434
1444
|
key: 0,
|
|
1435
1445
|
class: "label"
|
|
1436
|
-
},
|
|
1446
|
+
}, qt = { class: "label-text" }, Ht = ["value"], Wt = {
|
|
1437
1447
|
key: 0,
|
|
1438
1448
|
value: "",
|
|
1439
1449
|
disabled: "",
|
|
1440
1450
|
selected: ""
|
|
1441
|
-
},
|
|
1451
|
+
}, Kt = ["value"], Ql = /* @__PURE__ */ P({
|
|
1442
1452
|
__name: "select",
|
|
1443
1453
|
props: {
|
|
1444
1454
|
options: {},
|
|
@@ -1447,22 +1457,22 @@ const Ee = Q("SunIcon", [
|
|
|
1447
1457
|
modelValue: {}
|
|
1448
1458
|
},
|
|
1449
1459
|
emits: ["update:modelValue"],
|
|
1450
|
-
setup(e, { expose:
|
|
1460
|
+
setup(e, { expose: f, emit: t }) {
|
|
1451
1461
|
console.log(e.placeholder);
|
|
1452
|
-
const
|
|
1462
|
+
const d = t, s = k(null), i = (v) => {
|
|
1453
1463
|
const p = v.target;
|
|
1454
|
-
|
|
1464
|
+
d("update:modelValue", p.value);
|
|
1455
1465
|
};
|
|
1456
|
-
return
|
|
1466
|
+
return f({
|
|
1457
1467
|
focusInput: () => {
|
|
1458
1468
|
var v;
|
|
1459
1469
|
console.log("select.vue: focusInput method called."), (v = s.value) == null || v.focus();
|
|
1460
1470
|
}
|
|
1461
1471
|
// You can expose other properties or methods here if needed by the parent
|
|
1462
1472
|
// e.g., the current value: modelValue
|
|
1463
|
-
}), (v, p) => (a(), r("div",
|
|
1464
|
-
e.label ? (a(), r("label",
|
|
1465
|
-
l("span",
|
|
1473
|
+
}), (v, p) => (a(), r("div", Ft, [
|
|
1474
|
+
e.label ? (a(), r("label", Ut, [
|
|
1475
|
+
l("span", qt, O(e.label), 1)
|
|
1466
1476
|
])) : T("", !0),
|
|
1467
1477
|
l("select", {
|
|
1468
1478
|
ref_key: "selectElement",
|
|
@@ -1471,21 +1481,21 @@ const Ee = Q("SunIcon", [
|
|
|
1471
1481
|
value: e.modelValue,
|
|
1472
1482
|
onChange: i
|
|
1473
1483
|
}, [
|
|
1474
|
-
e.placeholder ? (a(), r("option",
|
|
1484
|
+
e.placeholder ? (a(), r("option", Wt, O(e.placeholder), 1)) : T("", !0),
|
|
1475
1485
|
(a(!0), r(j, null, E(e.options, (S) => (a(), r("option", {
|
|
1476
1486
|
key: S.value,
|
|
1477
1487
|
value: S.value
|
|
1478
|
-
}, O(S.text), 9,
|
|
1479
|
-
], 40,
|
|
1488
|
+
}, O(S.text), 9, Kt))), 128))
|
|
1489
|
+
], 40, Ht)
|
|
1480
1490
|
]));
|
|
1481
1491
|
}
|
|
1482
|
-
}),
|
|
1492
|
+
}), Xt = {
|
|
1483
1493
|
key: 0,
|
|
1484
1494
|
class: "label"
|
|
1485
|
-
},
|
|
1495
|
+
}, Gt = { class: "label-text" }, Jt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Zt = ["placeholder", "disabled"], Qt = {
|
|
1486
1496
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1487
1497
|
role: "listbox"
|
|
1488
|
-
},
|
|
1498
|
+
}, Yt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, el = ["onMousedown", "id", "aria-selected"], Yl = {
|
|
1489
1499
|
__name: "filterableSelect",
|
|
1490
1500
|
props: {
|
|
1491
1501
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1515,8 +1525,8 @@ const Ee = Q("SunIcon", [
|
|
|
1515
1525
|
}
|
|
1516
1526
|
},
|
|
1517
1527
|
emits: ["update:modelValue", "select", "clear"],
|
|
1518
|
-
setup(e, { expose:
|
|
1519
|
-
const o = e,
|
|
1528
|
+
setup(e, { expose: f, emit: t }) {
|
|
1529
|
+
const o = e, d = t, s = we(), i = U(() => {
|
|
1520
1530
|
const $ = (s.default ? s.default() : []).filter((h) => h.type !== xe);
|
|
1521
1531
|
return console.log("hasDefaultSlotContent computed:", $.length > 0), $.length > 0;
|
|
1522
1532
|
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null), z = k(null), y = k(null), w = () => {
|
|
@@ -1525,7 +1535,7 @@ const Ee = Q("SunIcon", [
|
|
|
1525
1535
|
p.value = !1, y.value = null, i.value || (v.value && g.value !== v.value.text ? g.value = v.value.text : v.value || (g.value = ""));
|
|
1526
1536
|
}, C = () => {
|
|
1527
1537
|
p.value ? x() : w();
|
|
1528
|
-
}, B =
|
|
1538
|
+
}, B = U(() => {
|
|
1529
1539
|
const n = g.value ? g.value.toLowerCase() : "";
|
|
1530
1540
|
return n === "" && !p.value ? [] : o.options.filter(
|
|
1531
1541
|
(h) => h && h.text ? h.text.toLowerCase().includes(n) : ""
|
|
@@ -1555,23 +1565,23 @@ const Ee = Q("SunIcon", [
|
|
|
1555
1565
|
n ? setTimeout(() => {
|
|
1556
1566
|
document.addEventListener("click", L);
|
|
1557
1567
|
}, 0) : document.removeEventListener("click", L);
|
|
1558
|
-
}),
|
|
1568
|
+
}), re(() => {
|
|
1559
1569
|
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1560
1570
|
});
|
|
1561
1571
|
const N = () => {
|
|
1562
1572
|
if (o.disabled) return;
|
|
1563
1573
|
const n = v.value;
|
|
1564
|
-
|
|
1574
|
+
d("update:modelValue", null), n && d("clear", n);
|
|
1565
1575
|
}, m = (n) => {
|
|
1566
|
-
v.value = n, i.value || (g.value = n.text),
|
|
1567
|
-
},
|
|
1576
|
+
v.value = n, i.value || (g.value = n.text), d("update:modelValue", n.value), d("select", n), x();
|
|
1577
|
+
}, u = () => {
|
|
1568
1578
|
B.value.length > 0 && m(B.value[0]);
|
|
1569
|
-
},
|
|
1579
|
+
}, c = () => {
|
|
1570
1580
|
p.value || w();
|
|
1571
1581
|
}, b = (n) => {
|
|
1572
1582
|
if (!p.value || B.value.length === 0) return;
|
|
1573
1583
|
const $ = B.value.findIndex(
|
|
1574
|
-
(D,
|
|
1584
|
+
(D, _) => "option-" + _ === y.value
|
|
1575
1585
|
);
|
|
1576
1586
|
let h = -1;
|
|
1577
1587
|
if (n.key === "ArrowDown")
|
|
@@ -1581,7 +1591,7 @@ const Ee = Q("SunIcon", [
|
|
|
1581
1591
|
else if (n.key === "Enter" && y.value) {
|
|
1582
1592
|
n.preventDefault();
|
|
1583
1593
|
const D = B.value.find(
|
|
1584
|
-
(
|
|
1594
|
+
(_, q) => "option-" + q === y.value
|
|
1585
1595
|
);
|
|
1586
1596
|
D && m(D);
|
|
1587
1597
|
return;
|
|
@@ -1600,9 +1610,9 @@ const Ee = Q("SunIcon", [
|
|
|
1600
1610
|
};
|
|
1601
1611
|
return A(p, (n) => {
|
|
1602
1612
|
n ? (window.addEventListener("keydown", b), !i.value && !g.value && v.value && (g.value = v.value.text)) : window.removeEventListener("keydown", b);
|
|
1603
|
-
}),
|
|
1613
|
+
}), re(() => {
|
|
1604
1614
|
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1605
|
-
}),
|
|
1615
|
+
}), f({
|
|
1606
1616
|
isDropdownOpen: p,
|
|
1607
1617
|
// Expose state
|
|
1608
1618
|
selectedItem: v,
|
|
@@ -1624,19 +1634,19 @@ const Ee = Q("SunIcon", [
|
|
|
1624
1634
|
ref_key: "componentRoot",
|
|
1625
1635
|
ref: I
|
|
1626
1636
|
}, [
|
|
1627
|
-
e.label ? (a(), r("label",
|
|
1628
|
-
l("span",
|
|
1637
|
+
e.label ? (a(), r("label", Xt, [
|
|
1638
|
+
l("span", Gt, O(e.label), 1)
|
|
1629
1639
|
])) : T("", !0),
|
|
1630
1640
|
l("div", {
|
|
1631
|
-
class:
|
|
1641
|
+
class: V(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !i.value, select: !i.value }]),
|
|
1632
1642
|
style: Z(
|
|
1633
1643
|
v.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1634
1644
|
),
|
|
1635
1645
|
tabindex: "0",
|
|
1636
1646
|
onClick: $[1] || ($[1] = (h) => i.value ? C() : w()),
|
|
1637
1647
|
onKeydown: [
|
|
1638
|
-
|
|
1639
|
-
|
|
1648
|
+
ue(H(u, ["prevent"]), ["enter"]),
|
|
1649
|
+
ue(H(u, ["prevent"]), ["space"])
|
|
1640
1650
|
],
|
|
1641
1651
|
onBlur: R,
|
|
1642
1652
|
role: "combobox",
|
|
@@ -1647,8 +1657,8 @@ const Ee = Q("SunIcon", [
|
|
|
1647
1657
|
ref_key: "activatorWrapper",
|
|
1648
1658
|
ref: z
|
|
1649
1659
|
}, [
|
|
1650
|
-
|
|
1651
|
-
i.value ? T("", !0) :
|
|
1660
|
+
M(n.$slots, "default", {}, () => [
|
|
1661
|
+
i.value ? T("", !0) : te((a(), r("input", {
|
|
1652
1662
|
key: 0,
|
|
1653
1663
|
type: "text",
|
|
1654
1664
|
placeholder: e.placeholder,
|
|
@@ -1657,53 +1667,53 @@ const Ee = Q("SunIcon", [
|
|
|
1657
1667
|
ref_key: "filterInput",
|
|
1658
1668
|
ref: S,
|
|
1659
1669
|
onFocus: w,
|
|
1660
|
-
onInput:
|
|
1670
|
+
onInput: c,
|
|
1661
1671
|
tabindex: "-1",
|
|
1662
1672
|
disabled: o.disabled
|
|
1663
|
-
}, null, 40,
|
|
1673
|
+
}, null, 40, Zt)), [
|
|
1664
1674
|
[me, g.value]
|
|
1665
1675
|
])
|
|
1666
1676
|
]),
|
|
1667
|
-
v.value && !e.disabled ? (a(), W(
|
|
1677
|
+
v.value && !e.disabled ? (a(), W(F(je), {
|
|
1668
1678
|
key: 0,
|
|
1669
1679
|
size: 20,
|
|
1670
1680
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1671
1681
|
onClick: H(N, ["stop"])
|
|
1672
1682
|
})) : T("", !0),
|
|
1673
|
-
i.value && !v.value ? (a(), W(
|
|
1683
|
+
i.value && !v.value ? (a(), W(F(Pe), {
|
|
1674
1684
|
key: 1,
|
|
1675
|
-
class:
|
|
1685
|
+
class: V([{ "rotate-180": p.value }, "mx-2"]),
|
|
1676
1686
|
size: 20
|
|
1677
1687
|
}, null, 8, ["class"])) : T("", !0)
|
|
1678
|
-
], 46,
|
|
1679
|
-
|
|
1680
|
-
l("ul",
|
|
1688
|
+
], 46, Jt),
|
|
1689
|
+
te(l("div", Qt, [
|
|
1690
|
+
l("ul", Yt, [
|
|
1681
1691
|
(a(!0), r(j, null, E(B.value, (h, D) => (a(), r("li", {
|
|
1682
1692
|
key: h.value,
|
|
1683
|
-
onMousedown: H((
|
|
1693
|
+
onMousedown: H((_) => m(h), ["prevent"]),
|
|
1684
1694
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1685
1695
|
id: "option-" + D,
|
|
1686
1696
|
role: "option",
|
|
1687
1697
|
"aria-selected": v.value && v.value.value === h.value
|
|
1688
1698
|
}, [
|
|
1689
1699
|
l("a", null, O(h.text), 1)
|
|
1690
|
-
], 40,
|
|
1700
|
+
], 40, el))), 128))
|
|
1691
1701
|
])
|
|
1692
1702
|
], 512), [
|
|
1693
1703
|
[ke, p.value && B.value.length > 0]
|
|
1694
1704
|
])
|
|
1695
1705
|
], 512));
|
|
1696
1706
|
}
|
|
1697
|
-
},
|
|
1707
|
+
}, tl = { class: "w-full max-w-xs form-control" }, ll = {
|
|
1698
1708
|
key: 0,
|
|
1699
1709
|
class: "label"
|
|
1700
|
-
},
|
|
1710
|
+
}, nl = { class: "label-text" }, al = ["type", "placeholder", "disabled", "value"], ol = {
|
|
1701
1711
|
key: 1,
|
|
1702
1712
|
class: "label"
|
|
1703
|
-
},
|
|
1713
|
+
}, sl = { class: "label-text-alt text-error validator-hint" }, il = {
|
|
1704
1714
|
key: 2,
|
|
1705
1715
|
class: "label"
|
|
1706
|
-
},
|
|
1716
|
+
}, rl = { class: "label-text-alt text-success validator-hint" }, en = /* @__PURE__ */ P({
|
|
1707
1717
|
__name: "inputField",
|
|
1708
1718
|
props: {
|
|
1709
1719
|
modelValue: { default: "" },
|
|
@@ -1719,15 +1729,15 @@ const Ee = Q("SunIcon", [
|
|
|
1719
1729
|
disabled: { type: Boolean, default: !1 }
|
|
1720
1730
|
},
|
|
1721
1731
|
emits: ["update:modelValue", "validate"],
|
|
1722
|
-
setup(e, { expose:
|
|
1723
|
-
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(() => {
|
|
1724
1734
|
var C, B, L, R;
|
|
1725
1735
|
let y = !0, w = "";
|
|
1726
1736
|
const x = o.modelValue;
|
|
1727
|
-
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,
|
|
1728
|
-
}), p =
|
|
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;
|
|
1738
|
+
}), p = U(() => i.value && !v.value), S = (y) => {
|
|
1729
1739
|
const w = y.target;
|
|
1730
|
-
|
|
1740
|
+
d("update:modelValue", w.value), i.value && v.value;
|
|
1731
1741
|
}, I = () => {
|
|
1732
1742
|
i.value = !0, v.value;
|
|
1733
1743
|
};
|
|
@@ -1736,7 +1746,7 @@ const Ee = Q("SunIcon", [
|
|
|
1736
1746
|
() => {
|
|
1737
1747
|
i.value && v.value;
|
|
1738
1748
|
}
|
|
1739
|
-
),
|
|
1749
|
+
), f({
|
|
1740
1750
|
focusInput: () => {
|
|
1741
1751
|
var y;
|
|
1742
1752
|
console.log("inputField.vue: focusInput method called."), (y = s.value) == null || y.focus();
|
|
@@ -1744,18 +1754,18 @@ const Ee = Q("SunIcon", [
|
|
|
1744
1754
|
isValid: v,
|
|
1745
1755
|
isTouched: i,
|
|
1746
1756
|
errorMessage: g
|
|
1747
|
-
}), (y, w) => (a(), r("div",
|
|
1748
|
-
e.label ? (a(), r("label",
|
|
1749
|
-
l("span",
|
|
1757
|
+
}), (y, w) => (a(), r("div", tl, [
|
|
1758
|
+
e.label ? (a(), r("label", ll, [
|
|
1759
|
+
l("span", nl, O(e.label), 1)
|
|
1750
1760
|
])) : T("", !0),
|
|
1751
|
-
|
|
1761
|
+
M(y.$slots, "default"),
|
|
1752
1762
|
l("input", {
|
|
1753
1763
|
ref_key: "inputElement",
|
|
1754
1764
|
ref: s,
|
|
1755
1765
|
type: e.type,
|
|
1756
1766
|
placeholder: e.placeholder,
|
|
1757
1767
|
disabled: o.disabled,
|
|
1758
|
-
class:
|
|
1768
|
+
class: V(["input-bordered rounded-md w-full input validator", [
|
|
1759
1769
|
{
|
|
1760
1770
|
// Size classes - Apply based on size prop
|
|
1761
1771
|
"input-xs": e.size === "xs",
|
|
@@ -1785,15 +1795,15 @@ const Ee = Q("SunIcon", [
|
|
|
1785
1795
|
value: e.modelValue,
|
|
1786
1796
|
onInput: S,
|
|
1787
1797
|
onBlur: I
|
|
1788
|
-
}, null, 42,
|
|
1789
|
-
p.value ? (a(), r("div",
|
|
1790
|
-
l("span",
|
|
1791
|
-
])) : v.value && i.value && e.successMessage ? (a(), r("div",
|
|
1792
|
-
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)
|
|
1793
1803
|
])) : T("", !0)
|
|
1794
1804
|
]));
|
|
1795
1805
|
}
|
|
1796
|
-
}),
|
|
1806
|
+
}), tn = /* @__PURE__ */ P({
|
|
1797
1807
|
__name: "loader",
|
|
1798
1808
|
props: {
|
|
1799
1809
|
loading: { type: Boolean, default: !0 },
|
|
@@ -1802,15 +1812,15 @@ const Ee = Q("SunIcon", [
|
|
|
1802
1812
|
color: { default: "primary" }
|
|
1803
1813
|
},
|
|
1804
1814
|
setup(e) {
|
|
1805
|
-
const
|
|
1815
|
+
const f = e, t = k(f.loading);
|
|
1806
1816
|
return A(
|
|
1807
|
-
() =>
|
|
1817
|
+
() => f.loading,
|
|
1808
1818
|
(o) => {
|
|
1809
1819
|
t.value = o;
|
|
1810
1820
|
}
|
|
1811
|
-
), (o,
|
|
1821
|
+
), (o, d) => t.value ? (a(), r("span", {
|
|
1812
1822
|
key: 0,
|
|
1813
|
-
class:
|
|
1823
|
+
class: V(["loading", [
|
|
1814
1824
|
{ "loading-xs": e.size === "xs" },
|
|
1815
1825
|
{ "loading-sm": e.size === "sm" },
|
|
1816
1826
|
{ "loading-md": e.size === "md" },
|
|
@@ -1835,13 +1845,13 @@ const Ee = Q("SunIcon", [
|
|
|
1835
1845
|
]])
|
|
1836
1846
|
}, null, 2)) : T("", !0);
|
|
1837
1847
|
}
|
|
1838
|
-
}),
|
|
1848
|
+
}), ul = { class: "footer sm:footer-horizontal container" }, dl = { class: "footer-title" }, cl = ["href"], fl = {
|
|
1839
1849
|
key: 0,
|
|
1840
1850
|
class: "sm:hidden w-full"
|
|
1841
|
-
},
|
|
1851
|
+
}, ml = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, vl = {
|
|
1842
1852
|
tabindex: "0",
|
|
1843
1853
|
class: "collapse collapse-plus w-full"
|
|
1844
|
-
},
|
|
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({
|
|
1845
1855
|
__name: "footer",
|
|
1846
1856
|
props: {
|
|
1847
1857
|
items: {},
|
|
@@ -1850,118 +1860,118 @@ const Ee = Q("SunIcon", [
|
|
|
1850
1860
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1851
1861
|
},
|
|
1852
1862
|
setup(e) {
|
|
1853
|
-
const
|
|
1863
|
+
const f = e;
|
|
1854
1864
|
return (t, o) => (a(), r("div", {
|
|
1855
|
-
class:
|
|
1865
|
+
class: V(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1856
1866
|
}, [
|
|
1857
|
-
l("footer",
|
|
1858
|
-
(a(!0), r(j, null, E(
|
|
1859
|
-
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 }])
|
|
1860
1870
|
}, [
|
|
1861
|
-
l("h6",
|
|
1862
|
-
(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", {
|
|
1863
1873
|
class: "link link-hover",
|
|
1864
1874
|
href: s.link
|
|
1865
|
-
}, O(s.text), 9,
|
|
1875
|
+
}, O(s.text), 9, cl))), 256))
|
|
1866
1876
|
], 2))), 256)),
|
|
1867
|
-
e.collapseOnMobile ? (a(), r("nav",
|
|
1868
|
-
(a(!0), r(j, null, E(
|
|
1869
|
-
l("div",
|
|
1870
|
-
l("div",
|
|
1871
|
-
l("div",
|
|
1872
|
-
l("ul",
|
|
1873
|
-
(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, [
|
|
1874
1884
|
l("a", {
|
|
1875
1885
|
class: "w-full font-medium link link-hover",
|
|
1876
1886
|
href: s.link
|
|
1877
|
-
}, O(s.text), 9,
|
|
1887
|
+
}, O(s.text), 9, yl)
|
|
1878
1888
|
]))), 256))
|
|
1879
1889
|
])
|
|
1880
1890
|
])
|
|
1881
1891
|
])
|
|
1882
1892
|
]))), 256))
|
|
1883
1893
|
])) : T("", !0),
|
|
1884
|
-
l("aside",
|
|
1885
|
-
|
|
1894
|
+
l("aside", wl, [
|
|
1895
|
+
M(t.$slots, "default")
|
|
1886
1896
|
])
|
|
1887
1897
|
])
|
|
1888
1898
|
], 2));
|
|
1889
1899
|
}
|
|
1890
|
-
}),
|
|
1891
|
-
function
|
|
1892
|
-
return a(), r("div",
|
|
1893
|
-
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, [
|
|
1894
1904
|
l("div", null, [
|
|
1895
|
-
l("h1",
|
|
1896
|
-
|
|
1897
|
-
|
|
1905
|
+
l("h1", Cl, [
|
|
1906
|
+
M(e.$slots, "title", {}, () => [
|
|
1907
|
+
f[0] || (f[0] = ee("hero title", -1))
|
|
1898
1908
|
])
|
|
1899
1909
|
]),
|
|
1900
1910
|
l("p", null, [
|
|
1901
|
-
|
|
1911
|
+
M(e.$slots, "description", { class: "py-9" })
|
|
1902
1912
|
]),
|
|
1903
|
-
|
|
1904
|
-
|
|
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))
|
|
1905
1915
|
])
|
|
1906
1916
|
])
|
|
1907
1917
|
])
|
|
1908
1918
|
]);
|
|
1909
1919
|
}
|
|
1910
|
-
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({
|
|
1911
1921
|
__name: "categoryNavigation",
|
|
1912
1922
|
props: {
|
|
1913
1923
|
searchOptions: {},
|
|
1914
1924
|
currentCategory: {}
|
|
1915
1925
|
},
|
|
1916
1926
|
emits: ["update:currentCategory"],
|
|
1917
|
-
setup(e, { emit:
|
|
1918
|
-
const t = e, o =
|
|
1919
|
-
function
|
|
1927
|
+
setup(e, { emit: f }) {
|
|
1928
|
+
const t = e, o = f;
|
|
1929
|
+
function d(s) {
|
|
1920
1930
|
o("update:currentCategory", s);
|
|
1921
1931
|
}
|
|
1922
|
-
return (s, i) => (a(), r("div",
|
|
1932
|
+
return (s, i) => (a(), r("div", Il, [
|
|
1923
1933
|
(a(!0), r(j, null, E(t.searchOptions, (g) => (a(), r("div", {
|
|
1924
1934
|
key: g.category
|
|
1925
1935
|
}, [
|
|
1926
1936
|
l("button", {
|
|
1927
|
-
onClick: (v) =>
|
|
1928
|
-
class:
|
|
1929
|
-
}, 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)
|
|
1930
1940
|
]))), 128))
|
|
1931
1941
|
]));
|
|
1932
1942
|
}
|
|
1933
|
-
}),
|
|
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({
|
|
1934
1944
|
__name: "navigationBar",
|
|
1935
1945
|
props: {
|
|
1936
1946
|
isCollapsed: { type: Boolean, default: !0 }
|
|
1937
1947
|
},
|
|
1938
1948
|
setup(e) {
|
|
1939
|
-
const
|
|
1949
|
+
const f = e;
|
|
1940
1950
|
return (t, o) => (a(), r("nav", {
|
|
1941
|
-
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" : ""])
|
|
1942
1952
|
}, [
|
|
1943
|
-
l("div", Il, [
|
|
1944
|
-
V(t.$slots, "start", {}, void 0, !0)
|
|
1945
|
-
]),
|
|
1946
|
-
l("div", Tl, [
|
|
1947
|
-
V(t.$slots, "center", {}, void 0, !0)
|
|
1948
|
-
]),
|
|
1949
1953
|
l("div", Ml, [
|
|
1950
|
-
|
|
1954
|
+
M(t.$slots, "start", {}, void 0, !0)
|
|
1951
1955
|
]),
|
|
1952
1956
|
l("div", Vl, [
|
|
1953
|
-
|
|
1957
|
+
M(t.$slots, "center", {}, void 0, !0)
|
|
1958
|
+
]),
|
|
1959
|
+
l("div", Bl, [
|
|
1960
|
+
M(t.$slots, "end", {}, void 0, !0)
|
|
1961
|
+
]),
|
|
1962
|
+
l("div", Dl, [
|
|
1963
|
+
M(t.$slots, "bottom", {}, void 0, !0)
|
|
1954
1964
|
])
|
|
1955
1965
|
], 2));
|
|
1956
1966
|
}
|
|
1957
|
-
}),
|
|
1967
|
+
}), on = /* @__PURE__ */ J(zl, [["__scopeId", "data-v-8ddb2b45"]]), Ol = {
|
|
1958
1968
|
key: 0,
|
|
1959
1969
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
1960
|
-
},
|
|
1970
|
+
}, Pl = ["onClick", "aria-selected"], jl = {
|
|
1961
1971
|
key: 0,
|
|
1962
1972
|
role: "tabpanel",
|
|
1963
1973
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
1964
|
-
},
|
|
1974
|
+
}, Ll = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, sn = /* @__PURE__ */ P({
|
|
1965
1975
|
__name: "tab",
|
|
1966
1976
|
props: {
|
|
1967
1977
|
items: {},
|
|
@@ -1970,10 +1980,10 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
|
|
|
1970
1980
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
1971
1981
|
},
|
|
1972
1982
|
emits: ["tab-changed"],
|
|
1973
|
-
setup(e, { emit:
|
|
1974
|
-
const t = e, o = k(t.items[0]),
|
|
1983
|
+
setup(e, { emit: f }) {
|
|
1984
|
+
const t = e, o = k(t.items[0]), d = f;
|
|
1975
1985
|
function s(v) {
|
|
1976
|
-
o.value = v,
|
|
1986
|
+
o.value = v, d("tab-changed", v);
|
|
1977
1987
|
}
|
|
1978
1988
|
function i() {
|
|
1979
1989
|
const p = (t.items.indexOf(o.value) + 1) % t.items.length;
|
|
@@ -1992,9 +2002,9 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
|
|
|
1992
2002
|
}), (v, p) => (a(), r(j, null, [
|
|
1993
2003
|
l("div", {
|
|
1994
2004
|
role: "tablist",
|
|
1995
|
-
class:
|
|
2005
|
+
class: V(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
1996
2006
|
}, [
|
|
1997
|
-
e.withControlls ? (a(), r("div",
|
|
2007
|
+
e.withControlls ? (a(), r("div", Ol, [
|
|
1998
2008
|
l("button", {
|
|
1999
2009
|
onClick: p[0] || (p[0] = (S) => g()),
|
|
2000
2010
|
class: "cursor-pointer"
|
|
@@ -2008,17 +2018,17 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
|
|
|
2008
2018
|
l("a", {
|
|
2009
2019
|
type: "button",
|
|
2010
2020
|
role: "tab",
|
|
2011
|
-
class:
|
|
2021
|
+
class: V(["min-w-max tab", S === o.value ? "bg-primary text-base-100" : ""]),
|
|
2012
2022
|
onClick: (I) => s(S),
|
|
2013
2023
|
"aria-selected": o.value == S
|
|
2014
|
-
}, O(S), 11,
|
|
2015
|
-
e.buttonOnlyMode ? T("", !0) : (a(), r("div",
|
|
2016
|
-
|
|
2024
|
+
}, O(S), 11, Pl),
|
|
2025
|
+
e.buttonOnlyMode ? T("", !0) : (a(), r("div", jl, [
|
|
2026
|
+
M(v.$slots, `${S}-tab`)
|
|
2017
2027
|
]))
|
|
2018
2028
|
], 64))), 256))
|
|
2019
2029
|
], 2),
|
|
2020
|
-
l("div",
|
|
2021
|
-
|
|
2030
|
+
l("div", Ll, [
|
|
2031
|
+
M(v.$slots, "default")
|
|
2022
2032
|
])
|
|
2023
2033
|
], 64));
|
|
2024
2034
|
}
|
|
@@ -2026,28 +2036,28 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
|
|
|
2026
2036
|
typeof document > "u" && (globalThis.document = {});
|
|
2027
2037
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2028
2038
|
export {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
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
|
|
2053
2063
|
};
|