manolis-ui 0.6.19 → 0.7.1
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 +8 -6
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +596 -566
- package/dist/manolis-ui.umd.cjs +8 -8
- package/dist/style.css +3 -0
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as V, createCommentVNode as O, renderSlot as T, createTextVNode as ke, createElementVNode as
|
|
2
|
-
const je = {
|
|
1
|
+
import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as V, createCommentVNode as O, renderSlot as T, createTextVNode as ke, createElementVNode as s, Fragment as B, renderList as A, toDisplayString as C, ref as x, h as me, onMounted as Q, watch as H, withDirectives as q, createVNode as ae, isRef as ze, vModelCheckbox as Ae, unref as F, provide as Pe, normalizeStyle as de, inject as Ee, useId as Le, defineAsyncComponent as ce, nextTick as pe, onBeforeUnmount as ge, withModifiers as ee, createBlock as ue, resolveDynamicComponent as ve, mergeProps as fe, withKeys as he, onUnmounted as $e, vModelSelect as Z, vModelText as ne, useSlots as Ue, Comment as Re, vShow as Ne } from "vue";
|
|
2
|
+
const je = ["disabled"], Fe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, fn = /* @__PURE__ */ L({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -10,11 +10,12 @@ const je = {
|
|
|
10
10
|
loading: { type: Boolean, default: !1 },
|
|
11
11
|
type: {},
|
|
12
12
|
size: {},
|
|
13
|
-
shape: {}
|
|
13
|
+
shape: {},
|
|
14
|
+
disabled: { type: Boolean, default: !1 }
|
|
14
15
|
},
|
|
15
16
|
setup(i) {
|
|
16
|
-
const
|
|
17
|
-
switch (
|
|
17
|
+
const d = i, e = E(() => {
|
|
18
|
+
switch (d.size) {
|
|
18
19
|
case "large":
|
|
19
20
|
return "btn-lg";
|
|
20
21
|
case "small":
|
|
@@ -29,7 +30,7 @@ const je = {
|
|
|
29
30
|
return "";
|
|
30
31
|
}
|
|
31
32
|
}), t = E(() => {
|
|
32
|
-
switch (
|
|
33
|
+
switch (d.type) {
|
|
33
34
|
case "neutral":
|
|
34
35
|
return "btn-neutral";
|
|
35
36
|
case "primary":
|
|
@@ -53,8 +54,8 @@ const je = {
|
|
|
53
54
|
default:
|
|
54
55
|
return "btn-neutral";
|
|
55
56
|
}
|
|
56
|
-
}),
|
|
57
|
-
switch (
|
|
57
|
+
}), o = E(() => {
|
|
58
|
+
switch (d.shape) {
|
|
58
59
|
case "square":
|
|
59
60
|
return "btn-square";
|
|
60
61
|
case "circle":
|
|
@@ -64,18 +65,26 @@ const je = {
|
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
return (l, r) => (n(), a("button", {
|
|
67
|
-
class: V([
|
|
68
|
+
class: V([
|
|
69
|
+
"btn",
|
|
70
|
+
{ "btn-outline": d.outlined },
|
|
71
|
+
{ "btn-active": d.active },
|
|
72
|
+
t.value,
|
|
73
|
+
e.value,
|
|
74
|
+
o.value
|
|
75
|
+
]),
|
|
76
|
+
disabled: d.disabled
|
|
68
77
|
}, [
|
|
69
|
-
l.loading ? (n(), a("span",
|
|
78
|
+
l.loading ? (n(), a("span", Fe)) : O("", !0),
|
|
70
79
|
T(l.$slots, "default", {}, () => [
|
|
71
80
|
r[0] || (r[0] = ke("Submit"))
|
|
72
81
|
])
|
|
73
|
-
],
|
|
82
|
+
], 10, je));
|
|
74
83
|
}
|
|
75
|
-
}),
|
|
84
|
+
}), qe = {
|
|
76
85
|
tabindex: "0",
|
|
77
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"
|
|
78
|
-
},
|
|
87
|
+
}, He = ["href"], mn = /* @__PURE__ */ L({
|
|
79
88
|
__name: "dropdown",
|
|
80
89
|
props: {
|
|
81
90
|
items: {},
|
|
@@ -85,7 +94,7 @@ const je = {
|
|
|
85
94
|
forceOpen: { type: Boolean, default: !1 }
|
|
86
95
|
},
|
|
87
96
|
setup(i) {
|
|
88
|
-
const
|
|
97
|
+
const d = {
|
|
89
98
|
left: "dropdown-left",
|
|
90
99
|
right: "dropdown-right",
|
|
91
100
|
bottom: "dropdown-bottom",
|
|
@@ -94,37 +103,37 @@ const je = {
|
|
|
94
103
|
start: "",
|
|
95
104
|
end: "dropdown-end"
|
|
96
105
|
}, t = i;
|
|
97
|
-
return (
|
|
98
|
-
class: V(["dropdown",
|
|
106
|
+
return (o, l) => (n(), a("div", {
|
|
107
|
+
class: V(["dropdown", d[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
99
108
|
}, [
|
|
100
|
-
T(
|
|
109
|
+
T(o.$slots, "default", {
|
|
101
110
|
tabindex: "0",
|
|
102
111
|
role: "button"
|
|
103
112
|
}, () => [
|
|
104
|
-
l[0] || (l[0] =
|
|
113
|
+
l[0] || (l[0] = s("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
105
114
|
]),
|
|
106
|
-
|
|
107
|
-
(n(!0), a(B, null, A(
|
|
108
|
-
|
|
115
|
+
s("ul", qe, [
|
|
116
|
+
(n(!0), a(B, null, A(o.items, (r) => (n(), a("li", null, [
|
|
117
|
+
s("a", {
|
|
109
118
|
href: r.link
|
|
110
|
-
}, C(r.text), 9,
|
|
119
|
+
}, C(r.text), 9, He)
|
|
111
120
|
]))), 256)),
|
|
112
|
-
T(
|
|
121
|
+
T(o.$slots, "additional")
|
|
113
122
|
])
|
|
114
123
|
], 2));
|
|
115
124
|
}
|
|
116
|
-
}),
|
|
125
|
+
}), We = { class: "modal-box" }, Ke = { class: "modal-action" }, gn = /* @__PURE__ */ L({
|
|
117
126
|
__name: "modal",
|
|
118
127
|
props: {
|
|
119
128
|
position: { default: "center" },
|
|
120
129
|
withBackdrop: { type: Boolean, default: !1 }
|
|
121
130
|
},
|
|
122
131
|
setup(i) {
|
|
123
|
-
const
|
|
132
|
+
const d = i, e = {
|
|
124
133
|
top: "modal-top",
|
|
125
134
|
bottom: "modal-bottom",
|
|
126
135
|
center: "modal-middle"
|
|
127
|
-
}, t = x(null),
|
|
136
|
+
}, t = x(null), o = () => {
|
|
128
137
|
var r;
|
|
129
138
|
(r = t.value) == null || r.showModal();
|
|
130
139
|
}, l = () => {
|
|
@@ -132,30 +141,30 @@ const je = {
|
|
|
132
141
|
(r = t.value) == null || r.close();
|
|
133
142
|
};
|
|
134
143
|
return (r, y) => (n(), a(B, null, [
|
|
135
|
-
|
|
144
|
+
s("span", {
|
|
136
145
|
class: "w-fit cursor-pointer",
|
|
137
|
-
onClick:
|
|
146
|
+
onClick: o
|
|
138
147
|
}, [
|
|
139
148
|
T(r.$slots, "trigger", { role: "button" }, () => [
|
|
140
|
-
y[0] || (y[0] =
|
|
149
|
+
y[0] || (y[0] = s("button", { class: "btn" }, "Open", -1))
|
|
141
150
|
])
|
|
142
151
|
]),
|
|
143
|
-
|
|
152
|
+
s("dialog", {
|
|
144
153
|
ref_key: "dialog",
|
|
145
154
|
ref: t,
|
|
146
|
-
class: V(["modal", e[
|
|
155
|
+
class: V(["modal", e[d.position]])
|
|
147
156
|
}, [
|
|
148
|
-
|
|
157
|
+
s("div", We, [
|
|
149
158
|
T(r.$slots, "default"),
|
|
150
|
-
|
|
159
|
+
s("div", Ke, [
|
|
151
160
|
T(r.$slots, "actions"),
|
|
152
|
-
|
|
161
|
+
s("form", {
|
|
153
162
|
method: "dialog",
|
|
154
163
|
onSubmit: l,
|
|
155
164
|
class: V(r.withBackdrop ? "modal-backdrop" : "")
|
|
156
165
|
}, [
|
|
157
166
|
T(r.$slots, "close-button", {}, () => [
|
|
158
|
-
y[1] || (y[1] =
|
|
167
|
+
y[1] || (y[1] = s("button", { class: "btn" }, "Close", -1))
|
|
159
168
|
])
|
|
160
169
|
], 34)
|
|
161
170
|
])
|
|
@@ -163,21 +172,21 @@ const je = {
|
|
|
163
172
|
], 2)
|
|
164
173
|
], 64));
|
|
165
174
|
}
|
|
166
|
-
}),
|
|
175
|
+
}), Ye = { class: "flex justify-center items-center swap-on" }, Je = { class: "flex justify-center items-center swap-off" }, hn = /* @__PURE__ */ L({
|
|
167
176
|
__name: "swap",
|
|
168
177
|
props: {
|
|
169
178
|
effect: {}
|
|
170
179
|
},
|
|
171
180
|
setup(i) {
|
|
172
|
-
const
|
|
181
|
+
const d = i;
|
|
173
182
|
return (e, t) => (n(), a("label", {
|
|
174
|
-
class: V(["swap",
|
|
183
|
+
class: V(["swap", d.effect ? `swap-${e.effect}` : ""])
|
|
175
184
|
}, [
|
|
176
|
-
t[0] || (t[0] =
|
|
177
|
-
|
|
185
|
+
t[0] || (t[0] = s("input", { type: "checkbox" }, null, -1)),
|
|
186
|
+
s("div", Ye, [
|
|
178
187
|
T(e.$slots, "on")
|
|
179
188
|
]),
|
|
180
|
-
|
|
189
|
+
s("div", Je, [
|
|
181
190
|
T(e.$slots, "off")
|
|
182
191
|
])
|
|
183
192
|
], 2));
|
|
@@ -189,7 +198,7 @@ const je = {
|
|
|
189
198
|
* This source code is licensed under the ISC license.
|
|
190
199
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
200
|
*/
|
|
192
|
-
const
|
|
201
|
+
const Ge = (i) => i.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
193
202
|
/**
|
|
194
203
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
195
204
|
*
|
|
@@ -213,18 +222,18 @@ var ie = {
|
|
|
213
222
|
* This source code is licensed under the ISC license.
|
|
214
223
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
224
|
*/
|
|
216
|
-
const
|
|
225
|
+
const Xe = ({ size: i, strokeWidth: d = 2, absoluteStrokeWidth: e, color: t, iconNode: o, name: l, class: r, ...y }, { slots: p }) => me(
|
|
217
226
|
"svg",
|
|
218
227
|
{
|
|
219
228
|
...ie,
|
|
220
229
|
width: i || ie.width,
|
|
221
230
|
height: i || ie.height,
|
|
222
231
|
stroke: t || ie.stroke,
|
|
223
|
-
"stroke-width": e ? Number(
|
|
224
|
-
class: ["lucide", `lucide-${
|
|
232
|
+
"stroke-width": e ? Number(d) * 24 / Number(i) : d,
|
|
233
|
+
class: ["lucide", `lucide-${Ge(l ?? "icon")}`],
|
|
225
234
|
...y
|
|
226
235
|
},
|
|
227
|
-
[...
|
|
236
|
+
[...o.map((f) => me(...f)), ...p.default ? [p.default()] : []]
|
|
228
237
|
);
|
|
229
238
|
/**
|
|
230
239
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -232,11 +241,11 @@ const Ge = ({ size: i, strokeWidth: c = 2, absoluteStrokeWidth: e, color: t, ico
|
|
|
232
241
|
* This source code is licensed under the ISC license.
|
|
233
242
|
* See the LICENSE file in the root directory of this source tree.
|
|
234
243
|
*/
|
|
235
|
-
const oe = (i,
|
|
236
|
-
|
|
244
|
+
const oe = (i, d) => (e, { slots: t }) => me(
|
|
245
|
+
Xe,
|
|
237
246
|
{
|
|
238
247
|
...e,
|
|
239
|
-
iconNode:
|
|
248
|
+
iconNode: d,
|
|
240
249
|
name: i
|
|
241
250
|
},
|
|
242
251
|
t
|
|
@@ -247,7 +256,7 @@ const oe = (i, c) => (e, { slots: t }) => me(
|
|
|
247
256
|
* This source code is licensed under the ISC license.
|
|
248
257
|
* See the LICENSE file in the root directory of this source tree.
|
|
249
258
|
*/
|
|
250
|
-
const
|
|
259
|
+
const Ze = oe("CalendarIcon", [
|
|
251
260
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
252
261
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
253
262
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -259,8 +268,9 @@ const Xe = oe("CalendarIcon", [
|
|
|
259
268
|
* This source code is licensed under the ISC license.
|
|
260
269
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
270
|
*/
|
|
262
|
-
const
|
|
263
|
-
["
|
|
271
|
+
const Qe = oe("CircleChevronDownIcon", [
|
|
272
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
273
|
+
["path", { d: "m16 10-4 4-4-4", key: "894hmk" }]
|
|
264
274
|
]);
|
|
265
275
|
/**
|
|
266
276
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -268,7 +278,7 @@ const Ze = oe("ChevronDownIcon", [
|
|
|
268
278
|
* This source code is licensed under the ISC license.
|
|
269
279
|
* See the LICENSE file in the root directory of this source tree.
|
|
270
280
|
*/
|
|
271
|
-
const
|
|
281
|
+
const et = oe("MoonIcon", [
|
|
272
282
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
273
283
|
]);
|
|
274
284
|
/**
|
|
@@ -287,7 +297,7 @@ const we = oe("SearchIcon", [
|
|
|
287
297
|
* This source code is licensed under the ISC license.
|
|
288
298
|
* See the LICENSE file in the root directory of this source tree.
|
|
289
299
|
*/
|
|
290
|
-
const
|
|
300
|
+
const tt = oe("SunIcon", [
|
|
291
301
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
292
302
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
293
303
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -297,44 +307,44 @@ const et = oe("SunIcon", [
|
|
|
297
307
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
298
308
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
299
309
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
300
|
-
]),
|
|
310
|
+
]), lt = (i, d) => {
|
|
301
311
|
const e = x(null);
|
|
302
312
|
return Q(() => {
|
|
303
313
|
if (typeof window < "u") {
|
|
304
314
|
const t = window.localStorage.getItem(i);
|
|
305
|
-
e.value = t ? JSON.parse(t) :
|
|
315
|
+
e.value = t ? JSON.parse(t) : d;
|
|
306
316
|
}
|
|
307
317
|
}), H(e, (t) => {
|
|
308
318
|
typeof window < "u" && window.localStorage.setItem(i, JSON.stringify(t));
|
|
309
319
|
}), e;
|
|
310
|
-
},
|
|
320
|
+
}, nt = { class: "swap-rotate swap" }, at = ["true-value", "false-value"], bn = /* @__PURE__ */ L({
|
|
311
321
|
__name: "theme-controller",
|
|
312
322
|
props: {
|
|
313
323
|
lightTheme: { default: "light" },
|
|
314
324
|
darkTheme: { default: "dark" }
|
|
315
325
|
},
|
|
316
326
|
setup(i) {
|
|
317
|
-
const
|
|
318
|
-
function t(
|
|
319
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
327
|
+
const d = i, e = lt("theme", d.lightTheme);
|
|
328
|
+
function t(o) {
|
|
329
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", o);
|
|
320
330
|
}
|
|
321
|
-
return Q(() => t(e.value ? e.value : "")), H(e, (
|
|
322
|
-
t(
|
|
323
|
-
}), (
|
|
324
|
-
q(
|
|
331
|
+
return Q(() => t(e.value ? e.value : "")), H(e, (o) => {
|
|
332
|
+
t(o);
|
|
333
|
+
}), (o, l) => (n(), a("label", nt, [
|
|
334
|
+
q(s("input", {
|
|
325
335
|
type: "checkbox",
|
|
326
336
|
class: "theme-controller",
|
|
327
337
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => ze(e) ? e.value = r : null),
|
|
328
|
-
"true-value":
|
|
329
|
-
"false-value":
|
|
330
|
-
}, null, 8,
|
|
338
|
+
"true-value": d.lightTheme,
|
|
339
|
+
"false-value": d.darkTheme
|
|
340
|
+
}, null, 8, at), [
|
|
331
341
|
[Ae, F(e)]
|
|
332
342
|
]),
|
|
333
|
-
ae(F(
|
|
334
|
-
ae(F(
|
|
343
|
+
ae(F(tt), { class: "swap-off fill-current" }),
|
|
344
|
+
ae(F(et), { class: "swap-on fill-current" })
|
|
335
345
|
]));
|
|
336
346
|
}
|
|
337
|
-
}),
|
|
347
|
+
}), ot = ["name"], st = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, rt = { class: "collapse-content" }, it = ["innerHTML"], yn = /* @__PURE__ */ L({
|
|
338
348
|
__name: "accordion",
|
|
339
349
|
props: {
|
|
340
350
|
name: {},
|
|
@@ -343,25 +353,25 @@ const et = oe("SunIcon", [
|
|
|
343
353
|
icon: {}
|
|
344
354
|
},
|
|
345
355
|
setup(i) {
|
|
346
|
-
const
|
|
347
|
-
return (e, t) => (n(!0), a(B, null, A(
|
|
356
|
+
const d = i;
|
|
357
|
+
return (e, t) => (n(!0), a(B, null, A(d.items, (o, l) => (n(), a("div", {
|
|
348
358
|
class: V(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
349
359
|
key: l
|
|
350
360
|
}, [
|
|
351
|
-
|
|
361
|
+
s("input", {
|
|
352
362
|
type: "radio",
|
|
353
363
|
name: e.name,
|
|
354
364
|
value: "true"
|
|
355
|
-
}, null, 8,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
innerHTML:
|
|
360
|
-
}, null, 8,
|
|
365
|
+
}, null, 8, ot),
|
|
366
|
+
s("div", st, C(o.title), 1),
|
|
367
|
+
s("div", rt, [
|
|
368
|
+
s("span", {
|
|
369
|
+
innerHTML: o.content
|
|
370
|
+
}, null, 8, it)
|
|
361
371
|
])
|
|
362
372
|
], 2))), 128));
|
|
363
373
|
}
|
|
364
|
-
}),
|
|
374
|
+
}), ut = ["src"], dt = { class: "text-xl" }, wn = /* @__PURE__ */ L({
|
|
365
375
|
__name: "avatar",
|
|
366
376
|
props: {
|
|
367
377
|
image: {},
|
|
@@ -370,32 +380,32 @@ const et = oe("SunIcon", [
|
|
|
370
380
|
fullyRounded: { type: Boolean, default: !1 }
|
|
371
381
|
},
|
|
372
382
|
setup(i) {
|
|
373
|
-
const
|
|
383
|
+
const d = i, e = x(d.onlineStatus);
|
|
374
384
|
return H(
|
|
375
|
-
() =>
|
|
385
|
+
() => d.onlineStatus,
|
|
376
386
|
(t) => {
|
|
377
387
|
t && (e.value = t);
|
|
378
388
|
}
|
|
379
|
-
), (t,
|
|
389
|
+
), (t, o) => (n(), a("div", {
|
|
380
390
|
class: V(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
|
|
381
391
|
}, [
|
|
382
392
|
t.image ? (n(), a("div", {
|
|
383
393
|
key: 0,
|
|
384
394
|
class: V(["rounded", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
|
|
385
395
|
}, [
|
|
386
|
-
|
|
396
|
+
s("img", {
|
|
387
397
|
src: t.image,
|
|
388
398
|
class: "w-full h-full"
|
|
389
|
-
}, null, 8,
|
|
399
|
+
}, null, 8, ut)
|
|
390
400
|
], 2)) : (n(), a("div", {
|
|
391
401
|
key: 1,
|
|
392
402
|
class: V(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
|
|
393
403
|
}, [
|
|
394
|
-
|
|
404
|
+
s("p", dt, C(t.initials), 1)
|
|
395
405
|
], 2))
|
|
396
406
|
], 2));
|
|
397
407
|
}
|
|
398
|
-
}),
|
|
408
|
+
}), kn = /* @__PURE__ */ L({
|
|
399
409
|
__name: "badge",
|
|
400
410
|
props: {
|
|
401
411
|
color: { default: "neutral" },
|
|
@@ -403,7 +413,7 @@ const et = oe("SunIcon", [
|
|
|
403
413
|
size: { default: "medium" }
|
|
404
414
|
},
|
|
405
415
|
setup(i) {
|
|
406
|
-
const
|
|
416
|
+
const d = i, e = {
|
|
407
417
|
"extra small": "badge-xs",
|
|
408
418
|
small: "badge-sm",
|
|
409
419
|
medium: "badge-md",
|
|
@@ -419,25 +429,25 @@ const et = oe("SunIcon", [
|
|
|
419
429
|
warning: "badge-warning",
|
|
420
430
|
error: "badge-error"
|
|
421
431
|
};
|
|
422
|
-
return (
|
|
423
|
-
class: V(["badge", e[
|
|
432
|
+
return (o, l) => (n(), a("span", {
|
|
433
|
+
class: V(["badge", e[d.size], t[d.color], { "badge-outline": d.outline }])
|
|
424
434
|
}, [
|
|
425
|
-
T(
|
|
435
|
+
T(o.$slots, "default")
|
|
426
436
|
], 2));
|
|
427
437
|
}
|
|
428
|
-
}),
|
|
438
|
+
}), ct = ["src", "alt"], pt = {
|
|
429
439
|
key: 0,
|
|
430
440
|
class: "card-body"
|
|
431
|
-
},
|
|
441
|
+
}, vt = {
|
|
432
442
|
key: 0,
|
|
433
443
|
class: "group-hover:text-primary text-lg text-left cursor-pointer card-title"
|
|
434
|
-
},
|
|
444
|
+
}, ft = {
|
|
435
445
|
key: 1,
|
|
436
446
|
class: "text-left"
|
|
437
|
-
},
|
|
447
|
+
}, mt = { class: "flex-col flex-nowrap mt-auto card-actions" }, gt = {
|
|
438
448
|
key: 1,
|
|
439
449
|
class: "card-body"
|
|
440
|
-
},
|
|
450
|
+
}, $n = /* @__PURE__ */ L({
|
|
441
451
|
__name: "card",
|
|
442
452
|
props: {
|
|
443
453
|
imgUrl: { default: "" },
|
|
@@ -452,16 +462,16 @@ const et = oe("SunIcon", [
|
|
|
452
462
|
imgHeight: { default: "h-44" }
|
|
453
463
|
},
|
|
454
464
|
setup(i) {
|
|
455
|
-
const
|
|
465
|
+
const d = i, e = x(d.outlined);
|
|
456
466
|
return H(
|
|
457
|
-
() =>
|
|
467
|
+
() => d.outlined,
|
|
458
468
|
(t) => {
|
|
459
469
|
e.value = t;
|
|
460
470
|
}
|
|
461
|
-
), (t,
|
|
471
|
+
), (t, o) => (n(), a("div", {
|
|
462
472
|
class: V(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [{ "border-4 border-primary": e.value }, t.color ?? "", t.background]])
|
|
463
473
|
}, [
|
|
464
|
-
|
|
474
|
+
s("figure", null, [
|
|
465
475
|
t.imgUrl || t.imgUrl && !t.loading ? (n(), a("img", {
|
|
466
476
|
key: 0,
|
|
467
477
|
src: t.imgUrl,
|
|
@@ -472,36 +482,36 @@ const et = oe("SunIcon", [
|
|
|
472
482
|
},
|
|
473
483
|
t.imgHeight
|
|
474
484
|
]])
|
|
475
|
-
}, null, 10,
|
|
485
|
+
}, null, 10, ct)) : O("", !0),
|
|
476
486
|
t.loading && t.imgUrl ? (n(), a("div", {
|
|
477
487
|
key: 1,
|
|
478
488
|
class: V(["w-full skeleton", t.imgHeight])
|
|
479
489
|
}, null, 2)) : O("", !0)
|
|
480
490
|
]),
|
|
481
|
-
t.loading ? O("", !0) : (n(), a("div",
|
|
482
|
-
t.title ? (n(), a("h2",
|
|
491
|
+
t.loading ? O("", !0) : (n(), a("div", pt, [
|
|
492
|
+
t.title ? (n(), a("h2", vt, C(t.title), 1)) : O("", !0),
|
|
483
493
|
T(t.$slots, "details"),
|
|
484
|
-
t.description ? (n(), a("p",
|
|
485
|
-
|
|
494
|
+
t.description ? (n(), a("p", ft, C(t.description), 1)) : O("", !0),
|
|
495
|
+
s("div", mt, [
|
|
486
496
|
T(t.$slots, "actions")
|
|
487
497
|
])
|
|
488
498
|
])),
|
|
489
|
-
t.loading ? (n(), a("div",
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
499
|
+
t.loading ? (n(), a("div", gt, o[0] || (o[0] = [
|
|
500
|
+
s("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
501
|
+
s("div", { class: "w-28 h-4 skeleton" }),
|
|
502
|
+
s("div", { class: "w-full h-4 skeleton" }),
|
|
503
|
+
s("div", { class: "w-full h-4 skeleton" })
|
|
494
504
|
], -1)
|
|
495
505
|
]))) : O("", !0)
|
|
496
506
|
], 2));
|
|
497
507
|
}
|
|
498
|
-
}), _e = Symbol("CarouselItemStyle"),
|
|
508
|
+
}), _e = Symbol("CarouselItemStyle"), ht = { class: "relative h-full" }, bt = {
|
|
499
509
|
key: 0,
|
|
500
510
|
class: "top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"
|
|
501
|
-
},
|
|
511
|
+
}, yt = {
|
|
502
512
|
key: 1,
|
|
503
513
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
504
|
-
},
|
|
514
|
+
}, wt = ["onClick", "aria-label"], kt = /* @__PURE__ */ L({
|
|
505
515
|
__name: "carousel",
|
|
506
516
|
props: {
|
|
507
517
|
showIndicators: {
|
|
@@ -538,27 +548,27 @@ const et = oe("SunIcon", [
|
|
|
538
548
|
validator: (i) => i >= 0
|
|
539
549
|
}
|
|
540
550
|
},
|
|
541
|
-
setup(i, { expose:
|
|
542
|
-
const e = i, t = x(e.initialSlide),
|
|
551
|
+
setup(i, { expose: d }) {
|
|
552
|
+
const e = i, t = x(e.initialSlide), o = x(null), l = x(!1), r = x(0), y = E(() => ({
|
|
543
553
|
width: `calc((100% - ${e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0}px) / ${e.slidesPerView})`
|
|
544
554
|
}));
|
|
545
555
|
Pe(_e, y);
|
|
546
556
|
const p = () => {
|
|
547
|
-
|
|
557
|
+
o.value ? r.value = o.value.children.length : r.value = 0;
|
|
548
558
|
}, f = async (k) => {
|
|
549
|
-
if (!
|
|
550
|
-
const _ = (k % r.value + r.value) % r.value, M =
|
|
559
|
+
if (!o.value || e.slidesPerView <= 0 || l.value || (p(), r.value === 0)) return;
|
|
560
|
+
const _ = (k % r.value + r.value) % r.value, M = o.value, z = e.sliderOrientation === "vertical" ? (M.offsetHeight - (e.slidesPerView - 1) * e.gap) / e.slidesPerView : (M.offsetWidth - (e.slidesPerView - 1) * e.gap) / e.slidesPerView;
|
|
551
561
|
if (z <= 0) return;
|
|
552
|
-
const N = z + e.gap, K = _ * N, W = e.sliderOrientation === "vertical" ? M.scrollHeight - M.offsetHeight : M.scrollWidth - M.offsetWidth,
|
|
562
|
+
const N = z + e.gap, K = _ * N, W = e.sliderOrientation === "vertical" ? M.scrollHeight - M.offsetHeight : M.scrollWidth - M.offsetWidth, c = Math.max(0, Math.min(K, W + 0.5));
|
|
553
563
|
l.value = !0, M.style.scrollBehavior = "auto";
|
|
554
|
-
const w = e.sliderOrientation === "vertical" ? M.scrollTop : M.scrollLeft, S =
|
|
564
|
+
const w = e.sliderOrientation === "vertical" ? M.scrollTop : M.scrollLeft, S = c - w;
|
|
555
565
|
if (Math.abs(S) < 1) {
|
|
556
566
|
l.value = !1, t.value = _;
|
|
557
567
|
return;
|
|
558
568
|
}
|
|
559
|
-
const
|
|
560
|
-
const D = I -
|
|
561
|
-
e.sliderOrientation === "vertical" ? M.scrollTop = J : M.scrollLeft = J, P < 1 ? requestAnimationFrame(g) : (e.sliderOrientation === "vertical" ? M.scrollTop =
|
|
569
|
+
const b = performance.now(), g = (I) => {
|
|
570
|
+
const D = I - b, P = Math.min(1, D / e.slideDuration), Y = P < 0.5 ? 4 * P * P * P : 1 - Math.pow(-2 * P + 2, 3) / 2, J = w + S * Y;
|
|
571
|
+
e.sliderOrientation === "vertical" ? M.scrollTop = J : M.scrollLeft = J, P < 1 ? requestAnimationFrame(g) : (e.sliderOrientation === "vertical" ? M.scrollTop = c : M.scrollLeft = c, t.value = _, l.value = !1);
|
|
562
572
|
};
|
|
563
573
|
requestAnimationFrame(g);
|
|
564
574
|
}, $ = () => {
|
|
@@ -568,10 +578,10 @@ const et = oe("SunIcon", [
|
|
|
568
578
|
}, R = (k) => {
|
|
569
579
|
f(k);
|
|
570
580
|
}, v = () => {
|
|
571
|
-
if (!
|
|
572
|
-
const k =
|
|
581
|
+
if (!o.value || e.slidesPerView <= 0 || (p(), r.value === 0)) return;
|
|
582
|
+
const k = o.value, _ = e.sliderOrientation === "vertical" ? k.offsetHeight : k.offsetWidth, M = e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0, z = (_ - M) / e.slidesPerView;
|
|
573
583
|
if (z <= 0) return;
|
|
574
|
-
const N = Math.max(0, r.value - e.slidesPerView), K = Math.min(Math.max(0, e.initialSlide), N), W = K * (z + e.gap),
|
|
584
|
+
const N = Math.max(0, r.value - e.slidesPerView), K = Math.min(Math.max(0, e.initialSlide), N), W = K * (z + e.gap), c = e.sliderOrientation === "vertical" ? k.scrollHeight - k.offsetHeight : k.scrollWidth - k.offsetWidth, w = Math.max(0, Math.min(W, c + 0.5));
|
|
575
585
|
e.sliderOrientation === "vertical" ? k.scrollTo({ top: w, behavior: "auto" }) : k.scrollTo({ left: w, behavior: "auto" }), t.value = K;
|
|
576
586
|
};
|
|
577
587
|
return Q(() => {
|
|
@@ -588,86 +598,86 @@ const et = oe("SunIcon", [
|
|
|
588
598
|
e.slideDuration = 0, f(_), e.slideDuration = M;
|
|
589
599
|
});
|
|
590
600
|
});
|
|
591
|
-
}),
|
|
592
|
-
|
|
601
|
+
}), d({ scrollToSlide: f }), (k, _) => (n(), a("div", ht, [
|
|
602
|
+
s("div", {
|
|
593
603
|
ref_key: "carouselContainer",
|
|
594
|
-
ref:
|
|
604
|
+
ref: o,
|
|
595
605
|
class: V(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": i.sliderOrientation == "horizontal" }, { "carousel-vertical": i.sliderOrientation == "vertical" }]]),
|
|
596
606
|
style: de({ gap: `${i.gap}px` })
|
|
597
607
|
}, [
|
|
598
608
|
T(k.$slots, "default", {}, void 0, !0)
|
|
599
609
|
], 6),
|
|
600
|
-
i.showNavigationButtons ? (n(), a("div",
|
|
601
|
-
|
|
610
|
+
i.showNavigationButtons ? (n(), a("div", bt, [
|
|
611
|
+
s("div", {
|
|
602
612
|
onClick: U,
|
|
603
613
|
role: "button",
|
|
604
614
|
"aria-label": "Previous Slide"
|
|
605
615
|
}, [
|
|
606
616
|
T(k.$slots, "prevButton", {}, () => [
|
|
607
|
-
_[0] || (_[0] =
|
|
617
|
+
_[0] || (_[0] = s("button", {
|
|
608
618
|
class: "btn btn-circle",
|
|
609
619
|
tabindex: "-1"
|
|
610
620
|
}, "❮", -1))
|
|
611
621
|
], !0)
|
|
612
622
|
]),
|
|
613
|
-
|
|
623
|
+
s("div", {
|
|
614
624
|
onClick: $,
|
|
615
625
|
role: "button",
|
|
616
626
|
"aria-label": "Next Slide"
|
|
617
627
|
}, [
|
|
618
628
|
T(k.$slots, "nextButton", {}, () => [
|
|
619
|
-
_[1] || (_[1] =
|
|
629
|
+
_[1] || (_[1] = s("button", {
|
|
620
630
|
class: "btn btn-circle",
|
|
621
631
|
tabindex: "-1"
|
|
622
632
|
}, "❯", -1))
|
|
623
633
|
], !0)
|
|
624
634
|
])
|
|
625
635
|
])) : O("", !0),
|
|
626
|
-
i.showIndicators ? (n(), a("div",
|
|
636
|
+
i.showIndicators ? (n(), a("div", yt, [
|
|
627
637
|
(n(!0), a(B, null, A(r.value, (M, z) => (n(), a("button", {
|
|
628
638
|
key: `dot-${z}`,
|
|
629
639
|
onClick: (N) => R(z),
|
|
630
640
|
class: V(["btn btn-circle btn-xs", { "btn-active": z === t.value }]),
|
|
631
641
|
"aria-label": `Go to slide ${z + 1}`
|
|
632
|
-
}, null, 10,
|
|
642
|
+
}, null, 10, wt))), 128))
|
|
633
643
|
])) : O("", !0)
|
|
634
644
|
]));
|
|
635
645
|
}
|
|
636
|
-
}), te = (i,
|
|
646
|
+
}), te = (i, d) => {
|
|
637
647
|
const e = i.__vccOpts || i;
|
|
638
|
-
for (const [t,
|
|
639
|
-
e[t] =
|
|
648
|
+
for (const [t, o] of d)
|
|
649
|
+
e[t] = o;
|
|
640
650
|
return e;
|
|
641
|
-
},
|
|
651
|
+
}, _n = /* @__PURE__ */ te(kt, [["__scopeId", "data-v-db55a6a5"]]), $t = /* @__PURE__ */ L({
|
|
642
652
|
__name: "carouselItem",
|
|
643
653
|
setup(i) {
|
|
644
|
-
const
|
|
654
|
+
const d = Ee(_e, x({}));
|
|
645
655
|
return (e, t) => (n(), a("div", {
|
|
646
656
|
class: "w-full h-full carousel-item",
|
|
647
|
-
style: de(F(
|
|
657
|
+
style: de(F(d))
|
|
648
658
|
}, [
|
|
649
659
|
T(e.$slots, "default", {}, void 0, !0)
|
|
650
660
|
], 4));
|
|
651
661
|
}
|
|
652
|
-
}),
|
|
662
|
+
}), Sn = /* @__PURE__ */ te($t, [["__scopeId", "data-v-507384bc"]]), _t = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, St = ["onClick"], xt = {
|
|
653
663
|
key: 0,
|
|
654
664
|
class: "inline-component-wrapper flex flex-grow justify-center items-center w-full h-full"
|
|
655
|
-
},
|
|
665
|
+
}, Ct = {
|
|
656
666
|
key: 1,
|
|
657
667
|
class: "flex flex-col"
|
|
658
|
-
},
|
|
668
|
+
}, Mt = { class: "text-sm" }, Dt = {
|
|
659
669
|
key: 0,
|
|
660
670
|
class: "opacity-75 overflow-hidden text-xs truncate ..."
|
|
661
|
-
},
|
|
671
|
+
}, It = {
|
|
662
672
|
key: 1,
|
|
663
673
|
class: "hidden md:block opacity-35 overflow-hidden text-xs truncate ..."
|
|
664
|
-
},
|
|
674
|
+
}, Tt = { class: "hidden" }, Vt = ["id"], Bt = { class: "modal-box" }, Ot = { class: "font-bold text-lg" }, zt = ["name", "checked"], At = { class: "collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl" }, Pt = {
|
|
665
675
|
key: 0,
|
|
666
676
|
class: "opacity-75 overflow-hidden text-sm truncate ..."
|
|
667
|
-
},
|
|
677
|
+
}, Et = {
|
|
668
678
|
key: 1,
|
|
669
679
|
class: "opacity-35 text-sm"
|
|
670
|
-
},
|
|
680
|
+
}, Lt = { class: "collapse-content flex place-content-center p-0" }, Ut = /* @__PURE__ */ L({
|
|
671
681
|
__name: "advancedSearch",
|
|
672
682
|
props: {
|
|
673
683
|
searchOptions: {},
|
|
@@ -676,9 +686,9 @@ const et = oe("SunIcon", [
|
|
|
676
686
|
value: {}
|
|
677
687
|
},
|
|
678
688
|
emits: ["search", "update:search-data"],
|
|
679
|
-
setup(i, { emit:
|
|
680
|
-
const e = i, t =
|
|
681
|
-
datetime: ce(() => Promise.resolve().then(() =>
|
|
689
|
+
setup(i, { emit: d }) {
|
|
690
|
+
const e = i, t = d, o = e.id ?? `advancedSearch-${Le()}`, l = x(null), r = x(null), y = {
|
|
691
|
+
datetime: ce(() => Promise.resolve().then(() => cl)),
|
|
682
692
|
"standard-select": ce(() => import("./select-Cz4vf_YE.js")),
|
|
683
693
|
// Add other components here when you create them:
|
|
684
694
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
@@ -689,53 +699,53 @@ const et = oe("SunIcon", [
|
|
|
689
699
|
left: "0px",
|
|
690
700
|
top: "0px",
|
|
691
701
|
transform: "translateX(0%)"
|
|
692
|
-
}), $ = x(null), U = (
|
|
702
|
+
}), $ = x(null), U = (c) => {
|
|
693
703
|
var w;
|
|
694
|
-
if (
|
|
704
|
+
if (c.value === void 0 || c.value === null || c.value === "")
|
|
695
705
|
return "";
|
|
696
|
-
switch (
|
|
706
|
+
switch (c.type) {
|
|
697
707
|
case "datetime":
|
|
698
|
-
if (typeof
|
|
708
|
+
if (typeof c.value == "string")
|
|
699
709
|
try {
|
|
700
|
-
const S = new Date(
|
|
710
|
+
const S = new Date(c.value);
|
|
701
711
|
if (!isNaN(S.getTime()))
|
|
702
712
|
return S.toLocaleString();
|
|
703
713
|
} catch {
|
|
704
714
|
}
|
|
705
|
-
else if (
|
|
715
|
+
else if (c.range && typeof c.value == "object" && c.value !== null && "start" in c.value && "end" in c.value)
|
|
706
716
|
try {
|
|
707
|
-
const S = new Date(
|
|
708
|
-
if (!isNaN(S.getTime()) && !isNaN(
|
|
709
|
-
return `${S.toLocaleDateString()} - ${
|
|
717
|
+
const S = new Date(c.value.start), b = new Date(c.value.end);
|
|
718
|
+
if (!isNaN(S.getTime()) && !isNaN(b.getTime()))
|
|
719
|
+
return `${S.toLocaleDateString()} - ${b.toLocaleDateString()}`;
|
|
710
720
|
} catch {
|
|
711
721
|
}
|
|
712
722
|
break;
|
|
713
723
|
case "custom-range":
|
|
714
|
-
if (typeof
|
|
715
|
-
return `${
|
|
724
|
+
if (typeof c.value == "object" && c.value !== null && "start" in c.value && "end" in c.value)
|
|
725
|
+
return `${c.value.start} - ${c.value.end}`;
|
|
716
726
|
break;
|
|
717
727
|
case "custom-number":
|
|
718
|
-
if (typeof
|
|
719
|
-
return
|
|
728
|
+
if (typeof c.value == "number")
|
|
729
|
+
return c.value.toString();
|
|
720
730
|
break;
|
|
721
731
|
case "standard-select":
|
|
722
732
|
case "custom-select":
|
|
723
|
-
if ((w =
|
|
724
|
-
const S =
|
|
725
|
-
(
|
|
733
|
+
if ((w = c.props) != null && w.options && Array.isArray(c.props.options)) {
|
|
734
|
+
const S = c.props.options.find(
|
|
735
|
+
(b) => b.value === c.value
|
|
726
736
|
);
|
|
727
737
|
if (S)
|
|
728
738
|
return S.text;
|
|
729
739
|
}
|
|
730
|
-
return String(
|
|
740
|
+
return String(c.value);
|
|
731
741
|
case "custom-text":
|
|
732
|
-
if (typeof
|
|
733
|
-
return
|
|
742
|
+
if (typeof c.value == "string")
|
|
743
|
+
return c.value;
|
|
734
744
|
break;
|
|
735
745
|
}
|
|
736
|
-
return String(
|
|
746
|
+
return String(c.value);
|
|
737
747
|
};
|
|
738
|
-
function R(
|
|
748
|
+
function R(c) {
|
|
739
749
|
var g, I;
|
|
740
750
|
const w = (g = l.value) == null ? void 0 : g.name;
|
|
741
751
|
if (!w) {
|
|
@@ -744,48 +754,48 @@ const et = oe("SunIcon", [
|
|
|
744
754
|
}
|
|
745
755
|
const S = (I = e.searchOptions.find(
|
|
746
756
|
(D) => (D == null ? void 0 : D.category) === e.currentCategory
|
|
747
|
-
)) == null ? void 0 : I.tabs,
|
|
757
|
+
)) == null ? void 0 : I.tabs, b = S == null ? void 0 : S.find(
|
|
748
758
|
(D) => D.name === w
|
|
749
759
|
);
|
|
750
|
-
|
|
751
|
-
tab:
|
|
752
|
-
data:
|
|
760
|
+
b ? (b.value = c, t("update:search-data", {
|
|
761
|
+
tab: b.name,
|
|
762
|
+
data: c
|
|
753
763
|
})) : console.error(
|
|
754
764
|
`Tab with name "${w}" not found in current category.`
|
|
755
765
|
);
|
|
756
766
|
}
|
|
757
|
-
function v(
|
|
758
|
-
R(
|
|
767
|
+
function v(c) {
|
|
768
|
+
R(c);
|
|
759
769
|
}
|
|
760
770
|
function k() {
|
|
761
771
|
t("search");
|
|
762
772
|
}
|
|
763
|
-
async function _(
|
|
764
|
-
var
|
|
765
|
-
const w = document.getElementById(`advancedSearchMobile-${
|
|
766
|
-
((
|
|
773
|
+
async function _(c) {
|
|
774
|
+
var b;
|
|
775
|
+
const w = document.getElementById(`advancedSearchMobile-${o}`), S = w && w.contains(c.target);
|
|
776
|
+
((b = l.value) == null ? void 0 : b.displayMode) === "popup" && $.value && !$.value.contains(c.target) && !S && (await pe(), l.value = null);
|
|
767
777
|
}
|
|
768
778
|
async function M() {
|
|
769
779
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
770
|
-
const
|
|
771
|
-
`advancedSearchMobile-${
|
|
780
|
+
const c = document.getElementById(
|
|
781
|
+
`advancedSearchMobile-${o}`
|
|
772
782
|
);
|
|
773
|
-
|
|
774
|
-
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${
|
|
783
|
+
c ? (l.value = null, c.showModal()) : console.warn(
|
|
784
|
+
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${o}".`
|
|
775
785
|
);
|
|
776
786
|
}
|
|
777
787
|
}
|
|
778
|
-
async function z(
|
|
779
|
-
var S,
|
|
788
|
+
async function z(c) {
|
|
789
|
+
var S, b, g;
|
|
780
790
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
781
791
|
M();
|
|
782
792
|
return;
|
|
783
793
|
}
|
|
784
|
-
const w =
|
|
785
|
-
if (((S = l.value) == null ? void 0 : S.name) ===
|
|
794
|
+
const w = c.displayMode ?? "popup";
|
|
795
|
+
if (((S = l.value) == null ? void 0 : S.name) === c.name && ((b = l.value) == null ? void 0 : b.displayMode) === w)
|
|
786
796
|
l.value = null;
|
|
787
|
-
else if (l.value = { ...
|
|
788
|
-
const I = p.value[
|
|
797
|
+
else if (l.value = { ...c, displayMode: w }, await pe(), ((g = l.value) == null ? void 0 : g.displayMode) === "popup") {
|
|
798
|
+
const I = p.value[c.name];
|
|
789
799
|
if (I && $.value) {
|
|
790
800
|
const D = I.getBoundingClientRect(), P = $.value.getBoundingClientRect(), Y = D.bottom - P.top, J = D.left + D.width / 2 - P.left;
|
|
791
801
|
f.value = {
|
|
@@ -798,12 +808,12 @@ const et = oe("SunIcon", [
|
|
|
798
808
|
} else
|
|
799
809
|
console.error(
|
|
800
810
|
"Tab element or search container not found for positioning:",
|
|
801
|
-
|
|
811
|
+
c.name
|
|
802
812
|
);
|
|
803
813
|
}
|
|
804
814
|
}
|
|
805
|
-
const N = (
|
|
806
|
-
const w =
|
|
815
|
+
const N = (c) => {
|
|
816
|
+
const w = c.relatedTarget;
|
|
807
817
|
setTimeout(() => {
|
|
808
818
|
var S;
|
|
809
819
|
((S = l.value) == null ? void 0 : S.displayMode) === "inline" && $.value && (!w || !$.value.contains(w)) ? (console.log("Blur detected outside container, closing inline view."), l.value = null) : console.log(
|
|
@@ -813,27 +823,27 @@ const et = oe("SunIcon", [
|
|
|
813
823
|
}, K = () => {
|
|
814
824
|
console.log("Enter key pressed on inline component, closing inline view."), l.value = null;
|
|
815
825
|
};
|
|
816
|
-
H(r, (
|
|
826
|
+
H(r, (c) => {
|
|
817
827
|
var w;
|
|
818
828
|
console.log(
|
|
819
829
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
820
|
-
|
|
821
|
-
), console.log("advanced-search: activeTab.value:", l.value),
|
|
830
|
+
c
|
|
831
|
+
), console.log("advanced-search: activeTab.value:", l.value), c && ((w = l.value) == null ? void 0 : w.displayMode) === "inline" ? (console.log(
|
|
822
832
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
823
833
|
), pe(() => {
|
|
824
834
|
console.log(
|
|
825
835
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
826
|
-
), console.log("advanced-search: Type of newValue:", typeof
|
|
836
|
+
), console.log("advanced-search: Type of newValue:", typeof c), console.log(
|
|
827
837
|
"advanced-search: Does newValue have focusInput?",
|
|
828
|
-
typeof
|
|
829
|
-
),
|
|
838
|
+
typeof c.focusInput == "function"
|
|
839
|
+
), c && typeof c.focusInput == "function" ? (console.log(
|
|
830
840
|
"advanced-search: Calling exposed focusInput() method on child instance."
|
|
831
|
-
),
|
|
841
|
+
), c.focusInput()) : console.warn(
|
|
832
842
|
'advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',
|
|
833
|
-
|
|
843
|
+
c
|
|
834
844
|
);
|
|
835
845
|
})) : console.log(
|
|
836
|
-
|
|
846
|
+
c ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
|
|
837
847
|
);
|
|
838
848
|
}), Q(() => {
|
|
839
849
|
document.addEventListener("click", _), window.addEventListener("resize", W);
|
|
@@ -841,31 +851,31 @@ const et = oe("SunIcon", [
|
|
|
841
851
|
document.removeEventListener("click", _), window.removeEventListener("resize", W);
|
|
842
852
|
});
|
|
843
853
|
const W = () => {
|
|
844
|
-
var
|
|
854
|
+
var c, w;
|
|
845
855
|
if (typeof window < "u") {
|
|
846
|
-
const S = window.innerWidth <= 768,
|
|
847
|
-
!S && (((
|
|
856
|
+
const S = window.innerWidth <= 768, b = l.value !== null && (l.value.displayMode === "popup" || l.value.displayMode === "inline") && window.innerWidth > 768;
|
|
857
|
+
!S && (((c = l.value) == null ? void 0 : c.displayMode) === "popup" || ((w = l.value) == null ? void 0 : w.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), l.value = null), S && !b && l.value !== null && (console.log(
|
|
848
858
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
849
859
|
), l.value = null);
|
|
850
860
|
const g = document.getElementById(
|
|
851
|
-
`advancedSearchMobile-${
|
|
861
|
+
`advancedSearchMobile-${o}`
|
|
852
862
|
);
|
|
853
863
|
g != null && g.open && !S && (console.log("Modal is open on desktop, closing modal and active tab."), g.close(), l.value = null);
|
|
854
864
|
}
|
|
855
865
|
};
|
|
856
|
-
return (
|
|
857
|
-
var S,
|
|
866
|
+
return (c, w) => {
|
|
867
|
+
var S, b;
|
|
858
868
|
return n(), a(B, null, [
|
|
859
|
-
|
|
869
|
+
s("div", {
|
|
860
870
|
ref_key: "searchContainer",
|
|
861
871
|
ref: $,
|
|
862
872
|
class: "w-full"
|
|
863
873
|
}, [
|
|
864
|
-
|
|
874
|
+
s("div", {
|
|
865
875
|
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",
|
|
866
876
|
onClick: M
|
|
867
877
|
}, [
|
|
868
|
-
|
|
878
|
+
s("div", _t, [
|
|
869
879
|
(n(!0), a(B, null, A(((S = e.searchOptions.find(
|
|
870
880
|
(g) => g.category === e.currentCategory
|
|
871
881
|
)) == null ? void 0 : S.tabs) || [], (g, I) => {
|
|
@@ -881,7 +891,7 @@ const et = oe("SunIcon", [
|
|
|
881
891
|
ref_for: !0,
|
|
882
892
|
ref: (G) => p.value[g.name] = G
|
|
883
893
|
}, [
|
|
884
|
-
((J = l.value) == null ? void 0 : J.name) === g.name && ((se = l.value) == null ? void 0 : se.displayMode) === "inline" ? (n(), a("div",
|
|
894
|
+
((J = l.value) == null ? void 0 : J.name) === g.name && ((se = l.value) == null ? void 0 : se.displayMode) === "inline" ? (n(), a("div", xt, [
|
|
885
895
|
(n(), ue(ve(y[l.value.type]), fe({ ref_for: !0 }, l.value.props || {}, {
|
|
886
896
|
modelValue: l.value.value,
|
|
887
897
|
onUpdated: w[0] || (w[0] = (G) => v(G)),
|
|
@@ -892,11 +902,11 @@ const et = oe("SunIcon", [
|
|
|
892
902
|
ref_key: "inlineComponentRef",
|
|
893
903
|
ref: r
|
|
894
904
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
895
|
-
])) : (n(), a("div",
|
|
896
|
-
|
|
897
|
-
g.value !== void 0 && g.value !== null && g.value !== "" ? (n(), a("p", Dt, C(U(g)), 1)) : (n(), a("p",
|
|
905
|
+
])) : (n(), a("div", Ct, [
|
|
906
|
+
s("p", Mt, C(g.name), 1),
|
|
907
|
+
g.value !== void 0 && g.value !== null && g.value !== "" ? (n(), a("p", Dt, C(U(g)), 1)) : (n(), a("p", It, C(g.description), 1))
|
|
898
908
|
]))
|
|
899
|
-
], 10,
|
|
909
|
+
], 10, St);
|
|
900
910
|
}), 128))
|
|
901
911
|
]),
|
|
902
912
|
l.value && l.value.displayMode === "popup" ? (n(), a("div", {
|
|
@@ -910,7 +920,7 @@ const et = oe("SunIcon", [
|
|
|
910
920
|
"onUpdate:modelValue": w[3] || (w[3] = (g) => R(g))
|
|
911
921
|
}), null, 16, ["modelValue"]))
|
|
912
922
|
], 4)) : O("", !0),
|
|
913
|
-
|
|
923
|
+
s("button", {
|
|
914
924
|
title: "search",
|
|
915
925
|
type: "submit",
|
|
916
926
|
class: "ml-1 btn btn-primary btn-square",
|
|
@@ -922,8 +932,8 @@ const et = oe("SunIcon", [
|
|
|
922
932
|
})
|
|
923
933
|
])
|
|
924
934
|
]),
|
|
925
|
-
|
|
926
|
-
|
|
935
|
+
s("div", Tt, [
|
|
936
|
+
s("button", {
|
|
927
937
|
title: "search",
|
|
928
938
|
onClick: w[4] || (w[4] = () => {
|
|
929
939
|
})
|
|
@@ -935,31 +945,31 @@ const et = oe("SunIcon", [
|
|
|
935
945
|
])
|
|
936
946
|
])
|
|
937
947
|
], 512),
|
|
938
|
-
|
|
939
|
-
id: `advancedSearchMobile-${F(
|
|
948
|
+
s("dialog", {
|
|
949
|
+
id: `advancedSearchMobile-${F(o)}`,
|
|
940
950
|
class: "modal"
|
|
941
951
|
}, [
|
|
942
|
-
|
|
943
|
-
T(
|
|
944
|
-
|
|
952
|
+
s("div", Bt, [
|
|
953
|
+
T(c.$slots, "additionalForMobile", {}, () => [
|
|
954
|
+
s("h3", Ot, C(c.currentCategory), 1)
|
|
945
955
|
], !0),
|
|
946
|
-
(n(!0), a(B, null, A(((
|
|
956
|
+
(n(!0), a(B, null, A(((b = e.searchOptions.find(
|
|
947
957
|
(g) => g.category === e.currentCategory
|
|
948
|
-
)) == null ? void 0 :
|
|
958
|
+
)) == null ? void 0 : b.tabs) || [], (g, I) => (n(), a("div", {
|
|
949
959
|
class: "collapse bg-base-200 my-4",
|
|
950
960
|
key: g.name
|
|
951
961
|
}, [
|
|
952
|
-
|
|
962
|
+
s("input", {
|
|
953
963
|
type: "radio",
|
|
954
|
-
name: `accordion-${F(
|
|
964
|
+
name: `accordion-${F(o)}`,
|
|
955
965
|
checked: I === 0
|
|
956
|
-
}, null, 8,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
g.value !== void 0 && g.value !== null && g.value !== "" ? (n(), a("div",
|
|
966
|
+
}, null, 8, zt),
|
|
967
|
+
s("div", At, [
|
|
968
|
+
s("div", null, C(g.name), 1),
|
|
969
|
+
g.value !== void 0 && g.value !== null && g.value !== "" ? (n(), a("div", Pt, C(U(g)), 1)) : (n(), a("div", Et, C(g.description), 1))
|
|
960
970
|
]),
|
|
961
|
-
|
|
962
|
-
w[7] || (w[7] =
|
|
971
|
+
s("div", Lt, [
|
|
972
|
+
w[7] || (w[7] = s("br", null, null, -1)),
|
|
963
973
|
(n(), ue(ve(y[g.type]), fe({ ref_for: !0 }, g.props || {}, {
|
|
964
974
|
modelValue: g.value,
|
|
965
975
|
onUpdated: w[5] || (w[5] = (D) => R(D)),
|
|
@@ -967,44 +977,44 @@ const et = oe("SunIcon", [
|
|
|
967
977
|
}), null, 16, ["modelValue"]))
|
|
968
978
|
])
|
|
969
979
|
]))), 128)),
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
980
|
+
s("div", { class: "modal-action" }, [
|
|
981
|
+
s("form", { method: "dialog" }, [
|
|
982
|
+
s("button", {
|
|
973
983
|
class: "btn btn-primary",
|
|
974
984
|
onClick: k
|
|
975
985
|
}, " Close and Search ")
|
|
976
986
|
])
|
|
977
987
|
])
|
|
978
988
|
])
|
|
979
|
-
], 8,
|
|
989
|
+
], 8, Vt)
|
|
980
990
|
], 64);
|
|
981
991
|
};
|
|
982
992
|
}
|
|
983
|
-
}),
|
|
993
|
+
}), xn = /* @__PURE__ */ te(Ut, [["__scopeId", "data-v-2a095d4c"]]), Rt = ["placeholder", "value", "id", "disabled"], Nt = ["disabled"], jt = ["id"], Ft = {
|
|
984
994
|
key: 0,
|
|
985
995
|
class: "flex justify-between items-center place-content-center mb-4"
|
|
986
|
-
},
|
|
996
|
+
}, qt = ["disabled"], Ht = ["value"], Wt = ["value"], Kt = {
|
|
987
997
|
key: 1,
|
|
988
998
|
class: "gap-2 grid grid-cols-7"
|
|
989
|
-
},
|
|
999
|
+
}, Yt = ["onClick"], Jt = {
|
|
990
1000
|
key: 2,
|
|
991
1001
|
class: "mt-4 lg:w-80"
|
|
992
|
-
},
|
|
1002
|
+
}, Gt = {
|
|
993
1003
|
key: 0,
|
|
994
1004
|
class: "mb-2 font-bold text-lg"
|
|
995
|
-
},
|
|
1005
|
+
}, Xt = { key: 1 }, Zt = {
|
|
996
1006
|
key: 1,
|
|
997
1007
|
class: "flex gap-4"
|
|
998
|
-
},
|
|
1008
|
+
}, Qt = ["value"], el = ["value"], tl = {
|
|
999
1009
|
key: 2,
|
|
1000
1010
|
class: "flex flex-col gap-4"
|
|
1001
|
-
},
|
|
1011
|
+
}, ll = {
|
|
1002
1012
|
key: 1,
|
|
1003
1013
|
class: "flex gap-2"
|
|
1004
|
-
},
|
|
1014
|
+
}, nl = ["value"], al = ["value"], ol = {
|
|
1005
1015
|
key: 1,
|
|
1006
1016
|
class: "flex gap-2"
|
|
1007
|
-
},
|
|
1017
|
+
}, sl = ["value"], rl = ["value"], il = { class: "flex gap-2 mt-4" }, ul = {
|
|
1008
1018
|
__name: "datetimePicker",
|
|
1009
1019
|
props: {
|
|
1010
1020
|
mode: {
|
|
@@ -1032,10 +1042,14 @@ const et = oe("SunIcon", [
|
|
|
1032
1042
|
initialDate: {
|
|
1033
1043
|
type: Object,
|
|
1034
1044
|
default: () => null
|
|
1045
|
+
},
|
|
1046
|
+
disabled: {
|
|
1047
|
+
type: Boolean,
|
|
1048
|
+
default: !1
|
|
1035
1049
|
}
|
|
1036
1050
|
},
|
|
1037
1051
|
emits: ["updated"],
|
|
1038
|
-
setup(i, { emit:
|
|
1052
|
+
setup(i, { emit: d }) {
|
|
1039
1053
|
const e = i;
|
|
1040
1054
|
H(
|
|
1041
1055
|
() => e.range,
|
|
@@ -1043,7 +1057,7 @@ const et = oe("SunIcon", [
|
|
|
1043
1057
|
m ? (l.value = { start: null, end: null }, r.value = { start: null, end: null }) : (l.value = null, r.value = null);
|
|
1044
1058
|
}
|
|
1045
1059
|
);
|
|
1046
|
-
const t =
|
|
1060
|
+
const t = d, o = x(!1), l = x(e.range ? { start: null, end: null } : null), r = x(e.range ? { start: null, end: null } : null), y = x(
|
|
1047
1061
|
(/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })
|
|
1048
1062
|
), p = x((/* @__PURE__ */ new Date()).getFullYear()), f = x(e.range ? { start: 0, end: 0 } : 0), $ = x(e.range ? { start: 0, end: 0 } : 0), U = x(null), R = E(() => `${e.id}-input`), v = E(() => `${e.id}-popup`), k = E(
|
|
1049
1063
|
() => e.mode === "date" || e.mode === "datetime"
|
|
@@ -1053,21 +1067,21 @@ const et = oe("SunIcon", [
|
|
|
1053
1067
|
E(
|
|
1054
1068
|
() => new Date(p.value, M.value)
|
|
1055
1069
|
);
|
|
1056
|
-
const M = E(() =>
|
|
1070
|
+
const M = E(() => b.indexOf(y.value)), z = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], N = E(
|
|
1057
1071
|
() => new Date(p.value, M.value).getDay()
|
|
1058
1072
|
), K = E(() => {
|
|
1059
1073
|
const m = new Date(p.value, M.value + 1, 0).getDate();
|
|
1060
1074
|
return Array.from(
|
|
1061
1075
|
{ length: m },
|
|
1062
|
-
(
|
|
1076
|
+
(h, u) => new Date(p.value, M.value, u + 1)
|
|
1063
1077
|
);
|
|
1064
1078
|
}), W = E(
|
|
1065
|
-
() => Array.from({ length: N.value }, (m,
|
|
1066
|
-
),
|
|
1079
|
+
() => Array.from({ length: N.value }, (m, h) => h)
|
|
1080
|
+
), c = Array.from({ length: 24 }, (m, h) => h), w = Array.from({ length: 60 }, (m, h) => h), S = E(
|
|
1067
1081
|
() => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
1068
1082
|
navigator.userAgent
|
|
1069
1083
|
)
|
|
1070
|
-
),
|
|
1084
|
+
), b = [
|
|
1071
1085
|
"January",
|
|
1072
1086
|
"February",
|
|
1073
1087
|
"March",
|
|
@@ -1082,65 +1096,65 @@ const et = oe("SunIcon", [
|
|
|
1082
1096
|
"December"
|
|
1083
1097
|
], g = E(() => {
|
|
1084
1098
|
const m = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1085
|
-
return Array.from({ length: 100 }, (
|
|
1099
|
+
return Array.from({ length: 100 }, (h, u) => m - 50 + u);
|
|
1086
1100
|
}), I = E(() => {
|
|
1087
1101
|
if (!k.value || !l.value) return "";
|
|
1088
1102
|
if (e.range && l.value.start && l.value.end) {
|
|
1089
|
-
const m = l.value.start.toLocaleDateString("en-US"),
|
|
1090
|
-
return `${m} - ${
|
|
1103
|
+
const m = l.value.start.toLocaleDateString("en-US"), h = l.value.end.toLocaleDateString("en-US");
|
|
1104
|
+
return `${m} - ${h}`;
|
|
1091
1105
|
}
|
|
1092
1106
|
return !e.range && l.value ? l.value.toLocaleDateString("en-US") : "";
|
|
1093
1107
|
}), D = (m) => m instanceof Date ? m : new Date(m), P = (m) => m instanceof Date && !isNaN(m), Y = E(() => {
|
|
1094
1108
|
if (!_.value) return "";
|
|
1095
|
-
const m = (
|
|
1109
|
+
const m = (h) => {
|
|
1096
1110
|
var re, le, ye;
|
|
1097
|
-
const u = ((re = f.value) == null ? void 0 : re[
|
|
1098
|
-
return S.value ? ((ye = r.value) == null ? void 0 : ye[
|
|
1111
|
+
const u = ((re = f.value) == null ? void 0 : re[h]) ?? f.value, X = ((le = $.value) == null ? void 0 : le[h]) ?? $.value;
|
|
1112
|
+
return S.value ? ((ye = r.value) == null ? void 0 : ye[h]) ?? r.value : `${u.toString().padStart(2, "0")}:${X.toString().padStart(2, "0")}`;
|
|
1099
1113
|
};
|
|
1100
1114
|
return e.range ? `${m("start")} - ${m("end")}` : m();
|
|
1101
1115
|
}), J = E(() => {
|
|
1102
|
-
const m = I.value,
|
|
1103
|
-
return `${m} ${
|
|
1104
|
-
}), se = () =>
|
|
1116
|
+
const m = I.value, h = Y.value;
|
|
1117
|
+
return `${m} ${h}`.trim();
|
|
1118
|
+
}), se = () => o.value = !o.value, G = () => {
|
|
1105
1119
|
j(), Se();
|
|
1106
|
-
}, Se = () =>
|
|
1120
|
+
}, Se = () => o.value = !1, xe = () => {
|
|
1107
1121
|
l.value = e.range ? { start: null, end: null } : null, r.value = e.range ? { start: null, end: null } : null, j();
|
|
1108
1122
|
}, Ce = (m) => {
|
|
1109
1123
|
e.range ? l.value.start && l.value.end ? l.value = { start: m, end: null } : l.value.start ? l.value.end = m : l.value.start = m : l.value = m, j();
|
|
1110
|
-
},
|
|
1124
|
+
}, Me = (m) => (m = D(m), e.range ? l.value.start && P(l.value.start) && m.getTime() === l.value.start.getTime() || l.value.end && P(l.value.end) && m.getTime() === l.value.end.getTime() : P(l.value) && m.getTime() === l.value.getTime()), De = (m) => {
|
|
1111
1125
|
m = D(m);
|
|
1112
|
-
const
|
|
1113
|
-
return m.getDate() ===
|
|
1126
|
+
const h = /* @__PURE__ */ new Date();
|
|
1127
|
+
return m.getDate() === h.getDate() && m.getMonth() === h.getMonth() && m.getFullYear() === h.getFullYear();
|
|
1114
1128
|
}, Ie = (m) => (m = D(m), e.range && P(l.value.start) && m.getTime() === l.value.start.getTime()), Te = (m) => (m = D(m), e.range && P(l.value.end) && m.getTime() === l.value.end.getTime()), Ve = (m) => {
|
|
1115
1129
|
if (m = D(m), e.range && P(l.value.start) && P(l.value.end)) {
|
|
1116
|
-
const
|
|
1117
|
-
return X >
|
|
1130
|
+
const h = l.value.start.getTime(), u = l.value.end.getTime(), X = m.getTime();
|
|
1131
|
+
return X > h && X < u;
|
|
1118
1132
|
}
|
|
1119
1133
|
return !1;
|
|
1120
1134
|
}, Be = () => {
|
|
1121
1135
|
let m = M.value - 1;
|
|
1122
|
-
m < 0 && (m = 11, p.value--), y.value =
|
|
1136
|
+
m < 0 && (m = 11, p.value--), y.value = b[m], j();
|
|
1123
1137
|
}, Oe = () => {
|
|
1124
1138
|
let m = M.value + 1;
|
|
1125
|
-
m > 11 && (m = 0, p.value++), y.value =
|
|
1139
|
+
m > 11 && (m = 0, p.value++), y.value = b[m], j();
|
|
1126
1140
|
}, be = (m) => {
|
|
1127
|
-
U.value && !U.value.contains(m.target) &&
|
|
1141
|
+
U.value && !U.value.contains(m.target) && o.value == !0 && G();
|
|
1128
1142
|
}, j = () => {
|
|
1129
1143
|
let m = {};
|
|
1130
|
-
const
|
|
1144
|
+
const h = (u, X, re) => {
|
|
1131
1145
|
u instanceof Date && !isNaN(u) || (u = /* @__PURE__ */ new Date());
|
|
1132
1146
|
const le = new Date(u);
|
|
1133
1147
|
return le.setUTCHours(X, re, 0, 0), le.toISOString();
|
|
1134
1148
|
};
|
|
1135
|
-
e.range ? (m.from =
|
|
1149
|
+
e.range ? (m.from = h(
|
|
1136
1150
|
l.value.start,
|
|
1137
1151
|
f.value.start,
|
|
1138
1152
|
$.value.start
|
|
1139
|
-
), m.to =
|
|
1153
|
+
), m.to = h(
|
|
1140
1154
|
l.value.end,
|
|
1141
1155
|
f.value.end,
|
|
1142
1156
|
$.value.end
|
|
1143
|
-
)) : m =
|
|
1157
|
+
)) : m = h(
|
|
1144
1158
|
l.value,
|
|
1145
1159
|
f.value,
|
|
1146
1160
|
$.value
|
|
@@ -1151,90 +1165,95 @@ const et = oe("SunIcon", [
|
|
|
1151
1165
|
start: new Date(e.initialDate.start),
|
|
1152
1166
|
end: new Date(e.initialDate.end)
|
|
1153
1167
|
} : e.initialDate.start && (l.value = { start: new Date(e.initialDate.start) })), e.range ? (f.value.start = f.value.start ?? (/* @__PURE__ */ new Date()).getHours(), f.value.end = f.value.end ?? (/* @__PURE__ */ new Date()).getHours(), $.value.start = $.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), $.value.end = $.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (f.value = f.value ?? (/* @__PURE__ */ new Date()).getHours(), $.value = $.value ?? (/* @__PURE__ */ new Date()).getMinutes());
|
|
1154
|
-
}), e.popup && Q(() => document.addEventListener("click", be)), $e(() => document.removeEventListener("click", be)), (m,
|
|
1168
|
+
}), e.popup && Q(() => document.addEventListener("click", be)), $e(() => document.removeEventListener("click", be)), (m, h) => (n(), a("div", {
|
|
1155
1169
|
class: "inline-block relative w-full lg:w-[360px]",
|
|
1156
1170
|
ref_key: "pickerContainer",
|
|
1157
1171
|
ref: U
|
|
1158
1172
|
}, [
|
|
1159
|
-
|
|
1173
|
+
s("div", {
|
|
1160
1174
|
class: "flex items-center gap-2 cursor-pointer",
|
|
1161
|
-
onClick: se
|
|
1175
|
+
onClick: h[0] || (h[0] = (u) => e.disabled ? null : se())
|
|
1162
1176
|
}, [
|
|
1163
1177
|
i.popup ? T(m.$slots, "default", { key: 0 }, () => [
|
|
1164
|
-
|
|
1178
|
+
s("input", {
|
|
1165
1179
|
type: "text",
|
|
1166
1180
|
class: "input-bordered w-full cursor-pointer input",
|
|
1167
1181
|
placeholder: i.placeholder,
|
|
1168
1182
|
value: J.value,
|
|
1169
1183
|
readonly: "",
|
|
1170
|
-
id: R.value
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1184
|
+
id: R.value,
|
|
1185
|
+
disabled: e.disabled
|
|
1186
|
+
}, null, 8, Rt),
|
|
1187
|
+
s("button", {
|
|
1188
|
+
class: "btn btn-ghost",
|
|
1189
|
+
disabled: e.disabled
|
|
1190
|
+
}, [
|
|
1191
|
+
ae(F(Ze))
|
|
1192
|
+
], 8, Nt)
|
|
1175
1193
|
], !0) : O("", !0)
|
|
1176
1194
|
]),
|
|
1177
|
-
|
|
1195
|
+
o.value || !i.popup ? (n(), a("div", {
|
|
1178
1196
|
key: 0,
|
|
1179
1197
|
class: V(["z-50 bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: i.popup }]]),
|
|
1180
1198
|
id: v.value
|
|
1181
1199
|
}, [
|
|
1182
|
-
k.value ? (n(), a("div",
|
|
1183
|
-
|
|
1200
|
+
k.value ? (n(), a("div", Ft, [
|
|
1201
|
+
s("button", {
|
|
1184
1202
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
1185
|
-
onClick: Be
|
|
1186
|
-
|
|
1187
|
-
|
|
1203
|
+
onClick: Be,
|
|
1204
|
+
disabled: e.disabled
|
|
1205
|
+
}, h[12] || (h[12] = [
|
|
1206
|
+
s("svg", {
|
|
1188
1207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1189
1208
|
class: "w-4 h-4",
|
|
1190
1209
|
fill: "none",
|
|
1191
1210
|
viewBox: "0 0 24 24",
|
|
1192
1211
|
stroke: "currentColor"
|
|
1193
1212
|
}, [
|
|
1194
|
-
|
|
1213
|
+
s("path", {
|
|
1195
1214
|
"stroke-linecap": "round",
|
|
1196
1215
|
"stroke-linejoin": "round",
|
|
1197
1216
|
"stroke-width": "2",
|
|
1198
1217
|
d: "M15 19l-7-7 7-7"
|
|
1199
1218
|
})
|
|
1200
1219
|
], -1)
|
|
1201
|
-
])),
|
|
1202
|
-
q(
|
|
1220
|
+
]), 8, qt),
|
|
1221
|
+
q(s("select", {
|
|
1203
1222
|
class: "border-none w-fit select",
|
|
1204
|
-
"onUpdate:modelValue":
|
|
1223
|
+
"onUpdate:modelValue": h[1] || (h[1] = (u) => y.value = u),
|
|
1205
1224
|
onChange: j
|
|
1206
1225
|
}, [
|
|
1207
|
-
(n(), a(B, null, A(
|
|
1226
|
+
(n(), a(B, null, A(b, (u, X) => s("option", {
|
|
1208
1227
|
key: X,
|
|
1209
1228
|
value: u
|
|
1210
|
-
}, C(u), 9,
|
|
1229
|
+
}, C(u), 9, Ht)), 64))
|
|
1211
1230
|
], 544), [
|
|
1212
1231
|
[Z, y.value]
|
|
1213
1232
|
]),
|
|
1214
|
-
q(
|
|
1233
|
+
q(s("select", {
|
|
1215
1234
|
class: "border-none w-24 select",
|
|
1216
|
-
"onUpdate:modelValue":
|
|
1235
|
+
"onUpdate:modelValue": h[2] || (h[2] = (u) => p.value = u),
|
|
1217
1236
|
onChange: j
|
|
1218
1237
|
}, [
|
|
1219
1238
|
(n(!0), a(B, null, A(g.value, (u) => (n(), a("option", {
|
|
1220
1239
|
key: u,
|
|
1221
1240
|
value: u
|
|
1222
|
-
}, C(u), 9,
|
|
1241
|
+
}, C(u), 9, Wt))), 128))
|
|
1223
1242
|
], 544), [
|
|
1224
1243
|
[Z, p.value]
|
|
1225
1244
|
]),
|
|
1226
|
-
|
|
1245
|
+
s("button", {
|
|
1227
1246
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
1228
1247
|
onClick: Oe
|
|
1229
|
-
},
|
|
1230
|
-
|
|
1248
|
+
}, h[13] || (h[13] = [
|
|
1249
|
+
s("svg", {
|
|
1231
1250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1232
1251
|
class: "w-4 h-4",
|
|
1233
1252
|
fill: "none",
|
|
1234
1253
|
viewBox: "0 0 24 24",
|
|
1235
1254
|
stroke: "currentColor"
|
|
1236
1255
|
}, [
|
|
1237
|
-
|
|
1256
|
+
s("path", {
|
|
1238
1257
|
"stroke-linecap": "round",
|
|
1239
1258
|
"stroke-linejoin": "round",
|
|
1240
1259
|
"stroke-width": "2",
|
|
@@ -1243,8 +1262,8 @@ const et = oe("SunIcon", [
|
|
|
1243
1262
|
], -1)
|
|
1244
1263
|
]))
|
|
1245
1264
|
])) : O("", !0),
|
|
1246
|
-
k.value ? (n(), a("div",
|
|
1247
|
-
(n(), a(B, null, A(z, (u) =>
|
|
1265
|
+
k.value ? (n(), a("div", Kt, [
|
|
1266
|
+
(n(), a(B, null, A(z, (u) => s("div", {
|
|
1248
1267
|
key: u,
|
|
1249
1268
|
class: "text-center"
|
|
1250
1269
|
}, C(u), 1)), 64)),
|
|
@@ -1255,38 +1274,38 @@ const et = oe("SunIcon", [
|
|
|
1255
1274
|
(n(!0), a(B, null, A(K.value, (u) => (n(), a("div", {
|
|
1256
1275
|
key: u,
|
|
1257
1276
|
class: V(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
1258
|
-
"bg-primary text-primary-content":
|
|
1259
|
-
today:
|
|
1277
|
+
"bg-primary text-primary-content": Me(u),
|
|
1278
|
+
today: De(u),
|
|
1260
1279
|
"range-start bg-primary text-primary-content": Ie(u),
|
|
1261
1280
|
"range-end bg-primary text-primary-content": Te(u),
|
|
1262
1281
|
"in-range bg-primary/20 hover:bg-primary/10": Ve(u)
|
|
1263
1282
|
}]),
|
|
1264
1283
|
onClick: (X) => Ce(u)
|
|
1265
|
-
}, C(u.getDate()), 11,
|
|
1284
|
+
}, C(u.getDate()), 11, Yt))), 128))
|
|
1266
1285
|
])) : O("", !0),
|
|
1267
|
-
_.value ? (n(), a("div",
|
|
1268
|
-
e.range ? O("", !0) : (n(), a("h3",
|
|
1269
|
-
e.range ? (n(), a("div",
|
|
1270
|
-
|
|
1271
|
-
|
|
1286
|
+
_.value ? (n(), a("div", Jt, [
|
|
1287
|
+
e.range ? O("", !0) : (n(), a("h3", Gt, "Select Time")),
|
|
1288
|
+
e.range ? (n(), a("div", tl, [
|
|
1289
|
+
s("div", null, [
|
|
1290
|
+
h[14] || (h[14] = s("p", { class: "font-bold" }, "Start Time", -1)),
|
|
1272
1291
|
S.value ? q((n(), a("input", {
|
|
1273
1292
|
key: 0,
|
|
1274
1293
|
type: "time",
|
|
1275
1294
|
class: "input-bordered w-full input",
|
|
1276
|
-
"onUpdate:modelValue":
|
|
1295
|
+
"onUpdate:modelValue": h[6] || (h[6] = (u) => r.value.start = u),
|
|
1277
1296
|
onChange: j
|
|
1278
1297
|
}, null, 544)), [
|
|
1279
1298
|
[ne, r.value.start]
|
|
1280
|
-
]) : (n(), a("div",
|
|
1281
|
-
q(
|
|
1299
|
+
]) : (n(), a("div", ll, [
|
|
1300
|
+
q(s("select", {
|
|
1282
1301
|
class: "w-full select-bordered select",
|
|
1283
|
-
"onUpdate:modelValue":
|
|
1302
|
+
"onUpdate:modelValue": h[7] || (h[7] = (u) => f.value.start = u),
|
|
1284
1303
|
onChange: j
|
|
1285
1304
|
}, [
|
|
1286
|
-
(n(!0), a(B, null, A(F(
|
|
1305
|
+
(n(!0), a(B, null, A(F(c), (u) => (n(), a("option", {
|
|
1287
1306
|
key: u,
|
|
1288
1307
|
value: u
|
|
1289
|
-
}, C(u.toString().padStart(2, "0")), 9,
|
|
1308
|
+
}, C(u.toString().padStart(2, "0")), 9, nl))), 128))
|
|
1290
1309
|
], 544), [
|
|
1291
1310
|
[
|
|
1292
1311
|
Z,
|
|
@@ -1295,15 +1314,15 @@ const et = oe("SunIcon", [
|
|
|
1295
1314
|
{ number: !0 }
|
|
1296
1315
|
]
|
|
1297
1316
|
]),
|
|
1298
|
-
q(
|
|
1317
|
+
q(s("select", {
|
|
1299
1318
|
class: "w-full select-bordered select",
|
|
1300
|
-
"onUpdate:modelValue":
|
|
1319
|
+
"onUpdate:modelValue": h[8] || (h[8] = (u) => $.value.start = u),
|
|
1301
1320
|
onChange: j
|
|
1302
1321
|
}, [
|
|
1303
1322
|
(n(!0), a(B, null, A(F(w), (u) => (n(), a("option", {
|
|
1304
1323
|
key: u,
|
|
1305
1324
|
value: u
|
|
1306
|
-
}, C(u.toString().padStart(2, "0")), 9,
|
|
1325
|
+
}, C(u.toString().padStart(2, "0")), 9, al))), 128))
|
|
1307
1326
|
], 544), [
|
|
1308
1327
|
[
|
|
1309
1328
|
Z,
|
|
@@ -1314,26 +1333,26 @@ const et = oe("SunIcon", [
|
|
|
1314
1333
|
])
|
|
1315
1334
|
]))
|
|
1316
1335
|
]),
|
|
1317
|
-
|
|
1318
|
-
|
|
1336
|
+
s("div", null, [
|
|
1337
|
+
h[15] || (h[15] = s("p", { class: "font-bold" }, "End Time", -1)),
|
|
1319
1338
|
S.value ? q((n(), a("input", {
|
|
1320
1339
|
key: 0,
|
|
1321
1340
|
type: "time",
|
|
1322
1341
|
class: "input-bordered w-full input",
|
|
1323
|
-
"onUpdate:modelValue":
|
|
1342
|
+
"onUpdate:modelValue": h[9] || (h[9] = (u) => r.value.end = u),
|
|
1324
1343
|
onChange: j
|
|
1325
1344
|
}, null, 544)), [
|
|
1326
1345
|
[ne, r.value.end]
|
|
1327
|
-
]) : (n(), a("div",
|
|
1328
|
-
q(
|
|
1346
|
+
]) : (n(), a("div", ol, [
|
|
1347
|
+
q(s("select", {
|
|
1329
1348
|
class: "w-full select-bordered select",
|
|
1330
|
-
"onUpdate:modelValue":
|
|
1349
|
+
"onUpdate:modelValue": h[10] || (h[10] = (u) => f.value.end = u),
|
|
1331
1350
|
onChange: j
|
|
1332
1351
|
}, [
|
|
1333
|
-
(n(!0), a(B, null, A(F(
|
|
1352
|
+
(n(!0), a(B, null, A(F(c), (u) => (n(), a("option", {
|
|
1334
1353
|
key: u,
|
|
1335
1354
|
value: u
|
|
1336
|
-
}, C(u.toString().padStart(2, "0")), 9,
|
|
1355
|
+
}, C(u.toString().padStart(2, "0")), 9, sl))), 128))
|
|
1337
1356
|
], 544), [
|
|
1338
1357
|
[
|
|
1339
1358
|
Z,
|
|
@@ -1342,15 +1361,15 @@ const et = oe("SunIcon", [
|
|
|
1342
1361
|
{ number: !0 }
|
|
1343
1362
|
]
|
|
1344
1363
|
]),
|
|
1345
|
-
q(
|
|
1364
|
+
q(s("select", {
|
|
1346
1365
|
class: "w-full select-bordered select",
|
|
1347
|
-
"onUpdate:modelValue":
|
|
1366
|
+
"onUpdate:modelValue": h[11] || (h[11] = (u) => $.value.end = u),
|
|
1348
1367
|
onChange: j
|
|
1349
1368
|
}, [
|
|
1350
1369
|
(n(!0), a(B, null, A(F(w), (u) => (n(), a("option", {
|
|
1351
1370
|
key: u,
|
|
1352
1371
|
value: u
|
|
1353
|
-
}, C(u.toString().padStart(2, "0")), 9,
|
|
1372
|
+
}, C(u.toString().padStart(2, "0")), 9, rl))), 128))
|
|
1354
1373
|
], 544), [
|
|
1355
1374
|
[
|
|
1356
1375
|
Z,
|
|
@@ -1361,25 +1380,25 @@ const et = oe("SunIcon", [
|
|
|
1361
1380
|
])
|
|
1362
1381
|
]))
|
|
1363
1382
|
])
|
|
1364
|
-
])) : (n(), a("div",
|
|
1383
|
+
])) : (n(), a("div", Xt, [
|
|
1365
1384
|
S.value ? q((n(), a("input", {
|
|
1366
1385
|
key: 0,
|
|
1367
1386
|
type: "time",
|
|
1368
1387
|
class: "input-bordered w-full input",
|
|
1369
|
-
"onUpdate:modelValue":
|
|
1388
|
+
"onUpdate:modelValue": h[3] || (h[3] = (u) => r.value = u),
|
|
1370
1389
|
onChange: j
|
|
1371
1390
|
}, null, 544)), [
|
|
1372
1391
|
[ne, r.value]
|
|
1373
|
-
]) : (n(), a("div",
|
|
1374
|
-
q(
|
|
1392
|
+
]) : (n(), a("div", Zt, [
|
|
1393
|
+
q(s("select", {
|
|
1375
1394
|
class: "w-full select-bordered select",
|
|
1376
|
-
"onUpdate:modelValue":
|
|
1395
|
+
"onUpdate:modelValue": h[4] || (h[4] = (u) => f.value = u),
|
|
1377
1396
|
onChange: j
|
|
1378
1397
|
}, [
|
|
1379
|
-
(n(!0), a(B, null, A(F(
|
|
1398
|
+
(n(!0), a(B, null, A(F(c), (u) => (n(), a("option", {
|
|
1380
1399
|
key: u,
|
|
1381
1400
|
value: u
|
|
1382
|
-
}, C(u.toString().padStart(2, "0")), 9,
|
|
1401
|
+
}, C(u.toString().padStart(2, "0")), 9, Qt))), 128))
|
|
1383
1402
|
], 544), [
|
|
1384
1403
|
[
|
|
1385
1404
|
Z,
|
|
@@ -1388,15 +1407,15 @@ const et = oe("SunIcon", [
|
|
|
1388
1407
|
{ number: !0 }
|
|
1389
1408
|
]
|
|
1390
1409
|
]),
|
|
1391
|
-
q(
|
|
1410
|
+
q(s("select", {
|
|
1392
1411
|
class: "w-full select-bordered select",
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1412
|
+
"onUpdate:modelValue": h[5] || (h[5] = (u) => $.value = u),
|
|
1394
1413
|
onChange: j
|
|
1395
1414
|
}, [
|
|
1396
1415
|
(n(!0), a(B, null, A(F(w), (u) => (n(), a("option", {
|
|
1397
1416
|
key: u,
|
|
1398
1417
|
value: u
|
|
1399
|
-
}, C(u.toString().padStart(2, "0")), 9,
|
|
1418
|
+
}, C(u.toString().padStart(2, "0")), 9, el))), 128))
|
|
1400
1419
|
], 544), [
|
|
1401
1420
|
[
|
|
1402
1421
|
Z,
|
|
@@ -1408,8 +1427,8 @@ const et = oe("SunIcon", [
|
|
|
1408
1427
|
]))
|
|
1409
1428
|
]))
|
|
1410
1429
|
])) : O("", !0),
|
|
1411
|
-
|
|
1412
|
-
|
|
1430
|
+
s("div", il, [
|
|
1431
|
+
s("button", {
|
|
1413
1432
|
class: V(["btn btn-secondary", i.popup ? "w-fit" : "w-full"]),
|
|
1414
1433
|
onClick: xe
|
|
1415
1434
|
}, " Clear ", 2),
|
|
@@ -1419,13 +1438,13 @@ const et = oe("SunIcon", [
|
|
|
1419
1438
|
onClick: G
|
|
1420
1439
|
}, " Close ")) : O("", !0)
|
|
1421
1440
|
])
|
|
1422
|
-
], 10,
|
|
1441
|
+
], 10, jt)) : O("", !0)
|
|
1423
1442
|
], 512));
|
|
1424
1443
|
}
|
|
1425
|
-
},
|
|
1444
|
+
}, dl = /* @__PURE__ */ te(ul, [["__scopeId", "data-v-bab9b3c1"]]), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1426
1445
|
__proto__: null,
|
|
1427
|
-
default:
|
|
1428
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1446
|
+
default: dl
|
|
1447
|
+
}, Symbol.toStringTag, { value: "Module" })), pl = ["value", "checked", "onChange", "disabled"], Cn = /* @__PURE__ */ L({
|
|
1429
1448
|
__name: "rating",
|
|
1430
1449
|
props: {
|
|
1431
1450
|
initialRating: { default: 0 },
|
|
@@ -1438,56 +1457,60 @@ const et = oe("SunIcon", [
|
|
|
1438
1457
|
gap: { default: 0 }
|
|
1439
1458
|
},
|
|
1440
1459
|
setup(i) {
|
|
1441
|
-
const
|
|
1460
|
+
const d = i, e = x(d.initialRating);
|
|
1442
1461
|
H(
|
|
1443
|
-
() =>
|
|
1444
|
-
(
|
|
1445
|
-
e.value =
|
|
1462
|
+
() => d.initialRating,
|
|
1463
|
+
(o) => {
|
|
1464
|
+
e.value = o;
|
|
1446
1465
|
}
|
|
1447
1466
|
);
|
|
1448
|
-
const t = (
|
|
1449
|
-
e.value =
|
|
1467
|
+
const t = (o) => {
|
|
1468
|
+
e.value = o;
|
|
1450
1469
|
};
|
|
1451
|
-
return (
|
|
1452
|
-
class: V(["rating", [
|
|
1470
|
+
return (o, l) => (n(), a("div", {
|
|
1471
|
+
class: V(["rating", [
|
|
1472
|
+
`rating-${d.size}`,
|
|
1473
|
+
{ "rating-half": o.halfStars },
|
|
1474
|
+
{ "pointer-events-none": !o.isInteractive }
|
|
1475
|
+
]])
|
|
1453
1476
|
}, [
|
|
1454
|
-
(n(!0), a(B, null, A(
|
|
1477
|
+
(n(!0), a(B, null, A(o.numberOfStars * (o.halfStars ? 2 : 1), (r) => (n(), a("input", {
|
|
1455
1478
|
key: r,
|
|
1456
1479
|
type: "radio",
|
|
1457
|
-
value:
|
|
1458
|
-
checked: e.value === (
|
|
1459
|
-
onChange: (y) =>
|
|
1480
|
+
value: o.halfStars ? r * 0.5 : r,
|
|
1481
|
+
checked: e.value === (o.halfStars ? r * 0.5 : r),
|
|
1482
|
+
onChange: (y) => o.isInteractive ? t(o.halfStars ? r * 0.5 : r) : null,
|
|
1460
1483
|
class: V(["mask", [
|
|
1461
1484
|
{
|
|
1462
1485
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1463
|
-
"mask-half-1":
|
|
1464
|
-
"mask-half-2":
|
|
1465
|
-
"cursor-pointer":
|
|
1466
|
-
"cursor-default": !
|
|
1467
|
-
"mask-star":
|
|
1468
|
-
"mask-star-2":
|
|
1469
|
-
"mask-heart":
|
|
1470
|
-
"mask-hexagon":
|
|
1471
|
-
"mask-hexagon-2":
|
|
1472
|
-
"mask-decagon":
|
|
1473
|
-
"mask-pentagon":
|
|
1474
|
-
"mask-diamond":
|
|
1475
|
-
"mask-square":
|
|
1476
|
-
"mask-triangle":
|
|
1477
|
-
"mask-triangle-2":
|
|
1478
|
-
"mask-triangle-3":
|
|
1479
|
-
"mask-triangle-4":
|
|
1486
|
+
"mask-half-1": o.halfStars && r % 2 !== 0,
|
|
1487
|
+
"mask-half-2": o.halfStars && r % 2 === 0,
|
|
1488
|
+
"cursor-pointer": o.isInteractive,
|
|
1489
|
+
"cursor-default": !o.isInteractive,
|
|
1490
|
+
"mask-star": o.shape === "star",
|
|
1491
|
+
"mask-star-2": o.shape === "star-bold",
|
|
1492
|
+
"mask-heart": o.shape === "heart",
|
|
1493
|
+
"mask-hexagon": o.shape === "hexagon-vertical",
|
|
1494
|
+
"mask-hexagon-2": o.shape === "hexagon-horizontal",
|
|
1495
|
+
"mask-decagon": o.shape === "decagon",
|
|
1496
|
+
"mask-pentagon": o.shape === "pentagon",
|
|
1497
|
+
"mask-diamond": o.shape === "diamond",
|
|
1498
|
+
"mask-square": o.shape === "square",
|
|
1499
|
+
"mask-triangle": o.shape === "triangle-top",
|
|
1500
|
+
"mask-triangle-2": o.shape === "triangle-bottom",
|
|
1501
|
+
"mask-triangle-3": o.shape === "triangle-left",
|
|
1502
|
+
"mask-triangle-4": o.shape === "triangle-right"
|
|
1480
1503
|
},
|
|
1481
|
-
e.value >= (
|
|
1504
|
+
e.value >= (o.halfStars ? r * 0.5 : r) ? d.color : ""
|
|
1482
1505
|
]]),
|
|
1483
1506
|
style: de({
|
|
1484
|
-
marginRight:
|
|
1507
|
+
marginRight: o.halfStars && r % 2 === 0 ? `${d.gap}px` : o.halfStars ? "0" : `${d.gap}px`
|
|
1485
1508
|
}),
|
|
1486
|
-
disabled: !
|
|
1487
|
-
}, null, 46,
|
|
1509
|
+
disabled: !o.isInteractive
|
|
1510
|
+
}, null, 46, pl))), 128))
|
|
1488
1511
|
], 2));
|
|
1489
1512
|
}
|
|
1490
|
-
}),
|
|
1513
|
+
}), vl = { class: "badge" }, fl = ["onClick"], ml = { class: "opacity-75" }, gl = ["placeholder"], Mn = /* @__PURE__ */ L({
|
|
1491
1514
|
__name: "taginput",
|
|
1492
1515
|
props: {
|
|
1493
1516
|
modelValue: {},
|
|
@@ -1496,33 +1519,33 @@ const et = oe("SunIcon", [
|
|
|
1496
1519
|
class: {}
|
|
1497
1520
|
},
|
|
1498
1521
|
emits: ["update:modelValue"],
|
|
1499
|
-
setup(i, { emit:
|
|
1500
|
-
const e = i, t =
|
|
1522
|
+
setup(i, { emit: d }) {
|
|
1523
|
+
const e = i, t = d, o = x([...e.modelValue]), l = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, r = x(null), y = x(""), p = E(() => l < 0 || o.value.length < l), f = () => {
|
|
1501
1524
|
const v = y.value.trim();
|
|
1502
|
-
v && !
|
|
1525
|
+
v && !o.value.includes(v) && (o.value.push(v), t("update:modelValue", o.value), y.value = "");
|
|
1503
1526
|
}, $ = (v) => {
|
|
1504
|
-
|
|
1527
|
+
o.value = o.value.filter((k) => k !== v), t("update:modelValue", o.value);
|
|
1505
1528
|
}, U = () => {
|
|
1506
|
-
y.value === "" && (
|
|
1529
|
+
y.value === "" && (o.value.pop(), t("update:modelValue", o.value));
|
|
1507
1530
|
}, R = (v) => {
|
|
1508
1531
|
v.key === "Enter" ? f() : v.key === "Backspace" && y.value === "" && U();
|
|
1509
1532
|
};
|
|
1510
1533
|
return H(() => e.modelValue, (v) => {
|
|
1511
|
-
|
|
1534
|
+
o.value = [...v];
|
|
1512
1535
|
}), (v, k) => (n(), a("div", {
|
|
1513
1536
|
class: V(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", v.$props.class])
|
|
1514
1537
|
}, [
|
|
1515
|
-
(n(!0), a(B, null, A(
|
|
1538
|
+
(n(!0), a(B, null, A(o.value, (_) => T(v.$slots, "tag", {
|
|
1516
1539
|
key: _,
|
|
1517
1540
|
tag: _
|
|
1518
1541
|
}, () => [
|
|
1519
|
-
|
|
1520
|
-
|
|
1542
|
+
s("div", vl, [
|
|
1543
|
+
s("button", {
|
|
1521
1544
|
class: "!px-1 !py-0 h-fit font-bold cursor-pointer",
|
|
1522
1545
|
onClick: (M) => $(_),
|
|
1523
1546
|
"aria-label": "Remove tag"
|
|
1524
|
-
}, "X", 8,
|
|
1525
|
-
|
|
1547
|
+
}, "X", 8, fl),
|
|
1548
|
+
s("span", ml, C(_), 1)
|
|
1526
1549
|
])
|
|
1527
1550
|
])), 128)),
|
|
1528
1551
|
T(v.$slots, "input", { showInput: p.value }, () => [
|
|
@@ -1536,21 +1559,21 @@ const et = oe("SunIcon", [
|
|
|
1536
1559
|
class: "h-full input input-ghost",
|
|
1537
1560
|
onKeydown: R,
|
|
1538
1561
|
"aria-label": "Add tags"
|
|
1539
|
-
}, null, 40,
|
|
1562
|
+
}, null, 40, gl)), [
|
|
1540
1563
|
[ne, y.value]
|
|
1541
1564
|
]) : O("", !0)
|
|
1542
1565
|
])
|
|
1543
1566
|
], 2));
|
|
1544
1567
|
}
|
|
1545
|
-
}),
|
|
1568
|
+
}), hl = { class: "w-full max-w-xs form-control" }, bl = {
|
|
1546
1569
|
key: 0,
|
|
1547
1570
|
class: "label"
|
|
1548
|
-
},
|
|
1571
|
+
}, yl = { class: "label-text" }, wl = ["value"], kl = {
|
|
1549
1572
|
key: 0,
|
|
1550
1573
|
value: "",
|
|
1551
1574
|
disabled: "",
|
|
1552
1575
|
selected: ""
|
|
1553
|
-
},
|
|
1576
|
+
}, $l = ["value"], Dn = /* @__PURE__ */ L({
|
|
1554
1577
|
__name: "select",
|
|
1555
1578
|
props: {
|
|
1556
1579
|
options: {},
|
|
@@ -1559,45 +1582,45 @@ const et = oe("SunIcon", [
|
|
|
1559
1582
|
modelValue: {}
|
|
1560
1583
|
},
|
|
1561
1584
|
emits: ["update:modelValue"],
|
|
1562
|
-
setup(i, { expose:
|
|
1585
|
+
setup(i, { expose: d, emit: e }) {
|
|
1563
1586
|
console.log(i.placeholder);
|
|
1564
|
-
const
|
|
1587
|
+
const o = e, l = x(null), r = (p) => {
|
|
1565
1588
|
const f = p.target;
|
|
1566
|
-
|
|
1589
|
+
o("update:modelValue", f.value);
|
|
1567
1590
|
};
|
|
1568
|
-
return
|
|
1591
|
+
return d({
|
|
1569
1592
|
focusInput: () => {
|
|
1570
1593
|
var p;
|
|
1571
1594
|
console.log("select.vue: focusInput method called."), (p = l.value) == null || p.focus();
|
|
1572
1595
|
}
|
|
1573
1596
|
// You can expose other properties or methods here if needed by the parent
|
|
1574
1597
|
// e.g., the current value: modelValue
|
|
1575
|
-
}), (p, f) => (n(), a("div",
|
|
1576
|
-
p.label ? (n(), a("label",
|
|
1577
|
-
|
|
1598
|
+
}), (p, f) => (n(), a("div", hl, [
|
|
1599
|
+
p.label ? (n(), a("label", bl, [
|
|
1600
|
+
s("span", yl, C(p.label), 1)
|
|
1578
1601
|
])) : O("", !0),
|
|
1579
|
-
|
|
1602
|
+
s("select", {
|
|
1580
1603
|
ref_key: "selectElement",
|
|
1581
1604
|
ref: l,
|
|
1582
1605
|
class: "rounded-md w-full select-bordered select",
|
|
1583
1606
|
value: p.modelValue,
|
|
1584
1607
|
onChange: r
|
|
1585
1608
|
}, [
|
|
1586
|
-
p.placeholder ? (n(), a("option",
|
|
1609
|
+
p.placeholder ? (n(), a("option", kl, C(p.placeholder), 1)) : O("", !0),
|
|
1587
1610
|
(n(!0), a(B, null, A(p.options, ($) => (n(), a("option", {
|
|
1588
1611
|
key: $.value,
|
|
1589
1612
|
value: $.value
|
|
1590
|
-
}, C($.text), 9,
|
|
1591
|
-
], 40,
|
|
1613
|
+
}, C($.text), 9, $l))), 128))
|
|
1614
|
+
], 40, wl)
|
|
1592
1615
|
]));
|
|
1593
1616
|
}
|
|
1594
|
-
}),
|
|
1617
|
+
}), _l = {
|
|
1595
1618
|
key: 0,
|
|
1596
1619
|
class: "label"
|
|
1597
|
-
},
|
|
1620
|
+
}, Sl = { class: "label-text" }, xl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Cl = ["placeholder", "disabled"], Ml = {
|
|
1598
1621
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1599
1622
|
role: "listbox"
|
|
1600
|
-
},
|
|
1623
|
+
}, Dl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Il = ["onMousedown", "id", "aria-selected"], In = {
|
|
1601
1624
|
__name: "filterableSelect",
|
|
1602
1625
|
props: {
|
|
1603
1626
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1620,77 +1643,81 @@ const et = oe("SunIcon", [
|
|
|
1620
1643
|
modelValue: {
|
|
1621
1644
|
type: [String, Number, Object, null],
|
|
1622
1645
|
default: null
|
|
1646
|
+
},
|
|
1647
|
+
disabled: {
|
|
1648
|
+
type: Boolean,
|
|
1649
|
+
default: !1
|
|
1623
1650
|
}
|
|
1624
1651
|
},
|
|
1625
1652
|
emits: ["update:modelValue", "select"],
|
|
1626
|
-
setup(i, { expose:
|
|
1627
|
-
const t = i,
|
|
1653
|
+
setup(i, { expose: d, emit: e }) {
|
|
1654
|
+
const t = i, o = e, l = Ue(), r = E(() => {
|
|
1628
1655
|
const g = (l.default ? l.default() : []).filter((I) => I.type !== Re);
|
|
1629
1656
|
return console.log("hasDefaultSlotContent computed:", g.length > 0), g.length > 0;
|
|
1630
1657
|
}), y = x(""), p = x(null), f = x(!1), $ = x(null), U = x(null), R = x(null), v = x(null), k = () => {
|
|
1631
|
-
|
|
1658
|
+
f.value = !t.disabled;
|
|
1632
1659
|
}, _ = () => {
|
|
1633
1660
|
console.log("closeDropdown called"), f.value = !1, v.value = null, r.value || (p.value && y.value !== p.value.text ? y.value = p.value.text : p.value || (y.value = ""));
|
|
1634
1661
|
}, M = () => {
|
|
1635
1662
|
f.value ? _() : k();
|
|
1636
1663
|
}, z = E(() => {
|
|
1637
|
-
const
|
|
1638
|
-
return
|
|
1639
|
-
(I) => I.text.toLowerCase().includes(
|
|
1664
|
+
const b = y.value.toLowerCase();
|
|
1665
|
+
return b === "" && !f.value ? [] : t.options.filter(
|
|
1666
|
+
(I) => I.text.toLowerCase().includes(b)
|
|
1640
1667
|
);
|
|
1641
1668
|
});
|
|
1642
1669
|
H(
|
|
1643
1670
|
() => t.modelValue,
|
|
1644
|
-
(
|
|
1645
|
-
if (
|
|
1671
|
+
(b, g) => {
|
|
1672
|
+
if (b !== g && _(), b == null)
|
|
1646
1673
|
p.value = null, !f.value && !r.value && (y.value = "");
|
|
1647
1674
|
else {
|
|
1648
|
-
const I = t.options.find((D) => D.value ===
|
|
1675
|
+
const I = t.options.find((D) => D.value === b);
|
|
1649
1676
|
I ? (p.value = I, !f.value && !r.value && (y.value = I.text)) : (p.value = null, !f.value && !r.value && (y.value = ""));
|
|
1650
1677
|
}
|
|
1651
1678
|
},
|
|
1652
1679
|
{ immediate: !0 }
|
|
1653
1680
|
// Run immediately on component mount
|
|
1654
1681
|
);
|
|
1655
|
-
const N = (
|
|
1656
|
-
U.value && !U.value.contains(
|
|
1682
|
+
const N = (b) => {
|
|
1683
|
+
U.value && !U.value.contains(b.target) && _();
|
|
1657
1684
|
}, K = () => {
|
|
1658
1685
|
setTimeout(() => {
|
|
1659
1686
|
U.value && !U.value.contains(document.activeElement) && _();
|
|
1660
1687
|
}, 100);
|
|
1661
1688
|
};
|
|
1662
|
-
H(f, (
|
|
1663
|
-
|
|
1689
|
+
H(f, (b) => {
|
|
1690
|
+
b ? setTimeout(() => {
|
|
1664
1691
|
document.addEventListener("click", N);
|
|
1665
1692
|
}, 0) : document.removeEventListener("click", N);
|
|
1666
1693
|
}), ge(() => {
|
|
1667
1694
|
document.removeEventListener("click", N), window.removeEventListener("keydown", S);
|
|
1668
1695
|
});
|
|
1669
|
-
const W = (
|
|
1670
|
-
p.value =
|
|
1671
|
-
},
|
|
1696
|
+
const W = (b) => {
|
|
1697
|
+
p.value = b, r.value || (y.value = b.text), o("update:modelValue", b.value), o("select", b), _();
|
|
1698
|
+
}, c = () => {
|
|
1672
1699
|
z.value.length > 0 && W(z.value[0]);
|
|
1673
1700
|
}, w = () => {
|
|
1674
1701
|
f.value || k();
|
|
1675
|
-
}, S = (
|
|
1702
|
+
}, S = (b) => {
|
|
1676
1703
|
if (!f.value || z.value.length === 0) return;
|
|
1677
1704
|
const g = z.value.findIndex(
|
|
1678
1705
|
(D, P) => "option-" + P === v.value
|
|
1679
1706
|
);
|
|
1680
1707
|
let I = -1;
|
|
1681
|
-
if (
|
|
1682
|
-
|
|
1683
|
-
else if (
|
|
1684
|
-
|
|
1685
|
-
else if (
|
|
1686
|
-
|
|
1708
|
+
if (b.key === "ArrowDown")
|
|
1709
|
+
b.preventDefault(), I = (g + 1) % z.value.length;
|
|
1710
|
+
else if (b.key === "ArrowUp")
|
|
1711
|
+
b.preventDefault(), I = (g - 1 + z.value.length) % z.value.length;
|
|
1712
|
+
else if (b.key === "Enter" && v.value) {
|
|
1713
|
+
b.preventDefault();
|
|
1687
1714
|
const D = z.value.find(
|
|
1688
1715
|
(P, Y) => "option-" + Y === v.value
|
|
1689
1716
|
);
|
|
1690
1717
|
D && W(D);
|
|
1691
1718
|
return;
|
|
1692
|
-
} else if (
|
|
1693
|
-
|
|
1719
|
+
} else if (b.key === "Escape") {
|
|
1720
|
+
b.preventDefault(), _(), R.value && R.value.focus();
|
|
1694
1721
|
return;
|
|
1695
1722
|
} else if (r.value)
|
|
1696
1723
|
return;
|
|
@@ -1702,11 +1729,11 @@ const et = oe("SunIcon", [
|
|
|
1702
1729
|
});
|
|
1703
1730
|
}
|
|
1704
1731
|
};
|
|
1705
|
-
return H(f, (
|
|
1706
|
-
|
|
1732
|
+
return H(f, (b) => {
|
|
1733
|
+
b ? (window.addEventListener("keydown", S), !r.value && !y.value && p.value && (y.value = p.value.text)) : window.removeEventListener("keydown", S);
|
|
1707
1734
|
}), ge(() => {
|
|
1708
1735
|
document.removeEventListener("click", N), window.removeEventListener("keydown", S);
|
|
1709
|
-
}),
|
|
1736
|
+
}), d({
|
|
1710
1737
|
isDropdownOpen: f,
|
|
1711
1738
|
// Expose state
|
|
1712
1739
|
selectedItem: p,
|
|
@@ -1723,21 +1750,21 @@ const et = oe("SunIcon", [
|
|
|
1723
1750
|
// Expose filter text (useful if parent controls filtering)
|
|
1724
1751
|
hasDefaultSlotContent: r
|
|
1725
1752
|
// Expose to know if the default slot is used
|
|
1726
|
-
}), (
|
|
1753
|
+
}), (b, g) => (n(), a("div", {
|
|
1727
1754
|
class: "relative w-full max-w-xs form-control",
|
|
1728
1755
|
ref_key: "componentRoot",
|
|
1729
1756
|
ref: U
|
|
1730
1757
|
}, [
|
|
1731
|
-
i.label ? (n(), a("label",
|
|
1732
|
-
|
|
1758
|
+
i.label ? (n(), a("label", _l, [
|
|
1759
|
+
s("span", Sl, C(i.label), 1)
|
|
1733
1760
|
])) : O("", !0),
|
|
1734
|
-
|
|
1761
|
+
s("div", {
|
|
1735
1762
|
class: V(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !r.value, select: !r.value }]),
|
|
1736
1763
|
tabindex: "0",
|
|
1737
|
-
onClick:
|
|
1764
|
+
onClick: g[1] || (g[1] = (I) => M()),
|
|
1738
1765
|
onKeydown: [
|
|
1739
|
-
he(ee(
|
|
1740
|
-
he(ee(
|
|
1766
|
+
he(ee(c, ["prevent"]), ["enter"]),
|
|
1767
|
+
he(ee(c, ["prevent"]), ["space"])
|
|
1741
1768
|
],
|
|
1742
1769
|
onBlur: K,
|
|
1743
1770
|
role: "combobox",
|
|
@@ -1748,7 +1775,7 @@ const et = oe("SunIcon", [
|
|
|
1748
1775
|
ref_key: "activatorWrapper",
|
|
1749
1776
|
ref: R
|
|
1750
1777
|
}, [
|
|
1751
|
-
T(
|
|
1778
|
+
T(b.$slots, "default", {}, () => [
|
|
1752
1779
|
r.value ? O("", !0) : q((n(), a("input", {
|
|
1753
1780
|
key: 0,
|
|
1754
1781
|
type: "text",
|
|
@@ -1759,19 +1786,20 @@ const et = oe("SunIcon", [
|
|
|
1759
1786
|
ref: $,
|
|
1760
1787
|
onFocus: k,
|
|
1761
1788
|
onInput: w,
|
|
1762
|
-
tabindex: "-1"
|
|
1763
|
-
|
|
1789
|
+
tabindex: "-1",
|
|
1790
|
+
disabled: t.disabled
|
|
1791
|
+
}, null, 40, Cl)), [
|
|
1764
1792
|
[ne, y.value]
|
|
1765
1793
|
])
|
|
1766
1794
|
]),
|
|
1767
|
-
r.value ? (n(), ue(F(
|
|
1795
|
+
r.value ? (n(), ue(F(Qe), {
|
|
1768
1796
|
key: 0,
|
|
1769
1797
|
class: V({ "rotate-180": f.value }),
|
|
1770
1798
|
size: 20
|
|
1771
1799
|
}, null, 8, ["class"])) : O("", !0)
|
|
1772
|
-
], 42,
|
|
1773
|
-
q(
|
|
1774
|
-
|
|
1800
|
+
], 42, xl),
|
|
1801
|
+
q(s("div", Ml, [
|
|
1802
|
+
s("ul", Dl, [
|
|
1775
1803
|
(n(!0), a(B, null, A(z.value, (I, D) => (n(), a("li", {
|
|
1776
1804
|
key: I.value,
|
|
1777
1805
|
onMousedown: ee((P) => W(I), ["prevent"]),
|
|
@@ -1780,24 +1808,24 @@ const et = oe("SunIcon", [
|
|
|
1780
1808
|
role: "option",
|
|
1781
1809
|
"aria-selected": p.value && p.value.value === I.value
|
|
1782
1810
|
}, [
|
|
1783
|
-
|
|
1784
|
-
], 40,
|
|
1811
|
+
s("a", null, C(I.text), 1)
|
|
1812
|
+
], 40, Il))), 128))
|
|
1785
1813
|
])
|
|
1786
1814
|
], 512), [
|
|
1787
1815
|
[Ne, f.value && z.value.length > 0]
|
|
1788
1816
|
])
|
|
1789
1817
|
], 512));
|
|
1790
1818
|
}
|
|
1791
|
-
},
|
|
1819
|
+
}, Tl = { class: "w-full max-w-xs form-control" }, Vl = {
|
|
1792
1820
|
key: 0,
|
|
1793
1821
|
class: "label"
|
|
1794
|
-
},
|
|
1822
|
+
}, Bl = { class: "label-text" }, Ol = ["type", "placeholder", "disabled", "value"], zl = {
|
|
1795
1823
|
key: 1,
|
|
1796
1824
|
class: "label"
|
|
1797
|
-
},
|
|
1825
|
+
}, Al = { class: "label-text-alt text-error validator-hint" }, Pl = {
|
|
1798
1826
|
key: 2,
|
|
1799
1827
|
class: "label"
|
|
1800
|
-
},
|
|
1828
|
+
}, El = { class: "label-text-alt text-success validator-hint" }, Tn = /* @__PURE__ */ L({
|
|
1801
1829
|
__name: "inputField",
|
|
1802
1830
|
props: {
|
|
1803
1831
|
modelValue: { default: "" },
|
|
@@ -1805,22 +1833,23 @@ const et = oe("SunIcon", [
|
|
|
1805
1833
|
placeholder: { default: "" },
|
|
1806
1834
|
type: { default: "text" },
|
|
1807
1835
|
rules: { default: () => ({}) },
|
|
1808
|
-
needsValidation: {},
|
|
1836
|
+
needsValidation: { type: Boolean, default: !1 },
|
|
1809
1837
|
successMessage: { default: "" },
|
|
1810
1838
|
size: { default: "md" },
|
|
1811
1839
|
color: { default: "" },
|
|
1812
|
-
style: { default: "" }
|
|
1840
|
+
style: { default: "" },
|
|
1841
|
+
disabled: { type: Boolean, default: !1 }
|
|
1813
1842
|
},
|
|
1814
1843
|
emits: ["update:modelValue", "validate"],
|
|
1815
|
-
setup(i, { expose:
|
|
1816
|
-
const t = i,
|
|
1844
|
+
setup(i, { expose: d, emit: e }) {
|
|
1845
|
+
const t = i, o = e, l = x(null), r = x(!1), y = x(""), p = E(() => {
|
|
1817
1846
|
var M, z, N, K;
|
|
1818
1847
|
let v = !0, k = "";
|
|
1819
1848
|
const _ = t.modelValue;
|
|
1820
|
-
return (M = t.rules) != null && M.required && (_ == null || _ === "") && (v = !1, k = "This field is required."), v && ((z = t.rules) == null ? void 0 : z.minLength) !== void 0 && typeof _ == "string" && _.length < t.rules.minLength && (v = !1, k = `Must be at least ${t.rules.minLength} characters.`), v && ((N = t.rules) == null ? void 0 : N.maxLength) !== void 0 && typeof _ == "string" && _.length > t.rules.maxLength && (v = !1, k = `Cannot exceed ${t.rules.maxLength} characters.`), v && ((K = t.rules) != null && K.email) && typeof _ == "string" && _ && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_) || (v = !1, k = "Please enter a valid email address.")), y.value = k,
|
|
1849
|
+
return (M = t.rules) != null && M.required && (_ == null || _ === "") && (v = !1, k = "This field is required."), v && ((z = t.rules) == null ? void 0 : z.minLength) !== void 0 && typeof _ == "string" && _.length < t.rules.minLength && (v = !1, k = `Must be at least ${t.rules.minLength} characters.`), v && ((N = t.rules) == null ? void 0 : N.maxLength) !== void 0 && typeof _ == "string" && _.length > t.rules.maxLength && (v = !1, k = `Cannot exceed ${t.rules.maxLength} characters.`), v && ((K = t.rules) != null && K.email) && typeof _ == "string" && _ && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_) || (v = !1, k = "Please enter a valid email address.")), y.value = k, o("validate", v), v;
|
|
1821
1850
|
}), f = E(() => r.value && !p.value), $ = (v) => {
|
|
1822
1851
|
const k = v.target;
|
|
1823
|
-
|
|
1852
|
+
o("update:modelValue", k.value), r.value && p.value;
|
|
1824
1853
|
}, U = () => {
|
|
1825
1854
|
r.value = !0, p.value;
|
|
1826
1855
|
};
|
|
@@ -1829,7 +1858,7 @@ const et = oe("SunIcon", [
|
|
|
1829
1858
|
() => {
|
|
1830
1859
|
r.value && p.value;
|
|
1831
1860
|
}
|
|
1832
|
-
),
|
|
1861
|
+
), d({
|
|
1833
1862
|
focusInput: () => {
|
|
1834
1863
|
var v;
|
|
1835
1864
|
console.log("inputField.vue: focusInput method called."), (v = l.value) == null || v.focus();
|
|
@@ -1837,16 +1866,17 @@ const et = oe("SunIcon", [
|
|
|
1837
1866
|
isValid: p,
|
|
1838
1867
|
isTouched: r,
|
|
1839
1868
|
errorMessage: y
|
|
1840
|
-
}), (v, k) => (n(), a("div",
|
|
1841
|
-
v.label ? (n(), a("label",
|
|
1842
|
-
|
|
1869
|
+
}), (v, k) => (n(), a("div", Tl, [
|
|
1870
|
+
v.label ? (n(), a("label", Vl, [
|
|
1871
|
+
s("span", Bl, C(v.label), 1)
|
|
1843
1872
|
])) : O("", !0),
|
|
1844
1873
|
T(v.$slots, "default"),
|
|
1845
|
-
|
|
1874
|
+
s("input", {
|
|
1846
1875
|
ref_key: "inputElement",
|
|
1847
1876
|
ref: l,
|
|
1848
1877
|
type: v.type,
|
|
1849
1878
|
placeholder: v.placeholder,
|
|
1879
|
+
disabled: t.disabled,
|
|
1850
1880
|
class: V(["input-bordered rounded-md w-full input validator", [
|
|
1851
1881
|
{
|
|
1852
1882
|
// Size classes - Apply based on size prop
|
|
@@ -1877,15 +1907,15 @@ const et = oe("SunIcon", [
|
|
|
1877
1907
|
value: v.modelValue,
|
|
1878
1908
|
onInput: $,
|
|
1879
1909
|
onBlur: U
|
|
1880
|
-
}, null, 42,
|
|
1881
|
-
f.value ? (n(), a("div",
|
|
1882
|
-
|
|
1883
|
-
])) : p.value && r.value && v.successMessage ? (n(), a("div",
|
|
1884
|
-
|
|
1910
|
+
}, null, 42, Ol),
|
|
1911
|
+
f.value ? (n(), a("div", zl, [
|
|
1912
|
+
s("span", Al, C(y.value), 1)
|
|
1913
|
+
])) : p.value && r.value && v.successMessage ? (n(), a("div", Pl, [
|
|
1914
|
+
s("span", El, C(v.successMessage), 1)
|
|
1885
1915
|
])) : O("", !0)
|
|
1886
1916
|
]));
|
|
1887
1917
|
}
|
|
1888
|
-
}),
|
|
1918
|
+
}), Vn = /* @__PURE__ */ L({
|
|
1889
1919
|
__name: "loader",
|
|
1890
1920
|
props: {
|
|
1891
1921
|
loading: { type: Boolean, default: !0 },
|
|
@@ -1894,13 +1924,13 @@ const et = oe("SunIcon", [
|
|
|
1894
1924
|
color: { default: "primary" }
|
|
1895
1925
|
},
|
|
1896
1926
|
setup(i) {
|
|
1897
|
-
const
|
|
1927
|
+
const d = i, e = x(d.loading);
|
|
1898
1928
|
return H(
|
|
1899
|
-
() =>
|
|
1929
|
+
() => d.loading,
|
|
1900
1930
|
(t) => {
|
|
1901
1931
|
e.value = t;
|
|
1902
1932
|
}
|
|
1903
|
-
), (t,
|
|
1933
|
+
), (t, o) => e.value ? (n(), a("span", {
|
|
1904
1934
|
key: 0,
|
|
1905
1935
|
class: V(["loading", [
|
|
1906
1936
|
{ "loading-xs": t.size === "xs" },
|
|
@@ -1927,13 +1957,13 @@ const et = oe("SunIcon", [
|
|
|
1927
1957
|
]])
|
|
1928
1958
|
}, null, 2)) : O("", !0);
|
|
1929
1959
|
}
|
|
1930
|
-
}),
|
|
1960
|
+
}), Ll = { class: "footer sm:footer-horizontal container" }, Ul = { class: "footer-title" }, Rl = ["href"], Nl = {
|
|
1931
1961
|
key: 0,
|
|
1932
1962
|
class: "sm:hidden w-full"
|
|
1933
|
-
},
|
|
1963
|
+
}, jl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Fl = {
|
|
1934
1964
|
tabindex: "0",
|
|
1935
1965
|
class: "collapse collapse-plus w-full"
|
|
1936
|
-
},
|
|
1966
|
+
}, ql = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Hl = { class: "collapse-content flex w-full text-sm" }, Wl = { class: "flex flex-col gap-2.5" }, Kl = { class: "w-full" }, Yl = ["href"], Jl = { class: "w-full" }, Bn = /* @__PURE__ */ L({
|
|
1937
1967
|
__name: "footer",
|
|
1938
1968
|
props: {
|
|
1939
1969
|
items: {},
|
|
@@ -1942,118 +1972,118 @@ const et = oe("SunIcon", [
|
|
|
1942
1972
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1943
1973
|
},
|
|
1944
1974
|
setup(i) {
|
|
1945
|
-
const
|
|
1975
|
+
const d = i;
|
|
1946
1976
|
return (e, t) => (n(), a("div", {
|
|
1947
1977
|
class: V(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1948
1978
|
}, [
|
|
1949
|
-
|
|
1950
|
-
(n(!0), a(B, null, A(
|
|
1979
|
+
s("footer", Ll, [
|
|
1980
|
+
(n(!0), a(B, null, A(d.items, (o) => (n(), a("nav", {
|
|
1951
1981
|
class: V([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
1952
1982
|
}, [
|
|
1953
|
-
|
|
1954
|
-
(n(!0), a(B, null, A(
|
|
1983
|
+
s("h6", Ul, C(o.title), 1),
|
|
1984
|
+
(n(!0), a(B, null, A(o.items, (l) => (n(), a("a", {
|
|
1955
1985
|
class: "link link-hover",
|
|
1956
1986
|
href: l.link
|
|
1957
|
-
}, C(l.text), 9,
|
|
1987
|
+
}, C(l.text), 9, Rl))), 256))
|
|
1958
1988
|
], 2))), 256)),
|
|
1959
|
-
e.collapseOnMobile ? (n(), a("nav",
|
|
1960
|
-
(n(!0), a(B, null, A(
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
(n(!0), a(B, null, A(
|
|
1966
|
-
|
|
1989
|
+
e.collapseOnMobile ? (n(), a("nav", Nl, [
|
|
1990
|
+
(n(!0), a(B, null, A(d.items, (o) => (n(), a("ul", jl, [
|
|
1991
|
+
s("div", Fl, [
|
|
1992
|
+
s("div", ql, C(o.title), 1),
|
|
1993
|
+
s("div", Hl, [
|
|
1994
|
+
s("ul", Wl, [
|
|
1995
|
+
(n(!0), a(B, null, A(o.items, (l) => (n(), a("li", Kl, [
|
|
1996
|
+
s("a", {
|
|
1967
1997
|
class: "w-full font-medium link link-hover",
|
|
1968
1998
|
href: l.link
|
|
1969
|
-
}, C(l.text), 9,
|
|
1999
|
+
}, C(l.text), 9, Yl)
|
|
1970
2000
|
]))), 256))
|
|
1971
2001
|
])
|
|
1972
2002
|
])
|
|
1973
2003
|
])
|
|
1974
2004
|
]))), 256))
|
|
1975
2005
|
])) : O("", !0),
|
|
1976
|
-
|
|
2006
|
+
s("aside", Jl, [
|
|
1977
2007
|
T(e.$slots, "default")
|
|
1978
2008
|
])
|
|
1979
2009
|
])
|
|
1980
2010
|
], 2));
|
|
1981
2011
|
}
|
|
1982
|
-
}),
|
|
1983
|
-
function
|
|
1984
|
-
return n(), a("div",
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
2012
|
+
}), Gl = {}, Xl = { class: "min-h-40 container hero" }, Zl = { class: "px-0! text-center hero-content" }, Ql = { class: "mt-9 text-4xl" };
|
|
2013
|
+
function en(i, d) {
|
|
2014
|
+
return n(), a("div", Xl, [
|
|
2015
|
+
s("div", Zl, [
|
|
2016
|
+
s("div", null, [
|
|
2017
|
+
s("h1", Ql, [
|
|
1988
2018
|
T(i.$slots, "title", {}, () => [
|
|
1989
|
-
|
|
2019
|
+
d[0] || (d[0] = ke("hero title"))
|
|
1990
2020
|
])
|
|
1991
2021
|
]),
|
|
1992
|
-
|
|
2022
|
+
s("p", null, [
|
|
1993
2023
|
T(i.$slots, "description", { class: "py-9" })
|
|
1994
2024
|
]),
|
|
1995
2025
|
T(i.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
1996
|
-
|
|
2026
|
+
d[1] || (d[1] = s("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
1997
2027
|
])
|
|
1998
2028
|
])
|
|
1999
2029
|
])
|
|
2000
2030
|
]);
|
|
2001
2031
|
}
|
|
2002
|
-
const
|
|
2032
|
+
const On = /* @__PURE__ */ te(Gl, [["render", en]]), tn = { class: "flex flex-row place-content-center gap-4 categories" }, ln = ["onClick"], zn = /* @__PURE__ */ L({
|
|
2003
2033
|
__name: "categoryNavigation",
|
|
2004
2034
|
props: {
|
|
2005
2035
|
searchOptions: {},
|
|
2006
2036
|
currentCategory: {}
|
|
2007
2037
|
},
|
|
2008
2038
|
emits: ["update:currentCategory"],
|
|
2009
|
-
setup(i, { emit:
|
|
2010
|
-
const e = i, t =
|
|
2011
|
-
function
|
|
2039
|
+
setup(i, { emit: d }) {
|
|
2040
|
+
const e = i, t = d;
|
|
2041
|
+
function o(l) {
|
|
2012
2042
|
t("update:currentCategory", l);
|
|
2013
2043
|
}
|
|
2014
|
-
return (l, r) => (n(), a("div",
|
|
2044
|
+
return (l, r) => (n(), a("div", tn, [
|
|
2015
2045
|
(n(!0), a(B, null, A(e.searchOptions, (y) => (n(), a("div", {
|
|
2016
2046
|
key: y.category
|
|
2017
2047
|
}, [
|
|
2018
|
-
|
|
2019
|
-
onClick: (p) =>
|
|
2048
|
+
s("button", {
|
|
2049
|
+
onClick: (p) => o(y.category),
|
|
2020
2050
|
class: V(["truncate btn btn-ghost", { "font-semibold": e.currentCategory === y.category }])
|
|
2021
|
-
}, C(y.category), 11,
|
|
2051
|
+
}, C(y.category), 11, ln)
|
|
2022
2052
|
]))), 128))
|
|
2023
2053
|
]));
|
|
2024
2054
|
}
|
|
2025
|
-
}),
|
|
2055
|
+
}), nn = { class: "md:flex hidden navbar-start" }, an = { class: "md:flex justify-center items-center hidden navbar-center" }, on = { class: "md:flex hidden navbar-end" }, sn = { class: "navbar-bottom md:flex hidden" }, rn = /* @__PURE__ */ L({
|
|
2026
2056
|
__name: "navigationBar",
|
|
2027
2057
|
props: {
|
|
2028
2058
|
isCollapsed: { type: Boolean, default: !0 }
|
|
2029
2059
|
},
|
|
2030
2060
|
setup(i) {
|
|
2031
|
-
const
|
|
2061
|
+
const d = i;
|
|
2032
2062
|
return (e, t) => (n(), a("nav", {
|
|
2033
|
-
class: V(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",
|
|
2063
|
+
class: V(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", d.isCollapsed ? "collapsed" : ""])
|
|
2034
2064
|
}, [
|
|
2035
|
-
|
|
2065
|
+
s("div", nn, [
|
|
2036
2066
|
T(e.$slots, "start", {}, void 0, !0)
|
|
2037
2067
|
]),
|
|
2038
|
-
|
|
2068
|
+
s("div", an, [
|
|
2039
2069
|
T(e.$slots, "center", {}, void 0, !0)
|
|
2040
2070
|
]),
|
|
2041
|
-
|
|
2071
|
+
s("div", on, [
|
|
2042
2072
|
T(e.$slots, "end", {}, void 0, !0)
|
|
2043
2073
|
]),
|
|
2044
|
-
|
|
2074
|
+
s("div", sn, [
|
|
2045
2075
|
T(e.$slots, "bottom", {}, void 0, !0)
|
|
2046
2076
|
])
|
|
2047
2077
|
], 2));
|
|
2048
2078
|
}
|
|
2049
|
-
}),
|
|
2079
|
+
}), An = /* @__PURE__ */ te(rn, [["__scopeId", "data-v-8ddb2b45"]]), un = {
|
|
2050
2080
|
key: 0,
|
|
2051
2081
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
2052
|
-
},
|
|
2082
|
+
}, dn = ["onClick", "aria-selected"], cn = {
|
|
2053
2083
|
key: 0,
|
|
2054
2084
|
role: "tabpanel",
|
|
2055
2085
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
2056
|
-
},
|
|
2086
|
+
}, pn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, Pn = /* @__PURE__ */ L({
|
|
2057
2087
|
__name: "tab",
|
|
2058
2088
|
props: {
|
|
2059
2089
|
items: {},
|
|
@@ -2062,10 +2092,10 @@ const Vn = /* @__PURE__ */ te(Yl, [["render", Zl]]), Ql = { class: "flex flex-ro
|
|
|
2062
2092
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
2063
2093
|
},
|
|
2064
2094
|
emits: ["tab-changed"],
|
|
2065
|
-
setup(i, { emit:
|
|
2066
|
-
const e = i, t = x(e.items[0]),
|
|
2095
|
+
setup(i, { emit: d }) {
|
|
2096
|
+
const e = i, t = x(e.items[0]), o = d;
|
|
2067
2097
|
function l(p) {
|
|
2068
|
-
t.value = p,
|
|
2098
|
+
t.value = p, o("tab-changed", p);
|
|
2069
2099
|
}
|
|
2070
2100
|
function r() {
|
|
2071
2101
|
const f = (e.items.indexOf(t.value) + 1) % e.items.length;
|
|
@@ -2082,62 +2112,62 @@ const Vn = /* @__PURE__ */ te(Yl, [["render", Zl]]), Ql = { class: "flex flex-ro
|
|
|
2082
2112
|
r();
|
|
2083
2113
|
}, e.rotateTabsAfter * 1e3);
|
|
2084
2114
|
}), (p, f) => (n(), a(B, null, [
|
|
2085
|
-
|
|
2115
|
+
s("div", {
|
|
2086
2116
|
role: "tablist",
|
|
2087
2117
|
class: V(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": p.buttonOnlyMode }])
|
|
2088
2118
|
}, [
|
|
2089
|
-
p.withControlls ? (n(), a("div",
|
|
2090
|
-
|
|
2119
|
+
p.withControlls ? (n(), a("div", un, [
|
|
2120
|
+
s("button", {
|
|
2091
2121
|
onClick: f[0] || (f[0] = ($) => y()),
|
|
2092
2122
|
class: "cursor-pointer"
|
|
2093
2123
|
}, "Previous"),
|
|
2094
|
-
|
|
2124
|
+
s("button", {
|
|
2095
2125
|
onClick: f[1] || (f[1] = ($) => r()),
|
|
2096
2126
|
class: "text-primary cursor-pointer"
|
|
2097
2127
|
}, "Next")
|
|
2098
2128
|
])) : O("", !0),
|
|
2099
2129
|
(n(!0), a(B, null, A(p.items, ($) => (n(), a(B, null, [
|
|
2100
|
-
|
|
2130
|
+
s("a", {
|
|
2101
2131
|
type: "button",
|
|
2102
2132
|
role: "tab",
|
|
2103
2133
|
class: V(["min-w-max tab", $ === t.value ? "bg-primary text-base-100" : ""]),
|
|
2104
2134
|
onClick: (U) => l($),
|
|
2105
2135
|
"aria-selected": t.value == $
|
|
2106
|
-
}, C($), 11,
|
|
2107
|
-
p.buttonOnlyMode ? O("", !0) : (n(), a("div",
|
|
2136
|
+
}, C($), 11, dn),
|
|
2137
|
+
p.buttonOnlyMode ? O("", !0) : (n(), a("div", cn, [
|
|
2108
2138
|
T(p.$slots, `${$}-tab`)
|
|
2109
2139
|
]))
|
|
2110
2140
|
], 64))), 256))
|
|
2111
2141
|
], 2),
|
|
2112
|
-
|
|
2142
|
+
s("div", pn, [
|
|
2113
2143
|
T(p.$slots, "default")
|
|
2114
2144
|
])
|
|
2115
2145
|
], 64));
|
|
2116
2146
|
}
|
|
2117
2147
|
});
|
|
2118
2148
|
export {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2149
|
+
yn as Accordion,
|
|
2150
|
+
xn as AdvancedSearch,
|
|
2151
|
+
wn as Avatar,
|
|
2152
|
+
kn as Badge,
|
|
2153
|
+
fn as ButtonComponent,
|
|
2154
|
+
$n as Card,
|
|
2155
|
+
_n as Carousel,
|
|
2156
|
+
Sn as CarouselItem,
|
|
2157
|
+
zn as CategoryNavigation,
|
|
2158
|
+
dl as DatetimePicker,
|
|
2159
|
+
mn as Dropdown,
|
|
2160
|
+
In as FilterableSelect,
|
|
2161
|
+
Bn as Footer,
|
|
2162
|
+
On as Hero,
|
|
2163
|
+
Tn as InputField,
|
|
2164
|
+
Vn as Loader,
|
|
2165
|
+
gn as Modal,
|
|
2166
|
+
An as NavigationBar,
|
|
2167
|
+
Cn as Rating,
|
|
2168
|
+
Dn as Selector,
|
|
2169
|
+
hn as Swap,
|
|
2170
|
+
Pn as Tab,
|
|
2171
|
+
Mn as TagInput,
|
|
2172
|
+
bn as ThemeController
|
|
2143
2173
|
};
|