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