@adaptabletools/adaptable 16.1.1-canary.1 → 16.1.1-canary.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "16.1.1-canary.1",
3
+ "version": "16.1.1-canary.2",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -1,2 +1,2 @@
1
- declare const _default: 1698258143889;
1
+ declare const _default: 1699976004461;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1698258143889;
3
+ exports.default = 1699976004461;
@@ -1742,6 +1742,13 @@ class Adaptable {
1742
1742
  this.api.gridApi.getFirstDisplayedRowNode()) {
1743
1743
  layout.ExpandedRowGroupValues = this.getExpandRowGroupsKeys();
1744
1744
  }
1745
+ const previousVisibleColumns = currentLayout.Columns;
1746
+ const newVisibleColumns = layout.Columns;
1747
+ // check if all new columns were previously visible
1748
+ const someColumnsAreNew = newVisibleColumns.some((colId) => !previousVisibleColumns.includes(colId));
1749
+ if (someColumnsAreNew) {
1750
+ this.setupColumns();
1751
+ }
1745
1752
  this.persistLayout(layout);
1746
1753
  }
1747
1754
  // This method returns selected cells ONLY (if selection mode is cells or multiple cells).
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "16.1.1-canary.1";
1
+ declare const _default: "16.1.1-canary.2";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '16.1.1-canary.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '16.1.1-canary.2'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version