@equinor/eds-data-grid-react 0.5.0 → 0.6.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.
@@ -462,6 +462,7 @@ function EdsDataGrid({
462
462
  rowSelection,
463
463
  enableRowSelection,
464
464
  enableMultiRowSelection,
465
+ enableSubRowSelection,
465
466
  selectedRows,
466
467
  rowSelectionState,
467
468
  enableColumnFiltering,
@@ -649,6 +650,7 @@ function EdsDataGrid({
649
650
  debugColumns: debug,
650
651
  enableRowSelection: enableRowSelection ?? rowSelection ?? false,
651
652
  enableMultiRowSelection: enableMultiRowSelection ?? false,
653
+ enableSubRowSelection: enableSubRowSelection ?? false,
652
654
  enableColumnPinning: true,
653
655
  enablePinning: true,
654
656
  getRowId
@@ -18,6 +18,7 @@ function EdsDataGrid({
18
18
  rowSelection,
19
19
  enableRowSelection,
20
20
  enableMultiRowSelection,
21
+ enableSubRowSelection,
21
22
  selectedRows,
22
23
  rowSelectionState,
23
24
  enableColumnFiltering,
@@ -205,6 +206,7 @@ function EdsDataGrid({
205
206
  debugColumns: debug,
206
207
  enableRowSelection: enableRowSelection ?? rowSelection ?? false,
207
208
  enableMultiRowSelection: enableMultiRowSelection ?? false,
209
+ enableSubRowSelection: enableSubRowSelection ?? false,
208
210
  enableColumnPinning: true,
209
211
  enablePinning: true,
210
212
  getRowId
@@ -1,2 +1,2 @@
1
1
  import { EdsDataGridProps } from './EdsDataGridProps';
2
- export declare function EdsDataGrid<T>({ rows, columns, columnResizeMode, pageSize, rowSelection, enableRowSelection, enableMultiRowSelection, selectedRows, rowSelectionState, enableColumnFiltering, debug, enablePagination, enableSorting, stickyHeader, onSelectRow, onRowSelectionChange, caption, enableVirtual, virtualHeight, columnVisibility, columnVisibilityChange, emptyMessage, columnOrder, cellClass, cellStyle, rowClass, rowStyle, headerClass, headerStyle, externalPaginator, onSortingChange, manualSorting, sortingState, columnPinState, scrollbarHorizontal, width, minWidth, height, getRowId, rowVirtualizerInstanceRef, columnSizing, onColumnResize, expansionState, setExpansionState, getSubRows, defaultColumn, onRowClick, onCellClick, }: EdsDataGridProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EdsDataGrid<T>({ rows, columns, columnResizeMode, pageSize, rowSelection, enableRowSelection, enableMultiRowSelection, enableSubRowSelection, selectedRows, rowSelectionState, enableColumnFiltering, debug, enablePagination, enableSorting, stickyHeader, onSelectRow, onRowSelectionChange, caption, enableVirtual, virtualHeight, columnVisibility, columnVisibilityChange, emptyMessage, columnOrder, cellClass, cellStyle, rowClass, rowStyle, headerClass, headerStyle, externalPaginator, onSortingChange, manualSorting, sortingState, columnPinState, scrollbarHorizontal, width, minWidth, height, getRowId, rowVirtualizerInstanceRef, columnSizing, onColumnResize, expansionState, setExpansionState, getSubRows, defaultColumn, onRowClick, onCellClick, }: EdsDataGridProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -89,6 +89,12 @@ type RowSelectionProps<T> = {
89
89
  * @default false
90
90
  */
91
91
  enableMultiRowSelection?: boolean | ((row: Row<T>) => boolean);
92
+ /**
93
+ * Enables/disables automatic sub-row selection when a parent row is selected, or a function that enables/disables automatic sub-row selection
94
+ * @link https://tanstack.com/table/v8/docs/api/features/row-selection#enablesubrowselection
95
+ * @default false
96
+ */
97
+ enableSubRowSelection?: boolean | ((row: Row<T>) => boolean);
92
98
  /**
93
99
  * The currently selected rows
94
100
  * @deprecated Use `rowSelectionState`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/eds-data-grid-react",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "A feature-rich data-grid written in React, implementing the Equinor Design System",
5
5
  "license": "MIT",
6
6
  "types": "dist/types/index.d.ts",
@@ -86,8 +86,8 @@
86
86
  "data grid"
87
87
  ],
88
88
  "engines": {
89
- "pnpm": ">=4",
90
- "node": ">=10.0.0"
89
+ "pnpm": ">=8.15.4",
90
+ "node": "^18.20.2"
91
91
  },
92
92
  "scripts": {
93
93
  "build": "rollup -c --bundleConfigAsCjs && tsc -p tsconfig.build.json",