@adaptabletools/adaptable 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",
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",
@@ -435,7 +435,7 @@ export class AdaptableAgGrid {
435
435
  normaliseLayoutState(state, gridOptions) {
436
436
  var _a, _b, _c, _d, _e, _f;
437
437
  if (this.shouldCreateDefaultLayout(state, this.adaptableOptions)) {
438
- const defaultLayout = this.createDefaultLayout(state, gridOptions.columnDefs, gridOptions.autoGroupColumnDef);
438
+ const defaultLayout = this.createDefaultLayout(state, gridOptions);
439
439
  const layoutState = state.Layout || {};
440
440
  const availableLayouts = layoutState.Layouts || [];
441
441
  availableLayouts.push(defaultLayout);
@@ -3730,8 +3730,10 @@ export class AdaptableAgGrid {
3730
3730
  }
3731
3731
  return !((_c = layoutState.Layouts) === null || _c === void 0 ? void 0 : _c.length);
3732
3732
  }
3733
- createDefaultLayout(state, agGridColDefs, agGridAutoGroupColDef) {
3733
+ createDefaultLayout(state, agGridOptions) {
3734
3734
  var _a, _b, _c;
3735
+ const agGridColDefs = agGridOptions.columnDefs;
3736
+ const agGridAutoGroupColDef = agGridOptions.autoGroupColumnDef;
3735
3737
  const allColumnDefs = this.agGridAdapter.getFlattenedColDefs(agGridColDefs);
3736
3738
  const defaultLayout = ObjectFactory.CreateEmptyLayout({
3737
3739
  Name: DEFAULT_LAYOUT,
@@ -3757,7 +3759,8 @@ export class AdaptableAgGrid {
3757
3759
  }, []),
3758
3760
  });
3759
3761
  // handle optional 'gridOptions.autoGroupColumnDefs' parameter
3760
- if (agGridAutoGroupColDef && ((_a = defaultLayout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length)) {
3762
+ if (agGridAutoGroupColDef &&
3763
+ (((_a = defaultLayout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) || agGridOptions.treeData)) {
3761
3764
  defaultLayout.Columns = [AG_GRID_GROUPED_COLUMN, ...defaultLayout.Columns];
3762
3765
  }
3763
3766
  if (agGridAutoGroupColDef === null || agGridAutoGroupColDef === void 0 ? void 0 : agGridAutoGroupColDef.pinned) {
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  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" || '',
3
- PUBLISH_TIMESTAMP: 1722341695319 || Date.now(),
4
- VERSION: "18.1.13" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1722345319339 || Date.now(),
4
+ VERSION: "18.1.14" || '--current-version--',
5
5
  };