@adaptabletools/adaptable-cjs 18.1.13 → 18.1.15-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 (156) hide show
  1. package/package.json +2 -2
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -5
  3. package/src/AdaptableOptions/AlertOptions.d.ts +2 -1
  4. package/src/AdaptableOptions/ChartingOptions.d.ts +5 -1
  5. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +5 -1
  6. package/src/AdaptableOptions/DashboardOptions.d.ts +5 -1
  7. package/src/AdaptableOptions/FlashingCellOptions.d.ts +5 -1
  8. package/src/AdaptableOptions/LayoutOptions.d.ts +5 -1
  9. package/src/AdaptableOptions/NotificationsOptions.d.ts +6 -2
  10. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +5 -1
  11. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
  12. package/src/Api/ChartingApi.d.ts +2 -2
  13. package/src/Api/ColumnApi.d.ts +6 -0
  14. package/src/Api/ConfigApi.d.ts +22 -2
  15. package/src/Api/Events/LiveDataChanged.d.ts +1 -1
  16. package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -1
  17. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  18. package/src/Api/Implementation/ChartingApiImpl.js +2 -2
  19. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  20. package/src/Api/Implementation/ColumnApiImpl.js +3 -0
  21. package/src/Api/Implementation/ConfigApiImpl.d.ts +4 -1
  22. package/src/Api/Implementation/ConfigApiImpl.js +16 -1
  23. package/src/Api/Implementation/EntitlementApiImpl.d.ts +4 -1
  24. package/src/Api/Implementation/EntitlementApiImpl.js +31 -6
  25. package/src/Api/Implementation/ExportApiImpl.js +5 -7
  26. package/src/Api/Implementation/GridApiImpl.js +1 -1
  27. package/src/Api/Implementation/TeamSharingApiImpl.js +2 -6
  28. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -6
  29. package/src/Api/Internal/AdaptableInternalApi.js +5 -11
  30. package/src/Api/Internal/EntitlementInternalApi.d.ts +4 -0
  31. package/src/Api/Internal/EntitlementInternalApi.js +15 -0
  32. package/src/Api/Internal/ExportInternalApi.d.ts +33 -8
  33. package/src/Api/Internal/ExportInternalApi.js +577 -5
  34. package/src/Api/Internal/NamedQueryInternalApi.d.ts +0 -1
  35. package/src/Api/Internal/NamedQueryInternalApi.js +0 -5
  36. package/src/PredefinedConfig/AdaptableState.d.ts +0 -5
  37. package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +2 -1
  38. package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
  39. package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -6
  40. package/src/Redux/ActionsReducers/GridRedux.js +11 -11
  41. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
  42. package/src/Redux/ActionsReducers/LayoutRedux.js +10 -10
  43. package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +1 -1
  44. package/src/Redux/ActionsReducers/NamedQueryRedux.js +1 -1
  45. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +2 -2
  46. package/src/Redux/ActionsReducers/PluginsRedux.js +3 -3
  47. package/src/Redux/Store/AdaptableReduxMerger.js +3 -3
  48. package/src/Redux/Store/AdaptableStore.js +2 -4
  49. package/src/Strategy/AdaptableModuleBase.js +1 -2
  50. package/src/Strategy/ColumnFilterModule.js +1 -2
  51. package/src/Strategy/ExportModule.js +17 -44
  52. package/src/Strategy/FlashingCellModule.js +2 -10
  53. package/src/Strategy/ScheduleModule.js +4 -6
  54. package/src/Strategy/SmartEditModule.js +1 -7
  55. package/src/Strategy/TeamSharingModule.js +2 -2
  56. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +1 -1
  57. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +1 -3
  58. package/src/Utilities/Constants/FilterConstants.d.ts +10 -0
  59. package/src/Utilities/Constants/FilterConstants.js +11 -0
  60. package/src/Utilities/Constants/GeneralConstants.d.ts +41 -4
  61. package/src/Utilities/Constants/GeneralConstants.js +44 -5
  62. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -2
  63. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -6
  64. package/src/Utilities/Extensions/ArrayExtensions.d.ts +14 -0
  65. package/src/Utilities/Extensions/ArrayExtensions.js +68 -1
  66. package/src/Utilities/Extensions/EnumExtensions.d.ts +0 -4
  67. package/src/Utilities/Extensions/EnumExtensions.js +3 -15
  68. package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -10
  69. package/src/Utilities/Helpers/AdaptableHelper.js +10 -64
  70. package/src/Utilities/Helpers/FormatHelper.d.ts +9 -0
  71. package/src/Utilities/Helpers/FormatHelper.js +26 -14
  72. package/src/Utilities/Helpers/Helper.d.ts +0 -10
  73. package/src/Utilities/Helpers/Helper.js +1 -76
  74. package/src/Utilities/Services/ChartingService.d.ts +2 -2
  75. package/src/Utilities/Services/ChartingService.js +5 -11
  76. package/src/Utilities/Services/ModuleService.js +35 -31
  77. package/src/Utilities/Services/RowEditService.js +1 -6
  78. package/src/Utilities/Services/RowSummaryService.js +2 -2
  79. package/src/Utilities/Services/ValidationService.js +2 -16
  80. package/src/View/Alert/AlertEmptyView.js +1 -2
  81. package/src/View/Charting/ChartingStatusBarPopover.js +1 -2
  82. package/src/View/Charting/useChartingElements.js +1 -1
  83. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -6
  84. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -4
  85. package/src/View/Components/FilterForm/QuickFilterForm.js +2 -12
  86. package/src/View/Components/ModuleValueSelector/index.js +2 -2
  87. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -5
  88. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -3
  89. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
  90. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -7
  91. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -12
  92. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +3 -23
  93. package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -5
  94. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -3
  95. package/src/View/Components/ValueSelector/index.js +2 -2
  96. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +2 -2
  97. package/src/View/Dashboard/CustomDashboardButton.js +1 -6
  98. package/src/View/Dashboard/CustomToolbar.js +2 -9
  99. package/src/View/Dashboard/Dashboard.js +2 -4
  100. package/src/View/Dashboard/DashboardPopup.js +1 -3
  101. package/src/View/Dashboard/DashboardToolbarFactory.js +1 -2
  102. package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -2
  103. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -3
  104. package/src/View/Export/ExportViewPanel.js +2 -4
  105. package/src/View/Export/Wizard/ReportSummaryWizard.js +2 -6
  106. package/src/View/GridFilter/GridFilterExpressionEditor.js +2 -2
  107. package/src/View/GridFilter/useGridFilterExpressionEditor.js +2 -6
  108. package/src/View/Layout/LayoutViewPanel.js +1 -1
  109. package/src/View/Layout/PivotDetailsPopoup.js +1 -7
  110. package/src/View/Layout/SaveLayoutButton.js +1 -3
  111. package/src/View/Layout/Wizard/sections/AggregationsSection.js +2 -2
  112. package/src/View/Layout/Wizard/sections/ColumnsSection.js +2 -2
  113. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
  114. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
  115. package/src/View/Layout/Wizard/sections/RowSummarySection.js +2 -2
  116. package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
  117. package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +3 -3
  118. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  119. package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
  120. package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
  121. package/src/agGrid/ActionColumnRenderer.js +8 -22
  122. package/src/agGrid/AdaptableAgGrid.d.ts +5 -7
  123. package/src/agGrid/AdaptableAgGrid.js +158 -147
  124. package/src/agGrid/AgGridAdapter.d.ts +0 -1
  125. package/src/agGrid/AgGridAdapter.js +7 -10
  126. package/src/agGrid/AgGridColumnAdapter.d.ts +3 -1
  127. package/src/agGrid/AgGridColumnAdapter.js +39 -13
  128. package/src/agGrid/BadgeRenderer.js +4 -22
  129. package/src/agGrid/FloatingFilterWrapper.js +21 -0
  130. package/src/agGrid/buildSortedColumnStateForLayout.d.ts +1 -1
  131. package/src/agGrid/buildSortedColumnStateForLayout.js +2 -2
  132. package/src/agGrid/defaultAdaptableOptions.js +35 -30
  133. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -15
  134. package/src/env.js +2 -2
  135. package/src/metamodel/adaptable.metamodel.d.ts +84 -8
  136. package/src/metamodel/adaptable.metamodel.js +1 -1
  137. package/src/types.d.ts +9 -9
  138. package/tsconfig.cjs.tsbuildinfo +1 -1
  139. package/src/Redux/ActionsReducers/QueryRedux.d.ts +0 -10
  140. package/src/Redux/ActionsReducers/QueryRedux.js +0 -25
  141. package/src/Utilities/Helpers/FormatContentHelper.d.ts +0 -22
  142. package/src/Utilities/Helpers/FormatContentHelper.js +0 -39
  143. package/src/Utilities/Services/EntitlementService.d.ts +0 -14
  144. package/src/Utilities/Services/EntitlementService.js +0 -67
  145. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -10
  146. package/src/Utilities/Services/Interface/IEntitlementService.js +0 -2
  147. package/src/Utilities/Services/Interface/IReportService.d.ts +0 -27
  148. package/src/Utilities/Services/Interface/IReportService.js +0 -2
  149. package/src/Utilities/Services/ReportService.d.ts +0 -41
  150. package/src/Utilities/Services/ReportService.js +0 -608
  151. package/src/Utilities/isAdaptableObject.d.ts +0 -2
  152. package/src/Utilities/isAdaptableObject.js +0 -8
  153. package/src/Utilities/reorder.d.ts +0 -1
  154. package/src/Utilities/reorder.js +0 -17
  155. package/src/Utilities/sortWithOrder.d.ts +0 -11
  156. package/src/Utilities/sortWithOrder.js +0 -54
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NamedQueryInternalApi = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const ApiBase_1 = require("../Implementation/ApiBase");
6
- const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
7
5
  class NamedQueryInternalApi extends ApiBase_1.ApiBase {
8
6
  /**
9
7
  * Returns the name of all the referenced Named Queries as an array of strings
@@ -37,8 +35,5 @@ class NamedQueryInternalApi extends ApiBase_1.ApiBase {
37
35
  });
38
36
  return references;
39
37
  }
40
- cleanupQueryRedux() {
41
- this.dispatchAction(QueryRedux.QueryCleanup());
42
- }
43
38
  }
44
39
  exports.NamedQueryInternalApi = NamedQueryInternalApi;
@@ -18,7 +18,6 @@ import { ThemeState } from './ThemeState';
18
18
  import { ConfigState } from './ConfigState';
19
19
  import { ApplicationState } from './ApplicationState';
20
20
  import { ToolPanelState } from './ToolPanelState';
21
- import { QueryState } from './QueryState';
22
21
  import { FlashingCellState } from './FlashingCellState';
23
22
  import { StatusBarState } from './StatusBarState';
24
23
  import { ChartingState } from './ChartingState';
@@ -58,10 +57,6 @@ export interface AdaptablePersistentState {
58
57
  ToolPanel: ToolPanelState;
59
58
  Charting: ChartingState;
60
59
  Note: NoteState;
61
- /**
62
- * @deprecated
63
- */
64
- Query: QueryState;
65
60
  }
66
61
  /**
67
62
  * The state which is available in the internal Redux store but never persisted
@@ -5,9 +5,10 @@ export interface FilterActionOnDataChange {
5
5
  /**
6
6
  * When to re-apply Filters: 'Always', 'Never' or 'Throttle'
7
7
  */
8
- applyFilter: 'Always' | 'Never' | 'Throttle';
8
+ applyFilter: ApplyFilterAction;
9
9
  /**
10
10
  * Delay in ms (when `applyFilter` is set to 'Throttle')
11
11
  */
12
12
  throttleDelay?: number;
13
13
  }
14
+ export type ApplyFilterAction = 'Always' | 'Never' | 'Throttle';
@@ -74,7 +74,7 @@ export interface NumericStyledColumn {
74
74
  */
75
75
  ColumnComparison?: ColumnComparison;
76
76
  /**
77
- * If using Ranges, they can provide 'Number' (any number or Col-Min/Col-Max) or 'Percentage' (values 0-100)
77
+ * Used with Ranges; can be Number (any number or Col-Min/Col-Max) or 'Percentage' (values 0-100)
78
78
  * @defaultValue Number
79
79
  */
80
80
  RangeValueType?: RangeValueType;
@@ -59,11 +59,11 @@ export declare const GRID_REFRESH_CELLS = "GRID_REFRESH_CELLS";
59
59
  /**
60
60
  * @ReduxAction Module Dropdown menu items have been set
61
61
  */
62
- export declare const GRID_SET_MODULE_DROPDOWN_MENUITEMS = "GRID_SET_MODULE_DROPDOWN_MENUITEMS";
62
+ export declare const GRID_SET_SETTINGS_PANEL_ITEMS = "GRID_SET_SETTINGS_PANEL_ITEMS";
63
63
  /**
64
64
  * @ReduxAction Module Button menu items have been set
65
65
  */
66
- export declare const GRID_SET_MODULE_BUTTON_MENUITEMS = "GRID_SET_MODULE_BUTTON_MENUITEMS";
66
+ export declare const GRID_SET_MENU_MODULE_ITEMS = "GRID_SET_MENU_MODULE_ITEMS";
67
67
  /**
68
68
  * @ReduxAction Grid is put in pivot mode
69
69
  */
@@ -144,10 +144,10 @@ export interface GridRefreshCellsAction extends Redux.Action {
144
144
  rowNodes: IRowNode[];
145
145
  columnIds: string[];
146
146
  }
147
- export interface SetSettingPanelModuleMenuItemsAction extends Redux.Action {
147
+ export interface SetSettingsPanelItemsAction extends Redux.Action {
148
148
  menuItems: AdaptableMenuItem[];
149
149
  }
150
- export interface SetModuleButtonMenuItemsAction extends Redux.Action {
150
+ export interface SetMenuModuleItemsAction extends Redux.Action {
151
151
  menuItems: AdaptableMenuItem[];
152
152
  }
153
153
  export interface SetLiveReportRunningOnAction extends Redux.Action {
@@ -208,8 +208,8 @@ export declare const SetPivotModeOn: () => SetPivotModeOnAction;
208
208
  export declare const SetPivotModeOff: () => SetPivotModeOffAction;
209
209
  export declare const SetTreeModeOn: () => SetTreeModeOnAction;
210
210
  export declare const SetTreeModeOff: () => SetTreeModeOffAction;
211
- export declare const SetSettingPanelModuleMenuItems: (MenuItems: AdaptableMenuItem[]) => SetSettingPanelModuleMenuItemsAction;
212
- export declare const SetModuleButtonMenuItems: (MenuItems: AdaptableMenuItem[]) => SetModuleButtonMenuItemsAction;
211
+ export declare const setSettingsPanelItems: (MenuItems: AdaptableMenuItem[]) => SetSettingsPanelItemsAction;
212
+ export declare const SetMenuModuleItems: (MenuItems: AdaptableMenuItem[]) => SetMenuModuleItemsAction;
213
213
  export declare const LayoutUpdateCurrentDraft: (layout: Layout) => LayoutUpdateCurrentDraftAction;
214
214
  export declare const LayoutDraftColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterAddAction;
215
215
  export declare const LayoutDraftColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterEditAction;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutDraftColumnFilterEdit = exports.LayoutDraftColumnFilterAdd = exports.LayoutUpdateCurrentDraft = exports.SetModuleButtonMenuItems = exports.SetSettingPanelModuleMenuItems = exports.SetTreeModeOff = exports.SetTreeModeOn = exports.SetPivotModeOff = exports.SetPivotModeOn = exports.GridRefreshCells = exports.GridSetCellSummary = exports.GridCreateCellSummary = exports.GridSetSelectedRows = exports.GridSetSelectedCells = exports.GridClearSort = exports.GridSetSort = exports.GridEditColumn = exports.GridRemoveColumn = exports.GridAddColumns = exports.GridAddColumn = exports.GridSetColumns = exports.LAYOUT_DRAFT_GRID_FILTER_SET = exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND = exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SET = exports.LAYOUT_DRAFT_COLUMN_FILTER_EDIT = exports.LAYOUT_DRAFT_COLUMN_FILTER_ADD = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.GRID_SET_TREE_MODE_OFF = exports.GRID_SET_TREE_MODE_ON = exports.GRID_SET_PIVOT_MODE_OFF = exports.GRID_SET_PIVOT_MODE_ON = exports.GRID_SET_MODULE_BUTTON_MENUITEMS = exports.GRID_SET_MODULE_DROPDOWN_MENUITEMS = exports.GRID_REFRESH_CELLS = exports.GRID_SET_CELLS_SUMMARY = exports.GRID_CREATE_CELLS_SUMMARY = exports.GRID_SET_SELECTED_ROWS = exports.GRID_SET_SELECTED_CELLS = exports.GRID_CLEAR_SORT = exports.GRID_SET_SORT = exports.GRID_EDIT_COLUMN = exports.GRID_REMOVE_COLUMN = exports.GRID_ADD_COLUMNS = exports.GRID_ADD_COLUMN = exports.GRID_SET_COLUMNS = void 0;
3
+ exports.LayoutDraftColumnFilterEdit = exports.LayoutDraftColumnFilterAdd = exports.LayoutUpdateCurrentDraft = exports.SetMenuModuleItems = exports.setSettingsPanelItems = exports.SetTreeModeOff = exports.SetTreeModeOn = exports.SetPivotModeOff = exports.SetPivotModeOn = exports.GridRefreshCells = exports.GridSetCellSummary = exports.GridCreateCellSummary = exports.GridSetSelectedRows = exports.GridSetSelectedCells = exports.GridClearSort = exports.GridSetSort = exports.GridEditColumn = exports.GridRemoveColumn = exports.GridAddColumns = exports.GridAddColumn = exports.GridSetColumns = exports.LAYOUT_DRAFT_GRID_FILTER_SET = exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND = exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SET = exports.LAYOUT_DRAFT_COLUMN_FILTER_EDIT = exports.LAYOUT_DRAFT_COLUMN_FILTER_ADD = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.GRID_SET_TREE_MODE_OFF = exports.GRID_SET_TREE_MODE_ON = exports.GRID_SET_PIVOT_MODE_OFF = exports.GRID_SET_PIVOT_MODE_ON = exports.GRID_SET_MENU_MODULE_ITEMS = exports.GRID_SET_SETTINGS_PANEL_ITEMS = exports.GRID_REFRESH_CELLS = exports.GRID_SET_CELLS_SUMMARY = exports.GRID_CREATE_CELLS_SUMMARY = exports.GRID_SET_SELECTED_ROWS = exports.GRID_SET_SELECTED_CELLS = exports.GRID_CLEAR_SORT = exports.GRID_SET_SORT = exports.GRID_EDIT_COLUMN = exports.GRID_REMOVE_COLUMN = exports.GRID_ADD_COLUMNS = exports.GRID_ADD_COLUMN = exports.GRID_SET_COLUMNS = void 0;
4
4
  exports.GridReducer = exports.LayoutDraftGridFilterSet = exports.LayoutDraftColumnFilterUnsuspendAll = exports.LayoutDraftColumnFilterUnsuspend = exports.LayoutDraftColumnFilterSuspendAll = exports.LayoutDraftColumnFilterSuspend = exports.LayoutDraftColumnFilterClearAll = exports.LayoutDraftColumnFilterClear = exports.LayoutDraftColumnFilterSet = void 0;
5
5
  const tslib_1 = require("tslib");
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
@@ -57,11 +57,11 @@ exports.GRID_REFRESH_CELLS = 'GRID_REFRESH_CELLS';
57
57
  /**
58
58
  * @ReduxAction Module Dropdown menu items have been set
59
59
  */
60
- exports.GRID_SET_MODULE_DROPDOWN_MENUITEMS = 'GRID_SET_MODULE_DROPDOWN_MENUITEMS';
60
+ exports.GRID_SET_SETTINGS_PANEL_ITEMS = 'GRID_SET_SETTINGS_PANEL_ITEMS';
61
61
  /**
62
62
  * @ReduxAction Module Button menu items have been set
63
63
  */
64
- exports.GRID_SET_MODULE_BUTTON_MENUITEMS = 'GRID_SET_MODULE_BUTTON_MENUITEMS';
64
+ exports.GRID_SET_MENU_MODULE_ITEMS = 'GRID_SET_MENU_MODULE_ITEMS';
65
65
  /**
66
66
  * @ReduxAction Grid is put in pivot mode
67
67
  */
@@ -164,16 +164,16 @@ const SetTreeModeOff = () => ({
164
164
  type: exports.GRID_SET_TREE_MODE_OFF,
165
165
  });
166
166
  exports.SetTreeModeOff = SetTreeModeOff;
167
- const SetSettingPanelModuleMenuItems = (MenuItems) => ({
168
- type: exports.GRID_SET_MODULE_DROPDOWN_MENUITEMS,
167
+ const setSettingsPanelItems = (MenuItems) => ({
168
+ type: exports.GRID_SET_SETTINGS_PANEL_ITEMS,
169
169
  menuItems: MenuItems,
170
170
  });
171
- exports.SetSettingPanelModuleMenuItems = SetSettingPanelModuleMenuItems;
172
- const SetModuleButtonMenuItems = (MenuItems) => ({
173
- type: exports.GRID_SET_MODULE_BUTTON_MENUITEMS,
171
+ exports.setSettingsPanelItems = setSettingsPanelItems;
172
+ const SetMenuModuleItems = (MenuItems) => ({
173
+ type: exports.GRID_SET_MENU_MODULE_ITEMS,
174
174
  menuItems: MenuItems,
175
175
  });
176
- exports.SetModuleButtonMenuItems = SetModuleButtonMenuItems;
176
+ exports.SetMenuModuleItems = SetMenuModuleItems;
177
177
  const LayoutUpdateCurrentDraft = (layout) => ({
178
178
  type: exports.LAYOUT_UPDATE_CURRENT_DRAFT,
179
179
  layout,
@@ -279,12 +279,12 @@ const GridReducer = (state = initialState, action) => {
279
279
  return Object.assign({}, state, {
280
280
  CellSummary: action.cellSummary,
281
281
  });
282
- case exports.GRID_SET_MODULE_DROPDOWN_MENUITEMS: {
282
+ case exports.GRID_SET_SETTINGS_PANEL_ITEMS: {
283
283
  const actionTyped = action;
284
284
  const menuItems = actionTyped.menuItems.sort((a, b) => a.label < b.label ? -1 : a.label > b.label ? 1 : 0);
285
285
  return Object.assign({}, state, { SettingPanelModuleMenuItems: menuItems });
286
286
  }
287
- case exports.GRID_SET_MODULE_BUTTON_MENUITEMS: {
287
+ case exports.GRID_SET_MENU_MODULE_ITEMS: {
288
288
  const actionTyped = action;
289
289
  const menuItems = actionTyped.menuItems.sort((a, b) => a.label < b.label ? -1 : a.label > b.label ? 1 : 0);
290
290
  return Object.assign({}, state, { ModuleButtonMenuItems: menuItems });
@@ -5,7 +5,7 @@ import { ColumnFilter } from '../../types';
5
5
  /**
6
6
  * @ReduxAction A new caption / header has been set for a Column in the Layout
7
7
  */
8
- export declare const LAYOUT_SET_COLUMN_CAPTION = "LAYOUT_SET_COLUMN_CAPTION";
8
+ export declare const LAYOUT_COLUMN_SET_CAPTION = "LAYOUT_COLUMN_SET_CAPTION";
9
9
  /**
10
10
  * @ReduxAction Layout Module is ready
11
11
  */
@@ -33,11 +33,11 @@ export declare const LAYOUT_SAVE = "LAYOUT_SAVE";
33
33
  /**
34
34
  * @ReduxAction A Column has been added
35
35
  */
36
- export declare const LAYOUT_ADD_COLUMN = "LAYOUT_ADD_COLUMN";
36
+ export declare const LAYOUT_COLUMN_ADD = "LAYOUT_COLUMN_ADD";
37
37
  /**
38
38
  * @ReduxAction A Column has been removed
39
39
  */
40
- export declare const LAYOUT_REMOVE_COLUMN = "LAYOUT_REMOVE_COLUMN";
40
+ export declare const LAYOUT_COLUMN_REMOVE = "LAYOUT_COLUMN_REMOVE";
41
41
  /**
42
42
  * @ReduxAction A Column Filter has been added
43
43
  */
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutSelect = exports.LayoutRemoveColumn = exports.LayoutAddColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LayoutGridFilterClear = exports.LayoutGridFilterUnSuspend = exports.LayoutGridFilterSuspend = exports.LayoutGridFilterSet = exports.LayoutColumnFilterUnSuspendAll = exports.LayoutColumnFilterSuspendAll = exports.LayoutColumnFilterUnSuspend = exports.LayoutColumnFilterSuspend = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_GRID_FILTER_CLEAR = exports.LAYOUT_GRID_FILTER_SET = exports.LAYOUT_GRID_FILTER_UNSUSPEND = exports.LAYOUT_GRID_FILTER_SUSPEND = exports.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = exports.LAYOUT_COLUMN_FILTER_SUSPEND_ALL = exports.LAYOUT_COLUMN_FILTER_UNSUSPEND = exports.LAYOUT_COLUMN_FILTER_SUSPEND = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_REMOVE_COLUMN = exports.LAYOUT_ADD_COLUMN = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = exports.LAYOUT_READY = exports.LAYOUT_SET_COLUMN_CAPTION = void 0;
3
+ exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutSelect = exports.LayoutRemoveColumn = exports.LayoutAddColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LayoutGridFilterClear = exports.LayoutGridFilterUnSuspend = exports.LayoutGridFilterSuspend = exports.LayoutGridFilterSet = exports.LayoutColumnFilterUnSuspendAll = exports.LayoutColumnFilterSuspendAll = exports.LayoutColumnFilterUnSuspend = exports.LayoutColumnFilterSuspend = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_GRID_FILTER_CLEAR = exports.LAYOUT_GRID_FILTER_SET = exports.LAYOUT_GRID_FILTER_UNSUSPEND = exports.LAYOUT_GRID_FILTER_SUSPEND = exports.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = exports.LAYOUT_COLUMN_FILTER_SUSPEND_ALL = exports.LAYOUT_COLUMN_FILTER_UNSUSPEND = exports.LAYOUT_COLUMN_FILTER_SUSPEND = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_COLUMN_REMOVE = exports.LAYOUT_COLUMN_ADD = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = exports.LAYOUT_READY = exports.LAYOUT_COLUMN_SET_CAPTION = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
6
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
7
7
  /**
8
8
  * @ReduxAction A new caption / header has been set for a Column in the Layout
9
9
  */
10
- exports.LAYOUT_SET_COLUMN_CAPTION = 'LAYOUT_SET_COLUMN_CAPTION';
10
+ exports.LAYOUT_COLUMN_SET_CAPTION = 'LAYOUT_COLUMN_SET_CAPTION';
11
11
  /**
12
12
  * @ReduxAction Layout Module is ready
13
13
  */
@@ -35,11 +35,11 @@ exports.LAYOUT_SAVE = 'LAYOUT_SAVE';
35
35
  /**
36
36
  * @ReduxAction A Column has been added
37
37
  */
38
- exports.LAYOUT_ADD_COLUMN = 'LAYOUT_ADD_COLUMN';
38
+ exports.LAYOUT_COLUMN_ADD = 'LAYOUT_COLUMN_ADD';
39
39
  /**
40
40
  * @ReduxAction A Column has been removed
41
41
  */
42
- exports.LAYOUT_REMOVE_COLUMN = 'LAYOUT_REMOVE_COLUMN';
42
+ exports.LAYOUT_COLUMN_REMOVE = 'LAYOUT_COLUMN_REMOVE';
43
43
  /**
44
44
  * @ReduxAction A Column Filter has been added
45
45
  */
@@ -168,20 +168,20 @@ const LayoutSave = (layout) => ({
168
168
  });
169
169
  exports.LayoutSave = LayoutSave;
170
170
  const LayoutSetColumnCaption = (layoutName, columnId, caption) => ({
171
- type: exports.LAYOUT_SET_COLUMN_CAPTION,
171
+ type: exports.LAYOUT_COLUMN_SET_CAPTION,
172
172
  layoutName,
173
173
  columnId,
174
174
  caption,
175
175
  });
176
176
  exports.LayoutSetColumnCaption = LayoutSetColumnCaption;
177
177
  const LayoutAddColumn = (layoutName, columnId) => ({
178
- type: exports.LAYOUT_ADD_COLUMN,
178
+ type: exports.LAYOUT_COLUMN_ADD,
179
179
  layoutName,
180
180
  columnId,
181
181
  });
182
182
  exports.LayoutAddColumn = LayoutAddColumn;
183
183
  const LayoutRemoveColumn = (layoutName, columnId) => ({
184
- type: exports.LAYOUT_REMOVE_COLUMN,
184
+ type: exports.LAYOUT_COLUMN_REMOVE,
185
185
  layoutName,
186
186
  columnId,
187
187
  });
@@ -237,7 +237,7 @@ const LayoutReducer = (state = initialState, action) => {
237
237
  const newLayouts = state.Layouts.filter((abObject) => abObject.Uuid !== actionLayout.Uuid);
238
238
  return Object.assign(Object.assign({}, state), { CurrentLayout: state.CurrentLayout === actionLayout.Name ? newLayouts[0].Name : state.CurrentLayout, Layouts: newLayouts });
239
239
  }
240
- case exports.LAYOUT_SET_COLUMN_CAPTION: {
240
+ case exports.LAYOUT_COLUMN_SET_CAPTION: {
241
241
  const setColumnCaptionAction = action;
242
242
  const currentLayoutName = setColumnCaptionAction.layoutName;
243
243
  let currentLayout = state.Layouts.find((l) => l.Name === currentLayoutName);
@@ -253,7 +253,7 @@ const LayoutReducer = (state = initialState, action) => {
253
253
  }
254
254
  return state;
255
255
  }
256
- case exports.LAYOUT_ADD_COLUMN: {
256
+ case exports.LAYOUT_COLUMN_ADD: {
257
257
  const addColumnAction = action;
258
258
  const layoutname = addColumnAction.layoutName;
259
259
  const colToAdd = addColumnAction.columnId;
@@ -264,7 +264,7 @@ const LayoutReducer = (state = initialState, action) => {
264
264
  }
265
265
  return state;
266
266
  }
267
- case exports.LAYOUT_REMOVE_COLUMN: {
267
+ case exports.LAYOUT_COLUMN_REMOVE: {
268
268
  const removeColumnAction = action;
269
269
  const layoutname = removeColumnAction.layoutName;
270
270
  const colToRemove = removeColumnAction.columnId;
@@ -9,7 +9,7 @@ export declare const NAMED_QUERY_READY = "NAMED_QUERY_READY";
9
9
  */
10
10
  export declare const NAMED_QUERY_ADD = "NAMED_QUERY_ADD";
11
11
  /**
12
- * @ReduxAction Multiple Named Query has been added
12
+ * @ReduxAction Multiple Named Queries have been added
13
13
  */
14
14
  export declare const NAMED_QUERIES_ADD = "NAMED_QUERY_ADD_MULTIPLE";
15
15
  /**
@@ -13,7 +13,7 @@ exports.NAMED_QUERY_READY = 'NAMED_QUERY_READY';
13
13
  */
14
14
  exports.NAMED_QUERY_ADD = 'NAMED_QUERY_ADD';
15
15
  /**
16
- * @ReduxAction Multiple Named Query has been added
16
+ * @ReduxAction Multiple Named Queries have been added
17
17
  */
18
18
  exports.NAMED_QUERIES_ADD = 'NAMED_QUERY_ADD_MULTIPLE';
19
19
  /**
@@ -88,9 +88,9 @@ export declare const IPUSHPULL_SET_CURRENT_FOLDER = "IPUSHPULL_SET_CURRENT_FOLDE
88
88
  */
89
89
  export declare const IPUSHPULL_SET_CURRENT_PAGE = "IPUSHPULL_SET_CURRENT_PAGE";
90
90
  /**
91
- * @ReduxAction ipushpull set current available page (depending on current folder)
91
+ * @ReduxAction ipushpull set available pages (depending on current folder)
92
92
  */
93
- export declare const IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = "IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES";
93
+ export declare const IPUSHPULL_SET_AVAILABLE_PAGES = "IPUSHPULL_SET_AVAILABLE_PAGES";
94
94
  /**
95
95
  * @ReduxAction Live data has been sent to OpenFin
96
96
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PluginsReducer = exports.PluginsSetPluginState = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
3
+ exports.PluginsReducer = exports.PluginsSetPluginState = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
4
4
  /**
5
5
  * @ReduxAction Plugins have been instantiated
6
6
  */
@@ -90,9 +90,9 @@ exports.IPUSHPULL_SET_CURRENT_FOLDER = 'IPUSHPULL_SET_CURRENT_FOLDER';
90
90
  */
91
91
  exports.IPUSHPULL_SET_CURRENT_PAGE = 'IPUSHPULL_SET_CURRENT_PAGE';
92
92
  /**
93
- * @ReduxAction ipushpull set current available page (depending on current folder)
93
+ * @ReduxAction ipushpull set available pages (depending on current folder)
94
94
  */
95
- exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = 'IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES';
95
+ exports.IPUSHPULL_SET_AVAILABLE_PAGES = 'IPUSHPULL_SET_AVAILABLE_PAGES';
96
96
  /**
97
97
  * @ReduxAction Live data has been sent to OpenFin
98
98
  */
@@ -7,8 +7,8 @@ const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
7
7
  const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
8
8
  const extend_1 = tslib_1.__importDefault(require("lodash/extend"));
9
9
  const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
10
- const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
11
10
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
11
+ const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
12
12
  function customizer(objValue, srcValue) {
13
13
  if ((0, isArray_1.default)(objValue)) {
14
14
  if (!Array.isArray(srcValue)) {
@@ -35,7 +35,7 @@ function AddStateSource(stateObject = {}, source) {
35
35
  const traverseStateObject = (object) => {
36
36
  Object.values(object).forEach((value) => {
37
37
  // add a Source only to AdaptableObjects which do NOT already have a source defined
38
- if ((0, isAdaptableObject_1.isAdaptableObject)(value) && value.Source == null) {
38
+ if (AdaptableHelper_1.default.isAdaptableObject(value) && value.Source == null) {
39
39
  value.Source = source;
40
40
  }
41
41
  if (value !== null && typeof value === 'object') {
@@ -53,7 +53,7 @@ function ProcessKeepUserDefinedRevision(configState, currentUserState) {
53
53
  const stateValue = stateObject[key];
54
54
  if (Array.isArray(configValue) && Array.isArray(stateValue)) {
55
55
  const userDefinedItems = stateValue.filter((item) => {
56
- return (0, isAdaptableObject_1.isAdaptableObject)(item) && item.Source !== 'Config';
56
+ return AdaptableHelper_1.default.isAdaptableObject(item) && item.Source !== 'Config';
57
57
  });
58
58
  configObject[key] = configValue.concat(userDefinedItems);
59
59
  // we probably don't need to call traverseStateObject on the array as well,
@@ -35,7 +35,6 @@ const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux
35
35
  const NamedQueryRedux = tslib_1.__importStar(require("../ActionsReducers/NamedQueryRedux"));
36
36
  const NoteRedux = tslib_1.__importStar(require("../ActionsReducers/NoteRedux"));
37
37
  const PlusMinusRedux = tslib_1.__importStar(require("../ActionsReducers/PlusMinusRedux"));
38
- const QueryRedux = tslib_1.__importStar(require("../ActionsReducers/QueryRedux"));
39
38
  const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickSearchRedux"));
40
39
  const ScheduleRedux = tslib_1.__importStar(require("../ActionsReducers/ScheduleRedux"));
41
40
  const ShortcutRedux = tslib_1.__importStar(require("../ActionsReducers/ShortcutRedux"));
@@ -150,7 +149,6 @@ class AdaptableStore {
150
149
  Charting: ChartingRedux.ChartingReducer,
151
150
  StyledColumn: StyledColumnRedux.StyledColumnReducer,
152
151
  Note: NoteRedux.NoteReducer,
153
- Query: QueryRedux.QueryReducer,
154
152
  NamedQuery: NamedQueryRedux.NamedQueryReducer,
155
153
  };
156
154
  // allow plugins to participate in the root reducer
@@ -1017,7 +1015,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1017
1015
  case LayoutRedux.LAYOUT_EDIT:
1018
1016
  case LayoutRedux.LAYOUT_SAVE:
1019
1017
  case LayoutRedux.LAYOUT_DELETE:
1020
- case LayoutRedux.LAYOUT_SET_COLUMN_CAPTION:
1018
+ case LayoutRedux.LAYOUT_COLUMN_SET_CAPTION:
1021
1019
  case LayoutRedux.LAYOUT_SELECT: {
1022
1020
  const oldLayoutState = middlewareAPI.getState().Layout;
1023
1021
  // this must be called before 'next(action)'
@@ -1039,7 +1037,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1039
1037
  }
1040
1038
  if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
1041
1039
  returnAction.type == LayoutRedux.LAYOUT_DELETE ||
1042
- returnAction.type == LayoutRedux.LAYOUT_SET_COLUMN_CAPTION) {
1040
+ returnAction.type == LayoutRedux.LAYOUT_COLUMN_SET_CAPTION) {
1043
1041
  let gridState = middlewareAPI.getState().Grid;
1044
1042
  let currentLayout = newLayoutState.Layouts.find((l) => l.Name == newLayoutState.CurrentLayout);
1045
1043
  if (gridState.CurrentLayout) {
@@ -71,8 +71,7 @@ class AdaptableModuleBase {
71
71
  // override where necessary in base classes
72
72
  }
73
73
  setModuleEntitlement() {
74
- this.AccessLevel = this.api.internalApi
75
- .getEntitlementService()
74
+ this.AccessLevel = this.api.entitlementApi
76
75
  .getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
77
76
  }
78
77
  createModuleMenuItem(source) {
@@ -17,8 +17,7 @@ class ColumnFilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
17
17
  this.AccessLevel = 'Hidden';
18
18
  }
19
19
  else {
20
- this.AccessLevel = this.api.internalApi
21
- .getEntitlementService()
20
+ this.AccessLevel = this.api.entitlementApi
22
21
  .getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
23
22
  }
24
23
  }
@@ -149,12 +149,12 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
149
149
  }
150
150
  else if (preProcessedExport === true) {
151
151
  this.api.logInfo(`Export ${report.Name} (${exportDestination}) using data from the grid`);
152
- reportData = this.api.internalApi.getReportService().getReportData(report);
152
+ reportData = this.api.exportApi.internalApi.getReportData(report);
153
153
  }
154
154
  else if ((preProcessedExport === null || preProcessedExport === void 0 ? void 0 : preProcessedExport.rows) == undefined ||
155
155
  (preProcessedExport === null || preProcessedExport === void 0 ? void 0 : preProcessedExport.columns) == undefined) {
156
156
  this.api.logWarn(`Export ${report.Name} (${exportDestination}) : preProcessExport() returned an invalid ReportData object, fallback to data from the grid`);
157
- reportData = this.api.internalApi.getReportService().getReportData(report);
157
+ reportData = this.api.exportApi.internalApi.getReportData(report);
158
158
  }
159
159
  else {
160
160
  this.api.logInfo(`Export ${report.Name} (${exportDestination}) using data from preProcessExport()`);
@@ -162,7 +162,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
162
162
  if (!reportData.columns.length) {
163
163
  // an empty column array means that all columns have been exported
164
164
  // we have to update the report to reflect this
165
- reportData.columns = this.api.internalApi.getReportService().getReportDataColumns(report);
165
+ reportData.columns = this.api.exportApi.internalApi.getReportDataColumns(report);
166
166
  }
167
167
  }
168
168
  if (this.isCustomDestination(exportDestination)) {
@@ -188,13 +188,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
188
188
  }));
189
189
  }
190
190
  else if (customDestination) {
191
- const reportContext = {
192
- report: report,
193
- reportData,
194
- adaptableApi: this.api,
195
- userName: this.api.optionsApi.getUserName(),
196
- adaptableId: this.api.optionsApi.getAdaptableId(),
197
- };
191
+ const reportContext = Object.assign({ report: report, reportData }, this.api.internalApi.buildBaseContext());
198
192
  customDestination.onExport(reportContext);
199
193
  }
200
194
  }
@@ -228,22 +222,11 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
228
222
  const preProcessExportFn = this.api.optionsApi.getAdaptableOptions().exportOptions.preProcessExport;
229
223
  if (preProcessExportFn) {
230
224
  this.api.logInfo(`Export ${report.Name} : preProcessExport()`);
231
- return preProcessExportFn({
232
- report,
233
- adaptableApi: this.api,
234
- userName: this.api.optionsApi.getUserName(),
235
- adaptableId: this.api.optionsApi.getAdaptableId(),
236
- getReportColumns: (includePrimaryKey) => {
237
- return this.api.internalApi
238
- .getReportService()
239
- .getReportDataColumns(report, includePrimaryKey);
240
- },
241
- getReportRowData: (reportColumns, includePrimaryKey) => {
242
- return this.api.internalApi
243
- .getReportService()
244
- .getReportDataRows(report, reportColumns, includePrimaryKey);
245
- },
246
- });
225
+ return preProcessExportFn(Object.assign(Object.assign({ report }, this.api.internalApi.buildBaseContext()), { getReportColumns: (includePrimaryKey) => {
226
+ return this.api.exportApi.internalApi.getReportDataColumns(report, includePrimaryKey);
227
+ }, getReportRowData: (reportColumns, includePrimaryKey) => {
228
+ return this.api.exportApi.internalApi.getReportDataRows(report, reportColumns, includePrimaryKey);
229
+ } }));
247
230
  }
248
231
  return true;
249
232
  }
@@ -259,7 +242,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
259
242
  return;
260
243
  }
261
244
  const jsonContent = JSON.stringify(reportData);
262
- const jsonFileName = this.api.internalApi.getReportService().getReportFileName(report.Name, 'JSON') + '.json';
245
+ const jsonFileName = this.api.exportApi.internalApi.getReportFileName(report.Name, 'JSON') + '.json';
263
246
  Helper_1.Helper.createDownloadedFile(jsonContent, jsonFileName, 'application/json');
264
247
  }
265
248
  openReportInTablePopup(report, reportData) {
@@ -275,17 +258,13 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
275
258
  title = `${title} [${report.Name}]`;
276
259
  }
277
260
  if (report.Scope) {
278
- const scopeText = this.api.internalApi
279
- .getReportService()
280
- .GetReportColumnScopeShortDescription(report);
261
+ const scopeText = this.api.exportApi.internalApi.getReportColumnScopeShortDescription(report);
281
262
  if (scopeText === null || scopeText === void 0 ? void 0 : scopeText.length) {
282
263
  title = `${title} ${scopeText.join(',')}`;
283
264
  }
284
265
  }
285
266
  if (report.Query) {
286
- const queryText = this.api.internalApi
287
- .getReportService()
288
- .GetReportExpressionDescription(report, this.api.columnApi.getColumns());
267
+ const queryText = this.api.exportApi.internalApi.getReportExpressionDescription(report, this.api.columnApi.getColumns());
289
268
  if (queryText === null || queryText === void 0 ? void 0 : queryText.length) {
290
269
  title = `${title} ${queryText}`;
291
270
  }
@@ -305,7 +284,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
305
284
  this.showEmptyExportWarning();
306
285
  return;
307
286
  }
308
- const csvFileName = this.api.internalApi.getReportService().getReportFileName(report.Name, 'CSV') + '.csv';
287
+ const csvFileName = this.api.exportApi.internalApi.getReportFileName(report.Name, 'CSV') + '.csv';
309
288
  Helper_1.Helper.createDownloadedFile(csvContent, csvFileName, 'text/csv;encoding:utf-8');
310
289
  }
311
290
  convertReportToExcel(report, reportData) {
@@ -313,7 +292,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
313
292
  this.showEmptyExportWarning();
314
293
  return;
315
294
  }
316
- this.api.exportApi.exportDataToExcel(reportData, this.api.internalApi.getReportService().getReportFileName(report.Name, 'Excel'));
295
+ this.api.exportApi.exportDataToExcel(reportData, this.api.exportApi.internalApi.getReportFileName(report.Name, 'Excel'));
317
296
  }
318
297
  copyToClipboard(reportData) {
319
298
  const csvContent = this.createTabularContent(reportData);
@@ -324,15 +303,11 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
324
303
  Helper_1.Helper.copyToClipboard(csvContent);
325
304
  }
326
305
  createCSVContent(reportData) {
327
- const reportDataAsArray = this.api.internalApi
328
- .getReportService()
329
- .convertReportDataToArray(reportData);
306
+ const reportDataAsArray = this.api.exportApi.internalApi.convertReportDataToArray(reportData);
330
307
  return Helper_1.Helper.convertArrayToCsv(reportDataAsArray, ',');
331
308
  }
332
309
  createTabularContent(reportData) {
333
- const reportDataAsArray = this.api.internalApi
334
- .getReportService()
335
- .convertReportDataToArray(reportData);
310
+ const reportDataAsArray = this.api.exportApi.internalApi.convertReportDataToArray(reportData);
336
311
  return Helper_1.Helper.convertArrayToCsv(reportDataAsArray, '\t');
337
312
  }
338
313
  getTeamSharingAction() {
@@ -355,9 +330,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
355
330
  }));
356
331
  }
357
332
  toView(report) {
358
- const isSystemReport = this.api.internalApi
359
- .getReportService()
360
- .IsSystemReport(report.Name);
333
+ const isSystemReport = this.api.exportApi.internalApi.isSystemReport(report.Name);
361
334
  if (isSystemReport) {
362
335
  return {
363
336
  items: [
@@ -203,17 +203,9 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
203
203
  }
204
204
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
205
205
  var _a;
206
- const predicateDefHandlerContext = {
207
- value: dataChangedEvent.newValue,
208
- oldValue: dataChangedEvent.oldValue,
206
+ const predicateDefHandlerContext = Object.assign({ value: dataChangedEvent.newValue, oldValue: dataChangedEvent.oldValue,
209
207
  // TODO send real display value
210
- displayValue: null,
211
- node: dataChangedEvent.rowNode,
212
- column: dataChangedEvent.column,
213
- adaptableApi: this.api,
214
- userName: this.api.optionsApi.getUserName(),
215
- adaptableId: this.api.optionsApi.getAdaptableId(),
216
- };
208
+ displayValue: null, node: dataChangedEvent.rowNode, column: dataChangedEvent.column }, this.api.internalApi.buildBaseContext());
217
209
  return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
218
210
  }
219
211
  getTeamSharingAction() {
@@ -118,9 +118,8 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
118
118
  this.scheduleJobs = [];
119
119
  }
120
120
  getModuleAdaptableObjects(config) {
121
- const entitlementService = this.api.internalApi.getEntitlementService();
122
- const accessLevel = entitlementService.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
123
- const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
121
+ const accessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
122
+ const exportAcessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
124
123
  let allSchedules = [];
125
124
  if (accessLevel !== 'Hidden') {
126
125
  allSchedules.push(...this.api.scheduleApi.getReminderSchedules(config));
@@ -154,9 +153,8 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
154
153
  }).map((schedule) => this.toView(schedule));
155
154
  }
156
155
  getViewProperties() {
157
- const entitlementService = this.api.internalApi.getEntitlementService();
158
- const accessLevel = entitlementService.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
159
- const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
156
+ const accessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
157
+ const exportAcessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
160
158
  const abObjectTypes = [];
161
159
  const ippApi = this.api.pluginsApi.getipushpullPluginApi();
162
160
  const openFinApi = this.api.pluginsApi.getOpenFinPluginApi();
@@ -124,13 +124,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
124
124
  selectedCellInfo.gridCells.forEach((selectedCell) => {
125
125
  let newValue;
126
126
  if (typeof smartEditOperation === 'object') {
127
- const context = {
128
- smartEditValue: smartEditValue,
129
- currentCell: selectedCell,
130
- adaptableApi: this.api,
131
- userName: this.api.optionsApi.getUserName(),
132
- adaptableId: this.api.optionsApi.getAdaptableId(),
133
- };
127
+ const context = Object.assign({ smartEditValue: smartEditValue, currentCell: selectedCell }, this.api.internalApi.buildBaseContext());
134
128
  newValue = smartEditOperation.operation(context);
135
129
  }
136
130
  else {