@robuust-digital/vue-components 2.6.7 → 2.6.8

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 CHANGED
@@ -1,3 +1,13 @@
1
+ ## 2.6.8 (18-05-2026)
2
+
3
+ ### Added
4
+
5
+ * `DataTable`: Added `--rvc-table-striped-border-radius` to customize rounded striped table rows
6
+
7
+ ### Fixed
8
+
9
+ * `DataTable`: Do not render `id="undefined"` for headers without an `id`
10
+
1
11
  ## 2.6.7 (13-05-2026)
2
12
 
3
13
  ### Added
@@ -399,8 +399,8 @@ const ae = ["value"], le = ["value"], N = /* @__PURE__ */ w({
399
399
  header: t,
400
400
  index: i
401
401
  }, () => [
402
- (l(), n("th", y({ ref_for: !0 }, { ...t, id: String(t.id) }, {
403
- key: `rvc-table-header-${t.id}`,
402
+ (l(), n("th", y({ ref_for: !0 }, { ...t, id: t.id === void 0 || t.id === null ? void 0 : String(t.id) }, {
403
+ key: `rvc-table-header-${t.id ?? t.key ?? i}`,
404
404
  class: {
405
405
  "rvc-table-text-left": t.align === "left" || !t.align,
406
406
  "rvc-table-text-center": t.align === "center",
@@ -1,4 +1,4 @@
1
- import { _ as e, a as s, b as t, c as r, d as m, e as p, f as x, g as c, h as f, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-CLF0EEY-.js";
1
+ import { _ as e, a as s, b as t, c as r, d as m, e as p, f as x, g as c, h as f, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-BkxgXUlf.js";
2
2
  import { _ as b } from "../_shared/ChevronDownIcon-BYWciGnh.js";
3
3
  import { _ } from "../_shared/ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js";
4
4
  import { _ as l } from "../_shared/FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js";
@@ -16,9 +16,11 @@
16
16
  --rvc-table-white-space: nowrap;
17
17
  --rvc-table-line-height: 1.1;
18
18
  --rvc-table-spinner-size: calc(var(--spacing) * 5);
19
+ --rvc-table-striped-border-radius: 0;
19
20
  --rvc-table-striped-cell-border-color: transparent;
20
21
  --rvc-table-striped-cell-border-style: solid;
21
22
  --rvc-table-striped-cell-border-width: 0;
23
+ --rvc-table-striped-row-bg-color-hover: var(--rvc-table-bg-color);
22
24
  }
23
25
 
24
26
  @layer components {
@@ -30,6 +32,8 @@
30
32
 
31
33
  .rvc-table {
32
34
  width: 100%;
35
+ border-spacing: 0;
36
+ border-collapse: separate;
33
37
 
34
38
  &.rvc-table-striped {
35
39
  thead th {
@@ -37,18 +41,31 @@
37
41
  background-color: var(--rvc-table-head-bg-color);
38
42
  }
39
43
 
44
+ th,
45
+ td {
46
+ &:first-child {
47
+ border-start-start-radius: var(--rvc-table-striped-border-radius);
48
+ border-end-start-radius: var(--rvc-table-striped-border-radius);
49
+ }
50
+
51
+ &:last-child {
52
+ border-start-end-radius: var(--rvc-table-striped-border-radius);
53
+ border-end-end-radius: var(--rvc-table-striped-border-radius);
54
+ }
55
+ }
56
+
40
57
  tr:nth-of-type(even) td {
41
58
  background-color: var(--rvc-table-bg-color);
59
+
60
+ &:hover {
61
+ background-color: var(--rvc-table-striped-row-bg-color-hover);
62
+ }
42
63
  }
43
64
 
44
65
  td {
45
66
  padding-inline: var(--rvc-table-padding-x);
46
67
  border-bottom: var(--rvc-table-striped-cell-border-width) var(--rvc-table-striped-cell-border-style) var(--rvc-table-striped-cell-border-color);
47
68
  }
48
-
49
- tr:hover td {
50
- background-color: var(--rvc-table-striped-row-bg-color-hover);
51
- }
52
69
  }
53
70
 
54
71
  &:not(.rvc-table-striped) {
package/dist/core.d.ts CHANGED
@@ -518,7 +518,7 @@ declare interface CheckboxProps {
518
518
  export declare const DataTable: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
519
519
 
520
520
  declare interface DataTableHeader {
521
- id: string | number;
521
+ id?: string | number;
522
522
  label: string;
523
523
  key?: string;
524
524
  align?: 'left' | 'center' | 'right';
@@ -1,4 +1,4 @@
1
- import { _ as r, a as t, b as e, c as s, d as m, e as p, f as x, g as f, h as _, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-CLF0EEY-.js";
1
+ import { _ as r, a as t, b as e, c as s, d as m, e as p, f as x, g as f, h as _, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-BkxgXUlf.js";
2
2
  import { _ as d } from "../_shared/ChevronDownIcon-BYWciGnh.js";
3
3
  import { _ as n } from "../_shared/ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js";
4
4
  import { _ as h } from "../_shared/FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js";
package/dist/index.d.ts CHANGED
@@ -1166,7 +1166,7 @@ declare interface CustomCommand {
1166
1166
  export declare const DataTable: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1167
1167
 
1168
1168
  declare interface DataTableHeader {
1169
- id: string | number;
1169
+ id?: string | number;
1170
1170
  label: string;
1171
1171
  key?: string;
1172
1172
  align?: 'left' | 'center' | 'right';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"