@adaptabletools/adaptable-cjs 18.1.13 → 18.1.14

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-cjs",
3
- "version": "18.1.13",
3
+ "version": "18.1.14",
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",
@@ -439,7 +439,7 @@ class AdaptableAgGrid {
439
439
  normaliseLayoutState(state, gridOptions) {
440
440
  var _a, _b, _c, _d, _e, _f;
441
441
  if (this.shouldCreateDefaultLayout(state, this.adaptableOptions)) {
442
- const defaultLayout = this.createDefaultLayout(state, gridOptions.columnDefs, gridOptions.autoGroupColumnDef);
442
+ const defaultLayout = this.createDefaultLayout(state, gridOptions);
443
443
  const layoutState = state.Layout || {};
444
444
  const availableLayouts = layoutState.Layouts || [];
445
445
  availableLayouts.push(defaultLayout);
@@ -3734,8 +3734,10 @@ class AdaptableAgGrid {
3734
3734
  }
3735
3735
  return !((_c = layoutState.Layouts) === null || _c === void 0 ? void 0 : _c.length);
3736
3736
  }
3737
- createDefaultLayout(state, agGridColDefs, agGridAutoGroupColDef) {
3737
+ createDefaultLayout(state, agGridOptions) {
3738
3738
  var _a, _b, _c;
3739
+ const agGridColDefs = agGridOptions.columnDefs;
3740
+ const agGridAutoGroupColDef = agGridOptions.autoGroupColumnDef;
3739
3741
  const allColumnDefs = this.agGridAdapter.getFlattenedColDefs(agGridColDefs);
3740
3742
  const defaultLayout = ObjectFactory_1.default.CreateEmptyLayout({
3741
3743
  Name: GeneralConstants_1.DEFAULT_LAYOUT,
@@ -3761,7 +3763,8 @@ class AdaptableAgGrid {
3761
3763
  }, []),
3762
3764
  });
3763
3765
  // handle optional 'gridOptions.autoGroupColumnDefs' parameter
3764
- if (agGridAutoGroupColDef && ((_a = defaultLayout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length)) {
3766
+ if (agGridAutoGroupColDef &&
3767
+ (((_a = defaultLayout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) || agGridOptions.treeData)) {
3765
3768
  defaultLayout.Columns = [GeneralConstants_1.AG_GRID_GROUPED_COLUMN, ...defaultLayout.Columns];
3766
3769
  }
3767
3770
  if (agGridAutoGroupColDef === null || agGridAutoGroupColDef === void 0 ? void 0 : agGridAutoGroupColDef.pinned) {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1722341727251 || Date.now(),
6
- VERSION: "18.1.13" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1722345350588 || Date.now(),
6
+ VERSION: "18.1.14" || '--current-version--',
7
7
  };