manolis-ui 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +54 -78
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +361 -364
- package/dist/manolis-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, computed as
|
|
1
|
+
import { defineComponent as P, computed as _, createElementBlock as r, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as ue, createElementVNode as l, Fragment as j, renderList as E, toDisplayString as z, ref as k, watch as A, h as se, onMounted as K, withDirectives as ee, createVNode as G, isRef as pe, vModelCheckbox as he, unref as U, provide as ge, normalizeStyle as Z, inject as be, useId as ye, defineAsyncComponent as te, nextTick as le, onBeforeUnmount as ie, withModifiers as H, createBlock as W, resolveDynamicComponent as ne, mergeProps as ae, withKeys as re, resolveComponent as oe, withCtx as ce, vModelText as me, useSlots as we, Comment as xe, vShow as ke, onUnmounted as $e } from "vue";
|
|
2
2
|
const Ce = ["disabled"], Se = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -14,8 +14,8 @@ const Ce = ["disabled"], Se = {
|
|
|
14
14
|
disabled: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(e) {
|
|
17
|
-
const
|
|
18
|
-
switch (
|
|
17
|
+
const c = e, t = _(() => {
|
|
18
|
+
switch (c.size) {
|
|
19
19
|
case "large":
|
|
20
20
|
return "btn-lg";
|
|
21
21
|
case "small":
|
|
@@ -29,8 +29,8 @@ const Ce = ["disabled"], Se = {
|
|
|
29
29
|
default:
|
|
30
30
|
return "";
|
|
31
31
|
}
|
|
32
|
-
}), o =
|
|
33
|
-
switch (
|
|
32
|
+
}), o = _(() => {
|
|
33
|
+
switch (c.type) {
|
|
34
34
|
case "neutral":
|
|
35
35
|
return "btn-neutral";
|
|
36
36
|
case "primary":
|
|
@@ -54,8 +54,8 @@ const Ce = ["disabled"], Se = {
|
|
|
54
54
|
default:
|
|
55
55
|
return "btn-neutral";
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
58
|
-
switch (
|
|
57
|
+
}), u = _(() => {
|
|
58
|
+
switch (c.shape) {
|
|
59
59
|
case "square":
|
|
60
60
|
return "btn-square";
|
|
61
61
|
case "circle":
|
|
@@ -65,19 +65,19 @@ const Ce = ["disabled"], Se = {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
return (s, i) => (a(), r("button", {
|
|
68
|
-
class:
|
|
68
|
+
class: M([
|
|
69
69
|
"btn",
|
|
70
|
-
{ "btn-outline":
|
|
71
|
-
{ "btn-active":
|
|
70
|
+
{ "btn-outline": c.outlined },
|
|
71
|
+
{ "btn-active": c.active },
|
|
72
72
|
o.value,
|
|
73
73
|
t.value,
|
|
74
|
-
|
|
74
|
+
u.value
|
|
75
75
|
]),
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: c.disabled
|
|
77
77
|
}, [
|
|
78
78
|
e.loading ? (a(), r("span", Se)) : T("", !0),
|
|
79
|
-
|
|
80
|
-
i[0] || (i[0] =
|
|
79
|
+
V(s.$slots, "default", {}, () => [
|
|
80
|
+
i[0] || (i[0] = ue("Submit", -1))
|
|
81
81
|
])
|
|
82
82
|
], 10, Ce));
|
|
83
83
|
}
|
|
@@ -94,7 +94,7 @@ const Ce = ["disabled"], Se = {
|
|
|
94
94
|
forceOpen: { type: Boolean, default: !1 }
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
const
|
|
97
|
+
const c = {
|
|
98
98
|
left: "dropdown-left",
|
|
99
99
|
right: "dropdown-right",
|
|
100
100
|
bottom: "dropdown-bottom",
|
|
@@ -103,10 +103,10 @@ const Ce = ["disabled"], Se = {
|
|
|
103
103
|
start: "",
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, o = e;
|
|
106
|
-
return (
|
|
107
|
-
class:
|
|
106
|
+
return (u, s) => (a(), r("div", {
|
|
107
|
+
class: M(["dropdown", c[o.position], t[o.floatPosition], { "dropdown-open": o.forceOpen }, { "dropdown-hover": o.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
V(u.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
@@ -116,9 +116,9 @@ const Ce = ["disabled"], Se = {
|
|
|
116
116
|
(a(!0), r(j, null, E(e.items, (i) => (a(), r("li", null, [
|
|
117
117
|
l("a", {
|
|
118
118
|
href: i.link
|
|
119
|
-
},
|
|
119
|
+
}, z(i.text), 9, Te)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
V(u.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
@@ -130,11 +130,11 @@ const Ce = ["disabled"], Se = {
|
|
|
130
130
|
forceOpen: { type: [Boolean, null], default: null }
|
|
131
131
|
},
|
|
132
132
|
setup(e) {
|
|
133
|
-
const
|
|
133
|
+
const c = e, t = {
|
|
134
134
|
top: "modal-top",
|
|
135
135
|
bottom: "modal-bottom",
|
|
136
136
|
center: "modal-middle"
|
|
137
|
-
}, o = k(null),
|
|
137
|
+
}, o = k(null), u = () => {
|
|
138
138
|
var i;
|
|
139
139
|
(i = o.value) == null || i.showModal();
|
|
140
140
|
}, s = () => {
|
|
@@ -142,35 +142,35 @@ const Ce = ["disabled"], Se = {
|
|
|
142
142
|
(i = o.value) == null || i.close();
|
|
143
143
|
};
|
|
144
144
|
return A(
|
|
145
|
-
() =>
|
|
145
|
+
() => c.forceOpen,
|
|
146
146
|
(i) => {
|
|
147
|
-
i == !0 &&
|
|
147
|
+
i == !0 && u(), i == !1 && s();
|
|
148
148
|
}
|
|
149
149
|
), (i, g) => (a(), r(j, null, [
|
|
150
|
-
|
|
150
|
+
c.forceOpen == null ? (a(), r("span", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: u
|
|
154
154
|
}, [
|
|
155
|
-
|
|
155
|
+
V(i.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
g[0] || (g[0] = l("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : T("", !0),
|
|
159
159
|
l("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
161
|
ref: o,
|
|
162
|
-
class:
|
|
162
|
+
class: M(["modal", t[c.position]])
|
|
163
163
|
}, [
|
|
164
164
|
l("div", Me, [
|
|
165
|
-
|
|
165
|
+
V(i.$slots, "default"),
|
|
166
166
|
l("div", Ve, [
|
|
167
|
-
|
|
167
|
+
V(i.$slots, "actions"),
|
|
168
168
|
l("form", {
|
|
169
169
|
method: "dialog",
|
|
170
170
|
onSubmit: s,
|
|
171
|
-
class:
|
|
171
|
+
class: M(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
V(i.$slots, "close-button", {}, () => [
|
|
174
174
|
g[1] || (g[1] = l("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
@@ -179,22 +179,22 @@ const Ce = ["disabled"], Se = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" },
|
|
182
|
+
}), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" }, Fl = /* @__PURE__ */ P({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
186
186
|
},
|
|
187
187
|
setup(e) {
|
|
188
|
-
const
|
|
188
|
+
const c = e;
|
|
189
189
|
return (t, o) => (a(), r("label", {
|
|
190
|
-
class:
|
|
190
|
+
class: M(["swap", c.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
o[0] || (o[0] = l("input", { type: "checkbox" }, null, -1)),
|
|
193
193
|
l("div", Be, [
|
|
194
|
-
|
|
194
|
+
V(t.$slots, "on")
|
|
195
195
|
]),
|
|
196
196
|
l("div", De, [
|
|
197
|
-
|
|
197
|
+
V(t.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -229,18 +229,18 @@ var Y = {
|
|
|
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 Oe = ({ size: e, strokeWidth:
|
|
232
|
+
const Oe = ({ size: e, strokeWidth: c = 2, absoluteStrokeWidth: t, color: o, iconNode: u, name: s, class: i, ...g }, { slots: v }) => se(
|
|
233
233
|
"svg",
|
|
234
234
|
{
|
|
235
235
|
...Y,
|
|
236
236
|
width: e || Y.width,
|
|
237
237
|
height: e || Y.height,
|
|
238
238
|
stroke: o || Y.stroke,
|
|
239
|
-
"stroke-width": t ? Number(
|
|
239
|
+
"stroke-width": t ? Number(c) * 24 / Number(e) : c,
|
|
240
240
|
class: ["lucide", `lucide-${ze(s ?? "icon")}`],
|
|
241
241
|
...g
|
|
242
242
|
},
|
|
243
|
-
[...
|
|
243
|
+
[...u.map((p) => se(...p)), ...v.default ? [v.default()] : []]
|
|
244
244
|
);
|
|
245
245
|
/**
|
|
246
246
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -248,11 +248,11 @@ const Oe = ({ size: e, strokeWidth: f = 2, absoluteStrokeWidth: t, color: o, 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 Q = (e,
|
|
251
|
+
const Q = (e, c) => (t, { slots: o }) => se(
|
|
252
252
|
Oe,
|
|
253
253
|
{
|
|
254
254
|
...t,
|
|
255
|
-
iconNode:
|
|
255
|
+
iconNode: c,
|
|
256
256
|
name: e
|
|
257
257
|
},
|
|
258
258
|
o
|
|
@@ -313,44 +313,44 @@ const Ee = Q("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
|
-
]), Ae = (e,
|
|
316
|
+
]), Ae = (e, c) => {
|
|
317
317
|
const t = k(null);
|
|
318
318
|
return K(() => {
|
|
319
319
|
if (typeof window < "u") {
|
|
320
320
|
const o = window.localStorage.getItem(e);
|
|
321
|
-
t.value = o ? JSON.parse(o) :
|
|
321
|
+
t.value = o ? JSON.parse(o) : c;
|
|
322
322
|
}
|
|
323
323
|
}), A(t, (o) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(o));
|
|
325
325
|
}), t;
|
|
326
|
-
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"],
|
|
326
|
+
}, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"], Ul = /* @__PURE__ */ P({
|
|
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
|
|
334
|
-
function o(
|
|
335
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
333
|
+
const c = e, t = Ae("theme", c.lightTheme);
|
|
334
|
+
function o(u) {
|
|
335
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", u);
|
|
336
336
|
}
|
|
337
|
-
return K(() => o(t.value ? t.value : "")), A(t, (
|
|
338
|
-
o(
|
|
339
|
-
}), (
|
|
340
|
-
|
|
337
|
+
return K(() => o(t.value ? t.value : "")), A(t, (u) => {
|
|
338
|
+
o(u);
|
|
339
|
+
}), (u, s) => (a(), r("label", Re, [
|
|
340
|
+
ee(l("input", {
|
|
341
341
|
type: "checkbox",
|
|
342
342
|
class: "theme-controller",
|
|
343
343
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => pe(t) ? t.value = i : null),
|
|
344
|
-
"true-value":
|
|
345
|
-
"false-value":
|
|
344
|
+
"true-value": c.lightTheme,
|
|
345
|
+
"false-value": c.darkTheme
|
|
346
346
|
}, null, 8, Ne), [
|
|
347
|
-
[he,
|
|
347
|
+
[he, U(t)]
|
|
348
348
|
]),
|
|
349
|
-
G(
|
|
350
|
-
G(
|
|
349
|
+
G(U(Ee), { class: "swap-off fill-current" }),
|
|
350
|
+
G(U(Le), { class: "swap-on fill-current" })
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), Fe = ["name"], Ue = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, _e = { class: "collapse-content" }, qe = ["innerHTML"], _l = /* @__PURE__ */ P({
|
|
354
354
|
__name: "accordion",
|
|
355
355
|
props: {
|
|
356
356
|
name: {},
|
|
@@ -359,20 +359,20 @@ const Ee = Q("SunIcon", [
|
|
|
359
359
|
icon: {}
|
|
360
360
|
},
|
|
361
361
|
setup(e) {
|
|
362
|
-
const
|
|
363
|
-
return (t, o) => (a(!0), r(j, null, E(
|
|
364
|
-
class:
|
|
362
|
+
const c = e;
|
|
363
|
+
return (t, o) => (a(!0), r(j, null, E(c.items, (u, s) => (a(), r("div", {
|
|
364
|
+
class: M(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
365
365
|
key: s
|
|
366
366
|
}, [
|
|
367
367
|
l("input", {
|
|
368
368
|
type: "radio",
|
|
369
369
|
name: e.name,
|
|
370
370
|
value: "true"
|
|
371
|
-
}, null, 8,
|
|
372
|
-
l("div",
|
|
373
|
-
l("div",
|
|
371
|
+
}, null, 8, Fe),
|
|
372
|
+
l("div", Ue, z(u.title), 1),
|
|
373
|
+
l("div", _e, [
|
|
374
374
|
l("span", {
|
|
375
|
-
innerHTML:
|
|
375
|
+
innerHTML: u.content
|
|
376
376
|
}, null, 8, qe)
|
|
377
377
|
])
|
|
378
378
|
], 2))), 128));
|
|
@@ -386,18 +386,18 @@ const Ee = Q("SunIcon", [
|
|
|
386
386
|
fullyRounded: { type: Boolean, default: !1 }
|
|
387
387
|
},
|
|
388
388
|
setup(e) {
|
|
389
|
-
const
|
|
389
|
+
const c = e, t = k(c.onlineStatus);
|
|
390
390
|
return A(
|
|
391
|
-
() =>
|
|
391
|
+
() => c.onlineStatus,
|
|
392
392
|
(o) => {
|
|
393
393
|
o && (t.value = o);
|
|
394
394
|
}
|
|
395
|
-
), (o,
|
|
396
|
-
class:
|
|
395
|
+
), (o, u) => (a(), r("div", {
|
|
396
|
+
class: M(["avatar", [{ "avatar-online": t.value === "online" }, { "avatar-offline": t.value === "offline" }]])
|
|
397
397
|
}, [
|
|
398
398
|
e.image ? (a(), r("div", {
|
|
399
399
|
key: 0,
|
|
400
|
-
class:
|
|
400
|
+
class: M(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
401
401
|
}, [
|
|
402
402
|
l("img", {
|
|
403
403
|
src: e.image,
|
|
@@ -405,9 +405,9 @@ const Ee = Q("SunIcon", [
|
|
|
405
405
|
}, null, 8, He)
|
|
406
406
|
], 2)) : (a(), r("div", {
|
|
407
407
|
key: 1,
|
|
408
|
-
class:
|
|
408
|
+
class: M(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
409
409
|
}, [
|
|
410
|
-
l("p", We,
|
|
410
|
+
l("p", We, z(e.initials), 1)
|
|
411
411
|
], 2))
|
|
412
412
|
], 2));
|
|
413
413
|
}
|
|
@@ -419,7 +419,7 @@ const Ee = Q("SunIcon", [
|
|
|
419
419
|
size: { default: "medium" }
|
|
420
420
|
},
|
|
421
421
|
setup(e) {
|
|
422
|
-
const
|
|
422
|
+
const c = e, t = {
|
|
423
423
|
"extra small": "badge-xs",
|
|
424
424
|
small: "badge-sm",
|
|
425
425
|
medium: "badge-md",
|
|
@@ -435,10 +435,10 @@ const Ee = Q("SunIcon", [
|
|
|
435
435
|
warning: "badge-warning",
|
|
436
436
|
error: "badge-error"
|
|
437
437
|
};
|
|
438
|
-
return (
|
|
439
|
-
class:
|
|
438
|
+
return (u, s) => (a(), r("span", {
|
|
439
|
+
class: M(["badge", t[c.size], o[c.color], { "badge-outline": c.outline }])
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
V(u.$slots, "default")
|
|
442
442
|
], 2));
|
|
443
443
|
}
|
|
444
444
|
}), Ke = ["src", "alt"], Xe = {
|
|
@@ -470,14 +470,14 @@ const Ee = Q("SunIcon", [
|
|
|
470
470
|
horizontal: { type: Boolean, default: !1 }
|
|
471
471
|
},
|
|
472
472
|
setup(e) {
|
|
473
|
-
const
|
|
473
|
+
const c = e, t = k(c.outlined);
|
|
474
474
|
return A(
|
|
475
|
-
() =>
|
|
475
|
+
() => c.outlined,
|
|
476
476
|
(o) => {
|
|
477
477
|
t.value = o;
|
|
478
478
|
}
|
|
479
|
-
), (o,
|
|
480
|
-
class:
|
|
479
|
+
), (o, u) => (a(), r("div", {
|
|
480
|
+
class: M(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
481
481
|
{ "border-4 border-primary": t.value },
|
|
482
482
|
e.color ?? "",
|
|
483
483
|
e.background,
|
|
@@ -485,13 +485,13 @@ const Ee = Q("SunIcon", [
|
|
|
485
485
|
]])
|
|
486
486
|
}, [
|
|
487
487
|
l("figure", {
|
|
488
|
-
class:
|
|
488
|
+
class: M([{ "contents!": e.horizontal && e.imgWidth }])
|
|
489
489
|
}, [
|
|
490
490
|
e.imgUrl || e.imgUrl && !e.loading ? (a(), r("img", {
|
|
491
491
|
key: 0,
|
|
492
492
|
src: e.imgUrl,
|
|
493
493
|
alt: e.alt,
|
|
494
|
-
class:
|
|
494
|
+
class: M(["rounded-sm object-cover", [
|
|
495
495
|
{
|
|
496
496
|
hidden: e.loading
|
|
497
497
|
},
|
|
@@ -501,18 +501,18 @@ const Ee = Q("SunIcon", [
|
|
|
501
501
|
}, null, 10, Ke)) : T("", !0),
|
|
502
502
|
e.loading && e.imgUrl ? (a(), r("div", {
|
|
503
503
|
key: 1,
|
|
504
|
-
class:
|
|
504
|
+
class: M(["w-full skeleton", e.imgHeight])
|
|
505
505
|
}, null, 2)) : T("", !0)
|
|
506
506
|
], 2),
|
|
507
507
|
e.loading ? T("", !0) : (a(), r("div", Xe, [
|
|
508
|
-
e.title ? (a(), r("h2", Ge,
|
|
509
|
-
|
|
510
|
-
e.description ? (a(), r("p", Je,
|
|
508
|
+
e.title ? (a(), r("h2", Ge, z(e.title), 1)) : T("", !0),
|
|
509
|
+
V(o.$slots, "details"),
|
|
510
|
+
e.description ? (a(), r("p", Je, z(e.description), 1)) : T("", !0),
|
|
511
511
|
l("div", Ze, [
|
|
512
|
-
|
|
512
|
+
V(o.$slots, "actions")
|
|
513
513
|
])
|
|
514
514
|
])),
|
|
515
|
-
e.loading ? (a(), r("div", Qe, [...
|
|
515
|
+
e.loading ? (a(), r("div", Qe, [...u[0] || (u[0] = [
|
|
516
516
|
l("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
517
517
|
l("div", { class: "w-28 h-4 skeleton" }),
|
|
518
518
|
l("div", { class: "w-full h-4 skeleton" }),
|
|
@@ -564,26 +564,26 @@ const Ee = Q("SunIcon", [
|
|
|
564
564
|
validator: (e) => e >= 0
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
|
-
setup(e, { expose:
|
|
568
|
-
const t = e, o = k(t.initialSlide),
|
|
567
|
+
setup(e, { expose: c }) {
|
|
568
|
+
const t = e, o = k(t.initialSlide), u = k(null), s = k(!1), i = k(0), g = _(() => ({
|
|
569
569
|
width: `calc((100% - ${t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0}px) / ${t.slidesPerView})`
|
|
570
570
|
}));
|
|
571
571
|
ge(ve, g);
|
|
572
572
|
const v = () => {
|
|
573
|
-
|
|
573
|
+
u.value ? i.value = u.value.children.length : i.value = 0;
|
|
574
574
|
}, p = async (w) => {
|
|
575
|
-
if (!
|
|
576
|
-
const x = (w % i.value + i.value) % i.value, C =
|
|
575
|
+
if (!u.value || t.slidesPerView <= 0 || s.value || (v(), i.value === 0)) return;
|
|
576
|
+
const x = (w % i.value + i.value) % i.value, C = u.value, B = t.sliderOrientation === "vertical" ? (C.offsetHeight - (t.slidesPerView - 1) * t.gap) / t.slidesPerView : (C.offsetWidth - (t.slidesPerView - 1) * t.gap) / t.slidesPerView;
|
|
577
577
|
if (B <= 0) return;
|
|
578
578
|
const L = B + t.gap, R = x * L, N = t.sliderOrientation === "vertical" ? C.scrollHeight - C.offsetHeight : C.scrollWidth - C.offsetWidth, m = Math.max(0, Math.min(R, N + 0.5));
|
|
579
579
|
s.value = !0, C.style.scrollBehavior = "auto";
|
|
580
|
-
const
|
|
581
|
-
if (Math.abs(
|
|
580
|
+
const d = t.sliderOrientation === "vertical" ? C.scrollTop : C.scrollLeft, f = m - d;
|
|
581
|
+
if (Math.abs(f) < 1) {
|
|
582
582
|
s.value = !1, o.value = x;
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
const b = performance.now(), n = ($) => {
|
|
586
|
-
const h = $ - b, D = Math.min(1, h / t.slideDuration),
|
|
586
|
+
const h = $ - b, D = Math.min(1, h / t.slideDuration), F = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = d + f * F;
|
|
587
587
|
t.sliderOrientation === "vertical" ? C.scrollTop = q : C.scrollLeft = q, D < 1 ? requestAnimationFrame(n) : (t.sliderOrientation === "vertical" ? C.scrollTop = m : C.scrollLeft = m, o.value = x, s.value = !1);
|
|
588
588
|
};
|
|
589
589
|
requestAnimationFrame(n);
|
|
@@ -591,14 +591,14 @@ const Ee = Q("SunIcon", [
|
|
|
591
591
|
p(o.value + 1);
|
|
592
592
|
}, I = () => {
|
|
593
593
|
p(o.value - 1);
|
|
594
|
-
},
|
|
594
|
+
}, O = (w) => {
|
|
595
595
|
p(w);
|
|
596
596
|
}, y = () => {
|
|
597
|
-
if (!
|
|
598
|
-
const w =
|
|
597
|
+
if (!u.value || t.slidesPerView <= 0 || (v(), i.value === 0)) return;
|
|
598
|
+
const w = u.value, x = t.sliderOrientation === "vertical" ? w.offsetHeight : w.offsetWidth, C = t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0, B = (x - C) / t.slidesPerView;
|
|
599
599
|
if (B <= 0) return;
|
|
600
|
-
const L = Math.max(0, i.value - t.slidesPerView), R = Math.min(Math.max(0, t.initialSlide), L), N = R * (B + t.gap), m = t.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth,
|
|
601
|
-
t.sliderOrientation === "vertical" ? w.scrollTo({ top:
|
|
600
|
+
const L = Math.max(0, i.value - t.slidesPerView), R = Math.min(Math.max(0, t.initialSlide), L), N = R * (B + t.gap), m = t.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth, d = Math.max(0, Math.min(N, m + 0.5));
|
|
601
|
+
t.sliderOrientation === "vertical" ? w.scrollTo({ top: d, behavior: "auto" }) : w.scrollTo({ left: d, behavior: "auto" }), o.value = R;
|
|
602
602
|
};
|
|
603
603
|
return K(() => {
|
|
604
604
|
requestAnimationFrame(() => {
|
|
@@ -614,14 +614,14 @@ const Ee = Q("SunIcon", [
|
|
|
614
614
|
t.slideDuration = 0, p(x), t.slideDuration = C;
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
|
-
}),
|
|
617
|
+
}), c({ scrollToSlide: p }), (w, x) => (a(), r("div", Ye, [
|
|
618
618
|
l("div", {
|
|
619
619
|
ref_key: "carouselContainer",
|
|
620
|
-
ref:
|
|
621
|
-
class:
|
|
620
|
+
ref: u,
|
|
621
|
+
class: M(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }]]),
|
|
622
622
|
style: Z({ gap: `${e.gap}px` })
|
|
623
623
|
}, [
|
|
624
|
-
|
|
624
|
+
V(w.$slots, "default", {}, void 0, !0)
|
|
625
625
|
], 6),
|
|
626
626
|
e.showNavigationButtons ? (a(), r("div", et, [
|
|
627
627
|
l("div", {
|
|
@@ -629,7 +629,7 @@ const Ee = Q("SunIcon", [
|
|
|
629
629
|
role: "button",
|
|
630
630
|
"aria-label": "Previous Slide"
|
|
631
631
|
}, [
|
|
632
|
-
|
|
632
|
+
V(w.$slots, "prevButton", {}, () => [
|
|
633
633
|
x[0] || (x[0] = l("button", {
|
|
634
634
|
class: "btn btn-circle",
|
|
635
635
|
tabindex: "-1"
|
|
@@ -641,7 +641,7 @@ const Ee = Q("SunIcon", [
|
|
|
641
641
|
role: "button",
|
|
642
642
|
"aria-label": "Next Slide"
|
|
643
643
|
}, [
|
|
644
|
-
|
|
644
|
+
V(w.$slots, "nextButton", {}, () => [
|
|
645
645
|
x[1] || (x[1] = l("button", {
|
|
646
646
|
class: "btn btn-circle",
|
|
647
647
|
tabindex: "-1"
|
|
@@ -652,27 +652,27 @@ const Ee = Q("SunIcon", [
|
|
|
652
652
|
e.showIndicators ? (a(), r("div", tt, [
|
|
653
653
|
(a(!0), r(j, null, E(i.value, (C, B) => (a(), r("button", {
|
|
654
654
|
key: `dot-${B}`,
|
|
655
|
-
onClick: (L) =>
|
|
656
|
-
class:
|
|
655
|
+
onClick: (L) => O(B),
|
|
656
|
+
class: M(["btn btn-circle btn-xs", { "btn-active": B === o.value }]),
|
|
657
657
|
"aria-label": `Go to slide ${B + 1}`
|
|
658
658
|
}, null, 10, lt))), 128))
|
|
659
659
|
])) : T("", !0)
|
|
660
660
|
]));
|
|
661
661
|
}
|
|
662
|
-
}), J = (e,
|
|
662
|
+
}), J = (e, c) => {
|
|
663
663
|
const t = e.__vccOpts || e;
|
|
664
|
-
for (const [o,
|
|
665
|
-
t[o] =
|
|
664
|
+
for (const [o, u] of c)
|
|
665
|
+
t[o] = u;
|
|
666
666
|
return t;
|
|
667
667
|
}, Kl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
|
|
668
668
|
__name: "carouselItem",
|
|
669
669
|
setup(e) {
|
|
670
|
-
const
|
|
670
|
+
const c = be(ve, k({}));
|
|
671
671
|
return (t, o) => (a(), r("div", {
|
|
672
672
|
class: "w-full h-full carousel-item",
|
|
673
|
-
style: Z(
|
|
673
|
+
style: Z(U(c))
|
|
674
674
|
}, [
|
|
675
|
-
|
|
675
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
676
676
|
], 4));
|
|
677
677
|
}
|
|
678
678
|
}), Xl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
|
|
@@ -702,37 +702,37 @@ const Ee = Q("SunIcon", [
|
|
|
702
702
|
value: {}
|
|
703
703
|
},
|
|
704
704
|
emits: ["search", "update:search-data"],
|
|
705
|
-
setup(e, { emit:
|
|
706
|
-
const t = e, o =
|
|
707
|
-
datetime:
|
|
708
|
-
"standard-select":
|
|
705
|
+
setup(e, { emit: c }) {
|
|
706
|
+
const t = e, o = c, u = t.id ?? `advancedSearch-${ye()}`, s = k(null), i = k(null), g = {
|
|
707
|
+
datetime: te(() => Promise.resolve().then(() => Lt)),
|
|
708
|
+
"standard-select": te(() => import("./select-Cz4vf_YE.js")),
|
|
709
709
|
// Add other components here when you create them:
|
|
710
710
|
// 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
|
|
711
711
|
// 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
|
|
712
|
-
"custom-text":
|
|
712
|
+
"custom-text": te(() => import("./inputField-BxT95oyM.js"))
|
|
713
713
|
// 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
|
|
714
714
|
}, v = k({}), p = k({
|
|
715
715
|
left: "0px",
|
|
716
716
|
top: "0px",
|
|
717
717
|
transform: "translateX(0%)"
|
|
718
718
|
}), S = k(null), I = (m) => {
|
|
719
|
-
var
|
|
719
|
+
var d;
|
|
720
720
|
if (m.value === void 0 || m.value === null || m.value === "")
|
|
721
721
|
return "";
|
|
722
722
|
switch (m.type) {
|
|
723
723
|
case "datetime":
|
|
724
724
|
if (typeof m.value == "string")
|
|
725
725
|
try {
|
|
726
|
-
const
|
|
727
|
-
if (!isNaN(
|
|
728
|
-
return
|
|
726
|
+
const f = new Date(m.value);
|
|
727
|
+
if (!isNaN(f.getTime()))
|
|
728
|
+
return f.toLocaleString();
|
|
729
729
|
} catch {
|
|
730
730
|
}
|
|
731
731
|
else if (m.range && typeof m.value == "object" && m.value !== null && "start" in m.value && "end" in m.value)
|
|
732
732
|
try {
|
|
733
|
-
const
|
|
734
|
-
if (!isNaN(
|
|
735
|
-
return `${
|
|
733
|
+
const f = new Date(m.value.start), b = new Date(m.value.end);
|
|
734
|
+
if (!isNaN(f.getTime()) && !isNaN(b.getTime()))
|
|
735
|
+
return `${f.toLocaleDateString()} - ${b.toLocaleDateString()}`;
|
|
736
736
|
} catch {
|
|
737
737
|
}
|
|
738
738
|
break;
|
|
@@ -746,12 +746,12 @@ const Ee = Q("SunIcon", [
|
|
|
746
746
|
break;
|
|
747
747
|
case "standard-select":
|
|
748
748
|
case "custom-select":
|
|
749
|
-
if ((
|
|
750
|
-
const
|
|
749
|
+
if ((d = m.props) != null && d.options && Array.isArray(m.props.options)) {
|
|
750
|
+
const f = m.props.options.find(
|
|
751
751
|
(b) => b.value === m.value
|
|
752
752
|
);
|
|
753
|
-
if (
|
|
754
|
-
return
|
|
753
|
+
if (f)
|
|
754
|
+
return f.text;
|
|
755
755
|
}
|
|
756
756
|
return String(m.value);
|
|
757
757
|
case "custom-text":
|
|
@@ -761,62 +761,62 @@ const Ee = Q("SunIcon", [
|
|
|
761
761
|
}
|
|
762
762
|
return String(m.value);
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function O(m) {
|
|
765
765
|
var n, $;
|
|
766
|
-
const
|
|
767
|
-
if (!
|
|
766
|
+
const d = (n = s.value) == null ? void 0 : n.name;
|
|
767
|
+
if (!d) {
|
|
768
768
|
console.warn("componentValueUpdated called but no active tab.");
|
|
769
769
|
return;
|
|
770
770
|
}
|
|
771
|
-
const
|
|
771
|
+
const f = ($ = t.searchOptions.find(
|
|
772
772
|
(h) => (h == null ? void 0 : h.category) === t.currentCategory
|
|
773
|
-
)) == null ? void 0 : $.tabs, b =
|
|
774
|
-
(h) => h.name ===
|
|
773
|
+
)) == null ? void 0 : $.tabs, b = f == null ? void 0 : f.find(
|
|
774
|
+
(h) => h.name === d
|
|
775
775
|
);
|
|
776
776
|
b ? (b.value = m, o("update:search-data", {
|
|
777
777
|
tab: b.name,
|
|
778
778
|
data: m
|
|
779
779
|
})) : console.error(
|
|
780
|
-
`Tab with name "${
|
|
780
|
+
`Tab with name "${d}" not found in current category.`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
783
783
|
function y(m) {
|
|
784
|
-
|
|
784
|
+
O(m);
|
|
785
785
|
}
|
|
786
786
|
function w() {
|
|
787
787
|
o("search");
|
|
788
788
|
}
|
|
789
789
|
async function x(m) {
|
|
790
790
|
var b;
|
|
791
|
-
const
|
|
792
|
-
((b = s.value) == null ? void 0 : b.displayMode) === "popup" && S.value && !S.value.contains(m.target) && !
|
|
791
|
+
const d = document.getElementById(`advancedSearchMobile-${u}`), f = d && d.contains(m.target);
|
|
792
|
+
((b = s.value) == null ? void 0 : b.displayMode) === "popup" && S.value && !S.value.contains(m.target) && !f && (await le(), s.value = null);
|
|
793
793
|
}
|
|
794
794
|
async function C() {
|
|
795
795
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
796
796
|
const m = document.getElementById(
|
|
797
|
-
`advancedSearchMobile-${
|
|
797
|
+
`advancedSearchMobile-${u}`
|
|
798
798
|
);
|
|
799
799
|
m ? (s.value = null, m.showModal()) : console.warn(
|
|
800
|
-
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${
|
|
800
|
+
`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${u}".`
|
|
801
801
|
);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
async function B(m) {
|
|
805
|
-
var
|
|
805
|
+
var f, b, n;
|
|
806
806
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
807
807
|
C();
|
|
808
808
|
return;
|
|
809
809
|
}
|
|
810
|
-
const
|
|
811
|
-
if (((
|
|
810
|
+
const d = m.displayMode ?? "popup";
|
|
811
|
+
if (((f = s.value) == null ? void 0 : f.name) === m.name && ((b = s.value) == null ? void 0 : b.displayMode) === d)
|
|
812
812
|
s.value = null;
|
|
813
|
-
else if (s.value = { ...m, displayMode:
|
|
813
|
+
else if (s.value = { ...m, displayMode: d }, await le(), ((n = s.value) == null ? void 0 : n.displayMode) === "popup") {
|
|
814
814
|
const $ = v.value[m.name];
|
|
815
815
|
if ($ && S.value) {
|
|
816
|
-
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(),
|
|
816
|
+
const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), F = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
|
|
817
817
|
p.value = {
|
|
818
818
|
left: `${q}px`,
|
|
819
|
-
top: `${
|
|
819
|
+
top: `${F + 8}px`,
|
|
820
820
|
// Add a small gap
|
|
821
821
|
transform: "translateX(-50%)"
|
|
822
822
|
// Center horizontally
|
|
@@ -829,10 +829,10 @@ const Ee = Q("SunIcon", [
|
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
const L = (m) => {
|
|
832
|
-
const
|
|
832
|
+
const d = m.relatedTarget;
|
|
833
833
|
setTimeout(() => {
|
|
834
|
-
var
|
|
835
|
-
((
|
|
834
|
+
var f;
|
|
835
|
+
((f = s.value) == null ? void 0 : f.displayMode) === "inline" && S.value && (!d || !S.value.contains(d)) ? (console.log("Blur detected outside container, closing inline view."), s.value = null) : console.log(
|
|
836
836
|
"Blur detected, but staying within container or not an inline tab."
|
|
837
837
|
);
|
|
838
838
|
}, 50);
|
|
@@ -840,13 +840,13 @@ const Ee = Q("SunIcon", [
|
|
|
840
840
|
console.log("Enter key pressed on inline component, closing inline view."), s.value = null;
|
|
841
841
|
};
|
|
842
842
|
A(i, (m) => {
|
|
843
|
-
var
|
|
843
|
+
var d;
|
|
844
844
|
console.log(
|
|
845
845
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
846
846
|
m
|
|
847
|
-
), console.log("advanced-search: activeTab.value:", s.value), m && ((
|
|
847
|
+
), console.log("advanced-search: activeTab.value:", s.value), m && ((d = s.value) == null ? void 0 : d.displayMode) === "inline" ? (console.log(
|
|
848
848
|
"advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
|
|
849
|
-
),
|
|
849
|
+
), le(() => {
|
|
850
850
|
console.log(
|
|
851
851
|
"advanced-search: Inside nextTick. Attempting to call child's focus method..."
|
|
852
852
|
), console.log("advanced-search: Type of newValue:", typeof m), console.log(
|
|
@@ -863,24 +863,24 @@ const Ee = Q("SunIcon", [
|
|
|
863
863
|
);
|
|
864
864
|
}), K(() => {
|
|
865
865
|
document.addEventListener("click", x), window.addEventListener("resize", N);
|
|
866
|
-
}),
|
|
866
|
+
}), ie(() => {
|
|
867
867
|
document.removeEventListener("click", x), window.removeEventListener("resize", N);
|
|
868
868
|
});
|
|
869
869
|
const N = () => {
|
|
870
|
-
var m,
|
|
870
|
+
var m, d;
|
|
871
871
|
if (typeof window < "u") {
|
|
872
|
-
const
|
|
873
|
-
!
|
|
872
|
+
const f = window.innerWidth <= 768, b = s.value !== null && (s.value.displayMode === "popup" || s.value.displayMode === "inline") && window.innerWidth > 768;
|
|
873
|
+
!f && (((m = s.value) == null ? void 0 : m.displayMode) === "popup" || ((d = s.value) == null ? void 0 : d.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), s.value = null), f && !b && s.value !== null && (console.log(
|
|
874
874
|
"Resizing to desktop from potential mobile active state, closing active tab."
|
|
875
875
|
), s.value = null);
|
|
876
876
|
const n = document.getElementById(
|
|
877
|
-
`advancedSearchMobile-${
|
|
877
|
+
`advancedSearchMobile-${u}`
|
|
878
878
|
);
|
|
879
|
-
n != null && n.open && !
|
|
879
|
+
n != null && n.open && !f && (console.log("Modal is open on desktop, closing modal and active tab."), n.close(), s.value = null);
|
|
880
880
|
}
|
|
881
881
|
};
|
|
882
|
-
return (m,
|
|
883
|
-
var
|
|
882
|
+
return (m, d) => {
|
|
883
|
+
var f, b;
|
|
884
884
|
return a(), r(j, null, [
|
|
885
885
|
l("div", {
|
|
886
886
|
ref_key: "searchContainer",
|
|
@@ -892,35 +892,35 @@ const Ee = Q("SunIcon", [
|
|
|
892
892
|
onClick: C
|
|
893
893
|
}, [
|
|
894
894
|
l("div", ot, [
|
|
895
|
-
(a(!0), r(j, null, E(((
|
|
895
|
+
(a(!0), r(j, null, E(((f = t.searchOptions.find(
|
|
896
896
|
(n) => n.category === t.currentCategory
|
|
897
|
-
)) == null ? void 0 :
|
|
898
|
-
var h, D,
|
|
897
|
+
)) == null ? void 0 : f.tabs) || [], (n, $) => {
|
|
898
|
+
var h, D, F, q, de;
|
|
899
899
|
return a(), r("button", {
|
|
900
900
|
key: `${n.name}-${$}`,
|
|
901
901
|
onClick: H((X) => B(n), ["stop"]),
|
|
902
|
-
class:
|
|
902
|
+
class: M([{
|
|
903
903
|
"tab-active": ((h = s.value) == null ? void 0 : h.name) === n.name,
|
|
904
|
-
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((
|
|
904
|
+
"tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((F = s.value) == null ? void 0 : F.displayMode) === "inline"
|
|
905
905
|
// Add new class
|
|
906
906
|
}, "group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
|
|
907
907
|
ref_for: !0,
|
|
908
908
|
ref: (X) => v.value[n.name] = X
|
|
909
909
|
}, [
|
|
910
910
|
((q = s.value) == null ? void 0 : q.name) === n.name && ((de = s.value) == null ? void 0 : de.displayMode) === "inline" ? (a(), r("div", it, [
|
|
911
|
-
(a(), W(
|
|
911
|
+
(a(), W(ne(g[s.value.type]), ae({ ref_for: !0 }, s.value.props || {}, {
|
|
912
912
|
modelValue: s.value.value,
|
|
913
|
-
onUpdated:
|
|
914
|
-
"onUpdate:modelValue":
|
|
913
|
+
onUpdated: d[0] || (d[0] = (X) => y(X)),
|
|
914
|
+
"onUpdate:modelValue": d[1] || (d[1] = (X) => y(X)),
|
|
915
915
|
onBlur: L,
|
|
916
|
-
onKeydown:
|
|
916
|
+
onKeydown: re(H(R, ["stop", "prevent"]), ["enter"]),
|
|
917
917
|
ref_for: !0,
|
|
918
918
|
ref_key: "inlineComponentRef",
|
|
919
919
|
ref: i
|
|
920
920
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
921
921
|
])) : (a(), r("div", rt, [
|
|
922
|
-
l("p", ut,
|
|
923
|
-
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("p", dt,
|
|
922
|
+
l("p", ut, z(n.name), 1),
|
|
923
|
+
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("p", dt, z(I(n)), 1)) : (a(), r("p", ct, z(n.description), 1))
|
|
924
924
|
]))
|
|
925
925
|
], 10, st);
|
|
926
926
|
}), 128))
|
|
@@ -930,10 +930,10 @@ const Ee = Q("SunIcon", [
|
|
|
930
930
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
931
931
|
style: Z(p.value)
|
|
932
932
|
}, [
|
|
933
|
-
(a(), W(
|
|
933
|
+
(a(), W(ne(g[s.value.type]), ae(s.value.props || {}, {
|
|
934
934
|
modelValue: s.value.value,
|
|
935
|
-
onUpdated:
|
|
936
|
-
"onUpdate:modelValue":
|
|
935
|
+
onUpdated: d[2] || (d[2] = (n) => O(n)),
|
|
936
|
+
"onUpdate:modelValue": d[3] || (d[3] = (n) => O(n))
|
|
937
937
|
}), null, 16, ["modelValue"]))
|
|
938
938
|
], 4)) : T("", !0),
|
|
939
939
|
l("button", {
|
|
@@ -942,7 +942,7 @@ const Ee = Q("SunIcon", [
|
|
|
942
942
|
class: "ml-1 btn btn-primary btn-square",
|
|
943
943
|
onClick: H(w, ["stop"])
|
|
944
944
|
}, [
|
|
945
|
-
G(
|
|
945
|
+
G(U(fe), {
|
|
946
946
|
size: 24,
|
|
947
947
|
color: "white"
|
|
948
948
|
})
|
|
@@ -951,10 +951,10 @@ const Ee = Q("SunIcon", [
|
|
|
951
951
|
l("div", ft, [
|
|
952
952
|
l("button", {
|
|
953
953
|
title: "search",
|
|
954
|
-
onClick:
|
|
954
|
+
onClick: d[4] || (d[4] = () => {
|
|
955
955
|
})
|
|
956
956
|
}, [
|
|
957
|
-
G(
|
|
957
|
+
G(U(fe), {
|
|
958
958
|
size: 24,
|
|
959
959
|
color: "white"
|
|
960
960
|
})
|
|
@@ -962,12 +962,12 @@ const Ee = Q("SunIcon", [
|
|
|
962
962
|
])
|
|
963
963
|
], 512),
|
|
964
964
|
l("dialog", {
|
|
965
|
-
id: `advancedSearchMobile-${
|
|
965
|
+
id: `advancedSearchMobile-${U(u)}`,
|
|
966
966
|
class: "modal"
|
|
967
967
|
}, [
|
|
968
968
|
l("div", vt, [
|
|
969
|
-
|
|
970
|
-
l("h3", pt,
|
|
969
|
+
V(m.$slots, "additionalForMobile", {}, () => [
|
|
970
|
+
l("h3", pt, z(e.currentCategory), 1)
|
|
971
971
|
], !0),
|
|
972
972
|
(a(!0), r(j, null, E(((b = t.searchOptions.find(
|
|
973
973
|
(n) => n.category === t.currentCategory
|
|
@@ -977,19 +977,19 @@ const Ee = Q("SunIcon", [
|
|
|
977
977
|
}, [
|
|
978
978
|
l("input", {
|
|
979
979
|
type: "radio",
|
|
980
|
-
name: `accordion-${
|
|
980
|
+
name: `accordion-${U(u)}`,
|
|
981
981
|
checked: $ === 0
|
|
982
982
|
}, null, 8, ht),
|
|
983
983
|
l("div", gt, [
|
|
984
|
-
l("div", null,
|
|
985
|
-
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt,
|
|
984
|
+
l("div", null, z(n.name), 1),
|
|
985
|
+
n.value !== void 0 && n.value !== null && n.value !== "" ? (a(), r("div", bt, z(I(n)), 1)) : (a(), r("div", yt, z(n.description), 1))
|
|
986
986
|
]),
|
|
987
987
|
l("div", wt, [
|
|
988
|
-
|
|
989
|
-
(a(), W(
|
|
988
|
+
d[7] || (d[7] = l("br", null, null, -1)),
|
|
989
|
+
(a(), W(ne(g[n.type]), ae({ ref_for: !0 }, n.props || {}, {
|
|
990
990
|
modelValue: n.value,
|
|
991
|
-
onUpdated:
|
|
992
|
-
"onUpdate:modelValue":
|
|
991
|
+
onUpdated: d[5] || (d[5] = (h) => O(h)),
|
|
992
|
+
"onUpdate:modelValue": d[6] || (d[6] = (h) => O(h))
|
|
993
993
|
}), null, 16, ["modelValue"]))
|
|
994
994
|
])
|
|
995
995
|
]))), 128)),
|
|
@@ -1027,19 +1027,20 @@ const Ee = Q("SunIcon", [
|
|
|
1027
1027
|
disabled: { type: Boolean, default: !1 },
|
|
1028
1028
|
locale: { default: "nl-NL" },
|
|
1029
1029
|
min: {},
|
|
1030
|
-
max: {}
|
|
1030
|
+
max: {},
|
|
1031
|
+
closeText: { default: "Close" }
|
|
1031
1032
|
},
|
|
1032
1033
|
emits: ["update:modelValue", "change"],
|
|
1033
|
-
setup(e, { emit:
|
|
1034
|
+
setup(e, { emit: c }) {
|
|
1034
1035
|
K(async () => {
|
|
1035
1036
|
await import("./cally-ZU3K2Th7.js");
|
|
1036
1037
|
});
|
|
1037
|
-
const t = e, o =
|
|
1038
|
+
const t = e, o = c, u = k(null), s = k(!1), i = k(null), g = k(null), v = k(null), p = k(null), S = k(null), I = k({ from: "", to: "", single: "" }), O = k({
|
|
1038
1039
|
single: null,
|
|
1039
1040
|
start: null,
|
|
1040
1041
|
end: null
|
|
1041
|
-
}), y =
|
|
1042
|
-
const
|
|
1042
|
+
}), y = _(() => {
|
|
1043
|
+
const d = (n) => {
|
|
1043
1044
|
if (!n || n.includes(":")) return n;
|
|
1044
1045
|
if (/^\d{4}-\d{2}-\d{2}$/.test(n))
|
|
1045
1046
|
try {
|
|
@@ -1050,66 +1051,66 @@ const Ee = Q("SunIcon", [
|
|
|
1050
1051
|
}
|
|
1051
1052
|
return n;
|
|
1052
1053
|
};
|
|
1053
|
-
let
|
|
1054
|
-
if (t.mode !== "time" && (t.range &&
|
|
1055
|
-
return t.range ?
|
|
1054
|
+
let f = "", b = "";
|
|
1055
|
+
if (t.mode !== "time" && (t.range && O.value.start && O.value.end ? f = `${O.value.start} - ${O.value.end}` : !t.range && O.value.single && (f = O.value.single)), t.mode !== "date" && (t.range && I.value.from && I.value.to ? b = `${I.value.from} - ${I.value.to}` : !t.range && I.value.single && (b = I.value.single)), t.mode === "date")
|
|
1056
|
+
return t.range ? f.split(" - ").map(d).join(" - ") : d(f);
|
|
1056
1057
|
if (t.mode === "time") return b;
|
|
1057
1058
|
if (t.range) {
|
|
1058
|
-
const [n, $] =
|
|
1059
|
+
const [n, $] = f.split(" - ").map(d), [h, D] = b.split(" - ");
|
|
1059
1060
|
return `${n} ${h} - ${$} ${D}`.trim();
|
|
1060
1061
|
}
|
|
1061
|
-
return `${
|
|
1062
|
+
return `${d(f)} ${b}`.trim();
|
|
1062
1063
|
});
|
|
1063
1064
|
console.log(y);
|
|
1064
1065
|
const w = () => {
|
|
1065
1066
|
if (t.range) {
|
|
1066
|
-
const { start:
|
|
1067
|
+
const { start: d, end: f } = O.value, { from: b, to: n } = I.value;
|
|
1067
1068
|
let $ = null, h = null;
|
|
1068
|
-
if (t.mode === "time" && b && n ? ($ = b, h = n) : t.mode === "date" &&
|
|
1069
|
+
if (t.mode === "time" && b && n ? ($ = b, h = n) : t.mode === "date" && d && f ? ($ = d, h = f) : t.mode === "datetime" && d && f && b && n && ($ = `${d}T${b}`, h = `${f}T${n}`), $ && h)
|
|
1069
1070
|
return { start: $, end: h };
|
|
1070
1071
|
} else {
|
|
1071
|
-
const
|
|
1072
|
-
if (t.mode === "date") return
|
|
1073
|
-
if (t.mode === "time") return
|
|
1074
|
-
if (t.mode === "datetime" &&
|
|
1075
|
-
return `${
|
|
1072
|
+
const d = O.value.single, f = I.value.single;
|
|
1073
|
+
if (t.mode === "date") return d;
|
|
1074
|
+
if (t.mode === "time") return f || null;
|
|
1075
|
+
if (t.mode === "datetime" && d && f)
|
|
1076
|
+
return `${d}T${f}`;
|
|
1076
1077
|
}
|
|
1077
1078
|
return null;
|
|
1078
1079
|
}, x = () => {
|
|
1079
1080
|
if (i.value)
|
|
1080
|
-
|
|
1081
|
+
O.value.single = i.value.value || null;
|
|
1081
1082
|
else if (g.value) {
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1083
|
+
const d = g.value.value;
|
|
1084
|
+
O.value.start = (d == null ? void 0 : d.start) || null, O.value.end = (d == null ? void 0 : d.end) || null;
|
|
1084
1085
|
}
|
|
1085
1086
|
}, C = () => {
|
|
1086
1087
|
x();
|
|
1087
|
-
const
|
|
1088
|
-
o("update:modelValue",
|
|
1088
|
+
const d = w();
|
|
1089
|
+
o("update:modelValue", d), o("change", d);
|
|
1089
1090
|
}, B = () => {
|
|
1090
|
-
var
|
|
1091
|
-
t.range ? (I.value.from = ((
|
|
1091
|
+
var d, f, b;
|
|
1092
|
+
t.range ? (I.value.from = ((d = p.value) == null ? void 0 : d.value) || "", I.value.to = ((f = S.value) == null ? void 0 : f.value) || "") : I.value.single = ((b = v.value) == null ? void 0 : b.value) || "", C();
|
|
1092
1093
|
}, L = () => {
|
|
1093
1094
|
s.value = !s.value, s.value && C();
|
|
1094
1095
|
}, R = () => {
|
|
1095
1096
|
s.value = !1, C();
|
|
1096
|
-
}, N = (
|
|
1097
|
+
}, N = (d) => {
|
|
1097
1098
|
if (!t.popup || !s.value) return;
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1099
|
+
const f = u.value, b = d.target;
|
|
1100
|
+
f && !f.contains(b) && R();
|
|
1100
1101
|
}, m = () => {
|
|
1101
|
-
const
|
|
1102
|
+
const d = (f) => f instanceof Date ? f.toISOString() : f;
|
|
1102
1103
|
if (t.initialDate) {
|
|
1103
1104
|
if (t.range && typeof t.initialDate == "object" && "start" in t.initialDate) {
|
|
1104
|
-
const
|
|
1105
|
-
if (
|
|
1106
|
-
const n = new Date(
|
|
1105
|
+
const f = d(t.initialDate.start), b = d(t.initialDate.end);
|
|
1106
|
+
if (O.value.start = f.split("T")[0], O.value.end = b.split("T")[0], t.mode !== "date") {
|
|
1107
|
+
const n = new Date(f), $ = new Date(b), h = (D) => `${String(D.getUTCHours()).padStart(2, "0")}:${String(D.getUTCMinutes()).padStart(2, "0")}`;
|
|
1107
1108
|
I.value.from = h(n), I.value.to = h($), p.value && (p.value.value = I.value.from), S.value && (S.value.value = I.value.to);
|
|
1108
1109
|
}
|
|
1109
1110
|
} else if (typeof t.initialDate == "string" || t.initialDate instanceof Date) {
|
|
1110
|
-
const
|
|
1111
|
-
if (
|
|
1112
|
-
const b = new Date(
|
|
1111
|
+
const f = d(t.initialDate);
|
|
1112
|
+
if (O.value.single = f.split("T")[0], t.mode !== "date") {
|
|
1113
|
+
const b = new Date(f), n = `${String(b.getUTCHours()).padStart(2, "0")}:${String(b.getUTCMinutes()).padStart(2, "0")}`;
|
|
1113
1114
|
I.value.single = n, v.value && (v.value.value = n);
|
|
1114
1115
|
}
|
|
1115
1116
|
}
|
|
@@ -1117,27 +1118,27 @@ const Ee = Q("SunIcon", [
|
|
|
1117
1118
|
};
|
|
1118
1119
|
return K(() => {
|
|
1119
1120
|
m(), C();
|
|
1120
|
-
}), (
|
|
1121
|
-
const b =
|
|
1121
|
+
}), (d, f) => {
|
|
1122
|
+
const b = oe("calendar-month"), n = oe("calendar-date"), $ = oe("calendar-range");
|
|
1122
1123
|
return a(), r("div", {
|
|
1123
1124
|
class: "inline-block relative w-fit lg:w-full",
|
|
1124
1125
|
ref_key: "pickerContainer",
|
|
1125
|
-
ref:
|
|
1126
|
+
ref: u,
|
|
1126
1127
|
onMousedownCapture: N
|
|
1127
1128
|
}, [
|
|
1128
1129
|
t.popup ? (a(), r("div", {
|
|
1129
1130
|
key: 0,
|
|
1130
1131
|
class: "flex items-center gap-2 cursor-pointer w-full",
|
|
1131
|
-
onClick:
|
|
1132
|
+
onClick: f[0] || (f[0] = (h) => t.disabled ? null : L())
|
|
1132
1133
|
}, [
|
|
1133
1134
|
l("div", kt, [
|
|
1134
|
-
y.value ? T("", !0) : (a(), r("span", $t,
|
|
1135
|
-
|
|
1135
|
+
y.value ? T("", !0) : (a(), r("span", $t, z(e.placeholder), 1)),
|
|
1136
|
+
ue(" " + z(y.value), 1)
|
|
1136
1137
|
])
|
|
1137
1138
|
])) : T("", !0),
|
|
1138
1139
|
s.value || !t.popup ? (a(), r("div", {
|
|
1139
1140
|
key: 1,
|
|
1140
|
-
class:
|
|
1141
|
+
class: M(["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 }]),
|
|
1141
1142
|
id: `date-picker-${t.id}-popup`
|
|
1142
1143
|
}, [
|
|
1143
1144
|
!t.range && t.mode !== "time" ? (a(), W(n, {
|
|
@@ -1152,7 +1153,7 @@ const Ee = Q("SunIcon", [
|
|
|
1152
1153
|
onChange: C
|
|
1153
1154
|
}, {
|
|
1154
1155
|
default: ce(() => [
|
|
1155
|
-
|
|
1156
|
+
f[1] || (f[1] = l("button", {
|
|
1156
1157
|
slot: "previous",
|
|
1157
1158
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1158
1159
|
}, [
|
|
@@ -1171,7 +1172,7 @@ const Ee = Q("SunIcon", [
|
|
|
1171
1172
|
})
|
|
1172
1173
|
])
|
|
1173
1174
|
], -1)),
|
|
1174
|
-
|
|
1175
|
+
f[2] || (f[2] = l("button", {
|
|
1175
1176
|
slot: "next",
|
|
1176
1177
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1177
1178
|
}, [
|
|
@@ -1208,7 +1209,7 @@ const Ee = Q("SunIcon", [
|
|
|
1208
1209
|
onChange: C
|
|
1209
1210
|
}, {
|
|
1210
1211
|
default: ce(() => [
|
|
1211
|
-
|
|
1212
|
+
f[3] || (f[3] = l("button", {
|
|
1212
1213
|
slot: "previous",
|
|
1213
1214
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1214
1215
|
}, [
|
|
@@ -1227,7 +1228,7 @@ const Ee = Q("SunIcon", [
|
|
|
1227
1228
|
})
|
|
1228
1229
|
])
|
|
1229
1230
|
], -1)),
|
|
1230
|
-
|
|
1231
|
+
f[4] || (f[4] = l("button", {
|
|
1231
1232
|
slot: "next",
|
|
1232
1233
|
class: "btn-outline btn btn-primary md:btn-sm"
|
|
1233
1234
|
}, [
|
|
@@ -1266,7 +1267,7 @@ const Ee = Q("SunIcon", [
|
|
|
1266
1267
|
disabled: t.disabled
|
|
1267
1268
|
}, null, 40, Mt)
|
|
1268
1269
|
]),
|
|
1269
|
-
|
|
1270
|
+
f[5] || (f[5] = l("svg", {
|
|
1270
1271
|
class: "join-item",
|
|
1271
1272
|
viewBox: "0 0 1024 1024",
|
|
1272
1273
|
focusable: "false",
|
|
@@ -1302,21 +1303,17 @@ const Ee = Q("SunIcon", [
|
|
|
1302
1303
|
disabled: t.disabled
|
|
1303
1304
|
}, null, 40, zt)
|
|
1304
1305
|
])) : T("", !0),
|
|
1305
|
-
t.popup ? (a(), r("div", Ot, [
|
|
1306
|
+
t.popup && e.closeText ? (a(), r("div", Ot, [
|
|
1306
1307
|
l("button", {
|
|
1307
1308
|
class: "btn btn-primary max-lg:w-full",
|
|
1308
1309
|
onClick: R
|
|
1309
|
-
},
|
|
1310
|
-
M(u.$slots, "default", {}, () => [
|
|
1311
|
-
c[6] || (c[6] = ee("Close", -1))
|
|
1312
|
-
], !0)
|
|
1313
|
-
])
|
|
1310
|
+
}, z(e.closeText), 1)
|
|
1314
1311
|
])) : T("", !0)
|
|
1315
1312
|
], 10, Ct)) : T("", !0)
|
|
1316
1313
|
], 544);
|
|
1317
1314
|
};
|
|
1318
1315
|
}
|
|
1319
|
-
}), jt = /* @__PURE__ */ J(Pt, [["__scopeId", "data-v-
|
|
1316
|
+
}), jt = /* @__PURE__ */ J(Pt, [["__scopeId", "data-v-423cdcd2"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1320
1317
|
__proto__: null,
|
|
1321
1318
|
default: jt
|
|
1322
1319
|
}, Symbol.toStringTag, { value: "Module" })), Et = ["value", "checked", "onChange", "disabled"], Jl = /* @__PURE__ */ P({
|
|
@@ -1332,19 +1329,19 @@ const Ee = Q("SunIcon", [
|
|
|
1332
1329
|
gap: { default: 0 }
|
|
1333
1330
|
},
|
|
1334
1331
|
setup(e) {
|
|
1335
|
-
const
|
|
1332
|
+
const c = e, t = k(c.initialRating);
|
|
1336
1333
|
A(
|
|
1337
|
-
() =>
|
|
1338
|
-
(
|
|
1339
|
-
t.value =
|
|
1334
|
+
() => c.initialRating,
|
|
1335
|
+
(u) => {
|
|
1336
|
+
t.value = u;
|
|
1340
1337
|
}
|
|
1341
1338
|
);
|
|
1342
|
-
const o = (
|
|
1343
|
-
t.value =
|
|
1339
|
+
const o = (u) => {
|
|
1340
|
+
t.value = u;
|
|
1344
1341
|
};
|
|
1345
|
-
return (
|
|
1346
|
-
class:
|
|
1347
|
-
`rating-${
|
|
1342
|
+
return (u, s) => (a(), r("div", {
|
|
1343
|
+
class: M(["rating", [
|
|
1344
|
+
`rating-${c.size}`,
|
|
1348
1345
|
{ "rating-half": e.halfStars },
|
|
1349
1346
|
{ "pointer-events-none": !e.isInteractive }
|
|
1350
1347
|
]])
|
|
@@ -1355,7 +1352,7 @@ const Ee = Q("SunIcon", [
|
|
|
1355
1352
|
value: e.halfStars ? i * 0.5 : i,
|
|
1356
1353
|
checked: t.value === (e.halfStars ? i * 0.5 : i),
|
|
1357
1354
|
onChange: (g) => e.isInteractive ? o(e.halfStars ? i * 0.5 : i) : null,
|
|
1358
|
-
class:
|
|
1355
|
+
class: M(["mask", [
|
|
1359
1356
|
{
|
|
1360
1357
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1361
1358
|
"mask-half-1": e.halfStars && i % 2 !== 0,
|
|
@@ -1376,16 +1373,16 @@ const Ee = Q("SunIcon", [
|
|
|
1376
1373
|
"mask-triangle-3": e.shape === "triangle-left",
|
|
1377
1374
|
"mask-triangle-4": e.shape === "triangle-right"
|
|
1378
1375
|
},
|
|
1379
|
-
t.value >= (e.halfStars ? i * 0.5 : i) ?
|
|
1376
|
+
t.value >= (e.halfStars ? i * 0.5 : i) ? c.color : ""
|
|
1380
1377
|
]]),
|
|
1381
1378
|
style: Z({
|
|
1382
|
-
marginRight: e.halfStars && i % 2 === 0 ? `${
|
|
1379
|
+
marginRight: e.halfStars && i % 2 === 0 ? `${c.gap}px` : e.halfStars ? "0" : `${c.gap}px`
|
|
1383
1380
|
}),
|
|
1384
1381
|
disabled: !e.isInteractive
|
|
1385
1382
|
}, null, 46, Et))), 128))
|
|
1386
1383
|
], 2));
|
|
1387
1384
|
}
|
|
1388
|
-
}), At = { class: "badge" }, Rt = ["onClick"], Nt = { class: "opacity-75" },
|
|
1385
|
+
}), At = { class: "badge" }, Rt = ["onClick"], Nt = { class: "opacity-75" }, Ft = ["placeholder"], Zl = /* @__PURE__ */ P({
|
|
1389
1386
|
__name: "taginput",
|
|
1390
1387
|
props: {
|
|
1391
1388
|
modelValue: {},
|
|
@@ -1394,23 +1391,23 @@ const Ee = Q("SunIcon", [
|
|
|
1394
1391
|
class: {}
|
|
1395
1392
|
},
|
|
1396
1393
|
emits: ["update:modelValue"],
|
|
1397
|
-
setup(e, { emit:
|
|
1398
|
-
const t = e, o =
|
|
1394
|
+
setup(e, { emit: c }) {
|
|
1395
|
+
const t = e, o = c, u = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v = _(() => s < 0 || u.value.length < s), p = () => {
|
|
1399
1396
|
const y = g.value.trim();
|
|
1400
|
-
y && !
|
|
1397
|
+
y && !u.value.includes(y) && (u.value.push(y), o("update:modelValue", u.value), g.value = "");
|
|
1401
1398
|
}, S = (y) => {
|
|
1402
|
-
|
|
1399
|
+
u.value = u.value.filter((w) => w !== y), o("update:modelValue", u.value);
|
|
1403
1400
|
}, I = () => {
|
|
1404
|
-
g.value === "" && (
|
|
1405
|
-
},
|
|
1401
|
+
g.value === "" && (u.value.pop(), o("update:modelValue", u.value));
|
|
1402
|
+
}, O = (y) => {
|
|
1406
1403
|
y.key === "Enter" ? p() : y.key === "Backspace" && g.value === "" && I();
|
|
1407
1404
|
};
|
|
1408
1405
|
return A(() => t.modelValue, (y) => {
|
|
1409
|
-
|
|
1406
|
+
u.value = [...y];
|
|
1410
1407
|
}), (y, w) => (a(), r("div", {
|
|
1411
|
-
class:
|
|
1408
|
+
class: M(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", y.$props.class])
|
|
1412
1409
|
}, [
|
|
1413
|
-
(a(!0), r(j, null, E(
|
|
1410
|
+
(a(!0), r(j, null, E(u.value, (x) => V(y.$slots, "tag", {
|
|
1414
1411
|
key: x,
|
|
1415
1412
|
tag: x
|
|
1416
1413
|
}, () => [
|
|
@@ -1420,11 +1417,11 @@ const Ee = Q("SunIcon", [
|
|
|
1420
1417
|
onClick: (C) => S(x),
|
|
1421
1418
|
"aria-label": "Remove tag"
|
|
1422
1419
|
}, "X", 8, Rt),
|
|
1423
|
-
l("span", Nt,
|
|
1420
|
+
l("span", Nt, z(x), 1)
|
|
1424
1421
|
])
|
|
1425
1422
|
])), 128)),
|
|
1426
|
-
|
|
1427
|
-
v.value ?
|
|
1423
|
+
V(y.$slots, "input", { showInput: v.value }, () => [
|
|
1424
|
+
v.value ? ee((a(), r("input", {
|
|
1428
1425
|
key: 0,
|
|
1429
1426
|
ref_key: "inputRef",
|
|
1430
1427
|
ref: i,
|
|
@@ -1432,15 +1429,15 @@ const Ee = Q("SunIcon", [
|
|
|
1432
1429
|
type: "text",
|
|
1433
1430
|
placeholder: e.placeholder || "Type here",
|
|
1434
1431
|
class: "h-full input input-ghost",
|
|
1435
|
-
onKeydown:
|
|
1432
|
+
onKeydown: O,
|
|
1436
1433
|
"aria-label": "Add tags"
|
|
1437
|
-
}, null, 40,
|
|
1434
|
+
}, null, 40, Ft)), [
|
|
1438
1435
|
[me, g.value]
|
|
1439
1436
|
]) : T("", !0)
|
|
1440
1437
|
])
|
|
1441
1438
|
], 2));
|
|
1442
1439
|
}
|
|
1443
|
-
}),
|
|
1440
|
+
}), Ut = { class: "w-full max-w-xs form-control" }, _t = {
|
|
1444
1441
|
key: 0,
|
|
1445
1442
|
class: "label"
|
|
1446
1443
|
}, qt = { class: "label-text" }, Ht = ["value"], Wt = {
|
|
@@ -1457,22 +1454,22 @@ const Ee = Q("SunIcon", [
|
|
|
1457
1454
|
modelValue: {}
|
|
1458
1455
|
},
|
|
1459
1456
|
emits: ["update:modelValue"],
|
|
1460
|
-
setup(e, { expose:
|
|
1457
|
+
setup(e, { expose: c, emit: t }) {
|
|
1461
1458
|
console.log(e.placeholder);
|
|
1462
|
-
const
|
|
1459
|
+
const u = t, s = k(null), i = (v) => {
|
|
1463
1460
|
const p = v.target;
|
|
1464
|
-
|
|
1461
|
+
u("update:modelValue", p.value);
|
|
1465
1462
|
};
|
|
1466
|
-
return
|
|
1463
|
+
return c({
|
|
1467
1464
|
focusInput: () => {
|
|
1468
1465
|
var v;
|
|
1469
1466
|
console.log("select.vue: focusInput method called."), (v = s.value) == null || v.focus();
|
|
1470
1467
|
}
|
|
1471
1468
|
// You can expose other properties or methods here if needed by the parent
|
|
1472
1469
|
// e.g., the current value: modelValue
|
|
1473
|
-
}), (v, p) => (a(), r("div",
|
|
1474
|
-
e.label ? (a(), r("label",
|
|
1475
|
-
l("span", qt,
|
|
1470
|
+
}), (v, p) => (a(), r("div", Ut, [
|
|
1471
|
+
e.label ? (a(), r("label", _t, [
|
|
1472
|
+
l("span", qt, z(e.label), 1)
|
|
1476
1473
|
])) : T("", !0),
|
|
1477
1474
|
l("select", {
|
|
1478
1475
|
ref_key: "selectElement",
|
|
@@ -1481,11 +1478,11 @@ const Ee = Q("SunIcon", [
|
|
|
1481
1478
|
value: e.modelValue,
|
|
1482
1479
|
onChange: i
|
|
1483
1480
|
}, [
|
|
1484
|
-
e.placeholder ? (a(), r("option", Wt,
|
|
1481
|
+
e.placeholder ? (a(), r("option", Wt, z(e.placeholder), 1)) : T("", !0),
|
|
1485
1482
|
(a(!0), r(j, null, E(e.options, (S) => (a(), r("option", {
|
|
1486
1483
|
key: S.value,
|
|
1487
1484
|
value: S.value
|
|
1488
|
-
},
|
|
1485
|
+
}, z(S.text), 9, Kt))), 128))
|
|
1489
1486
|
], 40, Ht)
|
|
1490
1487
|
]));
|
|
1491
1488
|
}
|
|
@@ -1525,17 +1522,17 @@ const Ee = Q("SunIcon", [
|
|
|
1525
1522
|
}
|
|
1526
1523
|
},
|
|
1527
1524
|
emits: ["update:modelValue", "select", "clear"],
|
|
1528
|
-
setup(e, { expose:
|
|
1529
|
-
const o = e,
|
|
1525
|
+
setup(e, { expose: c, emit: t }) {
|
|
1526
|
+
const o = e, u = t, s = we(), i = _(() => {
|
|
1530
1527
|
const $ = (s.default ? s.default() : []).filter((h) => h.type !== xe);
|
|
1531
1528
|
return console.log("hasDefaultSlotContent computed:", $.length > 0), $.length > 0;
|
|
1532
|
-
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null),
|
|
1529
|
+
}), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null), O = k(null), y = k(null), w = () => {
|
|
1533
1530
|
p.value = !o.disabled;
|
|
1534
1531
|
}, x = () => {
|
|
1535
1532
|
p.value = !1, y.value = null, i.value || (v.value && g.value !== v.value.text ? g.value = v.value.text : v.value || (g.value = ""));
|
|
1536
1533
|
}, C = () => {
|
|
1537
1534
|
p.value ? x() : w();
|
|
1538
|
-
}, B =
|
|
1535
|
+
}, B = _(() => {
|
|
1539
1536
|
const n = g.value ? g.value.toLowerCase() : "";
|
|
1540
1537
|
return n === "" && !p.value ? [] : o.options.filter(
|
|
1541
1538
|
(h) => h && h.text ? h.text.toLowerCase().includes(n) : ""
|
|
@@ -1565,23 +1562,23 @@ const Ee = Q("SunIcon", [
|
|
|
1565
1562
|
n ? setTimeout(() => {
|
|
1566
1563
|
document.addEventListener("click", L);
|
|
1567
1564
|
}, 0) : document.removeEventListener("click", L);
|
|
1568
|
-
}),
|
|
1565
|
+
}), ie(() => {
|
|
1569
1566
|
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1570
1567
|
});
|
|
1571
1568
|
const N = () => {
|
|
1572
1569
|
if (o.disabled) return;
|
|
1573
1570
|
const n = v.value;
|
|
1574
|
-
|
|
1571
|
+
u("update:modelValue", null), n && u("clear", n);
|
|
1575
1572
|
}, m = (n) => {
|
|
1576
|
-
v.value = n, i.value || (g.value = n.text),
|
|
1577
|
-
},
|
|
1573
|
+
v.value = n, i.value || (g.value = n.text), u("update:modelValue", n.value), u("select", n), x();
|
|
1574
|
+
}, d = () => {
|
|
1578
1575
|
B.value.length > 0 && m(B.value[0]);
|
|
1579
|
-
},
|
|
1576
|
+
}, f = () => {
|
|
1580
1577
|
p.value || w();
|
|
1581
1578
|
}, b = (n) => {
|
|
1582
1579
|
if (!p.value || B.value.length === 0) return;
|
|
1583
1580
|
const $ = B.value.findIndex(
|
|
1584
|
-
(D,
|
|
1581
|
+
(D, F) => "option-" + F === y.value
|
|
1585
1582
|
);
|
|
1586
1583
|
let h = -1;
|
|
1587
1584
|
if (n.key === "ArrowDown")
|
|
@@ -1591,12 +1588,12 @@ const Ee = Q("SunIcon", [
|
|
|
1591
1588
|
else if (n.key === "Enter" && y.value) {
|
|
1592
1589
|
n.preventDefault();
|
|
1593
1590
|
const D = B.value.find(
|
|
1594
|
-
(
|
|
1591
|
+
(F, q) => "option-" + q === y.value
|
|
1595
1592
|
);
|
|
1596
1593
|
D && m(D);
|
|
1597
1594
|
return;
|
|
1598
1595
|
} else if (n.key === "Escape") {
|
|
1599
|
-
n.preventDefault(), x(),
|
|
1596
|
+
n.preventDefault(), x(), O.value && O.value.focus();
|
|
1600
1597
|
return;
|
|
1601
1598
|
} else if (i.value)
|
|
1602
1599
|
return;
|
|
@@ -1610,9 +1607,9 @@ const Ee = Q("SunIcon", [
|
|
|
1610
1607
|
};
|
|
1611
1608
|
return A(p, (n) => {
|
|
1612
1609
|
n ? (window.addEventListener("keydown", b), !i.value && !g.value && v.value && (g.value = v.value.text)) : window.removeEventListener("keydown", b);
|
|
1613
|
-
}),
|
|
1610
|
+
}), ie(() => {
|
|
1614
1611
|
document.removeEventListener("click", L), window.removeEventListener("keydown", b);
|
|
1615
|
-
}),
|
|
1612
|
+
}), c({
|
|
1616
1613
|
isDropdownOpen: p,
|
|
1617
1614
|
// Expose state
|
|
1618
1615
|
selectedItem: v,
|
|
@@ -1635,18 +1632,18 @@ const Ee = Q("SunIcon", [
|
|
|
1635
1632
|
ref: I
|
|
1636
1633
|
}, [
|
|
1637
1634
|
e.label ? (a(), r("label", Xt, [
|
|
1638
|
-
l("span", Gt,
|
|
1635
|
+
l("span", Gt, z(e.label), 1)
|
|
1639
1636
|
])) : T("", !0),
|
|
1640
1637
|
l("div", {
|
|
1641
|
-
class:
|
|
1638
|
+
class: M(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !i.value, select: !i.value }]),
|
|
1642
1639
|
style: Z(
|
|
1643
1640
|
v.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1644
1641
|
),
|
|
1645
1642
|
tabindex: "0",
|
|
1646
1643
|
onClick: $[1] || ($[1] = (h) => i.value ? C() : w()),
|
|
1647
1644
|
onKeydown: [
|
|
1648
|
-
|
|
1649
|
-
|
|
1645
|
+
re(H(d, ["prevent"]), ["enter"]),
|
|
1646
|
+
re(H(d, ["prevent"]), ["space"])
|
|
1650
1647
|
],
|
|
1651
1648
|
onBlur: R,
|
|
1652
1649
|
role: "combobox",
|
|
@@ -1655,10 +1652,10 @@ const Ee = Q("SunIcon", [
|
|
|
1655
1652
|
"aria-activedescendant": y.value,
|
|
1656
1653
|
"aria-autocomplete": "list",
|
|
1657
1654
|
ref_key: "activatorWrapper",
|
|
1658
|
-
ref:
|
|
1655
|
+
ref: O
|
|
1659
1656
|
}, [
|
|
1660
|
-
|
|
1661
|
-
i.value ? T("", !0) :
|
|
1657
|
+
V(n.$slots, "default", {}, () => [
|
|
1658
|
+
i.value ? T("", !0) : ee((a(), r("input", {
|
|
1662
1659
|
key: 0,
|
|
1663
1660
|
type: "text",
|
|
1664
1661
|
placeholder: e.placeholder,
|
|
@@ -1667,36 +1664,36 @@ const Ee = Q("SunIcon", [
|
|
|
1667
1664
|
ref_key: "filterInput",
|
|
1668
1665
|
ref: S,
|
|
1669
1666
|
onFocus: w,
|
|
1670
|
-
onInput:
|
|
1667
|
+
onInput: f,
|
|
1671
1668
|
tabindex: "-1",
|
|
1672
1669
|
disabled: o.disabled
|
|
1673
1670
|
}, null, 40, Zt)), [
|
|
1674
1671
|
[me, g.value]
|
|
1675
1672
|
])
|
|
1676
1673
|
]),
|
|
1677
|
-
v.value && !e.disabled ? (a(), W(
|
|
1674
|
+
v.value && !e.disabled ? (a(), W(U(je), {
|
|
1678
1675
|
key: 0,
|
|
1679
1676
|
size: 20,
|
|
1680
1677
|
class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
|
|
1681
1678
|
onClick: H(N, ["stop"])
|
|
1682
1679
|
})) : T("", !0),
|
|
1683
|
-
i.value && !v.value ? (a(), W(
|
|
1680
|
+
i.value && !v.value ? (a(), W(U(Pe), {
|
|
1684
1681
|
key: 1,
|
|
1685
|
-
class:
|
|
1682
|
+
class: M([{ "rotate-180": p.value }, "mx-2"]),
|
|
1686
1683
|
size: 20
|
|
1687
1684
|
}, null, 8, ["class"])) : T("", !0)
|
|
1688
1685
|
], 46, Jt),
|
|
1689
|
-
|
|
1686
|
+
ee(l("div", Qt, [
|
|
1690
1687
|
l("ul", Yt, [
|
|
1691
1688
|
(a(!0), r(j, null, E(B.value, (h, D) => (a(), r("li", {
|
|
1692
1689
|
key: h.value,
|
|
1693
|
-
onMousedown: H((
|
|
1690
|
+
onMousedown: H((F) => m(h), ["prevent"]),
|
|
1694
1691
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
1695
1692
|
id: "option-" + D,
|
|
1696
1693
|
role: "option",
|
|
1697
1694
|
"aria-selected": v.value && v.value.value === h.value
|
|
1698
1695
|
}, [
|
|
1699
|
-
l("a", null,
|
|
1696
|
+
l("a", null, z(h.text), 1)
|
|
1700
1697
|
], 40, el))), 128))
|
|
1701
1698
|
])
|
|
1702
1699
|
], 512), [
|
|
@@ -1729,15 +1726,15 @@ const Ee = Q("SunIcon", [
|
|
|
1729
1726
|
disabled: { type: Boolean, default: !1 }
|
|
1730
1727
|
},
|
|
1731
1728
|
emits: ["update:modelValue", "validate"],
|
|
1732
|
-
setup(e, { expose:
|
|
1733
|
-
const o = e,
|
|
1729
|
+
setup(e, { expose: c, emit: t }) {
|
|
1730
|
+
const o = e, u = t, s = k(null), i = k(!1), g = k(""), v = _(() => {
|
|
1734
1731
|
var C, B, L, R;
|
|
1735
1732
|
let y = !0, w = "";
|
|
1736
1733
|
const x = o.modelValue;
|
|
1737
|
-
return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w,
|
|
1738
|
-
}), p =
|
|
1734
|
+
return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w, u("validate", y), y;
|
|
1735
|
+
}), p = _(() => i.value && !v.value), S = (y) => {
|
|
1739
1736
|
const w = y.target;
|
|
1740
|
-
|
|
1737
|
+
u("update:modelValue", w.value), i.value && v.value;
|
|
1741
1738
|
}, I = () => {
|
|
1742
1739
|
i.value = !0, v.value;
|
|
1743
1740
|
};
|
|
@@ -1746,7 +1743,7 @@ const Ee = Q("SunIcon", [
|
|
|
1746
1743
|
() => {
|
|
1747
1744
|
i.value && v.value;
|
|
1748
1745
|
}
|
|
1749
|
-
),
|
|
1746
|
+
), c({
|
|
1750
1747
|
focusInput: () => {
|
|
1751
1748
|
var y;
|
|
1752
1749
|
console.log("inputField.vue: focusInput method called."), (y = s.value) == null || y.focus();
|
|
@@ -1756,16 +1753,16 @@ const Ee = Q("SunIcon", [
|
|
|
1756
1753
|
errorMessage: g
|
|
1757
1754
|
}), (y, w) => (a(), r("div", tl, [
|
|
1758
1755
|
e.label ? (a(), r("label", ll, [
|
|
1759
|
-
l("span", nl,
|
|
1756
|
+
l("span", nl, z(e.label), 1)
|
|
1760
1757
|
])) : T("", !0),
|
|
1761
|
-
|
|
1758
|
+
V(y.$slots, "default"),
|
|
1762
1759
|
l("input", {
|
|
1763
1760
|
ref_key: "inputElement",
|
|
1764
1761
|
ref: s,
|
|
1765
1762
|
type: e.type,
|
|
1766
1763
|
placeholder: e.placeholder,
|
|
1767
1764
|
disabled: o.disabled,
|
|
1768
|
-
class:
|
|
1765
|
+
class: M(["input-bordered rounded-md w-full input validator", [
|
|
1769
1766
|
{
|
|
1770
1767
|
// Size classes - Apply based on size prop
|
|
1771
1768
|
"input-xs": e.size === "xs",
|
|
@@ -1797,9 +1794,9 @@ const Ee = Q("SunIcon", [
|
|
|
1797
1794
|
onBlur: I
|
|
1798
1795
|
}, null, 42, al),
|
|
1799
1796
|
p.value ? (a(), r("div", ol, [
|
|
1800
|
-
l("span", sl,
|
|
1797
|
+
l("span", sl, z(g.value), 1)
|
|
1801
1798
|
])) : v.value && i.value && e.successMessage ? (a(), r("div", il, [
|
|
1802
|
-
l("span", rl,
|
|
1799
|
+
l("span", rl, z(e.successMessage), 1)
|
|
1803
1800
|
])) : T("", !0)
|
|
1804
1801
|
]));
|
|
1805
1802
|
}
|
|
@@ -1812,15 +1809,15 @@ const Ee = Q("SunIcon", [
|
|
|
1812
1809
|
color: { default: "primary" }
|
|
1813
1810
|
},
|
|
1814
1811
|
setup(e) {
|
|
1815
|
-
const
|
|
1812
|
+
const c = e, t = k(c.loading);
|
|
1816
1813
|
return A(
|
|
1817
|
-
() =>
|
|
1814
|
+
() => c.loading,
|
|
1818
1815
|
(o) => {
|
|
1819
1816
|
t.value = o;
|
|
1820
1817
|
}
|
|
1821
|
-
), (o,
|
|
1818
|
+
), (o, u) => t.value ? (a(), r("span", {
|
|
1822
1819
|
key: 0,
|
|
1823
|
-
class:
|
|
1820
|
+
class: M(["loading", [
|
|
1824
1821
|
{ "loading-xs": e.size === "xs" },
|
|
1825
1822
|
{ "loading-sm": e.size === "sm" },
|
|
1826
1823
|
{ "loading-md": e.size === "md" },
|
|
@@ -1860,31 +1857,31 @@ const Ee = Q("SunIcon", [
|
|
|
1860
1857
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1861
1858
|
},
|
|
1862
1859
|
setup(e) {
|
|
1863
|
-
const
|
|
1860
|
+
const c = e;
|
|
1864
1861
|
return (t, o) => (a(), r("div", {
|
|
1865
|
-
class:
|
|
1862
|
+
class: M(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1866
1863
|
}, [
|
|
1867
1864
|
l("footer", ul, [
|
|
1868
|
-
(a(!0), r(j, null, E(
|
|
1869
|
-
class:
|
|
1865
|
+
(a(!0), r(j, null, E(c.items, (u) => (a(), r("nav", {
|
|
1866
|
+
class: M([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
1870
1867
|
}, [
|
|
1871
|
-
l("h6", dl,
|
|
1872
|
-
(a(!0), r(j, null, E(
|
|
1868
|
+
l("h6", dl, z(u.title), 1),
|
|
1869
|
+
(a(!0), r(j, null, E(u.items, (s) => (a(), r("a", {
|
|
1873
1870
|
class: "link link-hover",
|
|
1874
1871
|
href: s.link
|
|
1875
|
-
},
|
|
1872
|
+
}, z(s.text), 9, cl))), 256))
|
|
1876
1873
|
], 2))), 256)),
|
|
1877
1874
|
e.collapseOnMobile ? (a(), r("nav", fl, [
|
|
1878
|
-
(a(!0), r(j, null, E(
|
|
1875
|
+
(a(!0), r(j, null, E(c.items, (u) => (a(), r("ul", ml, [
|
|
1879
1876
|
l("div", vl, [
|
|
1880
|
-
l("div", pl,
|
|
1877
|
+
l("div", pl, z(u.title), 1),
|
|
1881
1878
|
l("div", hl, [
|
|
1882
1879
|
l("ul", gl, [
|
|
1883
|
-
(a(!0), r(j, null, E(
|
|
1880
|
+
(a(!0), r(j, null, E(u.items, (s) => (a(), r("li", bl, [
|
|
1884
1881
|
l("a", {
|
|
1885
1882
|
class: "w-full font-medium link link-hover",
|
|
1886
1883
|
href: s.link
|
|
1887
|
-
},
|
|
1884
|
+
}, z(s.text), 9, yl)
|
|
1888
1885
|
]))), 256))
|
|
1889
1886
|
])
|
|
1890
1887
|
])
|
|
@@ -1892,26 +1889,26 @@ const Ee = Q("SunIcon", [
|
|
|
1892
1889
|
]))), 256))
|
|
1893
1890
|
])) : T("", !0),
|
|
1894
1891
|
l("aside", wl, [
|
|
1895
|
-
|
|
1892
|
+
V(t.$slots, "default")
|
|
1896
1893
|
])
|
|
1897
1894
|
])
|
|
1898
1895
|
], 2));
|
|
1899
1896
|
}
|
|
1900
1897
|
}), xl = {}, kl = { class: "min-h-40 container hero" }, $l = { class: "px-0! text-center hero-content" }, Cl = { class: "mt-9 text-4xl" };
|
|
1901
|
-
function Sl(e,
|
|
1898
|
+
function Sl(e, c) {
|
|
1902
1899
|
return a(), r("div", kl, [
|
|
1903
1900
|
l("div", $l, [
|
|
1904
1901
|
l("div", null, [
|
|
1905
1902
|
l("h1", Cl, [
|
|
1906
|
-
|
|
1907
|
-
|
|
1903
|
+
V(e.$slots, "title", {}, () => [
|
|
1904
|
+
c[0] || (c[0] = ue("hero title", -1))
|
|
1908
1905
|
])
|
|
1909
1906
|
]),
|
|
1910
1907
|
l("p", null, [
|
|
1911
|
-
|
|
1908
|
+
V(e.$slots, "description", { class: "py-9" })
|
|
1912
1909
|
]),
|
|
1913
|
-
|
|
1914
|
-
|
|
1910
|
+
V(e.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
1911
|
+
c[1] || (c[1] = l("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
1915
1912
|
])
|
|
1916
1913
|
])
|
|
1917
1914
|
])
|
|
@@ -1924,9 +1921,9 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
1924
1921
|
currentCategory: {}
|
|
1925
1922
|
},
|
|
1926
1923
|
emits: ["update:currentCategory"],
|
|
1927
|
-
setup(e, { emit:
|
|
1928
|
-
const t = e, o =
|
|
1929
|
-
function
|
|
1924
|
+
setup(e, { emit: c }) {
|
|
1925
|
+
const t = e, o = c;
|
|
1926
|
+
function u(s) {
|
|
1930
1927
|
o("update:currentCategory", s);
|
|
1931
1928
|
}
|
|
1932
1929
|
return (s, i) => (a(), r("div", Il, [
|
|
@@ -1934,9 +1931,9 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
1934
1931
|
key: g.category
|
|
1935
1932
|
}, [
|
|
1936
1933
|
l("button", {
|
|
1937
|
-
onClick: (v) =>
|
|
1938
|
-
class:
|
|
1939
|
-
},
|
|
1934
|
+
onClick: (v) => u(g.category),
|
|
1935
|
+
class: M(["truncate btn btn-ghost", { "font-semibold": t.currentCategory === g.category }])
|
|
1936
|
+
}, z(g.category), 11, Tl)
|
|
1940
1937
|
]))), 128))
|
|
1941
1938
|
]));
|
|
1942
1939
|
}
|
|
@@ -1946,21 +1943,21 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
1946
1943
|
isCollapsed: { type: Boolean, default: !0 }
|
|
1947
1944
|
},
|
|
1948
1945
|
setup(e) {
|
|
1949
|
-
const
|
|
1946
|
+
const c = e;
|
|
1950
1947
|
return (t, o) => (a(), r("nav", {
|
|
1951
|
-
class:
|
|
1948
|
+
class: M(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", c.isCollapsed ? "collapsed" : ""])
|
|
1952
1949
|
}, [
|
|
1953
1950
|
l("div", Ml, [
|
|
1954
|
-
|
|
1951
|
+
V(t.$slots, "start", {}, void 0, !0)
|
|
1955
1952
|
]),
|
|
1956
1953
|
l("div", Vl, [
|
|
1957
|
-
|
|
1954
|
+
V(t.$slots, "center", {}, void 0, !0)
|
|
1958
1955
|
]),
|
|
1959
1956
|
l("div", Bl, [
|
|
1960
|
-
|
|
1957
|
+
V(t.$slots, "end", {}, void 0, !0)
|
|
1961
1958
|
]),
|
|
1962
1959
|
l("div", Dl, [
|
|
1963
|
-
|
|
1960
|
+
V(t.$slots, "bottom", {}, void 0, !0)
|
|
1964
1961
|
])
|
|
1965
1962
|
], 2));
|
|
1966
1963
|
}
|
|
@@ -1980,10 +1977,10 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
1980
1977
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
1981
1978
|
},
|
|
1982
1979
|
emits: ["tab-changed"],
|
|
1983
|
-
setup(e, { emit:
|
|
1984
|
-
const t = e, o = k(t.items[0]),
|
|
1980
|
+
setup(e, { emit: c }) {
|
|
1981
|
+
const t = e, o = k(t.items[0]), u = c;
|
|
1985
1982
|
function s(v) {
|
|
1986
|
-
o.value = v,
|
|
1983
|
+
o.value = v, u("tab-changed", v);
|
|
1987
1984
|
}
|
|
1988
1985
|
function i() {
|
|
1989
1986
|
const p = (t.items.indexOf(o.value) + 1) % t.items.length;
|
|
@@ -2002,7 +1999,7 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
2002
1999
|
}), (v, p) => (a(), r(j, null, [
|
|
2003
2000
|
l("div", {
|
|
2004
2001
|
role: "tablist",
|
|
2005
|
-
class:
|
|
2002
|
+
class: M(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2006
2003
|
}, [
|
|
2007
2004
|
e.withControlls ? (a(), r("div", Ol, [
|
|
2008
2005
|
l("button", {
|
|
@@ -2018,17 +2015,17 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
2018
2015
|
l("a", {
|
|
2019
2016
|
type: "button",
|
|
2020
2017
|
role: "tab",
|
|
2021
|
-
class:
|
|
2018
|
+
class: M(["min-w-max tab", S === o.value ? "bg-primary text-base-100" : ""]),
|
|
2022
2019
|
onClick: (I) => s(S),
|
|
2023
2020
|
"aria-selected": o.value == S
|
|
2024
|
-
},
|
|
2021
|
+
}, z(S), 11, Pl),
|
|
2025
2022
|
e.buttonOnlyMode ? T("", !0) : (a(), r("div", jl, [
|
|
2026
|
-
|
|
2023
|
+
V(v.$slots, `${S}-tab`)
|
|
2027
2024
|
]))
|
|
2028
2025
|
], 64))), 256))
|
|
2029
2026
|
], 2),
|
|
2030
2027
|
l("div", Ll, [
|
|
2031
|
-
|
|
2028
|
+
V(v.$slots, "default")
|
|
2032
2029
|
])
|
|
2033
2030
|
], 64));
|
|
2034
2031
|
}
|
|
@@ -2036,7 +2033,7 @@ const nn = /* @__PURE__ */ J(xl, [["render", Sl]]), Il = { class: "flex flex-row
|
|
|
2036
2033
|
typeof document > "u" && (globalThis.document = {});
|
|
2037
2034
|
typeof window > "u" && (globalThis.window = globalThis);
|
|
2038
2035
|
export {
|
|
2039
|
-
|
|
2036
|
+
_l as Accordion,
|
|
2040
2037
|
Gl as AdvancedSearch,
|
|
2041
2038
|
ql as Avatar,
|
|
2042
2039
|
Hl as Badge,
|
|
@@ -2056,8 +2053,8 @@ export {
|
|
|
2056
2053
|
on as NavigationBar,
|
|
2057
2054
|
Jl as Rating,
|
|
2058
2055
|
Ql as Selector,
|
|
2059
|
-
|
|
2056
|
+
Fl as Swap,
|
|
2060
2057
|
sn as Tab,
|
|
2061
2058
|
Zl as TagInput,
|
|
2062
|
-
|
|
2059
|
+
Ul as ThemeController
|
|
2063
2060
|
};
|