@adaptabletools/adaptable-cjs 22.0.0-canary.1 → 22.0.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/index.css +3 -14
  2. package/index.css.map +1 -1
  3. package/package.json +1 -1
  4. package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
  5. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  6. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  7. package/src/AdaptableState/Common/AdaptableColumn.d.ts +6 -0
  8. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  9. package/src/AdaptableState/InitialState.d.ts +1 -1
  10. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  11. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  12. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  13. package/src/Api/Implementation/AlertApiImpl.js +1 -0
  14. package/src/Api/Implementation/ApiBase.js +1 -0
  15. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  16. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  17. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  18. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  19. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  20. package/src/Api/Implementation/CustomSortApiImpl.js +1 -0
  21. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  22. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  23. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  24. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  25. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  26. package/src/Api/Implementation/EventApiImpl.js +16 -14
  27. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  28. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  29. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  30. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  31. package/src/Api/Implementation/FlashingCellApiImpl.js +1 -0
  32. package/src/Api/Implementation/FormatColumnApiImpl.js +1 -0
  33. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  34. package/src/Api/Implementation/GridApiImpl.js +1 -0
  35. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  36. package/src/Api/Implementation/LayoutApiImpl.js +1 -0
  37. package/src/Api/Implementation/NamedQueryApiImpl.js +1 -0
  38. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  39. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  40. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  41. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  42. package/src/Api/Implementation/SystemStatusApiImpl.js +2 -0
  43. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  44. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  45. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -1
  46. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  47. package/src/Redux/Store/AdaptableStore.js +49 -43
  48. package/src/Strategy/AdaptableModuleBase.js +4 -0
  49. package/src/Strategy/AlertModule.js +1 -0
  50. package/src/Strategy/CalculatedColumnModule.js +1 -0
  51. package/src/Strategy/CellSummaryModule.js +1 -1
  52. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  53. package/src/Strategy/FlashingCellModule.js +1 -0
  54. package/src/Strategy/FreeTextColumnModule.js +1 -0
  55. package/src/Strategy/LayoutModule.js +2 -1
  56. package/src/Strategy/PlusMinusModule.js +2 -0
  57. package/src/Strategy/ScheduleModule.js +1 -0
  58. package/src/Strategy/ShortcutModule.js +2 -0
  59. package/src/Strategy/TeamSharingModule.js +10 -10
  60. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -1
  61. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  62. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  63. package/src/Utilities/MenuItem.js +18 -0
  64. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  65. package/src/Utilities/Services/AlertService.js +6 -4
  66. package/src/Utilities/Services/AnnotationsService.js +3 -0
  67. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  68. package/src/Utilities/Services/ChartingService.js +1 -0
  69. package/src/Utilities/Services/DataService.js +10 -2
  70. package/src/Utilities/Services/Fdc3Service.js +5 -3
  71. package/src/Utilities/Services/FlashingCellService.js +5 -0
  72. package/src/Utilities/Services/LicenseService/index.js +1 -1
  73. package/src/Utilities/Services/MetamodelService.js +2 -2
  74. package/src/Utilities/Services/ModuleService.js +1 -0
  75. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  76. package/src/Utilities/Services/RowFormService.js +1 -0
  77. package/src/Utilities/Services/RowSummaryService.js +10 -7
  78. package/src/Utilities/Services/TeamSharingService.js +3 -1
  79. package/src/Utilities/Services/ThemeService.js +11 -9
  80. package/src/Utilities/Services/ValidationService.js +1 -0
  81. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  82. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -0
  83. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +8 -8
  84. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -0
  85. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  86. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  87. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  88. package/src/View/Components/ExpressionWizard.js +5 -5
  89. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  90. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  91. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  92. package/src/View/CustomSort/CustomSortSummary.js +13 -13
  93. package/src/View/FormatColumn/FormatColumnSummary.js +13 -13
  94. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +13 -13
  95. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  96. package/src/View/Theme/ThemePopup.js +13 -16
  97. package/src/agGrid/Adaptable.js +4 -0
  98. package/src/agGrid/AdaptableAgGrid.js +99 -33
  99. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  100. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  101. package/src/agGrid/AdaptableLogger.js +10 -0
  102. package/src/agGrid/AgGridAdapter.js +11 -1
  103. package/src/agGrid/AgGridColumnAdapter.js +2 -0
  104. package/src/agGrid/AgGridExportAdapter.js +10 -9
  105. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  106. package/src/agGrid/AgGridFloatingFilterAdapter.js +3 -0
  107. package/src/agGrid/AgGridMenuAdapter.js +1 -0
  108. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  109. package/src/agGrid/AgGridOptionsService.js +3 -0
  110. package/src/agGrid/AgGridThemeAdapter.js +2 -0
  111. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  112. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  113. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  114. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  115. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  116. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  117. package/src/agGrid/index.d.ts +6 -0
  118. package/src/agGrid/index.js +6 -0
  119. package/src/components/Datepicker/index.js +1 -1
  120. package/src/components/overlayBaseZIndex.js +1 -1
  121. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  122. package/src/devTools/index.js +54 -53
  123. package/src/env.js +2 -2
  124. package/src/layout-manager/src/LMEmitter.js +11 -11
  125. package/src/layout-manager/src/LMLogger.js +7 -0
  126. package/src/layout-manager/src/index.js +56 -51
  127. package/src/metamodel/adaptable.metamodel.d.ts +57 -0
  128. package/src/metamodel/adaptable.metamodel.js +1 -1
  129. package/src/migration/AdaptableUpgradeHelper.js +3 -0
  130. package/src/migration/VersionUpgrade.js +1 -0
  131. package/src/migration/VersionUpgrade17.js +1 -2
  132. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  133. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -122,6 +122,7 @@ function isPivotGrandTotal(columnId) {
122
122
  return columnId?.startsWith(GeneralConstants.AG_GRID_PIVOT_GRAND_TOTAL_COLUMN);
123
123
  }
124
124
  class ColumnApiImpl extends ApiBase_1.ApiBase {
125
+ internalApi;
125
126
  constructor(_adaptable) {
126
127
  super(_adaptable);
127
128
  this.internalApi = new ColumnInternalApi_1.ColumnInternalApi(_adaptable);
@@ -9,6 +9,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
9
9
  const ColumnFilterInternalApi_1 = require("../Internal/ColumnFilterInternalApi");
10
10
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
11
11
  class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new ColumnFilterInternalApi_1.ColumnFilterInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
8
8
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
9
9
  const CommentsInternalApi_1 = require("../Internal/CommentsInternalApi");
10
10
  class CommentsApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new CommentsInternalApi_1.CommentsInternalApi(_adaptable);
@@ -7,6 +7,7 @@ const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducer
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
9
9
  class CustomSortApiImpl extends ApiBase_1.ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new CustomSortInternalApi_1.CustomSortInternalApi(_adaptable);
@@ -9,6 +9,7 @@ const React = tslib_1.__importStar(require("react"));
9
9
  const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
10
10
  const DashboardInternalApi_1 = require("../Internal/DashboardInternalApi");
11
11
  class DashboardApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(_adaptable);
@@ -6,21 +6,6 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
8
  class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
9
- constructor() {
10
- super(...arguments);
11
- this.getDataChangeHistoryKey = (dataChangeInfo) => {
12
- const columnId = dataChangeInfo.column.columnId;
13
- const primaryKeyValue = dataChangeInfo.primaryKeyValue;
14
- const changedAt = dataChangeInfo.changedAt;
15
- const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
16
- if (showLastDataChangeOnly) {
17
- return JSON.stringify({ columnId, primaryKeyValue });
18
- }
19
- else {
20
- return JSON.stringify({ columnId, primaryKeyValue, changedAt });
21
- }
22
- };
23
- }
24
9
  getDataChangeHistoryMode() {
25
10
  return this.getAdaptableState().Internal.DataChangeHistory.currentMode;
26
11
  }
@@ -71,5 +56,17 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
71
56
  openDataChangeHistorySettingsPanel() {
72
57
  this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
73
58
  }
59
+ getDataChangeHistoryKey = (dataChangeInfo) => {
60
+ const columnId = dataChangeInfo.column.columnId;
61
+ const primaryKeyValue = dataChangeInfo.primaryKeyValue;
62
+ const changedAt = dataChangeInfo.changedAt;
63
+ const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
64
+ if (showLastDataChangeOnly) {
65
+ return JSON.stringify({ columnId, primaryKeyValue });
66
+ }
67
+ else {
68
+ return JSON.stringify({ columnId, primaryKeyValue, changedAt });
69
+ }
70
+ };
74
71
  }
75
72
  exports.DataChangeHistoryApiImpl = DataChangeHistoryApiImpl;
@@ -4,6 +4,7 @@ exports.DataImportApiImpl = void 0;
4
4
  const DataImportInternalApi_1 = require("../Internal/DataImportInternalApi");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  class DataImportApiImpl extends ApiBase_1.ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new DataImportInternalApi_1.DataImportInternalApi(_adaptable);
@@ -7,6 +7,7 @@ const InternalRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const DataSetInternalApi_1 = require("../Internal/DataSetInternalApi");
9
9
  class DataSetApiImpl extends ApiBase_1.ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(_adaptable);
@@ -4,6 +4,7 @@ exports.EntitlementApiImpl = void 0;
4
4
  const ApiBase_1 = require("./ApiBase");
5
5
  const EntitlementInternalApi_1 = require("../Internal/EntitlementInternalApi");
6
6
  class EntitlementApiImpl extends ApiBase_1.ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new EntitlementInternalApi_1.EntitlementInternalApi(_adaptable);
@@ -6,22 +6,10 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const Emitter_1 = tslib_1.__importDefault(require("../../Utilities/Emitter"));
7
7
  const EventInternalApi_1 = require("../Internal/EventInternalApi");
8
8
  class EventApiImpl extends ApiBase_1.ApiBase {
9
+ emitter;
10
+ internalApi;
9
11
  constructor(_adaptable) {
10
12
  super(_adaptable);
11
- this.on = (eventName, callback) => {
12
- let result;
13
- if (eventName === 'AdaptableReady') {
14
- this.emitter.onIncludeFiredOnce(eventName).then(callback);
15
- return () => { };
16
- }
17
- else {
18
- result = this.emitter.on(eventName, callback);
19
- }
20
- return result;
21
- };
22
- this.off = (eventName, callback) => this.emitter.off(eventName, callback);
23
- this.emit = (eventName, data) => this.emitter.emit(eventName, data);
24
- this.emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
25
13
  this.emitter = new Emitter_1.default();
26
14
  this.internalApi = new EventInternalApi_1.EventInternalApi(_adaptable);
27
15
  }
@@ -30,5 +18,19 @@ class EventApiImpl extends ApiBase_1.ApiBase {
30
18
  this.emitSync('AdaptableDestroy');
31
19
  this.emitter.destroy();
32
20
  }
21
+ on = (eventName, callback) => {
22
+ let result;
23
+ if (eventName === 'AdaptableReady') {
24
+ this.emitter.onIncludeFiredOnce(eventName).then(callback);
25
+ return () => { };
26
+ }
27
+ else {
28
+ result = this.emitter.on(eventName, callback);
29
+ }
30
+ return result;
31
+ };
32
+ off = (eventName, callback) => this.emitter.off(eventName, callback);
33
+ emit = (eventName, data) => this.emitter.emit(eventName, data);
34
+ emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
33
35
  }
34
36
  exports.EventApiImpl = EventApiImpl;
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
9
9
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
10
10
  class ExportApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new ExportInternalApi_1.ExportInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const parser = tslib_1.__importStar(require("../../parser/src"));
7
7
  const ExpressionInternalApi_1 = require("../Internal/ExpressionInternalApi");
8
8
  class ExpressionApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
9
10
  constructor(_adaptable) {
10
11
  super(_adaptable);
11
12
  this.internalApi = new ExpressionInternalApi_1.ExpressionInternalApi(_adaptable);
@@ -5,6 +5,7 @@ const ApiBase_1 = require("./ApiBase");
5
5
  const Fdc3InternalApi_1 = require("../Internal/Fdc3InternalApi");
6
6
  const Fdc3Context_1 = require("../../AdaptableState/Common/Fdc3Context");
7
7
  class Fdc3ApiImpl extends ApiBase_1.ApiBase {
8
+ internalApi;
8
9
  constructor(_adaptable) {
9
10
  super(_adaptable);
10
11
  this.internalApi = new Fdc3InternalApi_1.Fdc3InternalApi(_adaptable);
@@ -6,6 +6,9 @@ const FilterInternalApi_1 = require("../Internal/FilterInternalApi");
6
6
  const ColumnFilterApiImpl_1 = require("./ColumnFilterApiImpl");
7
7
  const GridFilterApiImpl_1 = require("./GridFilterApiImpl");
8
8
  class FilterApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
10
+ columnFilterApi;
11
+ gridFilterApi;
9
12
  constructor(_adaptable) {
10
13
  super(_adaptable);
11
14
  this.internalApi = new FilterInternalApi_1.FilterInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
6
6
  const ApiBase_1 = require("./ApiBase");
7
7
  const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
8
8
  class FlashingCellApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
9
10
  constructor(_adaptable) {
10
11
  super(_adaptable);
11
12
  this.internalApi = new FlashingCellInternalApi_1.FlashingCellInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
10
  class FormatColumnApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
9
9
  const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
10
10
  class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(_adaptable);
@@ -11,6 +11,7 @@ const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windo
11
11
  const RowSummary_1 = require("../../AdaptableState/Common/RowSummary");
12
12
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
13
13
  class GridApiImpl extends ApiBase_1.ApiBase {
14
+ internalApi;
14
15
  constructor(_adaptable) {
15
16
  super(_adaptable);
16
17
  this.internalApi = new GridInternalApi_1.GridInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const GridFilterInternalApi_1 = require("../Internal/GridFilterInternalApi");
8
8
  const ApiBase_1 = require("./ApiBase");
9
9
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
10
10
  class GridFilterApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new GridFilterInternalApi_1.GridFilterInternalApi(_adaptable);
@@ -12,6 +12,7 @@ const LayoutInternalApi_1 = require("../Internal/LayoutInternalApi");
12
12
  const LayoutHelpers_1 = require("./LayoutHelpers");
13
13
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
14
14
  class LayoutApiImpl extends ApiBase_1.ApiBase {
15
+ internalApi;
15
16
  constructor(_adaptable) {
16
17
  super(_adaptable);
17
18
  this.internalApi = new LayoutInternalApi_1.LayoutInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const NamedQueryInternalApi_1 = require("../Internal/NamedQueryInternalApi");
8
8
  const ApiBase_1 = require("./ApiBase");
9
9
  const NamedQueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NamedQueryRedux"));
10
10
  class NamedQueryApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new NamedQueryInternalApi_1.NamedQueryInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
7
7
  const NoteInternalApi_1 = require("../Internal/NoteInternalApi");
8
8
  class NoteApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
9
10
  constructor(_adaptable) {
10
11
  super(_adaptable);
11
12
  this.internalApi = new NoteInternalApi_1.NoteInternalApi(_adaptable);
@@ -32,6 +32,7 @@ const getTreeSelectionStateForPredicateInputs = (inputs, cache = treeSelectionSt
32
32
  };
33
33
  exports.getTreeSelectionStateForPredicateInputs = getTreeSelectionStateForPredicateInputs;
34
34
  class PredicateApiImpl extends ApiBase_1.ApiBase {
35
+ internalApi;
35
36
  constructor(_adaptable) {
36
37
  super(_adaptable);
37
38
  this.internalApi = new PredicateInternalApi_1.PredicateInternalApi(_adaptable);
@@ -5,6 +5,7 @@ const ApiBase_1 = require("./ApiBase");
5
5
  const RowFormInternalApi_1 = require("../Internal/RowFormInternalApi");
6
6
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
7
7
  class RowFormApiImpl extends ApiBase_1.ApiBase {
8
+ internalApi;
8
9
  constructor(_adaptable) {
9
10
  super(_adaptable);
10
11
  this.internalApi = new RowFormInternalApi_1.RowFormInternalApi(_adaptable);
@@ -7,6 +7,7 @@ const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
7
7
  const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
8
8
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
9
  class StyledColumnApiImpl extends ApiBase_1.ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new StyledColumnInternalApi_1.StyledColumnInternalApi(_adaptable);
@@ -12,6 +12,8 @@ const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
12
12
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
13
13
  const SystemStatusInternalApi_1 = require("../Internal/SystemStatusInternalApi");
14
14
  class SystemStatusApiImpl extends ApiBase_1.ApiBase {
15
+ systemStatusDiv;
16
+ internalApi;
15
17
  constructor(_adaptable) {
16
18
  super(_adaptable);
17
19
  this.internalApi = new SystemStatusInternalApi_1.SystemStatusInternalApi(_adaptable);
@@ -9,6 +9,7 @@ const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux
9
9
  const TeamSharingInternalApi_1 = require("../Internal/TeamSharingInternalApi");
10
10
  const TeamSharingState_1 = require("../../AdaptableState/TeamSharingState");
11
11
  class TeamSharingApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new TeamSharingInternalApi_1.TeamSharingInternalApi(_adaptable);
@@ -10,6 +10,7 @@ const ThemeInternalApi_1 = require("../Internal/ThemeInternalApi");
10
10
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
11
11
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
12
12
  class ThemeApiImpl extends ApiBase_1.ApiBase {
13
+ internalApi;
13
14
  constructor(_adaptable) {
14
15
  super(_adaptable);
15
16
  this.internalApi = new ThemeInternalApi_1.ThemeInternalApi(_adaptable);
@@ -9,9 +9,10 @@ const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi
9
9
  const ApiBase_1 = require("./ApiBase");
10
10
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
11
11
  class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
13
+ showProgressIndicatorTimeout = null;
12
14
  constructor(_adaptable) {
13
15
  super(_adaptable);
14
- this.showProgressIndicatorTimeout = null;
15
16
  this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(_adaptable);
16
17
  }
17
18
  getColorPalette() {
@@ -30,6 +30,12 @@ const loadState = ({ adaptableId, adaptableStateKey }) => {
30
30
  return Promise.resolve(parsedJsonState);
31
31
  };
32
32
  class AdaptableReduxLocalStorageEngine {
33
+ adaptableId;
34
+ adaptableStateKey;
35
+ userName;
36
+ initialState;
37
+ loadState;
38
+ persistState;
33
39
  constructor(config) {
34
40
  this.adaptableId = config.adaptableId;
35
41
  this.adaptableStateKey = config.adaptableStateKey;
@@ -72,6 +72,23 @@ const LoadState = (State) => ({
72
72
  });
73
73
  exports.LoadState = LoadState;
74
74
  class AdaptableStore {
75
+ TheStore;
76
+ Load;
77
+ emitter;
78
+ storageEngine;
79
+ currentStorageState;
80
+ previousStorageState;
81
+ loadStorageInProgress = false;
82
+ loadStateOnStartup = true; // set to false if you want no state
83
+ on = (eventName, callback) => {
84
+ return this.emitter.on(eventName, callback);
85
+ };
86
+ onAny = (callback) => {
87
+ return this.emitter.onAny(callback);
88
+ };
89
+ emit = (eventName, data) => {
90
+ return this.emitter.emit(eventName, data);
91
+ };
75
92
  /**
76
93
  *
77
94
  * @param adaptable The Adaptable instance
@@ -81,49 +98,6 @@ class AdaptableStore {
81
98
  /*
82
99
  This is the main store for Adaptable State
83
100
  */
84
- this.loadStorageInProgress = false;
85
- this.loadStateOnStartup = true; // set to false if you want no state
86
- this.on = (eventName, callback) => {
87
- return this.emitter.on(eventName, callback);
88
- };
89
- this.onAny = (callback) => {
90
- return this.emitter.onAny(callback);
91
- };
92
- this.emit = (eventName, data) => {
93
- return this.emitter.emit(eventName, data);
94
- };
95
- this.loadStore = (config) => {
96
- const { adaptable, adaptableStateKey, initialState, postLoadHook } = config;
97
- const postProcessState = postLoadHook ?? ((state) => state);
98
- this.storageEngine.setStateKey(adaptableStateKey);
99
- // START STATE LOAD
100
- this.loadStorageInProgress = true;
101
- return (this.Load = this.storageEngine
102
- .load(adaptable, initialState)
103
- .then((storedState) => {
104
- if (storedState && this.loadStateOnStartup) {
105
- this.TheStore.dispatch((0, exports.LoadState)(postProcessState(adaptable.adaptableOptions.stateOptions.applyState(storedState, (0, buildAdaptableStateFunctionConfig_1.buildAdaptableStateFunctionConfig)(adaptable)))));
106
- }
107
- })
108
- .then(() => {
109
- this.TheStore.dispatch((0, exports.InitState)());
110
- // END STATE LOAD
111
- this.loadStorageInProgress = false;
112
- }, (e) => {
113
- adaptable.api.consoleError('Failed to load previous Adaptable State : ', e);
114
- //for now i'm still initializing Adaptable even if loading state has failed....
115
- //we may revisit that later
116
- this.TheStore.dispatch((0, exports.InitState)());
117
- // END STATE LOAD
118
- this.loadStorageInProgress = false;
119
- this.TheStore.dispatch(PopupRedux.PopupShowAlert({
120
- alertType: 'generic',
121
- header: 'Configuration',
122
- message: 'Error loading your configuration:' + e,
123
- alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
124
- }));
125
- }));
126
- };
127
101
  let rootReducerObject = {
128
102
  // Reducers for Non-Persisted State
129
103
  Popup: PopupRedux.PopupReducer,
@@ -268,6 +242,38 @@ class AdaptableStore {
268
242
  }
269
243
  return Promise.resolve(true);
270
244
  }
245
+ loadStore = (config) => {
246
+ const { adaptable, adaptableStateKey, initialState, postLoadHook } = config;
247
+ const postProcessState = postLoadHook ?? ((state) => state);
248
+ this.storageEngine.setStateKey(adaptableStateKey);
249
+ // START STATE LOAD
250
+ this.loadStorageInProgress = true;
251
+ return (this.Load = this.storageEngine
252
+ .load(adaptable, initialState)
253
+ .then((storedState) => {
254
+ if (storedState && this.loadStateOnStartup) {
255
+ this.TheStore.dispatch((0, exports.LoadState)(postProcessState(adaptable.adaptableOptions.stateOptions.applyState(storedState, (0, buildAdaptableStateFunctionConfig_1.buildAdaptableStateFunctionConfig)(adaptable)))));
256
+ }
257
+ })
258
+ .then(() => {
259
+ this.TheStore.dispatch((0, exports.InitState)());
260
+ // END STATE LOAD
261
+ this.loadStorageInProgress = false;
262
+ }, (e) => {
263
+ adaptable.api.consoleError('Failed to load previous Adaptable State : ', e);
264
+ //for now i'm still initializing Adaptable even if loading state has failed....
265
+ //we may revisit that later
266
+ this.TheStore.dispatch((0, exports.InitState)());
267
+ // END STATE LOAD
268
+ this.loadStorageInProgress = false;
269
+ this.TheStore.dispatch(PopupRedux.PopupShowAlert({
270
+ alertType: 'generic',
271
+ header: 'Configuration',
272
+ message: 'Error loading your configuration:' + e,
273
+ alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
274
+ }));
275
+ }));
276
+ };
271
277
  }
272
278
  exports.AdaptableStore = AdaptableStore;
273
279
  function createDevToolsActionMarkerMiddleware(adaptable) {
@@ -8,6 +8,10 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
8
8
  * Base class for all strategies and does most of the work of creating menus
9
9
  */
10
10
  class AdaptableModuleBase {
11
+ api;
12
+ moduleInfo;
13
+ AccessLevel;
14
+ agGridModuleDepsInfo;
11
15
  constructor(module, friendlyName, glyph, popup, description, api) {
12
16
  this.api = api;
13
17
  this.moduleInfo = {
@@ -20,6 +20,7 @@ const getAlertBehaviourViewItems_1 = require("./Utilities/Alert/getAlertBehaviou
20
20
  const getAlertPreviewViewItems_1 = require("./Utilities/Alert/getAlertPreviewViewItems");
21
21
  const getAlertTypeViewItems_1 = require("./Utilities/Alert/getAlertTypeViewItems");
22
22
  class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
+ isListeningToCellDataChanges;
23
24
  constructor(api) {
24
25
  super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
25
26
  this.isListeningToCellDataChanges = false;
@@ -11,6 +11,7 @@ const getCalculatedColumnSettingsTags_1 = require("../View/CalculatedColumn/Util
11
11
  const getExpressionViewItems_1 = require("../Utilities/getExpressionViewItems");
12
12
  const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
13
13
  class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
14
+ isListeningToCellDataChanges;
14
15
  constructor(api) {
15
16
  super(ModuleConstants.CalculatedColumnModuleId, ModuleConstants.CalculatedColumnFriendlyName, 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
16
17
  this.isListeningToCellDataChanges = false;
@@ -12,9 +12,9 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
12
12
  * Module that provides Cell Summaries on numeric columns
13
13
  */
14
14
  class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
+ cachedCellSummary = new WeakMap();
15
16
  constructor(api) {
16
17
  super(ModuleConstants.CellSummaryModuleId, ModuleConstants.CellSummaryFriendlyName, 'cells', 'CellSummaryPopup', 'See summary information on a group of numeric cells using multiple summary operations', api);
17
- this.cachedCellSummary = new WeakMap();
18
18
  }
19
19
  getViewAccessLevel() {
20
20
  return 'Full';
@@ -6,6 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/DataChangeHistoryStatusBarContent");
8
8
  class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
+ isListeningToCellDataChanges;
9
10
  constructor(api) {
10
11
  super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'target', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
11
12
  this.isListeningToCellDataChanges = false;
@@ -16,6 +16,7 @@ const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWi
16
16
  const getFlashingCellDurationViewItems_1 = require("./Utilities/FlashingCell/getFlashingCellDurationViewItems");
17
17
  const AdaptableLogger_1 = require("../agGrid/AdaptableLogger");
18
18
  class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
+ isListeningToCellDataChanges;
19
20
  constructor(api) {
20
21
  super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'lightning', 'FlashingAlert', 'Flash cells when they change', api);
21
22
  this.isListeningToCellDataChanges = false;
@@ -9,6 +9,7 @@ const FreeTextColumnWizard_1 = require("../View/FreeTextColumn/Wizard/FreeTextCo
9
9
  const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
10
10
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
11
11
  class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
+ isListeningToCellDataChanges;
12
13
  constructor(api) {
13
14
  super(ModuleConstants.FreeTextColumnModuleId, ModuleConstants.FreeTextColumnFriendlyName, 'horizontal-lines', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
14
15
  this.isListeningToCellDataChanges = false;
@@ -21,9 +21,10 @@ const getGridFilterPreview_1 = require("../View/Layout/Wizard/getGridFilterPrevi
21
21
  const RowSummaryService_1 = require("../Utilities/Services/RowSummaryService");
22
22
  const LayoutHelpers_1 = require("../Api/Implementation/LayoutHelpers");
23
23
  class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
24
+ LayoutState;
25
+ rowSummaryService = new RowSummaryService_1.RowSummaryService(this.api);
24
26
  constructor(api) {
25
27
  super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
26
- this.rowSummaryService = new RowSummaryService_1.RowSummaryService(this.api);
27
28
  }
28
29
  onAdaptableReady() {
29
30
  this.rowSummaryService.onAdaptableReady();
@@ -15,6 +15,8 @@ const MovePlusMinus_1 = require("../View/PlusMinus/MovePlusMinus");
15
15
  const PlusMinusWizard_1 = require("../View/PlusMinus/Wizard/PlusMinusWizard");
16
16
  const AdaptableLogger_1 = require("../agGrid/AdaptableLogger");
17
17
  class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
18
+ shouldHandleKeyDown;
19
+ adaptable;
18
20
  constructor(api) {
19
21
  super(ModuleConstants.PlusMinusModuleId, ModuleConstants.PlusMinusFriendlyName, 'add-circle', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
20
22
  this.shouldHandleKeyDown = false;
@@ -35,6 +35,7 @@ const NodeSchedule = {
35
35
  },
36
36
  };
37
37
  class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
+ scheduleJobs;
38
39
  constructor(api) {
39
40
  super(ModuleConstants.ScheduleModuleId, ModuleConstants.ScheduleFriendlyName, 'schedule', 'SchedulePopup', 'Schedule AdapTable functionality to run at times of your choosing (e.g. run reports)', api);
40
41
  this.scheduleJobs = [];
@@ -13,6 +13,8 @@ const getShortcutSettingsViewItems_1 = require("./Utilities/Shortcut/getShortcut
13
13
  const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
14
14
  const getScopeViewItems_1 = require("../Utilities/getScopeViewItems");
15
15
  class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
+ shouldHandleKeyDown;
17
+ adaptable;
16
18
  constructor(api) {
17
19
  super(ModuleConstants.ShortcutModuleId, ModuleConstants.ShortcutFriendlyName, 'link', 'ShortcutPopup', 'Set up rules so cells update mathematically when keys are pressed in numeric cells', api);
18
20
  this.shouldHandleKeyDown = false;
@@ -15,18 +15,18 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
15
15
  const flatten_1 = tslib_1.__importDefault(require("lodash/flatten"));
16
16
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../Utilities/Helpers/AdaptableHelper"));
17
17
  class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
18
+ SKIP_TEAMSHARING_UPDATE_ACTIONS = [
19
+ TeamSharingRedux_1.TEAMSHARING_GET,
20
+ TeamSharingRedux_1.TEAMSHARING_SET,
21
+ TeamSharingRedux_1.TEAMSHARING_SHARE,
22
+ TeamSharingRedux_1.TEAMSHARING_IMPORT_ITEM,
23
+ TeamSharingRedux_1.TEAMSHARING_PROCESS_IMPORT,
24
+ TeamSharingRedux_1.TEAMSHARING_REMOVE_ITEM,
25
+ TeamSharingRedux_1.TEAMSHARING_LINK_ITEM,
26
+ TeamSharingRedux_1.TEAMSHARING_UPDATE_ITEM,
27
+ ];
18
28
  constructor(api) {
19
29
  super(ModuleConstants.TeamSharingModuleId, ModuleConstants.TeamSharingFriendlyName, 'folder-shared', 'TeamSharingPopup', 'Team Sharing allows users to share - at run-time - Adaptable Objects between colleagues.', api);
20
- this.SKIP_TEAMSHARING_UPDATE_ACTIONS = [
21
- TeamSharingRedux_1.TEAMSHARING_GET,
22
- TeamSharingRedux_1.TEAMSHARING_SET,
23
- TeamSharingRedux_1.TEAMSHARING_SHARE,
24
- TeamSharingRedux_1.TEAMSHARING_IMPORT_ITEM,
25
- TeamSharingRedux_1.TEAMSHARING_PROCESS_IMPORT,
26
- TeamSharingRedux_1.TEAMSHARING_REMOVE_ITEM,
27
- TeamSharingRedux_1.TEAMSHARING_LINK_ITEM,
28
- TeamSharingRedux_1.TEAMSHARING_UPDATE_ITEM,
29
- ];
30
30
  }
31
31
  onAdaptableReady() {
32
32
  if (this.api.teamSharingApi.isTeamSharingAvailable()) {
@@ -11,7 +11,7 @@ export declare const QuantileAggregatedScalarQueryDocsLink = "https://www.adapta
11
11
  export declare const PredicateDocsLink = "https://www.adaptabletools.com/docs/adaptable-predicate";
12
12
  export declare const PrimaryKeyDocsLink = "https://www.adaptabletools.com/docs/getting-started-primary-key";
13
13
  export declare const LicenseDocsLink = "https://www.adaptabletools.com/buy/buying-adaptable-licensing";
14
- export declare const AdaptableOptionsDocsLink = "https://www.adaptabletools.com/docs/reference-options-overview";
14
+ export declare const AdaptableOptionsDocsLink = "https://www.adaptabletools.com/docs/technical-reference-adaptable-options";
15
15
  export declare const AgGridModulesDocsLink = "https://www.adaptabletools.com/docs/dev-guide-aggrid-modules-overview";
16
16
  export declare const AlertMessageDocsLink = "https://www.adaptabletools.com/docs/handbook-alerting-message";
17
17
  export declare const FormatColumnPlaceholderDocsLink = "https://www.adaptabletools.com/docs/handbook-column-formatting-display-format-placeholder";