@adaptabletools/adaptable 23.1.0-canary.1 → 23.1.0-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": "23.1.0-canary.1",
3
+ "version": "23.1.0-canary.2",
4
4
  "description": "Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -68,8 +68,8 @@
68
68
  "uuid": "9.0.1"
69
69
  },
70
70
  "peerDependencies": {
71
- "ag-grid-enterprise": ">=36.1.0",
72
- "ag-stack": ">=36.1.0"
71
+ "ag-grid-enterprise": ">=36.2.0",
72
+ "ag-stack": ">=36.2.0"
73
73
  },
74
74
  "publishTimestamp": 0,
75
75
  "type": "module",
@@ -205,7 +205,9 @@ export class GridInternalApi extends ApiBase {
205
205
  Aggregatable: defaultColumnDefinition.enableValue,
206
206
  SuppressMenu: defaultColumnDefinition.suppressHeaderMenuButton,
207
207
  SuppressMovable: defaultColumnDefinition.suppressMovable,
208
- HeaderToolTip: defaultColumnDefinition.headerTooltip,
208
+ HeaderToolTip: typeof defaultColumnDefinition.headerTooltip === 'string'
209
+ ? defaultColumnDefinition.headerTooltip
210
+ : undefined,
209
211
  Width: defaultColumnDefinition.width,
210
212
  };
211
213
  }
@@ -618,7 +618,6 @@ export class AdaptableAgGrid {
618
618
  agGridApi.onFilterChanged();
619
619
  filteringApplied = true;
620
620
  }
621
- agGridApi.refreshCells();
622
621
  this._emit('AdapTableFiltersApplied');
623
622
  return filteringApplied;
624
623
  }
@@ -48,47 +48,6 @@ const patchLocalEventServiceDispatchEvent = (beans) => {
48
48
  DANGER_AG_GRID_ADAPTERS_MAP[gridId]?.handleRowNodeEvent(rowNodeEvent);
49
49
  };
50
50
  };
51
- const patchVisibleColsPartition = (beans) => {
52
- const visibleCols = beans?.visibleCols;
53
- if (!visibleCols || typeof visibleCols.partitionVisibleCols !== 'function') {
54
- console.error(`CRITICAL: could not get hold of AG Grid VisibleColsService.partitionVisibleCols, the selection column may NOT be displayed when it is the last column!`);
55
- return;
56
- }
57
- const original_partitionVisibleCols = visibleCols.partitionVisibleCols;
58
- visibleCols.partitionVisibleCols = function () {
59
- const result = original_partitionVisibleCols.apply(this, arguments);
60
- const leftCols = result?.leftCols ?? [];
61
- const rightCols = result?.rightCols ?? [];
62
- const centerCols = result?.centerCols ?? [];
63
- if (leftCols.length + rightCols.length + centerCols.length === 0) {
64
- return result;
65
- }
66
- const colModel = beans.colModel;
67
- const selectionCol = colModel?.colsList?.find((col) => col?.colKind === 'selection');
68
- if (!selectionCol || !selectionCol.visible) {
69
- return result;
70
- }
71
- if (leftCols.includes(selectionCol) ||
72
- rightCols.includes(selectionCol) ||
73
- centerCols.includes(selectionCol)) {
74
- return result;
75
- }
76
- const showAutoGroupAndValuesOnly = colModel.pivotMode && !colModel.showingPivotResult;
77
- if (showAutoGroupAndValuesOnly && !(beans.selectionColSvc?.isEnabled?.() ?? false)) {
78
- return result;
79
- }
80
- if (selectionCol.pinned === 'right') {
81
- rightCols.push(selectionCol);
82
- }
83
- else if (selectionCol.pinned) {
84
- leftCols.push(selectionCol);
85
- }
86
- else {
87
- centerCols.push(selectionCol);
88
- }
89
- return result;
90
- };
91
- };
92
51
  export class AgGridAdapter {
93
52
  _adaptableInstance;
94
53
  DANGER_USE_GETTER_gridApi;
@@ -117,7 +76,6 @@ export class AgGridAdapter {
117
76
  }
118
77
  DANGER_AG_GRID_BEANS_MAP[gridId] = beans;
119
78
  patchLocalEventServiceDispatchEvent(beans);
120
- patchVisibleColsPartition(beans);
121
79
  };
122
80
  }
123
81
  }
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: 1789562482621 || Date.now(),
4
- VERSION: "23.1.0-canary.1" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1789575862116 || Date.now(),
4
+ VERSION: "23.1.0-canary.2" || '--current-version--',
5
5
  };