@trackunit/react-table 1.21.24 → 1.21.26
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/index.cjs.js +7 -1
- package/index.esm.js +7 -1
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -1251,7 +1251,7 @@ const Table = ({ rowHeight = 50, loading = false, hideFooter = false, ...props }
|
|
|
1251
1251
|
(props.isRowClickable ? props.isRowClickable(row.original) : true)
|
|
1252
1252
|
? "pointer"
|
|
1253
1253
|
: "default",
|
|
1254
|
-
selection: "auto",
|
|
1254
|
+
selection: row.getIsSelected() ? "selected" : "auto",
|
|
1255
1255
|
focus: "unfocused",
|
|
1256
1256
|
})), "data-testid": `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
|
|
1257
1257
|
if (props.onRowClick) {
|
|
@@ -1282,6 +1282,7 @@ const Table = ({ rowHeight = 50, loading = false, hideFooter = false, ...props }
|
|
|
1282
1282
|
lastUnpinnedWithoutBorder: isLastUnpinned(cell.column.id) && (containWholeTable || hasAnyGrowingColumn),
|
|
1283
1283
|
isColumnDragging: draggingColumnId === cell.column.id,
|
|
1284
1284
|
isColumnDropped: droppedColumnId === cell.column.id,
|
|
1285
|
+
selected: row.getIsSelected(),
|
|
1285
1286
|
}), "data-pinned": pinned, "data-selection-cell": props.selectionColId && cell.column.id === props.selectionColId ? "true" : undefined, key: cell.id, onClick: event => {
|
|
1286
1287
|
// prevent onRowClick action when clicking on a "selectable" cell with checkbox
|
|
1287
1288
|
if (props.selectionColId && cell.column.id === props.selectionColId) {
|
|
@@ -1371,12 +1372,17 @@ const cvaTd = cssClassVarianceUtilities.cvaMerge(["relative"], {
|
|
|
1371
1372
|
true: "column-dropped",
|
|
1372
1373
|
false: "",
|
|
1373
1374
|
},
|
|
1375
|
+
selected: {
|
|
1376
|
+
true: "bg-primary-50 group-hover:bg-primary-100 group-focus-within:bg-primary-50",
|
|
1377
|
+
false: "",
|
|
1378
|
+
},
|
|
1374
1379
|
},
|
|
1375
1380
|
defaultVariants: {
|
|
1376
1381
|
pinned: false,
|
|
1377
1382
|
isColumnDragging: false,
|
|
1378
1383
|
isColumnDropped: false,
|
|
1379
1384
|
lastUnpinnedWithoutBorder: false,
|
|
1385
|
+
selected: false,
|
|
1380
1386
|
},
|
|
1381
1387
|
});
|
|
1382
1388
|
|
package/index.esm.js
CHANGED
|
@@ -1250,7 +1250,7 @@ const Table = ({ rowHeight = 50, loading = false, hideFooter = false, ...props }
|
|
|
1250
1250
|
(props.isRowClickable ? props.isRowClickable(row.original) : true)
|
|
1251
1251
|
? "pointer"
|
|
1252
1252
|
: "default",
|
|
1253
|
-
selection: "auto",
|
|
1253
|
+
selection: row.getIsSelected() ? "selected" : "auto",
|
|
1254
1254
|
focus: "unfocused",
|
|
1255
1255
|
})), "data-testid": `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
|
|
1256
1256
|
if (props.onRowClick) {
|
|
@@ -1281,6 +1281,7 @@ const Table = ({ rowHeight = 50, loading = false, hideFooter = false, ...props }
|
|
|
1281
1281
|
lastUnpinnedWithoutBorder: isLastUnpinned(cell.column.id) && (containWholeTable || hasAnyGrowingColumn),
|
|
1282
1282
|
isColumnDragging: draggingColumnId === cell.column.id,
|
|
1283
1283
|
isColumnDropped: droppedColumnId === cell.column.id,
|
|
1284
|
+
selected: row.getIsSelected(),
|
|
1284
1285
|
}), "data-pinned": pinned, "data-selection-cell": props.selectionColId && cell.column.id === props.selectionColId ? "true" : undefined, key: cell.id, onClick: event => {
|
|
1285
1286
|
// prevent onRowClick action when clicking on a "selectable" cell with checkbox
|
|
1286
1287
|
if (props.selectionColId && cell.column.id === props.selectionColId) {
|
|
@@ -1370,12 +1371,17 @@ const cvaTd = cvaMerge(["relative"], {
|
|
|
1370
1371
|
true: "column-dropped",
|
|
1371
1372
|
false: "",
|
|
1372
1373
|
},
|
|
1374
|
+
selected: {
|
|
1375
|
+
true: "bg-primary-50 group-hover:bg-primary-100 group-focus-within:bg-primary-50",
|
|
1376
|
+
false: "",
|
|
1377
|
+
},
|
|
1373
1378
|
},
|
|
1374
1379
|
defaultVariants: {
|
|
1375
1380
|
pinned: false,
|
|
1376
1381
|
isColumnDragging: false,
|
|
1377
1382
|
isColumnDropped: false,
|
|
1378
1383
|
lastUnpinnedWithoutBorder: false,
|
|
1384
|
+
selected: false,
|
|
1379
1385
|
},
|
|
1380
1386
|
});
|
|
1381
1387
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.26",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"react-dnd": "16.0.1",
|
|
12
12
|
"react-dnd-html5-backend": "16.0.1",
|
|
13
13
|
"tailwind-merge": "^2.0.0",
|
|
14
|
-
"@trackunit/react-components": "1.22.
|
|
15
|
-
"@trackunit/shared-utils": "1.13.
|
|
16
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
17
|
-
"@trackunit/ui-icons": "1.11.
|
|
18
|
-
"@trackunit/react-table-base-components": "1.21.
|
|
19
|
-
"@trackunit/react-form-components": "1.22.
|
|
20
|
-
"@trackunit/i18n-library-translation": "1.18.
|
|
21
|
-
"@trackunit/iris-app-runtime-core-api": "1.14.
|
|
14
|
+
"@trackunit/react-components": "1.22.21",
|
|
15
|
+
"@trackunit/shared-utils": "1.13.114",
|
|
16
|
+
"@trackunit/css-class-variance-utilities": "1.11.114",
|
|
17
|
+
"@trackunit/ui-icons": "1.11.110",
|
|
18
|
+
"@trackunit/react-table-base-components": "1.21.25",
|
|
19
|
+
"@trackunit/react-form-components": "1.22.25",
|
|
20
|
+
"@trackunit/i18n-library-translation": "1.18.21",
|
|
21
|
+
"@trackunit/iris-app-runtime-core-api": "1.14.29"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tanstack/react-router": "^1.114.29",
|