@monolith-forensics/monolith-ui 1.3.18 → 1.3.19
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/dist/Table/TableProvider.js +11 -6
- package/package.json +1 -1
|
@@ -383,13 +383,18 @@ const TableProvider = (_a) => {
|
|
|
383
383
|
};
|
|
384
384
|
const isRowSelected = (row) => {
|
|
385
385
|
const key = !!props.keyField ? row[props.keyField] : row.__key;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
386
|
+
switch (selectionStatus) {
|
|
387
|
+
case SelectionStatus.All:
|
|
388
|
+
return true;
|
|
389
|
+
case SelectionStatus.None:
|
|
390
|
+
return false;
|
|
391
|
+
case SelectionStatus.SomeExcluded:
|
|
392
|
+
return !excludedRowKeys.includes(key);
|
|
393
|
+
case SelectionStatus.SomeIncluded:
|
|
394
|
+
return selectedRowKeys.includes(key);
|
|
395
|
+
default:
|
|
396
|
+
return false;
|
|
391
397
|
}
|
|
392
|
-
return selectedRowKeys.includes(key);
|
|
393
398
|
};
|
|
394
399
|
const getCalculatedSelectionTotal = () => {
|
|
395
400
|
switch (selectionStatus) {
|