manolis-ui 0.17.4 → 0.17.6
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 +474 -469
- package/dist/manolis-ui.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as _, computed as Q, createElementBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as _, computed as Q, createElementBlock as r, openBlock as o, normalizeClass as D, createCommentVNode as B, renderSlot as E, createTextVNode as Le, createElementVNode as n, Fragment as K, renderList as J, toDisplayString as j, ref as g, watch as U, h as ze, onMounted as fe, withDirectives as be, createVNode as ie, isRef as Fe, vModelCheckbox as qe, unref as oe, provide as Ue, onUnmounted as Te, normalizeStyle as pe, Transition as Ve, withCtx as we, inject as He, useId as We, defineAsyncComponent as Se, nextTick as ce, onBeforeUnmount as Be, withModifiers as se, createBlock as de, resolveDynamicComponent as Ce, mergeProps as Ie, withKeys as ve, resolveComponent as Me, vModelText as je, useSlots as Ke, Comment as Xe, vShow as Ye } from "vue";
|
|
2
|
+
const Ge = ["disabled"], Je = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, fn = /* @__PURE__ */ _({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -64,7 +64,7 @@ const Ye = ["disabled"], Ge = {
|
|
|
64
64
|
return "";
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
return (a,
|
|
67
|
+
return (a, u) => (o(), r("button", {
|
|
68
68
|
class: D([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": v.outlined },
|
|
@@ -75,16 +75,16 @@ const Ye = ["disabled"], Ge = {
|
|
|
75
75
|
]),
|
|
76
76
|
disabled: v.disabled
|
|
77
77
|
}, [
|
|
78
|
-
e.loading ? (o(),
|
|
78
|
+
e.loading ? (o(), r("span", Je)) : B("", !0),
|
|
79
79
|
E(a.$slots, "default", {}, () => [
|
|
80
|
-
|
|
80
|
+
u[0] || (u[0] = Le("Submit", -1))
|
|
81
81
|
])
|
|
82
|
-
], 10,
|
|
82
|
+
], 10, Ge));
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), Ze = {
|
|
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
|
+
}, Qe = ["href"], mn = /* @__PURE__ */ _({
|
|
88
88
|
__name: "dropdown",
|
|
89
89
|
props: {
|
|
90
90
|
items: {},
|
|
@@ -103,7 +103,7 @@ const Ye = ["disabled"], Ge = {
|
|
|
103
103
|
start: "",
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = e;
|
|
106
|
-
return (s, a) => (o(),
|
|
106
|
+
return (s, a) => (o(), r("div", {
|
|
107
107
|
class: D(["dropdown", v[t.position], l[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
109
|
E(s.$slots, "default", {
|
|
@@ -112,17 +112,17 @@ const Ye = ["disabled"], Ge = {
|
|
|
112
112
|
}, () => [
|
|
113
113
|
a[0] || (a[0] = n("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
114
114
|
]),
|
|
115
|
-
n("ul",
|
|
116
|
-
(o(!0),
|
|
115
|
+
n("ul", Ze, [
|
|
116
|
+
(o(!0), r(K, null, J(e.items, (u) => (o(), r("li", null, [
|
|
117
117
|
n("a", {
|
|
118
|
-
href:
|
|
119
|
-
}, j(
|
|
118
|
+
href: u.link
|
|
119
|
+
}, j(u.text), 9, Qe)
|
|
120
120
|
]))), 256)),
|
|
121
121
|
E(s.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
125
|
-
}),
|
|
125
|
+
}), et = { class: "modal-box" }, tt = { class: "modal-action" }, pn = /* @__PURE__ */ _({
|
|
126
126
|
__name: "modal",
|
|
127
127
|
props: {
|
|
128
128
|
position: { default: "center" },
|
|
@@ -135,24 +135,24 @@ const Ye = ["disabled"], Ge = {
|
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
137
|
}, t = g(null), s = () => {
|
|
138
|
-
var
|
|
139
|
-
(
|
|
138
|
+
var u;
|
|
139
|
+
(u = t.value) == null || u.showModal();
|
|
140
140
|
}, a = () => {
|
|
141
|
-
var
|
|
142
|
-
(
|
|
141
|
+
var u;
|
|
142
|
+
(u = t.value) == null || u.close();
|
|
143
143
|
};
|
|
144
|
-
return
|
|
144
|
+
return U(
|
|
145
145
|
() => v.forceOpen,
|
|
146
|
-
(
|
|
147
|
-
|
|
146
|
+
(u) => {
|
|
147
|
+
u == !0 && s(), u == !1 && a();
|
|
148
148
|
}
|
|
149
|
-
), (
|
|
150
|
-
v.forceOpen == null ? (o(),
|
|
149
|
+
), (u, p) => (o(), r(K, null, [
|
|
150
|
+
v.forceOpen == null ? (o(), r("span", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
153
|
onClick: s
|
|
154
154
|
}, [
|
|
155
|
-
E(
|
|
155
|
+
E(u.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
p[0] || (p[0] = n("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : B("", !0),
|
|
@@ -161,16 +161,16 @@ const Ye = ["disabled"], Ge = {
|
|
|
161
161
|
ref: t,
|
|
162
162
|
class: D(["modal", l[v.position]])
|
|
163
163
|
}, [
|
|
164
|
-
n("div",
|
|
165
|
-
E(
|
|
166
|
-
n("div",
|
|
167
|
-
E(
|
|
164
|
+
n("div", et, [
|
|
165
|
+
E(u.$slots, "default"),
|
|
166
|
+
n("div", tt, [
|
|
167
|
+
E(u.$slots, "actions"),
|
|
168
168
|
n("form", {
|
|
169
169
|
method: "dialog",
|
|
170
170
|
onSubmit: a,
|
|
171
171
|
class: D(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
E(
|
|
173
|
+
E(u.$slots, "close-button", {}, () => [
|
|
174
174
|
p[1] || (p[1] = n("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
@@ -179,21 +179,21 @@ const Ye = ["disabled"], Ge = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}),
|
|
182
|
+
}), lt = { class: "flex justify-center items-center swap-on" }, nt = { class: "flex justify-center items-center swap-off" }, hn = /* @__PURE__ */ _({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
186
186
|
},
|
|
187
187
|
setup(e) {
|
|
188
188
|
const v = e;
|
|
189
|
-
return (l, t) => (o(),
|
|
189
|
+
return (l, t) => (o(), r("label", {
|
|
190
190
|
class: D(["swap", v.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
|
|
193
|
-
n("div",
|
|
193
|
+
n("div", lt, [
|
|
194
194
|
E(l.$slots, "on")
|
|
195
195
|
]),
|
|
196
|
-
n("div",
|
|
196
|
+
n("div", nt, [
|
|
197
197
|
E(l.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
@@ -205,14 +205,14 @@ const Ye = ["disabled"], Ge = {
|
|
|
205
205
|
* This source code is licensed under the ISC license.
|
|
206
206
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
207
|
*/
|
|
208
|
-
const
|
|
208
|
+
const at = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
209
209
|
/**
|
|
210
210
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
211
211
|
*
|
|
212
212
|
* This source code is licensed under the ISC license.
|
|
213
213
|
* See the LICENSE file in the root directory of this source tree.
|
|
214
214
|
*/
|
|
215
|
-
var
|
|
215
|
+
var ye = {
|
|
216
216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
217
217
|
width: 24,
|
|
218
218
|
height: 24,
|
|
@@ -229,18 +229,18 @@ var ge = {
|
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
231
|
*/
|
|
232
|
-
const
|
|
232
|
+
const ot = ({ size: e, strokeWidth: v = 2, absoluteStrokeWidth: l, color: t, iconNode: s, name: a, class: u, ...p }, { slots: i }) => ze(
|
|
233
233
|
"svg",
|
|
234
234
|
{
|
|
235
|
-
...
|
|
236
|
-
width: e ||
|
|
237
|
-
height: e ||
|
|
238
|
-
stroke: t ||
|
|
235
|
+
...ye,
|
|
236
|
+
width: e || ye.width,
|
|
237
|
+
height: e || ye.height,
|
|
238
|
+
stroke: t || ye.stroke,
|
|
239
239
|
"stroke-width": l ? Number(v) * 24 / Number(e) : v,
|
|
240
|
-
class: ["lucide", `lucide-${
|
|
240
|
+
class: ["lucide", `lucide-${at(a ?? "icon")}`],
|
|
241
241
|
...p
|
|
242
242
|
},
|
|
243
|
-
[...s.map((b) =>
|
|
243
|
+
[...s.map((b) => ze(...b)), ...i.default ? [i.default()] : []]
|
|
244
244
|
);
|
|
245
245
|
/**
|
|
246
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -248,8 +248,8 @@ const at = ({ size: e, strokeWidth: v = 2, absoluteStrokeWidth: l, color: t, ico
|
|
|
248
248
|
* This source code is licensed under the ISC license.
|
|
249
249
|
* See the LICENSE file in the root directory of this source tree.
|
|
250
250
|
*/
|
|
251
|
-
const
|
|
252
|
-
|
|
251
|
+
const he = (e, v) => (l, { slots: t }) => ze(
|
|
252
|
+
ot,
|
|
253
253
|
{
|
|
254
254
|
...l,
|
|
255
255
|
iconNode: v,
|
|
@@ -263,7 +263,7 @@ const pe = (e, v) => (l, { slots: t }) => Ie(
|
|
|
263
263
|
* This source code is licensed under the ISC license.
|
|
264
264
|
* See the LICENSE file in the root directory of this source tree.
|
|
265
265
|
*/
|
|
266
|
-
const
|
|
266
|
+
const st = he("CircleChevronDownIcon", [
|
|
267
267
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
268
268
|
["path", { d: "m16 10-4 4-4-4", key: "894hmk" }]
|
|
269
269
|
]);
|
|
@@ -273,7 +273,7 @@ const ot = pe("CircleChevronDownIcon", [
|
|
|
273
273
|
* This source code is licensed under the ISC license.
|
|
274
274
|
* See the LICENSE file in the root directory of this source tree.
|
|
275
275
|
*/
|
|
276
|
-
const
|
|
276
|
+
const it = he("CircleXIcon", [
|
|
277
277
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
278
278
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
279
279
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -284,7 +284,7 @@ const st = pe("CircleXIcon", [
|
|
|
284
284
|
* This source code is licensed under the ISC license.
|
|
285
285
|
* See the LICENSE file in the root directory of this source tree.
|
|
286
286
|
*/
|
|
287
|
-
const
|
|
287
|
+
const rt = he("MoonIcon", [
|
|
288
288
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
289
289
|
]);
|
|
290
290
|
/**
|
|
@@ -293,7 +293,7 @@ const it = pe("MoonIcon", [
|
|
|
293
293
|
* This source code is licensed under the ISC license.
|
|
294
294
|
* See the LICENSE file in the root directory of this source tree.
|
|
295
295
|
*/
|
|
296
|
-
const
|
|
296
|
+
const Ee = he("SearchIcon", [
|
|
297
297
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
298
298
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
299
299
|
]);
|
|
@@ -303,7 +303,7 @@ const Oe = pe("SearchIcon", [
|
|
|
303
303
|
* This source code is licensed under the ISC license.
|
|
304
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
305
305
|
*/
|
|
306
|
-
const
|
|
306
|
+
const ut = he("SunIcon", [
|
|
307
307
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
308
308
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
309
309
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -313,44 +313,44 @@ const rt = pe("SunIcon", [
|
|
|
313
313
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
314
314
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
315
315
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
316
|
-
]),
|
|
316
|
+
]), dt = (e, v) => {
|
|
317
317
|
const l = g(null);
|
|
318
|
-
return
|
|
318
|
+
return fe(() => {
|
|
319
319
|
if (typeof window < "u") {
|
|
320
320
|
const t = window.localStorage.getItem(e);
|
|
321
321
|
l.value = t ? JSON.parse(t) : v;
|
|
322
322
|
}
|
|
323
|
-
}),
|
|
323
|
+
}), U(l, (t) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(t));
|
|
325
325
|
}), l;
|
|
326
|
-
},
|
|
326
|
+
}, ct = { class: "swap-rotate swap" }, vt = ["true-value", "false-value"], gn = /* @__PURE__ */ _({
|
|
327
327
|
__name: "theme-controller",
|
|
328
328
|
props: {
|
|
329
329
|
lightTheme: { default: "light" },
|
|
330
330
|
darkTheme: { default: "dark" }
|
|
331
331
|
},
|
|
332
332
|
setup(e) {
|
|
333
|
-
const v = e, l =
|
|
333
|
+
const v = e, l = dt("theme", v.lightTheme);
|
|
334
334
|
function t(s) {
|
|
335
335
|
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", s);
|
|
336
336
|
}
|
|
337
|
-
return
|
|
337
|
+
return fe(() => t(l.value ? l.value : "")), U(l, (s) => {
|
|
338
338
|
t(s);
|
|
339
|
-
}), (s, a) => (o(),
|
|
340
|
-
|
|
339
|
+
}), (s, a) => (o(), r("label", ct, [
|
|
340
|
+
be(n("input", {
|
|
341
341
|
type: "checkbox",
|
|
342
342
|
class: "theme-controller",
|
|
343
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
343
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => Fe(l) ? l.value = u : null),
|
|
344
344
|
"true-value": v.lightTheme,
|
|
345
345
|
"false-value": v.darkTheme
|
|
346
|
-
}, null, 8,
|
|
347
|
-
[
|
|
346
|
+
}, null, 8, vt), [
|
|
347
|
+
[qe, oe(l)]
|
|
348
348
|
]),
|
|
349
|
-
ie(oe(
|
|
350
|
-
ie(oe(
|
|
349
|
+
ie(oe(ut), { class: "swap-off fill-current" }),
|
|
350
|
+
ie(oe(rt), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), ft = ["name"], mt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, pt = { class: "collapse-content" }, ht = ["innerHTML"], yn = /* @__PURE__ */ _({
|
|
354
354
|
__name: "accordion",
|
|
355
355
|
props: {
|
|
356
356
|
name: {},
|
|
@@ -360,7 +360,7 @@ const rt = pe("SunIcon", [
|
|
|
360
360
|
},
|
|
361
361
|
setup(e) {
|
|
362
362
|
const v = e;
|
|
363
|
-
return (l, t) => (o(!0),
|
|
363
|
+
return (l, t) => (o(!0), r(K, null, J(v.items, (s, a) => (o(), r("div", {
|
|
364
364
|
class: D(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
365
365
|
key: a
|
|
366
366
|
}, [
|
|
@@ -368,16 +368,16 @@ const rt = pe("SunIcon", [
|
|
|
368
368
|
type: "radio",
|
|
369
369
|
name: e.name,
|
|
370
370
|
value: "true"
|
|
371
|
-
}, null, 8,
|
|
372
|
-
n("div",
|
|
373
|
-
n("div",
|
|
371
|
+
}, null, 8, ft),
|
|
372
|
+
n("div", mt, j(s.title), 1),
|
|
373
|
+
n("div", pt, [
|
|
374
374
|
n("span", {
|
|
375
375
|
innerHTML: s.content
|
|
376
|
-
}, null, 8,
|
|
376
|
+
}, null, 8, ht)
|
|
377
377
|
])
|
|
378
378
|
], 2))), 128));
|
|
379
379
|
}
|
|
380
|
-
}),
|
|
380
|
+
}), gt = ["src"], yt = { class: "text-xl" }, bn = /* @__PURE__ */ _({
|
|
381
381
|
__name: "avatar",
|
|
382
382
|
props: {
|
|
383
383
|
image: {},
|
|
@@ -387,31 +387,31 @@ const rt = pe("SunIcon", [
|
|
|
387
387
|
},
|
|
388
388
|
setup(e) {
|
|
389
389
|
const v = e, l = g(v.onlineStatus);
|
|
390
|
-
return
|
|
390
|
+
return U(
|
|
391
391
|
() => v.onlineStatus,
|
|
392
392
|
(t) => {
|
|
393
393
|
t && (l.value = t);
|
|
394
394
|
}
|
|
395
|
-
), (t, s) => (o(),
|
|
395
|
+
), (t, s) => (o(), r("div", {
|
|
396
396
|
class: D(["avatar", [{ "avatar-online": l.value === "online" }, { "avatar-offline": l.value === "offline" }]])
|
|
397
397
|
}, [
|
|
398
|
-
e.image ? (o(),
|
|
398
|
+
e.image ? (o(), r("div", {
|
|
399
399
|
key: 0,
|
|
400
400
|
class: D(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
401
401
|
}, [
|
|
402
402
|
n("img", {
|
|
403
403
|
src: e.image,
|
|
404
404
|
class: "w-full h-full"
|
|
405
|
-
}, null, 8,
|
|
406
|
-
], 2)) : (o(),
|
|
405
|
+
}, null, 8, gt)
|
|
406
|
+
], 2)) : (o(), r("div", {
|
|
407
407
|
key: 1,
|
|
408
408
|
class: D(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
409
409
|
}, [
|
|
410
|
-
n("p",
|
|
410
|
+
n("p", yt, j(e.initials), 1)
|
|
411
411
|
], 2))
|
|
412
412
|
], 2));
|
|
413
413
|
}
|
|
414
|
-
}),
|
|
414
|
+
}), wn = /* @__PURE__ */ _({
|
|
415
415
|
__name: "badge",
|
|
416
416
|
props: {
|
|
417
417
|
color: { default: "neutral" },
|
|
@@ -435,25 +435,25 @@ const rt = pe("SunIcon", [
|
|
|
435
435
|
warning: "badge-warning",
|
|
436
436
|
error: "badge-error"
|
|
437
437
|
};
|
|
438
|
-
return (s, a) => (o(),
|
|
438
|
+
return (s, a) => (o(), r("span", {
|
|
439
439
|
class: D(["badge", l[v.size], t[v.color], { "badge-outline": v.outline }])
|
|
440
440
|
}, [
|
|
441
441
|
E(s.$slots, "default")
|
|
442
442
|
], 2));
|
|
443
443
|
}
|
|
444
|
-
}),
|
|
444
|
+
}), bt = ["src", "alt"], wt = {
|
|
445
445
|
key: 0,
|
|
446
446
|
class: "card-body"
|
|
447
|
-
},
|
|
447
|
+
}, xt = {
|
|
448
448
|
key: 0,
|
|
449
449
|
class: "group-hover:text-primary text-lg text-left cursor-pointer card-title"
|
|
450
|
-
},
|
|
450
|
+
}, kt = {
|
|
451
451
|
key: 1,
|
|
452
452
|
class: "text-left"
|
|
453
|
-
},
|
|
453
|
+
}, $t = { class: "flex-col flex-nowrap mt-auto card-actions" }, St = {
|
|
454
454
|
key: 1,
|
|
455
455
|
class: "card-body"
|
|
456
|
-
},
|
|
456
|
+
}, xn = /* @__PURE__ */ _({
|
|
457
457
|
__name: "card",
|
|
458
458
|
props: {
|
|
459
459
|
imgUrl: { default: "" },
|
|
@@ -471,12 +471,12 @@ const rt = pe("SunIcon", [
|
|
|
471
471
|
},
|
|
472
472
|
setup(e) {
|
|
473
473
|
const v = e, l = g(v.outlined);
|
|
474
|
-
return
|
|
474
|
+
return U(
|
|
475
475
|
() => v.outlined,
|
|
476
476
|
(t) => {
|
|
477
477
|
l.value = t;
|
|
478
478
|
}
|
|
479
|
-
), (t, s) => (o(),
|
|
479
|
+
), (t, s) => (o(), r("div", {
|
|
480
480
|
class: D(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
481
481
|
{ "border-4 border-primary": l.value },
|
|
482
482
|
e.color ?? "",
|
|
@@ -487,7 +487,7 @@ const rt = pe("SunIcon", [
|
|
|
487
487
|
n("figure", {
|
|
488
488
|
class: D([{ "contents!": e.horizontal && e.imgWidth }])
|
|
489
489
|
}, [
|
|
490
|
-
e.imgUrl || e.imgUrl && !e.loading ? (o(),
|
|
490
|
+
e.imgUrl || e.imgUrl && !e.loading ? (o(), r("img", {
|
|
491
491
|
key: 0,
|
|
492
492
|
src: e.imgUrl,
|
|
493
493
|
alt: e.alt,
|
|
@@ -498,21 +498,21 @@ const rt = pe("SunIcon", [
|
|
|
498
498
|
!e.horizontal && e.imgHeight ? e.imgHeight : "h-full",
|
|
499
499
|
e.horizontal && e.imgWidth ? e.imgWidth : "w-full"
|
|
500
500
|
]])
|
|
501
|
-
}, null, 10,
|
|
502
|
-
e.loading && e.imgUrl ? (o(),
|
|
501
|
+
}, null, 10, bt)) : B("", !0),
|
|
502
|
+
e.loading && e.imgUrl ? (o(), r("div", {
|
|
503
503
|
key: 1,
|
|
504
504
|
class: D(["w-full skeleton", e.imgHeight])
|
|
505
505
|
}, null, 2)) : B("", !0)
|
|
506
506
|
], 2),
|
|
507
|
-
e.loading ? B("", !0) : (o(),
|
|
508
|
-
e.title ? (o(),
|
|
507
|
+
e.loading ? B("", !0) : (o(), r("div", wt, [
|
|
508
|
+
e.title ? (o(), r("h2", xt, j(e.title), 1)) : B("", !0),
|
|
509
509
|
E(t.$slots, "details"),
|
|
510
|
-
e.description ? (o(),
|
|
511
|
-
n("div",
|
|
510
|
+
e.description ? (o(), r("p", kt, j(e.description), 1)) : B("", !0),
|
|
511
|
+
n("div", $t, [
|
|
512
512
|
E(t.$slots, "actions")
|
|
513
513
|
])
|
|
514
514
|
])),
|
|
515
|
-
e.loading ? (o(),
|
|
515
|
+
e.loading ? (o(), r("div", St, [...s[0] || (s[0] = [
|
|
516
516
|
n("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
517
517
|
n("div", { class: "w-28 h-4 skeleton" }),
|
|
518
518
|
n("div", { class: "w-full h-4 skeleton" }),
|
|
@@ -521,16 +521,17 @@ const rt = pe("SunIcon", [
|
|
|
521
521
|
])])) : B("", !0)
|
|
522
522
|
], 2));
|
|
523
523
|
}
|
|
524
|
-
}),
|
|
524
|
+
}), Pe = Symbol("CarouselItemStyle"), Ct = { class: "relative h-full" }, It = {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "flex-shrink-0"
|
|
527
|
-
},
|
|
527
|
+
}, Mt = {
|
|
528
528
|
key: 0,
|
|
529
529
|
class: "flex-shrink-0"
|
|
530
|
-
},
|
|
530
|
+
}, zt = {
|
|
531
531
|
key: 1,
|
|
532
|
+
id: "carousel-indicators",
|
|
532
533
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
533
|
-
},
|
|
534
|
+
}, Tt = ["onClick", "aria-label"], Bt = /* @__PURE__ */ _({
|
|
534
535
|
__name: "carousel",
|
|
535
536
|
props: {
|
|
536
537
|
showIndicators: {
|
|
@@ -586,81 +587,81 @@ const rt = pe("SunIcon", [
|
|
|
586
587
|
}
|
|
587
588
|
},
|
|
588
589
|
setup(e, { expose: v }) {
|
|
589
|
-
const l = e, t = g(l.initialSlide), s = g(null), a = g(null),
|
|
590
|
-
const $ = Object.keys(l.breakpoints).map(Number).sort((
|
|
590
|
+
const l = e, t = g(l.initialSlide), s = g(null), a = g(null), u = g(0), p = g(!1), i = g(0), b = g(0), I = g(!1), A = g(0), k = g(0), c = g(0), O = g(0), S = g(0), W = g(0), F = g(0), X = g(null), Z = g(null), le = g(0), f = Q(() => {
|
|
591
|
+
const $ = Object.keys(l.breakpoints).map(Number).sort((P, R) => P - R);
|
|
591
592
|
let C = {};
|
|
592
|
-
for (const
|
|
593
|
-
b.value >=
|
|
593
|
+
for (const P of $)
|
|
594
|
+
b.value >= P && (C = { ...C, ...l.breakpoints[P] });
|
|
594
595
|
return C;
|
|
595
596
|
}), m = Q(() => f.value.slidesPerView ?? l.slidesPerView), x = Q(() => f.value.gap ?? l.gap), L = Q(() => {
|
|
596
|
-
const $ = l.sliderOrientation === "horizontal",
|
|
597
|
+
const $ = l.sliderOrientation === "horizontal", P = `calc((100% - ${m.value > 1 ? (m.value - 1) * x.value : 0}px) / ${m.value})`;
|
|
597
598
|
return $ ? {
|
|
598
|
-
width:
|
|
599
|
-
} : { height:
|
|
599
|
+
width: P
|
|
600
|
+
} : { height: P };
|
|
600
601
|
});
|
|
601
|
-
|
|
602
|
+
Ue(Pe, L);
|
|
602
603
|
const d = () => {
|
|
603
|
-
a.value ?
|
|
604
|
+
a.value ? i.value = a.value.children.length : i.value = 0;
|
|
604
605
|
}, V = () => {
|
|
605
606
|
if (!s.value || m.value <= 0) return 0;
|
|
606
|
-
const C = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight,
|
|
607
|
-
return C <= 0 ? 0 : (C -
|
|
607
|
+
const C = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight, P = (m.value - 1) * x.value;
|
|
608
|
+
return C <= 0 ? 0 : (C - P) / m.value;
|
|
608
609
|
}, w = Q(() => {
|
|
609
|
-
if (!s.value ||
|
|
610
|
-
const C = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight,
|
|
610
|
+
if (!s.value || i.value === 0 || m.value === 0) return 0;
|
|
611
|
+
const C = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight, P = V(), R = i.value * (P + x.value) - x.value;
|
|
611
612
|
return Math.max(0, R - C);
|
|
612
613
|
}), z = async ($, C = !1) => {
|
|
613
|
-
if (!s.value || m.value <= 0 || p.value || (d(),
|
|
614
|
-
const
|
|
615
|
-
if (
|
|
616
|
-
const R =
|
|
614
|
+
if (!s.value || m.value <= 0 || p.value || (d(), i.value === 0)) return;
|
|
615
|
+
const P = V();
|
|
616
|
+
if (P <= 0) return;
|
|
617
|
+
const R = P + x.value, H = w.value;
|
|
617
618
|
let N = $;
|
|
618
|
-
l.infinite ? N = ($ %
|
|
619
|
-
const te = N * R, Y = l.infinite ? te : Math.max(0, Math.min(te,
|
|
619
|
+
l.infinite ? N = ($ % i.value + i.value) % i.value : N = Math.max(0, Math.min($, i.value - m.value));
|
|
620
|
+
const te = N * R, Y = l.infinite ? te : Math.max(0, Math.min(te, H));
|
|
620
621
|
if (C || l.slideDuration === 0) {
|
|
621
|
-
a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`),
|
|
622
|
+
a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`), u.value = Y, t.value = N, p.value = !1, l.autoplay && G();
|
|
622
623
|
return;
|
|
623
624
|
}
|
|
624
625
|
p.value = !0;
|
|
625
|
-
const
|
|
626
|
+
const ue = u.value, ke = Y - ue, Ae = performance.now(), De = (Re) => {
|
|
626
627
|
if (!a.value) return;
|
|
627
|
-
const
|
|
628
|
-
a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${
|
|
628
|
+
const Ne = Re - Ae, Oe = Math.min(1, Ne / l.slideDuration), _e = 1 - Math.pow(1 - Oe, 3), $e = ue + ke * _e;
|
|
629
|
+
a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-$e}px, 0, 0)` : `translate3d(0, ${-$e}px, 0)`, u.value = $e, Oe < 1 ? X.value = requestAnimationFrame(De) : (a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`, u.value = Y, t.value = N, p.value = !1, l.autoplay && G(), X.value = null);
|
|
629
630
|
};
|
|
630
|
-
X.value = requestAnimationFrame(
|
|
631
|
+
X.value = requestAnimationFrame(De);
|
|
631
632
|
}, ee = () => {
|
|
632
|
-
l.infinite && t.value >=
|
|
633
|
+
l.infinite && t.value >= i.value - m.value ? z(0) : z(t.value + 1);
|
|
633
634
|
}, ne = () => {
|
|
634
|
-
l.infinite && t.value <= 0 ? z(
|
|
635
|
+
l.infinite && t.value <= 0 ? z(i.value - m.value) : z(t.value - 1);
|
|
635
636
|
}, re = ($) => {
|
|
636
637
|
z($);
|
|
637
638
|
}, h = ($) => {
|
|
638
639
|
p.value && X.value && (l.autoplay && q(), cancelAnimationFrame(X.value), p.value = !1), I.value = !0;
|
|
639
640
|
const C = "touches" in $ ? $.touches[0] : $;
|
|
640
|
-
|
|
641
|
+
A.value = C.clientX, k.value = C.clientY, c.value = u.value, O.value = 0, S.value = 0, W.value = 0, F.value = performance.now(), s.value && (s.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", y), document.addEventListener("mouseup", M), document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", M);
|
|
641
642
|
}, y = ($) => {
|
|
642
643
|
if (!I.value || !a.value || !s.value) return;
|
|
643
644
|
$.cancelable && $.preventDefault();
|
|
644
|
-
const C = "touches" in $ ? $.touches[0] : $,
|
|
645
|
-
let
|
|
645
|
+
const C = "touches" in $ ? $.touches[0] : $, P = performance.now(), R = P - F.value;
|
|
646
|
+
let H;
|
|
646
647
|
if (l.sliderOrientation === "horizontal") {
|
|
647
|
-
const N = C.clientX, te = N - (S.value ||
|
|
648
|
+
const N = C.clientX, te = N - (S.value || A.value);
|
|
648
649
|
R > 0 && (O.value = te / R * 1e3);
|
|
649
|
-
const Y = N -
|
|
650
|
-
|
|
650
|
+
const Y = N - A.value;
|
|
651
|
+
H = c.value - Y, S.value = N;
|
|
651
652
|
} else {
|
|
652
653
|
const N = C.clientY, te = N - (W.value || k.value);
|
|
653
654
|
R > 0 && (O.value = te / R * 1e3);
|
|
654
655
|
const Y = N - k.value;
|
|
655
|
-
|
|
656
|
+
H = c.value - Y, W.value = N;
|
|
656
657
|
}
|
|
657
|
-
|
|
658
|
+
H < 0 ? H = H * 0.3 : H > w.value && (H = w.value + (H - w.value) * 0.3), le.value = H, a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-le.value}px, 0, 0)` : `translate3d(0, ${-le.value}px, 0)`, F.value = P;
|
|
658
659
|
}, M = () => {
|
|
659
660
|
if (!I.value || !s.value || !a.value) return;
|
|
660
|
-
const C = l.sliderOrientation === "horizontal" ? c.value - (S.value -
|
|
661
|
-
if (I.value = !1, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", M), document.removeEventListener("touchend", M),
|
|
661
|
+
const C = l.sliderOrientation === "horizontal" ? c.value - (S.value - A.value) : c.value - (W.value - k.value), P = Math.max(0, Math.min(C, w.value)), R = V() + x.value;
|
|
662
|
+
if (I.value = !1, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", M), document.removeEventListener("touchend", M), u.value = P, l.infinite) {
|
|
662
663
|
if (C < 0) {
|
|
663
|
-
z(
|
|
664
|
+
z(i.value - 1);
|
|
664
665
|
return;
|
|
665
666
|
} else if (C > w.value) {
|
|
666
667
|
z(0);
|
|
@@ -670,16 +671,16 @@ const rt = pe("SunIcon", [
|
|
|
670
671
|
z(0);
|
|
671
672
|
return;
|
|
672
673
|
} else if (C > w.value) {
|
|
673
|
-
const Y = Math.max(0,
|
|
674
|
+
const Y = Math.max(0, i.value - Math.floor(m.value));
|
|
674
675
|
z(Y);
|
|
675
676
|
return;
|
|
676
677
|
}
|
|
677
|
-
const
|
|
678
|
+
const H = Math.max(0, i.value - Math.floor(m.value)), N = 100, te = Math.round(P / R);
|
|
678
679
|
if (Math.abs(O.value) > N) {
|
|
679
|
-
const Y = -Math.sign(O.value),
|
|
680
|
-
z(Math.max(0, Math.min(
|
|
680
|
+
const Y = -Math.sign(O.value), ue = te + Y;
|
|
681
|
+
z(Math.max(0, Math.min(H, ue)));
|
|
681
682
|
} else
|
|
682
|
-
z(Math.max(0, Math.min(
|
|
683
|
+
z(Math.max(0, Math.min(H, te)));
|
|
683
684
|
}, T = () => {
|
|
684
685
|
!l.autoplay || Z.value !== null || (Z.value = setInterval(() => {
|
|
685
686
|
ee();
|
|
@@ -692,35 +693,39 @@ const rt = pe("SunIcon", [
|
|
|
692
693
|
}, 500);
|
|
693
694
|
}, ae = () => {
|
|
694
695
|
b.value = window.innerWidth;
|
|
695
|
-
},
|
|
696
|
-
if (!s.value || m.value <= 0 || (d(),
|
|
696
|
+
}, xe = () => {
|
|
697
|
+
if (!s.value || m.value <= 0 || (d(), i.value === 0)) return;
|
|
697
698
|
const $ = V();
|
|
698
699
|
if ($ <= 0) return;
|
|
699
|
-
const C = Math.max(0,
|
|
700
|
-
a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-N}px, 0, 0)` : `translate3d(0, ${-N}px, 0)`),
|
|
700
|
+
const C = Math.max(0, i.value - m.value), P = Math.min(Math.max(0, l.initialSlide), C), R = P * ($ + x.value), H = w.value, N = Math.max(0, Math.min(R, H));
|
|
701
|
+
a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-N}px, 0, 0)` : `translate3d(0, ${-N}px, 0)`), u.value = N, t.value = P;
|
|
701
702
|
};
|
|
702
|
-
|
|
703
|
+
Te(() => {
|
|
703
704
|
window.removeEventListener("resize", ae);
|
|
704
|
-
})
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
705
|
+
});
|
|
706
|
+
let ge = !1;
|
|
707
|
+
return fe(() => {
|
|
708
|
+
var C, P, R, H, N, te, Y, ue;
|
|
709
|
+
b.value = window.innerWidth;
|
|
710
|
+
const $ = U(i, (ke) => {
|
|
711
|
+
ke > 0 && !ge && (xe(), ge = !0, $());
|
|
712
|
+
});
|
|
713
|
+
l.autoplay && T(), window.addEventListener("resize", ae), d(), (C = s.value) == null || C.addEventListener("mousedown", h), (P = s.value) == null || P.addEventListener("touchstart", h, { passive: !0 }), l.showNavigationButtons && ((N = (H = (R = s.value) == null ? void 0 : R.parentElement) == null ? void 0 : H.querySelector(".absolute.flex.justify-between")) == null || N.addEventListener("click", G)), l.showIndicators && ((ue = (Y = (te = s.value) == null ? void 0 : te.parentElement) == null ? void 0 : Y.querySelector(".bottom-5.flex.justify-center")) == null || ue.addEventListener("click", G));
|
|
714
|
+
}), Te(() => {
|
|
710
715
|
window.removeEventListener("resize", ae);
|
|
711
|
-
}),
|
|
716
|
+
}), U(() => l.autoplay, ($) => {
|
|
712
717
|
$ ? T() : q();
|
|
713
|
-
}),
|
|
718
|
+
}), U(() => l.autoplayInterval, G), U(() => l.initialSlide, ($) => {
|
|
714
719
|
requestAnimationFrame(() => z($, !0));
|
|
715
|
-
}),
|
|
720
|
+
}), U([m, x], () => {
|
|
716
721
|
requestAnimationFrame(() => {
|
|
717
722
|
requestAnimationFrame(() => {
|
|
718
|
-
if (d(),
|
|
719
|
-
const $ = Math.max(0,
|
|
723
|
+
if (d(), i.value === 0) return;
|
|
724
|
+
const $ = Math.max(0, i.value - m.value), C = Math.min(t.value, $);
|
|
720
725
|
z(C, !0);
|
|
721
726
|
});
|
|
722
727
|
});
|
|
723
|
-
}), v({ scrollToSlide: z }), ($, C) => (o(),
|
|
728
|
+
}), v({ scrollToSlide: z }), ($, C) => (o(), r("div", Ct, [
|
|
724
729
|
n("div", {
|
|
725
730
|
ref_key: "carouselContainer",
|
|
726
731
|
ref: s,
|
|
@@ -731,18 +736,18 @@ const rt = pe("SunIcon", [
|
|
|
731
736
|
ref_key: "slidesContainer",
|
|
732
737
|
ref: a,
|
|
733
738
|
class: D(["w-full h-full transition-transform duration-0 ease-out", e.sliderOrientation === "horizontal" ? "flex" : "block"]),
|
|
734
|
-
style:
|
|
739
|
+
style: pe({ gap: `${x.value}px` })
|
|
735
740
|
}, [
|
|
736
741
|
E($.$slots, "default", {}, void 0, !0)
|
|
737
742
|
], 6)
|
|
738
743
|
], 2),
|
|
739
|
-
e.showNavigationButtons ? (o(),
|
|
744
|
+
e.showNavigationButtons ? (o(), r("div", {
|
|
740
745
|
key: 0,
|
|
741
746
|
class: D([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
|
|
742
747
|
}, [
|
|
743
|
-
ie(
|
|
744
|
-
default:
|
|
745
|
-
l.infinite || t.value > 0 ? (o(),
|
|
748
|
+
ie(Ve, { name: "fade" }, {
|
|
749
|
+
default: we(() => [
|
|
750
|
+
l.infinite || t.value > 0 ? (o(), r("div", It, [
|
|
746
751
|
n("div", {
|
|
747
752
|
onClick: ne,
|
|
748
753
|
role: "button",
|
|
@@ -760,9 +765,9 @@ const rt = pe("SunIcon", [
|
|
|
760
765
|
_: 3
|
|
761
766
|
}),
|
|
762
767
|
C[2] || (C[2] = n("div", { class: "flex-grow" }, null, -1)),
|
|
763
|
-
ie(
|
|
764
|
-
default:
|
|
765
|
-
l.infinite || t.value <
|
|
768
|
+
ie(Ve, { name: "fade" }, {
|
|
769
|
+
default: we(() => [
|
|
770
|
+
l.infinite || t.value < i.value - m.value ? (o(), r("div", Mt, [
|
|
766
771
|
n("div", {
|
|
767
772
|
onClick: ee,
|
|
768
773
|
role: "button",
|
|
@@ -780,51 +785,51 @@ const rt = pe("SunIcon", [
|
|
|
780
785
|
_: 3
|
|
781
786
|
})
|
|
782
787
|
], 2)) : B("", !0),
|
|
783
|
-
e.showIndicators ? (o(),
|
|
784
|
-
(o(!0),
|
|
788
|
+
e.showIndicators ? (o(), r("div", zt, [
|
|
789
|
+
(o(!0), r(K, null, J(i.value, (P, R) => (o(), r("button", {
|
|
785
790
|
key: `dot-${R}`,
|
|
786
|
-
onClick: (
|
|
791
|
+
onClick: (H) => re(R),
|
|
787
792
|
class: D(["btn btn-circle btn-xs", { "btn-active": R === t.value }]),
|
|
788
793
|
"aria-label": `Go to slide ${R + 1}`
|
|
789
|
-
}, null, 10,
|
|
794
|
+
}, null, 10, Tt))), 128))
|
|
790
795
|
])) : B("", !0)
|
|
791
796
|
]));
|
|
792
797
|
}
|
|
793
|
-
}),
|
|
798
|
+
}), me = (e, v) => {
|
|
794
799
|
const l = e.__vccOpts || e;
|
|
795
800
|
for (const [t, s] of v)
|
|
796
801
|
l[t] = s;
|
|
797
802
|
return l;
|
|
798
|
-
},
|
|
803
|
+
}, kn = /* @__PURE__ */ me(Bt, [["__scopeId", "data-v-c1c93443"]]), Dt = /* @__PURE__ */ _({
|
|
799
804
|
__name: "carouselItem",
|
|
800
805
|
setup(e) {
|
|
801
|
-
const v =
|
|
802
|
-
return (l, t) => (o(),
|
|
806
|
+
const v = He(Pe, g({}));
|
|
807
|
+
return (l, t) => (o(), r("div", {
|
|
803
808
|
class: "w-full h-full carousel-item",
|
|
804
|
-
style:
|
|
809
|
+
style: pe(oe(v))
|
|
805
810
|
}, [
|
|
806
811
|
E(l.$slots, "default", {}, void 0, !0)
|
|
807
812
|
], 4));
|
|
808
813
|
}
|
|
809
|
-
}),
|
|
814
|
+
}), $n = /* @__PURE__ */ me(Dt, [["__scopeId", "data-v-507384bc"]]), Ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Vt = ["onClick"], Et = {
|
|
810
815
|
key: 0,
|
|
811
816
|
class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
|
|
812
|
-
},
|
|
817
|
+
}, Lt = {
|
|
813
818
|
key: 1,
|
|
814
819
|
class: "flex flex-col"
|
|
815
|
-
},
|
|
820
|
+
}, jt = { class: "text-sm" }, Pt = {
|
|
816
821
|
key: 0,
|
|
817
822
|
class: "opacity-75 overflow-hidden text-xs truncate ..."
|
|
818
823
|
}, At = {
|
|
819
824
|
key: 1,
|
|
820
825
|
class: "hidden md:block opacity-35 overflow-hidden text-xs truncate ..."
|
|
821
|
-
},
|
|
826
|
+
}, Rt = { class: "hidden" }, Nt = ["id"], _t = { class: "modal-box" }, Ft = { class: "font-bold text-lg" }, qt = ["name", "checked"], Ut = { class: "collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl" }, Ht = {
|
|
822
827
|
key: 0,
|
|
823
828
|
class: "opacity-75 overflow-hidden text-sm truncate ..."
|
|
824
|
-
},
|
|
829
|
+
}, Wt = {
|
|
825
830
|
key: 1,
|
|
826
831
|
class: "opacity-35 text-sm"
|
|
827
|
-
},
|
|
832
|
+
}, Kt = { class: "collapse-content flex place-content-center p-0" }, Xt = /* @__PURE__ */ _({
|
|
828
833
|
__name: "advancedSearch",
|
|
829
834
|
props: {
|
|
830
835
|
searchOptions: {},
|
|
@@ -834,19 +839,19 @@ const rt = pe("SunIcon", [
|
|
|
834
839
|
},
|
|
835
840
|
emits: ["search", "update:search-data"],
|
|
836
841
|
setup(e, { emit: v }) {
|
|
837
|
-
const l = e, t = v, s = l.id ?? `advancedSearch-${
|
|
838
|
-
datetime:
|
|
839
|
-
"standard-select":
|
|
842
|
+
const l = e, t = v, s = l.id ?? `advancedSearch-${We()}`, a = g(null), u = g(null), p = {
|
|
843
|
+
datetime: Se(() => Promise.resolve().then(() => dl)),
|
|
844
|
+
"standard-select": Se(() => import("./select-Cz4vf_YE.js")),
|
|
840
845
|
// Add other components here when you create them:
|
|
841
846
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
842
847
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
843
|
-
"custom-text":
|
|
848
|
+
"custom-text": Se(() => import("./inputField-BxT95oyM.js"))
|
|
844
849
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
845
|
-
},
|
|
850
|
+
}, i = g({}), b = g({
|
|
846
851
|
left: "0px",
|
|
847
852
|
top: "0px",
|
|
848
853
|
transform: "translateX(0%)"
|
|
849
|
-
}), I = g(null),
|
|
854
|
+
}), I = g(null), A = (f) => {
|
|
850
855
|
var m;
|
|
851
856
|
if (f.value === void 0 || f.value === null || f.value === "")
|
|
852
857
|
return "";
|
|
@@ -920,7 +925,7 @@ const rt = pe("SunIcon", [
|
|
|
920
925
|
async function S(f) {
|
|
921
926
|
var L;
|
|
922
927
|
const m = document.getElementById(`advancedSearchMobile-${s}`), x = m && m.contains(f.target);
|
|
923
|
-
((L = a.value) == null ? void 0 : L.displayMode) === "popup" && I.value && !I.value.contains(f.target) && !x && (await
|
|
928
|
+
((L = a.value) == null ? void 0 : L.displayMode) === "popup" && I.value && !I.value.contains(f.target) && !x && (await ce(), a.value = null);
|
|
924
929
|
}
|
|
925
930
|
async function W() {
|
|
926
931
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
@@ -941,8 +946,8 @@ const rt = pe("SunIcon", [
|
|
|
941
946
|
const m = f.displayMode ?? "popup";
|
|
942
947
|
if (((x = a.value) == null ? void 0 : x.name) === f.name && ((L = a.value) == null ? void 0 : L.displayMode) === m)
|
|
943
948
|
a.value = null;
|
|
944
|
-
else if (a.value = { ...f, displayMode: m }, await
|
|
945
|
-
const V =
|
|
949
|
+
else if (a.value = { ...f, displayMode: m }, await ce(), ((d = a.value) == null ? void 0 : d.displayMode) === "popup") {
|
|
950
|
+
const V = i.value[f.name];
|
|
946
951
|
if (V && I.value) {
|
|
947
952
|
const w = V.getBoundingClientRect(), z = I.value.getBoundingClientRect(), ee = w.bottom - z.top, ne = w.left + w.width / 2 - z.left;
|
|
948
953
|
b.value = {
|
|
@@ -970,14 +975,14 @@ const rt = pe("SunIcon", [
|
|
|
970
975
|
}, Z = () => {
|
|
971
976
|
console.log("Enter key pressed on inline component, closing inline view."), a.value = null;
|
|
972
977
|
};
|
|
973
|
-
|
|
978
|
+
U(u, (f) => {
|
|
974
979
|
var m;
|
|
975
980
|
console.log(
|
|
976
981
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
977
982
|
f
|
|
978
983
|
), console.log("advanced-search: activeTab.value:", a.value), f && ((m = a.value) == null ? void 0 : m.displayMode) === "inline" ? (console.log(
|
|
979
984
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
980
|
-
),
|
|
985
|
+
), ce(() => {
|
|
981
986
|
console.log(
|
|
982
987
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
983
988
|
), console.log("advanced-search: Type of newValue:", typeof f), console.log(
|
|
@@ -992,9 +997,9 @@ const rt = pe("SunIcon", [
|
|
|
992
997
|
})) : console.log(
|
|
993
998
|
f ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
|
|
994
999
|
);
|
|
995
|
-
}),
|
|
1000
|
+
}), fe(() => {
|
|
996
1001
|
document.addEventListener("click", S), window.addEventListener("resize", le);
|
|
997
|
-
}),
|
|
1002
|
+
}), Be(() => {
|
|
998
1003
|
document.removeEventListener("click", S), window.removeEventListener("resize", le);
|
|
999
1004
|
});
|
|
1000
1005
|
const le = () => {
|
|
@@ -1012,7 +1017,7 @@ const rt = pe("SunIcon", [
|
|
|
1012
1017
|
};
|
|
1013
1018
|
return (f, m) => {
|
|
1014
1019
|
var x, L;
|
|
1015
|
-
return o(),
|
|
1020
|
+
return o(), r(K, null, [
|
|
1016
1021
|
n("div", {
|
|
1017
1022
|
ref_key: "searchContainer",
|
|
1018
1023
|
ref: I,
|
|
@@ -1022,12 +1027,12 @@ const rt = pe("SunIcon", [
|
|
|
1022
1027
|
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",
|
|
1023
1028
|
onClick: W
|
|
1024
1029
|
}, [
|
|
1025
|
-
n("div",
|
|
1026
|
-
(o(!0),
|
|
1030
|
+
n("div", Ot, [
|
|
1031
|
+
(o(!0), r(K, null, J(((x = l.searchOptions.find(
|
|
1027
1032
|
(d) => d.category === l.currentCategory
|
|
1028
1033
|
)) == null ? void 0 : x.tabs) || [], (d, V) => {
|
|
1029
1034
|
var w, z, ee, ne, re;
|
|
1030
|
-
return o(),
|
|
1035
|
+
return o(), r("button", {
|
|
1031
1036
|
key: `${d.name}-${V}`,
|
|
1032
1037
|
onClick: se((h) => F(d), ["stop"]),
|
|
1033
1038
|
class: D([{
|
|
@@ -1036,32 +1041,32 @@ const rt = pe("SunIcon", [
|
|
|
1036
1041
|
// Add new class
|
|
1037
1042
|
}, "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"]),
|
|
1038
1043
|
ref_for: !0,
|
|
1039
|
-
ref: (h) =>
|
|
1044
|
+
ref: (h) => i.value[d.name] = h
|
|
1040
1045
|
}, [
|
|
1041
|
-
((ne = a.value) == null ? void 0 : ne.name) === d.name && ((re = a.value) == null ? void 0 : re.displayMode) === "inline" ? (o(),
|
|
1042
|
-
(o(),
|
|
1046
|
+
((ne = a.value) == null ? void 0 : ne.name) === d.name && ((re = a.value) == null ? void 0 : re.displayMode) === "inline" ? (o(), r("div", Et, [
|
|
1047
|
+
(o(), de(Ce(p[a.value.type]), Ie({ ref_for: !0 }, a.value.props || {}, {
|
|
1043
1048
|
modelValue: a.value.value,
|
|
1044
1049
|
onUpdated: m[0] || (m[0] = (h) => c(h)),
|
|
1045
1050
|
"onUpdate:modelValue": m[1] || (m[1] = (h) => c(h)),
|
|
1046
1051
|
onBlur: X,
|
|
1047
|
-
onKeydown:
|
|
1052
|
+
onKeydown: ve(se(Z, ["stop", "prevent"]), ["enter"]),
|
|
1048
1053
|
ref_for: !0,
|
|
1049
1054
|
ref_key: "inlineComponentRef",
|
|
1050
|
-
ref:
|
|
1055
|
+
ref: u
|
|
1051
1056
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
1052
|
-
])) : (o(),
|
|
1053
|
-
n("p",
|
|
1054
|
-
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(),
|
|
1057
|
+
])) : (o(), r("div", Lt, [
|
|
1058
|
+
n("p", jt, j(d.name), 1),
|
|
1059
|
+
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), r("p", Pt, j(A(d)), 1)) : (o(), r("p", At, j(d.description), 1))
|
|
1055
1060
|
]))
|
|
1056
|
-
], 10,
|
|
1061
|
+
], 10, Vt);
|
|
1057
1062
|
}), 128))
|
|
1058
1063
|
]),
|
|
1059
|
-
a.value && a.value.displayMode === "popup" ? (o(),
|
|
1064
|
+
a.value && a.value.displayMode === "popup" ? (o(), r("div", {
|
|
1060
1065
|
key: 0,
|
|
1061
1066
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
1062
|
-
style:
|
|
1067
|
+
style: pe(b.value)
|
|
1063
1068
|
}, [
|
|
1064
|
-
(o(),
|
|
1069
|
+
(o(), de(Ce(p[a.value.type]), Ie(a.value.props || {}, {
|
|
1065
1070
|
modelValue: a.value.value,
|
|
1066
1071
|
onUpdated: m[2] || (m[2] = (d) => k(d)),
|
|
1067
1072
|
"onUpdate:modelValue": m[3] || (m[3] = (d) => k(d))
|
|
@@ -1073,19 +1078,19 @@ const rt = pe("SunIcon", [
|
|
|
1073
1078
|
class: "ml-1 btn btn-primary btn-square",
|
|
1074
1079
|
onClick: se(O, ["stop"])
|
|
1075
1080
|
}, [
|
|
1076
|
-
ie(oe(
|
|
1081
|
+
ie(oe(Ee), {
|
|
1077
1082
|
size: 24,
|
|
1078
1083
|
color: "white"
|
|
1079
1084
|
})
|
|
1080
1085
|
])
|
|
1081
1086
|
]),
|
|
1082
|
-
n("div",
|
|
1087
|
+
n("div", Rt, [
|
|
1083
1088
|
n("button", {
|
|
1084
1089
|
title: "search",
|
|
1085
1090
|
onClick: m[4] || (m[4] = () => {
|
|
1086
1091
|
})
|
|
1087
1092
|
}, [
|
|
1088
|
-
ie(oe(
|
|
1093
|
+
ie(oe(Ee), {
|
|
1089
1094
|
size: 24,
|
|
1090
1095
|
color: "white"
|
|
1091
1096
|
})
|
|
@@ -1096,13 +1101,13 @@ const rt = pe("SunIcon", [
|
|
|
1096
1101
|
id: `advancedSearchMobile-${oe(s)}`,
|
|
1097
1102
|
class: "modal"
|
|
1098
1103
|
}, [
|
|
1099
|
-
n("div",
|
|
1104
|
+
n("div", _t, [
|
|
1100
1105
|
E(f.$slots, "additionalForMobile", {}, () => [
|
|
1101
|
-
n("h3",
|
|
1106
|
+
n("h3", Ft, j(e.currentCategory), 1)
|
|
1102
1107
|
], !0),
|
|
1103
|
-
(o(!0),
|
|
1108
|
+
(o(!0), r(K, null, J(((L = l.searchOptions.find(
|
|
1104
1109
|
(d) => d.category === l.currentCategory
|
|
1105
|
-
)) == null ? void 0 : L.tabs) || [], (d, V) => (o(),
|
|
1110
|
+
)) == null ? void 0 : L.tabs) || [], (d, V) => (o(), r("div", {
|
|
1106
1111
|
class: "collapse bg-base-200 my-4",
|
|
1107
1112
|
key: d.name
|
|
1108
1113
|
}, [
|
|
@@ -1110,14 +1115,14 @@ const rt = pe("SunIcon", [
|
|
|
1110
1115
|
type: "radio",
|
|
1111
1116
|
name: `accordion-${oe(s)}`,
|
|
1112
1117
|
checked: V === 0
|
|
1113
|
-
}, null, 8,
|
|
1114
|
-
n("div",
|
|
1118
|
+
}, null, 8, qt),
|
|
1119
|
+
n("div", Ut, [
|
|
1115
1120
|
n("div", null, j(d.name), 1),
|
|
1116
|
-
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(),
|
|
1121
|
+
d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), r("div", Ht, j(A(d)), 1)) : (o(), r("div", Wt, j(d.description), 1))
|
|
1117
1122
|
]),
|
|
1118
|
-
n("div",
|
|
1123
|
+
n("div", Kt, [
|
|
1119
1124
|
m[7] || (m[7] = n("br", null, null, -1)),
|
|
1120
|
-
(o(),
|
|
1125
|
+
(o(), de(Ce(p[d.type]), Ie({ ref_for: !0 }, d.props || {}, {
|
|
1121
1126
|
modelValue: d.value,
|
|
1122
1127
|
onUpdated: m[5] || (m[5] = (w) => k(w)),
|
|
1123
1128
|
"onUpdate:modelValue": m[6] || (m[6] = (w) => k(w))
|
|
@@ -1133,20 +1138,20 @@ const rt = pe("SunIcon", [
|
|
|
1133
1138
|
])
|
|
1134
1139
|
])
|
|
1135
1140
|
])
|
|
1136
|
-
], 8,
|
|
1141
|
+
], 8, Nt)
|
|
1137
1142
|
], 64);
|
|
1138
1143
|
};
|
|
1139
1144
|
}
|
|
1140
|
-
}),
|
|
1145
|
+
}), Sn = /* @__PURE__ */ me(Xt, [["__scopeId", "data-v-577c3624"]]), Yt = { class: "z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm" }, Gt = { key: 0 }, Jt = { key: 1 }, Zt = ["id", "onKeydown"], Qt = {
|
|
1141
1146
|
key: 2,
|
|
1142
1147
|
class: "flex justify-center p-4"
|
|
1143
|
-
},
|
|
1148
|
+
}, el = { class: "join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto" }, tl = { class: "join-item" }, ll = ["id", "disabled", "value"], nl = { class: "join-item" }, al = ["id", "disabled", "value"], ol = {
|
|
1144
1149
|
key: 3,
|
|
1145
1150
|
class: "p-4 min-w-2xs"
|
|
1146
|
-
},
|
|
1151
|
+
}, sl = ["id", "disabled", "value"], il = {
|
|
1147
1152
|
key: 4,
|
|
1148
1153
|
class: "flex px-4 my-4 w-full justify-end"
|
|
1149
|
-
},
|
|
1154
|
+
}, rl = /* @__PURE__ */ _({
|
|
1150
1155
|
__name: "datetimePicker",
|
|
1151
1156
|
props: {
|
|
1152
1157
|
mode: { default: "datetime" },
|
|
@@ -1165,7 +1170,7 @@ const rt = pe("SunIcon", [
|
|
|
1165
1170
|
},
|
|
1166
1171
|
emits: ["update:modelValue", "change"],
|
|
1167
1172
|
setup(e, { emit: v }) {
|
|
1168
|
-
const l = typeof window < "u", t = e, s = v, a = g(null),
|
|
1173
|
+
const l = typeof window < "u", t = e, s = v, a = g(null), u = g(!1), p = g(null), i = g(null), b = g(null), I = g(null), A = g(null), k = g({
|
|
1169
1174
|
from: "",
|
|
1170
1175
|
to: "",
|
|
1171
1176
|
single: ""
|
|
@@ -1229,8 +1234,8 @@ const rt = pe("SunIcon", [
|
|
|
1229
1234
|
}), Z = () => {
|
|
1230
1235
|
if (p.value)
|
|
1231
1236
|
c.value.single = p.value.value || null;
|
|
1232
|
-
else if (
|
|
1233
|
-
const h =
|
|
1237
|
+
else if (i.value) {
|
|
1238
|
+
const h = i.value.value;
|
|
1234
1239
|
if (typeof h == "string" && h.includes("/")) {
|
|
1235
1240
|
const [y, M] = h.split("/");
|
|
1236
1241
|
c.value.start = y || null, c.value.end = M || null;
|
|
@@ -1246,8 +1251,8 @@ const rt = pe("SunIcon", [
|
|
|
1246
1251
|
return M && T ? { start: M, end: T } : null;
|
|
1247
1252
|
if (t.mode === "datetime") {
|
|
1248
1253
|
if (!M || !T) return null;
|
|
1249
|
-
const ae = q ? `${q}:00` : "00:00:00",
|
|
1250
|
-
return { start:
|
|
1254
|
+
const ae = q ? `${q}:00` : "00:00:00", xe = G ? `${G}:00` : "23:59:59", ge = `${M}T${ae}`, $ = `${T}T${xe}`;
|
|
1255
|
+
return { start: ge, end: $ };
|
|
1251
1256
|
}
|
|
1252
1257
|
return null;
|
|
1253
1258
|
}
|
|
@@ -1267,81 +1272,81 @@ const rt = pe("SunIcon", [
|
|
|
1267
1272
|
const h = f();
|
|
1268
1273
|
s("update:modelValue", h), s("change", h);
|
|
1269
1274
|
}, x = () => {
|
|
1270
|
-
|
|
1275
|
+
ce(() => {
|
|
1271
1276
|
m();
|
|
1272
1277
|
});
|
|
1273
1278
|
}, L = (h) => {
|
|
1274
1279
|
const y = h.target;
|
|
1275
|
-
t.range ? y === I.value ? k.value.from = y.value : y ===
|
|
1280
|
+
t.range ? y === I.value ? k.value.from = y.value : y === A.value && (k.value.to = y.value) : k.value.single = y.value, m();
|
|
1276
1281
|
}, d = () => {
|
|
1277
|
-
|
|
1282
|
+
u.value = !u.value;
|
|
1278
1283
|
}, V = () => {
|
|
1279
|
-
m(),
|
|
1284
|
+
m(), u.value = !1;
|
|
1280
1285
|
}, w = (h) => {
|
|
1281
|
-
!t.popup || !
|
|
1286
|
+
!t.popup || !u.value || setTimeout(() => {
|
|
1282
1287
|
const y = a.value, M = h.target, T = `date-picker-${t.id}-popup`;
|
|
1283
1288
|
y && !y.contains(M) && !h.target.closest(`#${T}`) && V();
|
|
1284
1289
|
}, 0);
|
|
1285
1290
|
}, z = () => {
|
|
1286
1291
|
V();
|
|
1287
1292
|
}, ee = () => {
|
|
1288
|
-
m(), t.popup && (
|
|
1293
|
+
m(), t.popup && (u.value = !1);
|
|
1289
1294
|
}, ne = () => {
|
|
1290
1295
|
if (!l) return;
|
|
1291
|
-
const h = t.range ?
|
|
1296
|
+
const h = t.range ? i.value : p.value;
|
|
1292
1297
|
h && typeof h.navigate == "function" && h.navigate(-1);
|
|
1293
1298
|
}, re = () => {
|
|
1294
1299
|
if (!l) return;
|
|
1295
|
-
const h = t.range ?
|
|
1300
|
+
const h = t.range ? i.value : p.value;
|
|
1296
1301
|
h && typeof h.navigate == "function" && h.navigate(1);
|
|
1297
1302
|
};
|
|
1298
|
-
return
|
|
1303
|
+
return fe(() => {
|
|
1299
1304
|
l && import("./cally-ZU3K2Th7.js").catch((h) => {
|
|
1300
1305
|
console.warn("Failed to load cally:", h);
|
|
1301
1306
|
}), F();
|
|
1302
|
-
}),
|
|
1303
|
-
if (await
|
|
1307
|
+
}), U(c, async (h) => {
|
|
1308
|
+
if (await ce(), p.value && h.single) {
|
|
1304
1309
|
const y = h.single;
|
|
1305
1310
|
p.value.value !== y && (p.value.value = y);
|
|
1306
1311
|
}
|
|
1307
|
-
if (
|
|
1312
|
+
if (i.value) {
|
|
1308
1313
|
const y = le();
|
|
1309
|
-
y &&
|
|
1314
|
+
y && i.value.value !== y && (i.value.value = y);
|
|
1310
1315
|
}
|
|
1311
1316
|
m();
|
|
1312
|
-
}, { immediate: !0, deep: !0 }),
|
|
1313
|
-
await
|
|
1314
|
-
}, { immediate: !0 }),
|
|
1317
|
+
}, { immediate: !0, deep: !0 }), U([c, p, i], async () => {
|
|
1318
|
+
await ce(), p.value && c.value.single && !p.value.value && (p.value.value = c.value.single), i.value && c.value.start && c.value.end && !i.value.value && (i.value.value = `${c.value.start}/${c.value.end}`), m();
|
|
1319
|
+
}, { immediate: !0 }), U([b, I, A], () => {
|
|
1315
1320
|
m();
|
|
1316
1321
|
}, { immediate: !0 }), (h, y) => {
|
|
1317
|
-
const M =
|
|
1318
|
-
return o(),
|
|
1322
|
+
const M = Me("calendar-month"), T = Me("calendar-date"), q = Me("calendar-range");
|
|
1323
|
+
return o(), r("div", {
|
|
1319
1324
|
class: "inline-block relative w-fit lg:w-full",
|
|
1320
1325
|
ref_key: "pickerContainer",
|
|
1321
1326
|
ref: a,
|
|
1322
1327
|
onMousedownCapture: w
|
|
1323
1328
|
}, [
|
|
1324
|
-
t.popup ? (o(),
|
|
1329
|
+
t.popup ? (o(), r("div", {
|
|
1325
1330
|
key: 0,
|
|
1326
1331
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1327
1332
|
onClick: y[0] || (y[0] = (G) => t.disabled ? null : d())
|
|
1328
1333
|
}, [
|
|
1329
|
-
n("div",
|
|
1330
|
-
X.value ? (o(),
|
|
1334
|
+
n("div", Yt, [
|
|
1335
|
+
X.value ? (o(), r("span", Jt, j(X.value), 1)) : (o(), r("span", Gt, j(t.placeholder), 1))
|
|
1331
1336
|
])
|
|
1332
1337
|
])) : B("", !0),
|
|
1333
|
-
|
|
1338
|
+
u.value || !t.popup ? (o(), r("div", {
|
|
1334
1339
|
key: 1,
|
|
1335
1340
|
class: D(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
|
|
1336
1341
|
id: `date-picker-${t.id}-popup`,
|
|
1337
1342
|
onKeydown: [
|
|
1338
|
-
y[1] || (y[1] =
|
|
1343
|
+
y[1] || (y[1] = ve(se(() => {
|
|
1339
1344
|
}, ["prevent", "stop"]), ["tab"])),
|
|
1340
|
-
|
|
1341
|
-
|
|
1345
|
+
ve(z, ["esc"]),
|
|
1346
|
+
ve(se(ee, ["prevent"]), ["enter"])
|
|
1342
1347
|
]
|
|
1343
1348
|
}, [
|
|
1344
|
-
!t.range && t.mode !== "time" && l ? (o(),
|
|
1349
|
+
!t.range && t.mode !== "time" && l ? (o(), de(T, {
|
|
1345
1350
|
key: 0,
|
|
1346
1351
|
class: "cally w-full",
|
|
1347
1352
|
ref_key: "datePicker",
|
|
@@ -1353,7 +1358,7 @@ const rt = pe("SunIcon", [
|
|
|
1353
1358
|
"first-day-of-week": t.firstDayOfWeek,
|
|
1354
1359
|
onChange: x
|
|
1355
1360
|
}, {
|
|
1356
|
-
default:
|
|
1361
|
+
default: we(() => [
|
|
1357
1362
|
n("button", {
|
|
1358
1363
|
slot: "previous",
|
|
1359
1364
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
@@ -1400,11 +1405,11 @@ const rt = pe("SunIcon", [
|
|
|
1400
1405
|
]),
|
|
1401
1406
|
_: 1
|
|
1402
1407
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : B("", !0),
|
|
1403
|
-
t.range && t.mode !== "time" && l ? (o(),
|
|
1408
|
+
t.range && t.mode !== "time" && l ? (o(), de(q, {
|
|
1404
1409
|
key: 1,
|
|
1405
1410
|
class: "cally w-full",
|
|
1406
1411
|
ref_key: "rangeDatePicker",
|
|
1407
|
-
ref:
|
|
1412
|
+
ref: i,
|
|
1408
1413
|
id: `${t.id}-date-range`,
|
|
1409
1414
|
min: t.min,
|
|
1410
1415
|
max: t.max,
|
|
@@ -1412,7 +1417,7 @@ const rt = pe("SunIcon", [
|
|
|
1412
1417
|
"first-day-of-week": t.firstDayOfWeek,
|
|
1413
1418
|
onChange: x
|
|
1414
1419
|
}, {
|
|
1415
|
-
default:
|
|
1420
|
+
default: we(() => [
|
|
1416
1421
|
n("button", {
|
|
1417
1422
|
slot: "previous",
|
|
1418
1423
|
class: "btn-outline btn btn-primary md:btn-sm",
|
|
@@ -1459,9 +1464,9 @@ const rt = pe("SunIcon", [
|
|
|
1459
1464
|
]),
|
|
1460
1465
|
_: 1
|
|
1461
1466
|
}, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : B("", !0),
|
|
1462
|
-
t.range && t.mode !== "date" ? (o(),
|
|
1463
|
-
n("div",
|
|
1464
|
-
n("div",
|
|
1467
|
+
t.range && t.mode !== "date" ? (o(), r("div", Qt, [
|
|
1468
|
+
n("div", el, [
|
|
1469
|
+
n("div", tl, [
|
|
1465
1470
|
n("input", {
|
|
1466
1471
|
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1467
1472
|
type: "time",
|
|
@@ -1472,7 +1477,7 @@ const rt = pe("SunIcon", [
|
|
|
1472
1477
|
onChange: L,
|
|
1473
1478
|
disabled: t.disabled,
|
|
1474
1479
|
value: k.value.from || ""
|
|
1475
|
-
}, null, 40,
|
|
1480
|
+
}, null, 40, ll)
|
|
1476
1481
|
]),
|
|
1477
1482
|
y[6] || (y[6] = n("svg", {
|
|
1478
1483
|
class: "join-item",
|
|
@@ -1486,21 +1491,21 @@ const rt = pe("SunIcon", [
|
|
|
1486
1491
|
}, [
|
|
1487
1492
|
n("path", { d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" })
|
|
1488
1493
|
], -1)),
|
|
1489
|
-
n("div",
|
|
1494
|
+
n("div", nl, [
|
|
1490
1495
|
n("input", {
|
|
1491
1496
|
class: "text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",
|
|
1492
1497
|
type: "time",
|
|
1493
1498
|
ref_key: "timeToInput",
|
|
1494
|
-
ref:
|
|
1499
|
+
ref: A,
|
|
1495
1500
|
id: `${t.id}-time-to`,
|
|
1496
1501
|
onChange: L,
|
|
1497
1502
|
disabled: t.disabled,
|
|
1498
1503
|
value: k.value.to || ""
|
|
1499
|
-
}, null, 40,
|
|
1504
|
+
}, null, 40, al)
|
|
1500
1505
|
])
|
|
1501
1506
|
])
|
|
1502
1507
|
])) : B("", !0),
|
|
1503
|
-
!t.range && t.mode !== "date" ? (o(),
|
|
1508
|
+
!t.range && t.mode !== "date" ? (o(), r("div", ol, [
|
|
1504
1509
|
n("input", {
|
|
1505
1510
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1506
1511
|
type: "time",
|
|
@@ -1510,22 +1515,22 @@ const rt = pe("SunIcon", [
|
|
|
1510
1515
|
onChange: L,
|
|
1511
1516
|
disabled: t.disabled,
|
|
1512
1517
|
value: k.value.single || ""
|
|
1513
|
-
}, null, 40,
|
|
1518
|
+
}, null, 40, sl)
|
|
1514
1519
|
])) : B("", !0),
|
|
1515
|
-
t.popup && t.closeText ? (o(),
|
|
1520
|
+
t.popup && t.closeText ? (o(), r("div", il, [
|
|
1516
1521
|
n("button", {
|
|
1517
1522
|
class: "btn btn-primary max-lg:w-full",
|
|
1518
1523
|
onClick: V
|
|
1519
1524
|
}, j(t.closeText), 1)
|
|
1520
1525
|
])) : B("", !0)
|
|
1521
|
-
], 42,
|
|
1526
|
+
], 42, Zt)) : B("", !0)
|
|
1522
1527
|
], 544);
|
|
1523
1528
|
};
|
|
1524
1529
|
}
|
|
1525
|
-
}),
|
|
1530
|
+
}), ul = /* @__PURE__ */ me(rl, [["__scopeId", "data-v-e0b34494"]]), dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1526
1531
|
__proto__: null,
|
|
1527
|
-
default:
|
|
1528
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1532
|
+
default: ul
|
|
1533
|
+
}, Symbol.toStringTag, { value: "Module" })), cl = ["value", "checked", "onChange", "disabled"], Cn = /* @__PURE__ */ _({
|
|
1529
1534
|
__name: "rating",
|
|
1530
1535
|
props: {
|
|
1531
1536
|
initialRating: { default: 0 },
|
|
@@ -1539,7 +1544,7 @@ const rt = pe("SunIcon", [
|
|
|
1539
1544
|
},
|
|
1540
1545
|
setup(e) {
|
|
1541
1546
|
const v = e, l = g(v.initialRating);
|
|
1542
|
-
|
|
1547
|
+
U(
|
|
1543
1548
|
() => v.initialRating,
|
|
1544
1549
|
(s) => {
|
|
1545
1550
|
l.value = s;
|
|
@@ -1548,24 +1553,24 @@ const rt = pe("SunIcon", [
|
|
|
1548
1553
|
const t = (s) => {
|
|
1549
1554
|
l.value = s;
|
|
1550
1555
|
};
|
|
1551
|
-
return (s, a) => (o(),
|
|
1556
|
+
return (s, a) => (o(), r("div", {
|
|
1552
1557
|
class: D(["rating", [
|
|
1553
1558
|
`rating-${v.size}`,
|
|
1554
1559
|
{ "rating-half": e.halfStars },
|
|
1555
1560
|
{ "pointer-events-none": !e.isInteractive }
|
|
1556
1561
|
]])
|
|
1557
1562
|
}, [
|
|
1558
|
-
(o(!0),
|
|
1559
|
-
key:
|
|
1563
|
+
(o(!0), r(K, null, J(e.numberOfStars * (e.halfStars ? 2 : 1), (u) => (o(), r("input", {
|
|
1564
|
+
key: u,
|
|
1560
1565
|
type: "radio",
|
|
1561
|
-
value: e.halfStars ?
|
|
1562
|
-
checked: l.value === (e.halfStars ?
|
|
1563
|
-
onChange: (p) => e.isInteractive ? t(e.halfStars ?
|
|
1566
|
+
value: e.halfStars ? u * 0.5 : u,
|
|
1567
|
+
checked: l.value === (e.halfStars ? u * 0.5 : u),
|
|
1568
|
+
onChange: (p) => e.isInteractive ? t(e.halfStars ? u * 0.5 : u) : null,
|
|
1564
1569
|
class: D(["mask", [
|
|
1565
1570
|
{
|
|
1566
1571
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1567
|
-
"mask-half-1": e.halfStars &&
|
|
1568
|
-
"mask-half-2": e.halfStars &&
|
|
1572
|
+
"mask-half-1": e.halfStars && u % 2 !== 0,
|
|
1573
|
+
"mask-half-2": e.halfStars && u % 2 === 0,
|
|
1569
1574
|
"cursor-pointer": e.isInteractive,
|
|
1570
1575
|
"cursor-default": !e.isInteractive,
|
|
1571
1576
|
"mask-star": e.shape === "star",
|
|
@@ -1582,16 +1587,16 @@ const rt = pe("SunIcon", [
|
|
|
1582
1587
|
"mask-triangle-3": e.shape === "triangle-left",
|
|
1583
1588
|
"mask-triangle-4": e.shape === "triangle-right"
|
|
1584
1589
|
},
|
|
1585
|
-
l.value >= (e.halfStars ?
|
|
1590
|
+
l.value >= (e.halfStars ? u * 0.5 : u) ? v.color : ""
|
|
1586
1591
|
]]),
|
|
1587
|
-
style:
|
|
1588
|
-
marginRight: e.halfStars &&
|
|
1592
|
+
style: pe({
|
|
1593
|
+
marginRight: e.halfStars && u % 2 === 0 ? `${v.gap}px` : e.halfStars ? "0" : `${v.gap}px`
|
|
1589
1594
|
}),
|
|
1590
1595
|
disabled: !e.isInteractive
|
|
1591
|
-
}, null, 46,
|
|
1596
|
+
}, null, 46, cl))), 128))
|
|
1592
1597
|
], 2));
|
|
1593
1598
|
}
|
|
1594
|
-
}),
|
|
1599
|
+
}), vl = { class: "badge" }, fl = ["onClick"], ml = { class: "opacity-75" }, pl = ["placeholder"], In = /* @__PURE__ */ _({
|
|
1595
1600
|
__name: "taginput",
|
|
1596
1601
|
props: {
|
|
1597
1602
|
modelValue: {},
|
|
@@ -1601,60 +1606,60 @@ const rt = pe("SunIcon", [
|
|
|
1601
1606
|
},
|
|
1602
1607
|
emits: ["update:modelValue"],
|
|
1603
1608
|
setup(e, { emit: v }) {
|
|
1604
|
-
const l = e, t = v, s = g([...l.modelValue]), a = l.maxTagAmount === void 0 ? -1 : l.maxTagAmount,
|
|
1609
|
+
const l = e, t = v, s = g([...l.modelValue]), a = l.maxTagAmount === void 0 ? -1 : l.maxTagAmount, u = g(null), p = g(""), i = Q(() => a < 0 || s.value.length < a), b = () => {
|
|
1605
1610
|
const c = p.value.trim();
|
|
1606
1611
|
c && !s.value.includes(c) && (s.value.push(c), t("update:modelValue", s.value), p.value = "");
|
|
1607
1612
|
}, I = (c) => {
|
|
1608
1613
|
s.value = s.value.filter((O) => O !== c), t("update:modelValue", s.value);
|
|
1609
|
-
},
|
|
1614
|
+
}, A = () => {
|
|
1610
1615
|
p.value === "" && (s.value.pop(), t("update:modelValue", s.value));
|
|
1611
1616
|
}, k = (c) => {
|
|
1612
|
-
c.key === "Enter" ? b() : c.key === "Backspace" && p.value === "" &&
|
|
1617
|
+
c.key === "Enter" ? b() : c.key === "Backspace" && p.value === "" && A();
|
|
1613
1618
|
};
|
|
1614
|
-
return
|
|
1619
|
+
return U(() => l.modelValue, (c) => {
|
|
1615
1620
|
s.value = [...c];
|
|
1616
|
-
}), (c, O) => (o(),
|
|
1621
|
+
}), (c, O) => (o(), r("div", {
|
|
1617
1622
|
class: D(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", c.$props.class])
|
|
1618
1623
|
}, [
|
|
1619
|
-
(o(!0),
|
|
1624
|
+
(o(!0), r(K, null, J(s.value, (S) => E(c.$slots, "tag", {
|
|
1620
1625
|
key: S,
|
|
1621
1626
|
tag: S
|
|
1622
1627
|
}, () => [
|
|
1623
|
-
n("div",
|
|
1628
|
+
n("div", vl, [
|
|
1624
1629
|
n("button", {
|
|
1625
1630
|
class: "px-1! py-0! h-fit font-bold cursor-pointer",
|
|
1626
1631
|
onClick: (W) => I(S),
|
|
1627
1632
|
"aria-label": "Remove tag"
|
|
1628
|
-
}, "X", 8,
|
|
1629
|
-
n("span",
|
|
1633
|
+
}, "X", 8, fl),
|
|
1634
|
+
n("span", ml, j(S), 1)
|
|
1630
1635
|
])
|
|
1631
1636
|
])), 128)),
|
|
1632
|
-
E(c.$slots, "input", { showInput:
|
|
1633
|
-
|
|
1637
|
+
E(c.$slots, "input", { showInput: i.value }, () => [
|
|
1638
|
+
i.value ? be((o(), r("input", {
|
|
1634
1639
|
key: 0,
|
|
1635
1640
|
ref_key: "inputRef",
|
|
1636
|
-
ref:
|
|
1641
|
+
ref: u,
|
|
1637
1642
|
"onUpdate:modelValue": O[0] || (O[0] = (S) => p.value = S),
|
|
1638
1643
|
type: "text",
|
|
1639
1644
|
placeholder: e.placeholder || "Type here",
|
|
1640
1645
|
class: "h-full input input-ghost",
|
|
1641
1646
|
onKeydown: k,
|
|
1642
1647
|
"aria-label": "Add tags"
|
|
1643
|
-
}, null, 40,
|
|
1644
|
-
[
|
|
1648
|
+
}, null, 40, pl)), [
|
|
1649
|
+
[je, p.value]
|
|
1645
1650
|
]) : B("", !0)
|
|
1646
1651
|
])
|
|
1647
1652
|
], 2));
|
|
1648
1653
|
}
|
|
1649
|
-
}),
|
|
1654
|
+
}), hl = { class: "w-full max-w-xs form-control" }, gl = {
|
|
1650
1655
|
key: 0,
|
|
1651
1656
|
class: "label"
|
|
1652
|
-
},
|
|
1657
|
+
}, yl = { class: "label-text" }, bl = ["value"], wl = {
|
|
1653
1658
|
key: 0,
|
|
1654
1659
|
value: "",
|
|
1655
1660
|
disabled: "",
|
|
1656
1661
|
selected: ""
|
|
1657
|
-
},
|
|
1662
|
+
}, xl = ["value"], Mn = /* @__PURE__ */ _({
|
|
1658
1663
|
__name: "select",
|
|
1659
1664
|
props: {
|
|
1660
1665
|
options: {},
|
|
@@ -1665,43 +1670,43 @@ const rt = pe("SunIcon", [
|
|
|
1665
1670
|
emits: ["update:modelValue"],
|
|
1666
1671
|
setup(e, { expose: v, emit: l }) {
|
|
1667
1672
|
console.log(e.placeholder);
|
|
1668
|
-
const s = l, a = g(null),
|
|
1669
|
-
const b =
|
|
1673
|
+
const s = l, a = g(null), u = (i) => {
|
|
1674
|
+
const b = i.target;
|
|
1670
1675
|
s("update:modelValue", b.value);
|
|
1671
1676
|
};
|
|
1672
1677
|
return v({
|
|
1673
1678
|
focusInput: () => {
|
|
1674
|
-
var
|
|
1675
|
-
console.log("select.vue: focusInput method called."), (
|
|
1679
|
+
var i;
|
|
1680
|
+
console.log("select.vue: focusInput method called."), (i = a.value) == null || i.focus();
|
|
1676
1681
|
}
|
|
1677
1682
|
// You can expose other properties or methods here if needed by the parent
|
|
1678
1683
|
// e.g., the current value: modelValue
|
|
1679
|
-
}), (
|
|
1680
|
-
e.label ? (o(),
|
|
1681
|
-
n("span",
|
|
1684
|
+
}), (i, b) => (o(), r("div", hl, [
|
|
1685
|
+
e.label ? (o(), r("label", gl, [
|
|
1686
|
+
n("span", yl, j(e.label), 1)
|
|
1682
1687
|
])) : B("", !0),
|
|
1683
1688
|
n("select", {
|
|
1684
1689
|
ref_key: "selectElement",
|
|
1685
1690
|
ref: a,
|
|
1686
1691
|
class: "rounded-md w-full select-bordered select",
|
|
1687
1692
|
value: e.modelValue,
|
|
1688
|
-
onChange:
|
|
1693
|
+
onChange: u
|
|
1689
1694
|
}, [
|
|
1690
|
-
e.placeholder ? (o(),
|
|
1691
|
-
(o(!0),
|
|
1695
|
+
e.placeholder ? (o(), r("option", wl, j(e.placeholder), 1)) : B("", !0),
|
|
1696
|
+
(o(!0), r(K, null, J(e.options, (I) => (o(), r("option", {
|
|
1692
1697
|
key: I.value,
|
|
1693
1698
|
value: I.value
|
|
1694
|
-
}, j(I.text), 9,
|
|
1695
|
-
], 40,
|
|
1699
|
+
}, j(I.text), 9, xl))), 128))
|
|
1700
|
+
], 40, bl)
|
|
1696
1701
|
]));
|
|
1697
1702
|
}
|
|
1698
|
-
}),
|
|
1703
|
+
}), kl = {
|
|
1699
1704
|
key: 0,
|
|
1700
1705
|
class: "label"
|
|
1701
|
-
},
|
|
1706
|
+
}, $l = { class: "label-text" }, Sl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Cl = ["placeholder", "disabled"], Il = {
|
|
1702
1707
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1703
1708
|
role: "listbox"
|
|
1704
|
-
},
|
|
1709
|
+
}, Ml = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, zl = ["onMousedown", "id", "aria-selected"], zn = {
|
|
1705
1710
|
__name: "filterableSelect",
|
|
1706
1711
|
props: {
|
|
1707
1712
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1732,13 +1737,13 @@ const rt = pe("SunIcon", [
|
|
|
1732
1737
|
},
|
|
1733
1738
|
emits: ["update:modelValue", "select", "clear"],
|
|
1734
1739
|
setup(e, { expose: v, emit: l }) {
|
|
1735
|
-
const t = e, s = l, a =
|
|
1736
|
-
const V = (a.default ? a.default() : []).filter((w) => w.type !==
|
|
1740
|
+
const t = e, s = l, a = Ke(), u = Q(() => {
|
|
1741
|
+
const V = (a.default ? a.default() : []).filter((w) => w.type !== Xe);
|
|
1737
1742
|
return console.log("hasDefaultSlotContent computed:", V.length > 0), V.length > 0;
|
|
1738
|
-
}), p = g(""),
|
|
1743
|
+
}), p = g(""), i = g(null), b = g(!1), I = g(null), A = g(null), k = g(null), c = g(null), O = () => {
|
|
1739
1744
|
b.value = !t.disabled;
|
|
1740
1745
|
}, S = () => {
|
|
1741
|
-
b.value = !1, c.value = null,
|
|
1746
|
+
b.value = !1, c.value = null, u.value || (i.value && p.value !== i.value.text ? p.value = i.value.text : i.value || (p.value = ""));
|
|
1742
1747
|
}, W = () => {
|
|
1743
1748
|
b.value ? S() : O();
|
|
1744
1749
|
}, F = Q(() => {
|
|
@@ -1747,39 +1752,39 @@ const rt = pe("SunIcon", [
|
|
|
1747
1752
|
(w) => w && w.text ? w.text.toLowerCase().includes(d) : ""
|
|
1748
1753
|
);
|
|
1749
1754
|
});
|
|
1750
|
-
|
|
1755
|
+
U(
|
|
1751
1756
|
() => t.modelValue,
|
|
1752
1757
|
(d, V) => {
|
|
1753
1758
|
if (d !== V && S(), d == null)
|
|
1754
|
-
|
|
1759
|
+
i.value = null, !b.value && !u.value && (p.value = "");
|
|
1755
1760
|
else {
|
|
1756
1761
|
const w = t.options.find((z) => z.value === d);
|
|
1757
|
-
w ? (
|
|
1762
|
+
w ? (i.value = w, !b.value && !u.value && (p.value = w.text)) : (i.value = null, !b.value && !u.value && (p.value = ""));
|
|
1758
1763
|
}
|
|
1759
1764
|
},
|
|
1760
1765
|
{ immediate: !0 }
|
|
1761
1766
|
// Run immediately on component mount
|
|
1762
1767
|
);
|
|
1763
1768
|
const X = (d) => {
|
|
1764
|
-
|
|
1769
|
+
A.value && !A.value.contains(d.target) && S();
|
|
1765
1770
|
}, Z = () => {
|
|
1766
1771
|
setTimeout(() => {
|
|
1767
|
-
|
|
1772
|
+
A.value && !A.value.contains(document.activeElement) && S();
|
|
1768
1773
|
}, 100);
|
|
1769
1774
|
};
|
|
1770
|
-
|
|
1775
|
+
U(b, (d) => {
|
|
1771
1776
|
d ? setTimeout(() => {
|
|
1772
1777
|
document.addEventListener("click", X);
|
|
1773
1778
|
}, 0) : document.removeEventListener("click", X);
|
|
1774
|
-
}),
|
|
1779
|
+
}), Be(() => {
|
|
1775
1780
|
document.removeEventListener("click", X), window.removeEventListener("keydown", L);
|
|
1776
1781
|
});
|
|
1777
1782
|
const le = () => {
|
|
1778
1783
|
if (t.disabled) return;
|
|
1779
|
-
const d =
|
|
1784
|
+
const d = i.value;
|
|
1780
1785
|
s("update:modelValue", null), d && s("clear", d);
|
|
1781
1786
|
}, f = (d) => {
|
|
1782
|
-
|
|
1787
|
+
i.value = d, u.value || (p.value = d.text), s("update:modelValue", d.value), s("select", d), S();
|
|
1783
1788
|
}, m = () => {
|
|
1784
1789
|
F.value.length > 0 && f(F.value[0]);
|
|
1785
1790
|
}, x = () => {
|
|
@@ -1804,7 +1809,7 @@ const rt = pe("SunIcon", [
|
|
|
1804
1809
|
} else if (d.key === "Escape") {
|
|
1805
1810
|
d.preventDefault(), S(), k.value && k.value.focus();
|
|
1806
1811
|
return;
|
|
1807
|
-
} else if (
|
|
1812
|
+
} else if (u.value)
|
|
1808
1813
|
return;
|
|
1809
1814
|
if (w !== -1) {
|
|
1810
1815
|
c.value = "option-" + w;
|
|
@@ -1814,14 +1819,14 @@ const rt = pe("SunIcon", [
|
|
|
1814
1819
|
});
|
|
1815
1820
|
}
|
|
1816
1821
|
};
|
|
1817
|
-
return
|
|
1818
|
-
d ? (window.addEventListener("keydown", L), !
|
|
1819
|
-
}),
|
|
1822
|
+
return U(b, (d) => {
|
|
1823
|
+
d ? (window.addEventListener("keydown", L), !u.value && !p.value && i.value && (p.value = i.value.text)) : window.removeEventListener("keydown", L);
|
|
1824
|
+
}), Be(() => {
|
|
1820
1825
|
document.removeEventListener("click", X), window.removeEventListener("keydown", L);
|
|
1821
1826
|
}), v({
|
|
1822
1827
|
isDropdownOpen: b,
|
|
1823
1828
|
// Expose state
|
|
1824
|
-
selectedItem:
|
|
1829
|
+
selectedItem: i,
|
|
1825
1830
|
// Expose selected item
|
|
1826
1831
|
openDropdown: O,
|
|
1827
1832
|
// Expose method to open
|
|
@@ -1833,26 +1838,26 @@ const rt = pe("SunIcon", [
|
|
|
1833
1838
|
// Expose method to select an item programmatically
|
|
1834
1839
|
filterText: p,
|
|
1835
1840
|
// Expose filter text (useful if parent controls filtering)
|
|
1836
|
-
hasDefaultSlotContent:
|
|
1841
|
+
hasDefaultSlotContent: u
|
|
1837
1842
|
// Expose to know if the default slot is used
|
|
1838
|
-
}), (d, V) => (o(),
|
|
1843
|
+
}), (d, V) => (o(), r("div", {
|
|
1839
1844
|
class: "relative w-full max-w-xs form-control",
|
|
1840
1845
|
ref_key: "componentRoot",
|
|
1841
|
-
ref:
|
|
1846
|
+
ref: A
|
|
1842
1847
|
}, [
|
|
1843
|
-
e.label ? (o(),
|
|
1844
|
-
n("span",
|
|
1848
|
+
e.label ? (o(), r("label", kl, [
|
|
1849
|
+
n("span", $l, j(e.label), 1)
|
|
1845
1850
|
])) : B("", !0),
|
|
1846
1851
|
n("div", {
|
|
1847
|
-
class: D(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !
|
|
1848
|
-
style:
|
|
1849
|
-
|
|
1852
|
+
class: D(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !u.value, select: !u.value }]),
|
|
1853
|
+
style: pe(
|
|
1854
|
+
i.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1850
1855
|
),
|
|
1851
1856
|
tabindex: "0",
|
|
1852
|
-
onClick: V[1] || (V[1] = (w) =>
|
|
1857
|
+
onClick: V[1] || (V[1] = (w) => u.value ? W() : O()),
|
|
1853
1858
|
onKeydown: [
|
|
1854
|
-
|
|
1855
|
-
|
|
1859
|
+
ve(se(m, ["prevent"]), ["enter"]),
|
|
1860
|
+
ve(se(m, ["prevent"]), ["space"])
|
|
1856
1861
|
],
|
|
1857
1862
|
onBlur: Z,
|
|
1858
1863
|
role: "combobox",
|
|
@@ -1864,7 +1869,7 @@ const rt = pe("SunIcon", [
|
|
|
1864
1869
|
ref: k
|
|
1865
1870
|
}, [
|
|
1866
1871
|
E(d.$slots, "default", {}, () => [
|
|
1867
|
-
|
|
1872
|
+
u.value ? B("", !0) : be((o(), r("input", {
|
|
1868
1873
|
key: 0,
|
|
1869
1874
|
type: "text",
|
|
1870
1875
|
placeholder: e.placeholder,
|
|
@@ -1877,49 +1882,49 @@ const rt = pe("SunIcon", [
|
|
|
1877
1882
|
tabindex: "-1",
|
|
1878
1883
|
disabled: t.disabled
|
|
1879
1884
|
}, null, 40, Cl)), [
|
|
1880
|
-
[
|
|
1885
|
+
[je, p.value]
|
|
1881
1886
|
])
|
|
1882
1887
|
]),
|
|
1883
|
-
|
|
1888
|
+
i.value && !e.disabled ? (o(), de(oe(it), {
|
|
1884
1889
|
key: 0,
|
|
1885
1890
|
size: 20,
|
|
1886
1891
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1887
1892
|
onClick: se(le, ["stop"])
|
|
1888
1893
|
})) : B("", !0),
|
|
1889
|
-
|
|
1894
|
+
u.value && !i.value ? (o(), de(oe(st), {
|
|
1890
1895
|
key: 1,
|
|
1891
1896
|
class: D([{ "rotate-180": b.value }, "mx-2"]),
|
|
1892
1897
|
size: 20
|
|
1893
1898
|
}, null, 8, ["class"])) : B("", !0)
|
|
1894
|
-
], 46,
|
|
1895
|
-
|
|
1896
|
-
n("ul",
|
|
1897
|
-
(o(!0),
|
|
1899
|
+
], 46, Sl),
|
|
1900
|
+
be(n("div", Il, [
|
|
1901
|
+
n("ul", Ml, [
|
|
1902
|
+
(o(!0), r(K, null, J(F.value, (w, z) => (o(), r("li", {
|
|
1898
1903
|
key: w.value,
|
|
1899
1904
|
onMousedown: se((ee) => f(w), ["prevent"]),
|
|
1900
1905
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1901
1906
|
id: "option-" + z,
|
|
1902
1907
|
role: "option",
|
|
1903
|
-
"aria-selected":
|
|
1908
|
+
"aria-selected": i.value && i.value.value === w.value
|
|
1904
1909
|
}, [
|
|
1905
1910
|
n("a", null, j(w.text), 1)
|
|
1906
|
-
], 40,
|
|
1911
|
+
], 40, zl))), 128))
|
|
1907
1912
|
])
|
|
1908
1913
|
], 512), [
|
|
1909
|
-
[
|
|
1914
|
+
[Ye, b.value && F.value.length > 0]
|
|
1910
1915
|
])
|
|
1911
1916
|
], 512));
|
|
1912
1917
|
}
|
|
1913
|
-
},
|
|
1918
|
+
}, Tl = { class: "w-full max-w-xs form-control" }, Bl = {
|
|
1914
1919
|
key: 0,
|
|
1915
1920
|
class: "label"
|
|
1916
|
-
},
|
|
1921
|
+
}, Dl = { class: "label-text" }, Ol = ["type", "placeholder", "disabled", "value"], Vl = {
|
|
1917
1922
|
key: 1,
|
|
1918
1923
|
class: "label"
|
|
1919
|
-
},
|
|
1924
|
+
}, El = { class: "label-text-alt text-error validator-hint" }, Ll = {
|
|
1920
1925
|
key: 2,
|
|
1921
1926
|
class: "label"
|
|
1922
|
-
},
|
|
1927
|
+
}, jl = { class: "label-text-alt text-success validator-hint" }, Tn = /* @__PURE__ */ _({
|
|
1923
1928
|
__name: "inputField",
|
|
1924
1929
|
props: {
|
|
1925
1930
|
modelValue: { default: "" },
|
|
@@ -1936,33 +1941,33 @@ const rt = pe("SunIcon", [
|
|
|
1936
1941
|
},
|
|
1937
1942
|
emits: ["update:modelValue", "validate"],
|
|
1938
1943
|
setup(e, { expose: v, emit: l }) {
|
|
1939
|
-
const t = e, s = l, a = g(null),
|
|
1944
|
+
const t = e, s = l, a = g(null), u = g(!1), p = g(""), i = Q(() => {
|
|
1940
1945
|
var W, F, X, Z;
|
|
1941
1946
|
let c = !0, O = "";
|
|
1942
1947
|
const S = t.modelValue;
|
|
1943
1948
|
return (W = t.rules) != null && W.required && (S == null || S === "") && (c = !1, O = "This field is required."), c && ((F = t.rules) == null ? void 0 : F.minLength) !== void 0 && typeof S == "string" && S.length < t.rules.minLength && (c = !1, O = `Must be at least ${t.rules.minLength} characters.`), c && ((X = t.rules) == null ? void 0 : X.maxLength) !== void 0 && typeof S == "string" && S.length > t.rules.maxLength && (c = !1, O = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((Z = t.rules) != null && Z.email) && typeof S == "string" && S && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S) || (c = !1, O = "Please enter a valid email address.")), p.value = O, s("validate", c), c;
|
|
1944
|
-
}), b = Q(() =>
|
|
1949
|
+
}), b = Q(() => u.value && !i.value), I = (c) => {
|
|
1945
1950
|
const O = c.target;
|
|
1946
|
-
s("update:modelValue", O.value),
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1951
|
+
s("update:modelValue", O.value), u.value && i.value;
|
|
1952
|
+
}, A = () => {
|
|
1953
|
+
u.value = !0, i.value;
|
|
1949
1954
|
};
|
|
1950
|
-
return
|
|
1955
|
+
return U(
|
|
1951
1956
|
() => t.modelValue,
|
|
1952
1957
|
() => {
|
|
1953
|
-
|
|
1958
|
+
u.value && i.value;
|
|
1954
1959
|
}
|
|
1955
1960
|
), v({
|
|
1956
1961
|
focusInput: () => {
|
|
1957
1962
|
var c;
|
|
1958
1963
|
console.log("inputField.vue: focusInput method called."), (c = a.value) == null || c.focus();
|
|
1959
1964
|
},
|
|
1960
|
-
isValid:
|
|
1961
|
-
isTouched:
|
|
1965
|
+
isValid: i,
|
|
1966
|
+
isTouched: u,
|
|
1962
1967
|
errorMessage: p
|
|
1963
|
-
}), (c, O) => (o(),
|
|
1964
|
-
e.label ? (o(),
|
|
1965
|
-
n("span",
|
|
1968
|
+
}), (c, O) => (o(), r("div", Tl, [
|
|
1969
|
+
e.label ? (o(), r("label", Bl, [
|
|
1970
|
+
n("span", Dl, j(e.label), 1)
|
|
1966
1971
|
])) : B("", !0),
|
|
1967
1972
|
E(c.$slots, "default"),
|
|
1968
1973
|
n("input", {
|
|
@@ -1983,33 +1988,33 @@ const rt = pe("SunIcon", [
|
|
|
1983
1988
|
"input-ghost": e.style === "ghost",
|
|
1984
1989
|
// Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
|
|
1985
1990
|
// This ensures validation feedback overrides base colors.
|
|
1986
|
-
"input-neutral": e.color === "neutral" && !b.value && !(
|
|
1987
|
-
"input-primary": e.color === "primary" && !b.value && !(
|
|
1988
|
-
"input-secondary": e.color === "secondary" && !b.value && !(
|
|
1989
|
-
"input-accent": e.color === "accent" && !b.value && !(
|
|
1990
|
-
"input-info": e.color === "info" && !b.value && !(
|
|
1991
|
-
"input-success": e.color === "success" && !b.value && !(
|
|
1991
|
+
"input-neutral": e.color === "neutral" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1992
|
+
"input-primary": e.color === "primary" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1993
|
+
"input-secondary": e.color === "secondary" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1994
|
+
"input-accent": e.color === "accent" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1995
|
+
"input-info": e.color === "info" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1996
|
+
"input-success": e.color === "success" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1992
1997
|
// Color success applies only if not in error or validation success state
|
|
1993
|
-
"input-warning": e.color === "warning" && !b.value && !(
|
|
1998
|
+
"input-warning": e.color === "warning" && !b.value && !(i.value && u.value && e.needsValidation),
|
|
1994
1999
|
// Validation state classes - These take precedence visually via conditions or CSS specificity.
|
|
1995
2000
|
"input-error": b.value,
|
|
1996
2001
|
// Apply error style if validation fails
|
|
1997
|
-
"input-success-validation":
|
|
2002
|
+
"input-success-validation": i.value && u.value && !b.value && e.needsValidation
|
|
1998
2003
|
// Apply validation success style if valid, touched, not error, AND validation is needed. Using a distinct name 'input-success-validation' is recommended to avoid CSS conflicts with the 'input-success' color class.
|
|
1999
2004
|
}
|
|
2000
2005
|
]]),
|
|
2001
2006
|
value: e.modelValue,
|
|
2002
2007
|
onInput: I,
|
|
2003
|
-
onBlur:
|
|
2004
|
-
}, null, 42,
|
|
2005
|
-
b.value ? (o(),
|
|
2006
|
-
n("span",
|
|
2007
|
-
])) :
|
|
2008
|
-
n("span",
|
|
2008
|
+
onBlur: A
|
|
2009
|
+
}, null, 42, Ol),
|
|
2010
|
+
b.value ? (o(), r("div", Vl, [
|
|
2011
|
+
n("span", El, j(p.value), 1)
|
|
2012
|
+
])) : i.value && u.value && e.successMessage ? (o(), r("div", Ll, [
|
|
2013
|
+
n("span", jl, j(e.successMessage), 1)
|
|
2009
2014
|
])) : B("", !0)
|
|
2010
2015
|
]));
|
|
2011
2016
|
}
|
|
2012
|
-
}),
|
|
2017
|
+
}), Bn = /* @__PURE__ */ _({
|
|
2013
2018
|
__name: "loader",
|
|
2014
2019
|
props: {
|
|
2015
2020
|
loading: { type: Boolean, default: !0 },
|
|
@@ -2019,12 +2024,12 @@ const rt = pe("SunIcon", [
|
|
|
2019
2024
|
},
|
|
2020
2025
|
setup(e) {
|
|
2021
2026
|
const v = e, l = g(v.loading);
|
|
2022
|
-
return
|
|
2027
|
+
return U(
|
|
2023
2028
|
() => v.loading,
|
|
2024
2029
|
(t) => {
|
|
2025
2030
|
l.value = t;
|
|
2026
2031
|
}
|
|
2027
|
-
), (t, s) => l.value ? (o(),
|
|
2032
|
+
), (t, s) => l.value ? (o(), r("span", {
|
|
2028
2033
|
key: 0,
|
|
2029
2034
|
class: D(["loading", [
|
|
2030
2035
|
{ "loading-xs": e.size === "xs" },
|
|
@@ -2051,13 +2056,13 @@ const rt = pe("SunIcon", [
|
|
|
2051
2056
|
]])
|
|
2052
2057
|
}, null, 2)) : B("", !0);
|
|
2053
2058
|
}
|
|
2054
|
-
}),
|
|
2059
|
+
}), Pl = { class: "footer sm:footer-horizontal container" }, Al = { class: "footer-title" }, Rl = ["href"], Nl = {
|
|
2055
2060
|
key: 0,
|
|
2056
2061
|
class: "sm:hidden w-full"
|
|
2057
|
-
},
|
|
2062
|
+
}, _l = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Fl = {
|
|
2058
2063
|
tabindex: "0",
|
|
2059
2064
|
class: "collapse collapse-plus w-full"
|
|
2060
|
-
},
|
|
2065
|
+
}, ql = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Ul = { class: "collapse-content flex w-full text-sm" }, Hl = { class: "flex flex-col gap-2.5" }, Wl = { class: "w-full" }, Kl = ["href"], Xl = { class: "w-full" }, Dn = /* @__PURE__ */ _({
|
|
2061
2066
|
__name: "footer",
|
|
2062
2067
|
props: {
|
|
2063
2068
|
items: {},
|
|
@@ -2067,50 +2072,50 @@ const rt = pe("SunIcon", [
|
|
|
2067
2072
|
},
|
|
2068
2073
|
setup(e) {
|
|
2069
2074
|
const v = e;
|
|
2070
|
-
return (l, t) => (o(),
|
|
2075
|
+
return (l, t) => (o(), r("div", {
|
|
2071
2076
|
class: D(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2072
2077
|
}, [
|
|
2073
|
-
n("footer",
|
|
2074
|
-
(o(!0),
|
|
2078
|
+
n("footer", Pl, [
|
|
2079
|
+
(o(!0), r(K, null, J(v.items, (s) => (o(), r("nav", {
|
|
2075
2080
|
class: D([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2076
2081
|
}, [
|
|
2077
2082
|
n("h6", Al, j(s.title), 1),
|
|
2078
|
-
(o(!0),
|
|
2083
|
+
(o(!0), r(K, null, J(s.items, (a) => (o(), r("a", {
|
|
2079
2084
|
class: "link link-hover",
|
|
2080
2085
|
href: a.link
|
|
2081
|
-
}, j(a.text), 9,
|
|
2086
|
+
}, j(a.text), 9, Rl))), 256))
|
|
2082
2087
|
], 2))), 256)),
|
|
2083
|
-
e.collapseOnMobile ? (o(),
|
|
2084
|
-
(o(!0),
|
|
2085
|
-
n("div",
|
|
2086
|
-
n("div",
|
|
2087
|
-
n("div",
|
|
2088
|
-
n("ul",
|
|
2089
|
-
(o(!0),
|
|
2088
|
+
e.collapseOnMobile ? (o(), r("nav", Nl, [
|
|
2089
|
+
(o(!0), r(K, null, J(v.items, (s) => (o(), r("ul", _l, [
|
|
2090
|
+
n("div", Fl, [
|
|
2091
|
+
n("div", ql, j(s.title), 1),
|
|
2092
|
+
n("div", Ul, [
|
|
2093
|
+
n("ul", Hl, [
|
|
2094
|
+
(o(!0), r(K, null, J(s.items, (a) => (o(), r("li", Wl, [
|
|
2090
2095
|
n("a", {
|
|
2091
2096
|
class: "w-full font-medium link link-hover",
|
|
2092
2097
|
href: a.link
|
|
2093
|
-
}, j(a.text), 9,
|
|
2098
|
+
}, j(a.text), 9, Kl)
|
|
2094
2099
|
]))), 256))
|
|
2095
2100
|
])
|
|
2096
2101
|
])
|
|
2097
2102
|
])
|
|
2098
2103
|
]))), 256))
|
|
2099
2104
|
])) : B("", !0),
|
|
2100
|
-
n("aside",
|
|
2105
|
+
n("aside", Xl, [
|
|
2101
2106
|
E(l.$slots, "default")
|
|
2102
2107
|
])
|
|
2103
2108
|
])
|
|
2104
2109
|
], 2));
|
|
2105
2110
|
}
|
|
2106
|
-
}),
|
|
2107
|
-
function
|
|
2108
|
-
return o(),
|
|
2109
|
-
n("div",
|
|
2111
|
+
}), Yl = {}, Gl = { class: "min-h-40 container hero" }, Jl = { class: "px-0! text-center hero-content" }, Zl = { class: "mt-9 text-4xl" };
|
|
2112
|
+
function Ql(e, v) {
|
|
2113
|
+
return o(), r("div", Gl, [
|
|
2114
|
+
n("div", Jl, [
|
|
2110
2115
|
n("div", null, [
|
|
2111
|
-
n("h1",
|
|
2116
|
+
n("h1", Zl, [
|
|
2112
2117
|
E(e.$slots, "title", {}, () => [
|
|
2113
|
-
v[0] || (v[0] =
|
|
2118
|
+
v[0] || (v[0] = Le("hero title", -1))
|
|
2114
2119
|
])
|
|
2115
2120
|
]),
|
|
2116
2121
|
n("p", null, [
|
|
@@ -2123,7 +2128,7 @@ function Zl(e, v) {
|
|
|
2123
2128
|
])
|
|
2124
2129
|
]);
|
|
2125
2130
|
}
|
|
2126
|
-
const
|
|
2131
|
+
const On = /* @__PURE__ */ me(Yl, [["render", Ql]]), en = { class: "flex flex-row place-content-center gap-4 categories" }, tn = ["onClick"], Vn = /* @__PURE__ */ _({
|
|
2127
2132
|
__name: "categoryNavigation",
|
|
2128
2133
|
props: {
|
|
2129
2134
|
searchOptions: {},
|
|
@@ -2135,49 +2140,49 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
|
|
|
2135
2140
|
function s(a) {
|
|
2136
2141
|
t("update:currentCategory", a);
|
|
2137
2142
|
}
|
|
2138
|
-
return (a,
|
|
2139
|
-
(o(!0),
|
|
2143
|
+
return (a, u) => (o(), r("div", en, [
|
|
2144
|
+
(o(!0), r(K, null, J(l.searchOptions, (p) => (o(), r("div", {
|
|
2140
2145
|
key: p.category
|
|
2141
2146
|
}, [
|
|
2142
2147
|
n("button", {
|
|
2143
|
-
onClick: (
|
|
2148
|
+
onClick: (i) => s(p.category),
|
|
2144
2149
|
class: D(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === p.category }])
|
|
2145
|
-
}, j(p.category), 11,
|
|
2150
|
+
}, j(p.category), 11, tn)
|
|
2146
2151
|
]))), 128))
|
|
2147
2152
|
]));
|
|
2148
2153
|
}
|
|
2149
|
-
}),
|
|
2154
|
+
}), ln = { class: "md:flex hidden navbar-start" }, nn = { class: "md:flex justify-center items-center hidden navbar-center" }, an = { class: "md:flex hidden navbar-end" }, on = { class: "navbar-bottom md:flex hidden" }, sn = /* @__PURE__ */ _({
|
|
2150
2155
|
__name: "navigationBar",
|
|
2151
2156
|
props: {
|
|
2152
2157
|
isCollapsed: { type: Boolean, default: !0 }
|
|
2153
2158
|
},
|
|
2154
2159
|
setup(e) {
|
|
2155
2160
|
const v = e;
|
|
2156
|
-
return (l, t) => (o(),
|
|
2161
|
+
return (l, t) => (o(), r("nav", {
|
|
2157
2162
|
class: D(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", v.isCollapsed ? "collapsed" : ""])
|
|
2158
2163
|
}, [
|
|
2159
|
-
n("div",
|
|
2164
|
+
n("div", ln, [
|
|
2160
2165
|
E(l.$slots, "start", {}, void 0, !0)
|
|
2161
2166
|
]),
|
|
2162
|
-
n("div",
|
|
2167
|
+
n("div", nn, [
|
|
2163
2168
|
E(l.$slots, "center", {}, void 0, !0)
|
|
2164
2169
|
]),
|
|
2165
|
-
n("div",
|
|
2170
|
+
n("div", an, [
|
|
2166
2171
|
E(l.$slots, "end", {}, void 0, !0)
|
|
2167
2172
|
]),
|
|
2168
|
-
n("div",
|
|
2173
|
+
n("div", on, [
|
|
2169
2174
|
E(l.$slots, "bottom", {}, void 0, !0)
|
|
2170
2175
|
])
|
|
2171
2176
|
], 2));
|
|
2172
2177
|
}
|
|
2173
|
-
}),
|
|
2178
|
+
}), En = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-8ddb2b45"]]), rn = {
|
|
2174
2179
|
key: 0,
|
|
2175
2180
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
2176
|
-
},
|
|
2181
|
+
}, un = ["onClick", "aria-selected"], dn = {
|
|
2177
2182
|
key: 0,
|
|
2178
2183
|
role: "tabpanel",
|
|
2179
2184
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
2180
|
-
},
|
|
2185
|
+
}, cn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, Ln = /* @__PURE__ */ _({
|
|
2181
2186
|
__name: "tab",
|
|
2182
2187
|
props: {
|
|
2183
2188
|
items: {},
|
|
@@ -2188,10 +2193,10 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
|
|
|
2188
2193
|
emits: ["tab-changed"],
|
|
2189
2194
|
setup(e, { emit: v }) {
|
|
2190
2195
|
const l = e, t = g(l.items[0]), s = v;
|
|
2191
|
-
function a(
|
|
2192
|
-
t.value =
|
|
2196
|
+
function a(i) {
|
|
2197
|
+
t.value = i, s("tab-changed", i);
|
|
2193
2198
|
}
|
|
2194
|
-
function
|
|
2199
|
+
function u() {
|
|
2195
2200
|
const b = (l.items.indexOf(t.value) + 1) % l.items.length;
|
|
2196
2201
|
a(l.items[b]);
|
|
2197
2202
|
}
|
|
@@ -2199,42 +2204,42 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
|
|
|
2199
2204
|
const b = (l.items.indexOf(t.value) - 1 + l.items.length) % l.items.length;
|
|
2200
2205
|
a(l.items[b]);
|
|
2201
2206
|
}
|
|
2202
|
-
return
|
|
2207
|
+
return fe(() => {
|
|
2203
2208
|
l.items && a(l.items[0]);
|
|
2204
|
-
}),
|
|
2209
|
+
}), Te(() => {
|
|
2205
2210
|
l.rotateTabsAfter && l.rotateTabsAfter > 0 && setInterval(() => {
|
|
2206
|
-
|
|
2211
|
+
u();
|
|
2207
2212
|
}, l.rotateTabsAfter * 1e3);
|
|
2208
|
-
}), (
|
|
2213
|
+
}), (i, b) => (o(), r(K, null, [
|
|
2209
2214
|
n("div", {
|
|
2210
2215
|
role: "tablist",
|
|
2211
2216
|
class: D(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2212
2217
|
}, [
|
|
2213
|
-
e.withControlls ? (o(),
|
|
2218
|
+
e.withControlls ? (o(), r("div", rn, [
|
|
2214
2219
|
n("button", {
|
|
2215
2220
|
onClick: b[0] || (b[0] = (I) => p()),
|
|
2216
2221
|
class: "cursor-pointer"
|
|
2217
2222
|
}, "Previous"),
|
|
2218
2223
|
n("button", {
|
|
2219
|
-
onClick: b[1] || (b[1] = (I) =>
|
|
2224
|
+
onClick: b[1] || (b[1] = (I) => u()),
|
|
2220
2225
|
class: "text-primary cursor-pointer"
|
|
2221
2226
|
}, "Next")
|
|
2222
2227
|
])) : B("", !0),
|
|
2223
|
-
(o(!0),
|
|
2228
|
+
(o(!0), r(K, null, J(e.items, (I) => (o(), r(K, null, [
|
|
2224
2229
|
n("a", {
|
|
2225
2230
|
type: "button",
|
|
2226
2231
|
role: "tab",
|
|
2227
2232
|
class: D(["min-w-max tab", I === t.value ? "bg-primary text-base-100" : ""]),
|
|
2228
|
-
onClick: (
|
|
2233
|
+
onClick: (A) => a(I),
|
|
2229
2234
|
"aria-selected": t.value == I
|
|
2230
|
-
}, j(I), 11,
|
|
2231
|
-
e.buttonOnlyMode ? B("", !0) : (o(),
|
|
2232
|
-
E(
|
|
2235
|
+
}, j(I), 11, un),
|
|
2236
|
+
e.buttonOnlyMode ? B("", !0) : (o(), r("div", dn, [
|
|
2237
|
+
E(i.$slots, `${I}-tab`)
|
|
2233
2238
|
]))
|
|
2234
2239
|
], 64))), 256))
|
|
2235
2240
|
], 2),
|
|
2236
|
-
n("div",
|
|
2237
|
-
E(
|
|
2241
|
+
n("div", cn, [
|
|
2242
|
+
E(i.$slots, "default")
|
|
2238
2243
|
])
|
|
2239
2244
|
], 64));
|
|
2240
2245
|
}
|
|
@@ -2242,28 +2247,28 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
|
|
|
2242
2247
|
typeof document > "u" && (globalThis.document = {});
|
|
2243
2248
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2244
2249
|
export {
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2250
|
+
yn as Accordion,
|
|
2251
|
+
Sn as AdvancedSearch,
|
|
2252
|
+
bn as Avatar,
|
|
2253
|
+
wn as Badge,
|
|
2254
|
+
fn as ButtonComponent,
|
|
2255
|
+
xn as Card,
|
|
2256
|
+
kn as Carousel,
|
|
2257
|
+
$n as CarouselItem,
|
|
2258
|
+
Vn as CategoryNavigation,
|
|
2259
|
+
ul as DatetimePicker,
|
|
2260
|
+
mn as Dropdown,
|
|
2261
|
+
zn as FilterableSelect,
|
|
2262
|
+
Dn as Footer,
|
|
2263
|
+
On as Hero,
|
|
2264
|
+
Tn as InputField,
|
|
2265
|
+
Bn as Loader,
|
|
2266
|
+
pn as Modal,
|
|
2267
|
+
En as NavigationBar,
|
|
2263
2268
|
Cn as Rating,
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
+
Mn as Selector,
|
|
2270
|
+
hn as Swap,
|
|
2271
|
+
Ln as Tab,
|
|
2272
|
+
In as TagInput,
|
|
2273
|
+
gn as ThemeController
|
|
2269
2274
|
};
|