@robuust-digital/vue-components 2.4.0-beta.8 → 2.4.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +15 -0
  3. package/dist/_shared/{ButtonBase.vue_vue_type_script_setup_true_lang-BLm8QzEC.js → ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js} +2 -2
  4. package/dist/_shared/{ChevronDownIcon-CcE_K1lg.js → ChevronDownIcon-BYWciGnh.js} +1 -1
  5. package/dist/_shared/{Combobox.vue_vue_type_script_setup_true_lang-CxRv55TC.js → Combobox.vue_vue_type_script_setup_true_lang-BwTRzqr6.js} +3 -3
  6. package/dist/_shared/{Drawer.vue_vue_type_script_setup_true_lang-XMND_Yzl.js → Drawer.vue_vue_type_script_setup_true_lang-CZMVooMV.js} +4 -4
  7. package/dist/_shared/{Dropdown.vue_vue_type_script_setup_true_lang-BtkiBqxy.js → Dropdown.vue_vue_type_script_setup_true_lang-L_lQEUBC.js} +2 -2
  8. package/dist/_shared/{FormInput.vue_vue_type_script_setup_true_lang-C_1WSzbH.js → FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js} +9 -9
  9. package/dist/_shared/{Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js → Lightswitch.vue_vue_type_script_setup_true_lang-hiuDVfo5.js} +7 -7
  10. package/dist/_shared/{Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js → Modal.vue_vue_type_script_setup_true_lang-CB0Gez7v.js} +5 -5
  11. package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-BLs_S_-D.js → RichTextEditor.vue_vue_type_script_setup_true_lang-DaCv0Gii.js} +11 -11
  12. package/dist/_shared/{Tabs.vue_vue_type_script_setup_true_lang-DMUJ5Emt.js → Tabs.vue_vue_type_script_setup_true_lang-B0RIqYLz.js} +170 -144
  13. package/dist/_shared/{Toast.vue_vue_type_script_setup_true_lang-BfMkJm5T.js → Toast.vue_vue_type_script_setup_true_lang-DS6keeu7.js} +2 -2
  14. package/dist/_shared/{Tooltip.vue_vue_type_script_setup_true_lang-CKp1wzE2.js → Tooltip.vue_vue_type_script_setup_true_lang-B3MHy48T.js} +3 -3
  15. package/dist/_shared/{XMarkIcon-90mcPzBs.js → XMarkIcon-CPr_Rd8y.js} +2 -2
  16. package/dist/_shared/{icon-spinner-CP0VP_YM.js → icon-spinner-BYCMrTdL.js} +2 -2
  17. package/dist/combobox/index.js +1 -1
  18. package/dist/core/badge.css +4 -0
  19. package/dist/core/empty-state.css +4 -0
  20. package/dist/core/index.js +4 -4
  21. package/dist/core/pagination.css +10 -3
  22. package/dist/core/table.css +12 -1
  23. package/dist/core/tabs.css +6 -0
  24. package/dist/core.d.ts +26 -0
  25. package/dist/dialogs/index.js +2 -2
  26. package/dist/dropdown/index.js +1 -1
  27. package/dist/index/index.js +12 -12
  28. package/dist/index.d.ts +26 -0
  29. package/dist/lightswitch/index.js +1 -1
  30. package/dist/rich-text-editor/index.js +1 -1
  31. package/dist/toast/index.js +1 -1
  32. package/dist/tooltip/index.js +1 -1
  33. package/package.json +8 -4
@@ -1,8 +1,8 @@
1
- import { createElementBlock as n, openBlock as l, createElementVNode as u, defineComponent as w, Fragment as k, renderList as V, renderSlot as c, createTextVNode as M, toDisplayString as g, createVNode as L, unref as h, normalizeClass as y, createBlock as C, resolveDynamicComponent as P, withCtx as T, createCommentVNode as $, computed as B, useAttrs as O, ref as x, withDirectives as A, mergeProps as p, vModelDynamic as N, normalizeProps as F, guardReactiveProps as E, vModelSelect as H, vModelText as D } from "vue";
2
- import { r as R } from "./XMarkIcon-90mcPzBs.js";
3
- import { u as I } from "./FormInput.vue_vue_type_script_setup_true_lang-C_1WSzbH.js";
4
- import { S as U } from "./icon-spinner-CP0VP_YM.js";
5
- import { r as Z } from "./ChevronDownIcon-CcE_K1lg.js";
1
+ import { openBlock as l, createElementBlock as n, createElementVNode as u, defineComponent as w, Fragment as k, renderList as V, renderSlot as c, createTextVNode as x, toDisplayString as g, createVNode as I, unref as h, normalizeClass as p, createBlock as C, resolveDynamicComponent as P, withCtx as O, createCommentVNode as $, computed as B, useAttrs as A, ref as S, withDirectives as M, mergeProps as y, vModelDynamic as F, normalizeProps as j, guardReactiveProps as E, vModelSelect as H, vModelText as D } from "vue";
2
+ import { r as R } from "./XMarkIcon-CPr_Rd8y.js";
3
+ import { u as T } from "./FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js";
4
+ import { S as U } from "./icon-spinner-BYCMrTdL.js";
5
+ import { r as Z } from "./ChevronDownIcon-BYWciGnh.js";
6
6
  function K(e, r) {
7
7
  return l(), n("svg", {
8
8
  xmlns: "http://www.w3.org/2000/svg",
@@ -33,7 +33,7 @@ function q(e, r) {
33
33
  })
34
34
  ]);
35
35
  }
36
- const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], Ae = /* @__PURE__ */ w({
36
+ const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], Me = /* @__PURE__ */ w({
37
37
  __name: "Accordion",
38
38
  props: {
39
39
  items: {},
@@ -42,39 +42,39 @@ const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], A
42
42
  contentClass: {}
43
43
  },
44
44
  setup(e) {
45
- return (r, d) => (l(), n("div", G, [
46
- (l(!0), n(k, null, V(e.items, (v, s) => (l(), n("details", {
45
+ return (r, v) => (l(), n("div", G, [
46
+ (l(!0), n(k, null, V(e.items, (f, s) => (l(), n("details", {
47
47
  key: s,
48
48
  open: e.defaultOpenIndex === s,
49
49
  name: e.name
50
50
  }, [
51
51
  u("summary", null, [
52
52
  c(r.$slots, "summary", {
53
- item: v,
53
+ item: f,
54
54
  index: s
55
55
  }, () => [
56
- M(g(v.title) + " ", 1),
56
+ x(g(f.title) + " ", 1),
57
57
  c(r.$slots, "icon", { classList: "rvc-accordion-icon" }, () => [
58
- L(h(q), { class: "rvc-accordion-icon" })
58
+ I(h(q), { class: "rvc-accordion-icon" })
59
59
  ])
60
60
  ])
61
61
  ]),
62
62
  u("div", {
63
- class: y(["rvc-accordion-content", e.contentClass])
63
+ class: p(["rvc-accordion-content", e.contentClass])
64
64
  }, [
65
65
  c(r.$slots, "content", {
66
- item: v,
66
+ item: f,
67
67
  index: s
68
68
  }, () => [
69
69
  u("div", {
70
- innerHTML: v.content
70
+ innerHTML: f.content
71
71
  }, null, 8, Q)
72
72
  ])
73
73
  ], 2)
74
74
  ], 8, J))), 128))
75
75
  ]));
76
76
  }
77
- }), W = { class: "rvc-alert-title" }, Ie = /* @__PURE__ */ w({
77
+ }), W = { class: "rvc-alert-title" }, Te = /* @__PURE__ */ w({
78
78
  __name: "Alert",
79
79
  props: {
80
80
  as: { default: "div" },
@@ -85,10 +85,10 @@ const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], A
85
85
  },
86
86
  emits: ["alert:close"],
87
87
  setup(e) {
88
- return (r, d) => (l(), C(P(e.as), {
89
- class: y(["rvc-alert", `rvc-alert-${e.type}`])
88
+ return (r, v) => (l(), C(P(e.as), {
89
+ class: p(["rvc-alert", `rvc-alert-${e.type}`])
90
90
  }, {
91
- default: T(() => [
91
+ default: O(() => [
92
92
  c(r.$slots, "icon", {}, () => [
93
93
  e.icon ? (l(), C(P(e.icon), {
94
94
  key: 0,
@@ -106,9 +106,9 @@ const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], A
106
106
  key: 0,
107
107
  type: "button",
108
108
  class: "rvc-alert-close",
109
- onClick: d[0] || (d[0] = (v) => r.$emit("alert:close"))
109
+ onClick: v[0] || (v[0] = (f) => r.$emit("alert:close"))
110
110
  }, [
111
- L(h(R))
111
+ I(h(R))
112
112
  ])) : $("", !0)
113
113
  ])
114
114
  ]),
@@ -118,7 +118,7 @@ const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], A
118
118
  }), X = { class: "rvc-checkbox-input" }, Y = {
119
119
  key: 0,
120
120
  class: "rvc-checkbox-label"
121
- }, Oe = /* @__PURE__ */ w({
121
+ }, Ae = /* @__PURE__ */ w({
122
122
  inheritAttrs: !1,
123
123
  __name: "Checkbox",
124
124
  props: {
@@ -128,29 +128,29 @@ const G = { class: "rvc-accordion" }, J = ["open", "name"], Q = ["innerHTML"], A
128
128
  },
129
129
  emits: ["update:modelValue"],
130
130
  setup(e, { emit: r }) {
131
- const d = e, v = r, s = B({
132
- get: () => d.modelValue,
133
- set: (t) => v("update:modelValue", t)
134
- }), { hasModelBinding: f } = I(), m = O(), a = B(() => ({
131
+ const v = e, f = r, s = B({
132
+ get: () => v.modelValue,
133
+ set: (t) => f("update:modelValue", t)
134
+ }), { hasModelBinding: d } = T(), m = A(), a = B(() => ({
135
135
  ...m,
136
136
  type: "checkbox"
137
- })), o = x(null);
137
+ })), o = S(null);
138
138
  return (t, i) => (l(), n("label", {
139
- class: y(["rvc-checkbox", e.rootClass])
139
+ class: p(["rvc-checkbox", e.rootClass])
140
140
  }, [
141
141
  u("div", X, [
142
- h(f) ? A((l(), n("input", p({ key: 0 }, a.value, {
142
+ h(d) ? M((l(), n("input", y({ key: 0 }, a.value, {
143
143
  ref_key: "input",
144
144
  ref: o,
145
145
  "onUpdate:modelValue": i[0] || (i[0] = (b) => s.value = b)
146
146
  }), null, 16)), [
147
- [N, s.value]
148
- ]) : (l(), n("input", p({ key: 1 }, a.value, {
147
+ [F, s.value]
148
+ ]) : (l(), n("input", y({ key: 1 }, a.value, {
149
149
  ref_key: "input",
150
150
  ref: o
151
151
  }), null, 16)),
152
152
  c(t.$slots, "icon", {}, () => [
153
- L(h(K))
153
+ I(h(K))
154
154
  ])
155
155
  ]),
156
156
  c(t.$slots, "default", { label: e.label }, () => [
@@ -204,7 +204,7 @@ function te(e, r) {
204
204
  })
205
205
  ]);
206
206
  }
207
- const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
207
+ const ae = ["value"], le = ["value"], N = /* @__PURE__ */ w({
208
208
  inheritAttrs: !1,
209
209
  __name: "FormSelect",
210
210
  props: {
@@ -219,12 +219,12 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
219
219
  },
220
220
  emits: ["update:modelValue"],
221
221
  setup(e, { emit: r }) {
222
- const d = e, v = r, s = B({
223
- get: () => d.modelValue,
224
- set: (a) => v("update:modelValue", a)
225
- }), { hasModelBinding: f } = I(), m = x(null);
222
+ const v = e, f = r, s = B({
223
+ get: () => v.modelValue,
224
+ set: (a) => f("update:modelValue", a)
225
+ }), { hasModelBinding: d } = T(), m = S(null);
226
226
  return (a, o) => (l(), n("div", {
227
- class: y([
227
+ class: p([
228
228
  "rvc-select",
229
229
  `rvc-select-${e.size}`,
230
230
  e.rootClass
@@ -236,8 +236,8 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
236
236
  }, () => [
237
237
  (l(), C(P(e.prefixIcon), { "aria-hidden": "true" }))
238
238
  ]) : $("", !0),
239
- c(a.$slots, "select", F(E(a.$attrs)), () => [
240
- h(f) ? A((l(), n("select", p({ key: 0 }, a.$attrs, {
239
+ c(a.$slots, "select", j(E(a.$attrs)), () => [
240
+ h(d) ? M((l(), n("select", y({ key: 0 }, a.$attrs, {
241
241
  ref_key: "select",
242
242
  ref: m,
243
243
  "onUpdate:modelValue": o[0] || (o[0] = (t) => s.value = t)
@@ -250,7 +250,7 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
250
250
  ])
251
251
  ], 16)), [
252
252
  [H, s.value]
253
- ]) : (l(), n("select", p({ key: 1 }, a.$attrs, {
253
+ ]) : (l(), n("select", y({ key: 1 }, a.$attrs, {
254
254
  ref_key: "select",
255
255
  ref: m
256
256
  }), [
@@ -270,40 +270,42 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
270
270
  }), ne = {
271
271
  key: 0,
272
272
  class: "rvc-pagination"
273
- }, se = ["value"], oe = { class: "rvc-pagination-info" }, ie = { class: "rvc-pagination-nav-list" }, re = ["disabled", "onClick"], ce = { key: 2 }, ue = { key: 3 }, de = /* @__PURE__ */ w({
273
+ }, oe = ["value"], se = { class: "rvc-pagination-info" }, ie = { class: "rvc-pagination-nav-list" }, re = ["disabled", "onClick"], ce = { key: 2 }, ue = { key: 3 }, de = /* @__PURE__ */ w({
274
274
  __name: "Pagination",
275
275
  props: {
276
276
  pagination: {},
277
277
  perPage: { default: 10 },
278
278
  perPageLabel: { default: "per page" },
279
279
  perPageOptions: { default: () => [10, 20, 50] },
280
- fromLabel: { default: "of" }
280
+ fromLabel: { default: "of" },
281
+ prevIcon: { type: [Function, Object, null], default: null },
282
+ nextIcon: { type: [Function, Object, null], default: null }
281
283
  },
282
284
  emits: ["pagination:change", "pagination:perPage"],
283
285
  setup(e, { emit: r }) {
284
- const d = e, v = r, s = x(d.perPage);
285
- return (f, m) => e.pagination?.total ? (l(), n("div", ne, [
286
- c(f.$slots, "perPage", p(e.pagination, { perPage: s.value }), () => [
287
- L(j, {
286
+ const v = e, f = r, s = B({
287
+ get: () => v.perPage,
288
+ set: (d) => f("pagination:perPage", Number(d))
289
+ });
290
+ return (d, m) => e.pagination?.total ? (l(), n("div", ne, [
291
+ c(d.$slots, "perPage", y(e.pagination, { perPage: s.value }), () => [
292
+ I(N, {
288
293
  modelValue: s.value,
289
- "onUpdate:modelValue": [
290
- m[0] || (m[0] = (a) => s.value = a),
291
- m[1] || (m[1] = (a) => v("pagination:perPage", Number(a)))
292
- ],
294
+ "onUpdate:modelValue": m[0] || (m[0] = (a) => s.value = a),
293
295
  size: "sm",
294
296
  "root-class": "rvc-pagination-per-page"
295
297
  }, {
296
- default: T(() => [
298
+ default: O(() => [
297
299
  (l(!0), n(k, null, V(e.perPageOptions, (a) => (l(), n("option", {
298
300
  key: `pagination-items-per-page-option-${a}`,
299
301
  value: a
300
- }, g(a) + " " + g(e.perPageLabel), 9, se))), 128))
302
+ }, g(a) + " " + g(e.perPageLabel), 9, oe))), 128))
301
303
  ]),
302
304
  _: 1
303
305
  }, 8, ["modelValue"])
304
306
  ]),
305
- c(f.$slots, "info", p(e.pagination, { fromLabel: e.fromLabel }), () => [
306
- u("div", oe, g(e.pagination.from) + " - " + g(e.pagination.to) + " " + g(e.fromLabel) + " " + g(e.pagination.total), 1)
307
+ c(d.$slots, "info", y(e.pagination, { fromLabel: e.fromLabel }), () => [
308
+ u("div", se, g(e.pagination.from) + " - " + g(e.pagination.to) + " " + g(e.fromLabel) + " " + g(e.pagination.total), 1)
307
309
  ]),
308
310
  u("nav", null, [
309
311
  u("ol", ie, [
@@ -314,34 +316,46 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
314
316
  u("button", {
315
317
  type: "button",
316
318
  disabled: a.label === "..." || !a.url,
317
- class: y([
319
+ class: p([
318
320
  "rvc-pagination-button",
319
321
  { "rvc-pagination-button-active": a.active }
320
322
  ]),
321
- onClick: (t) => a.url && v("pagination:change", a.url)
323
+ onClick: (t) => a.url && f("pagination:change", a.url)
322
324
  }, [
323
- a.url !== "..." && o === 0 ? (l(), C(h(ee), {
325
+ a.url !== "..." && o === 0 ? c(d.$slots, "prevIcon", {
324
326
  key: 0,
325
- "aria-hidden": "true",
326
- class: y([
327
- "rvc-pagination-button-icon",
328
- { "rvc-pagination-button-icon-disabled": !a.url }
329
- ])
330
- }, null, 8, ["class"])) : a.label !== "..." && o === e.pagination.links.length - 1 ? (l(), C(h(te), {
327
+ icon: e.prevIcon,
328
+ link: a,
329
+ index: o
330
+ }, () => [
331
+ (l(), C(P(e.prevIcon || h(ee)), {
332
+ "aria-hidden": "true",
333
+ class: p([
334
+ "rvc-pagination-button-icon",
335
+ { "rvc-pagination-button-icon-disabled": !a.url }
336
+ ])
337
+ }, null, 8, ["class"]))
338
+ ]) : a.label !== "..." && o === e.pagination.links.length - 1 ? c(d.$slots, "nextIcon", {
331
339
  key: 1,
332
- "aria-hidden": "true",
333
- class: y([
334
- "rvc-pagination-button-icon",
335
- { "rvc-pagination-button-icon-disabled": !a.url }
336
- ])
337
- }, null, 8, ["class"])) : a.label === "..." ? (l(), n("span", ce, " ... ")) : (l(), n("span", ue, g(a.label), 1))
340
+ icon: e.nextIcon,
341
+ link: a,
342
+ index: o
343
+ }, () => [
344
+ (l(), C(P(e.nextIcon || h(te)), {
345
+ "aria-hidden": "true",
346
+ class: p([
347
+ "rvc-pagination-button-icon",
348
+ { "rvc-pagination-button-icon-disabled": !a.url }
349
+ ])
350
+ }, null, 8, ["class"]))
351
+ ]) : a.label === "..." ? (l(), n("span", ce, " ... ")) : (l(), n("span", ue, g(a.label), 1))
338
352
  ], 10, re)
339
353
  ]))), 128))
340
354
  ])
341
355
  ])
342
356
  ])) : $("", !0);
343
357
  }
344
- }), ve = { key: 0 }, fe = ["aria-label", "onClick"], ge = ["innerHTML"], me = { key: 1 }, be = ["colspan"], ye = { key: 2 }, pe = ["colspan"], $e = { class: "rvc-table-spinner-wrapper" }, he = { key: 1 }, Ne = /* @__PURE__ */ w({
358
+ }), ve = { key: 0 }, fe = ["aria-label", "onClick"], ge = ["innerHTML"], be = { key: 1 }, me = ["colspan"], pe = { key: 2 }, ye = ["colspan"], $e = { class: "rvc-table-spinner-wrapper" }, he = { key: 1 }, Fe = /* @__PURE__ */ w({
345
359
  __name: "DataTable",
346
360
  props: {
347
361
  headers: { default: () => [] },
@@ -351,26 +365,32 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
351
365
  striped: { type: Boolean, default: !1 },
352
366
  spinning: { type: Boolean, default: !1 },
353
367
  pagination: { default: null },
368
+ perPage: { default: 10 },
369
+ perPageLabel: { default: "per page" },
370
+ perPageOptions: { default: () => [10, 20, 50] },
371
+ fromLabel: { default: "of" },
372
+ prevIcon: { type: [Function, Object, null], default: null },
373
+ nextIcon: { type: [Function, Object, null], default: null },
354
374
  wrapperClass: { default: "" },
355
375
  defaultSort: { default: null }
356
376
  },
357
377
  emits: ["table:sortBy", "pagination:change", "pagination:perPage"],
358
378
  setup(e, { emit: r }) {
359
- const d = e, v = r, s = x(d.defaultSort), f = (a) => d.headers.find((o) => o.key === a), m = (a) => {
379
+ const v = e, f = r, s = S(v.defaultSort), d = (a) => v.headers.find((o) => o.key === a), m = (a) => {
360
380
  a.key && (!s.value || s.value.key !== a.key ? s.value = {
361
381
  key: a.key,
362
382
  direction: "asc"
363
383
  } : s.value.direction === "asc" ? s.value = {
364
384
  key: a.key,
365
385
  direction: "desc"
366
- } : s.value = null, v("table:sortBy", s.value));
386
+ } : s.value = null, f("table:sortBy", s.value));
367
387
  };
368
388
  return (a, o) => (l(), n("div", null, [
369
389
  u("div", {
370
- class: y(["rvc-table-wrapper", e.wrapperClass])
390
+ class: p(["rvc-table-wrapper", e.wrapperClass])
371
391
  }, [
372
392
  u("table", {
373
- class: y([{ "rvc-table-striped": e.striped }, "rvc-table"])
393
+ class: p([{ "rvc-table-striped": e.striped }, "rvc-table"])
374
394
  }, [
375
395
  e.headers.length ? (l(), n("thead", ve, [
376
396
  c(a.$slots, "headers", { headers: e.headers }, () => [
@@ -379,7 +399,7 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
379
399
  header: t,
380
400
  index: i
381
401
  }, () => [
382
- (l(), n("th", p({ ref_for: !0 }, { ...t, id: String(t.id) }, {
402
+ (l(), n("th", y({ ref_for: !0 }, { ...t, id: String(t.id) }, {
383
403
  key: `rvc-table-header-${t.id}`,
384
404
  class: {
385
405
  "rvc-table-text-left": t.align === "left" || !t.align,
@@ -391,7 +411,7 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
391
411
  key: 0,
392
412
  type: "button",
393
413
  "aria-label": `Sort on ${t.label}`,
394
- class: y([
414
+ class: p([
395
415
  "rvc-table-sort-button",
396
416
  {
397
417
  "rvc-table-sort-button-center": t.align === "center",
@@ -404,10 +424,10 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
404
424
  sortBy: s.value,
405
425
  header: t
406
426
  }, () => [
407
- M(g(t.label), 1)
427
+ x(g(t.label), 1)
408
428
  ]),
409
- L(h(_), {
410
- class: y([
429
+ I(h(_), {
430
+ class: p([
411
431
  "rvc-table-sort-icon",
412
432
  {
413
433
  "rvc-table-sort-icon-visible": s.value?.key === t.key,
@@ -421,7 +441,7 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
421
441
  sortBy: s.value,
422
442
  header: t
423
443
  }, () => [
424
- M(g(t.label), 1)
444
+ x(g(t.label), 1)
425
445
  ])
426
446
  ], 16))
427
447
  ])), 256))
@@ -440,26 +460,26 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
440
460
  item: t,
441
461
  index: i
442
462
  }, () => [
443
- (l(!0), n(k, null, V(t, (b, S) => (l(), n("td", p({
444
- key: `rvc-table-row-${i}-column-${S}-${t.id}`
463
+ (l(!0), n(k, null, V(t, (b, L) => (l(), n("td", y({
464
+ key: `rvc-table-row-${i}-column-${L}-${t.id}`
445
465
  }, { ref_for: !0 }, t.attrs, {
446
466
  class: {
447
- "rvc-table-text-left": f(String(S))?.align === "left" || !f(String(S))?.align,
448
- "rvc-table-text-center": f(String(S))?.align === "center",
449
- "rvc-table-text-right": f(String(S))?.align === "right"
467
+ "rvc-table-text-left": d(String(L))?.align === "left" || !d(String(L))?.align,
468
+ "rvc-table-text-center": d(String(L))?.align === "center",
469
+ "rvc-table-text-right": d(String(L))?.align === "right"
450
470
  },
451
471
  innerHTML: b
452
472
  }), null, 16, ge))), 128))
453
473
  ])
454
474
  ]))
455
- ])), 256)) : !e.items.length && !e.spinning ? (l(), n("tr", me, [
475
+ ])), 256)) : !e.items.length && !e.spinning ? (l(), n("tr", be, [
456
476
  u("td", {
457
477
  colspan: e.headers.length,
458
478
  class: "rvc-table-state"
459
479
  }, [
460
480
  u("p", null, g(e.noResultsText), 1)
461
- ], 8, be)
462
- ])) : (l(), n("tr", ye, [
481
+ ], 8, me)
482
+ ])) : (l(), n("tr", pe, [
463
483
  u("td", {
464
484
  colspan: e.headers.length,
465
485
  class: "rvc-table-state"
@@ -474,10 +494,10 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
474
494
  "aria-hidden": "true",
475
495
  class: "rvc-table-spinner"
476
496
  })) : $("", !0),
477
- M(" " + g(e.loadingText), 1)
497
+ x(" " + g(e.loadingText), 1)
478
498
  ])
479
499
  ])
480
- ], 8, pe)
500
+ ], 8, ye)
481
501
  ]))
482
502
  ]),
483
503
  a.$slots.footer ? (l(), n("tfoot", he, [
@@ -488,19 +508,25 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
488
508
  ])) : $("", !0)
489
509
  ], 2)
490
510
  ], 2),
491
- e.pagination ? c(a.$slots, "pagination", F(p({ key: 0 }, e.pagination)), () => [
492
- L(de, {
511
+ e.pagination ? c(a.$slots, "pagination", j(y({ key: 0 }, e.pagination)), () => [
512
+ I(de, {
493
513
  pagination: e.pagination,
494
- "onPagination:change": o[0] || (o[0] = (t) => v("pagination:change", t)),
495
- "onPagination:perPage": o[1] || (o[1] = (t) => v("pagination:perPage", t))
496
- }, null, 8, ["pagination"])
514
+ "per-page": e.perPage,
515
+ "per-page-label": e.perPageLabel,
516
+ "per-page-options": e.perPageOptions,
517
+ "from-label": e.fromLabel,
518
+ "prev-icon": e.prevIcon,
519
+ "next-icon": e.nextIcon,
520
+ "onPagination:change": o[0] || (o[0] = (t) => f("pagination:change", t)),
521
+ "onPagination:perPage": o[1] || (o[1] = (t) => f("pagination:perPage", t))
522
+ }, null, 8, ["pagination", "per-page", "per-page-label", "per-page-options", "from-label", "prev-icon", "next-icon"])
497
523
  ]) : $("", !0)
498
524
  ]));
499
525
  }
500
526
  }), ke = {
501
527
  key: 1,
502
528
  class: "rvc-empty-state-title"
503
- }, Fe = /* @__PURE__ */ w({
529
+ }, je = /* @__PURE__ */ w({
504
530
  __name: "EmptyState",
505
531
  props: {
506
532
  title: {},
@@ -508,8 +534,8 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
508
534
  icon: { type: [Function, Object, null] }
509
535
  },
510
536
  setup(e) {
511
- return (r, d) => (l(), n("div", {
512
- class: y(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
537
+ return (r, v) => (l(), n("div", {
538
+ class: p(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
513
539
  }, [
514
540
  e.icon ? (l(), C(P(e.icon), {
515
541
  key: 0,
@@ -519,7 +545,7 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
519
545
  c(r.$slots, "default")
520
546
  ], 2));
521
547
  }
522
- }), je = /* @__PURE__ */ w({
548
+ }), Ne = /* @__PURE__ */ w({
523
549
  __name: "FormTextarea",
524
550
  props: {
525
551
  modelValue: { default: void 0 },
@@ -527,26 +553,26 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
527
553
  },
528
554
  emits: ["update:modelValue"],
529
555
  setup(e, { emit: r }) {
530
- const d = e, v = r, { hasModelBinding: s } = I(), f = x(null), m = B({
531
- get: () => d.modelValue,
532
- set: (o) => v("update:modelValue", o)
556
+ const v = e, f = r, { hasModelBinding: s } = T(), d = S(null), m = B({
557
+ get: () => v.modelValue,
558
+ set: (o) => f("update:modelValue", o)
533
559
  }), a = B(() => [
534
560
  "rvc-textarea",
535
- `rvc-textarea-${d.size}`
561
+ `rvc-textarea-${v.size}`
536
562
  ]);
537
- return (o, t) => h(s) ? A((l(), n("textarea", {
563
+ return (o, t) => h(s) ? M((l(), n("textarea", {
538
564
  key: 0,
539
565
  ref_key: "textarea",
540
- ref: f,
566
+ ref: d,
541
567
  "onUpdate:modelValue": t[0] || (t[0] = (i) => m.value = i),
542
- class: y(a.value)
568
+ class: p(a.value)
543
569
  }, null, 2)), [
544
570
  [D, m.value]
545
571
  ]) : (l(), n("textarea", {
546
572
  key: 1,
547
573
  ref_key: "textarea",
548
- ref: f,
549
- class: y(a.value)
574
+ ref: d,
575
+ class: p(a.value)
550
576
  }, null, 2));
551
577
  }
552
578
  }), Ve = { class: "rvc-radio-input" }, we = { class: "rvc-radio-label" }, ze = /* @__PURE__ */ w({
@@ -559,24 +585,24 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
559
585
  },
560
586
  emits: ["update:modelValue"],
561
587
  setup(e, { emit: r }) {
562
- const d = e, v = r, s = B({
563
- get: () => d.modelValue,
564
- set: (t) => v("update:modelValue", t)
565
- }), { hasModelBinding: f } = I(), m = O(), a = B(() => ({
588
+ const v = e, f = r, s = B({
589
+ get: () => v.modelValue,
590
+ set: (t) => f("update:modelValue", t)
591
+ }), { hasModelBinding: d } = T(), m = A(), a = B(() => ({
566
592
  ...m,
567
593
  type: "radio"
568
- })), o = x(null);
594
+ })), o = S(null);
569
595
  return (t, i) => (l(), n("label", {
570
- class: y(["rvc-radio", e.rootClass])
596
+ class: p(["rvc-radio", e.rootClass])
571
597
  }, [
572
598
  u("div", Ve, [
573
- h(f) ? A((l(), n("input", p({ key: 0 }, a.value, {
599
+ h(d) ? M((l(), n("input", y({ key: 0 }, a.value, {
574
600
  ref_key: "input",
575
601
  ref: o,
576
602
  "onUpdate:modelValue": i[0] || (i[0] = (b) => s.value = b)
577
603
  }), null, 16)), [
578
- [N, s.value]
579
- ]) : (l(), n("input", p({ key: 1 }, a.value, {
604
+ [F, s.value]
605
+ ]) : (l(), n("input", y({ key: 1 }, a.value, {
580
606
  ref_key: "input",
581
607
  ref: o
582
608
  }), null, 16))
@@ -596,59 +622,59 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
596
622
  },
597
623
  emits: ["update:modelValue", "tabs:change"],
598
624
  setup(e, { emit: r }) {
599
- const d = e, v = r, s = () => {
600
- const o = d.tabs.findIndex((t) => t.active);
625
+ const v = e, f = r, s = () => {
626
+ const o = v.tabs.findIndex((t) => t.active);
601
627
  return o >= 0 ? o : 0;
602
- }, f = B({
603
- get: () => d.modelValue ?? s(),
628
+ }, d = B({
629
+ get: () => v.modelValue ?? s(),
604
630
  set: (o) => {
605
- const t = d.tabs[o];
606
- v("update:modelValue", o), t && v("tabs:change", t);
631
+ const t = v.tabs[o];
632
+ f("update:modelValue", o), t && f("tabs:change", t);
607
633
  }
608
634
  }), m = (o) => {
609
635
  const i = +o.target.value;
610
- f.value = i;
611
- const b = d.tabs[i];
636
+ d.value = i;
637
+ const b = v.tabs[i];
612
638
  b?.selectEvent && b.selectEvent();
613
639
  }, a = (o) => {
614
640
  const {
615
641
  active: t,
616
642
  as: i,
617
643
  bindAs: b,
618
- selectEvent: S,
619
- name: Se,
644
+ selectEvent: L,
645
+ name: Pe,
620
646
  ...z
621
647
  } = o;
622
648
  return z;
623
649
  };
624
650
  return (o, t) => (l(), n(k, null, [
625
- u("div", p(o.$attrs, {
651
+ u("div", y(o.$attrs, {
626
652
  class: ["rvc-tabs", { "rvc-tabs-buttons": e.tabStyle === "buttons" }]
627
653
  }), [
628
654
  u("nav", Ce, [
629
- (l(!0), n(k, null, V(e.tabs, (i, b) => (l(), C(P(i.as ? i.as : "button"), p({ ref_for: !0 }, a(i), {
655
+ (l(!0), n(k, null, V(e.tabs, (i, b) => (l(), C(P(i.as ? i.as : "button"), y({ ref_for: !0 }, a(i), {
630
656
  key: `${b}-tab-item`,
631
657
  as: i.bindAs ? i.bindAs : void 0,
632
- class: ["rvc-tab", { "rvc-tab-active": f.value === b }],
633
- onClick: (S) => f.value = b
658
+ class: ["rvc-tab", { "rvc-tab-active": d.value === b }],
659
+ onClick: (L) => d.value = b
634
660
  }), {
635
- default: T(() => [
636
- M(g(i.name), 1)
661
+ default: O(() => [
662
+ x(g(i.name), 1)
637
663
  ]),
638
664
  _: 2
639
665
  }, 1040, ["as", "class", "onClick"]))), 128))
640
666
  ])
641
667
  ], 16),
642
- L(j, p(o.$attrs, {
668
+ I(N, y(o.$attrs, {
643
669
  "root-class": "rvc-tabs-select",
644
- value: f.value,
670
+ value: d.value,
645
671
  onChange: m
646
672
  }), {
647
- default: T(() => [
673
+ default: O(() => [
648
674
  (l(!0), n(k, null, V(e.tabs, (i, b) => (l(), n("option", {
649
675
  key: `${b}-tab-item-select-option`,
650
676
  value: b,
651
- selected: f.value === b
677
+ selected: d.value === b
652
678
  }, g(i.name), 9, Be))), 128))
653
679
  ]),
654
680
  _: 1
@@ -657,13 +683,13 @@ const ae = ["value"], le = ["value"], j = /* @__PURE__ */ w({
657
683
  }
658
684
  });
659
685
  export {
660
- Ae as _,
661
- Ie as a,
662
- Oe as b,
663
- Ne as c,
664
- Fe as d,
665
- j as e,
666
- je as f,
686
+ Me as _,
687
+ Te as a,
688
+ Ae as b,
689
+ Fe as c,
690
+ je as d,
691
+ N as e,
692
+ Ne as f,
667
693
  de as g,
668
694
  ze as h,
669
695
  Ee as i