@velkymx/vibeui 0.6.0 → 0.7.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/composables/useColorMode.d.ts +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/vibeui.es.js +559 -508
- package/dist/vibeui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vibeui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as M, ref as E, onMounted as Y, onBeforeUnmount as X, watch as O, openBlock as n, createElementBlock as i, normalizeClass as $, renderSlot as N, createTextVNode as I, toDisplayString as k, createCommentVNode as y, computed as m, createBlock as z, resolveDynamicComponent as A, withCtx as j, createElementVNode as S, normalizeStyle as K, Fragment as F, renderList as H, nextTick as ne, reactive as pe, provide as ve, unref as ye, inject as J, getCurrentInstance as ge, Teleport as ie, useModel as _, withDirectives as de, vModelText as ke, vModelSelect as Se, withModifiers as Z, mergeModels as ue } from "vue";
|
|
2
|
+
const $e = /* @__PURE__ */ M({
|
|
3
3
|
__name: "VibeAlert",
|
|
4
4
|
props: {
|
|
5
5
|
variant: { type: String, default: "primary" },
|
|
@@ -35,7 +35,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
35
35
|
const c = () => {
|
|
36
36
|
s.value ? s.value.close() : (o.value = !1, a("update:modelValue", !1), a("closed"));
|
|
37
37
|
};
|
|
38
|
-
return (b, g) => o.value ? (
|
|
38
|
+
return (b, g) => o.value ? (n(), i("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
ref_key: "alertRef",
|
|
41
41
|
ref: l,
|
|
@@ -43,9 +43,9 @@ const pe = /* @__PURE__ */ F({
|
|
|
43
43
|
role: "alert"
|
|
44
44
|
}, [
|
|
45
45
|
N(b.$slots, "default", {}, () => [
|
|
46
|
-
|
|
46
|
+
I(k(e.message), 1)
|
|
47
47
|
]),
|
|
48
|
-
e.dismissable ? (
|
|
48
|
+
e.dismissable ? (n(), i("button", {
|
|
49
49
|
key: 0,
|
|
50
50
|
type: "button",
|
|
51
51
|
class: "btn-close",
|
|
@@ -54,7 +54,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
54
54
|
})) : y("", !0)
|
|
55
55
|
], 2)) : y("", !0);
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), we = /* @__PURE__ */ M({
|
|
58
58
|
__name: "VibeBadge",
|
|
59
59
|
props: {
|
|
60
60
|
variant: { type: String, default: "primary" },
|
|
@@ -67,7 +67,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
67
67
|
const l = ["badge", `bg-${t.variant}`];
|
|
68
68
|
return t.pill && l.push("rounded-pill"), l.join(" ");
|
|
69
69
|
});
|
|
70
|
-
return (l, s) => (
|
|
70
|
+
return (l, s) => (n(), z(A(e.tag), {
|
|
71
71
|
class: $(a.value)
|
|
72
72
|
}, {
|
|
73
73
|
default: j(() => [
|
|
@@ -76,7 +76,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
76
76
|
_: 3
|
|
77
77
|
}, 8, ["class"]));
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), Ve = /* @__PURE__ */ M({
|
|
80
80
|
__name: "VibeButton",
|
|
81
81
|
props: {
|
|
82
82
|
variant: { type: String, default: "primary" },
|
|
@@ -96,7 +96,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
96
96
|
}), o = (r) => {
|
|
97
97
|
t.disabled || a("click", r);
|
|
98
98
|
};
|
|
99
|
-
return (r, u) => (
|
|
99
|
+
return (r, u) => (n(), z(A(l.value), {
|
|
100
100
|
class: $(s.value),
|
|
101
101
|
type: e.href || e.to ? void 0 : e.type,
|
|
102
102
|
href: e.href,
|
|
@@ -111,7 +111,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
111
111
|
_: 3
|
|
112
112
|
}, 8, ["class", "type", "href", "to", "disabled", "aria-disabled"]));
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
114
|
+
}), Ce = ["role", "aria-label"], xe = /* @__PURE__ */ M({
|
|
115
115
|
__name: "VibeButtonGroup",
|
|
116
116
|
props: {
|
|
117
117
|
size: { type: String, default: void 0 },
|
|
@@ -125,15 +125,15 @@ const pe = /* @__PURE__ */ F({
|
|
|
125
125
|
const l = [t.vertical ? "btn-group-vertical" : "btn-group"];
|
|
126
126
|
return t.size && l.push(`btn-group-${t.size}`), l.join(" ");
|
|
127
127
|
});
|
|
128
|
-
return (l, s) => (
|
|
128
|
+
return (l, s) => (n(), i("div", {
|
|
129
129
|
class: $(a.value),
|
|
130
130
|
role: e.role,
|
|
131
131
|
"aria-label": e.ariaLabel
|
|
132
132
|
}, [
|
|
133
133
|
N(l.$slots, "default")
|
|
134
|
-
], 10,
|
|
134
|
+
], 10, Ce));
|
|
135
135
|
}
|
|
136
|
-
}),
|
|
136
|
+
}), Be = ["disabled", "aria-label"], Le = /* @__PURE__ */ M({
|
|
137
137
|
__name: "VibeCloseButton",
|
|
138
138
|
props: {
|
|
139
139
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -145,15 +145,15 @@ const pe = /* @__PURE__ */ F({
|
|
|
145
145
|
const t = e, a = v, l = (s) => {
|
|
146
146
|
t.disabled || a("click", s);
|
|
147
147
|
};
|
|
148
|
-
return (s, o) => (
|
|
148
|
+
return (s, o) => (n(), i("button", {
|
|
149
149
|
type: "button",
|
|
150
150
|
class: $(["btn-close", { "btn-close-white": e.white }]),
|
|
151
151
|
disabled: e.disabled,
|
|
152
152
|
"aria-label": e.ariaLabel,
|
|
153
153
|
onClick: l
|
|
154
|
-
}, null, 10,
|
|
154
|
+
}, null, 10, Be));
|
|
155
155
|
}
|
|
156
|
-
}),
|
|
156
|
+
}), Te = { class: "visually-hidden" }, Ne = /* @__PURE__ */ M({
|
|
157
157
|
__name: "VibeSpinner",
|
|
158
158
|
props: {
|
|
159
159
|
variant: { type: String, default: void 0 },
|
|
@@ -168,17 +168,17 @@ const pe = /* @__PURE__ */ F({
|
|
|
168
168
|
const l = [`spinner-${t.type}`];
|
|
169
169
|
return t.variant && l.push(`text-${t.variant}`), t.size && l.push(`spinner-${t.type}-${t.size}`), l.join(" ");
|
|
170
170
|
});
|
|
171
|
-
return (l, s) => (
|
|
171
|
+
return (l, s) => (n(), z(A(e.tag), {
|
|
172
172
|
class: $(a.value),
|
|
173
173
|
role: "status"
|
|
174
174
|
}, {
|
|
175
175
|
default: j(() => [
|
|
176
|
-
S("span",
|
|
176
|
+
S("span", Te, k(e.label), 1)
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
179
|
}, 8, ["class"]));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), Ee = /* @__PURE__ */ M({
|
|
182
182
|
__name: "VibePlaceholder",
|
|
183
183
|
props: {
|
|
184
184
|
variant: { type: String, default: void 0 },
|
|
@@ -198,7 +198,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
198
198
|
if (t.width)
|
|
199
199
|
return { width: typeof t.width == "number" ? `${t.width}%` : t.width };
|
|
200
200
|
});
|
|
201
|
-
return (o, r) => (
|
|
201
|
+
return (o, r) => (n(), z(A(e.tag), {
|
|
202
202
|
class: $(l.value)
|
|
203
203
|
}, {
|
|
204
204
|
default: j(() => [
|
|
@@ -212,7 +212,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
212
212
|
_: 3
|
|
213
213
|
}, 8, ["class"]));
|
|
214
214
|
}
|
|
215
|
-
}),
|
|
215
|
+
}), Me = /* @__PURE__ */ M({
|
|
216
216
|
__name: "VibeContainer",
|
|
217
217
|
props: {
|
|
218
218
|
fluid: { type: [Boolean, String], default: !1 },
|
|
@@ -221,7 +221,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
221
221
|
emits: ["component-error"],
|
|
222
222
|
setup(e, { emit: v }) {
|
|
223
223
|
const t = e, a = m(() => t.fluid === !1 ? "container" : t.fluid === !0 ? "container-fluid" : `container-${t.fluid}`);
|
|
224
|
-
return (l, s) => (
|
|
224
|
+
return (l, s) => (n(), z(A(e.tag), {
|
|
225
225
|
class: $(a.value)
|
|
226
226
|
}, {
|
|
227
227
|
default: j(() => [
|
|
@@ -230,7 +230,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
230
230
|
_: 3
|
|
231
231
|
}, 8, ["class"]));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), Ie = /* @__PURE__ */ M({
|
|
234
234
|
__name: "VibeRow",
|
|
235
235
|
props: {
|
|
236
236
|
tag: { type: String, default: "div" },
|
|
@@ -283,7 +283,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
283
283
|
t[r] !== void 0 && l.push(`row-cols-${o}-${t[r]}`);
|
|
284
284
|
}), t.alignItems && l.push(`align-items-${t.alignItems}`), t.justifyContent && l.push(`justify-content-${t.justifyContent}`), l.join(" ");
|
|
285
285
|
});
|
|
286
|
-
return (l, s) => (
|
|
286
|
+
return (l, s) => (n(), z(A(e.tag), {
|
|
287
287
|
class: $(a.value)
|
|
288
288
|
}, {
|
|
289
289
|
default: j(() => [
|
|
@@ -292,7 +292,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
292
292
|
_: 3
|
|
293
293
|
}, 8, ["class"]));
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
295
|
+
}), Fe = /* @__PURE__ */ M({
|
|
296
296
|
__name: "VibeCol",
|
|
297
297
|
props: {
|
|
298
298
|
tag: { type: String, default: "div" },
|
|
@@ -334,7 +334,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
334
334
|
u === !0 ? l.push(`col-${r}`) : u === "auto" ? l.push(`col-${r}-auto`) : u !== void 0 && l.push(`col-${r}-${u}`);
|
|
335
335
|
})) : l.push("col"), t.offset !== void 0 && l.push(`offset-${t.offset}`), t.offsetSm !== void 0 && l.push(`offset-sm-${t.offsetSm}`), t.offsetMd !== void 0 && l.push(`offset-md-${t.offsetMd}`), t.offsetLg !== void 0 && l.push(`offset-lg-${t.offsetLg}`), t.offsetXl !== void 0 && l.push(`offset-xl-${t.offsetXl}`), t.offsetXxl !== void 0 && l.push(`offset-xxl-${t.offsetXxl}`), t.order !== void 0 && l.push(`order-${t.order}`), t.orderSm !== void 0 && l.push(`order-sm-${t.orderSm}`), t.orderMd !== void 0 && l.push(`order-md-${t.orderMd}`), t.orderLg !== void 0 && l.push(`order-lg-${t.orderLg}`), t.orderXl !== void 0 && l.push(`order-xl-${t.orderXl}`), t.orderXxl !== void 0 && l.push(`order-xxl-${t.orderXxl}`), t.alignSelf && l.push(`align-self-${t.alignSelf}`), l.join(" ");
|
|
336
336
|
});
|
|
337
|
-
return (l, s) => (
|
|
337
|
+
return (l, s) => (n(), z(A(e.tag), {
|
|
338
338
|
class: $(a.value)
|
|
339
339
|
}, {
|
|
340
340
|
default: j(() => [
|
|
@@ -343,22 +343,22 @@ const pe = /* @__PURE__ */ F({
|
|
|
343
343
|
_: 3
|
|
344
344
|
}, 8, ["class"]));
|
|
345
345
|
}
|
|
346
|
-
}),
|
|
346
|
+
}), Pe = ["src", "alt"], Re = {
|
|
347
347
|
key: 1,
|
|
348
348
|
class: "card-header"
|
|
349
|
-
},
|
|
349
|
+
}, qe = {
|
|
350
350
|
key: 2,
|
|
351
351
|
class: "card-body"
|
|
352
|
-
},
|
|
352
|
+
}, ze = {
|
|
353
353
|
key: 0,
|
|
354
354
|
class: "card-title"
|
|
355
|
-
},
|
|
355
|
+
}, Ae = {
|
|
356
356
|
key: 1,
|
|
357
357
|
class: "card-text"
|
|
358
|
-
},
|
|
358
|
+
}, je = {
|
|
359
359
|
key: 3,
|
|
360
360
|
class: "card-footer"
|
|
361
|
-
},
|
|
361
|
+
}, Oe = ["src", "alt"], He = /* @__PURE__ */ M({
|
|
362
362
|
__name: "VibeCard",
|
|
363
363
|
props: {
|
|
364
364
|
variant: { type: String, default: void 0 },
|
|
@@ -382,50 +382,50 @@ const pe = /* @__PURE__ */ F({
|
|
|
382
382
|
const l = ["card"];
|
|
383
383
|
return t.variant && l.push(`text-bg-${t.variant}`), t.border && l.push(`border-${t.border}`), t.textVariant && l.push(`text-${t.textVariant}`), l.join(" ");
|
|
384
384
|
});
|
|
385
|
-
return (l, s) => (
|
|
385
|
+
return (l, s) => (n(), z(A(e.tag), {
|
|
386
386
|
class: $(a.value)
|
|
387
387
|
}, {
|
|
388
388
|
default: j(() => [
|
|
389
|
-
e.imgSrc && e.imgTop ? (
|
|
389
|
+
e.imgSrc && e.imgTop ? (n(), i("img", {
|
|
390
390
|
key: 0,
|
|
391
391
|
src: e.imgSrc,
|
|
392
392
|
alt: e.imgAlt,
|
|
393
393
|
class: "card-img-top"
|
|
394
|
-
}, null, 8,
|
|
395
|
-
e.header || l.$slots.header ? (
|
|
394
|
+
}, null, 8, Pe)) : y("", !0),
|
|
395
|
+
e.header || l.$slots.header ? (n(), i("div", Re, [
|
|
396
396
|
N(l.$slots, "header", {}, () => [
|
|
397
|
-
|
|
397
|
+
I(k(e.header), 1)
|
|
398
398
|
])
|
|
399
399
|
])) : y("", !0),
|
|
400
|
-
e.title || e.body || l.$slots.default || l.$slots.body ? (
|
|
401
|
-
e.title || l.$slots.title ? (
|
|
400
|
+
e.title || e.body || l.$slots.default || l.$slots.body ? (n(), i("div", qe, [
|
|
401
|
+
e.title || l.$slots.title ? (n(), i("h5", ze, [
|
|
402
402
|
N(l.$slots, "title", {}, () => [
|
|
403
|
-
|
|
403
|
+
I(k(e.title), 1)
|
|
404
404
|
])
|
|
405
405
|
])) : y("", !0),
|
|
406
|
-
e.body || l.$slots.body ? (
|
|
406
|
+
e.body || l.$slots.body ? (n(), i("p", Ae, [
|
|
407
407
|
N(l.$slots, "body", {}, () => [
|
|
408
|
-
|
|
408
|
+
I(k(e.body), 1)
|
|
409
409
|
])
|
|
410
410
|
])) : y("", !0),
|
|
411
411
|
N(l.$slots, "default")
|
|
412
412
|
])) : y("", !0),
|
|
413
|
-
e.footer || l.$slots.footer ? (
|
|
413
|
+
e.footer || l.$slots.footer ? (n(), i("div", je, [
|
|
414
414
|
N(l.$slots, "footer", {}, () => [
|
|
415
|
-
|
|
415
|
+
I(k(e.footer), 1)
|
|
416
416
|
])
|
|
417
417
|
])) : y("", !0),
|
|
418
|
-
e.imgSrc && e.imgBottom ? (
|
|
418
|
+
e.imgSrc && e.imgBottom ? (n(), i("img", {
|
|
419
419
|
key: 4,
|
|
420
420
|
src: e.imgSrc,
|
|
421
421
|
alt: e.imgAlt,
|
|
422
422
|
class: "card-img-bottom"
|
|
423
|
-
}, null, 8,
|
|
423
|
+
}, null, 8, Oe)) : y("", !0)
|
|
424
424
|
]),
|
|
425
425
|
_: 3
|
|
426
426
|
}, 8, ["class"]));
|
|
427
427
|
}
|
|
428
|
-
}),
|
|
428
|
+
}), De = ["aria-label"], Ge = { class: "breadcrumb" }, Xe = ["aria-current"], Ye = /* @__PURE__ */ M({
|
|
429
429
|
__name: "VibeBreadcrumb",
|
|
430
430
|
props: {
|
|
431
431
|
ariaLabel: { type: String, default: "breadcrumb" },
|
|
@@ -436,14 +436,14 @@ const pe = /* @__PURE__ */ F({
|
|
|
436
436
|
const t = v, a = (l, s, o) => {
|
|
437
437
|
l.active || t("item-click", { item: l, index: s, event: o });
|
|
438
438
|
};
|
|
439
|
-
return (l, s) => (
|
|
440
|
-
S("ol",
|
|
441
|
-
(
|
|
439
|
+
return (l, s) => (n(), i("nav", { "aria-label": e.ariaLabel }, [
|
|
440
|
+
S("ol", Ge, [
|
|
441
|
+
(n(!0), i(F, null, H(e.items, (o, r) => (n(), i("li", {
|
|
442
442
|
key: r,
|
|
443
443
|
class: $(["breadcrumb-item", { active: o.active }]),
|
|
444
444
|
"aria-current": o.active ? "page" : void 0
|
|
445
445
|
}, [
|
|
446
|
-
(
|
|
446
|
+
(n(), z(A(o.href ? "a" : o.to ? "router-link" : "span"), {
|
|
447
447
|
href: o.href,
|
|
448
448
|
to: o.to,
|
|
449
449
|
onClick: (u) => a(o, r, u)
|
|
@@ -453,22 +453,22 @@ const pe = /* @__PURE__ */ F({
|
|
|
453
453
|
item: o,
|
|
454
454
|
index: r
|
|
455
455
|
}, () => [
|
|
456
|
-
|
|
456
|
+
I(k(o.text), 1)
|
|
457
457
|
])
|
|
458
458
|
]),
|
|
459
459
|
_: 2
|
|
460
460
|
}, 1032, ["href", "to", "onClick"]))
|
|
461
|
-
], 10,
|
|
461
|
+
], 10, Xe))), 128))
|
|
462
462
|
])
|
|
463
|
-
], 8,
|
|
463
|
+
], 8, De));
|
|
464
464
|
}
|
|
465
|
-
}),
|
|
465
|
+
}), Ue = { class: "dropdown-menu" }, Je = {
|
|
466
466
|
key: 0,
|
|
467
467
|
class: "dropdown-divider"
|
|
468
|
-
},
|
|
468
|
+
}, Ke = {
|
|
469
469
|
key: 1,
|
|
470
470
|
class: "dropdown-header"
|
|
471
|
-
},
|
|
471
|
+
}, Qe = /* @__PURE__ */ M({
|
|
472
472
|
__name: "VibeNav",
|
|
473
473
|
props: {
|
|
474
474
|
items: { type: Array, required: !0 },
|
|
@@ -508,22 +508,22 @@ const pe = /* @__PURE__ */ F({
|
|
|
508
508
|
f.removeEventListener("show.bs.tab", u), f.removeEventListener("shown.bs.tab", c), f.removeEventListener("hide.bs.tab", b), f.removeEventListener("hidden.bs.tab", g), d.dispose();
|
|
509
509
|
}), o.clear();
|
|
510
510
|
}), O(() => a.items, async () => {
|
|
511
|
-
await
|
|
511
|
+
await ne(), await C();
|
|
512
512
|
}, { deep: !0 });
|
|
513
513
|
const p = (d, f, h) => {
|
|
514
514
|
d.disabled || l("item-click", { item: d, index: f, event: h });
|
|
515
515
|
};
|
|
516
|
-
return v({ bsInstances: o, refresh: C }), (d, f) => (
|
|
516
|
+
return v({ bsInstances: o, refresh: C }), (d, f) => (n(), z(A(e.tag), {
|
|
517
517
|
ref_key: "navRef",
|
|
518
518
|
ref: s,
|
|
519
519
|
class: $(r.value)
|
|
520
520
|
}, {
|
|
521
521
|
default: j(() => [
|
|
522
|
-
(
|
|
522
|
+
(n(!0), i(F, null, H(e.items, (h, w) => (n(), i("li", {
|
|
523
523
|
key: w,
|
|
524
524
|
class: $(["nav-item", { dropdown: h.children && h.children.length > 0 }])
|
|
525
525
|
}, [
|
|
526
|
-
h.children && h.children.length > 0 ? (
|
|
526
|
+
h.children && h.children.length > 0 ? (n(), i(F, { key: 0 }, [
|
|
527
527
|
S("a", {
|
|
528
528
|
class: $(["nav-link dropdown-toggle", { active: h.active, disabled: h.disabled }]),
|
|
529
529
|
"data-bs-toggle": "dropdown",
|
|
@@ -531,9 +531,9 @@ const pe = /* @__PURE__ */ F({
|
|
|
531
531
|
role: "button",
|
|
532
532
|
"aria-expanded": "false"
|
|
533
533
|
}, k(h.text), 3),
|
|
534
|
-
S("ul",
|
|
535
|
-
(
|
|
536
|
-
x.divider ? (
|
|
534
|
+
S("ul", Ue, [
|
|
535
|
+
(n(!0), i(F, null, H(h.children, (x, V) => (n(), i("li", { key: V }, [
|
|
536
|
+
x.divider ? (n(), i("hr", Je)) : x.header ? (n(), i("h6", Ke, k(x.text), 1)) : (n(), z(A(x.href ? "a" : x.to ? "router-link" : "button"), {
|
|
537
537
|
key: 2,
|
|
538
538
|
class: $(["dropdown-item", { active: x.active, disabled: x.disabled }]),
|
|
539
539
|
href: x.href,
|
|
@@ -541,13 +541,13 @@ const pe = /* @__PURE__ */ F({
|
|
|
541
541
|
type: !x.href && !x.to ? "button" : void 0
|
|
542
542
|
}, {
|
|
543
543
|
default: j(() => [
|
|
544
|
-
|
|
544
|
+
I(k(x.text), 1)
|
|
545
545
|
]),
|
|
546
546
|
_: 2
|
|
547
547
|
}, 1032, ["class", "href", "to", "type"]))
|
|
548
548
|
]))), 128))
|
|
549
549
|
])
|
|
550
|
-
], 64)) : (
|
|
550
|
+
], 64)) : (n(), z(A(h.href ? "a" : h.to ? "router-link" : "button"), {
|
|
551
551
|
key: 1,
|
|
552
552
|
class: $(["nav-link", { active: h.active, disabled: h.disabled }]),
|
|
553
553
|
href: h.href,
|
|
@@ -559,7 +559,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
559
559
|
onClick: (x) => p(h, w, x)
|
|
560
560
|
}, {
|
|
561
561
|
default: j(() => [
|
|
562
|
-
|
|
562
|
+
I(k(h.text), 1)
|
|
563
563
|
]),
|
|
564
564
|
_: 2
|
|
565
565
|
}, 1032, ["class", "href", "to", "type", "aria-current", "data-bs-toggle", "data-bs-target", "onClick"]))
|
|
@@ -568,7 +568,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
568
568
|
_: 1
|
|
569
569
|
}, 8, ["class"]));
|
|
570
570
|
}
|
|
571
|
-
}),
|
|
571
|
+
}), We = /* @__PURE__ */ M({
|
|
572
572
|
__name: "VibeNavbar",
|
|
573
573
|
props: {
|
|
574
574
|
variant: { type: String, default: "light" },
|
|
@@ -580,8 +580,8 @@ const pe = /* @__PURE__ */ F({
|
|
|
580
580
|
},
|
|
581
581
|
emits: ["component-error"],
|
|
582
582
|
setup(e, { emit: v }) {
|
|
583
|
-
const t = e, a =
|
|
584
|
-
|
|
583
|
+
const t = e, a = pe({});
|
|
584
|
+
ve("vibeNavbarCollapse", { collapseStates: a, toggleCollapse: (u) => {
|
|
585
585
|
a[u] = !a[u];
|
|
586
586
|
} });
|
|
587
587
|
const s = m(() => {
|
|
@@ -595,12 +595,12 @@ const pe = /* @__PURE__ */ F({
|
|
|
595
595
|
if (t.container !== !1)
|
|
596
596
|
return t.container === !0 ? "container-fluid" : `container-${t.container}`;
|
|
597
597
|
});
|
|
598
|
-
return (u, c) => (
|
|
598
|
+
return (u, c) => (n(), z(A(e.tag), {
|
|
599
599
|
class: $(s.value),
|
|
600
600
|
"data-bs-theme": o.value
|
|
601
601
|
}, {
|
|
602
602
|
default: j(() => [
|
|
603
|
-
r.value ? (
|
|
603
|
+
r.value ? (n(), i("div", {
|
|
604
604
|
key: 0,
|
|
605
605
|
class: $(r.value)
|
|
606
606
|
}, [
|
|
@@ -610,7 +610,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
610
610
|
_: 3
|
|
611
611
|
}, 8, ["class", "data-bs-theme"]));
|
|
612
612
|
}
|
|
613
|
-
}),
|
|
613
|
+
}), Ze = /* @__PURE__ */ M({
|
|
614
614
|
__name: "VibeNavbarBrand",
|
|
615
615
|
props: {
|
|
616
616
|
href: { type: String, default: void 0 },
|
|
@@ -619,7 +619,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
619
619
|
emits: ["component-error"],
|
|
620
620
|
setup(e, { emit: v }) {
|
|
621
621
|
const t = e, a = t.href ? "a" : t.to ? "router-link" : "span";
|
|
622
|
-
return (l, s) => (
|
|
622
|
+
return (l, s) => (n(), z(A(ye(a)), {
|
|
623
623
|
class: "navbar-brand",
|
|
624
624
|
href: e.href,
|
|
625
625
|
to: e.to
|
|
@@ -630,7 +630,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
630
630
|
_: 3
|
|
631
631
|
}, 8, ["href", "to"]));
|
|
632
632
|
}
|
|
633
|
-
}),
|
|
633
|
+
}), _e = ["data-bs-target", "aria-controls", "aria-expanded", "aria-label"], et = /* @__PURE__ */ M({
|
|
634
634
|
__name: "VibeNavbarToggle",
|
|
635
635
|
props: {
|
|
636
636
|
target: { type: String, required: !0 },
|
|
@@ -638,7 +638,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
638
638
|
},
|
|
639
639
|
emits: ["component-error"],
|
|
640
640
|
setup(e, { emit: v }) {
|
|
641
|
-
const t = e, a =
|
|
641
|
+
const t = e, a = J("vibeNavbarCollapse", null), l = m(() => a?.collapseStates[t.target] ?? !1), s = async () => {
|
|
642
642
|
a && a.toggleCollapse(t.target);
|
|
643
643
|
try {
|
|
644
644
|
const o = document.getElementById(t.target);
|
|
@@ -646,7 +646,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
646
646
|
} catch {
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
|
-
return (o, r) => (
|
|
649
|
+
return (o, r) => (n(), i("button", {
|
|
650
650
|
class: "navbar-toggler",
|
|
651
651
|
type: "button",
|
|
652
652
|
"data-bs-target": `#${e.target}`,
|
|
@@ -657,9 +657,9 @@ const pe = /* @__PURE__ */ F({
|
|
|
657
657
|
onClick: s
|
|
658
658
|
}, [...r[0] || (r[0] = [
|
|
659
659
|
S("span", { class: "navbar-toggler-icon" }, null, -1)
|
|
660
|
-
])], 8,
|
|
660
|
+
])], 8, _e));
|
|
661
661
|
}
|
|
662
|
-
}),
|
|
662
|
+
}), tt = { class: "dropdown-menu" }, at = { key: 0 }, lt = { key: 1 }, ot = { class: "dropdown-header" }, st = { key: 2 }, nt = /* @__PURE__ */ M({
|
|
663
663
|
__name: "VibeNavbarNav",
|
|
664
664
|
props: {
|
|
665
665
|
tag: { type: String, default: "ul" },
|
|
@@ -681,13 +681,13 @@ const pe = /* @__PURE__ */ F({
|
|
|
681
681
|
}, u = (c, b, g, C, p) => {
|
|
682
682
|
!g.disabled && !g.divider && !g.header && t("dropdown-item-click", { item: c, itemIndex: b, child: g, childIndex: C, event: p });
|
|
683
683
|
};
|
|
684
|
-
return (c, b) => (
|
|
684
|
+
return (c, b) => (n(), z(A(e.tag), { class: "navbar-nav" }, {
|
|
685
685
|
default: j(() => [
|
|
686
|
-
e.items && e.items.length > 0 ? (
|
|
686
|
+
e.items && e.items.length > 0 ? (n(!0), i(F, { key: 0 }, H(e.items, (g, C) => (n(), i("li", {
|
|
687
687
|
key: C,
|
|
688
688
|
class: $(a(g))
|
|
689
689
|
}, [
|
|
690
|
-
g.children?.length ? (
|
|
690
|
+
g.children?.length ? (n(), i(F, { key: 0 }, [
|
|
691
691
|
S("a", {
|
|
692
692
|
class: $(l(g)),
|
|
693
693
|
href: "#",
|
|
@@ -699,17 +699,17 @@ const pe = /* @__PURE__ */ F({
|
|
|
699
699
|
item: g,
|
|
700
700
|
index: C
|
|
701
701
|
}, () => [
|
|
702
|
-
|
|
702
|
+
I(k(g.text), 1)
|
|
703
703
|
])
|
|
704
704
|
], 2),
|
|
705
|
-
S("ul",
|
|
706
|
-
(
|
|
707
|
-
p.divider ? (
|
|
705
|
+
S("ul", tt, [
|
|
706
|
+
(n(!0), i(F, null, H(g.children, (p, d) => (n(), i(F, { key: d }, [
|
|
707
|
+
p.divider ? (n(), i("li", at, [...b[0] || (b[0] = [
|
|
708
708
|
S("hr", { class: "dropdown-divider" }, null, -1)
|
|
709
|
-
])])) : p.header ? (
|
|
710
|
-
S("h6",
|
|
711
|
-
])) : (
|
|
712
|
-
(
|
|
709
|
+
])])) : p.header ? (n(), i("li", lt, [
|
|
710
|
+
S("h6", ot, k(p.text), 1)
|
|
711
|
+
])) : (n(), i("li", st, [
|
|
712
|
+
(n(), z(A(p.href ? "a" : p.to ? "router-link" : "button"), {
|
|
713
713
|
class: $(o(p)),
|
|
714
714
|
href: p.href,
|
|
715
715
|
to: p.to,
|
|
@@ -723,7 +723,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
723
723
|
index: C,
|
|
724
724
|
childIndex: d
|
|
725
725
|
}, () => [
|
|
726
|
-
|
|
726
|
+
I(k(p.text), 1)
|
|
727
727
|
])
|
|
728
728
|
]),
|
|
729
729
|
_: 2
|
|
@@ -731,7 +731,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
731
731
|
]))
|
|
732
732
|
], 64))), 128))
|
|
733
733
|
])
|
|
734
|
-
], 64)) : (
|
|
734
|
+
], 64)) : (n(), z(A(s(g)), {
|
|
735
735
|
key: 1,
|
|
736
736
|
class: $(l(g)),
|
|
737
737
|
href: g.href,
|
|
@@ -745,7 +745,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
745
745
|
item: g,
|
|
746
746
|
index: C
|
|
747
747
|
}, () => [
|
|
748
|
-
|
|
748
|
+
I(k(g.text), 1)
|
|
749
749
|
])
|
|
750
750
|
]),
|
|
751
751
|
_: 2
|
|
@@ -755,7 +755,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
755
755
|
_: 3
|
|
756
756
|
}));
|
|
757
757
|
}
|
|
758
|
-
}),
|
|
758
|
+
}), it = ["aria-label"], rt = ["disabled", "aria-disabled"], dt = ["aria-current", "onClick"], ut = ["disabled", "aria-disabled"], ct = /* @__PURE__ */ M({
|
|
759
759
|
__name: "VibePagination",
|
|
760
760
|
props: {
|
|
761
761
|
size: { type: String, default: void 0 },
|
|
@@ -774,11 +774,11 @@ const pe = /* @__PURE__ */ F({
|
|
|
774
774
|
}), s = m(() => Array.from({ length: t.totalPages }, (c, b) => b + 1)), o = (c) => {
|
|
775
775
|
c >= 1 && c <= t.totalPages && (a("update:currentPage", c), a("page-click", c));
|
|
776
776
|
}, r = m(() => t.currentPage === 1), u = m(() => t.currentPage === t.totalPages);
|
|
777
|
-
return (c, b) => (
|
|
777
|
+
return (c, b) => (n(), i("nav", { "aria-label": e.ariaLabel }, [
|
|
778
778
|
S("ul", {
|
|
779
779
|
class: $(l.value)
|
|
780
780
|
}, [
|
|
781
|
-
e.showPrevNext ? (
|
|
781
|
+
e.showPrevNext ? (n(), i("li", {
|
|
782
782
|
key: 0,
|
|
783
783
|
class: $(["page-item", { disabled: r.value }])
|
|
784
784
|
}, [
|
|
@@ -790,11 +790,11 @@ const pe = /* @__PURE__ */ F({
|
|
|
790
790
|
onClick: b[0] || (b[0] = (g) => o(e.currentPage - 1))
|
|
791
791
|
}, [
|
|
792
792
|
N(c.$slots, "prev", { disabled: r.value }, () => [
|
|
793
|
-
|
|
793
|
+
I(k(e.prevText), 1)
|
|
794
794
|
])
|
|
795
|
-
], 8,
|
|
795
|
+
], 8, rt)
|
|
796
796
|
], 2)) : y("", !0),
|
|
797
|
-
(
|
|
797
|
+
(n(!0), i(F, null, H(s.value, (g) => (n(), i("li", {
|
|
798
798
|
key: g,
|
|
799
799
|
class: $(["page-item", { active: g === e.currentPage }])
|
|
800
800
|
}, [
|
|
@@ -808,11 +808,11 @@ const pe = /* @__PURE__ */ F({
|
|
|
808
808
|
page: g,
|
|
809
809
|
active: g === e.currentPage
|
|
810
810
|
}, () => [
|
|
811
|
-
|
|
811
|
+
I(k(g), 1)
|
|
812
812
|
])
|
|
813
|
-
], 8,
|
|
813
|
+
], 8, dt)
|
|
814
814
|
], 2))), 128)),
|
|
815
|
-
e.showPrevNext ? (
|
|
815
|
+
e.showPrevNext ? (n(), i("li", {
|
|
816
816
|
key: 1,
|
|
817
817
|
class: $(["page-item", { disabled: u.value }])
|
|
818
818
|
}, [
|
|
@@ -824,14 +824,14 @@ const pe = /* @__PURE__ */ F({
|
|
|
824
824
|
onClick: b[1] || (b[1] = (g) => o(e.currentPage + 1))
|
|
825
825
|
}, [
|
|
826
826
|
N(c.$slots, "next", { disabled: u.value }, () => [
|
|
827
|
-
|
|
827
|
+
I(k(e.nextText), 1)
|
|
828
828
|
])
|
|
829
|
-
], 8,
|
|
829
|
+
], 8, ut)
|
|
830
830
|
], 2)) : y("", !0)
|
|
831
831
|
], 2)
|
|
832
|
-
], 8,
|
|
832
|
+
], 8, it));
|
|
833
833
|
}
|
|
834
|
-
}),
|
|
834
|
+
}), vt = ["id", "aria-labelledby"], ft = /* @__PURE__ */ M({
|
|
835
835
|
__name: "VibeTabContent",
|
|
836
836
|
props: {
|
|
837
837
|
id: { type: String, default: void 0 },
|
|
@@ -853,14 +853,14 @@ const pe = /* @__PURE__ */ F({
|
|
|
853
853
|
}
|
|
854
854
|
}), X(() => {
|
|
855
855
|
l.forEach((o) => o.dispose()), l.clear();
|
|
856
|
-
}), (o, r) => (
|
|
856
|
+
}), (o, r) => (n(), z(A(e.tag), {
|
|
857
857
|
id: e.id,
|
|
858
858
|
ref_key: "tabContentRef",
|
|
859
859
|
ref: a,
|
|
860
860
|
class: "tab-content"
|
|
861
861
|
}, {
|
|
862
862
|
default: j(() => [
|
|
863
|
-
(
|
|
863
|
+
(n(!0), i(F, null, H(e.panes, (u, c) => (n(), i("div", {
|
|
864
864
|
key: u.id,
|
|
865
865
|
id: u.id,
|
|
866
866
|
class: $(s(u)),
|
|
@@ -872,14 +872,14 @@ const pe = /* @__PURE__ */ F({
|
|
|
872
872
|
pane: u,
|
|
873
873
|
index: c
|
|
874
874
|
}, () => [
|
|
875
|
-
|
|
875
|
+
I(k(u.content), 1)
|
|
876
876
|
])
|
|
877
|
-
], 10,
|
|
877
|
+
], 10, vt))), 128))
|
|
878
878
|
]),
|
|
879
879
|
_: 3
|
|
880
880
|
}, 8, ["id"]));
|
|
881
881
|
}
|
|
882
|
-
}),
|
|
882
|
+
}), bt = /* @__PURE__ */ M({
|
|
883
883
|
__name: "VibeListGroup",
|
|
884
884
|
props: {
|
|
885
885
|
flush: { type: Boolean, default: !1 },
|
|
@@ -899,11 +899,11 @@ const pe = /* @__PURE__ */ F({
|
|
|
899
899
|
}, r = (u, c, b) => {
|
|
900
900
|
u.disabled || a("item-click", { item: u, index: c, event: b });
|
|
901
901
|
};
|
|
902
|
-
return (u, c) => (
|
|
902
|
+
return (u, c) => (n(), z(A(e.tag), {
|
|
903
903
|
class: $(l.value)
|
|
904
904
|
}, {
|
|
905
905
|
default: j(() => [
|
|
906
|
-
(
|
|
906
|
+
(n(!0), i(F, null, H(e.items, (b, g) => (n(), z(A(s(b)), {
|
|
907
907
|
key: g,
|
|
908
908
|
class: $(o(b)),
|
|
909
909
|
href: b.href,
|
|
@@ -917,7 +917,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
917
917
|
item: b,
|
|
918
918
|
index: g
|
|
919
919
|
}, () => [
|
|
920
|
-
|
|
920
|
+
I(k(b.text), 1)
|
|
921
921
|
])
|
|
922
922
|
]),
|
|
923
923
|
_: 2
|
|
@@ -926,7 +926,7 @@ const pe = /* @__PURE__ */ F({
|
|
|
926
926
|
_: 3
|
|
927
927
|
}, 8, ["class"]));
|
|
928
928
|
}
|
|
929
|
-
}),
|
|
929
|
+
}), ht = ["aria-valuenow", "aria-valuemax"], mt = /* @__PURE__ */ M({
|
|
930
930
|
__name: "VibeProgress",
|
|
931
931
|
props: {
|
|
932
932
|
height: { type: String, default: void 0 },
|
|
@@ -944,11 +944,11 @@ const pe = /* @__PURE__ */ F({
|
|
|
944
944
|
const u = r.max || 100;
|
|
945
945
|
return { width: `${Math.min(100, Math.max(0, r.value / u * 100))}%` };
|
|
946
946
|
}, o = (r) => r.label ? r.label : r.showValue ? `${r.value}%` : "";
|
|
947
|
-
return (r, u) => (
|
|
947
|
+
return (r, u) => (n(), i("div", {
|
|
948
948
|
class: "progress",
|
|
949
949
|
style: K(a.value)
|
|
950
950
|
}, [
|
|
951
|
-
(
|
|
951
|
+
(n(!0), i(F, null, H(e.bars, (c, b) => (n(), i("div", {
|
|
952
952
|
key: b,
|
|
953
953
|
class: $(l(c)),
|
|
954
954
|
style: K(s(c)),
|
|
@@ -961,18 +961,18 @@ const pe = /* @__PURE__ */ F({
|
|
|
961
961
|
bar: c,
|
|
962
962
|
index: b
|
|
963
963
|
}, () => [
|
|
964
|
-
|
|
964
|
+
I(k(o(c)), 1)
|
|
965
965
|
])
|
|
966
|
-
], 14,
|
|
966
|
+
], 14, ht))), 128))
|
|
967
967
|
], 4));
|
|
968
968
|
}
|
|
969
969
|
});
|
|
970
|
-
let
|
|
970
|
+
let ce = 0;
|
|
971
971
|
function G(e = "vibe") {
|
|
972
|
-
const v =
|
|
973
|
-
return
|
|
972
|
+
const v = ge(), t = v ? v.uid : "no-instance";
|
|
973
|
+
return ce++, `${e}-${t}-${ce}`;
|
|
974
974
|
}
|
|
975
|
-
const
|
|
975
|
+
const pt = ["id"], yt = { class: "accordion-header" }, gt = ["data-bs-target", "aria-expanded", "aria-controls", "onClick"], kt = ["id", "data-bs-parent"], St = { class: "accordion-body" }, $t = /* @__PURE__ */ M({
|
|
976
976
|
__name: "VibeAccordion",
|
|
977
977
|
props: {
|
|
978
978
|
id: { type: String, default: () => G("accordion") },
|
|
@@ -1010,7 +1010,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1010
1010
|
f && (f.removeEventListener("show.bs.collapse", () => r(d)), f.removeEventListener("shown.bs.collapse", () => u(d)), f.removeEventListener("hide.bs.collapse", () => c(d)), f.removeEventListener("hidden.bs.collapse", () => b(d))), p.dispose();
|
|
1011
1011
|
}), o.clear();
|
|
1012
1012
|
}), O(() => a.items, async (p, d) => {
|
|
1013
|
-
p.length !== d?.length && (await
|
|
1013
|
+
p.length !== d?.length && (await ne(), await g()), p.forEach((f) => {
|
|
1014
1014
|
const h = o.get(f.id);
|
|
1015
1015
|
h && (f.show ? h.show() : a.alwaysOpen || h.hide());
|
|
1016
1016
|
});
|
|
@@ -1018,17 +1018,17 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1018
1018
|
const C = (p, d) => {
|
|
1019
1019
|
l("item-click", { item: p, index: d });
|
|
1020
1020
|
};
|
|
1021
|
-
return v({ bsInstances: o, refresh: g }), (p, d) => (
|
|
1021
|
+
return v({ bsInstances: o, refresh: g }), (p, d) => (n(), i("div", {
|
|
1022
1022
|
ref_key: "accordionRef",
|
|
1023
1023
|
ref: s,
|
|
1024
1024
|
id: e.id,
|
|
1025
1025
|
class: $(["accordion", { "accordion-flush": e.flush }])
|
|
1026
1026
|
}, [
|
|
1027
|
-
(
|
|
1027
|
+
(n(!0), i(F, null, H(e.items, (f, h) => (n(), i("div", {
|
|
1028
1028
|
key: f.id,
|
|
1029
1029
|
class: "accordion-item"
|
|
1030
1030
|
}, [
|
|
1031
|
-
S("h2",
|
|
1031
|
+
S("h2", yt, [
|
|
1032
1032
|
S("button", {
|
|
1033
1033
|
class: $(["accordion-button", { collapsed: !f.show }]),
|
|
1034
1034
|
type: "button",
|
|
@@ -1042,28 +1042,28 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1042
1042
|
item: f,
|
|
1043
1043
|
index: h
|
|
1044
1044
|
}, () => [
|
|
1045
|
-
|
|
1045
|
+
I(k(f.title), 1)
|
|
1046
1046
|
])
|
|
1047
|
-
], 10,
|
|
1047
|
+
], 10, gt)
|
|
1048
1048
|
]),
|
|
1049
1049
|
S("div", {
|
|
1050
1050
|
id: f.id,
|
|
1051
1051
|
class: $(["accordion-collapse", "collapse", { show: f.show }]),
|
|
1052
1052
|
"data-bs-parent": e.alwaysOpen ? void 0 : `#${e.id}`
|
|
1053
1053
|
}, [
|
|
1054
|
-
S("div",
|
|
1054
|
+
S("div", St, [
|
|
1055
1055
|
N(p.$slots, "content", {
|
|
1056
1056
|
item: f,
|
|
1057
1057
|
index: h
|
|
1058
1058
|
}, () => [
|
|
1059
|
-
|
|
1059
|
+
I(k(f.content), 1)
|
|
1060
1060
|
])
|
|
1061
1061
|
])
|
|
1062
|
-
], 10,
|
|
1062
|
+
], 10, kt)
|
|
1063
1063
|
]))), 128))
|
|
1064
|
-
], 10,
|
|
1064
|
+
], 10, pt));
|
|
1065
1065
|
}
|
|
1066
|
-
}),
|
|
1066
|
+
}), wt = /* @__PURE__ */ M({
|
|
1067
1067
|
__name: "VibeCollapse",
|
|
1068
1068
|
props: {
|
|
1069
1069
|
id: { type: String, default: () => G("collapse") },
|
|
@@ -1074,7 +1074,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1074
1074
|
},
|
|
1075
1075
|
emits: ["update:modelValue", "show", "shown", "hide", "hidden", "component-error"],
|
|
1076
1076
|
setup(e, { emit: v }) {
|
|
1077
|
-
const t = e, a = v, l =
|
|
1077
|
+
const t = e, a = v, l = J("vibeNavbarCollapse", null), s = E(null), o = E(null), r = E(!1), u = () => {
|
|
1078
1078
|
r.value = !0, a("show");
|
|
1079
1079
|
}, c = () => {
|
|
1080
1080
|
a("shown"), a("update:modelValue", !0);
|
|
@@ -1108,7 +1108,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1108
1108
|
const d = ["collapse"];
|
|
1109
1109
|
return t.isNav && d.push("navbar-collapse"), t.horizontal && d.push("collapse-horizontal"), !o.value && C.value && d.push("show"), d.join(" ");
|
|
1110
1110
|
});
|
|
1111
|
-
return (d, f) => (
|
|
1111
|
+
return (d, f) => (n(), z(A(e.tag), {
|
|
1112
1112
|
ref_key: "collapseRef",
|
|
1113
1113
|
ref: s,
|
|
1114
1114
|
id: e.id,
|
|
@@ -1120,7 +1120,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1120
1120
|
_: 3
|
|
1121
1121
|
}, 8, ["id", "class"]));
|
|
1122
1122
|
}
|
|
1123
|
-
}),
|
|
1123
|
+
}), Vt = ["id", "data-bs-auto-close"], Ct = ["id", "data-bs-auto-close"], xt = ["aria-labelledby"], Bt = { key: 0 }, Lt = { key: 1 }, Tt = { class: "dropdown-header" }, Nt = { key: 2 }, Et = /* @__PURE__ */ M({
|
|
1124
1124
|
__name: "VibeDropdown",
|
|
1125
1125
|
props: {
|
|
1126
1126
|
id: { type: String, default: () => G("dropdown") },
|
|
@@ -1166,18 +1166,18 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1166
1166
|
const f = (V, q, P) => {
|
|
1167
1167
|
!V.disabled && !V.divider && !V.header && l("item-click", { item: V, index: q, event: P });
|
|
1168
1168
|
};
|
|
1169
|
-
return v({ show: () => o.value?.show(), hide: () => o.value?.hide(), toggle: () => o.value?.toggle() }), (V, q) => (
|
|
1169
|
+
return v({ show: () => o.value?.show(), hide: () => o.value?.hide(), toggle: () => o.value?.toggle() }), (V, q) => (n(), i("div", {
|
|
1170
1170
|
ref_key: "dropdownRef",
|
|
1171
1171
|
ref: s,
|
|
1172
1172
|
class: $(r.value)
|
|
1173
1173
|
}, [
|
|
1174
|
-
e.split ? (
|
|
1174
|
+
e.split ? (n(), i(F, { key: 1 }, [
|
|
1175
1175
|
S("button", {
|
|
1176
1176
|
class: $(u.value),
|
|
1177
1177
|
type: "button"
|
|
1178
1178
|
}, [
|
|
1179
1179
|
N(V.$slots, "button", {}, () => [
|
|
1180
|
-
|
|
1180
|
+
I(k(e.text), 1)
|
|
1181
1181
|
])
|
|
1182
1182
|
], 2),
|
|
1183
1183
|
S("button", {
|
|
@@ -1189,8 +1189,8 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1189
1189
|
"data-bs-auto-close": e.autoClose
|
|
1190
1190
|
}, [...q[0] || (q[0] = [
|
|
1191
1191
|
S("span", { class: "visually-hidden" }, "Toggle Dropdown", -1)
|
|
1192
|
-
])], 10,
|
|
1193
|
-
], 64)) : (
|
|
1192
|
+
])], 10, Ct)
|
|
1193
|
+
], 64)) : (n(), i("button", {
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
id: e.id,
|
|
1196
1196
|
class: $([u.value, "dropdown-toggle"]),
|
|
@@ -1200,27 +1200,27 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1200
1200
|
"data-bs-auto-close": e.autoClose
|
|
1201
1201
|
}, [
|
|
1202
1202
|
N(V.$slots, "button", {}, () => [
|
|
1203
|
-
|
|
1203
|
+
I(k(e.text), 1)
|
|
1204
1204
|
])
|
|
1205
|
-
], 10,
|
|
1205
|
+
], 10, Vt)),
|
|
1206
1206
|
S("ul", {
|
|
1207
1207
|
class: $(c.value),
|
|
1208
1208
|
"aria-labelledby": e.id
|
|
1209
1209
|
}, [
|
|
1210
|
-
(
|
|
1211
|
-
P.divider ? (
|
|
1210
|
+
(n(!0), i(F, null, H(e.items, (P, R) => (n(), i(F, { key: R }, [
|
|
1211
|
+
P.divider ? (n(), i("li", Bt, [...q[1] || (q[1] = [
|
|
1212
1212
|
S("hr", { class: "dropdown-divider" }, null, -1)
|
|
1213
|
-
])])) : P.header ? (
|
|
1214
|
-
S("h6",
|
|
1213
|
+
])])) : P.header ? (n(), i("li", Lt, [
|
|
1214
|
+
S("h6", Tt, [
|
|
1215
1215
|
N(V.$slots, "header", {
|
|
1216
1216
|
item: P,
|
|
1217
1217
|
index: R
|
|
1218
1218
|
}, () => [
|
|
1219
|
-
|
|
1219
|
+
I(k(P.text), 1)
|
|
1220
1220
|
])
|
|
1221
1221
|
])
|
|
1222
|
-
])) : (
|
|
1223
|
-
(
|
|
1222
|
+
])) : (n(), i("li", Nt, [
|
|
1223
|
+
(n(), z(A(P.href ? "a" : P.to ? "router-link" : "button"), {
|
|
1224
1224
|
class: $(b(P)),
|
|
1225
1225
|
href: P.href,
|
|
1226
1226
|
to: P.to,
|
|
@@ -1233,23 +1233,23 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1233
1233
|
item: P,
|
|
1234
1234
|
index: R
|
|
1235
1235
|
}, () => [
|
|
1236
|
-
|
|
1236
|
+
I(k(P.text), 1)
|
|
1237
1237
|
])
|
|
1238
1238
|
]),
|
|
1239
1239
|
_: 2
|
|
1240
1240
|
}, 1032, ["class", "href", "to", "type", "disabled", "onClick"]))
|
|
1241
1241
|
]))
|
|
1242
1242
|
], 64))), 128))
|
|
1243
|
-
], 10,
|
|
1243
|
+
], 10, xt)
|
|
1244
1244
|
], 2));
|
|
1245
1245
|
}
|
|
1246
|
-
}),
|
|
1246
|
+
}), Mt = ["id", "aria-labelledby", "aria-hidden", "data-bs-backdrop", "data-bs-keyboard"], It = { class: "modal-content" }, Ft = {
|
|
1247
1247
|
key: 0,
|
|
1248
1248
|
class: "modal-header"
|
|
1249
|
-
},
|
|
1249
|
+
}, Pt = ["id"], Rt = { class: "modal-body" }, qt = {
|
|
1250
1250
|
key: 1,
|
|
1251
1251
|
class: "modal-footer"
|
|
1252
|
-
},
|
|
1252
|
+
}, zt = /* @__PURE__ */ M({
|
|
1253
1253
|
__name: "VibeModal",
|
|
1254
1254
|
props: {
|
|
1255
1255
|
id: { type: String, default: () => G("modal") },
|
|
@@ -1302,7 +1302,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1302
1302
|
o.value && (w && !r.value ? o.value.show() : !w && r.value && o.value.hide());
|
|
1303
1303
|
}), O(() => a.staticBackdrop, p);
|
|
1304
1304
|
const d = () => o.value?.show(), f = () => o.value?.hide();
|
|
1305
|
-
return v({ show: d, hide: f, handleUpdate: () => o.value?.handleUpdate(), bsInstance: o }), (w, x) => (
|
|
1305
|
+
return v({ show: d, hide: f, handleUpdate: () => o.value?.handleUpdate(), bsInstance: o }), (w, x) => (n(), z(ie, {
|
|
1306
1306
|
to: e.teleport === !0 ? "body" : e.teleport || void 0,
|
|
1307
1307
|
disabled: !e.teleport
|
|
1308
1308
|
}, [
|
|
@@ -1320,16 +1320,16 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1320
1320
|
S("div", {
|
|
1321
1321
|
class: $(u.value)
|
|
1322
1322
|
}, [
|
|
1323
|
-
S("div",
|
|
1324
|
-
e.hideHeader ? y("", !0) : (
|
|
1323
|
+
S("div", It, [
|
|
1324
|
+
e.hideHeader ? y("", !0) : (n(), i("div", Ft, [
|
|
1325
1325
|
S("h5", {
|
|
1326
1326
|
id: `${e.id}-label`,
|
|
1327
1327
|
class: "modal-title"
|
|
1328
1328
|
}, [
|
|
1329
1329
|
N(w.$slots, "header", {}, () => [
|
|
1330
|
-
|
|
1330
|
+
I(k(e.title), 1)
|
|
1331
1331
|
])
|
|
1332
|
-
], 8,
|
|
1332
|
+
], 8, Pt),
|
|
1333
1333
|
S("button", {
|
|
1334
1334
|
type: "button",
|
|
1335
1335
|
class: "btn-close",
|
|
@@ -1337,10 +1337,10 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1337
1337
|
onClick: f
|
|
1338
1338
|
})
|
|
1339
1339
|
])),
|
|
1340
|
-
S("div",
|
|
1340
|
+
S("div", Rt, [
|
|
1341
1341
|
N(w.$slots, "default")
|
|
1342
1342
|
]),
|
|
1343
|
-
e.hideFooter ? y("", !0) : (
|
|
1343
|
+
e.hideFooter ? y("", !0) : (n(), i("div", qt, [
|
|
1344
1344
|
N(w.$slots, "footer", {}, () => [
|
|
1345
1345
|
S("button", {
|
|
1346
1346
|
type: "button",
|
|
@@ -1351,10 +1351,10 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1351
1351
|
]))
|
|
1352
1352
|
])
|
|
1353
1353
|
], 2)
|
|
1354
|
-
], 10,
|
|
1354
|
+
], 10, Mt)
|
|
1355
1355
|
], 8, ["to", "disabled"]));
|
|
1356
1356
|
}
|
|
1357
|
-
}),
|
|
1357
|
+
}), At = ["id", "aria-labelledby", "data-bs-backdrop", "data-bs-scroll"], jt = { class: "offcanvas-header" }, Ot = ["id"], Ht = { class: "offcanvas-body" }, Dt = /* @__PURE__ */ M({
|
|
1358
1358
|
__name: "VibeOffcanvas",
|
|
1359
1359
|
props: {
|
|
1360
1360
|
id: { type: String, default: () => G("offcanvas") },
|
|
@@ -1400,7 +1400,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1400
1400
|
o.value && (h && !r.value ? o.value.show() : !h && r.value && o.value.hide());
|
|
1401
1401
|
}), O([() => a.placement, () => a.backdrop, () => a.scroll], p);
|
|
1402
1402
|
const d = () => o.value?.show(), f = () => o.value?.hide();
|
|
1403
|
-
return v({ show: d, hide: f, bsInstance: o }), (h, w) => (
|
|
1403
|
+
return v({ show: d, hide: f, bsInstance: o }), (h, w) => (n(), z(ie, {
|
|
1404
1404
|
to: e.teleport === !0 ? "body" : e.teleport || void 0,
|
|
1405
1405
|
disabled: !e.teleport
|
|
1406
1406
|
}, [
|
|
@@ -1414,15 +1414,15 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1414
1414
|
"data-bs-backdrop": e.backdrop === !1 ? "false" : e.backdrop === "static" ? "static" : "true",
|
|
1415
1415
|
"data-bs-scroll": e.scroll
|
|
1416
1416
|
}, [
|
|
1417
|
-
S("div",
|
|
1417
|
+
S("div", jt, [
|
|
1418
1418
|
S("h5", {
|
|
1419
1419
|
id: `${e.id}-label`,
|
|
1420
1420
|
class: "offcanvas-title"
|
|
1421
1421
|
}, [
|
|
1422
1422
|
N(h.$slots, "header", {}, () => [
|
|
1423
|
-
|
|
1423
|
+
I(k(e.title), 1)
|
|
1424
1424
|
])
|
|
1425
|
-
], 8,
|
|
1425
|
+
], 8, Ot),
|
|
1426
1426
|
S("button", {
|
|
1427
1427
|
type: "button",
|
|
1428
1428
|
class: "btn-close",
|
|
@@ -1430,16 +1430,16 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1430
1430
|
onClick: f
|
|
1431
1431
|
})
|
|
1432
1432
|
]),
|
|
1433
|
-
S("div",
|
|
1433
|
+
S("div", Ht, [
|
|
1434
1434
|
N(h.$slots, "default")
|
|
1435
1435
|
])
|
|
1436
|
-
], 10,
|
|
1436
|
+
], 10, At)
|
|
1437
1437
|
], 8, ["to", "disabled"]));
|
|
1438
1438
|
}
|
|
1439
|
-
}),
|
|
1439
|
+
}), Gt = ["id", "data-bs-autohide", "data-bs-delay"], Xt = {
|
|
1440
1440
|
key: 0,
|
|
1441
1441
|
class: "toast-header"
|
|
1442
|
-
},
|
|
1442
|
+
}, Yt = { class: "me-auto" }, Ut = { class: "toast-body" }, Jt = /* @__PURE__ */ M({
|
|
1443
1443
|
__name: "VibeToast",
|
|
1444
1444
|
props: {
|
|
1445
1445
|
id: { type: String, default: () => G("toast") },
|
|
@@ -1491,7 +1491,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1491
1491
|
o.value && (w && !r.value ? o.value.show() : !w && r.value && o.value.hide());
|
|
1492
1492
|
}), O([() => a.autohide, () => a.delay], d);
|
|
1493
1493
|
const f = () => o.value?.show(), h = () => o.value?.hide();
|
|
1494
|
-
return v({ show: f, hide: h, bsInstance: o }), (w, x) => (
|
|
1494
|
+
return v({ show: f, hide: h, bsInstance: o }), (w, x) => (n(), z(ie, {
|
|
1495
1495
|
to: e.teleport === !0 ? "body" : e.teleport || void 0,
|
|
1496
1496
|
disabled: !e.teleport
|
|
1497
1497
|
}, [
|
|
@@ -1510,9 +1510,9 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1510
1510
|
"data-bs-autohide": e.autohide,
|
|
1511
1511
|
"data-bs-delay": e.delay
|
|
1512
1512
|
}, [
|
|
1513
|
-
e.title || w.$slots.header ? (
|
|
1513
|
+
e.title || w.$slots.header ? (n(), i("div", Xt, [
|
|
1514
1514
|
N(w.$slots, "header", {}, () => [
|
|
1515
|
-
S("strong",
|
|
1515
|
+
S("strong", Yt, k(e.title), 1)
|
|
1516
1516
|
]),
|
|
1517
1517
|
S("button", {
|
|
1518
1518
|
type: "button",
|
|
@@ -1521,20 +1521,20 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1521
1521
|
onClick: h
|
|
1522
1522
|
})
|
|
1523
1523
|
])) : y("", !0),
|
|
1524
|
-
S("div",
|
|
1524
|
+
S("div", Ut, [
|
|
1525
1525
|
N(w.$slots, "default")
|
|
1526
1526
|
])
|
|
1527
|
-
], 10,
|
|
1527
|
+
], 10, Gt)
|
|
1528
1528
|
], 2)
|
|
1529
1529
|
], 8, ["to", "disabled"]));
|
|
1530
1530
|
}
|
|
1531
|
-
}),
|
|
1531
|
+
}), Kt = ["id", "data-bs-ride", "data-bs-interval", "data-bs-keyboard", "data-bs-pause", "data-bs-wrap", "data-bs-touch"], Qt = {
|
|
1532
1532
|
key: 0,
|
|
1533
1533
|
class: "carousel-indicators"
|
|
1534
|
-
},
|
|
1534
|
+
}, Wt = ["data-bs-target", "data-bs-slide-to", "aria-current", "aria-label"], Zt = { class: "carousel-inner" }, _t = ["data-bs-interval"], ea = ["src", "alt"], ta = {
|
|
1535
1535
|
key: 0,
|
|
1536
1536
|
class: "carousel-caption d-none d-md-block"
|
|
1537
|
-
},
|
|
1537
|
+
}, aa = { key: 0 }, la = { key: 1 }, oa = ["data-bs-target"], sa = ["data-bs-target"], na = /* @__PURE__ */ M({
|
|
1538
1538
|
__name: "VibeCarousel",
|
|
1539
1539
|
props: {
|
|
1540
1540
|
id: { type: String, default: () => G("carousel") },
|
|
@@ -1587,10 +1587,10 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1587
1587
|
}), O(() => a.modelValue, (p) => {
|
|
1588
1588
|
o.value && p !== r.value && o.value.to(p);
|
|
1589
1589
|
}), O(() => a.items, async () => {
|
|
1590
|
-
await
|
|
1590
|
+
await ne(), await g();
|
|
1591
1591
|
}, { deep: !0 });
|
|
1592
1592
|
const C = (p, d) => p.alt ? p.alt : p.caption ? p.caption : p.captionText ? p.captionText : `Carousel slide ${d + 1}`;
|
|
1593
|
-
return v({ bsInstance: o, refresh: g }), (p, d) => (
|
|
1593
|
+
return v({ bsInstance: o, refresh: g }), (p, d) => (n(), i("div", {
|
|
1594
1594
|
ref_key: "carouselRef",
|
|
1595
1595
|
ref: s,
|
|
1596
1596
|
id: e.id,
|
|
@@ -1602,8 +1602,8 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1602
1602
|
"data-bs-wrap": e.wrap,
|
|
1603
1603
|
"data-bs-touch": e.touch
|
|
1604
1604
|
}, [
|
|
1605
|
-
e.indicators ? (
|
|
1606
|
-
(
|
|
1605
|
+
e.indicators ? (n(), i("div", Qt, [
|
|
1606
|
+
(n(!0), i(F, null, H(e.items, (f, h) => (n(), i("button", {
|
|
1607
1607
|
key: `indicator-${h}`,
|
|
1608
1608
|
type: "button",
|
|
1609
1609
|
"data-bs-target": `#${e.id}`,
|
|
@@ -1611,10 +1611,10 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1611
1611
|
class: $({ active: h === r.value }),
|
|
1612
1612
|
"aria-current": h === r.value,
|
|
1613
1613
|
"aria-label": `Slide ${h + 1}`
|
|
1614
|
-
}, null, 10,
|
|
1614
|
+
}, null, 10, Wt))), 128))
|
|
1615
1615
|
])) : y("", !0),
|
|
1616
|
-
S("div",
|
|
1617
|
-
(
|
|
1616
|
+
S("div", Zt, [
|
|
1617
|
+
(n(!0), i(F, null, H(e.items, (f, h) => (n(), i("div", {
|
|
1618
1618
|
key: `slide-${h}`,
|
|
1619
1619
|
class: $(["carousel-item", { active: h === r.value }]),
|
|
1620
1620
|
"data-bs-interval": f.interval
|
|
@@ -1623,19 +1623,19 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1623
1623
|
src: f.src,
|
|
1624
1624
|
alt: C(f, h),
|
|
1625
1625
|
class: "d-block w-100"
|
|
1626
|
-
}, null, 8,
|
|
1627
|
-
f.caption || f.captionText || p.$slots.caption ? (
|
|
1626
|
+
}, null, 8, ea),
|
|
1627
|
+
f.caption || f.captionText || p.$slots.caption ? (n(), i("div", ta, [
|
|
1628
1628
|
N(p.$slots, "caption", {
|
|
1629
1629
|
item: f,
|
|
1630
1630
|
index: h
|
|
1631
1631
|
}, () => [
|
|
1632
|
-
f.caption ? (
|
|
1633
|
-
f.captionText ? (
|
|
1632
|
+
f.caption ? (n(), i("h5", aa, k(f.caption), 1)) : y("", !0),
|
|
1633
|
+
f.captionText ? (n(), i("p", la, k(f.captionText), 1)) : y("", !0)
|
|
1634
1634
|
])
|
|
1635
1635
|
])) : y("", !0)
|
|
1636
|
-
], 10,
|
|
1636
|
+
], 10, _t))), 128))
|
|
1637
1637
|
]),
|
|
1638
|
-
e.controls ? (
|
|
1638
|
+
e.controls ? (n(), i(F, { key: 1 }, [
|
|
1639
1639
|
S("button", {
|
|
1640
1640
|
class: "carousel-control-prev",
|
|
1641
1641
|
type: "button",
|
|
@@ -1647,7 +1647,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1647
1647
|
"aria-hidden": "true"
|
|
1648
1648
|
}, null, -1),
|
|
1649
1649
|
S("span", { class: "visually-hidden" }, "Previous", -1)
|
|
1650
|
-
])], 8,
|
|
1650
|
+
])], 8, oa),
|
|
1651
1651
|
S("button", {
|
|
1652
1652
|
class: "carousel-control-next",
|
|
1653
1653
|
type: "button",
|
|
@@ -1659,11 +1659,11 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1659
1659
|
"aria-hidden": "true"
|
|
1660
1660
|
}, null, -1),
|
|
1661
1661
|
S("span", { class: "visually-hidden" }, "Next", -1)
|
|
1662
|
-
])], 8,
|
|
1662
|
+
])], 8, sa)
|
|
1663
1663
|
], 64)) : y("", !0)
|
|
1664
|
-
], 10,
|
|
1664
|
+
], 10, Kt));
|
|
1665
1665
|
}
|
|
1666
|
-
}),
|
|
1666
|
+
}), ia = ["data-bs-placement", "data-bs-title", "data-bs-trigger", "data-bs-html"], ra = /* @__PURE__ */ M({
|
|
1667
1667
|
__name: "VibeTooltip",
|
|
1668
1668
|
props: {
|
|
1669
1669
|
content: { type: String, default: void 0 },
|
|
@@ -1698,7 +1698,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1698
1698
|
o.value && (o.value.dispose(), o.value = null);
|
|
1699
1699
|
}), O([() => a.content, () => a.text], () => {
|
|
1700
1700
|
o.value && o.value.setContent({ ".tooltip-inner": a.text || a.content || "" });
|
|
1701
|
-
}), O([() => a.placement, () => a.trigger, () => a.html], r), v({ bsInstance: o }), (u, c) => (
|
|
1701
|
+
}), O([() => a.placement, () => a.trigger, () => a.html], r), v({ bsInstance: o }), (u, c) => (n(), i("span", {
|
|
1702
1702
|
ref_key: "tooltipRef",
|
|
1703
1703
|
ref: s,
|
|
1704
1704
|
"data-bs-toggle": "tooltip",
|
|
@@ -1708,9 +1708,9 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1708
1708
|
"data-bs-html": e.html
|
|
1709
1709
|
}, [
|
|
1710
1710
|
N(u.$slots, "default")
|
|
1711
|
-
], 8,
|
|
1711
|
+
], 8, ia));
|
|
1712
1712
|
}
|
|
1713
|
-
}),
|
|
1713
|
+
}), da = ["data-bs-placement", "data-bs-title", "data-bs-content", "data-bs-trigger", "data-bs-html"], ua = /* @__PURE__ */ M({
|
|
1714
1714
|
__name: "VibePopover",
|
|
1715
1715
|
props: {
|
|
1716
1716
|
title: { type: String, default: void 0 },
|
|
@@ -1750,7 +1750,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1750
1750
|
".popover-header": a.title || "",
|
|
1751
1751
|
".popover-body": a.text || a.content || ""
|
|
1752
1752
|
});
|
|
1753
|
-
}), O([() => a.placement, () => a.trigger, () => a.html], r), v({ bsInstance: o }), (u, c) => (
|
|
1753
|
+
}), O([() => a.placement, () => a.trigger, () => a.html], r), v({ bsInstance: o }), (u, c) => (n(), i("span", {
|
|
1754
1754
|
ref_key: "popoverRef",
|
|
1755
1755
|
ref: s,
|
|
1756
1756
|
"data-bs-toggle": "popover",
|
|
@@ -1761,9 +1761,9 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1761
1761
|
"data-bs-html": e.html
|
|
1762
1762
|
}, [
|
|
1763
1763
|
N(u.$slots, "default")
|
|
1764
|
-
], 8,
|
|
1764
|
+
], 8, da));
|
|
1765
1765
|
}
|
|
1766
|
-
}),
|
|
1766
|
+
}), ca = /* @__PURE__ */ M({
|
|
1767
1767
|
__name: "VibeScrollspy",
|
|
1768
1768
|
props: {
|
|
1769
1769
|
target: { type: String, required: !0 },
|
|
@@ -1798,7 +1798,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1798
1798
|
s.value && s.value.removeEventListener("activate.bs.scrollspy", r), o.value && (o.value.dispose(), o.value = null);
|
|
1799
1799
|
}), v({ refresh: () => {
|
|
1800
1800
|
o.value && o.value.refresh();
|
|
1801
|
-
} }), (c, b) => (
|
|
1801
|
+
} }), (c, b) => (n(), z(A(e.tag), {
|
|
1802
1802
|
ref_key: "scrollspyRef",
|
|
1803
1803
|
ref: s,
|
|
1804
1804
|
"data-bs-spy": "scroll",
|
|
@@ -1815,7 +1815,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1815
1815
|
_: 3
|
|
1816
1816
|
}, 8, ["data-bs-target", "data-bs-offset", "data-bs-method", "data-bs-smooth-scroll"]));
|
|
1817
1817
|
}
|
|
1818
|
-
}),
|
|
1818
|
+
}), va = /* @__PURE__ */ M({
|
|
1819
1819
|
__name: "VibeIcon",
|
|
1820
1820
|
props: {
|
|
1821
1821
|
// Icon name (e.g., 'house', 'heart-fill', 'star')
|
|
@@ -1858,43 +1858,43 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1858
1858
|
}), o = (r) => {
|
|
1859
1859
|
a("click", r);
|
|
1860
1860
|
};
|
|
1861
|
-
return (r, u) => (
|
|
1861
|
+
return (r, u) => (n(), i("i", {
|
|
1862
1862
|
class: $(l.value),
|
|
1863
1863
|
style: K(s.value),
|
|
1864
1864
|
"aria-hidden": !0,
|
|
1865
1865
|
onClick: o
|
|
1866
1866
|
}, null, 6));
|
|
1867
1867
|
}
|
|
1868
|
-
}),
|
|
1868
|
+
}), fa = { class: "vibe-datatable" }, ba = { class: "row mb-3" }, ha = {
|
|
1869
1869
|
key: 0,
|
|
1870
1870
|
class: "col-md-6 mb-2 mb-md-0"
|
|
1871
|
-
},
|
|
1871
|
+
}, ma = ["placeholder"], pa = {
|
|
1872
1872
|
key: 1,
|
|
1873
1873
|
class: "col-md-6"
|
|
1874
|
-
},
|
|
1874
|
+
}, ya = { class: "d-flex justify-content-md-end align-items-center" }, ga = ["value"], ka = ["onClick"], Sa = {
|
|
1875
1875
|
key: 0,
|
|
1876
1876
|
class: "ms-1"
|
|
1877
|
-
},
|
|
1877
|
+
}, $a = ["onClick"], wa = { key: 0 }, Va = ["colspan"], Ca = { class: "row" }, xa = {
|
|
1878
1878
|
key: 0,
|
|
1879
1879
|
class: "col-md-6 mb-2 mb-md-0"
|
|
1880
|
-
},
|
|
1880
|
+
}, Ba = { class: "datatable-info" }, La = {
|
|
1881
1881
|
key: 1,
|
|
1882
1882
|
class: "col-md-6"
|
|
1883
|
-
},
|
|
1883
|
+
}, Ta = { class: "pagination justify-content-md-end mb-0" }, Na = {
|
|
1884
1884
|
key: 0,
|
|
1885
1885
|
class: "page-item"
|
|
1886
|
-
},
|
|
1886
|
+
}, Ea = {
|
|
1887
1887
|
key: 1,
|
|
1888
1888
|
class: "page-item disabled"
|
|
1889
|
-
},
|
|
1889
|
+
}, Ma = ["onClick"], Ia = {
|
|
1890
1890
|
key: 2,
|
|
1891
1891
|
class: "page-item disabled"
|
|
1892
|
-
},
|
|
1892
|
+
}, Fa = {
|
|
1893
1893
|
key: 3,
|
|
1894
1894
|
class: "page-item"
|
|
1895
|
-
},
|
|
1895
|
+
}, Pa = /* @__PURE__ */ M({
|
|
1896
1896
|
__name: "VibeDataTable",
|
|
1897
|
-
props: /* @__PURE__ */
|
|
1897
|
+
props: /* @__PURE__ */ ue({
|
|
1898
1898
|
// Data
|
|
1899
1899
|
items: { type: Array, default: () => [] },
|
|
1900
1900
|
columns: { type: Array, required: !0 },
|
|
@@ -1933,7 +1933,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1933
1933
|
sortDesc: { type: Boolean, default: !1 },
|
|
1934
1934
|
sortDescModifiers: {}
|
|
1935
1935
|
}),
|
|
1936
|
-
emits: /* @__PURE__ */
|
|
1936
|
+
emits: /* @__PURE__ */ ue(["row-clicked", "component-error"], ["update:currentPage", "update:perPage", "update:sortBy", "update:sortDesc"]),
|
|
1937
1937
|
setup(e, { emit: v }) {
|
|
1938
1938
|
const t = e, a = _(e, "currentPage"), l = _(e, "perPage"), s = _(e, "sortBy"), o = _(e, "sortDesc"), r = v, u = E(""), c = E(null), b = E(""), g = (B, L) => t.rowKey && B[t.rowKey] !== void 0 ? String(B[t.rowKey]) : L;
|
|
1939
1939
|
O(u, (B) => {
|
|
@@ -1956,16 +1956,16 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1956
1956
|
if (B == null) return 1;
|
|
1957
1957
|
if (L == null) return -1;
|
|
1958
1958
|
if (typeof B == "string" && typeof L == "string") {
|
|
1959
|
-
const D = B.toLowerCase(),
|
|
1960
|
-
return D <
|
|
1959
|
+
const D = B.toLowerCase(), U = L.toLowerCase();
|
|
1960
|
+
return D < U ? T ? 1 : -1 : D > U ? T ? -1 : 1 : 0;
|
|
1961
1961
|
}
|
|
1962
1962
|
if (typeof B == "number" && typeof L == "number")
|
|
1963
1963
|
return B < L ? T ? 1 : -1 : B > L ? T ? -1 : 1 : 0;
|
|
1964
1964
|
if (typeof B == "boolean" && typeof L == "boolean")
|
|
1965
1965
|
return B === L ? 0 : (B ? 1 : -1) * (T ? -1 : 1);
|
|
1966
1966
|
if (B instanceof Date && L instanceof Date) {
|
|
1967
|
-
const D = B.getTime(),
|
|
1968
|
-
return D <
|
|
1967
|
+
const D = B.getTime(), U = L.getTime();
|
|
1968
|
+
return D < U ? T ? 1 : -1 : D > U ? T ? -1 : 1 : 0;
|
|
1969
1969
|
}
|
|
1970
1970
|
return 0;
|
|
1971
1971
|
}, d = m(() => {
|
|
@@ -1988,45 +1988,45 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
1988
1988
|
!t.sortable || B.sortable === !1 || (s.value === B.key ? o.value = !o.value : (s.value = B.key, o.value = !1));
|
|
1989
1989
|
}, W = (B) => {
|
|
1990
1990
|
B < 1 || B > x.value || (a.value = B);
|
|
1991
|
-
},
|
|
1991
|
+
}, te = () => {
|
|
1992
1992
|
a.value = 1;
|
|
1993
|
-
},
|
|
1993
|
+
}, fe = (B, L) => {
|
|
1994
1994
|
r("row-clicked", B, L);
|
|
1995
|
-
},
|
|
1995
|
+
}, be = (B, L) => {
|
|
1996
1996
|
const T = B[L.key];
|
|
1997
1997
|
return L.formatter ? L.formatter(T, B) : T;
|
|
1998
|
-
},
|
|
1998
|
+
}, he = (B) => !t.sortable || B.sortable === !1 ? "" : s.value !== B.key ? "⇅" : o.value ? "↓" : "↑", me = (B) => {
|
|
1999
1999
|
const L = { ...B.thStyle };
|
|
2000
2000
|
return t.sortable && B.sortable !== !1 && (L.cursor = "pointer"), L;
|
|
2001
2001
|
};
|
|
2002
|
-
return (B, L) => (
|
|
2003
|
-
S("div",
|
|
2004
|
-
e.searchable ? (
|
|
2005
|
-
|
|
2002
|
+
return (B, L) => (n(), i("div", fa, [
|
|
2003
|
+
S("div", ba, [
|
|
2004
|
+
e.searchable ? (n(), i("div", ha, [
|
|
2005
|
+
de(S("input", {
|
|
2006
2006
|
"onUpdate:modelValue": L[0] || (L[0] = (T) => u.value = T),
|
|
2007
2007
|
type: "search",
|
|
2008
2008
|
class: "form-control",
|
|
2009
2009
|
placeholder: e.searchPlaceholder
|
|
2010
|
-
}, null, 8,
|
|
2011
|
-
[
|
|
2010
|
+
}, null, 8, ma), [
|
|
2011
|
+
[ke, u.value]
|
|
2012
2012
|
])
|
|
2013
2013
|
])) : y("", !0),
|
|
2014
|
-
e.showPerPage && e.paginated ? (
|
|
2015
|
-
S("div",
|
|
2014
|
+
e.showPerPage && e.paginated ? (n(), i("div", pa, [
|
|
2015
|
+
S("div", ya, [
|
|
2016
2016
|
L[6] || (L[6] = S("label", { class: "me-2 mb-0" }, "Show", -1)),
|
|
2017
|
-
|
|
2017
|
+
de(S("select", {
|
|
2018
2018
|
"onUpdate:modelValue": L[1] || (L[1] = (T) => l.value = T),
|
|
2019
2019
|
class: "form-select form-select-sm",
|
|
2020
2020
|
style: { width: "auto" },
|
|
2021
|
-
onChange:
|
|
2021
|
+
onChange: te
|
|
2022
2022
|
}, [
|
|
2023
|
-
(
|
|
2023
|
+
(n(!0), i(F, null, H(e.perPageOptions, (T) => (n(), i("option", {
|
|
2024
2024
|
key: T,
|
|
2025
2025
|
value: T
|
|
2026
|
-
}, k(T), 9,
|
|
2026
|
+
}, k(T), 9, ga))), 128))
|
|
2027
2027
|
], 544), [
|
|
2028
2028
|
[
|
|
2029
|
-
|
|
2029
|
+
Se,
|
|
2030
2030
|
l.value,
|
|
2031
2031
|
void 0,
|
|
2032
2032
|
{ number: !0 }
|
|
@@ -2044,53 +2044,53 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2044
2044
|
}, [
|
|
2045
2045
|
S("thead", null, [
|
|
2046
2046
|
S("tr", null, [
|
|
2047
|
-
(
|
|
2047
|
+
(n(!0), i(F, null, H(e.columns, (T) => (n(), i("th", {
|
|
2048
2048
|
key: T.key,
|
|
2049
2049
|
class: $(T.headerClass),
|
|
2050
|
-
style: K(
|
|
2050
|
+
style: K(me(T)),
|
|
2051
2051
|
onClick: (D) => Q(T)
|
|
2052
2052
|
}, [
|
|
2053
|
-
|
|
2054
|
-
e.sortable && T.sortable !== !1 ? (
|
|
2055
|
-
], 14,
|
|
2053
|
+
I(k(T.label) + " ", 1),
|
|
2054
|
+
e.sortable && T.sortable !== !1 ? (n(), i("span", Sa, k(he(T)), 1)) : y("", !0)
|
|
2055
|
+
], 14, ka))), 128))
|
|
2056
2056
|
])
|
|
2057
2057
|
]),
|
|
2058
2058
|
S("tbody", null, [
|
|
2059
|
-
(
|
|
2059
|
+
(n(!0), i(F, null, H(f.value, (T, D) => (n(), i("tr", {
|
|
2060
2060
|
key: g(T, D),
|
|
2061
|
-
onClick: (
|
|
2061
|
+
onClick: (U) => fe(T, D),
|
|
2062
2062
|
style: { cursor: "pointer" }
|
|
2063
2063
|
}, [
|
|
2064
|
-
(
|
|
2065
|
-
key:
|
|
2066
|
-
class: $(
|
|
2067
|
-
style: K(
|
|
2064
|
+
(n(!0), i(F, null, H(e.columns, (U) => (n(), i("td", {
|
|
2065
|
+
key: U.key,
|
|
2066
|
+
class: $(U.class),
|
|
2067
|
+
style: K(U.tdStyle)
|
|
2068
2068
|
}, [
|
|
2069
|
-
N(B.$slots, `cell(${
|
|
2069
|
+
N(B.$slots, `cell(${U.key})`, {
|
|
2070
2070
|
item: T,
|
|
2071
|
-
value: T[
|
|
2071
|
+
value: T[U.key],
|
|
2072
2072
|
index: D
|
|
2073
2073
|
}, () => [
|
|
2074
|
-
|
|
2074
|
+
I(k(be(T, U)), 1)
|
|
2075
2075
|
], !0)
|
|
2076
2076
|
], 6))), 128))
|
|
2077
|
-
], 8,
|
|
2078
|
-
f.value.length === 0 && e.showEmpty ? (
|
|
2077
|
+
], 8, $a))), 128)),
|
|
2078
|
+
f.value.length === 0 && e.showEmpty ? (n(), i("tr", wa, [
|
|
2079
2079
|
S("td", {
|
|
2080
2080
|
colspan: e.columns?.length || 1,
|
|
2081
2081
|
class: "text-center"
|
|
2082
|
-
}, k(e.emptyText), 9,
|
|
2082
|
+
}, k(e.emptyText), 9, Va)
|
|
2083
2083
|
])) : y("", !0)
|
|
2084
2084
|
])
|
|
2085
2085
|
], 2)
|
|
2086
2086
|
], 2),
|
|
2087
|
-
S("div",
|
|
2088
|
-
e.showInfo ? (
|
|
2089
|
-
S("div",
|
|
2087
|
+
S("div", Ca, [
|
|
2088
|
+
e.showInfo ? (n(), i("div", xa, [
|
|
2089
|
+
S("div", Ba, k(P.value), 1)
|
|
2090
2090
|
])) : y("", !0),
|
|
2091
|
-
e.paginated && x.value > 1 ? (
|
|
2091
|
+
e.paginated && x.value > 1 ? (n(), i("div", La, [
|
|
2092
2092
|
S("nav", null, [
|
|
2093
|
-
S("ul",
|
|
2093
|
+
S("ul", Ta, [
|
|
2094
2094
|
S("li", {
|
|
2095
2095
|
class: $(["page-item", { disabled: a.value === 1 }])
|
|
2096
2096
|
}, [
|
|
@@ -2100,19 +2100,19 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2100
2100
|
onClick: L[2] || (L[2] = Z((T) => W(a.value - 1), ["prevent"]))
|
|
2101
2101
|
}, " Previous ")
|
|
2102
2102
|
], 2),
|
|
2103
|
-
a.value > 3 ? (
|
|
2103
|
+
a.value > 3 ? (n(), i("li", Na, [
|
|
2104
2104
|
S("a", {
|
|
2105
2105
|
class: "page-link",
|
|
2106
2106
|
href: "#",
|
|
2107
2107
|
onClick: L[3] || (L[3] = Z((T) => W(1), ["prevent"]))
|
|
2108
2108
|
}, "1")
|
|
2109
2109
|
])) : y("", !0),
|
|
2110
|
-
a.value > 4 ? (
|
|
2110
|
+
a.value > 4 ? (n(), i("li", Ea, [...L[8] || (L[8] = [
|
|
2111
2111
|
S("span", { class: "page-link" }, "...", -1)
|
|
2112
2112
|
])])) : y("", !0),
|
|
2113
|
-
(
|
|
2113
|
+
(n(!0), i(F, null, H(Array.from({ length: x.value }, (T, D) => D + 1).filter(
|
|
2114
2114
|
(T) => T >= a.value - 2 && T <= a.value + 2
|
|
2115
|
-
), (T) => (
|
|
2115
|
+
), (T) => (n(), i("li", {
|
|
2116
2116
|
key: T,
|
|
2117
2117
|
class: $(["page-item", { active: T === a.value }])
|
|
2118
2118
|
}, [
|
|
@@ -2120,12 +2120,12 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2120
2120
|
class: "page-link",
|
|
2121
2121
|
href: "#",
|
|
2122
2122
|
onClick: Z((D) => W(T), ["prevent"])
|
|
2123
|
-
}, k(T), 9,
|
|
2123
|
+
}, k(T), 9, Ma)
|
|
2124
2124
|
], 2))), 128)),
|
|
2125
|
-
a.value < x.value - 3 ? (
|
|
2125
|
+
a.value < x.value - 3 ? (n(), i("li", Ia, [...L[9] || (L[9] = [
|
|
2126
2126
|
S("span", { class: "page-link" }, "...", -1)
|
|
2127
2127
|
])])) : y("", !0),
|
|
2128
|
-
a.value < x.value - 2 ? (
|
|
2128
|
+
a.value < x.value - 2 ? (n(), i("li", Fa, [
|
|
2129
2129
|
S("a", {
|
|
2130
2130
|
class: "page-link",
|
|
2131
2131
|
href: "#",
|
|
@@ -2147,19 +2147,19 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2147
2147
|
])
|
|
2148
2148
|
]));
|
|
2149
2149
|
}
|
|
2150
|
-
}),
|
|
2150
|
+
}), re = (e, v) => {
|
|
2151
2151
|
const t = e.__vccOpts || e;
|
|
2152
2152
|
for (const [a, l] of v)
|
|
2153
2153
|
t[a] = l;
|
|
2154
2154
|
return t;
|
|
2155
|
-
},
|
|
2155
|
+
}, Ra = /* @__PURE__ */ re(Pa, [["__scopeId", "data-v-d5aa8072"]]), qa = ["for"], za = {
|
|
2156
2156
|
key: 0,
|
|
2157
2157
|
class: "text-danger"
|
|
2158
|
-
},
|
|
2158
|
+
}, Aa = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"], ja = ["id"], Oa = {
|
|
2159
2159
|
key: 0,
|
|
2160
2160
|
class: "valid-feedback",
|
|
2161
2161
|
style: { display: "block" }
|
|
2162
|
-
},
|
|
2162
|
+
}, Ha = ["id"], Da = /* @__PURE__ */ M({
|
|
2163
2163
|
__name: "VibeFormInput",
|
|
2164
2164
|
props: {
|
|
2165
2165
|
modelValue: {
|
|
@@ -2183,7 +2183,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2183
2183
|
},
|
|
2184
2184
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change"],
|
|
2185
2185
|
setup(e, { emit: v }) {
|
|
2186
|
-
const t = e, a = v, l =
|
|
2186
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("input")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2187
2187
|
const d = [];
|
|
2188
2188
|
return t.plaintext ? d.push("form-control-plaintext") : (d.push("form-control"), t.size && d.push(`form-control-${t.size}`)), t.validationState === "valid" && d.push("is-valid"), t.validationState === "invalid" && d.push("is-invalid"), d.join(" ");
|
|
2189
2189
|
}), b = (d) => {
|
|
@@ -2196,17 +2196,17 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2196
2196
|
}, p = (d) => {
|
|
2197
2197
|
a("focus", d);
|
|
2198
2198
|
};
|
|
2199
|
-
return (d, f) => (
|
|
2199
|
+
return (d, f) => (n(), i("div", {
|
|
2200
2200
|
class: $({ "mb-3": o.value || u.value || r.value })
|
|
2201
2201
|
}, [
|
|
2202
|
-
o.value ? (
|
|
2202
|
+
o.value ? (n(), i("label", {
|
|
2203
2203
|
key: 0,
|
|
2204
2204
|
for: s.value,
|
|
2205
2205
|
class: "form-label"
|
|
2206
2206
|
}, [
|
|
2207
|
-
|
|
2208
|
-
e.required ? (
|
|
2209
|
-
], 8,
|
|
2207
|
+
I(k(e.label) + " ", 1),
|
|
2208
|
+
e.required ? (n(), i("span", za, "*")) : y("", !0)
|
|
2209
|
+
], 8, qa)) : y("", !0),
|
|
2210
2210
|
S("input", {
|
|
2211
2211
|
id: s.value,
|
|
2212
2212
|
type: e.type,
|
|
@@ -2222,36 +2222,36 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2222
2222
|
onChange: g,
|
|
2223
2223
|
onBlur: C,
|
|
2224
2224
|
onFocus: p
|
|
2225
|
-
}, null, 42,
|
|
2226
|
-
u.value ? (
|
|
2225
|
+
}, null, 42, Aa),
|
|
2226
|
+
u.value ? (n(), i("div", {
|
|
2227
2227
|
key: 1,
|
|
2228
2228
|
id: `${s.value}-feedback`,
|
|
2229
2229
|
class: "form-text"
|
|
2230
|
-
}, k(e.helpText), 9,
|
|
2231
|
-
r.value ? (
|
|
2232
|
-
e.validationState === "valid" ? (
|
|
2233
|
-
e.validationState === "invalid" ? (
|
|
2230
|
+
}, k(e.helpText), 9, ja)) : y("", !0),
|
|
2231
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2232
|
+
e.validationState === "valid" ? (n(), i("div", Oa, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2233
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2234
2234
|
key: 1,
|
|
2235
2235
|
id: `${s.value}-feedback`,
|
|
2236
2236
|
class: "invalid-feedback",
|
|
2237
2237
|
style: { display: "block" }
|
|
2238
|
-
}, k(e.validationMessage || "Please provide a valid value."), 9,
|
|
2238
|
+
}, k(e.validationMessage || "Please provide a valid value."), 9, Ha)) : y("", !0)
|
|
2239
2239
|
], 64)) : y("", !0)
|
|
2240
2240
|
], 2));
|
|
2241
2241
|
}
|
|
2242
|
-
}),
|
|
2242
|
+
}), Ga = ["for"], Xa = {
|
|
2243
2243
|
key: 0,
|
|
2244
2244
|
class: "text-danger"
|
|
2245
|
-
},
|
|
2245
|
+
}, Ya = ["id", "value", "multiple", "size", "disabled", "required", "aria-invalid", "aria-describedby"], Ua = {
|
|
2246
2246
|
key: 0,
|
|
2247
2247
|
value: "",
|
|
2248
2248
|
disabled: "",
|
|
2249
2249
|
selected: ""
|
|
2250
|
-
},
|
|
2250
|
+
}, Ja = ["value", "disabled"], Ka = ["id"], Qa = {
|
|
2251
2251
|
key: 0,
|
|
2252
2252
|
class: "valid-feedback",
|
|
2253
2253
|
style: { display: "block" }
|
|
2254
|
-
},
|
|
2254
|
+
}, Wa = ["id"], Za = /* @__PURE__ */ M({
|
|
2255
2255
|
__name: "VibeFormSelect",
|
|
2256
2256
|
props: {
|
|
2257
2257
|
modelValue: {
|
|
@@ -2276,7 +2276,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2276
2276
|
},
|
|
2277
2277
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2278
2278
|
setup(e, { emit: v }) {
|
|
2279
|
-
const t = e, a = v, l =
|
|
2279
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("select")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2280
2280
|
const d = ["form-select"];
|
|
2281
2281
|
return t.size && d.push(`form-select-${t.size}`), t.validationState === "valid" && d.push("is-valid"), t.validationState === "invalid" && d.push("is-invalid"), d.join(" ");
|
|
2282
2282
|
}), b = (d) => {
|
|
@@ -2290,17 +2290,17 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2290
2290
|
}, p = (d) => {
|
|
2291
2291
|
a("focus", d);
|
|
2292
2292
|
};
|
|
2293
|
-
return (d, f) => (
|
|
2293
|
+
return (d, f) => (n(), i("div", {
|
|
2294
2294
|
class: $({ "mb-3": o.value || u.value || r.value })
|
|
2295
2295
|
}, [
|
|
2296
|
-
o.value ? (
|
|
2296
|
+
o.value ? (n(), i("label", {
|
|
2297
2297
|
key: 0,
|
|
2298
2298
|
for: s.value,
|
|
2299
2299
|
class: "form-label"
|
|
2300
2300
|
}, [
|
|
2301
|
-
|
|
2302
|
-
e.required ? (
|
|
2303
|
-
], 8,
|
|
2301
|
+
I(k(e.label) + " ", 1),
|
|
2302
|
+
e.required ? (n(), i("span", Xa, "*")) : y("", !0)
|
|
2303
|
+
], 8, Ga)) : y("", !0),
|
|
2304
2304
|
S("select", {
|
|
2305
2305
|
id: s.value,
|
|
2306
2306
|
class: $(c.value),
|
|
@@ -2316,42 +2316,42 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2316
2316
|
onBlur: C,
|
|
2317
2317
|
onFocus: p
|
|
2318
2318
|
}, [
|
|
2319
|
-
e.placeholder ? (
|
|
2319
|
+
e.placeholder ? (n(), i("option", Ua, k(e.placeholder), 1)) : y("", !0),
|
|
2320
2320
|
N(d.$slots, "default", {}, () => [
|
|
2321
|
-
(
|
|
2321
|
+
(n(!0), i(F, null, H(e.options, (h) => (n(), i("option", {
|
|
2322
2322
|
key: String(h.value),
|
|
2323
2323
|
value: h.value,
|
|
2324
2324
|
disabled: h.disabled
|
|
2325
|
-
}, k(h.text), 9,
|
|
2325
|
+
}, k(h.text), 9, Ja))), 128))
|
|
2326
2326
|
])
|
|
2327
|
-
], 42,
|
|
2328
|
-
u.value ? (
|
|
2327
|
+
], 42, Ya),
|
|
2328
|
+
u.value ? (n(), i("div", {
|
|
2329
2329
|
key: 1,
|
|
2330
2330
|
id: `${s.value}-feedback`,
|
|
2331
2331
|
class: "form-text"
|
|
2332
|
-
}, k(e.helpText), 9,
|
|
2333
|
-
r.value ? (
|
|
2334
|
-
e.validationState === "valid" ? (
|
|
2335
|
-
e.validationState === "invalid" ? (
|
|
2332
|
+
}, k(e.helpText), 9, Ka)) : y("", !0),
|
|
2333
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2334
|
+
e.validationState === "valid" ? (n(), i("div", Qa, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2335
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2336
2336
|
key: 1,
|
|
2337
2337
|
id: `${s.value}-feedback`,
|
|
2338
2338
|
class: "invalid-feedback",
|
|
2339
2339
|
style: { display: "block" }
|
|
2340
|
-
}, k(e.validationMessage || "Please select an option."), 9,
|
|
2340
|
+
}, k(e.validationMessage || "Please select an option."), 9, Wa)) : y("", !0)
|
|
2341
2341
|
], 64)) : y("", !0)
|
|
2342
2342
|
], 2));
|
|
2343
2343
|
}
|
|
2344
|
-
}),
|
|
2344
|
+
}), _a = ["for"], el = {
|
|
2345
2345
|
key: 0,
|
|
2346
2346
|
class: "text-danger"
|
|
2347
|
-
},
|
|
2347
|
+
}, tl = ["id", "value", "placeholder", "rows", "maxlength", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"], al = ["id"], ll = {
|
|
2348
2348
|
key: 0,
|
|
2349
2349
|
class: "ms-auto"
|
|
2350
|
-
},
|
|
2350
|
+
}, ol = {
|
|
2351
2351
|
key: 0,
|
|
2352
2352
|
class: "valid-feedback",
|
|
2353
2353
|
style: { display: "block" }
|
|
2354
|
-
},
|
|
2354
|
+
}, sl = ["id"], nl = /* @__PURE__ */ M({
|
|
2355
2355
|
__name: "VibeFormTextarea",
|
|
2356
2356
|
props: {
|
|
2357
2357
|
modelValue: {
|
|
@@ -2377,7 +2377,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2377
2377
|
},
|
|
2378
2378
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change"],
|
|
2379
2379
|
setup(e, { emit: v }) {
|
|
2380
|
-
const t = e, a = v, l =
|
|
2380
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("textarea")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => (!!t.helpText || t.showCharCount) && !l?.hasHelp.value), c = m(() => {
|
|
2381
2381
|
const h = ["form-control"];
|
|
2382
2382
|
return t.size && h.push(`form-control-${t.size}`), t.validationState === "valid" && h.push("is-valid"), t.validationState === "invalid" && h.push("is-invalid"), h.join(" ");
|
|
2383
2383
|
}), b = m(() => {
|
|
@@ -2392,17 +2392,17 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2392
2392
|
}, f = (h) => {
|
|
2393
2393
|
a("focus", h);
|
|
2394
2394
|
};
|
|
2395
|
-
return (h, w) => (
|
|
2395
|
+
return (h, w) => (n(), i("div", {
|
|
2396
2396
|
class: $({ "mb-3": o.value || u.value || r.value })
|
|
2397
2397
|
}, [
|
|
2398
|
-
o.value ? (
|
|
2398
|
+
o.value ? (n(), i("label", {
|
|
2399
2399
|
key: 0,
|
|
2400
2400
|
for: s.value,
|
|
2401
2401
|
class: "form-label"
|
|
2402
2402
|
}, [
|
|
2403
|
-
|
|
2404
|
-
e.required ? (
|
|
2405
|
-
], 8,
|
|
2403
|
+
I(k(e.label) + " ", 1),
|
|
2404
|
+
e.required ? (n(), i("span", el, "*")) : y("", !0)
|
|
2405
|
+
], 8, _a)) : y("", !0),
|
|
2406
2406
|
S("textarea", {
|
|
2407
2407
|
id: s.value,
|
|
2408
2408
|
class: $(c.value),
|
|
@@ -2420,40 +2420,40 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2420
2420
|
onChange: p,
|
|
2421
2421
|
onBlur: d,
|
|
2422
2422
|
onFocus: f
|
|
2423
|
-
}, null, 46,
|
|
2424
|
-
u.value ? (
|
|
2423
|
+
}, null, 46, tl),
|
|
2424
|
+
u.value ? (n(), i("div", {
|
|
2425
2425
|
key: 1,
|
|
2426
2426
|
id: `${s.value}-feedback`,
|
|
2427
2427
|
class: "form-text d-flex justify-content-between"
|
|
2428
2428
|
}, [
|
|
2429
2429
|
S("span", null, k(e.helpText), 1),
|
|
2430
|
-
e.showCharCount ? (
|
|
2431
|
-
e.maxlength ? (
|
|
2432
|
-
|
|
2433
|
-
], 64)) : (
|
|
2434
|
-
|
|
2430
|
+
e.showCharCount ? (n(), i("span", ll, [
|
|
2431
|
+
e.maxlength ? (n(), i(F, { key: 0 }, [
|
|
2432
|
+
I(k(g.value) + " / " + k(e.maxlength), 1)
|
|
2433
|
+
], 64)) : (n(), i(F, { key: 1 }, [
|
|
2434
|
+
I(k(g.value), 1)
|
|
2435
2435
|
], 64))
|
|
2436
2436
|
])) : y("", !0)
|
|
2437
|
-
], 8,
|
|
2438
|
-
r.value ? (
|
|
2439
|
-
e.validationState === "valid" ? (
|
|
2440
|
-
e.validationState === "invalid" ? (
|
|
2437
|
+
], 8, al)) : y("", !0),
|
|
2438
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2439
|
+
e.validationState === "valid" ? (n(), i("div", ol, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2440
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2441
2441
|
key: 1,
|
|
2442
2442
|
id: `${s.value}-feedback`,
|
|
2443
2443
|
class: "invalid-feedback",
|
|
2444
2444
|
style: { display: "block" }
|
|
2445
|
-
}, k(e.validationMessage || "Please provide a valid value."), 9,
|
|
2445
|
+
}, k(e.validationMessage || "Please provide a valid value."), 9, sl)) : y("", !0)
|
|
2446
2446
|
], 64)) : y("", !0)
|
|
2447
2447
|
], 2));
|
|
2448
2448
|
}
|
|
2449
|
-
}),
|
|
2449
|
+
}), il = ["for"], rl = {
|
|
2450
2450
|
key: 0,
|
|
2451
2451
|
class: "text-danger"
|
|
2452
|
-
},
|
|
2452
|
+
}, dl = ["disabled"], ul = ["id", "value", "disabled", "readonly", "required", "min", "max", "step", "aria-invalid", "aria-describedby"], cl = ["disabled"], vl = ["id"], fl = {
|
|
2453
2453
|
key: 0,
|
|
2454
2454
|
class: "valid-feedback",
|
|
2455
2455
|
style: { display: "block" }
|
|
2456
|
-
},
|
|
2456
|
+
}, bl = ["id"], hl = /* @__PURE__ */ M({
|
|
2457
2457
|
__name: "VibeFormSpinbutton",
|
|
2458
2458
|
props: {
|
|
2459
2459
|
modelValue: {
|
|
@@ -2480,7 +2480,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2480
2480
|
},
|
|
2481
2481
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change", "increment", "decrement"],
|
|
2482
2482
|
setup(e, { emit: v }) {
|
|
2483
|
-
const t = e, a = v, l =
|
|
2483
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("spinbutton")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2484
2484
|
const V = ["form-control"];
|
|
2485
2485
|
return t.size && V.push(`form-control-${t.size}`), t.validationState === "valid" && V.push("is-valid"), t.validationState === "invalid" && V.push("is-invalid"), V.join(" ");
|
|
2486
2486
|
}), b = m(() => {
|
|
@@ -2505,17 +2505,17 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2505
2505
|
let V = t.modelValue - t.step;
|
|
2506
2506
|
t.min !== void 0 && V < t.min && (V = t.wrap ? t.max ?? 0 : t.min), a("update:modelValue", V), a("decrement", V), t.validateOn === "change" && a("validate");
|
|
2507
2507
|
};
|
|
2508
|
-
return (V, q) => (
|
|
2508
|
+
return (V, q) => (n(), i("div", {
|
|
2509
2509
|
class: $({ "mb-3": o.value || u.value || r.value })
|
|
2510
2510
|
}, [
|
|
2511
|
-
o.value ? (
|
|
2511
|
+
o.value ? (n(), i("label", {
|
|
2512
2512
|
key: 0,
|
|
2513
2513
|
for: s.value,
|
|
2514
2514
|
class: "form-label"
|
|
2515
2515
|
}, [
|
|
2516
|
-
|
|
2517
|
-
e.required ? (
|
|
2518
|
-
], 8,
|
|
2516
|
+
I(k(e.label) + " ", 1),
|
|
2517
|
+
e.required ? (n(), i("span", rl, "*")) : y("", !0)
|
|
2518
|
+
], 8, il)) : y("", !0),
|
|
2519
2519
|
S("div", {
|
|
2520
2520
|
class: $(b.value)
|
|
2521
2521
|
}, [
|
|
@@ -2527,7 +2527,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2527
2527
|
"aria-label": "Decrement"
|
|
2528
2528
|
}, [...q[0] || (q[0] = [
|
|
2529
2529
|
S("span", { "aria-hidden": "true" }, "−", -1)
|
|
2530
|
-
])], 8,
|
|
2530
|
+
])], 8, dl),
|
|
2531
2531
|
S("input", {
|
|
2532
2532
|
id: s.value,
|
|
2533
2533
|
type: "number",
|
|
@@ -2545,7 +2545,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2545
2545
|
onChange: d,
|
|
2546
2546
|
onBlur: f,
|
|
2547
2547
|
onFocus: h
|
|
2548
|
-
}, null, 42,
|
|
2548
|
+
}, null, 42, ul),
|
|
2549
2549
|
S("button", {
|
|
2550
2550
|
class: "btn btn-outline-secondary",
|
|
2551
2551
|
type: "button",
|
|
@@ -2554,32 +2554,32 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2554
2554
|
"aria-label": "Increment"
|
|
2555
2555
|
}, [...q[1] || (q[1] = [
|
|
2556
2556
|
S("span", { "aria-hidden": "true" }, "+", -1)
|
|
2557
|
-
])], 8,
|
|
2557
|
+
])], 8, cl)
|
|
2558
2558
|
], 2),
|
|
2559
|
-
u.value ? (
|
|
2559
|
+
u.value ? (n(), i("div", {
|
|
2560
2560
|
key: 1,
|
|
2561
2561
|
id: `${s.value}-feedback`,
|
|
2562
2562
|
class: "form-text"
|
|
2563
|
-
}, k(e.helpText), 9,
|
|
2564
|
-
r.value ? (
|
|
2565
|
-
e.validationState === "valid" ? (
|
|
2566
|
-
e.validationState === "invalid" ? (
|
|
2563
|
+
}, k(e.helpText), 9, vl)) : y("", !0),
|
|
2564
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2565
|
+
e.validationState === "valid" ? (n(), i("div", fl, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2566
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2567
2567
|
key: 1,
|
|
2568
2568
|
id: `${s.value}-feedback`,
|
|
2569
2569
|
class: "invalid-feedback",
|
|
2570
2570
|
style: { display: "block" }
|
|
2571
|
-
}, k(e.validationMessage || "Please provide a valid value."), 9,
|
|
2571
|
+
}, k(e.validationMessage || "Please provide a valid value."), 9, bl)) : y("", !0)
|
|
2572
2572
|
], 64)) : y("", !0)
|
|
2573
2573
|
], 2));
|
|
2574
2574
|
}
|
|
2575
|
-
}),
|
|
2575
|
+
}), ml = /* @__PURE__ */ re(hl, [["__scopeId", "data-v-49746a62"]]), pl = ["for"], yl = {
|
|
2576
2576
|
key: 0,
|
|
2577
2577
|
class: "text-danger"
|
|
2578
|
-
},
|
|
2578
|
+
}, gl = ["id", "type", "value", "disabled", "readonly", "required", "min", "max", "aria-invalid", "aria-describedby"], kl = ["id"], Sl = {
|
|
2579
2579
|
key: 0,
|
|
2580
2580
|
class: "valid-feedback",
|
|
2581
2581
|
style: { display: "block" }
|
|
2582
|
-
},
|
|
2582
|
+
}, $l = ["id"], wl = /* @__PURE__ */ M({
|
|
2583
2583
|
__name: "VibeFormDatepicker",
|
|
2584
2584
|
props: {
|
|
2585
2585
|
modelValue: {
|
|
@@ -2604,7 +2604,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2604
2604
|
},
|
|
2605
2605
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change"],
|
|
2606
2606
|
setup(e, { emit: v }) {
|
|
2607
|
-
const t = e, a = v, l =
|
|
2607
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("datepicker")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2608
2608
|
const d = ["form-control"];
|
|
2609
2609
|
return t.size && d.push(`form-control-${t.size}`), t.validationState === "valid" && d.push("is-valid"), t.validationState === "invalid" && d.push("is-invalid"), d.join(" ");
|
|
2610
2610
|
}), b = (d) => {
|
|
@@ -2617,17 +2617,17 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2617
2617
|
}, p = (d) => {
|
|
2618
2618
|
a("focus", d);
|
|
2619
2619
|
};
|
|
2620
|
-
return (d, f) => (
|
|
2620
|
+
return (d, f) => (n(), i("div", {
|
|
2621
2621
|
class: $({ "mb-3": o.value || u.value || r.value })
|
|
2622
2622
|
}, [
|
|
2623
|
-
o.value ? (
|
|
2623
|
+
o.value ? (n(), i("label", {
|
|
2624
2624
|
key: 0,
|
|
2625
2625
|
for: s.value,
|
|
2626
2626
|
class: "form-label"
|
|
2627
2627
|
}, [
|
|
2628
|
-
|
|
2629
|
-
e.required ? (
|
|
2630
|
-
], 8,
|
|
2628
|
+
I(k(e.label) + " ", 1),
|
|
2629
|
+
e.required ? (n(), i("span", yl, "*")) : y("", !0)
|
|
2630
|
+
], 8, pl)) : y("", !0),
|
|
2631
2631
|
S("input", {
|
|
2632
2632
|
id: s.value,
|
|
2633
2633
|
type: e.type,
|
|
@@ -2644,31 +2644,31 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2644
2644
|
onChange: g,
|
|
2645
2645
|
onBlur: C,
|
|
2646
2646
|
onFocus: p
|
|
2647
|
-
}, null, 42,
|
|
2648
|
-
u.value ? (
|
|
2647
|
+
}, null, 42, gl),
|
|
2648
|
+
u.value ? (n(), i("div", {
|
|
2649
2649
|
key: 1,
|
|
2650
2650
|
id: `${s.value}-feedback`,
|
|
2651
2651
|
class: "form-text"
|
|
2652
|
-
}, k(e.helpText), 9,
|
|
2653
|
-
r.value ? (
|
|
2654
|
-
e.validationState === "valid" ? (
|
|
2655
|
-
e.validationState === "invalid" ? (
|
|
2652
|
+
}, k(e.helpText), 9, kl)) : y("", !0),
|
|
2653
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2654
|
+
e.validationState === "valid" ? (n(), i("div", Sl, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2655
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2656
2656
|
key: 1,
|
|
2657
2657
|
id: `${s.value}-feedback`,
|
|
2658
2658
|
class: "invalid-feedback",
|
|
2659
2659
|
style: { display: "block" }
|
|
2660
|
-
}, k(e.validationMessage || "Please provide a valid date."), 9,
|
|
2660
|
+
}, k(e.validationMessage || "Please provide a valid date."), 9, $l)) : y("", !0)
|
|
2661
2661
|
], 64)) : y("", !0)
|
|
2662
2662
|
], 2));
|
|
2663
2663
|
}
|
|
2664
|
-
}),
|
|
2664
|
+
}), Vl = ["id", "checked", "disabled", "required", "indeterminate", "aria-invalid", "aria-describedby"], Cl = ["for"], xl = {
|
|
2665
2665
|
key: 0,
|
|
2666
2666
|
class: "text-danger"
|
|
2667
|
-
},
|
|
2667
|
+
}, Bl = ["id"], Ll = {
|
|
2668
2668
|
key: 0,
|
|
2669
2669
|
class: "valid-feedback",
|
|
2670
2670
|
style: { display: "block" }
|
|
2671
|
-
},
|
|
2671
|
+
}, Tl = ["id"], Nl = /* @__PURE__ */ M({
|
|
2672
2672
|
__name: "VibeFormCheckbox",
|
|
2673
2673
|
props: {
|
|
2674
2674
|
modelValue: {
|
|
@@ -2691,7 +2691,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2691
2691
|
},
|
|
2692
2692
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2693
2693
|
setup(e, { emit: v }) {
|
|
2694
|
-
const t = e, a = v, l =
|
|
2694
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("checkbox")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2695
2695
|
const f = ["form-check"];
|
|
2696
2696
|
return t.inline && f.push("form-check-inline"), t.reverse && f.push("form-check-reverse"), f.join(" ");
|
|
2697
2697
|
}), b = m(() => {
|
|
@@ -2715,7 +2715,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2715
2715
|
}, d = (f) => {
|
|
2716
2716
|
a("focus", f);
|
|
2717
2717
|
};
|
|
2718
|
-
return (f, h) => (
|
|
2718
|
+
return (f, h) => (n(), i("div", {
|
|
2719
2719
|
class: $([c.value, { "mb-3": o.value || u.value || r.value }])
|
|
2720
2720
|
}, [
|
|
2721
2721
|
S("input", {
|
|
@@ -2731,39 +2731,39 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2731
2731
|
onChange: C,
|
|
2732
2732
|
onBlur: p,
|
|
2733
2733
|
onFocus: d
|
|
2734
|
-
}, null, 42,
|
|
2735
|
-
o.value ? (
|
|
2734
|
+
}, null, 42, Vl),
|
|
2735
|
+
o.value ? (n(), i("label", {
|
|
2736
2736
|
key: 0,
|
|
2737
2737
|
for: s.value,
|
|
2738
2738
|
class: "form-check-label"
|
|
2739
2739
|
}, [
|
|
2740
|
-
|
|
2741
|
-
e.required ? (
|
|
2742
|
-
], 8,
|
|
2743
|
-
u.value ? (
|
|
2740
|
+
I(k(e.label) + " ", 1),
|
|
2741
|
+
e.required ? (n(), i("span", xl, "*")) : y("", !0)
|
|
2742
|
+
], 8, Cl)) : y("", !0),
|
|
2743
|
+
u.value ? (n(), i("div", {
|
|
2744
2744
|
key: 1,
|
|
2745
2745
|
id: `${s.value}-feedback`,
|
|
2746
2746
|
class: "form-text"
|
|
2747
|
-
}, k(e.helpText), 9,
|
|
2748
|
-
r.value ? (
|
|
2749
|
-
e.validationState === "valid" ? (
|
|
2750
|
-
e.validationState === "invalid" ? (
|
|
2747
|
+
}, k(e.helpText), 9, Bl)) : y("", !0),
|
|
2748
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2749
|
+
e.validationState === "valid" ? (n(), i("div", Ll, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2750
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2751
2751
|
key: 1,
|
|
2752
2752
|
id: `${s.value}-feedback`,
|
|
2753
2753
|
class: "invalid-feedback",
|
|
2754
2754
|
style: { display: "block" }
|
|
2755
|
-
}, k(e.validationMessage || "Please check this box."), 9,
|
|
2755
|
+
}, k(e.validationMessage || "Please check this box."), 9, Tl)) : y("", !0)
|
|
2756
2756
|
], 64)) : y("", !0)
|
|
2757
2757
|
], 2));
|
|
2758
2758
|
}
|
|
2759
|
-
}),
|
|
2759
|
+
}), El = ["id", "name", "value", "checked", "disabled", "required", "aria-invalid", "aria-describedby"], Ml = ["for"], Il = {
|
|
2760
2760
|
key: 0,
|
|
2761
2761
|
class: "text-danger"
|
|
2762
|
-
},
|
|
2762
|
+
}, Fl = ["id"], Pl = {
|
|
2763
2763
|
key: 0,
|
|
2764
2764
|
class: "valid-feedback",
|
|
2765
2765
|
style: { display: "block" }
|
|
2766
|
-
},
|
|
2766
|
+
}, Rl = ["id"], ql = /* @__PURE__ */ M({
|
|
2767
2767
|
__name: "VibeFormRadio",
|
|
2768
2768
|
props: {
|
|
2769
2769
|
modelValue: {
|
|
@@ -2786,7 +2786,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2786
2786
|
},
|
|
2787
2787
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2788
2788
|
setup(e, { emit: v }) {
|
|
2789
|
-
const t = e, a = v, l =
|
|
2789
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("radio")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2790
2790
|
const f = ["form-check"];
|
|
2791
2791
|
return t.inline && f.push("form-check-inline"), t.reverse && f.push("form-check-reverse"), f.join(" ");
|
|
2792
2792
|
}), b = m(() => {
|
|
@@ -2799,7 +2799,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2799
2799
|
}, d = (f) => {
|
|
2800
2800
|
a("focus", f);
|
|
2801
2801
|
};
|
|
2802
|
-
return (f, h) => (
|
|
2802
|
+
return (f, h) => (n(), i("div", {
|
|
2803
2803
|
class: $([c.value, { "mb-3": o.value || u.value || r.value }])
|
|
2804
2804
|
}, [
|
|
2805
2805
|
S("input", {
|
|
@@ -2816,39 +2816,39 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2816
2816
|
onChange: C,
|
|
2817
2817
|
onBlur: p,
|
|
2818
2818
|
onFocus: d
|
|
2819
|
-
}, null, 42,
|
|
2820
|
-
o.value ? (
|
|
2819
|
+
}, null, 42, El),
|
|
2820
|
+
o.value ? (n(), i("label", {
|
|
2821
2821
|
key: 0,
|
|
2822
2822
|
for: s.value,
|
|
2823
2823
|
class: "form-check-label"
|
|
2824
2824
|
}, [
|
|
2825
|
-
|
|
2826
|
-
e.required ? (
|
|
2827
|
-
], 8,
|
|
2828
|
-
u.value ? (
|
|
2825
|
+
I(k(e.label) + " ", 1),
|
|
2826
|
+
e.required ? (n(), i("span", Il, "*")) : y("", !0)
|
|
2827
|
+
], 8, Ml)) : y("", !0),
|
|
2828
|
+
u.value ? (n(), i("div", {
|
|
2829
2829
|
key: 1,
|
|
2830
2830
|
id: `${s.value}-feedback`,
|
|
2831
2831
|
class: "form-text"
|
|
2832
|
-
}, k(e.helpText), 9,
|
|
2833
|
-
r.value ? (
|
|
2834
|
-
e.validationState === "valid" ? (
|
|
2835
|
-
e.validationState === "invalid" ? (
|
|
2832
|
+
}, k(e.helpText), 9, Fl)) : y("", !0),
|
|
2833
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2834
|
+
e.validationState === "valid" ? (n(), i("div", Pl, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2835
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2836
2836
|
key: 1,
|
|
2837
2837
|
id: `${s.value}-feedback`,
|
|
2838
2838
|
class: "invalid-feedback",
|
|
2839
2839
|
style: { display: "block" }
|
|
2840
|
-
}, k(e.validationMessage || "Please select an option."), 9,
|
|
2840
|
+
}, k(e.validationMessage || "Please select an option."), 9, Rl)) : y("", !0)
|
|
2841
2841
|
], 64)) : y("", !0)
|
|
2842
2842
|
], 2));
|
|
2843
2843
|
}
|
|
2844
|
-
}),
|
|
2844
|
+
}), zl = ["id", "checked", "disabled", "required", "aria-invalid", "aria-describedby"], Al = ["for"], jl = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
class: "text-danger"
|
|
2847
|
-
},
|
|
2847
|
+
}, Ol = ["id"], Hl = {
|
|
2848
2848
|
key: 0,
|
|
2849
2849
|
class: "valid-feedback",
|
|
2850
2850
|
style: { display: "block" }
|
|
2851
|
-
},
|
|
2851
|
+
}, Dl = ["id"], Gl = /* @__PURE__ */ M({
|
|
2852
2852
|
__name: "VibeFormSwitch",
|
|
2853
2853
|
props: {
|
|
2854
2854
|
modelValue: {
|
|
@@ -2868,7 +2868,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2868
2868
|
},
|
|
2869
2869
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2870
2870
|
setup(e, { emit: v }) {
|
|
2871
|
-
const t = e, a = v, l =
|
|
2871
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.consumeId() || G("switch")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = m(() => {
|
|
2872
2872
|
const d = ["form-check", "form-switch"];
|
|
2873
2873
|
return t.inline && d.push("form-check-inline"), d.join(" ");
|
|
2874
2874
|
}), b = m(() => {
|
|
@@ -2882,7 +2882,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2882
2882
|
}, p = (d) => {
|
|
2883
2883
|
a("focus", d);
|
|
2884
2884
|
};
|
|
2885
|
-
return (d, f) => (
|
|
2885
|
+
return (d, f) => (n(), i("div", {
|
|
2886
2886
|
class: $([c.value, { "mb-3": o.value || u.value || r.value }])
|
|
2887
2887
|
}, [
|
|
2888
2888
|
S("input", {
|
|
@@ -2898,46 +2898,46 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2898
2898
|
onChange: g,
|
|
2899
2899
|
onBlur: C,
|
|
2900
2900
|
onFocus: p
|
|
2901
|
-
}, null, 42,
|
|
2902
|
-
o.value ? (
|
|
2901
|
+
}, null, 42, zl),
|
|
2902
|
+
o.value ? (n(), i("label", {
|
|
2903
2903
|
key: 0,
|
|
2904
2904
|
for: s.value,
|
|
2905
2905
|
class: "form-check-label"
|
|
2906
2906
|
}, [
|
|
2907
|
-
|
|
2908
|
-
e.required ? (
|
|
2909
|
-
], 8,
|
|
2910
|
-
u.value ? (
|
|
2907
|
+
I(k(e.label) + " ", 1),
|
|
2908
|
+
e.required ? (n(), i("span", jl, "*")) : y("", !0)
|
|
2909
|
+
], 8, Al)) : y("", !0),
|
|
2910
|
+
u.value ? (n(), i("div", {
|
|
2911
2911
|
key: 1,
|
|
2912
2912
|
id: `${s.value}-feedback`,
|
|
2913
2913
|
class: "form-text"
|
|
2914
|
-
}, k(e.helpText), 9,
|
|
2915
|
-
r.value ? (
|
|
2916
|
-
e.validationState === "valid" ? (
|
|
2917
|
-
e.validationState === "invalid" ? (
|
|
2914
|
+
}, k(e.helpText), 9, Ol)) : y("", !0),
|
|
2915
|
+
r.value ? (n(), i(F, { key: 2 }, [
|
|
2916
|
+
e.validationState === "valid" ? (n(), i("div", Hl, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2917
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2918
2918
|
key: 1,
|
|
2919
2919
|
id: `${s.value}-feedback`,
|
|
2920
2920
|
class: "invalid-feedback",
|
|
2921
2921
|
style: { display: "block" }
|
|
2922
|
-
}, k(e.validationMessage || "Please toggle this switch."), 9,
|
|
2922
|
+
}, k(e.validationMessage || "Please toggle this switch."), 9, Dl)) : y("", !0)
|
|
2923
2923
|
], 64)) : y("", !0)
|
|
2924
2924
|
], 2));
|
|
2925
2925
|
}
|
|
2926
|
-
}),
|
|
2926
|
+
}), Xl = ["for"], Yl = {
|
|
2927
2927
|
key: 0,
|
|
2928
2928
|
class: "text-danger"
|
|
2929
|
-
},
|
|
2929
|
+
}, Ul = ["id"], Jl = {
|
|
2930
2930
|
key: 1,
|
|
2931
2931
|
class: "valid-feedback",
|
|
2932
2932
|
style: { display: "block" }
|
|
2933
|
-
},
|
|
2933
|
+
}, Kl = ["id"], Ql = ["for"], Wl = {
|
|
2934
2934
|
key: 0,
|
|
2935
2935
|
class: "text-danger"
|
|
2936
|
-
},
|
|
2936
|
+
}, Zl = ["id"], _l = {
|
|
2937
2937
|
key: 2,
|
|
2938
2938
|
class: "valid-feedback",
|
|
2939
2939
|
style: { display: "block" }
|
|
2940
|
-
},
|
|
2940
|
+
}, eo = ["id"], to = /* @__PURE__ */ M({
|
|
2941
2941
|
__name: "VibeFormGroup",
|
|
2942
2942
|
props: {
|
|
2943
2943
|
label: { type: String, default: void 0 },
|
|
@@ -2953,7 +2953,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2953
2953
|
},
|
|
2954
2954
|
setup(e) {
|
|
2955
2955
|
const v = e, t = m(() => v.labelFor || G("form-group")), a = E(!1);
|
|
2956
|
-
|
|
2956
|
+
ve("vibeFormGroup", {
|
|
2957
2957
|
id: t,
|
|
2958
2958
|
consumeId: () => a.value ? null : (a.value = !0, t.value),
|
|
2959
2959
|
hasLabel: m(() => !!v.label),
|
|
@@ -2967,71 +2967,71 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
2967
2967
|
const c = [];
|
|
2968
2968
|
return v.floating ? c.push("form-label") : v.row ? (c.push("col-form-label"), v.labelCols && c.push(`col-sm-${v.labelCols}`), v.labelAlign && c.push(`text-${v.labelAlign}`)) : c.push("form-label"), c.join(" ");
|
|
2969
2969
|
}), r = m(() => v.row && v.labelCols ? `col-sm-${12 - Number(v.labelCols)}` : ""), u = m(() => `${t.value}-feedback`);
|
|
2970
|
-
return (c, b) => (
|
|
2970
|
+
return (c, b) => (n(), i("div", {
|
|
2971
2971
|
class: $(s.value)
|
|
2972
2972
|
}, [
|
|
2973
|
-
e.label && !e.floating ? (
|
|
2973
|
+
e.label && !e.floating ? (n(), i("label", {
|
|
2974
2974
|
key: 0,
|
|
2975
2975
|
for: t.value,
|
|
2976
2976
|
class: $(o.value)
|
|
2977
2977
|
}, [
|
|
2978
|
-
|
|
2979
|
-
e.required ? (
|
|
2980
|
-
], 10,
|
|
2981
|
-
e.row && e.labelCols ? (
|
|
2978
|
+
I(k(e.label) + " ", 1),
|
|
2979
|
+
e.required ? (n(), i("span", Yl, "*")) : y("", !0)
|
|
2980
|
+
], 10, Xl)) : y("", !0),
|
|
2981
|
+
e.row && e.labelCols ? (n(), i("div", {
|
|
2982
2982
|
key: 1,
|
|
2983
2983
|
class: $(r.value)
|
|
2984
2984
|
}, [
|
|
2985
2985
|
N(c.$slots, "default"),
|
|
2986
|
-
e.helpText && !e.validationMessage ? (
|
|
2986
|
+
e.helpText && !e.validationMessage ? (n(), i("div", {
|
|
2987
2987
|
key: 0,
|
|
2988
2988
|
id: u.value,
|
|
2989
2989
|
class: "form-text"
|
|
2990
|
-
}, k(e.helpText), 9,
|
|
2991
|
-
e.validationState === "valid" ? (
|
|
2992
|
-
e.validationState === "invalid" ? (
|
|
2990
|
+
}, k(e.helpText), 9, Ul)) : y("", !0),
|
|
2991
|
+
e.validationState === "valid" ? (n(), i("div", Jl, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
2992
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
2993
2993
|
key: 2,
|
|
2994
2994
|
id: u.value,
|
|
2995
2995
|
class: "invalid-feedback",
|
|
2996
2996
|
style: { display: "block" }
|
|
2997
|
-
}, k(e.validationMessage || "Please provide a valid value."), 9,
|
|
2998
|
-
], 2)) : (
|
|
2997
|
+
}, k(e.validationMessage || "Please provide a valid value."), 9, Kl)) : y("", !0)
|
|
2998
|
+
], 2)) : (n(), i(F, { key: 2 }, [
|
|
2999
2999
|
N(c.$slots, "default"),
|
|
3000
|
-
e.label && e.floating ? (
|
|
3000
|
+
e.label && e.floating ? (n(), i("label", {
|
|
3001
3001
|
key: 0,
|
|
3002
3002
|
for: t.value,
|
|
3003
3003
|
class: $(o.value)
|
|
3004
3004
|
}, [
|
|
3005
|
-
|
|
3006
|
-
e.required ? (
|
|
3007
|
-
], 10,
|
|
3008
|
-
e.helpText && !e.validationMessage ? (
|
|
3005
|
+
I(k(e.label) + " ", 1),
|
|
3006
|
+
e.required ? (n(), i("span", Wl, "*")) : y("", !0)
|
|
3007
|
+
], 10, Ql)) : y("", !0),
|
|
3008
|
+
e.helpText && !e.validationMessage ? (n(), i("div", {
|
|
3009
3009
|
key: 1,
|
|
3010
3010
|
id: u.value,
|
|
3011
3011
|
class: "form-text"
|
|
3012
|
-
}, k(e.helpText), 9,
|
|
3013
|
-
e.validationState === "valid" ? (
|
|
3014
|
-
e.validationState === "invalid" ? (
|
|
3012
|
+
}, k(e.helpText), 9, Zl)) : y("", !0),
|
|
3013
|
+
e.validationState === "valid" ? (n(), i("div", _l, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
3014
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
3015
3015
|
key: 3,
|
|
3016
3016
|
id: u.value,
|
|
3017
3017
|
class: "invalid-feedback",
|
|
3018
3018
|
style: { display: "block" }
|
|
3019
|
-
}, k(e.validationMessage || "Please provide a valid value."), 9,
|
|
3019
|
+
}, k(e.validationMessage || "Please provide a valid value."), 9, eo)) : y("", !0)
|
|
3020
3020
|
], 64))
|
|
3021
3021
|
], 2));
|
|
3022
3022
|
}
|
|
3023
|
-
}),
|
|
3023
|
+
}), ao = ["for"], lo = {
|
|
3024
3024
|
key: 0,
|
|
3025
3025
|
class: "text-danger"
|
|
3026
|
-
},
|
|
3026
|
+
}, oo = {
|
|
3027
3027
|
key: 1,
|
|
3028
3028
|
class: "alert alert-warning",
|
|
3029
3029
|
role: "alert"
|
|
3030
|
-
},
|
|
3030
|
+
}, so = ["id"], no = ["id"], io = {
|
|
3031
3031
|
key: 0,
|
|
3032
3032
|
class: "valid-feedback",
|
|
3033
3033
|
style: { display: "block" }
|
|
3034
|
-
},
|
|
3034
|
+
}, ro = ["id"], uo = /* @__PURE__ */ M({
|
|
3035
3035
|
__name: "VibeFormWysiwyg",
|
|
3036
3036
|
props: {
|
|
3037
3037
|
modelValue: {
|
|
@@ -3055,7 +3055,7 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
3055
3055
|
},
|
|
3056
3056
|
emits: ["update:modelValue", "validate", "blur", "focus", "change", "ready"],
|
|
3057
3057
|
setup(e, { emit: v }) {
|
|
3058
|
-
const t = e, a = v, l =
|
|
3058
|
+
const t = e, a = v, l = J("vibeFormGroup", null), s = m(() => t.id || l?.id.value || G("wysiwyg")), o = m(() => !!t.label && !l?.hasLabel.value), r = m(() => !!t.validationState && !l?.hasValidation.value), u = m(() => !!t.helpText && !l?.hasHelp.value), c = E(null), b = E(null), g = E(!1), C = E(null), p = E(!1), d = E(null), f = E(null), h = E(null), w = m(() => {
|
|
3059
3059
|
const R = ["vibe-wysiwyg-container"];
|
|
3060
3060
|
return t.validationState === "valid" && R.push("is-valid"), t.validationState === "invalid" && R.push("is-invalid"), t.disabled && R.push("disabled"), R.join(" ");
|
|
3061
3061
|
}), x = [
|
|
@@ -3082,8 +3082,8 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
3082
3082
|
};
|
|
3083
3083
|
b.value = new Q(c.value, W), t.modelValue && q(t.modelValue), h.value = () => {
|
|
3084
3084
|
if (p.value) return;
|
|
3085
|
-
const
|
|
3086
|
-
a("update:modelValue",
|
|
3085
|
+
const te = P();
|
|
3086
|
+
a("update:modelValue", te), a("change"), t.validateOn === "change" && a("validate");
|
|
3087
3087
|
}, b.value.on("text-change", h.value), d.value = () => {
|
|
3088
3088
|
a("blur"), t.validateOn === "blur" && a("validate");
|
|
3089
3089
|
}, b.value.root.addEventListener("blur", d.value), f.value = () => {
|
|
@@ -3108,18 +3108,18 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
3108
3108
|
b.value && b.value.enable(!R);
|
|
3109
3109
|
}), O(() => t.readonly, (R) => {
|
|
3110
3110
|
b.value && b.value.enable(!R);
|
|
3111
|
-
}), (R, Q) => (
|
|
3111
|
+
}), (R, Q) => (n(), i("div", {
|
|
3112
3112
|
class: $({ "mb-3": o.value || u.value || r.value })
|
|
3113
3113
|
}, [
|
|
3114
|
-
o.value ? (
|
|
3114
|
+
o.value ? (n(), i("label", {
|
|
3115
3115
|
key: 0,
|
|
3116
3116
|
for: s.value,
|
|
3117
3117
|
class: "form-label"
|
|
3118
3118
|
}, [
|
|
3119
|
-
|
|
3120
|
-
e.required ? (
|
|
3121
|
-
], 8,
|
|
3122
|
-
C.value ? (
|
|
3119
|
+
I(k(e.label) + " ", 1),
|
|
3120
|
+
e.required ? (n(), i("span", lo, "*")) : y("", !0)
|
|
3121
|
+
], 8, ao)) : y("", !0),
|
|
3122
|
+
C.value ? (n(), i("div", oo, k(C.value), 1)) : (n(), i("div", {
|
|
3123
3123
|
key: 2,
|
|
3124
3124
|
class: $(w.value),
|
|
3125
3125
|
style: K({ minHeight: e.height })
|
|
@@ -3128,30 +3128,30 @@ const vt = ["id"], ft = { class: "accordion-header" }, bt = ["data-bs-target", "
|
|
|
3128
3128
|
ref_key: "editorContainer",
|
|
3129
3129
|
ref: c,
|
|
3130
3130
|
id: s.value
|
|
3131
|
-
}, null, 8,
|
|
3131
|
+
}, null, 8, so)
|
|
3132
3132
|
], 6)),
|
|
3133
|
-
u.value ? (
|
|
3133
|
+
u.value ? (n(), i("div", {
|
|
3134
3134
|
key: 3,
|
|
3135
3135
|
id: `${s.value}-feedback`,
|
|
3136
3136
|
class: "form-text"
|
|
3137
|
-
}, k(e.helpText), 9,
|
|
3138
|
-
r.value ? (
|
|
3139
|
-
e.validationState === "valid" ? (
|
|
3140
|
-
e.validationState === "invalid" ? (
|
|
3137
|
+
}, k(e.helpText), 9, no)) : y("", !0),
|
|
3138
|
+
r.value ? (n(), i(F, { key: 4 }, [
|
|
3139
|
+
e.validationState === "valid" ? (n(), i("div", io, k(e.validationMessage || "Looks good!"), 1)) : y("", !0),
|
|
3140
|
+
e.validationState === "invalid" ? (n(), i("div", {
|
|
3141
3141
|
key: 1,
|
|
3142
3142
|
id: `${s.value}-feedback`,
|
|
3143
3143
|
class: "invalid-feedback",
|
|
3144
3144
|
style: { display: "block" }
|
|
3145
|
-
}, k(e.validationMessage || "Please provide valid content."), 9,
|
|
3145
|
+
}, k(e.validationMessage || "Please provide valid content."), 9, ro)) : y("", !0)
|
|
3146
3146
|
], 64)) : y("", !0)
|
|
3147
3147
|
], 2));
|
|
3148
3148
|
}
|
|
3149
|
-
}),
|
|
3149
|
+
}), co = /* @__PURE__ */ re(uo, [["__scopeId", "data-v-1ed73fd7"]]), bo = {
|
|
3150
3150
|
install(e) {
|
|
3151
|
-
e.component("VibeAlert",
|
|
3151
|
+
e.component("VibeAlert", $e), e.component("VibeBadge", we), e.component("VibeButton", Ve), e.component("VibeButtonGroup", xe), e.component("VibeCloseButton", Le), e.component("VibeSpinner", Ne), e.component("VibePlaceholder", Ee), e.component("VibeContainer", Me), e.component("VibeRow", Ie), e.component("VibeCol", Fe), e.component("VibeCard", He), e.component("VibeBreadcrumb", Ye), e.component("VibeNav", Qe), e.component("VibeNavbar", We), e.component("VibeNavbarBrand", Ze), e.component("VibeNavbarToggle", et), e.component("VibeNavbarNav", nt), e.component("VibePagination", ct), e.component("VibeTabContent", ft), e.component("VibeListGroup", bt), e.component("VibeProgress", mt), e.component("VibeAccordion", $t), e.component("VibeCollapse", wt), e.component("VibeDropdown", Et), e.component("VibeModal", zt), e.component("VibeOffcanvas", Dt), e.component("VibeToast", Jt), e.component("VibeCarousel", na), e.component("VibeTooltip", ra), e.component("VibePopover", ua), e.component("VibeScrollspy", ca), e.component("VibeIcon", va), e.component("VibeDataTable", Ra), e.component("VibeFormInput", Da), e.component("VibeFormSelect", Za), e.component("VibeFormTextarea", nl), e.component("VibeFormSpinbutton", ml), e.component("VibeFormDatepicker", wl), e.component("VibeFormCheckbox", Nl), e.component("VibeFormRadio", ql), e.component("VibeFormSwitch", Gl), e.component("VibeFormGroup", to), e.component("VibeFormWysiwyg", co);
|
|
3152
3152
|
}
|
|
3153
3153
|
};
|
|
3154
|
-
function
|
|
3154
|
+
function ho(e = "") {
|
|
3155
3155
|
const v = E(e), t = E(null), a = E(""), l = E(!1), s = E(!1), o = E(!1), r = async (p) => {
|
|
3156
3156
|
if (!p)
|
|
3157
3157
|
return t.value = null, a.value = "", { valid: !0 };
|
|
@@ -3189,7 +3189,7 @@ function ro(e = "") {
|
|
|
3189
3189
|
markAsDirty: b
|
|
3190
3190
|
};
|
|
3191
3191
|
}
|
|
3192
|
-
const
|
|
3192
|
+
const mo = {
|
|
3193
3193
|
required: (e = "This field is required") => ({
|
|
3194
3194
|
validator: (v) => Array.isArray(v) ? v.length > 0 || e : typeof v == "string" ? v.trim().length > 0 || e : v != null && v !== "" || e,
|
|
3195
3195
|
message: e
|
|
@@ -3241,53 +3241,104 @@ const uo = {
|
|
|
3241
3241
|
async: (e) => ({
|
|
3242
3242
|
validator: e
|
|
3243
3243
|
})
|
|
3244
|
-
}
|
|
3244
|
+
}, ae = "vibe-color-mode", le = {
|
|
3245
|
+
light: "dark",
|
|
3246
|
+
dark: "auto",
|
|
3247
|
+
auto: "light"
|
|
3248
|
+
}, se = E("auto");
|
|
3249
|
+
let oe = !1;
|
|
3250
|
+
function vo(e) {
|
|
3251
|
+
typeof document > "u" || document.documentElement.setAttribute("data-bs-theme", e);
|
|
3252
|
+
}
|
|
3253
|
+
function ee(e) {
|
|
3254
|
+
se.value = e, vo(e);
|
|
3255
|
+
}
|
|
3256
|
+
ee("auto");
|
|
3257
|
+
function po() {
|
|
3258
|
+
function e(l) {
|
|
3259
|
+
if (l in le) {
|
|
3260
|
+
try {
|
|
3261
|
+
localStorage.setItem(ae, l);
|
|
3262
|
+
} catch {
|
|
3263
|
+
}
|
|
3264
|
+
ee(l);
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
function v() {
|
|
3268
|
+
if (oe) return;
|
|
3269
|
+
let l = "auto";
|
|
3270
|
+
try {
|
|
3271
|
+
const s = localStorage.getItem(ae);
|
|
3272
|
+
s !== null && s in le && (l = s);
|
|
3273
|
+
} catch {
|
|
3274
|
+
}
|
|
3275
|
+
ee(l), oe = !0;
|
|
3276
|
+
}
|
|
3277
|
+
function t() {
|
|
3278
|
+
try {
|
|
3279
|
+
localStorage.removeItem(ae);
|
|
3280
|
+
} catch {
|
|
3281
|
+
}
|
|
3282
|
+
oe = !1, ee("auto");
|
|
3283
|
+
}
|
|
3284
|
+
function a() {
|
|
3285
|
+
e(le[se.value] ?? "auto");
|
|
3286
|
+
}
|
|
3287
|
+
return {
|
|
3288
|
+
colorMode: se,
|
|
3289
|
+
setColorMode: e,
|
|
3290
|
+
toggleColorMode: a,
|
|
3291
|
+
initColorMode: v,
|
|
3292
|
+
clearColorMode: t
|
|
3293
|
+
};
|
|
3294
|
+
}
|
|
3245
3295
|
export {
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3296
|
+
$t as VibeAccordion,
|
|
3297
|
+
$e as VibeAlert,
|
|
3298
|
+
we as VibeBadge,
|
|
3299
|
+
Ye as VibeBreadcrumb,
|
|
3300
|
+
Ve as VibeButton,
|
|
3301
|
+
xe as VibeButtonGroup,
|
|
3302
|
+
He as VibeCard,
|
|
3303
|
+
na as VibeCarousel,
|
|
3304
|
+
Le as VibeCloseButton,
|
|
3305
|
+
Fe as VibeCol,
|
|
3306
|
+
wt as VibeCollapse,
|
|
3307
|
+
Me as VibeContainer,
|
|
3308
|
+
Ra as VibeDataTable,
|
|
3309
|
+
Et as VibeDropdown,
|
|
3310
|
+
Nl as VibeFormCheckbox,
|
|
3311
|
+
wl as VibeFormDatepicker,
|
|
3312
|
+
to as VibeFormGroup,
|
|
3313
|
+
Da as VibeFormInput,
|
|
3314
|
+
ql as VibeFormRadio,
|
|
3315
|
+
Za as VibeFormSelect,
|
|
3316
|
+
ml as VibeFormSpinbutton,
|
|
3317
|
+
Gl as VibeFormSwitch,
|
|
3318
|
+
nl as VibeFormTextarea,
|
|
3319
|
+
co as VibeFormWysiwyg,
|
|
3320
|
+
va as VibeIcon,
|
|
3321
|
+
bt as VibeListGroup,
|
|
3322
|
+
zt as VibeModal,
|
|
3323
|
+
Qe as VibeNav,
|
|
3324
|
+
We as VibeNavbar,
|
|
3325
|
+
Ze as VibeNavbarBrand,
|
|
3326
|
+
nt as VibeNavbarNav,
|
|
3327
|
+
et as VibeNavbarToggle,
|
|
3328
|
+
Dt as VibeOffcanvas,
|
|
3329
|
+
ct as VibePagination,
|
|
3330
|
+
Ee as VibePlaceholder,
|
|
3331
|
+
ua as VibePopover,
|
|
3332
|
+
mt as VibeProgress,
|
|
3333
|
+
Ie as VibeRow,
|
|
3334
|
+
ca as VibeScrollspy,
|
|
3335
|
+
Ne as VibeSpinner,
|
|
3336
|
+
ft as VibeTabContent,
|
|
3337
|
+
Jt as VibeToast,
|
|
3338
|
+
ra as VibeTooltip,
|
|
3339
|
+
bo as default,
|
|
3340
|
+
po as useColorMode,
|
|
3341
|
+
ho as useFormValidation,
|
|
3291
3342
|
G as useId,
|
|
3292
|
-
|
|
3343
|
+
mo as validators
|
|
3293
3344
|
};
|