@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.
@@ -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
- if (selectionStatus === SelectionStatus.All) {
387
- return true;
388
- }
389
- if (selectionStatus === SelectionStatus.None) {
390
- return false;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.3.18",
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)",