@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.
@@ -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
- return selectedRowKeys.includes(key);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.3.17",
3
+ "version": "1.3.19",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",