@adaptabletools/adaptable-cjs 19.1.2 → 19.2.1-canary.0

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 (67) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/CommentOptions.d.ts +1 -1
  3. package/src/{agGrid/defaultAdaptableOptions.d.ts → AdaptableOptions/DefaultAdaptableOptions.d.ts} +1 -1
  4. package/src/{agGrid/defaultAdaptableOptions.js → AdaptableOptions/DefaultAdaptableOptions.js} +3 -2
  5. package/src/AdaptableOptions/EditOptions.d.ts +6 -2
  6. package/src/AdaptableOptions/NoteOptions.d.ts +1 -1
  7. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -1
  8. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  9. package/src/Api/GridApi.d.ts +3 -3
  10. package/src/Api/Implementation/ActionRowApiImpl.js +2 -2
  11. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  12. package/src/Api/Implementation/ChartingApiImpl.js +4 -4
  13. package/src/Api/Implementation/ColumnApiImpl.js +5 -5
  14. package/src/Api/Implementation/ColumnFilterApiImpl.js +9 -9
  15. package/src/Api/Implementation/ColumnScopeApiImpl.js +8 -8
  16. package/src/Api/Implementation/ConfigApiImpl.js +2 -2
  17. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +1 -1
  18. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -2
  19. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  20. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  21. package/src/Api/Implementation/GridApiImpl.js +16 -19
  22. package/src/Api/Implementation/LayoutApiImpl.js +4 -4
  23. package/src/Api/Implementation/PredicateApiImpl.js +2 -2
  24. package/src/Api/Implementation/ScheduleApiImpl.js +2 -2
  25. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -1
  26. package/src/Api/Implementation/ThemeApiImpl.js +2 -2
  27. package/src/Api/Implementation/UserInterfaceApiImpl.js +6 -6
  28. package/src/Api/Internal/ActionRowInternalApi.js +9 -10
  29. package/src/Api/Internal/AdaptableInternalApi.js +2 -2
  30. package/src/Api/Internal/AlertInternalApi.js +3 -3
  31. package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
  32. package/src/Api/Internal/ChartingInternalApi.js +7 -7
  33. package/src/Api/Internal/ColumnFilterInternalApi.js +8 -8
  34. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  35. package/src/Api/Internal/DashboardInternalApi.js +1 -1
  36. package/src/Api/Internal/DataSetInternalApi.js +1 -1
  37. package/src/Api/Internal/ExportInternalApi.js +37 -37
  38. package/src/Api/Internal/ExpressionInternalApi.js +1 -1
  39. package/src/Api/Internal/FlashingCellInternalApi.js +1 -1
  40. package/src/Api/Internal/FormatColumnInternalApi.js +8 -8
  41. package/src/Api/Internal/GridInternalApi.d.ts +7 -0
  42. package/src/Api/Internal/GridInternalApi.js +21 -3
  43. package/src/Api/Internal/LayoutInternalApi.js +3 -3
  44. package/src/Api/Internal/StyledColumnInternalApi.js +6 -6
  45. package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
  46. package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
  47. package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
  48. package/src/Api/StatusBarApi.d.ts +2 -2
  49. package/src/PredefinedConfig/Common/AdaptableSearchState.d.ts +22 -0
  50. package/src/PredefinedConfig/Common/AdaptableSearchState.js +2 -0
  51. package/src/PredefinedConfig/PredefinedConfig.d.ts +4 -4
  52. package/src/Strategy/BulkUpdateModule.js +0 -12
  53. package/src/Strategy/PlusMinusModule.js +24 -24
  54. package/src/Strategy/SmartEditModule.js +0 -11
  55. package/src/Utilities/Services/MetamodelService.js +2 -2
  56. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
  57. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  58. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
  59. package/src/agGrid/Adaptable.js +2 -2
  60. package/src/agGrid/AdaptableAgGrid.js +22 -21
  61. package/src/agGrid/AgGridAdapter.js +4 -1
  62. package/src/agGrid/AgGridColumnAdapter.js +18 -12
  63. package/src/env.js +2 -2
  64. package/src/metamodel/adaptable.metamodel.d.ts +10 -0
  65. package/src/metamodel/adaptable.metamodel.js +1 -1
  66. package/src/types.d.ts +1 -1
  67. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -56,7 +56,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
56
56
  }
57
57
  getReportSchedules(config) {
58
58
  var _a;
59
- return ((_a = this.handleLayoutAssociatedObjects(this.getAdaptableApi().exportApi.getReportSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
59
+ return ((_a = this.handleLayoutAssociatedObjects(this.getExportApi().getReportSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
60
60
  }
61
61
  getActiveReportSchedules() {
62
62
  return this.getReportSchedules().filter((schedule) => !schedule.IsSuspended);
@@ -167,7 +167,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
167
167
  }
168
168
  else if (scheduleType == 'Report') {
169
169
  const reportSchedule = schedule;
170
- this.getAdaptableApi().exportApi.runReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
170
+ this.getExportApi().runReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
171
171
  }
172
172
  else if (scheduleType == 'ipushpull') {
173
173
  const ippApi = this.getAdaptableApi().pluginsApi.getipushpullPluginApi();
@@ -87,7 +87,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
87
87
  this.dispatchAction(TeamSharingRedux.TeamSharingImportItem(sharedEntity));
88
88
  }
89
89
  else {
90
- const customSharedEntityImportHandler = this.getAdaptableApi().optionsApi.getTeamSharingOptions().handleCustomSharedEntityImport;
90
+ const customSharedEntityImportHandler = this.getTeamSharingOptions().handleCustomSharedEntityImport;
91
91
  if (!customSharedEntityImportHandler) {
92
92
  this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
93
93
  return;
@@ -62,7 +62,7 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
62
62
  }
63
63
  this._adaptable.applyAdaptableTheme(currentTheme);
64
64
  let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeSelected', theme: currentTheme });
65
- this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
65
+ this.getEventApi().emit('ThemeChanged', themeChangedInfo);
66
66
  }
67
67
  getUserThemes() {
68
68
  var _a;
@@ -83,7 +83,7 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
83
83
  editTheme(theme) {
84
84
  this.dispatchAction(ThemeRedux.ThemeEdit(theme));
85
85
  let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeEdited', theme: theme });
86
- this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
86
+ this.getEventApi().emit('ThemeChanged', themeChangedInfo);
87
87
  const currentTheme = this.getCurrentTheme();
88
88
  if (currentTheme === theme.Name) {
89
89
  this._adaptable.applyAdaptableTheme(theme);
@@ -45,21 +45,21 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
45
45
  // columns id
46
46
  permittedValuesItem = permittedValues.find((permittedValue) => {
47
47
  return ('ColumnIds' in permittedValue.scope &&
48
- this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
48
+ this.getColumnScopeApi().isColumnInScope(column, permittedValue.scope));
49
49
  });
50
50
  if (permittedValuesItem) {
51
51
  return permittedValuesItem;
52
52
  }
53
53
  permittedValuesItem = permittedValues.find((permittedValue) => {
54
54
  return ('DataTypes' in permittedValue.scope &&
55
- this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
55
+ this.getColumnScopeApi().isColumnInScope(column, permittedValue.scope));
56
56
  });
57
57
  if (permittedValuesItem) {
58
58
  return permittedValuesItem;
59
59
  }
60
60
  permittedValuesItem = permittedValues.find((permittedValue) => {
61
61
  return ('All' in permittedValue.scope &&
62
- this.getAdaptableApi().columnScopeApi.isColumnInScope(column, permittedValue.scope));
62
+ this.getColumnScopeApi().isColumnInScope(column, permittedValue.scope));
63
63
  });
64
64
  if (permittedValuesItem) {
65
65
  return permittedValuesItem;
@@ -141,7 +141,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
141
141
  if (!editLookUpItem || !gridCell || !gridCell.column) {
142
142
  return undefined;
143
143
  }
144
- return this.getAdaptableApi().gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
144
+ return this.getGridApi().internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
145
145
  }
146
146
  getEditableCellStyle() {
147
147
  return this.getUserInterfaceOptions().editableCellStyle;
@@ -165,9 +165,9 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
165
165
  }
166
166
  }
167
167
  getCustomIconDefinition(iconName) {
168
- var _a, _b;
168
+ var _a;
169
169
  let customIcon = undefined;
170
- const customIcons = (_b = (_a = this.getAdaptableApi().optionsApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.customIcons) !== null && _b !== void 0 ? _b : [];
170
+ const customIcons = (_a = this.getUserInterfaceOptions().customIcons) !== null && _a !== void 0 ? _a : [];
171
171
  customIcon = customIcons.find((icon) => icon.name === iconName);
172
172
  if (customIcon) {
173
173
  return customIcon.icon;
@@ -49,13 +49,12 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
49
49
  return Object.assign(Object.assign({ rowNode }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
50
50
  }
51
51
  buildActionRowFields(actionRowType, rowNode) {
52
- const relevantColumns = this.getAdaptableApi()
53
- .columnApi.getColumns()
52
+ const relevantColumns = this.getColumnApi().getColumns()
54
53
  .filter((column) => {
55
54
  // if there is NO rowNode, do NOT display the non-editable fields as they will be empty
56
55
  return !!rowNode || this.isCellEditable(column, rowNode);
57
56
  })
58
- .filter((column) => !this.getAdaptableApi().columnApi.isActionRowButtonColumn(column.columnId) &&
57
+ .filter((column) => !this.getColumnApi().isActionRowButtonColumn(column.columnId) &&
59
58
  this.showColumnInActionRowForm(column, actionRowType));
60
59
  return relevantColumns.map((column) => this.buildFormField(actionRowType, column, rowNode));
61
60
  }
@@ -92,7 +91,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
92
91
  // we need to filter out the textOutput fields and add the primaryKey
93
92
  const eventInfo = type === 'rowCreated'
94
93
  ? Object.assign(Object.assign({ type: 'rowCreated', formData: this.prepareCreateData(formFields, context) }, this.getAdaptableInternalApi().buildBaseContext()), { clonedRowNode: rowNode }) : Object.assign({ type: 'rowEdited', formData: this.prepareEditData(formFields, context), rowNode: rowNode }, this.getAdaptableInternalApi().buildBaseContext());
95
- this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
94
+ this.getEventApi().emit('ActionRowSubmitted', eventInfo);
96
95
  (_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
97
96
  },
98
97
  };
@@ -124,8 +123,8 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
124
123
  if (!rowNode) {
125
124
  return !column.readOnly;
126
125
  }
127
- const gridCell = this.getAdaptableApi().gridApi.getGridCellFromRowNode(rowNode, column.columnId);
128
- return this.getAdaptableApi().gridApi.isCellEditable(gridCell);
126
+ const gridCell = this.getGridApi().getGridCellFromRowNode(rowNode, column.columnId);
127
+ return this.getGridApi().isCellEditable(gridCell);
129
128
  }
130
129
  buildFormField(type, column, rowNode) {
131
130
  const isCellEditable = this.isCellEditable(column, rowNode);
@@ -137,8 +136,8 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
137
136
  : 'textOutput';
138
137
  const defaultValue = rowNode
139
138
  ? isCellEditable
140
- ? this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, column.columnId)
141
- : this.getAdaptableApi().gridApi.getDisplayValueFromRowNode(rowNode, column.columnId)
139
+ ? this.getGridApi().getRawValueFromRowNode(rowNode, column.columnId)
140
+ : this.getGridApi().getDisplayValueFromRowNode(rowNode, column.columnId)
142
141
  : null;
143
142
  return {
144
143
  label: this.getFormFieldLabel(type, column, rowNode),
@@ -177,9 +176,9 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
177
176
  return;
178
177
  }
179
178
  const gridCell = rowNode
180
- ? this.getAdaptableApi().gridApi.getGridCellFromRowNode(rowNode, column.columnId)
179
+ ? this.getGridApi().getGridCellFromRowNode(rowNode, column.columnId)
181
180
  : undefined;
182
- const editLookUpValues = this.getAdaptableApi().gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, column, gridCell);
181
+ const editLookUpValues = this.getGridApi().internalApi.getEditLookUpValuesForColumn(editLookUpItem, column, gridCell);
183
182
  return editLookUpValues === null || editLookUpValues === void 0 ? void 0 : editLookUpValues.map((value) => ({
184
183
  value,
185
184
  label: value,
@@ -443,7 +443,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
443
443
  }
444
444
  // lastly filter by scope
445
445
  if (scope) {
446
- locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => this.getAdaptableApi().columnScopeApi.isScopeInScope(adaptableObject.Scope, scope));
446
+ locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => this.getColumnScopeApi().isScopeInScope(adaptableObject.Scope, scope));
447
447
  }
448
448
  return locatedAdaptableObjects;
449
449
  }
@@ -457,7 +457,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
457
457
  getActionButtonsAndActionColumn(colDef) {
458
458
  var _a;
459
459
  let actionColumn;
460
- if (this.getAdaptableApi().columnApi.isActionRowButtonColumn(colDef.colId)) {
460
+ if (this.getColumnApi().isActionRowButtonColumn(colDef.colId)) {
461
461
  const actionButtons = this.getActionRowApi().internalApi.getActionRowButtonDefs();
462
462
  actionColumn = {
463
463
  columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
@@ -506,7 +506,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
506
506
  getAlertDefinitionsForCellDataChange(dataChangedEvent) {
507
507
  const allActiveNonReactiveDefinitions = this.getActiveNonReactiveAlertDefinitions();
508
508
  let relatedAlertDefinitions = allActiveNonReactiveDefinitions
509
- .filter((v) => this.getAdaptableApi().columnScopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
509
+ .filter((v) => this.getColumnScopeApi().isColumnInScope(dataChangedEvent.column, v.Scope))
510
510
  .filter((alertDefinition) => !(0, AdaptableQuery_1.isReactiveQuery)(alertDefinition.Rule));
511
511
  let triggeredAlerts = [];
512
512
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(relatedAlertDefinitions)) {
@@ -515,7 +515,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
515
515
  let expression = alertDefinition.Rule.BooleanExpression;
516
516
  let rowNode = dataChangedEvent.rowNode;
517
517
  if (!rowNode) {
518
- rowNode = this.getAdaptableApi().gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
518
+ rowNode = this.getGridApi().getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
519
519
  }
520
520
  const isValidExpression = this.getAdaptableApi().expressionApi.isValidBooleanExpression(expression, 'Alert', `Invalid Alert boolean expression '${expression}'`);
521
521
  const isSatisfiedExpression = isValidExpression &&
@@ -561,7 +561,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
561
561
  const predicateDefHandlerContext = Object.assign({ value: dataChangedEvent.newValue, oldValue: dataChangedEvent.oldValue,
562
562
  // TODO send real display value
563
563
  displayValue: null, node: dataChangedEvent.rowNode, column: dataChangedEvent.column }, this.getAdaptableInternalApi().buildBaseContext());
564
- return this.getAdaptableApi().predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
564
+ return this.getPredicateApi().handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
565
565
  }
566
566
  isAlertDefinitionForRowChangeEvent(alertDefinition) {
567
567
  return (this.isAlertDefinitionForAddedRowChangeEvent(alertDefinition) ||
@@ -88,7 +88,7 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
88
88
  fireCalculatedColumnChangedEvent(trigger, calculatedColumn) {
89
89
  const adaptableApi = this.getAdaptableApi();
90
90
  const calculatedColumnChangedInfo = Object.assign({ actionName: trigger, calculatedColumn: calculatedColumn, calculatedColumnExpressionAST: adaptableApi.expressionApi.getASTForExpression(this.getExpressionFromCalculatedColumn(calculatedColumn)) }, this.getAdaptableInternalApi().buildBaseContext());
91
- this.getAdaptableApi().eventApi.emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
91
+ this.getEventApi().emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
92
92
  }
93
93
  getColDefsForCalculatedColumns() {
94
94
  const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
@@ -15,8 +15,8 @@ class ChartingInternalApi extends ApiBase_1.ApiBase {
15
15
  return element;
16
16
  }
17
17
  getContainerElemetnByName(containerName) {
18
- var _a, _b, _c;
19
- const chartContainers = (_c = (_b = (_a = this.getAdaptableApi().optionsApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.chartingOptions) === null || _b === void 0 ? void 0 : _b.chartContainers) !== null && _c !== void 0 ? _c : [];
18
+ var _a;
19
+ const chartContainers = (_a = this.getChartingOptions().chartContainers) !== null && _a !== void 0 ? _a : [];
20
20
  const chartContainer = chartContainers.find((container) => container.name === containerName);
21
21
  return this.getContainerElement(chartContainer);
22
22
  }
@@ -27,7 +27,7 @@ class ChartingInternalApi extends ApiBase_1.ApiBase {
27
27
  }
28
28
  // External lib charting service
29
29
  isExternalChartOpened(chartDefinition) {
30
- const externalChartingOptions = this.getAdaptableApi().optionsApi.getChartingOptions().externalChartingOptions;
30
+ const externalChartingOptions = this.getChartingOptions().externalChartingOptions;
31
31
  if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.isChartOpened)) {
32
32
  return false;
33
33
  }
@@ -37,28 +37,28 @@ class ChartingInternalApi extends ApiBase_1.ApiBase {
37
37
  return externalChartingOptions.isChartOpened(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())));
38
38
  }
39
39
  onHideExternalChart(chartDefinition) {
40
- const externalChartingOptions = this.getAdaptableApi().optionsApi.getChartingOptions().externalChartingOptions;
40
+ const externalChartingOptions = this.getChartingOptions().externalChartingOptions;
41
41
  if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onHideChart)) {
42
42
  return;
43
43
  }
44
44
  externalChartingOptions.onHideChart(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())));
45
45
  }
46
46
  onShowExternalChart(chartDefinition, container) {
47
- const externalChartingOptions = this.getAdaptableApi().optionsApi.getChartingOptions().externalChartingOptions;
47
+ const externalChartingOptions = this.getChartingOptions().externalChartingOptions;
48
48
  if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onShowChart)) {
49
49
  return;
50
50
  }
51
51
  externalChartingOptions.onShowChart(Object.assign({ chartDefinition: chartDefinition, container: container }, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())));
52
52
  }
53
53
  onPreviewExternalChart(chartDefinition, container) {
54
- const externalChartingOptions = this.getAdaptableApi().optionsApi.getChartingOptions().externalChartingOptions;
54
+ const externalChartingOptions = this.getChartingOptions().externalChartingOptions;
55
55
  if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onPreviewChart)) {
56
56
  return;
57
57
  }
58
58
  return externalChartingOptions.onPreviewChart(Object.assign({ chartDefinition: chartDefinition, container: container }, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())));
59
59
  }
60
60
  onDeleteExternalChart(chartDefinition) {
61
- const externalChartingOptions = this.getAdaptableApi().optionsApi.getChartingOptions().externalChartingOptions;
61
+ const externalChartingOptions = this.getChartingOptions().externalChartingOptions;
62
62
  if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onDeleteChart)) {
63
63
  return;
64
64
  }
@@ -47,7 +47,7 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
47
47
  const filter = {
48
48
  ColumnId: column.columnId,
49
49
  Predicate: {
50
- PredicateId: this.getAdaptableApi().predicateApi.internalApi.getEqualityPredicateForDataType(column.dataType),
50
+ PredicateId: this.getPredicateApi().internalApi.getEqualityPredicateForDataType(column.dataType),
51
51
  Inputs: [...new Set([gridCell.rawValue])],
52
52
  },
53
53
  };
@@ -59,11 +59,11 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
59
59
  * @param columnFilter Column Filter to use
60
60
  */
61
61
  columnFilterToString(columnFilter) {
62
- const friendlyName = this.getAdaptableApi().columnApi.getFriendlyNameForColumnId(columnFilter.ColumnId);
62
+ const friendlyName = this.getColumnApi().getFriendlyNameForColumnId(columnFilter.ColumnId);
63
63
  return ('[' +
64
64
  friendlyName +
65
65
  '] ' +
66
- this.getAdaptableApi().predicateApi.predicateToString(columnFilter.Predicate));
66
+ this.getPredicateApi().predicateToString(columnFilter.Predicate));
67
67
  }
68
68
  /**
69
69
  * Retrieves descriptions of given Column Filters
@@ -94,18 +94,18 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
94
94
  if (someInputsAreEmpty) {
95
95
  return true;
96
96
  }
97
- const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnFilter.ColumnId);
97
+ const column = this.getColumnApi().getColumnWithColumnId(columnFilter.ColumnId);
98
98
  if (!column) {
99
99
  return true;
100
100
  }
101
- const gridCell = this.getAdaptableApi().gridApi.getGridCellFromRowNode(node, columnFilter.ColumnId);
101
+ const gridCell = this.getGridApi().getGridCellFromRowNode(node, columnFilter.ColumnId);
102
102
  if (!gridCell) {
103
103
  return true;
104
104
  }
105
105
  let value = gridCell.normalisedValue;
106
106
  const predicateDefHandlerContext = Object.assign({ value: value, oldValue: null, displayValue: gridCell.displayValue, node,
107
107
  column }, this.getAdaptableInternalApi().buildBaseContext());
108
- return this.getAdaptableApi().predicateApi.handlePredicate(columnFilter.Predicate, predicateDefHandlerContext, true);
108
+ return this.getPredicateApi().handlePredicate(columnFilter.Predicate, predicateDefHandlerContext, true);
109
109
  }
110
110
  /**
111
111
  * Checks if the filter action should trigger Column Filtering
@@ -169,13 +169,13 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
169
169
  fireColumnFilterAppliedEvent() {
170
170
  if (this.isAdapTableReady()) {
171
171
  const columnFilterAppliedInfo = Object.assign({ columnFilters: this.getColumnFilterApi().getColumnFilters() }, this.getAdaptableInternalApi().buildBaseContext());
172
- this.getAdaptableApi().eventApi.emit('ColumnFilterApplied', columnFilterAppliedInfo);
172
+ this.getEventApi().emit('ColumnFilterApplied', columnFilterAppliedInfo);
173
173
  }
174
174
  }
175
175
  fireGridFilterAppliedEvent() {
176
176
  if (this.isAdapTableReady()) {
177
177
  const gridFilterAppliedInfo = Object.assign({ columnFilters: this.getColumnFilterApi().getColumnFilters() }, this.getAdaptableInternalApi().buildBaseContext());
178
- this.getAdaptableApi().eventApi.emit('GridFilterApplied', gridFilterAppliedInfo);
178
+ this.getEventApi().emit('GridFilterApplied', gridFilterAppliedInfo);
179
179
  }
180
180
  }
181
181
  /**
@@ -6,7 +6,7 @@ class CustomSortInternalApi extends ApiBase_1.ApiBase {
6
6
  getCustomSortComparer(columnId) {
7
7
  var _a;
8
8
  const column = this.getColumnApi().getColumnWithColumnId(columnId);
9
- return (_a = this.getCustomSortOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.getAdaptableApi().columnScopeApi.isColumnInScope(column, csc.scope));
9
+ return (_a = this.getCustomSortOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.getColumnScopeApi().isColumnInScope(column, csc.scope));
10
10
  }
11
11
  getDefaultCustomSortComparer(columnId, columnValues) {
12
12
  // have to return a function that may not have access to this
@@ -35,7 +35,7 @@ class DashboardInternalApi extends ApiBase_1.ApiBase {
35
35
  isToolbarStateChangedToVisible,
36
36
  isToolbarStateChangedToHidden });
37
37
  if (!(0, isEqual_1.default)(oldDashboardState, newDashboardState)) {
38
- setTimeout(() => this.getAdaptableApi().eventApi.emit('DashboardChanged', dashboardChangedInfo));
38
+ setTimeout(() => this.getEventApi().emit('DashboardChanged', dashboardChangedInfo));
39
39
  }
40
40
  }
41
41
  isToolbarInActiveTab(toolbarName, dashboardState) {
@@ -10,7 +10,7 @@ class DataSetInternalApi extends ApiBase_1.ApiBase {
10
10
  fireDataSetSelectedEvent(dataSet) {
11
11
  if (this.isAdapTableReady()) {
12
12
  const dataSetSelectedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { dataSet });
13
- this.getAdaptableApi().eventApi.emit('DataSetSelected', dataSetSelectedInfo);
13
+ this.getEventApi().emit('DataSetSelected', dataSetSelectedInfo);
14
14
  }
15
15
  }
16
16
  }
@@ -37,12 +37,12 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
37
37
  break;
38
38
  case 'ScopeColumns':
39
39
  // use the Scope object which will tell us if the Column is relevant
40
- if (!this.getAdaptableApi().columnScopeApi.isColumnInScopeColumns(cellDataChangedInfo.column, report.Scope)) {
40
+ if (!this.getColumnScopeApi().isColumnInScopeColumns(cellDataChangedInfo.column, report.Scope)) {
41
41
  return false;
42
42
  }
43
43
  break;
44
44
  case 'SelectedColumns':
45
- let selectedCellInfo = this.getAdaptableApi().gridApi.getSelectedCellInfo();
45
+ let selectedCellInfo = this.getGridApi().getSelectedCellInfo();
46
46
  if (selectedCellInfo) {
47
47
  if (selectedCellInfo.columns.find((c) => c.columnId == cellDataChangedInfo.column.columnId) == null) {
48
48
  return false;
@@ -63,7 +63,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
63
63
  case 'ExpressionRows':
64
64
  return true; // TODO this is the only difficult one - do we check AdapTableQL? if we can then that is good as we can then do a delta after all...
65
65
  case 'SelectedCellRows':
66
- let selectedCellInfo = this.getAdaptableApi().gridApi.getSelectedCellInfo();
66
+ let selectedCellInfo = this.getGridApi().getSelectedCellInfo();
67
67
  if (selectedCellInfo && selectedCellInfo.gridCells) {
68
68
  if (selectedCellInfo.gridCells.find((gc) => gc.primaryKeyValue == cellDataChangedInfo.primaryKeyValue)) {
69
69
  return true;
@@ -71,7 +71,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
71
71
  }
72
72
  return false;
73
73
  case 'SelectedRows':
74
- let selectedRowInfo = this.getAdaptableApi().gridApi.getSelectedRowInfo();
74
+ let selectedRowInfo = this.getGridApi().getSelectedRowInfo();
75
75
  if (selectedRowInfo && selectedRowInfo.gridRows) {
76
76
  if (selectedRowInfo.gridRows.find((gr) => gr.primaryKeyValue == cellDataChangedInfo.primaryKeyValue)) {
77
77
  return true;
@@ -221,10 +221,10 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
221
221
  }
222
222
  isSystemReportActive(reportName) {
223
223
  if (reportName == GeneralConstants_1.SELECTED_CELLS_REPORT) {
224
- return this.getAdaptableApi().gridApi.isGridRangeSelectable();
224
+ return this.getGridApi().isGridRangeSelectable();
225
225
  }
226
226
  if (reportName == GeneralConstants_1.SELECTED_ROWS_REPORT) {
227
- return this.getAdaptableApi().gridApi.isGridRowSelectable();
227
+ return this.getGridApi().isGridRowSelectable();
228
228
  }
229
229
  if (reportName === GeneralConstants_1.VISUAL_DATA_REPORT) {
230
230
  return this.getAdaptableApi()
@@ -235,13 +235,13 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
235
235
  }
236
236
  isSystemExportDestinationActive(exportDestination) {
237
237
  if (exportDestination === Enums_1.ExportDestination.Excel) {
238
- return this.getAdaptableApi().exportApi.canExportToExcel();
238
+ return this.getExportApi().canExportToExcel();
239
239
  }
240
240
  return true;
241
241
  }
242
242
  getReportColumnScopeShortDescription(report) {
243
243
  var _a, _b;
244
- if (this.getAdaptableApi().exportApi.isExternalReport(report)) {
244
+ if (this.getExportApi().isExternalReport(report)) {
245
245
  return ['[Custom Columns]'];
246
246
  }
247
247
  switch (report.ReportColumnScope) {
@@ -253,13 +253,13 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
253
253
  return ['[Selected Columns]'];
254
254
  case 'ScopeColumns':
255
255
  if ('ColumnIds' in (report === null || report === void 0 ? void 0 : report.Scope)) {
256
- return (_b = (_a = report.Scope.ColumnIds).map) === null || _b === void 0 ? void 0 : _b.call(_a, (columnId) => { var _a; return (_a = this.getAdaptableApi().columnApi.getFriendlyNameForColumnId(columnId)) !== null && _a !== void 0 ? _a : columnId; });
256
+ return (_b = (_a = report.Scope.ColumnIds).map) === null || _b === void 0 ? void 0 : _b.call(_a, (columnId) => { var _a; return (_a = this.getColumnApi().getFriendlyNameForColumnId(columnId)) !== null && _a !== void 0 ? _a : columnId; });
257
257
  }
258
258
  return ['[Bespoke Columns]'];
259
259
  }
260
260
  }
261
261
  getReportColumnScopeLongDescription(report) {
262
- if (this.getAdaptableApi().exportApi.isExternalReport(report)) {
262
+ if (this.getExportApi().isExternalReport(report)) {
263
263
  return '[Custom Columns]';
264
264
  }
265
265
  switch (report.ReportColumnScope) {
@@ -270,11 +270,11 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
270
270
  case 'SelectedColumns':
271
271
  return '[Selected Columns]';
272
272
  case 'ScopeColumns':
273
- return this.getAdaptableApi().columnScopeApi.getScopeDescription(report.Scope);
273
+ return this.getColumnScopeApi().getScopeDescription(report.Scope);
274
274
  }
275
275
  }
276
276
  getReportExpressionDescription(report, cols) {
277
- if (this.getAdaptableApi().exportApi.isExternalReport(report)) {
277
+ if (this.getExportApi().isExternalReport(report)) {
278
278
  return '[Custom Data]';
279
279
  }
280
280
  if (this.isSystemReport(report.Name)) {
@@ -309,8 +309,8 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
309
309
  }
310
310
  getReportDataColumns(report, includePrimaryKey = false) {
311
311
  let reportColumns = [];
312
- let gridColumns = this.getAdaptableApi().columnApi.getExportableColumns();
313
- if (this.getAdaptableApi().exportApi.isExternalReport(report)) {
312
+ let gridColumns = this.getColumnApi().getExportableColumns();
313
+ if (this.getExportApi().isExternalReport(report)) {
314
314
  return reportColumns;
315
315
  }
316
316
  // first get the cols depending on the Column Scope
@@ -330,10 +330,10 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
330
330
  break;
331
331
  case 'ScopeColumns':
332
332
  if ('ColumnIds' in report.Scope) {
333
- reportColumns = report.Scope.ColumnIds.map((columnId) => this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId)).filter((c) => c);
333
+ reportColumns = report.Scope.ColumnIds.map((columnId) => this.getColumnApi().getColumnWithColumnId(columnId)).filter((c) => c);
334
334
  }
335
335
  else {
336
- reportColumns = this.getAdaptableApi().columnScopeApi.getColumnsForScope(report.Scope);
336
+ reportColumns = this.getColumnScopeApi().getColumnsForScope(report.Scope);
337
337
  }
338
338
  break;
339
339
  }
@@ -341,8 +341,8 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
341
341
  const pkColumn = reportColumns.find((column) => column.columnId === this.getAdaptableApi().optionsApi.getPrimaryKey());
342
342
  // TODO simplify after we fix the IsPrimaryKey bug
343
343
  // const pkColumn = reportColumns.find(column => column.IsPrimaryKey);
344
- if (!pkColumn && !!this.getAdaptableApi().columnApi.getPrimaryKeyColumn()) {
345
- reportColumns.push(this.getAdaptableApi().columnApi.getPrimaryKeyColumn());
344
+ if (!pkColumn && !!this.getColumnApi().getPrimaryKeyColumn()) {
345
+ reportColumns.push(this.getColumnApi().getPrimaryKeyColumn());
346
346
  }
347
347
  }
348
348
  return reportColumns.map((column) => {
@@ -384,12 +384,12 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
384
384
  });
385
385
  break;
386
386
  case 'SelectedCellRows':
387
- const selectedCellInfo = this.getAdaptableApi().gridApi.getSelectedCellInfo();
387
+ const selectedCellInfo = this.getGridApi().getSelectedCellInfo();
388
388
  const { gridCells: GridCells } = selectedCellInfo;
389
389
  let selectedCellsByPrimaryKey = (0, lodash_1.groupBy)(GridCells, 'primaryKeyValue');
390
390
  // we iterate over all visibleRowNodes to preserve the current order
391
391
  this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => {
392
- const rowPrimaryKeyValue = this.getAdaptableApi().gridApi.getPrimaryKeyValueForRowNode(rowNode);
392
+ const rowPrimaryKeyValue = this.getGridApi().getPrimaryKeyValueForRowNode(rowNode);
393
393
  const selectedRowCells = selectedCellsByPrimaryKey[rowPrimaryKeyValue];
394
394
  if (selectedRowCells) {
395
395
  const selectedRowColumnIds = selectedRowCells.map((rowCell) => rowCell.column.columnId);
@@ -403,11 +403,11 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
403
403
  });
404
404
  break;
405
405
  case 'SelectedRows':
406
- const selectedRowInfo = this.getAdaptableApi().gridApi.getSelectedRowInfo();
406
+ const selectedRowInfo = this.getGridApi().getSelectedRowInfo();
407
407
  const selectedGridRowPrimaryKeys = (_b = (_a = selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows) === null || _a === void 0 ? void 0 : _a.filter((gr) => gr.rowInfo.isGroup == false).map((gridRow) => gridRow.primaryKeyValue)) !== null && _b !== void 0 ? _b : [];
408
408
  if (selectedGridRowPrimaryKeys.length) {
409
409
  this.getAdaptableInternalApi().forAllRowNodesDo((rowNode) => {
410
- const rowPrimaryKeyValue = this.getAdaptableApi().gridApi.getPrimaryKeyValueForRowNode(rowNode);
410
+ const rowPrimaryKeyValue = this.getGridApi().getPrimaryKeyValueForRowNode(rowNode);
411
411
  if (selectedGridRowPrimaryKeys.includes(rowPrimaryKeyValue)) {
412
412
  resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
413
413
  }
@@ -418,8 +418,8 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
418
418
  return resultRowData;
419
419
  }
420
420
  getReportData(report, includePrimaryKey = false) {
421
- if (this.getAdaptableApi().exportApi.isExternalReport(report)) {
422
- return this.getAdaptableApi().exportApi.runExternalReport(report.Name);
421
+ if (this.getExportApi().isExternalReport(report)) {
422
+ return this.getExportApi().runExternalReport(report.Name);
423
423
  }
424
424
  const columns = this.getReportDataColumns(report, includePrimaryKey);
425
425
  const rows = this.getReportDataRows(report, columns, includePrimaryKey);
@@ -443,16 +443,16 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
443
443
  }
444
444
  publishLiveLiveDataChangedEvent(reportDestination, liveDataTrigger, liveReport) {
445
445
  const liveDataChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { reportDestination: reportDestination, liveDataTrigger: liveDataTrigger, liveReport: liveReport });
446
- this.getAdaptableApi().eventApi.emit('LiveDataChanged', liveDataChangedInfo);
446
+ this.getEventApi().emit('LiveDataChanged', liveDataChangedInfo);
447
447
  }
448
448
  getCellExportValueFromRowNode(rowNode, columnId, reportName) {
449
- return this.getCellExportValueFromRawValue(rowNode, this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId), columnId, reportName);
449
+ return this.getCellExportValueFromRawValue(rowNode, this.getGridApi().getRawValueFromRowNode(rowNode, columnId), columnId, reportName);
450
450
  }
451
451
  getCellExportValueFromRawValue(rowNode, cellRawValue, columnId, reportName) {
452
452
  if (StringExtensions_1.default.IsNullOrEmpty(cellRawValue)) {
453
453
  return cellRawValue;
454
454
  }
455
- const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
455
+ const column = this.getColumnApi().getColumnWithColumnId(columnId);
456
456
  const columnDataType = column.dataType;
457
457
  // 1. if it is a Visual Data report then we always ONLY send the formatted value and ignore all other properties
458
458
  if (reportName == GeneralConstants_1.VISUAL_DATA_REPORT) {
@@ -466,12 +466,12 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
466
466
  });
467
467
  }
468
468
  // 3. in all other cases check the general export format types
469
- const cellExportFormat = this.getAdaptableApi().exportApi.internalApi.getCellExportFormatType(column, columnDataType);
469
+ const cellExportFormat = this.getExportApi().internalApi.getCellExportFormatType(column, columnDataType);
470
470
  return this.getCellExportValueFromRawValueByType(rowNode, cellRawValue, columnId, cellExportFormat);
471
471
  }
472
472
  getReportFileName(reportName, destination) {
473
473
  let fileName;
474
- const reportFilename = this.getAdaptableApi().optionsApi.getExportOptions().reportFilename;
474
+ const reportFilename = this.getExportOptions().reportFilename;
475
475
  if (reportFilename) {
476
476
  const reportFileNameContext = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { reportName,
477
477
  destination });
@@ -479,7 +479,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
479
479
  }
480
480
  else {
481
481
  fileName = StringExtensions_1.default.ReplaceEmptySpacesWithUnderscore(reportName);
482
- if (this.getAdaptableApi().optionsApi.getExportOptions().appendFileTimestamp) {
482
+ if (this.getExportOptions().appendFileTimestamp) {
483
483
  fileName = `${fileName}_${(0, FormatHelper_1.DateFormatter)(new Date(), {
484
484
  Pattern: 'yyyyMMdd_HHmmss',
485
485
  })}`;
@@ -488,7 +488,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
488
488
  return fileName;
489
489
  }
490
490
  getCustomExportDateFormat() {
491
- return this.getAdaptableApi().optionsApi.getExportOptions().exportDateFormat;
491
+ return this.getExportOptions().exportDateFormat;
492
492
  }
493
493
  getCellExportValueFromRawValueByType(rowNode, cellRawValue, columnId,
494
494
  // default to rawValue if, for some reason, the configs provide invalid values
@@ -496,7 +496,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
496
496
  return type === 'rawValue'
497
497
  ? cellRawValue
498
498
  : // type === formattedValue
499
- this.getAdaptableApi().gridApi.getDisplayValueFromRawValue(rowNode, columnId, cellRawValue);
499
+ this.getGridApi().getDisplayValueFromRawValue(rowNode, columnId, cellRawValue);
500
500
  }
501
501
  // aggregate and merge all acive Adaptable styles with the user proviided ExcelStyles
502
502
  buildExcelStylesForVisualReports() {
@@ -514,7 +514,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
514
514
  if (memoizedColumn) {
515
515
  return memoizedColumn;
516
516
  }
517
- const abColumn = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
517
+ const abColumn = this.getColumnApi().getColumnWithColumnId(columnId);
518
518
  adaptableColumnMap[columnId] = abColumn;
519
519
  return abColumn;
520
520
  };
@@ -551,7 +551,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
551
551
  var _a, _b, _c;
552
552
  const colDef = colDefs[columnIndex];
553
553
  const columnId = column.getId();
554
- const adaptableColumn = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
554
+ const adaptableColumn = this.getColumnApi().getColumnWithColumnId(columnId);
555
555
  const isDateCellExportedAsFormattedValue = this.isDateCellExportedAsFormattedValue(adaptableColumn);
556
556
  let cellClassParams;
557
557
  const getLazyCellClassParams = () => {
@@ -561,7 +561,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
561
561
  node,
562
562
  column,
563
563
  data: node.data,
564
- value: this.getAdaptableApi().gridApi.getRawValueFromRowNode(node, columnId),
564
+ value: this.getGridApi().getRawValueFromRowNode(node, columnId),
565
565
  rowIndex,
566
566
  api: agGridApi,
567
567
  context: {},
@@ -598,7 +598,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
598
598
  excelStyles.push(this.convertCSSToExcelStyle(sanitizedAdaptableStyle));
599
599
  }
600
600
  const excelDataType = this.getExcelDataType(colDef === null || colDef === void 0 ? void 0 : colDef.type);
601
- const rawValue = this.getAdaptableApi().gridApi.getRawValueFromRowNode(node, column.getId());
601
+ const rawValue = this.getGridApi().getRawValueFromRowNode(node, column.getId());
602
602
  // don't add the cell style if it has no adaptable custom styles
603
603
  if (!excelStyles.length &&
604
604
  // if this is a formatted Date value, we still need to add the AG GRID specific type & numberFormat below
@@ -608,7 +608,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
608
608
  const cellClassId = this._adaptable.agGridColumnAdapter.getExcelClassNameForCell(column.getId(), this._adaptable.getPrimaryKeyValueFromRowNode(node), userDefinedCellClass);
609
609
  const finalCellExcelStyle = Object.assign({}, ...excelStyles);
610
610
  if (excelDataType === 'DateTime' && isDateCellExportedAsFormattedValue) {
611
- let dateFormatPattern = this.getAdaptableApi().optionsApi.getExportOptions().exportDateFormat;
611
+ let dateFormatPattern = this.getExportOptions().exportDateFormat;
612
612
  const abColumn = getAdaptableColumnWithColumnId(column.getColId());
613
613
  if (!dateFormatPattern) {
614
614
  const mostRelevantFormatColumn = this.getAdaptableApi().formatColumnApi.internalApi.getMostRelevantFormatColumnForColumn(getFormatColumnsWithDisplayFormatForColumn(column.getColId()), abColumn, { node, value: rawValue });