manolis-ui 0.21.0 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -196
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +1012 -1464
- package/dist/manolis-ui.umd.cjs +10 -10
- package/dist/style.css +18 -541
- package/package.json +12 -11
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as P, computed as _, createElementBlock as r, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as ue, createElementVNode as l, Fragment as j, renderList as E, toDisplayString as O, ref as k, watch as A, h as se, onMounted as K, withDirectives as ee, createVNode as G, isRef as pe, vModelCheckbox as he, unref as U, provide as ge, normalizeStyle as Z, inject as be, useId as ye, defineAsyncComponent as te, nextTick as le, onBeforeUnmount as ie, withModifiers as H, createBlock as W, resolveDynamicComponent as ne, mergeProps as ae, withKeys as re, resolveComponent as oe, withCtx as ce, vModelText as me, useSlots as we, Comment as xe, vShow as ke, onUnmounted as $e } from "vue";
|
|
2
|
+
const Ce = ["disabled"], Se = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, Ll = /* @__PURE__ */ P({
|
|
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,
|
|
17
|
+
const c = e, t = _(() => {
|
|
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
|
-
}),
|
|
32
|
+
}), o = _(() => {
|
|
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
|
+
}), 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 (s, i) => (a(), r("button", {
|
|
68
|
+
class: M([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": c.outlined },
|
|
71
71
|
{ "btn-active": c.active },
|
|
72
|
+
o.value,
|
|
72
73
|
t.value,
|
|
73
|
-
|
|
74
|
-
r.value
|
|
74
|
+
u.value
|
|
75
75
|
]),
|
|
76
76
|
disabled: c.disabled
|
|
77
77
|
}, [
|
|
78
|
-
e.loading ? (
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
e.loading ? (a(), r("span", Se)) : T("", !0),
|
|
79
|
+
V(s.$slots, "default", {}, () => [
|
|
80
|
+
i[0] || (i[0] = ue("Submit", -1))
|
|
81
81
|
])
|
|
82
|
-
], 10,
|
|
82
|
+
], 10, Ce));
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), Ie = {
|
|
85
85
|
tabindex: "0",
|
|
86
86
|
class: "z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"
|
|
87
|
-
},
|
|
87
|
+
}, Te = ["href"], El = /* @__PURE__ */ P({
|
|
88
88
|
__name: "dropdown",
|
|
89
89
|
props: {
|
|
90
90
|
items: {},
|
|
@@ -99,30 +99,30 @@ const lt = ["disabled"], at = {
|
|
|
99
99
|
right: "dropdown-right",
|
|
100
100
|
bottom: "dropdown-bottom",
|
|
101
101
|
top: "dropdown-top"
|
|
102
|
-
},
|
|
102
|
+
}, t = {
|
|
103
103
|
start: "",
|
|
104
104
|
end: "dropdown-end"
|
|
105
|
-
},
|
|
106
|
-
return (
|
|
107
|
-
class:
|
|
105
|
+
}, o = e;
|
|
106
|
+
return (u, s) => (a(), r("div", {
|
|
107
|
+
class: M(["dropdown", c[o.position], t[o.floatPosition], { "dropdown-open": o.forceOpen }, { "dropdown-hover": o.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
V(u.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
113
|
-
|
|
113
|
+
s[0] || (s[0] = l("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
114
114
|
]),
|
|
115
|
-
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
href:
|
|
119
|
-
},
|
|
115
|
+
l("ul", Ie, [
|
|
116
|
+
(a(!0), r(j, null, E(e.items, (i) => (a(), r("li", null, [
|
|
117
|
+
l("a", {
|
|
118
|
+
href: i.link
|
|
119
|
+
}, O(i.text), 9, Te)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
V(u.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}),
|
|
125
|
+
}), Me = { class: "modal-box" }, Ve = { class: "modal-action" }, Al = /* @__PURE__ */ P({
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
@@ -130,48 +130,48 @@ const lt = ["disabled"], at = {
|
|
|
130
130
|
forceOpen: { type: [Boolean, null], default: null }
|
|
131
131
|
},
|
|
132
132
|
setup(e) {
|
|
133
|
-
const c = e,
|
|
133
|
+
const c = e, t = {
|
|
134
134
|
top: "modal-top",
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
|
-
},
|
|
138
|
-
var
|
|
139
|
-
(
|
|
140
|
-
},
|
|
141
|
-
var
|
|
142
|
-
(
|
|
137
|
+
}, o = k(null), u = () => {
|
|
138
|
+
var i;
|
|
139
|
+
(i = o.value) == null || i.showModal();
|
|
140
|
+
}, s = () => {
|
|
141
|
+
var i;
|
|
142
|
+
(i = o.value) == null || i.close();
|
|
143
143
|
};
|
|
144
|
-
return
|
|
144
|
+
return A(
|
|
145
145
|
() => c.forceOpen,
|
|
146
|
-
(
|
|
147
|
-
|
|
146
|
+
(i) => {
|
|
147
|
+
i == !0 && u(), i == !1 && s();
|
|
148
148
|
}
|
|
149
|
-
), (
|
|
150
|
-
c.forceOpen == null ? (
|
|
149
|
+
), (i, g) => (a(), r(j, null, [
|
|
150
|
+
c.forceOpen == null ? (a(), r("span", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: u
|
|
154
154
|
}, [
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
V(i.$slots, "trigger", { role: "button" }, () => [
|
|
156
|
+
g[0] || (g[0] = l("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
|
-
])) :
|
|
159
|
-
|
|
158
|
+
])) : T("", !0),
|
|
159
|
+
l("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
|
-
ref:
|
|
162
|
-
class:
|
|
161
|
+
ref: o,
|
|
162
|
+
class: M(["modal", t[c.position]])
|
|
163
163
|
}, [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
l("div", Me, [
|
|
165
|
+
V(i.$slots, "default"),
|
|
166
|
+
l("div", Ve, [
|
|
167
|
+
V(i.$slots, "actions"),
|
|
168
|
+
l("form", {
|
|
169
169
|
method: "dialog",
|
|
170
|
-
onSubmit:
|
|
171
|
-
class:
|
|
170
|
+
onSubmit: s,
|
|
171
|
+
class: M(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
V(i.$slots, "close-button", {}, () => [
|
|
174
|
+
g[1] || (g[1] = l("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
177
177
|
])
|
|
@@ -179,22 +179,22 @@ const lt = ["disabled"], at = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}),
|
|
182
|
+
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" }, Rl = /* @__PURE__ */ P({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
186
186
|
},
|
|
187
187
|
setup(e) {
|
|
188
188
|
const c = e;
|
|
189
|
-
return (
|
|
190
|
-
class:
|
|
189
|
+
return (t, o) => (a(), r("label", {
|
|
190
|
+
class: M(["swap", c.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
o[0] || (o[0] = l("input", { type: "checkbox" }, null, -1)),
|
|
193
|
+
l("div", Be, [
|
|
194
|
+
V(t.$slots, "on")
|
|
195
195
|
]),
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
l("div", De, [
|
|
197
|
+
V(t.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -205,14 +205,14 @@ const lt = ["disabled"], at = {
|
|
|
205
205
|
* This source code is licensed under the ISC license.
|
|
206
206
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
207
|
*/
|
|
208
|
-
const
|
|
208
|
+
const ze = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
209
209
|
/**
|
|
210
210
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
211
211
|
*
|
|
212
212
|
* This source code is licensed under the ISC license.
|
|
213
213
|
* See the LICENSE file in the root directory of this source tree.
|
|
214
214
|
*/
|
|
215
|
-
var
|
|
215
|
+
var Y = {
|
|
216
216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
217
217
|
width: 24,
|
|
218
218
|
height: 24,
|
|
@@ -229,18 +229,18 @@ var $e = {
|
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
231
|
*/
|
|
232
|
-
const
|
|
232
|
+
const Oe = ({ size: e, strokeWidth: c = 2, absoluteStrokeWidth: t, color: o, iconNode: u, name: s, class: i, ...g }, { slots: v }) => se(
|
|
233
233
|
"svg",
|
|
234
234
|
{
|
|
235
|
-
|
|
236
|
-
width: e ||
|
|
237
|
-
height: e ||
|
|
238
|
-
stroke:
|
|
239
|
-
"stroke-width":
|
|
240
|
-
class: ["lucide", `lucide-${
|
|
241
|
-
...
|
|
235
|
+
...Y,
|
|
236
|
+
width: e || Y.width,
|
|
237
|
+
height: e || Y.height,
|
|
238
|
+
stroke: o || Y.stroke,
|
|
239
|
+
"stroke-width": t ? Number(c) * 24 / Number(e) : c,
|
|
240
|
+
class: ["lucide", `lucide-${ze(s ?? "icon")}`],
|
|
241
|
+
...g
|
|
242
242
|
},
|
|
243
|
-
[...
|
|
243
|
+
[...u.map((p) => se(...p)), ...v.default ? [v.default()] : []]
|
|
244
244
|
);
|
|
245
245
|
/**
|
|
246
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -248,14 +248,14 @@ 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
|
|
252
|
-
|
|
251
|
+
const Q = (e, c) => (t, { slots: o }) => se(
|
|
252
|
+
Oe,
|
|
253
253
|
{
|
|
254
|
-
...
|
|
254
|
+
...t,
|
|
255
255
|
iconNode: c,
|
|
256
256
|
name: e
|
|
257
257
|
},
|
|
258
|
-
|
|
258
|
+
o
|
|
259
259
|
);
|
|
260
260
|
/**
|
|
261
261
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -263,8 +263,9 @@ const ye = (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
|
|
267
|
-
["
|
|
266
|
+
const Pe = Q("CircleChevronDownIcon", [
|
|
267
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
268
|
+
["path", { d: "m16 10-4 4-4-4", key: "894hmk" }]
|
|
268
269
|
]);
|
|
269
270
|
/**
|
|
270
271
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -272,7 +273,7 @@ const vt = ye("ChevronDownIcon", [
|
|
|
272
273
|
* This source code is licensed under the ISC license.
|
|
273
274
|
* See the LICENSE file in the root directory of this source tree.
|
|
274
275
|
*/
|
|
275
|
-
const
|
|
276
|
+
const je = Q("CircleXIcon", [
|
|
276
277
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
277
278
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
278
279
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -283,7 +284,7 @@ const ft = ye("CircleXIcon", [
|
|
|
283
284
|
* This source code is licensed under the ISC license.
|
|
284
285
|
* See the LICENSE file in the root directory of this source tree.
|
|
285
286
|
*/
|
|
286
|
-
const
|
|
287
|
+
const Le = Q("MoonIcon", [
|
|
287
288
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
288
289
|
]);
|
|
289
290
|
/**
|
|
@@ -292,7 +293,7 @@ const mt = ye("MoonIcon", [
|
|
|
292
293
|
* This source code is licensed under the ISC license.
|
|
293
294
|
* See the LICENSE file in the root directory of this source tree.
|
|
294
295
|
*/
|
|
295
|
-
const
|
|
296
|
+
const fe = Q("SearchIcon", [
|
|
296
297
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
297
298
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
298
299
|
]);
|
|
@@ -302,7 +303,7 @@ const Re = ye("SearchIcon", [
|
|
|
302
303
|
* This source code is licensed under the ISC license.
|
|
303
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
304
305
|
*/
|
|
305
|
-
const
|
|
306
|
+
const Ee = Q("SunIcon", [
|
|
306
307
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
307
308
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
308
309
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -312,100 +313,71 @@ const pt = ye("SunIcon", [
|
|
|
312
313
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
313
314
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
314
315
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
315
|
-
]),
|
|
316
|
-
const
|
|
317
|
-
return
|
|
316
|
+
]), Ae = (e, c) => {
|
|
317
|
+
const t = k(null);
|
|
318
|
+
return K(() => {
|
|
318
319
|
if (typeof window < "u") {
|
|
319
|
-
const
|
|
320
|
-
|
|
320
|
+
const o = window.localStorage.getItem(e);
|
|
321
|
+
t.value = o ? JSON.parse(o) : c;
|
|
321
322
|
}
|
|
322
|
-
}),
|
|
323
|
-
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(
|
|
324
|
-
}),
|
|
325
|
-
},
|
|
323
|
+
}), A(t, (o) => {
|
|
324
|
+
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(o));
|
|
325
|
+
}), t;
|
|
326
|
+
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"], Nl = /* @__PURE__ */ P({
|
|
326
327
|
__name: "theme-controller",
|
|
327
328
|
props: {
|
|
328
329
|
lightTheme: { default: "light" },
|
|
329
330
|
darkTheme: { default: "dark" }
|
|
330
331
|
},
|
|
331
332
|
setup(e) {
|
|
332
|
-
const c = e,
|
|
333
|
-
function
|
|
334
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
333
|
+
const c = e, t = Ae("theme", c.lightTheme);
|
|
334
|
+
function o(u) {
|
|
335
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", u);
|
|
335
336
|
}
|
|
336
|
-
return
|
|
337
|
-
|
|
338
|
-
}), (
|
|
339
|
-
|
|
337
|
+
return K(() => o(t.value ? t.value : "")), A(t, (u) => {
|
|
338
|
+
o(u);
|
|
339
|
+
}), (u, s) => (a(), r("label", Re, [
|
|
340
|
+
ee(l("input", {
|
|
340
341
|
type: "checkbox",
|
|
341
342
|
class: "theme-controller",
|
|
342
|
-
"onUpdate:modelValue":
|
|
343
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => pe(t) ? t.value = i : null),
|
|
343
344
|
"true-value": c.lightTheme,
|
|
344
345
|
"false-value": c.darkTheme
|
|
345
|
-
}, null, 8,
|
|
346
|
-
[
|
|
346
|
+
}, null, 8, Ne), [
|
|
347
|
+
[he, U(t)]
|
|
347
348
|
]),
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
G(U(Ee), { class: "swap-off fill-current" }),
|
|
350
|
+
G(U(Le), { class: "swap-on fill-current" })
|
|
350
351
|
]));
|
|
351
352
|
}
|
|
352
|
-
}),
|
|
353
|
-
key: 0,
|
|
354
|
-
class: "join join-vertical w-full"
|
|
355
|
-
}, wt = ["name"], xt = {
|
|
356
|
-
key: 1,
|
|
357
|
-
type: "checkbox"
|
|
358
|
-
}, kt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, $t = { class: "collapse-content" }, Ct = ["innerHTML"], St = ["name"], It = {
|
|
359
|
-
key: 1,
|
|
360
|
-
type: "checkbox"
|
|
361
|
-
}, Mt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, zt = { class: "collapse-content" }, Tt = ["innerHTML"], Ra = /* @__PURE__ */ j({
|
|
353
|
+
}), Fe = ["name"], Ue = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, _e = { class: "collapse-content" }, qe = ["innerHTML"], Fl = /* @__PURE__ */ P({
|
|
362
354
|
__name: "accordion",
|
|
363
355
|
props: {
|
|
364
356
|
name: {},
|
|
365
357
|
items: {},
|
|
366
358
|
joinItems: { type: Boolean, default: !1 },
|
|
367
|
-
icon: {}
|
|
368
|
-
toggle: { type: Boolean, default: !1 }
|
|
359
|
+
icon: {}
|
|
369
360
|
},
|
|
370
361
|
setup(e) {
|
|
371
362
|
const c = e;
|
|
372
|
-
return (
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
key: a
|
|
376
|
-
}, [
|
|
377
|
-
e.toggle ? (o(), i("input", xt)) : (o(), i("input", {
|
|
378
|
-
key: 0,
|
|
379
|
-
type: "radio",
|
|
380
|
-
name: e.name,
|
|
381
|
-
value: "true"
|
|
382
|
-
}, null, 8, wt)),
|
|
383
|
-
n("div", kt, T(r.title), 1),
|
|
384
|
-
n("div", $t, [
|
|
385
|
-
n("span", {
|
|
386
|
-
innerHTML: r.content
|
|
387
|
-
}, null, 8, Ct)
|
|
388
|
-
])
|
|
389
|
-
], 2))), 128))
|
|
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
|
|
363
|
+
return (t, o) => (a(!0), r(j, null, E(c.items, (u, s) => (a(), r("div", {
|
|
364
|
+
class: M(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
365
|
+
key: s
|
|
393
366
|
}, [
|
|
394
|
-
|
|
395
|
-
key: 0,
|
|
367
|
+
l("input", {
|
|
396
368
|
type: "radio",
|
|
397
369
|
name: e.name,
|
|
398
370
|
value: "true"
|
|
399
|
-
}, null, 8,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
innerHTML:
|
|
404
|
-
}, null, 8,
|
|
371
|
+
}, null, 8, Fe),
|
|
372
|
+
l("div", Ue, O(u.title), 1),
|
|
373
|
+
l("div", _e, [
|
|
374
|
+
l("span", {
|
|
375
|
+
innerHTML: u.content
|
|
376
|
+
}, null, 8, qe)
|
|
405
377
|
])
|
|
406
378
|
], 2))), 128));
|
|
407
379
|
}
|
|
408
|
-
}),
|
|
380
|
+
}), He = ["src"], We = { class: "text-xl" }, Ul = /* @__PURE__ */ P({
|
|
409
381
|
__name: "avatar",
|
|
410
382
|
props: {
|
|
411
383
|
image: {},
|
|
@@ -414,32 +386,32 @@ const pt = ye("SunIcon", [
|
|
|
414
386
|
fullyRounded: { type: Boolean, default: !1 }
|
|
415
387
|
},
|
|
416
388
|
setup(e) {
|
|
417
|
-
const c = e,
|
|
418
|
-
return
|
|
389
|
+
const c = e, t = k(c.onlineStatus);
|
|
390
|
+
return A(
|
|
419
391
|
() => c.onlineStatus,
|
|
420
|
-
(
|
|
421
|
-
|
|
392
|
+
(o) => {
|
|
393
|
+
o && (t.value = o);
|
|
422
394
|
}
|
|
423
|
-
), (
|
|
424
|
-
class:
|
|
395
|
+
), (o, u) => (a(), r("div", {
|
|
396
|
+
class: M(["avatar", [{ "avatar-online": t.value === "online" }, { "avatar-offline": t.value === "offline" }]])
|
|
425
397
|
}, [
|
|
426
|
-
e.image ? (
|
|
398
|
+
e.image ? (a(), r("div", {
|
|
427
399
|
key: 0,
|
|
428
|
-
class:
|
|
400
|
+
class: M(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
429
401
|
}, [
|
|
430
|
-
|
|
402
|
+
l("img", {
|
|
431
403
|
src: e.image,
|
|
432
404
|
class: "w-full h-full"
|
|
433
|
-
}, null, 8,
|
|
434
|
-
], 2)) : (
|
|
405
|
+
}, null, 8, He)
|
|
406
|
+
], 2)) : (a(), r("div", {
|
|
435
407
|
key: 1,
|
|
436
|
-
class:
|
|
408
|
+
class: M(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
437
409
|
}, [
|
|
438
|
-
|
|
410
|
+
l("p", We, O(e.initials), 1)
|
|
439
411
|
], 2))
|
|
440
412
|
], 2));
|
|
441
413
|
}
|
|
442
|
-
}),
|
|
414
|
+
}), _l = /* @__PURE__ */ P({
|
|
443
415
|
__name: "badge",
|
|
444
416
|
props: {
|
|
445
417
|
color: { default: "neutral" },
|
|
@@ -447,12 +419,12 @@ const pt = ye("SunIcon", [
|
|
|
447
419
|
size: { default: "medium" }
|
|
448
420
|
},
|
|
449
421
|
setup(e) {
|
|
450
|
-
const c = e,
|
|
422
|
+
const c = e, t = {
|
|
451
423
|
"extra small": "badge-xs",
|
|
452
424
|
small: "badge-sm",
|
|
453
425
|
medium: "badge-md",
|
|
454
426
|
large: "badge-lg"
|
|
455
|
-
},
|
|
427
|
+
}, o = {
|
|
456
428
|
neutral: "badge-neutral",
|
|
457
429
|
primary: "badge-primary",
|
|
458
430
|
secondary: "badge-secondary",
|
|
@@ -463,25 +435,25 @@ const pt = ye("SunIcon", [
|
|
|
463
435
|
warning: "badge-warning",
|
|
464
436
|
error: "badge-error"
|
|
465
437
|
};
|
|
466
|
-
return (
|
|
467
|
-
class:
|
|
438
|
+
return (u, s) => (a(), r("span", {
|
|
439
|
+
class: M(["badge", t[c.size], o[c.color], { "badge-outline": c.outline }])
|
|
468
440
|
}, [
|
|
469
|
-
|
|
441
|
+
V(u.$slots, "default")
|
|
470
442
|
], 2));
|
|
471
443
|
}
|
|
472
|
-
}),
|
|
444
|
+
}), Ke = ["src", "alt"], Xe = {
|
|
473
445
|
key: 0,
|
|
474
446
|
class: "card-body"
|
|
475
|
-
},
|
|
447
|
+
}, Ge = {
|
|
476
448
|
key: 0,
|
|
477
449
|
class: "group-hover:text-primary text-lg text-left cursor-pointer card-title"
|
|
478
|
-
},
|
|
450
|
+
}, Je = {
|
|
479
451
|
key: 1,
|
|
480
452
|
class: "text-left"
|
|
481
|
-
},
|
|
453
|
+
}, Ze = { class: "flex-col flex-nowrap mt-auto card-actions" }, Qe = {
|
|
482
454
|
key: 1,
|
|
483
455
|
class: "card-body"
|
|
484
|
-
},
|
|
456
|
+
}, ql = /* @__PURE__ */ P({
|
|
485
457
|
__name: "card",
|
|
486
458
|
props: {
|
|
487
459
|
imgUrl: { default: "" },
|
|
@@ -498,68 +470,64 @@ const pt = ye("SunIcon", [
|
|
|
498
470
|
horizontal: { type: Boolean, default: !1 }
|
|
499
471
|
},
|
|
500
472
|
setup(e) {
|
|
501
|
-
const c = e,
|
|
502
|
-
return
|
|
473
|
+
const c = e, t = k(c.outlined);
|
|
474
|
+
return A(
|
|
503
475
|
() => c.outlined,
|
|
504
|
-
(
|
|
505
|
-
|
|
476
|
+
(o) => {
|
|
477
|
+
t.value = o;
|
|
506
478
|
}
|
|
507
|
-
), (
|
|
508
|
-
class:
|
|
509
|
-
{ "border-4 border-primary":
|
|
479
|
+
), (o, u) => (a(), r("div", {
|
|
480
|
+
class: M(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
481
|
+
{ "border-4 border-primary": t.value },
|
|
510
482
|
e.color ?? "",
|
|
511
483
|
e.background,
|
|
512
484
|
{ "card-side": e.horizontal }
|
|
513
485
|
]])
|
|
514
486
|
}, [
|
|
515
|
-
|
|
516
|
-
class:
|
|
487
|
+
l("figure", {
|
|
488
|
+
class: M([{ "contents!": e.horizontal && e.imgWidth }])
|
|
517
489
|
}, [
|
|
518
|
-
e.imgUrl || e.imgUrl && !e.loading ? (
|
|
490
|
+
e.imgUrl || e.imgUrl && !e.loading ? (a(), r("img", {
|
|
519
491
|
key: 0,
|
|
520
492
|
src: e.imgUrl,
|
|
521
493
|
alt: e.alt,
|
|
522
|
-
class:
|
|
494
|
+
class: M(["rounded-sm object-cover", [
|
|
523
495
|
{
|
|
524
496
|
hidden: e.loading
|
|
525
497
|
},
|
|
526
498
|
!e.horizontal && e.imgHeight ? e.imgHeight : "h-full",
|
|
527
499
|
e.horizontal && e.imgWidth ? e.imgWidth : "w-full"
|
|
528
500
|
]])
|
|
529
|
-
}, null, 10,
|
|
530
|
-
e.loading && e.imgUrl ? (
|
|
501
|
+
}, null, 10, Ke)) : T("", !0),
|
|
502
|
+
e.loading && e.imgUrl ? (a(), r("div", {
|
|
531
503
|
key: 1,
|
|
532
|
-
class:
|
|
533
|
-
}, null, 2)) :
|
|
504
|
+
class: M(["w-full skeleton", e.imgHeight])
|
|
505
|
+
}, null, 2)) : T("", !0)
|
|
534
506
|
], 2),
|
|
535
|
-
e.loading ?
|
|
536
|
-
e.title ? (
|
|
537
|
-
|
|
538
|
-
e.description ? (
|
|
539
|
-
|
|
540
|
-
|
|
507
|
+
e.loading ? T("", !0) : (a(), r("div", Xe, [
|
|
508
|
+
e.title ? (a(), r("h2", Ge, O(e.title), 1)) : T("", !0),
|
|
509
|
+
V(o.$slots, "details"),
|
|
510
|
+
e.description ? (a(), r("p", Je, O(e.description), 1)) : T("", !0),
|
|
511
|
+
l("div", Ze, [
|
|
512
|
+
V(o.$slots, "actions")
|
|
541
513
|
])
|
|
542
514
|
])),
|
|
543
|
-
e.loading ? (
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
515
|
+
e.loading ? (a(), r("div", Qe, [...u[0] || (u[0] = [
|
|
516
|
+
l("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
517
|
+
l("div", { class: "w-28 h-4 skeleton" }),
|
|
518
|
+
l("div", { class: "w-full h-4 skeleton" }),
|
|
519
|
+
l("div", { class: "w-full h-4 skeleton" })
|
|
548
520
|
], -1)
|
|
549
|
-
])])) :
|
|
521
|
+
])])) : T("", !0)
|
|
550
522
|
], 2));
|
|
551
523
|
}
|
|
552
|
-
}),
|
|
524
|
+
}), ve = Symbol("CarouselItemStyle"), Ye = { class: "relative h-full" }, et = {
|
|
553
525
|
key: 0,
|
|
554
|
-
class: "flex-
|
|
555
|
-
},
|
|
556
|
-
key: 0,
|
|
557
|
-
class: "flex-shrink-0"
|
|
558
|
-
}, Nt = {
|
|
526
|
+
class: "top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"
|
|
527
|
+
}, tt = {
|
|
559
528
|
key: 1,
|
|
560
|
-
id: "carousel-indicators",
|
|
561
529
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
562
|
-
},
|
|
530
|
+
}, lt = ["onClick", "aria-label"], nt = /* @__PURE__ */ P({
|
|
563
531
|
__name: "carousel",
|
|
564
532
|
props: {
|
|
565
533
|
showIndicators: {
|
|
@@ -594,283 +562,138 @@ const pt = ye("SunIcon", [
|
|
|
594
562
|
type: Number,
|
|
595
563
|
default: 300,
|
|
596
564
|
validator: (e) => e >= 0
|
|
597
|
-
},
|
|
598
|
-
breakpoints: {
|
|
599
|
-
type: Object,
|
|
600
|
-
default: () => ({})
|
|
601
|
-
},
|
|
602
|
-
infinite: {
|
|
603
|
-
type: Boolean,
|
|
604
|
-
default: !1
|
|
605
|
-
},
|
|
606
|
-
autoplay: {
|
|
607
|
-
type: Boolean,
|
|
608
|
-
default: !1
|
|
609
|
-
},
|
|
610
|
-
autoplayInterval: {
|
|
611
|
-
type: Number,
|
|
612
|
-
default: 3e3,
|
|
613
|
-
// Default to 3 seconds
|
|
614
|
-
validator: (e) => e > 0
|
|
615
565
|
}
|
|
616
566
|
},
|
|
617
567
|
setup(e, { expose: c }) {
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}, w = () => {
|
|
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;
|
|
636
|
-
return k <= 0 ? 0 : (k - E) / b.value;
|
|
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;
|
|
640
|
-
return Math.max(0, F - k);
|
|
641
|
-
}), P = async (C, k = !1) => {
|
|
642
|
-
if (!r.value || b.value <= 0 || m.value || (D(), u.value === 0)) return;
|
|
643
|
-
const E = w();
|
|
644
|
-
if (E <= 0) return;
|
|
645
|
-
const F = E + I.value, J = _.value;
|
|
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));
|
|
648
|
-
const ae = K * F, G = l.infinite ? ae : Math.max(0, Math.min(ae, J));
|
|
649
|
-
if (k || l.slideDuration === 0) {
|
|
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();
|
|
568
|
+
const t = e, o = k(t.initialSlide), u = k(null), s = k(!1), i = k(0), g = _(() => ({
|
|
569
|
+
width: `calc((100% - ${t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0}px) / ${t.slidesPerView})`
|
|
570
|
+
}));
|
|
571
|
+
ge(ve, g);
|
|
572
|
+
const v = () => {
|
|
573
|
+
u.value ? i.value = u.value.children.length : i.value = 0;
|
|
574
|
+
}, p = async (w) => {
|
|
575
|
+
if (!u.value || t.slidesPerView <= 0 || s.value || (v(), i.value === 0)) return;
|
|
576
|
+
const x = (w % i.value + i.value) % i.value, C = u.value, B = t.sliderOrientation === "vertical" ? (C.offsetHeight - (t.slidesPerView - 1) * t.gap) / t.slidesPerView : (C.offsetWidth - (t.slidesPerView - 1) * t.gap) / t.slidesPerView;
|
|
577
|
+
if (B <= 0) return;
|
|
578
|
+
const L = B + t.gap, R = x * L, N = t.sliderOrientation === "vertical" ? C.scrollHeight - C.offsetHeight : C.scrollWidth - C.offsetWidth, m = Math.max(0, Math.min(R, N + 0.5));
|
|
579
|
+
s.value = !0, C.style.scrollBehavior = "auto";
|
|
580
|
+
const d = t.sliderOrientation === "vertical" ? C.scrollTop : C.scrollLeft, f = m - d;
|
|
581
|
+
if (Math.abs(f) < 1) {
|
|
582
|
+
s.value = !1, o.value = x;
|
|
651
583
|
return;
|
|
652
584
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
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);
|
|
585
|
+
const b = performance.now(), n = ($) => {
|
|
586
|
+
const h = $ - b, D = Math.min(1, h / t.slideDuration), F = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = d + f * F;
|
|
587
|
+
t.sliderOrientation === "vertical" ? C.scrollTop = q : C.scrollLeft = q, D < 1 ? requestAnimationFrame(n) : (t.sliderOrientation === "vertical" ? C.scrollTop = m : C.scrollLeft = m, o.value = x, s.value = !1);
|
|
658
588
|
};
|
|
659
|
-
|
|
660
|
-
},
|
|
661
|
-
|
|
662
|
-
},
|
|
663
|
-
|
|
664
|
-
},
|
|
665
|
-
|
|
666
|
-
},
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
if (!f.value) {
|
|
673
|
-
const ge = Math.abs(k.clientX - R.value), fe = Math.abs(k.clientY - V.value), ke = 5;
|
|
674
|
-
if (ge > ke || fe > ke)
|
|
675
|
-
if (l.sliderOrientation === "horizontal")
|
|
676
|
-
if (ge > fe)
|
|
677
|
-
f.value = "horizontal", S.value = !0;
|
|
678
|
-
else {
|
|
679
|
-
Y();
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
else if (fe > ge)
|
|
683
|
-
f.value = "vertical", S.value = !0;
|
|
684
|
-
else {
|
|
685
|
-
Y();
|
|
686
|
-
return;
|
|
687
|
-
}
|
|
688
|
-
else
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
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;
|
|
694
|
-
F > 0 && (O.value = G / F * 1e3);
|
|
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;
|
|
698
|
-
}, Y = () => {
|
|
699
|
-
document.removeEventListener("mousemove", L), document.removeEventListener("mouseup", ie), document.removeEventListener("touchmove", L), document.removeEventListener("touchend", ie);
|
|
700
|
-
}, ie = () => {
|
|
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) {
|
|
704
|
-
if (k < 0) {
|
|
705
|
-
P(u.value - 1);
|
|
706
|
-
return;
|
|
707
|
-
} else if (k > _.value) {
|
|
708
|
-
P(0);
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
} else if (k < 0) {
|
|
712
|
-
P(0);
|
|
713
|
-
return;
|
|
714
|
-
} else if (k > _.value) {
|
|
715
|
-
const G = Math.max(0, u.value - Math.floor(b.value));
|
|
716
|
-
P(G);
|
|
717
|
-
return;
|
|
718
|
-
}
|
|
719
|
-
const J = Math.max(0, u.value - Math.floor(b.value)), K = 100, ae = Math.round(E / F);
|
|
720
|
-
if (Math.abs(O.value) > K) {
|
|
721
|
-
const G = -Math.sign(O.value), se = ae + G;
|
|
722
|
-
P(Math.max(0, Math.min(J, se)));
|
|
723
|
-
} else
|
|
724
|
-
P(Math.max(0, Math.min(J, ae)));
|
|
725
|
-
}, ve = () => {
|
|
726
|
-
!l.autoplay || Z.value !== null || (Z.value = setInterval(() => {
|
|
727
|
-
Q();
|
|
728
|
-
}, l.autoplayInterval));
|
|
729
|
-
}, we = () => {
|
|
730
|
-
Z.value !== null && (clearInterval(Z.value), Z.value = null);
|
|
731
|
-
}, he = () => {
|
|
732
|
-
we(), setTimeout(() => {
|
|
733
|
-
ve();
|
|
734
|
-
}, 500);
|
|
735
|
-
}, xe = h(null), qe = (C) => {
|
|
736
|
-
if (!C || C.length === 0)
|
|
737
|
-
return;
|
|
738
|
-
const { width: k } = C[0].contentRect;
|
|
739
|
-
Math.abs(k - g.value) > 1 && (g.value = k);
|
|
740
|
-
}, Fe = () => {
|
|
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;
|
|
589
|
+
requestAnimationFrame(n);
|
|
590
|
+
}, S = () => {
|
|
591
|
+
p(o.value + 1);
|
|
592
|
+
}, I = () => {
|
|
593
|
+
p(o.value - 1);
|
|
594
|
+
}, z = (w) => {
|
|
595
|
+
p(w);
|
|
596
|
+
}, y = () => {
|
|
597
|
+
if (!u.value || t.slidesPerView <= 0 || (v(), i.value === 0)) return;
|
|
598
|
+
const w = u.value, x = t.sliderOrientation === "vertical" ? w.offsetHeight : w.offsetWidth, C = t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0, B = (x - C) / t.slidesPerView;
|
|
599
|
+
if (B <= 0) return;
|
|
600
|
+
const L = Math.max(0, i.value - t.slidesPerView), R = Math.min(Math.max(0, t.initialSlide), L), N = R * (B + t.gap), m = t.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth, d = Math.max(0, Math.min(N, m + 0.5));
|
|
601
|
+
t.sliderOrientation === "vertical" ? w.scrollTo({ top: d, behavior: "auto" }) : w.scrollTo({ left: d, behavior: "auto" }), o.value = R;
|
|
746
602
|
};
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
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], () => {
|
|
603
|
+
return K(() => {
|
|
604
|
+
requestAnimationFrame(() => {
|
|
605
|
+
requestAnimationFrame(y);
|
|
606
|
+
}), v();
|
|
607
|
+
}), A(() => t.initialSlide, (w) => {
|
|
608
|
+
requestAnimationFrame(() => p(w));
|
|
609
|
+
}), A(() => [t.slidesPerView, t.gap], () => {
|
|
762
610
|
requestAnimationFrame(() => {
|
|
763
611
|
requestAnimationFrame(() => {
|
|
764
|
-
if (
|
|
765
|
-
const
|
|
766
|
-
|
|
612
|
+
if (v(), i.value === 0) return;
|
|
613
|
+
const w = Math.max(0, i.value - t.slidesPerView), x = Math.min(o.value, w), C = t.slideDuration;
|
|
614
|
+
t.slideDuration = 0, p(x), t.slideDuration = C;
|
|
767
615
|
});
|
|
768
616
|
});
|
|
769
|
-
}), c({ scrollToSlide:
|
|
770
|
-
|
|
617
|
+
}), c({ scrollToSlide: p }), (w, x) => (a(), r("div", Ye, [
|
|
618
|
+
l("div", {
|
|
771
619
|
ref_key: "carouselContainer",
|
|
772
|
-
ref:
|
|
773
|
-
class:
|
|
774
|
-
style: {
|
|
620
|
+
ref: u,
|
|
621
|
+
class: M(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }]]),
|
|
622
|
+
style: Z({ gap: `${e.gap}px` })
|
|
775
623
|
}, [
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
624
|
+
V(w.$slots, "default", {}, void 0, !0)
|
|
625
|
+
], 6),
|
|
626
|
+
e.showNavigationButtons ? (a(), r("div", et, [
|
|
627
|
+
l("div", {
|
|
628
|
+
onClick: I,
|
|
629
|
+
role: "button",
|
|
630
|
+
"aria-label": "Previous Slide"
|
|
781
631
|
}, [
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
default: be(() => [
|
|
811
|
-
l.infinite || t.value < u.value - b.value ? (o(), i("div", At, [
|
|
812
|
-
n("div", {
|
|
813
|
-
onClick: Q,
|
|
814
|
-
role: "button",
|
|
815
|
-
"aria-label": "Next Slide"
|
|
816
|
-
}, [
|
|
817
|
-
B(C.$slots, "nextButton", {}, () => [
|
|
818
|
-
k[1] || (k[1] = n("button", {
|
|
819
|
-
class: "btn btn-circle text-xs",
|
|
820
|
-
tabindex: "-1"
|
|
821
|
-
}, "❯", -1))
|
|
822
|
-
], !0)
|
|
823
|
-
])
|
|
824
|
-
])) : z("", !0)
|
|
825
|
-
]),
|
|
826
|
-
_: 3
|
|
827
|
-
})
|
|
828
|
-
], 2)) : z("", !0),
|
|
829
|
-
e.showIndicators ? (o(), i("div", Nt, [
|
|
830
|
-
(o(!0), i(A, null, X(u.value, (E, F) => (o(), i("button", {
|
|
831
|
-
key: `dot-${F}`,
|
|
832
|
-
onClick: (J) => p(F),
|
|
833
|
-
class: $(["btn btn-circle btn-xs", { "btn-active": F === t.value }]),
|
|
834
|
-
"aria-label": `Go to slide ${F + 1}`
|
|
835
|
-
}, null, 10, qt))), 128))
|
|
836
|
-
])) : z("", !0)
|
|
632
|
+
V(w.$slots, "prevButton", {}, () => [
|
|
633
|
+
x[0] || (x[0] = l("button", {
|
|
634
|
+
class: "btn btn-circle",
|
|
635
|
+
tabindex: "-1"
|
|
636
|
+
}, "❮", -1))
|
|
637
|
+
], !0)
|
|
638
|
+
]),
|
|
639
|
+
l("div", {
|
|
640
|
+
onClick: S,
|
|
641
|
+
role: "button",
|
|
642
|
+
"aria-label": "Next Slide"
|
|
643
|
+
}, [
|
|
644
|
+
V(w.$slots, "nextButton", {}, () => [
|
|
645
|
+
x[1] || (x[1] = l("button", {
|
|
646
|
+
class: "btn btn-circle",
|
|
647
|
+
tabindex: "-1"
|
|
648
|
+
}, "❯", -1))
|
|
649
|
+
], !0)
|
|
650
|
+
])
|
|
651
|
+
])) : T("", !0),
|
|
652
|
+
e.showIndicators ? (a(), r("div", tt, [
|
|
653
|
+
(a(!0), r(j, null, E(i.value, (C, B) => (a(), r("button", {
|
|
654
|
+
key: `dot-${B}`,
|
|
655
|
+
onClick: (L) => z(B),
|
|
656
|
+
class: M(["btn btn-circle btn-xs", { "btn-active": B === o.value }]),
|
|
657
|
+
"aria-label": `Go to slide ${B + 1}`
|
|
658
|
+
}, null, 10, lt))), 128))
|
|
659
|
+
])) : T("", !0)
|
|
837
660
|
]));
|
|
838
661
|
}
|
|
839
|
-
}),
|
|
840
|
-
const
|
|
841
|
-
for (const [
|
|
842
|
-
|
|
843
|
-
return
|
|
844
|
-
},
|
|
662
|
+
}), J = (e, c) => {
|
|
663
|
+
const t = e.__vccOpts || e;
|
|
664
|
+
for (const [o, u] of c)
|
|
665
|
+
t[o] = u;
|
|
666
|
+
return t;
|
|
667
|
+
}, Hl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
|
|
845
668
|
__name: "carouselItem",
|
|
846
669
|
setup(e) {
|
|
847
|
-
const c =
|
|
848
|
-
return (
|
|
670
|
+
const c = be(ve, k({}));
|
|
671
|
+
return (t, o) => (a(), r("div", {
|
|
849
672
|
class: "w-full h-full carousel-item",
|
|
850
|
-
style:
|
|
673
|
+
style: Z(U(c))
|
|
851
674
|
}, [
|
|
852
|
-
|
|
675
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
853
676
|
], 4));
|
|
854
677
|
}
|
|
855
|
-
}),
|
|
678
|
+
}), Wl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
|
|
856
679
|
key: 0,
|
|
857
680
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
858
|
-
},
|
|
681
|
+
}, rt = {
|
|
859
682
|
key: 1,
|
|
860
683
|
class: "flex flex-col"
|
|
861
|
-
},
|
|
684
|
+
}, ut = { class: "text-sm" }, dt = {
|
|
862
685
|
key: 0,
|
|
863
686
|
class: "opacity-75 overflow-hidden text-xs truncate ..."
|
|
864
|
-
},
|
|
687
|
+
}, ct = {
|
|
865
688
|
key: 1,
|
|
866
689
|
class: "hidden md:block opacity-35 overflow-hidden text-xs truncate ..."
|
|
867
|
-
},
|
|
690
|
+
}, ft = { class: "hidden" }, mt = ["id"], vt = { class: "modal-box" }, pt = { class: "font-bold text-lg" }, ht = ["name", "checked"], gt = { class: "collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl" }, bt = {
|
|
868
691
|
key: 0,
|
|
869
692
|
class: "opacity-75 overflow-hidden text-sm truncate ..."
|
|
870
|
-
},
|
|
693
|
+
}, yt = {
|
|
871
694
|
key: 1,
|
|
872
695
|
class: "opacity-35 text-sm"
|
|
873
|
-
},
|
|
696
|
+
}, wt = { class: "collapse-content flex place-content-center p-0" }, xt = /* @__PURE__ */ P({
|
|
874
697
|
__name: "advancedSearch",
|
|
875
698
|
props: {
|
|
876
699
|
searchOptions: {},
|
|
@@ -880,120 +703,120 @@ const pt = ye("SunIcon", [
|
|
|
880
703
|
},
|
|
881
704
|
emits: ["search", "update:search-data"],
|
|
882
705
|
setup(e, { emit: c }) {
|
|
883
|
-
const
|
|
884
|
-
datetime:
|
|
885
|
-
"standard-select":
|
|
706
|
+
const t = e, o = c, u = t.id ?? `advancedSearch-${ye()}`, s = k(null), i = k(null), g = {
|
|
707
|
+
datetime: te(() => Promise.resolve().then(() => Pt)),
|
|
708
|
+
"standard-select": te(() => import("./select-Cz4vf_YE.js")),
|
|
886
709
|
// Add other components here when you create them:
|
|
887
710
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
888
711
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
889
|
-
"custom-text":
|
|
712
|
+
"custom-text": te(() => import("./inputField-BxT95oyM.js"))
|
|
890
713
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
891
|
-
},
|
|
714
|
+
}, v = k({}), p = k({
|
|
892
715
|
left: "0px",
|
|
893
716
|
top: "0px",
|
|
894
717
|
transform: "translateX(0%)"
|
|
895
|
-
}), S =
|
|
896
|
-
var
|
|
897
|
-
if (
|
|
718
|
+
}), S = k(null), I = (m) => {
|
|
719
|
+
var d;
|
|
720
|
+
if (m.value === void 0 || m.value === null || m.value === "")
|
|
898
721
|
return "";
|
|
899
|
-
switch (
|
|
722
|
+
switch (m.type) {
|
|
900
723
|
case "datetime":
|
|
901
|
-
if (typeof
|
|
724
|
+
if (typeof m.value == "string")
|
|
902
725
|
try {
|
|
903
|
-
const
|
|
904
|
-
if (!isNaN(
|
|
905
|
-
return
|
|
726
|
+
const f = new Date(m.value);
|
|
727
|
+
if (!isNaN(f.getTime()))
|
|
728
|
+
return f.toLocaleString();
|
|
906
729
|
} catch {
|
|
907
730
|
}
|
|
908
|
-
else if (
|
|
731
|
+
else if (m.range && typeof m.value == "object" && m.value !== null && "start" in m.value && "end" in m.value)
|
|
909
732
|
try {
|
|
910
|
-
const
|
|
911
|
-
if (!isNaN(
|
|
912
|
-
return `${
|
|
733
|
+
const f = new Date(m.value.start), b = new Date(m.value.end);
|
|
734
|
+
if (!isNaN(f.getTime()) && !isNaN(b.getTime()))
|
|
735
|
+
return `${f.toLocaleDateString()} - ${b.toLocaleDateString()}`;
|
|
913
736
|
} catch {
|
|
914
737
|
}
|
|
915
738
|
break;
|
|
916
739
|
case "custom-range":
|
|
917
|
-
if (typeof
|
|
918
|
-
return `${
|
|
740
|
+
if (typeof m.value == "object" && m.value !== null && "start" in m.value && "end" in m.value)
|
|
741
|
+
return `${m.value.start} - ${m.value.end}`;
|
|
919
742
|
break;
|
|
920
743
|
case "custom-number":
|
|
921
|
-
if (typeof
|
|
922
|
-
return
|
|
744
|
+
if (typeof m.value == "number")
|
|
745
|
+
return m.value.toString();
|
|
923
746
|
break;
|
|
924
747
|
case "standard-select":
|
|
925
748
|
case "custom-select":
|
|
926
|
-
if ((
|
|
927
|
-
const
|
|
928
|
-
(
|
|
749
|
+
if ((d = m.props) != null && d.options && Array.isArray(m.props.options)) {
|
|
750
|
+
const f = m.props.options.find(
|
|
751
|
+
(b) => b.value === m.value
|
|
929
752
|
);
|
|
930
|
-
if (
|
|
931
|
-
return
|
|
753
|
+
if (f)
|
|
754
|
+
return f.text;
|
|
932
755
|
}
|
|
933
|
-
return String(
|
|
756
|
+
return String(m.value);
|
|
934
757
|
case "custom-text":
|
|
935
|
-
if (typeof
|
|
936
|
-
return
|
|
758
|
+
if (typeof m.value == "string")
|
|
759
|
+
return m.value;
|
|
937
760
|
break;
|
|
938
761
|
}
|
|
939
|
-
return String(
|
|
762
|
+
return String(m.value);
|
|
940
763
|
};
|
|
941
|
-
function
|
|
942
|
-
var
|
|
943
|
-
const
|
|
944
|
-
if (!
|
|
764
|
+
function z(m) {
|
|
765
|
+
var n, $;
|
|
766
|
+
const d = (n = s.value) == null ? void 0 : n.name;
|
|
767
|
+
if (!d) {
|
|
945
768
|
console.warn("componentValueUpdated called but no active tab.");
|
|
946
769
|
return;
|
|
947
770
|
}
|
|
948
|
-
const
|
|
949
|
-
(
|
|
950
|
-
)) == null ? void 0 :
|
|
951
|
-
(
|
|
771
|
+
const f = ($ = t.searchOptions.find(
|
|
772
|
+
(h) => (h == null ? void 0 : h.category) === t.currentCategory
|
|
773
|
+
)) == null ? void 0 : $.tabs, b = f == null ? void 0 : f.find(
|
|
774
|
+
(h) => h.name === d
|
|
952
775
|
);
|
|
953
|
-
|
|
954
|
-
tab:
|
|
955
|
-
data:
|
|
776
|
+
b ? (b.value = m, o("update:search-data", {
|
|
777
|
+
tab: b.name,
|
|
778
|
+
data: m
|
|
956
779
|
})) : console.error(
|
|
957
|
-
`Tab with name "${
|
|
780
|
+
`Tab with name "${d}" not found in current category.`
|
|
958
781
|
);
|
|
959
782
|
}
|
|
960
|
-
function
|
|
961
|
-
|
|
783
|
+
function y(m) {
|
|
784
|
+
z(m);
|
|
962
785
|
}
|
|
963
|
-
function
|
|
964
|
-
|
|
786
|
+
function w() {
|
|
787
|
+
o("search");
|
|
965
788
|
}
|
|
966
|
-
async function
|
|
967
|
-
var
|
|
968
|
-
const
|
|
969
|
-
((
|
|
789
|
+
async function x(m) {
|
|
790
|
+
var b;
|
|
791
|
+
const d = document.getElementById(`advancedSearchMobile-${u}`), f = d && d.contains(m.target);
|
|
792
|
+
((b = s.value) == null ? void 0 : b.displayMode) === "popup" && S.value && !S.value.contains(m.target) && !f && (await le(), s.value = null);
|
|
970
793
|
}
|
|
971
|
-
async function
|
|
794
|
+
async function C() {
|
|
972
795
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
973
|
-
const
|
|
974
|
-
`advancedSearchMobile-${
|
|
796
|
+
const m = document.getElementById(
|
|
797
|
+
`advancedSearchMobile-${u}`
|
|
975
798
|
);
|
|
976
|
-
|
|
977
|
-
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${
|
|
799
|
+
m ? (s.value = null, m.showModal()) : console.warn(
|
|
800
|
+
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${u}".`
|
|
978
801
|
);
|
|
979
802
|
}
|
|
980
803
|
}
|
|
981
|
-
async function
|
|
982
|
-
var
|
|
804
|
+
async function B(m) {
|
|
805
|
+
var f, b, n;
|
|
983
806
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
984
|
-
|
|
807
|
+
C();
|
|
985
808
|
return;
|
|
986
809
|
}
|
|
987
|
-
const
|
|
988
|
-
if (((
|
|
989
|
-
|
|
990
|
-
else if (
|
|
991
|
-
const
|
|
992
|
-
if (
|
|
993
|
-
const
|
|
994
|
-
|
|
995
|
-
left: `${
|
|
996
|
-
top: `${
|
|
810
|
+
const d = m.displayMode ?? "popup";
|
|
811
|
+
if (((f = s.value) == null ? void 0 : f.name) === m.name && ((b = s.value) == null ? void 0 : b.displayMode) === d)
|
|
812
|
+
s.value = null;
|
|
813
|
+
else if (s.value = { ...m, displayMode: d }, await le(), ((n = s.value) == null ? void 0 : n.displayMode) === "popup") {
|
|
814
|
+
const $ = v.value[m.name];
|
|
815
|
+
if ($ && S.value) {
|
|
816
|
+
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), F = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
|
|
817
|
+
p.value = {
|
|
818
|
+
left: `${q}px`,
|
|
819
|
+
top: `${F + 8}px`,
|
|
997
820
|
// Add a small gap
|
|
998
821
|
transform: "translateX(-50%)"
|
|
999
822
|
// Center horizontally
|
|
@@ -1001,198 +824,195 @@ const pt = ye("SunIcon", [
|
|
|
1001
824
|
} else
|
|
1002
825
|
console.error(
|
|
1003
826
|
"Tab element or search container not found for positioning:",
|
|
1004
|
-
|
|
827
|
+
m.name
|
|
1005
828
|
);
|
|
1006
829
|
}
|
|
1007
830
|
}
|
|
1008
|
-
const
|
|
1009
|
-
const
|
|
831
|
+
const L = (m) => {
|
|
832
|
+
const d = m.relatedTarget;
|
|
1010
833
|
setTimeout(() => {
|
|
1011
|
-
var
|
|
1012
|
-
((
|
|
834
|
+
var f;
|
|
835
|
+
((f = s.value) == null ? void 0 : f.displayMode) === "inline" && S.value && (!d || !S.value.contains(d)) ? (console.log("Blur detected outside container, closing inline view."), s.value = null) : console.log(
|
|
1013
836
|
"Blur detected, but staying within container or not an inline tab."
|
|
1014
837
|
);
|
|
1015
838
|
}, 50);
|
|
1016
|
-
},
|
|
1017
|
-
console.log("Enter key pressed on inline component, closing inline view."),
|
|
839
|
+
}, R = () => {
|
|
840
|
+
console.log("Enter key pressed on inline component, closing inline view."), s.value = null;
|
|
1018
841
|
};
|
|
1019
|
-
|
|
1020
|
-
var
|
|
842
|
+
A(i, (m) => {
|
|
843
|
+
var d;
|
|
1021
844
|
console.log(
|
|
1022
845
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
1023
|
-
|
|
1024
|
-
), console.log("advanced-search: activeTab.value:",
|
|
846
|
+
m
|
|
847
|
+
), console.log("advanced-search: activeTab.value:", s.value), m && ((d = s.value) == null ? void 0 : d.displayMode) === "inline" ? (console.log(
|
|
1025
848
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
1026
|
-
),
|
|
849
|
+
), le(() => {
|
|
1027
850
|
console.log(
|
|
1028
851
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
1029
|
-
), console.log("advanced-search: Type of newValue:", typeof
|
|
852
|
+
), console.log("advanced-search: Type of newValue:", typeof m), console.log(
|
|
1030
853
|
"advanced-search: Does newValue have focusInput?",
|
|
1031
|
-
typeof
|
|
1032
|
-
),
|
|
854
|
+
typeof m.focusInput == "function"
|
|
855
|
+
), m && typeof m.focusInput == "function" ? (console.log(
|
|
1033
856
|
"advanced-search: Calling exposed focusInput() method on child instance."
|
|
1034
|
-
),
|
|
857
|
+
), m.focusInput()) : console.warn(
|
|
1035
858
|
'advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',
|
|
1036
|
-
|
|
859
|
+
m
|
|
1037
860
|
);
|
|
1038
861
|
})) : console.log(
|
|
1039
|
-
|
|
862
|
+
m ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
|
|
1040
863
|
);
|
|
1041
|
-
}),
|
|
1042
|
-
document.addEventListener("click",
|
|
1043
|
-
}),
|
|
1044
|
-
document.removeEventListener("click",
|
|
864
|
+
}), K(() => {
|
|
865
|
+
document.addEventListener("click", x), window.addEventListener("resize", N);
|
|
866
|
+
}), ie(() => {
|
|
867
|
+
document.removeEventListener("click", x), window.removeEventListener("resize", N);
|
|
1045
868
|
});
|
|
1046
|
-
const
|
|
1047
|
-
var
|
|
869
|
+
const N = () => {
|
|
870
|
+
var m, d;
|
|
1048
871
|
if (typeof window < "u") {
|
|
1049
|
-
const
|
|
1050
|
-
!
|
|
872
|
+
const f = window.innerWidth <= 768, b = s.value !== null && (s.value.displayMode === "popup" || s.value.displayMode === "inline") && window.innerWidth > 768;
|
|
873
|
+
!f && (((m = s.value) == null ? void 0 : m.displayMode) === "popup" || ((d = s.value) == null ? void 0 : d.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), s.value = null), f && !b && s.value !== null && (console.log(
|
|
1051
874
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
1052
|
-
),
|
|
1053
|
-
const
|
|
1054
|
-
`advancedSearchMobile-${
|
|
875
|
+
), s.value = null);
|
|
876
|
+
const n = document.getElementById(
|
|
877
|
+
`advancedSearchMobile-${u}`
|
|
1055
878
|
);
|
|
1056
|
-
|
|
879
|
+
n != null && n.open && !f && (console.log("Modal is open on desktop, closing modal and active tab."), n.close(), s.value = null);
|
|
1057
880
|
}
|
|
1058
881
|
};
|
|
1059
|
-
return (
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1062
|
-
|
|
882
|
+
return (m, d) => {
|
|
883
|
+
var f, b;
|
|
884
|
+
return a(), r(j, null, [
|
|
885
|
+
l("div", {
|
|
1063
886
|
ref_key: "searchContainer",
|
|
1064
887
|
ref: S,
|
|
1065
888
|
class: "w-full"
|
|
1066
889
|
}, [
|
|
1067
|
-
|
|
890
|
+
l("div", {
|
|
1068
891
|
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",
|
|
1069
|
-
onClick:
|
|
892
|
+
onClick: C
|
|
1070
893
|
}, [
|
|
1071
|
-
|
|
1072
|
-
(
|
|
1073
|
-
(
|
|
1074
|
-
)) == null ? void 0 :
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1077
|
-
key: `${
|
|
1078
|
-
onClick:
|
|
1079
|
-
class:
|
|
1080
|
-
"tab-active": ((
|
|
1081
|
-
"tab-active-inline": ((
|
|
894
|
+
l("div", ot, [
|
|
895
|
+
(a(!0), r(j, null, E(((f = t.searchOptions.find(
|
|
896
|
+
(n) => n.category === t.currentCategory
|
|
897
|
+
)) == null ? void 0 : f.tabs) || [], (n, $) => {
|
|
898
|
+
var h, D, F, q, de;
|
|
899
|
+
return a(), r("button", {
|
|
900
|
+
key: `${n.name}-${$}`,
|
|
901
|
+
onClick: H((X) => B(n), ["stop"]),
|
|
902
|
+
class: M([{
|
|
903
|
+
"tab-active": ((h = s.value) == null ? void 0 : h.name) === n.name,
|
|
904
|
+
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((F = s.value) == null ? void 0 : F.displayMode) === "inline"
|
|
1082
905
|
// Add new class
|
|
1083
906
|
}, "group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
|
|
1084
907
|
ref_for: !0,
|
|
1085
|
-
ref: (
|
|
908
|
+
ref: (X) => v.value[n.name] = X
|
|
1086
909
|
}, [
|
|
1087
|
-
((
|
|
1088
|
-
(
|
|
1089
|
-
modelValue:
|
|
1090
|
-
onUpdated:
|
|
1091
|
-
"onUpdate:modelValue":
|
|
1092
|
-
onBlur:
|
|
1093
|
-
onKeydown:
|
|
910
|
+
((q = s.value) == null ? void 0 : q.name) === n.name && ((de = s.value) == null ? void 0 : de.displayMode) === "inline" ? (a(), r("div", it, [
|
|
911
|
+
(a(), W(ne(g[s.value.type]), ae({ ref_for: !0 }, s.value.props || {}, {
|
|
912
|
+
modelValue: s.value.value,
|
|
913
|
+
onUpdated: d[0] || (d[0] = (X) => y(X)),
|
|
914
|
+
"onUpdate:modelValue": d[1] || (d[1] = (X) => y(X)),
|
|
915
|
+
onBlur: L,
|
|
916
|
+
onKeydown: re(H(R, ["stop", "prevent"]), ["enter"]),
|
|
1094
917
|
ref_for: !0,
|
|
1095
918
|
ref_key: "inlineComponentRef",
|
|
1096
|
-
ref:
|
|
919
|
+
ref: i
|
|
1097
920
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
1098
|
-
])) : (
|
|
1099
|
-
|
|
1100
|
-
|
|
921
|
+
])) : (a(), r("div", rt, [
|
|
922
|
+
l("p", ut, O(n.name), 1),
|
|
923
|
+
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("p", dt, O(I(n)), 1)) : (a(), r("p", ct, O(n.description), 1))
|
|
1101
924
|
]))
|
|
1102
|
-
], 10,
|
|
925
|
+
], 10, st);
|
|
1103
926
|
}), 128))
|
|
1104
927
|
]),
|
|
1105
|
-
|
|
928
|
+
s.value && s.value.displayMode === "popup" ? (a(), r("div", {
|
|
1106
929
|
key: 0,
|
|
1107
930
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
1108
|
-
style:
|
|
931
|
+
style: Z(p.value)
|
|
1109
932
|
}, [
|
|
1110
|
-
(
|
|
1111
|
-
modelValue:
|
|
1112
|
-
onUpdated:
|
|
1113
|
-
"onUpdate:modelValue":
|
|
933
|
+
(a(), W(ne(g[s.value.type]), ae(s.value.props || {}, {
|
|
934
|
+
modelValue: s.value.value,
|
|
935
|
+
onUpdated: d[2] || (d[2] = (n) => z(n)),
|
|
936
|
+
"onUpdate:modelValue": d[3] || (d[3] = (n) => z(n))
|
|
1114
937
|
}), null, 16, ["modelValue"]))
|
|
1115
|
-
], 4)) :
|
|
1116
|
-
|
|
938
|
+
], 4)) : T("", !0),
|
|
939
|
+
l("button", {
|
|
1117
940
|
title: "search",
|
|
1118
941
|
type: "submit",
|
|
1119
942
|
class: "ml-1 btn btn-primary btn-square",
|
|
1120
|
-
onClick:
|
|
943
|
+
onClick: H(w, ["stop"])
|
|
1121
944
|
}, [
|
|
1122
|
-
|
|
945
|
+
G(U(fe), {
|
|
1123
946
|
size: 24,
|
|
1124
947
|
color: "white"
|
|
1125
948
|
})
|
|
1126
949
|
])
|
|
1127
950
|
]),
|
|
1128
|
-
|
|
1129
|
-
|
|
951
|
+
l("div", ft, [
|
|
952
|
+
l("button", {
|
|
1130
953
|
title: "search",
|
|
1131
|
-
onClick:
|
|
954
|
+
onClick: d[4] || (d[4] = () => {
|
|
1132
955
|
})
|
|
1133
956
|
}, [
|
|
1134
|
-
|
|
957
|
+
G(U(fe), {
|
|
1135
958
|
size: 24,
|
|
1136
959
|
color: "white"
|
|
1137
960
|
})
|
|
1138
961
|
])
|
|
1139
962
|
])
|
|
1140
963
|
], 512),
|
|
1141
|
-
|
|
1142
|
-
id: `advancedSearchMobile-${
|
|
964
|
+
l("dialog", {
|
|
965
|
+
id: `advancedSearchMobile-${U(u)}`,
|
|
1143
966
|
class: "modal"
|
|
1144
967
|
}, [
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
968
|
+
l("div", vt, [
|
|
969
|
+
V(m.$slots, "additionalForMobile", {}, () => [
|
|
970
|
+
l("h3", pt, O(e.currentCategory), 1)
|
|
1148
971
|
], !0),
|
|
1149
|
-
(
|
|
1150
|
-
(
|
|
1151
|
-
)) == null ? void 0 :
|
|
972
|
+
(a(!0), r(j, null, E(((b = t.searchOptions.find(
|
|
973
|
+
(n) => n.category === t.currentCategory
|
|
974
|
+
)) == null ? void 0 : b.tabs) || [], (n, $) => (a(), r("div", {
|
|
1152
975
|
class: "collapse bg-base-200 my-4",
|
|
1153
|
-
key:
|
|
976
|
+
key: n.name
|
|
1154
977
|
}, [
|
|
1155
|
-
|
|
978
|
+
l("input", {
|
|
1156
979
|
type: "radio",
|
|
1157
|
-
name: `accordion-${
|
|
1158
|
-
checked:
|
|
1159
|
-
}, null, 8,
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
980
|
+
name: `accordion-${U(u)}`,
|
|
981
|
+
checked: $ === 0
|
|
982
|
+
}, null, 8, ht),
|
|
983
|
+
l("div", gt, [
|
|
984
|
+
l("div", null, O(n.name), 1),
|
|
985
|
+
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt, O(I(n)), 1)) : (a(), r("div", yt, O(n.description), 1))
|
|
1163
986
|
]),
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
(
|
|
1167
|
-
modelValue:
|
|
1168
|
-
onUpdated:
|
|
1169
|
-
"onUpdate:modelValue":
|
|
987
|
+
l("div", wt, [
|
|
988
|
+
d[7] || (d[7] = l("br", null, null, -1)),
|
|
989
|
+
(a(), W(ne(g[n.type]), ae({ ref_for: !0 }, n.props || {}, {
|
|
990
|
+
modelValue: n.value,
|
|
991
|
+
onUpdated: d[5] || (d[5] = (h) => z(h)),
|
|
992
|
+
"onUpdate:modelValue": d[6] || (d[6] = (h) => z(h))
|
|
1170
993
|
}), null, 16, ["modelValue"]))
|
|
1171
994
|
])
|
|
1172
995
|
]))), 128)),
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
996
|
+
l("div", { class: "modal-action" }, [
|
|
997
|
+
l("form", { method: "dialog" }, [
|
|
998
|
+
l("button", {
|
|
1176
999
|
class: "btn btn-primary",
|
|
1177
|
-
onClick:
|
|
1000
|
+
onClick: w
|
|
1178
1001
|
}, " Close and Search ")
|
|
1179
1002
|
])
|
|
1180
1003
|
])
|
|
1181
1004
|
])
|
|
1182
|
-
], 8,
|
|
1005
|
+
], 8, mt)
|
|
1183
1006
|
], 64);
|
|
1184
1007
|
};
|
|
1185
1008
|
}
|
|
1186
|
-
}),
|
|
1009
|
+
}), Kl = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-577c3624"]]), kt = { class: "z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm" }, $t = { key: 0 }, Ct = ["id"], St = {
|
|
1187
1010
|
key: 2,
|
|
1188
|
-
class: "
|
|
1189
|
-
},
|
|
1190
|
-
key: 3,
|
|
1191
|
-
class: "p-4 min-w-2xs"
|
|
1192
|
-
}, yl = ["id", "disabled", "value"], wl = {
|
|
1011
|
+
class: "join items-center gap-2 w-full justify-between py-2 px-4 max-md:input max-md:input-bordered rounded"
|
|
1012
|
+
}, It = { class: "join-item" }, Tt = ["id", "disabled"], Mt = { class: "join-item" }, Vt = ["id", "disabled"], Bt = ["id", "disabled"], Dt = {
|
|
1193
1013
|
key: 4,
|
|
1194
|
-
class: "flex
|
|
1195
|
-
},
|
|
1014
|
+
class: "flex mt-4"
|
|
1015
|
+
}, zt = /* @__PURE__ */ P({
|
|
1196
1016
|
__name: "datetimePicker",
|
|
1197
1017
|
props: {
|
|
1198
1018
|
mode: { default: "datetime" },
|
|
@@ -1202,334 +1022,294 @@ const pt = ye("SunIcon", [
|
|
|
1202
1022
|
id: { default: "date-time-picker" },
|
|
1203
1023
|
initialDate: { default: null },
|
|
1204
1024
|
disabled: { type: Boolean, default: !1 },
|
|
1205
|
-
locale: { default: "
|
|
1206
|
-
format: {},
|
|
1207
|
-
firstDayOfWeek: { default: 1 },
|
|
1025
|
+
locale: { default: "nl-NL" },
|
|
1208
1026
|
min: {},
|
|
1209
|
-
max: {}
|
|
1210
|
-
closeText: { default: "Close" },
|
|
1211
|
-
disableDefaultValue: { type: Boolean, default: !1 }
|
|
1027
|
+
max: {}
|
|
1212
1028
|
},
|
|
1213
1029
|
emits: ["update:modelValue", "change"],
|
|
1214
1030
|
setup(e, { emit: c }) {
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}), v = h({
|
|
1031
|
+
K(async () => {
|
|
1032
|
+
await import("./cally-ZU3K2Th7.js");
|
|
1033
|
+
});
|
|
1034
|
+
const t = e, o = c, u = k(null), s = k(!1), i = k(null), g = k(null), v = k(null), p = k(null), S = k(null), I = k({ from: "", to: "", single: "" }), z = k({
|
|
1220
1035
|
single: null,
|
|
1221
1036
|
start: null,
|
|
1222
1037
|
end: null
|
|
1223
|
-
}),
|
|
1224
|
-
const
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
p = t.range ? { start: L, end: L } : L;
|
|
1235
|
-
}
|
|
1236
|
-
if (!p) return;
|
|
1237
|
-
if (t.range && typeof p == "object" && "start" in p) {
|
|
1238
|
-
const L = O(p.start), Y = O(p.end);
|
|
1239
|
-
v.value.start = M(L), v.value.end = M(Y), t.mode !== "date" && (V.value.from = H(L), V.value.to = H(Y));
|
|
1240
|
-
return;
|
|
1241
|
-
}
|
|
1242
|
-
const x = O(p);
|
|
1243
|
-
v.value.single = M(x), t.mode !== "date" && (V.value.single = H(x));
|
|
1244
|
-
}, W = U(() => {
|
|
1245
|
-
const p = (x) => {
|
|
1246
|
-
if (!x) return "";
|
|
1247
|
-
try {
|
|
1248
|
-
return (/* @__PURE__ */ new Date(x + "T00:00:00")).toLocaleDateString(t.locale);
|
|
1249
|
-
} catch {
|
|
1250
|
-
return x;
|
|
1251
|
-
}
|
|
1038
|
+
}), y = _(() => {
|
|
1039
|
+
const d = (n) => {
|
|
1040
|
+
if (!n || n.includes(":")) return n;
|
|
1041
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(n))
|
|
1042
|
+
try {
|
|
1043
|
+
return new Date(n).toLocaleDateString(t.locale);
|
|
1044
|
+
} catch {
|
|
1045
|
+
const [$, h, D] = n.split("-");
|
|
1046
|
+
return `${D}/${h}/${$}`;
|
|
1047
|
+
}
|
|
1048
|
+
return n;
|
|
1252
1049
|
};
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
const
|
|
1259
|
-
|
|
1260
|
-
const [x, L] = p.split("/");
|
|
1261
|
-
v.value.start = x || null, v.value.end = L || null;
|
|
1262
|
-
}
|
|
1050
|
+
let f = "", b = "";
|
|
1051
|
+
if (t.mode !== "time" && (t.range && z.value.start && z.value.end ? f = `${z.value.start} - ${z.value.end}` : !t.range && z.value.single && (f = z.value.single)), t.mode !== "date" && (t.range && I.value.from && I.value.to ? b = `${I.value.from} - ${I.value.to}` : !t.range && I.value.single && (b = I.value.single)), t.mode === "date")
|
|
1052
|
+
return t.range ? f.split(" - ").map(d).join(" - ") : d(f);
|
|
1053
|
+
if (t.mode === "time") return b;
|
|
1054
|
+
if (t.range) {
|
|
1055
|
+
const [n, $] = f.split(" - ").map(d), [h, D] = b.split(" - ");
|
|
1056
|
+
return `${n} ${h} - ${$} ${D}`.trim();
|
|
1263
1057
|
}
|
|
1264
|
-
|
|
1058
|
+
return `${d(f)} ${b}`.trim();
|
|
1059
|
+
});
|
|
1060
|
+
console.log(y);
|
|
1061
|
+
const w = () => {
|
|
1265
1062
|
if (t.range) {
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1268
|
-
if (t.mode === "date")
|
|
1269
|
-
return { start:
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
return null;
|
|
1063
|
+
const { start: d, end: f } = z.value, { from: b, to: n } = I.value;
|
|
1064
|
+
let $ = null, h = null;
|
|
1065
|
+
if (t.mode === "time" && b && n ? ($ = b, h = n) : t.mode === "date" && d && f ? ($ = d, h = f) : t.mode === "datetime" && d && f && b && n && ($ = `${d}T${b}`, h = `${f}T${n}`), $ && h)
|
|
1066
|
+
return { start: $, end: h };
|
|
1067
|
+
} else {
|
|
1068
|
+
const d = z.value.single, f = I.value.single;
|
|
1069
|
+
if (t.mode === "date") return d;
|
|
1070
|
+
if (t.mode === "time") return f || null;
|
|
1071
|
+
if (t.mode === "datetime" && d && f)
|
|
1072
|
+
return `${d}T${f}`;
|
|
1278
1073
|
}
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
const p = f();
|
|
1287
|
-
r("update:modelValue", p), r("change", p);
|
|
1288
|
-
}, b = () => me(y), I = (p) => {
|
|
1289
|
-
const x = p.target;
|
|
1290
|
-
t.range ? x === S.value ? V.value.from = x.value : V.value.to = x.value : V.value.single = x.value, y();
|
|
1291
|
-
}, d = () => {
|
|
1292
|
-
s.value = !s.value;
|
|
1293
|
-
}, D = () => {
|
|
1294
|
-
y(), s.value = !1;
|
|
1295
|
-
}, w = (p) => {
|
|
1296
|
-
!t.popup || !s.value || setTimeout(() => {
|
|
1297
|
-
const x = a.value, L = p.target, Y = `date-picker-${t.id}-popup`;
|
|
1298
|
-
x && !x.contains(L) && !L.closest(`#${Y}`) && D();
|
|
1299
|
-
}, 0);
|
|
1300
|
-
}, _ = () => D(), P = () => {
|
|
1301
|
-
y(), t.popup && (s.value = !1);
|
|
1302
|
-
}, Q = () => {
|
|
1303
|
-
var x;
|
|
1304
|
-
const p = t.range ? u.value : m.value;
|
|
1305
|
-
(x = p == null ? void 0 : p.navigate) == null || x.call(p, -1);
|
|
1306
|
-
}, ue = () => {
|
|
1307
|
-
var x;
|
|
1308
|
-
const p = t.range ? u.value : m.value;
|
|
1309
|
-
(x = p == null ? void 0 : p.navigate) == null || x.call(p, 1);
|
|
1310
|
-
};
|
|
1311
|
-
return de(() => {
|
|
1312
|
-
l && import("./cally-ZU3K2Th7.js").catch((p) => console.warn("Failed to load cally:", p)), N();
|
|
1313
|
-
}), q(v, async () => {
|
|
1314
|
-
if (await me(), m.value && v.value.single) {
|
|
1315
|
-
const p = v.value.single;
|
|
1316
|
-
m.value.value !== p && (m.value.value = p);
|
|
1074
|
+
return null;
|
|
1075
|
+
}, x = () => {
|
|
1076
|
+
if (i.value)
|
|
1077
|
+
z.value.single = i.value.value || null;
|
|
1078
|
+
else if (g.value) {
|
|
1079
|
+
const d = g.value.value;
|
|
1080
|
+
z.value.start = (d == null ? void 0 : d.start) || null, z.value.end = (d == null ? void 0 : d.end) || null;
|
|
1317
1081
|
}
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1082
|
+
}, C = () => {
|
|
1083
|
+
x();
|
|
1084
|
+
const d = w();
|
|
1085
|
+
o("update:modelValue", d), o("change", d);
|
|
1086
|
+
}, B = () => {
|
|
1087
|
+
var d, f, b;
|
|
1088
|
+
t.range ? (I.value.from = ((d = p.value) == null ? void 0 : d.value) || "", I.value.to = ((f = S.value) == null ? void 0 : f.value) || "") : I.value.single = ((b = v.value) == null ? void 0 : b.value) || "", C();
|
|
1089
|
+
}, L = () => {
|
|
1090
|
+
s.value = !s.value, s.value && C();
|
|
1091
|
+
}, R = () => {
|
|
1092
|
+
s.value = !1, C();
|
|
1093
|
+
}, N = (d) => {
|
|
1094
|
+
if (!t.popup || !s.value) return;
|
|
1095
|
+
const f = u.value, b = d.target;
|
|
1096
|
+
f && !f.contains(b) && R();
|
|
1097
|
+
}, m = () => {
|
|
1098
|
+
const d = (f) => f instanceof Date ? f.toISOString() : f;
|
|
1099
|
+
if (t.initialDate) {
|
|
1100
|
+
if (t.range && typeof t.initialDate == "object" && "start" in t.initialDate) {
|
|
1101
|
+
const f = d(t.initialDate.start), b = d(t.initialDate.end);
|
|
1102
|
+
if (z.value.start = f.split("T")[0], z.value.end = b.split("T")[0], t.mode !== "date") {
|
|
1103
|
+
const n = new Date(f), $ = new Date(b), h = (D) => `${String(D.getUTCHours()).padStart(2, "0")}:${String(D.getUTCMinutes()).padStart(2, "0")}`;
|
|
1104
|
+
I.value.from = h(n), I.value.to = h($), p.value && (p.value.value = I.value.from), S.value && (S.value.value = I.value.to);
|
|
1105
|
+
}
|
|
1106
|
+
} else if (typeof t.initialDate == "string" || t.initialDate instanceof Date) {
|
|
1107
|
+
const f = d(t.initialDate);
|
|
1108
|
+
if (z.value.single = f.split("T")[0], t.mode !== "date") {
|
|
1109
|
+
const b = new Date(f), n = `${String(b.getUTCHours()).padStart(2, "0")}:${String(b.getUTCMinutes()).padStart(2, "0")}`;
|
|
1110
|
+
I.value.single = n, v.value && (v.value.value = n);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1321
1113
|
}
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
}),
|
|
1326
|
-
const
|
|
1327
|
-
return
|
|
1114
|
+
};
|
|
1115
|
+
return K(() => {
|
|
1116
|
+
m(), C();
|
|
1117
|
+
}), (d, f) => {
|
|
1118
|
+
const b = oe("calendar-month"), n = oe("calendar-date"), $ = oe("calendar-range");
|
|
1119
|
+
return a(), r("div", {
|
|
1328
1120
|
class: "inline-block relative w-fit lg:w-full",
|
|
1329
1121
|
ref_key: "pickerContainer",
|
|
1330
|
-
ref:
|
|
1331
|
-
onMousedownCapture:
|
|
1122
|
+
ref: u,
|
|
1123
|
+
onMousedownCapture: N
|
|
1332
1124
|
}, [
|
|
1333
|
-
t.popup ? (
|
|
1125
|
+
t.popup ? (a(), r("div", {
|
|
1334
1126
|
key: 0,
|
|
1335
1127
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1336
|
-
onClick:
|
|
1128
|
+
onClick: f[0] || (f[0] = (h) => t.disabled ? null : L())
|
|
1337
1129
|
}, [
|
|
1338
|
-
|
|
1339
|
-
|
|
1130
|
+
l("div", kt, [
|
|
1131
|
+
y.value ? T("", !0) : (a(), r("span", $t, O(e.placeholder), 1)),
|
|
1132
|
+
ue(" " + O(y.value), 1)
|
|
1340
1133
|
])
|
|
1341
|
-
])) :
|
|
1342
|
-
s.value || !t.popup ? (
|
|
1134
|
+
])) : T("", !0),
|
|
1135
|
+
s.value || !t.popup ? (a(), r("div", {
|
|
1343
1136
|
key: 1,
|
|
1344
|
-
class:
|
|
1345
|
-
id: `date-picker-${t.id}-popup
|
|
1346
|
-
onKeydown: [
|
|
1347
|
-
x[1] || (x[1] = pe(ne(() => {
|
|
1348
|
-
}, ["prevent", "stop"]), ["tab"])),
|
|
1349
|
-
pe(_, ["esc"]),
|
|
1350
|
-
pe(ne(P, ["prevent"]), ["enter"])
|
|
1351
|
-
]
|
|
1137
|
+
class: M(["z-50 bg-base-100 rounded-md w-full", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
|
|
1138
|
+
id: `date-picker-${t.id}-popup`
|
|
1352
1139
|
}, [
|
|
1353
|
-
!t.range && t.mode !== "time"
|
|
1140
|
+
!t.range && t.mode !== "time" ? (a(), W(n, {
|
|
1354
1141
|
key: 0,
|
|
1355
1142
|
class: "cally w-full",
|
|
1356
1143
|
ref_key: "datePicker",
|
|
1357
|
-
ref:
|
|
1144
|
+
ref: i,
|
|
1358
1145
|
id: `${t.id}-date`,
|
|
1359
1146
|
min: t.min,
|
|
1360
1147
|
max: t.max,
|
|
1361
1148
|
disabled: t.disabled,
|
|
1362
|
-
|
|
1363
|
-
onChange: b
|
|
1149
|
+
onChange: C
|
|
1364
1150
|
}, {
|
|
1365
|
-
default:
|
|
1366
|
-
|
|
1151
|
+
default: ce(() => [
|
|
1152
|
+
f[1] || (f[1] = l("button", {
|
|
1367
1153
|
slot: "previous",
|
|
1368
|
-
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
n("svg", {
|
|
1154
|
+
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1155
|
+
}, [
|
|
1156
|
+
l("svg", {
|
|
1372
1157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1373
1158
|
class: "w-4 h-4",
|
|
1374
1159
|
fill: "none",
|
|
1375
1160
|
viewBox: "0 0 24 24",
|
|
1376
1161
|
stroke: "currentColor"
|
|
1377
1162
|
}, [
|
|
1378
|
-
|
|
1163
|
+
l("path", {
|
|
1379
1164
|
"stroke-linecap": "round",
|
|
1380
1165
|
"stroke-linejoin": "round",
|
|
1381
1166
|
"stroke-width": "2",
|
|
1382
1167
|
d: "M15 19l-7-7 7-7"
|
|
1383
1168
|
})
|
|
1384
|
-
]
|
|
1385
|
-
])
|
|
1386
|
-
|
|
1169
|
+
])
|
|
1170
|
+
], -1)),
|
|
1171
|
+
f[2] || (f[2] = l("button", {
|
|
1387
1172
|
slot: "next",
|
|
1388
|
-
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
n("svg", {
|
|
1173
|
+
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1174
|
+
}, [
|
|
1175
|
+
l("svg", {
|
|
1392
1176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1393
1177
|
class: "w-4 h-4",
|
|
1394
1178
|
fill: "none",
|
|
1395
|
-
viewBox: "0 24 24",
|
|
1179
|
+
viewBox: "0 0 24 24",
|
|
1396
1180
|
stroke: "currentColor"
|
|
1397
1181
|
}, [
|
|
1398
|
-
|
|
1182
|
+
l("path", {
|
|
1399
1183
|
"stroke-linecap": "round",
|
|
1400
1184
|
"stroke-linejoin": "round",
|
|
1401
1185
|
"stroke-width": "2",
|
|
1402
1186
|
d: "M9 5l7 7-7 7"
|
|
1403
1187
|
})
|
|
1404
|
-
]
|
|
1405
|
-
])
|
|
1406
|
-
|
|
1188
|
+
])
|
|
1189
|
+
], -1)),
|
|
1190
|
+
G(b, {
|
|
1407
1191
|
locale: t.locale
|
|
1408
1192
|
}, null, 8, ["locale"])
|
|
1409
1193
|
]),
|
|
1410
1194
|
_: 1
|
|
1411
|
-
}, 8, ["id", "min", "max", "disabled"
|
|
1412
|
-
t.range && t.mode !== "time"
|
|
1195
|
+
}, 8, ["id", "min", "max", "disabled"])) : T("", !0),
|
|
1196
|
+
t.range && t.mode !== "time" ? (a(), W($, {
|
|
1413
1197
|
key: 1,
|
|
1414
1198
|
class: "cally w-full",
|
|
1415
1199
|
ref_key: "rangeDatePicker",
|
|
1416
|
-
ref:
|
|
1200
|
+
ref: g,
|
|
1417
1201
|
id: `${t.id}-date-range`,
|
|
1418
1202
|
min: t.min,
|
|
1419
1203
|
max: t.max,
|
|
1420
1204
|
disabled: t.disabled,
|
|
1421
|
-
|
|
1422
|
-
onChange: b
|
|
1205
|
+
onChange: C
|
|
1423
1206
|
}, {
|
|
1424
|
-
default:
|
|
1425
|
-
|
|
1207
|
+
default: ce(() => [
|
|
1208
|
+
f[3] || (f[3] = l("button", {
|
|
1426
1209
|
slot: "previous",
|
|
1427
|
-
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
n("svg", {
|
|
1210
|
+
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1211
|
+
}, [
|
|
1212
|
+
l("svg", {
|
|
1431
1213
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1432
1214
|
class: "w-4 h-4",
|
|
1433
1215
|
fill: "none",
|
|
1434
1216
|
viewBox: "0 0 24 24",
|
|
1435
1217
|
stroke: "currentColor"
|
|
1436
1218
|
}, [
|
|
1437
|
-
|
|
1219
|
+
l("path", {
|
|
1438
1220
|
"stroke-linecap": "round",
|
|
1439
1221
|
"stroke-linejoin": "round",
|
|
1440
1222
|
"stroke-width": "2",
|
|
1441
1223
|
d: "M15 19l-7-7 7-7"
|
|
1442
1224
|
})
|
|
1443
|
-
]
|
|
1444
|
-
])
|
|
1445
|
-
|
|
1225
|
+
])
|
|
1226
|
+
], -1)),
|
|
1227
|
+
f[4] || (f[4] = l("button", {
|
|
1446
1228
|
slot: "next",
|
|
1447
|
-
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
n("svg", {
|
|
1229
|
+
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1230
|
+
}, [
|
|
1231
|
+
l("svg", {
|
|
1451
1232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1452
1233
|
class: "w-4 h-4",
|
|
1453
1234
|
fill: "none",
|
|
1454
|
-
viewBox: "0 24 24",
|
|
1235
|
+
viewBox: "0 0 24 24",
|
|
1455
1236
|
stroke: "currentColor"
|
|
1456
1237
|
}, [
|
|
1457
|
-
|
|
1238
|
+
l("path", {
|
|
1458
1239
|
"stroke-linecap": "round",
|
|
1459
1240
|
"stroke-linejoin": "round",
|
|
1460
1241
|
"stroke-width": "2",
|
|
1461
1242
|
d: "M9 5l7 7-7 7"
|
|
1462
1243
|
})
|
|
1463
|
-
]
|
|
1464
|
-
])
|
|
1465
|
-
|
|
1244
|
+
])
|
|
1245
|
+
], -1)),
|
|
1246
|
+
G(b, {
|
|
1466
1247
|
locale: t.locale
|
|
1467
1248
|
}, null, 8, ["locale"])
|
|
1468
1249
|
]),
|
|
1469
1250
|
_: 1
|
|
1470
|
-
}, 8, ["id", "min", "max", "disabled"
|
|
1471
|
-
t.range && t.mode !== "date" ? (
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1251
|
+
}, 8, ["id", "min", "max", "disabled"])) : T("", !0),
|
|
1252
|
+
t.range && t.mode !== "date" ? (a(), r("div", St, [
|
|
1253
|
+
l("div", It, [
|
|
1254
|
+
l("input", {
|
|
1255
|
+
class: "max-md:max-w-xs 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",
|
|
1256
|
+
type: "time",
|
|
1257
|
+
ref_key: "timeFromInput",
|
|
1258
|
+
ref: p,
|
|
1259
|
+
id: `${t.id}-time-from`,
|
|
1260
|
+
placeholder: "van",
|
|
1261
|
+
onChange: B,
|
|
1262
|
+
disabled: t.disabled
|
|
1263
|
+
}, null, 40, Tt)
|
|
1264
|
+
]),
|
|
1265
|
+
f[5] || (f[5] = l("svg", {
|
|
1266
|
+
class: "join-item",
|
|
1267
|
+
viewBox: "0 0 1024 1024",
|
|
1268
|
+
focusable: "false",
|
|
1269
|
+
"data-icon": "swap-right",
|
|
1270
|
+
width: "1em",
|
|
1271
|
+
height: "1em",
|
|
1272
|
+
fill: "currentColor",
|
|
1273
|
+
"aria-hidden": "true"
|
|
1274
|
+
}, [
|
|
1275
|
+
l("path", { d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" })
|
|
1276
|
+
], -1)),
|
|
1277
|
+
l("div", Mt, [
|
|
1278
|
+
l("input", {
|
|
1279
|
+
class: "hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1280
|
+
type: "time",
|
|
1281
|
+
ref_key: "timeToInput",
|
|
1282
|
+
ref: S,
|
|
1283
|
+
id: `${t.id}-time-to`,
|
|
1284
|
+
onChange: B,
|
|
1285
|
+
disabled: t.disabled
|
|
1286
|
+
}, null, 40, Vt)
|
|
1505
1287
|
])
|
|
1506
|
-
])) :
|
|
1507
|
-
!t.range && t.mode !== "date" ? (
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
])) : z("", !0)
|
|
1525
|
-
], 42, dl)) : z("", !0)
|
|
1288
|
+
])) : T("", !0),
|
|
1289
|
+
!t.range && t.mode !== "date" ? (a(), r("input", {
|
|
1290
|
+
key: 3,
|
|
1291
|
+
class: "open:bg-primary open:rounded w-full input input-bordered my-2 justify-center",
|
|
1292
|
+
type: "time",
|
|
1293
|
+
ref_key: "timeInput",
|
|
1294
|
+
ref: v,
|
|
1295
|
+
id: `${t.id}-time`,
|
|
1296
|
+
onChange: B,
|
|
1297
|
+
disabled: t.disabled
|
|
1298
|
+
}, null, 40, Bt)) : T("", !0),
|
|
1299
|
+
t.popup ? (a(), r("div", Dt, [
|
|
1300
|
+
l("button", {
|
|
1301
|
+
class: "btn btn-primary",
|
|
1302
|
+
onClick: R
|
|
1303
|
+
}, " Close ")
|
|
1304
|
+
])) : T("", !0)
|
|
1305
|
+
], 10, Ct)) : T("", !0)
|
|
1526
1306
|
], 544);
|
|
1527
1307
|
};
|
|
1528
1308
|
}
|
|
1529
|
-
}),
|
|
1309
|
+
}), Ot = /* @__PURE__ */ J(zt, [["__scopeId", "data-v-74efd8bb"]]), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1530
1310
|
__proto__: null,
|
|
1531
|
-
default:
|
|
1532
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1311
|
+
default: Ot
|
|
1312
|
+
}, Symbol.toStringTag, { value: "Module" })), jt = ["value", "checked", "onChange", "disabled"], Xl = /* @__PURE__ */ P({
|
|
1533
1313
|
__name: "rating",
|
|
1534
1314
|
props: {
|
|
1535
1315
|
initialRating: { default: 0 },
|
|
@@ -1542,34 +1322,34 @@ const pt = ye("SunIcon", [
|
|
|
1542
1322
|
gap: { default: 0 }
|
|
1543
1323
|
},
|
|
1544
1324
|
setup(e) {
|
|
1545
|
-
const c = e,
|
|
1546
|
-
|
|
1325
|
+
const c = e, t = k(c.initialRating);
|
|
1326
|
+
A(
|
|
1547
1327
|
() => c.initialRating,
|
|
1548
|
-
(
|
|
1549
|
-
|
|
1328
|
+
(u) => {
|
|
1329
|
+
t.value = u;
|
|
1550
1330
|
}
|
|
1551
1331
|
);
|
|
1552
|
-
const
|
|
1553
|
-
|
|
1332
|
+
const o = (u) => {
|
|
1333
|
+
t.value = u;
|
|
1554
1334
|
};
|
|
1555
|
-
return (
|
|
1556
|
-
class:
|
|
1335
|
+
return (u, s) => (a(), r("div", {
|
|
1336
|
+
class: M(["rating", [
|
|
1557
1337
|
`rating-${c.size}`,
|
|
1558
1338
|
{ "rating-half": e.halfStars },
|
|
1559
1339
|
{ "pointer-events-none": !e.isInteractive }
|
|
1560
1340
|
]])
|
|
1561
1341
|
}, [
|
|
1562
|
-
(
|
|
1563
|
-
key:
|
|
1342
|
+
(a(!0), r(j, null, E(e.numberOfStars * (e.halfStars ? 2 : 1), (i) => (a(), r("input", {
|
|
1343
|
+
key: i,
|
|
1564
1344
|
type: "radio",
|
|
1565
|
-
value: e.halfStars ?
|
|
1566
|
-
checked:
|
|
1567
|
-
onChange: (
|
|
1568
|
-
class:
|
|
1345
|
+
value: e.halfStars ? i * 0.5 : i,
|
|
1346
|
+
checked: t.value === (e.halfStars ? i * 0.5 : i),
|
|
1347
|
+
onChange: (g) => e.isInteractive ? o(e.halfStars ? i * 0.5 : i) : null,
|
|
1348
|
+
class: M(["mask", [
|
|
1569
1349
|
{
|
|
1570
1350
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1571
|
-
"mask-half-1": e.halfStars &&
|
|
1572
|
-
"mask-half-2": e.halfStars &&
|
|
1351
|
+
"mask-half-1": e.halfStars && i % 2 !== 0,
|
|
1352
|
+
"mask-half-2": e.halfStars && i % 2 === 0,
|
|
1573
1353
|
"cursor-pointer": e.isInteractive,
|
|
1574
1354
|
"cursor-default": !e.isInteractive,
|
|
1575
1355
|
"mask-star": e.shape === "star",
|
|
@@ -1586,16 +1366,16 @@ const pt = ye("SunIcon", [
|
|
|
1586
1366
|
"mask-triangle-3": e.shape === "triangle-left",
|
|
1587
1367
|
"mask-triangle-4": e.shape === "triangle-right"
|
|
1588
1368
|
},
|
|
1589
|
-
|
|
1369
|
+
t.value >= (e.halfStars ? i * 0.5 : i) ? c.color : ""
|
|
1590
1370
|
]]),
|
|
1591
|
-
style:
|
|
1592
|
-
marginRight: e.halfStars &&
|
|
1371
|
+
style: Z({
|
|
1372
|
+
marginRight: e.halfStars && i % 2 === 0 ? `${c.gap}px` : e.halfStars ? "0" : `${c.gap}px`
|
|
1593
1373
|
}),
|
|
1594
1374
|
disabled: !e.isInteractive
|
|
1595
|
-
}, null, 46,
|
|
1375
|
+
}, null, 46, jt))), 128))
|
|
1596
1376
|
], 2));
|
|
1597
1377
|
}
|
|
1598
|
-
}),
|
|
1378
|
+
}), Lt = { class: "badge" }, Et = ["onClick"], At = { class: "opacity-75" }, Rt = ["placeholder"], Gl = /* @__PURE__ */ P({
|
|
1599
1379
|
__name: "taginput",
|
|
1600
1380
|
props: {
|
|
1601
1381
|
modelValue: {},
|
|
@@ -1605,60 +1385,60 @@ const pt = ye("SunIcon", [
|
|
|
1605
1385
|
},
|
|
1606
1386
|
emits: ["update:modelValue"],
|
|
1607
1387
|
setup(e, { emit: c }) {
|
|
1608
|
-
const
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1611
|
-
}, S = (
|
|
1612
|
-
|
|
1613
|
-
},
|
|
1614
|
-
|
|
1615
|
-
},
|
|
1616
|
-
|
|
1388
|
+
const t = e, o = c, u = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v = _(() => s < 0 || u.value.length < s), p = () => {
|
|
1389
|
+
const y = g.value.trim();
|
|
1390
|
+
y && !u.value.includes(y) && (u.value.push(y), o("update:modelValue", u.value), g.value = "");
|
|
1391
|
+
}, S = (y) => {
|
|
1392
|
+
u.value = u.value.filter((w) => w !== y), o("update:modelValue", u.value);
|
|
1393
|
+
}, I = () => {
|
|
1394
|
+
g.value === "" && (u.value.pop(), o("update:modelValue", u.value));
|
|
1395
|
+
}, z = (y) => {
|
|
1396
|
+
y.key === "Enter" ? p() : y.key === "Backspace" && g.value === "" && I();
|
|
1617
1397
|
};
|
|
1618
|
-
return
|
|
1619
|
-
|
|
1620
|
-
}), (
|
|
1621
|
-
class:
|
|
1398
|
+
return A(() => t.modelValue, (y) => {
|
|
1399
|
+
u.value = [...y];
|
|
1400
|
+
}), (y, w) => (a(), r("div", {
|
|
1401
|
+
class: M(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", y.$props.class])
|
|
1622
1402
|
}, [
|
|
1623
|
-
(
|
|
1624
|
-
key:
|
|
1625
|
-
tag:
|
|
1403
|
+
(a(!0), r(j, null, E(u.value, (x) => V(y.$slots, "tag", {
|
|
1404
|
+
key: x,
|
|
1405
|
+
tag: x
|
|
1626
1406
|
}, () => [
|
|
1627
|
-
|
|
1628
|
-
|
|
1407
|
+
l("div", Lt, [
|
|
1408
|
+
l("button", {
|
|
1629
1409
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1630
|
-
onClick: (
|
|
1410
|
+
onClick: (C) => S(x),
|
|
1631
1411
|
"aria-label": "Remove tag"
|
|
1632
|
-
}, "X", 8,
|
|
1633
|
-
|
|
1412
|
+
}, "X", 8, Et),
|
|
1413
|
+
l("span", At, O(x), 1)
|
|
1634
1414
|
])
|
|
1635
1415
|
])), 128)),
|
|
1636
|
-
|
|
1637
|
-
|
|
1416
|
+
V(y.$slots, "input", { showInput: v.value }, () => [
|
|
1417
|
+
v.value ? ee((a(), r("input", {
|
|
1638
1418
|
key: 0,
|
|
1639
1419
|
ref_key: "inputRef",
|
|
1640
|
-
ref:
|
|
1641
|
-
"onUpdate:modelValue":
|
|
1420
|
+
ref: i,
|
|
1421
|
+
"onUpdate:modelValue": w[0] || (w[0] = (x) => g.value = x),
|
|
1642
1422
|
type: "text",
|
|
1643
1423
|
placeholder: e.placeholder || "Type here",
|
|
1644
1424
|
class: "h-full input input-ghost",
|
|
1645
|
-
onKeydown:
|
|
1425
|
+
onKeydown: z,
|
|
1646
1426
|
"aria-label": "Add tags"
|
|
1647
|
-
}, null, 40,
|
|
1648
|
-
[
|
|
1649
|
-
]) :
|
|
1427
|
+
}, null, 40, Rt)), [
|
|
1428
|
+
[me, g.value]
|
|
1429
|
+
]) : T("", !0)
|
|
1650
1430
|
])
|
|
1651
1431
|
], 2));
|
|
1652
1432
|
}
|
|
1653
|
-
}),
|
|
1433
|
+
}), Nt = { class: "w-full max-w-xs form-control" }, Ft = {
|
|
1654
1434
|
key: 0,
|
|
1655
1435
|
class: "label"
|
|
1656
|
-
},
|
|
1436
|
+
}, Ut = { class: "label-text" }, _t = ["value"], qt = {
|
|
1657
1437
|
key: 0,
|
|
1658
1438
|
value: "",
|
|
1659
1439
|
disabled: "",
|
|
1660
1440
|
selected: ""
|
|
1661
|
-
},
|
|
1441
|
+
}, Ht = ["value"], Jl = /* @__PURE__ */ P({
|
|
1662
1442
|
__name: "select",
|
|
1663
1443
|
props: {
|
|
1664
1444
|
options: {},
|
|
@@ -1667,45 +1447,45 @@ const pt = ye("SunIcon", [
|
|
|
1667
1447
|
modelValue: {}
|
|
1668
1448
|
},
|
|
1669
1449
|
emits: ["update:modelValue"],
|
|
1670
|
-
setup(e, { expose: c, emit:
|
|
1450
|
+
setup(e, { expose: c, emit: t }) {
|
|
1671
1451
|
console.log(e.placeholder);
|
|
1672
|
-
const
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1452
|
+
const u = t, s = k(null), i = (v) => {
|
|
1453
|
+
const p = v.target;
|
|
1454
|
+
u("update:modelValue", p.value);
|
|
1675
1455
|
};
|
|
1676
1456
|
return c({
|
|
1677
1457
|
focusInput: () => {
|
|
1678
|
-
var
|
|
1679
|
-
console.log("select.vue: focusInput method called."), (
|
|
1458
|
+
var v;
|
|
1459
|
+
console.log("select.vue: focusInput method called."), (v = s.value) == null || v.focus();
|
|
1680
1460
|
}
|
|
1681
1461
|
// You can expose other properties or methods here if needed by the parent
|
|
1682
1462
|
// e.g., the current value: modelValue
|
|
1683
|
-
}), (
|
|
1684
|
-
e.label ? (
|
|
1685
|
-
|
|
1686
|
-
])) :
|
|
1687
|
-
|
|
1463
|
+
}), (v, p) => (a(), r("div", Nt, [
|
|
1464
|
+
e.label ? (a(), r("label", Ft, [
|
|
1465
|
+
l("span", Ut, O(e.label), 1)
|
|
1466
|
+
])) : T("", !0),
|
|
1467
|
+
l("select", {
|
|
1688
1468
|
ref_key: "selectElement",
|
|
1689
|
-
ref:
|
|
1469
|
+
ref: s,
|
|
1690
1470
|
class: "rounded-md w-full select-bordered select",
|
|
1691
1471
|
value: e.modelValue,
|
|
1692
|
-
onChange:
|
|
1472
|
+
onChange: i
|
|
1693
1473
|
}, [
|
|
1694
|
-
e.placeholder ? (
|
|
1695
|
-
(
|
|
1474
|
+
e.placeholder ? (a(), r("option", qt, O(e.placeholder), 1)) : T("", !0),
|
|
1475
|
+
(a(!0), r(j, null, E(e.options, (S) => (a(), r("option", {
|
|
1696
1476
|
key: S.value,
|
|
1697
1477
|
value: S.value
|
|
1698
|
-
},
|
|
1699
|
-
], 40,
|
|
1478
|
+
}, O(S.text), 9, Ht))), 128))
|
|
1479
|
+
], 40, _t)
|
|
1700
1480
|
]));
|
|
1701
1481
|
}
|
|
1702
|
-
}),
|
|
1482
|
+
}), Wt = {
|
|
1703
1483
|
key: 0,
|
|
1704
1484
|
class: "label"
|
|
1705
|
-
},
|
|
1485
|
+
}, Kt = { class: "label-text" }, Xt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Gt = ["placeholder", "disabled"], Jt = {
|
|
1706
1486
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1707
1487
|
role: "listbox"
|
|
1708
|
-
},
|
|
1488
|
+
}, Zt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Qt = ["onMousedown", "id", "aria-selected"], Zl = {
|
|
1709
1489
|
__name: "filterableSelect",
|
|
1710
1490
|
props: {
|
|
1711
1491
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1735,193 +1515,195 @@ const pt = ye("SunIcon", [
|
|
|
1735
1515
|
}
|
|
1736
1516
|
},
|
|
1737
1517
|
emits: ["update:modelValue", "select", "clear"],
|
|
1738
|
-
setup(e, { expose: c, emit:
|
|
1739
|
-
const
|
|
1740
|
-
const
|
|
1741
|
-
return console.log("hasDefaultSlotContent computed:",
|
|
1742
|
-
}),
|
|
1743
|
-
|
|
1744
|
-
},
|
|
1745
|
-
|
|
1746
|
-
},
|
|
1747
|
-
|
|
1748
|
-
},
|
|
1749
|
-
const
|
|
1750
|
-
return
|
|
1751
|
-
(
|
|
1518
|
+
setup(e, { expose: c, emit: t }) {
|
|
1519
|
+
const o = e, u = t, s = we(), i = _(() => {
|
|
1520
|
+
const $ = (s.default ? s.default() : []).filter((h) => h.type !== xe);
|
|
1521
|
+
return console.log("hasDefaultSlotContent computed:", $.length > 0), $.length > 0;
|
|
1522
|
+
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null), z = k(null), y = k(null), w = () => {
|
|
1523
|
+
p.value = !o.disabled;
|
|
1524
|
+
}, x = () => {
|
|
1525
|
+
p.value = !1, y.value = null, i.value || (v.value && g.value !== v.value.text ? g.value = v.value.text : v.value || (g.value = ""));
|
|
1526
|
+
}, C = () => {
|
|
1527
|
+
p.value ? x() : w();
|
|
1528
|
+
}, B = _(() => {
|
|
1529
|
+
const n = g.value ? g.value.toLowerCase() : "";
|
|
1530
|
+
return n === "" && !p.value ? [] : o.options.filter(
|
|
1531
|
+
(h) => h && h.text ? h.text.toLowerCase().includes(n) : ""
|
|
1752
1532
|
);
|
|
1753
1533
|
});
|
|
1754
|
-
|
|
1755
|
-
() =>
|
|
1756
|
-
(
|
|
1757
|
-
if (
|
|
1758
|
-
|
|
1534
|
+
A(
|
|
1535
|
+
() => o.modelValue,
|
|
1536
|
+
(n, $) => {
|
|
1537
|
+
if (n !== $ && x(), n == null)
|
|
1538
|
+
v.value = null, !p.value && !i.value && (g.value = "");
|
|
1759
1539
|
else {
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1540
|
+
const h = o.options.find((D) => D.value === n);
|
|
1541
|
+
h ? (v.value = h, !p.value && !i.value && (g.value = h.text)) : (v.value = null, !p.value && !i.value && (g.value = ""));
|
|
1762
1542
|
}
|
|
1763
1543
|
},
|
|
1764
1544
|
{ immediate: !0 }
|
|
1765
1545
|
// Run immediately on component mount
|
|
1766
1546
|
);
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
},
|
|
1547
|
+
const L = (n) => {
|
|
1548
|
+
I.value && !I.value.contains(n.target) && x();
|
|
1549
|
+
}, R = () => {
|
|
1770
1550
|
setTimeout(() => {
|
|
1771
|
-
|
|
1551
|
+
I.value && !I.value.contains(document.activeElement) && x();
|
|
1772
1552
|
}, 100);
|
|
1773
1553
|
};
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
document.addEventListener("click",
|
|
1777
|
-
}, 0) : document.removeEventListener("click",
|
|
1778
|
-
}),
|
|
1779
|
-
document.removeEventListener("click",
|
|
1554
|
+
A(p, (n) => {
|
|
1555
|
+
n ? setTimeout(() => {
|
|
1556
|
+
document.addEventListener("click", L);
|
|
1557
|
+
}, 0) : document.removeEventListener("click", L);
|
|
1558
|
+
}), ie(() => {
|
|
1559
|
+
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1780
1560
|
});
|
|
1781
|
-
const
|
|
1782
|
-
if (
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1785
|
-
},
|
|
1786
|
-
|
|
1787
|
-
},
|
|
1788
|
-
|
|
1789
|
-
},
|
|
1790
|
-
|
|
1791
|
-
},
|
|
1792
|
-
if (!
|
|
1793
|
-
const
|
|
1794
|
-
(
|
|
1561
|
+
const N = () => {
|
|
1562
|
+
if (o.disabled) return;
|
|
1563
|
+
const n = v.value;
|
|
1564
|
+
u("update:modelValue", null), n && u("clear", n);
|
|
1565
|
+
}, m = (n) => {
|
|
1566
|
+
v.value = n, i.value || (g.value = n.text), u("update:modelValue", n.value), u("select", n), x();
|
|
1567
|
+
}, d = () => {
|
|
1568
|
+
B.value.length > 0 && m(B.value[0]);
|
|
1569
|
+
}, f = () => {
|
|
1570
|
+
p.value || w();
|
|
1571
|
+
}, b = (n) => {
|
|
1572
|
+
if (!p.value || B.value.length === 0) return;
|
|
1573
|
+
const $ = B.value.findIndex(
|
|
1574
|
+
(D, F) => "option-" + F === y.value
|
|
1795
1575
|
);
|
|
1796
|
-
let
|
|
1797
|
-
if (
|
|
1798
|
-
|
|
1799
|
-
else if (
|
|
1800
|
-
|
|
1801
|
-
else if (
|
|
1802
|
-
|
|
1803
|
-
const
|
|
1804
|
-
(
|
|
1576
|
+
let h = -1;
|
|
1577
|
+
if (n.key === "ArrowDown")
|
|
1578
|
+
n.preventDefault(), h = ($ + 1) % B.value.length;
|
|
1579
|
+
else if (n.key === "ArrowUp")
|
|
1580
|
+
n.preventDefault(), h = ($ - 1 + B.value.length) % B.value.length;
|
|
1581
|
+
else if (n.key === "Enter" && y.value) {
|
|
1582
|
+
n.preventDefault();
|
|
1583
|
+
const D = B.value.find(
|
|
1584
|
+
(F, q) => "option-" + q === y.value
|
|
1805
1585
|
);
|
|
1806
|
-
|
|
1586
|
+
D && m(D);
|
|
1807
1587
|
return;
|
|
1808
|
-
} else if (
|
|
1809
|
-
|
|
1588
|
+
} else if (n.key === "Escape") {
|
|
1589
|
+
n.preventDefault(), x(), z.value && z.value.focus();
|
|
1810
1590
|
return;
|
|
1811
|
-
} else if (
|
|
1591
|
+
} else if (i.value)
|
|
1812
1592
|
return;
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1817
|
-
|
|
1593
|
+
if (h !== -1) {
|
|
1594
|
+
y.value = "option-" + h;
|
|
1595
|
+
const D = document.getElementById(y.value);
|
|
1596
|
+
D && requestAnimationFrame(() => {
|
|
1597
|
+
D.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
1818
1598
|
});
|
|
1819
1599
|
}
|
|
1820
1600
|
};
|
|
1821
|
-
return
|
|
1822
|
-
|
|
1823
|
-
}),
|
|
1824
|
-
document.removeEventListener("click",
|
|
1601
|
+
return A(p, (n) => {
|
|
1602
|
+
n ? (window.addEventListener("keydown", b), !i.value && !g.value && v.value && (g.value = v.value.text)) : window.removeEventListener("keydown", b);
|
|
1603
|
+
}), ie(() => {
|
|
1604
|
+
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1825
1605
|
}), c({
|
|
1826
|
-
isDropdownOpen:
|
|
1606
|
+
isDropdownOpen: p,
|
|
1827
1607
|
// Expose state
|
|
1828
|
-
selectedItem:
|
|
1608
|
+
selectedItem: v,
|
|
1829
1609
|
// Expose selected item
|
|
1830
|
-
openDropdown:
|
|
1610
|
+
openDropdown: w,
|
|
1831
1611
|
// Expose method to open
|
|
1832
|
-
closeDropdown:
|
|
1612
|
+
closeDropdown: x,
|
|
1833
1613
|
// Expose method to close
|
|
1834
|
-
toggleDropdown:
|
|
1614
|
+
toggleDropdown: C,
|
|
1835
1615
|
// Expose method to toggle
|
|
1836
|
-
selectItem:
|
|
1616
|
+
selectItem: m,
|
|
1837
1617
|
// Expose method to select an item programmatically
|
|
1838
|
-
filterText:
|
|
1618
|
+
filterText: g,
|
|
1839
1619
|
// Expose filter text (useful if parent controls filtering)
|
|
1840
|
-
hasDefaultSlotContent:
|
|
1620
|
+
hasDefaultSlotContent: i
|
|
1841
1621
|
// Expose to know if the default slot is used
|
|
1842
|
-
}), (
|
|
1622
|
+
}), (n, $) => (a(), r("div", {
|
|
1843
1623
|
class: "relative w-full max-w-xs form-control",
|
|
1844
1624
|
ref_key: "componentRoot",
|
|
1845
|
-
ref:
|
|
1625
|
+
ref: I
|
|
1846
1626
|
}, [
|
|
1847
|
-
e.label ? (
|
|
1848
|
-
|
|
1849
|
-
])) :
|
|
1850
|
-
|
|
1851
|
-
class:
|
|
1852
|
-
style:
|
|
1853
|
-
|
|
1854
|
-
|
|
1627
|
+
e.label ? (a(), r("label", Wt, [
|
|
1628
|
+
l("span", Kt, O(e.label), 1)
|
|
1629
|
+
])) : T("", !0),
|
|
1630
|
+
l("div", {
|
|
1631
|
+
class: M(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !i.value, select: !i.value }]),
|
|
1632
|
+
style: Z(
|
|
1633
|
+
v.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1634
|
+
),
|
|
1635
|
+
tabindex: "0",
|
|
1636
|
+
onClick: $[1] || ($[1] = (h) => i.value ? C() : w()),
|
|
1855
1637
|
onKeydown: [
|
|
1856
|
-
|
|
1857
|
-
|
|
1638
|
+
re(H(d, ["prevent"]), ["enter"]),
|
|
1639
|
+
re(H(d, ["prevent"]), ["space"])
|
|
1858
1640
|
],
|
|
1859
|
-
onBlur:
|
|
1641
|
+
onBlur: R,
|
|
1860
1642
|
role: "combobox",
|
|
1861
1643
|
"aria-haspopup": "listbox",
|
|
1862
|
-
"aria-expanded":
|
|
1863
|
-
"aria-activedescendant":
|
|
1644
|
+
"aria-expanded": p.value,
|
|
1645
|
+
"aria-activedescendant": y.value,
|
|
1864
1646
|
"aria-autocomplete": "list",
|
|
1865
1647
|
ref_key: "activatorWrapper",
|
|
1866
|
-
ref:
|
|
1648
|
+
ref: z
|
|
1867
1649
|
}, [
|
|
1868
|
-
|
|
1869
|
-
|
|
1650
|
+
V(n.$slots, "default", {}, () => [
|
|
1651
|
+
i.value ? T("", !0) : ee((a(), r("input", {
|
|
1870
1652
|
key: 0,
|
|
1871
1653
|
type: "text",
|
|
1872
1654
|
placeholder: e.placeholder,
|
|
1873
1655
|
class: "bg-transparent border-none focus:outline-none w-full",
|
|
1874
|
-
"onUpdate:modelValue":
|
|
1656
|
+
"onUpdate:modelValue": $[0] || ($[0] = (h) => g.value = h),
|
|
1875
1657
|
ref_key: "filterInput",
|
|
1876
1658
|
ref: S,
|
|
1877
|
-
onFocus:
|
|
1878
|
-
onInput:
|
|
1659
|
+
onFocus: w,
|
|
1660
|
+
onInput: f,
|
|
1879
1661
|
tabindex: "-1",
|
|
1880
|
-
disabled:
|
|
1881
|
-
}, null, 40,
|
|
1882
|
-
[
|
|
1662
|
+
disabled: o.disabled
|
|
1663
|
+
}, null, 40, Gt)), [
|
|
1664
|
+
[me, g.value]
|
|
1883
1665
|
])
|
|
1884
1666
|
]),
|
|
1885
|
-
|
|
1667
|
+
v.value && !e.disabled ? (a(), W(U(je), {
|
|
1886
1668
|
key: 0,
|
|
1887
1669
|
size: 20,
|
|
1888
1670
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1889
|
-
onClick:
|
|
1890
|
-
})) :
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
}, null, 8, ["class"])
|
|
1896
|
-
],
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
(
|
|
1900
|
-
key:
|
|
1901
|
-
onMousedown:
|
|
1671
|
+
onClick: H(N, ["stop"])
|
|
1672
|
+
})) : T("", !0),
|
|
1673
|
+
i.value && !v.value ? (a(), W(U(Pe), {
|
|
1674
|
+
key: 1,
|
|
1675
|
+
class: M([{ "rotate-180": p.value }, "mx-2"]),
|
|
1676
|
+
size: 20
|
|
1677
|
+
}, null, 8, ["class"])) : T("", !0)
|
|
1678
|
+
], 46, Xt),
|
|
1679
|
+
ee(l("div", Jt, [
|
|
1680
|
+
l("ul", Zt, [
|
|
1681
|
+
(a(!0), r(j, null, E(B.value, (h, D) => (a(), r("li", {
|
|
1682
|
+
key: h.value,
|
|
1683
|
+
onMousedown: H((F) => m(h), ["prevent"]),
|
|
1902
1684
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1903
|
-
id: "option-" +
|
|
1685
|
+
id: "option-" + D,
|
|
1904
1686
|
role: "option",
|
|
1905
|
-
"aria-selected":
|
|
1687
|
+
"aria-selected": v.value && v.value.value === h.value
|
|
1906
1688
|
}, [
|
|
1907
|
-
|
|
1908
|
-
], 40,
|
|
1689
|
+
l("a", null, O(h.text), 1)
|
|
1690
|
+
], 40, Qt))), 128))
|
|
1909
1691
|
])
|
|
1910
1692
|
], 512), [
|
|
1911
|
-
[
|
|
1693
|
+
[ke, p.value && B.value.length > 0]
|
|
1912
1694
|
])
|
|
1913
1695
|
], 512));
|
|
1914
1696
|
}
|
|
1915
|
-
},
|
|
1697
|
+
}, Yt = { class: "w-full max-w-xs form-control" }, el = {
|
|
1916
1698
|
key: 0,
|
|
1917
1699
|
class: "label"
|
|
1918
|
-
},
|
|
1700
|
+
}, tl = { class: "label-text" }, ll = ["type", "placeholder", "disabled", "value"], nl = {
|
|
1919
1701
|
key: 1,
|
|
1920
1702
|
class: "label"
|
|
1921
|
-
},
|
|
1703
|
+
}, al = { class: "label-text-alt text-error validator-hint" }, ol = {
|
|
1922
1704
|
key: 2,
|
|
1923
1705
|
class: "label"
|
|
1924
|
-
},
|
|
1706
|
+
}, sl = { class: "label-text-alt text-success validator-hint" }, Ql = /* @__PURE__ */ P({
|
|
1925
1707
|
__name: "inputField",
|
|
1926
1708
|
props: {
|
|
1927
1709
|
modelValue: { default: "" },
|
|
@@ -1937,43 +1719,43 @@ const pt = ye("SunIcon", [
|
|
|
1937
1719
|
disabled: { type: Boolean, default: !1 }
|
|
1938
1720
|
},
|
|
1939
1721
|
emits: ["update:modelValue", "validate"],
|
|
1940
|
-
setup(e, { expose: c, emit:
|
|
1941
|
-
const
|
|
1942
|
-
var
|
|
1943
|
-
let
|
|
1944
|
-
const
|
|
1945
|
-
return (
|
|
1946
|
-
}),
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
},
|
|
1950
|
-
|
|
1722
|
+
setup(e, { expose: c, emit: t }) {
|
|
1723
|
+
const o = e, u = t, s = k(null), i = k(!1), g = k(""), v = _(() => {
|
|
1724
|
+
var C, B, L, R;
|
|
1725
|
+
let y = !0, w = "";
|
|
1726
|
+
const x = o.modelValue;
|
|
1727
|
+
return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w, u("validate", y), y;
|
|
1728
|
+
}), p = _(() => i.value && !v.value), S = (y) => {
|
|
1729
|
+
const w = y.target;
|
|
1730
|
+
u("update:modelValue", w.value), i.value && v.value;
|
|
1731
|
+
}, I = () => {
|
|
1732
|
+
i.value = !0, v.value;
|
|
1951
1733
|
};
|
|
1952
|
-
return
|
|
1953
|
-
() =>
|
|
1734
|
+
return A(
|
|
1735
|
+
() => o.modelValue,
|
|
1954
1736
|
() => {
|
|
1955
|
-
|
|
1737
|
+
i.value && v.value;
|
|
1956
1738
|
}
|
|
1957
1739
|
), c({
|
|
1958
1740
|
focusInput: () => {
|
|
1959
|
-
var
|
|
1960
|
-
console.log("inputField.vue: focusInput method called."), (
|
|
1741
|
+
var y;
|
|
1742
|
+
console.log("inputField.vue: focusInput method called."), (y = s.value) == null || y.focus();
|
|
1961
1743
|
},
|
|
1962
|
-
isValid:
|
|
1963
|
-
isTouched:
|
|
1964
|
-
errorMessage:
|
|
1965
|
-
}), (
|
|
1966
|
-
e.label ? (
|
|
1967
|
-
|
|
1968
|
-
])) :
|
|
1969
|
-
|
|
1970
|
-
|
|
1744
|
+
isValid: v,
|
|
1745
|
+
isTouched: i,
|
|
1746
|
+
errorMessage: g
|
|
1747
|
+
}), (y, w) => (a(), r("div", Yt, [
|
|
1748
|
+
e.label ? (a(), r("label", el, [
|
|
1749
|
+
l("span", tl, O(e.label), 1)
|
|
1750
|
+
])) : T("", !0),
|
|
1751
|
+
V(y.$slots, "default"),
|
|
1752
|
+
l("input", {
|
|
1971
1753
|
ref_key: "inputElement",
|
|
1972
|
-
ref:
|
|
1754
|
+
ref: s,
|
|
1973
1755
|
type: e.type,
|
|
1974
1756
|
placeholder: e.placeholder,
|
|
1975
|
-
disabled:
|
|
1976
|
-
class:
|
|
1757
|
+
disabled: o.disabled,
|
|
1758
|
+
class: M(["input-bordered rounded-md w-full input validator", [
|
|
1977
1759
|
{
|
|
1978
1760
|
// Size classes - Apply based on size prop
|
|
1979
1761
|
"input-xs": e.size === "xs",
|
|
@@ -1985,33 +1767,33 @@ const pt = ye("SunIcon", [
|
|
|
1985
1767
|
"input-ghost": e.style === "ghost",
|
|
1986
1768
|
// Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
|
|
1987
1769
|
// This ensures validation feedback overrides base colors.
|
|
1988
|
-
"input-neutral": e.color === "neutral" && !
|
|
1989
|
-
"input-primary": e.color === "primary" && !
|
|
1990
|
-
"input-secondary": e.color === "secondary" && !
|
|
1991
|
-
"input-accent": e.color === "accent" && !
|
|
1992
|
-
"input-info": e.color === "info" && !
|
|
1993
|
-
"input-success": e.color === "success" && !
|
|
1770
|
+
"input-neutral": e.color === "neutral" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1771
|
+
"input-primary": e.color === "primary" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1772
|
+
"input-secondary": e.color === "secondary" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1773
|
+
"input-accent": e.color === "accent" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1774
|
+
"input-info": e.color === "info" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1775
|
+
"input-success": e.color === "success" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1994
1776
|
// Color success applies only if not in error or validation success state
|
|
1995
|
-
"input-warning": e.color === "warning" && !
|
|
1777
|
+
"input-warning": e.color === "warning" && !p.value && !(v.value && i.value && e.needsValidation),
|
|
1996
1778
|
// Validation state classes - These take precedence visually via conditions or CSS specificity.
|
|
1997
|
-
"input-error":
|
|
1779
|
+
"input-error": p.value,
|
|
1998
1780
|
// Apply error style if validation fails
|
|
1999
|
-
"input-success-validation":
|
|
1781
|
+
"input-success-validation": v.value && i.value && !p.value && e.needsValidation
|
|
2000
1782
|
// 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.
|
|
2001
1783
|
}
|
|
2002
1784
|
]]),
|
|
2003
1785
|
value: e.modelValue,
|
|
2004
1786
|
onInput: S,
|
|
2005
|
-
onBlur:
|
|
2006
|
-
}, null, 42,
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
])) :
|
|
2010
|
-
|
|
2011
|
-
])) :
|
|
1787
|
+
onBlur: I
|
|
1788
|
+
}, null, 42, ll),
|
|
1789
|
+
p.value ? (a(), r("div", nl, [
|
|
1790
|
+
l("span", al, O(g.value), 1)
|
|
1791
|
+
])) : v.value && i.value && e.successMessage ? (a(), r("div", ol, [
|
|
1792
|
+
l("span", sl, O(e.successMessage), 1)
|
|
1793
|
+
])) : T("", !0)
|
|
2012
1794
|
]));
|
|
2013
1795
|
}
|
|
2014
|
-
}),
|
|
1796
|
+
}), Yl = /* @__PURE__ */ P({
|
|
2015
1797
|
__name: "loader",
|
|
2016
1798
|
props: {
|
|
2017
1799
|
loading: { type: Boolean, default: !0 },
|
|
@@ -2020,15 +1802,15 @@ const pt = ye("SunIcon", [
|
|
|
2020
1802
|
color: { default: "primary" }
|
|
2021
1803
|
},
|
|
2022
1804
|
setup(e) {
|
|
2023
|
-
const c = e,
|
|
2024
|
-
return
|
|
1805
|
+
const c = e, t = k(c.loading);
|
|
1806
|
+
return A(
|
|
2025
1807
|
() => c.loading,
|
|
2026
|
-
(
|
|
2027
|
-
|
|
1808
|
+
(o) => {
|
|
1809
|
+
t.value = o;
|
|
2028
1810
|
}
|
|
2029
|
-
), (
|
|
1811
|
+
), (o, u) => t.value ? (a(), r("span", {
|
|
2030
1812
|
key: 0,
|
|
2031
|
-
class:
|
|
1813
|
+
class: M(["loading", [
|
|
2032
1814
|
{ "loading-xs": e.size === "xs" },
|
|
2033
1815
|
{ "loading-sm": e.size === "sm" },
|
|
2034
1816
|
{ "loading-md": e.size === "md" },
|
|
@@ -2051,269 +1833,81 @@ const pt = ye("SunIcon", [
|
|
|
2051
1833
|
{ "text-warning": e.color === "warning" },
|
|
2052
1834
|
{ "text-error": e.color === "error" }
|
|
2053
1835
|
]])
|
|
2054
|
-
}, null, 2)) :
|
|
2055
|
-
}
|
|
2056
|
-
}), Ce = h([]);
|
|
2057
|
-
function Gl() {
|
|
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,
|
|
2062
|
-
message: l,
|
|
2063
|
-
type: t,
|
|
2064
|
-
duration: r
|
|
2065
|
-
});
|
|
2066
|
-
}, c = (l) => {
|
|
2067
|
-
Ce.value = Ce.value.filter((t) => t.id !== l);
|
|
2068
|
-
};
|
|
2069
|
-
return {
|
|
2070
|
-
// Expose a read-only version of the toasts array
|
|
2071
|
-
toasts: et(Ce),
|
|
2072
|
-
addToast: e,
|
|
2073
|
-
removeToast: c
|
|
2074
|
-
};
|
|
2075
|
-
}
|
|
2076
|
-
const Jl = ["value"], Zl = /* @__PURE__ */ j({
|
|
2077
|
-
__name: "ToastNotification",
|
|
2078
|
-
props: {
|
|
2079
|
-
toast: {
|
|
2080
|
-
type: Object,
|
|
2081
|
-
required: !0
|
|
2082
|
-
}
|
|
2083
|
-
},
|
|
2084
|
-
emits: ["remove"],
|
|
2085
|
-
setup(e, { emit: c }) {
|
|
2086
|
-
const l = e, t = c, r = h(100);
|
|
2087
|
-
let a = null, s = null;
|
|
2088
|
-
de(() => {
|
|
2089
|
-
const u = l.toast.duration, g = Date.now();
|
|
2090
|
-
a = setTimeout(() => {
|
|
2091
|
-
t("remove", l.toast.id);
|
|
2092
|
-
}, u), s = setInterval(() => {
|
|
2093
|
-
const S = Date.now() - g, R = Math.max(0, u - S);
|
|
2094
|
-
r.value = R / u * 100, R === 0 && clearInterval(s);
|
|
2095
|
-
}, 50);
|
|
2096
|
-
}), Ee(() => {
|
|
2097
|
-
a && clearTimeout(a), s && clearInterval(s);
|
|
2098
|
-
});
|
|
2099
|
-
const m = U(() => {
|
|
2100
|
-
switch (l.toast.type) {
|
|
2101
|
-
case "success":
|
|
2102
|
-
return "alert-success";
|
|
2103
|
-
case "warning":
|
|
2104
|
-
return "alert-warning";
|
|
2105
|
-
case "error":
|
|
2106
|
-
return "alert-error";
|
|
2107
|
-
case "info":
|
|
2108
|
-
return "alert-info";
|
|
2109
|
-
default:
|
|
2110
|
-
return "";
|
|
2111
|
-
}
|
|
2112
|
-
});
|
|
2113
|
-
return (u, g) => (o(), i("div", {
|
|
2114
|
-
role: "alert",
|
|
2115
|
-
class: $(["alert z-60", m.value, "shadow-lg"])
|
|
2116
|
-
}, [
|
|
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,
|
|
2121
|
-
max: "100"
|
|
2122
|
-
}, null, 8, Jl)
|
|
2123
|
-
], 2));
|
|
1836
|
+
}, null, 2)) : T("", !0);
|
|
2124
1837
|
}
|
|
2125
|
-
}),
|
|
2126
|
-
__name: "ToastContainer",
|
|
2127
|
-
props: {
|
|
2128
|
-
position: {
|
|
2129
|
-
type: String,
|
|
2130
|
-
default: "top-end"
|
|
2131
|
-
// Default to top-right corner
|
|
2132
|
-
}
|
|
2133
|
-
},
|
|
2134
|
-
setup(e) {
|
|
2135
|
-
const c = e, { toasts: l, removeToast: t } = Gl(), r = U(() => {
|
|
2136
|
-
const [a, s] = c.position.split("-");
|
|
2137
|
-
return {
|
|
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"
|
|
2144
|
-
};
|
|
2145
|
-
});
|
|
2146
|
-
return (a, s) => (o(), i("div", {
|
|
2147
|
-
class: $(["toast z-50", r.value])
|
|
2148
|
-
}, [
|
|
2149
|
-
oe(tt, { name: "toast-fade" }, {
|
|
2150
|
-
default: be(() => [
|
|
2151
|
-
(o(!0), i(A, null, X(ee(l), (m) => (o(), ce(Ql, {
|
|
2152
|
-
key: m.id,
|
|
2153
|
-
toast: m,
|
|
2154
|
-
onRemove: (u) => ee(t)(m.id)
|
|
2155
|
-
}, null, 8, ["toast", "onRemove"]))), 128))
|
|
2156
|
-
]),
|
|
2157
|
-
_: 1
|
|
2158
|
-
})
|
|
2159
|
-
], 2));
|
|
2160
|
-
}
|
|
2161
|
-
}), Za = /* @__PURE__ */ re(ea, [["__scopeId", "data-v-e10fa884"]]), ta = {
|
|
2162
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2163
|
-
fill: "none",
|
|
2164
|
-
viewBox: "0 0 24 24",
|
|
2165
|
-
class: "w-6 h-6 stroke-current shrink-0"
|
|
2166
|
-
}, la = ["d"], aa = { class: "empty:hidden" }, Qa = /* @__PURE__ */ j({
|
|
2167
|
-
__name: "alert",
|
|
2168
|
-
props: {
|
|
2169
|
-
type: { default: "default" },
|
|
2170
|
-
message: {},
|
|
2171
|
-
closable: { type: Boolean, default: !1 },
|
|
2172
|
-
modelValue: { type: Boolean, default: !0 }
|
|
2173
|
-
},
|
|
2174
|
-
emits: ["update:modelValue"],
|
|
2175
|
-
setup(e, { emit: c }) {
|
|
2176
|
-
const l = e, t = c, r = U({
|
|
2177
|
-
get: () => l.modelValue,
|
|
2178
|
-
set: (u) => t("update:modelValue", u)
|
|
2179
|
-
}), a = U(() => {
|
|
2180
|
-
switch (l.type) {
|
|
2181
|
-
case "info":
|
|
2182
|
-
return "alert-info";
|
|
2183
|
-
case "success":
|
|
2184
|
-
return "alert-success";
|
|
2185
|
-
case "warning":
|
|
2186
|
-
return "alert-warning";
|
|
2187
|
-
case "error":
|
|
2188
|
-
return "alert-error";
|
|
2189
|
-
default:
|
|
2190
|
-
return "";
|
|
2191
|
-
}
|
|
2192
|
-
}), s = U(() => {
|
|
2193
|
-
switch (l.type) {
|
|
2194
|
-
case "info":
|
|
2195
|
-
return "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";
|
|
2196
|
-
case "success":
|
|
2197
|
-
return "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z";
|
|
2198
|
-
case "warning":
|
|
2199
|
-
return "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z";
|
|
2200
|
-
case "error":
|
|
2201
|
-
return "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z";
|
|
2202
|
-
default:
|
|
2203
|
-
return "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";
|
|
2204
|
-
}
|
|
2205
|
-
}), m = () => {
|
|
2206
|
-
r.value = !1;
|
|
2207
|
-
};
|
|
2208
|
-
return (u, g) => r.value ? (o(), i("div", {
|
|
2209
|
-
key: 0,
|
|
2210
|
-
role: "alert",
|
|
2211
|
-
class: $(["alert", a.value])
|
|
2212
|
-
}, [
|
|
2213
|
-
B(u.$slots, "icon", { class: "w-6 h-6" }, () => [
|
|
2214
|
-
(o(), i("svg", ta, [
|
|
2215
|
-
n("path", {
|
|
2216
|
-
"stroke-linecap": "round",
|
|
2217
|
-
"stroke-linejoin": "round",
|
|
2218
|
-
"stroke-width": "2",
|
|
2219
|
-
d: s.value
|
|
2220
|
-
}, null, 8, la)
|
|
2221
|
-
]))
|
|
2222
|
-
]),
|
|
2223
|
-
n("span", null, T(e.message), 1),
|
|
2224
|
-
n("div", aa, [
|
|
2225
|
-
e.closable ? (o(), i("button", {
|
|
2226
|
-
key: 0,
|
|
2227
|
-
class: "btn btn-sm btn-ghost",
|
|
2228
|
-
onClick: m
|
|
2229
|
-
}, "Close")) : z("", !0),
|
|
2230
|
-
B(u.$slots, "default")
|
|
2231
|
-
])
|
|
2232
|
-
], 2)) : z("", !0);
|
|
2233
|
-
}
|
|
2234
|
-
}), na = { class: "container flex flex-col sm:flex-row" }, oa = { class: "footer-title" }, sa = ["href"], ia = {
|
|
1838
|
+
}), il = { class: "footer sm:footer-horizontal container" }, rl = { class: "footer-title" }, ul = ["href"], dl = {
|
|
2235
1839
|
key: 0,
|
|
2236
1840
|
class: "sm:hidden w-full"
|
|
2237
|
-
},
|
|
1841
|
+
}, cl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, fl = {
|
|
2238
1842
|
tabindex: "0",
|
|
2239
1843
|
class: "collapse collapse-plus w-full"
|
|
2240
|
-
},
|
|
1844
|
+
}, ml = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, vl = { class: "collapse-content flex w-full text-sm" }, pl = { class: "flex flex-col gap-2.5" }, hl = { class: "w-full" }, gl = ["href"], bl = { class: "w-full" }, en = /* @__PURE__ */ P({
|
|
2241
1845
|
__name: "footer",
|
|
2242
1846
|
props: {
|
|
2243
1847
|
items: {},
|
|
2244
1848
|
background: {},
|
|
2245
1849
|
color: {},
|
|
2246
|
-
collapseOnMobile: { type: Boolean, default: !1 }
|
|
2247
|
-
rows: { default: 1 }
|
|
1850
|
+
collapseOnMobile: { type: Boolean, default: !1 }
|
|
2248
1851
|
},
|
|
2249
1852
|
setup(e) {
|
|
2250
1853
|
const c = e;
|
|
2251
|
-
return (
|
|
2252
|
-
class:
|
|
1854
|
+
return (t, o) => (a(), r("div", {
|
|
1855
|
+
class: M(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2253
1856
|
}, [
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
class:
|
|
1857
|
+
l("footer", il, [
|
|
1858
|
+
(a(!0), r(j, null, E(c.items, (u) => (a(), r("nav", {
|
|
1859
|
+
class: M([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2257
1860
|
}, [
|
|
2258
|
-
(
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
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", {
|
|
2280
|
-
class: "w-full font-medium link link-hover",
|
|
2281
|
-
href: a.link
|
|
2282
|
-
}, T(a.text), 9, ma)
|
|
2283
|
-
]))), 256))
|
|
2284
|
-
])
|
|
1861
|
+
l("h6", rl, O(u.title), 1),
|
|
1862
|
+
(a(!0), r(j, null, E(u.items, (s) => (a(), r("a", {
|
|
1863
|
+
class: "link link-hover",
|
|
1864
|
+
href: s.link
|
|
1865
|
+
}, O(s.text), 9, ul))), 256))
|
|
1866
|
+
], 2))), 256)),
|
|
1867
|
+
e.collapseOnMobile ? (a(), r("nav", dl, [
|
|
1868
|
+
(a(!0), r(j, null, E(c.items, (u) => (a(), r("ul", cl, [
|
|
1869
|
+
l("div", fl, [
|
|
1870
|
+
l("div", ml, O(u.title), 1),
|
|
1871
|
+
l("div", vl, [
|
|
1872
|
+
l("ul", pl, [
|
|
1873
|
+
(a(!0), r(j, null, E(u.items, (s) => (a(), r("li", hl, [
|
|
1874
|
+
l("a", {
|
|
1875
|
+
class: "w-full font-medium link link-hover",
|
|
1876
|
+
href: s.link
|
|
1877
|
+
}, O(s.text), 9, gl)
|
|
1878
|
+
]))), 256))
|
|
2285
1879
|
])
|
|
2286
1880
|
])
|
|
2287
|
-
])
|
|
2288
|
-
]))
|
|
2289
|
-
],
|
|
2290
|
-
|
|
2291
|
-
|
|
1881
|
+
])
|
|
1882
|
+
]))), 256))
|
|
1883
|
+
])) : T("", !0),
|
|
1884
|
+
l("aside", bl, [
|
|
1885
|
+
V(t.$slots, "default")
|
|
2292
1886
|
])
|
|
2293
1887
|
])
|
|
2294
1888
|
], 2));
|
|
2295
1889
|
}
|
|
2296
|
-
}),
|
|
2297
|
-
function
|
|
2298
|
-
return
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
c[0] || (c[0] =
|
|
1890
|
+
}), yl = {}, wl = { class: "min-h-40 container hero" }, xl = { class: "px-0! text-center hero-content" }, kl = { class: "mt-9 text-4xl" };
|
|
1891
|
+
function $l(e, c) {
|
|
1892
|
+
return a(), r("div", wl, [
|
|
1893
|
+
l("div", xl, [
|
|
1894
|
+
l("div", null, [
|
|
1895
|
+
l("h1", kl, [
|
|
1896
|
+
V(e.$slots, "title", {}, () => [
|
|
1897
|
+
c[0] || (c[0] = ue("hero title", -1))
|
|
2304
1898
|
])
|
|
2305
1899
|
]),
|
|
2306
|
-
|
|
2307
|
-
|
|
1900
|
+
l("p", null, [
|
|
1901
|
+
V(e.$slots, "description", { class: "py-9" })
|
|
2308
1902
|
]),
|
|
2309
|
-
|
|
2310
|
-
c[1] || (c[1] =
|
|
1903
|
+
V(e.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
1904
|
+
c[1] || (c[1] = l("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2311
1905
|
])
|
|
2312
1906
|
])
|
|
2313
1907
|
])
|
|
2314
1908
|
]);
|
|
2315
1909
|
}
|
|
2316
|
-
const tn = /* @__PURE__ */
|
|
1910
|
+
const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row place-content-center gap-4 categories" }, Sl = ["onClick"], ln = /* @__PURE__ */ P({
|
|
2317
1911
|
__name: "categoryNavigation",
|
|
2318
1912
|
props: {
|
|
2319
1913
|
searchOptions: {},
|
|
@@ -2321,53 +1915,53 @@ const tn = /* @__PURE__ */ re(ha, [["render", wa]]), xa = { class: "flex flex-ro
|
|
|
2321
1915
|
},
|
|
2322
1916
|
emits: ["update:currentCategory"],
|
|
2323
1917
|
setup(e, { emit: c }) {
|
|
2324
|
-
const
|
|
2325
|
-
function
|
|
2326
|
-
|
|
1918
|
+
const t = e, o = c;
|
|
1919
|
+
function u(s) {
|
|
1920
|
+
o("update:currentCategory", s);
|
|
2327
1921
|
}
|
|
2328
|
-
return (
|
|
2329
|
-
(
|
|
2330
|
-
key:
|
|
1922
|
+
return (s, i) => (a(), r("div", Cl, [
|
|
1923
|
+
(a(!0), r(j, null, E(t.searchOptions, (g) => (a(), r("div", {
|
|
1924
|
+
key: g.category
|
|
2331
1925
|
}, [
|
|
2332
|
-
|
|
2333
|
-
onClick: (
|
|
2334
|
-
class:
|
|
2335
|
-
},
|
|
1926
|
+
l("button", {
|
|
1927
|
+
onClick: (v) => u(g.category),
|
|
1928
|
+
class: M(["truncate btn btn-ghost", { "font-semibold": t.currentCategory === g.category }])
|
|
1929
|
+
}, O(g.category), 11, Sl)
|
|
2336
1930
|
]))), 128))
|
|
2337
1931
|
]));
|
|
2338
1932
|
}
|
|
2339
|
-
}),
|
|
1933
|
+
}), Il = { class: "md:flex hidden navbar-start" }, Tl = { class: "md:flex justify-center items-center hidden navbar-center" }, Ml = { class: "md:flex hidden navbar-end" }, Vl = { class: "navbar-bottom md:flex hidden" }, Bl = /* @__PURE__ */ P({
|
|
2340
1934
|
__name: "navigationBar",
|
|
2341
1935
|
props: {
|
|
2342
1936
|
isCollapsed: { type: Boolean, default: !0 }
|
|
2343
1937
|
},
|
|
2344
1938
|
setup(e) {
|
|
2345
1939
|
const c = e;
|
|
2346
|
-
return (
|
|
2347
|
-
class:
|
|
1940
|
+
return (t, o) => (a(), r("nav", {
|
|
1941
|
+
class: M(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", c.isCollapsed ? "collapsed" : ""])
|
|
2348
1942
|
}, [
|
|
2349
|
-
|
|
2350
|
-
|
|
1943
|
+
l("div", Il, [
|
|
1944
|
+
V(t.$slots, "start", {}, void 0, !0)
|
|
2351
1945
|
]),
|
|
2352
|
-
|
|
2353
|
-
|
|
1946
|
+
l("div", Tl, [
|
|
1947
|
+
V(t.$slots, "center", {}, void 0, !0)
|
|
2354
1948
|
]),
|
|
2355
|
-
|
|
2356
|
-
|
|
1949
|
+
l("div", Ml, [
|
|
1950
|
+
V(t.$slots, "end", {}, void 0, !0)
|
|
2357
1951
|
]),
|
|
2358
|
-
|
|
2359
|
-
|
|
1952
|
+
l("div", Vl, [
|
|
1953
|
+
V(t.$slots, "bottom", {}, void 0, !0)
|
|
2360
1954
|
])
|
|
2361
1955
|
], 2));
|
|
2362
1956
|
}
|
|
2363
|
-
}),
|
|
1957
|
+
}), nn = /* @__PURE__ */ J(Bl, [["__scopeId", "data-v-8ddb2b45"]]), Dl = {
|
|
2364
1958
|
key: 0,
|
|
2365
1959
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
2366
|
-
},
|
|
1960
|
+
}, zl = ["onClick", "aria-selected"], Ol = {
|
|
2367
1961
|
key: 0,
|
|
2368
1962
|
role: "tabpanel",
|
|
2369
1963
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
2370
|
-
},
|
|
1964
|
+
}, Pl = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, an = /* @__PURE__ */ P({
|
|
2371
1965
|
__name: "tab",
|
|
2372
1966
|
props: {
|
|
2373
1967
|
items: {},
|
|
@@ -2377,129 +1971,83 @@ const tn = /* @__PURE__ */ re(ha, [["render", wa]]), xa = { class: "flex flex-ro
|
|
|
2377
1971
|
},
|
|
2378
1972
|
emits: ["tab-changed"],
|
|
2379
1973
|
setup(e, { emit: c }) {
|
|
2380
|
-
const
|
|
2381
|
-
function
|
|
2382
|
-
|
|
1974
|
+
const t = e, o = k(t.items[0]), u = c;
|
|
1975
|
+
function s(v) {
|
|
1976
|
+
o.value = v, u("tab-changed", v);
|
|
2383
1977
|
}
|
|
2384
|
-
function
|
|
2385
|
-
const
|
|
2386
|
-
|
|
1978
|
+
function i() {
|
|
1979
|
+
const p = (t.items.indexOf(o.value) + 1) % t.items.length;
|
|
1980
|
+
s(t.items[p]);
|
|
2387
1981
|
}
|
|
2388
|
-
function
|
|
2389
|
-
const
|
|
2390
|
-
|
|
1982
|
+
function g() {
|
|
1983
|
+
const p = (t.items.indexOf(o.value) - 1 + t.items.length) % t.items.length;
|
|
1984
|
+
s(t.items[p]);
|
|
2391
1985
|
}
|
|
2392
|
-
return
|
|
2393
|
-
|
|
2394
|
-
}),
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
},
|
|
2398
|
-
}), (
|
|
2399
|
-
|
|
1986
|
+
return K(() => {
|
|
1987
|
+
t.items && s(t.items[0]);
|
|
1988
|
+
}), $e(() => {
|
|
1989
|
+
t.rotateTabsAfter && t.rotateTabsAfter > 0 && setInterval(() => {
|
|
1990
|
+
i();
|
|
1991
|
+
}, t.rotateTabsAfter * 1e3);
|
|
1992
|
+
}), (v, p) => (a(), r(j, null, [
|
|
1993
|
+
l("div", {
|
|
2400
1994
|
role: "tablist",
|
|
2401
|
-
class:
|
|
1995
|
+
class: M(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2402
1996
|
}, [
|
|
2403
|
-
e.withControlls ? (
|
|
2404
|
-
|
|
2405
|
-
onClick:
|
|
1997
|
+
e.withControlls ? (a(), r("div", Dl, [
|
|
1998
|
+
l("button", {
|
|
1999
|
+
onClick: p[0] || (p[0] = (S) => g()),
|
|
2406
2000
|
class: "cursor-pointer"
|
|
2407
2001
|
}, "Previous"),
|
|
2408
|
-
|
|
2409
|
-
onClick:
|
|
2002
|
+
l("button", {
|
|
2003
|
+
onClick: p[1] || (p[1] = (S) => i()),
|
|
2410
2004
|
class: "text-primary cursor-pointer"
|
|
2411
2005
|
}, "Next")
|
|
2412
|
-
])) :
|
|
2413
|
-
(
|
|
2414
|
-
|
|
2006
|
+
])) : T("", !0),
|
|
2007
|
+
(a(!0), r(j, null, E(e.items, (S) => (a(), r(j, null, [
|
|
2008
|
+
l("a", {
|
|
2415
2009
|
type: "button",
|
|
2416
2010
|
role: "tab",
|
|
2417
|
-
class:
|
|
2418
|
-
onClick: (
|
|
2419
|
-
"aria-selected":
|
|
2420
|
-
},
|
|
2421
|
-
e.buttonOnlyMode ?
|
|
2422
|
-
|
|
2011
|
+
class: M(["min-w-max tab", S === o.value ? "bg-primary text-base-100" : ""]),
|
|
2012
|
+
onClick: (I) => s(S),
|
|
2013
|
+
"aria-selected": o.value == S
|
|
2014
|
+
}, O(S), 11, zl),
|
|
2015
|
+
e.buttonOnlyMode ? T("", !0) : (a(), r("div", Ol, [
|
|
2016
|
+
V(v.$slots, `${S}-tab`)
|
|
2423
2017
|
]))
|
|
2424
2018
|
], 64))), 256))
|
|
2425
2019
|
], 2),
|
|
2426
|
-
|
|
2427
|
-
|
|
2020
|
+
l("div", Pl, [
|
|
2021
|
+
V(v.$slots, "default")
|
|
2428
2022
|
])
|
|
2429
2023
|
], 64));
|
|
2430
2024
|
}
|
|
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
|
-
}
|
|
2472
2025
|
});
|
|
2473
2026
|
typeof document > "u" && (globalThis.document = {});
|
|
2474
2027
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2475
2028
|
export {
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
Ha as CarouselItem,
|
|
2029
|
+
Fl as Accordion,
|
|
2030
|
+
Kl as AdvancedSearch,
|
|
2031
|
+
Ul as Avatar,
|
|
2032
|
+
_l as Badge,
|
|
2033
|
+
Ll as ButtonComponent,
|
|
2034
|
+
ql as Card,
|
|
2035
|
+
Hl as Carousel,
|
|
2036
|
+
Wl as CarouselItem,
|
|
2485
2037
|
ln as CategoryNavigation,
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2038
|
+
Ot as DatetimePicker,
|
|
2039
|
+
El as Dropdown,
|
|
2040
|
+
Zl as FilterableSelect,
|
|
2489
2041
|
en as Footer,
|
|
2490
2042
|
tn as Hero,
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
Pa as ThemeController,
|
|
2502
|
-
Za as Toast,
|
|
2503
|
-
Gl as ToastComposable,
|
|
2504
|
-
Ql as ToastNotification
|
|
2043
|
+
Ql as InputField,
|
|
2044
|
+
Yl as Loader,
|
|
2045
|
+
Al as Modal,
|
|
2046
|
+
nn as NavigationBar,
|
|
2047
|
+
Xl as Rating,
|
|
2048
|
+
Jl as Selector,
|
|
2049
|
+
Rl as Swap,
|
|
2050
|
+
an as Tab,
|
|
2051
|
+
Gl as TagInput,
|
|
2052
|
+
Nl as ThemeController
|
|
2505
2053
|
};
|