@adaptabletools/adaptable-cjs 21.0.11 → 21.0.12

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": "21.0.11",
3
+ "version": "21.0.12",
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",
@@ -12,6 +12,7 @@ const agGridDataTypeDefinitions_1 = require("./agGridDataTypeDefinitions");
12
12
  const ColumnApiImpl_1 = require("../Api/Implementation/ColumnApiImpl");
13
13
  const isPivotColumnTotal_1 = require("../layout-manager/src/isPivotColumnTotal");
14
14
  const isPivotAggTotalColumn_1 = require("../layout-manager/src/isPivotAggTotalColumn");
15
+ const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
15
16
  // AG GRID obfuscates its internals, this is (currently) the best way to get hold of its internal services
16
17
  const DANGER_AG_GRID_BEANS_MAP = {};
17
18
  const getColumnApiModule = () => ag_grid_enterprise_1.ColumnApiModule;
@@ -612,9 +613,10 @@ class AgGridAdapter {
612
613
  return false;
613
614
  }
614
615
  getColumnAggregationFunctions(colDef) {
615
- const result = colDef.allowedAggFuncs || ['sum', 'min', 'max', 'count', 'avg', 'first', 'last']; // those are the default fns aggrid supports out-of-the-box
616
+ let result = [].concat(colDef.allowedAggFuncs || ['sum', 'min', 'max', 'count', 'avg', 'first', 'last']); // those are the default fns aggrid supports out-of-the-box
616
617
  const gridOptionsAggFuncs = this.adaptableApi.agGridApi.getGridOption('aggFuncs') || {};
617
618
  result.push(...Object.keys(gridOptionsAggFuncs));
619
+ result = result.filter((func) => !(0, AggregationColumns_1.isWeightedAverageAggFuncName)(func));
618
620
  return [...new Set(result)];
619
621
  }
620
622
  isTreeColumn(isGeneratedRowGroupColumn) {
@@ -21,6 +21,7 @@ const AdaptableFilterHandler_1 = require("./AdaptableFilterHandler");
21
21
  const AgGridFilterAdapter_1 = require("./AgGridFilterAdapter");
22
22
  const AgGridFloatingFilterAdapter_1 = require("./AgGridFloatingFilterAdapter");
23
23
  const AdaptableLogger_1 = require("./AdaptableLogger");
24
+ const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
24
25
  function getEditorForColumnDataType(columnDataType, variant) {
25
26
  if (columnDataType === 'number') {
26
27
  return variant === 'react' ? AdaptableNumberEditor_1.AdaptableReactNumberEditor : AdaptableNumberEditor_1.AdaptableNumberEditor;
@@ -521,7 +522,10 @@ class AgGridColumnAdapter {
521
522
  }
522
523
  setupColumnAllowedAggFuncs({ col, abColumn }) {
523
524
  this.setColDefProperty(col, 'allowedAggFuncs', () => {
524
- return abColumn.availableAggregationFunctions;
525
+ if (!abColumn.availableAggregationFunctions) {
526
+ return undefined;
527
+ }
528
+ return abColumn.availableAggregationFunctions.filter((func) => !(0, AggregationColumns_1.isWeightedAverageAggFuncName)(func));
525
529
  });
526
530
  }
527
531
  setupColumnType(columnSetupInfo) {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  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" || '',
5
- PUBLISH_TIMESTAMP: 1761929207492 || Date.now(),
6
- VERSION: "21.0.11" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1762861086027 || Date.now(),
6
+ VERSION: "21.0.12" || '--current-version--',
7
7
  };