@adaptabletools/adaptable 20.0.7 → 20.0.8

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": "20.0.7",
3
+ "version": "20.0.8",
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",
@@ -75,7 +75,7 @@ export interface LayoutBase extends AdaptableObject {
75
75
  */
76
76
  AutoSizeColumns?: boolean;
77
77
  /**
78
- * Display Grand Total Row at the top or bottom of the Table/Pivot
78
+ * Display Grand Total Row at the top or bottom of the Table/Pivot Layout
79
79
  */
80
80
  GrandTotalRow?: 'top' | 'bottom' | boolean;
81
81
  }
@@ -316,6 +316,7 @@ export const pivotLayoutModelToPivotLayout = (layoutModel, defaults) => {
316
316
  ColumnVisibility: layoutModel.ColumnVisibility,
317
317
  ColumnSorts: layoutModel.ColumnSorts,
318
318
  ColumnPinning: layoutModel.ColumnPinning,
319
+ PivotExpandLevel: layoutModel.PivotExpandLevel,
319
320
  };
320
321
  if (layoutModel.PivotGroupedColumns) {
321
322
  pivotLayout.PivotGroupedColumns = layoutModel.PivotGroupedColumns;
@@ -691,6 +691,22 @@ You need to define at least one Layout!`);
691
691
  }
692
692
  };
693
693
  });
694
+ // this is necessary here for the initialisation of the LayoutManager
695
+ /**
696
+ * `grandTotalRow`
697
+ */
698
+ this.agGridOptionsService.setGridOptionsProperty(gridOptions, 'grandTotalRow', (original_grandTotalRow) => {
699
+ const currentLayout = this.api.layoutApi.getCurrentLayout();
700
+ if (!currentLayout) {
701
+ return original_grandTotalRow;
702
+ }
703
+ return currentLayout.GrandTotalRow === true
704
+ ? 'top'
705
+ : currentLayout.GrandTotalRow === false
706
+ ? undefined
707
+ : currentLayout.GrandTotalRow;
708
+ });
709
+ // this is necessary here for the initialisation of the LayoutManager
694
710
  /**
695
711
  * `suppressAggFuncInHeader`
696
712
  */
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  NEXT_PUBLIC_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: 1745854118862 || Date.now(),
4
- VERSION: "20.0.7" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1745928512432 || Date.now(),
4
+ VERSION: "20.0.8" || '--current-version--',
5
5
  };
package/src/types.d.ts CHANGED
@@ -38,7 +38,7 @@ export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
38
38
  export type { FilterOptions, ColumnFilterOptions, GridFilterOptions, IsRowFilterableContext, InFilterValueInfo, CustomInFilterValuesContext, GridFilterEditors, } from './AdaptableOptions/FilterOptions';
39
39
  export type { QuickSearchOptions, QuickSearchContext } from './AdaptableOptions/QuickSearchOptions';
40
40
  export type { FormatColumnOptions, CustomDisplayFormatter, CustomDisplayFormatterContext, } from './AdaptableOptions/FormatColumnOptions';
41
- export type { ColumnOptions, ColumnFriendlyNameContext, ColumnTypesContext, } from './AdaptableOptions/ColumnOptions';
41
+ export type { ColumnOptions, ColumnFriendlyNameContext, ColumnTypesContext, ColumnHeaderContext, } from './AdaptableOptions/ColumnOptions';
42
42
  export type { AdaptablePersistStateFunction, AdaptableStateFunctionConfig, AdaptableLoadStateFunction, AdaptableSaveStateFunction, AdaptableClearStateFunction, StateOptions, } from './AdaptableOptions/StateOptions';
43
43
  export type { TableAggregationColumns, PivotAggregationColumns, WeightedAverageAggregation, } from './AdaptableState/Common/AggregationColumns';
44
44
  export type { AccessLevel, Entitlement } from './AdaptableState/Common/Entitlement';