@robuust-digital/vue-components 2.0.0-rc.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -1
- package/dist/_shared/FormInput-B-SQTZTA.js +92 -0
- package/dist/_shared/Modal-Bw2sID1x.js +213 -0
- package/dist/core/button.css +1 -9
- package/dist/core/checkbox.css +6 -9
- package/dist/core/index.js +362 -318
- package/dist/core/input.css +8 -7
- package/dist/core/radio.css +6 -9
- package/dist/core/utilities.css +12 -0
- package/dist/dialogs/index.js +88 -77
- package/dist/dropdown/index.js +1 -4
- package/dist/lightswitch/index.js +5 -4
- package/dist/rich-text-editor/index.js +27 -29
- package/package.json +7 -10
- package/dist/_shared/FormInput-abFMz_J4.js +0 -82
- package/dist/_shared/Modal-DdpJnce6.js +0 -200
package/dist/core/index.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { createElementBlock as l, openBlock as
|
|
1
|
+
import { createElementBlock as l, openBlock as a, createElementVNode as d, Fragment as k, renderList as V, renderSlot as c, createTextVNode as T, toDisplayString as f, createVNode as C, unref as h, normalizeClass as y, createBlock as w, resolveDynamicComponent as x, withCtx as O, createCommentVNode as $, computed as B, useAttrs as N, ref as A, withDirectives as M, mergeProps as p, vModelDynamic as q, normalizeProps as D, guardReactiveProps as z, vModelSelect as E, 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
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
4
|
+
import { _ as Re } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
|
|
5
|
+
import { _ as Ze } from "../_shared/ButtonBase-DfkwHIhN.js";
|
|
6
|
+
import { u as j } from "../_shared/FormInput-B-SQTZTA.js";
|
|
7
|
+
import { _ as Ge } from "../_shared/FormInput-B-SQTZTA.js";
|
|
8
8
|
import { S as K } from "../_shared/icon-spinner-CmxIOqaK.js";
|
|
9
|
-
function G(e,
|
|
10
|
-
return
|
|
9
|
+
function G(e, u) {
|
|
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",
|
|
14
14
|
"aria-hidden": "true",
|
|
15
15
|
"data-slot": "icon"
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
d("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"
|
|
21
21
|
})
|
|
22
22
|
]);
|
|
23
23
|
}
|
|
24
|
-
function J(e,
|
|
25
|
-
return
|
|
24
|
+
function J(e, u) {
|
|
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",
|
|
29
29
|
"aria-hidden": "true",
|
|
30
30
|
"data-slot": "icon"
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
d("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"
|
|
36
36
|
})
|
|
37
37
|
]);
|
|
38
38
|
}
|
|
39
|
-
const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"],
|
|
39
|
+
const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], Me = {
|
|
40
40
|
__name: "Accordion",
|
|
41
41
|
props: {
|
|
42
42
|
items: {
|
|
43
|
-
type: Array,
|
|
43
|
+
type: [Array, Object],
|
|
44
44
|
required: !0,
|
|
45
45
|
default: () => []
|
|
46
46
|
},
|
|
@@ -49,7 +49,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], O
|
|
|
49
49
|
default: void 0
|
|
50
50
|
},
|
|
51
51
|
defaultOpenIndex: {
|
|
52
|
-
type: Number,
|
|
52
|
+
type: [Number, String],
|
|
53
53
|
default: 0
|
|
54
54
|
},
|
|
55
55
|
contentClass: {
|
|
@@ -58,37 +58,36 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], O
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
|
-
return (
|
|
62
|
-
(
|
|
63
|
-
key:
|
|
64
|
-
open: e.defaultOpenIndex ===
|
|
61
|
+
return (u, r) => (a(), l("div", Q, [
|
|
62
|
+
(a(!0), l(k, null, V(e.items, (v, o) => (a(), l("details", {
|
|
63
|
+
key: o,
|
|
64
|
+
open: e.defaultOpenIndex === o,
|
|
65
65
|
name: e.name
|
|
66
66
|
}, [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
item:
|
|
70
|
-
index:
|
|
71
|
-
active: e.defaultOpenIndex === s
|
|
67
|
+
d("summary", null, [
|
|
68
|
+
c(u.$slots, "summary", {
|
|
69
|
+
item: v,
|
|
70
|
+
index: o
|
|
72
71
|
}, () => [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
C(
|
|
72
|
+
T(f(v.title) + " ", 1),
|
|
73
|
+
c(u.$slots, "icon", { classList: "rvc-accordion-icon" }, () => [
|
|
74
|
+
C(h(J), { class: "rvc-accordion-icon" })
|
|
76
75
|
])
|
|
77
76
|
])
|
|
78
77
|
]),
|
|
79
|
-
|
|
80
|
-
class:
|
|
78
|
+
d("div", {
|
|
79
|
+
class: y(["rvc-accordion-content", e.contentClass])
|
|
81
80
|
}, [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
innerHTML:
|
|
81
|
+
c(u.$slots, "content", { item: v }, () => [
|
|
82
|
+
d("div", {
|
|
83
|
+
innerHTML: v.content
|
|
85
84
|
}, null, 8, X)
|
|
86
85
|
])
|
|
87
86
|
], 2)
|
|
88
87
|
], 8, W))), 128))
|
|
89
88
|
]));
|
|
90
89
|
}
|
|
91
|
-
}, Y = { class: "rvc-alert-title" },
|
|
90
|
+
}, Y = { class: "rvc-alert-title" }, je = {
|
|
92
91
|
__name: "Alert",
|
|
93
92
|
props: {
|
|
94
93
|
as: {
|
|
@@ -115,37 +114,40 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], O
|
|
|
115
114
|
},
|
|
116
115
|
emits: ["alert:close"],
|
|
117
116
|
setup(e) {
|
|
118
|
-
return (
|
|
119
|
-
class:
|
|
117
|
+
return (u, r) => (a(), w(x(e.as), {
|
|
118
|
+
class: y(["rvc-alert", `rvc-alert-${e.type}`])
|
|
120
119
|
}, {
|
|
121
120
|
default: O(() => [
|
|
122
|
-
|
|
123
|
-
e.icon ? (
|
|
121
|
+
c(u.$slots, "icon", {}, () => [
|
|
122
|
+
e.icon ? (a(), w(x(e.icon), {
|
|
124
123
|
key: 0,
|
|
125
124
|
class: "rvc-alert-icon"
|
|
126
|
-
})) :
|
|
125
|
+
})) : $("", !0)
|
|
127
126
|
]),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
d("div", null, [
|
|
128
|
+
c(u.$slots, "title", {}, () => [
|
|
129
|
+
d("span", Y, f(e.title), 1)
|
|
131
130
|
]),
|
|
132
|
-
|
|
131
|
+
c(u.$slots, "default")
|
|
133
132
|
]),
|
|
134
|
-
|
|
135
|
-
e.close ? (
|
|
133
|
+
c(u.$slots, "close", {}, () => [
|
|
134
|
+
e.close ? (a(), l("button", {
|
|
136
135
|
key: 0,
|
|
137
136
|
type: "button",
|
|
138
137
|
class: "rvc-alert-close",
|
|
139
|
-
onClick:
|
|
138
|
+
onClick: r[0] || (r[0] = (v) => u.$emit("alert:close"))
|
|
140
139
|
}, [
|
|
141
|
-
C(
|
|
142
|
-
])) :
|
|
140
|
+
C(h(U))
|
|
141
|
+
])) : $("", !0)
|
|
143
142
|
])
|
|
144
143
|
]),
|
|
145
144
|
_: 3
|
|
146
145
|
}, 8, ["class"]));
|
|
147
146
|
}
|
|
148
|
-
}, _ = { class: "rvc-checkbox-input" }, ee =
|
|
147
|
+
}, _ = { class: "rvc-checkbox-input" }, ee = {
|
|
148
|
+
key: 0,
|
|
149
|
+
class: "rvc-checkbox-label"
|
|
150
|
+
}, Ie = /* @__PURE__ */ Object.assign({
|
|
149
151
|
inheritAttrs: !1
|
|
150
152
|
}, {
|
|
151
153
|
__name: "Checkbox",
|
|
@@ -154,10 +156,6 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], O
|
|
|
154
156
|
type: [Boolean, String, Array, Object, Number],
|
|
155
157
|
default: null
|
|
156
158
|
},
|
|
157
|
-
id: {
|
|
158
|
-
type: String,
|
|
159
|
-
default: null
|
|
160
|
-
},
|
|
161
159
|
label: {
|
|
162
160
|
type: String,
|
|
163
161
|
default: ""
|
|
@@ -168,80 +166,86 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], O
|
|
|
168
166
|
}
|
|
169
167
|
},
|
|
170
168
|
emits: ["update:modelValue"],
|
|
171
|
-
setup(e, { emit:
|
|
172
|
-
const
|
|
173
|
-
get: () =>
|
|
174
|
-
set: (t) =>
|
|
175
|
-
}), { hasModelBinding: g } =
|
|
176
|
-
...
|
|
177
|
-
id: i.id,
|
|
169
|
+
setup(e, { emit: u }) {
|
|
170
|
+
const r = e, v = u, o = B({
|
|
171
|
+
get: () => r.modelValue,
|
|
172
|
+
set: (t) => v("update:modelValue", t)
|
|
173
|
+
}), { hasModelBinding: g } = j(), m = N(), s = B(() => ({
|
|
174
|
+
...m,
|
|
178
175
|
type: "checkbox"
|
|
179
|
-
}));
|
|
180
|
-
return (t,
|
|
181
|
-
class:
|
|
176
|
+
})), n = A(null);
|
|
177
|
+
return (t, i) => (a(), l("label", {
|
|
178
|
+
class: y(["rvc-checkbox", e.rootClass])
|
|
182
179
|
}, [
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
h(g) ? M((a(), l("input", p({ key: 0 }, s.value, {
|
|
181
|
+
ref_key: "input",
|
|
182
|
+
ref: n,
|
|
183
|
+
"onUpdate:modelValue": i[0] || (i[0] = (b) => o.value = b)
|
|
185
184
|
}), null, 16)), [
|
|
186
|
-
[q,
|
|
187
|
-
]) : (
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
[q, o.value]
|
|
186
|
+
]) : (a(), l("input", p({ key: 1 }, s.value, {
|
|
187
|
+
ref_key: "input",
|
|
188
|
+
ref: n
|
|
189
|
+
}), null, 16)),
|
|
190
|
+
c(t.$slots, "input", {}, () => [
|
|
191
|
+
d("span", _, [
|
|
192
|
+
c(t.$slots, "icon", {}, () => [
|
|
193
|
+
C(h(G))
|
|
194
|
+
])
|
|
195
|
+
])
|
|
190
196
|
]),
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
u("label", { for: e.id }, f(e.label), 9, ee)
|
|
194
|
-
]) : h("", !0)
|
|
197
|
+
c(t.$slots, "default", { label: e.label }, () => [
|
|
198
|
+
e.label ? (a(), l("span", ee, f(e.label), 1)) : $("", !0)
|
|
195
199
|
])
|
|
196
200
|
], 2));
|
|
197
201
|
}
|
|
198
202
|
});
|
|
199
|
-
function te(e,
|
|
200
|
-
return
|
|
203
|
+
function te(e, u) {
|
|
204
|
+
return a(), l("svg", {
|
|
201
205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
202
206
|
viewBox: "0 0 16 16",
|
|
203
207
|
fill: "currentColor",
|
|
204
208
|
"aria-hidden": "true",
|
|
205
209
|
"data-slot": "icon"
|
|
206
210
|
}, [
|
|
207
|
-
|
|
211
|
+
d("path", {
|
|
208
212
|
"fill-rule": "evenodd",
|
|
209
213
|
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
214
|
"clip-rule": "evenodd"
|
|
211
215
|
})
|
|
212
216
|
]);
|
|
213
217
|
}
|
|
214
|
-
function ae(e,
|
|
215
|
-
return
|
|
218
|
+
function ae(e, u) {
|
|
219
|
+
return a(), l("svg", {
|
|
216
220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
217
221
|
viewBox: "0 0 20 20",
|
|
218
222
|
fill: "currentColor",
|
|
219
223
|
"aria-hidden": "true",
|
|
220
224
|
"data-slot": "icon"
|
|
221
225
|
}, [
|
|
222
|
-
|
|
226
|
+
d("path", {
|
|
223
227
|
"fill-rule": "evenodd",
|
|
224
228
|
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
229
|
"clip-rule": "evenodd"
|
|
226
230
|
})
|
|
227
231
|
]);
|
|
228
232
|
}
|
|
229
|
-
function ne(e,
|
|
230
|
-
return
|
|
233
|
+
function ne(e, u) {
|
|
234
|
+
return a(), l("svg", {
|
|
231
235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
232
236
|
viewBox: "0 0 20 20",
|
|
233
237
|
fill: "currentColor",
|
|
234
238
|
"aria-hidden": "true",
|
|
235
239
|
"data-slot": "icon"
|
|
236
240
|
}, [
|
|
237
|
-
|
|
241
|
+
d("path", {
|
|
238
242
|
"fill-rule": "evenodd",
|
|
239
243
|
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
244
|
"clip-rule": "evenodd"
|
|
241
245
|
})
|
|
242
246
|
]);
|
|
243
247
|
}
|
|
244
|
-
const H = /* @__PURE__ */ Object.assign({
|
|
248
|
+
const le = ["value"], se = ["value"], H = /* @__PURE__ */ Object.assign({
|
|
245
249
|
inheritAttrs: !1
|
|
246
250
|
}, {
|
|
247
251
|
__name: "FormSelect",
|
|
@@ -266,47 +270,74 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
266
270
|
type: String,
|
|
267
271
|
default: "base",
|
|
268
272
|
validator: (e) => ["sm", "base"].includes(e)
|
|
273
|
+
},
|
|
274
|
+
options: {
|
|
275
|
+
type: Array,
|
|
276
|
+
default: () => []
|
|
277
|
+
},
|
|
278
|
+
optionLabel: {
|
|
279
|
+
type: String,
|
|
280
|
+
default: "name"
|
|
281
|
+
},
|
|
282
|
+
optionValue: {
|
|
283
|
+
type: String,
|
|
284
|
+
default: "id"
|
|
269
285
|
}
|
|
270
286
|
},
|
|
271
287
|
emits: ["update:modelValue"],
|
|
272
|
-
setup(e, { emit:
|
|
273
|
-
const
|
|
274
|
-
get: () =>
|
|
275
|
-
set: (
|
|
276
|
-
}), { hasModelBinding: g } =
|
|
277
|
-
return (
|
|
278
|
-
class:
|
|
288
|
+
setup(e, { emit: u }) {
|
|
289
|
+
const r = e, v = u, o = B({
|
|
290
|
+
get: () => r.modelValue,
|
|
291
|
+
set: (s) => v("update:modelValue", s)
|
|
292
|
+
}), { hasModelBinding: g } = j(), m = A(null);
|
|
293
|
+
return (s, n) => (a(), l("div", {
|
|
294
|
+
class: y([
|
|
279
295
|
"rvc-select",
|
|
280
296
|
`rvc-select-${e.size}`,
|
|
281
297
|
e.rootClass
|
|
282
298
|
])
|
|
283
299
|
}, [
|
|
284
|
-
e.prefixIcon ?
|
|
300
|
+
e.prefixIcon ? c(s.$slots, "prefixIcon", {
|
|
285
301
|
key: 0,
|
|
286
302
|
icon: e.prefixIcon
|
|
287
303
|
}, () => [
|
|
288
|
-
(
|
|
289
|
-
]) :
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
304
|
+
(a(), w(x(e.prefixIcon), { "aria-hidden": "true" }))
|
|
305
|
+
]) : $("", !0),
|
|
306
|
+
c(s.$slots, "select", D(z(s.$attrs)), () => [
|
|
307
|
+
h(g) ? M((a(), l("select", p({ key: 0 }, s.$attrs, {
|
|
308
|
+
ref_key: "select",
|
|
309
|
+
ref: m,
|
|
310
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => o.value = t)
|
|
293
311
|
}), [
|
|
294
|
-
|
|
312
|
+
c(s.$slots, "default", {}, () => [
|
|
313
|
+
e.options.length > 0 ? (a(!0), l(k, { key: 0 }, V(e.options, (t, i) => (a(), l("option", {
|
|
314
|
+
key: `option-${i}-${t[e.optionValue]}`,
|
|
315
|
+
value: t[e.optionValue]
|
|
316
|
+
}, f(t[e.optionLabel]), 9, le))), 128)) : $("", !0)
|
|
317
|
+
])
|
|
295
318
|
], 16)), [
|
|
296
|
-
[E,
|
|
297
|
-
]) : (
|
|
298
|
-
|
|
319
|
+
[E, o.value]
|
|
320
|
+
]) : (a(), l("select", p({ key: 1 }, s.$attrs, {
|
|
321
|
+
ref_key: "select",
|
|
322
|
+
ref: m
|
|
323
|
+
}), [
|
|
324
|
+
c(s.$slots, "default", {}, () => [
|
|
325
|
+
e.options.length > 0 ? (a(!0), l(k, { key: 0 }, V(e.options, (t, i) => (a(), l("option", {
|
|
326
|
+
key: `option-${i}-${t[e.optionValue]}`,
|
|
327
|
+
value: t[e.optionValue]
|
|
328
|
+
}, f(t[e.optionLabel]), 9, se))), 128)) : $("", !0)
|
|
329
|
+
])
|
|
299
330
|
], 16))
|
|
300
331
|
]),
|
|
301
|
-
|
|
302
|
-
(
|
|
332
|
+
c(s.$slots, "icon", { icon: e.icon }, () => [
|
|
333
|
+
(a(), w(x(e.icon ?? h(Z)), { "aria-hidden": "true" }))
|
|
303
334
|
])
|
|
304
335
|
], 2));
|
|
305
336
|
}
|
|
306
|
-
}),
|
|
337
|
+
}), oe = {
|
|
307
338
|
key: 0,
|
|
308
339
|
class: "rvc-pagination"
|
|
309
|
-
},
|
|
340
|
+
}, ie = ["value"], re = { class: "rvc-pagination-info" }, ue = { class: "rvc-pagination-nav-list" }, ce = ["disabled", "onClick"], de = { key: 2 }, ve = { key: 3 }, ge = {
|
|
310
341
|
__name: "Pagination",
|
|
311
342
|
props: {
|
|
312
343
|
pagination: {
|
|
@@ -331,79 +362,79 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
331
362
|
}
|
|
332
363
|
},
|
|
333
364
|
emits: ["pagination:change", "pagination:perPage"],
|
|
334
|
-
setup(e, { emit:
|
|
335
|
-
const
|
|
336
|
-
return (g,
|
|
337
|
-
var
|
|
338
|
-
return (
|
|
339
|
-
|
|
365
|
+
setup(e, { emit: u }) {
|
|
366
|
+
const r = e, v = u, o = A(r.perPage);
|
|
367
|
+
return (g, m) => {
|
|
368
|
+
var s;
|
|
369
|
+
return (s = e.pagination) != null && s.total ? (a(), l("div", oe, [
|
|
370
|
+
c(g.$slots, "perPage", p(e.pagination, { perPage: o.value }), () => [
|
|
340
371
|
C(H, {
|
|
341
|
-
modelValue:
|
|
372
|
+
modelValue: o.value,
|
|
342
373
|
"onUpdate:modelValue": [
|
|
343
|
-
|
|
344
|
-
|
|
374
|
+
m[0] || (m[0] = (n) => o.value = n),
|
|
375
|
+
m[1] || (m[1] = (n) => v("pagination:perPage", n))
|
|
345
376
|
],
|
|
346
377
|
size: "sm",
|
|
347
378
|
"root-class": "rvc-pagination-per-page"
|
|
348
379
|
}, {
|
|
349
380
|
default: O(() => [
|
|
350
|
-
(
|
|
351
|
-
key: `pagination-items-per-page-option-${
|
|
352
|
-
value:
|
|
353
|
-
}, f(
|
|
381
|
+
(a(!0), l(k, null, V(e.perPageOptions, (n) => (a(), l("option", {
|
|
382
|
+
key: `pagination-items-per-page-option-${n}`,
|
|
383
|
+
value: n
|
|
384
|
+
}, f(n) + " " + f(e.perPageLabel), 9, ie))), 128))
|
|
354
385
|
]),
|
|
355
386
|
_: 1
|
|
356
387
|
}, 8, ["modelValue"])
|
|
357
388
|
]),
|
|
358
|
-
|
|
359
|
-
|
|
389
|
+
c(g.$slots, "info", p(e.pagination, { fromLabel: e.fromLabel }), () => [
|
|
390
|
+
d("div", re, f(e.pagination.from) + " - " + f(e.pagination.to) + " " + f(e.fromLabel) + " " + f(e.pagination.total), 1)
|
|
360
391
|
]),
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
(
|
|
364
|
-
key: `pagination-link-${
|
|
392
|
+
d("nav", null, [
|
|
393
|
+
d("ol", ue, [
|
|
394
|
+
(a(!0), l(k, null, V(e.pagination.links, (n, t) => (a(), l("li", {
|
|
395
|
+
key: `pagination-link-${n.label}-${t}`,
|
|
365
396
|
class: "rvc-pagination-nav-list-item"
|
|
366
397
|
}, [
|
|
367
|
-
|
|
398
|
+
d("button", {
|
|
368
399
|
type: "button",
|
|
369
|
-
disabled:
|
|
370
|
-
class:
|
|
400
|
+
disabled: n.label === "..." || !n.url,
|
|
401
|
+
class: y([
|
|
371
402
|
"rvc-pagination-button",
|
|
372
|
-
{ "rvc-pagination-button-active":
|
|
403
|
+
{ "rvc-pagination-button-active": n.active }
|
|
373
404
|
]),
|
|
374
|
-
onClick: (
|
|
405
|
+
onClick: (i) => n.url && v("pagination:change", n.url)
|
|
375
406
|
}, [
|
|
376
|
-
|
|
407
|
+
n.url !== "..." && t === 0 ? (a(), w(h(ae), {
|
|
377
408
|
key: 0,
|
|
378
409
|
"aria-hidden": "true",
|
|
379
|
-
class:
|
|
410
|
+
class: y([
|
|
380
411
|
"rvc-pagination-button-icon",
|
|
381
|
-
{ "rvc-pagination-button-icon-disabled": !
|
|
412
|
+
{ "rvc-pagination-button-icon-disabled": !n.url }
|
|
382
413
|
])
|
|
383
|
-
}, null, 8, ["class"])) :
|
|
414
|
+
}, null, 8, ["class"])) : n.label !== "..." && t === e.pagination.links.length - 1 ? (a(), w(h(ne), {
|
|
384
415
|
key: 1,
|
|
385
416
|
"aria-hidden": "true",
|
|
386
|
-
class:
|
|
417
|
+
class: y([
|
|
387
418
|
"rvc-pagination-button-icon",
|
|
388
|
-
{ "rvc-pagination-button-icon-disabled": !
|
|
419
|
+
{ "rvc-pagination-button-icon-disabled": !n.url }
|
|
389
420
|
])
|
|
390
|
-
}, null, 8, ["class"])) :
|
|
391
|
-
], 10,
|
|
421
|
+
}, null, 8, ["class"])) : n.label === "..." ? (a(), l("span", de, " ... ")) : (a(), l("span", ve, f(n.label), 1))
|
|
422
|
+
], 10, ce)
|
|
392
423
|
]))), 128))
|
|
393
424
|
])
|
|
394
425
|
])
|
|
395
|
-
])) :
|
|
426
|
+
])) : $("", !0);
|
|
396
427
|
};
|
|
397
428
|
}
|
|
398
|
-
},
|
|
429
|
+
}, fe = { key: 0 }, me = ["aria-label", "onClick"], be = ["innerHTML"], ye = { key: 1 }, pe = ["colspan"], $e = { key: 2 }, he = ["colspan"], ke = { class: "rvc-table-spinner-wrapper" }, Se = { key: 1 }, Fe = {
|
|
399
430
|
__name: "DataTable",
|
|
400
431
|
props: {
|
|
401
432
|
headers: {
|
|
402
433
|
type: Array,
|
|
403
434
|
default: () => [],
|
|
404
|
-
validator: (e) => e.every((
|
|
405
|
-
const
|
|
406
|
-
return g || console.warn("[DataTable] Header item with sortable=true is missing required 'key' property:",
|
|
435
|
+
validator: (e) => e.every((r) => {
|
|
436
|
+
const v = !r.align || ["left", "center", "right"].includes(r.align), g = !(r.sortable === !0) || typeof r.key == "string" && r.key.length > 0;
|
|
437
|
+
return g || console.warn("[DataTable] Header item with sortable=true is missing required 'key' property:", r), !v && r.align && console.warn("[DataTable] Header item has invalid 'align' value. Must be 'left', 'center' or 'right':", r), v && g;
|
|
407
438
|
})
|
|
408
439
|
},
|
|
409
440
|
items: {
|
|
@@ -431,156 +462,166 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
431
462
|
wrapperClass: {
|
|
432
463
|
type: String,
|
|
433
464
|
default: ""
|
|
465
|
+
},
|
|
466
|
+
defaultSort: {
|
|
467
|
+
type: Object,
|
|
468
|
+
default: null,
|
|
469
|
+
validator: (e) => e === null ? !0 : typeof e != "object" || !e.key || !["asc", "desc"].includes(e.direction) ? (console.warn("[DataTable] Invalid defaultSort prop. Must be an object with key and direction properties."), !1) : !0
|
|
434
470
|
}
|
|
435
471
|
},
|
|
436
472
|
emits: ["table:sortBy", "pagination:change", "pagination:perPage"],
|
|
437
|
-
setup(e, { emit:
|
|
438
|
-
const
|
|
439
|
-
!
|
|
440
|
-
key:
|
|
473
|
+
setup(e, { emit: u }) {
|
|
474
|
+
const r = e, v = u, o = A(r.defaultSort), g = (s) => r.headers.find((n) => n.key === s), m = (s) => {
|
|
475
|
+
!o.value || o.value.key !== s.key ? o.value = {
|
|
476
|
+
key: s.key,
|
|
441
477
|
direction: "asc"
|
|
442
|
-
} :
|
|
443
|
-
key:
|
|
478
|
+
} : o.value.direction === "asc" ? o.value = {
|
|
479
|
+
key: s.key,
|
|
444
480
|
direction: "desc"
|
|
445
|
-
} :
|
|
481
|
+
} : o.value = null, v("table:sortBy", o.value);
|
|
446
482
|
};
|
|
447
|
-
return (
|
|
448
|
-
|
|
449
|
-
class:
|
|
483
|
+
return (s, n) => (a(), l("div", null, [
|
|
484
|
+
d("div", {
|
|
485
|
+
class: y(["rvc-table-wrapper", e.wrapperClass])
|
|
450
486
|
}, [
|
|
451
|
-
|
|
452
|
-
class:
|
|
487
|
+
d("table", {
|
|
488
|
+
class: y([{ "rvc-table-striped": e.striped }, "rvc-table"])
|
|
453
489
|
}, [
|
|
454
|
-
e.headers.length ? (
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
(
|
|
458
|
-
header:
|
|
459
|
-
index:
|
|
490
|
+
e.headers.length ? (a(), l("thead", fe, [
|
|
491
|
+
c(s.$slots, "headers", { headers: e.headers }, () => [
|
|
492
|
+
d("tr", null, [
|
|
493
|
+
(a(!0), l(k, null, V(e.headers, (t, i) => c(s.$slots, "header", {
|
|
494
|
+
header: t,
|
|
495
|
+
index: i
|
|
460
496
|
}, () => {
|
|
461
|
-
var
|
|
497
|
+
var b, S;
|
|
462
498
|
return [
|
|
463
|
-
(
|
|
464
|
-
key: `rvc-table-header-${
|
|
499
|
+
(a(), l("th", p({ ref_for: !0 }, t, {
|
|
500
|
+
key: `rvc-table-header-${t.id}`,
|
|
465
501
|
class: {
|
|
466
|
-
"rvc-table-text-left":
|
|
467
|
-
"rvc-table-text-center":
|
|
468
|
-
"rvc-table-text-right":
|
|
502
|
+
"rvc-table-text-left": t.align === "left" || !t.align,
|
|
503
|
+
"rvc-table-text-center": t.align === "center",
|
|
504
|
+
"rvc-table-text-right": t.align === "right"
|
|
469
505
|
}
|
|
470
506
|
}), [
|
|
471
|
-
|
|
507
|
+
t.sortable && t.key ? (a(), l("button", {
|
|
472
508
|
key: 0,
|
|
473
509
|
type: "button",
|
|
474
|
-
"aria-label": `Sort on ${
|
|
475
|
-
class:
|
|
510
|
+
"aria-label": `Sort on ${t.label}`,
|
|
511
|
+
class: y([
|
|
476
512
|
"rvc-table-sort-button",
|
|
477
513
|
{
|
|
478
|
-
"rvc-table-sort-button-center":
|
|
479
|
-
"rvc-table-sort-button-right":
|
|
514
|
+
"rvc-table-sort-button-center": t.align === "center",
|
|
515
|
+
"rvc-table-sort-button-right": t.align === "right"
|
|
480
516
|
}
|
|
481
517
|
]),
|
|
482
|
-
onClick: (
|
|
518
|
+
onClick: (L) => m(t)
|
|
483
519
|
}, [
|
|
484
|
-
|
|
485
|
-
sortBy:
|
|
486
|
-
header:
|
|
520
|
+
c(s.$slots, "header-label", {
|
|
521
|
+
sortBy: o.value,
|
|
522
|
+
header: t
|
|
487
523
|
}, () => [
|
|
488
|
-
|
|
524
|
+
T(f(t.label), 1)
|
|
489
525
|
]),
|
|
490
|
-
C(
|
|
491
|
-
class:
|
|
526
|
+
C(h(te), {
|
|
527
|
+
class: y([
|
|
492
528
|
"rvc-table-sort-icon",
|
|
493
529
|
{
|
|
494
|
-
"rvc-table-sort-icon-visible": ((
|
|
495
|
-
"rvc-table-sort-icon-invisible": !
|
|
496
|
-
"rvc-table-sort-icon-rotated": ((
|
|
530
|
+
"rvc-table-sort-icon-visible": ((b = o.value) == null ? void 0 : b.key) === t.key,
|
|
531
|
+
"rvc-table-sort-icon-invisible": !o.value || o.value.key !== t.key,
|
|
532
|
+
"rvc-table-sort-icon-rotated": ((S = o.value) == null ? void 0 : S.key) === t.key && o.value.direction === "desc"
|
|
497
533
|
}
|
|
498
534
|
])
|
|
499
535
|
}, null, 8, ["class"])
|
|
500
|
-
], 10,
|
|
536
|
+
], 10, me)) : c(s.$slots, "header-label", {
|
|
501
537
|
key: 1,
|
|
502
|
-
sortBy:
|
|
503
|
-
header:
|
|
538
|
+
sortBy: o.value,
|
|
539
|
+
header: t
|
|
504
540
|
}, () => [
|
|
505
|
-
|
|
541
|
+
T(f(t.label), 1)
|
|
506
542
|
])
|
|
507
543
|
], 16))
|
|
508
544
|
];
|
|
509
545
|
})), 256))
|
|
510
546
|
])
|
|
511
547
|
])
|
|
512
|
-
])) :
|
|
513
|
-
|
|
514
|
-
e.items.length && !e.spinning ? (
|
|
515
|
-
item:
|
|
516
|
-
index:
|
|
548
|
+
])) : $("", !0),
|
|
549
|
+
d("tbody", null, [
|
|
550
|
+
e.items.length && !e.spinning ? (a(!0), l(k, { key: 0 }, V(e.items, (t, i) => c(s.$slots, "items", {
|
|
551
|
+
item: t,
|
|
552
|
+
index: i
|
|
517
553
|
}, () => [
|
|
518
|
-
(
|
|
519
|
-
key: `rvc-table-row-${
|
|
554
|
+
(a(), l("tr", {
|
|
555
|
+
key: `rvc-table-row-${i}-${t.id}`
|
|
520
556
|
}, [
|
|
521
|
-
|
|
522
|
-
item:
|
|
523
|
-
index:
|
|
557
|
+
c(s.$slots, "item", {
|
|
558
|
+
item: t,
|
|
559
|
+
index: i
|
|
524
560
|
}, () => [
|
|
525
|
-
(
|
|
526
|
-
var
|
|
527
|
-
return
|
|
528
|
-
key: `rvc-table-row-${
|
|
529
|
-
|
|
530
|
-
}, a.attrs, {
|
|
561
|
+
(a(!0), l(k, null, V(t, (b, S) => {
|
|
562
|
+
var L, P, I, F;
|
|
563
|
+
return a(), l("td", p({
|
|
564
|
+
key: `rvc-table-row-${i}-column-${S}-${t.id}`
|
|
565
|
+
}, { ref_for: !0 }, t.attrs, {
|
|
531
566
|
class: {
|
|
532
|
-
"rvc-table-text-left": ((
|
|
533
|
-
"rvc-table-text-center": ((
|
|
534
|
-
"rvc-table-text-right": ((F = g(
|
|
567
|
+
"rvc-table-text-left": ((L = g(S)) == null ? void 0 : L.align) === "left" || !((P = g(S)) != null && P.align),
|
|
568
|
+
"rvc-table-text-center": ((I = g(S)) == null ? void 0 : I.align) === "center",
|
|
569
|
+
"rvc-table-text-right": ((F = g(S)) == null ? void 0 : F.align) === "right"
|
|
535
570
|
},
|
|
536
|
-
innerHTML:
|
|
537
|
-
}), null, 16,
|
|
571
|
+
innerHTML: b
|
|
572
|
+
}), null, 16, be);
|
|
538
573
|
}), 128))
|
|
539
574
|
])
|
|
540
575
|
]))
|
|
541
|
-
])), 256)) : !e.items.length && !e.spinning ? (
|
|
542
|
-
|
|
576
|
+
])), 256)) : !e.items.length && !e.spinning ? (a(), l("tr", ye, [
|
|
577
|
+
d("td", {
|
|
543
578
|
colspan: e.headers.length,
|
|
544
579
|
class: "rvc-table-state"
|
|
545
580
|
}, [
|
|
546
|
-
|
|
547
|
-
], 8,
|
|
548
|
-
])) : (
|
|
549
|
-
|
|
581
|
+
d("p", null, f(e.noResultsText), 1)
|
|
582
|
+
], 8, pe)
|
|
583
|
+
])) : (a(), l("tr", $e, [
|
|
584
|
+
d("td", {
|
|
550
585
|
colspan: e.headers.length,
|
|
551
586
|
class: "rvc-table-state"
|
|
552
587
|
}, [
|
|
553
|
-
|
|
588
|
+
c(s.$slots, "spinner", {
|
|
554
589
|
spinning: e.spinning,
|
|
555
590
|
label: e.loadingText
|
|
556
591
|
}, () => [
|
|
557
|
-
|
|
558
|
-
e.spinning ? (
|
|
592
|
+
d("div", ke, [
|
|
593
|
+
e.spinning ? (a(), w(h(K), {
|
|
559
594
|
key: 0,
|
|
560
595
|
"aria-hidden": "true",
|
|
561
596
|
class: "rvc-table-spinner"
|
|
562
|
-
})) :
|
|
563
|
-
|
|
597
|
+
})) : $("", !0),
|
|
598
|
+
T(" " + f(e.loadingText), 1)
|
|
564
599
|
])
|
|
565
600
|
])
|
|
566
|
-
], 8,
|
|
601
|
+
], 8, he)
|
|
567
602
|
]))
|
|
568
|
-
])
|
|
603
|
+
]),
|
|
604
|
+
s.$slots.footer ? (a(), l("tfoot", Se, [
|
|
605
|
+
c(s.$slots, "footer", {
|
|
606
|
+
headers: e.headers,
|
|
607
|
+
items: e.items
|
|
608
|
+
})
|
|
609
|
+
])) : $("", !0)
|
|
569
610
|
], 2)
|
|
570
611
|
], 2),
|
|
571
|
-
e.pagination ?
|
|
572
|
-
C(
|
|
612
|
+
e.pagination ? c(s.$slots, "pagination", D(p({ key: 0 }, e.pagination)), () => [
|
|
613
|
+
C(ge, {
|
|
573
614
|
pagination: e.pagination,
|
|
574
|
-
"onPagination:change":
|
|
575
|
-
"onPagination:perPage":
|
|
615
|
+
"onPagination:change": n[0] || (n[0] = (t) => v("pagination:change", t)),
|
|
616
|
+
"onPagination:perPage": n[1] || (n[1] = (t) => v("pagination:perPage", t))
|
|
576
617
|
}, null, 8, ["pagination"])
|
|
577
|
-
]) :
|
|
618
|
+
]) : $("", !0)
|
|
578
619
|
]));
|
|
579
620
|
}
|
|
580
|
-
},
|
|
621
|
+
}, Ve = {
|
|
581
622
|
key: 1,
|
|
582
623
|
class: "rvc-empty-state-title"
|
|
583
|
-
},
|
|
624
|
+
}, Ne = {
|
|
584
625
|
__name: "EmptyState",
|
|
585
626
|
props: {
|
|
586
627
|
title: {
|
|
@@ -598,18 +639,18 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
598
639
|
}
|
|
599
640
|
},
|
|
600
641
|
setup(e) {
|
|
601
|
-
return (
|
|
602
|
-
class:
|
|
642
|
+
return (u, r) => (a(), l("div", {
|
|
643
|
+
class: y(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
|
|
603
644
|
}, [
|
|
604
|
-
e.icon ? (
|
|
645
|
+
e.icon ? (a(), w(x(e.icon), {
|
|
605
646
|
key: 0,
|
|
606
647
|
class: "rvc-empty-state-icon"
|
|
607
|
-
})) :
|
|
608
|
-
e.title ? (
|
|
609
|
-
|
|
648
|
+
})) : $("", !0),
|
|
649
|
+
e.title ? (a(), l("p", Ve, f(e.title), 1)) : $("", !0),
|
|
650
|
+
c(u.$slots, "default")
|
|
610
651
|
], 2));
|
|
611
652
|
}
|
|
612
|
-
},
|
|
653
|
+
}, qe = {
|
|
613
654
|
__name: "FormTextarea",
|
|
614
655
|
props: {
|
|
615
656
|
modelValue: {
|
|
@@ -623,26 +664,30 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
623
664
|
}
|
|
624
665
|
},
|
|
625
666
|
emits: ["update:modelValue"],
|
|
626
|
-
setup(e, { emit:
|
|
627
|
-
const
|
|
628
|
-
get: () =>
|
|
629
|
-
set: (
|
|
630
|
-
}),
|
|
667
|
+
setup(e, { emit: u }) {
|
|
668
|
+
const r = e, v = u, { hasModelBinding: o } = j(), g = A(null), m = B({
|
|
669
|
+
get: () => r.modelValue,
|
|
670
|
+
set: (n) => v("update:modelValue", n)
|
|
671
|
+
}), s = B(() => [
|
|
631
672
|
"rvc-textarea",
|
|
632
|
-
`rvc-textarea-${
|
|
673
|
+
`rvc-textarea-${r.size}`
|
|
633
674
|
]);
|
|
634
|
-
return (
|
|
675
|
+
return (n, t) => h(o) ? M((a(), l("textarea", {
|
|
635
676
|
key: 0,
|
|
636
|
-
|
|
637
|
-
|
|
677
|
+
ref_key: "textarea",
|
|
678
|
+
ref: g,
|
|
679
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => m.value = i),
|
|
680
|
+
class: y(s.value)
|
|
638
681
|
}, null, 2)), [
|
|
639
|
-
[R,
|
|
640
|
-
]) : (
|
|
682
|
+
[R, m.value]
|
|
683
|
+
]) : (a(), l("textarea", {
|
|
641
684
|
key: 1,
|
|
642
|
-
|
|
685
|
+
ref_key: "textarea",
|
|
686
|
+
ref: g,
|
|
687
|
+
class: y(s.value)
|
|
643
688
|
}, null, 2));
|
|
644
689
|
}
|
|
645
|
-
},
|
|
690
|
+
}, we = { class: "rvc-radio" }, Be = { class: "rvc-radio-label" }, De = /* @__PURE__ */ Object.assign({
|
|
646
691
|
inheritAttrs: !1
|
|
647
692
|
}, {
|
|
648
693
|
__name: "Radio",
|
|
@@ -651,41 +696,40 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
651
696
|
type: [Boolean, String, Array, Object, Number],
|
|
652
697
|
default: null
|
|
653
698
|
},
|
|
654
|
-
id: {
|
|
655
|
-
type: String,
|
|
656
|
-
default: null
|
|
657
|
-
},
|
|
658
699
|
label: {
|
|
659
700
|
type: String,
|
|
660
701
|
default: ""
|
|
661
702
|
}
|
|
662
703
|
},
|
|
663
704
|
emits: ["update:modelValue"],
|
|
664
|
-
setup(e, { emit:
|
|
665
|
-
const
|
|
666
|
-
get: () =>
|
|
667
|
-
set: (t) =>
|
|
668
|
-
}), { hasModelBinding: g } =
|
|
669
|
-
...
|
|
670
|
-
id: i.id,
|
|
705
|
+
setup(e, { emit: u }) {
|
|
706
|
+
const r = e, v = u, o = B({
|
|
707
|
+
get: () => r.modelValue,
|
|
708
|
+
set: (t) => v("update:modelValue", t)
|
|
709
|
+
}), { hasModelBinding: g } = j(), m = N(), s = B(() => ({
|
|
710
|
+
...m,
|
|
671
711
|
type: "radio"
|
|
672
|
-
}));
|
|
673
|
-
return (t,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
712
|
+
})), n = A(null);
|
|
713
|
+
return (t, i) => (a(), l("label", we, [
|
|
714
|
+
h(g) ? M((a(), l("input", p({ key: 0 }, s.value, {
|
|
715
|
+
ref_key: "input",
|
|
716
|
+
ref: n,
|
|
717
|
+
"onUpdate:modelValue": i[0] || (i[0] = (b) => o.value = b)
|
|
718
|
+
}), null, 16)), [
|
|
719
|
+
[q, o.value]
|
|
720
|
+
]) : (a(), l("input", p({ key: 1 }, s.value, {
|
|
721
|
+
ref_key: "input",
|
|
722
|
+
ref: n
|
|
723
|
+
}), null, 16)),
|
|
724
|
+
c(t.$slots, "input", {}, () => [
|
|
725
|
+
i[1] || (i[1] = d("span", { class: "rvc-radio-input" }, null, -1))
|
|
726
|
+
]),
|
|
727
|
+
c(t.$slots, "default", {}, () => [
|
|
728
|
+
d("span", Be, f(e.label), 1)
|
|
729
|
+
])
|
|
686
730
|
]));
|
|
687
731
|
}
|
|
688
|
-
}),
|
|
732
|
+
}), Ce = { class: "rvc-tabs-nav" }, xe = ["value", "selected"], He = /* @__PURE__ */ Object.assign({
|
|
689
733
|
inheritAttrs: !1
|
|
690
734
|
}, {
|
|
691
735
|
__name: "Tabs",
|
|
@@ -706,61 +750,61 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
706
750
|
}
|
|
707
751
|
},
|
|
708
752
|
emits: ["update:modelValue", "tabs:change"],
|
|
709
|
-
setup(e, { emit:
|
|
710
|
-
const
|
|
711
|
-
const
|
|
712
|
-
return
|
|
753
|
+
setup(e, { emit: u }) {
|
|
754
|
+
const r = e, v = u, o = () => {
|
|
755
|
+
const n = r.tabs.findIndex((t) => t.active);
|
|
756
|
+
return n >= 0 ? n : 0;
|
|
713
757
|
}, g = B({
|
|
714
|
-
get: () =>
|
|
715
|
-
set: (
|
|
716
|
-
const
|
|
717
|
-
|
|
758
|
+
get: () => r.modelValue ?? o(),
|
|
759
|
+
set: (n) => {
|
|
760
|
+
const t = r.tabs[n];
|
|
761
|
+
v("update:modelValue", n), v("tabs:change", t);
|
|
718
762
|
}
|
|
719
|
-
}),
|
|
720
|
-
const
|
|
721
|
-
g.value =
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
},
|
|
763
|
+
}), m = (n) => {
|
|
764
|
+
const t = +n.target.value;
|
|
765
|
+
g.value = t;
|
|
766
|
+
const i = r.tabs[t];
|
|
767
|
+
i != null && i.selectEvent && i.selectEvent();
|
|
768
|
+
}, s = (n) => {
|
|
725
769
|
const {
|
|
726
|
-
active:
|
|
727
|
-
as:
|
|
728
|
-
bindAs:
|
|
729
|
-
selectEvent:
|
|
730
|
-
name:
|
|
731
|
-
...
|
|
732
|
-
} =
|
|
733
|
-
return
|
|
770
|
+
active: t,
|
|
771
|
+
as: i,
|
|
772
|
+
bindAs: b,
|
|
773
|
+
selectEvent: S,
|
|
774
|
+
name: L,
|
|
775
|
+
...P
|
|
776
|
+
} = n;
|
|
777
|
+
return P;
|
|
734
778
|
};
|
|
735
|
-
return (
|
|
736
|
-
|
|
779
|
+
return (n, t) => (a(), l(k, null, [
|
|
780
|
+
d("div", p(n.$attrs, {
|
|
737
781
|
class: ["rvc-tabs", { "rvc-tabs-buttons": e.tabStyle === "buttons" }]
|
|
738
782
|
}), [
|
|
739
|
-
|
|
740
|
-
(
|
|
741
|
-
key: `${
|
|
742
|
-
as:
|
|
743
|
-
class: ["rvc-tab", { "rvc-tab-active": g.value ===
|
|
744
|
-
onClick: (
|
|
783
|
+
d("nav", Ce, [
|
|
784
|
+
(a(!0), l(k, null, V(e.tabs, (i, b) => (a(), w(x(i.as ? i.as : "button"), p({ ref_for: !0 }, s(i), {
|
|
785
|
+
key: `${b}-tab-item`,
|
|
786
|
+
as: i.bindAs ? i.bindAs : void 0,
|
|
787
|
+
class: ["rvc-tab", { "rvc-tab-active": g.value === b }],
|
|
788
|
+
onClick: (S) => g.value = b
|
|
745
789
|
}), {
|
|
746
790
|
default: O(() => [
|
|
747
|
-
|
|
791
|
+
T(f(i.name), 1)
|
|
748
792
|
]),
|
|
749
793
|
_: 2
|
|
750
794
|
}, 1040, ["as", "class", "onClick"]))), 128))
|
|
751
795
|
])
|
|
752
796
|
], 16),
|
|
753
|
-
C(H, p(
|
|
797
|
+
C(H, p(n.$attrs, {
|
|
754
798
|
"root-class": "rvc-tabs-select",
|
|
755
799
|
value: g.value,
|
|
756
|
-
onChange:
|
|
800
|
+
onChange: m
|
|
757
801
|
}), {
|
|
758
802
|
default: O(() => [
|
|
759
|
-
(
|
|
760
|
-
key: `${
|
|
761
|
-
value:
|
|
762
|
-
selected: g.value ===
|
|
763
|
-
}, f(
|
|
803
|
+
(a(!0), l(k, null, V(e.tabs, (i, b) => (a(), l("option", {
|
|
804
|
+
key: `${b}-tab-item-select-option`,
|
|
805
|
+
value: b,
|
|
806
|
+
selected: g.value === b
|
|
807
|
+
}, f(i.name), 9, xe))), 128))
|
|
764
808
|
]),
|
|
765
809
|
_: 1
|
|
766
810
|
}, 16, ["value"])
|
|
@@ -768,17 +812,17 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
768
812
|
}
|
|
769
813
|
});
|
|
770
814
|
export {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
815
|
+
Me as Accordion,
|
|
816
|
+
je as Alert,
|
|
817
|
+
Re as Badge,
|
|
818
|
+
Ze as ButtonBase,
|
|
775
819
|
Ie as Checkbox,
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
820
|
+
Fe as DataTable,
|
|
821
|
+
Ne as EmptyState,
|
|
822
|
+
Ge as FormInput,
|
|
779
823
|
H as FormSelect,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
824
|
+
qe as FormTextarea,
|
|
825
|
+
ge as Pagination,
|
|
826
|
+
De as Radio,
|
|
827
|
+
He as Tabs
|
|
784
828
|
};
|