@monolith-forensics/monolith-ui 1.3.17 → 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 +12 -1
- package/package.json +1 -1
|
@@ -383,7 +383,18 @@ const TableProvider = (_a) => {
|
|
|
383
383
|
};
|
|
384
384
|
const isRowSelected = (row) => {
|
|
385
385
|
const key = !!props.keyField ? row[props.keyField] : row.__key;
|
|
386
|
-
|
|
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;
|
|
397
|
+
}
|
|
387
398
|
};
|
|
388
399
|
const getCalculatedSelectionTotal = () => {
|
|
389
400
|
switch (selectionStatus) {
|