@adaptabletools/adaptable-cjs 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.cjs.tsbuildinfo +1 -1
@@ -21,7 +21,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
21
21
  getSystemFilterPredicateIds(scope) {
22
22
  const systemFilterPredicates = this.getPredicateOptions().systemFilterPredicates;
23
23
  if (typeof systemFilterPredicates === 'function') {
24
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
24
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
25
25
  return systemFilterPredicates(systemPredicateContext);
26
26
  }
27
27
  return systemFilterPredicates;
@@ -36,7 +36,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
36
36
  getSystemAlertPredicateIds(scope) {
37
37
  const systemAlertPredicates = this.getPredicateOptions().systemAlertPredicates;
38
38
  if (typeof systemAlertPredicates === 'function') {
39
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
39
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
40
40
  return systemAlertPredicates(systemPredicateContext);
41
41
  }
42
42
  return systemAlertPredicates;
@@ -44,7 +44,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
44
44
  getSystemBadgeStylePredicateIds(scope) {
45
45
  const systemBadgeStylePredicates = this.getPredicateOptions().systemBadgeStylePredicates;
46
46
  if (typeof systemBadgeStylePredicates === 'function') {
47
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
47
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
48
48
  return systemBadgeStylePredicates(systemPredicateContext);
49
49
  }
50
50
  return systemBadgeStylePredicates;
@@ -59,7 +59,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
59
59
  getSystemFormatColumnPredicateIds(scope) {
60
60
  const systemFormatColumnPredicates = this.getPredicateOptions().systemFormatColumnPredicates;
61
61
  if (typeof systemFormatColumnPredicates === 'function') {
62
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
62
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
63
63
  return systemFormatColumnPredicates(systemPredicateContext);
64
64
  }
65
65
  return systemFormatColumnPredicates;
@@ -74,7 +74,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
74
74
  getSystemFlashingCellPredicateIds(scope) {
75
75
  const systemFlashingCellPredicates = this.getPredicateOptions().systemFlashingCellPredicates;
76
76
  if (typeof systemFlashingCellPredicates === 'function') {
77
- const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableApi().internalApi.buildBaseContext());
77
+ const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableInternalApi().buildBaseContext());
78
78
  return systemFlashingCellPredicates(systemPredicateContext);
79
79
  }
80
80
  return systemFlashingCellPredicates;
@@ -8,7 +8,7 @@ class ScheduleInternalApi extends ApiBase_1.ApiBase {
8
8
  */
9
9
  fireScheduleTriggeredEvent(schedule) {
10
10
  const adaptableApi = this.getAdaptableApi();
11
- const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { schedule: schedule });
11
+ const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { schedule: schedule });
12
12
  adaptableApi.eventApi.emit('ScheduleTriggered', scheduleTriggeredInfo);
13
13
  }
14
14
  }
@@ -9,13 +9,13 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
9
9
  if (column.dataType !== 'Number') {
10
10
  return undefined;
11
11
  }
12
- return this.adaptable.getMinMaxCachedValueForColumn(column, 'min');
12
+ return this._adaptable.getMinMaxCachedValueForColumn(column, 'min');
13
13
  }
14
14
  getMaxValueForNumericColumn(column) {
15
15
  if (column.dataType !== 'Number') {
16
16
  return undefined;
17
17
  }
18
- return this.adaptable.getMinMaxCachedValueForColumn(column, 'max');
18
+ return this._adaptable.getMinMaxCachedValueForColumn(column, 'max');
19
19
  }
20
20
  /**
21
21
  * Gets the Minimum Value to display for a Styled Column
@@ -10,7 +10,7 @@ class SystemStatusInternalApi extends ApiBase_1.ApiBase {
10
10
  * @param systemStatusMessageInfo Info about new System Status Message
11
11
  */
12
12
  fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
13
- const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableApi().internalApi.buildBaseContext());
13
+ const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableInternalApi().buildBaseContext());
14
14
  this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
15
15
  }
16
16
  addSystemStatusMessageInfo(systemStatusMessageInfo) {
@@ -8,8 +8,8 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
8
8
  * @param sharedEntity Entity that has been changed
9
9
  */
10
10
  fireTeamSharingEntityChangedEvent(sharedEntity) {
11
- if (this.adaptable.isReady) {
12
- const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { sharedEntity: sharedEntity });
11
+ if (this.isAdapTableReady()) {
12
+ const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { sharedEntity: sharedEntity });
13
13
  this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
14
14
  }
15
15
  }
@@ -13,7 +13,7 @@ class ThemeInternalApi extends ApiBase_1.ApiBase {
13
13
  return `ab--theme-${theme}`;
14
14
  }
15
15
  openInWindow() {
16
- this.getAdaptableApi().internalApi.showPopupWindow({
16
+ this.getAdaptableInternalApi().showPopupWindow({
17
17
  id: windowFactory_1.SHOW_THEME_EDITOR,
18
18
  title: 'Theme',
19
19
  icon: 'theme',
@@ -3,10 +3,25 @@ import { AdaptableModule, AdaptableObject, Layout } from '../../types';
3
3
  * Defines an Extended Layout - provides a Layout and all objects that refer to it
4
4
  */
5
5
  export interface ExtendedLayoutInfo {
6
+ /**
7
+ * Layout being extended
8
+ */
6
9
  Layout: Layout;
10
+ /**
11
+ * Object to be included in the Layout
12
+ */
7
13
  Extensions: LayoutExtension[];
8
14
  }
15
+ /**
16
+ * Defines an object being extended in a Layout
17
+ */
9
18
  export interface LayoutExtension {
19
+ /**
20
+ * Module to which Extended Object belongs
21
+ */
10
22
  Module: AdaptableModule;
23
+ /**
24
+ * Object being Extended
25
+ */
11
26
  Object: AdaptableObject;
12
27
  }
@@ -11,4 +11,7 @@ export interface FilterActionOnDataChange {
11
11
  */
12
12
  throttleDelay?: number;
13
13
  }
14
+ /**
15
+ * When to apply a Filter: 'Always', 'Never' or 'Throttle'
16
+ */
14
17
  export type ApplyFilterAction = 'Always' | 'Never' | 'Throttle';
@@ -3,7 +3,6 @@ import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
3
3
  import { AdaptableModuleBase } from './AdaptableModuleBase';
4
4
  import { IModule } from './Interface/IModule';
5
5
  export declare class NoteModule extends AdaptableModuleBase implements IModule {
6
- private adaptable;
7
6
  constructor(api: AdaptableApi);
8
7
  isModuleAvailable(): boolean;
9
8
  createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemDoClickFunction<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
@@ -8,7 +8,6 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
8
8
  class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
9
  constructor(api) {
10
10
  super(ModuleConstants.NoteModuleId, ModuleConstants.NoteFriendlyName, 'note', 'NotePopup', 'Notes', api);
11
- this.adaptable = api.internalApi.getAdaptableInstance();
12
11
  }
13
12
  isModuleAvailable() {
14
13
  // Note module doesn't support autogenerated primary keys
@@ -25,17 +24,17 @@ class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
25
24
  if (menuContext.isRowGroupColumn || menuContext.isGroupedNode) {
26
25
  return;
27
26
  }
28
- const isReadOnly = this.adaptable.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName) === 'ReadOnly';
27
+ const isReadOnly = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName) === 'ReadOnly';
29
28
  if (isReadOnly) {
30
29
  return undefined;
31
30
  }
32
- const isCellNotable = typeof ((_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions()) === null || _b === void 0 ? void 0 : _b.isCellNotable) === 'function'
33
- ? this.adaptable.api.optionsApi.getNoteOptions().isCellNotable(Object.assign({ gridCell: menuContext.gridCell }, (0, ObjectFactory_1.createBaseContext)(this.api)))
31
+ const isCellNotable = typeof ((_b = (_a = this.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions()) === null || _b === void 0 ? void 0 : _b.isCellNotable) === 'function'
32
+ ? this.api.optionsApi.getNoteOptions().isCellNotable(Object.assign({ gridCell: menuContext.gridCell }, (0, ObjectFactory_1.createBaseContext)(this.api)))
34
33
  : true;
35
34
  if (!isCellNotable) {
36
35
  return;
37
36
  }
38
- const note = this.adaptable.api.noteApi.getNoteForCell({
37
+ const note = this.api.noteApi.getNoteForCell({
39
38
  PrimaryKeyValue: menuContext.primaryKeyValue,
40
39
  ColumnId: menuContext.adaptableColumn.columnId,
41
40
  });
@@ -245,7 +245,7 @@ exports.scalarExpressionFunctions = {
245
245
  // expression is syntactically valid, but operates with incompatible values
246
246
  return;
247
247
  }
248
- return sanitizedArguments.reduce((a, b) => a + b) / args.length;
248
+ return sanitizedArguments.reduce((a, b) => a + b) / sanitizedArguments.length;
249
249
  },
250
250
  description: 'Returns the average of inputted numbers',
251
251
  signatures: ['AVG(number, number, ...number)'],
@@ -42,7 +42,7 @@ class AggregatedScalarLiveValue {
42
42
  const aggregationValue = this.getAggregationValue(rowNode);
43
43
  if (aggregationValue == undefined) {
44
44
  logOnce(`${this.aggregatedScalarExpression} :: aggregation value is NOT available!`, (message) => {
45
- this.adaptableApi.internalApi.getAdaptableInstance().logger.warn(message);
45
+ this.adaptableApi.logWarn(message);
46
46
  });
47
47
  return;
48
48
  }
@@ -78,8 +78,8 @@ class CellPopupService {
78
78
  this.hidePopup();
79
79
  return;
80
80
  }
81
- const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellPosition);
82
- const cellComments = this.adaptable.api.commentApi.getCommentThread(cellPosition);
81
+ const cellNote = this.api.noteApi.getNoteForCell(cellPosition);
82
+ const cellComments = this.api.commentApi.getCommentThread(cellPosition);
83
83
  const hasNotesOrComments = cellNote || cellComments;
84
84
  // call only if it is different
85
85
  if (CellPopupService.isSameAddress(openCellAddress, cellPosition)) {
@@ -96,8 +96,8 @@ class CellPopupService {
96
96
  return;
97
97
  }
98
98
  // if open but this has no note, close
99
- const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellAddress);
100
- const cellComments = this.adaptable.api.commentApi.getCommentThread(cellAddress);
99
+ const cellNote = this.api.noteApi.getNoteForCell(cellAddress);
100
+ const cellComments = this.api.commentApi.getCommentThread(cellAddress);
101
101
  const hasNotesOrComments = cellNote || cellComments;
102
102
  if (openCellAddress && !hasNotesOrComments) {
103
103
  // hide only if in edit mode
@@ -125,9 +125,7 @@ class Fdc3Service {
125
125
  if (!this.getFdc3Options().enableLogging) {
126
126
  return;
127
127
  }
128
- this.adaptableApi.internalApi
129
- .getAdaptableInstance()
130
- .logger.consoleLog(`FDC3::${type} - `, params.join(' : '));
128
+ this.adaptableApi.consoleLog(`FDC3::${type} - `, params.join(' : '));
131
129
  }
132
130
  logFdc3Error(error) {
133
131
  this.adaptableApi.consoleError(`FDC3 error`, error);
@@ -1,4 +1,3 @@
1
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
2
1
  import { AdaptableApi, AdaptableFlashingCell } from '../../types';
3
2
  import { TypeUuid } from '../../PredefinedConfig/Uuid';
4
3
  import { IAdaptableService } from './Interface/IAdaptableService';
@@ -8,7 +7,6 @@ export declare const FLASHING_CELL_ROW_KEY = "__ROW";
8
7
  */
9
8
  export declare class FlashingCellService implements IAdaptableService {
10
9
  private api;
11
- adaptable: IAdaptable;
12
10
  gridCellsCurrentlyFlashing: Record<string, Record<string, TypeUuid>>;
13
11
  flashingCellsMapping: Record<TypeUuid, AdaptableFlashingCell>;
14
12
  constructor(api: AdaptableApi);
@@ -8,7 +8,6 @@ exports.FLASHING_CELL_ROW_KEY = '__ROW';
8
8
  class FlashingCellService {
9
9
  constructor(api) {
10
10
  this.api = api;
11
- this.adaptable = api.internalApi.getAdaptableInstance();
12
11
  this.gridCellsCurrentlyFlashing = {};
13
12
  this.flashingCellsMapping = {};
14
13
  }
@@ -53,7 +52,7 @@ class FlashingCellService {
53
52
  clearAllGridCellFlashes() {
54
53
  this.gridCellsCurrentlyFlashing = {};
55
54
  this.flashingCellsMapping = {};
56
- this.adaptable.refreshAllCells(true);
55
+ this.api.gridApi.refreshAllCells(true);
57
56
  }
58
57
  isAnyFlashingCellActive() {
59
58
  return Object.keys(this.gridCellsCurrentlyFlashing).length > 0;
@@ -63,7 +62,7 @@ class FlashingCellService {
63
62
  if (!cellDataChangedInfo) {
64
63
  return;
65
64
  }
66
- this.adaptable.refreshCells([cellDataChangedInfo.rowNode], Object.keys(flashingCell.flashColumnIds), true);
65
+ this.api.gridApi.refreshCells([cellDataChangedInfo.rowNode], Object.keys(flashingCell.flashColumnIds), true);
67
66
  }
68
67
  }
69
68
  exports.FlashingCellService = FlashingCellService;
@@ -4,9 +4,8 @@ exports.RowEditService = void 0;
4
4
  class RowEditService {
5
5
  constructor(adaptableApi) {
6
6
  this.adaptableApi = adaptableApi;
7
- const adaptableInstance = this.adaptableApi.internalApi.getAdaptableInstance();
8
- if (adaptableInstance.adaptableOptions.actionRowOptions.autoHandle) {
9
- adaptableInstance.api.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
7
+ if (adaptableApi.optionsApi.getActionRowOptions().autoHandle) {
8
+ adaptableApi.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
10
9
  }
11
10
  }
12
11
  autoHandleActionRowButtons(actionRowSubmittedInfo) {
@@ -23,8 +22,7 @@ class RowEditService {
23
22
  }
24
23
  if (actionRowSubmittedInfo.type === 'rowCreated') {
25
24
  const { formData } = actionRowSubmittedInfo;
26
- const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.actionRowOptions
27
- .setPrimaryKeyValue;
25
+ const setPrimaryKeyValueFunction = adaptableApi.optionsApi.getActionRowOptions().setPrimaryKeyValue;
28
26
  const newRowData = typeof setPrimaryKeyValueFunction === 'function'
29
27
  ? setPrimaryKeyValueFunction(Object.assign({ rowData: formData }, adaptableApi.internalApi.buildBaseContext()))
30
28
  : Object.assign({}, formData);
@@ -11,16 +11,16 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
11
11
  const ActiveAlertsPanel_1 = require("./ActiveAlertsPanel");
12
12
  const initialStyle = { color: '', background: '' };
13
13
  const AlertStatusPanel = () => {
14
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
14
+ const adaptableApi = (0, AdaptableContext_1.useAdaptable)().api;
15
15
  const [style, setStyle] = React.useState(initialStyle);
16
- const module = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
17
- const statusbarHighlightDuration = adaptable.adaptableOptions.alertOptions.statusbarHighlightDuration;
16
+ const module = adaptableApi.internalApi.getModuleService().getModuleById(ModuleConstants.AlertModuleId);
17
+ const statusbarHighlightDuration = adaptableApi.optionsApi.getAlertOptions().statusbarHighlightDuration;
18
18
  /**
19
19
  * Using a selector to so the component updates each time an alert is triggered.
20
20
  */
21
21
  const alerts = (0, react_redux_1.useSelector)((state) => state.System.AdaptableAlerts);
22
22
  const text = alerts.length == 0 ? '0 Alerts' : alerts.length == 1 ? '1 Alert' : alerts.length + ' Alerts';
23
- const handleAction = React.useCallback(() => adaptable.api.alertApi.openAlertSettingsPanel(), []);
23
+ const handleAction = React.useCallback(() => adaptableApi.alertApi.openAlertSettingsPanel(), []);
24
24
  // blinking logic
25
25
  const previousAlerts = React.useRef(alerts);
26
26
  const timeoutId = React.useRef();
@@ -25,13 +25,13 @@ const BaseShowChartButton = (props) => {
25
25
  React.createElement(SimpleButton_1.default, { variant: "raised", tone: "success" }, "Open")));
26
26
  };
27
27
  const ShowAgChartButton = (props) => {
28
- var _a, _b;
29
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
30
- const chartingOptions = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.chartingOptions;
28
+ var _a;
29
+ const adaptableApi = (0, AdaptableContext_1.useAdaptable)().api;
30
+ const chartingOptions = adaptableApi.optionsApi.getChartingOptions();
31
31
  const chartContainers = chartingOptions === null || chartingOptions === void 0 ? void 0 : chartingOptions.chartContainers;
32
32
  const { isOpen, showChart, closeChart } = (0, useAgChartState_1.useAgChartState)(props.chartDefinition);
33
33
  const containerOptions = [
34
- Object.assign({ label: (_b = chartingOptions.agGridContainerName) !== null && _b !== void 0 ? _b : GeneralConstants_1.AG_GRID_CHART_WINDOW, onClick: () => {
34
+ Object.assign({ label: (_a = chartingOptions.agGridContainerName) !== null && _a !== void 0 ? _a : GeneralConstants_1.AG_GRID_CHART_WINDOW, onClick: () => {
35
35
  showChart(null);
36
36
  } }, (chartContainers
37
37
  ? chartContainers === null || chartContainers === void 0 ? void 0 : chartContainers.map((contianerDef) => ({
@@ -10,9 +10,9 @@ const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
10
10
  const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
11
11
  const CommentsRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CommentsRedux"));
12
12
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
13
- const dateUtils_1 = require("../../Utilities/ExpressionFunctions/dateUtils");
14
13
  const AdaptableContext_1 = require("../AdaptableContext");
15
14
  const AdaptableInput_1 = tslib_1.__importDefault(require("../Components/AdaptableInput"));
15
+ const format_1 = tslib_1.__importDefault(require("date-fns/format"));
16
16
  // Edit Mode
17
17
  // [author] [edit, delete]
18
18
  // [text-editor] * this is different
@@ -82,7 +82,7 @@ const CommentsEditor = (props) => {
82
82
  React.createElement(rebass_1.Flex, { mb: 2, alignItems: "center" },
83
83
  React.createElement(rebass_1.Box, null,
84
84
  React.createElement(rebass_1.Box, { "data-name": "comment-username", fontSize: 3, fontWeight: "bold" }, (_d = comment === null || comment === void 0 ? void 0 : comment.Author) === null || _d === void 0 ? void 0 : _d.UserName),
85
- comment.Timestamp && (React.createElement(rebass_1.Box, { "data-name": "comment-timestamp", fontSize: 2 }, (0, dateUtils_1.formatDate)(comment.Timestamp, 'MM.DD.YYYY HH:mm')))),
85
+ comment.Timestamp && (React.createElement(rebass_1.Box, { "data-name": "comment-timestamp", fontSize: 2 }, (0, format_1.default)(comment.Timestamp, adaptable.api.commentApi.internalApi.getCommentsDateFormat())))),
86
86
  React.createElement(rebass_1.Box, { flex: 1 }),
87
87
  React.createElement(SimpleButton_1.default, { variant: "text", icon: "edit", disabled: !isOwnComment || isReadOnlyModule, onClick: () => setActiveEditingComment(comment.Uuid) }),
88
88
  React.createElement(SimpleButton_1.default, { variant: "text", icon: "delete", disabled: !isOwnComment || isReadOnlyModule, onClick: () => {
@@ -11,7 +11,6 @@ const format_1 = tslib_1.__importDefault(require("date-fns/format"));
11
11
  const AdaptableContext_1 = require("../AdaptableContext");
12
12
  const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
13
13
  const AdaptableButton_1 = require("../Components/AdaptableButton");
14
- const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
15
14
  const tableDOMProps = {
16
15
  style: {
17
16
  minHeight: 160,
@@ -19,9 +18,7 @@ const tableDOMProps = {
19
18
  },
20
19
  };
21
20
  const CellComments = (props) => {
22
- var _a;
23
21
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
24
- const dateFormat = (_a = adaptable.api.optionsApi.getCommentOptions().dateFormat) !== null && _a !== void 0 ? _a : GeneralConstants_1.DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME;
25
22
  const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Comment') === 'ReadOnly';
26
23
  const columnsMap = React.useMemo(() => {
27
24
  const columns = {
@@ -34,7 +31,7 @@ const CellComments = (props) => {
34
31
  field: 'Timestamp',
35
32
  maxWidth: 150,
36
33
  valueGetter: (params) => {
37
- return (0, format_1.default)(params.data.Timestamp, dateFormat);
34
+ return (0, format_1.default)(params.data.Timestamp, adaptable.api.commentApi.internalApi.getCommentsDateFormat());
38
35
  },
39
36
  },
40
37
  text: {
@@ -35,7 +35,7 @@ const DataChangeHistoryGrid = (props) => {
35
35
  return () => {
36
36
  requestAnimationFrame(() => {
37
37
  var _a;
38
- (_a = adaptableApiRef.current) === null || _a === void 0 ? void 0 : _a.internalApi.getAdaptableInstance().destroy({ unmount: true, destroyApi: true });
38
+ (_a = adaptableApiRef.current) === null || _a === void 0 ? void 0 : _a.internalApi.getAdaptableInstance().destroy({ unmount: true, destroyAgGrid: true });
39
39
  });
40
40
  };
41
41
  }, []);
@@ -15,8 +15,9 @@ const ValidationSection_1 = require("./sections/ValidationSection");
15
15
  const DataImportWizard = (props) => {
16
16
  var _a;
17
17
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
18
- const dataImportOptions = adaptable.api.optionsApi.getDataImportOptions();
19
- const module = adaptable.ModuleService.getModuleById('DataImport');
18
+ const adaptableApi = adaptable.api;
19
+ const dataImportOptions = adaptableApi.optionsApi.getDataImportOptions();
20
+ const module = adaptableApi.internalApi.getModuleService().getModuleById('DataImport');
20
21
  const [rowData, setRowData] = React.useState(null);
21
22
  const [file, setFile] = React.useState(null);
22
23
  const [text, setText] = React.useState('');
@@ -24,17 +25,17 @@ const DataImportWizard = (props) => {
24
25
  // - columnsMap changes
25
26
  // - new data is loaded
26
27
  const [importType, setImportType] = React.useState('file');
27
- const primaryKey = adaptable.api.optionsApi.getPrimaryKey();
28
+ const primaryKey = adaptableApi.optionsApi.getPrimaryKey();
28
29
  const hasDynamicallyAddedPrimaryKey = typeof dataImportOptions._getPrimaryKeyValue === 'function';
29
30
  const getPrimaryKeyValue = (rowData) => {
30
31
  if (hasDynamicallyAddedPrimaryKey) {
31
- return dataImportOptions._getPrimaryKeyValue(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptable.api)), { rowData }));
32
+ return dataImportOptions._getPrimaryKeyValue(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptableApi)), { rowData }));
32
33
  }
33
34
  return rowData[primaryKey];
34
35
  };
35
36
  const preprocessRowData = (rowData) => {
36
37
  if (typeof (dataImportOptions === null || dataImportOptions === void 0 ? void 0 : dataImportOptions._preprocessRowData) === 'function') {
37
- return dataImportOptions._preprocessRowData(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptable.api)), { rowData }));
38
+ return dataImportOptions._preprocessRowData(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptableApi)), { rowData }));
38
39
  }
39
40
  // by default just trim the keys
40
41
  let processedRowData = {};
@@ -79,7 +80,7 @@ const DataImportWizard = (props) => {
79
80
  fields.add(field);
80
81
  });
81
82
  });
82
- const allAbColumns = adaptable.api.columnApi.getColumns();
83
+ const allAbColumns = adaptableApi.columnApi.getColumns();
83
84
  const columnsMap = Array.from(fields).map((field) => {
84
85
  const abColumn = allAbColumns.find((c) => {
85
86
  // exact field match
@@ -132,7 +133,7 @@ const DataImportWizard = (props) => {
132
133
  // ---- FILE HANDLERS ----
133
134
  const fileHandlers = React.useMemo(() => {
134
135
  var _a, _b;
135
- const userDefinedHandlers = (_b = (_a = adaptable.api.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
136
+ const userDefinedHandlers = (_b = (_a = adaptableApi.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
136
137
  return [...userDefinedHandlers, ...systemFileHandlers_1.systemFileHandlers];
137
138
  }, []);
138
139
  const supportedFileFormats = React.useMemo(() => {
@@ -140,11 +141,11 @@ const DataImportWizard = (props) => {
140
141
  }, [fileHandlers]);
141
142
  const readFile = React.useCallback(async (file) => {
142
143
  var _a, _b;
143
- const userDefinedFileHandlers = (_b = (_a = adaptable.api.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
144
+ const userDefinedFileHandlers = (_b = (_a = adaptableApi.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
144
145
  const fileExtension = `.${file.name.split('.').pop()}`;
145
146
  const handler = [...userDefinedFileHandlers, ...systemFileHandlers_1.systemFileHandlers].find((fh) => fh.fileExtension === fileExtension);
146
147
  if (!handler) {
147
- adaptable.api.logError(`No file handler found for file extension ${fileExtension}. Please provide a file handler in Data Import Options.`);
148
+ adaptableApi.logError(`No file handler found for file extension ${fileExtension}. Please provide a file handler in Data Import Options.`);
148
149
  return;
149
150
  }
150
151
  try {
@@ -154,7 +155,7 @@ const DataImportWizard = (props) => {
154
155
  return data;
155
156
  }
156
157
  catch (_c) {
157
- adaptable.api.logError(`Error reading file ${file.name}. Please check the file is valid.`);
158
+ adaptableApi.logError(`Error reading file ${file.name}. Please check the file is valid.`);
158
159
  }
159
160
  }, [adaptable]);
160
161
  const fileMessage = file ? (React.createElement(HelpBlock_1.default, { mb: 2 },
@@ -168,7 +169,7 @@ const DataImportWizard = (props) => {
168
169
  const handleTextChange = React.useCallback(async (text) => {
169
170
  var _a;
170
171
  //
171
- let textHandler = (_a = adaptable.api.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.textHandler;
172
+ let textHandler = (_a = adaptableApi.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.textHandler;
172
173
  if (!textHandler) {
173
174
  // regex to test for json
174
175
  const jsonRegex = /^\s*[\[{]/;
@@ -212,7 +213,7 @@ const DataImportWizard = (props) => {
212
213
  return null;
213
214
  }
214
215
  return (_a = rowData === null || rowData === void 0 ? void 0 : rowData.reduce) === null || _a === void 0 ? void 0 : _a.call(rowData, (acc, rowData) => {
215
- const error = dataImportOptions.validate(Object.assign({ rowData }, (0, ObjectFactory_1.createBaseContext)(adaptable.api)));
216
+ const error = dataImportOptions.validate(Object.assign({ rowData }, (0, ObjectFactory_1.createBaseContext)(adaptableApi)));
216
217
  const primaryKeyValue = getPrimaryKeyValue(rowData);
217
218
  if (error && primaryKeyValue && error.length) {
218
219
  acc[primaryKeyValue] = error;
@@ -226,7 +227,7 @@ const DataImportWizard = (props) => {
226
227
  const rowErrors = errors[getPrimaryKeyValue(row)];
227
228
  return !rowErrors || rowErrors.length === 0;
228
229
  });
229
- adaptable.api.dataImportApi.internalApi.importData(validData);
230
+ adaptableApi.dataImportApi.internalApi.importData(validData);
230
231
  };
231
232
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { data: null, moduleInfo: module.moduleInfo, finishText: "Import", onFinish: () => {
232
233
  handleFinish();
@@ -25,7 +25,7 @@ const TransposedPopup = (props) => {
25
25
  const [syntheticTransposedByColumnId, doSetSyntheticTransposedByColumnId] = React.useState(transposedColumnId);
26
26
  const setSyntheticTransposedByColumnId = (syntheticTransposedByColumnId) => {
27
27
  var _a;
28
- (_a = transposedAdaptableApiRef.current) === null || _a === void 0 ? void 0 : _a.destroy({ unmount: true, destroyApi: true });
28
+ (_a = transposedAdaptableApiRef.current) === null || _a === void 0 ? void 0 : _a.destroy({ unmount: true, destroyAgGrid: true });
29
29
  doSetSyntheticTransposedByColumnId(syntheticTransposedByColumnId);
30
30
  };
31
31
  const transposedAdaptableApiRef = React.useRef(null);
@@ -185,7 +185,7 @@ const TransposedPopup = (props) => {
185
185
  return () => {
186
186
  requestAnimationFrame(() => {
187
187
  var _a;
188
- (_a = transposedAdaptableApiRef.current) === null || _a === void 0 ? void 0 : _a.destroy({ unmount: true, destroyApi: true });
188
+ (_a = transposedAdaptableApiRef.current) === null || _a === void 0 ? void 0 : _a.destroy({ unmount: true, destroyAgGrid: true });
189
189
  });
190
190
  };
191
191
  }, []);
@@ -10,7 +10,6 @@ const format_1 = tslib_1.__importDefault(require("date-fns/format"));
10
10
  const AdaptableContext_1 = require("../AdaptableContext");
11
11
  const AdaptableButton_1 = require("../Components/AdaptableButton");
12
12
  const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
13
- const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
14
13
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
15
14
  const tableDOMProps = {
16
15
  style: {
@@ -20,12 +19,10 @@ const tableDOMProps = {
20
19
  },
21
20
  };
22
21
  const NotePopup = (props) => {
23
- var _a, _b, _c, _d;
24
22
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
25
23
  const primaryKeyHeader = adaptable.api.columnApi.getPrimaryKeyColumn()
26
24
  ? adaptable.api.columnApi.getFriendlyNameForColumnId(adaptable.api.columnApi.getPrimaryKeyColumn().columnId)
27
25
  : StringExtensions_1.default.Humanize(adaptable.adaptableOptions.primaryKey);
28
- const dateFormat = (_d = (_c = (_b = (_a = adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.dateFormat) !== null && _d !== void 0 ? _d : GeneralConstants_1.DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME;
29
26
  const allNotes = (0, react_redux_1.useSelector)((state) => (0, NoteRedux_1.GetAllNotesSelector)(state.Note));
30
27
  const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Note') === 'ReadOnly';
31
28
  const columnsMap = React.useMemo(() => {
@@ -50,7 +47,7 @@ const NotePopup = (props) => {
50
47
  timestamp: {
51
48
  field: 'Timestamp',
52
49
  valueGetter: (params) => {
53
- return (0, format_1.default)(params.data.Timestamp, dateFormat);
50
+ return (0, format_1.default)(params.data.Timestamp, adaptable.api.noteApi.internalApi.getNotesDateFormat());
54
51
  },
55
52
  },
56
53
  delete: {
@@ -2,7 +2,7 @@
2
2
  import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
3
3
  import { ChartRef, Column, GridApi, GridOptions, IRowNode, Module, RowModelType } from '@ag-grid-community/core';
4
4
  import { AdaptableLogger } from './AdaptableLogger';
5
- import { AdaptableApi } from '../Api/AdaptableApi';
5
+ import { AdaptableApi, DestroyConfig } from '../Api/AdaptableApi';
6
6
  import { AdaptableVariant, DistinctColumnValuesParams, IAdaptable, NormalizeAdaptableStateOptions } from '../AdaptableInterfaces/IAdaptable';
7
7
  import { EmitterCallback } from '../Utilities/Emitter';
8
8
  import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
@@ -308,10 +308,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
308
308
  getAgGridColumnForColumnId(columnId: string): Column;
309
309
  getMinMaxCachedValueForColumn(column: AdaptableColumn, minMax: 'min' | 'max'): number;
310
310
  getAgGridRegisteredModules(): Module[];
311
- destroy(config?: {
312
- unmount: boolean;
313
- destroyApi?: boolean;
314
- }): void;
311
+ destroy(config?: DestroyConfig): void;
315
312
  canExportToExcel(): boolean;
316
313
  exportToExcel(reportData: ReportData, fileName: string): void;
317
314
  exportVisualDataToExcel(): void;