@robuust-digital/vue-components 2.0.0-rc.6 → 2.0.0-rc.7
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/CHANGELOG.md +242 -0
- package/dist/_shared/{Modal-BXOR8t7c.js → Modal-BztsrTZC.js} +27 -27
- package/dist/combobox/combobox.css +11 -0
- package/dist/core/checkbox.css +21 -0
- package/dist/core/index.js +161 -163
- package/dist/core/input.css +10 -0
- package/dist/core/radio.css +21 -0
- package/dist/core/select.css +10 -0
- package/dist/core/styles.css +2 -0
- package/dist/core/textarea.css +7 -0
- package/dist/dialogs/drawer.css +1 -1
- package/dist/dialogs/index.js +2 -2
- package/dist/dialogs/modal.css +7 -1
- package/dist/lightswitch/lightswitch.css +11 -0
- package/dist/rich-text-editor/index.js +36 -33
- package/dist/rich-text-editor/rich-text.css +13 -0
- package/dist/toast/toast.css +1 -1
- package/package.json +3 -2
package/dist/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as l, openBlock as n, createElementVNode as
|
|
1
|
+
import { createElementBlock as l, openBlock as n, createElementVNode as u, Fragment as S, renderList as V, renderSlot as m, createTextVNode as A, toDisplayString as f, createVNode as C, unref as $, normalizeClass as b, createBlock as w, resolveDynamicComponent as x, withCtx as M, createCommentVNode as h, computed as B, useAttrs as N, withDirectives as O, mergeProps as p, vModelDynamic as q, normalizeProps as P, guardReactiveProps as z, vModelSelect as E, ref as D, 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 Ee } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
|
|
@@ -14,7 +14,7 @@ function G(e, o) {
|
|
|
14
14
|
"aria-hidden": "true",
|
|
15
15
|
"data-slot": "icon"
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
u("path", {
|
|
18
18
|
"fill-rule": "evenodd",
|
|
19
19
|
d: "M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",
|
|
20
20
|
"clip-rule": "evenodd"
|
|
@@ -29,7 +29,7 @@ function J(e, o) {
|
|
|
29
29
|
"aria-hidden": "true",
|
|
30
30
|
"data-slot": "icon"
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
u("path", {
|
|
33
33
|
"fill-rule": "evenodd",
|
|
34
34
|
d: "M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",
|
|
35
35
|
"clip-rule": "evenodd"
|
|
@@ -59,28 +59,28 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
|
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
61
|
return (o, i) => (n(), l("div", Q, [
|
|
62
|
-
(n(!0), l(S, null, V(e.items, (
|
|
62
|
+
(n(!0), l(S, null, V(e.items, (c, s) => (n(), l("details", {
|
|
63
63
|
key: s,
|
|
64
64
|
open: e.defaultOpenIndex === s,
|
|
65
65
|
name: e.name
|
|
66
66
|
}, [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
item:
|
|
67
|
+
u("summary", null, [
|
|
68
|
+
m(o.$slots, "summary", {
|
|
69
|
+
item: c,
|
|
70
70
|
active: e.defaultOpenIndex === s
|
|
71
71
|
}, () => [
|
|
72
|
-
A(f(
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
A(f(c.title) + " ", 1),
|
|
73
|
+
m(o.$slots, "icon", { classList: "rvc-accordion-icon" }, () => [
|
|
74
|
+
C($(J), { class: "rvc-accordion-icon" })
|
|
75
75
|
])
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
|
-
|
|
79
|
-
class:
|
|
78
|
+
u("div", {
|
|
79
|
+
class: b(["rvc-accordion-content", e.contentClass])
|
|
80
80
|
}, [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
innerHTML:
|
|
81
|
+
m(o.$slots, "content", { item: c }, () => [
|
|
82
|
+
u("div", {
|
|
83
|
+
innerHTML: c.content
|
|
84
84
|
}, null, 8, X)
|
|
85
85
|
])
|
|
86
86
|
], 2)
|
|
@@ -114,30 +114,30 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
|
|
|
114
114
|
},
|
|
115
115
|
emits: ["alert:close"],
|
|
116
116
|
setup(e) {
|
|
117
|
-
return (o, i) => (n(), w(
|
|
118
|
-
class:
|
|
117
|
+
return (o, i) => (n(), w(x(e.as), {
|
|
118
|
+
class: b(["rvc-alert", `rvc-alert-${e.type}`])
|
|
119
119
|
}, {
|
|
120
120
|
default: M(() => [
|
|
121
|
-
|
|
122
|
-
e.icon ? (n(), w(
|
|
121
|
+
m(o.$slots, "icon", {}, () => [
|
|
122
|
+
e.icon ? (n(), w(x(e.icon), {
|
|
123
123
|
key: 0,
|
|
124
124
|
class: "rvc-alert-icon"
|
|
125
125
|
})) : h("", !0)
|
|
126
126
|
]),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
u("div", null, [
|
|
128
|
+
m(o.$slots, "title", {}, () => [
|
|
129
|
+
u("span", Y, f(e.title), 1)
|
|
130
130
|
]),
|
|
131
|
-
|
|
131
|
+
m(o.$slots, "default")
|
|
132
132
|
]),
|
|
133
|
-
|
|
133
|
+
m(o.$slots, "close", {}, () => [
|
|
134
134
|
e.close ? (n(), l("button", {
|
|
135
135
|
key: 0,
|
|
136
136
|
type: "button",
|
|
137
137
|
class: "rvc-alert-close",
|
|
138
|
-
onClick: i[0] || (i[0] = (
|
|
138
|
+
onClick: i[0] || (i[0] = (c) => o.$emit("alert:close"))
|
|
139
139
|
}, [
|
|
140
|
-
|
|
140
|
+
C($(U))
|
|
141
141
|
])) : h("", !0)
|
|
142
142
|
])
|
|
143
143
|
]),
|
|
@@ -168,29 +168,28 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
|
|
|
168
168
|
},
|
|
169
169
|
emits: ["update:modelValue"],
|
|
170
170
|
setup(e, { emit: o }) {
|
|
171
|
-
const i = e,
|
|
171
|
+
const i = e, c = o, s = B({
|
|
172
172
|
get: () => i.modelValue,
|
|
173
|
-
set: (t) =>
|
|
174
|
-
}), { hasModelBinding:
|
|
175
|
-
...
|
|
173
|
+
set: (t) => c("update:modelValue", t)
|
|
174
|
+
}), { hasModelBinding: g } = I(), d = N(), r = B(() => ({
|
|
175
|
+
...d,
|
|
176
176
|
id: i.id,
|
|
177
|
-
type: "checkbox"
|
|
178
|
-
|
|
179
|
-
};
|
|
177
|
+
type: "checkbox"
|
|
178
|
+
}));
|
|
180
179
|
return (t, a) => (n(), l("div", {
|
|
181
|
-
class:
|
|
180
|
+
class: b(["rvc-checkbox", e.rootClass])
|
|
182
181
|
}, [
|
|
183
|
-
$(
|
|
184
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
182
|
+
$(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
|
|
183
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => s.value = v)
|
|
185
184
|
}), null, 16)), [
|
|
186
185
|
[q, s.value]
|
|
187
|
-
]) : (n(), l("input", P(
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
]) : (n(), l("input", P(p({ key: 1 }, r.value)), null, 16)),
|
|
187
|
+
u("span", _, [
|
|
188
|
+
C($(G))
|
|
190
189
|
]),
|
|
191
|
-
|
|
192
|
-
t.$slots.default || e.label ?
|
|
193
|
-
|
|
190
|
+
u("div", null, [
|
|
191
|
+
t.$slots.default || e.label ? m(t.$slots, "default", { key: 0 }, () => [
|
|
192
|
+
u("label", { for: e.id }, f(e.label), 9, ee)
|
|
194
193
|
]) : h("", !0)
|
|
195
194
|
])
|
|
196
195
|
], 2));
|
|
@@ -204,7 +203,7 @@ function te(e, o) {
|
|
|
204
203
|
"aria-hidden": "true",
|
|
205
204
|
"data-slot": "icon"
|
|
206
205
|
}, [
|
|
207
|
-
|
|
206
|
+
u("path", {
|
|
208
207
|
"fill-rule": "evenodd",
|
|
209
208
|
d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z",
|
|
210
209
|
"clip-rule": "evenodd"
|
|
@@ -219,7 +218,7 @@ function ae(e, o) {
|
|
|
219
218
|
"aria-hidden": "true",
|
|
220
219
|
"data-slot": "icon"
|
|
221
220
|
}, [
|
|
222
|
-
|
|
221
|
+
u("path", {
|
|
223
222
|
"fill-rule": "evenodd",
|
|
224
223
|
d: "M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",
|
|
225
224
|
"clip-rule": "evenodd"
|
|
@@ -234,7 +233,7 @@ function ne(e, o) {
|
|
|
234
233
|
"aria-hidden": "true",
|
|
235
234
|
"data-slot": "icon"
|
|
236
235
|
}, [
|
|
237
|
-
|
|
236
|
+
u("path", {
|
|
238
237
|
"fill-rule": "evenodd",
|
|
239
238
|
d: "M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",
|
|
240
239
|
"clip-rule": "evenodd"
|
|
@@ -247,7 +246,7 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
247
246
|
__name: "FormSelect",
|
|
248
247
|
props: {
|
|
249
248
|
modelValue: {
|
|
250
|
-
type: [String, Number, Object],
|
|
249
|
+
type: [String, Number, Object, Boolean],
|
|
251
250
|
default: null
|
|
252
251
|
},
|
|
253
252
|
rootClass: {
|
|
@@ -270,43 +269,43 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
270
269
|
},
|
|
271
270
|
emits: ["update:modelValue"],
|
|
272
271
|
setup(e, { emit: o }) {
|
|
273
|
-
const i = e,
|
|
272
|
+
const i = e, c = o, s = B({
|
|
274
273
|
get: () => i.modelValue,
|
|
275
|
-
set: (
|
|
276
|
-
}), { hasModelBinding:
|
|
277
|
-
return (
|
|
278
|
-
class:
|
|
274
|
+
set: (d) => c("update:modelValue", d)
|
|
275
|
+
}), { hasModelBinding: g } = I();
|
|
276
|
+
return (d, r) => (n(), l("div", {
|
|
277
|
+
class: b([
|
|
279
278
|
"rvc-select",
|
|
280
279
|
`rvc-select-${e.size}`,
|
|
281
280
|
e.rootClass
|
|
282
281
|
])
|
|
283
282
|
}, [
|
|
284
|
-
e.prefixIcon ?
|
|
283
|
+
e.prefixIcon ? m(d.$slots, "prefixIcon", {
|
|
285
284
|
key: 0,
|
|
286
285
|
icon: e.prefixIcon
|
|
287
286
|
}, () => [
|
|
288
|
-
(n(), w(
|
|
287
|
+
(n(), w(x(e.prefixIcon), { "aria-hidden": "true" }))
|
|
289
288
|
]) : h("", !0),
|
|
290
|
-
|
|
291
|
-
$(
|
|
289
|
+
m(d.$slots, "select", P(z(d.$attrs)), () => [
|
|
290
|
+
$(g) ? O((n(), l("select", p({ key: 0 }, d.$attrs, {
|
|
292
291
|
"onUpdate:modelValue": r[0] || (r[0] = (t) => s.value = t)
|
|
293
292
|
}), [
|
|
294
|
-
|
|
293
|
+
m(d.$slots, "default")
|
|
295
294
|
], 16)), [
|
|
296
295
|
[E, s.value]
|
|
297
|
-
]) : (n(), l("select", P(
|
|
298
|
-
|
|
296
|
+
]) : (n(), l("select", P(p({ key: 1 }, d.$attrs)), [
|
|
297
|
+
m(d.$slots, "default")
|
|
299
298
|
], 16))
|
|
300
299
|
]),
|
|
301
|
-
|
|
302
|
-
(n(), w(
|
|
300
|
+
m(d.$slots, "icon", { icon: e.icon }, () => [
|
|
301
|
+
(n(), w(x(e.icon ?? $(Z)), { "aria-hidden": "true" }))
|
|
303
302
|
])
|
|
304
303
|
], 2));
|
|
305
304
|
}
|
|
306
305
|
}), le = {
|
|
307
306
|
key: 0,
|
|
308
307
|
class: "rvc-pagination"
|
|
309
|
-
}, se = ["value"], ie = { class: "rvc-pagination-info" }, oe = { class: "rvc-pagination-nav-list" }, re = ["disabled", "onClick"],
|
|
308
|
+
}, se = ["value"], ie = { class: "rvc-pagination-info" }, oe = { class: "rvc-pagination-nav-list" }, re = ["disabled", "onClick"], ue = { key: 2 }, ce = { key: 3 }, de = {
|
|
310
309
|
__name: "Pagination",
|
|
311
310
|
props: {
|
|
312
311
|
pagination: {
|
|
@@ -332,16 +331,16 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
332
331
|
},
|
|
333
332
|
emits: ["pagination:change", "pagination:perPage"],
|
|
334
333
|
setup(e, { emit: o }) {
|
|
335
|
-
const i = e,
|
|
336
|
-
return (
|
|
334
|
+
const i = e, c = o, s = D(i.perPage);
|
|
335
|
+
return (g, d) => {
|
|
337
336
|
var r;
|
|
338
337
|
return (r = e.pagination) != null && r.total ? (n(), l("div", le, [
|
|
339
|
-
g
|
|
340
|
-
|
|
338
|
+
m(g.$slots, "perPage", p(e.pagination, { perPage: s.value }), () => [
|
|
339
|
+
C(H, {
|
|
341
340
|
modelValue: s.value,
|
|
342
341
|
"onUpdate:modelValue": [
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
d[0] || (d[0] = (t) => s.value = t),
|
|
343
|
+
d[1] || (d[1] = (t) => c("pagination:perPage", t))
|
|
345
344
|
],
|
|
346
345
|
size: "sm",
|
|
347
346
|
"root-class": "rvc-pagination-per-page"
|
|
@@ -355,39 +354,39 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
355
354
|
_: 1
|
|
356
355
|
}, 8, ["modelValue"])
|
|
357
356
|
]),
|
|
358
|
-
g
|
|
359
|
-
|
|
357
|
+
m(g.$slots, "info", p(e.pagination, { fromLabel: e.fromLabel }), () => [
|
|
358
|
+
u("div", ie, f(e.pagination.from) + " - " + f(e.pagination.to) + " " + f(e.fromLabel) + " " + f(e.pagination.total), 1)
|
|
360
359
|
]),
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
u("nav", null, [
|
|
361
|
+
u("ol", oe, [
|
|
363
362
|
(n(!0), l(S, null, V(e.pagination.links, (t, a) => (n(), l("li", {
|
|
364
363
|
key: `pagination-link-${t.label}-${a}`,
|
|
365
364
|
class: "rvc-pagination-nav-list-item"
|
|
366
365
|
}, [
|
|
367
|
-
|
|
366
|
+
u("button", {
|
|
368
367
|
type: "button",
|
|
369
368
|
disabled: t.label === "..." || !t.url,
|
|
370
|
-
class:
|
|
369
|
+
class: b([
|
|
371
370
|
"rvc-pagination-button",
|
|
372
371
|
{ "rvc-pagination-button-active": t.active }
|
|
373
372
|
]),
|
|
374
|
-
onClick: (
|
|
373
|
+
onClick: (v) => t.url && c("pagination:change", t.url)
|
|
375
374
|
}, [
|
|
376
375
|
t.url !== "..." && a === 0 ? (n(), w($(ae), {
|
|
377
376
|
key: 0,
|
|
378
377
|
"aria-hidden": "true",
|
|
379
|
-
class:
|
|
378
|
+
class: b([
|
|
380
379
|
"rvc-pagination-button-icon",
|
|
381
380
|
{ "rvc-pagination-button-icon-disabled": !t.url }
|
|
382
381
|
])
|
|
383
382
|
}, null, 8, ["class"])) : t.label !== "..." && a === e.pagination.links.length - 1 ? (n(), w($(ne), {
|
|
384
383
|
key: 1,
|
|
385
384
|
"aria-hidden": "true",
|
|
386
|
-
class:
|
|
385
|
+
class: b([
|
|
387
386
|
"rvc-pagination-button-icon",
|
|
388
387
|
{ "rvc-pagination-button-icon-disabled": !t.url }
|
|
389
388
|
])
|
|
390
|
-
}, null, 8, ["class"])) : t.label === "..." ? (n(), l("span",
|
|
389
|
+
}, null, 8, ["class"])) : t.label === "..." ? (n(), l("span", ue, " ... ")) : (n(), l("span", ce, f(t.label), 1))
|
|
391
390
|
], 10, re)
|
|
392
391
|
]))), 128))
|
|
393
392
|
])
|
|
@@ -395,15 +394,15 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
395
394
|
])) : h("", !0);
|
|
396
395
|
};
|
|
397
396
|
}
|
|
398
|
-
}, ve = { key: 0 }, ge = ["aria-label", "onClick"], me = ["innerHTML"], fe = { key: 1 },
|
|
397
|
+
}, ve = { key: 0 }, ge = ["aria-label", "onClick"], me = ["innerHTML"], fe = { key: 1 }, be = ["colspan"], pe = { key: 2 }, ye = ["colspan"], $e = { class: "rvc-table-spinner-wrapper" }, je = {
|
|
399
398
|
__name: "DataTable",
|
|
400
399
|
props: {
|
|
401
400
|
headers: {
|
|
402
401
|
type: Array,
|
|
403
402
|
default: () => [],
|
|
404
403
|
validator: (e) => e.every((i) => {
|
|
405
|
-
const
|
|
406
|
-
return
|
|
404
|
+
const c = !i.align || ["left", "center", "right"].includes(i.align), g = !(i.sortable === !0) || typeof i.key == "string" && i.key.length > 0;
|
|
405
|
+
return g || console.warn("[DataTable] Header item with sortable=true is missing required 'key' property:", i), !c && i.align && console.warn("[DataTable] Header item has invalid 'align' value. Must be 'left', 'center' or 'right':", i), c && g;
|
|
407
406
|
})
|
|
408
407
|
},
|
|
409
408
|
items: {
|
|
@@ -435,32 +434,32 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
435
434
|
},
|
|
436
435
|
emits: ["table:sortBy", "pagination:change", "pagination:perPage"],
|
|
437
436
|
setup(e, { emit: o }) {
|
|
438
|
-
const i = e,
|
|
437
|
+
const i = e, c = o, s = D(null), g = (r) => i.headers.find((t) => t.key === r), d = (r) => {
|
|
439
438
|
!s.value || s.value.key !== r.key ? s.value = {
|
|
440
439
|
key: r.key,
|
|
441
440
|
direction: "asc"
|
|
442
441
|
} : s.value.direction === "asc" ? s.value = {
|
|
443
442
|
key: r.key,
|
|
444
443
|
direction: "desc"
|
|
445
|
-
} : s.value = null,
|
|
444
|
+
} : s.value = null, c("table:sortBy", s.value);
|
|
446
445
|
};
|
|
447
446
|
return (r, t) => (n(), l("div", null, [
|
|
448
|
-
|
|
449
|
-
class:
|
|
447
|
+
u("div", {
|
|
448
|
+
class: b(["rvc-table-wrapper", e.wrapperClass])
|
|
450
449
|
}, [
|
|
451
|
-
|
|
452
|
-
class:
|
|
450
|
+
u("table", {
|
|
451
|
+
class: b([{ "rvc-table-striped": e.striped }, "rvc-table"])
|
|
453
452
|
}, [
|
|
454
453
|
e.headers.length ? (n(), l("thead", ve, [
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
(n(!0), l(S, null, V(e.headers, (a,
|
|
454
|
+
m(r.$slots, "headers", { headers: e.headers }, () => [
|
|
455
|
+
u("tr", null, [
|
|
456
|
+
(n(!0), l(S, null, V(e.headers, (a, v) => m(r.$slots, "header", {
|
|
458
457
|
header: a,
|
|
459
|
-
index:
|
|
458
|
+
index: v
|
|
460
459
|
}, () => {
|
|
461
460
|
var y, k;
|
|
462
461
|
return [
|
|
463
|
-
(n(), l("th",
|
|
462
|
+
(n(), l("th", p({ ref_for: !0 }, a, {
|
|
464
463
|
key: `rvc-table-header-${a.id}`,
|
|
465
464
|
class: {
|
|
466
465
|
"rvc-table-text-left": a.align === "left" || !a.align,
|
|
@@ -472,23 +471,23 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
472
471
|
key: 0,
|
|
473
472
|
type: "button",
|
|
474
473
|
"aria-label": `Sort on ${a.label}`,
|
|
475
|
-
class:
|
|
474
|
+
class: b([
|
|
476
475
|
"rvc-table-sort-button",
|
|
477
476
|
{
|
|
478
477
|
"rvc-table-sort-button-center": a.align === "center",
|
|
479
478
|
"rvc-table-sort-button-right": a.align === "right"
|
|
480
479
|
}
|
|
481
480
|
]),
|
|
482
|
-
onClick: (T) =>
|
|
481
|
+
onClick: (T) => d(a)
|
|
483
482
|
}, [
|
|
484
|
-
|
|
483
|
+
m(r.$slots, "header-label", {
|
|
485
484
|
sortBy: s.value,
|
|
486
485
|
header: a
|
|
487
486
|
}, () => [
|
|
488
487
|
A(f(a.label), 1)
|
|
489
488
|
]),
|
|
490
|
-
|
|
491
|
-
class:
|
|
489
|
+
C($(te), {
|
|
490
|
+
class: b([
|
|
492
491
|
"rvc-table-sort-icon",
|
|
493
492
|
{
|
|
494
493
|
"rvc-table-sort-icon-visible": ((y = s.value) == null ? void 0 : y.key) === a.key,
|
|
@@ -497,7 +496,7 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
497
496
|
}
|
|
498
497
|
])
|
|
499
498
|
}, null, 8, ["class"])
|
|
500
|
-
], 10, ge)) :
|
|
499
|
+
], 10, ge)) : m(r.$slots, "header-label", {
|
|
501
500
|
key: 1,
|
|
502
501
|
sortBy: s.value,
|
|
503
502
|
header: a
|
|
@@ -510,28 +509,28 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
510
509
|
])
|
|
511
510
|
])
|
|
512
511
|
])) : h("", !0),
|
|
513
|
-
|
|
514
|
-
e.items.length && !e.spinning ? (n(!0), l(S, { key: 0 }, V(e.items, (a,
|
|
512
|
+
u("tbody", null, [
|
|
513
|
+
e.items.length && !e.spinning ? (n(!0), l(S, { key: 0 }, V(e.items, (a, v) => m(r.$slots, "items", {
|
|
515
514
|
item: a,
|
|
516
|
-
index:
|
|
515
|
+
index: v
|
|
517
516
|
}, () => [
|
|
518
517
|
(n(), l("tr", {
|
|
519
|
-
key: `rvc-table-row-${
|
|
518
|
+
key: `rvc-table-row-${v}-${a.id}`
|
|
520
519
|
}, [
|
|
521
|
-
|
|
520
|
+
m(r.$slots, "item", {
|
|
522
521
|
item: a,
|
|
523
|
-
index:
|
|
522
|
+
index: v
|
|
524
523
|
}, () => [
|
|
525
524
|
(n(!0), l(S, null, V(a, (y, k) => {
|
|
526
525
|
var T, L, j, F;
|
|
527
|
-
return n(), l("td",
|
|
528
|
-
key: `rvc-table-row-${
|
|
526
|
+
return n(), l("td", p({
|
|
527
|
+
key: `rvc-table-row-${v}-column-${k}-${a.id}`,
|
|
529
528
|
ref_for: !0
|
|
530
529
|
}, a.attrs, {
|
|
531
530
|
class: {
|
|
532
|
-
"rvc-table-text-left": ((T =
|
|
533
|
-
"rvc-table-text-center": ((j =
|
|
534
|
-
"rvc-table-text-right": ((F =
|
|
531
|
+
"rvc-table-text-left": ((T = g(k)) == null ? void 0 : T.align) === "left" || !((L = g(k)) != null && L.align),
|
|
532
|
+
"rvc-table-text-center": ((j = g(k)) == null ? void 0 : j.align) === "center",
|
|
533
|
+
"rvc-table-text-right": ((F = g(k)) == null ? void 0 : F.align) === "right"
|
|
535
534
|
},
|
|
536
535
|
innerHTML: y
|
|
537
536
|
}), null, 16, me);
|
|
@@ -539,22 +538,22 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
539
538
|
])
|
|
540
539
|
]))
|
|
541
540
|
])), 256)) : !e.items.length && !e.spinning ? (n(), l("tr", fe, [
|
|
542
|
-
|
|
541
|
+
u("td", {
|
|
543
542
|
colspan: e.headers.length,
|
|
544
543
|
class: "rvc-table-state"
|
|
545
544
|
}, [
|
|
546
|
-
|
|
547
|
-
], 8,
|
|
548
|
-
])) : (n(), l("tr",
|
|
549
|
-
|
|
545
|
+
u("p", null, f(e.noResultsText), 1)
|
|
546
|
+
], 8, be)
|
|
547
|
+
])) : (n(), l("tr", pe, [
|
|
548
|
+
u("td", {
|
|
550
549
|
colspan: e.headers.length,
|
|
551
550
|
class: "rvc-table-state"
|
|
552
551
|
}, [
|
|
553
|
-
|
|
552
|
+
m(r.$slots, "spinner", {
|
|
554
553
|
spinning: e.spinning,
|
|
555
554
|
label: e.loadingText
|
|
556
555
|
}, () => [
|
|
557
|
-
|
|
556
|
+
u("div", $e, [
|
|
558
557
|
e.spinning ? (n(), w($(K), {
|
|
559
558
|
key: 0,
|
|
560
559
|
"aria-hidden": "true",
|
|
@@ -568,11 +567,11 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
568
567
|
])
|
|
569
568
|
], 2)
|
|
570
569
|
], 2),
|
|
571
|
-
e.pagination ?
|
|
572
|
-
|
|
570
|
+
e.pagination ? m(r.$slots, "pagination", P(p({ key: 0 }, e.pagination)), () => [
|
|
571
|
+
C(de, {
|
|
573
572
|
pagination: e.pagination,
|
|
574
|
-
"onPagination:change": t[0] || (t[0] = (a) =>
|
|
575
|
-
"onPagination:perPage": t[1] || (t[1] = (a) =>
|
|
573
|
+
"onPagination:change": t[0] || (t[0] = (a) => c("pagination:change", a)),
|
|
574
|
+
"onPagination:perPage": t[1] || (t[1] = (a) => c("pagination:perPage", a))
|
|
576
575
|
}, null, 8, ["pagination"])
|
|
577
576
|
]) : h("", !0)
|
|
578
577
|
]));
|
|
@@ -599,14 +598,14 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
599
598
|
},
|
|
600
599
|
setup(e) {
|
|
601
600
|
return (o, i) => (n(), l("div", {
|
|
602
|
-
class:
|
|
601
|
+
class: b(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
|
|
603
602
|
}, [
|
|
604
|
-
e.icon ? (n(), w(
|
|
603
|
+
e.icon ? (n(), w(x(e.icon), {
|
|
605
604
|
key: 0,
|
|
606
605
|
class: "rvc-empty-state-icon"
|
|
607
606
|
})) : h("", !0),
|
|
608
607
|
e.title ? (n(), l("p", he, f(e.title), 1)) : h("", !0),
|
|
609
|
-
|
|
608
|
+
m(o.$slots, "default")
|
|
610
609
|
], 2));
|
|
611
610
|
}
|
|
612
611
|
}, Ne = {
|
|
@@ -624,22 +623,22 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
624
623
|
},
|
|
625
624
|
emits: ["update:modelValue"],
|
|
626
625
|
setup(e, { emit: o }) {
|
|
627
|
-
const i = e,
|
|
626
|
+
const i = e, c = o, { hasModelBinding: s } = I(), g = B({
|
|
628
627
|
get: () => i.modelValue,
|
|
629
|
-
set: (r) =>
|
|
630
|
-
}),
|
|
628
|
+
set: (r) => c("update:modelValue", r)
|
|
629
|
+
}), d = B(() => [
|
|
631
630
|
"rvc-textarea",
|
|
632
631
|
`rvc-textarea-${i.size}`
|
|
633
632
|
]);
|
|
634
633
|
return (r, t) => $(s) ? O((n(), l("textarea", {
|
|
635
634
|
key: 0,
|
|
636
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) =>
|
|
637
|
-
class:
|
|
635
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => g.value = a),
|
|
636
|
+
class: b(d.value)
|
|
638
637
|
}, null, 2)), [
|
|
639
|
-
[R,
|
|
638
|
+
[R, g.value]
|
|
640
639
|
]) : (n(), l("textarea", {
|
|
641
640
|
key: 1,
|
|
642
|
-
class:
|
|
641
|
+
class: b(d.value)
|
|
643
642
|
}, null, 2));
|
|
644
643
|
}
|
|
645
644
|
}, ke = { class: "rvc-radio" }, Se = ["id"], we = { key: 2 }, Ve = ["for"], qe = /* @__PURE__ */ Object.assign({
|
|
@@ -662,26 +661,25 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
662
661
|
},
|
|
663
662
|
emits: ["update:modelValue"],
|
|
664
663
|
setup(e, { emit: o }) {
|
|
665
|
-
const i = e,
|
|
664
|
+
const i = e, c = o, s = B({
|
|
666
665
|
get: () => i.modelValue,
|
|
667
|
-
set: (t) =>
|
|
668
|
-
}), { hasModelBinding:
|
|
669
|
-
...
|
|
666
|
+
set: (t) => c("update:modelValue", t)
|
|
667
|
+
}), { hasModelBinding: g } = I(), d = N(), r = B(() => ({
|
|
668
|
+
...d,
|
|
670
669
|
id: i.id,
|
|
671
|
-
type: "radio"
|
|
672
|
-
|
|
673
|
-
};
|
|
670
|
+
type: "radio"
|
|
671
|
+
}));
|
|
674
672
|
return (t, a) => (n(), l("div", ke, [
|
|
675
|
-
$(
|
|
673
|
+
$(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
|
|
676
674
|
id: e.id,
|
|
677
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
675
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => s.value = v)
|
|
678
676
|
}), null, 16, Se)), [
|
|
679
677
|
[q, s.value]
|
|
680
|
-
]) : (n(), l("input", P(
|
|
681
|
-
a[1] || (a[1] =
|
|
678
|
+
]) : (n(), l("input", P(p({ key: 1 }, r.value)), null, 16)),
|
|
679
|
+
a[1] || (a[1] = u("span", { class: "rvc-radio-input" }, null, -1)),
|
|
682
680
|
t.$slots.default || e.label ? (n(), l("span", we, [
|
|
683
|
-
|
|
684
|
-
|
|
681
|
+
m(t.$slots, "default", {}, () => [
|
|
682
|
+
u("label", { for: e.id }, f(e.label), 9, Ve)
|
|
685
683
|
])
|
|
686
684
|
])) : h("", !0)
|
|
687
685
|
]));
|
|
@@ -708,24 +706,24 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
708
706
|
},
|
|
709
707
|
emits: ["update:modelValue", "tabs:change"],
|
|
710
708
|
setup(e, { emit: o }) {
|
|
711
|
-
const i = e,
|
|
709
|
+
const i = e, c = o, s = () => {
|
|
712
710
|
const t = i.tabs.findIndex((a) => a.active);
|
|
713
711
|
return t >= 0 ? t : 0;
|
|
714
|
-
},
|
|
712
|
+
}, g = B({
|
|
715
713
|
get: () => i.modelValue ?? s(),
|
|
716
714
|
set: (t) => {
|
|
717
715
|
const a = i.tabs[t];
|
|
718
|
-
|
|
716
|
+
c("update:modelValue", t), c("tabs:change", a);
|
|
719
717
|
}
|
|
720
|
-
}),
|
|
718
|
+
}), d = (t) => {
|
|
721
719
|
const a = +t.target.value;
|
|
722
|
-
|
|
723
|
-
const
|
|
724
|
-
|
|
720
|
+
g.value = a;
|
|
721
|
+
const v = i.tabs[a];
|
|
722
|
+
v != null && v.selectEvent && v.selectEvent();
|
|
725
723
|
}, r = (t) => {
|
|
726
724
|
const {
|
|
727
725
|
active: a,
|
|
728
|
-
as:
|
|
726
|
+
as: v,
|
|
729
727
|
bindAs: y,
|
|
730
728
|
selectEvent: k,
|
|
731
729
|
name: T,
|
|
@@ -734,34 +732,34 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
734
732
|
return L;
|
|
735
733
|
};
|
|
736
734
|
return (t, a) => (n(), l(S, null, [
|
|
737
|
-
|
|
735
|
+
u("div", p(t.$attrs, {
|
|
738
736
|
class: ["rvc-tabs", { "rvc-tabs-buttons": e.tabStyle === "buttons" }]
|
|
739
737
|
}), [
|
|
740
|
-
|
|
741
|
-
(n(!0), l(S, null, V(e.tabs, (
|
|
738
|
+
u("nav", Be, [
|
|
739
|
+
(n(!0), l(S, null, V(e.tabs, (v, y) => (n(), w(x(v.as ? v.as : "button"), p({ ref_for: !0 }, r(v), {
|
|
742
740
|
key: `${y}-tab-item`,
|
|
743
|
-
as:
|
|
744
|
-
class: ["rvc-tab", { "rvc-tab-active":
|
|
745
|
-
onClick: (k) =>
|
|
741
|
+
as: v.bindAs ? v.bindAs : void 0,
|
|
742
|
+
class: ["rvc-tab", { "rvc-tab-active": g.value === y }],
|
|
743
|
+
onClick: (k) => g.value = y
|
|
746
744
|
}), {
|
|
747
745
|
default: M(() => [
|
|
748
|
-
A(f(
|
|
746
|
+
A(f(v.name), 1)
|
|
749
747
|
]),
|
|
750
748
|
_: 2
|
|
751
749
|
}, 1040, ["as", "class", "onClick"]))), 128))
|
|
752
750
|
])
|
|
753
751
|
], 16),
|
|
754
|
-
|
|
752
|
+
C(H, p(t.$attrs, {
|
|
755
753
|
"root-class": "rvc-tabs-select",
|
|
756
|
-
value:
|
|
757
|
-
onChange:
|
|
754
|
+
value: g.value,
|
|
755
|
+
onChange: d
|
|
758
756
|
}), {
|
|
759
757
|
default: M(() => [
|
|
760
|
-
(n(!0), l(S, null, V(e.tabs, (
|
|
758
|
+
(n(!0), l(S, null, V(e.tabs, (v, y) => (n(), l("option", {
|
|
761
759
|
key: `${y}-tab-item-select-option`,
|
|
762
760
|
value: y,
|
|
763
|
-
selected:
|
|
764
|
-
}, f(
|
|
761
|
+
selected: g.value === y
|
|
762
|
+
}, f(v.name), 9, Ce))), 128))
|
|
765
763
|
]),
|
|
766
764
|
_: 1
|
|
767
765
|
}, 16, ["value"])
|