@robuust-digital/vue-components 2.0.0-rc.4 → 2.0.0-rc.5
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/core/index.js +195 -185
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createElementBlock as l, openBlock as
|
|
1
|
+
import { createElementBlock as l, openBlock as a, createElementVNode as o, Fragment as w, renderList as S, renderSlot as f, createTextVNode as A, toDisplayString as m, createVNode as V, unref as h, normalizeClass as p, createBlock as x, resolveDynamicComponent as B, withCtx as M, createCommentVNode as $, computed as C, useAttrs as F, withDirectives as j, mergeProps as b, vModelDynamic as N, normalizeProps as P, guardReactiveProps as H, vModelSelect as E, ref as q, vModelText as R } from "vue";
|
|
2
2
|
import { r as U } from "../_shared/XMarkIcon-90mcPzBs.js";
|
|
3
3
|
import { r as Z } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
|
|
4
4
|
import { _ as Ze } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
|
|
5
5
|
import { _ as Ge } from "../_shared/ButtonBase-CQjlJ85F.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as O } from "../_shared/FormInput-abFMz_J4.js";
|
|
7
7
|
import { _ as Qe } from "../_shared/FormInput-abFMz_J4.js";
|
|
8
8
|
import { S as K } from "../_shared/icon-spinner-CmxIOqaK.js";
|
|
9
9
|
function G(e, r) {
|
|
10
|
-
return
|
|
10
|
+
return a(), l("svg", {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
viewBox: "0 0 24 24",
|
|
13
13
|
fill: "currentColor",
|
|
@@ -22,7 +22,7 @@ function G(e, r) {
|
|
|
22
22
|
]);
|
|
23
23
|
}
|
|
24
24
|
function J(e, r) {
|
|
25
|
-
return
|
|
25
|
+
return a(), l("svg", {
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
viewBox: "0 0 24 24",
|
|
28
28
|
fill: "currentColor",
|
|
@@ -58,20 +58,20 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
|
-
return (r, i) => (
|
|
62
|
-
(
|
|
61
|
+
return (r, i) => (a(), l("div", Q, [
|
|
62
|
+
(a(!0), l(w, null, S(e.items, (c, s) => (a(), l("details", {
|
|
63
63
|
key: s,
|
|
64
64
|
open: e.defaultOpenIndex === s,
|
|
65
65
|
name: e.name,
|
|
66
66
|
class: "group/accordion"
|
|
67
67
|
}, [
|
|
68
68
|
o("summary", null, [
|
|
69
|
-
|
|
69
|
+
f(r.$slots, "summary", {
|
|
70
70
|
item: c,
|
|
71
71
|
active: e.defaultOpenIndex === s
|
|
72
72
|
}, () => [
|
|
73
73
|
A(m(c.title) + " ", 1),
|
|
74
|
-
|
|
74
|
+
f(r.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
|
|
75
75
|
V(h(J), { class: "size-5 group-open/accordion:rotate-45 transition-transform" })
|
|
76
76
|
])
|
|
77
77
|
])
|
|
@@ -79,7 +79,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
|
|
|
79
79
|
o("div", {
|
|
80
80
|
class: p(["rvc-accordion-content", e.contentClass])
|
|
81
81
|
}, [
|
|
82
|
-
|
|
82
|
+
f(r.$slots, "content", { item: c }, () => [
|
|
83
83
|
o("div", {
|
|
84
84
|
innerHTML: c.content
|
|
85
85
|
}, null, 8, X)
|
|
@@ -115,24 +115,24 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
|
|
|
115
115
|
},
|
|
116
116
|
emits: ["alert:close"],
|
|
117
117
|
setup(e) {
|
|
118
|
-
return (r, i) => (
|
|
118
|
+
return (r, i) => (a(), x(B(e.as), {
|
|
119
119
|
class: p(["rvc-alert", `rvc-alert-${e.type}`])
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
-
e.icon ? (
|
|
121
|
+
default: M(() => [
|
|
122
|
+
f(r.$slots, "icon", {}, () => [
|
|
123
|
+
e.icon ? (a(), x(B(e.icon), {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "rvc-alert-icon"
|
|
126
126
|
})) : $("", !0)
|
|
127
127
|
]),
|
|
128
128
|
o("div", null, [
|
|
129
|
-
|
|
129
|
+
f(r.$slots, "title", {}, () => [
|
|
130
130
|
o("span", Y, m(e.title), 1)
|
|
131
131
|
]),
|
|
132
|
-
|
|
132
|
+
f(r.$slots, "default")
|
|
133
133
|
]),
|
|
134
|
-
|
|
135
|
-
e.close ? (
|
|
134
|
+
f(r.$slots, "close", {}, () => [
|
|
135
|
+
e.close ? (a(), l("button", {
|
|
136
136
|
key: 0,
|
|
137
137
|
type: "button",
|
|
138
138
|
class: "rvc-alert-close transition-colors",
|
|
@@ -171,26 +171,26 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
|
|
|
171
171
|
setup(e, { emit: r }) {
|
|
172
172
|
const i = e, c = r, s = C({
|
|
173
173
|
get: () => i.modelValue,
|
|
174
|
-
set: (
|
|
175
|
-
}), { hasModelBinding: g } =
|
|
174
|
+
set: (n) => c("update:modelValue", n)
|
|
175
|
+
}), { hasModelBinding: g } = O(), u = {
|
|
176
176
|
...F(),
|
|
177
177
|
id: i.id,
|
|
178
178
|
type: "checkbox",
|
|
179
179
|
class: "absolute opacity-0 inset-0 cursor-pointer peer/checkbox"
|
|
180
180
|
};
|
|
181
|
-
return (
|
|
181
|
+
return (n, t) => (a(), l("div", {
|
|
182
182
|
class: p(["rvc-checkbox", e.rootClass])
|
|
183
183
|
}, [
|
|
184
|
-
h(g) ?
|
|
185
|
-
"onUpdate:modelValue":
|
|
184
|
+
h(g) ? j((a(), l("input", b({ key: 0 }, u, {
|
|
185
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => s.value = d)
|
|
186
186
|
}), null, 16)), [
|
|
187
187
|
[N, s.value]
|
|
188
|
-
]) : (
|
|
188
|
+
]) : (a(), l("input", P(b({ key: 1 }, u)), null, 16)),
|
|
189
189
|
o("span", _, [
|
|
190
190
|
V(h(G))
|
|
191
191
|
]),
|
|
192
192
|
o("div", null, [
|
|
193
|
-
|
|
193
|
+
n.$slots.default || e.label ? f(n.$slots, "default", { key: 0 }, () => [
|
|
194
194
|
o("label", { for: e.id }, m(e.label), 9, ee)
|
|
195
195
|
]) : $("", !0)
|
|
196
196
|
])
|
|
@@ -198,7 +198,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
|
|
|
198
198
|
}
|
|
199
199
|
});
|
|
200
200
|
function te(e, r) {
|
|
201
|
-
return
|
|
201
|
+
return a(), l("svg", {
|
|
202
202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
203
203
|
viewBox: "0 0 16 16",
|
|
204
204
|
fill: "currentColor",
|
|
@@ -213,7 +213,7 @@ function te(e, r) {
|
|
|
213
213
|
]);
|
|
214
214
|
}
|
|
215
215
|
function ae(e, r) {
|
|
216
|
-
return
|
|
216
|
+
return a(), l("svg", {
|
|
217
217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
218
218
|
viewBox: "0 0 20 20",
|
|
219
219
|
fill: "currentColor",
|
|
@@ -228,7 +228,7 @@ function ae(e, r) {
|
|
|
228
228
|
]);
|
|
229
229
|
}
|
|
230
230
|
function ne(e, r) {
|
|
231
|
-
return
|
|
231
|
+
return a(), l("svg", {
|
|
232
232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
233
233
|
viewBox: "0 0 20 20",
|
|
234
234
|
fill: "currentColor",
|
|
@@ -273,34 +273,34 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
273
273
|
setup(e, { emit: r }) {
|
|
274
274
|
const i = e, c = r, s = C({
|
|
275
275
|
get: () => i.modelValue,
|
|
276
|
-
set: (
|
|
277
|
-
}), { hasModelBinding: g } =
|
|
278
|
-
return (
|
|
276
|
+
set: (v) => c("update:modelValue", v)
|
|
277
|
+
}), { hasModelBinding: g } = O();
|
|
278
|
+
return (v, u) => (a(), l("div", {
|
|
279
279
|
class: p([
|
|
280
280
|
"rvc-select",
|
|
281
281
|
`rvc-select-${e.size}`,
|
|
282
282
|
e.rootClass
|
|
283
283
|
])
|
|
284
284
|
}, [
|
|
285
|
-
e.prefixIcon ? v
|
|
285
|
+
e.prefixIcon ? f(v.$slots, "prefixIcon", {
|
|
286
286
|
key: 0,
|
|
287
287
|
icon: e.prefixIcon
|
|
288
288
|
}, () => [
|
|
289
|
-
(
|
|
289
|
+
(a(), x(B(e.prefixIcon), { "aria-hidden": "true" }))
|
|
290
290
|
]) : $("", !0),
|
|
291
|
-
v
|
|
292
|
-
h(g) ?
|
|
293
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
291
|
+
f(v.$slots, "select", P(H(v.$attrs)), () => [
|
|
292
|
+
h(g) ? j((a(), l("select", b({ key: 0 }, v.$attrs, {
|
|
293
|
+
"onUpdate:modelValue": u[0] || (u[0] = (n) => s.value = n)
|
|
294
294
|
}), [
|
|
295
|
-
v
|
|
295
|
+
f(v.$slots, "default")
|
|
296
296
|
], 16)), [
|
|
297
297
|
[E, s.value]
|
|
298
|
-
]) : (
|
|
299
|
-
v
|
|
298
|
+
]) : (a(), l("select", P(b({ key: 1 }, v.$attrs)), [
|
|
299
|
+
f(v.$slots, "default")
|
|
300
300
|
], 16))
|
|
301
301
|
]),
|
|
302
|
-
v
|
|
303
|
-
(
|
|
302
|
+
f(v.$slots, "icon", { icon: e.icon }, () => [
|
|
303
|
+
(a(), x(B(e.icon ?? h(Z)), { "aria-hidden": "true" }))
|
|
304
304
|
])
|
|
305
305
|
], 2));
|
|
306
306
|
}
|
|
@@ -334,29 +334,29 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
334
334
|
emits: ["pagination:change", "pagination:perPage"],
|
|
335
335
|
setup(e, { emit: r }) {
|
|
336
336
|
const i = e, c = r, s = q(i.perPage);
|
|
337
|
-
return (g,
|
|
337
|
+
return (g, v) => {
|
|
338
338
|
var u;
|
|
339
|
-
return (u = e.pagination) != null && u.total ? (
|
|
340
|
-
|
|
339
|
+
return (u = e.pagination) != null && u.total ? (a(), l("div", le, [
|
|
340
|
+
f(g.$slots, "perPage", b(e.pagination, { perPage: s.value }), () => [
|
|
341
341
|
V(D, {
|
|
342
342
|
modelValue: s.value,
|
|
343
343
|
"onUpdate:modelValue": [
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
v[0] || (v[0] = (n) => s.value = n),
|
|
345
|
+
v[1] || (v[1] = (n) => c("pagination:perPage", n))
|
|
346
346
|
],
|
|
347
347
|
size: "sm",
|
|
348
348
|
"root-class": "w-fit"
|
|
349
349
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
(
|
|
352
|
-
key: `pagination-items-per-page-option-${
|
|
353
|
-
value:
|
|
354
|
-
}, m(
|
|
350
|
+
default: M(() => [
|
|
351
|
+
(a(!0), l(w, null, S(e.perPageOptions, (n) => (a(), l("option", {
|
|
352
|
+
key: `pagination-items-per-page-option-${n}`,
|
|
353
|
+
value: n
|
|
354
|
+
}, m(n) + " " + m(e.perPageLabel), 9, se))), 128))
|
|
355
355
|
]),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["modelValue"])
|
|
358
358
|
]),
|
|
359
|
-
|
|
359
|
+
f(g.$slots, "info", b(e.pagination, { fromLabel: e.fromLabel }), () => [
|
|
360
360
|
o("div", ie, [
|
|
361
361
|
o("div", oe, m(e.pagination.from) + " - " + m(e.pagination.to) + " " + m(e.fromLabel) + " " + m(e.pagination.total), 1)
|
|
362
362
|
])
|
|
@@ -364,34 +364,34 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
364
364
|
o("div", re, [
|
|
365
365
|
o("nav", null, [
|
|
366
366
|
o("ol", ue, [
|
|
367
|
-
(
|
|
368
|
-
key: `pagination-link-${
|
|
367
|
+
(a(!0), l(w, null, S(e.pagination.links, (n, t) => (a(), l("li", {
|
|
368
|
+
key: `pagination-link-${n.label}-${t}`,
|
|
369
369
|
class: "hidden md:block first:block last:block"
|
|
370
370
|
}, [
|
|
371
371
|
o("button", {
|
|
372
372
|
type: "button",
|
|
373
|
-
disabled:
|
|
373
|
+
disabled: n.label === "..." || !n.url,
|
|
374
374
|
class: p([
|
|
375
375
|
"rvc-pagination-button",
|
|
376
|
-
{ "rvc-pagination-button-active":
|
|
376
|
+
{ "rvc-pagination-button-active": n.active }
|
|
377
377
|
]),
|
|
378
|
-
onClick: (d) =>
|
|
378
|
+
onClick: (d) => n.url && c("pagination:change", n.url)
|
|
379
379
|
}, [
|
|
380
|
-
|
|
380
|
+
n.url !== "..." && t === 0 ? (a(), x(h(ae), {
|
|
381
381
|
key: 0,
|
|
382
382
|
"aria-hidden": "true",
|
|
383
383
|
class: p([
|
|
384
384
|
"size-5 text-slate-80",
|
|
385
|
-
{ "opacity-50": !
|
|
385
|
+
{ "opacity-50": !n.url }
|
|
386
386
|
])
|
|
387
|
-
}, null, 8, ["class"])) :
|
|
387
|
+
}, null, 8, ["class"])) : n.label !== "..." && t === e.pagination.links.length - 1 ? (a(), x(h(ne), {
|
|
388
388
|
key: 1,
|
|
389
389
|
"aria-hidden": "true",
|
|
390
390
|
class: p([
|
|
391
391
|
"size-5 text-slate-80",
|
|
392
|
-
{ "opacity-50": !
|
|
392
|
+
{ "opacity-50": !n.url }
|
|
393
393
|
])
|
|
394
|
-
}, null, 8, ["class"])) :
|
|
394
|
+
}, null, 8, ["class"])) : n.label === "..." ? (a(), l("span", de, " ... ")) : (a(), l("span", ge, m(n.label), 1))
|
|
395
395
|
], 10, ce)
|
|
396
396
|
]))), 128))
|
|
397
397
|
])
|
|
@@ -440,7 +440,7 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
440
440
|
},
|
|
441
441
|
emits: ["table:sortBy", "pagination:change", "pagination:perPage"],
|
|
442
442
|
setup(e, { emit: r }) {
|
|
443
|
-
const i = e, c = r, s = q(null), g = (u) => i.headers.find((
|
|
443
|
+
const i = e, c = r, s = q(null), g = (u) => i.headers.find((n) => n.key === u), v = (u) => {
|
|
444
444
|
!s.value || s.value.key !== u.key ? s.value = {
|
|
445
445
|
key: u.key,
|
|
446
446
|
direction: "asc"
|
|
@@ -449,108 +449,118 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
449
449
|
direction: "desc"
|
|
450
450
|
} : s.value = null, c("table:sortBy", s.value);
|
|
451
451
|
};
|
|
452
|
-
return (u,
|
|
452
|
+
return (u, n) => (a(), l("div", null, [
|
|
453
453
|
o("div", {
|
|
454
454
|
class: p(["rvc-table-wrapper", e.wrapperClass])
|
|
455
455
|
}, [
|
|
456
456
|
o("table", {
|
|
457
457
|
class: p([{ "rvc-table-striped": e.striped }, "w-full rvc-table"])
|
|
458
458
|
}, [
|
|
459
|
-
e.headers.length ? (
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
(
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
"justify-start flex-row-reverse": n.align === "right"
|
|
481
|
-
}
|
|
482
|
-
]),
|
|
483
|
-
onClick: (w) => f(n)
|
|
484
|
-
}, [
|
|
485
|
-
v(u.$slots, "header-label", {
|
|
486
|
-
sortBy: s.value,
|
|
487
|
-
header: n
|
|
488
|
-
}, () => [
|
|
489
|
-
A(m(n.label), 1)
|
|
490
|
-
]),
|
|
491
|
-
V(h(te), {
|
|
459
|
+
e.headers.length ? (a(), l("thead", ve, [
|
|
460
|
+
f(u.$slots, "headers", { headers: e.headers }, () => [
|
|
461
|
+
o("tr", null, [
|
|
462
|
+
(a(!0), l(w, null, S(e.headers, (t, d) => f(u.$slots, "header", {
|
|
463
|
+
header: t,
|
|
464
|
+
index: d
|
|
465
|
+
}, () => {
|
|
466
|
+
var y, k;
|
|
467
|
+
return [
|
|
468
|
+
(a(), l("th", b({ ref_for: !0 }, t, {
|
|
469
|
+
key: `rvc-table-header-${t.id}`,
|
|
470
|
+
class: {
|
|
471
|
+
"text-left": t.align === "left" || !t.align,
|
|
472
|
+
"text-center": t.align === "center",
|
|
473
|
+
"text-right": t.align === "right"
|
|
474
|
+
}
|
|
475
|
+
}), [
|
|
476
|
+
t.sortable && t.key ? (a(), l("button", {
|
|
477
|
+
key: 0,
|
|
478
|
+
type: "button",
|
|
479
|
+
"aria-label": `Sort on ${t.label}`,
|
|
492
480
|
class: p([
|
|
493
|
-
"
|
|
481
|
+
"flex w-full gap-x-1.5 hover:underline group/table",
|
|
494
482
|
{
|
|
495
|
-
"
|
|
496
|
-
"
|
|
497
|
-
"rotate-180": ((y = s.value) == null ? void 0 : y.key) === n.key && s.value.direction === "desc"
|
|
483
|
+
"justify-center": t.align === "center",
|
|
484
|
+
"justify-start flex-row-reverse": t.align === "right"
|
|
498
485
|
}
|
|
499
|
-
])
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
486
|
+
]),
|
|
487
|
+
onClick: (T) => v(t)
|
|
488
|
+
}, [
|
|
489
|
+
f(u.$slots, "header-label", {
|
|
490
|
+
sortBy: s.value,
|
|
491
|
+
header: t
|
|
492
|
+
}, () => [
|
|
493
|
+
A(m(t.label), 1)
|
|
494
|
+
]),
|
|
495
|
+
V(h(te), {
|
|
496
|
+
class: p([
|
|
497
|
+
"size-4 shrink-0 transition",
|
|
498
|
+
{
|
|
499
|
+
"opacity-100": ((y = s.value) == null ? void 0 : y.key) === t.key,
|
|
500
|
+
"opacity-0 group-hover/table:opacity-30": !s.value || s.value.key !== t.key,
|
|
501
|
+
"rotate-180": ((k = s.value) == null ? void 0 : k.key) === t.key && s.value.direction === "desc"
|
|
502
|
+
}
|
|
503
|
+
])
|
|
504
|
+
}, null, 8, ["class"])
|
|
505
|
+
], 10, me)) : f(u.$slots, "header-label", {
|
|
506
|
+
key: 1,
|
|
507
|
+
sortBy: s.value,
|
|
508
|
+
header: t
|
|
509
|
+
}, () => [
|
|
510
|
+
A(m(t.label), 1)
|
|
511
|
+
])
|
|
512
|
+
], 16))
|
|
513
|
+
];
|
|
514
|
+
})), 256))
|
|
510
515
|
])
|
|
511
516
|
])
|
|
512
517
|
])) : $("", !0),
|
|
513
518
|
o("tbody", null, [
|
|
514
|
-
e.items.length && !e.spinning ? (
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
},
|
|
521
|
-
(
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
519
|
+
e.items.length && !e.spinning ? (a(!0), l(w, { key: 0 }, S(e.items, (t, d) => f(u.$slots, "items", {
|
|
520
|
+
item: t,
|
|
521
|
+
index: d
|
|
522
|
+
}, () => [
|
|
523
|
+
(a(), l("tr", {
|
|
524
|
+
key: `rvc-table-row-${d}-${t.id}`
|
|
525
|
+
}, [
|
|
526
|
+
f(u.$slots, "item", {
|
|
527
|
+
item: t,
|
|
528
|
+
index: d
|
|
529
|
+
}, () => [
|
|
530
|
+
(a(!0), l(w, null, S(t, (y, k) => {
|
|
531
|
+
var T, L, I, z;
|
|
532
|
+
return a(), l("td", b({
|
|
533
|
+
key: `rvc-table-row-${d}-column-${k}-${t.id}`,
|
|
534
|
+
ref_for: !0
|
|
535
|
+
}, t.attrs, {
|
|
536
|
+
class: {
|
|
537
|
+
"text-left": ((T = g(k)) == null ? void 0 : T.align) === "left" || !((L = g(k)) != null && L.align),
|
|
538
|
+
"text-center": ((I = g(k)) == null ? void 0 : I.align) === "center",
|
|
539
|
+
"text-right": ((z = g(k)) == null ? void 0 : z.align) === "right"
|
|
540
|
+
},
|
|
541
|
+
innerHTML: y
|
|
542
|
+
}), null, 16, pe);
|
|
543
|
+
}), 128))
|
|
544
|
+
])
|
|
545
|
+
]))
|
|
546
|
+
])), 256)) : !e.items.length && !e.spinning ? (a(), l("tr", ye, [
|
|
537
547
|
o("td", {
|
|
538
548
|
colspan: e.headers.length,
|
|
539
549
|
class: "rvc-table-state"
|
|
540
550
|
}, [
|
|
541
551
|
o("p", null, m(e.noResultsText), 1)
|
|
542
552
|
], 8, be)
|
|
543
|
-
])) : (
|
|
553
|
+
])) : (a(), l("tr", he, [
|
|
544
554
|
o("td", {
|
|
545
555
|
colspan: e.headers.length,
|
|
546
556
|
class: "rvc-table-state"
|
|
547
557
|
}, [
|
|
548
|
-
|
|
558
|
+
f(u.$slots, "spinner", {
|
|
549
559
|
spinning: e.spinning,
|
|
550
560
|
label: e.loadingText
|
|
551
561
|
}, () => [
|
|
552
562
|
o("div", ke, [
|
|
553
|
-
e.spinning ? (
|
|
563
|
+
e.spinning ? (a(), x(h(K), {
|
|
554
564
|
key: 0,
|
|
555
565
|
"aria-hidden": "true",
|
|
556
566
|
class: "rvc-table-spinner"
|
|
@@ -563,16 +573,16 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
563
573
|
])
|
|
564
574
|
], 2)
|
|
565
575
|
], 2),
|
|
566
|
-
e.pagination ?
|
|
576
|
+
e.pagination ? f(u.$slots, "pagination", P(b({ key: 0 }, e.pagination)), () => [
|
|
567
577
|
V(fe, {
|
|
568
578
|
pagination: e.pagination,
|
|
569
|
-
"onPagination:change":
|
|
570
|
-
"onPagination:perPage":
|
|
579
|
+
"onPagination:change": n[0] || (n[0] = (t) => c("pagination:change", t)),
|
|
580
|
+
"onPagination:perPage": n[1] || (n[1] = (t) => c("pagination:perPage", t))
|
|
571
581
|
}, null, 8, ["pagination"])
|
|
572
582
|
]) : $("", !0)
|
|
573
583
|
]));
|
|
574
584
|
}
|
|
575
|
-
},
|
|
585
|
+
}, we = {
|
|
576
586
|
key: 1,
|
|
577
587
|
class: "rvc-empty-state-title"
|
|
578
588
|
}, qe = {
|
|
@@ -593,15 +603,15 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
593
603
|
}
|
|
594
604
|
},
|
|
595
605
|
setup(e) {
|
|
596
|
-
return (r, i) => (
|
|
606
|
+
return (r, i) => (a(), l("div", {
|
|
597
607
|
class: p(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
|
|
598
608
|
}, [
|
|
599
|
-
e.icon ? (
|
|
609
|
+
e.icon ? (a(), x(B(e.icon), {
|
|
600
610
|
key: 0,
|
|
601
611
|
class: "rvc-empty-state-icon"
|
|
602
612
|
})) : $("", !0),
|
|
603
|
-
e.title ? (
|
|
604
|
-
|
|
613
|
+
e.title ? (a(), l("p", we, m(e.title), 1)) : $("", !0),
|
|
614
|
+
f(r.$slots, "default")
|
|
605
615
|
], 2));
|
|
606
616
|
}
|
|
607
617
|
}, De = {
|
|
@@ -619,25 +629,25 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
619
629
|
},
|
|
620
630
|
emits: ["update:modelValue"],
|
|
621
631
|
setup(e, { emit: r }) {
|
|
622
|
-
const i = e, c = r, { hasModelBinding: s } =
|
|
632
|
+
const i = e, c = r, { hasModelBinding: s } = O(), g = C({
|
|
623
633
|
get: () => i.modelValue,
|
|
624
634
|
set: (u) => c("update:modelValue", u)
|
|
625
|
-
}),
|
|
635
|
+
}), v = C(() => [
|
|
626
636
|
"rvc-textarea",
|
|
627
637
|
`rvc-textarea-${i.size}`
|
|
628
638
|
]);
|
|
629
|
-
return (u,
|
|
639
|
+
return (u, n) => h(s) ? j((a(), l("textarea", {
|
|
630
640
|
key: 0,
|
|
631
|
-
"onUpdate:modelValue":
|
|
632
|
-
class: p(
|
|
641
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => g.value = t),
|
|
642
|
+
class: p(v.value)
|
|
633
643
|
}, null, 2)), [
|
|
634
644
|
[R, g.value]
|
|
635
|
-
]) : (
|
|
645
|
+
]) : (a(), l("textarea", {
|
|
636
646
|
key: 1,
|
|
637
|
-
class: p(
|
|
647
|
+
class: p(v.value)
|
|
638
648
|
}, null, 2));
|
|
639
649
|
}
|
|
640
|
-
},
|
|
650
|
+
}, xe = { class: "rvc-radio" }, Se = ["id"], Ve = { key: 2 }, Be = ["for"], He = /* @__PURE__ */ Object.assign({
|
|
641
651
|
inheritAttrs: !1
|
|
642
652
|
}, {
|
|
643
653
|
__name: "Radio",
|
|
@@ -659,23 +669,23 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
659
669
|
setup(e, { emit: r }) {
|
|
660
670
|
const i = e, c = r, s = C({
|
|
661
671
|
get: () => i.modelValue,
|
|
662
|
-
set: (
|
|
663
|
-
}), { hasModelBinding: g } =
|
|
672
|
+
set: (n) => c("update:modelValue", n)
|
|
673
|
+
}), { hasModelBinding: g } = O(), u = {
|
|
664
674
|
...F(),
|
|
665
675
|
id: i.id,
|
|
666
676
|
type: "radio",
|
|
667
677
|
class: "absolute opacity-0 inset-0 cursor-pointer peer/radio"
|
|
668
678
|
};
|
|
669
|
-
return (
|
|
670
|
-
h(g) ?
|
|
679
|
+
return (n, t) => (a(), l("div", xe, [
|
|
680
|
+
h(g) ? j((a(), l("input", b({ key: 0 }, u, {
|
|
671
681
|
id: e.id,
|
|
672
|
-
"onUpdate:modelValue":
|
|
682
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => s.value = d)
|
|
673
683
|
}), null, 16, Se)), [
|
|
674
684
|
[N, s.value]
|
|
675
|
-
]) : (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
685
|
+
]) : (a(), l("input", P(b({ key: 1 }, u)), null, 16)),
|
|
686
|
+
t[1] || (t[1] = o("span", { class: "rvc-radio-input peer-focus/radio:rvc-focus" }, null, -1)),
|
|
687
|
+
n.$slots.default || e.label ? (a(), l("span", Ve, [
|
|
688
|
+
f(n.$slots, "default", {}, () => [
|
|
679
689
|
o("label", { for: e.id }, m(e.label), 9, Be)
|
|
680
690
|
])
|
|
681
691
|
])) : $("", !0)
|
|
@@ -702,42 +712,42 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
702
712
|
emits: ["update:modelValue", "tabs:change"],
|
|
703
713
|
setup(e, { emit: r }) {
|
|
704
714
|
const i = e, c = r, s = () => {
|
|
705
|
-
const
|
|
706
|
-
return
|
|
715
|
+
const n = i.tabs.findIndex((t) => t.active);
|
|
716
|
+
return n >= 0 ? n : 0;
|
|
707
717
|
}, g = C({
|
|
708
718
|
get: () => i.modelValue ?? s(),
|
|
709
|
-
set: (
|
|
710
|
-
const
|
|
711
|
-
c("update:modelValue",
|
|
719
|
+
set: (n) => {
|
|
720
|
+
const t = i.tabs[n];
|
|
721
|
+
c("update:modelValue", n), c("tabs:change", t);
|
|
712
722
|
}
|
|
713
|
-
}),
|
|
714
|
-
const
|
|
715
|
-
g.value =
|
|
716
|
-
const d = i.tabs[
|
|
723
|
+
}), v = (n) => {
|
|
724
|
+
const t = +n.target.value;
|
|
725
|
+
g.value = t;
|
|
726
|
+
const d = i.tabs[t];
|
|
717
727
|
d != null && d.selectEvent && d.selectEvent();
|
|
718
|
-
}, u = (
|
|
728
|
+
}, u = (n) => {
|
|
719
729
|
const {
|
|
720
|
-
active:
|
|
730
|
+
active: t,
|
|
721
731
|
as: d,
|
|
722
732
|
bindAs: y,
|
|
723
|
-
selectEvent:
|
|
724
|
-
name:
|
|
725
|
-
...
|
|
726
|
-
} =
|
|
727
|
-
return
|
|
733
|
+
selectEvent: k,
|
|
734
|
+
name: T,
|
|
735
|
+
...L
|
|
736
|
+
} = n;
|
|
737
|
+
return L;
|
|
728
738
|
};
|
|
729
|
-
return (
|
|
739
|
+
return (n, t) => (a(), l(w, null, [
|
|
730
740
|
o("div", {
|
|
731
741
|
class: p(["rvc-tabs hidden md:flex", { "rvc-tabs-buttons": e.tabStyle === "buttons" }])
|
|
732
742
|
}, [
|
|
733
743
|
o("nav", Ce, [
|
|
734
|
-
(
|
|
744
|
+
(a(!0), l(w, null, S(e.tabs, (d, y) => (a(), x(B(d.as ? d.as : "button"), b({ ref_for: !0 }, u(d), {
|
|
735
745
|
key: `${y}-tab-item`,
|
|
736
746
|
as: d.bindAs ? d.bindAs : void 0,
|
|
737
747
|
class: ["rvc-tab", { "rvc-tab-active": g.value === y }],
|
|
738
|
-
onClick: (
|
|
748
|
+
onClick: (k) => g.value = y
|
|
739
749
|
}), {
|
|
740
|
-
default:
|
|
750
|
+
default: M(() => [
|
|
741
751
|
A(m(d.name), 1)
|
|
742
752
|
]),
|
|
743
753
|
_: 2
|
|
@@ -747,10 +757,10 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
747
757
|
o("div", Ae, [
|
|
748
758
|
V(D, {
|
|
749
759
|
value: g.value,
|
|
750
|
-
onChange:
|
|
760
|
+
onChange: v
|
|
751
761
|
}, {
|
|
752
|
-
default:
|
|
753
|
-
(
|
|
762
|
+
default: M(() => [
|
|
763
|
+
(a(!0), l(w, null, S(e.tabs, (d, y) => (a(), l("option", {
|
|
754
764
|
key: `${y}-tab-item-select-option`,
|
|
755
765
|
value: y,
|
|
756
766
|
selected: g.value === y
|