@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.
@@ -1,4 +1,4 @@
1
- import { createElementBlock as l, openBlock as n, createElementVNode as c, Fragment as S, renderList as V, renderSlot as g, createTextVNode as A, toDisplayString as f, createVNode as B, unref as $, normalizeClass as p, createBlock as w, resolveDynamicComponent as C, withCtx as M, createCommentVNode as h, computed as x, useAttrs as N, withDirectives as O, mergeProps as b, vModelDynamic as q, normalizeProps as P, guardReactiveProps as z, vModelSelect as E, ref as D, vModelText as R } from "vue";
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
- c("path", {
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
- c("path", {
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, (u, s) => (n(), l("details", {
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
- c("summary", null, [
68
- g(o.$slots, "summary", {
69
- item: u,
67
+ u("summary", null, [
68
+ m(o.$slots, "summary", {
69
+ item: c,
70
70
  active: e.defaultOpenIndex === s
71
71
  }, () => [
72
- A(f(u.title) + " ", 1),
73
- g(o.$slots, "icon", { classList: "rvc-accordion-icon" }, () => [
74
- B($(J), { class: "rvc-accordion-icon" })
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
- c("div", {
79
- class: p(["rvc-accordion-content", e.contentClass])
78
+ u("div", {
79
+ class: b(["rvc-accordion-content", e.contentClass])
80
80
  }, [
81
- g(o.$slots, "content", { item: u }, () => [
82
- c("div", {
83
- innerHTML: u.content
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(C(e.as), {
118
- class: p(["rvc-alert", `rvc-alert-${e.type}`])
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
- g(o.$slots, "icon", {}, () => [
122
- e.icon ? (n(), w(C(e.icon), {
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
- c("div", null, [
128
- g(o.$slots, "title", {}, () => [
129
- c("span", Y, f(e.title), 1)
127
+ u("div", null, [
128
+ m(o.$slots, "title", {}, () => [
129
+ u("span", Y, f(e.title), 1)
130
130
  ]),
131
- g(o.$slots, "default")
131
+ m(o.$slots, "default")
132
132
  ]),
133
- g(o.$slots, "close", {}, () => [
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] = (u) => o.$emit("alert:close"))
138
+ onClick: i[0] || (i[0] = (c) => o.$emit("alert:close"))
139
139
  }, [
140
- B($(U))
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, u = o, s = x({
171
+ const i = e, c = o, s = B({
172
172
  get: () => i.modelValue,
173
- set: (t) => u("update:modelValue", t)
174
- }), { hasModelBinding: v } = I(), r = {
175
- ...N(),
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
- class: "absolute opacity-0 inset-0 cursor-pointer peer/checkbox"
179
- };
177
+ type: "checkbox"
178
+ }));
180
179
  return (t, a) => (n(), l("div", {
181
- class: p(["rvc-checkbox", e.rootClass])
180
+ class: b(["rvc-checkbox", e.rootClass])
182
181
  }, [
183
- $(v) ? O((n(), l("input", b({ key: 0 }, r, {
184
- "onUpdate:modelValue": a[0] || (a[0] = (d) => s.value = d)
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(b({ key: 1 }, r)), null, 16)),
188
- c("span", _, [
189
- B($(G))
186
+ ]) : (n(), l("input", P(p({ key: 1 }, r.value)), null, 16)),
187
+ u("span", _, [
188
+ C($(G))
190
189
  ]),
191
- c("div", null, [
192
- t.$slots.default || e.label ? g(t.$slots, "default", { key: 0 }, () => [
193
- c("label", { for: e.id }, f(e.label), 9, ee)
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
- c("path", {
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
- c("path", {
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
- c("path", {
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, u = o, s = x({
272
+ const i = e, c = o, s = B({
274
273
  get: () => i.modelValue,
275
- set: (m) => u("update:modelValue", m)
276
- }), { hasModelBinding: v } = I();
277
- return (m, r) => (n(), l("div", {
278
- class: p([
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 ? g(m.$slots, "prefixIcon", {
283
+ e.prefixIcon ? m(d.$slots, "prefixIcon", {
285
284
  key: 0,
286
285
  icon: e.prefixIcon
287
286
  }, () => [
288
- (n(), w(C(e.prefixIcon), { "aria-hidden": "true" }))
287
+ (n(), w(x(e.prefixIcon), { "aria-hidden": "true" }))
289
288
  ]) : h("", !0),
290
- g(m.$slots, "select", P(z(m.$attrs)), () => [
291
- $(v) ? O((n(), l("select", b({ key: 0 }, m.$attrs, {
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
- g(m.$slots, "default")
293
+ m(d.$slots, "default")
295
294
  ], 16)), [
296
295
  [E, s.value]
297
- ]) : (n(), l("select", P(b({ key: 1 }, m.$attrs)), [
298
- g(m.$slots, "default")
296
+ ]) : (n(), l("select", P(p({ key: 1 }, d.$attrs)), [
297
+ m(d.$slots, "default")
299
298
  ], 16))
300
299
  ]),
301
- g(m.$slots, "icon", { icon: e.icon }, () => [
302
- (n(), w(C(e.icon ?? $(Z)), { "aria-hidden": "true" }))
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"], ce = { key: 2 }, ue = { key: 3 }, de = {
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, u = o, s = D(i.perPage);
336
- return (v, m) => {
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(v.$slots, "perPage", b(e.pagination, { perPage: s.value }), () => [
340
- B(H, {
338
+ m(g.$slots, "perPage", p(e.pagination, { perPage: s.value }), () => [
339
+ C(H, {
341
340
  modelValue: s.value,
342
341
  "onUpdate:modelValue": [
343
- m[0] || (m[0] = (t) => s.value = t),
344
- m[1] || (m[1] = (t) => u("pagination:perPage", t))
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(v.$slots, "info", b(e.pagination, { fromLabel: e.fromLabel }), () => [
359
- c("div", ie, f(e.pagination.from) + " - " + f(e.pagination.to) + " " + f(e.fromLabel) + " " + f(e.pagination.total), 1)
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
- c("nav", null, [
362
- c("ol", oe, [
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
- c("button", {
366
+ u("button", {
368
367
  type: "button",
369
368
  disabled: t.label === "..." || !t.url,
370
- class: p([
369
+ class: b([
371
370
  "rvc-pagination-button",
372
371
  { "rvc-pagination-button-active": t.active }
373
372
  ]),
374
- onClick: (d) => t.url && u("pagination:change", t.url)
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: p([
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: p([
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", ce, " ... ")) : (n(), l("span", ue, f(t.label), 1))
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 }, pe = ["colspan"], be = { key: 2 }, ye = ["colspan"], $e = { class: "rvc-table-spinner-wrapper" }, je = {
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 u = !i.align || ["left", "center", "right"].includes(i.align), v = !(i.sortable === !0) || typeof i.key == "string" && i.key.length > 0;
406
- return v || console.warn("[DataTable] Header item with sortable=true is missing required 'key' property:", i), !u && i.align && console.warn("[DataTable] Header item has invalid 'align' value. Must be 'left', 'center' or 'right':", i), u && v;
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, u = o, s = D(null), v = (r) => i.headers.find((t) => t.key === r), m = (r) => {
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, u("table:sortBy", s.value);
444
+ } : s.value = null, c("table:sortBy", s.value);
446
445
  };
447
446
  return (r, t) => (n(), l("div", null, [
448
- c("div", {
449
- class: p(["rvc-table-wrapper", e.wrapperClass])
447
+ u("div", {
448
+ class: b(["rvc-table-wrapper", e.wrapperClass])
450
449
  }, [
451
- c("table", {
452
- class: p([{ "rvc-table-striped": e.striped }, "rvc-table"])
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
- g(r.$slots, "headers", { headers: e.headers }, () => [
456
- c("tr", null, [
457
- (n(!0), l(S, null, V(e.headers, (a, d) => g(r.$slots, "header", {
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: d
458
+ index: v
460
459
  }, () => {
461
460
  var y, k;
462
461
  return [
463
- (n(), l("th", b({ ref_for: !0 }, a, {
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: p([
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) => m(a)
481
+ onClick: (T) => d(a)
483
482
  }, [
484
- g(r.$slots, "header-label", {
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
- B($(te), {
491
- class: p([
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)) : g(r.$slots, "header-label", {
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
- c("tbody", null, [
514
- e.items.length && !e.spinning ? (n(!0), l(S, { key: 0 }, V(e.items, (a, d) => g(r.$slots, "items", {
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: d
515
+ index: v
517
516
  }, () => [
518
517
  (n(), l("tr", {
519
- key: `rvc-table-row-${d}-${a.id}`
518
+ key: `rvc-table-row-${v}-${a.id}`
520
519
  }, [
521
- g(r.$slots, "item", {
520
+ m(r.$slots, "item", {
522
521
  item: a,
523
- index: d
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", b({
528
- key: `rvc-table-row-${d}-column-${k}-${a.id}`,
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 = v(k)) == null ? void 0 : T.align) === "left" || !((L = v(k)) != null && L.align),
533
- "rvc-table-text-center": ((j = v(k)) == null ? void 0 : j.align) === "center",
534
- "rvc-table-text-right": ((F = v(k)) == null ? void 0 : F.align) === "right"
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
- c("td", {
541
+ u("td", {
543
542
  colspan: e.headers.length,
544
543
  class: "rvc-table-state"
545
544
  }, [
546
- c("p", null, f(e.noResultsText), 1)
547
- ], 8, pe)
548
- ])) : (n(), l("tr", be, [
549
- c("td", {
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
- g(r.$slots, "spinner", {
552
+ m(r.$slots, "spinner", {
554
553
  spinning: e.spinning,
555
554
  label: e.loadingText
556
555
  }, () => [
557
- c("div", $e, [
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 ? g(r.$slots, "pagination", P(b({ key: 0 }, e.pagination)), () => [
572
- B(de, {
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) => u("pagination:change", a)),
575
- "onPagination:perPage": t[1] || (t[1] = (a) => u("pagination:perPage", 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: p(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
601
+ class: b(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
603
602
  }, [
604
- e.icon ? (n(), w(C(e.icon), {
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
- g(o.$slots, "default")
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, u = o, { hasModelBinding: s } = I(), v = x({
626
+ const i = e, c = o, { hasModelBinding: s } = I(), g = B({
628
627
  get: () => i.modelValue,
629
- set: (r) => u("update:modelValue", r)
630
- }), m = x(() => [
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) => v.value = a),
637
- class: p(m.value)
635
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => g.value = a),
636
+ class: b(d.value)
638
637
  }, null, 2)), [
639
- [R, v.value]
638
+ [R, g.value]
640
639
  ]) : (n(), l("textarea", {
641
640
  key: 1,
642
- class: p(m.value)
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, u = o, s = x({
664
+ const i = e, c = o, s = B({
666
665
  get: () => i.modelValue,
667
- set: (t) => u("update:modelValue", t)
668
- }), { hasModelBinding: v } = I(), r = {
669
- ...N(),
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
- class: "absolute opacity-0 inset-0 cursor-pointer peer/radio"
673
- };
670
+ type: "radio"
671
+ }));
674
672
  return (t, a) => (n(), l("div", ke, [
675
- $(v) ? O((n(), l("input", b({ key: 0 }, r, {
673
+ $(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
676
674
  id: e.id,
677
- "onUpdate:modelValue": a[0] || (a[0] = (d) => s.value = d)
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(b({ key: 1 }, r)), null, 16)),
681
- a[1] || (a[1] = c("span", { class: "rvc-radio-input" }, null, -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
- g(t.$slots, "default", {}, () => [
684
- c("label", { for: e.id }, f(e.label), 9, Ve)
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, u = o, s = () => {
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
- }, v = x({
712
+ }, g = B({
715
713
  get: () => i.modelValue ?? s(),
716
714
  set: (t) => {
717
715
  const a = i.tabs[t];
718
- u("update:modelValue", t), u("tabs:change", a);
716
+ c("update:modelValue", t), c("tabs:change", a);
719
717
  }
720
- }), m = (t) => {
718
+ }), d = (t) => {
721
719
  const a = +t.target.value;
722
- v.value = a;
723
- const d = i.tabs[a];
724
- d != null && d.selectEvent && d.selectEvent();
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: d,
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
- c("div", b(t.$attrs, {
735
+ u("div", p(t.$attrs, {
738
736
  class: ["rvc-tabs", { "rvc-tabs-buttons": e.tabStyle === "buttons" }]
739
737
  }), [
740
- c("nav", Be, [
741
- (n(!0), l(S, null, V(e.tabs, (d, y) => (n(), w(C(d.as ? d.as : "button"), b({ ref_for: !0 }, r(d), {
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: d.bindAs ? d.bindAs : void 0,
744
- class: ["rvc-tab", { "rvc-tab-active": v.value === y }],
745
- onClick: (k) => v.value = y
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(d.name), 1)
746
+ A(f(v.name), 1)
749
747
  ]),
750
748
  _: 2
751
749
  }, 1040, ["as", "class", "onClick"]))), 128))
752
750
  ])
753
751
  ], 16),
754
- B(H, b(t.$attrs, {
752
+ C(H, p(t.$attrs, {
755
753
  "root-class": "rvc-tabs-select",
756
- value: v.value,
757
- onChange: m
754
+ value: g.value,
755
+ onChange: d
758
756
  }), {
759
757
  default: M(() => [
760
- (n(!0), l(S, null, V(e.tabs, (d, y) => (n(), l("option", {
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: v.value === y
764
- }, f(d.name), 9, Ce))), 128))
761
+ selected: g.value === y
762
+ }, f(v.name), 9, Ce))), 128))
765
763
  ]),
766
764
  _: 1
767
765
  }, 16, ["value"])