@desynova-digital/components 9.1.37 → 9.1.39

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.
@@ -660,7 +660,9 @@ var Table = /*#__PURE__*/function (_Component) {
660
660
  }
661
661
  if (prevProps.tableLoading !== this.props.tableLoading) {
662
662
  this.setState({
663
- isAllRowsSelected: false
663
+ isAllRowsSelected: this.props.bulkRestoreAllowed && this.state.selectedRows.length == this.state.items.map(function (ele) {
664
+ return ele.rowChecked;
665
+ }).length ? true : false
664
666
  });
665
667
  }
666
668
  // Recalculate split columns if maxShowNoOfColumns or showActions change
@@ -707,7 +709,7 @@ var Table = /*#__PURE__*/function (_Component) {
707
709
  defaultShowColumns: spiltColumns.defaultShowColumns,
708
710
  extraColumns: spiltColumns.extraColumns,
709
711
  nestedTable: spiltColumns.nestedTable,
710
- items: this.props.bulkRestoreAllowed && this.state.selectedRows.length > 1 ? this.getDisplayedItems(this.columns, updatedData) : this.getDisplayedItems(this.columns, newProps.items),
712
+ items: this.props.bulkRestoreAllowed && this.state.selectedRows.length > 0 ? this.getDisplayedItems(this.columns, updatedData) : this.getDisplayedItems(this.columns, newProps.items),
711
713
  showColumnArr: this.getFieldArr(spiltColumns.defaultShowColumns)
712
714
  /*
713
715
  * ...(newProps.tableTitle !== this.props.tableTitle
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.1.37",
3
+ "version": "9.1.39",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.1.37",
10
+ "@desynova-digital/tokens": "9.1.39",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },