@adaptabletools/adaptable-cjs 18.0.0-canary.3 → 18.0.0-canary.5

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.
Files changed (206) hide show
  1. package/agGrid.d.ts +4 -21
  2. package/agGrid.js +5 -21
  3. package/base.css +4 -1
  4. package/base.css.map +1 -1
  5. package/index.css +79 -68
  6. package/index.css.map +1 -1
  7. package/package.json +3 -4
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +55 -109
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -5
  10. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
  11. package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
  12. package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
  13. package/src/AdaptableOptions/MenuOptions.js +2 -6
  14. package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +1 -1
  15. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
  16. package/src/Api/AdaptableApi.d.ts +5 -0
  17. package/src/Api/BulkUpdateApi.d.ts +0 -5
  18. package/src/Api/Events/AdaptableReady.d.ts +3 -3
  19. package/src/Api/Events/GridDataChanged.d.ts +4 -4
  20. package/src/Api/GridApi.d.ts +14 -13
  21. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
  22. package/src/Api/Implementation/ActionColumnApiImpl.js +33 -0
  23. package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -0
  24. package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
  25. package/src/Api/Implementation/ApiBase.d.ts +2 -1
  26. package/src/Api/Implementation/ApiBase.js +4 -1
  27. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
  28. package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
  29. package/src/Api/Implementation/CommentsApiImpl.js +2 -1
  30. package/src/Api/Implementation/ConfigApiImpl.js +8 -3
  31. package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
  32. package/src/Api/Implementation/GridApiImpl.js +20 -14
  33. package/src/Api/Implementation/LayoutApiImpl.d.ts +4 -0
  34. package/src/Api/Implementation/LayoutApiImpl.js +14 -0
  35. package/src/Api/Implementation/NotesApiImpl.d.ts +2 -4
  36. package/src/Api/Implementation/NotesApiImpl.js +4 -8
  37. package/src/Api/Implementation/OptionsApiImpl.d.ts +1 -1
  38. package/src/Api/Implementation/OptionsApiImpl.js +2 -2
  39. package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
  40. package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
  41. package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
  42. package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
  43. package/src/Api/Internal/ActionRowInternalApi.js +107 -0
  44. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
  45. package/src/Api/Internal/AdaptableInternalApi.js +10 -8
  46. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  47. package/src/Api/Internal/CalculatedColumnInternalApi.js +71 -0
  48. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
  49. package/src/Api/Internal/ColumnFilterInternalApi.js +11 -1
  50. package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
  51. package/src/Api/Internal/ColumnInternalApi.js +12 -0
  52. package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
  53. package/src/Api/Internal/CustomSortInternalApi.js +32 -1
  54. package/src/Api/Internal/DataSetInternalApi.js +1 -1
  55. package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
  56. package/src/Api/Internal/FreeTextColumnInternalApi.js +60 -0
  57. package/src/Api/Internal/GridFilterInternalApi.js +1 -1
  58. package/src/Api/Internal/GridInternalApi.d.ts +21 -3
  59. package/src/Api/Internal/GridInternalApi.js +126 -7
  60. package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
  61. package/src/Api/InteropioPluginApi.d.ts +2 -2
  62. package/src/Api/LayoutApi.d.ts +8 -0
  63. package/src/Api/OptionsApi.d.ts +1 -1
  64. package/src/EnvVars.d.ts +3 -0
  65. package/src/EnvVars.js +8 -0
  66. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
  67. package/src/PredefinedConfig/Common/AggregationColumns.js +5 -1
  68. package/src/PredefinedConfig/NotesState.d.ts +10 -20
  69. package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
  70. package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
  71. package/src/Redux/ActionsReducers/NotesRedux.js +10 -8
  72. package/src/Redux/Store/AdaptableStore.d.ts +4 -6
  73. package/src/Redux/Store/AdaptableStore.js +22 -50
  74. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +7 -1
  75. package/src/Strategy/AdaptableModuleBase.d.ts +2 -3
  76. package/src/Strategy/AdaptableModuleBase.js +4 -7
  77. package/src/Strategy/AlertModule.d.ts +1 -2
  78. package/src/Strategy/AlertModule.js +2 -55
  79. package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
  80. package/src/Strategy/CalculatedColumnModule.js +5 -25
  81. package/src/Strategy/ChartingModule.d.ts +0 -1
  82. package/src/Strategy/ChartingModule.js +2 -22
  83. package/src/Strategy/ColumnFilterModule.d.ts +1 -2
  84. package/src/Strategy/ColumnFilterModule.js +1 -64
  85. package/src/Strategy/CommentsModule.d.ts +1 -0
  86. package/src/Strategy/CommentsModule.js +2 -1
  87. package/src/Strategy/CustomSortModule.js +1 -1
  88. package/src/Strategy/DashboardModule.d.ts +1 -2
  89. package/src/Strategy/DashboardModule.js +1 -8
  90. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  91. package/src/Strategy/DataChangeHistoryModule.js +3 -1
  92. package/src/Strategy/DataSetModule.d.ts +1 -1
  93. package/src/Strategy/DataSetModule.js +1 -1
  94. package/src/Strategy/FlashingCellModule.d.ts +1 -2
  95. package/src/Strategy/FlashingCellModule.js +2 -15
  96. package/src/Strategy/FormatColumnModule.d.ts +0 -2
  97. package/src/Strategy/FormatColumnModule.js +0 -47
  98. package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
  99. package/src/Strategy/FreeTextColumnModule.js +0 -30
  100. package/src/Strategy/GridFilterModule.d.ts +0 -1
  101. package/src/Strategy/GridFilterModule.js +0 -37
  102. package/src/Strategy/Interface/IModule.d.ts +0 -1
  103. package/src/Strategy/LayoutModule.d.ts +1 -3
  104. package/src/Strategy/LayoutModule.js +6 -50
  105. package/src/Strategy/NamedQueryModule.d.ts +0 -1
  106. package/src/Strategy/NamedQueryModule.js +0 -19
  107. package/src/Strategy/PlusMinusModule.d.ts +1 -1
  108. package/src/Strategy/PlusMinusModule.js +1 -1
  109. package/src/Strategy/ScheduleModule.d.ts +1 -1
  110. package/src/Strategy/ScheduleModule.js +1 -1
  111. package/src/Strategy/ShortcutModule.d.ts +1 -1
  112. package/src/Strategy/ShortcutModule.js +1 -1
  113. package/src/Strategy/StyledColumnModule.d.ts +0 -1
  114. package/src/Strategy/StyledColumnModule.js +0 -21
  115. package/src/Strategy/TeamSharingModule.d.ts +1 -0
  116. package/src/Strategy/TeamSharingModule.js +5 -5
  117. package/src/Strategy/ToolPanelModule.d.ts +0 -1
  118. package/src/Strategy/ToolPanelModule.js +0 -23
  119. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  120. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  121. package/src/Utilities/Constants/GeneralConstants.js +3 -2
  122. package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
  123. package/src/Utilities/Helpers/AdaptableHelper.d.ts +0 -3
  124. package/src/Utilities/Helpers/AdaptableHelper.js +1 -60
  125. package/src/Utilities/Helpers/Helper.d.ts +2 -0
  126. package/src/Utilities/Helpers/Helper.js +6 -1
  127. package/src/Utilities/Services/AggregatedScalarLiveValue.js +3 -1
  128. package/src/Utilities/Services/CellPopupService.js +0 -1
  129. package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
  130. package/src/Utilities/Services/LicenseService/index.js +10 -3
  131. package/src/Utilities/Services/MetamodelService.d.ts +1 -1
  132. package/src/Utilities/Services/MetamodelService.js +6 -3
  133. package/src/Utilities/Services/RowEditService.d.ts +3 -2
  134. package/src/Utilities/Services/RowEditService.js +3 -1
  135. package/src/View/AdaptableView.js +0 -2
  136. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
  137. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  138. package/src/View/CalculatedColumn/utils.d.ts +1 -1
  139. package/src/View/CellSummary/CellSummaryPopup.js +1 -1
  140. package/src/View/Comments/CommentsPopup.js +12 -8
  141. package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
  142. package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
  143. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
  144. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
  145. package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -1
  146. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
  147. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  148. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  149. package/src/View/GridFilter/GridFilterViewPanel.js +6 -2
  150. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
  151. package/src/View/Layout/TransposedPopup.d.ts +3 -0
  152. package/src/View/Layout/TransposedPopup.js +198 -0
  153. package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
  154. package/src/View/Notes/NotesPopup.js +8 -10
  155. package/src/View/Theme/ThemeSelector.js +2 -2
  156. package/src/agGrid/ActionColumnRenderer.js +4 -4
  157. package/src/agGrid/Adaptable.d.ts +3 -455
  158. package/src/agGrid/Adaptable.js +7 -5291
  159. package/src/agGrid/AdaptableAgGrid.d.ts +336 -0
  160. package/src/agGrid/AdaptableAgGrid.js +3785 -0
  161. package/src/agGrid/AdaptableLogger.js +78 -13
  162. package/src/agGrid/AgGridAdapter.d.ts +54 -0
  163. package/src/agGrid/AgGridAdapter.js +554 -0
  164. package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
  165. package/src/agGrid/AgGridColumnAdapter.js +818 -0
  166. package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
  167. package/src/agGrid/AgGridMenuAdapter.js +276 -0
  168. package/src/agGrid/AgGridOptionsService.d.ts +11 -0
  169. package/src/agGrid/AgGridOptionsService.js +54 -0
  170. package/src/agGrid/BadgeRenderer.js +1 -1
  171. package/src/agGrid/CheckboxRenderer.js +1 -1
  172. package/src/agGrid/FilterWrapper.d.ts +2 -2
  173. package/src/agGrid/FilterWrapper.js +1 -1
  174. package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
  175. package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
  176. package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +73 -10
  177. package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
  178. package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
  179. package/src/components/Datepicker/index.d.ts +1 -1
  180. package/src/components/InfiniteTable/index.js +2 -2
  181. package/src/components/Modal/index.d.ts +1 -0
  182. package/src/components/Modal/index.js +6 -4
  183. package/src/components/Select/Select.d.ts +2 -0
  184. package/src/components/Select/Select.js +2 -2
  185. package/src/env.js +2 -2
  186. package/src/metamodel/adaptable.metamodel.d.ts +39 -11
  187. package/src/metamodel/adaptable.metamodel.js +73 -32
  188. package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
  189. package/src/migration/AdaptableUpgradeHelper.js +52 -0
  190. package/src/migration/VersionUpgrade.d.ts +8 -0
  191. package/src/migration/VersionUpgrade.js +15 -0
  192. package/src/migration/VersionUpgrade17.d.ts +18 -0
  193. package/src/migration/VersionUpgrade17.js +347 -0
  194. package/src/migration/VersionUpgrade18.d.ts +5 -0
  195. package/src/migration/VersionUpgrade18.js +10 -0
  196. package/src/types.d.ts +7 -3
  197. package/tsconfig.cjs.tsbuildinfo +1 -1
  198. package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
  199. package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
  200. package/src/Utilities/Services/Interface/IRowEditService.js +0 -2
  201. package/src/agGrid/agGridHelper.d.ts +0 -57
  202. package/src/agGrid/agGridHelper.js +0 -691
  203. package/src/agGrid/agGridMenuHelper.d.ts +0 -46
  204. package/src/agGrid/agGridMenuHelper.js +0 -673
  205. /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
  206. /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
@@ -106,6 +106,9 @@ class AdaptableApiImpl {
106
106
  // adaptable internal api
107
107
  this.internalApi = new AdaptableInternalApi_1.AdaptableInternalApi(adaptable);
108
108
  }
109
+ get agGridApi() {
110
+ return this.adaptable.agGridAdapter.getAgGridApi();
111
+ }
109
112
  /**
110
113
  * This is only meant to be called by the Adaptable instance.
111
114
  */
@@ -1,5 +1,5 @@
1
1
  import { Action } from 'redux';
2
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
2
+ import { AdaptableVariant, IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
3
3
  import { AdaptableState } from '../../PredefinedConfig/AdaptableState';
4
4
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
5
5
  import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
@@ -20,6 +20,7 @@ export declare abstract class ApiBase {
20
20
  protected logSuccess(message: string, ...optionalParams: any[]): void;
21
21
  protected logWarn(message: string, ...optionalParams: any[]): void;
22
22
  protected logError(message: string, ...optionalParams: any[]): void;
23
+ protected getAdaptableVariant(): AdaptableVariant;
23
24
  /**
24
25
  * Base api helper method which ensure that Adaptable Object being used in the function is not null or undefined
25
26
  *
@@ -25,6 +25,9 @@ class ApiBase {
25
25
  logError(message, ...optionalParams) {
26
26
  this.adaptable.logger.error(message, ...optionalParams);
27
27
  }
28
+ getAdaptableVariant() {
29
+ return this.adaptable.variant;
30
+ }
28
31
  /**
29
32
  * Base api helper method which ensure that Adaptable Object being used in the function is not null or undefined
30
33
  *
@@ -103,7 +106,7 @@ class ApiBase {
103
106
  return this.getOptions().columnOptions;
104
107
  }
105
108
  getNotesOptions() {
106
- return this.getOptions().notesOptions;
109
+ return this.getOptions().noteOptions;
107
110
  }
108
111
  getCustomSortOptions() {
109
112
  return this.getOptions().customSortOptions;
@@ -6,5 +6,4 @@ export declare class BulkUpdateApiImpl extends ApiBase implements BulkUpdateApi
6
6
  openBulkUpdateSettingsPanel(): void;
7
7
  showBulkUpdatePopup(): void;
8
8
  applyBulkUpdate(cellUpdateRequests: CellUpdateRequest[]): void;
9
- setBulkUpdateValue(bulkUpdateValue: string): void;
10
9
  }
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
7
7
  const BulkUpdateRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/BulkUpdateRedux"));
8
- const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
9
8
  class BulkUpdateApiImpl extends ApiBase_1.ApiBase {
10
9
  getBulkUpdateValue() {
11
10
  return this.getAdaptableState().System.BulkUpdateValue;
@@ -19,8 +18,5 @@ class BulkUpdateApiImpl extends ApiBase_1.ApiBase {
19
18
  applyBulkUpdate(cellUpdateRequests) {
20
19
  this.dispatchAction(BulkUpdateRedux.BulkUpdateApply(cellUpdateRequests));
21
20
  }
22
- setBulkUpdateValue(bulkUpdateValue) {
23
- this.dispatchAction(SystemRedux.BulkUpdateChangeValue(bulkUpdateValue));
24
- }
25
21
  }
26
22
  exports.BulkUpdateApiImpl = BulkUpdateApiImpl;
@@ -14,7 +14,8 @@ class CommentsApiImpl extends ApiBase_1.ApiBase {
14
14
  return CommentRedux.GetCellCommentSelector(this.getAdaptableState().Comment, address);
15
15
  }
16
16
  getCommentThreads() {
17
- return this.getAdaptableState().Comment.CommentThreads;
17
+ var _a;
18
+ return (_a = this.getAdaptableState().Comment.CommentThreads) !== null && _a !== void 0 ? _a : [];
18
19
  }
19
20
  editComment(comment, address) {
20
21
  this.dispatchAction(CommentRedux.CommentsEdit({ comment, cellAddress: address }));
@@ -121,7 +121,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
121
121
  setAdaptableStateKey(adaptableStateKey, config) {
122
122
  return new Promise((resolve, reject) => {
123
123
  this.adaptable.api.internalApi.executeWithProgressIndicator(`Initialising...`, () => {
124
- this.adaptable.adaptableOptions.adaptableStateKey = adaptableStateKey;
125
124
  const flushCurrentState = !config || config.flushCurrentState !== false;
126
125
  // make sure we persist any "pending" changes to state - since stateOptions.debounceStateDelay can cause
127
126
  // the state to be persisted with a delay, which we dont want in this case
@@ -129,14 +128,20 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
129
128
  ? this.adaptable.adaptableStore.saveStateNow(this.adaptable)
130
129
  : Promise.resolve(true);
131
130
  flushStatePromise.then(() => {
131
+ this.adaptable.adaptableOptions.adaptableStateKey = adaptableStateKey;
132
132
  let predefinedConfig = config === null || config === void 0 ? void 0 : config.predefinedConfig;
133
133
  if (predefinedConfig) {
134
134
  predefinedConfig = (0, AdaptableHelper_1.initPredefinedConfigWithUuids)(predefinedConfig);
135
135
  }
136
- const promise = this.adaptable.adaptableStore.loadStore(this.adaptable, adaptableStateKey, predefinedConfig);
136
+ const promise = this.adaptable.adaptableStore.loadStore({
137
+ adaptable: this.adaptable,
138
+ adaptableStateKey,
139
+ predefinedConfig,
140
+ });
137
141
  promise
138
142
  .then(() => {
139
- this.adaptable.prepareGrid();
143
+ this.adaptable.updateColumnModelAndRefreshGrid();
144
+ this.adaptable.setLayout();
140
145
  this.adaptable.api.userInterfaceApi.hideLoadingScreen();
141
146
  })
142
147
  .then(() => {
@@ -8,7 +8,7 @@ import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
10
  import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
- import { GridOptions, IRowNode, RowModelType } from '@ag-grid-community/core';
11
+ import { IRowNode, RowModelType } from '@ag-grid-community/core';
12
12
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
13
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
14
14
  import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
@@ -18,6 +18,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
18
18
  internalApi: GridInternalApi;
19
19
  constructor(adaptable: IAdaptable);
20
20
  getGridState(): GridState;
21
+ loadGridData(dataSource: any): void;
21
22
  resetGridData(dataSource: any[]): void;
22
23
  setInitialGridData(data: any): void;
23
24
  getGridData(): any[];
@@ -40,7 +41,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
40
41
  hideFilterForm(): void;
41
42
  applyGridFiltering(): void;
42
43
  clearGridFiltering(): void;
43
- getAgGridInstance(): GridOptions;
44
44
  getColumnSorts(): ColumnSort[];
45
45
  getColumnSortForColumn(columnId: string): ColumnSort | undefined;
46
46
  setAdaptableSorting(columnSorts: ColumnSort[]): void;
@@ -120,7 +120,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
120
120
  isCellEditable(gridCell: GridCell): boolean;
121
121
  isEveryCellEditable(gridCells: GridCell[]): boolean;
122
122
  getRowCount(): number;
123
- getVisibleRowCount(): number;
124
123
  getRowsInViewport(): IRowNode[];
125
124
  getColumnCount(): number;
126
125
  getVisibleColumnCount(): number;
@@ -130,4 +129,5 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
130
129
  getGridContainerElement(): HTMLElement | null;
131
130
  openGridInfoSettingsPanel(): void;
132
131
  getAgGridRowModelType(): RowModelType;
132
+ getVisibleRowCount(): number;
133
133
  }
@@ -8,6 +8,7 @@ const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
8
8
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
9
  const GridInternalApi_1 = require("../Internal/GridInternalApi");
10
10
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
11
+ const logDeprecation_1 = require("../../Utilities/logDeprecation");
11
12
  class GridApiImpl extends ApiBase_1.ApiBase {
12
13
  constructor(adaptable) {
13
14
  super(adaptable);
@@ -16,13 +17,18 @@ class GridApiImpl extends ApiBase_1.ApiBase {
16
17
  getGridState() {
17
18
  return this.getAdaptableState().Grid;
18
19
  }
19
- resetGridData(dataSource) {
20
+ loadGridData(dataSource) {
20
21
  this.adaptable.setGridData(dataSource);
21
22
  const allRowNodes = this.getAllRowNodes();
22
- this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Add');
23
+ this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Load');
24
+ }
25
+ resetGridData(dataSource) {
26
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'resetGridData', 'loadGridData');
27
+ this.loadGridData(dataSource);
23
28
  }
24
29
  setInitialGridData(data) {
25
- this.adaptable.setGridData(data);
30
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'setInitialGridData', 'loadGridData');
31
+ this.loadGridData(data);
26
32
  }
27
33
  getGridData() {
28
34
  return this.adaptable.getGridData();
@@ -118,9 +124,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
118
124
  // slightly round the houses but we have to call ColumnFilterAPI as it does it properly
119
125
  this.adaptable.api.columnFilterApi.clearColumnFilters();
120
126
  }
121
- getAgGridInstance() {
122
- return this.adaptable.gridOptions;
123
- }
124
127
  getColumnSorts() {
125
128
  return this.getAdaptableState().Grid.ColumnSorts;
126
129
  }
@@ -275,7 +278,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
275
278
  return this.adaptable.getFirstDisplayedRowNode();
276
279
  }
277
280
  getVisibleRowNodes(config) {
278
- return this.adaptable.getVisibleRowNodes();
281
+ const rowNodes = [];
282
+ this.adaptable.forAllVisibleRowNodesDo((rowNode) => rowNodes.push(rowNode), config);
283
+ return rowNodes;
279
284
  }
280
285
  getAllRowNodes(config) {
281
286
  return this.adaptable.getAllRowNodes(config);
@@ -334,10 +339,10 @@ class GridApiImpl extends ApiBase_1.ApiBase {
334
339
  this.adaptable.expandRowGroupsForValues(columnValues);
335
340
  }
336
341
  isGridPivotable() {
337
- return this.adaptable.isGridPivotable();
342
+ return !this.getAdaptableApi().internalApi.isGridInTreeMode();
338
343
  }
339
344
  isGridGroupable() {
340
- return this.adaptable.isGridGroupable();
345
+ return !this.getAdaptableApi().internalApi.isGridInTreeMode();
341
346
  }
342
347
  isGridSelectable() {
343
348
  return this.adaptable.isGridSelectable();
@@ -353,7 +358,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
353
358
  }
354
359
  redrawGrid() {
355
360
  this.adaptable.redrawBody();
356
- this.adaptable.redrawHeader();
361
+ this.adaptable.refreshHeader();
357
362
  }
358
363
  getGridCellsForRawValue(columnId, rawValue) {
359
364
  const gridCells = this.adaptable.getGridCellsForColumn(columnId);
@@ -456,7 +461,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
456
461
  }
457
462
  refreshGroupRowNodes() {
458
463
  // see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
459
- this.getAgGridInstance().api.refreshClientSideRowModel('group');
464
+ this.getAdaptableApi().agGridApi.refreshClientSideRowModel('group');
460
465
  this.adaptable.updateRowGroupsExpandedState();
461
466
  }
462
467
  isCellEditable(gridCell) {
@@ -483,9 +488,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
483
488
  getRowCount() {
484
489
  return this.adaptable.getRowCount();
485
490
  }
486
- getVisibleRowCount() {
487
- return this.adaptable.getVisibleRowCount();
488
- }
489
491
  getRowsInViewport() {
490
492
  return this.adaptable.getRowsInViewport();
491
493
  }
@@ -513,5 +515,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
513
515
  getAgGridRowModelType() {
514
516
  return this.adaptable.getAgGridRowModelType();
515
517
  }
518
+ getVisibleRowCount() {
519
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'getVisibleRowCount', 'getRowCount');
520
+ return this.getRowCount();
521
+ }
516
522
  }
517
523
  exports.GridApiImpl = GridApiImpl;
@@ -48,4 +48,8 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
48
48
  ColumnFilters: boolean;
49
49
  ColumnSorts: boolean;
50
50
  };
51
+ showTransposePopup(config: {
52
+ transposedColumnId: string;
53
+ hideTransposedColumn?: boolean;
54
+ }): void;
51
55
  }
@@ -13,6 +13,7 @@ const Uuid_1 = require("../../PredefinedConfig/Uuid");
13
13
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
14
14
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
15
15
  const LayoutInternalApi_1 = require("../Internal/LayoutInternalApi");
16
+ const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windowFactory");
16
17
  class LayoutApiImpl extends ApiBase_1.ApiBase {
17
18
  constructor(adaptable) {
18
19
  super(adaptable);
@@ -240,5 +241,18 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
240
241
  }
241
242
  return layoutSupportedFeatures;
242
243
  }
244
+ showTransposePopup(config) {
245
+ const { transposedColumnId, hideTransposedColumn } = config;
246
+ this.adaptable.api.internalApi.showPopupWindow({
247
+ id: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
248
+ factoryId: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
249
+ title: 'Transpose View',
250
+ icon: 'grid',
251
+ popupProps: {
252
+ transposedColumnId,
253
+ hideTransposedColumn,
254
+ },
255
+ });
256
+ }
243
257
  }
244
258
  exports.LayoutApiImpl = LayoutApiImpl;
@@ -1,6 +1,7 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { NotesApi } from '../NotesApi';
3
3
  import { AdaptableNote, AdaptableNotes, NotesState } from '../../PredefinedConfig/NotesState';
4
+ import { CellAddress } from '../../PredefinedConfig/CellAddress';
4
5
  export declare class NotesApiImpl extends ApiBase implements NotesApi {
5
6
  addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
6
7
  editNote(note: AdaptableNote): void;
@@ -8,9 +9,6 @@ export declare class NotesApiImpl extends ApiBase implements NotesApi {
8
9
  deleteNote(note: AdaptableNote): void;
9
10
  getNotesState(): NotesState;
10
11
  getAllNotes(): AdaptableNotes;
11
- getCellNotes(config: {
12
- PrimaryKeyValue: string | number;
13
- ColumnId: string;
14
- }): AdaptableNote[];
12
+ getCellNotes(address: CellAddress): AdaptableNote[];
15
13
  getNoteByUuid(uuid: string): AdaptableNote | undefined;
16
14
  }
@@ -7,13 +7,9 @@ const NotesRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Not
7
7
  class NotesApiImpl extends ApiBase_1.ApiBase {
8
8
  addNote(noteStr, primaryKeyValue, columnId) {
9
9
  const note = {
10
- Value: noteStr,
10
+ Text: noteStr,
11
11
  PrimaryKeyValue: primaryKeyValue,
12
12
  ColumnId: columnId,
13
- AdaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
14
- Author: {
15
- UserName: this.adaptable.api.optionsApi.getUserName(),
16
- },
17
13
  Timestamp: Date.now(),
18
14
  };
19
15
  this.dispatchAction(NotesRedux.NotesAdd(note));
@@ -23,7 +19,7 @@ class NotesApiImpl extends ApiBase_1.ApiBase {
23
19
  this.dispatchAction(NotesRedux.NotesEdit(note));
24
20
  }
25
21
  updateNoteText(noteStr, note) {
26
- this.editNote(Object.assign(Object.assign({}, note), { Value: noteStr }));
22
+ this.editNote(Object.assign(Object.assign({}, note), { Text: noteStr }));
27
23
  }
28
24
  deleteNote(note) {
29
25
  this.dispatchAction(NotesRedux.NotesDelete(note));
@@ -34,8 +30,8 @@ class NotesApiImpl extends ApiBase_1.ApiBase {
34
30
  getAllNotes() {
35
31
  return this.getNotesState().Notes;
36
32
  }
37
- getCellNotes(config) {
38
- return NotesRedux.GetNotesSelector(this.getAdaptableState().Notes, config);
33
+ getCellNotes(address) {
34
+ return NotesRedux.GetNotesSelector(this.getAdaptableState().Notes, address);
39
35
  }
40
36
  getNoteByUuid(uuid) {
41
37
  return this.getAllNotes().find((note) => note.Uuid === uuid);
@@ -5,7 +5,7 @@ import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
5
5
  import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
6
6
  import { ExpressionOptions } from '../../AdaptableOptions/ExpressionOptions';
7
7
  import { ColumnFilterOptions } from '../../AdaptableOptions/ColumnFilterOptions';
8
- import { CommentsOptions } from '../../AdaptableOptions/CommentsOptions';
8
+ import { CommentsOptions } from '../../AdaptableOptions/CommentOptions';
9
9
  export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
10
10
  getAdaptableId(): string;
11
11
  getAdaptableStateKey(): string;
@@ -40,10 +40,10 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
40
40
  return this.getOptions().columnOptions;
41
41
  }
42
42
  getNotesOptions() {
43
- return this.getOptions().notesOptions;
43
+ return this.getOptions().noteOptions;
44
44
  }
45
45
  getCommentsOptions() {
46
- return this.getOptions().commentsOptions;
46
+ return this.getOptions().commentOptions;
47
47
  }
48
48
  getCustomSortOptions() {
49
49
  return this.getOptions().customSortOptions;
@@ -5,6 +5,5 @@ import { StatusPanelDef } from '@ag-grid-community/core';
5
5
  export declare class StatusBarApiImpl extends ApiBase implements StatusBarApi {
6
6
  getAdaptableStatusBars(): AdaptableStatusBar[];
7
7
  getAgGridStatusPanels(): StatusPanelDef[];
8
- getAgGridStatusBar(): StatusPanelDef[];
9
8
  setStatusBarPanels(statusPanels: AdaptableStatusBar[]): void;
10
9
  }
@@ -10,9 +10,6 @@ class StatusBarApiImpl extends ApiBase_1.ApiBase {
10
10
  getAgGridStatusPanels() {
11
11
  return this.adaptable.getAgGridStatusPanels();
12
12
  }
13
- getAgGridStatusBar() {
14
- return this.adaptable.getAgGridStatusPanels();
15
- }
16
13
  setStatusBarPanels(statusPanels) {
17
14
  this.dispatchAction((0, StatusBarRedux_1.StatusBarSetPanels)(statusPanels));
18
15
  }
@@ -14,15 +14,15 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
14
14
  this.showModulePopup(ModuleConstants.ToolPanelModuleId);
15
15
  }
16
16
  openAdapTableToolPanel() {
17
- let gridOptions = this.getGridApi().getAgGridInstance();
18
- if (gridOptions) {
19
- gridOptions.api.openToolPanel('adaptable');
17
+ const agGridApi = this.getAdaptableApi().agGridApi;
18
+ if (agGridApi) {
19
+ agGridApi.openToolPanel('adaptable');
20
20
  }
21
21
  }
22
22
  closeAdapTableToolPanel() {
23
- let gridOptions = this.getGridApi().getAgGridInstance();
24
- if (gridOptions) {
25
- gridOptions.api.closeToolPanel();
23
+ const agGridApi = this.getAdaptableApi().agGridApi;
24
+ if (agGridApi) {
25
+ agGridApi.closeToolPanel();
26
26
  }
27
27
  }
28
28
  getCustomToolPanels() {
@@ -1,7 +1,9 @@
1
- import { IRowNode } from '@ag-grid-community/core';
1
+ import { ColDef, IRowNode } from '@ag-grid-community/core';
2
2
  import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
3
3
  import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/ActionRowOptions';
4
+ import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
4
5
  import { ApiBase } from '../Implementation/ApiBase';
6
+ import { ActionColumnContext } from '../../AdaptableOptions/ActionColumnOptions';
5
7
  export declare class ActionRowInternalApi extends ApiBase {
6
8
  buildRowEditForm(rowNode: IRowNode): AdaptableForm<EditActionRowFormContext>;
7
9
  buildRowCreateForm(clonedRowNode?: IRowNode): AdaptableForm<CreateActionRowFormContext>;
@@ -21,4 +23,6 @@ export declare class ActionRowInternalApi extends ApiBase {
21
23
  private buildFormFieldLabelContext;
22
24
  private getFieldTypeFromColumnType;
23
25
  private getFieldValueOptions;
26
+ getColDefsForActionRowColumns(): ColDef[];
27
+ getActionRowButtonDefs(): AdaptableButton<ActionColumnContext<any>>[];
24
28
  }
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActionRowInternalApi = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const ApiBase_1 = require("../Implementation/ApiBase");
6
+ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
+ const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
8
+ const ActionColumnRenderer_1 = require("../../agGrid/ActionColumnRenderer");
5
9
  class ActionRowInternalApi extends ApiBase_1.ApiBase {
6
10
  buildRowEditForm(rowNode) {
7
11
  return this.buildActionRow('rowEdited', rowNode);
@@ -200,5 +204,108 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
200
204
  label: value,
201
205
  }));
202
206
  }
207
+ getColDefsForActionRowColumns() {
208
+ const actionButtons = this.getActionRowButtonDefs();
209
+ if (!actionButtons.length) {
210
+ return [];
211
+ }
212
+ return [
213
+ {
214
+ headerName: '',
215
+ colId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
216
+ hide: false,
217
+ editable: false,
218
+ // 15px is the icon width + left&right padding + left&right border
219
+ width: Math.max(actionButtons.length * (UIHelper_1.default.getSimpleButtonPaddingWidth() * 2 + 15) + 2,
220
+ // If the width of the column is to small, the width will not be applied
221
+ // this triggers the setLayout an infinite loop because the width read from the grid is always different
222
+ 40),
223
+ resizable: false,
224
+ lockVisible: true,
225
+ suppressColumnsToolPanel: true,
226
+ suppressFiltersToolPanel: true,
227
+ suppressMenu: true,
228
+ suppressMovable: true,
229
+ filter: false,
230
+ sortable: false,
231
+ enableRowGroup: false,
232
+ pinned: this.getActionRowOptions().actionRowButtonOptions.position === 'pinnedRight'
233
+ ? 'right'
234
+ : 'left',
235
+ cellRenderer: this.getAdaptableVariant() === 'react' ? ActionColumnRenderer_1.ReactActionColumnRenderer : ActionColumnRenderer_1.ActionColumnRenderer,
236
+ cellClass: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
237
+ type: [GeneralConstants_1.AB_SPECIAL_COLUMN, 'abColDefObject'],
238
+ },
239
+ ];
240
+ }
241
+ getActionRowButtonDefs() {
242
+ const actionRowButtons = this.getActionRowApi().getActionRowButtons();
243
+ if (!(actionRowButtons === null || actionRowButtons === void 0 ? void 0 : actionRowButtons.length)) {
244
+ return [];
245
+ }
246
+ const defaultActionRowButtonConfiguration = {
247
+ create: {
248
+ icon: {
249
+ name: 'add',
250
+ },
251
+ tooltip: 'Create',
252
+ onClick: () => {
253
+ this.getActionRowApi().displayCreateActionRow();
254
+ },
255
+ },
256
+ edit: {
257
+ icon: {
258
+ name: 'edit',
259
+ },
260
+ tooltip: 'Edit',
261
+ onClick: (button, context) => {
262
+ this.getActionRowApi().displayEditActionRow(context.primaryKeyValue);
263
+ },
264
+ },
265
+ clone: {
266
+ icon: {
267
+ name: 'clone',
268
+ },
269
+ tooltip: 'Clone',
270
+ onClick: (button, context) => {
271
+ this.getActionRowApi().displayCloneActionRow(context.primaryKeyValue);
272
+ },
273
+ },
274
+ delete: {
275
+ icon: {
276
+ name: 'delete',
277
+ },
278
+ tooltip: 'Delete',
279
+ onClick: (button, context) => {
280
+ var _a, _b;
281
+ const eventInfo = {
282
+ type: 'rowDeleted',
283
+ rowNode: context.rowNode,
284
+ adaptableApi: context.adaptableApi,
285
+ userName: context.userName,
286
+ adaptableId: context.adaptableId,
287
+ };
288
+ this.getEventApi().emit('ActionRowSubmitted', eventInfo);
289
+ (_b = (_a = this.getActionRowOptions().actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
290
+ },
291
+ },
292
+ };
293
+ const actionButtons = actionRowButtons
294
+ .map((actionRowButtonType) => {
295
+ var _a, _b;
296
+ const defaultButtonConfig = defaultActionRowButtonConfiguration[actionRowButtonType];
297
+ if (!defaultButtonConfig) {
298
+ // should NOT happen unless the user sent some invalid button type in the predefined config
299
+ return;
300
+ }
301
+ const customButtonConfig = (_b = (_a = this.getActionRowOptions().actionRowButtonOptions).customConfiguration) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { actionRowButtonType }));
302
+ if (!customButtonConfig) {
303
+ return defaultButtonConfig;
304
+ }
305
+ return Object.assign(Object.assign({}, defaultButtonConfig), customButtonConfig);
306
+ })
307
+ .filter(Boolean);
308
+ return actionButtons;
309
+ }
203
310
  }
204
311
  exports.ActionRowInternalApi = ActionRowInternalApi;
@@ -24,9 +24,9 @@ import { AdaptableFrameworkComponent } from '../../AdaptableOptions/AdaptableFra
24
24
  import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodelService';
25
25
  import { IModuleCollection } from '../../Strategy/Interface/IModule';
26
26
  import { AdaptableObjectTag, AdaptableObjectWithScope } from '../../PredefinedConfig/Common/AdaptableObject';
27
- import { IRowEditService } from '../../Utilities/Services/Interface/IRowEditService';
28
27
  import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
29
28
  import { CellPopupService } from '../../Utilities/Services/CellPopupService';
29
+ import { RowEditService } from '../../Utilities/Services/RowEditService';
30
30
  export declare class AdaptableInternalApi extends ApiBase {
31
31
  getSystemState(): SystemState;
32
32
  showPopupConfirmation(confirmation: UIConfirmation): void;
@@ -46,8 +46,7 @@ export declare class AdaptableInternalApi extends ApiBase {
46
46
  setPivotModeOn(): void;
47
47
  setPivotModeOff(): void;
48
48
  isGridInPivotMode(): boolean;
49
- setTreeModeOn(): void;
50
- setTreeModeOff(): void;
49
+ setTreeMode(mode: boolean): void;
51
50
  isGridInTreeMode(): boolean;
52
51
  getToolbarTitle(): string;
53
52
  buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
@@ -65,7 +64,7 @@ export declare class AdaptableInternalApi extends ApiBase {
65
64
  getAlertService(): IAlertService;
66
65
  getTeamSharingService(): ITeamSharingService;
67
66
  getMetamodelService(): IMetamodelService;
68
- getRowEditService(): IRowEditService;
67
+ getRowEditService(): RowEditService;
69
68
  getFdc3Service(): Fdc3Service;
70
69
  getModules(): IModuleCollection;
71
70
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
@@ -51,11 +51,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
51
51
  isGridInPivotMode() {
52
52
  return this.getAdaptableState().Grid.IsGridInPivotMode;
53
53
  }
54
- setTreeModeOn() {
55
- this.dispatchAction(GridRedux.SetTreeModeOn());
56
- }
57
- setTreeModeOff() {
58
- this.dispatchAction(GridRedux.SetTreeModeOff());
54
+ setTreeMode(mode) {
55
+ if (!!mode) {
56
+ this.dispatchAction(GridRedux.SetTreeModeOn());
57
+ }
58
+ else {
59
+ this.dispatchAction(GridRedux.SetTreeModeOff());
60
+ }
59
61
  }
60
62
  isGridInTreeMode() {
61
63
  return this.getAdaptableState().Grid.IsGridInTreeMode;
@@ -223,13 +225,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
223
225
  frameworkComponent,
224
226
  componentType,
225
227
  });
226
- if (this.adaptable.isInitialised) {
228
+ if (this.adaptable.isReady) {
227
229
  createComponentFn();
228
230
  }
229
231
  else {
230
232
  // adaptable may not be initialized yet if the framework component is part of the initial render
231
233
  // AFL 2021.10.14 - not really sure if this is necessary anymore?! (see the other changes in this commit)
232
- (0, waitForCondition_1.waitForCondition)(() => this.adaptable.isInitialised).then(() => {
234
+ (0, waitForCondition_1.waitForCondition)(() => this.adaptable.isReady).then(() => {
233
235
  createComponentFn();
234
236
  });
235
237
  }
@@ -452,7 +454,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
452
454
  var _a;
453
455
  let actionColumn;
454
456
  if (colDef.colId == GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
455
- const actionButtons = this.adaptable.getActionRowButtonDefs();
457
+ const actionButtons = this.getActionRowApi().internalApi.getActionRowButtonDefs();
456
458
  actionColumn = {
457
459
  columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
458
460
  actionColumnButton: actionButtons,
@@ -1,6 +1,7 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { CalculatedColumn } from '../../PredefinedConfig/CalculatedColumnState';
3
3
  import { AdaptableColumn } from '../../types';
4
+ import { ColDef } from '@ag-grid-community/core';
4
5
  export declare class CalculatedColumnInternalApi extends ApiBase {
5
6
  /**
6
7
  * Returns all the references in the AdaptableState of the given CalculatedColumn
@@ -27,4 +28,5 @@ export declare class CalculatedColumnInternalApi extends ApiBase {
27
28
  isQuantileAggregatedExpression(input: string): boolean;
28
29
  getExpressionFromCalculatedColumn(calculatedColumn: CalculatedColumn): string;
29
30
  fireCalculatedColumnChangedEvent(trigger: string, calculatedColumn: CalculatedColumn): void;
31
+ getColDefsForCalculatedColumns(): ColDef[];
30
32
  }