@sebgroup/green-core 2.36.0 → 2.37.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/components/table/table.component.d.ts +14 -0
- package/components/table/table.component.js +90 -14
- package/components/table/table.stories.data.d.ts +9 -1
- package/components/table/table.stories.data.js +51 -3
- package/components/table/table.styles.js +181 -9
- package/components/table/table.types.d.ts +9 -1
- package/custom-elements.json +130 -109
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/table/api.md +2 -0
- package/generated/react/index.d.ts +2 -2
- package/generated/react/index.js +2 -2
- package/generated/react/table/index.d.ts +1 -0
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
package/gds-element.js
CHANGED
|
@@ -12,7 +12,7 @@ class GdsElement extends LitElement {
|
|
|
12
12
|
/**
|
|
13
13
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
14
14
|
*/
|
|
15
|
-
this.semanticVersion = "2.
|
|
15
|
+
this.semanticVersion = "2.37.0";
|
|
16
16
|
this._isUsingTransitionalStyles = false;
|
|
17
17
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
18
18
|
}
|
package/generated/mcp/icons.json
CHANGED
package/generated/mcp/index.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
| `striped` | `boolean` | `-` | Applies alternating row background colors. |
|
|
29
29
|
| `actions` | `Types.Actions \| ((row: T, index: number) => any) \| undefined` | `-` | Defines row-level actions. Accepts: action configuration or custom rendering function |
|
|
30
30
|
| `nocache` | `boolean` | `-` | Disables data caching mechanism. |
|
|
31
|
+
| `tfoot` | `Types.Tfoot \| undefined` | `-` | Configures a table footer row (`<tfoot>`) at the bottom of the table. The footer row provides slot insertion points for each visible column, letting consumers render any aggregation (sum, average, count, etc.). Use `tfoot.label` to optionally show a label in the first cell (omitted by default). Use `tfoot.sticky` to pin the footer to the bottom of the scroll area. Slot naming convention: `tfoot:{columnKey}` Accepts: `{ label?: string, sticky?: boolean }` or omit to disable. |
|
|
31
32
|
| `dataLoadKey` | `string \| undefined` | `-` | Key to trigger data reloading when changed. Setting this to a new value forces the table to clear the cache and request new data from the data provider. The value can be any string that is not equal to the previous value. |
|
|
32
33
|
| `height` | `string \| undefined` | `-` | Style Expression Property that controls the height property. Supports space tokens and all valid CSS width values. Sets the height of the table content area and enables vertical scrolling with a sticky header that remains visible. |
|
|
33
34
|
| `variant` | `'primary' \| 'secondary' \| 'tertiary'` | `-` | Sets the visual variant of the table container card. Forwards to the underlying `gds-card` component. Accepts: `primary`, `secondary` (default), `tertiary`. > Variant naming will change in the next major release. |
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
|------|-------------|
|
|
52
53
|
| ``header-lead`` | Content displayed at the start of the table header (after search). |
|
|
53
54
|
| ``header-trail`` | Content displayed at the end of the table header (before settings). |
|
|
55
|
+
| ``footer`` | Content displayed in the table footer area (before pagination). |
|
|
54
56
|
| ``error`` | Custom error state content when data loading fails. |
|
|
55
57
|
| ``empty`` | Custom empty state content when no data is available. |
|
|
56
58
|
| ``no-results`` | Custom no results content when search returns empty. |
|
|
@@ -49,6 +49,7 @@ export * from './filter-chip/index.js';
|
|
|
49
49
|
export * from './formatted-account/index.js';
|
|
50
50
|
export * from './formatted-date/index.js';
|
|
51
51
|
export * from './formatted-number/index.js';
|
|
52
|
+
export * from './radio-group/index.js';
|
|
52
53
|
export * from './icons/icon-ai/index.js';
|
|
53
54
|
export * from './icons/icon-airplane-up/index.js';
|
|
54
55
|
export * from './icons/icon-archive/index.js';
|
|
@@ -388,10 +389,9 @@ export * from './icons/icon-youtube/index.js';
|
|
|
388
389
|
export * from './icons/icon-zap/index.js';
|
|
389
390
|
export * from './icons/icon-zoom-in/index.js';
|
|
390
391
|
export * from './icons/icon-zoom-out/index.js';
|
|
391
|
-
export * from './radio-group/index.js';
|
|
392
392
|
export * from './segment/index.js';
|
|
393
|
-
export * from './sensitive-date/index.js';
|
|
394
393
|
export * from './sensitive-account/index.js';
|
|
394
|
+
export * from './sensitive-date/index.js';
|
|
395
395
|
export * from './sensitive-number/index.js';
|
|
396
396
|
export * from './menu-item/index.js';
|
|
397
397
|
export * from './menu-heading/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -49,6 +49,7 @@ export * from "./filter-chip/index.js";
|
|
|
49
49
|
export * from "./formatted-account/index.js";
|
|
50
50
|
export * from "./formatted-date/index.js";
|
|
51
51
|
export * from "./formatted-number/index.js";
|
|
52
|
+
export * from "./radio-group/index.js";
|
|
52
53
|
export * from "./icons/icon-ai/index.js";
|
|
53
54
|
export * from "./icons/icon-airplane-up/index.js";
|
|
54
55
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -388,10 +389,9 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
388
389
|
export * from "./icons/icon-zap/index.js";
|
|
389
390
|
export * from "./icons/icon-zoom-in/index.js";
|
|
390
391
|
export * from "./icons/icon-zoom-out/index.js";
|
|
391
|
-
export * from "./radio-group/index.js";
|
|
392
392
|
export * from "./segment/index.js";
|
|
393
|
-
export * from "./sensitive-date/index.js";
|
|
394
393
|
export * from "./sensitive-account/index.js";
|
|
394
|
+
export * from "./sensitive-date/index.js";
|
|
395
395
|
export * from "./sensitive-number/index.js";
|
|
396
396
|
export * from "./menu-item/index.js";
|
|
397
397
|
export * from "./menu-heading/index.js";
|
|
@@ -37,6 +37,7 @@ export declare const GdsTable: {
|
|
|
37
37
|
striped?: boolean | undefined;
|
|
38
38
|
actions?: import("../../../components/table/table.types").Actions | ((row: import("../../../components/table/table.types").Row, index: number) => any) | undefined;
|
|
39
39
|
nocache?: boolean | undefined;
|
|
40
|
+
tfoot?: import("../../../components/table/table.types").Tfoot | undefined;
|
|
40
41
|
dataLoadKey?: string | undefined;
|
|
41
42
|
height?: string | undefined;
|
|
42
43
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
package/package.json
CHANGED