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