@adaptabletools/adaptable 19.1.0 → 19.1.2-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 (154) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -5
  3. package/src/AdaptableOptions/AlertOptions.d.ts +3 -0
  4. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +1 -1
  5. package/src/AdaptableOptions/CommentOptions.d.ts +2 -2
  6. package/src/AdaptableOptions/NoteOptions.d.ts +2 -2
  7. package/src/Api/AdaptableApi.d.ts +21 -11
  8. package/src/Api/Events/GridDataChanged.d.ts +3 -0
  9. package/src/Api/GridApi.d.ts +8 -3
  10. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
  11. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
  12. package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
  13. package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
  14. package/src/Api/Implementation/AdaptableApiImpl.d.ts +5 -6
  15. package/src/Api/Implementation/AdaptableApiImpl.js +7 -1
  16. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  17. package/src/Api/Implementation/AlertApiImpl.js +16 -15
  18. package/src/Api/Implementation/ApiBase.d.ts +12 -3
  19. package/src/Api/Implementation/ApiBase.js +39 -24
  20. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
  21. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
  22. package/src/Api/Implementation/CalendarApiImpl.js +1 -1
  23. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  24. package/src/Api/Implementation/ChartingApiImpl.js +9 -9
  25. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  26. package/src/Api/Implementation/ColumnApiImpl.js +18 -18
  27. package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
  28. package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
  29. package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
  30. package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
  31. package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
  32. package/src/Api/Implementation/CommentsApiImpl.js +6 -4
  33. package/src/Api/Implementation/ConfigApiImpl.js +23 -24
  34. package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
  35. package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
  36. package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
  37. package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
  38. package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
  39. package/src/Api/Implementation/DashboardApiImpl.js +5 -5
  40. package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
  41. package/src/Api/Implementation/DataImportApiImpl.js +3 -3
  42. package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
  43. package/src/Api/Implementation/DataSetApiImpl.js +5 -5
  44. package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
  45. package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
  46. package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
  47. package/src/Api/Implementation/EventApiImpl.js +2 -2
  48. package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/ExportApiImpl.js +7 -7
  50. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
  52. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
  53. package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
  54. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
  55. package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
  56. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
  57. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  58. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
  59. package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
  60. package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
  61. package/src/Api/Implementation/GridApiImpl.js +108 -103
  62. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  63. package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
  64. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
  65. package/src/Api/Implementation/LayoutApiImpl.js +3 -3
  66. package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
  67. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
  68. package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
  69. package/src/Api/Implementation/NoteApiImpl.js +3 -3
  70. package/src/Api/Implementation/OptionsApiImpl.js +7 -7
  71. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  72. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  73. package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
  74. package/src/Api/Implementation/PredicateApiImpl.js +4 -4
  75. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
  76. package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
  77. package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
  78. package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
  79. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
  80. package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
  81. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
  82. package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
  83. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
  84. package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
  85. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
  86. package/src/Api/Implementation/ThemeApiImpl.js +8 -8
  87. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  88. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  89. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
  90. package/src/Api/Internal/ActionRowInternalApi.js +8 -8
  91. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
  92. package/src/Api/Internal/AdaptableInternalApi.js +55 -50
  93. package/src/Api/Internal/AlertInternalApi.js +9 -9
  94. package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
  95. package/src/Api/Internal/ChartingInternalApi.js +1 -1
  96. package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
  97. package/src/Api/Internal/ColumnInternalApi.js +3 -3
  98. package/src/Api/Internal/CommentsInternalApi.d.ts +1 -0
  99. package/src/Api/Internal/CommentsInternalApi.js +4 -0
  100. package/src/Api/Internal/CustomSortInternalApi.js +3 -3
  101. package/src/Api/Internal/DashboardInternalApi.js +4 -3
  102. package/src/Api/Internal/DataImportInternalApi.js +2 -2
  103. package/src/Api/Internal/DataSetInternalApi.js +2 -2
  104. package/src/Api/Internal/ExportInternalApi.js +21 -22
  105. package/src/Api/Internal/ExpressionInternalApi.js +4 -4
  106. package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
  107. package/src/Api/Internal/Fdc3InternalApi.js +9 -12
  108. package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
  109. package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
  110. package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
  111. package/src/Api/Internal/GridFilterInternalApi.js +2 -2
  112. package/src/Api/Internal/GridInternalApi.js +26 -26
  113. package/src/Api/Internal/LayoutInternalApi.js +6 -5
  114. package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
  115. package/src/Api/Internal/NoteInternalApi.d.ts +1 -0
  116. package/src/Api/Internal/NoteInternalApi.js +4 -0
  117. package/src/Api/Internal/PredicateInternalApi.js +5 -5
  118. package/src/Api/Internal/ScheduleInternalApi.js +1 -1
  119. package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
  120. package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
  121. package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
  122. package/src/Api/Internal/ThemeInternalApi.js +1 -1
  123. package/src/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +15 -0
  124. package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +3 -0
  125. package/src/Strategy/NoteModule.d.ts +0 -1
  126. package/src/Strategy/NoteModule.js +4 -5
  127. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  128. package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
  129. package/src/Utilities/Services/CellPopupService.js +4 -4
  130. package/src/Utilities/Services/Fdc3Service.js +1 -3
  131. package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
  132. package/src/Utilities/Services/FlashingCellService.js +2 -3
  133. package/src/Utilities/Services/RowEditService.js +3 -5
  134. package/src/View/Alert/AlertStatusSubPanel.js +4 -4
  135. package/src/View/Charting/ShowChartButton.js +4 -4
  136. package/src/View/Comments/CommentsEditor.js +2 -2
  137. package/src/View/Comments/CommentsPopup.js +1 -4
  138. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  139. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
  140. package/src/View/Layout/TransposedPopup.js +2 -2
  141. package/src/View/Note/NotePopup.js +1 -4
  142. package/src/agGrid/AdaptableAgGrid.d.ts +2 -5
  143. package/src/agGrid/AdaptableAgGrid.js +47 -26
  144. package/src/agGrid/AgGridAdapter.js +3 -3
  145. package/src/agGrid/FloatingFilterWrapper.js +4 -3
  146. package/src/agGrid/defaultAdaptableOptions.js +100 -96
  147. package/src/components/Datepicker/index.d.ts +1 -1
  148. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  149. package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
  150. package/src/env.js +2 -2
  151. package/src/metamodel/adaptable.metamodel.d.ts +32 -0
  152. package/src/metamodel/adaptable.metamodel.js +1 -1
  153. package/src/types.d.ts +1 -1
  154. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -2,9 +2,9 @@ import { ApiBase } from './ApiBase';
2
2
  import * as NoteRedux from '../../Redux/ActionsReducers/NoteRedux';
3
3
  import { NoteInternalApi } from '../Internal/NoteInternalApi';
4
4
  export class NoteApiImpl extends ApiBase {
5
- constructor(adaptable) {
6
- super(adaptable);
7
- this.internalApi = new NoteInternalApi(adaptable);
5
+ constructor(_adaptable) {
6
+ super(_adaptable);
7
+ this.internalApi = new NoteInternalApi(_adaptable);
8
8
  }
9
9
  addNote(noteStr, primaryKeyValue, columnId) {
10
10
  const note = {
@@ -1,22 +1,22 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  export class OptionsApiImpl extends ApiBase {
3
3
  getAdaptableId() {
4
- return this.adaptable.adaptableOptions.adaptableId;
4
+ return this.getAdaptableOptions().adaptableId;
5
5
  }
6
6
  getAdaptableStateKey() {
7
- return this.adaptable.adaptableOptions.adaptableStateKey;
7
+ return this.getAdaptableOptions().adaptableStateKey;
8
8
  }
9
9
  getAutogeneratePrimaryKey() {
10
- return this.adaptable.adaptableOptions.autogeneratePrimaryKey;
10
+ return this.getAdaptableOptions().autogeneratePrimaryKey;
11
11
  }
12
12
  getLicenseKey() {
13
- return this.adaptable.adaptableOptions.licenseKey;
13
+ return this.getAdaptableOptions().licenseKey;
14
14
  }
15
15
  getPrimaryKey() {
16
- return this.adaptable.adaptableOptions.primaryKey;
16
+ return this.getAdaptableOptions().primaryKey;
17
17
  }
18
18
  getUserName() {
19
- return this.adaptable.adaptableOptions.userName;
19
+ return this.getAdaptableOptions().userName;
20
20
  }
21
21
  getAdaptableOptions() {
22
22
  return this.getOptions();
@@ -121,7 +121,7 @@ export class OptionsApiImpl extends ApiBase {
121
121
  return this.getOptions().settingsPanelOptions;
122
122
  }
123
123
  getFdc3Options() {
124
- return this.adaptable.adaptableOptions.fdc3Options;
124
+ return this.getOptions().fdc3Options;
125
125
  }
126
126
  getDataImportOptions() {
127
127
  return this.getOptions().dataImportOptions;
@@ -15,7 +15,7 @@ export class PluginsApiImpl extends ApiBase {
15
15
  }
16
16
  getPluginApi(pluginId) {
17
17
  try {
18
- const api = this.adaptable.getPluginProperty(pluginId, 'api');
18
+ const api = this._adaptable.getPluginProperty(pluginId, 'api');
19
19
  if (pluginId === 'ipushpull') {
20
20
  return api;
21
21
  }
@@ -20,7 +20,7 @@ export class PlusMinusApiImpl extends ApiBase {
20
20
  return this.getAllPlusMinus().filter((plusMinusNudge) => plusMinusNudge.IsSuspended);
21
21
  }
22
22
  runPlusMinusNudge(plusMinusNudge, cellsToUpdate, direction) {
23
- let plusMinusModule = (this.adaptable.adaptableModules.get(ModuleConstants.PlusMinusModuleId));
23
+ let plusMinusModule = (this.getAdaptableInternalApi().getModules().get(ModuleConstants.PlusMinusModuleId));
24
24
  plusMinusModule.applyPlusMinus([plusMinusNudge], cellsToUpdate, direction);
25
25
  }
26
26
  applyPlusMinus(cellUpdateRequests) {
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
5
5
  import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
6
6
  export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
7
7
  internalApi: PredicateInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getPredicateDefs(): AdaptablePredicateDef<string>[];
10
10
  getSystemPredicateDefs(): AdaptablePredicateDef<string>[];
11
11
  getSystemPredicateDefsByModuleScope<PREDICATE_TYPE extends string = string>(moduleScope: PredicateModuleScope): AdaptablePredicateDef<PREDICATE_TYPE>[];
@@ -4,9 +4,9 @@ import StringExtensions from '../../Utilities/Extensions/StringExtensions';
4
4
  import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
5
5
  import { SystemPredicateDefs } from '../../PredefinedConfig/Common/AdaptablePredicate';
6
6
  export class PredicateApiImpl extends ApiBase {
7
- constructor(adaptable) {
8
- super(adaptable);
9
- this.internalApi = new PredicateInternalApi(adaptable);
7
+ constructor(_adaptable) {
8
+ super(_adaptable);
9
+ this.internalApi = new PredicateInternalApi(_adaptable);
10
10
  }
11
11
  getPredicateDefs() {
12
12
  return this.internalApi.mergeSystemAndCustomPredicates(this.getSystemPredicateDefs(), this.getCustomPredicateDefs());
@@ -109,6 +109,6 @@ export class PredicateApiImpl extends ApiBase {
109
109
  return predicates === null || predicates === void 0 ? void 0 : predicates.every((p) => this.handlePredicate(p, params, defaultReturn));
110
110
  }
111
111
  useCaseSensitivity() {
112
- return this.adaptable.adaptableOptions.predicateOptions.caseSensitivePredicates;
112
+ return this.getPredicateOptions().caseSensitivePredicates;
113
113
  }
114
114
  }
@@ -9,7 +9,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
9
9
  import { ScheduleInternalApi } from '../Internal/ScheduleInternalApi';
10
10
  export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
11
11
  internalApi: ScheduleInternalApi;
12
- constructor(adaptable: IAdaptable);
12
+ constructor(_adaptable: IAdaptable);
13
13
  getScheduleState(): ScheduleState;
14
14
  getSchedules(): BaseSchedule[];
15
15
  getReminderSchedules(config?: {
@@ -3,9 +3,9 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
3
3
  import * as ScheduleRedux from '../../Redux/ActionsReducers/ScheduleRedux';
4
4
  import { ScheduleInternalApi } from '../Internal/ScheduleInternalApi';
5
5
  export class ScheduleApiImpl extends ApiBase {
6
- constructor(adaptable) {
7
- super(adaptable);
8
- this.internalApi = new ScheduleInternalApi(adaptable);
6
+ constructor(_adaptable) {
7
+ super(_adaptable);
8
+ this.internalApi = new ScheduleInternalApi(_adaptable);
9
9
  }
10
10
  getScheduleState() {
11
11
  return this.getAdaptableState().Schedule;
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
3
3
  export class SettingsPanelApiImpl extends ApiBase {
4
4
  openSettingsPanel(moduleName) {
5
- const moduleInfo = this.adaptable.ModuleService.getModuleInfoByModule(moduleName);
5
+ const moduleInfo = this.getAdaptableInternalApi().getModuleService().getModuleInfoByModule(moduleName);
6
6
  if (!moduleInfo) {
7
7
  this.logError(`${moduleName} module does not exist`);
8
8
  return;
@@ -5,7 +5,7 @@ export class StatusBarApiImpl extends ApiBase {
5
5
  return getStatusPanelsSelector(this.getAdaptableState());
6
6
  }
7
7
  getAgGridStatusPanels() {
8
- return this.adaptable.getAgGridStatusPanels();
8
+ return this._adaptable.getAgGridStatusPanels();
9
9
  }
10
10
  setStatusBarPanels(statusPanels) {
11
11
  this.dispatchAction(StatusBarSetPanels(statusPanels));
@@ -6,7 +6,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
6
6
  import { StyledColumnInternalApi } from '../Internal/StyledColumnInternalApi';
7
7
  export declare class StyledColumnApiImpl extends ApiBase implements StyledColumnApi {
8
8
  internalApi: StyledColumnInternalApi;
9
- constructor(adaptable: IAdaptable);
9
+ constructor(_adaptable: IAdaptable);
10
10
  getStyledColumnState(): StyledColumnState;
11
11
  getStyledColumns(config?: {
12
12
  includeLayoutNotAssociatedObjects?: boolean;
@@ -3,9 +3,9 @@ import * as StyledColumnRedux from '../../Redux/ActionsReducers/StyledColumnRedu
3
3
  import { StyledColumnInternalApi } from '../Internal/StyledColumnInternalApi';
4
4
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
5
5
  export class StyledColumnApiImpl extends ApiBase {
6
- constructor(adaptable) {
7
- super(adaptable);
8
- this.internalApi = new StyledColumnInternalApi(adaptable);
6
+ constructor(_adaptable) {
7
+ super(_adaptable);
8
+ this.internalApi = new StyledColumnInternalApi(_adaptable);
9
9
  }
10
10
  getStyledColumnState() {
11
11
  return this.getAdaptableState().StyledColumn;
@@ -55,7 +55,7 @@ export class StyledColumnApiImpl extends ApiBase {
55
55
  return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.GradientStyle && styledColumn.ColumnId === columnId);
56
56
  }
57
57
  canDisplaySparklines() {
58
- return this.adaptable.canDisplaySparklines();
58
+ return this._adaptable.canDisplaySparklines();
59
59
  }
60
60
  suspendStyledColumn(styledColumn) {
61
61
  this.dispatchAction(StyledColumnRedux.StyledColumnSuspend(styledColumn));
@@ -7,7 +7,7 @@ import { SystemStatusInternalApi } from '../Internal/SystemStatusInternalApi';
7
7
  export declare class SystemStatusApiImpl extends ApiBase implements SystemStatusApi {
8
8
  private systemStatusDiv;
9
9
  internalApi: SystemStatusInternalApi;
10
- constructor(adaptable: IAdaptable);
10
+ constructor(_adaptable: IAdaptable);
11
11
  setSystemStatus(statusMessage: string, messageType: AdaptableMessageType, statusFurtherInformation?: string): void;
12
12
  private displayMessageInDiv;
13
13
  setErrorSystemStatus(statusMessage: string, statusFurtherInformation?: string): void;
@@ -8,9 +8,9 @@ import UIHelper from '../../View/UIHelper';
8
8
  import StringExtensions from '../../Utilities/Extensions/StringExtensions';
9
9
  import { SystemStatusInternalApi } from '../Internal/SystemStatusInternalApi';
10
10
  export class SystemStatusApiImpl extends ApiBase {
11
- constructor(adaptable) {
12
- super(adaptable);
13
- this.internalApi = new SystemStatusInternalApi(adaptable);
11
+ constructor(_adaptable) {
12
+ super(_adaptable);
13
+ this.internalApi = new SystemStatusInternalApi(_adaptable);
14
14
  }
15
15
  setSystemStatus(statusMessage, messageType, statusFurtherInformation) {
16
16
  let systemStatusMessageInfo = ObjectFactory.CreateSystemStatusMessageInfo(statusMessage, messageType, statusFurtherInformation ? statusFurtherInformation : '');
@@ -56,7 +56,7 @@ export class SystemStatusApiImpl extends ApiBase {
56
56
  statusMessage += statusFurtherInformation;
57
57
  }
58
58
  const foreColor = messageType ? UIHelper.getColorByMessageType(messageType) : 'black';
59
- this.adaptable.renderReactRoot(createElement('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
59
+ this._adaptable.renderReactRoot(createElement('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
60
60
  }
61
61
  }
62
62
  setErrorSystemStatus(statusMessage, statusFurtherInformation) {
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
5
5
  import { TeamSharingInternalApi } from '../Internal/TeamSharingInternalApi';
6
6
  export declare class TeamSharingApiImpl extends ApiBase implements TeamSharingApi {
7
7
  internalApi: TeamSharingInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  loadSharedEntities(): Promise<SharedEntity[]>;
10
10
  persistSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
11
11
  isTeamSharingAvailable(): boolean;
@@ -5,17 +5,17 @@ import { TeamSharingCheckForUpdates } from '../../Redux/ActionsReducers/TeamShar
5
5
  import { TeamSharingInternalApi } from '../Internal/TeamSharingInternalApi';
6
6
  import { isAdaptableSharedEntity, isCustomSharedEntity, } from '../../PredefinedConfig/TeamSharingState';
7
7
  export class TeamSharingApiImpl extends ApiBase {
8
- constructor(adaptable) {
9
- super(adaptable);
10
- this.internalApi = new TeamSharingInternalApi(adaptable);
8
+ constructor(_adaptable) {
9
+ super(_adaptable);
10
+ this.internalApi = new TeamSharingInternalApi(_adaptable);
11
11
  }
12
12
  async loadSharedEntities() {
13
13
  if (!this.isTeamSharingAvailable()) {
14
14
  this.logWarn('Team Sharing is not Activated so Entities cannot be loaded');
15
15
  return [];
16
16
  }
17
- const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
18
- const sharedEntitiesContext = this.getAdaptableApi().internalApi.buildBaseContext();
17
+ const teamSharingOptions = this.getTeamSharingOptions();
18
+ const sharedEntitiesContext = this.getAdaptableInternalApi().buildBaseContext();
19
19
  let loadedSharedEntities = await teamSharingOptions.loadSharedEntities(sharedEntitiesContext);
20
20
  // with v15 we introduced 2 types of SharedEntity: AdaptableSharedEntity (basically the old one) and the new CustomSharedEntity
21
21
  // for backwards compatibility, we add default the 'EntityType' property to 'adaptableEntity'
@@ -35,8 +35,8 @@ export class TeamSharingApiImpl extends ApiBase {
35
35
  this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
36
36
  return false;
37
37
  }
38
- const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
39
- const sharedEntitiesContext = this.getAdaptableApi().internalApi.buildBaseContext();
38
+ const teamSharingOptions = this.getTeamSharingOptions();
39
+ const sharedEntitiesContext = this.getAdaptableInternalApi().buildBaseContext();
40
40
  const sharedEntitiesAfterCustomisation = teamSharingOptions.saveSharedEntities(sharedEntities, sharedEntitiesContext);
41
41
  await teamSharingOptions.persistSharedEntities(sharedEntitiesAfterCustomisation, sharedEntitiesContext);
42
42
  return true;
@@ -44,9 +44,9 @@ export class TeamSharingApiImpl extends ApiBase {
44
44
  isTeamSharingAvailable() {
45
45
  var _a, _b, _c;
46
46
  return (!this.getAdaptableApi().entitlementApi.isModuleHiddenEntitlement(ModuleConstants.TeamSharingModuleId) &&
47
- ((_a = this.adaptable.adaptableOptions.teamSharingOptions) === null || _a === void 0 ? void 0 : _a.enableTeamSharing) &&
48
- !!((_b = this.adaptable.adaptableOptions.teamSharingOptions) === null || _b === void 0 ? void 0 : _b.loadSharedEntities) &&
49
- !!((_c = this.adaptable.adaptableOptions.teamSharingOptions) === null || _c === void 0 ? void 0 : _c.persistSharedEntities));
47
+ ((_a = this.getTeamSharingOptions()) === null || _a === void 0 ? void 0 : _a.enableTeamSharing) &&
48
+ !!((_b = this.getTeamSharingOptions()) === null || _b === void 0 ? void 0 : _b.loadSharedEntities) &&
49
+ !!((_c = this.getTeamSharingOptions()) === null || _c === void 0 ? void 0 : _c.persistSharedEntities));
50
50
  }
51
51
  hasTeamSharingFullRights() {
52
52
  return this.getAdaptableApi().entitlementApi.isModuleFullEntitlement(ModuleConstants.TeamSharingModuleId);
@@ -88,7 +88,7 @@ export class TeamSharingApiImpl extends ApiBase {
88
88
  this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
89
89
  return;
90
90
  }
91
- customSharedEntityImportHandler(sharedEntity, this.getAdaptableApi().internalApi.buildBaseContext());
91
+ customSharedEntityImportHandler(sharedEntity, this.getAdaptableInternalApi().buildBaseContext());
92
92
  }
93
93
  }
94
94
  getTeamSharingState() {
@@ -5,7 +5,7 @@ import { ThemeInternalApi } from '../Internal/ThemeInternalApi';
5
5
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
6
6
  export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
7
7
  internalApi: ThemeInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getThemeState(): ThemeState;
10
10
  loadTheme(theme: string): void;
11
11
  loadLightTheme(): void;
@@ -5,9 +5,9 @@ import { StaticThemes } from '../../themes';
5
5
  import { ThemeInternalApi } from '../Internal/ThemeInternalApi';
6
6
  import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
7
7
  export class ThemeApiImpl extends ApiBase {
8
- constructor(adaptable) {
9
- super(adaptable);
10
- this.internalApi = new ThemeInternalApi(adaptable);
8
+ constructor(_adaptable) {
9
+ super(_adaptable);
10
+ this.internalApi = new ThemeInternalApi(_adaptable);
11
11
  }
12
12
  getThemeState() {
13
13
  return this.getAdaptableState().Theme;
@@ -56,8 +56,8 @@ export class ThemeApiImpl extends ApiBase {
56
56
  if (!currentTheme) {
57
57
  return;
58
58
  }
59
- this.adaptable.applyAdaptableTheme(currentTheme);
60
- let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { trigger: 'ThemeSelected', theme: currentTheme });
59
+ this._adaptable.applyAdaptableTheme(currentTheme);
60
+ let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeSelected', theme: currentTheme });
61
61
  this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
62
62
  }
63
63
  getUserThemes() {
@@ -74,15 +74,15 @@ export class ThemeApiImpl extends ApiBase {
74
74
  this.showModulePopup(ModuleConstants.ThemeModuleId);
75
75
  }
76
76
  getAgGridCurrentThemeName() {
77
- return this.adaptable.getAgGridCurrentThemeName();
77
+ return this._adaptable.getAgGridCurrentThemeName();
78
78
  }
79
79
  editTheme(theme) {
80
80
  this.dispatchAction(ThemeRedux.ThemeEdit(theme));
81
- let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { trigger: 'ThemeEdited', theme: theme });
81
+ let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeEdited', theme: theme });
82
82
  this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
83
83
  const currentTheme = this.getCurrentTheme();
84
84
  if (currentTheme === theme.Name) {
85
- this.adaptable.applyAdaptableTheme(theme);
85
+ this._adaptable.applyAdaptableTheme(theme);
86
86
  }
87
87
  }
88
88
  addUserTheme(theme) {
@@ -10,13 +10,13 @@ export class ToolPanelApiImpl extends ApiBase {
10
10
  this.showModulePopup(ModuleConstants.ToolPanelModuleId);
11
11
  }
12
12
  openAdapTableToolPanel() {
13
- const agGridApi = this.getAdaptableApi().agGridApi;
13
+ const agGridApi = this.getAgGridApi();
14
14
  if (agGridApi) {
15
15
  agGridApi.openToolPanel('adaptable');
16
16
  }
17
17
  }
18
18
  closeAdapTableToolPanel() {
19
- const agGridApi = this.getAdaptableApi().agGridApi;
19
+ const agGridApi = this.getAgGridApi();
20
20
  if (agGridApi) {
21
21
  agGridApi.closeToolPanel();
22
22
  }
@@ -10,7 +10,7 @@ import { ApiBase } from './ApiBase';
10
10
  export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
11
11
  internalApi: UserInterfaceInternalApi;
12
12
  private showProgressIndicatorTimeout;
13
- constructor(adaptable: IAdaptable);
13
+ constructor(_adaptable: IAdaptable);
14
14
  getColorPalette(): string[];
15
15
  getStyleClassNames(): string[] | undefined;
16
16
  getPermittedValuesItems(): PermittedValues[];
@@ -5,10 +5,10 @@ import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPop
5
5
  import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
6
6
  import { ApiBase } from './ApiBase';
7
7
  export class UserInterfaceApiImpl extends ApiBase {
8
- constructor(adaptable) {
9
- super(adaptable);
8
+ constructor(_adaptable) {
9
+ super(_adaptable);
10
10
  this.showProgressIndicatorTimeout = null;
11
- this.internalApi = new UserInterfaceInternalApi(adaptable);
11
+ this.internalApi = new UserInterfaceInternalApi(_adaptable);
12
12
  }
13
13
  getColorPalette() {
14
14
  let colorPalette = this.getUserInterfaceOptions().colorPalette;
@@ -75,7 +75,7 @@ export class UserInterfaceApiImpl extends ApiBase {
75
75
  // first do the function then get hardcoded items
76
76
  if (permittedValues != null && typeof permittedValues === 'function') {
77
77
  if (column) {
78
- const permittedValuesParams = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column });
78
+ const permittedValuesParams = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { column: column });
79
79
  return permittedValues(permittedValuesParams);
80
80
  }
81
81
  }
@@ -151,7 +151,7 @@ export class UserInterfaceApiImpl extends ApiBase {
151
151
  getAdaptableObjectTags() {
152
152
  const objectTags = this.getUserInterfaceOptions().objectTags;
153
153
  if (objectTags != null && typeof objectTags === 'function') {
154
- return objectTags(this.getAdaptableApi().internalApi.buildBaseContext());
154
+ return objectTags(this.getAdaptableInternalApi().buildBaseContext());
155
155
  }
156
156
  else {
157
157
  let arr = objectTags;
@@ -13,7 +13,7 @@ export class ActionRowInternalApi extends ApiBase {
13
13
  return this.getActionRowOptions().actionRowFormOptions;
14
14
  }
15
15
  get adaptableInstance() {
16
- return this.getAdaptableApi().internalApi.getAdaptableInstance();
16
+ return this.getAdaptableInternalApi().getAdaptableInstance();
17
17
  }
18
18
  buildActionRow(type, rowNode) {
19
19
  const formFields = this.buildActionRowFields(type, rowNode);
@@ -42,7 +42,7 @@ export class ActionRowInternalApi extends ApiBase {
42
42
  : this.actionRowFormOptions.formDescription;
43
43
  }
44
44
  buildFormParamContext(type, rowNode) {
45
- return Object.assign(Object.assign({ rowNode }, this.getAdaptableApi().internalApi.buildBaseContext()), { type: type });
45
+ return Object.assign(Object.assign({ rowNode }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
46
46
  }
47
47
  buildActionRowFields(actionRowType, rowNode) {
48
48
  const relevantColumns = this.getAdaptableApi()
@@ -58,7 +58,7 @@ export class ActionRowInternalApi extends ApiBase {
58
58
  showColumnInActionRowForm(adaptableColumn, actionRowType) {
59
59
  const showColumnFn = this.getActionRowOptions().actionRowFormOptions.showColumninActionRowForm;
60
60
  if (typeof showColumnFn === 'function') {
61
- return showColumnFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { adaptableColumn,
61
+ return showColumnFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn,
62
62
  actionRowType }));
63
63
  }
64
64
  return true;
@@ -87,7 +87,7 @@ export class ActionRowInternalApi extends ApiBase {
87
87
  // textOutput should not be saved, their values are set to display values
88
88
  // we need to filter out the textOutput fields and add the primaryKey
89
89
  const eventInfo = type === 'rowCreated'
90
- ? Object.assign(Object.assign({ type: 'rowCreated', formData: this.prepareCreateData(formFields, context) }, this.getAdaptableApi().internalApi.buildBaseContext()), { clonedRowNode: rowNode }) : Object.assign({ type: 'rowEdited', formData: this.prepareEditData(formFields, context), rowNode: rowNode }, this.getAdaptableApi().internalApi.buildBaseContext());
90
+ ? 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());
91
91
  this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
92
92
  (_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
93
93
  },
@@ -112,7 +112,7 @@ export class ActionRowInternalApi extends ApiBase {
112
112
  delete dataToSave[formField.name];
113
113
  }
114
114
  }
115
- const pkValue = this.adaptable.getPrimaryKeyValueFromRowNode(context.rowNode);
115
+ const pkValue = this._adaptable.getPrimaryKeyValueFromRowNode(context.rowNode);
116
116
  dataToSave[this.getOptions().primaryKey] = pkValue;
117
117
  return dataToSave;
118
118
  }
@@ -152,7 +152,7 @@ export class ActionRowInternalApi extends ApiBase {
152
152
  }
153
153
  buildFormFieldLabelContext(type, column, rowNode) {
154
154
  return Object.assign(Object.assign({ rowNode,
155
- column }, this.getAdaptableApi().internalApi.buildBaseContext()), { type: type });
155
+ column }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
156
156
  }
157
157
  getFieldTypeFromColumnType(column) {
158
158
  switch (column.dataType) {
@@ -255,7 +255,7 @@ export class ActionRowInternalApi extends ApiBase {
255
255
  tooltip: 'Delete',
256
256
  onClick: (button, context) => {
257
257
  var _a, _b;
258
- const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.getAdaptableApi().internalApi.buildBaseContext());
258
+ const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.getAdaptableInternalApi().buildBaseContext());
259
259
  this.getEventApi().emit('ActionRowSubmitted', eventInfo);
260
260
  (_b = (_a = this.getActionRowOptions().actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
261
261
  },
@@ -269,7 +269,7 @@ export class ActionRowInternalApi extends ApiBase {
269
269
  // should NOT happen unless the user sent some invalid button type in the predefined config
270
270
  return;
271
271
  }
272
- 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 }));
272
+ const customButtonConfig = (_b = (_a = this.getActionRowOptions().actionRowButtonOptions).customConfiguration) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { actionRowButtonType }));
273
273
  if (!customButtonConfig) {
274
274
  return defaultButtonConfig;
275
275
  }
@@ -27,6 +27,7 @@ import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
27
27
  import { CellPopupService } from '../../Utilities/Services/CellPopupService';
28
28
  import { RowEditService } from '../../Utilities/Services/RowEditService';
29
29
  import { FlashingCellService } from '../../Utilities/Services/FlashingCellService';
30
+ import { AgGridAdapter } from '../../agGrid/AgGridAdapter';
30
31
  export declare class AdaptableInternalApi extends ApiBase {
31
32
  getSystemState(): SystemState;
32
33
  getAdaptableJSXElement(): JSX.Element;
@@ -52,6 +53,7 @@ export declare class AdaptableInternalApi extends ApiBase {
52
53
  getToolbarTitle(): string;
53
54
  buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
54
55
  getAdaptableInstance(): IAdaptable;
56
+ getAgGridAdapter(): AgGridAdapter;
55
57
  getPredefinedConfig(): any;
56
58
  getState(): AdaptableState;
57
59
  getValidationService(): IValidationService;