@velkymx/vibeui 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/vibeui.es.js +818 -813
- package/dist/vibeui.umd.js +1 -1
- package/package.json +2 -1
package/dist/vibeui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, computed as c, createElementBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as p, computed as c, createElementBlock as o, createCommentVNode as u, openBlock as l, normalizeClass as h, renderSlot as $, createTextVNode as N, toDisplayString as f, createBlock as V, resolveDynamicComponent as T, withCtx as x, createElementVNode as m, normalizeStyle as R, unref as L, useSlots as D, Fragment as q, renderList as I, ref as F, watch as O, withDirectives as W, vModelText as ye, vModelSelect as he, withModifiers as Y, onMounted as ge, onBeforeUnmount as pe } from "vue";
|
|
2
|
+
const $e = /* @__PURE__ */ p({
|
|
3
3
|
__name: "VibeAlert",
|
|
4
4
|
props: {
|
|
5
5
|
variant: { type: String, default: "primary" },
|
|
@@ -8,11 +8,11 @@ const ul = /* @__PURE__ */ p({
|
|
|
8
8
|
message: { type: String, required: !0 }
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue", "component-error"],
|
|
11
|
-
setup(e, { emit:
|
|
12
|
-
const t = e, i =
|
|
11
|
+
setup(e, { emit: d }) {
|
|
12
|
+
const t = e, i = d, a = c({
|
|
13
13
|
get: () => t.modelValue,
|
|
14
14
|
set: (r) => i("update:modelValue", r)
|
|
15
|
-
}),
|
|
15
|
+
}), n = () => {
|
|
16
16
|
try {
|
|
17
17
|
a.value = !1;
|
|
18
18
|
} catch (r) {
|
|
@@ -23,7 +23,7 @@ const ul = /* @__PURE__ */ p({
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
return (r,
|
|
26
|
+
return (r, s) => a.value ? (l(), o("div", {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: h(`alert alert-${e.variant}`),
|
|
29
29
|
role: "alert"
|
|
@@ -31,15 +31,15 @@ const ul = /* @__PURE__ */ p({
|
|
|
31
31
|
$(r.$slots, "default", {}, () => [
|
|
32
32
|
N(f(e.message), 1)
|
|
33
33
|
]),
|
|
34
|
-
e.dismissable ? (l(),
|
|
34
|
+
e.dismissable ? (l(), o("button", {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "btn-close",
|
|
37
|
-
onClick:
|
|
37
|
+
onClick: n,
|
|
38
38
|
"aria-label": "Close"
|
|
39
39
|
})) : u("", !0)
|
|
40
40
|
], 2)) : u("", !0);
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), ke = /* @__PURE__ */ p({
|
|
43
43
|
__name: "VibeBadge",
|
|
44
44
|
props: {
|
|
45
45
|
variant: { type: String, default: "primary" },
|
|
@@ -47,21 +47,21 @@ const ul = /* @__PURE__ */ p({
|
|
|
47
47
|
tag: { type: String, default: "span" }
|
|
48
48
|
},
|
|
49
49
|
emits: ["component-error"],
|
|
50
|
-
setup(e, { emit:
|
|
50
|
+
setup(e, { emit: d }) {
|
|
51
51
|
const t = e, i = c(() => {
|
|
52
52
|
const a = ["badge", `bg-${t.variant}`];
|
|
53
53
|
return t.pill && a.push("rounded-pill"), a.join(" ");
|
|
54
54
|
});
|
|
55
|
-
return (a,
|
|
55
|
+
return (a, n) => (l(), V(T(e.tag), {
|
|
56
56
|
class: h(i.value)
|
|
57
57
|
}, {
|
|
58
|
-
default:
|
|
58
|
+
default: x(() => [
|
|
59
59
|
$(a.$slots, "default")
|
|
60
60
|
]),
|
|
61
61
|
_: 3
|
|
62
62
|
}, 8, ["class"]));
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), Se = /* @__PURE__ */ p({
|
|
65
65
|
__name: "VibeButton",
|
|
66
66
|
props: {
|
|
67
67
|
variant: { type: String, default: "primary" },
|
|
@@ -74,15 +74,15 @@ const ul = /* @__PURE__ */ p({
|
|
|
74
74
|
active: { type: Boolean, default: !1 }
|
|
75
75
|
},
|
|
76
76
|
emits: ["click", "component-error"],
|
|
77
|
-
setup(e, { emit:
|
|
78
|
-
const t = e, i =
|
|
79
|
-
const
|
|
80
|
-
return t.outline ?
|
|
81
|
-
}), r = (
|
|
82
|
-
t.disabled || i("click",
|
|
77
|
+
setup(e, { emit: d }) {
|
|
78
|
+
const t = e, i = d, a = c(() => t.href ? "a" : t.to ? "router-link" : "button"), n = c(() => {
|
|
79
|
+
const s = ["btn"];
|
|
80
|
+
return t.outline ? s.push(`btn-outline-${t.variant}`) : s.push(`btn-${t.variant}`), t.size && s.push(`btn-${t.size}`), t.active && s.push("active"), s.join(" ");
|
|
81
|
+
}), r = (s) => {
|
|
82
|
+
t.disabled || i("click", s);
|
|
83
83
|
};
|
|
84
|
-
return (
|
|
85
|
-
class: h(
|
|
84
|
+
return (s, y) => (l(), V(T(a.value), {
|
|
85
|
+
class: h(n.value),
|
|
86
86
|
type: e.href || e.to ? void 0 : e.type,
|
|
87
87
|
href: e.href,
|
|
88
88
|
to: e.to,
|
|
@@ -90,13 +90,13 @@ const ul = /* @__PURE__ */ p({
|
|
|
90
90
|
"aria-disabled": e.disabled,
|
|
91
91
|
onClick: r
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
$(
|
|
93
|
+
default: x(() => [
|
|
94
|
+
$(s.$slots, "default")
|
|
95
95
|
]),
|
|
96
96
|
_: 3
|
|
97
97
|
}, 8, ["class", "type", "href", "to", "disabled", "aria-disabled"]));
|
|
98
98
|
}
|
|
99
|
-
}),
|
|
99
|
+
}), Ve = ["role", "aria-label"], xe = /* @__PURE__ */ p({
|
|
100
100
|
__name: "VibeButtonGroup",
|
|
101
101
|
props: {
|
|
102
102
|
size: { type: String, default: void 0 },
|
|
@@ -105,20 +105,20 @@ const ul = /* @__PURE__ */ p({
|
|
|
105
105
|
ariaLabel: { type: String, default: void 0 }
|
|
106
106
|
},
|
|
107
107
|
emits: ["component-error"],
|
|
108
|
-
setup(e, { emit:
|
|
108
|
+
setup(e, { emit: d }) {
|
|
109
109
|
const t = e, i = c(() => {
|
|
110
110
|
const a = [t.vertical ? "btn-group-vertical" : "btn-group"];
|
|
111
111
|
return t.size && a.push(`btn-group-${t.size}`), a.join(" ");
|
|
112
112
|
});
|
|
113
|
-
return (a,
|
|
113
|
+
return (a, n) => (l(), o("div", {
|
|
114
114
|
class: h(i.value),
|
|
115
115
|
role: e.role,
|
|
116
116
|
"aria-label": e.ariaLabel
|
|
117
117
|
}, [
|
|
118
118
|
$(a.$slots, "default")
|
|
119
|
-
], 10,
|
|
119
|
+
], 10, Ve));
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
121
|
+
}), Ce = ["disabled", "aria-label"], Be = /* @__PURE__ */ p({
|
|
122
122
|
__name: "VibeCloseButton",
|
|
123
123
|
props: {
|
|
124
124
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -126,19 +126,19 @@ const ul = /* @__PURE__ */ p({
|
|
|
126
126
|
ariaLabel: { type: String, default: "Close" }
|
|
127
127
|
},
|
|
128
128
|
emits: ["click", "component-error"],
|
|
129
|
-
setup(e, { emit:
|
|
130
|
-
const t = e, i =
|
|
131
|
-
t.disabled || i("click",
|
|
129
|
+
setup(e, { emit: d }) {
|
|
130
|
+
const t = e, i = d, a = (n) => {
|
|
131
|
+
t.disabled || i("click", n);
|
|
132
132
|
};
|
|
133
|
-
return (
|
|
133
|
+
return (n, r) => (l(), o("button", {
|
|
134
134
|
type: "button",
|
|
135
135
|
class: h(["btn-close", { "btn-close-white": e.white }]),
|
|
136
136
|
disabled: e.disabled,
|
|
137
137
|
"aria-label": e.ariaLabel,
|
|
138
138
|
onClick: a
|
|
139
|
-
}, null, 10,
|
|
139
|
+
}, null, 10, Ce));
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), we = { class: "visually-hidden" }, Ne = /* @__PURE__ */ p({
|
|
142
142
|
__name: "VibeSpinner",
|
|
143
143
|
props: {
|
|
144
144
|
variant: { type: String, default: void 0 },
|
|
@@ -148,22 +148,22 @@ const ul = /* @__PURE__ */ p({
|
|
|
148
148
|
tag: { type: String, default: "div" }
|
|
149
149
|
},
|
|
150
150
|
emits: ["component-error"],
|
|
151
|
-
setup(e, { emit:
|
|
151
|
+
setup(e, { emit: d }) {
|
|
152
152
|
const t = e, i = c(() => {
|
|
153
153
|
const a = [`spinner-${t.type}`];
|
|
154
154
|
return t.variant && a.push(`text-${t.variant}`), t.size && a.push(`spinner-${t.type}-${t.size}`), a.join(" ");
|
|
155
155
|
});
|
|
156
|
-
return (a,
|
|
156
|
+
return (a, n) => (l(), V(T(e.tag), {
|
|
157
157
|
class: h(i.value),
|
|
158
158
|
role: "status"
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
m("span",
|
|
160
|
+
default: x(() => [
|
|
161
|
+
m("span", we, f(e.label), 1)
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
164
|
}, 8, ["class"]));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), Te = /* @__PURE__ */ p({
|
|
167
167
|
__name: "VibePlaceholder",
|
|
168
168
|
props: {
|
|
169
169
|
variant: { type: String, default: void 0 },
|
|
@@ -173,23 +173,23 @@ const ul = /* @__PURE__ */ p({
|
|
|
173
173
|
tag: { type: String, default: "span" }
|
|
174
174
|
},
|
|
175
175
|
emits: ["component-error"],
|
|
176
|
-
setup(e, { emit:
|
|
176
|
+
setup(e, { emit: d }) {
|
|
177
177
|
const t = e, i = c(() => {
|
|
178
178
|
const r = ["placeholder"];
|
|
179
179
|
return t.variant && r.push(`bg-${t.variant}`), t.size && r.push(`placeholder-${t.size}`), r.join(" ");
|
|
180
180
|
}), a = c(() => {
|
|
181
181
|
if (t.animation) return `placeholder-${t.animation}`;
|
|
182
|
-
}),
|
|
182
|
+
}), n = c(() => {
|
|
183
183
|
if (t.width)
|
|
184
184
|
return { width: typeof t.width == "number" ? `${t.width}%` : t.width };
|
|
185
185
|
});
|
|
186
|
-
return (r,
|
|
186
|
+
return (r, s) => (l(), V(T(e.tag), {
|
|
187
187
|
class: h(a.value)
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
189
|
+
default: x(() => [
|
|
190
190
|
m("span", {
|
|
191
191
|
class: h(i.value),
|
|
192
|
-
style: R(
|
|
192
|
+
style: R(n.value)
|
|
193
193
|
}, [
|
|
194
194
|
$(r.$slots, "default")
|
|
195
195
|
], 6)
|
|
@@ -197,25 +197,25 @@ const ul = /* @__PURE__ */ p({
|
|
|
197
197
|
_: 3
|
|
198
198
|
}, 8, ["class"]));
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), Me = /* @__PURE__ */ p({
|
|
201
201
|
__name: "VibeContainer",
|
|
202
202
|
props: {
|
|
203
203
|
fluid: { type: [Boolean, String], default: !1 },
|
|
204
204
|
tag: { type: String, default: "div" }
|
|
205
205
|
},
|
|
206
206
|
emits: ["component-error"],
|
|
207
|
-
setup(e, { emit:
|
|
207
|
+
setup(e, { emit: d }) {
|
|
208
208
|
const t = e, i = c(() => t.fluid === !1 ? "container" : t.fluid === !0 ? "container-fluid" : `container-${t.fluid}`);
|
|
209
|
-
return (a,
|
|
209
|
+
return (a, n) => (l(), V(T(e.tag), {
|
|
210
210
|
class: h(i.value)
|
|
211
211
|
}, {
|
|
212
|
-
default:
|
|
212
|
+
default: x(() => [
|
|
213
213
|
$(a.$slots, "default")
|
|
214
214
|
]),
|
|
215
215
|
_: 3
|
|
216
216
|
}, 8, ["class"]));
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), Pe = /* @__PURE__ */ p({
|
|
219
219
|
__name: "VibeRow",
|
|
220
220
|
props: {
|
|
221
221
|
tag: { type: String, default: "div" },
|
|
@@ -251,33 +251,33 @@ const ul = /* @__PURE__ */ p({
|
|
|
251
251
|
justifyContent: { type: String, default: void 0 }
|
|
252
252
|
},
|
|
253
253
|
emits: ["component-error"],
|
|
254
|
-
setup(e, { emit:
|
|
254
|
+
setup(e, { emit: d }) {
|
|
255
255
|
const t = e, i = c(() => {
|
|
256
256
|
const a = ["row"];
|
|
257
257
|
t.gutters !== void 0 && a.push(`g-${t.gutters}`), t.guttersX !== void 0 && a.push(`gx-${t.guttersX}`), t.guttersY !== void 0 && a.push(`gy-${t.guttersY}`);
|
|
258
|
-
const
|
|
259
|
-
return
|
|
260
|
-
const
|
|
258
|
+
const n = ["sm", "md", "lg", "xl", "xxl"];
|
|
259
|
+
return n.forEach((r) => {
|
|
260
|
+
const s = r.charAt(0).toUpperCase() + r.slice(1), y = `gutters${s}`;
|
|
261
261
|
t[y] !== void 0 && a.push(`g-${r}-${t[y]}`);
|
|
262
|
-
const v = `guttersX${
|
|
262
|
+
const v = `guttersX${s}`;
|
|
263
263
|
t[v] !== void 0 && a.push(`gx-${r}-${t[v]}`);
|
|
264
|
-
const b = `guttersY${
|
|
264
|
+
const b = `guttersY${s}`;
|
|
265
265
|
t[b] !== void 0 && a.push(`gy-${r}-${t[b]}`);
|
|
266
|
-
}), t.rowCols !== void 0 && a.push(`row-cols-${t.rowCols}`),
|
|
267
|
-
const
|
|
268
|
-
t[
|
|
266
|
+
}), t.rowCols !== void 0 && a.push(`row-cols-${t.rowCols}`), n.forEach((r) => {
|
|
267
|
+
const s = `rowCols${r.charAt(0).toUpperCase() + r.slice(1)}`;
|
|
268
|
+
t[s] !== void 0 && a.push(`row-cols-${r}-${t[s]}`);
|
|
269
269
|
}), t.alignItems && a.push(`align-items-${t.alignItems}`), t.justifyContent && a.push(`justify-content-${t.justifyContent}`), a.join(" ");
|
|
270
270
|
});
|
|
271
|
-
return (a,
|
|
271
|
+
return (a, n) => (l(), V(T(e.tag), {
|
|
272
272
|
class: h(i.value)
|
|
273
273
|
}, {
|
|
274
|
-
default:
|
|
274
|
+
default: x(() => [
|
|
275
275
|
$(a.$slots, "default")
|
|
276
276
|
]),
|
|
277
277
|
_: 3
|
|
278
278
|
}, 8, ["class"]));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), qe = /* @__PURE__ */ p({
|
|
281
281
|
__name: "VibeCol",
|
|
282
282
|
props: {
|
|
283
283
|
tag: { type: String, default: "div" },
|
|
@@ -306,7 +306,7 @@ const ul = /* @__PURE__ */ p({
|
|
|
306
306
|
alignSelf: { type: String, default: void 0 }
|
|
307
307
|
},
|
|
308
308
|
emits: ["component-error"],
|
|
309
|
-
setup(e, { emit:
|
|
309
|
+
setup(e, { emit: d }) {
|
|
310
310
|
const t = e, i = c(() => {
|
|
311
311
|
const a = [];
|
|
312
312
|
return t.cols !== void 0 || t.sm !== void 0 || t.md !== void 0 || t.lg !== void 0 || t.xl !== void 0 || t.xxl !== void 0 ? (t.cols === !0 ? a.push("col") : t.cols === "auto" ? a.push("col-auto") : t.cols && a.push(`col-${t.cols}`), [
|
|
@@ -315,62 +315,62 @@ const ul = /* @__PURE__ */ p({
|
|
|
315
315
|
{ name: "lg", value: t.lg },
|
|
316
316
|
{ name: "xl", value: t.xl },
|
|
317
317
|
{ name: "xxl", value: t.xxl }
|
|
318
|
-
].forEach(({ name:
|
|
319
|
-
y === !0 ? a.push(`col-${
|
|
318
|
+
].forEach(({ name: s, value: y }) => {
|
|
319
|
+
y === !0 ? a.push(`col-${s}`) : y === "auto" ? a.push(`col-${s}-auto`) : y !== void 0 && a.push(`col-${s}-${y}`);
|
|
320
320
|
})) : a.push("col"), t.offset !== void 0 && a.push(`offset-${t.offset}`), t.offsetSm !== void 0 && a.push(`offset-sm-${t.offsetSm}`), t.offsetMd !== void 0 && a.push(`offset-md-${t.offsetMd}`), t.offsetLg !== void 0 && a.push(`offset-lg-${t.offsetLg}`), t.offsetXl !== void 0 && a.push(`offset-xl-${t.offsetXl}`), t.offsetXxl !== void 0 && a.push(`offset-xxl-${t.offsetXxl}`), t.order !== void 0 && a.push(`order-${t.order}`), t.orderSm !== void 0 && a.push(`order-sm-${t.orderSm}`), t.orderMd !== void 0 && a.push(`order-md-${t.orderMd}`), t.orderLg !== void 0 && a.push(`order-lg-${t.orderLg}`), t.orderXl !== void 0 && a.push(`order-xl-${t.orderXl}`), t.orderXxl !== void 0 && a.push(`order-xxl-${t.orderXxl}`), t.alignSelf && a.push(`align-self-${t.alignSelf}`), a.join(" ");
|
|
321
321
|
});
|
|
322
|
-
return (a,
|
|
322
|
+
return (a, n) => (l(), V(T(e.tag), {
|
|
323
323
|
class: h(i.value)
|
|
324
324
|
}, {
|
|
325
|
-
default:
|
|
325
|
+
default: x(() => [
|
|
326
326
|
$(a.$slots, "default")
|
|
327
327
|
]),
|
|
328
328
|
_: 3
|
|
329
329
|
}, 8, ["class"]));
|
|
330
330
|
}
|
|
331
|
-
}),
|
|
331
|
+
}), J = /* @__PURE__ */ p({
|
|
332
332
|
__name: "VibeCardHeader",
|
|
333
333
|
props: {
|
|
334
334
|
tag: { type: String, default: "div" }
|
|
335
335
|
},
|
|
336
336
|
emits: ["component-error"],
|
|
337
|
-
setup(e, { emit:
|
|
338
|
-
return (t, i) => (l(),
|
|
339
|
-
default:
|
|
337
|
+
setup(e, { emit: d }) {
|
|
338
|
+
return (t, i) => (l(), V(T(e.tag), { class: "card-header" }, {
|
|
339
|
+
default: x(() => [
|
|
340
340
|
$(t.$slots, "default")
|
|
341
341
|
]),
|
|
342
342
|
_: 3
|
|
343
343
|
}));
|
|
344
344
|
}
|
|
345
|
-
}),
|
|
345
|
+
}), Z = /* @__PURE__ */ p({
|
|
346
346
|
__name: "VibeCardBody",
|
|
347
347
|
props: {
|
|
348
348
|
tag: { type: String, default: "div" }
|
|
349
349
|
},
|
|
350
350
|
emits: ["component-error"],
|
|
351
|
-
setup(e, { emit:
|
|
352
|
-
return (t, i) => (l(),
|
|
353
|
-
default:
|
|
351
|
+
setup(e, { emit: d }) {
|
|
352
|
+
return (t, i) => (l(), V(T(e.tag), { class: "card-body" }, {
|
|
353
|
+
default: x(() => [
|
|
354
354
|
$(t.$slots, "default")
|
|
355
355
|
]),
|
|
356
356
|
_: 3
|
|
357
357
|
}));
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
359
|
+
}), _ = /* @__PURE__ */ p({
|
|
360
360
|
__name: "VibeCardFooter",
|
|
361
361
|
props: {
|
|
362
362
|
tag: { type: String, default: "div" }
|
|
363
363
|
},
|
|
364
364
|
emits: ["component-error"],
|
|
365
|
-
setup(e, { emit:
|
|
366
|
-
return (t, i) => (l(),
|
|
367
|
-
default:
|
|
365
|
+
setup(e, { emit: d }) {
|
|
366
|
+
return (t, i) => (l(), V(T(e.tag), { class: "card-footer" }, {
|
|
367
|
+
default: x(() => [
|
|
368
368
|
$(t.$slots, "default")
|
|
369
369
|
]),
|
|
370
370
|
_: 3
|
|
371
371
|
}));
|
|
372
372
|
}
|
|
373
|
-
}),
|
|
373
|
+
}), Fe = ["src", "alt"], U = /* @__PURE__ */ p({
|
|
374
374
|
__name: "VibeCardImg",
|
|
375
375
|
props: {
|
|
376
376
|
src: { type: String, required: !0 },
|
|
@@ -379,43 +379,43 @@ const ul = /* @__PURE__ */ p({
|
|
|
379
379
|
bottom: { type: Boolean, default: !1 }
|
|
380
380
|
},
|
|
381
381
|
emits: ["component-error"],
|
|
382
|
-
setup(e, { emit:
|
|
382
|
+
setup(e, { emit: d }) {
|
|
383
383
|
const t = e, i = t.top ? "card-img-top" : t.bottom ? "card-img-bottom" : "card-img";
|
|
384
|
-
return (a,
|
|
384
|
+
return (a, n) => (l(), o("img", {
|
|
385
385
|
src: e.src,
|
|
386
386
|
alt: e.alt,
|
|
387
387
|
class: h(L(i))
|
|
388
|
-
}, null, 10,
|
|
388
|
+
}, null, 10, Fe));
|
|
389
389
|
}
|
|
390
|
-
}),
|
|
390
|
+
}), ee = /* @__PURE__ */ p({
|
|
391
391
|
__name: "VibeCardTitle",
|
|
392
392
|
props: {
|
|
393
393
|
tag: { type: String, default: "h5" }
|
|
394
394
|
},
|
|
395
395
|
emits: ["component-error"],
|
|
396
|
-
setup(e, { emit:
|
|
397
|
-
return (t, i) => (l(),
|
|
398
|
-
default:
|
|
396
|
+
setup(e, { emit: d }) {
|
|
397
|
+
return (t, i) => (l(), V(T(e.tag), { class: "card-title" }, {
|
|
398
|
+
default: x(() => [
|
|
399
399
|
$(t.$slots, "default")
|
|
400
400
|
]),
|
|
401
401
|
_: 3
|
|
402
402
|
}));
|
|
403
403
|
}
|
|
404
|
-
}),
|
|
404
|
+
}), te = /* @__PURE__ */ p({
|
|
405
405
|
__name: "VibeCardText",
|
|
406
406
|
props: {
|
|
407
407
|
tag: { type: String, default: "p" }
|
|
408
408
|
},
|
|
409
409
|
emits: ["component-error"],
|
|
410
|
-
setup(e, { emit:
|
|
411
|
-
return (t, i) => (l(),
|
|
412
|
-
default:
|
|
410
|
+
setup(e, { emit: d }) {
|
|
411
|
+
return (t, i) => (l(), V(T(e.tag), { class: "card-text" }, {
|
|
412
|
+
default: x(() => [
|
|
413
413
|
$(t.$slots, "default")
|
|
414
414
|
]),
|
|
415
415
|
_: 3
|
|
416
416
|
}));
|
|
417
417
|
}
|
|
418
|
-
}),
|
|
418
|
+
}), Ie = /* @__PURE__ */ p({
|
|
419
419
|
__name: "VibeCard",
|
|
420
420
|
props: {
|
|
421
421
|
variant: { type: String, default: void 0 },
|
|
@@ -433,38 +433,38 @@ const ul = /* @__PURE__ */ p({
|
|
|
433
433
|
footerImageAlt: { type: String, default: "" }
|
|
434
434
|
},
|
|
435
435
|
emits: ["component-error"],
|
|
436
|
-
setup(e, { emit:
|
|
437
|
-
const t = e, i =
|
|
438
|
-
const
|
|
439
|
-
return t.variant &&
|
|
440
|
-
}),
|
|
441
|
-
return (
|
|
436
|
+
setup(e, { emit: d }) {
|
|
437
|
+
const t = e, i = D(), a = c(() => {
|
|
438
|
+
const s = ["card"];
|
|
439
|
+
return t.variant && s.push(`bg-${t.variant}`), t.border && s.push(`border-${t.border}`), t.textVariant && s.push(`text-${t.textVariant}`), s.join(" ");
|
|
440
|
+
}), n = c(() => !!(t.title || t.body || t.header || t.footer || t.headerImage || t.footerImage)), r = c(() => !!(i.default || i.header || i.footer || i.body));
|
|
441
|
+
return (s, y) => (l(), V(T(e.tag), {
|
|
442
442
|
class: h(a.value)
|
|
443
443
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
446
|
-
e.headerImage ? (l(),
|
|
444
|
+
default: x(() => [
|
|
445
|
+
n.value && !r.value ? (l(), o(q, { key: 0 }, [
|
|
446
|
+
e.headerImage ? (l(), V(U, {
|
|
447
447
|
key: 0,
|
|
448
448
|
top: "",
|
|
449
449
|
src: e.headerImage,
|
|
450
450
|
alt: e.headerImageAlt
|
|
451
451
|
}, null, 8, ["src", "alt"])) : u("", !0),
|
|
452
|
-
e.header ? (l(),
|
|
453
|
-
default:
|
|
452
|
+
e.header ? (l(), V(J, { key: 1 }, {
|
|
453
|
+
default: x(() => [
|
|
454
454
|
N(f(e.header), 1)
|
|
455
455
|
]),
|
|
456
456
|
_: 1
|
|
457
457
|
})) : u("", !0),
|
|
458
|
-
e.title || e.body ? (l(),
|
|
459
|
-
default:
|
|
460
|
-
e.title ? (l(),
|
|
461
|
-
default:
|
|
458
|
+
e.title || e.body ? (l(), V(Z, { key: 2 }, {
|
|
459
|
+
default: x(() => [
|
|
460
|
+
e.title ? (l(), V(ee, { key: 0 }, {
|
|
461
|
+
default: x(() => [
|
|
462
462
|
N(f(e.title), 1)
|
|
463
463
|
]),
|
|
464
464
|
_: 1
|
|
465
465
|
})) : u("", !0),
|
|
466
|
-
e.body ? (l(),
|
|
467
|
-
default:
|
|
466
|
+
e.body ? (l(), V(te, { key: 1 }, {
|
|
467
|
+
default: x(() => [
|
|
468
468
|
N(f(e.body), 1)
|
|
469
469
|
]),
|
|
470
470
|
_: 1
|
|
@@ -472,24 +472,24 @@ const ul = /* @__PURE__ */ p({
|
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
474
474
|
})) : u("", !0),
|
|
475
|
-
e.footer ? (l(),
|
|
476
|
-
default:
|
|
475
|
+
e.footer ? (l(), V(_, { key: 3 }, {
|
|
476
|
+
default: x(() => [
|
|
477
477
|
N(f(e.footer), 1)
|
|
478
478
|
]),
|
|
479
479
|
_: 1
|
|
480
480
|
})) : u("", !0),
|
|
481
|
-
e.footerImage ? (l(),
|
|
481
|
+
e.footerImage ? (l(), V(U, {
|
|
482
482
|
key: 4,
|
|
483
483
|
bottom: "",
|
|
484
484
|
src: e.footerImage,
|
|
485
485
|
alt: e.footerImageAlt
|
|
486
486
|
}, null, 8, ["src", "alt"])) : u("", !0)
|
|
487
|
-
], 64)) : $(
|
|
487
|
+
], 64)) : $(s.$slots, "default", { key: 1 })
|
|
488
488
|
]),
|
|
489
489
|
_: 3
|
|
490
490
|
}, 8, ["class"]));
|
|
491
491
|
}
|
|
492
|
-
}),
|
|
492
|
+
}), ze = ["aria-current"], ae = /* @__PURE__ */ p({
|
|
493
493
|
__name: "VibeBreadcrumbItem",
|
|
494
494
|
props: {
|
|
495
495
|
active: { type: Boolean, default: !1 },
|
|
@@ -497,49 +497,49 @@ const ul = /* @__PURE__ */ p({
|
|
|
497
497
|
to: { type: [String, Object], default: void 0 }
|
|
498
498
|
},
|
|
499
499
|
emits: ["component-error"],
|
|
500
|
-
setup(e, { emit:
|
|
500
|
+
setup(e, { emit: d }) {
|
|
501
501
|
const t = e, i = t.href ? "a" : t.to ? "router-link" : "span";
|
|
502
|
-
return (a,
|
|
502
|
+
return (a, n) => (l(), o("li", {
|
|
503
503
|
class: h(["breadcrumb-item", { active: e.active }]),
|
|
504
504
|
"aria-current": e.active ? "page" : void 0
|
|
505
505
|
}, [
|
|
506
|
-
(l(),
|
|
506
|
+
(l(), V(T(L(i)), {
|
|
507
507
|
href: e.href,
|
|
508
508
|
to: e.to
|
|
509
509
|
}, {
|
|
510
|
-
default:
|
|
510
|
+
default: x(() => [
|
|
511
511
|
$(a.$slots, "default")
|
|
512
512
|
]),
|
|
513
513
|
_: 3
|
|
514
514
|
}, 8, ["href", "to"]))
|
|
515
|
-
], 10,
|
|
515
|
+
], 10, ze));
|
|
516
516
|
}
|
|
517
|
-
}),
|
|
517
|
+
}), Ae = ["aria-label"], je = { class: "breadcrumb" }, Le = /* @__PURE__ */ p({
|
|
518
518
|
__name: "VibeBreadcrumb",
|
|
519
519
|
props: {
|
|
520
520
|
ariaLabel: { type: String, default: "breadcrumb" },
|
|
521
521
|
items: { type: Array, default: void 0 }
|
|
522
522
|
},
|
|
523
523
|
emits: ["component-error"],
|
|
524
|
-
setup(e, { emit:
|
|
525
|
-
const t =
|
|
526
|
-
return (i, a) => (l(),
|
|
527
|
-
m("ol",
|
|
528
|
-
e.items && e.items.length > 0 && !L(t).default ? (l(!0),
|
|
524
|
+
setup(e, { emit: d }) {
|
|
525
|
+
const t = D();
|
|
526
|
+
return (i, a) => (l(), o("nav", { "aria-label": e.ariaLabel }, [
|
|
527
|
+
m("ol", je, [
|
|
528
|
+
e.items && e.items.length > 0 && !L(t).default ? (l(!0), o(q, { key: 0 }, I(e.items, (n, r) => (l(), V(ae, {
|
|
529
529
|
key: r,
|
|
530
|
-
href:
|
|
531
|
-
to:
|
|
532
|
-
active:
|
|
530
|
+
href: n.href,
|
|
531
|
+
to: n.to,
|
|
532
|
+
active: n.active
|
|
533
533
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
N(f(
|
|
534
|
+
default: x(() => [
|
|
535
|
+
N(f(n.text), 1)
|
|
536
536
|
]),
|
|
537
537
|
_: 2
|
|
538
538
|
}, 1032, ["href", "to", "active"]))), 128)) : $(i.$slots, "default", { key: 1 })
|
|
539
539
|
])
|
|
540
|
-
], 8,
|
|
540
|
+
], 8, Ae));
|
|
541
541
|
}
|
|
542
|
-
}),
|
|
542
|
+
}), Oe = ["role"], Q = /* @__PURE__ */ p({
|
|
543
543
|
__name: "VibeNavItem",
|
|
544
544
|
props: {
|
|
545
545
|
active: { type: Boolean, default: !1 },
|
|
@@ -551,19 +551,19 @@ const ul = /* @__PURE__ */ p({
|
|
|
551
551
|
target: { type: String, default: void 0 }
|
|
552
552
|
},
|
|
553
553
|
emits: ["click", "component-error"],
|
|
554
|
-
setup(e, { emit:
|
|
555
|
-
const t = e, i =
|
|
556
|
-
const
|
|
557
|
-
return t.active &&
|
|
558
|
-
}), r = (
|
|
559
|
-
t.disabled || i("click",
|
|
554
|
+
setup(e, { emit: d }) {
|
|
555
|
+
const t = e, i = d, a = c(() => t.tab && !t.href && !t.to ? "button" : t.href ? "a" : t.to ? "router-link" : "a"), n = c(() => {
|
|
556
|
+
const s = ["nav-link"];
|
|
557
|
+
return t.active && s.push("active"), t.disabled && s.push("disabled"), s.join(" ");
|
|
558
|
+
}), r = (s) => {
|
|
559
|
+
t.disabled || i("click", s);
|
|
560
560
|
};
|
|
561
|
-
return (
|
|
561
|
+
return (s, y) => (l(), o("li", {
|
|
562
562
|
class: "nav-item",
|
|
563
563
|
role: e.tab ? "presentation" : void 0
|
|
564
564
|
}, [
|
|
565
|
-
(l(),
|
|
566
|
-
class: h(
|
|
565
|
+
(l(), V(T(a.value), {
|
|
566
|
+
class: h(n.value),
|
|
567
567
|
href: e.href,
|
|
568
568
|
to: e.to,
|
|
569
569
|
type: a.value === "button" ? "button" : void 0,
|
|
@@ -575,14 +575,14 @@ const ul = /* @__PURE__ */ p({
|
|
|
575
575
|
"aria-selected": e.tab ? e.active : void 0,
|
|
576
576
|
onClick: r
|
|
577
577
|
}, {
|
|
578
|
-
default:
|
|
579
|
-
$(
|
|
578
|
+
default: x(() => [
|
|
579
|
+
$(s.$slots, "default")
|
|
580
580
|
]),
|
|
581
581
|
_: 3
|
|
582
582
|
}, 8, ["class", "href", "to", "type", "data-bs-toggle", "data-bs-target", "role", "aria-current", "aria-disabled", "aria-selected"]))
|
|
583
|
-
], 8,
|
|
583
|
+
], 8, Oe));
|
|
584
584
|
}
|
|
585
|
-
}),
|
|
585
|
+
}), De = /* @__PURE__ */ p({
|
|
586
586
|
__name: "VibeNav",
|
|
587
587
|
props: {
|
|
588
588
|
tabs: { type: Boolean, default: !1 },
|
|
@@ -594,32 +594,32 @@ const ul = /* @__PURE__ */ p({
|
|
|
594
594
|
items: { type: Array, default: void 0 }
|
|
595
595
|
},
|
|
596
596
|
emits: ["component-error"],
|
|
597
|
-
setup(e, { emit:
|
|
598
|
-
const t = e, i =
|
|
599
|
-
const
|
|
600
|
-
return t.tabs &&
|
|
597
|
+
setup(e, { emit: d }) {
|
|
598
|
+
const t = e, i = D(), a = c(() => {
|
|
599
|
+
const n = ["nav"];
|
|
600
|
+
return t.tabs && n.push("nav-tabs"), t.pills && n.push("nav-pills"), t.fill && n.push("nav-fill"), t.justified && n.push("nav-justified"), t.vertical && n.push("flex-column"), n.join(" ");
|
|
601
601
|
});
|
|
602
|
-
return (
|
|
602
|
+
return (n, r) => (l(), V(T(e.tag), {
|
|
603
603
|
class: h(a.value)
|
|
604
604
|
}, {
|
|
605
|
-
default:
|
|
606
|
-
e.items && e.items.length > 0 && !L(i).default ? (l(!0),
|
|
605
|
+
default: x(() => [
|
|
606
|
+
e.items && e.items.length > 0 && !L(i).default ? (l(!0), o(q, { key: 0 }, I(e.items, (s, y) => (l(), V(Q, {
|
|
607
607
|
key: y,
|
|
608
|
-
href:
|
|
609
|
-
to:
|
|
610
|
-
active:
|
|
611
|
-
disabled:
|
|
608
|
+
href: s.href,
|
|
609
|
+
to: s.to,
|
|
610
|
+
active: s.active,
|
|
611
|
+
disabled: s.disabled
|
|
612
612
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
N(f(
|
|
613
|
+
default: x(() => [
|
|
614
|
+
N(f(s.text), 1)
|
|
615
615
|
]),
|
|
616
616
|
_: 2
|
|
617
|
-
}, 1032, ["href", "to", "active", "disabled"]))), 128)) : $(
|
|
617
|
+
}, 1032, ["href", "to", "active", "disabled"]))), 128)) : $(n.$slots, "default", { key: 1 })
|
|
618
618
|
]),
|
|
619
619
|
_: 3
|
|
620
620
|
}, 8, ["class"]));
|
|
621
621
|
}
|
|
622
|
-
}),
|
|
622
|
+
}), Xe = /* @__PURE__ */ p({
|
|
623
623
|
__name: "VibeNavbar",
|
|
624
624
|
props: {
|
|
625
625
|
variant: { type: String, default: "light" },
|
|
@@ -629,57 +629,57 @@ const ul = /* @__PURE__ */ p({
|
|
|
629
629
|
tag: { type: String, default: "nav" }
|
|
630
630
|
},
|
|
631
631
|
emits: ["component-error"],
|
|
632
|
-
setup(e, { emit:
|
|
632
|
+
setup(e, { emit: d }) {
|
|
633
633
|
const t = e, i = c(() => {
|
|
634
|
-
const
|
|
635
|
-
return t.expand === !0 ?
|
|
634
|
+
const n = ["navbar"];
|
|
635
|
+
return t.expand === !0 ? n.push("navbar-expand") : typeof t.expand == "string" && n.push(`navbar-expand-${t.expand}`), t.variant === "dark" || t.variant === "light" ? n.push(`navbar-${t.variant}`) : n.push(`bg-${t.variant}`), t.position && n.push(t.position), n.join(" ");
|
|
636
636
|
}), a = c(() => {
|
|
637
637
|
if (t.container !== !1)
|
|
638
638
|
return t.container === !0 ? "container-fluid" : `container-${t.container}`;
|
|
639
639
|
});
|
|
640
|
-
return (
|
|
640
|
+
return (n, r) => (l(), V(T(e.tag), {
|
|
641
641
|
class: h(i.value)
|
|
642
642
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
a.value ? (l(),
|
|
643
|
+
default: x(() => [
|
|
644
|
+
a.value ? (l(), o("div", {
|
|
645
645
|
key: 0,
|
|
646
646
|
class: h(a.value)
|
|
647
647
|
}, [
|
|
648
|
-
$(
|
|
649
|
-
], 2)) : $(
|
|
648
|
+
$(n.$slots, "default")
|
|
649
|
+
], 2)) : $(n.$slots, "default", { key: 1 })
|
|
650
650
|
]),
|
|
651
651
|
_: 3
|
|
652
652
|
}, 8, ["class"]));
|
|
653
653
|
}
|
|
654
|
-
}),
|
|
654
|
+
}), Re = /* @__PURE__ */ p({
|
|
655
655
|
__name: "VibeNavbarBrand",
|
|
656
656
|
props: {
|
|
657
657
|
href: { type: String, default: void 0 },
|
|
658
658
|
to: { type: [String, Object], default: void 0 }
|
|
659
659
|
},
|
|
660
660
|
emits: ["component-error"],
|
|
661
|
-
setup(e, { emit:
|
|
661
|
+
setup(e, { emit: d }) {
|
|
662
662
|
const t = e, i = t.href ? "a" : t.to ? "router-link" : "span";
|
|
663
|
-
return (a,
|
|
663
|
+
return (a, n) => (l(), V(T(L(i)), {
|
|
664
664
|
class: "navbar-brand",
|
|
665
665
|
href: e.href,
|
|
666
666
|
to: e.to
|
|
667
667
|
}, {
|
|
668
|
-
default:
|
|
668
|
+
default: x(() => [
|
|
669
669
|
$(a.$slots, "default")
|
|
670
670
|
]),
|
|
671
671
|
_: 3
|
|
672
672
|
}, 8, ["href", "to"]));
|
|
673
673
|
}
|
|
674
|
-
}),
|
|
674
|
+
}), Ge = ["data-bs-target", "aria-controls", "aria-label"], Ee = /* @__PURE__ */ p({
|
|
675
675
|
__name: "VibeNavbarToggle",
|
|
676
676
|
props: {
|
|
677
677
|
target: { type: String, required: !0 },
|
|
678
678
|
ariaLabel: { type: String, default: "Toggle navigation" }
|
|
679
679
|
},
|
|
680
680
|
emits: ["component-error"],
|
|
681
|
-
setup(e, { emit:
|
|
682
|
-
return (t, i) => (l(),
|
|
681
|
+
setup(e, { emit: d }) {
|
|
682
|
+
return (t, i) => (l(), o("button", {
|
|
683
683
|
class: "navbar-toggler",
|
|
684
684
|
type: "button",
|
|
685
685
|
"data-bs-toggle": "collapse",
|
|
@@ -689,28 +689,28 @@ const ul = /* @__PURE__ */ p({
|
|
|
689
689
|
"aria-label": e.ariaLabel
|
|
690
690
|
}, [...i[0] || (i[0] = [
|
|
691
691
|
m("span", { class: "navbar-toggler-icon" }, null, -1)
|
|
692
|
-
])], 8,
|
|
692
|
+
])], 8, Ge));
|
|
693
693
|
}
|
|
694
|
-
}),
|
|
694
|
+
}), Ye = /* @__PURE__ */ p({
|
|
695
695
|
__name: "VibeNavbarNav",
|
|
696
696
|
props: {
|
|
697
697
|
tag: { type: String, default: "ul" },
|
|
698
698
|
items: { type: Array, default: void 0 }
|
|
699
699
|
},
|
|
700
700
|
emits: ["component-error"],
|
|
701
|
-
setup(e, { emit:
|
|
702
|
-
const t =
|
|
703
|
-
return (i, a) => (l(),
|
|
704
|
-
default:
|
|
705
|
-
e.items && e.items.length > 0 && !L(t).default ? (l(!0),
|
|
701
|
+
setup(e, { emit: d }) {
|
|
702
|
+
const t = D();
|
|
703
|
+
return (i, a) => (l(), V(T(e.tag), { class: "navbar-nav" }, {
|
|
704
|
+
default: x(() => [
|
|
705
|
+
e.items && e.items.length > 0 && !L(t).default ? (l(!0), o(q, { key: 0 }, I(e.items, (n, r) => (l(), V(Q, {
|
|
706
706
|
key: r,
|
|
707
|
-
href:
|
|
708
|
-
to:
|
|
709
|
-
active:
|
|
710
|
-
disabled:
|
|
707
|
+
href: n.href,
|
|
708
|
+
to: n.to,
|
|
709
|
+
active: n.active,
|
|
710
|
+
disabled: n.disabled
|
|
711
711
|
}, {
|
|
712
|
-
default:
|
|
713
|
-
N(f(
|
|
712
|
+
default: x(() => [
|
|
713
|
+
N(f(n.text), 1)
|
|
714
714
|
]),
|
|
715
715
|
_: 2
|
|
716
716
|
}, 1032, ["href", "to", "active", "disabled"]))), 128)) : $(i.$slots, "default", { key: 1 })
|
|
@@ -727,14 +727,14 @@ const ul = /* @__PURE__ */ p({
|
|
|
727
727
|
to: { type: [String, Object], default: void 0 }
|
|
728
728
|
},
|
|
729
729
|
emits: ["click", "component-error"],
|
|
730
|
-
setup(e, { emit:
|
|
731
|
-
const t = e, i =
|
|
730
|
+
setup(e, { emit: d }) {
|
|
731
|
+
const t = e, i = d, a = c(() => t.href ? "a" : t.to ? "router-link" : "button"), n = (r) => {
|
|
732
732
|
t.disabled || i("click", r);
|
|
733
733
|
};
|
|
734
|
-
return (r,
|
|
734
|
+
return (r, s) => (l(), o("li", {
|
|
735
735
|
class: h(["page-item", { active: e.active, disabled: e.disabled }])
|
|
736
736
|
}, [
|
|
737
|
-
(l(),
|
|
737
|
+
(l(), V(T(a.value), {
|
|
738
738
|
class: "page-link",
|
|
739
739
|
href: e.href,
|
|
740
740
|
to: e.to,
|
|
@@ -742,16 +742,16 @@ const ul = /* @__PURE__ */ p({
|
|
|
742
742
|
disabled: e.disabled && a.value === "button",
|
|
743
743
|
"aria-current": e.active ? "page" : void 0,
|
|
744
744
|
"aria-disabled": e.disabled,
|
|
745
|
-
onClick:
|
|
745
|
+
onClick: n
|
|
746
746
|
}, {
|
|
747
|
-
default:
|
|
747
|
+
default: x(() => [
|
|
748
748
|
$(r.$slots, "default")
|
|
749
749
|
]),
|
|
750
750
|
_: 3
|
|
751
751
|
}, 8, ["href", "to", "type", "disabled", "aria-current", "aria-disabled"]))
|
|
752
752
|
], 2));
|
|
753
753
|
}
|
|
754
|
-
}),
|
|
754
|
+
}), He = ["aria-label"], Ue = /* @__PURE__ */ p({
|
|
755
755
|
__name: "VibePagination",
|
|
756
756
|
props: {
|
|
757
757
|
size: { type: String, default: void 0 },
|
|
@@ -762,71 +762,71 @@ const ul = /* @__PURE__ */ p({
|
|
|
762
762
|
showPrevNext: { type: Boolean, default: !0 }
|
|
763
763
|
},
|
|
764
764
|
emits: ["page-click", "component-error"],
|
|
765
|
-
setup(e, { emit:
|
|
766
|
-
const t = e, i =
|
|
765
|
+
setup(e, { emit: d }) {
|
|
766
|
+
const t = e, i = d, a = D(), n = c(() => {
|
|
767
767
|
const y = ["pagination"];
|
|
768
768
|
return t.size && y.push(`pagination-${t.size}`), y.join(" ");
|
|
769
|
-
}), r = c(() => t.totalPages ? Array.from({ length: t.totalPages }, (y, v) => v + 1) : []),
|
|
769
|
+
}), r = c(() => t.totalPages ? Array.from({ length: t.totalPages }, (y, v) => v + 1) : []), s = (y) => {
|
|
770
770
|
y >= 1 && y <= t.totalPages && i("page-click", y);
|
|
771
771
|
};
|
|
772
|
-
return (y, v) => (l(),
|
|
772
|
+
return (y, v) => (l(), o("nav", { "aria-label": e.ariaLabel }, [
|
|
773
773
|
m("ul", {
|
|
774
|
-
class: h(
|
|
774
|
+
class: h(n.value)
|
|
775
775
|
}, [
|
|
776
|
-
e.totalPages && !L(a).default ? (l(),
|
|
777
|
-
e.showPrevNext ? (l(),
|
|
776
|
+
e.totalPages && !L(a).default ? (l(), o(q, { key: 0 }, [
|
|
777
|
+
e.showPrevNext ? (l(), V(H, {
|
|
778
778
|
key: 0,
|
|
779
779
|
disabled: e.currentPage === 1,
|
|
780
|
-
onClick: v[0] || (v[0] = (b) =>
|
|
780
|
+
onClick: v[0] || (v[0] = (b) => s(e.currentPage - 1))
|
|
781
781
|
}, {
|
|
782
|
-
default:
|
|
782
|
+
default: x(() => [...v[2] || (v[2] = [
|
|
783
783
|
N(" Previous ", -1)
|
|
784
784
|
])]),
|
|
785
785
|
_: 1
|
|
786
786
|
}, 8, ["disabled"])) : u("", !0),
|
|
787
|
-
(l(!0),
|
|
787
|
+
(l(!0), o(q, null, I(r.value, (b) => (l(), V(H, {
|
|
788
788
|
key: b,
|
|
789
789
|
active: b === e.currentPage,
|
|
790
|
-
onClick: (g) =>
|
|
790
|
+
onClick: (g) => s(b)
|
|
791
791
|
}, {
|
|
792
|
-
default:
|
|
792
|
+
default: x(() => [
|
|
793
793
|
N(f(b), 1)
|
|
794
794
|
]),
|
|
795
795
|
_: 2
|
|
796
796
|
}, 1032, ["active", "onClick"]))), 128)),
|
|
797
|
-
e.showPrevNext ? (l(),
|
|
797
|
+
e.showPrevNext ? (l(), V(H, {
|
|
798
798
|
key: 1,
|
|
799
799
|
disabled: e.currentPage === e.totalPages,
|
|
800
|
-
onClick: v[1] || (v[1] = (b) =>
|
|
800
|
+
onClick: v[1] || (v[1] = (b) => s(e.currentPage + 1))
|
|
801
801
|
}, {
|
|
802
|
-
default:
|
|
802
|
+
default: x(() => [...v[3] || (v[3] = [
|
|
803
803
|
N(" Next ", -1)
|
|
804
804
|
])]),
|
|
805
805
|
_: 1
|
|
806
806
|
}, 8, ["disabled"])) : u("", !0)
|
|
807
807
|
], 64)) : $(y.$slots, "default", { key: 1 })
|
|
808
808
|
], 2)
|
|
809
|
-
], 8,
|
|
809
|
+
], 8, He));
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
811
|
+
}), Qe = /* @__PURE__ */ p({
|
|
812
812
|
__name: "VibeTabContent",
|
|
813
813
|
props: {
|
|
814
814
|
id: { type: String, default: void 0 },
|
|
815
815
|
tag: { type: String, default: "div" }
|
|
816
816
|
},
|
|
817
817
|
emits: ["component-error"],
|
|
818
|
-
setup(e, { emit:
|
|
819
|
-
return (t, i) => (l(),
|
|
818
|
+
setup(e, { emit: d }) {
|
|
819
|
+
return (t, i) => (l(), V(T(e.tag), {
|
|
820
820
|
id: e.id,
|
|
821
821
|
class: "tab-content"
|
|
822
822
|
}, {
|
|
823
|
-
default:
|
|
823
|
+
default: x(() => [
|
|
824
824
|
$(t.$slots, "default")
|
|
825
825
|
]),
|
|
826
826
|
_: 3
|
|
827
827
|
}, 8, ["id"]));
|
|
828
828
|
}
|
|
829
|
-
}),
|
|
829
|
+
}), Ke = /* @__PURE__ */ p({
|
|
830
830
|
__name: "VibeTabPane",
|
|
831
831
|
props: {
|
|
832
832
|
id: { type: String, required: !0 },
|
|
@@ -836,25 +836,25 @@ const ul = /* @__PURE__ */ p({
|
|
|
836
836
|
ariaLabelledby: { type: String, default: void 0 }
|
|
837
837
|
},
|
|
838
838
|
emits: ["component-error"],
|
|
839
|
-
setup(e, { emit:
|
|
839
|
+
setup(e, { emit: d }) {
|
|
840
840
|
const t = e, i = c(() => {
|
|
841
841
|
const a = ["tab-pane"];
|
|
842
842
|
return t.fade && a.push("fade"), t.active && a.push("show", "active"), a.join(" ");
|
|
843
843
|
});
|
|
844
|
-
return (a,
|
|
844
|
+
return (a, n) => (l(), V(T(e.tag), {
|
|
845
845
|
id: e.id,
|
|
846
846
|
class: h(i.value),
|
|
847
847
|
role: "tabpanel",
|
|
848
848
|
"aria-labelledby": e.ariaLabelledby,
|
|
849
849
|
tabindex: "0"
|
|
850
850
|
}, {
|
|
851
|
-
default:
|
|
851
|
+
default: x(() => [
|
|
852
852
|
$(a.$slots, "default")
|
|
853
853
|
]),
|
|
854
854
|
_: 3
|
|
855
855
|
}, 8, ["id", "class", "aria-labelledby"]));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), le = /* @__PURE__ */ p({
|
|
858
858
|
__name: "VibeListGroupItem",
|
|
859
859
|
props: {
|
|
860
860
|
active: { type: Boolean, default: !1 },
|
|
@@ -866,15 +866,15 @@ const ul = /* @__PURE__ */ p({
|
|
|
866
866
|
action: { type: Boolean, default: !1 }
|
|
867
867
|
},
|
|
868
868
|
emits: ["click", "component-error"],
|
|
869
|
-
setup(e, { emit:
|
|
870
|
-
const t = e, i =
|
|
871
|
-
const
|
|
872
|
-
return t.active &&
|
|
873
|
-
}), r = (
|
|
874
|
-
t.disabled || i("click",
|
|
869
|
+
setup(e, { emit: d }) {
|
|
870
|
+
const t = e, i = d, a = c(() => t.href ? "a" : t.to ? "router-link" : t.action ? "button" : t.tag), n = c(() => {
|
|
871
|
+
const s = ["list-group-item"];
|
|
872
|
+
return t.active && s.push("active"), t.disabled && s.push("disabled"), t.variant && s.push(`list-group-item-${t.variant}`), (t.action || t.href || t.to) && s.push("list-group-item-action"), s.join(" ");
|
|
873
|
+
}), r = (s) => {
|
|
874
|
+
t.disabled || i("click", s);
|
|
875
875
|
};
|
|
876
|
-
return (
|
|
877
|
-
class: h(
|
|
876
|
+
return (s, y) => (l(), V(T(a.value), {
|
|
877
|
+
class: h(n.value),
|
|
878
878
|
href: e.href,
|
|
879
879
|
to: e.to,
|
|
880
880
|
type: a.value === "button" ? "button" : void 0,
|
|
@@ -883,13 +883,13 @@ const ul = /* @__PURE__ */ p({
|
|
|
883
883
|
"aria-current": e.active ? "true" : void 0,
|
|
884
884
|
onClick: r
|
|
885
885
|
}, {
|
|
886
|
-
default:
|
|
887
|
-
$(
|
|
886
|
+
default: x(() => [
|
|
887
|
+
$(s.$slots, "default")
|
|
888
888
|
]),
|
|
889
889
|
_: 3
|
|
890
890
|
}, 8, ["class", "href", "to", "type", "disabled", "aria-disabled", "aria-current"]));
|
|
891
891
|
}
|
|
892
|
-
}),
|
|
892
|
+
}), We = /* @__PURE__ */ p({
|
|
893
893
|
__name: "VibeListGroup",
|
|
894
894
|
props: {
|
|
895
895
|
flush: { type: Boolean, default: !1 },
|
|
@@ -899,51 +899,51 @@ const ul = /* @__PURE__ */ p({
|
|
|
899
899
|
items: { type: Array, default: void 0 }
|
|
900
900
|
},
|
|
901
901
|
emits: ["component-error"],
|
|
902
|
-
setup(e, { emit:
|
|
903
|
-
const t = e, i =
|
|
904
|
-
const
|
|
905
|
-
return t.flush &&
|
|
902
|
+
setup(e, { emit: d }) {
|
|
903
|
+
const t = e, i = D(), a = c(() => {
|
|
904
|
+
const n = ["list-group"];
|
|
905
|
+
return t.flush && n.push("list-group-flush"), t.numbered && n.push("list-group-numbered"), t.horizontal === !0 ? n.push("list-group-horizontal") : typeof t.horizontal == "string" && n.push(`list-group-horizontal-${t.horizontal}`), n.join(" ");
|
|
906
906
|
});
|
|
907
|
-
return (
|
|
907
|
+
return (n, r) => (l(), V(T(e.tag), {
|
|
908
908
|
class: h(a.value)
|
|
909
909
|
}, {
|
|
910
|
-
default:
|
|
911
|
-
e.items && e.items.length > 0 && !L(i).default ? (l(!0),
|
|
910
|
+
default: x(() => [
|
|
911
|
+
e.items && e.items.length > 0 && !L(i).default ? (l(!0), o(q, { key: 0 }, I(e.items, (s, y) => (l(), V(le, {
|
|
912
912
|
key: y,
|
|
913
|
-
href:
|
|
914
|
-
to:
|
|
915
|
-
active:
|
|
916
|
-
disabled:
|
|
917
|
-
variant:
|
|
913
|
+
href: s.href,
|
|
914
|
+
to: s.to,
|
|
915
|
+
active: s.active,
|
|
916
|
+
disabled: s.disabled,
|
|
917
|
+
variant: s.variant
|
|
918
918
|
}, {
|
|
919
|
-
default:
|
|
920
|
-
N(f(
|
|
919
|
+
default: x(() => [
|
|
920
|
+
N(f(s.text), 1)
|
|
921
921
|
]),
|
|
922
922
|
_: 2
|
|
923
|
-
}, 1032, ["href", "to", "active", "disabled", "variant"]))), 128)) : $(
|
|
923
|
+
}, 1032, ["href", "to", "active", "disabled", "variant"]))), 128)) : $(n.$slots, "default", { key: 1 })
|
|
924
924
|
]),
|
|
925
925
|
_: 3
|
|
926
926
|
}, 8, ["class"]));
|
|
927
927
|
}
|
|
928
|
-
}),
|
|
928
|
+
}), Je = /* @__PURE__ */ p({
|
|
929
929
|
__name: "VibeProgress",
|
|
930
930
|
props: {
|
|
931
931
|
height: { type: String, default: void 0 }
|
|
932
932
|
},
|
|
933
933
|
emits: ["component-error"],
|
|
934
|
-
setup(e, { emit:
|
|
934
|
+
setup(e, { emit: d }) {
|
|
935
935
|
const t = e, i = c(() => {
|
|
936
936
|
if (t.height)
|
|
937
937
|
return { height: t.height };
|
|
938
938
|
});
|
|
939
|
-
return (a,
|
|
939
|
+
return (a, n) => (l(), o("div", {
|
|
940
940
|
class: "progress",
|
|
941
941
|
style: R(i.value)
|
|
942
942
|
}, [
|
|
943
943
|
$(a.$slots, "default")
|
|
944
944
|
], 4));
|
|
945
945
|
}
|
|
946
|
-
}),
|
|
946
|
+
}), Ze = ["aria-valuenow", "aria-valuemax"], _e = /* @__PURE__ */ p({
|
|
947
947
|
__name: "VibeProgressBar",
|
|
948
948
|
props: {
|
|
949
949
|
value: { type: Number, default: 0 },
|
|
@@ -955,12 +955,12 @@ const ul = /* @__PURE__ */ p({
|
|
|
955
955
|
showValue: { type: Boolean, default: !1 }
|
|
956
956
|
},
|
|
957
957
|
emits: ["component-error"],
|
|
958
|
-
setup(e, { emit:
|
|
958
|
+
setup(e, { emit: d }) {
|
|
959
959
|
const t = e, i = c(() => {
|
|
960
960
|
const r = ["progress-bar"];
|
|
961
961
|
return t.variant && r.push(`bg-${t.variant}`), (t.striped || t.animated) && r.push("progress-bar-striped"), t.animated && r.push("progress-bar-animated"), r.join(" ");
|
|
962
|
-
}), a = c(() => ({ width: `${Math.min(100, Math.max(0, t.value / t.max * 100))}%` })),
|
|
963
|
-
return (r,
|
|
962
|
+
}), a = c(() => ({ width: `${Math.min(100, Math.max(0, t.value / t.max * 100))}%` })), n = c(() => t.label ? t.label : t.showValue ? `${t.value}%` : "");
|
|
963
|
+
return (r, s) => (l(), o("div", {
|
|
964
964
|
class: h(i.value),
|
|
965
965
|
style: R(a.value),
|
|
966
966
|
role: "progressbar",
|
|
@@ -968,11 +968,11 @@ const ul = /* @__PURE__ */ p({
|
|
|
968
968
|
"aria-valuemin": 0,
|
|
969
969
|
"aria-valuemax": e.max
|
|
970
970
|
}, [
|
|
971
|
-
N(f(
|
|
971
|
+
N(f(n.value) + " ", 1),
|
|
972
972
|
$(r.$slots, "default")
|
|
973
|
-
], 14,
|
|
973
|
+
], 14, Ze));
|
|
974
974
|
}
|
|
975
|
-
}),
|
|
975
|
+
}), et = { class: "accordion-item" }, tt = { class: "accordion-header" }, at = ["data-bs-target", "aria-expanded", "aria-controls"], lt = ["id", "data-bs-parent"], it = { class: "accordion-body" }, ie = /* @__PURE__ */ p({
|
|
976
976
|
__name: "VibeAccordionItem",
|
|
977
977
|
props: {
|
|
978
978
|
id: { type: String, required: !0 },
|
|
@@ -981,10 +981,10 @@ const ul = /* @__PURE__ */ p({
|
|
|
981
981
|
show: { type: Boolean, default: !1 }
|
|
982
982
|
},
|
|
983
983
|
emits: ["component-error"],
|
|
984
|
-
setup(e, { emit:
|
|
984
|
+
setup(e, { emit: d }) {
|
|
985
985
|
const t = e, i = c(() => t.show ? "accordion-collapse collapse show" : "accordion-collapse collapse");
|
|
986
|
-
return (a,
|
|
987
|
-
m("h2",
|
|
986
|
+
return (a, n) => (l(), o("div", et, [
|
|
987
|
+
m("h2", tt, [
|
|
988
988
|
m("button", {
|
|
989
989
|
class: h(["accordion-button", { collapsed: !e.show }]),
|
|
990
990
|
type: "button",
|
|
@@ -992,20 +992,20 @@ const ul = /* @__PURE__ */ p({
|
|
|
992
992
|
"data-bs-target": `#${e.id}`,
|
|
993
993
|
"aria-expanded": e.show,
|
|
994
994
|
"aria-controls": e.id
|
|
995
|
-
}, f(e.title), 11,
|
|
995
|
+
}, f(e.title), 11, at)
|
|
996
996
|
]),
|
|
997
997
|
m("div", {
|
|
998
998
|
id: e.id,
|
|
999
999
|
class: h(i.value),
|
|
1000
1000
|
"data-bs-parent": `#${e.parentId}`
|
|
1001
1001
|
}, [
|
|
1002
|
-
m("div",
|
|
1002
|
+
m("div", it, [
|
|
1003
1003
|
$(a.$slots, "default")
|
|
1004
1004
|
])
|
|
1005
|
-
], 10,
|
|
1005
|
+
], 10, lt)
|
|
1006
1006
|
]));
|
|
1007
1007
|
}
|
|
1008
|
-
}),
|
|
1008
|
+
}), nt = ["id"], ot = /* @__PURE__ */ p({
|
|
1009
1009
|
__name: "VibeAccordion",
|
|
1010
1010
|
props: {
|
|
1011
1011
|
id: { type: String, required: !0 },
|
|
@@ -1013,27 +1013,27 @@ const ul = /* @__PURE__ */ p({
|
|
|
1013
1013
|
items: { type: Array, default: void 0 }
|
|
1014
1014
|
},
|
|
1015
1015
|
emits: ["component-error"],
|
|
1016
|
-
setup(e, { emit:
|
|
1017
|
-
const t =
|
|
1018
|
-
return (i, a) => (l(),
|
|
1016
|
+
setup(e, { emit: d }) {
|
|
1017
|
+
const t = D();
|
|
1018
|
+
return (i, a) => (l(), o("div", {
|
|
1019
1019
|
id: e.id,
|
|
1020
1020
|
class: h(["accordion", { "accordion-flush": e.flush }])
|
|
1021
1021
|
}, [
|
|
1022
|
-
e.items && e.items.length > 0 && !L(t).default ? (l(!0),
|
|
1022
|
+
e.items && e.items.length > 0 && !L(t).default ? (l(!0), o(q, { key: 0 }, I(e.items, (n, r) => (l(), V(ie, {
|
|
1023
1023
|
key: r,
|
|
1024
|
-
id:
|
|
1024
|
+
id: n.id,
|
|
1025
1025
|
"parent-id": e.id,
|
|
1026
|
-
title:
|
|
1027
|
-
show:
|
|
1026
|
+
title: n.title,
|
|
1027
|
+
show: n.show
|
|
1028
1028
|
}, {
|
|
1029
|
-
default:
|
|
1030
|
-
N(f(
|
|
1029
|
+
default: x(() => [
|
|
1030
|
+
N(f(n.content), 1)
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 2
|
|
1033
1033
|
}, 1032, ["id", "parent-id", "title", "show"]))), 128)) : $(i.$slots, "default", { key: 1 })
|
|
1034
|
-
], 10,
|
|
1034
|
+
], 10, nt));
|
|
1035
1035
|
}
|
|
1036
|
-
}),
|
|
1036
|
+
}), st = /* @__PURE__ */ p({
|
|
1037
1037
|
__name: "VibeCollapse",
|
|
1038
1038
|
props: {
|
|
1039
1039
|
id: { type: String, required: !0 },
|
|
@@ -1042,26 +1042,26 @@ const ul = /* @__PURE__ */ p({
|
|
|
1042
1042
|
horizontal: { type: Boolean, default: !1 }
|
|
1043
1043
|
},
|
|
1044
1044
|
emits: ["update:modelValue", "show", "shown", "hide", "hidden", "component-error"],
|
|
1045
|
-
setup(e, { emit:
|
|
1046
|
-
const t = e, i =
|
|
1047
|
-
O(() => t.modelValue, (
|
|
1048
|
-
i.value =
|
|
1045
|
+
setup(e, { emit: d }) {
|
|
1046
|
+
const t = e, i = F(t.modelValue);
|
|
1047
|
+
O(() => t.modelValue, (n) => {
|
|
1048
|
+
i.value = n;
|
|
1049
1049
|
});
|
|
1050
1050
|
const a = c(() => {
|
|
1051
|
-
const
|
|
1052
|
-
return t.horizontal &&
|
|
1051
|
+
const n = ["collapse"];
|
|
1052
|
+
return t.horizontal && n.push("collapse-horizontal"), i.value && n.push("show"), n.join(" ");
|
|
1053
1053
|
});
|
|
1054
|
-
return (
|
|
1054
|
+
return (n, r) => (l(), V(T(e.tag), {
|
|
1055
1055
|
id: e.id,
|
|
1056
1056
|
class: h(a.value)
|
|
1057
1057
|
}, {
|
|
1058
|
-
default:
|
|
1059
|
-
$(
|
|
1058
|
+
default: x(() => [
|
|
1059
|
+
$(n.$slots, "default")
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 3
|
|
1062
1062
|
}, 8, ["id", "class"]));
|
|
1063
1063
|
}
|
|
1064
|
-
}),
|
|
1064
|
+
}), dt = { key: 0 }, ne = /* @__PURE__ */ p({
|
|
1065
1065
|
__name: "VibeDropdownItem",
|
|
1066
1066
|
props: {
|
|
1067
1067
|
active: { type: Boolean, default: !1 },
|
|
@@ -1072,40 +1072,40 @@ const ul = /* @__PURE__ */ p({
|
|
|
1072
1072
|
header: { type: Boolean, default: !1 }
|
|
1073
1073
|
},
|
|
1074
1074
|
emits: ["click", "component-error"],
|
|
1075
|
-
setup(e, { emit:
|
|
1076
|
-
const t = e, i =
|
|
1075
|
+
setup(e, { emit: d }) {
|
|
1076
|
+
const t = e, i = d, a = c(() => t.divider ? "hr" : t.header ? "h6" : t.href ? "a" : t.to ? "router-link" : "button"), n = c(() => {
|
|
1077
1077
|
if (t.divider) return "dropdown-divider";
|
|
1078
1078
|
if (t.header) return "dropdown-header";
|
|
1079
|
-
const
|
|
1080
|
-
return t.active &&
|
|
1081
|
-
}), r = (
|
|
1082
|
-
!t.disabled && !t.divider && !t.header && i("click",
|
|
1079
|
+
const s = ["dropdown-item"];
|
|
1080
|
+
return t.active && s.push("active"), t.disabled && s.push("disabled"), s.join(" ");
|
|
1081
|
+
}), r = (s) => {
|
|
1082
|
+
!t.disabled && !t.divider && !t.header && i("click", s);
|
|
1083
1083
|
};
|
|
1084
|
-
return (
|
|
1085
|
-
(l(),
|
|
1086
|
-
class: h(
|
|
1084
|
+
return (s, y) => !e.divider && !e.header ? (l(), o("li", dt, [
|
|
1085
|
+
(l(), V(T(a.value), {
|
|
1086
|
+
class: h(n.value),
|
|
1087
1087
|
href: e.href,
|
|
1088
1088
|
to: e.to,
|
|
1089
1089
|
type: a.value === "button" ? "button" : void 0,
|
|
1090
1090
|
disabled: e.disabled,
|
|
1091
1091
|
onClick: r
|
|
1092
1092
|
}, {
|
|
1093
|
-
default:
|
|
1094
|
-
$(
|
|
1093
|
+
default: x(() => [
|
|
1094
|
+
$(s.$slots, "default")
|
|
1095
1095
|
]),
|
|
1096
1096
|
_: 3
|
|
1097
1097
|
}, 8, ["class", "href", "to", "type", "disabled"]))
|
|
1098
|
-
])) : (l(),
|
|
1098
|
+
])) : (l(), V(T(a.value), {
|
|
1099
1099
|
key: 1,
|
|
1100
|
-
class: h(
|
|
1100
|
+
class: h(n.value)
|
|
1101
1101
|
}, {
|
|
1102
|
-
default:
|
|
1103
|
-
$(
|
|
1102
|
+
default: x(() => [
|
|
1103
|
+
$(s.$slots, "default")
|
|
1104
1104
|
]),
|
|
1105
1105
|
_: 3
|
|
1106
1106
|
}, 8, ["class"]));
|
|
1107
1107
|
}
|
|
1108
|
-
}),
|
|
1108
|
+
}), rt = ["id"], ut = ["aria-labelledby"], ct = /* @__PURE__ */ p({
|
|
1109
1109
|
__name: "VibeDropdown",
|
|
1110
1110
|
props: {
|
|
1111
1111
|
id: { type: String, required: !0 },
|
|
@@ -1118,29 +1118,29 @@ const ul = /* @__PURE__ */ p({
|
|
|
1118
1118
|
items: { type: Array, default: void 0 }
|
|
1119
1119
|
},
|
|
1120
1120
|
emits: ["component-error"],
|
|
1121
|
-
setup(e, { emit:
|
|
1122
|
-
const t = e, i =
|
|
1123
|
-
const
|
|
1124
|
-
return t.size &&
|
|
1121
|
+
setup(e, { emit: d }) {
|
|
1122
|
+
const t = e, i = D(), a = c(() => t.direction === "up" ? "dropup" : t.direction === "end" ? "dropend" : t.direction === "start" ? "dropstart" : "dropdown"), n = c(() => {
|
|
1123
|
+
const s = ["btn", `btn-${t.variant}`];
|
|
1124
|
+
return t.size && s.push(`btn-${t.size}`), s.join(" ");
|
|
1125
1125
|
}), r = c(() => {
|
|
1126
|
-
const
|
|
1127
|
-
return t.menuEnd &&
|
|
1126
|
+
const s = ["dropdown-menu"];
|
|
1127
|
+
return t.menuEnd && s.push("dropdown-menu-end"), s.join(" ");
|
|
1128
1128
|
});
|
|
1129
|
-
return (
|
|
1129
|
+
return (s, y) => (l(), o("div", {
|
|
1130
1130
|
class: h(a.value)
|
|
1131
1131
|
}, [
|
|
1132
1132
|
m("button", {
|
|
1133
1133
|
id: e.id,
|
|
1134
|
-
class: h([
|
|
1134
|
+
class: h([n.value, "dropdown-toggle"]),
|
|
1135
1135
|
type: "button",
|
|
1136
1136
|
"data-bs-toggle": "dropdown",
|
|
1137
1137
|
"aria-expanded": "false"
|
|
1138
|
-
}, f(e.text), 11,
|
|
1138
|
+
}, f(e.text), 11, rt),
|
|
1139
1139
|
m("ul", {
|
|
1140
1140
|
class: h(r.value),
|
|
1141
1141
|
"aria-labelledby": e.id
|
|
1142
1142
|
}, [
|
|
1143
|
-
e.items && e.items.length > 0 && !L(i).default ? (l(!0),
|
|
1143
|
+
e.items && e.items.length > 0 && !L(i).default ? (l(!0), o(q, { key: 0 }, I(e.items, (v, b) => (l(), V(ne, {
|
|
1144
1144
|
key: b,
|
|
1145
1145
|
href: v.href,
|
|
1146
1146
|
to: v.to,
|
|
@@ -1149,21 +1149,21 @@ const ul = /* @__PURE__ */ p({
|
|
|
1149
1149
|
divider: v.divider,
|
|
1150
1150
|
header: v.header
|
|
1151
1151
|
}, {
|
|
1152
|
-
default:
|
|
1152
|
+
default: x(() => [
|
|
1153
1153
|
N(f(v.text), 1)
|
|
1154
1154
|
]),
|
|
1155
1155
|
_: 2
|
|
1156
|
-
}, 1032, ["href", "to", "active", "disabled", "divider", "header"]))), 128)) : $(
|
|
1157
|
-
], 10,
|
|
1156
|
+
}, 1032, ["href", "to", "active", "disabled", "divider", "header"]))), 128)) : $(s.$slots, "default", { key: 1 })
|
|
1157
|
+
], 10, ut)
|
|
1158
1158
|
], 2));
|
|
1159
1159
|
}
|
|
1160
|
-
}),
|
|
1160
|
+
}), ft = ["id", "aria-labelledby", "data-bs-backdrop", "data-bs-keyboard"], vt = { class: "modal-content" }, bt = {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
class: "modal-header"
|
|
1163
|
-
},
|
|
1163
|
+
}, mt = ["id"], yt = { class: "modal-body" }, ht = {
|
|
1164
1164
|
key: 1,
|
|
1165
1165
|
class: "modal-footer"
|
|
1166
|
-
},
|
|
1166
|
+
}, gt = /* @__PURE__ */ p({
|
|
1167
1167
|
__name: "VibeModal",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
id: { type: String, required: !0 },
|
|
@@ -1178,12 +1178,12 @@ const ul = /* @__PURE__ */ p({
|
|
|
1178
1178
|
hideFooter: { type: Boolean, default: !1 }
|
|
1179
1179
|
},
|
|
1180
1180
|
emits: ["update:modelValue", "show", "shown", "hide", "hidden", "component-error"],
|
|
1181
|
-
setup(e, { emit:
|
|
1181
|
+
setup(e, { emit: d }) {
|
|
1182
1182
|
const t = e, i = c(() => {
|
|
1183
1183
|
const a = ["modal-dialog"];
|
|
1184
1184
|
return t.size && a.push(`modal-${t.size}`), t.centered && a.push("modal-dialog-centered"), t.scrollable && a.push("modal-dialog-scrollable"), t.fullscreen === !0 ? a.push("modal-fullscreen") : typeof t.fullscreen == "string" && a.push(`modal-fullscreen-${t.fullscreen}-down`), a.join(" ");
|
|
1185
1185
|
});
|
|
1186
|
-
return (a,
|
|
1186
|
+
return (a, n) => (l(), o("div", {
|
|
1187
1187
|
id: e.id,
|
|
1188
1188
|
class: "modal fade",
|
|
1189
1189
|
tabindex: "-1",
|
|
@@ -1195,8 +1195,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
1195
1195
|
m("div", {
|
|
1196
1196
|
class: h(i.value)
|
|
1197
1197
|
}, [
|
|
1198
|
-
m("div",
|
|
1199
|
-
e.hideHeader ? u("", !0) : (l(),
|
|
1198
|
+
m("div", vt, [
|
|
1199
|
+
e.hideHeader ? u("", !0) : (l(), o("div", bt, [
|
|
1200
1200
|
m("h5", {
|
|
1201
1201
|
id: `${e.id}-label`,
|
|
1202
1202
|
class: "modal-title"
|
|
@@ -1204,20 +1204,20 @@ const ul = /* @__PURE__ */ p({
|
|
|
1204
1204
|
$(a.$slots, "header", {}, () => [
|
|
1205
1205
|
N(f(e.title), 1)
|
|
1206
1206
|
])
|
|
1207
|
-
], 8,
|
|
1208
|
-
|
|
1207
|
+
], 8, mt),
|
|
1208
|
+
n[0] || (n[0] = m("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
class: "btn-close",
|
|
1211
1211
|
"data-bs-dismiss": "modal",
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
1213
|
}, null, -1))
|
|
1214
1214
|
])),
|
|
1215
|
-
m("div",
|
|
1215
|
+
m("div", yt, [
|
|
1216
1216
|
$(a.$slots, "default")
|
|
1217
1217
|
]),
|
|
1218
|
-
e.hideFooter ? u("", !0) : (l(),
|
|
1218
|
+
e.hideFooter ? u("", !0) : (l(), o("div", ht, [
|
|
1219
1219
|
$(a.$slots, "footer", {}, () => [
|
|
1220
|
-
|
|
1220
|
+
n[1] || (n[1] = m("button", {
|
|
1221
1221
|
type: "button",
|
|
1222
1222
|
class: "btn btn-secondary",
|
|
1223
1223
|
"data-bs-dismiss": "modal"
|
|
@@ -1226,9 +1226,9 @@ const ul = /* @__PURE__ */ p({
|
|
|
1226
1226
|
]))
|
|
1227
1227
|
])
|
|
1228
1228
|
], 2)
|
|
1229
|
-
], 8,
|
|
1229
|
+
], 8, ft));
|
|
1230
1230
|
}
|
|
1231
|
-
}),
|
|
1231
|
+
}), pt = ["id", "aria-labelledby", "data-bs-backdrop", "data-bs-scroll"], $t = { class: "offcanvas-header" }, kt = ["id"], St = { class: "offcanvas-body" }, Vt = /* @__PURE__ */ p({
|
|
1232
1232
|
__name: "VibeOffcanvas",
|
|
1233
1233
|
props: {
|
|
1234
1234
|
id: { type: String, required: !0 },
|
|
@@ -1239,9 +1239,9 @@ const ul = /* @__PURE__ */ p({
|
|
|
1239
1239
|
scroll: { type: Boolean, default: !1 }
|
|
1240
1240
|
},
|
|
1241
1241
|
emits: ["update:modelValue", "show", "shown", "hide", "hidden", "component-error"],
|
|
1242
|
-
setup(e, { emit:
|
|
1242
|
+
setup(e, { emit: d }) {
|
|
1243
1243
|
const t = e, i = c(() => `offcanvas offcanvas-${t.placement}`);
|
|
1244
|
-
return (a,
|
|
1244
|
+
return (a, n) => (l(), o("div", {
|
|
1245
1245
|
id: e.id,
|
|
1246
1246
|
class: h(i.value),
|
|
1247
1247
|
tabindex: "-1",
|
|
@@ -1249,7 +1249,7 @@ const ul = /* @__PURE__ */ p({
|
|
|
1249
1249
|
"data-bs-backdrop": e.backdrop === !1 ? "false" : e.backdrop === "static" ? "static" : "true",
|
|
1250
1250
|
"data-bs-scroll": e.scroll
|
|
1251
1251
|
}, [
|
|
1252
|
-
m("div",
|
|
1252
|
+
m("div", $t, [
|
|
1253
1253
|
m("h5", {
|
|
1254
1254
|
id: `${e.id}-label`,
|
|
1255
1255
|
class: "offcanvas-title"
|
|
@@ -1257,23 +1257,23 @@ const ul = /* @__PURE__ */ p({
|
|
|
1257
1257
|
$(a.$slots, "header", {}, () => [
|
|
1258
1258
|
N(f(e.title), 1)
|
|
1259
1259
|
])
|
|
1260
|
-
], 8,
|
|
1261
|
-
|
|
1260
|
+
], 8, kt),
|
|
1261
|
+
n[0] || (n[0] = m("button", {
|
|
1262
1262
|
type: "button",
|
|
1263
1263
|
class: "btn-close",
|
|
1264
1264
|
"data-bs-dismiss": "offcanvas",
|
|
1265
1265
|
"aria-label": "Close"
|
|
1266
1266
|
}, null, -1))
|
|
1267
1267
|
]),
|
|
1268
|
-
m("div",
|
|
1268
|
+
m("div", St, [
|
|
1269
1269
|
$(a.$slots, "default")
|
|
1270
1270
|
])
|
|
1271
|
-
], 10,
|
|
1271
|
+
], 10, pt));
|
|
1272
1272
|
}
|
|
1273
|
-
}),
|
|
1273
|
+
}), xt = ["id", "data-bs-autohide", "data-bs-delay"], Ct = {
|
|
1274
1274
|
key: 0,
|
|
1275
1275
|
class: "toast-header"
|
|
1276
|
-
},
|
|
1276
|
+
}, Bt = { class: "me-auto" }, wt = { class: "toast-body" }, Nt = /* @__PURE__ */ p({
|
|
1277
1277
|
__name: "VibeToast",
|
|
1278
1278
|
props: {
|
|
1279
1279
|
id: { type: String, default: void 0 },
|
|
@@ -1284,12 +1284,12 @@ const ul = /* @__PURE__ */ p({
|
|
|
1284
1284
|
delay: { type: Number, default: 5e3 }
|
|
1285
1285
|
},
|
|
1286
1286
|
emits: ["update:modelValue", "show", "shown", "hide", "hidden", "component-error"],
|
|
1287
|
-
setup(e, { emit:
|
|
1287
|
+
setup(e, { emit: d }) {
|
|
1288
1288
|
const t = e, i = c(() => {
|
|
1289
1289
|
const a = ["toast"];
|
|
1290
1290
|
return t.variant && a.push(`text-bg-${t.variant}`), a.join(" ");
|
|
1291
1291
|
});
|
|
1292
|
-
return (a,
|
|
1292
|
+
return (a, n) => (l(), o("div", {
|
|
1293
1293
|
id: e.id,
|
|
1294
1294
|
class: h(i.value),
|
|
1295
1295
|
role: "alert",
|
|
@@ -1298,26 +1298,26 @@ const ul = /* @__PURE__ */ p({
|
|
|
1298
1298
|
"data-bs-autohide": e.autohide,
|
|
1299
1299
|
"data-bs-delay": e.delay
|
|
1300
1300
|
}, [
|
|
1301
|
-
e.title || a.$slots.header ? (l(),
|
|
1301
|
+
e.title || a.$slots.header ? (l(), o("div", Ct, [
|
|
1302
1302
|
$(a.$slots, "header", {}, () => [
|
|
1303
|
-
m("strong",
|
|
1303
|
+
m("strong", Bt, f(e.title), 1)
|
|
1304
1304
|
]),
|
|
1305
|
-
|
|
1305
|
+
n[0] || (n[0] = m("button", {
|
|
1306
1306
|
type: "button",
|
|
1307
1307
|
class: "btn-close",
|
|
1308
1308
|
"data-bs-dismiss": "toast",
|
|
1309
1309
|
"aria-label": "Close"
|
|
1310
1310
|
}, null, -1))
|
|
1311
1311
|
])) : u("", !0),
|
|
1312
|
-
m("div",
|
|
1312
|
+
m("div", wt, [
|
|
1313
1313
|
$(a.$slots, "default")
|
|
1314
1314
|
])
|
|
1315
|
-
], 10,
|
|
1315
|
+
], 10, xt));
|
|
1316
1316
|
}
|
|
1317
|
-
}),
|
|
1317
|
+
}), Tt = ["data-bs-interval"], Mt = ["src", "alt"], Pt = {
|
|
1318
1318
|
key: 1,
|
|
1319
1319
|
class: "carousel-caption d-none d-md-block"
|
|
1320
|
-
},
|
|
1320
|
+
}, qt = { key: 0 }, Ft = { key: 1 }, oe = /* @__PURE__ */ p({
|
|
1321
1321
|
__name: "VibeCarouselSlide",
|
|
1322
1322
|
props: {
|
|
1323
1323
|
active: { type: Boolean, default: !1 },
|
|
@@ -1328,34 +1328,34 @@ const ul = /* @__PURE__ */ p({
|
|
|
1328
1328
|
captionText: { type: String, default: void 0 }
|
|
1329
1329
|
},
|
|
1330
1330
|
emits: ["component-error"],
|
|
1331
|
-
setup(e, { emit:
|
|
1332
|
-
return (t, i) => (l(),
|
|
1331
|
+
setup(e, { emit: d }) {
|
|
1332
|
+
return (t, i) => (l(), o("div", {
|
|
1333
1333
|
class: h(["carousel-item", { active: e.active }]),
|
|
1334
1334
|
"data-bs-interval": e.interval
|
|
1335
1335
|
}, [
|
|
1336
|
-
e.imgSrc ? (l(),
|
|
1336
|
+
e.imgSrc ? (l(), o("img", {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
src: e.imgSrc,
|
|
1339
1339
|
class: "d-block w-100",
|
|
1340
1340
|
alt: e.imgAlt
|
|
1341
|
-
}, null, 8,
|
|
1341
|
+
}, null, 8, Mt)) : u("", !0),
|
|
1342
1342
|
$(t.$slots, "img"),
|
|
1343
|
-
e.caption || e.captionText || t.$slots.caption ? (l(),
|
|
1343
|
+
e.caption || e.captionText || t.$slots.caption ? (l(), o("div", Pt, [
|
|
1344
1344
|
$(t.$slots, "caption", {}, () => [
|
|
1345
|
-
e.caption ? (l(),
|
|
1346
|
-
e.captionText ? (l(),
|
|
1345
|
+
e.caption ? (l(), o("h5", qt, f(e.caption), 1)) : u("", !0),
|
|
1346
|
+
e.captionText ? (l(), o("p", Ft, f(e.captionText), 1)) : u("", !0)
|
|
1347
1347
|
])
|
|
1348
1348
|
])) : u("", !0),
|
|
1349
1349
|
$(t.$slots, "default")
|
|
1350
|
-
], 10,
|
|
1350
|
+
], 10, Tt));
|
|
1351
1351
|
}
|
|
1352
|
-
}),
|
|
1352
|
+
}), It = ["id", "data-bs-ride", "data-bs-interval", "data-bs-keyboard", "data-bs-pause", "data-bs-wrap", "data-bs-touch"], zt = {
|
|
1353
1353
|
key: 0,
|
|
1354
1354
|
class: "carousel-indicators"
|
|
1355
|
-
},
|
|
1355
|
+
}, At = ["data-bs-target", "data-bs-slide-to", "aria-current", "aria-label"], jt = { class: "carousel-inner" }, Lt = {
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
class: "carousel-indicators"
|
|
1358
|
-
},
|
|
1358
|
+
}, Ot = { class: "carousel-inner" }, Dt = ["data-bs-target"], Xt = ["data-bs-target"], Rt = /* @__PURE__ */ p({
|
|
1359
1359
|
__name: "VibeCarousel",
|
|
1360
1360
|
props: {
|
|
1361
1361
|
id: { type: String, required: !0 },
|
|
@@ -1372,9 +1372,9 @@ const ul = /* @__PURE__ */ p({
|
|
|
1372
1372
|
items: { type: Array, default: void 0 }
|
|
1373
1373
|
},
|
|
1374
1374
|
emits: ["slide", "slid", "component-error"],
|
|
1375
|
-
setup(e, { emit:
|
|
1376
|
-
const t =
|
|
1377
|
-
return (i, a) => (l(),
|
|
1375
|
+
setup(e, { emit: d }) {
|
|
1376
|
+
const t = D();
|
|
1377
|
+
return (i, a) => (l(), o("div", {
|
|
1378
1378
|
id: e.id,
|
|
1379
1379
|
class: h(["carousel", "slide", { "carousel-dark": e.dark, "carousel-fade": e.fade }]),
|
|
1380
1380
|
"data-bs-ride": e.ride === !0 ? "carousel" : e.ride,
|
|
@@ -1384,38 +1384,38 @@ const ul = /* @__PURE__ */ p({
|
|
|
1384
1384
|
"data-bs-wrap": e.wrap,
|
|
1385
1385
|
"data-bs-touch": e.touch
|
|
1386
1386
|
}, [
|
|
1387
|
-
e.items && e.items.length > 0 && !L(t).default ? (l(),
|
|
1388
|
-
e.indicators ? (l(),
|
|
1389
|
-
(l(!0),
|
|
1387
|
+
e.items && e.items.length > 0 && !L(t).default ? (l(), o(q, { key: 0 }, [
|
|
1388
|
+
e.indicators ? (l(), o("div", zt, [
|
|
1389
|
+
(l(!0), o(q, null, I(e.items, (n, r) => (l(), o("button", {
|
|
1390
1390
|
key: `indicator-${r}`,
|
|
1391
1391
|
type: "button",
|
|
1392
1392
|
"data-bs-target": `#${e.id}`,
|
|
1393
1393
|
"data-bs-slide-to": r,
|
|
1394
|
-
class: h({ active:
|
|
1395
|
-
"aria-current":
|
|
1394
|
+
class: h({ active: n.active || r === 0 }),
|
|
1395
|
+
"aria-current": n.active || r === 0,
|
|
1396
1396
|
"aria-label": `Slide ${r + 1}`
|
|
1397
|
-
}, null, 10,
|
|
1397
|
+
}, null, 10, At))), 128))
|
|
1398
1398
|
])) : u("", !0),
|
|
1399
|
-
m("div",
|
|
1400
|
-
(l(!0),
|
|
1399
|
+
m("div", jt, [
|
|
1400
|
+
(l(!0), o(q, null, I(e.items, (n, r) => (l(), V(oe, {
|
|
1401
1401
|
key: r,
|
|
1402
|
-
active:
|
|
1403
|
-
interval:
|
|
1404
|
-
"img-src":
|
|
1405
|
-
"img-alt":
|
|
1406
|
-
caption:
|
|
1407
|
-
"caption-text":
|
|
1402
|
+
active: n.active || r === 0,
|
|
1403
|
+
interval: n.interval,
|
|
1404
|
+
"img-src": n.src,
|
|
1405
|
+
"img-alt": n.alt,
|
|
1406
|
+
caption: n.caption,
|
|
1407
|
+
"caption-text": n.captionText
|
|
1408
1408
|
}, null, 8, ["active", "interval", "img-src", "img-alt", "caption", "caption-text"]))), 128))
|
|
1409
1409
|
])
|
|
1410
|
-
], 64)) : (l(),
|
|
1411
|
-
e.indicators ? (l(),
|
|
1410
|
+
], 64)) : (l(), o(q, { key: 1 }, [
|
|
1411
|
+
e.indicators ? (l(), o("div", Lt, [
|
|
1412
1412
|
$(i.$slots, "indicators")
|
|
1413
1413
|
])) : u("", !0),
|
|
1414
|
-
m("div",
|
|
1414
|
+
m("div", Ot, [
|
|
1415
1415
|
$(i.$slots, "default")
|
|
1416
1416
|
])
|
|
1417
1417
|
], 64)),
|
|
1418
|
-
e.controls ? (l(),
|
|
1418
|
+
e.controls ? (l(), o("button", {
|
|
1419
1419
|
key: 2,
|
|
1420
1420
|
class: "carousel-control-prev",
|
|
1421
1421
|
type: "button",
|
|
@@ -1427,8 +1427,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
1427
1427
|
"aria-hidden": "true"
|
|
1428
1428
|
}, null, -1),
|
|
1429
1429
|
m("span", { class: "visually-hidden" }, "Previous", -1)
|
|
1430
|
-
])], 8,
|
|
1431
|
-
e.controls ? (l(),
|
|
1430
|
+
])], 8, Dt)) : u("", !0),
|
|
1431
|
+
e.controls ? (l(), o("button", {
|
|
1432
1432
|
key: 3,
|
|
1433
1433
|
class: "carousel-control-next",
|
|
1434
1434
|
type: "button",
|
|
@@ -1440,10 +1440,10 @@ const ul = /* @__PURE__ */ p({
|
|
|
1440
1440
|
"aria-hidden": "true"
|
|
1441
1441
|
}, null, -1),
|
|
1442
1442
|
m("span", { class: "visually-hidden" }, "Next", -1)
|
|
1443
|
-
])], 8,
|
|
1444
|
-
], 10,
|
|
1443
|
+
])], 8, Xt)) : u("", !0)
|
|
1444
|
+
], 10, It));
|
|
1445
1445
|
}
|
|
1446
|
-
}),
|
|
1446
|
+
}), Gt = ["data-bs-placement", "data-bs-title", "data-bs-trigger", "data-bs-html"], Et = /* @__PURE__ */ p({
|
|
1447
1447
|
__name: "VibeTooltip",
|
|
1448
1448
|
props: {
|
|
1449
1449
|
content: { type: String, required: !0 },
|
|
@@ -1452,8 +1452,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
1452
1452
|
html: { type: Boolean, default: !1 }
|
|
1453
1453
|
},
|
|
1454
1454
|
emits: ["component-error"],
|
|
1455
|
-
setup(e, { emit:
|
|
1456
|
-
return (t, i) => (l(),
|
|
1455
|
+
setup(e, { emit: d }) {
|
|
1456
|
+
return (t, i) => (l(), o("span", {
|
|
1457
1457
|
"data-bs-toggle": "tooltip",
|
|
1458
1458
|
"data-bs-placement": e.placement,
|
|
1459
1459
|
"data-bs-title": e.content,
|
|
@@ -1461,9 +1461,9 @@ const ul = /* @__PURE__ */ p({
|
|
|
1461
1461
|
"data-bs-html": e.html
|
|
1462
1462
|
}, [
|
|
1463
1463
|
$(t.$slots, "default")
|
|
1464
|
-
], 8,
|
|
1464
|
+
], 8, Gt));
|
|
1465
1465
|
}
|
|
1466
|
-
}),
|
|
1466
|
+
}), Yt = ["data-bs-placement", "data-bs-title", "data-bs-content", "data-bs-trigger", "data-bs-html"], Ht = /* @__PURE__ */ p({
|
|
1467
1467
|
__name: "VibePopover",
|
|
1468
1468
|
props: {
|
|
1469
1469
|
title: { type: String, default: void 0 },
|
|
@@ -1473,8 +1473,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
1473
1473
|
html: { type: Boolean, default: !1 }
|
|
1474
1474
|
},
|
|
1475
1475
|
emits: ["component-error"],
|
|
1476
|
-
setup(e, { emit:
|
|
1477
|
-
return (t, i) => (l(),
|
|
1476
|
+
setup(e, { emit: d }) {
|
|
1477
|
+
return (t, i) => (l(), o("span", {
|
|
1478
1478
|
"data-bs-toggle": "popover",
|
|
1479
1479
|
"data-bs-placement": e.placement,
|
|
1480
1480
|
"data-bs-title": e.title,
|
|
@@ -1483,9 +1483,9 @@ const ul = /* @__PURE__ */ p({
|
|
|
1483
1483
|
"data-bs-html": e.html
|
|
1484
1484
|
}, [
|
|
1485
1485
|
$(t.$slots, "default")
|
|
1486
|
-
], 8,
|
|
1486
|
+
], 8, Yt));
|
|
1487
1487
|
}
|
|
1488
|
-
}),
|
|
1488
|
+
}), Ut = /* @__PURE__ */ p({
|
|
1489
1489
|
__name: "VibeScrollspy",
|
|
1490
1490
|
props: {
|
|
1491
1491
|
target: { type: String, required: !0 },
|
|
@@ -1495,8 +1495,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
1495
1495
|
tag: { type: String, default: "div" }
|
|
1496
1496
|
},
|
|
1497
1497
|
emits: ["activate", "component-error"],
|
|
1498
|
-
setup(e, { emit:
|
|
1499
|
-
return (t, i) => (l(),
|
|
1498
|
+
setup(e, { emit: d }) {
|
|
1499
|
+
return (t, i) => (l(), V(T(e.tag), {
|
|
1500
1500
|
"data-bs-spy": "scroll",
|
|
1501
1501
|
"data-bs-target": e.target,
|
|
1502
1502
|
"data-bs-offset": e.offset,
|
|
@@ -1504,13 +1504,13 @@ const ul = /* @__PURE__ */ p({
|
|
|
1504
1504
|
"data-bs-smooth-scroll": e.smoothScroll,
|
|
1505
1505
|
tabindex: "0"
|
|
1506
1506
|
}, {
|
|
1507
|
-
default:
|
|
1507
|
+
default: x(() => [
|
|
1508
1508
|
$(t.$slots, "default")
|
|
1509
1509
|
]),
|
|
1510
1510
|
_: 3
|
|
1511
1511
|
}, 8, ["data-bs-target", "data-bs-offset", "data-bs-method", "data-bs-smooth-scroll"]));
|
|
1512
1512
|
}
|
|
1513
|
-
}),
|
|
1513
|
+
}), Qt = /* @__PURE__ */ p({
|
|
1514
1514
|
__name: "VibeIcon",
|
|
1515
1515
|
props: {
|
|
1516
1516
|
// Icon name (e.g., 'house', 'heart-fill', 'star')
|
|
@@ -1529,14 +1529,14 @@ const ul = /* @__PURE__ */ p({
|
|
|
1529
1529
|
rotate: { type: Number, default: void 0 }
|
|
1530
1530
|
},
|
|
1531
1531
|
emits: ["click", "component-error"],
|
|
1532
|
-
setup(e, { emit:
|
|
1533
|
-
const t = e, i =
|
|
1534
|
-
const
|
|
1535
|
-
return t.size && (["1x", "2x", "3x", "4x", "5x"].includes(t.size) ||
|
|
1536
|
-
}),
|
|
1537
|
-
const
|
|
1532
|
+
setup(e, { emit: d }) {
|
|
1533
|
+
const t = e, i = d, a = c(() => {
|
|
1534
|
+
const s = ["bi", `bi-${t.icon}`];
|
|
1535
|
+
return t.size && (["1x", "2x", "3x", "4x", "5x"].includes(t.size) || s.push(`bi-${t.size}`)), t.customClass && s.push(t.customClass), s.join(" ");
|
|
1536
|
+
}), n = c(() => {
|
|
1537
|
+
const s = {};
|
|
1538
1538
|
if (t.fontSize)
|
|
1539
|
-
|
|
1539
|
+
s.fontSize = t.fontSize;
|
|
1540
1540
|
else if (t.size) {
|
|
1541
1541
|
const v = {
|
|
1542
1542
|
"1x": "1rem",
|
|
@@ -1545,49 +1545,49 @@ const ul = /* @__PURE__ */ p({
|
|
|
1545
1545
|
"4x": "4rem",
|
|
1546
1546
|
"5x": "5rem"
|
|
1547
1547
|
};
|
|
1548
|
-
v[t.size] && (
|
|
1548
|
+
v[t.size] && (s.fontSize = v[t.size]);
|
|
1549
1549
|
}
|
|
1550
|
-
t.color && (
|
|
1550
|
+
t.color && (s.color = t.color);
|
|
1551
1551
|
const y = [];
|
|
1552
|
-
return t.flipH && y.push("scaleX(-1)"), t.flipV && y.push("scaleY(-1)"), t.rotate && y.push(`rotate(${t.rotate}deg)`), y.length > 0 && (
|
|
1553
|
-
}), r = (
|
|
1554
|
-
i("click",
|
|
1552
|
+
return t.flipH && y.push("scaleX(-1)"), t.flipV && y.push("scaleY(-1)"), t.rotate && y.push(`rotate(${t.rotate}deg)`), y.length > 0 && (s.transform = y.join(" "), s.display = "inline-block"), Object.keys(s).length > 0 ? s : void 0;
|
|
1553
|
+
}), r = (s) => {
|
|
1554
|
+
i("click", s);
|
|
1555
1555
|
};
|
|
1556
|
-
return (
|
|
1556
|
+
return (s, y) => (l(), o("i", {
|
|
1557
1557
|
class: h(a.value),
|
|
1558
|
-
style: R(
|
|
1558
|
+
style: R(n.value),
|
|
1559
1559
|
"aria-hidden": !0,
|
|
1560
1560
|
onClick: r
|
|
1561
1561
|
}, null, 6));
|
|
1562
1562
|
}
|
|
1563
|
-
}),
|
|
1563
|
+
}), Kt = { class: "vibe-datatable" }, Wt = { class: "row mb-3" }, Jt = {
|
|
1564
1564
|
key: 0,
|
|
1565
1565
|
class: "col-md-6 mb-2 mb-md-0"
|
|
1566
|
-
},
|
|
1566
|
+
}, Zt = ["placeholder"], _t = {
|
|
1567
1567
|
key: 1,
|
|
1568
1568
|
class: "col-md-6"
|
|
1569
|
-
},
|
|
1569
|
+
}, ea = { class: "d-flex justify-content-md-end align-items-center" }, ta = ["value"], aa = ["onClick"], la = {
|
|
1570
1570
|
key: 0,
|
|
1571
1571
|
class: "ms-1"
|
|
1572
|
-
},
|
|
1572
|
+
}, ia = ["onClick"], na = { key: 0 }, oa = ["colspan"], sa = { class: "row" }, da = {
|
|
1573
1573
|
key: 0,
|
|
1574
1574
|
class: "col-md-6 mb-2 mb-md-0"
|
|
1575
|
-
},
|
|
1575
|
+
}, ra = { class: "datatable-info" }, ua = {
|
|
1576
1576
|
key: 1,
|
|
1577
1577
|
class: "col-md-6"
|
|
1578
|
-
},
|
|
1578
|
+
}, ca = { class: "pagination justify-content-md-end mb-0" }, fa = {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
class: "page-item"
|
|
1581
|
-
},
|
|
1581
|
+
}, va = {
|
|
1582
1582
|
key: 1,
|
|
1583
1583
|
class: "page-item disabled"
|
|
1584
|
-
},
|
|
1584
|
+
}, ba = ["onClick"], ma = {
|
|
1585
1585
|
key: 2,
|
|
1586
1586
|
class: "page-item disabled"
|
|
1587
|
-
},
|
|
1587
|
+
}, ya = {
|
|
1588
1588
|
key: 3,
|
|
1589
1589
|
class: "page-item"
|
|
1590
|
-
},
|
|
1590
|
+
}, ha = /* @__PURE__ */ p({
|
|
1591
1591
|
__name: "VibeDataTable",
|
|
1592
1592
|
props: {
|
|
1593
1593
|
// Data
|
|
@@ -1624,10 +1624,10 @@ const ul = /* @__PURE__ */ p({
|
|
|
1624
1624
|
filteredInfoText: { type: String, default: "Showing {start} to {end} of {total} entries (filtered from {totalRows} total entries)" }
|
|
1625
1625
|
},
|
|
1626
1626
|
emits: ["update:currentPage", "update:perPage", "update:sortBy", "update:sortDesc", "row-clicked", "component-error"],
|
|
1627
|
-
setup(e, { emit:
|
|
1628
|
-
const t = e, i =
|
|
1627
|
+
setup(e, { emit: d }) {
|
|
1628
|
+
const t = e, i = d, a = F(""), n = F(null), r = F(""), s = F(t.currentPage), y = F(t.perPage), v = F(t.sortBy), b = F(t.sortDesc);
|
|
1629
1629
|
O(() => t.currentPage, (S) => {
|
|
1630
|
-
|
|
1630
|
+
s.value = S;
|
|
1631
1631
|
}), O(() => t.perPage, (S) => {
|
|
1632
1632
|
y.value = S;
|
|
1633
1633
|
}), O(() => t.sortBy, (S) => {
|
|
@@ -1635,8 +1635,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
1635
1635
|
}), O(() => t.sortDesc, (S) => {
|
|
1636
1636
|
b.value = S;
|
|
1637
1637
|
}), O(a, (S) => {
|
|
1638
|
-
|
|
1639
|
-
r.value = S,
|
|
1638
|
+
n.value && clearTimeout(n.value), n.value = window.setTimeout(() => {
|
|
1639
|
+
r.value = S, s.value = 1;
|
|
1640
1640
|
}, t.searchDebounce);
|
|
1641
1641
|
});
|
|
1642
1642
|
const g = c(() => {
|
|
@@ -1645,71 +1645,71 @@ const ul = /* @__PURE__ */ p({
|
|
|
1645
1645
|
const S = r.value.toLowerCase();
|
|
1646
1646
|
return t.items.filter((w) => t.columns.some((C) => {
|
|
1647
1647
|
if (C.searchable === !1) return !1;
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
1648
|
+
const j = w[C.key];
|
|
1649
|
+
return j == null ? !1 : String(j).toLowerCase().includes(S);
|
|
1650
1650
|
}));
|
|
1651
1651
|
}), k = c(() => {
|
|
1652
1652
|
if (!t.sortable || !v.value)
|
|
1653
1653
|
return g.value;
|
|
1654
1654
|
const S = [...g.value], w = v.value;
|
|
1655
|
-
return S.sort((C,
|
|
1656
|
-
let
|
|
1657
|
-
return
|
|
1655
|
+
return S.sort((C, j) => {
|
|
1656
|
+
let z = C[w], G = j[w];
|
|
1657
|
+
return z == null ? 1 : G == null ? -1 : (typeof z == "string" && (z = z.toLowerCase()), typeof G == "string" && (G = G.toLowerCase()), z < G ? b.value ? 1 : -1 : z > G ? b.value ? -1 : 1 : 0);
|
|
1658
1658
|
}), S;
|
|
1659
1659
|
}), M = c(() => {
|
|
1660
1660
|
if (!t.paginated)
|
|
1661
1661
|
return k.value;
|
|
1662
|
-
const S = (
|
|
1662
|
+
const S = (s.value - 1) * y.value, w = S + y.value;
|
|
1663
1663
|
return k.value.slice(S, w);
|
|
1664
|
-
}),
|
|
1665
|
-
const S =
|
|
1664
|
+
}), A = c(() => t.items.length), B = c(() => g.value.length), P = c(() => Math.ceil(B.value / y.value)), X = c(() => B.value === 0 ? 0 : (s.value - 1) * y.value + 1), se = c(() => {
|
|
1665
|
+
const S = s.value * y.value;
|
|
1666
1666
|
return Math.min(S, B.value);
|
|
1667
|
-
}),
|
|
1667
|
+
}), de = c(() => (B.value !== A.value ? t.filteredInfoText : t.infoText).replace("{start}", String(X.value)).replace("{end}", String(se.value)).replace("{total}", String(B.value)).replace("{totalRows}", String(A.value))), re = c(() => {
|
|
1668
1668
|
const S = ["table"];
|
|
1669
1669
|
return t.striped && S.push("table-striped"), t.bordered && S.push("table-bordered"), t.borderless && S.push("table-borderless"), t.hover && S.push("table-hover"), t.small && S.push("table-sm"), t.variant && S.push(`table-${t.variant}`), S.join(" ");
|
|
1670
|
-
}),
|
|
1670
|
+
}), ue = (S) => {
|
|
1671
1671
|
!t.sortable || S.sortable === !1 || (v.value === S.key ? b.value = !b.value : (v.value = S.key, b.value = !1), i("update:sortBy", v.value), i("update:sortDesc", b.value));
|
|
1672
|
-
},
|
|
1673
|
-
S < 1 || S >
|
|
1674
|
-
},
|
|
1675
|
-
|
|
1676
|
-
},
|
|
1672
|
+
}, E = (S) => {
|
|
1673
|
+
S < 1 || S > P.value || (s.value = S, i("update:currentPage", S));
|
|
1674
|
+
}, ce = () => {
|
|
1675
|
+
s.value = 1, i("update:perPage", y.value), i("update:currentPage", 1);
|
|
1676
|
+
}, fe = (S, w) => {
|
|
1677
1677
|
i("row-clicked", S, w);
|
|
1678
|
-
},
|
|
1678
|
+
}, ve = (S, w) => {
|
|
1679
1679
|
const C = S[w.key];
|
|
1680
1680
|
return w.formatter ? w.formatter(C, S) : C;
|
|
1681
|
-
},
|
|
1681
|
+
}, be = (S) => !t.sortable || S.sortable === !1 ? "" : v.value !== S.key ? "⇅" : b.value ? "↓" : "↑", me = (S) => {
|
|
1682
1682
|
const w = { ...S.thStyle };
|
|
1683
1683
|
return t.sortable && S.sortable !== !1 && (w.cursor = "pointer"), w;
|
|
1684
1684
|
};
|
|
1685
|
-
return (S, w) => (l(),
|
|
1686
|
-
m("div",
|
|
1687
|
-
e.searchable ? (l(),
|
|
1688
|
-
|
|
1685
|
+
return (S, w) => (l(), o("div", Kt, [
|
|
1686
|
+
m("div", Wt, [
|
|
1687
|
+
e.searchable ? (l(), o("div", Jt, [
|
|
1688
|
+
W(m("input", {
|
|
1689
1689
|
"onUpdate:modelValue": w[0] || (w[0] = (C) => a.value = C),
|
|
1690
1690
|
type: "search",
|
|
1691
1691
|
class: "form-control",
|
|
1692
1692
|
placeholder: e.searchPlaceholder
|
|
1693
|
-
}, null, 8,
|
|
1694
|
-
[
|
|
1693
|
+
}, null, 8, Zt), [
|
|
1694
|
+
[ye, a.value]
|
|
1695
1695
|
])
|
|
1696
1696
|
])) : u("", !0),
|
|
1697
|
-
e.showPerPage && e.paginated ? (l(),
|
|
1698
|
-
m("div",
|
|
1697
|
+
e.showPerPage && e.paginated ? (l(), o("div", _t, [
|
|
1698
|
+
m("div", ea, [
|
|
1699
1699
|
w[6] || (w[6] = m("label", { class: "me-2 mb-0" }, "Show", -1)),
|
|
1700
|
-
|
|
1700
|
+
W(m("select", {
|
|
1701
1701
|
"onUpdate:modelValue": w[1] || (w[1] = (C) => y.value = C),
|
|
1702
1702
|
class: "form-select form-select-sm",
|
|
1703
1703
|
style: { width: "auto" },
|
|
1704
|
-
onChange:
|
|
1704
|
+
onChange: ce
|
|
1705
1705
|
}, [
|
|
1706
|
-
(l(!0),
|
|
1706
|
+
(l(!0), o(q, null, I(e.perPageOptions, (C) => (l(), o("option", {
|
|
1707
1707
|
key: C,
|
|
1708
1708
|
value: C
|
|
1709
|
-
}, f(C), 9,
|
|
1709
|
+
}, f(C), 9, ta))), 128))
|
|
1710
1710
|
], 544), [
|
|
1711
1711
|
[
|
|
1712
|
-
|
|
1712
|
+
he,
|
|
1713
1713
|
y.value,
|
|
1714
1714
|
void 0,
|
|
1715
1715
|
{ number: !0 }
|
|
@@ -1723,105 +1723,105 @@ const ul = /* @__PURE__ */ p({
|
|
|
1723
1723
|
class: h({ "table-responsive": e.responsive })
|
|
1724
1724
|
}, [
|
|
1725
1725
|
m("table", {
|
|
1726
|
-
class: h(
|
|
1726
|
+
class: h(re.value)
|
|
1727
1727
|
}, [
|
|
1728
1728
|
m("thead", null, [
|
|
1729
1729
|
m("tr", null, [
|
|
1730
|
-
(l(!0),
|
|
1730
|
+
(l(!0), o(q, null, I(e.columns, (C) => (l(), o("th", {
|
|
1731
1731
|
key: C.key,
|
|
1732
1732
|
class: h(C.headerClass),
|
|
1733
|
-
style: R(
|
|
1734
|
-
onClick: (
|
|
1733
|
+
style: R(me(C)),
|
|
1734
|
+
onClick: (j) => ue(C)
|
|
1735
1735
|
}, [
|
|
1736
1736
|
N(f(C.label) + " ", 1),
|
|
1737
|
-
e.sortable && C.sortable !== !1 ? (l(),
|
|
1738
|
-
], 14,
|
|
1737
|
+
e.sortable && C.sortable !== !1 ? (l(), o("span", la, f(be(C)), 1)) : u("", !0)
|
|
1738
|
+
], 14, aa))), 128))
|
|
1739
1739
|
])
|
|
1740
1740
|
]),
|
|
1741
1741
|
m("tbody", null, [
|
|
1742
|
-
(l(!0),
|
|
1743
|
-
key:
|
|
1744
|
-
onClick: (
|
|
1742
|
+
(l(!0), o(q, null, I(M.value, (C, j) => (l(), o("tr", {
|
|
1743
|
+
key: j,
|
|
1744
|
+
onClick: (z) => fe(C, j),
|
|
1745
1745
|
style: { cursor: "pointer" }
|
|
1746
1746
|
}, [
|
|
1747
|
-
(l(!0),
|
|
1748
|
-
key:
|
|
1749
|
-
class: h(
|
|
1750
|
-
style: R(
|
|
1747
|
+
(l(!0), o(q, null, I(e.columns, (z) => (l(), o("td", {
|
|
1748
|
+
key: z.key,
|
|
1749
|
+
class: h(z.class),
|
|
1750
|
+
style: R(z.tdStyle)
|
|
1751
1751
|
}, [
|
|
1752
|
-
$(S.$slots, `cell(${
|
|
1752
|
+
$(S.$slots, `cell(${z.key})`, {
|
|
1753
1753
|
item: C,
|
|
1754
|
-
value: C[
|
|
1755
|
-
index:
|
|
1754
|
+
value: C[z.key],
|
|
1755
|
+
index: j
|
|
1756
1756
|
}, () => [
|
|
1757
|
-
N(f(
|
|
1757
|
+
N(f(ve(C, z)), 1)
|
|
1758
1758
|
], !0)
|
|
1759
1759
|
], 6))), 128))
|
|
1760
|
-
], 8,
|
|
1761
|
-
M.value.length === 0 && e.showEmpty ? (l(),
|
|
1760
|
+
], 8, ia))), 128)),
|
|
1761
|
+
M.value.length === 0 && e.showEmpty ? (l(), o("tr", na, [
|
|
1762
1762
|
m("td", {
|
|
1763
1763
|
colspan: e.columns.length,
|
|
1764
1764
|
class: "text-center"
|
|
1765
|
-
}, f(e.emptyText), 9,
|
|
1765
|
+
}, f(e.emptyText), 9, oa)
|
|
1766
1766
|
])) : u("", !0)
|
|
1767
1767
|
])
|
|
1768
1768
|
], 2)
|
|
1769
1769
|
], 2),
|
|
1770
|
-
m("div",
|
|
1771
|
-
e.showInfo ? (l(),
|
|
1772
|
-
m("div",
|
|
1770
|
+
m("div", sa, [
|
|
1771
|
+
e.showInfo ? (l(), o("div", da, [
|
|
1772
|
+
m("div", ra, f(de.value), 1)
|
|
1773
1773
|
])) : u("", !0),
|
|
1774
|
-
e.paginated &&
|
|
1774
|
+
e.paginated && P.value > 1 ? (l(), o("div", ua, [
|
|
1775
1775
|
m("nav", null, [
|
|
1776
|
-
m("ul",
|
|
1776
|
+
m("ul", ca, [
|
|
1777
1777
|
m("li", {
|
|
1778
|
-
class: h(["page-item", { disabled:
|
|
1778
|
+
class: h(["page-item", { disabled: s.value === 1 }])
|
|
1779
1779
|
}, [
|
|
1780
1780
|
m("a", {
|
|
1781
1781
|
class: "page-link",
|
|
1782
1782
|
href: "#",
|
|
1783
|
-
onClick: w[2] || (w[2] =
|
|
1783
|
+
onClick: w[2] || (w[2] = Y((C) => E(s.value - 1), ["prevent"]))
|
|
1784
1784
|
}, " Previous ")
|
|
1785
1785
|
], 2),
|
|
1786
|
-
|
|
1786
|
+
s.value > 3 ? (l(), o("li", fa, [
|
|
1787
1787
|
m("a", {
|
|
1788
1788
|
class: "page-link",
|
|
1789
1789
|
href: "#",
|
|
1790
|
-
onClick: w[3] || (w[3] =
|
|
1790
|
+
onClick: w[3] || (w[3] = Y((C) => E(1), ["prevent"]))
|
|
1791
1791
|
}, "1")
|
|
1792
1792
|
])) : u("", !0),
|
|
1793
|
-
|
|
1793
|
+
s.value > 4 ? (l(), o("li", va, [...w[8] || (w[8] = [
|
|
1794
1794
|
m("span", { class: "page-link" }, "...", -1)
|
|
1795
1795
|
])])) : u("", !0),
|
|
1796
|
-
(l(!0),
|
|
1797
|
-
(C) => C >=
|
|
1798
|
-
), (C) => (l(),
|
|
1796
|
+
(l(!0), o(q, null, I(Array.from({ length: P.value }, (C, j) => j + 1).filter(
|
|
1797
|
+
(C) => C >= s.value - 2 && C <= s.value + 2
|
|
1798
|
+
), (C) => (l(), o("li", {
|
|
1799
1799
|
key: C,
|
|
1800
|
-
class: h(["page-item", { active: C ===
|
|
1800
|
+
class: h(["page-item", { active: C === s.value }])
|
|
1801
1801
|
}, [
|
|
1802
1802
|
m("a", {
|
|
1803
1803
|
class: "page-link",
|
|
1804
1804
|
href: "#",
|
|
1805
|
-
onClick:
|
|
1806
|
-
}, f(C), 9,
|
|
1805
|
+
onClick: Y((j) => E(C), ["prevent"])
|
|
1806
|
+
}, f(C), 9, ba)
|
|
1807
1807
|
], 2))), 128)),
|
|
1808
|
-
|
|
1808
|
+
s.value < P.value - 3 ? (l(), o("li", ma, [...w[9] || (w[9] = [
|
|
1809
1809
|
m("span", { class: "page-link" }, "...", -1)
|
|
1810
1810
|
])])) : u("", !0),
|
|
1811
|
-
|
|
1811
|
+
s.value < P.value - 2 ? (l(), o("li", ya, [
|
|
1812
1812
|
m("a", {
|
|
1813
1813
|
class: "page-link",
|
|
1814
1814
|
href: "#",
|
|
1815
|
-
onClick: w[4] || (w[4] =
|
|
1816
|
-
}, f(
|
|
1815
|
+
onClick: w[4] || (w[4] = Y((C) => E(P.value), ["prevent"]))
|
|
1816
|
+
}, f(P.value), 1)
|
|
1817
1817
|
])) : u("", !0),
|
|
1818
1818
|
m("li", {
|
|
1819
|
-
class: h(["page-item", { disabled:
|
|
1819
|
+
class: h(["page-item", { disabled: s.value === P.value }])
|
|
1820
1820
|
}, [
|
|
1821
1821
|
m("a", {
|
|
1822
1822
|
class: "page-link",
|
|
1823
1823
|
href: "#",
|
|
1824
|
-
onClick: w[5] || (w[5] =
|
|
1824
|
+
onClick: w[5] || (w[5] = Y((C) => E(s.value + 1), ["prevent"]))
|
|
1825
1825
|
}, " Next ")
|
|
1826
1826
|
], 2)
|
|
1827
1827
|
])
|
|
@@ -1830,19 +1830,19 @@ const ul = /* @__PURE__ */ p({
|
|
|
1830
1830
|
])
|
|
1831
1831
|
]));
|
|
1832
1832
|
}
|
|
1833
|
-
}),
|
|
1833
|
+
}), K = (e, d) => {
|
|
1834
1834
|
const t = e.__vccOpts || e;
|
|
1835
|
-
for (const [i, a] of
|
|
1835
|
+
for (const [i, a] of d)
|
|
1836
1836
|
t[i] = a;
|
|
1837
1837
|
return t;
|
|
1838
|
-
},
|
|
1838
|
+
}, ga = /* @__PURE__ */ K(ha, [["__scopeId", "data-v-48221c7b"]]), pa = { class: "mb-3" }, $a = ["for"], ka = {
|
|
1839
1839
|
key: 0,
|
|
1840
1840
|
class: "text-danger"
|
|
1841
|
-
},
|
|
1841
|
+
}, Sa = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"], Va = ["id"], xa = {
|
|
1842
1842
|
key: 2,
|
|
1843
1843
|
class: "valid-feedback",
|
|
1844
1844
|
style: { display: "block" }
|
|
1845
|
-
},
|
|
1845
|
+
}, Ca = ["id"], Ba = /* @__PURE__ */ p({
|
|
1846
1846
|
__name: "VibeFormInput",
|
|
1847
1847
|
props: {
|
|
1848
1848
|
modelValue: {
|
|
@@ -1866,33 +1866,33 @@ const ul = /* @__PURE__ */ p({
|
|
|
1866
1866
|
plaintext: { type: Boolean, default: !1 }
|
|
1867
1867
|
},
|
|
1868
1868
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change"],
|
|
1869
|
-
setup(e, { emit:
|
|
1870
|
-
const t = e, i =
|
|
1869
|
+
setup(e, { emit: d }) {
|
|
1870
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
1871
1871
|
const b = [];
|
|
1872
1872
|
return t.plaintext ? b.push("form-control-plaintext") : (b.push("form-control"), t.size && b.push(`form-control-${t.size}`)), a.value === "valid" && b.push("is-valid"), a.value === "invalid" && b.push("is-invalid"), b.join(" ");
|
|
1873
1873
|
}), r = (b) => {
|
|
1874
1874
|
const g = b.target, k = t.type === "number" ? g.value === "" ? "" : Number(g.value) : g.value;
|
|
1875
1875
|
i("update:modelValue", k), i("input", b), t.validateOn === "input" && i("validate");
|
|
1876
|
-
},
|
|
1876
|
+
}, s = (b) => {
|
|
1877
1877
|
i("change", b), t.validateOn === "change" && i("validate");
|
|
1878
1878
|
}, y = (b) => {
|
|
1879
1879
|
i("blur", b), t.validateOn === "blur" && i("validate");
|
|
1880
1880
|
}, v = (b) => {
|
|
1881
1881
|
i("focus", b);
|
|
1882
1882
|
};
|
|
1883
|
-
return (b, g) => (l(),
|
|
1884
|
-
e.label ? (l(),
|
|
1883
|
+
return (b, g) => (l(), o("div", pa, [
|
|
1884
|
+
e.label ? (l(), o("label", {
|
|
1885
1885
|
key: 0,
|
|
1886
1886
|
for: e.id,
|
|
1887
1887
|
class: "form-label"
|
|
1888
1888
|
}, [
|
|
1889
1889
|
N(f(e.label) + " ", 1),
|
|
1890
|
-
e.required ? (l(),
|
|
1891
|
-
], 8,
|
|
1890
|
+
e.required ? (l(), o("span", ka, "*")) : u("", !0)
|
|
1891
|
+
], 8, $a)) : u("", !0),
|
|
1892
1892
|
m("input", {
|
|
1893
1893
|
id: e.id,
|
|
1894
1894
|
type: e.type,
|
|
1895
|
-
class: h(
|
|
1895
|
+
class: h(n.value),
|
|
1896
1896
|
value: e.modelValue,
|
|
1897
1897
|
placeholder: e.placeholder,
|
|
1898
1898
|
disabled: e.disabled,
|
|
@@ -1901,32 +1901,32 @@ const ul = /* @__PURE__ */ p({
|
|
|
1901
1901
|
"aria-invalid": a.value === "invalid",
|
|
1902
1902
|
"aria-describedby": e.validationMessage || e.helpText ? `${e.id}-feedback` : void 0,
|
|
1903
1903
|
onInput: r,
|
|
1904
|
-
onChange:
|
|
1904
|
+
onChange: s,
|
|
1905
1905
|
onBlur: y,
|
|
1906
1906
|
onFocus: v
|
|
1907
|
-
}, null, 42,
|
|
1908
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
1907
|
+
}, null, 42, Sa),
|
|
1908
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
1909
1909
|
key: 1,
|
|
1910
1910
|
id: `${e.id}-feedback`,
|
|
1911
1911
|
class: "form-text"
|
|
1912
|
-
}, f(e.helpText), 9,
|
|
1913
|
-
a.value === "valid" ? (l(),
|
|
1914
|
-
a.value === "invalid" ? (l(),
|
|
1912
|
+
}, f(e.helpText), 9, Va)) : u("", !0),
|
|
1913
|
+
a.value === "valid" ? (l(), o("div", xa, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
1914
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
1915
1915
|
key: 3,
|
|
1916
1916
|
id: `${e.id}-feedback`,
|
|
1917
1917
|
class: "invalid-feedback",
|
|
1918
1918
|
style: { display: "block" }
|
|
1919
|
-
}, f(e.validationMessage || "Please provide a valid value."), 9,
|
|
1919
|
+
}, f(e.validationMessage || "Please provide a valid value."), 9, Ca)) : u("", !0)
|
|
1920
1920
|
]));
|
|
1921
1921
|
}
|
|
1922
|
-
}),
|
|
1922
|
+
}), wa = { class: "mb-3" }, Na = ["for"], Ta = {
|
|
1923
1923
|
key: 0,
|
|
1924
1924
|
class: "text-danger"
|
|
1925
|
-
},
|
|
1925
|
+
}, Ma = ["id", "value", "disabled", "required", "multiple", "size", "aria-invalid", "aria-describedby"], Pa = ["selected"], qa = ["value", "disabled"], Fa = ["id"], Ia = {
|
|
1926
1926
|
key: 2,
|
|
1927
1927
|
class: "valid-feedback",
|
|
1928
1928
|
style: { display: "block" }
|
|
1929
|
-
},
|
|
1929
|
+
}, za = ["id"], Aa = /* @__PURE__ */ p({
|
|
1930
1930
|
__name: "VibeFormSelect",
|
|
1931
1931
|
props: {
|
|
1932
1932
|
modelValue: {
|
|
@@ -1950,31 +1950,31 @@ const ul = /* @__PURE__ */ p({
|
|
|
1950
1950
|
placeholder: { type: String, default: void 0 }
|
|
1951
1951
|
},
|
|
1952
1952
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
1953
|
-
setup(e, { emit:
|
|
1954
|
-
const t = e, i =
|
|
1953
|
+
setup(e, { emit: d }) {
|
|
1954
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
1955
1955
|
const v = ["form-select"];
|
|
1956
1956
|
return t.size && v.push(`form-select-${t.size}`), a.value === "valid" && v.push("is-valid"), a.value === "invalid" && v.push("is-invalid"), v.join(" ");
|
|
1957
1957
|
}), r = (v) => {
|
|
1958
1958
|
const b = v.target;
|
|
1959
1959
|
let g;
|
|
1960
1960
|
t.multiple ? g = Array.from(b.selectedOptions).map((M) => M.value) : g = b.value, i("update:modelValue", g), i("change", v), t.validateOn === "change" && i("validate");
|
|
1961
|
-
},
|
|
1961
|
+
}, s = (v) => {
|
|
1962
1962
|
i("blur", v), t.validateOn === "blur" && i("validate");
|
|
1963
1963
|
}, y = (v) => {
|
|
1964
1964
|
i("focus", v);
|
|
1965
1965
|
};
|
|
1966
|
-
return (v, b) => (l(),
|
|
1967
|
-
e.label ? (l(),
|
|
1966
|
+
return (v, b) => (l(), o("div", wa, [
|
|
1967
|
+
e.label ? (l(), o("label", {
|
|
1968
1968
|
key: 0,
|
|
1969
1969
|
for: e.id,
|
|
1970
1970
|
class: "form-label"
|
|
1971
1971
|
}, [
|
|
1972
1972
|
N(f(e.label) + " ", 1),
|
|
1973
|
-
e.required ? (l(),
|
|
1974
|
-
], 8,
|
|
1973
|
+
e.required ? (l(), o("span", Ta, "*")) : u("", !0)
|
|
1974
|
+
], 8, Na)) : u("", !0),
|
|
1975
1975
|
m("select", {
|
|
1976
1976
|
id: e.id,
|
|
1977
|
-
class: h(
|
|
1977
|
+
class: h(n.value),
|
|
1978
1978
|
value: e.modelValue,
|
|
1979
1979
|
disabled: e.disabled,
|
|
1980
1980
|
required: e.required,
|
|
@@ -1983,47 +1983,47 @@ const ul = /* @__PURE__ */ p({
|
|
|
1983
1983
|
"aria-invalid": a.value === "invalid",
|
|
1984
1984
|
"aria-describedby": e.validationMessage || e.helpText ? `${e.id}-feedback` : void 0,
|
|
1985
1985
|
onChange: r,
|
|
1986
|
-
onBlur:
|
|
1986
|
+
onBlur: s,
|
|
1987
1987
|
onFocus: y
|
|
1988
1988
|
}, [
|
|
1989
|
-
e.placeholder && !e.multiple ? (l(),
|
|
1989
|
+
e.placeholder && !e.multiple ? (l(), o("option", {
|
|
1990
1990
|
key: 0,
|
|
1991
1991
|
value: "",
|
|
1992
1992
|
disabled: "",
|
|
1993
1993
|
selected: !e.modelValue
|
|
1994
|
-
}, f(e.placeholder), 9,
|
|
1995
|
-
(l(!0),
|
|
1994
|
+
}, f(e.placeholder), 9, Pa)) : u("", !0),
|
|
1995
|
+
(l(!0), o(q, null, I(e.options, (g) => (l(), o("option", {
|
|
1996
1996
|
key: g.value,
|
|
1997
1997
|
value: g.value,
|
|
1998
1998
|
disabled: g.disabled
|
|
1999
|
-
}, f(g.text), 9,
|
|
1999
|
+
}, f(g.text), 9, qa))), 128)),
|
|
2000
2000
|
$(v.$slots, "default")
|
|
2001
|
-
], 42,
|
|
2002
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2001
|
+
], 42, Ma),
|
|
2002
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2003
2003
|
key: 1,
|
|
2004
2004
|
id: `${e.id}-feedback`,
|
|
2005
2005
|
class: "form-text"
|
|
2006
|
-
}, f(e.helpText), 9,
|
|
2007
|
-
a.value === "valid" ? (l(),
|
|
2008
|
-
a.value === "invalid" ? (l(),
|
|
2006
|
+
}, f(e.helpText), 9, Fa)) : u("", !0),
|
|
2007
|
+
a.value === "valid" ? (l(), o("div", Ia, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2008
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2009
2009
|
key: 3,
|
|
2010
2010
|
id: `${e.id}-feedback`,
|
|
2011
2011
|
class: "invalid-feedback",
|
|
2012
2012
|
style: { display: "block" }
|
|
2013
|
-
}, f(e.validationMessage || "Please select a valid option."), 9,
|
|
2013
|
+
}, f(e.validationMessage || "Please select a valid option."), 9, za)) : u("", !0)
|
|
2014
2014
|
]));
|
|
2015
2015
|
}
|
|
2016
|
-
}),
|
|
2016
|
+
}), ja = { class: "mb-3" }, La = ["for"], Oa = {
|
|
2017
2017
|
key: 0,
|
|
2018
2018
|
class: "text-danger"
|
|
2019
|
-
},
|
|
2019
|
+
}, Da = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-invalid", "aria-describedby"], Xa = {
|
|
2020
2020
|
key: 1,
|
|
2021
2021
|
class: "form-text"
|
|
2022
|
-
},
|
|
2022
|
+
}, Ra = ["id"], Ga = {
|
|
2023
2023
|
key: 3,
|
|
2024
2024
|
class: "valid-feedback",
|
|
2025
2025
|
style: { display: "block" }
|
|
2026
|
-
},
|
|
2026
|
+
}, Ea = ["id"], Ya = /* @__PURE__ */ p({
|
|
2027
2027
|
__name: "VibeFormTextarea",
|
|
2028
2028
|
props: {
|
|
2029
2029
|
modelValue: {
|
|
@@ -2048,14 +2048,14 @@ const ul = /* @__PURE__ */ p({
|
|
|
2048
2048
|
showCharCount: { type: Boolean, default: !1 }
|
|
2049
2049
|
},
|
|
2050
2050
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change"],
|
|
2051
|
-
setup(e, { emit:
|
|
2052
|
-
const t = e, i =
|
|
2051
|
+
setup(e, { emit: d }) {
|
|
2052
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
2053
2053
|
const k = ["form-control"];
|
|
2054
2054
|
return t.size && k.push(`form-control-${t.size}`), a.value === "valid" && k.push("is-valid"), a.value === "invalid" && k.push("is-invalid"), k.join(" ");
|
|
2055
2055
|
}), r = c(() => {
|
|
2056
2056
|
const k = typeof t.modelValue == "string" ? t.modelValue : "";
|
|
2057
2057
|
return k ? k.length : 0;
|
|
2058
|
-
}),
|
|
2058
|
+
}), s = c(() => t.maxlength ? `${r.value} / ${t.maxlength}` : `${r.value}`), y = (k) => {
|
|
2059
2059
|
const M = k.target;
|
|
2060
2060
|
i("update:modelValue", M.value), i("input", k), t.validateOn === "input" && i("validate");
|
|
2061
2061
|
}, v = (k) => {
|
|
@@ -2065,18 +2065,18 @@ const ul = /* @__PURE__ */ p({
|
|
|
2065
2065
|
}, g = (k) => {
|
|
2066
2066
|
i("focus", k);
|
|
2067
2067
|
};
|
|
2068
|
-
return (k, M) => (l(),
|
|
2069
|
-
e.label ? (l(),
|
|
2068
|
+
return (k, M) => (l(), o("div", ja, [
|
|
2069
|
+
e.label ? (l(), o("label", {
|
|
2070
2070
|
key: 0,
|
|
2071
2071
|
for: e.id,
|
|
2072
2072
|
class: "form-label"
|
|
2073
2073
|
}, [
|
|
2074
2074
|
N(f(e.label) + " ", 1),
|
|
2075
|
-
e.required ? (l(),
|
|
2076
|
-
], 8,
|
|
2075
|
+
e.required ? (l(), o("span", Oa, "*")) : u("", !0)
|
|
2076
|
+
], 8, La)) : u("", !0),
|
|
2077
2077
|
m("textarea", {
|
|
2078
2078
|
id: e.id,
|
|
2079
|
-
class: h(
|
|
2079
|
+
class: h(n.value),
|
|
2080
2080
|
value: e.modelValue,
|
|
2081
2081
|
placeholder: e.placeholder,
|
|
2082
2082
|
disabled: e.disabled,
|
|
@@ -2090,30 +2090,30 @@ const ul = /* @__PURE__ */ p({
|
|
|
2090
2090
|
onChange: v,
|
|
2091
2091
|
onBlur: b,
|
|
2092
2092
|
onFocus: g
|
|
2093
|
-
}, null, 42,
|
|
2094
|
-
e.showCharCount ? (l(),
|
|
2095
|
-
e.helpText && !e.validationMessage && !e.showCharCount ? (l(),
|
|
2093
|
+
}, null, 42, Da),
|
|
2094
|
+
e.showCharCount ? (l(), o("div", Xa, f(s.value), 1)) : u("", !0),
|
|
2095
|
+
e.helpText && !e.validationMessage && !e.showCharCount ? (l(), o("div", {
|
|
2096
2096
|
key: 2,
|
|
2097
2097
|
id: `${e.id}-feedback`,
|
|
2098
2098
|
class: "form-text"
|
|
2099
|
-
}, f(e.helpText), 9,
|
|
2100
|
-
a.value === "valid" ? (l(),
|
|
2101
|
-
a.value === "invalid" ? (l(),
|
|
2099
|
+
}, f(e.helpText), 9, Ra)) : u("", !0),
|
|
2100
|
+
a.value === "valid" ? (l(), o("div", Ga, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2101
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2102
2102
|
key: 4,
|
|
2103
2103
|
id: `${e.id}-feedback`,
|
|
2104
2104
|
class: "invalid-feedback",
|
|
2105
2105
|
style: { display: "block" }
|
|
2106
|
-
}, f(e.validationMessage || "Please provide a valid value."), 9,
|
|
2106
|
+
}, f(e.validationMessage || "Please provide a valid value."), 9, Ea)) : u("", !0)
|
|
2107
2107
|
]));
|
|
2108
2108
|
}
|
|
2109
|
-
}),
|
|
2109
|
+
}), Ha = { class: "mb-3" }, Ua = ["for"], Qa = {
|
|
2110
2110
|
key: 0,
|
|
2111
2111
|
class: "text-danger"
|
|
2112
|
-
},
|
|
2112
|
+
}, Ka = ["disabled"], Wa = ["id", "value", "disabled", "readonly", "required", "min", "max", "step", "aria-invalid", "aria-describedby"], Ja = ["disabled"], Za = ["id"], _a = {
|
|
2113
2113
|
key: 2,
|
|
2114
2114
|
class: "valid-feedback",
|
|
2115
2115
|
style: { display: "block" }
|
|
2116
|
-
},
|
|
2116
|
+
}, el = ["id"], tl = /* @__PURE__ */ p({
|
|
2117
2117
|
__name: "VibeFormSpinbutton",
|
|
2118
2118
|
props: {
|
|
2119
2119
|
modelValue: {
|
|
@@ -2139,17 +2139,17 @@ const ul = /* @__PURE__ */ p({
|
|
|
2139
2139
|
vertical: { type: Boolean, default: !1 }
|
|
2140
2140
|
},
|
|
2141
2141
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change", "increment", "decrement"],
|
|
2142
|
-
setup(e, { emit:
|
|
2143
|
-
const t = e, i =
|
|
2142
|
+
setup(e, { emit: d }) {
|
|
2143
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
2144
2144
|
const B = ["form-control"];
|
|
2145
2145
|
return t.size && B.push(`form-control-${t.size}`), a.value === "valid" && B.push("is-valid"), a.value === "invalid" && B.push("is-invalid"), B.join(" ");
|
|
2146
2146
|
}), r = c(() => {
|
|
2147
2147
|
const B = ["input-group"];
|
|
2148
2148
|
return t.size && B.push(`input-group-${t.size}`), t.vertical && B.push("input-group-vertical"), B.join(" ");
|
|
2149
|
-
}),
|
|
2150
|
-
const
|
|
2151
|
-
let
|
|
2152
|
-
t.min !== void 0 &&
|
|
2149
|
+
}), s = c(() => t.disabled || t.readonly ? !1 : t.min === void 0 || t.wrap ? !0 : t.modelValue > t.min), y = c(() => t.disabled || t.readonly ? !1 : t.max === void 0 || t.wrap ? !0 : t.modelValue < t.max), v = (B) => {
|
|
2150
|
+
const P = B.target;
|
|
2151
|
+
let X = P.value === "" ? 0 : Number(P.value);
|
|
2152
|
+
t.min !== void 0 && X < t.min && (X = t.min), t.max !== void 0 && X > t.max && (X = t.max), i("update:modelValue", X), i("input", B), t.validateOn === "input" && i("validate");
|
|
2153
2153
|
}, b = (B) => {
|
|
2154
2154
|
i("change", B), t.validateOn === "change" && i("validate");
|
|
2155
2155
|
}, g = (B) => {
|
|
@@ -2160,36 +2160,36 @@ const ul = /* @__PURE__ */ p({
|
|
|
2160
2160
|
if (!y.value) return;
|
|
2161
2161
|
let B = t.modelValue + t.step;
|
|
2162
2162
|
t.max !== void 0 && B > t.max && (B = t.wrap ? t.min ?? 0 : t.max), i("update:modelValue", B), i("increment", B), t.validateOn === "change" && i("validate");
|
|
2163
|
-
},
|
|
2164
|
-
if (!
|
|
2163
|
+
}, A = () => {
|
|
2164
|
+
if (!s.value) return;
|
|
2165
2165
|
let B = t.modelValue - t.step;
|
|
2166
2166
|
t.min !== void 0 && B < t.min && (B = t.wrap ? t.max ?? 0 : t.min), i("update:modelValue", B), i("decrement", B), t.validateOn === "change" && i("validate");
|
|
2167
2167
|
};
|
|
2168
|
-
return (B,
|
|
2169
|
-
e.label ? (l(),
|
|
2168
|
+
return (B, P) => (l(), o("div", Ha, [
|
|
2169
|
+
e.label ? (l(), o("label", {
|
|
2170
2170
|
key: 0,
|
|
2171
2171
|
for: e.id,
|
|
2172
2172
|
class: "form-label"
|
|
2173
2173
|
}, [
|
|
2174
2174
|
N(f(e.label) + " ", 1),
|
|
2175
|
-
e.required ? (l(),
|
|
2176
|
-
], 8,
|
|
2175
|
+
e.required ? (l(), o("span", Qa, "*")) : u("", !0)
|
|
2176
|
+
], 8, Ua)) : u("", !0),
|
|
2177
2177
|
m("div", {
|
|
2178
2178
|
class: h(r.value)
|
|
2179
2179
|
}, [
|
|
2180
2180
|
m("button", {
|
|
2181
2181
|
class: "btn btn-outline-secondary",
|
|
2182
2182
|
type: "button",
|
|
2183
|
-
disabled: !
|
|
2184
|
-
onClick:
|
|
2183
|
+
disabled: !s.value,
|
|
2184
|
+
onClick: A,
|
|
2185
2185
|
"aria-label": "Decrement"
|
|
2186
|
-
}, [...
|
|
2186
|
+
}, [...P[0] || (P[0] = [
|
|
2187
2187
|
m("span", { "aria-hidden": "true" }, "−", -1)
|
|
2188
|
-
])], 8,
|
|
2188
|
+
])], 8, Ka),
|
|
2189
2189
|
m("input", {
|
|
2190
2190
|
id: e.id,
|
|
2191
2191
|
type: "number",
|
|
2192
|
-
class: h(
|
|
2192
|
+
class: h(n.value),
|
|
2193
2193
|
value: e.modelValue,
|
|
2194
2194
|
disabled: e.disabled,
|
|
2195
2195
|
readonly: e.readonly,
|
|
@@ -2203,39 +2203,39 @@ const ul = /* @__PURE__ */ p({
|
|
|
2203
2203
|
onChange: b,
|
|
2204
2204
|
onBlur: g,
|
|
2205
2205
|
onFocus: k
|
|
2206
|
-
}, null, 42,
|
|
2206
|
+
}, null, 42, Wa),
|
|
2207
2207
|
m("button", {
|
|
2208
2208
|
class: "btn btn-outline-secondary",
|
|
2209
2209
|
type: "button",
|
|
2210
2210
|
disabled: !y.value,
|
|
2211
2211
|
onClick: M,
|
|
2212
2212
|
"aria-label": "Increment"
|
|
2213
|
-
}, [...
|
|
2213
|
+
}, [...P[1] || (P[1] = [
|
|
2214
2214
|
m("span", { "aria-hidden": "true" }, "+", -1)
|
|
2215
|
-
])], 8,
|
|
2215
|
+
])], 8, Ja)
|
|
2216
2216
|
], 2),
|
|
2217
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2217
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2218
2218
|
key: 1,
|
|
2219
2219
|
id: `${e.id}-feedback`,
|
|
2220
2220
|
class: "form-text"
|
|
2221
|
-
}, f(e.helpText), 9,
|
|
2222
|
-
a.value === "valid" ? (l(),
|
|
2223
|
-
a.value === "invalid" ? (l(),
|
|
2221
|
+
}, f(e.helpText), 9, Za)) : u("", !0),
|
|
2222
|
+
a.value === "valid" ? (l(), o("div", _a, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2223
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2224
2224
|
key: 3,
|
|
2225
2225
|
id: `${e.id}-feedback`,
|
|
2226
2226
|
class: "invalid-feedback",
|
|
2227
2227
|
style: { display: "block" }
|
|
2228
|
-
}, f(e.validationMessage || "Please provide a valid value."), 9,
|
|
2228
|
+
}, f(e.validationMessage || "Please provide a valid value."), 9, el)) : u("", !0)
|
|
2229
2229
|
]));
|
|
2230
2230
|
}
|
|
2231
|
-
}),
|
|
2231
|
+
}), al = /* @__PURE__ */ K(tl, [["__scopeId", "data-v-f7aee3b4"]]), ll = { class: "mb-3" }, il = ["for"], nl = {
|
|
2232
2232
|
key: 0,
|
|
2233
2233
|
class: "text-danger"
|
|
2234
|
-
},
|
|
2234
|
+
}, ol = ["id", "type", "value", "disabled", "readonly", "required", "min", "max", "aria-invalid", "aria-describedby"], sl = ["id"], dl = {
|
|
2235
2235
|
key: 2,
|
|
2236
2236
|
class: "valid-feedback",
|
|
2237
2237
|
style: { display: "block" }
|
|
2238
|
-
},
|
|
2238
|
+
}, rl = ["id"], ul = /* @__PURE__ */ p({
|
|
2239
2239
|
__name: "VibeFormDatepicker",
|
|
2240
2240
|
props: {
|
|
2241
2241
|
modelValue: {
|
|
@@ -2259,33 +2259,33 @@ const ul = /* @__PURE__ */ p({
|
|
|
2259
2259
|
type: { type: String, default: "date" }
|
|
2260
2260
|
},
|
|
2261
2261
|
emits: ["update:modelValue", "validate", "blur", "focus", "input", "change"],
|
|
2262
|
-
setup(e, { emit:
|
|
2263
|
-
const t = e, i =
|
|
2262
|
+
setup(e, { emit: d }) {
|
|
2263
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
2264
2264
|
const b = ["form-control"];
|
|
2265
2265
|
return t.size && b.push(`form-control-${t.size}`), a.value === "valid" && b.push("is-valid"), a.value === "invalid" && b.push("is-invalid"), b.join(" ");
|
|
2266
2266
|
}), r = (b) => {
|
|
2267
2267
|
const g = b.target;
|
|
2268
2268
|
i("update:modelValue", g.value), i("input", b), t.validateOn === "input" && i("validate");
|
|
2269
|
-
},
|
|
2269
|
+
}, s = (b) => {
|
|
2270
2270
|
i("change", b), t.validateOn === "change" && i("validate");
|
|
2271
2271
|
}, y = (b) => {
|
|
2272
2272
|
i("blur", b), t.validateOn === "blur" && i("validate");
|
|
2273
2273
|
}, v = (b) => {
|
|
2274
2274
|
i("focus", b);
|
|
2275
2275
|
};
|
|
2276
|
-
return (b, g) => (l(),
|
|
2277
|
-
e.label ? (l(),
|
|
2276
|
+
return (b, g) => (l(), o("div", ll, [
|
|
2277
|
+
e.label ? (l(), o("label", {
|
|
2278
2278
|
key: 0,
|
|
2279
2279
|
for: e.id,
|
|
2280
2280
|
class: "form-label"
|
|
2281
2281
|
}, [
|
|
2282
2282
|
N(f(e.label) + " ", 1),
|
|
2283
|
-
e.required ? (l(),
|
|
2284
|
-
], 8,
|
|
2283
|
+
e.required ? (l(), o("span", nl, "*")) : u("", !0)
|
|
2284
|
+
], 8, il)) : u("", !0),
|
|
2285
2285
|
m("input", {
|
|
2286
2286
|
id: e.id,
|
|
2287
2287
|
type: e.type,
|
|
2288
|
-
class: h(
|
|
2288
|
+
class: h(n.value),
|
|
2289
2289
|
value: e.modelValue,
|
|
2290
2290
|
disabled: e.disabled,
|
|
2291
2291
|
readonly: e.readonly,
|
|
@@ -2295,32 +2295,32 @@ const ul = /* @__PURE__ */ p({
|
|
|
2295
2295
|
"aria-invalid": a.value === "invalid",
|
|
2296
2296
|
"aria-describedby": e.validationMessage || e.helpText ? `${e.id}-feedback` : void 0,
|
|
2297
2297
|
onInput: r,
|
|
2298
|
-
onChange:
|
|
2298
|
+
onChange: s,
|
|
2299
2299
|
onBlur: y,
|
|
2300
2300
|
onFocus: v
|
|
2301
|
-
}, null, 42,
|
|
2302
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2301
|
+
}, null, 42, ol),
|
|
2302
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2303
2303
|
key: 1,
|
|
2304
2304
|
id: `${e.id}-feedback`,
|
|
2305
2305
|
class: "form-text"
|
|
2306
|
-
}, f(e.helpText), 9,
|
|
2307
|
-
a.value === "valid" ? (l(),
|
|
2308
|
-
a.value === "invalid" ? (l(),
|
|
2306
|
+
}, f(e.helpText), 9, sl)) : u("", !0),
|
|
2307
|
+
a.value === "valid" ? (l(), o("div", dl, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2308
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2309
2309
|
key: 3,
|
|
2310
2310
|
id: `${e.id}-feedback`,
|
|
2311
2311
|
class: "invalid-feedback",
|
|
2312
2312
|
style: { display: "block" }
|
|
2313
|
-
}, f(e.validationMessage || "Please provide a valid date."), 9,
|
|
2313
|
+
}, f(e.validationMessage || "Please provide a valid date."), 9, rl)) : u("", !0)
|
|
2314
2314
|
]));
|
|
2315
2315
|
}
|
|
2316
|
-
}),
|
|
2316
|
+
}), cl = ["id", "checked", "value", "disabled", "required", "indeterminate", "aria-invalid", "aria-describedby"], fl = ["for"], vl = {
|
|
2317
2317
|
key: 0,
|
|
2318
2318
|
class: "text-danger"
|
|
2319
|
-
},
|
|
2319
|
+
}, bl = ["id"], ml = {
|
|
2320
2320
|
key: 2,
|
|
2321
2321
|
class: "valid-feedback",
|
|
2322
2322
|
style: { display: "block" }
|
|
2323
|
-
},
|
|
2323
|
+
}, yl = ["id"], hl = /* @__PURE__ */ p({
|
|
2324
2324
|
__name: "VibeFormCheckbox",
|
|
2325
2325
|
props: {
|
|
2326
2326
|
modelValue: {
|
|
@@ -2342,22 +2342,22 @@ const ul = /* @__PURE__ */ p({
|
|
|
2342
2342
|
indeterminate: { type: Boolean, default: !1 }
|
|
2343
2343
|
},
|
|
2344
2344
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2345
|
-
setup(e, { emit:
|
|
2346
|
-
const t = e, i =
|
|
2345
|
+
setup(e, { emit: d }) {
|
|
2346
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
2347
2347
|
const g = ["form-check-input"];
|
|
2348
2348
|
return a.value === "valid" && g.push("is-valid"), a.value === "invalid" && g.push("is-invalid"), g.join(" ");
|
|
2349
2349
|
}), r = c(() => {
|
|
2350
2350
|
const g = ["form-check"];
|
|
2351
2351
|
return t.inline && g.push("form-check-inline"), g.join(" ");
|
|
2352
|
-
}),
|
|
2352
|
+
}), s = c(() => Array.isArray(t.modelValue) ? t.modelValue.includes(t.value) : t.modelValue === t.value || t.modelValue === !0), y = (g) => {
|
|
2353
2353
|
const k = g.target;
|
|
2354
2354
|
let M;
|
|
2355
2355
|
if (Array.isArray(t.modelValue))
|
|
2356
2356
|
if (M = [...t.modelValue], k.checked)
|
|
2357
2357
|
M.includes(t.value) || M.push(t.value);
|
|
2358
2358
|
else {
|
|
2359
|
-
const
|
|
2360
|
-
|
|
2359
|
+
const A = M.indexOf(t.value);
|
|
2360
|
+
A > -1 && M.splice(A, 1);
|
|
2361
2361
|
}
|
|
2362
2362
|
else
|
|
2363
2363
|
M = k.checked;
|
|
@@ -2367,14 +2367,14 @@ const ul = /* @__PURE__ */ p({
|
|
|
2367
2367
|
}, b = (g) => {
|
|
2368
2368
|
i("focus", g);
|
|
2369
2369
|
};
|
|
2370
|
-
return (g, k) => (l(),
|
|
2370
|
+
return (g, k) => (l(), o("div", {
|
|
2371
2371
|
class: h(r.value)
|
|
2372
2372
|
}, [
|
|
2373
2373
|
m("input", {
|
|
2374
2374
|
id: e.id,
|
|
2375
2375
|
type: "checkbox",
|
|
2376
|
-
class: h(
|
|
2377
|
-
checked:
|
|
2376
|
+
class: h(n.value),
|
|
2377
|
+
checked: s.value,
|
|
2378
2378
|
value: e.value,
|
|
2379
2379
|
disabled: e.disabled,
|
|
2380
2380
|
required: e.required,
|
|
@@ -2384,37 +2384,37 @@ const ul = /* @__PURE__ */ p({
|
|
|
2384
2384
|
onChange: y,
|
|
2385
2385
|
onBlur: v,
|
|
2386
2386
|
onFocus: b
|
|
2387
|
-
}, null, 42,
|
|
2388
|
-
e.label ? (l(),
|
|
2387
|
+
}, null, 42, cl),
|
|
2388
|
+
e.label ? (l(), o("label", {
|
|
2389
2389
|
key: 0,
|
|
2390
2390
|
for: e.id,
|
|
2391
2391
|
class: "form-check-label"
|
|
2392
2392
|
}, [
|
|
2393
2393
|
N(f(e.label) + " ", 1),
|
|
2394
|
-
e.required ? (l(),
|
|
2395
|
-
], 8,
|
|
2396
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2394
|
+
e.required ? (l(), o("span", vl, "*")) : u("", !0)
|
|
2395
|
+
], 8, fl)) : u("", !0),
|
|
2396
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2397
2397
|
key: 1,
|
|
2398
2398
|
id: `${e.id}-feedback`,
|
|
2399
2399
|
class: "form-text"
|
|
2400
|
-
}, f(e.helpText), 9,
|
|
2401
|
-
a.value === "valid" ? (l(),
|
|
2402
|
-
a.value === "invalid" ? (l(),
|
|
2400
|
+
}, f(e.helpText), 9, bl)) : u("", !0),
|
|
2401
|
+
a.value === "valid" ? (l(), o("div", ml, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2402
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2403
2403
|
key: 3,
|
|
2404
2404
|
id: `${e.id}-feedback`,
|
|
2405
2405
|
class: "invalid-feedback",
|
|
2406
2406
|
style: { display: "block" }
|
|
2407
|
-
}, f(e.validationMessage || "You must check this box."), 9,
|
|
2407
|
+
}, f(e.validationMessage || "You must check this box."), 9, yl)) : u("", !0)
|
|
2408
2408
|
], 2));
|
|
2409
2409
|
}
|
|
2410
|
-
}),
|
|
2410
|
+
}), gl = ["id", "checked", "value", "name", "disabled", "required", "aria-invalid", "aria-describedby"], pl = ["for"], $l = {
|
|
2411
2411
|
key: 0,
|
|
2412
2412
|
class: "text-danger"
|
|
2413
|
-
},
|
|
2413
|
+
}, kl = ["id"], Sl = {
|
|
2414
2414
|
key: 2,
|
|
2415
2415
|
class: "valid-feedback",
|
|
2416
2416
|
style: { display: "block" }
|
|
2417
|
-
},
|
|
2417
|
+
}, Vl = ["id"], xl = /* @__PURE__ */ p({
|
|
2418
2418
|
__name: "VibeFormRadio",
|
|
2419
2419
|
props: {
|
|
2420
2420
|
modelValue: {
|
|
@@ -2436,28 +2436,28 @@ const ul = /* @__PURE__ */ p({
|
|
|
2436
2436
|
helpText: { type: String, default: void 0 }
|
|
2437
2437
|
},
|
|
2438
2438
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2439
|
-
setup(e, { emit:
|
|
2440
|
-
const t = e, i =
|
|
2439
|
+
setup(e, { emit: d }) {
|
|
2440
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
2441
2441
|
const g = ["form-check-input"];
|
|
2442
2442
|
return a.value === "valid" && g.push("is-valid"), a.value === "invalid" && g.push("is-invalid"), g.join(" ");
|
|
2443
2443
|
}), r = c(() => {
|
|
2444
2444
|
const g = ["form-check"];
|
|
2445
2445
|
return t.inline && g.push("form-check-inline"), g.join(" ");
|
|
2446
|
-
}),
|
|
2446
|
+
}), s = c(() => t.modelValue === t.value), y = (g) => {
|
|
2447
2447
|
g.target.checked && i("update:modelValue", t.value), i("change", g), t.validateOn === "change" && i("validate");
|
|
2448
2448
|
}, v = (g) => {
|
|
2449
2449
|
i("blur", g), t.validateOn === "blur" && i("validate");
|
|
2450
2450
|
}, b = (g) => {
|
|
2451
2451
|
i("focus", g);
|
|
2452
2452
|
};
|
|
2453
|
-
return (g, k) => (l(),
|
|
2453
|
+
return (g, k) => (l(), o("div", {
|
|
2454
2454
|
class: h(r.value)
|
|
2455
2455
|
}, [
|
|
2456
2456
|
m("input", {
|
|
2457
2457
|
id: e.id,
|
|
2458
2458
|
type: "radio",
|
|
2459
|
-
class: h(
|
|
2460
|
-
checked:
|
|
2459
|
+
class: h(n.value),
|
|
2460
|
+
checked: s.value,
|
|
2461
2461
|
value: e.value,
|
|
2462
2462
|
name: e.name,
|
|
2463
2463
|
disabled: e.disabled,
|
|
@@ -2467,37 +2467,37 @@ const ul = /* @__PURE__ */ p({
|
|
|
2467
2467
|
onChange: y,
|
|
2468
2468
|
onBlur: v,
|
|
2469
2469
|
onFocus: b
|
|
2470
|
-
}, null, 42,
|
|
2471
|
-
e.label ? (l(),
|
|
2470
|
+
}, null, 42, gl),
|
|
2471
|
+
e.label ? (l(), o("label", {
|
|
2472
2472
|
key: 0,
|
|
2473
2473
|
for: e.id,
|
|
2474
2474
|
class: "form-check-label"
|
|
2475
2475
|
}, [
|
|
2476
2476
|
N(f(e.label) + " ", 1),
|
|
2477
|
-
e.required ? (l(),
|
|
2478
|
-
], 8,
|
|
2479
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2477
|
+
e.required ? (l(), o("span", $l, "*")) : u("", !0)
|
|
2478
|
+
], 8, pl)) : u("", !0),
|
|
2479
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2480
2480
|
key: 1,
|
|
2481
2481
|
id: `${e.id}-feedback`,
|
|
2482
2482
|
class: "form-text"
|
|
2483
|
-
}, f(e.helpText), 9,
|
|
2484
|
-
a.value === "valid" ? (l(),
|
|
2485
|
-
a.value === "invalid" ? (l(),
|
|
2483
|
+
}, f(e.helpText), 9, kl)) : u("", !0),
|
|
2484
|
+
a.value === "valid" ? (l(), o("div", Sl, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2485
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2486
2486
|
key: 3,
|
|
2487
2487
|
id: `${e.id}-feedback`,
|
|
2488
2488
|
class: "invalid-feedback",
|
|
2489
2489
|
style: { display: "block" }
|
|
2490
|
-
}, f(e.validationMessage || "Please select an option."), 9,
|
|
2490
|
+
}, f(e.validationMessage || "Please select an option."), 9, Vl)) : u("", !0)
|
|
2491
2491
|
], 2));
|
|
2492
2492
|
}
|
|
2493
|
-
}),
|
|
2493
|
+
}), Cl = { class: "form-check form-switch" }, Bl = ["id", "checked", "disabled", "required", "aria-invalid", "aria-describedby"], wl = ["for"], Nl = {
|
|
2494
2494
|
key: 0,
|
|
2495
2495
|
class: "text-danger"
|
|
2496
|
-
},
|
|
2496
|
+
}, Tl = ["id"], Ml = {
|
|
2497
2497
|
key: 2,
|
|
2498
2498
|
class: "valid-feedback",
|
|
2499
2499
|
style: { display: "block" }
|
|
2500
|
-
},
|
|
2500
|
+
}, Pl = ["id"], ql = /* @__PURE__ */ p({
|
|
2501
2501
|
__name: "VibeFormSwitch",
|
|
2502
2502
|
props: {
|
|
2503
2503
|
modelValue: {
|
|
@@ -2516,23 +2516,23 @@ const ul = /* @__PURE__ */ p({
|
|
|
2516
2516
|
helpText: { type: String, default: void 0 }
|
|
2517
2517
|
},
|
|
2518
2518
|
emits: ["update:modelValue", "validate", "blur", "focus", "change"],
|
|
2519
|
-
setup(e, { emit:
|
|
2520
|
-
const t = e, i =
|
|
2519
|
+
setup(e, { emit: d }) {
|
|
2520
|
+
const t = e, i = d, a = c(() => t.validationState), n = c(() => {
|
|
2521
2521
|
const v = ["form-check-input"];
|
|
2522
2522
|
return a.value === "valid" && v.push("is-valid"), a.value === "invalid" && v.push("is-invalid"), v.join(" ");
|
|
2523
2523
|
}), r = (v) => {
|
|
2524
2524
|
const b = v.target;
|
|
2525
2525
|
i("update:modelValue", b.checked), i("change", v), t.validateOn === "change" && i("validate");
|
|
2526
|
-
},
|
|
2526
|
+
}, s = (v) => {
|
|
2527
2527
|
i("blur", v), t.validateOn === "blur" && i("validate");
|
|
2528
2528
|
}, y = (v) => {
|
|
2529
2529
|
i("focus", v);
|
|
2530
2530
|
};
|
|
2531
|
-
return (v, b) => (l(),
|
|
2531
|
+
return (v, b) => (l(), o("div", Cl, [
|
|
2532
2532
|
m("input", {
|
|
2533
2533
|
id: e.id,
|
|
2534
2534
|
type: "checkbox",
|
|
2535
|
-
class: h(
|
|
2535
|
+
class: h(n.value),
|
|
2536
2536
|
checked: e.modelValue,
|
|
2537
2537
|
disabled: e.disabled,
|
|
2538
2538
|
required: e.required,
|
|
@@ -2540,46 +2540,46 @@ const ul = /* @__PURE__ */ p({
|
|
|
2540
2540
|
"aria-describedby": e.validationMessage || e.helpText ? `${e.id}-feedback` : void 0,
|
|
2541
2541
|
role: "switch",
|
|
2542
2542
|
onChange: r,
|
|
2543
|
-
onBlur:
|
|
2543
|
+
onBlur: s,
|
|
2544
2544
|
onFocus: y
|
|
2545
|
-
}, null, 42,
|
|
2546
|
-
e.label ? (l(),
|
|
2545
|
+
}, null, 42, Bl),
|
|
2546
|
+
e.label ? (l(), o("label", {
|
|
2547
2547
|
key: 0,
|
|
2548
2548
|
for: e.id,
|
|
2549
2549
|
class: "form-check-label"
|
|
2550
2550
|
}, [
|
|
2551
2551
|
N(f(e.label) + " ", 1),
|
|
2552
|
-
e.required ? (l(),
|
|
2553
|
-
], 8,
|
|
2554
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2552
|
+
e.required ? (l(), o("span", Nl, "*")) : u("", !0)
|
|
2553
|
+
], 8, wl)) : u("", !0),
|
|
2554
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2555
2555
|
key: 1,
|
|
2556
2556
|
id: `${e.id}-feedback`,
|
|
2557
2557
|
class: "form-text"
|
|
2558
|
-
}, f(e.helpText), 9,
|
|
2559
|
-
a.value === "valid" ? (l(),
|
|
2560
|
-
a.value === "invalid" ? (l(),
|
|
2558
|
+
}, f(e.helpText), 9, Tl)) : u("", !0),
|
|
2559
|
+
a.value === "valid" ? (l(), o("div", Ml, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2560
|
+
a.value === "invalid" ? (l(), o("div", {
|
|
2561
2561
|
key: 3,
|
|
2562
2562
|
id: `${e.id}-feedback`,
|
|
2563
2563
|
class: "invalid-feedback",
|
|
2564
2564
|
style: { display: "block" }
|
|
2565
|
-
}, f(e.validationMessage || "You must toggle this switch."), 9,
|
|
2565
|
+
}, f(e.validationMessage || "You must toggle this switch."), 9, Pl)) : u("", !0)
|
|
2566
2566
|
]));
|
|
2567
2567
|
}
|
|
2568
|
-
}),
|
|
2568
|
+
}), Fl = ["for"], Il = {
|
|
2569
2569
|
key: 0,
|
|
2570
2570
|
class: "text-danger"
|
|
2571
|
-
},
|
|
2571
|
+
}, zl = ["id"], Al = {
|
|
2572
2572
|
key: 1,
|
|
2573
2573
|
class: "valid-feedback",
|
|
2574
2574
|
style: { display: "block" }
|
|
2575
|
-
},
|
|
2575
|
+
}, jl = ["id"], Ll = ["for"], Ol = {
|
|
2576
2576
|
key: 0,
|
|
2577
2577
|
class: "text-danger"
|
|
2578
|
-
},
|
|
2578
|
+
}, Dl = ["id"], Xl = {
|
|
2579
2579
|
key: 2,
|
|
2580
2580
|
class: "valid-feedback",
|
|
2581
2581
|
style: { display: "block" }
|
|
2582
|
-
},
|
|
2582
|
+
}, Rl = ["id"], Gl = /* @__PURE__ */ p({
|
|
2583
2583
|
__name: "VibeFormGroup",
|
|
2584
2584
|
props: {
|
|
2585
2585
|
label: { type: String, default: void 0 },
|
|
@@ -2594,78 +2594,78 @@ const ul = /* @__PURE__ */ p({
|
|
|
2594
2594
|
labelAlign: { type: String, default: void 0 }
|
|
2595
2595
|
},
|
|
2596
2596
|
setup(e) {
|
|
2597
|
-
const
|
|
2597
|
+
const d = e, t = c(() => {
|
|
2598
2598
|
const r = [];
|
|
2599
|
-
return
|
|
2599
|
+
return d.floating ? r.push("form-floating") : d.row ? r.push("row", "mb-3") : r.push("mb-3"), r.join(" ");
|
|
2600
2600
|
}), i = c(() => {
|
|
2601
2601
|
const r = [];
|
|
2602
|
-
return
|
|
2603
|
-
}), a = c(() =>
|
|
2604
|
-
return (r,
|
|
2602
|
+
return d.floating ? r.push("form-label") : d.row ? (r.push("col-form-label"), d.labelCols && r.push(`col-sm-${d.labelCols}`), d.labelAlign && r.push(`text-${d.labelAlign}`)) : r.push("form-label"), r.join(" ");
|
|
2603
|
+
}), a = c(() => d.row && d.labelCols ? `col-sm-${12 - Number(d.labelCols)}` : ""), n = c(() => d.labelFor ? `${d.labelFor}-feedback` : void 0);
|
|
2604
|
+
return (r, s) => (l(), o("div", {
|
|
2605
2605
|
class: h(t.value)
|
|
2606
2606
|
}, [
|
|
2607
|
-
e.label && !e.floating ? (l(),
|
|
2607
|
+
e.label && !e.floating ? (l(), o("label", {
|
|
2608
2608
|
key: 0,
|
|
2609
2609
|
for: e.labelFor,
|
|
2610
2610
|
class: h(i.value)
|
|
2611
2611
|
}, [
|
|
2612
2612
|
N(f(e.label) + " ", 1),
|
|
2613
|
-
e.required ? (l(),
|
|
2614
|
-
], 10,
|
|
2615
|
-
e.row && e.labelCols ? (l(),
|
|
2613
|
+
e.required ? (l(), o("span", Il, "*")) : u("", !0)
|
|
2614
|
+
], 10, Fl)) : u("", !0),
|
|
2615
|
+
e.row && e.labelCols ? (l(), o("div", {
|
|
2616
2616
|
key: 1,
|
|
2617
2617
|
class: h(a.value)
|
|
2618
2618
|
}, [
|
|
2619
2619
|
$(r.$slots, "default"),
|
|
2620
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2620
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2621
2621
|
key: 0,
|
|
2622
|
-
id:
|
|
2622
|
+
id: n.value,
|
|
2623
2623
|
class: "form-text"
|
|
2624
|
-
}, f(e.helpText), 9,
|
|
2625
|
-
e.validationState === "valid" ? (l(),
|
|
2626
|
-
e.validationState === "invalid" ? (l(),
|
|
2624
|
+
}, f(e.helpText), 9, zl)) : u("", !0),
|
|
2625
|
+
e.validationState === "valid" ? (l(), o("div", Al, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2626
|
+
e.validationState === "invalid" ? (l(), o("div", {
|
|
2627
2627
|
key: 2,
|
|
2628
|
-
id:
|
|
2628
|
+
id: n.value,
|
|
2629
2629
|
class: "invalid-feedback",
|
|
2630
2630
|
style: { display: "block" }
|
|
2631
|
-
}, f(e.validationMessage || "Please provide a valid value."), 9,
|
|
2632
|
-
], 2)) : (l(),
|
|
2631
|
+
}, f(e.validationMessage || "Please provide a valid value."), 9, jl)) : u("", !0)
|
|
2632
|
+
], 2)) : (l(), o(q, { key: 2 }, [
|
|
2633
2633
|
$(r.$slots, "default"),
|
|
2634
|
-
e.label && e.floating ? (l(),
|
|
2634
|
+
e.label && e.floating ? (l(), o("label", {
|
|
2635
2635
|
key: 0,
|
|
2636
2636
|
for: e.labelFor,
|
|
2637
2637
|
class: h(i.value)
|
|
2638
2638
|
}, [
|
|
2639
2639
|
N(f(e.label) + " ", 1),
|
|
2640
|
-
e.required ? (l(),
|
|
2641
|
-
], 10,
|
|
2642
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2640
|
+
e.required ? (l(), o("span", Ol, "*")) : u("", !0)
|
|
2641
|
+
], 10, Ll)) : u("", !0),
|
|
2642
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2643
2643
|
key: 1,
|
|
2644
|
-
id:
|
|
2644
|
+
id: n.value,
|
|
2645
2645
|
class: "form-text"
|
|
2646
|
-
}, f(e.helpText), 9,
|
|
2647
|
-
e.validationState === "valid" ? (l(),
|
|
2648
|
-
e.validationState === "invalid" ? (l(),
|
|
2646
|
+
}, f(e.helpText), 9, Dl)) : u("", !0),
|
|
2647
|
+
e.validationState === "valid" ? (l(), o("div", Xl, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2648
|
+
e.validationState === "invalid" ? (l(), o("div", {
|
|
2649
2649
|
key: 3,
|
|
2650
|
-
id:
|
|
2650
|
+
id: n.value,
|
|
2651
2651
|
class: "invalid-feedback",
|
|
2652
2652
|
style: { display: "block" }
|
|
2653
|
-
}, f(e.validationMessage || "Please provide a valid value."), 9,
|
|
2653
|
+
}, f(e.validationMessage || "Please provide a valid value."), 9, Rl)) : u("", !0)
|
|
2654
2654
|
], 64))
|
|
2655
2655
|
], 2));
|
|
2656
2656
|
}
|
|
2657
|
-
}),
|
|
2657
|
+
}), El = { class: "mb-3" }, Yl = ["for"], Hl = {
|
|
2658
2658
|
key: 0,
|
|
2659
2659
|
class: "text-danger"
|
|
2660
|
-
},
|
|
2660
|
+
}, Ul = {
|
|
2661
2661
|
key: 1,
|
|
2662
2662
|
class: "alert alert-warning",
|
|
2663
2663
|
role: "alert"
|
|
2664
|
-
},
|
|
2664
|
+
}, Ql = ["id"], Kl = ["id"], Wl = {
|
|
2665
2665
|
key: 4,
|
|
2666
2666
|
class: "valid-feedback",
|
|
2667
2667
|
style: { display: "block" }
|
|
2668
|
-
},
|
|
2668
|
+
}, Jl = ["id"], Zl = /* @__PURE__ */ p({
|
|
2669
2669
|
__name: "VibeFormWysiwyg",
|
|
2670
2670
|
props: {
|
|
2671
2671
|
modelValue: {
|
|
@@ -2689,8 +2689,8 @@ const ul = /* @__PURE__ */ p({
|
|
|
2689
2689
|
height: { type: String, default: "200px" }
|
|
2690
2690
|
},
|
|
2691
2691
|
emits: ["update:modelValue", "validate", "blur", "focus", "change", "ready"],
|
|
2692
|
-
setup(e, { emit:
|
|
2693
|
-
const t = e, i =
|
|
2692
|
+
setup(e, { emit: d }) {
|
|
2693
|
+
const t = e, i = d, a = F(null), n = F(null), r = F(!1), s = F(null), y = c(() => t.validationState), v = c(() => {
|
|
2694
2694
|
const k = ["vibe-wysiwyg-container"];
|
|
2695
2695
|
return y.value === "valid" && k.push("is-valid"), y.value === "invalid" && k.push("is-invalid"), t.disabled && k.push("disabled"), k.join(" ");
|
|
2696
2696
|
}), b = [
|
|
@@ -2701,11 +2701,11 @@ const ul = /* @__PURE__ */ p({
|
|
|
2701
2701
|
["link", "image"],
|
|
2702
2702
|
["clean"]
|
|
2703
2703
|
], g = () => t.toolbar === !1 ? !1 : t.toolbar === !0 || t.toolbar === void 0 ? b : t.toolbar;
|
|
2704
|
-
return
|
|
2704
|
+
return ge(async () => {
|
|
2705
2705
|
try {
|
|
2706
2706
|
const k = await import("quill"), M = k.default || k;
|
|
2707
2707
|
if (await import("quill/dist/quill.snow.css"), a.value) {
|
|
2708
|
-
const
|
|
2708
|
+
const A = {
|
|
2709
2709
|
theme: t.theme,
|
|
2710
2710
|
placeholder: t.placeholder,
|
|
2711
2711
|
readOnly: t.readonly || t.disabled,
|
|
@@ -2713,36 +2713,36 @@ const ul = /* @__PURE__ */ p({
|
|
|
2713
2713
|
toolbar: g()
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
|
-
|
|
2717
|
-
const B =
|
|
2718
|
-
i("update:modelValue",
|
|
2719
|
-
}),
|
|
2716
|
+
n.value = new M(a.value, A), t.modelValue && (n.value.root.innerHTML = t.modelValue), n.value.on("text-change", () => {
|
|
2717
|
+
const B = n.value.root.innerHTML, P = n.value.getText().trim().length === 0;
|
|
2718
|
+
i("update:modelValue", P ? "" : B), i("change"), t.validateOn === "change" && i("validate");
|
|
2719
|
+
}), n.value.root.addEventListener("blur", () => {
|
|
2720
2720
|
i("blur"), t.validateOn === "blur" && i("validate");
|
|
2721
|
-
}),
|
|
2721
|
+
}), n.value.root.addEventListener("focus", () => {
|
|
2722
2722
|
i("focus");
|
|
2723
|
-
}), r.value = !0, i("ready",
|
|
2723
|
+
}), r.value = !0, i("ready", n.value);
|
|
2724
2724
|
}
|
|
2725
2725
|
} catch (k) {
|
|
2726
|
-
console.error("Failed to load Quill editor:", k),
|
|
2726
|
+
console.error("Failed to load Quill editor:", k), s.value = "Failed to load WYSIWYG editor. Please install quill: npm install quill", r.value = !1;
|
|
2727
2727
|
}
|
|
2728
|
-
}),
|
|
2729
|
-
|
|
2728
|
+
}), pe(() => {
|
|
2729
|
+
n.value && (n.value = null);
|
|
2730
2730
|
}), O(() => t.modelValue, (k) => {
|
|
2731
|
-
|
|
2731
|
+
n.value && n.value.root.innerHTML !== k && (n.value.root.innerHTML = k || "");
|
|
2732
2732
|
}), O(() => t.disabled, (k) => {
|
|
2733
|
-
|
|
2733
|
+
n.value && n.value.enable(!k);
|
|
2734
2734
|
}), O(() => t.readonly, (k) => {
|
|
2735
|
-
|
|
2736
|
-
}), (k, M) => (l(),
|
|
2737
|
-
e.label ? (l(),
|
|
2735
|
+
n.value && n.value.enable(!k);
|
|
2736
|
+
}), (k, M) => (l(), o("div", El, [
|
|
2737
|
+
e.label ? (l(), o("label", {
|
|
2738
2738
|
key: 0,
|
|
2739
2739
|
for: e.id,
|
|
2740
2740
|
class: "form-label"
|
|
2741
2741
|
}, [
|
|
2742
2742
|
N(f(e.label) + " ", 1),
|
|
2743
|
-
e.required ? (l(),
|
|
2744
|
-
], 8,
|
|
2745
|
-
|
|
2743
|
+
e.required ? (l(), o("span", Hl, "*")) : u("", !0)
|
|
2744
|
+
], 8, Yl)) : u("", !0),
|
|
2745
|
+
s.value ? (l(), o("div", Ul, f(s.value), 1)) : (l(), o("div", {
|
|
2746
2746
|
key: 2,
|
|
2747
2747
|
class: h(v.value),
|
|
2748
2748
|
style: R({ minHeight: e.height })
|
|
@@ -2751,95 +2751,99 @@ const ul = /* @__PURE__ */ p({
|
|
|
2751
2751
|
ref_key: "editorContainer",
|
|
2752
2752
|
ref: a,
|
|
2753
2753
|
id: e.id
|
|
2754
|
-
}, null, 8,
|
|
2754
|
+
}, null, 8, Ql)
|
|
2755
2755
|
], 6)),
|
|
2756
|
-
e.helpText && !e.validationMessage ? (l(),
|
|
2756
|
+
e.helpText && !e.validationMessage ? (l(), o("div", {
|
|
2757
2757
|
key: 3,
|
|
2758
2758
|
id: `${e.id}-feedback`,
|
|
2759
2759
|
class: "form-text"
|
|
2760
|
-
}, f(e.helpText), 9,
|
|
2761
|
-
y.value === "valid" ? (l(),
|
|
2762
|
-
y.value === "invalid" ? (l(),
|
|
2760
|
+
}, f(e.helpText), 9, Kl)) : u("", !0),
|
|
2761
|
+
y.value === "valid" ? (l(), o("div", Wl, f(e.validationMessage || "Looks good!"), 1)) : u("", !0),
|
|
2762
|
+
y.value === "invalid" ? (l(), o("div", {
|
|
2763
2763
|
key: 5,
|
|
2764
2764
|
id: `${e.id}-feedback`,
|
|
2765
2765
|
class: "invalid-feedback",
|
|
2766
2766
|
style: { display: "block" }
|
|
2767
|
-
}, f(e.validationMessage || "Please provide valid content."), 9,
|
|
2767
|
+
}, f(e.validationMessage || "Please provide valid content."), 9, Jl)) : u("", !0)
|
|
2768
2768
|
]));
|
|
2769
2769
|
}
|
|
2770
|
-
}),
|
|
2771
|
-
|
|
2772
|
-
|
|
2770
|
+
}), _l = /* @__PURE__ */ K(Zl, [["__scopeId", "data-v-792a0bda"]]), ti = {
|
|
2771
|
+
install(e) {
|
|
2772
|
+
e.component("VibeAlert", $e), e.component("VibeBadge", ke), e.component("VibeButton", Se), e.component("VibeButtonGroup", xe), e.component("VibeCloseButton", Be), e.component("VibeSpinner", Ne), e.component("VibePlaceholder", Te), e.component("VibeContainer", Me), e.component("VibeRow", Pe), e.component("VibeCol", qe), e.component("VibeCard", Ie), e.component("VibeCardHeader", J), e.component("VibeCardBody", Z), e.component("VibeCardFooter", _), e.component("VibeCardImg", U), e.component("VibeCardTitle", ee), e.component("VibeCardText", te), e.component("VibeBreadcrumb", Le), e.component("VibeBreadcrumbItem", ae), e.component("VibeNav", De), e.component("VibeNavItem", Q), e.component("VibeNavbar", Xe), e.component("VibeNavbarBrand", Re), e.component("VibeNavbarToggle", Ee), e.component("VibeNavbarNav", Ye), e.component("VibePagination", Ue), e.component("VibePaginationItem", H), e.component("VibeTabContent", Qe), e.component("VibeTabPane", Ke), e.component("VibeListGroup", We), e.component("VibeListGroupItem", le), e.component("VibeProgress", Je), e.component("VibeProgressBar", _e), e.component("VibeAccordion", ot), e.component("VibeAccordionItem", ie), e.component("VibeCollapse", st), e.component("VibeDropdown", ct), e.component("VibeDropdownItem", ne), e.component("VibeModal", gt), e.component("VibeOffcanvas", Vt), e.component("VibeToast", Nt), e.component("VibeCarousel", Rt), e.component("VibeCarouselSlide", oe), e.component("VibeTooltip", Et), e.component("VibePopover", Ht), e.component("VibeScrollspy", Ut), e.component("VibeIcon", Qt), e.component("VibeDataTable", ga), e.component("VibeFormInput", Ba), e.component("VibeFormSelect", Aa), e.component("VibeFormTextarea", Ya), e.component("VibeFormSpinbutton", al), e.component("VibeFormDatepicker", ul), e.component("VibeFormCheckbox", hl), e.component("VibeFormRadio", xl), e.component("VibeFormSwitch", ql), e.component("VibeFormGroup", Gl), e.component("VibeFormWysiwyg", _l);
|
|
2773
|
+
}
|
|
2774
|
+
};
|
|
2775
|
+
function ai(e = "") {
|
|
2776
|
+
const d = F(e), t = F(null), i = F(""), a = F(!1), n = F(!1), r = F(!1), s = async (M) => {
|
|
2773
2777
|
if (!M)
|
|
2774
2778
|
return t.value = null, i.value = "", { valid: !0 };
|
|
2775
2779
|
r.value = !0;
|
|
2776
2780
|
try {
|
|
2777
|
-
const
|
|
2778
|
-
for (const B of
|
|
2779
|
-
const
|
|
2780
|
-
if (
|
|
2781
|
-
return t.value = "invalid", i.value = typeof
|
|
2781
|
+
const A = Array.isArray(M) ? M : [{ validator: M }];
|
|
2782
|
+
for (const B of A) {
|
|
2783
|
+
const P = await B.validator(d.value);
|
|
2784
|
+
if (P === !1 || typeof P == "string")
|
|
2785
|
+
return t.value = "invalid", i.value = typeof P == "string" ? P : B.message || "Invalid value", r.value = !1, { valid: !1, message: i.value };
|
|
2782
2786
|
}
|
|
2783
2787
|
return t.value = "valid", i.value = "", r.value = !1, { valid: !0 };
|
|
2784
2788
|
} catch {
|
|
2785
2789
|
return t.value = "invalid", i.value = "Validation error occurred", r.value = !1, { valid: !1, message: i.value };
|
|
2786
2790
|
}
|
|
2787
2791
|
}, y = () => {
|
|
2788
|
-
|
|
2792
|
+
d.value = e, t.value = null, i.value = "", a.value = !1, n.value = !1, r.value = !1;
|
|
2789
2793
|
}, v = () => {
|
|
2790
|
-
|
|
2794
|
+
n.value = !0;
|
|
2791
2795
|
}, b = () => {
|
|
2792
2796
|
a.value = !0;
|
|
2793
2797
|
}, g = c(() => t.value === "valid"), k = c(() => t.value === "invalid");
|
|
2794
2798
|
return {
|
|
2795
|
-
value:
|
|
2799
|
+
value: d,
|
|
2796
2800
|
validationState: t,
|
|
2797
2801
|
validationMessage: i,
|
|
2798
2802
|
isDirty: a,
|
|
2799
|
-
isTouched:
|
|
2803
|
+
isTouched: n,
|
|
2800
2804
|
isValidating: r,
|
|
2801
2805
|
isValid: g,
|
|
2802
2806
|
isInvalid: k,
|
|
2803
|
-
validate:
|
|
2807
|
+
validate: s,
|
|
2804
2808
|
reset: y,
|
|
2805
2809
|
markAsTouched: v,
|
|
2806
2810
|
markAsDirty: b
|
|
2807
2811
|
};
|
|
2808
2812
|
}
|
|
2809
|
-
const
|
|
2813
|
+
const li = {
|
|
2810
2814
|
required: (e = "This field is required") => ({
|
|
2811
|
-
validator: (
|
|
2815
|
+
validator: (d) => Array.isArray(d) ? d.length > 0 || e : typeof d == "string" ? d.trim().length > 0 || e : d != null && d !== "" || e,
|
|
2812
2816
|
message: e
|
|
2813
2817
|
}),
|
|
2814
2818
|
email: (e = "Please enter a valid email address") => ({
|
|
2815
|
-
validator: (
|
|
2819
|
+
validator: (d) => d ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d) || e : !0,
|
|
2816
2820
|
message: e
|
|
2817
2821
|
}),
|
|
2818
|
-
minLength: (e,
|
|
2819
|
-
validator: (t) => t ? t.length >= e ||
|
|
2820
|
-
message:
|
|
2822
|
+
minLength: (e, d) => ({
|
|
2823
|
+
validator: (t) => t ? t.length >= e || d || `Minimum length is ${e} characters` : !0,
|
|
2824
|
+
message: d
|
|
2821
2825
|
}),
|
|
2822
|
-
maxLength: (e,
|
|
2823
|
-
validator: (t) => t ? t.length <= e ||
|
|
2824
|
-
message:
|
|
2826
|
+
maxLength: (e, d) => ({
|
|
2827
|
+
validator: (t) => t ? t.length <= e || d || `Maximum length is ${e} characters` : !0,
|
|
2828
|
+
message: d
|
|
2825
2829
|
}),
|
|
2826
|
-
min: (e,
|
|
2827
|
-
validator: (t) => t == null || t === "" ? !0 : Number(t) >= e ||
|
|
2828
|
-
message:
|
|
2830
|
+
min: (e, d) => ({
|
|
2831
|
+
validator: (t) => t == null || t === "" ? !0 : Number(t) >= e || d || `Minimum value is ${e}`,
|
|
2832
|
+
message: d
|
|
2829
2833
|
}),
|
|
2830
|
-
max: (e,
|
|
2831
|
-
validator: (t) => t == null || t === "" ? !0 : Number(t) <= e ||
|
|
2832
|
-
message:
|
|
2834
|
+
max: (e, d) => ({
|
|
2835
|
+
validator: (t) => t == null || t === "" ? !0 : Number(t) <= e || d || `Maximum value is ${e}`,
|
|
2836
|
+
message: d
|
|
2833
2837
|
}),
|
|
2834
|
-
pattern: (e,
|
|
2835
|
-
validator: (t) => t ? e.test(t) ||
|
|
2836
|
-
message:
|
|
2838
|
+
pattern: (e, d = "Invalid format") => ({
|
|
2839
|
+
validator: (t) => t ? e.test(t) || d : !0,
|
|
2840
|
+
message: d
|
|
2837
2841
|
}),
|
|
2838
2842
|
url: (e = "Please enter a valid URL") => ({
|
|
2839
|
-
validator: (
|
|
2840
|
-
if (!
|
|
2843
|
+
validator: (d) => {
|
|
2844
|
+
if (!d) return !0;
|
|
2841
2845
|
try {
|
|
2842
|
-
return new URL(
|
|
2846
|
+
return new URL(d), !0;
|
|
2843
2847
|
} catch {
|
|
2844
2848
|
return e;
|
|
2845
2849
|
}
|
|
@@ -2852,64 +2856,65 @@ const ai = {
|
|
|
2852
2856
|
})
|
|
2853
2857
|
};
|
|
2854
2858
|
export {
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2859
|
+
ot as VibeAccordion,
|
|
2860
|
+
ie as VibeAccordionItem,
|
|
2861
|
+
$e as VibeAlert,
|
|
2862
|
+
ke as VibeBadge,
|
|
2863
|
+
Le as VibeBreadcrumb,
|
|
2864
|
+
ae as VibeBreadcrumbItem,
|
|
2865
|
+
Se as VibeButton,
|
|
2866
|
+
xe as VibeButtonGroup,
|
|
2867
|
+
Ie as VibeCard,
|
|
2868
|
+
Z as VibeCardBody,
|
|
2869
|
+
_ as VibeCardFooter,
|
|
2870
|
+
J as VibeCardHeader,
|
|
2871
|
+
U as VibeCardImg,
|
|
2872
|
+
te as VibeCardText,
|
|
2873
|
+
ee as VibeCardTitle,
|
|
2874
|
+
Rt as VibeCarousel,
|
|
2875
|
+
oe as VibeCarouselSlide,
|
|
2876
|
+
Be as VibeCloseButton,
|
|
2877
|
+
qe as VibeCol,
|
|
2878
|
+
st as VibeCollapse,
|
|
2879
|
+
Me as VibeContainer,
|
|
2880
|
+
ga as VibeDataTable,
|
|
2881
|
+
ct as VibeDropdown,
|
|
2882
|
+
ne as VibeDropdownItem,
|
|
2883
|
+
hl as VibeFormCheckbox,
|
|
2884
|
+
ul as VibeFormDatepicker,
|
|
2885
|
+
Gl as VibeFormGroup,
|
|
2886
|
+
Ba as VibeFormInput,
|
|
2887
|
+
xl as VibeFormRadio,
|
|
2888
|
+
Aa as VibeFormSelect,
|
|
2889
|
+
al as VibeFormSpinbutton,
|
|
2890
|
+
ql as VibeFormSwitch,
|
|
2891
|
+
Ya as VibeFormTextarea,
|
|
2892
|
+
_l as VibeFormWysiwyg,
|
|
2893
|
+
Qt as VibeIcon,
|
|
2894
|
+
We as VibeListGroup,
|
|
2895
|
+
le as VibeListGroupItem,
|
|
2896
|
+
gt as VibeModal,
|
|
2897
|
+
De as VibeNav,
|
|
2898
|
+
Q as VibeNavItem,
|
|
2899
|
+
Xe as VibeNavbar,
|
|
2900
|
+
Re as VibeNavbarBrand,
|
|
2901
|
+
Ye as VibeNavbarNav,
|
|
2902
|
+
Ee as VibeNavbarToggle,
|
|
2903
|
+
Vt as VibeOffcanvas,
|
|
2904
|
+
Ue as VibePagination,
|
|
2901
2905
|
H as VibePaginationItem,
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
ti as
|
|
2914
|
-
ai as
|
|
2906
|
+
Te as VibePlaceholder,
|
|
2907
|
+
Ht as VibePopover,
|
|
2908
|
+
Je as VibeProgress,
|
|
2909
|
+
_e as VibeProgressBar,
|
|
2910
|
+
Pe as VibeRow,
|
|
2911
|
+
Ut as VibeScrollspy,
|
|
2912
|
+
Ne as VibeSpinner,
|
|
2913
|
+
Qe as VibeTabContent,
|
|
2914
|
+
Ke as VibeTabPane,
|
|
2915
|
+
Nt as VibeToast,
|
|
2916
|
+
Et as VibeTooltip,
|
|
2917
|
+
ti as default,
|
|
2918
|
+
ai as useFormValidation,
|
|
2919
|
+
li as validators
|
|
2915
2920
|
};
|