manolis-ui 0.20.2 → 0.20.3
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 +21 -0
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +666 -624
- package/dist/manolis-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as j, computed as H, createElementBlock as i, openBlock as o, normalizeClass as $, createCommentVNode as z, renderSlot as B, createTextVNode as _e, createElementVNode as n, Fragment as A, renderList as X, toDisplayString as T, ref as h, watch as q, h as Oe, onMounted as de, withDirectives as Ie, createVNode as se, isRef as We, vModelCheckbox as Ke, unref as ee, provide as Xe, onUnmounted as Ee, normalizeStyle as be, Transition as Pe, withCtx as ye, inject as Ye, useId as Ge, defineAsyncComponent as ze, nextTick as me, onBeforeUnmount as Ve, withModifiers as oe, createBlock as re, resolveDynamicComponent as Te, mergeProps as Be, withKeys as pe, resolveComponent as De, vModelText as Ae, useSlots as Je, Comment as Ze, vShow as Qe, readonly as et, TransitionGroup as tt } from "vue";
|
|
2
2
|
const lt = ["disabled"], at = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, _a = /* @__PURE__ */ j({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -54,7 +54,7 @@ const lt = ["disabled"], at = {
|
|
|
54
54
|
default:
|
|
55
55
|
return "btn-neutral";
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), r = H(() => {
|
|
58
58
|
switch (c.shape) {
|
|
59
59
|
case "square":
|
|
60
60
|
return "btn-square";
|
|
@@ -64,27 +64,27 @@ const lt = ["disabled"], at = {
|
|
|
64
64
|
return "";
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
return (
|
|
68
|
-
class:
|
|
67
|
+
return (a, s) => (o(), i("button", {
|
|
68
|
+
class: $([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": c.outlined },
|
|
71
71
|
{ "btn-active": c.active },
|
|
72
72
|
t.value,
|
|
73
73
|
l.value,
|
|
74
|
-
|
|
74
|
+
r.value
|
|
75
75
|
]),
|
|
76
76
|
disabled: c.disabled
|
|
77
77
|
}, [
|
|
78
78
|
e.loading ? (o(), i("span", at)) : z("", !0),
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
B(a.$slots, "default", {}, () => [
|
|
80
|
+
s[0] || (s[0] = _e("Submit", -1))
|
|
81
81
|
])
|
|
82
82
|
], 10, lt));
|
|
83
83
|
}
|
|
84
84
|
}), nt = {
|
|
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
|
-
}, ot = ["href"],
|
|
87
|
+
}, ot = ["href"], Ea = /* @__PURE__ */ j({
|
|
88
88
|
__name: "dropdown",
|
|
89
89
|
props: {
|
|
90
90
|
items: {},
|
|
@@ -103,26 +103,26 @@ const lt = ["disabled"], at = {
|
|
|
103
103
|
start: "",
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = e;
|
|
106
|
-
return (
|
|
107
|
-
class:
|
|
106
|
+
return (r, a) => (o(), i("div", {
|
|
107
|
+
class: $(["dropdown", c[t.position], l[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
B(r.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
113
|
-
|
|
113
|
+
a[0] || (a[0] = n("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
114
114
|
]),
|
|
115
|
-
|
|
116
|
-
(o(!0), i(
|
|
117
|
-
|
|
118
|
-
href:
|
|
119
|
-
},
|
|
115
|
+
n("ul", nt, [
|
|
116
|
+
(o(!0), i(A, null, X(e.items, (s) => (o(), i("li", null, [
|
|
117
|
+
n("a", {
|
|
118
|
+
href: s.link
|
|
119
|
+
}, T(s.text), 9, ot)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
B(r.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}), st = { class: "modal-box" }, it = { class: "modal-action" },
|
|
125
|
+
}), st = { class: "modal-box" }, it = { class: "modal-action" }, La = /* @__PURE__ */ j({
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
@@ -134,44 +134,44 @@ const lt = ["disabled"], at = {
|
|
|
134
134
|
top: "modal-top",
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
|
-
}, t = h(null),
|
|
138
|
-
var
|
|
139
|
-
(
|
|
140
|
-
},
|
|
141
|
-
var
|
|
142
|
-
(
|
|
137
|
+
}, t = h(null), r = () => {
|
|
138
|
+
var s;
|
|
139
|
+
(s = t.value) == null || s.showModal();
|
|
140
|
+
}, a = () => {
|
|
141
|
+
var s;
|
|
142
|
+
(s = t.value) == null || s.close();
|
|
143
143
|
};
|
|
144
|
-
return
|
|
144
|
+
return q(
|
|
145
145
|
() => c.forceOpen,
|
|
146
|
-
(
|
|
147
|
-
|
|
146
|
+
(s) => {
|
|
147
|
+
s == !0 && r(), s == !1 && a();
|
|
148
148
|
}
|
|
149
|
-
), (
|
|
149
|
+
), (s, m) => (o(), i(A, null, [
|
|
150
150
|
c.forceOpen == null ? (o(), i("span", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: r
|
|
154
154
|
}, [
|
|
155
|
-
|
|
156
|
-
m[0] || (m[0] =
|
|
155
|
+
B(s.$slots, "trigger", { role: "button" }, () => [
|
|
156
|
+
m[0] || (m[0] = n("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : z("", !0),
|
|
159
|
-
|
|
159
|
+
n("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
161
|
ref: t,
|
|
162
|
-
class:
|
|
162
|
+
class: $(["modal", l[c.position]])
|
|
163
163
|
}, [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
n("div", st, [
|
|
165
|
+
B(s.$slots, "default"),
|
|
166
|
+
n("div", it, [
|
|
167
|
+
B(s.$slots, "actions"),
|
|
168
|
+
n("form", {
|
|
169
169
|
method: "dialog",
|
|
170
|
-
onSubmit:
|
|
171
|
-
class:
|
|
170
|
+
onSubmit: a,
|
|
171
|
+
class: $(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
174
|
-
m[1] || (m[1] =
|
|
173
|
+
B(s.$slots, "close-button", {}, () => [
|
|
174
|
+
m[1] || (m[1] = n("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
177
177
|
])
|
|
@@ -179,7 +179,7 @@ const lt = ["disabled"], at = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}), rt = { class: "flex justify-center items-center swap-on" }, ut = { class: "flex justify-center items-center swap-off" },
|
|
182
|
+
}), rt = { class: "flex justify-center items-center swap-on" }, ut = { class: "flex justify-center items-center swap-off" }, ja = /* @__PURE__ */ j({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
@@ -187,14 +187,14 @@ const lt = ["disabled"], at = {
|
|
|
187
187
|
setup(e) {
|
|
188
188
|
const c = e;
|
|
189
189
|
return (l, t) => (o(), i("label", {
|
|
190
|
-
class:
|
|
190
|
+
class: $(["swap", c.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
|
-
t[0] || (t[0] =
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
|
|
193
|
+
n("div", rt, [
|
|
194
|
+
B(l.$slots, "on")
|
|
195
195
|
]),
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
n("div", ut, [
|
|
197
|
+
B(l.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -229,7 +229,7 @@ var Ce = {
|
|
|
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 dt = ({ size: e, strokeWidth: c = 2, absoluteStrokeWidth: l, color: t, iconNode:
|
|
232
|
+
const dt = ({ size: e, strokeWidth: c = 2, absoluteStrokeWidth: l, color: t, iconNode: r, name: a, class: s, ...m }, { slots: u }) => Oe(
|
|
233
233
|
"svg",
|
|
234
234
|
{
|
|
235
235
|
...Ce,
|
|
@@ -237,10 +237,10 @@ const dt = ({ size: e, strokeWidth: c = 2, absoluteStrokeWidth: l, color: t, ico
|
|
|
237
237
|
height: e || Ce.height,
|
|
238
238
|
stroke: t || Ce.stroke,
|
|
239
239
|
"stroke-width": l ? Number(c) * 24 / Number(e) : c,
|
|
240
|
-
class: ["lucide", `lucide-${ct(
|
|
240
|
+
class: ["lucide", `lucide-${ct(a ?? "icon")}`],
|
|
241
241
|
...m
|
|
242
242
|
},
|
|
243
|
-
[...
|
|
243
|
+
[...r.map((g) => Oe(...g)), ...u.default ? [u.default()] : []]
|
|
244
244
|
);
|
|
245
245
|
/**
|
|
246
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -293,7 +293,7 @@ const mt = we("MoonIcon", [
|
|
|
293
293
|
* This source code is licensed under the ISC license.
|
|
294
294
|
* See the LICENSE file in the root directory of this source tree.
|
|
295
295
|
*/
|
|
296
|
-
const
|
|
296
|
+
const Re = we("SearchIcon", [
|
|
297
297
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
298
298
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
299
299
|
]);
|
|
@@ -320,10 +320,10 @@ const pt = we("SunIcon", [
|
|
|
320
320
|
const t = window.localStorage.getItem(e);
|
|
321
321
|
l.value = t ? JSON.parse(t) : c;
|
|
322
322
|
}
|
|
323
|
-
}),
|
|
323
|
+
}), q(l, (t) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(t));
|
|
325
325
|
}), l;
|
|
326
|
-
}, gt = { class: "swap-rotate swap" },
|
|
326
|
+
}, gt = { class: "swap-rotate swap" }, yt = ["true-value", "false-value"], Pa = /* @__PURE__ */ j({
|
|
327
327
|
__name: "theme-controller",
|
|
328
328
|
props: {
|
|
329
329
|
lightTheme: { default: "light" },
|
|
@@ -331,26 +331,26 @@ const pt = we("SunIcon", [
|
|
|
331
331
|
},
|
|
332
332
|
setup(e) {
|
|
333
333
|
const c = e, l = ht("theme", c.lightTheme);
|
|
334
|
-
function t(
|
|
335
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
334
|
+
function t(r) {
|
|
335
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", r);
|
|
336
336
|
}
|
|
337
|
-
return de(() => t(l.value ? l.value : "")),
|
|
338
|
-
t(
|
|
339
|
-
}), (
|
|
340
|
-
Ie(
|
|
337
|
+
return de(() => t(l.value ? l.value : "")), q(l, (r) => {
|
|
338
|
+
t(r);
|
|
339
|
+
}), (r, a) => (o(), i("label", gt, [
|
|
340
|
+
Ie(n("input", {
|
|
341
341
|
type: "checkbox",
|
|
342
342
|
class: "theme-controller",
|
|
343
|
-
"onUpdate:modelValue":
|
|
343
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => We(l) ? l.value = s : null),
|
|
344
344
|
"true-value": c.lightTheme,
|
|
345
345
|
"false-value": c.darkTheme
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, yt), [
|
|
347
347
|
[Ke, ee(l)]
|
|
348
348
|
]),
|
|
349
349
|
se(ee(pt), { class: "swap-off fill-current" }),
|
|
350
350
|
se(ee(mt), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), bt = {
|
|
354
354
|
key: 0,
|
|
355
355
|
class: "join join-vertical w-full"
|
|
356
356
|
}, wt = ["name"], xt = {
|
|
@@ -359,7 +359,7 @@ const pt = we("SunIcon", [
|
|
|
359
359
|
}, kt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, $t = { class: "collapse-content" }, Ct = ["innerHTML"], St = ["name"], It = {
|
|
360
360
|
key: 1,
|
|
361
361
|
type: "checkbox"
|
|
362
|
-
}, Mt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, zt = { class: "collapse-content" }, Tt = ["innerHTML"],
|
|
362
|
+
}, Mt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, zt = { class: "collapse-content" }, Tt = ["innerHTML"], Ra = /* @__PURE__ */ j({
|
|
363
363
|
__name: "accordion",
|
|
364
364
|
props: {
|
|
365
365
|
name: {},
|
|
@@ -370,10 +370,10 @@ const pt = we("SunIcon", [
|
|
|
370
370
|
},
|
|
371
371
|
setup(e) {
|
|
372
372
|
const c = e;
|
|
373
|
-
return (l, t) => c.joinItems ? (o(), i("div",
|
|
374
|
-
(o(!0), i(
|
|
375
|
-
class:
|
|
376
|
-
key:
|
|
373
|
+
return (l, t) => c.joinItems ? (o(), i("div", bt, [
|
|
374
|
+
(o(!0), i(A, null, X(c.items, (r, a) => (o(), i("div", {
|
|
375
|
+
class: $(["collapse border border-base-300 join-item", [e.icon ? `collapse-${e.icon}` : ""]]),
|
|
376
|
+
key: a
|
|
377
377
|
}, [
|
|
378
378
|
e.toggle ? (o(), i("input", xt)) : (o(), i("input", {
|
|
379
379
|
key: 0,
|
|
@@ -381,16 +381,16 @@ const pt = we("SunIcon", [
|
|
|
381
381
|
name: e.name,
|
|
382
382
|
value: "true"
|
|
383
383
|
}, null, 8, wt)),
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
innerHTML:
|
|
384
|
+
n("div", kt, T(r.title), 1),
|
|
385
|
+
n("div", $t, [
|
|
386
|
+
n("span", {
|
|
387
|
+
innerHTML: r.content
|
|
388
388
|
}, null, 8, Ct)
|
|
389
389
|
])
|
|
390
390
|
], 2))), 128))
|
|
391
|
-
])) : (o(!0), i(
|
|
392
|
-
class:
|
|
393
|
-
key:
|
|
391
|
+
])) : (o(!0), i(A, { key: 1 }, X(c.items, (r, a) => (o(), i("div", {
|
|
392
|
+
class: $(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : ""]]),
|
|
393
|
+
key: a
|
|
394
394
|
}, [
|
|
395
395
|
e.toggle ? (o(), i("input", It)) : (o(), i("input", {
|
|
396
396
|
key: 0,
|
|
@@ -398,15 +398,15 @@ const pt = we("SunIcon", [
|
|
|
398
398
|
name: e.name,
|
|
399
399
|
value: "true"
|
|
400
400
|
}, null, 8, St)),
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
innerHTML:
|
|
401
|
+
n("div", Mt, T(r.title), 1),
|
|
402
|
+
n("div", zt, [
|
|
403
|
+
n("span", {
|
|
404
|
+
innerHTML: r.content
|
|
405
405
|
}, null, 8, Tt)
|
|
406
406
|
])
|
|
407
407
|
], 2))), 128));
|
|
408
408
|
}
|
|
409
|
-
}), Bt = ["src"], Dt = { class: "text-xl" },
|
|
409
|
+
}), Bt = ["src"], Dt = { class: "text-xl" }, Aa = /* @__PURE__ */ j({
|
|
410
410
|
__name: "avatar",
|
|
411
411
|
props: {
|
|
412
412
|
image: {},
|
|
@@ -416,31 +416,31 @@ const pt = we("SunIcon", [
|
|
|
416
416
|
},
|
|
417
417
|
setup(e) {
|
|
418
418
|
const c = e, l = h(c.onlineStatus);
|
|
419
|
-
return
|
|
419
|
+
return q(
|
|
420
420
|
() => c.onlineStatus,
|
|
421
421
|
(t) => {
|
|
422
422
|
t && (l.value = t);
|
|
423
423
|
}
|
|
424
|
-
), (t,
|
|
425
|
-
class:
|
|
424
|
+
), (t, r) => (o(), i("div", {
|
|
425
|
+
class: $(["avatar", [{ "avatar-online": l.value === "online" }, { "avatar-offline": l.value === "offline" }]])
|
|
426
426
|
}, [
|
|
427
427
|
e.image ? (o(), i("div", {
|
|
428
428
|
key: 0,
|
|
429
|
-
class:
|
|
429
|
+
class: $(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
n("img", {
|
|
432
432
|
src: e.image,
|
|
433
433
|
class: "w-full h-full"
|
|
434
434
|
}, null, 8, Bt)
|
|
435
435
|
], 2)) : (o(), i("div", {
|
|
436
436
|
key: 1,
|
|
437
|
-
class:
|
|
437
|
+
class: $(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
438
438
|
}, [
|
|
439
|
-
|
|
439
|
+
n("p", Dt, T(e.initials), 1)
|
|
440
440
|
], 2))
|
|
441
441
|
], 2));
|
|
442
442
|
}
|
|
443
|
-
}),
|
|
443
|
+
}), Na = /* @__PURE__ */ j({
|
|
444
444
|
__name: "badge",
|
|
445
445
|
props: {
|
|
446
446
|
color: { default: "neutral" },
|
|
@@ -464,10 +464,10 @@ const pt = we("SunIcon", [
|
|
|
464
464
|
warning: "badge-warning",
|
|
465
465
|
error: "badge-error"
|
|
466
466
|
};
|
|
467
|
-
return (
|
|
468
|
-
class:
|
|
467
|
+
return (r, a) => (o(), i("span", {
|
|
468
|
+
class: $(["badge", l[c.size], t[c.color], { "badge-outline": c.outline }])
|
|
469
469
|
}, [
|
|
470
|
-
|
|
470
|
+
B(r.$slots, "default")
|
|
471
471
|
], 2));
|
|
472
472
|
}
|
|
473
473
|
}), Ot = ["src", "alt"], Vt = {
|
|
@@ -482,7 +482,7 @@ const pt = we("SunIcon", [
|
|
|
482
482
|
}, Lt = { class: "flex-col flex-nowrap mt-auto card-actions" }, jt = {
|
|
483
483
|
key: 1,
|
|
484
484
|
class: "card-body"
|
|
485
|
-
},
|
|
485
|
+
}, qa = /* @__PURE__ */ j({
|
|
486
486
|
__name: "card",
|
|
487
487
|
props: {
|
|
488
488
|
imgUrl: { default: "" },
|
|
@@ -500,27 +500,27 @@ const pt = we("SunIcon", [
|
|
|
500
500
|
},
|
|
501
501
|
setup(e) {
|
|
502
502
|
const c = e, l = h(c.outlined);
|
|
503
|
-
return
|
|
503
|
+
return q(
|
|
504
504
|
() => c.outlined,
|
|
505
505
|
(t) => {
|
|
506
506
|
l.value = t;
|
|
507
507
|
}
|
|
508
|
-
), (t,
|
|
509
|
-
class:
|
|
508
|
+
), (t, r) => (o(), i("div", {
|
|
509
|
+
class: $(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
510
510
|
{ "border-4 border-primary": l.value },
|
|
511
511
|
e.color ?? "",
|
|
512
512
|
e.background,
|
|
513
513
|
{ "card-side": e.horizontal }
|
|
514
514
|
]])
|
|
515
515
|
}, [
|
|
516
|
-
|
|
517
|
-
class:
|
|
516
|
+
n("figure", {
|
|
517
|
+
class: $([{ "contents!": e.horizontal && e.imgWidth }])
|
|
518
518
|
}, [
|
|
519
519
|
e.imgUrl || e.imgUrl && !e.loading ? (o(), i("img", {
|
|
520
520
|
key: 0,
|
|
521
521
|
src: e.imgUrl,
|
|
522
522
|
alt: e.alt,
|
|
523
|
-
class:
|
|
523
|
+
class: $(["rounded-sm object-cover", [
|
|
524
524
|
{
|
|
525
525
|
hidden: e.loading
|
|
526
526
|
},
|
|
@@ -530,22 +530,22 @@ const pt = we("SunIcon", [
|
|
|
530
530
|
}, null, 10, Ot)) : z("", !0),
|
|
531
531
|
e.loading && e.imgUrl ? (o(), i("div", {
|
|
532
532
|
key: 1,
|
|
533
|
-
class:
|
|
533
|
+
class: $(["w-full skeleton", e.imgHeight])
|
|
534
534
|
}, null, 2)) : z("", !0)
|
|
535
535
|
], 2),
|
|
536
536
|
e.loading ? z("", !0) : (o(), i("div", Vt, [
|
|
537
|
-
e.title ? (o(), i("h2", _t,
|
|
538
|
-
|
|
539
|
-
e.description ? (o(), i("p", Et,
|
|
540
|
-
|
|
541
|
-
|
|
537
|
+
e.title ? (o(), i("h2", _t, T(e.title), 1)) : z("", !0),
|
|
538
|
+
B(t.$slots, "details"),
|
|
539
|
+
e.description ? (o(), i("p", Et, T(e.description), 1)) : z("", !0),
|
|
540
|
+
n("div", Lt, [
|
|
541
|
+
B(t.$slots, "actions")
|
|
542
542
|
])
|
|
543
543
|
])),
|
|
544
|
-
e.loading ? (o(), i("div", jt, [...
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
544
|
+
e.loading ? (o(), i("div", jt, [...r[0] || (r[0] = [
|
|
545
|
+
n("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
546
|
+
n("div", { class: "w-28 h-4 skeleton" }),
|
|
547
|
+
n("div", { class: "w-full h-4 skeleton" }),
|
|
548
|
+
n("div", { class: "w-full h-4 skeleton" })
|
|
549
549
|
], -1)
|
|
550
550
|
])])) : z("", !0)
|
|
551
551
|
], 2));
|
|
@@ -560,7 +560,7 @@ const pt = we("SunIcon", [
|
|
|
560
560
|
key: 1,
|
|
561
561
|
id: "carousel-indicators",
|
|
562
562
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
563
|
-
}, qt = ["onClick", "aria-label"], Ft = /* @__PURE__ */
|
|
563
|
+
}, qt = ["onClick", "aria-label"], Ft = /* @__PURE__ */ j({
|
|
564
564
|
__name: "carousel",
|
|
565
565
|
props: {
|
|
566
566
|
showIndicators: {
|
|
@@ -616,60 +616,60 @@ const pt = we("SunIcon", [
|
|
|
616
616
|
}
|
|
617
617
|
},
|
|
618
618
|
setup(e, { expose: c }) {
|
|
619
|
-
const l = e, t = h(l.initialSlide),
|
|
620
|
-
const
|
|
619
|
+
const l = e, t = h(l.initialSlide), r = h(null), a = h(null), s = h(0), m = h(!1), u = h(0), g = h(0), S = h(!1), R = h(0), V = h(0), v = h(0), O = h(0), M = h(0), U = h(0), N = h(0), W = h(null), Z = h(null), te = h(0), f = h(null), b = H(() => {
|
|
620
|
+
const C = Object.keys(l.breakpoints).map(Number).sort((E, F) => E - F);
|
|
621
621
|
let k = {};
|
|
622
|
-
for (const E of
|
|
622
|
+
for (const E of C)
|
|
623
623
|
g.value >= E && (k = { ...k, ...l.breakpoints[E] });
|
|
624
624
|
return k;
|
|
625
|
-
}),
|
|
626
|
-
const
|
|
627
|
-
return
|
|
625
|
+
}), y = H(() => b.value.slidesPerView ?? l.slidesPerView), I = H(() => b.value.gap ?? l.gap), d = H(() => {
|
|
626
|
+
const C = l.sliderOrientation === "horizontal", E = `calc((100% - ${y.value > 1 ? (y.value - 1) * I.value : 0}px) / ${y.value})`;
|
|
627
|
+
return C ? {
|
|
628
628
|
width: E
|
|
629
629
|
} : { height: E };
|
|
630
630
|
});
|
|
631
631
|
Xe(Ne, d);
|
|
632
632
|
const D = () => {
|
|
633
|
-
|
|
633
|
+
a.value ? u.value = a.value.children.length : u.value = 0;
|
|
634
634
|
}, w = () => {
|
|
635
|
-
if (!
|
|
636
|
-
const k = l.sliderOrientation === "horizontal" ?
|
|
637
|
-
return k <= 0 ? 0 : (k - E) /
|
|
635
|
+
if (!r.value || y.value <= 0) return 0;
|
|
636
|
+
const k = l.sliderOrientation === "horizontal" ? r.value.offsetWidth : r.value.offsetHeight, E = (y.value - 1) * I.value;
|
|
637
|
+
return k <= 0 ? 0 : (k - E) / y.value;
|
|
638
638
|
}, _ = H(() => {
|
|
639
|
-
if (!
|
|
640
|
-
const k = l.sliderOrientation === "horizontal" ?
|
|
639
|
+
if (!r.value || u.value === 0 || y.value === 0) return 0;
|
|
640
|
+
const k = l.sliderOrientation === "horizontal" ? r.value.offsetWidth : r.value.offsetHeight, E = w(), F = u.value * (E + I.value) - I.value;
|
|
641
641
|
return Math.max(0, F - k);
|
|
642
|
-
}),
|
|
643
|
-
if (!
|
|
642
|
+
}), P = async (C, k = !1) => {
|
|
643
|
+
if (!r.value || y.value <= 0 || m.value || (D(), u.value === 0)) return;
|
|
644
644
|
const E = w();
|
|
645
645
|
if (E <= 0) return;
|
|
646
646
|
const F = E + I.value, J = _.value;
|
|
647
|
-
let K =
|
|
648
|
-
l.infinite ? K = (
|
|
647
|
+
let K = C;
|
|
648
|
+
l.infinite ? K = (C % u.value + u.value) % u.value : K = Math.max(0, Math.min(C, u.value - y.value));
|
|
649
649
|
const ae = K * F, G = l.infinite ? ae : Math.max(0, Math.min(ae, J));
|
|
650
650
|
if (k || l.slideDuration === 0) {
|
|
651
|
-
|
|
651
|
+
a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-G}px, 0, 0)` : `translate3d(0, ${-G}px, 0)`), s.value = G, t.value = K, m.value = !1, l.autoplay && he();
|
|
652
652
|
return;
|
|
653
653
|
}
|
|
654
654
|
m.value = !0;
|
|
655
|
-
const ne =
|
|
656
|
-
if (!
|
|
657
|
-
const He = $e - ge,
|
|
658
|
-
|
|
655
|
+
const ne = s.value, le = G - ne, ge = performance.now(), fe = ($e) => {
|
|
656
|
+
if (!a.value) return;
|
|
657
|
+
const He = $e - ge, je = Math.min(1, He / l.slideDuration), Ue = 1 - Math.pow(1 - je, 3), Me = ne + le * Ue;
|
|
658
|
+
a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Me}px, 0, 0)` : `translate3d(0, ${-Me}px, 0)`, s.value = Me, je < 1 ? W.value = requestAnimationFrame(fe) : (a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-G}px, 0, 0)` : `translate3d(0, ${-G}px, 0)`, s.value = G, t.value = K, m.value = !1, l.autoplay && he(), W.value = null);
|
|
659
659
|
};
|
|
660
660
|
W.value = requestAnimationFrame(fe);
|
|
661
661
|
}, Q = () => {
|
|
662
|
-
l.infinite && t.value >= u.value -
|
|
662
|
+
l.infinite && t.value >= u.value - y.value ? P(0) : P(t.value + 1);
|
|
663
663
|
}, ce = () => {
|
|
664
|
-
l.infinite && t.value <= 0 ?
|
|
665
|
-
}, p = (
|
|
666
|
-
|
|
667
|
-
}, x = (
|
|
664
|
+
l.infinite && t.value <= 0 ? P(u.value - y.value) : P(t.value - 1);
|
|
665
|
+
}, p = (C) => {
|
|
666
|
+
P(C);
|
|
667
|
+
}, x = (C) => {
|
|
668
668
|
m.value && W.value && (l.autoplay && xe(), cancelAnimationFrame(W.value), m.value = !1);
|
|
669
|
-
const k = "touches" in
|
|
670
|
-
R.value = k.clientX, V.value = k.clientY, f.value = null, v.value =
|
|
671
|
-
}, L = (
|
|
672
|
-
const k = "touches" in
|
|
669
|
+
const k = "touches" in C ? C.touches[0] : C;
|
|
670
|
+
R.value = k.clientX, V.value = k.clientY, f.value = null, v.value = s.value, O.value = 0, M.value = 0, U.value = 0, N.value = performance.now(), r.value && (r.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", L, { passive: !1 }), document.addEventListener("mouseup", ie), document.addEventListener("touchmove", L, { passive: !1 }), document.addEventListener("touchend", ie);
|
|
671
|
+
}, L = (C) => {
|
|
672
|
+
const k = "touches" in C ? C.touches[0] : C;
|
|
673
673
|
if (!f.value) {
|
|
674
674
|
const ge = Math.abs(k.clientX - R.value), fe = Math.abs(k.clientY - V.value), $e = 5;
|
|
675
675
|
if (ge > $e || fe > $e)
|
|
@@ -689,40 +689,40 @@ const pt = we("SunIcon", [
|
|
|
689
689
|
else
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
if (!S.value || !
|
|
693
|
-
|
|
694
|
-
const E = performance.now(), F = E -
|
|
692
|
+
if (!S.value || !a.value || !r.value) return;
|
|
693
|
+
C.cancelable && C.preventDefault();
|
|
694
|
+
const E = performance.now(), F = E - N.value, J = l.sliderOrientation === "horizontal" ? k.clientX : k.clientY, K = l.sliderOrientation === "horizontal" ? R.value : V.value, ae = l.sliderOrientation === "horizontal" ? M.value || K : U.value || K, G = J - ae;
|
|
695
695
|
F > 0 && (O.value = G / F * 1e3);
|
|
696
696
|
const ne = J - K;
|
|
697
697
|
let le = v.value - ne;
|
|
698
|
-
le < 0 ? le = le * 0.3 : le > _.value && (le = _.value + (le - _.value) * 0.3), te.value = le,
|
|
698
|
+
le < 0 ? le = le * 0.3 : le > _.value && (le = _.value + (le - _.value) * 0.3), te.value = le, a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-te.value}px, 0, 0)` : `translate3d(0, ${-te.value}px, 0)`, l.sliderOrientation === "horizontal" ? M.value = J : U.value = J, N.value = E;
|
|
699
699
|
}, Y = () => {
|
|
700
700
|
document.removeEventListener("mousemove", L), document.removeEventListener("mouseup", ie), document.removeEventListener("touchmove", L), document.removeEventListener("touchend", ie);
|
|
701
701
|
}, ie = () => {
|
|
702
|
-
if (!S.value || !
|
|
702
|
+
if (!S.value || !r.value || !a.value) return;
|
|
703
703
|
const k = l.sliderOrientation === "horizontal" ? v.value - (M.value - R.value) : v.value - (U.value - V.value), E = Math.max(0, Math.min(k, _.value)), F = w() + I.value;
|
|
704
|
-
if (S.value = !1, Y(),
|
|
704
|
+
if (S.value = !1, Y(), s.value = E, l.infinite) {
|
|
705
705
|
if (k < 0) {
|
|
706
|
-
|
|
706
|
+
P(u.value - 1);
|
|
707
707
|
return;
|
|
708
708
|
} else if (k > _.value) {
|
|
709
|
-
|
|
709
|
+
P(0);
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
712
|
} else if (k < 0) {
|
|
713
|
-
|
|
713
|
+
P(0);
|
|
714
714
|
return;
|
|
715
715
|
} else if (k > _.value) {
|
|
716
|
-
const G = Math.max(0, u.value - Math.floor(
|
|
717
|
-
|
|
716
|
+
const G = Math.max(0, u.value - Math.floor(y.value));
|
|
717
|
+
P(G);
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
|
-
const J = Math.max(0, u.value - Math.floor(
|
|
720
|
+
const J = Math.max(0, u.value - Math.floor(y.value)), K = 100, ae = Math.round(E / F);
|
|
721
721
|
if (Math.abs(O.value) > K) {
|
|
722
722
|
const G = -Math.sign(O.value), ne = ae + G;
|
|
723
|
-
|
|
723
|
+
P(Math.max(0, Math.min(J, ne)));
|
|
724
724
|
} else
|
|
725
|
-
|
|
725
|
+
P(Math.max(0, Math.min(J, ae)));
|
|
726
726
|
}, ve = () => {
|
|
727
727
|
!l.autoplay || Z.value !== null || (Z.value = setInterval(() => {
|
|
728
728
|
Q();
|
|
@@ -733,70 +733,70 @@ const pt = we("SunIcon", [
|
|
|
733
733
|
xe(), setTimeout(() => {
|
|
734
734
|
ve();
|
|
735
735
|
}, 500);
|
|
736
|
-
}, ke = h(null), qe = (
|
|
737
|
-
if (
|
|
736
|
+
}, ke = h(null), qe = (C) => {
|
|
737
|
+
if (!C || C.length === 0)
|
|
738
738
|
return;
|
|
739
|
-
const { width: k } =
|
|
739
|
+
const { width: k } = C[0].contentRect;
|
|
740
740
|
Math.abs(k - g.value) > 1 && (g.value = k);
|
|
741
741
|
}, Fe = () => {
|
|
742
|
-
if (!
|
|
743
|
-
const
|
|
744
|
-
if (
|
|
745
|
-
const k = Math.max(0, u.value -
|
|
746
|
-
|
|
742
|
+
if (!r.value || y.value <= 0 || (D(), u.value === 0)) return;
|
|
743
|
+
const C = w();
|
|
744
|
+
if (C <= 0) return;
|
|
745
|
+
const k = Math.max(0, u.value - y.value), E = Math.min(Math.max(0, l.initialSlide), k), F = E * (C + I.value), J = _.value, K = Math.max(0, Math.min(F, J));
|
|
746
|
+
a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-K}px, 0, 0)` : `translate3d(0, ${-K}px, 0)`), s.value = K, t.value = E;
|
|
747
747
|
};
|
|
748
|
-
let
|
|
748
|
+
let Le = !1;
|
|
749
749
|
return de(() => {
|
|
750
750
|
var k, E, F, J, K, ae, G, ne;
|
|
751
751
|
g.value = window.innerWidth;
|
|
752
|
-
const
|
|
753
|
-
le > 0 && !
|
|
752
|
+
const C = q(u, (le) => {
|
|
753
|
+
le > 0 && !Le && (Fe(), Le = !0, C());
|
|
754
754
|
});
|
|
755
|
-
l.autoplay && ve(), D(),
|
|
756
|
-
}),
|
|
755
|
+
l.autoplay && ve(), D(), r.value && (ke.value = new ResizeObserver(qe), ke.value.observe(r.value)), (k = r.value) == null || k.addEventListener("mousedown", x), (E = r.value) == null || E.addEventListener("touchstart", x, { passive: !0 }), l.showNavigationButtons && ((K = (J = (F = r.value) == null ? void 0 : F.parentElement) == null ? void 0 : J.querySelector(".absolute.flex.justify-between")) == null || K.addEventListener("click", he)), l.showIndicators && ((ne = (G = (ae = r.value) == null ? void 0 : ae.parentElement) == null ? void 0 : G.querySelector(".bottom-5.flex.justify-center")) == null || ne.addEventListener("click", he));
|
|
756
|
+
}), Ee(() => {
|
|
757
757
|
ke.value && ke.value.disconnect(), xe();
|
|
758
|
-
}),
|
|
759
|
-
|
|
760
|
-
}),
|
|
761
|
-
requestAnimationFrame(() =>
|
|
762
|
-
}),
|
|
758
|
+
}), q(() => l.autoplay, (C) => {
|
|
759
|
+
C ? ve() : xe();
|
|
760
|
+
}), q(() => l.autoplayInterval, he), q(() => l.initialSlide, (C) => {
|
|
761
|
+
requestAnimationFrame(() => P(C, !0));
|
|
762
|
+
}), q([y, I], () => {
|
|
763
763
|
requestAnimationFrame(() => {
|
|
764
764
|
requestAnimationFrame(() => {
|
|
765
765
|
if (D(), u.value === 0) return;
|
|
766
|
-
const
|
|
767
|
-
|
|
766
|
+
const C = Math.max(0, u.value - y.value), k = Math.min(t.value, C);
|
|
767
|
+
P(k, !0);
|
|
768
768
|
});
|
|
769
769
|
});
|
|
770
|
-
}), c({ scrollToSlide:
|
|
771
|
-
|
|
770
|
+
}), c({ scrollToSlide: P }), (C, k) => (o(), i("div", Pt, [
|
|
771
|
+
n("div", {
|
|
772
772
|
ref_key: "carouselContainer",
|
|
773
|
-
ref:
|
|
774
|
-
class:
|
|
773
|
+
ref: r,
|
|
774
|
+
class: $(["rounded w-full h-full carousel", [{ "carousel-horizontal": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }, { "cursor-grabbing !select-none": S.value }]]),
|
|
775
775
|
style: { scrollSnapType: "none" }
|
|
776
776
|
}, [
|
|
777
|
-
|
|
777
|
+
n("div", {
|
|
778
778
|
ref_key: "slidesContainer",
|
|
779
|
-
ref:
|
|
780
|
-
class:
|
|
781
|
-
style:
|
|
779
|
+
ref: a,
|
|
780
|
+
class: $(["w-full h-full transition-transform duration-0 ease-out", e.sliderOrientation === "horizontal" ? "flex" : "block"]),
|
|
781
|
+
style: be({ gap: `${I.value}px` })
|
|
782
782
|
}, [
|
|
783
|
-
|
|
783
|
+
B(C.$slots, "default", {}, void 0, !0)
|
|
784
784
|
], 6)
|
|
785
785
|
], 2),
|
|
786
786
|
e.showNavigationButtons ? (o(), i("div", {
|
|
787
787
|
key: 0,
|
|
788
|
-
class:
|
|
788
|
+
class: $([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
|
|
789
789
|
}, [
|
|
790
|
-
se(
|
|
791
|
-
default:
|
|
790
|
+
se(Pe, { name: "fade" }, {
|
|
791
|
+
default: ye(() => [
|
|
792
792
|
l.infinite || t.value > 0 ? (o(), i("div", Rt, [
|
|
793
|
-
|
|
793
|
+
n("div", {
|
|
794
794
|
onClick: ce,
|
|
795
795
|
role: "button",
|
|
796
796
|
"aria-label": "Previous Slide"
|
|
797
797
|
}, [
|
|
798
|
-
|
|
799
|
-
k[0] || (k[0] =
|
|
798
|
+
B(C.$slots, "prevButton", {}, () => [
|
|
799
|
+
k[0] || (k[0] = n("button", {
|
|
800
800
|
class: "btn btn-circle text-xs",
|
|
801
801
|
tabindex: "-1"
|
|
802
802
|
}, "❮", -1))
|
|
@@ -806,17 +806,17 @@ const pt = we("SunIcon", [
|
|
|
806
806
|
]),
|
|
807
807
|
_: 3
|
|
808
808
|
}),
|
|
809
|
-
k[2] || (k[2] =
|
|
810
|
-
se(
|
|
811
|
-
default:
|
|
812
|
-
l.infinite || t.value < u.value -
|
|
813
|
-
|
|
809
|
+
k[2] || (k[2] = n("div", { class: "flex-grow" }, null, -1)),
|
|
810
|
+
se(Pe, { name: "fade" }, {
|
|
811
|
+
default: ye(() => [
|
|
812
|
+
l.infinite || t.value < u.value - y.value ? (o(), i("div", At, [
|
|
813
|
+
n("div", {
|
|
814
814
|
onClick: Q,
|
|
815
815
|
role: "button",
|
|
816
816
|
"aria-label": "Next Slide"
|
|
817
817
|
}, [
|
|
818
|
-
|
|
819
|
-
k[1] || (k[1] =
|
|
818
|
+
B(C.$slots, "nextButton", {}, () => [
|
|
819
|
+
k[1] || (k[1] = n("button", {
|
|
820
820
|
class: "btn btn-circle text-xs",
|
|
821
821
|
tabindex: "-1"
|
|
822
822
|
}, "❯", -1))
|
|
@@ -828,10 +828,10 @@ const pt = we("SunIcon", [
|
|
|
828
828
|
})
|
|
829
829
|
], 2)) : z("", !0),
|
|
830
830
|
e.showIndicators ? (o(), i("div", Nt, [
|
|
831
|
-
(o(!0), i(
|
|
831
|
+
(o(!0), i(A, null, X(u.value, (E, F) => (o(), i("button", {
|
|
832
832
|
key: `dot-${F}`,
|
|
833
833
|
onClick: (J) => p(F),
|
|
834
|
-
class:
|
|
834
|
+
class: $(["btn btn-circle btn-xs", { "btn-active": F === t.value }]),
|
|
835
835
|
"aria-label": `Go to slide ${F + 1}`
|
|
836
836
|
}, null, 10, qt))), 128))
|
|
837
837
|
])) : z("", !0)
|
|
@@ -839,21 +839,21 @@ const pt = we("SunIcon", [
|
|
|
839
839
|
}
|
|
840
840
|
}), ue = (e, c) => {
|
|
841
841
|
const l = e.__vccOpts || e;
|
|
842
|
-
for (const [t,
|
|
843
|
-
l[t] =
|
|
842
|
+
for (const [t, r] of c)
|
|
843
|
+
l[t] = r;
|
|
844
844
|
return l;
|
|
845
|
-
},
|
|
845
|
+
}, Fa = /* @__PURE__ */ ue(Ft, [["__scopeId", "data-v-d9ad9601"]]), Ht = /* @__PURE__ */ j({
|
|
846
846
|
__name: "carouselItem",
|
|
847
847
|
setup(e) {
|
|
848
848
|
const c = Ye(Ne, h({}));
|
|
849
849
|
return (l, t) => (o(), i("div", {
|
|
850
850
|
class: "w-full h-full carousel-item",
|
|
851
|
-
style:
|
|
851
|
+
style: be(ee(c))
|
|
852
852
|
}, [
|
|
853
|
-
|
|
853
|
+
B(l.$slots, "default", {}, void 0, !0)
|
|
854
854
|
], 4));
|
|
855
855
|
}
|
|
856
|
-
}),
|
|
856
|
+
}), Ha = /* @__PURE__ */ ue(Ht, [["__scopeId", "data-v-507384bc"]]), Ut = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Wt = ["onClick"], Kt = {
|
|
857
857
|
key: 0,
|
|
858
858
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
859
859
|
}, Xt = {
|
|
@@ -871,7 +871,7 @@ const pt = we("SunIcon", [
|
|
|
871
871
|
}, ol = {
|
|
872
872
|
key: 1,
|
|
873
873
|
class: "opacity-35 text-sm"
|
|
874
|
-
}, sl = { class: "collapse-content flex place-content-center p-0" }, il = /* @__PURE__ */
|
|
874
|
+
}, sl = { class: "collapse-content flex place-content-center p-0" }, il = /* @__PURE__ */ j({
|
|
875
875
|
__name: "advancedSearch",
|
|
876
876
|
props: {
|
|
877
877
|
searchOptions: {},
|
|
@@ -881,7 +881,7 @@ const pt = we("SunIcon", [
|
|
|
881
881
|
},
|
|
882
882
|
emits: ["search", "update:search-data"],
|
|
883
883
|
setup(e, { emit: c }) {
|
|
884
|
-
const l = e, t = c,
|
|
884
|
+
const l = e, t = c, r = l.id ?? `advancedSearch-${Ge()}`, a = h(null), s = h(null), m = {
|
|
885
885
|
datetime: ze(() => Promise.resolve().then(() => $l)),
|
|
886
886
|
"standard-select": ze(() => import("./select-Cz4vf_YE.js")),
|
|
887
887
|
// Add other components here when you create them:
|
|
@@ -894,23 +894,23 @@ const pt = we("SunIcon", [
|
|
|
894
894
|
top: "0px",
|
|
895
895
|
transform: "translateX(0%)"
|
|
896
896
|
}), S = h(null), R = (f) => {
|
|
897
|
-
var
|
|
897
|
+
var b;
|
|
898
898
|
if (f.value === void 0 || f.value === null || f.value === "")
|
|
899
899
|
return "";
|
|
900
900
|
switch (f.type) {
|
|
901
901
|
case "datetime":
|
|
902
902
|
if (typeof f.value == "string")
|
|
903
903
|
try {
|
|
904
|
-
const
|
|
905
|
-
if (!isNaN(
|
|
906
|
-
return
|
|
904
|
+
const y = new Date(f.value);
|
|
905
|
+
if (!isNaN(y.getTime()))
|
|
906
|
+
return y.toLocaleString();
|
|
907
907
|
} catch {
|
|
908
908
|
}
|
|
909
909
|
else if (f.range && typeof f.value == "object" && f.value !== null && "start" in f.value && "end" in f.value)
|
|
910
910
|
try {
|
|
911
|
-
const
|
|
912
|
-
if (!isNaN(
|
|
913
|
-
return `${
|
|
911
|
+
const y = new Date(f.value.start), I = new Date(f.value.end);
|
|
912
|
+
if (!isNaN(y.getTime()) && !isNaN(I.getTime()))
|
|
913
|
+
return `${y.toLocaleDateString()} - ${I.toLocaleDateString()}`;
|
|
914
914
|
} catch {
|
|
915
915
|
}
|
|
916
916
|
break;
|
|
@@ -924,12 +924,12 @@ const pt = we("SunIcon", [
|
|
|
924
924
|
break;
|
|
925
925
|
case "standard-select":
|
|
926
926
|
case "custom-select":
|
|
927
|
-
if ((
|
|
928
|
-
const
|
|
927
|
+
if ((b = f.props) != null && b.options && Array.isArray(f.props.options)) {
|
|
928
|
+
const y = f.props.options.find(
|
|
929
929
|
(I) => I.value === f.value
|
|
930
930
|
);
|
|
931
|
-
if (
|
|
932
|
-
return
|
|
931
|
+
if (y)
|
|
932
|
+
return y.text;
|
|
933
933
|
}
|
|
934
934
|
return String(f.value);
|
|
935
935
|
case "custom-text":
|
|
@@ -941,21 +941,21 @@ const pt = we("SunIcon", [
|
|
|
941
941
|
};
|
|
942
942
|
function V(f) {
|
|
943
943
|
var d, D;
|
|
944
|
-
const
|
|
945
|
-
if (!
|
|
944
|
+
const b = (d = a.value) == null ? void 0 : d.name;
|
|
945
|
+
if (!b) {
|
|
946
946
|
console.warn("componentValueUpdated called but no active tab.");
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
|
-
const
|
|
949
|
+
const y = (D = l.searchOptions.find(
|
|
950
950
|
(w) => (w == null ? void 0 : w.category) === l.currentCategory
|
|
951
|
-
)) == null ? void 0 : D.tabs, I =
|
|
952
|
-
(w) => w.name ===
|
|
951
|
+
)) == null ? void 0 : D.tabs, I = y == null ? void 0 : y.find(
|
|
952
|
+
(w) => w.name === b
|
|
953
953
|
);
|
|
954
954
|
I ? (I.value = f, t("update:search-data", {
|
|
955
955
|
tab: I.name,
|
|
956
956
|
data: f
|
|
957
957
|
})) : console.error(
|
|
958
|
-
`Tab with name "${
|
|
958
|
+
`Tab with name "${b}" not found in current category.`
|
|
959
959
|
);
|
|
960
960
|
}
|
|
961
961
|
function v(f) {
|
|
@@ -966,35 +966,35 @@ const pt = we("SunIcon", [
|
|
|
966
966
|
}
|
|
967
967
|
async function M(f) {
|
|
968
968
|
var I;
|
|
969
|
-
const
|
|
970
|
-
((I =
|
|
969
|
+
const b = document.getElementById(`advancedSearchMobile-${r}`), y = b && b.contains(f.target);
|
|
970
|
+
((I = a.value) == null ? void 0 : I.displayMode) === "popup" && S.value && !S.value.contains(f.target) && !y && (await me(), a.value = null);
|
|
971
971
|
}
|
|
972
972
|
async function U() {
|
|
973
973
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
974
974
|
const f = document.getElementById(
|
|
975
|
-
`advancedSearchMobile-${
|
|
975
|
+
`advancedSearchMobile-${r}`
|
|
976
976
|
);
|
|
977
|
-
f ? (
|
|
978
|
-
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${
|
|
977
|
+
f ? (a.value = null, f.showModal()) : console.warn(
|
|
978
|
+
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`
|
|
979
979
|
);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
async function
|
|
983
|
-
var
|
|
982
|
+
async function N(f) {
|
|
983
|
+
var y, I, d;
|
|
984
984
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
985
985
|
U();
|
|
986
986
|
return;
|
|
987
987
|
}
|
|
988
|
-
const
|
|
989
|
-
if (((
|
|
990
|
-
|
|
991
|
-
else if (
|
|
988
|
+
const b = f.displayMode ?? "popup";
|
|
989
|
+
if (((y = a.value) == null ? void 0 : y.name) === f.name && ((I = a.value) == null ? void 0 : I.displayMode) === b)
|
|
990
|
+
a.value = null;
|
|
991
|
+
else if (a.value = { ...f, displayMode: b }, await me(), ((d = a.value) == null ? void 0 : d.displayMode) === "popup") {
|
|
992
992
|
const D = u.value[f.name];
|
|
993
993
|
if (D && S.value) {
|
|
994
|
-
const w = D.getBoundingClientRect(), _ = S.value.getBoundingClientRect(),
|
|
994
|
+
const w = D.getBoundingClientRect(), _ = S.value.getBoundingClientRect(), P = w.bottom - _.top, Q = w.left + w.width / 2 - _.left;
|
|
995
995
|
g.value = {
|
|
996
996
|
left: `${Q}px`,
|
|
997
|
-
top: `${
|
|
997
|
+
top: `${P + 8}px`,
|
|
998
998
|
// Add a small gap
|
|
999
999
|
transform: "translateX(-50%)"
|
|
1000
1000
|
// Center horizontally
|
|
@@ -1007,22 +1007,22 @@ const pt = we("SunIcon", [
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
const W = (f) => {
|
|
1010
|
-
const
|
|
1010
|
+
const b = f.relatedTarget;
|
|
1011
1011
|
setTimeout(() => {
|
|
1012
|
-
var
|
|
1013
|
-
((
|
|
1012
|
+
var y;
|
|
1013
|
+
((y = a.value) == null ? void 0 : y.displayMode) === "inline" && S.value && (!b || !S.value.contains(b)) ? (console.log("Blur detected outside container, closing inline view."), a.value = null) : console.log(
|
|
1014
1014
|
"Blur detected, but staying within container or not an inline tab."
|
|
1015
1015
|
);
|
|
1016
1016
|
}, 50);
|
|
1017
1017
|
}, Z = () => {
|
|
1018
|
-
console.log("Enter key pressed on inline component, closing inline view."),
|
|
1018
|
+
console.log("Enter key pressed on inline component, closing inline view."), a.value = null;
|
|
1019
1019
|
};
|
|
1020
|
-
|
|
1021
|
-
var
|
|
1020
|
+
q(s, (f) => {
|
|
1021
|
+
var b;
|
|
1022
1022
|
console.log(
|
|
1023
1023
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
1024
1024
|
f
|
|
1025
|
-
), console.log("advanced-search: activeTab.value:",
|
|
1025
|
+
), console.log("advanced-search: activeTab.value:", a.value), f && ((b = a.value) == null ? void 0 : b.displayMode) === "inline" ? (console.log(
|
|
1026
1026
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
1027
1027
|
), me(() => {
|
|
1028
1028
|
console.log(
|
|
@@ -1045,135 +1045,135 @@ const pt = we("SunIcon", [
|
|
|
1045
1045
|
document.removeEventListener("click", M), window.removeEventListener("resize", te);
|
|
1046
1046
|
});
|
|
1047
1047
|
const te = () => {
|
|
1048
|
-
var f,
|
|
1048
|
+
var f, b;
|
|
1049
1049
|
if (typeof window < "u") {
|
|
1050
|
-
const
|
|
1051
|
-
!
|
|
1050
|
+
const y = window.innerWidth <= 768, I = a.value !== null && (a.value.displayMode === "popup" || a.value.displayMode === "inline") && window.innerWidth > 768;
|
|
1051
|
+
!y && (((f = a.value) == null ? void 0 : f.displayMode) === "popup" || ((b = a.value) == null ? void 0 : b.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), a.value = null), y && !I && a.value !== null && (console.log(
|
|
1052
1052
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
1053
|
-
),
|
|
1053
|
+
), a.value = null);
|
|
1054
1054
|
const d = document.getElementById(
|
|
1055
|
-
`advancedSearchMobile-${
|
|
1055
|
+
`advancedSearchMobile-${r}`
|
|
1056
1056
|
);
|
|
1057
|
-
d != null && d.open && !
|
|
1057
|
+
d != null && d.open && !y && (console.log("Modal is open on desktop, closing modal and active tab."), d.close(), a.value = null);
|
|
1058
1058
|
}
|
|
1059
1059
|
};
|
|
1060
|
-
return (f,
|
|
1061
|
-
var
|
|
1062
|
-
return o(), i(
|
|
1063
|
-
|
|
1060
|
+
return (f, b) => {
|
|
1061
|
+
var y, I;
|
|
1062
|
+
return o(), i(A, null, [
|
|
1063
|
+
n("div", {
|
|
1064
1064
|
ref_key: "searchContainer",
|
|
1065
1065
|
ref: S,
|
|
1066
1066
|
class: "w-full"
|
|
1067
1067
|
}, [
|
|
1068
|
-
|
|
1068
|
+
n("div", {
|
|
1069
1069
|
class: "group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",
|
|
1070
1070
|
onClick: U
|
|
1071
1071
|
}, [
|
|
1072
|
-
|
|
1073
|
-
(o(!0), i(
|
|
1072
|
+
n("div", Ut, [
|
|
1073
|
+
(o(!0), i(A, null, X(((y = l.searchOptions.find(
|
|
1074
1074
|
(d) => d.category === l.currentCategory
|
|
1075
|
-
)) == null ? void 0 :
|
|
1076
|
-
var w, _,
|
|
1075
|
+
)) == null ? void 0 : y.tabs) || [], (d, D) => {
|
|
1076
|
+
var w, _, P, Q, ce;
|
|
1077
1077
|
return o(), i("button", {
|
|
1078
1078
|
key: `${d.name}-${D}`,
|
|
1079
|
-
onClick: oe((p) =>
|
|
1080
|
-
class:
|
|
1081
|
-
"tab-active": ((w =
|
|
1082
|
-
"tab-active-inline": ((_ =
|
|
1079
|
+
onClick: oe((p) => N(d), ["stop"]),
|
|
1080
|
+
class: $([{
|
|
1081
|
+
"tab-active": ((w = a.value) == null ? void 0 : w.name) === d.name,
|
|
1082
|
+
"tab-active-inline": ((_ = a.value) == null ? void 0 : _.name) === d.name && ((P = a.value) == null ? void 0 : P.displayMode) === "inline"
|
|
1083
1083
|
// Add new class
|
|
1084
1084
|
}, "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"]),
|
|
1085
1085
|
ref_for: !0,
|
|
1086
1086
|
ref: (p) => u.value[d.name] = p
|
|
1087
1087
|
}, [
|
|
1088
|
-
((Q =
|
|
1089
|
-
(o(), re(Te(m[
|
|
1090
|
-
modelValue:
|
|
1091
|
-
onUpdated:
|
|
1092
|
-
"onUpdate:modelValue":
|
|
1088
|
+
((Q = a.value) == null ? void 0 : Q.name) === d.name && ((ce = a.value) == null ? void 0 : ce.displayMode) === "inline" ? (o(), i("div", Kt, [
|
|
1089
|
+
(o(), re(Te(m[a.value.type]), Be({ ref_for: !0 }, a.value.props || {}, {
|
|
1090
|
+
modelValue: a.value.value,
|
|
1091
|
+
onUpdated: b[0] || (b[0] = (p) => v(p)),
|
|
1092
|
+
"onUpdate:modelValue": b[1] || (b[1] = (p) => v(p)),
|
|
1093
1093
|
onBlur: W,
|
|
1094
1094
|
onKeydown: pe(oe(Z, ["stop", "prevent"]), ["enter"]),
|
|
1095
1095
|
ref_for: !0,
|
|
1096
1096
|
ref_key: "inlineComponentRef",
|
|
1097
|
-
ref:
|
|
1097
|
+
ref: s
|
|
1098
1098
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
1099
1099
|
])) : (o(), i("div", Xt, [
|
|
1100
|
-
|
|
1101
|
-
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("p", Gt,
|
|
1100
|
+
n("p", Yt, T(d.name), 1),
|
|
1101
|
+
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("p", Gt, T(R(d)), 1)) : (o(), i("p", Jt, T(d.description), 1))
|
|
1102
1102
|
]))
|
|
1103
1103
|
], 10, Wt);
|
|
1104
1104
|
}), 128))
|
|
1105
1105
|
]),
|
|
1106
|
-
|
|
1106
|
+
a.value && a.value.displayMode === "popup" ? (o(), i("div", {
|
|
1107
1107
|
key: 0,
|
|
1108
1108
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
1109
|
-
style:
|
|
1109
|
+
style: be(g.value)
|
|
1110
1110
|
}, [
|
|
1111
|
-
(o(), re(Te(m[
|
|
1112
|
-
modelValue:
|
|
1113
|
-
onUpdated:
|
|
1114
|
-
"onUpdate:modelValue":
|
|
1111
|
+
(o(), re(Te(m[a.value.type]), Be(a.value.props || {}, {
|
|
1112
|
+
modelValue: a.value.value,
|
|
1113
|
+
onUpdated: b[2] || (b[2] = (d) => V(d)),
|
|
1114
|
+
"onUpdate:modelValue": b[3] || (b[3] = (d) => V(d))
|
|
1115
1115
|
}), null, 16, ["modelValue"]))
|
|
1116
1116
|
], 4)) : z("", !0),
|
|
1117
|
-
|
|
1117
|
+
n("button", {
|
|
1118
1118
|
title: "search",
|
|
1119
1119
|
type: "submit",
|
|
1120
1120
|
class: "ml-1 btn btn-primary btn-square",
|
|
1121
1121
|
onClick: oe(O, ["stop"])
|
|
1122
1122
|
}, [
|
|
1123
|
-
se(ee(
|
|
1123
|
+
se(ee(Re), {
|
|
1124
1124
|
size: 24,
|
|
1125
1125
|
color: "white"
|
|
1126
1126
|
})
|
|
1127
1127
|
])
|
|
1128
1128
|
]),
|
|
1129
|
-
|
|
1130
|
-
|
|
1129
|
+
n("div", Zt, [
|
|
1130
|
+
n("button", {
|
|
1131
1131
|
title: "search",
|
|
1132
|
-
onClick:
|
|
1132
|
+
onClick: b[4] || (b[4] = () => {
|
|
1133
1133
|
})
|
|
1134
1134
|
}, [
|
|
1135
|
-
se(ee(
|
|
1135
|
+
se(ee(Re), {
|
|
1136
1136
|
size: 24,
|
|
1137
1137
|
color: "white"
|
|
1138
1138
|
})
|
|
1139
1139
|
])
|
|
1140
1140
|
])
|
|
1141
1141
|
], 512),
|
|
1142
|
-
|
|
1143
|
-
id: `advancedSearchMobile-${ee(
|
|
1142
|
+
n("dialog", {
|
|
1143
|
+
id: `advancedSearchMobile-${ee(r)}`,
|
|
1144
1144
|
class: "modal"
|
|
1145
1145
|
}, [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1146
|
+
n("div", el, [
|
|
1147
|
+
B(f.$slots, "additionalForMobile", {}, () => [
|
|
1148
|
+
n("h3", tl, T(e.currentCategory), 1)
|
|
1149
1149
|
], !0),
|
|
1150
|
-
(o(!0), i(
|
|
1150
|
+
(o(!0), i(A, null, X(((I = l.searchOptions.find(
|
|
1151
1151
|
(d) => d.category === l.currentCategory
|
|
1152
1152
|
)) == null ? void 0 : I.tabs) || [], (d, D) => (o(), i("div", {
|
|
1153
1153
|
class: "collapse bg-base-200 my-4",
|
|
1154
1154
|
key: d.name
|
|
1155
1155
|
}, [
|
|
1156
|
-
|
|
1156
|
+
n("input", {
|
|
1157
1157
|
type: "radio",
|
|
1158
|
-
name: `accordion-${ee(
|
|
1158
|
+
name: `accordion-${ee(r)}`,
|
|
1159
1159
|
checked: D === 0
|
|
1160
1160
|
}, null, 8, ll),
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("div", nl,
|
|
1161
|
+
n("div", al, [
|
|
1162
|
+
n("div", null, T(d.name), 1),
|
|
1163
|
+
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("div", nl, T(R(d)), 1)) : (o(), i("div", ol, T(d.description), 1))
|
|
1164
1164
|
]),
|
|
1165
|
-
|
|
1166
|
-
|
|
1165
|
+
n("div", sl, [
|
|
1166
|
+
b[7] || (b[7] = n("br", null, null, -1)),
|
|
1167
1167
|
(o(), re(Te(m[d.type]), Be({ ref_for: !0 }, d.props || {}, {
|
|
1168
1168
|
modelValue: d.value,
|
|
1169
|
-
onUpdated:
|
|
1170
|
-
"onUpdate:modelValue":
|
|
1169
|
+
onUpdated: b[5] || (b[5] = (w) => V(w)),
|
|
1170
|
+
"onUpdate:modelValue": b[6] || (b[6] = (w) => V(w))
|
|
1171
1171
|
}), null, 16, ["modelValue"]))
|
|
1172
1172
|
])
|
|
1173
1173
|
]))), 128)),
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1174
|
+
n("div", { class: "modal-action" }, [
|
|
1175
|
+
n("form", { method: "dialog" }, [
|
|
1176
|
+
n("button", {
|
|
1177
1177
|
class: "btn btn-primary",
|
|
1178
1178
|
onClick: O
|
|
1179
1179
|
}, " Close and Search ")
|
|
@@ -1184,16 +1184,16 @@ const pt = we("SunIcon", [
|
|
|
1184
1184
|
], 64);
|
|
1185
1185
|
};
|
|
1186
1186
|
}
|
|
1187
|
-
}),
|
|
1187
|
+
}), Ua = /* @__PURE__ */ ue(il, [["__scopeId", "data-v-577c3624"]]), rl = { 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" }, ul = { key: 0 }, cl = { key: 1 }, dl = ["id", "onKeydown"], vl = {
|
|
1188
1188
|
key: 2,
|
|
1189
1189
|
class: "flex justify-center p-4"
|
|
1190
|
-
}, fl = { 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" }, ml = { class: "join-item" }, pl = ["id", "disabled", "value"], hl = { class: "join-item" }, gl = ["id", "disabled", "value"],
|
|
1190
|
+
}, fl = { 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" }, ml = { class: "join-item" }, pl = ["id", "disabled", "value"], hl = { class: "join-item" }, gl = ["id", "disabled", "value"], yl = {
|
|
1191
1191
|
key: 3,
|
|
1192
1192
|
class: "p-4 min-w-2xs"
|
|
1193
|
-
},
|
|
1193
|
+
}, bl = ["id", "disabled", "value"], wl = {
|
|
1194
1194
|
key: 4,
|
|
1195
1195
|
class: "flex px-4 my-4 w-full justify-end"
|
|
1196
|
-
}, xl = /* @__PURE__ */
|
|
1196
|
+
}, xl = /* @__PURE__ */ j({
|
|
1197
1197
|
__name: "datetimePicker",
|
|
1198
1198
|
props: {
|
|
1199
1199
|
mode: { default: "datetime" },
|
|
@@ -1213,7 +1213,7 @@ const pt = we("SunIcon", [
|
|
|
1213
1213
|
},
|
|
1214
1214
|
emits: ["update:modelValue", "change"],
|
|
1215
1215
|
setup(e, { emit: c }) {
|
|
1216
|
-
const l = typeof window < "u", t = e,
|
|
1216
|
+
const l = typeof window < "u", t = e, r = c, a = h(null), s = h(!1), m = h(null), u = h(null), g = h(null), S = h(null), R = h(null), V = h({
|
|
1217
1217
|
from: "",
|
|
1218
1218
|
to: "",
|
|
1219
1219
|
single: ""
|
|
@@ -1226,7 +1226,7 @@ const pt = we("SunIcon", [
|
|
|
1226
1226
|
if (isNaN(x.getTime())) return "";
|
|
1227
1227
|
const L = String(x.getHours()).padStart(2, "0"), Y = String(x.getMinutes()).padStart(2, "0");
|
|
1228
1228
|
return `${L}:${Y}`;
|
|
1229
|
-
},
|
|
1229
|
+
}, N = () => {
|
|
1230
1230
|
if (t.disableDefaultValue && !t.initialDate)
|
|
1231
1231
|
return;
|
|
1232
1232
|
let p = t.initialDate;
|
|
@@ -1282,24 +1282,24 @@ const pt = we("SunIcon", [
|
|
|
1282
1282
|
if (t.mode === "date") return p;
|
|
1283
1283
|
const x = V.value.single || "00:00";
|
|
1284
1284
|
return `${p}T${x}:00`;
|
|
1285
|
-
},
|
|
1285
|
+
}, b = async () => {
|
|
1286
1286
|
Z();
|
|
1287
1287
|
const p = f();
|
|
1288
|
-
|
|
1289
|
-
},
|
|
1288
|
+
r("update:modelValue", p), r("change", p);
|
|
1289
|
+
}, y = () => me(b), I = (p) => {
|
|
1290
1290
|
const x = p.target;
|
|
1291
|
-
t.range ? x === S.value ? V.value.from = x.value : V.value.to = x.value : V.value.single = x.value,
|
|
1291
|
+
t.range ? x === S.value ? V.value.from = x.value : V.value.to = x.value : V.value.single = x.value, b();
|
|
1292
1292
|
}, d = () => {
|
|
1293
|
-
|
|
1293
|
+
s.value = !s.value;
|
|
1294
1294
|
}, D = () => {
|
|
1295
|
-
|
|
1295
|
+
b(), s.value = !1;
|
|
1296
1296
|
}, w = (p) => {
|
|
1297
|
-
!t.popup || !
|
|
1298
|
-
const x =
|
|
1297
|
+
!t.popup || !s.value || setTimeout(() => {
|
|
1298
|
+
const x = a.value, L = p.target, Y = `date-picker-${t.id}-popup`;
|
|
1299
1299
|
x && !x.contains(L) && !L.closest(`#${Y}`) && D();
|
|
1300
1300
|
}, 0);
|
|
1301
|
-
}, _ = () => D(),
|
|
1302
|
-
|
|
1301
|
+
}, _ = () => D(), P = () => {
|
|
1302
|
+
b(), t.popup && (s.value = !1);
|
|
1303
1303
|
}, Q = () => {
|
|
1304
1304
|
var x;
|
|
1305
1305
|
const p = t.range ? u.value : m.value;
|
|
@@ -1310,8 +1310,8 @@ const pt = we("SunIcon", [
|
|
|
1310
1310
|
(x = p == null ? void 0 : p.navigate) == null || x.call(p, 1);
|
|
1311
1311
|
};
|
|
1312
1312
|
return de(() => {
|
|
1313
|
-
l && import("./cally-ZU3K2Th7.js").catch((p) => console.warn("Failed to load cally:", p)),
|
|
1314
|
-
}),
|
|
1313
|
+
l && import("./cally-ZU3K2Th7.js").catch((p) => console.warn("Failed to load cally:", p)), N();
|
|
1314
|
+
}), q(v, async () => {
|
|
1315
1315
|
if (await me(), m.value && v.value.single) {
|
|
1316
1316
|
const p = v.value.single;
|
|
1317
1317
|
m.value.value !== p && (m.value.value = p);
|
|
@@ -1320,15 +1320,15 @@ const pt = we("SunIcon", [
|
|
|
1320
1320
|
const p = te();
|
|
1321
1321
|
p && u.value.value !== p && (u.value.value = p);
|
|
1322
1322
|
}
|
|
1323
|
-
|
|
1324
|
-
}, { deep: !0 }),
|
|
1325
|
-
await me(), m.value && v.value.single && !m.value.value && (m.value.value = v.value.single), u.value && v.value.start && v.value.end && !u.value.value && (u.value.value = `${v.value.start}/${v.value.end}`),
|
|
1326
|
-
}),
|
|
1323
|
+
b();
|
|
1324
|
+
}, { deep: !0 }), q([v, m, u], async () => {
|
|
1325
|
+
await me(), m.value && v.value.single && !m.value.value && (m.value.value = v.value.single), u.value && v.value.start && v.value.end && !u.value.value && (u.value.value = `${v.value.start}/${v.value.end}`), b();
|
|
1326
|
+
}), q([g, S, R], b), (p, x) => {
|
|
1327
1327
|
const L = De("calendar-month"), Y = De("calendar-date"), ie = De("calendar-range");
|
|
1328
1328
|
return o(), i("div", {
|
|
1329
1329
|
class: "inline-block relative w-fit lg:w-full",
|
|
1330
1330
|
ref_key: "pickerContainer",
|
|
1331
|
-
ref:
|
|
1331
|
+
ref: a,
|
|
1332
1332
|
onMousedownCapture: w
|
|
1333
1333
|
}, [
|
|
1334
1334
|
t.popup ? (o(), i("div", {
|
|
@@ -1336,19 +1336,19 @@ const pt = we("SunIcon", [
|
|
|
1336
1336
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1337
1337
|
onClick: x[0] || (x[0] = (ve) => t.disabled ? null : d())
|
|
1338
1338
|
}, [
|
|
1339
|
-
|
|
1340
|
-
W.value ? (o(), i("span", cl,
|
|
1339
|
+
n("div", rl, [
|
|
1340
|
+
W.value ? (o(), i("span", cl, T(W.value), 1)) : (o(), i("span", ul, T(t.placeholder), 1))
|
|
1341
1341
|
])
|
|
1342
1342
|
])) : z("", !0),
|
|
1343
|
-
|
|
1343
|
+
s.value || !t.popup ? (o(), i("div", {
|
|
1344
1344
|
key: 1,
|
|
1345
|
-
class:
|
|
1345
|
+
class: $(["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 }]),
|
|
1346
1346
|
id: `date-picker-${t.id}-popup`,
|
|
1347
1347
|
onKeydown: [
|
|
1348
1348
|
x[1] || (x[1] = pe(oe(() => {
|
|
1349
1349
|
}, ["prevent", "stop"]), ["tab"])),
|
|
1350
1350
|
pe(_, ["esc"]),
|
|
1351
|
-
pe(oe(
|
|
1351
|
+
pe(oe(P, ["prevent"]), ["enter"])
|
|
1352
1352
|
]
|
|
1353
1353
|
}, [
|
|
1354
1354
|
!t.range && t.mode !== "time" && l ? (o(), re(Y, {
|
|
@@ -1361,22 +1361,22 @@ const pt = we("SunIcon", [
|
|
|
1361
1361
|
max: t.max,
|
|
1362
1362
|
disabled: t.disabled,
|
|
1363
1363
|
"first-day-of-week": t.firstDayOfWeek,
|
|
1364
|
-
onChange:
|
|
1364
|
+
onChange: y
|
|
1365
1365
|
}, {
|
|
1366
|
-
default:
|
|
1367
|
-
|
|
1366
|
+
default: ye(() => [
|
|
1367
|
+
n("button", {
|
|
1368
1368
|
slot: "previous",
|
|
1369
1369
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1370
1370
|
onClick: Q
|
|
1371
1371
|
}, [...x[2] || (x[2] = [
|
|
1372
|
-
|
|
1372
|
+
n("svg", {
|
|
1373
1373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1374
1374
|
class: "w-4 h-4",
|
|
1375
1375
|
fill: "none",
|
|
1376
1376
|
viewBox: "0 0 24 24",
|
|
1377
1377
|
stroke: "currentColor"
|
|
1378
1378
|
}, [
|
|
1379
|
-
|
|
1379
|
+
n("path", {
|
|
1380
1380
|
"stroke-linecap": "round",
|
|
1381
1381
|
"stroke-linejoin": "round",
|
|
1382
1382
|
"stroke-width": "2",
|
|
@@ -1384,19 +1384,19 @@ const pt = we("SunIcon", [
|
|
|
1384
1384
|
})
|
|
1385
1385
|
], -1)
|
|
1386
1386
|
])]),
|
|
1387
|
-
|
|
1387
|
+
n("button", {
|
|
1388
1388
|
slot: "next",
|
|
1389
1389
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1390
1390
|
onClick: ce
|
|
1391
1391
|
}, [...x[3] || (x[3] = [
|
|
1392
|
-
|
|
1392
|
+
n("svg", {
|
|
1393
1393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1394
1394
|
class: "w-4 h-4",
|
|
1395
1395
|
fill: "none",
|
|
1396
1396
|
viewBox: "0 24 24",
|
|
1397
1397
|
stroke: "currentColor"
|
|
1398
1398
|
}, [
|
|
1399
|
-
|
|
1399
|
+
n("path", {
|
|
1400
1400
|
"stroke-linecap": "round",
|
|
1401
1401
|
"stroke-linejoin": "round",
|
|
1402
1402
|
"stroke-width": "2",
|
|
@@ -1420,22 +1420,22 @@ const pt = we("SunIcon", [
|
|
|
1420
1420
|
max: t.max,
|
|
1421
1421
|
disabled: t.disabled,
|
|
1422
1422
|
"first-day-of-week": t.firstDayOfWeek,
|
|
1423
|
-
onChange:
|
|
1423
|
+
onChange: y
|
|
1424
1424
|
}, {
|
|
1425
|
-
default:
|
|
1426
|
-
|
|
1425
|
+
default: ye(() => [
|
|
1426
|
+
n("button", {
|
|
1427
1427
|
slot: "previous",
|
|
1428
1428
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1429
1429
|
onClick: Q
|
|
1430
1430
|
}, [...x[4] || (x[4] = [
|
|
1431
|
-
|
|
1431
|
+
n("svg", {
|
|
1432
1432
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1433
1433
|
class: "w-4 h-4",
|
|
1434
1434
|
fill: "none",
|
|
1435
1435
|
viewBox: "0 0 24 24",
|
|
1436
1436
|
stroke: "currentColor"
|
|
1437
1437
|
}, [
|
|
1438
|
-
|
|
1438
|
+
n("path", {
|
|
1439
1439
|
"stroke-linecap": "round",
|
|
1440
1440
|
"stroke-linejoin": "round",
|
|
1441
1441
|
"stroke-width": "2",
|
|
@@ -1443,19 +1443,19 @@ const pt = we("SunIcon", [
|
|
|
1443
1443
|
})
|
|
1444
1444
|
], -1)
|
|
1445
1445
|
])]),
|
|
1446
|
-
|
|
1446
|
+
n("button", {
|
|
1447
1447
|
slot: "next",
|
|
1448
1448
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
1449
1449
|
onClick: ce
|
|
1450
1450
|
}, [...x[5] || (x[5] = [
|
|
1451
|
-
|
|
1451
|
+
n("svg", {
|
|
1452
1452
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1453
1453
|
class: "w-4 h-4",
|
|
1454
1454
|
fill: "none",
|
|
1455
1455
|
viewBox: "0 24 24",
|
|
1456
1456
|
stroke: "currentColor"
|
|
1457
1457
|
}, [
|
|
1458
|
-
|
|
1458
|
+
n("path", {
|
|
1459
1459
|
"stroke-linecap": "round",
|
|
1460
1460
|
"stroke-linejoin": "round",
|
|
1461
1461
|
"stroke-width": "2",
|
|
@@ -1470,9 +1470,9 @@ const pt = we("SunIcon", [
|
|
|
1470
1470
|
_: 1
|
|
1471
1471
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : z("", !0),
|
|
1472
1472
|
t.range && t.mode !== "date" ? (o(), i("div", vl, [
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1473
|
+
n("div", fl, [
|
|
1474
|
+
n("div", ml, [
|
|
1475
|
+
n("input", {
|
|
1476
1476
|
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",
|
|
1477
1477
|
type: "time",
|
|
1478
1478
|
ref_key: "timeFromInput",
|
|
@@ -1484,15 +1484,15 @@ const pt = we("SunIcon", [
|
|
|
1484
1484
|
value: V.value.from || ""
|
|
1485
1485
|
}, null, 40, pl)
|
|
1486
1486
|
]),
|
|
1487
|
-
x[6] || (x[6] =
|
|
1487
|
+
x[6] || (x[6] = n("svg", {
|
|
1488
1488
|
class: "join-item",
|
|
1489
1489
|
viewBox: "0 0 1024 1024",
|
|
1490
1490
|
width: "1em"
|
|
1491
1491
|
}, [
|
|
1492
|
-
|
|
1492
|
+
n("path", { d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" })
|
|
1493
1493
|
], -1)),
|
|
1494
|
-
|
|
1495
|
-
|
|
1494
|
+
n("div", hl, [
|
|
1495
|
+
n("input", {
|
|
1496
1496
|
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1497
1497
|
type: "time",
|
|
1498
1498
|
ref_key: "timeToInput",
|
|
@@ -1505,8 +1505,8 @@ const pt = we("SunIcon", [
|
|
|
1505
1505
|
])
|
|
1506
1506
|
])
|
|
1507
1507
|
])) : z("", !0),
|
|
1508
|
-
!t.range && t.mode !== "date" ? (o(), i("div",
|
|
1509
|
-
|
|
1508
|
+
!t.range && t.mode !== "date" ? (o(), i("div", yl, [
|
|
1509
|
+
n("input", {
|
|
1510
1510
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1511
1511
|
type: "time",
|
|
1512
1512
|
ref_key: "timeInput",
|
|
@@ -1515,13 +1515,13 @@ const pt = we("SunIcon", [
|
|
|
1515
1515
|
onChange: I,
|
|
1516
1516
|
disabled: t.disabled,
|
|
1517
1517
|
value: V.value.single || ""
|
|
1518
|
-
}, null, 40,
|
|
1518
|
+
}, null, 40, bl)
|
|
1519
1519
|
])) : z("", !0),
|
|
1520
1520
|
t.popup && t.closeText ? (o(), i("div", wl, [
|
|
1521
|
-
|
|
1521
|
+
n("button", {
|
|
1522
1522
|
class: "btn btn-primary max-lg:w-full",
|
|
1523
1523
|
onClick: D
|
|
1524
|
-
},
|
|
1524
|
+
}, T(t.closeText), 1)
|
|
1525
1525
|
])) : z("", !0)
|
|
1526
1526
|
], 42, dl)) : z("", !0)
|
|
1527
1527
|
], 544);
|
|
@@ -1530,7 +1530,7 @@ const pt = we("SunIcon", [
|
|
|
1530
1530
|
}), kl = /* @__PURE__ */ ue(xl, [["__scopeId", "data-v-ca3752e5"]]), $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1531
1531
|
__proto__: null,
|
|
1532
1532
|
default: kl
|
|
1533
|
-
}, Symbol.toStringTag, { value: "Module" })), Cl = ["value", "checked", "onChange", "disabled"],
|
|
1533
|
+
}, Symbol.toStringTag, { value: "Module" })), Cl = ["value", "checked", "onChange", "disabled"], Wa = /* @__PURE__ */ j({
|
|
1534
1534
|
__name: "rating",
|
|
1535
1535
|
props: {
|
|
1536
1536
|
initialRating: { default: 0 },
|
|
@@ -1544,33 +1544,33 @@ const pt = we("SunIcon", [
|
|
|
1544
1544
|
},
|
|
1545
1545
|
setup(e) {
|
|
1546
1546
|
const c = e, l = h(c.initialRating);
|
|
1547
|
-
|
|
1547
|
+
q(
|
|
1548
1548
|
() => c.initialRating,
|
|
1549
|
-
(
|
|
1550
|
-
l.value =
|
|
1549
|
+
(r) => {
|
|
1550
|
+
l.value = r;
|
|
1551
1551
|
}
|
|
1552
1552
|
);
|
|
1553
|
-
const t = (
|
|
1554
|
-
l.value =
|
|
1553
|
+
const t = (r) => {
|
|
1554
|
+
l.value = r;
|
|
1555
1555
|
};
|
|
1556
|
-
return (
|
|
1557
|
-
class:
|
|
1556
|
+
return (r, a) => (o(), i("div", {
|
|
1557
|
+
class: $(["rating", [
|
|
1558
1558
|
`rating-${c.size}`,
|
|
1559
1559
|
{ "rating-half": e.halfStars },
|
|
1560
1560
|
{ "pointer-events-none": !e.isInteractive }
|
|
1561
1561
|
]])
|
|
1562
1562
|
}, [
|
|
1563
|
-
(o(!0), i(
|
|
1564
|
-
key:
|
|
1563
|
+
(o(!0), i(A, null, X(e.numberOfStars * (e.halfStars ? 2 : 1), (s) => (o(), i("input", {
|
|
1564
|
+
key: s,
|
|
1565
1565
|
type: "radio",
|
|
1566
|
-
value: e.halfStars ?
|
|
1567
|
-
checked: l.value === (e.halfStars ?
|
|
1568
|
-
onChange: (m) => e.isInteractive ? t(e.halfStars ?
|
|
1569
|
-
class:
|
|
1566
|
+
value: e.halfStars ? s * 0.5 : s,
|
|
1567
|
+
checked: l.value === (e.halfStars ? s * 0.5 : s),
|
|
1568
|
+
onChange: (m) => e.isInteractive ? t(e.halfStars ? s * 0.5 : s) : null,
|
|
1569
|
+
class: $(["mask", [
|
|
1570
1570
|
{
|
|
1571
1571
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1572
|
-
"mask-half-1": e.halfStars &&
|
|
1573
|
-
"mask-half-2": e.halfStars &&
|
|
1572
|
+
"mask-half-1": e.halfStars && s % 2 !== 0,
|
|
1573
|
+
"mask-half-2": e.halfStars && s % 2 === 0,
|
|
1574
1574
|
"cursor-pointer": e.isInteractive,
|
|
1575
1575
|
"cursor-default": !e.isInteractive,
|
|
1576
1576
|
"mask-star": e.shape === "star",
|
|
@@ -1587,16 +1587,16 @@ const pt = we("SunIcon", [
|
|
|
1587
1587
|
"mask-triangle-3": e.shape === "triangle-left",
|
|
1588
1588
|
"mask-triangle-4": e.shape === "triangle-right"
|
|
1589
1589
|
},
|
|
1590
|
-
l.value >= (e.halfStars ?
|
|
1590
|
+
l.value >= (e.halfStars ? s * 0.5 : s) ? c.color : ""
|
|
1591
1591
|
]]),
|
|
1592
|
-
style:
|
|
1593
|
-
marginRight: e.halfStars &&
|
|
1592
|
+
style: be({
|
|
1593
|
+
marginRight: e.halfStars && s % 2 === 0 ? `${c.gap}px` : e.halfStars ? "0" : `${c.gap}px`
|
|
1594
1594
|
}),
|
|
1595
1595
|
disabled: !e.isInteractive
|
|
1596
1596
|
}, null, 46, Cl))), 128))
|
|
1597
1597
|
], 2));
|
|
1598
1598
|
}
|
|
1599
|
-
}), Sl = { class: "badge" }, Il = ["onClick"], Ml = { class: "opacity-75" }, zl = ["placeholder"],
|
|
1599
|
+
}), Sl = { class: "badge" }, Il = ["onClick"], Ml = { class: "opacity-75" }, zl = ["placeholder"], Ka = /* @__PURE__ */ j({
|
|
1600
1600
|
__name: "taginput",
|
|
1601
1601
|
props: {
|
|
1602
1602
|
modelValue: {},
|
|
@@ -1606,39 +1606,39 @@ const pt = we("SunIcon", [
|
|
|
1606
1606
|
},
|
|
1607
1607
|
emits: ["update:modelValue"],
|
|
1608
1608
|
setup(e, { emit: c }) {
|
|
1609
|
-
const l = e, t = c,
|
|
1609
|
+
const l = e, t = c, r = h([...l.modelValue]), a = l.maxTagAmount === void 0 ? -1 : l.maxTagAmount, s = h(null), m = h(""), u = H(() => a < 0 || r.value.length < a), g = () => {
|
|
1610
1610
|
const v = m.value.trim();
|
|
1611
|
-
v && !
|
|
1611
|
+
v && !r.value.includes(v) && (r.value.push(v), t("update:modelValue", r.value), m.value = "");
|
|
1612
1612
|
}, S = (v) => {
|
|
1613
|
-
|
|
1613
|
+
r.value = r.value.filter((O) => O !== v), t("update:modelValue", r.value);
|
|
1614
1614
|
}, R = () => {
|
|
1615
|
-
m.value === "" && (
|
|
1615
|
+
m.value === "" && (r.value.pop(), t("update:modelValue", r.value));
|
|
1616
1616
|
}, V = (v) => {
|
|
1617
1617
|
v.key === "Enter" ? g() : v.key === "Backspace" && m.value === "" && R();
|
|
1618
1618
|
};
|
|
1619
|
-
return
|
|
1620
|
-
|
|
1619
|
+
return q(() => l.modelValue, (v) => {
|
|
1620
|
+
r.value = [...v];
|
|
1621
1621
|
}), (v, O) => (o(), i("div", {
|
|
1622
|
-
class:
|
|
1622
|
+
class: $(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", v.$props.class])
|
|
1623
1623
|
}, [
|
|
1624
|
-
(o(!0), i(
|
|
1624
|
+
(o(!0), i(A, null, X(r.value, (M) => B(v.$slots, "tag", {
|
|
1625
1625
|
key: M,
|
|
1626
1626
|
tag: M
|
|
1627
1627
|
}, () => [
|
|
1628
|
-
|
|
1629
|
-
|
|
1628
|
+
n("div", Sl, [
|
|
1629
|
+
n("button", {
|
|
1630
1630
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1631
1631
|
onClick: (U) => S(M),
|
|
1632
1632
|
"aria-label": "Remove tag"
|
|
1633
1633
|
}, "X", 8, Il),
|
|
1634
|
-
|
|
1634
|
+
n("span", Ml, T(M), 1)
|
|
1635
1635
|
])
|
|
1636
1636
|
])), 128)),
|
|
1637
|
-
|
|
1637
|
+
B(v.$slots, "input", { showInput: u.value }, () => [
|
|
1638
1638
|
u.value ? Ie((o(), i("input", {
|
|
1639
1639
|
key: 0,
|
|
1640
1640
|
ref_key: "inputRef",
|
|
1641
|
-
ref:
|
|
1641
|
+
ref: s,
|
|
1642
1642
|
"onUpdate:modelValue": O[0] || (O[0] = (M) => m.value = M),
|
|
1643
1643
|
type: "text",
|
|
1644
1644
|
placeholder: e.placeholder || "Type here",
|
|
@@ -1659,7 +1659,7 @@ const pt = we("SunIcon", [
|
|
|
1659
1659
|
value: "",
|
|
1660
1660
|
disabled: "",
|
|
1661
1661
|
selected: ""
|
|
1662
|
-
}, _l = ["value"],
|
|
1662
|
+
}, _l = ["value"], Xa = /* @__PURE__ */ j({
|
|
1663
1663
|
__name: "select",
|
|
1664
1664
|
props: {
|
|
1665
1665
|
options: {},
|
|
@@ -1670,33 +1670,33 @@ const pt = we("SunIcon", [
|
|
|
1670
1670
|
emits: ["update:modelValue"],
|
|
1671
1671
|
setup(e, { expose: c, emit: l }) {
|
|
1672
1672
|
console.log(e.placeholder);
|
|
1673
|
-
const
|
|
1673
|
+
const r = l, a = h(null), s = (u) => {
|
|
1674
1674
|
const g = u.target;
|
|
1675
|
-
|
|
1675
|
+
r("update:modelValue", g.value);
|
|
1676
1676
|
};
|
|
1677
1677
|
return c({
|
|
1678
1678
|
focusInput: () => {
|
|
1679
1679
|
var u;
|
|
1680
|
-
console.log("select.vue: focusInput method called."), (u =
|
|
1680
|
+
console.log("select.vue: focusInput method called."), (u = a.value) == null || u.focus();
|
|
1681
1681
|
}
|
|
1682
1682
|
// You can expose other properties or methods here if needed by the parent
|
|
1683
1683
|
// e.g., the current value: modelValue
|
|
1684
1684
|
}), (u, g) => (o(), i("div", Tl, [
|
|
1685
1685
|
e.label ? (o(), i("label", Bl, [
|
|
1686
|
-
|
|
1686
|
+
n("span", Dl, T(e.label), 1)
|
|
1687
1687
|
])) : z("", !0),
|
|
1688
|
-
|
|
1688
|
+
n("select", {
|
|
1689
1689
|
ref_key: "selectElement",
|
|
1690
|
-
ref:
|
|
1690
|
+
ref: a,
|
|
1691
1691
|
class: "rounded-md w-full select-bordered select",
|
|
1692
1692
|
value: e.modelValue,
|
|
1693
|
-
onChange:
|
|
1693
|
+
onChange: s
|
|
1694
1694
|
}, [
|
|
1695
|
-
e.placeholder ? (o(), i("option", Vl,
|
|
1696
|
-
(o(!0), i(
|
|
1695
|
+
e.placeholder ? (o(), i("option", Vl, T(e.placeholder), 1)) : z("", !0),
|
|
1696
|
+
(o(!0), i(A, null, X(e.options, (S) => (o(), i("option", {
|
|
1697
1697
|
key: S.value,
|
|
1698
1698
|
value: S.value
|
|
1699
|
-
},
|
|
1699
|
+
}, T(S.text), 9, _l))), 128))
|
|
1700
1700
|
], 40, Ol)
|
|
1701
1701
|
]));
|
|
1702
1702
|
}
|
|
@@ -1706,7 +1706,7 @@ const pt = we("SunIcon", [
|
|
|
1706
1706
|
}, Ll = { class: "label-text" }, jl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Pl = ["placeholder", "disabled"], Rl = {
|
|
1707
1707
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1708
1708
|
role: "listbox"
|
|
1709
|
-
}, Al = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Nl = ["onMousedown", "id", "aria-selected"],
|
|
1709
|
+
}, Al = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Nl = ["onMousedown", "id", "aria-selected"], Ya = {
|
|
1710
1710
|
__name: "filterableSelect",
|
|
1711
1711
|
props: {
|
|
1712
1712
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1737,29 +1737,29 @@ const pt = we("SunIcon", [
|
|
|
1737
1737
|
},
|
|
1738
1738
|
emits: ["update:modelValue", "select", "clear"],
|
|
1739
1739
|
setup(e, { expose: c, emit: l }) {
|
|
1740
|
-
const t = e,
|
|
1741
|
-
const D = (
|
|
1740
|
+
const t = e, r = l, a = Je(), s = H(() => {
|
|
1741
|
+
const D = (a.default ? a.default() : []).filter((w) => w.type !== Ze);
|
|
1742
1742
|
return console.log("hasDefaultSlotContent computed:", D.length > 0), D.length > 0;
|
|
1743
1743
|
}), m = h(""), u = h(null), g = h(!1), S = h(null), R = h(null), V = h(null), v = h(null), O = () => {
|
|
1744
1744
|
g.value = !t.disabled;
|
|
1745
1745
|
}, M = () => {
|
|
1746
|
-
g.value = !1, v.value = null,
|
|
1746
|
+
g.value = !1, v.value = null, s.value || (u.value && m.value !== u.value.text ? m.value = u.value.text : u.value || (m.value = ""));
|
|
1747
1747
|
}, U = () => {
|
|
1748
1748
|
g.value ? M() : O();
|
|
1749
|
-
},
|
|
1749
|
+
}, N = H(() => {
|
|
1750
1750
|
const d = m.value ? m.value.toLowerCase() : "";
|
|
1751
1751
|
return d === "" && !g.value ? [] : t.options.filter(
|
|
1752
1752
|
(w) => w && w.text ? w.text.toLowerCase().includes(d) : ""
|
|
1753
1753
|
);
|
|
1754
1754
|
});
|
|
1755
|
-
|
|
1755
|
+
q(
|
|
1756
1756
|
() => t.modelValue,
|
|
1757
1757
|
(d, D) => {
|
|
1758
1758
|
if (d !== D && M(), d == null)
|
|
1759
|
-
u.value = null, !g.value && !
|
|
1759
|
+
u.value = null, !g.value && !s.value && (m.value = "");
|
|
1760
1760
|
else {
|
|
1761
1761
|
const w = t.options.find((_) => _.value === d);
|
|
1762
|
-
w ? (u.value = w, !g.value && !
|
|
1762
|
+
w ? (u.value = w, !g.value && !s.value && (m.value = w.text)) : (u.value = null, !g.value && !s.value && (m.value = ""));
|
|
1763
1763
|
}
|
|
1764
1764
|
},
|
|
1765
1765
|
{ immediate: !0 }
|
|
@@ -1772,7 +1772,7 @@ const pt = we("SunIcon", [
|
|
|
1772
1772
|
R.value && !R.value.contains(document.activeElement) && M();
|
|
1773
1773
|
}, 100);
|
|
1774
1774
|
};
|
|
1775
|
-
|
|
1775
|
+
q(g, (d) => {
|
|
1776
1776
|
d ? setTimeout(() => {
|
|
1777
1777
|
document.addEventListener("click", W);
|
|
1778
1778
|
}, 0) : document.removeEventListener("click", W);
|
|
@@ -1782,34 +1782,34 @@ const pt = we("SunIcon", [
|
|
|
1782
1782
|
const te = () => {
|
|
1783
1783
|
if (t.disabled) return;
|
|
1784
1784
|
const d = u.value;
|
|
1785
|
-
|
|
1785
|
+
r("update:modelValue", null), d && r("clear", d);
|
|
1786
1786
|
}, f = (d) => {
|
|
1787
|
-
u.value = d,
|
|
1788
|
-
}, y = () => {
|
|
1789
|
-
A.value.length > 0 && f(A.value[0]);
|
|
1787
|
+
u.value = d, s.value || (m.value = d.text), r("update:modelValue", d.value), r("select", d), M();
|
|
1790
1788
|
}, b = () => {
|
|
1789
|
+
N.value.length > 0 && f(N.value[0]);
|
|
1790
|
+
}, y = () => {
|
|
1791
1791
|
g.value || O();
|
|
1792
1792
|
}, I = (d) => {
|
|
1793
|
-
if (!g.value ||
|
|
1794
|
-
const D =
|
|
1795
|
-
(_,
|
|
1793
|
+
if (!g.value || N.value.length === 0) return;
|
|
1794
|
+
const D = N.value.findIndex(
|
|
1795
|
+
(_, P) => "option-" + P === v.value
|
|
1796
1796
|
);
|
|
1797
1797
|
let w = -1;
|
|
1798
1798
|
if (d.key === "ArrowDown")
|
|
1799
|
-
d.preventDefault(), w = (D + 1) %
|
|
1799
|
+
d.preventDefault(), w = (D + 1) % N.value.length;
|
|
1800
1800
|
else if (d.key === "ArrowUp")
|
|
1801
|
-
d.preventDefault(), w = (D - 1 +
|
|
1801
|
+
d.preventDefault(), w = (D - 1 + N.value.length) % N.value.length;
|
|
1802
1802
|
else if (d.key === "Enter" && v.value) {
|
|
1803
1803
|
d.preventDefault();
|
|
1804
|
-
const _ =
|
|
1805
|
-
(
|
|
1804
|
+
const _ = N.value.find(
|
|
1805
|
+
(P, Q) => "option-" + Q === v.value
|
|
1806
1806
|
);
|
|
1807
1807
|
_ && f(_);
|
|
1808
1808
|
return;
|
|
1809
1809
|
} else if (d.key === "Escape") {
|
|
1810
1810
|
d.preventDefault(), M(), V.value && V.value.focus();
|
|
1811
1811
|
return;
|
|
1812
|
-
} else if (
|
|
1812
|
+
} else if (s.value)
|
|
1813
1813
|
return;
|
|
1814
1814
|
if (w !== -1) {
|
|
1815
1815
|
v.value = "option-" + w;
|
|
@@ -1819,8 +1819,8 @@ const pt = we("SunIcon", [
|
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
|
-
return
|
|
1823
|
-
d ? (window.addEventListener("keydown", I), !
|
|
1822
|
+
return q(g, (d) => {
|
|
1823
|
+
d ? (window.addEventListener("keydown", I), !s.value && !m.value && u.value && (m.value = u.value.text)) : window.removeEventListener("keydown", I);
|
|
1824
1824
|
}), Ve(() => {
|
|
1825
1825
|
document.removeEventListener("click", W), window.removeEventListener("keydown", I);
|
|
1826
1826
|
}), c({
|
|
@@ -1838,7 +1838,7 @@ const pt = we("SunIcon", [
|
|
|
1838
1838
|
// Expose method to select an item programmatically
|
|
1839
1839
|
filterText: m,
|
|
1840
1840
|
// Expose filter text (useful if parent controls filtering)
|
|
1841
|
-
hasDefaultSlotContent:
|
|
1841
|
+
hasDefaultSlotContent: s
|
|
1842
1842
|
// Expose to know if the default slot is used
|
|
1843
1843
|
}), (d, D) => (o(), i("div", {
|
|
1844
1844
|
class: "relative w-full max-w-xs form-control",
|
|
@@ -1846,18 +1846,18 @@ const pt = we("SunIcon", [
|
|
|
1846
1846
|
ref: R
|
|
1847
1847
|
}, [
|
|
1848
1848
|
e.label ? (o(), i("label", El, [
|
|
1849
|
-
|
|
1849
|
+
n("span", Ll, T(e.label), 1)
|
|
1850
1850
|
])) : z("", !0),
|
|
1851
|
-
|
|
1852
|
-
class:
|
|
1853
|
-
style:
|
|
1851
|
+
n("div", {
|
|
1852
|
+
class: $(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !s.value, select: !s.value }]),
|
|
1853
|
+
style: be(
|
|
1854
1854
|
u.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1855
1855
|
),
|
|
1856
1856
|
tabindex: "0",
|
|
1857
|
-
onClick: D[1] || (D[1] = (w) =>
|
|
1857
|
+
onClick: D[1] || (D[1] = (w) => s.value ? U() : O()),
|
|
1858
1858
|
onKeydown: [
|
|
1859
|
-
pe(oe(
|
|
1860
|
-
pe(oe(
|
|
1859
|
+
pe(oe(b, ["prevent"]), ["enter"]),
|
|
1860
|
+
pe(oe(b, ["prevent"]), ["space"])
|
|
1861
1861
|
],
|
|
1862
1862
|
onBlur: Z,
|
|
1863
1863
|
role: "combobox",
|
|
@@ -1868,8 +1868,8 @@ const pt = we("SunIcon", [
|
|
|
1868
1868
|
ref_key: "activatorWrapper",
|
|
1869
1869
|
ref: V
|
|
1870
1870
|
}, [
|
|
1871
|
-
|
|
1872
|
-
|
|
1871
|
+
B(d.$slots, "default", {}, () => [
|
|
1872
|
+
s.value ? z("", !0) : Ie((o(), i("input", {
|
|
1873
1873
|
key: 0,
|
|
1874
1874
|
type: "text",
|
|
1875
1875
|
placeholder: e.placeholder,
|
|
@@ -1878,7 +1878,7 @@ const pt = we("SunIcon", [
|
|
|
1878
1878
|
ref_key: "filterInput",
|
|
1879
1879
|
ref: S,
|
|
1880
1880
|
onFocus: O,
|
|
1881
|
-
onInput:
|
|
1881
|
+
onInput: y,
|
|
1882
1882
|
tabindex: "-1",
|
|
1883
1883
|
disabled: t.disabled
|
|
1884
1884
|
}, null, 40, Pl)), [
|
|
@@ -1891,27 +1891,27 @@ const pt = we("SunIcon", [
|
|
|
1891
1891
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1892
1892
|
onClick: oe(te, ["stop"])
|
|
1893
1893
|
})) : z("", !0),
|
|
1894
|
-
|
|
1894
|
+
s.value && !u.value ? (o(), re(ee(vt), {
|
|
1895
1895
|
key: 1,
|
|
1896
|
-
class:
|
|
1896
|
+
class: $([{ "rotate-180": g.value }, "mx-2"]),
|
|
1897
1897
|
size: 20
|
|
1898
1898
|
}, null, 8, ["class"])) : z("", !0)
|
|
1899
1899
|
], 46, jl),
|
|
1900
|
-
Ie(
|
|
1901
|
-
|
|
1902
|
-
(o(!0), i(
|
|
1900
|
+
Ie(n("div", Rl, [
|
|
1901
|
+
n("ul", Al, [
|
|
1902
|
+
(o(!0), i(A, null, X(N.value, (w, _) => (o(), i("li", {
|
|
1903
1903
|
key: w.value,
|
|
1904
|
-
onMousedown: oe((
|
|
1904
|
+
onMousedown: oe((P) => f(w), ["prevent"]),
|
|
1905
1905
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1906
1906
|
id: "option-" + _,
|
|
1907
1907
|
role: "option",
|
|
1908
1908
|
"aria-selected": u.value && u.value.value === w.value
|
|
1909
1909
|
}, [
|
|
1910
|
-
|
|
1910
|
+
n("a", null, T(w.text), 1)
|
|
1911
1911
|
], 40, Nl))), 128))
|
|
1912
1912
|
])
|
|
1913
1913
|
], 512), [
|
|
1914
|
-
[Qe, g.value &&
|
|
1914
|
+
[Qe, g.value && N.value.length > 0]
|
|
1915
1915
|
])
|
|
1916
1916
|
], 512));
|
|
1917
1917
|
}
|
|
@@ -1924,7 +1924,7 @@ const pt = we("SunIcon", [
|
|
|
1924
1924
|
}, Kl = { class: "label-text-alt text-error validator-hint" }, Xl = {
|
|
1925
1925
|
key: 2,
|
|
1926
1926
|
class: "label"
|
|
1927
|
-
}, Yl = { class: "label-text-alt text-success validator-hint" },
|
|
1927
|
+
}, Yl = { class: "label-text-alt text-success validator-hint" }, Ga = /* @__PURE__ */ j({
|
|
1928
1928
|
__name: "inputField",
|
|
1929
1929
|
props: {
|
|
1930
1930
|
modelValue: { default: "" },
|
|
@@ -1941,42 +1941,42 @@ const pt = we("SunIcon", [
|
|
|
1941
1941
|
},
|
|
1942
1942
|
emits: ["update:modelValue", "validate"],
|
|
1943
1943
|
setup(e, { expose: c, emit: l }) {
|
|
1944
|
-
const t = e,
|
|
1945
|
-
var U,
|
|
1944
|
+
const t = e, r = l, a = h(null), s = h(!1), m = h(""), u = H(() => {
|
|
1945
|
+
var U, N, W, Z;
|
|
1946
1946
|
let v = !0, O = "";
|
|
1947
1947
|
const M = t.modelValue;
|
|
1948
|
-
return (U = t.rules) != null && U.required && (M == null || M === "") && (v = !1, O = "This field is required."), v && ((
|
|
1949
|
-
}), g = H(() =>
|
|
1948
|
+
return (U = t.rules) != null && U.required && (M == null || M === "") && (v = !1, O = "This field is required."), v && ((N = t.rules) == null ? void 0 : N.minLength) !== void 0 && typeof M == "string" && M.length < t.rules.minLength && (v = !1, O = `Must be at least ${t.rules.minLength} characters.`), v && ((W = t.rules) == null ? void 0 : W.maxLength) !== void 0 && typeof M == "string" && M.length > t.rules.maxLength && (v = !1, O = `Cannot exceed ${t.rules.maxLength} characters.`), v && ((Z = t.rules) != null && Z.email) && typeof M == "string" && M && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(M) || (v = !1, O = "Please enter a valid email address.")), m.value = O, r("validate", v), v;
|
|
1949
|
+
}), g = H(() => s.value && !u.value), S = (v) => {
|
|
1950
1950
|
const O = v.target;
|
|
1951
|
-
|
|
1951
|
+
r("update:modelValue", O.value), s.value && u.value;
|
|
1952
1952
|
}, R = () => {
|
|
1953
|
-
|
|
1953
|
+
s.value = !0, u.value;
|
|
1954
1954
|
};
|
|
1955
|
-
return
|
|
1955
|
+
return q(
|
|
1956
1956
|
() => t.modelValue,
|
|
1957
1957
|
() => {
|
|
1958
|
-
|
|
1958
|
+
s.value && u.value;
|
|
1959
1959
|
}
|
|
1960
1960
|
), c({
|
|
1961
1961
|
focusInput: () => {
|
|
1962
1962
|
var v;
|
|
1963
|
-
console.log("inputField.vue: focusInput method called."), (v =
|
|
1963
|
+
console.log("inputField.vue: focusInput method called."), (v = a.value) == null || v.focus();
|
|
1964
1964
|
},
|
|
1965
1965
|
isValid: u,
|
|
1966
|
-
isTouched:
|
|
1966
|
+
isTouched: s,
|
|
1967
1967
|
errorMessage: m
|
|
1968
1968
|
}), (v, O) => (o(), i("div", ql, [
|
|
1969
1969
|
e.label ? (o(), i("label", Fl, [
|
|
1970
|
-
|
|
1970
|
+
n("span", Hl, T(e.label), 1)
|
|
1971
1971
|
])) : z("", !0),
|
|
1972
|
-
|
|
1973
|
-
|
|
1972
|
+
B(v.$slots, "default"),
|
|
1973
|
+
n("input", {
|
|
1974
1974
|
ref_key: "inputElement",
|
|
1975
|
-
ref:
|
|
1975
|
+
ref: a,
|
|
1976
1976
|
type: e.type,
|
|
1977
1977
|
placeholder: e.placeholder,
|
|
1978
1978
|
disabled: t.disabled,
|
|
1979
|
-
class:
|
|
1979
|
+
class: $(["input-bordered rounded-md w-full input validator", [
|
|
1980
1980
|
{
|
|
1981
1981
|
// Size classes - Apply based on size prop
|
|
1982
1982
|
"input-xs": e.size === "xs",
|
|
@@ -1988,18 +1988,18 @@ const pt = we("SunIcon", [
|
|
|
1988
1988
|
"input-ghost": e.style === "ghost",
|
|
1989
1989
|
// Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
|
|
1990
1990
|
// This ensures validation feedback overrides base colors.
|
|
1991
|
-
"input-neutral": e.color === "neutral" && !g.value && !(u.value &&
|
|
1992
|
-
"input-primary": e.color === "primary" && !g.value && !(u.value &&
|
|
1993
|
-
"input-secondary": e.color === "secondary" && !g.value && !(u.value &&
|
|
1994
|
-
"input-accent": e.color === "accent" && !g.value && !(u.value &&
|
|
1995
|
-
"input-info": e.color === "info" && !g.value && !(u.value &&
|
|
1996
|
-
"input-success": e.color === "success" && !g.value && !(u.value &&
|
|
1991
|
+
"input-neutral": e.color === "neutral" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1992
|
+
"input-primary": e.color === "primary" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1993
|
+
"input-secondary": e.color === "secondary" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1994
|
+
"input-accent": e.color === "accent" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1995
|
+
"input-info": e.color === "info" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1996
|
+
"input-success": e.color === "success" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1997
1997
|
// Color success applies only if not in error or validation success state
|
|
1998
|
-
"input-warning": e.color === "warning" && !g.value && !(u.value &&
|
|
1998
|
+
"input-warning": e.color === "warning" && !g.value && !(u.value && s.value && e.needsValidation),
|
|
1999
1999
|
// Validation state classes - These take precedence visually via conditions or CSS specificity.
|
|
2000
2000
|
"input-error": g.value,
|
|
2001
2001
|
// Apply error style if validation fails
|
|
2002
|
-
"input-success-validation": u.value &&
|
|
2002
|
+
"input-success-validation": u.value && s.value && !g.value && e.needsValidation
|
|
2003
2003
|
// Apply validation success style if valid, touched, not error, AND validation is needed. Using a distinct name 'input-success-validation' is recommended to avoid CSS conflicts with the 'input-success' color class.
|
|
2004
2004
|
}
|
|
2005
2005
|
]]),
|
|
@@ -2008,13 +2008,13 @@ const pt = we("SunIcon", [
|
|
|
2008
2008
|
onBlur: R
|
|
2009
2009
|
}, null, 42, Ul),
|
|
2010
2010
|
g.value ? (o(), i("div", Wl, [
|
|
2011
|
-
|
|
2012
|
-
])) : u.value &&
|
|
2013
|
-
|
|
2011
|
+
n("span", Kl, T(m.value), 1)
|
|
2012
|
+
])) : u.value && s.value && e.successMessage ? (o(), i("div", Xl, [
|
|
2013
|
+
n("span", Yl, T(e.successMessage), 1)
|
|
2014
2014
|
])) : z("", !0)
|
|
2015
2015
|
]));
|
|
2016
2016
|
}
|
|
2017
|
-
}),
|
|
2017
|
+
}), Ja = /* @__PURE__ */ j({
|
|
2018
2018
|
__name: "loader",
|
|
2019
2019
|
props: {
|
|
2020
2020
|
loading: { type: Boolean, default: !0 },
|
|
@@ -2024,14 +2024,14 @@ const pt = we("SunIcon", [
|
|
|
2024
2024
|
},
|
|
2025
2025
|
setup(e) {
|
|
2026
2026
|
const c = e, l = h(c.loading);
|
|
2027
|
-
return
|
|
2027
|
+
return q(
|
|
2028
2028
|
() => c.loading,
|
|
2029
2029
|
(t) => {
|
|
2030
2030
|
l.value = t;
|
|
2031
2031
|
}
|
|
2032
|
-
), (t,
|
|
2032
|
+
), (t, r) => l.value ? (o(), i("span", {
|
|
2033
2033
|
key: 0,
|
|
2034
|
-
class:
|
|
2034
|
+
class: $(["loading", [
|
|
2035
2035
|
{ "loading-xs": e.size === "xs" },
|
|
2036
2036
|
{ "loading-sm": e.size === "sm" },
|
|
2037
2037
|
{ "loading-md": e.size === "md" },
|
|
@@ -2058,13 +2058,13 @@ const pt = we("SunIcon", [
|
|
|
2058
2058
|
}
|
|
2059
2059
|
}), Se = h([]);
|
|
2060
2060
|
function Gl() {
|
|
2061
|
-
const e = (l, t = "default",
|
|
2062
|
-
const
|
|
2061
|
+
const e = (l, t = "default", r = 5e3) => {
|
|
2062
|
+
const a = Math.random().toString(36).substring(2, 9);
|
|
2063
2063
|
Se.value.push({
|
|
2064
|
-
id:
|
|
2064
|
+
id: a,
|
|
2065
2065
|
message: l,
|
|
2066
2066
|
type: t,
|
|
2067
|
-
duration:
|
|
2067
|
+
duration: r
|
|
2068
2068
|
});
|
|
2069
2069
|
}, c = (l) => {
|
|
2070
2070
|
Se.value = Se.value.filter((t) => t.id !== l);
|
|
@@ -2076,7 +2076,7 @@ function Gl() {
|
|
|
2076
2076
|
removeToast: c
|
|
2077
2077
|
};
|
|
2078
2078
|
}
|
|
2079
|
-
const Jl = ["value"], Zl = /* @__PURE__ */
|
|
2079
|
+
const Jl = ["value"], Zl = /* @__PURE__ */ j({
|
|
2080
2080
|
__name: "ToastNotification",
|
|
2081
2081
|
props: {
|
|
2082
2082
|
toast: {
|
|
@@ -2086,18 +2086,18 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2086
2086
|
},
|
|
2087
2087
|
emits: ["remove"],
|
|
2088
2088
|
setup(e, { emit: c }) {
|
|
2089
|
-
const l = e, t = c,
|
|
2090
|
-
let
|
|
2089
|
+
const l = e, t = c, r = h(100);
|
|
2090
|
+
let a = null, s = null;
|
|
2091
2091
|
de(() => {
|
|
2092
2092
|
const u = l.toast.duration, g = Date.now();
|
|
2093
|
-
|
|
2093
|
+
a = setTimeout(() => {
|
|
2094
2094
|
t("remove", l.toast.id);
|
|
2095
|
-
}, u),
|
|
2095
|
+
}, u), s = setInterval(() => {
|
|
2096
2096
|
const S = Date.now() - g, R = Math.max(0, u - S);
|
|
2097
|
-
|
|
2097
|
+
r.value = R / u * 100, R === 0 && clearInterval(s);
|
|
2098
2098
|
}, 50);
|
|
2099
|
-
}),
|
|
2100
|
-
|
|
2099
|
+
}), Ee(() => {
|
|
2100
|
+
a && clearTimeout(a), s && clearInterval(s);
|
|
2101
2101
|
});
|
|
2102
2102
|
const m = H(() => {
|
|
2103
2103
|
switch (l.toast.type) {
|
|
@@ -2115,17 +2115,17 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2115
2115
|
});
|
|
2116
2116
|
return (u, g) => (o(), i("div", {
|
|
2117
2117
|
role: "alert",
|
|
2118
|
-
class:
|
|
2118
|
+
class: $(["alert z-60", m.value, "shadow-lg"])
|
|
2119
2119
|
}, [
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
class:
|
|
2123
|
-
value:
|
|
2120
|
+
n("span", null, T(e.toast.message), 1),
|
|
2121
|
+
n("progress", {
|
|
2122
|
+
class: $(["progress absolute bottom-0 left-0 w-full progress-neutral"]),
|
|
2123
|
+
value: r.value,
|
|
2124
2124
|
max: "100"
|
|
2125
2125
|
}, null, 8, Jl)
|
|
2126
2126
|
], 2));
|
|
2127
2127
|
}
|
|
2128
|
-
}), Ql = /* @__PURE__ */ ue(Zl, [["__scopeId", "data-v-bc0c6917"]]), ea = /* @__PURE__ */
|
|
2128
|
+
}), Ql = /* @__PURE__ */ ue(Zl, [["__scopeId", "data-v-bc0c6917"]]), ea = /* @__PURE__ */ j({
|
|
2129
2129
|
__name: "ToastContainer",
|
|
2130
2130
|
props: {
|
|
2131
2131
|
position: {
|
|
@@ -2135,23 +2135,23 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2135
2135
|
}
|
|
2136
2136
|
},
|
|
2137
2137
|
setup(e) {
|
|
2138
|
-
const c = e, { toasts: l, removeToast: t } = Gl(),
|
|
2139
|
-
const [
|
|
2138
|
+
const c = e, { toasts: l, removeToast: t } = Gl(), r = H(() => {
|
|
2139
|
+
const [a, s] = c.position.split("-");
|
|
2140
2140
|
return {
|
|
2141
|
-
"toast-top":
|
|
2142
|
-
"toast-middle":
|
|
2143
|
-
"toast-bottom":
|
|
2144
|
-
"toast-start":
|
|
2145
|
-
"toast-center":
|
|
2146
|
-
"toast-end":
|
|
2141
|
+
"toast-top": a === "top",
|
|
2142
|
+
"toast-middle": a === "middle",
|
|
2143
|
+
"toast-bottom": a === "bottom",
|
|
2144
|
+
"toast-start": s === "start",
|
|
2145
|
+
"toast-center": s === "center",
|
|
2146
|
+
"toast-end": s === "end"
|
|
2147
2147
|
};
|
|
2148
2148
|
});
|
|
2149
|
-
return (
|
|
2150
|
-
class:
|
|
2149
|
+
return (a, s) => (o(), i("div", {
|
|
2150
|
+
class: $(["toast z-50", r.value])
|
|
2151
2151
|
}, [
|
|
2152
2152
|
se(tt, { name: "toast-fade" }, {
|
|
2153
|
-
default:
|
|
2154
|
-
(o(!0), i(
|
|
2153
|
+
default: ye(() => [
|
|
2154
|
+
(o(!0), i(A, null, X(ee(l), (m) => (o(), re(Ql, {
|
|
2155
2155
|
key: m.id,
|
|
2156
2156
|
toast: m,
|
|
2157
2157
|
onRemove: (u) => ee(t)(m.id)
|
|
@@ -2161,12 +2161,12 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2161
2161
|
})
|
|
2162
2162
|
], 2));
|
|
2163
2163
|
}
|
|
2164
|
-
}),
|
|
2164
|
+
}), Za = /* @__PURE__ */ ue(ea, [["__scopeId", "data-v-e10fa884"]]), ta = {
|
|
2165
2165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2166
2166
|
fill: "none",
|
|
2167
2167
|
viewBox: "0 0 24 24",
|
|
2168
2168
|
class: "w-6 h-6 stroke-current shrink-0"
|
|
2169
|
-
}, la = ["d"], aa = { class: "empty:hidden" },
|
|
2169
|
+
}, la = ["d"], aa = { class: "empty:hidden" }, Qa = /* @__PURE__ */ j({
|
|
2170
2170
|
__name: "alert",
|
|
2171
2171
|
props: {
|
|
2172
2172
|
type: { default: "default" },
|
|
@@ -2176,10 +2176,10 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2176
2176
|
},
|
|
2177
2177
|
emits: ["update:modelValue"],
|
|
2178
2178
|
setup(e, { emit: c }) {
|
|
2179
|
-
const l = e, t = c,
|
|
2179
|
+
const l = e, t = c, r = H({
|
|
2180
2180
|
get: () => l.modelValue,
|
|
2181
2181
|
set: (u) => t("update:modelValue", u)
|
|
2182
|
-
}),
|
|
2182
|
+
}), a = H(() => {
|
|
2183
2183
|
switch (l.type) {
|
|
2184
2184
|
case "info":
|
|
2185
2185
|
return "alert-info";
|
|
@@ -2192,7 +2192,7 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2192
2192
|
default:
|
|
2193
2193
|
return "";
|
|
2194
2194
|
}
|
|
2195
|
-
}),
|
|
2195
|
+
}), s = H(() => {
|
|
2196
2196
|
switch (l.type) {
|
|
2197
2197
|
case "info":
|
|
2198
2198
|
return "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";
|
|
@@ -2206,31 +2206,31 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2206
2206
|
return "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";
|
|
2207
2207
|
}
|
|
2208
2208
|
}), m = () => {
|
|
2209
|
-
|
|
2209
|
+
r.value = !1;
|
|
2210
2210
|
};
|
|
2211
|
-
return (u, g) =>
|
|
2211
|
+
return (u, g) => r.value ? (o(), i("div", {
|
|
2212
2212
|
key: 0,
|
|
2213
2213
|
role: "alert",
|
|
2214
|
-
class:
|
|
2214
|
+
class: $(["alert", a.value])
|
|
2215
2215
|
}, [
|
|
2216
|
-
|
|
2216
|
+
B(u.$slots, "icon", { class: "w-6 h-6" }, () => [
|
|
2217
2217
|
(o(), i("svg", ta, [
|
|
2218
|
-
|
|
2218
|
+
n("path", {
|
|
2219
2219
|
"stroke-linecap": "round",
|
|
2220
2220
|
"stroke-linejoin": "round",
|
|
2221
2221
|
"stroke-width": "2",
|
|
2222
|
-
d:
|
|
2222
|
+
d: s.value
|
|
2223
2223
|
}, null, 8, la)
|
|
2224
2224
|
]))
|
|
2225
2225
|
]),
|
|
2226
|
-
|
|
2227
|
-
|
|
2226
|
+
n("span", null, T(e.message), 1),
|
|
2227
|
+
n("div", aa, [
|
|
2228
2228
|
e.closable ? (o(), i("button", {
|
|
2229
2229
|
key: 0,
|
|
2230
2230
|
class: "btn btn-sm btn-ghost",
|
|
2231
2231
|
onClick: m
|
|
2232
2232
|
}, "Close")) : z("", !0),
|
|
2233
|
-
|
|
2233
|
+
B(u.$slots, "default")
|
|
2234
2234
|
])
|
|
2235
2235
|
], 2)) : z("", !0);
|
|
2236
2236
|
}
|
|
@@ -2240,7 +2240,7 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2240
2240
|
}, ra = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, ua = {
|
|
2241
2241
|
tabindex: "0",
|
|
2242
2242
|
class: "collapse collapse-plus w-full"
|
|
2243
|
-
}, ca = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, da = { class: "collapse-content flex w-full text-sm" }, va = { class: "flex flex-col gap-2.5" }, fa = { class: "w-full" }, ma = ["href"], pa = { class: "sm:w-1/4" },
|
|
2243
|
+
}, ca = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, da = { class: "collapse-content flex w-full text-sm" }, va = { class: "flex flex-col gap-2.5" }, fa = { class: "w-full" }, ma = ["href"], pa = { class: "sm:w-1/4" }, en = /* @__PURE__ */ j({
|
|
2244
2244
|
__name: "footer",
|
|
2245
2245
|
props: {
|
|
2246
2246
|
items: {},
|
|
@@ -2252,37 +2252,37 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2252
2252
|
setup(e) {
|
|
2253
2253
|
const c = e;
|
|
2254
2254
|
return (l, t) => (o(), i("div", {
|
|
2255
|
-
class:
|
|
2255
|
+
class: $(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2256
2256
|
}, [
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
class:
|
|
2257
|
+
n("footer", na, [
|
|
2258
|
+
n("div", {
|
|
2259
|
+
class: $(["footer sm:footer-horizontal sm:w-3/4", [{ "sm:grid-rows-1": c.rows === 1 }, { "sm:grid-rows-2": c.rows === 2 }, { "sm:grid-rows-3": c.rows === 3 }]])
|
|
2260
2260
|
}, [
|
|
2261
|
-
(o(!0), i(
|
|
2262
|
-
class:
|
|
2261
|
+
(o(!0), i(A, null, X(c.items, (r) => (o(), i("nav", {
|
|
2262
|
+
class: $([{ "hidden sm:grid w-max": e.collapseOnMobile }])
|
|
2263
2263
|
}, [
|
|
2264
|
-
|
|
2265
|
-
(o(!0), i(
|
|
2264
|
+
n("h6", oa, T(r.title), 1),
|
|
2265
|
+
(o(!0), i(A, null, X(r.items, (a) => (o(), i("a", {
|
|
2266
2266
|
class: "link link-hover",
|
|
2267
|
-
href:
|
|
2268
|
-
},
|
|
2267
|
+
href: a.link
|
|
2268
|
+
}, T(a.text), 9, sa))), 256))
|
|
2269
2269
|
], 2))), 256)),
|
|
2270
|
-
|
|
2271
|
-
class:
|
|
2270
|
+
n("nav", {
|
|
2271
|
+
class: $(["empty:hidden", [{ "hidden sm:grid": e.collapseOnMobile }]])
|
|
2272
2272
|
}, [
|
|
2273
|
-
|
|
2273
|
+
B(l.$slots, "extra-row")
|
|
2274
2274
|
], 2),
|
|
2275
2275
|
e.collapseOnMobile ? (o(), i("nav", ia, [
|
|
2276
|
-
(o(!0), i(
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
(o(!0), i(
|
|
2282
|
-
|
|
2276
|
+
(o(!0), i(A, null, X(c.items, (r) => (o(), i("ul", ra, [
|
|
2277
|
+
n("div", ua, [
|
|
2278
|
+
n("div", ca, T(r.title), 1),
|
|
2279
|
+
n("div", da, [
|
|
2280
|
+
n("ul", va, [
|
|
2281
|
+
(o(!0), i(A, null, X(r.items, (a) => (o(), i("li", fa, [
|
|
2282
|
+
n("a", {
|
|
2283
2283
|
class: "w-full font-medium link link-hover",
|
|
2284
|
-
href:
|
|
2285
|
-
},
|
|
2284
|
+
href: a.link
|
|
2285
|
+
}, T(a.text), 9, ma)
|
|
2286
2286
|
]))), 256))
|
|
2287
2287
|
])
|
|
2288
2288
|
])
|
|
@@ -2290,33 +2290,33 @@ const Jl = ["value"], Zl = /* @__PURE__ */ P({
|
|
|
2290
2290
|
]))), 256))
|
|
2291
2291
|
])) : z("", !0)
|
|
2292
2292
|
], 2),
|
|
2293
|
-
|
|
2294
|
-
|
|
2293
|
+
n("aside", pa, [
|
|
2294
|
+
B(l.$slots, "default")
|
|
2295
2295
|
])
|
|
2296
2296
|
])
|
|
2297
2297
|
], 2));
|
|
2298
2298
|
}
|
|
2299
|
-
}), ha = {}, ga = { class: "min-h-40 container hero" },
|
|
2299
|
+
}), ha = {}, ga = { class: "min-h-40 container hero" }, ya = { class: "px-0! text-center hero-content" }, ba = { class: "mt-9 text-4xl" };
|
|
2300
2300
|
function wa(e, c) {
|
|
2301
2301
|
return o(), i("div", ga, [
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
c[0] || (c[0] =
|
|
2302
|
+
n("div", ya, [
|
|
2303
|
+
n("div", null, [
|
|
2304
|
+
n("h1", ba, [
|
|
2305
|
+
B(e.$slots, "title", {}, () => [
|
|
2306
|
+
c[0] || (c[0] = _e("hero title", -1))
|
|
2307
2307
|
])
|
|
2308
2308
|
]),
|
|
2309
|
-
|
|
2310
|
-
|
|
2309
|
+
n("p", null, [
|
|
2310
|
+
B(e.$slots, "description", { class: "py-9" })
|
|
2311
2311
|
]),
|
|
2312
|
-
|
|
2313
|
-
c[1] || (c[1] =
|
|
2312
|
+
B(e.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
2313
|
+
c[1] || (c[1] = n("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2314
2314
|
])
|
|
2315
2315
|
])
|
|
2316
2316
|
])
|
|
2317
2317
|
]);
|
|
2318
2318
|
}
|
|
2319
|
-
const
|
|
2319
|
+
const tn = /* @__PURE__ */ ue(ha, [["render", wa]]), xa = { class: "flex flex-row place-content-center gap-4 categories" }, ka = ["onClick"], ln = /* @__PURE__ */ j({
|
|
2320
2320
|
__name: "categoryNavigation",
|
|
2321
2321
|
props: {
|
|
2322
2322
|
searchOptions: {},
|
|
@@ -2325,21 +2325,21 @@ const en = /* @__PURE__ */ ue(ha, [["render", wa]]), xa = { class: "flex flex-ro
|
|
|
2325
2325
|
emits: ["update:currentCategory"],
|
|
2326
2326
|
setup(e, { emit: c }) {
|
|
2327
2327
|
const l = e, t = c;
|
|
2328
|
-
function
|
|
2329
|
-
t("update:currentCategory",
|
|
2328
|
+
function r(a) {
|
|
2329
|
+
t("update:currentCategory", a);
|
|
2330
2330
|
}
|
|
2331
|
-
return (
|
|
2332
|
-
(o(!0), i(
|
|
2331
|
+
return (a, s) => (o(), i("div", xa, [
|
|
2332
|
+
(o(!0), i(A, null, X(l.searchOptions, (m) => (o(), i("div", {
|
|
2333
2333
|
key: m.category
|
|
2334
2334
|
}, [
|
|
2335
|
-
|
|
2336
|
-
onClick: (u) =>
|
|
2337
|
-
class:
|
|
2338
|
-
},
|
|
2335
|
+
n("button", {
|
|
2336
|
+
onClick: (u) => r(m.category),
|
|
2337
|
+
class: $(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === m.category }])
|
|
2338
|
+
}, T(m.category), 11, ka)
|
|
2339
2339
|
]))), 128))
|
|
2340
2340
|
]));
|
|
2341
2341
|
}
|
|
2342
|
-
}), $a = { class: "md:flex hidden navbar-start" }, Ca = { class: "md:flex justify-center items-center hidden navbar-center" }, Sa = { class: "md:flex hidden navbar-end" }, Ia = { class: "navbar-bottom md:flex hidden" }, Ma = /* @__PURE__ */
|
|
2342
|
+
}), $a = { class: "md:flex hidden navbar-start" }, Ca = { class: "md:flex justify-center items-center hidden navbar-center" }, Sa = { class: "md:flex hidden navbar-end" }, Ia = { class: "navbar-bottom md:flex hidden" }, Ma = /* @__PURE__ */ j({
|
|
2343
2343
|
__name: "navigationBar",
|
|
2344
2344
|
props: {
|
|
2345
2345
|
isCollapsed: { type: Boolean, default: !0 }
|
|
@@ -2347,30 +2347,30 @@ const en = /* @__PURE__ */ ue(ha, [["render", wa]]), xa = { class: "flex flex-ro
|
|
|
2347
2347
|
setup(e) {
|
|
2348
2348
|
const c = e;
|
|
2349
2349
|
return (l, t) => (o(), i("nav", {
|
|
2350
|
-
class:
|
|
2350
|
+
class: $(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", c.isCollapsed ? "collapsed" : ""])
|
|
2351
2351
|
}, [
|
|
2352
|
-
|
|
2353
|
-
|
|
2352
|
+
n("div", $a, [
|
|
2353
|
+
B(l.$slots, "start", {}, void 0, !0)
|
|
2354
2354
|
]),
|
|
2355
|
-
|
|
2356
|
-
|
|
2355
|
+
n("div", Ca, [
|
|
2356
|
+
B(l.$slots, "center", {}, void 0, !0)
|
|
2357
2357
|
]),
|
|
2358
|
-
|
|
2359
|
-
|
|
2358
|
+
n("div", Sa, [
|
|
2359
|
+
B(l.$slots, "end", {}, void 0, !0)
|
|
2360
2360
|
]),
|
|
2361
|
-
|
|
2362
|
-
|
|
2361
|
+
n("div", Ia, [
|
|
2362
|
+
B(l.$slots, "bottom", {}, void 0, !0)
|
|
2363
2363
|
])
|
|
2364
2364
|
], 2));
|
|
2365
2365
|
}
|
|
2366
|
-
}),
|
|
2366
|
+
}), an = /* @__PURE__ */ ue(Ma, [["__scopeId", "data-v-8ddb2b45"]]), za = {
|
|
2367
2367
|
key: 0,
|
|
2368
2368
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
2369
2369
|
}, Ta = ["onClick", "aria-selected"], Ba = {
|
|
2370
2370
|
key: 0,
|
|
2371
2371
|
role: "tabpanel",
|
|
2372
2372
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
2373
|
-
}, Da = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" },
|
|
2373
|
+
}, Da = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, nn = /* @__PURE__ */ j({
|
|
2374
2374
|
__name: "tab",
|
|
2375
2375
|
props: {
|
|
2376
2376
|
items: {},
|
|
@@ -2380,87 +2380,129 @@ const en = /* @__PURE__ */ ue(ha, [["render", wa]]), xa = { class: "flex flex-ro
|
|
|
2380
2380
|
},
|
|
2381
2381
|
emits: ["tab-changed"],
|
|
2382
2382
|
setup(e, { emit: c }) {
|
|
2383
|
-
const l = e, t = h(l.items[0]),
|
|
2384
|
-
function
|
|
2385
|
-
t.value = u,
|
|
2383
|
+
const l = e, t = h(l.items[0]), r = c;
|
|
2384
|
+
function a(u) {
|
|
2385
|
+
t.value = u, r("tab-changed", u);
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function s() {
|
|
2388
2388
|
const g = (l.items.indexOf(t.value) + 1) % l.items.length;
|
|
2389
|
-
|
|
2389
|
+
a(l.items[g]);
|
|
2390
2390
|
}
|
|
2391
2391
|
function m() {
|
|
2392
2392
|
const g = (l.items.indexOf(t.value) - 1 + l.items.length) % l.items.length;
|
|
2393
|
-
|
|
2393
|
+
a(l.items[g]);
|
|
2394
2394
|
}
|
|
2395
2395
|
return de(() => {
|
|
2396
|
-
l.items &&
|
|
2397
|
-
}),
|
|
2396
|
+
l.items && a(l.items[0]);
|
|
2397
|
+
}), Ee(() => {
|
|
2398
2398
|
l.rotateTabsAfter && l.rotateTabsAfter > 0 && setInterval(() => {
|
|
2399
|
-
|
|
2399
|
+
s();
|
|
2400
2400
|
}, l.rotateTabsAfter * 1e3);
|
|
2401
|
-
}), (u, g) => (o(), i(
|
|
2402
|
-
|
|
2401
|
+
}), (u, g) => (o(), i(A, null, [
|
|
2402
|
+
n("div", {
|
|
2403
2403
|
role: "tablist",
|
|
2404
|
-
class:
|
|
2404
|
+
class: $(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2405
2405
|
}, [
|
|
2406
2406
|
e.withControlls ? (o(), i("div", za, [
|
|
2407
|
-
|
|
2407
|
+
n("button", {
|
|
2408
2408
|
onClick: g[0] || (g[0] = (S) => m()),
|
|
2409
2409
|
class: "cursor-pointer"
|
|
2410
2410
|
}, "Previous"),
|
|
2411
|
-
|
|
2412
|
-
onClick: g[1] || (g[1] = (S) =>
|
|
2411
|
+
n("button", {
|
|
2412
|
+
onClick: g[1] || (g[1] = (S) => s()),
|
|
2413
2413
|
class: "text-primary cursor-pointer"
|
|
2414
2414
|
}, "Next")
|
|
2415
2415
|
])) : z("", !0),
|
|
2416
|
-
(o(!0), i(
|
|
2417
|
-
|
|
2416
|
+
(o(!0), i(A, null, X(e.items, (S) => (o(), i(A, null, [
|
|
2417
|
+
n("a", {
|
|
2418
2418
|
type: "button",
|
|
2419
2419
|
role: "tab",
|
|
2420
|
-
class:
|
|
2421
|
-
onClick: (R) =>
|
|
2420
|
+
class: $(["min-w-max tab", S === t.value ? "bg-primary text-base-100" : ""]),
|
|
2421
|
+
onClick: (R) => a(S),
|
|
2422
2422
|
"aria-selected": t.value == S
|
|
2423
|
-
},
|
|
2423
|
+
}, T(S), 11, Ta),
|
|
2424
2424
|
e.buttonOnlyMode ? z("", !0) : (o(), i("div", Ba, [
|
|
2425
|
-
|
|
2425
|
+
B(u.$slots, `${S}-tab`)
|
|
2426
2426
|
]))
|
|
2427
2427
|
], 64))), 256))
|
|
2428
2428
|
], 2),
|
|
2429
|
-
|
|
2430
|
-
|
|
2429
|
+
n("div", Da, [
|
|
2430
|
+
B(u.$slots, "default")
|
|
2431
2431
|
])
|
|
2432
2432
|
], 64));
|
|
2433
2433
|
}
|
|
2434
|
+
}), Oa = {
|
|
2435
|
+
key: 0,
|
|
2436
|
+
class: "step-icon"
|
|
2437
|
+
}, on = /* @__PURE__ */ j({
|
|
2438
|
+
__name: "steps",
|
|
2439
|
+
props: {
|
|
2440
|
+
vertical: { type: Boolean, default: !1 },
|
|
2441
|
+
progress: { default: 0 },
|
|
2442
|
+
wrap: { type: Boolean },
|
|
2443
|
+
steps: { default: () => [] },
|
|
2444
|
+
bars: { type: Boolean, default: !1 }
|
|
2445
|
+
},
|
|
2446
|
+
setup(e) {
|
|
2447
|
+
const c = e, l = (t) => t < c.progress ? "complete" : t === c.progress ? "active" : "incomplete";
|
|
2448
|
+
return (t, r) => (o(), i("ul", {
|
|
2449
|
+
class: $(["w-full steps", {
|
|
2450
|
+
"steps-vertical flex flex-col h-full min-h-max": c.vertical,
|
|
2451
|
+
"lg:steps-horizontal flex flex-wrap": c.wrap
|
|
2452
|
+
}])
|
|
2453
|
+
}, [
|
|
2454
|
+
(o(!0), i(A, null, X(c.steps, (a, s) => (o(), i("li", {
|
|
2455
|
+
key: s,
|
|
2456
|
+
class: $(["step", {
|
|
2457
|
+
"step-primary": a.color === "primary" && l(s) === "complete" || !a.color && l(s) === "complete",
|
|
2458
|
+
"step-secondary": a.color === "secondary" && l(s) === "complete",
|
|
2459
|
+
"step-accent": a.color === "accent" && l(s) === "complete",
|
|
2460
|
+
"step-info": a.color === "info" && l(s) === "complete",
|
|
2461
|
+
"step-success": a.color === "success" && l(s) === "complete",
|
|
2462
|
+
"step-warning": a.color === "warning" && l(s) === "complete",
|
|
2463
|
+
"step-error": a.color === "error" && l(s) === "complete",
|
|
2464
|
+
"step-neutral": l(s) === "incomplete",
|
|
2465
|
+
"step-active": l(s) === "active",
|
|
2466
|
+
"step-complete": l(s) === "complete",
|
|
2467
|
+
bars: c.bars
|
|
2468
|
+
}])
|
|
2469
|
+
}, [
|
|
2470
|
+
a.icon ? (o(), i("span", Oa, T(a.icon), 1)) : z("", !0),
|
|
2471
|
+
_e(" " + T(a.title), 1)
|
|
2472
|
+
], 2))), 128))
|
|
2473
|
+
], 2));
|
|
2474
|
+
}
|
|
2434
2475
|
});
|
|
2435
2476
|
typeof document > "u" && (globalThis.document = {});
|
|
2436
2477
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2437
2478
|
export {
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2479
|
+
Ra as Accordion,
|
|
2480
|
+
Ua as AdvancedSearch,
|
|
2481
|
+
Qa as Alert,
|
|
2482
|
+
Aa as Avatar,
|
|
2483
|
+
Na as Badge,
|
|
2484
|
+
_a as ButtonComponent,
|
|
2485
|
+
qa as Card,
|
|
2486
|
+
Fa as Carousel,
|
|
2487
|
+
Ha as CarouselItem,
|
|
2488
|
+
ln as CategoryNavigation,
|
|
2448
2489
|
kl as DatetimePicker,
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2490
|
+
Ea as Dropdown,
|
|
2491
|
+
Ya as FilterableSelect,
|
|
2492
|
+
en as Footer,
|
|
2493
|
+
tn as Hero,
|
|
2494
|
+
Ga as InputField,
|
|
2495
|
+
Ja as Loader,
|
|
2496
|
+
La as Modal,
|
|
2497
|
+
an as NavigationBar,
|
|
2498
|
+
Wa as Rating,
|
|
2499
|
+
Xa as Selector,
|
|
2500
|
+
on as Steps,
|
|
2501
|
+
ja as Swap,
|
|
2502
|
+
nn as Tab,
|
|
2503
|
+
Ka as TagInput,
|
|
2504
|
+
Pa as ThemeController,
|
|
2505
|
+
Za as Toast,
|
|
2464
2506
|
Gl as ToastComposable,
|
|
2465
2507
|
Ql as ToastNotification
|
|
2466
2508
|
};
|