@adaptabletools/adaptable 11.0.0-canary.3 → 11.0.0-canary.7

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 (267) hide show
  1. package/agGrid.d.ts +5 -4
  2. package/agGrid.js +9 -7
  3. package/base.css +135 -69
  4. package/bundle.cjs.js +104 -99
  5. package/index.css +136 -69
  6. package/package.json +3 -3
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -7
  13. package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -9
  14. package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
  15. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  16. package/src/AdaptableOptions/AlertOptions.js +2 -0
  17. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  18. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
  20. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  21. package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
  22. package/src/AdaptableOptions/StateOptions.d.ts +9 -8
  23. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  24. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
  25. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  26. package/src/Api/AdaptableApi.d.ts +6 -0
  27. package/src/Api/AlertApi.d.ts +2 -3
  28. package/src/Api/CalculatedColumnApi.d.ts +2 -9
  29. package/src/Api/ColumnApi.d.ts +0 -4
  30. package/src/Api/EventApi.d.ts +8 -3
  31. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  32. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  33. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  34. package/src/Api/GridApi.d.ts +13 -2
  35. package/src/Api/IPushPullApi.d.ts +1 -1
  36. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  37. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  38. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  39. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  40. package/src/Api/Implementation/ApiBase.d.ts +5 -2
  41. package/src/Api/Implementation/ApiBase.js +8 -2
  42. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
  43. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  44. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  45. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  46. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  47. package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
  48. package/src/Api/Implementation/GridApiImpl.js +27 -4
  49. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
  50. package/src/Api/Implementation/InternalApiImpl.js +7 -6
  51. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  52. package/src/Api/Implementation/LayoutApiImpl.js +11 -0
  53. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  54. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
  55. package/src/Api/Implementation/QueryLanguageApiImpl.js +20 -8
  56. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  57. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  58. package/src/Api/InternalApi.d.ts +2 -3
  59. package/src/Api/LayoutApi.d.ts +7 -0
  60. package/src/Api/OpenFinApi.d.ts +5 -0
  61. package/src/Api/PluginsApi.d.ts +29 -0
  62. package/src/Api/QueryApi.d.ts +2 -2
  63. package/src/Api/QueryLanguageApi.d.ts +23 -10
  64. package/src/Api/SettingsPanelApi.d.ts +16 -0
  65. package/src/Api/SettingsPanelApi.js +2 -0
  66. package/src/Api/UserInterfaceApi.d.ts +5 -2
  67. package/src/PredefinedConfig/AlertState.d.ts +8 -6
  68. package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -4
  69. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
  70. package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
  71. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  72. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  73. package/src/PredefinedConfig/Common/Enums.js +0 -2
  74. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  75. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  76. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  77. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
  78. package/src/PredefinedConfig/Common/Types.d.ts +3 -1
  79. package/src/PredefinedConfig/Common/Types.js +1 -0
  80. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  81. package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
  82. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  83. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  84. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  85. package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
  86. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  87. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  88. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  89. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  90. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  91. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  92. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  93. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  94. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  95. package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
  96. package/src/Redux/Store/AdaptableStore.js +34 -8
  97. package/src/Strategy/AlertModule.js +16 -6
  98. package/src/Strategy/CalculatedColumnModule.js +4 -4
  99. package/src/Strategy/ChartingModule.d.ts +3 -3
  100. package/src/Strategy/ChartingModule.js +2 -2
  101. package/src/Strategy/ConditionalStyleModule.js +4 -0
  102. package/src/Strategy/FlashingCellModule.js +4 -4
  103. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  104. package/src/Strategy/FreeTextColumnModule.js +11 -0
  105. package/src/Strategy/LayoutModule.js +1 -6
  106. package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
  107. package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
  108. package/src/Strategy/ToolPanelModule.js +5 -3
  109. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
  110. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
  111. package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
  112. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  113. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  114. package/src/Strategy/Utilities/getRuleViewItems.js +1 -3
  115. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +2 -1
  116. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -2
  117. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +23 -17
  118. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  119. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  120. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +24 -0
  121. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -0
  122. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  123. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  124. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  125. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  126. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
  127. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
  128. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
  129. package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
  130. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -2
  131. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
  132. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
  133. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  134. package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
  135. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  136. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  137. package/src/Utilities/ObjectFactory.js +1 -0
  138. package/src/Utilities/Services/AlertService.js +8 -4
  139. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
  140. package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
  141. package/src/Utilities/Services/DataService.js +6 -1
  142. package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
  143. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
  144. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
  145. package/src/Utilities/Services/LicenseService.js +1 -1
  146. package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
  147. package/src/Utilities/Services/QueryLanguageService.js +92 -28
  148. package/src/Utilities/Services/ReportService.js +6 -2
  149. package/src/Utilities/Services/TeamSharingService.js +5 -3
  150. package/src/View/AdaptablePopover/index.js +6 -1
  151. package/src/View/AdaptableView.js +1 -1
  152. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  153. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -5
  154. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  155. package/src/View/AdaptableWizardView/helper.js +5 -3
  156. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  157. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  158. package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
  159. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
  160. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  161. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
  162. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  163. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  164. package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
  165. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
  166. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
  167. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
  168. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
  169. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  170. package/src/View/ColorPicker.d.ts +1 -1
  171. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  172. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  173. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  174. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  175. package/src/View/Components/EntityRulesEditor/index.js +11 -12
  176. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  177. package/src/View/Components/FilterForm/QuickFilterForm.js +6 -5
  178. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  179. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  180. package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
  181. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  182. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -88
  183. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  184. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  185. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  186. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  187. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  188. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  189. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  190. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
  191. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  192. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  193. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  194. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  195. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  196. package/src/View/Components/ScopeComponent.js +4 -1
  197. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +5 -1
  198. package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
  199. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  200. package/src/View/Components/ValueSelector/index.js +1 -1
  201. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  202. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  203. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  204. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +7 -0
  205. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  206. package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
  207. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  208. package/src/View/Dashboard/Dashboard.js +2 -3
  209. package/src/View/Dashboard/DashboardPopup.js +3 -1
  210. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  211. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  212. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  213. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  214. package/src/View/Filter/FilterViewPanel.js +1 -3
  215. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
  216. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
  217. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  218. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  219. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  220. package/src/View/Layout/Wizard/LayoutEditor/index.js +6 -2
  221. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  222. package/src/View/License/LicenseWatermark.js +1 -1
  223. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  224. package/src/View/Query/QueryViewPanel.js +3 -1
  225. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
  226. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  227. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  228. package/src/View/SpecialColumnSettingsWizardStep.js +1 -2
  229. package/src/View/UIHelper.js +4 -1
  230. package/src/View/Wizard/AdaptableWizard.js +12 -3
  231. package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
  232. package/src/agGrid/Adaptable.d.ts +3 -3
  233. package/src/agGrid/Adaptable.js +117 -77
  234. package/src/agGrid/agGridHelper.js +4 -9
  235. package/src/agGrid/agGridMenuHelper.js +4 -8
  236. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  237. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  238. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
  239. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
  240. package/src/components/ApplicationIcon.d.ts +1 -0
  241. package/src/components/ApplicationIcon.js +2 -2
  242. package/src/components/Dashboard/Dashboard.js +4 -1
  243. package/src/components/Datepicker/index.d.ts +1 -1
  244. package/src/components/Dropdown/index.js +8 -1
  245. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  246. package/src/components/ExpressionEditor/EditorInput.js +5 -2
  247. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  248. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  249. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -2
  250. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
  251. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
  252. package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
  253. package/src/components/ExpressionEditor/index.d.ts +2 -1
  254. package/src/components/ExpressionEditor/index.js +20 -6
  255. package/src/components/Input/index.d.ts +1 -1
  256. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  257. package/src/components/Logo/index.js +8 -7
  258. package/src/components/PopupWithFooter.d.ts +1 -1
  259. package/src/components/SizedContainer/index.js +7 -1
  260. package/src/components/Textarea/index.d.ts +1 -1
  261. package/src/components/WindowModal/WindowModal.js +4 -1
  262. package/src/metamodel/adaptable.metamodel.d.ts +114 -59
  263. package/src/metamodel/adaptable.metamodel.js +373 -242
  264. package/src/types.d.ts +9 -6
  265. package/themes/dark.css +4 -4
  266. package/version.d.ts +1 -1
  267. package/version.js +1 -1
@@ -38,6 +38,7 @@ const DataChangeHistoryApiImpl_1 = require("./DataChangeHistoryApiImpl");
38
38
  const QueryLanguageApiImpl_1 = require("./QueryLanguageApiImpl");
39
39
  const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
40
40
  const ChartingApiImpl_1 = require("./ChartingApiImpl");
41
+ const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
41
42
  class AdaptableApiImpl {
42
43
  constructor(adaptable) {
43
44
  this.adaptable = adaptable;
@@ -69,6 +70,7 @@ class AdaptableApiImpl {
69
70
  this.smartEditApi = new SmartEditApiImpl_1.SmartEditApiImpl(adaptable);
70
71
  this.filterApi = new FilterApiImpl_1.FilterApiImpl(adaptable);
71
72
  this.systemStatusApi = new SystemStatusApiImpl_1.SystemStatusApiImpl(adaptable);
73
+ this.settingsPanelApi = new SettingsPanelApiImpl_1.SettingsPanelApiImpl(adaptable);
72
74
  this.themeApi = new ThemeApiImpl_1.ThemeApiImpl(adaptable);
73
75
  this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
74
76
  this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
@@ -6,8 +6,7 @@ import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
6
6
  import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
7
7
  import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
8
8
  import { AdaptableForm, AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
9
- import { AlertButtonContext } from '../../AdaptableOptions/NotificationsOptions';
10
- import { AdaptableMessageType } from '../../types';
9
+ import { AdaptableMessageType, AlertButtonContext } from '../../types';
11
10
  export declare class AlertApiImpl extends ApiBase implements AlertApi {
12
11
  getAlertState(): AlertState;
13
12
  getAdaptableFormByName(name: string): AdaptableForm<AlertButtonContext> | undefined;
@@ -16,7 +16,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
16
16
  }
17
17
  getAdaptableFormByName(name) {
18
18
  var _a;
19
- const alertForms = this.getNotificationsOptions().alertForms || [];
19
+ const alertForms = this.getAlertOptions().alertForms || [];
20
20
  return (_a = alertForms.find((f) => f.name === name)) === null || _a === void 0 ? void 0 : _a.form;
21
21
  }
22
22
  getAlertDefinitions() {
@@ -57,7 +57,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
57
57
  }
58
58
  actions.forEach((action) => {
59
59
  var _a;
60
- const buttonOnClick = (_a = this.getNotificationsOptions().actionHandlers) === null || _a === void 0 ? void 0 : _a.find((x) => x.name === action);
60
+ const buttonOnClick = (_a = this.getAlertOptions().actionHandlers) === null || _a === void 0 ? void 0 : _a.find((x) => x.name === action);
61
61
  buttonOnClick === null || buttonOnClick === void 0 ? void 0 : buttonOnClick.handler(button, context);
62
62
  this.adaptable.api.alertApi.executeAlertAction(action, {
63
63
  alertDefinition: context.alert.alertDefinition,
@@ -79,10 +79,13 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
79
79
  switch (highhlightType) {
80
80
  case 'Error':
81
81
  backgroundColor = 'var(--ab-color-error)';
82
+ break;
82
83
  case 'Info':
83
84
  backgroundColor = 'var(--ab-color-info)';
85
+ break;
84
86
  case 'Success':
85
87
  backgroundColor = 'var(--ab-color-success)';
88
+ break;
86
89
  case 'Warning':
87
90
  backgroundColor = 'var(--ab-color-warn)';
88
91
  }
@@ -92,7 +95,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
92
95
  highlightStyle: {
93
96
  BackColor: backgroundColor,
94
97
  },
95
- timeout: this.getNotificationsOptions().cellHighlightDuration,
98
+ timeout: this.getAlertOptions().cellHighlightDuration,
96
99
  });
97
100
  return;
98
101
  }
@@ -132,9 +135,12 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
132
135
  // 3 things we always do with an alert are:
133
136
  // 1. Dispatch the Alert (so it appears in the toolbar)
134
137
  this.addUidToAdaptableObject(alertToShow);
135
- this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.getNotificationsOptions().maxAlertsInStore));
138
+ this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.getAlertOptions().maxAlertsInStore));
136
139
  // 2. Publish the Alert Fired Event
137
- const alertFiredInfo = { adaptableApi: this.adaptable.api, alert: alertToShow };
140
+ const alertFiredInfo = {
141
+ adaptableApi: this.adaptable.api,
142
+ alert: alertToShow,
143
+ };
138
144
  const results = await this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
139
145
  const showPopup = results.reduce((endResult, aResult) => {
140
146
  return endResult && aResult !== false;
@@ -175,7 +181,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
175
181
  this.adaptable.api.gridApi.refreshCells([alertNode], [dataChangedInfo.column.columnId]);
176
182
  setTimeout(() => {
177
183
  this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
178
- }, this.adaptable.adaptableOptions.notificationsOptions.cellHighlightDuration);
184
+ }, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
179
185
  }
180
186
  }
181
187
  if (alertProperties.HighlightRow && dataChangedInfo) {
@@ -187,7 +193,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
187
193
  this.adaptable.api.gridApi.refreshRowNode(alertNode);
188
194
  setTimeout(() => {
189
195
  this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
190
- }, this.adaptable.adaptableOptions.notificationsOptions.cellHighlightDuration);
196
+ }, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
191
197
  }
192
198
  }
193
199
  if (alertProperties.LogToConsole) {
@@ -196,7 +202,10 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
196
202
  }
197
203
  }
198
204
  publishAlertFiredEvent(alertToFire) {
199
- const alertFiredInfo = { adaptableApi: this.adaptable.api, alert: alertToFire };
205
+ const alertFiredInfo = {
206
+ adaptableApi: this.adaptable.api,
207
+ alert: alertToFire,
208
+ };
200
209
  this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
201
210
  }
202
211
  displayMessageAlertPopup(alertToDisplayAsPopup) {
@@ -242,7 +251,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
242
251
  }
243
252
  getAlertDescription(alertDefinition, dataChangedInfo) {
244
253
  var _a;
245
- const alertMessageFunction = (_a = this.adaptable.adaptableOptions.notificationsOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
254
+ const alertMessageFunction = (_a = this.adaptable.adaptableOptions.alertOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
246
255
  if (alertMessageFunction) {
247
256
  const returnText = alertMessageFunction(alertDefinition, dataChangedInfo);
248
257
  if (returnText) {
@@ -260,7 +269,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
260
269
  var _a, _b;
261
270
  let ruleDescription = alert.Rule.Predicate
262
271
  ? this.adaptable.api.predicateApi.predicateToString(alert.Rule.Predicate)
263
- : (_b = (_a = alert.Rule.BooleanExpression) !== null && _a !== void 0 ? _a : alert.Rule.ObservableExpression) !== null && _b !== void 0 ? _b : alert.Rule.AggregationExpression;
272
+ : (_b = (_a = alert.Rule.BooleanExpression) !== null && _a !== void 0 ? _a : alert.Rule.ObservableExpression) !== null && _b !== void 0 ? _b : alert.Rule.AggregatedBooleanExpression;
264
273
  return ruleDescription;
265
274
  }
266
275
  }
@@ -11,7 +11,8 @@ import { ContainerOptions, DashboardOptions, EditOptions, FilterOptions, General
11
11
  import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOptions';
12
12
  import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
13
13
  import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
14
- import { QueryLanguageOptions } from '../../AdaptableOptions/QueryLanguageOptions';
14
+ import { AdaptableQLOptions, ExpressionOptions } from '../../AdaptableOptions/AdaptableQLOptions';
15
+ import { AlertOptions } from '../../AdaptableOptions/AlertOptions';
15
16
  export declare abstract class ApiBase {
16
17
  protected adaptable: IAdaptable;
17
18
  /**
@@ -46,6 +47,7 @@ export declare abstract class ApiBase {
46
47
  protected getOptions(): AdaptableOptions;
47
48
  protected getContainerOptions(): ContainerOptions;
48
49
  protected getNotificationsOptions(): NotificationsOptions;
50
+ protected getAlertOptions(): AlertOptions;
49
51
  protected getDashboardOptions(): DashboardOptions;
50
52
  protected getEditOptions(): EditOptions;
51
53
  protected getExportOptions(): ExportOptions;
@@ -53,11 +55,12 @@ export declare abstract class ApiBase {
53
55
  protected getLayoutOptions(): LayoutOptions;
54
56
  protected getMenuOptions(): MenuOptions;
55
57
  protected getFilterOptions(): FilterOptions;
58
+ protected getAdaptableQLOptions(): AdaptableQLOptions;
56
59
  protected getSearchOptions(): SearchOptions;
57
60
  protected getStateOptions(): StateOptions;
58
61
  protected getTeamSharingOptions(): TeamSharingOptions;
59
62
  protected getUserInterfaceOptions(): UserInterfaceOptions;
60
63
  protected getToolPanelOptions(): ToolPanelOptions;
61
- protected getQueryLanguageOptions(): QueryLanguageOptions;
64
+ protected getExpressionOptions(): ExpressionOptions;
62
65
  protected getAdaptableApi(): AdaptableApi;
63
66
  }
@@ -77,6 +77,9 @@ class ApiBase {
77
77
  getNotificationsOptions() {
78
78
  return this.getOptions().notificationsOptions;
79
79
  }
80
+ getAlertOptions() {
81
+ return this.getOptions().alertOptions;
82
+ }
80
83
  getDashboardOptions() {
81
84
  return this.getOptions().dashboardOptions;
82
85
  }
@@ -98,6 +101,9 @@ class ApiBase {
98
101
  getFilterOptions() {
99
102
  return this.getOptions().filterOptions;
100
103
  }
104
+ getAdaptableQLOptions() {
105
+ return this.getOptions().adaptableQLOptions;
106
+ }
101
107
  getSearchOptions() {
102
108
  return this.getOptions().searchOptions;
103
109
  }
@@ -113,8 +119,8 @@ class ApiBase {
113
119
  getToolPanelOptions() {
114
120
  return this.getOptions().toolPanelOptions;
115
121
  }
116
- getQueryLanguageOptions() {
117
- return this.getOptions().queryLanguageOptions;
122
+ getExpressionOptions() {
123
+ return this.getAdaptableQLOptions().expressionOptions;
118
124
  }
119
125
  getAdaptableApi() {
120
126
  return this.adaptable.api;
@@ -29,6 +29,7 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
29
29
  return this.getCalculatedColumnById(calculatedColumn.Uuid);
30
30
  }
31
31
  editCalculatedColumns(calculatedColumns) {
32
+ // FIXME AFL extend Redux to handle all the edits in one run
32
33
  calculatedColumns.forEach((cc) => {
33
34
  this.editCalculatedColumn(cc);
34
35
  });
@@ -63,16 +64,14 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
63
64
  getCalculatedColumnsReferencingColumnId(columnId) {
64
65
  var calcColumns = [];
65
66
  this.getAllCalculatedColumn().forEach((calculatedColumn) => {
66
- var _a;
67
- if (this.adaptable.api.columnApi.isColumnReferencedInExpression(columnId, (_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression)) {
67
+ if (this.adaptable.api.columnApi.isColumnReferencedInExpression(columnId, this.adaptable.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) {
68
68
  calcColumns.push(calculatedColumn);
69
69
  }
70
70
  });
71
71
  return calcColumns;
72
72
  }
73
73
  getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
74
- var _a;
75
- const columnIds = this.adaptable.api.queryLanguageApi.getColumnsFromExpression((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression);
74
+ const columnIds = this.adaptable.api.queryLanguageApi.getColumnsFromExpression(this.adaptable.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query));
76
75
  return columnIds;
77
76
  }
78
77
  getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId) {
@@ -42,7 +42,6 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
42
42
  getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
43
43
  getColumnsOfType(dataType: DataType): AdaptableColumn[];
44
44
  getNumericColumns(): AdaptableColumn[];
45
- getNumericArrayColumns(): AdaptableColumn[];
46
45
  getStringColumns(): AdaptableColumn[];
47
46
  getDateColumns(): AdaptableColumn[];
48
47
  getBooleanColumns(): AdaptableColumn[];
@@ -224,8 +224,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
224
224
  return this.getDateColumns();
225
225
  case Enums_1.DataType.Number:
226
226
  return this.getNumericColumns();
227
- case Enums_1.DataType.NumberArray:
228
- return this.getNumericArrayColumns();
229
227
  case Enums_1.DataType.String:
230
228
  return this.getStringColumns();
231
229
  default:
@@ -235,9 +233,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
235
233
  getNumericColumns() {
236
234
  return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.Number);
237
235
  }
238
- getNumericArrayColumns() {
239
- return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.NumberArray);
240
- }
241
236
  getStringColumns() {
242
237
  return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.String);
243
238
  }
@@ -13,11 +13,6 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
13
13
  }): FreeTextColumn;
14
14
  addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
15
15
  addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
16
- createFreeTextColumn({ columnName, columnId, defaultValue, }: {
17
- columnId: string;
18
- columnName?: string;
19
- defaultValue: string;
20
- }): FreeTextColumn;
21
16
  deleteFreeTextColumn(columnId: string): void;
22
17
  showFreeTextColumnPopup(): void;
23
18
  getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
@@ -4,7 +4,6 @@ exports.FreeTextColumnApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
6
6
  const ApiBase_1 = require("./ApiBase");
7
- const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
8
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
@@ -67,14 +66,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
67
66
  this.dispatchAction(FreeTextColumnRedux.FreeTextColumnEdit(freeTextColumn));
68
67
  }
69
68
  }
70
- createFreeTextColumn({ columnName, columnId, defaultValue = null, }) {
71
- let freeTextColumn = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(this.adaptable.api.internalApi.getAdaptableOptions().filterOptions
72
- .enableFilterOnSpecialColumns);
73
- freeTextColumn.ColumnId = columnId;
74
- freeTextColumn.FriendlyName = columnName || columnId;
75
- freeTextColumn.DefaultValue = defaultValue;
76
- return this.addFreeTextColumn(freeTextColumn);
77
- }
78
69
  deleteFreeTextColumn(columnId) {
79
70
  let freeTextColumn = this.getAllFreeTextColumn().find((ftc) => ftc.ColumnId == columnId);
80
71
  if (this.checkItemExists(freeTextColumn, columnId, ModuleConstants.FreeTextColumnModuleId)) {
@@ -7,7 +7,8 @@ import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
7
7
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { DataChangedInfo, AccessLevel, AdaptableModule } from '../../types';
10
- import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
+ import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
11
+ import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
12
  import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
12
13
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
14
  export declare class GridApiImpl extends ApiBase implements GridApi {
@@ -50,6 +51,8 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
50
51
  deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
51
52
  deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
52
53
  selectCellRange(gridCellRange: GridCellRange): void;
54
+ selectColumn(columnId: string): void;
55
+ selectColumns(columnIds: string[]): void;
53
56
  getFirstRowNode(): RowNode;
54
57
  getVisibleRowNodes(): RowNode[];
55
58
  getGridCellFromRowNode(rowwNode: RowNode, columnId: string): GridCell | undefined;
@@ -149,14 +149,37 @@ class GridApiImpl extends ApiBase_1.ApiBase {
149
149
  this.adaptable.deSelectNodes(rowNodes, clearSelection);
150
150
  }
151
151
  selectCellRange(gridCellRange) {
152
- const startNode = this.adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueStart);
153
- const endNode = gridCellRange.primaryKeyValueEnd
154
- ? this.adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueEnd)
155
- : startNode;
152
+ if (gridCellRange == undefined) {
153
+ return;
154
+ }
155
+ if (gridCellRange.primaryKeyValueStart == undefined &&
156
+ gridCellRange.rowIndexStart == undefined) {
157
+ return;
158
+ }
159
+ let startNode;
160
+ let endNode;
161
+ startNode = gridCellRange.primaryKeyValueEnd
162
+ ? this.adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueStart)
163
+ : this.adaptable.getRowNodeByIndex(gridCellRange.rowIndexStart);
164
+ if (gridCellRange.primaryKeyValueEnd) {
165
+ endNode = this.adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueEnd);
166
+ }
167
+ else if (gridCellRange.rowIndexEnd) {
168
+ endNode = this.adaptable.getRowNodeByIndex(gridCellRange.rowIndexEnd);
169
+ }
170
+ else {
171
+ endNode = startNode;
172
+ }
156
173
  if (startNode && endNode) {
157
174
  this.adaptable.selectCells(gridCellRange.columnIds, startNode, endNode);
158
175
  }
159
176
  }
177
+ selectColumn(columnId) {
178
+ this.selectColumns([columnId]);
179
+ }
180
+ selectColumns(columnIds) {
181
+ this.adaptable.api.columnApi.selectColumns(columnIds);
182
+ }
160
183
  getFirstRowNode() {
161
184
  return this.adaptable.getFirstRowNode();
162
185
  }
@@ -8,7 +8,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
8
8
  import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
9
9
  import { SelectedCellInfo } from '../../PredefinedConfig/Selection/SelectedCellInfo';
10
10
  import { SelectedRowInfo } from '../../PredefinedConfig/Selection/SelectedRowInfo';
11
- import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
11
+ import { AdaptableModule, AdaptableQLModule } from '../../PredefinedConfig/Common/Types';
12
12
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
13
13
  import { DataChangedInfo } from '../../PredefinedConfig/Common/DataChangedInfo';
14
14
  import { AdaptableOptions, AdaptableState, AlertButtonContext, Layout, SystemStatusMessageInfo } from '../../types';
@@ -16,7 +16,6 @@ import { IValidationService } from '../../Utilities/Services/Interface/IValidati
16
16
  import { IModuleService } from '../../Utilities/Services/Interface/IModuleService';
17
17
  import { IReportService } from '../../Utilities/Services/Interface/IReportService';
18
18
  import { ICalculatedColumnExpressionService } from '../../Utilities/Services/Interface/ICalculatedColumnExpressionService';
19
- import { ServerSearchOption } from '../../AdaptableOptions/SearchOptions';
20
19
  import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
21
20
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
22
21
  import { IDataService } from '../../Utilities/Services/Interface/IDataService';
@@ -90,7 +89,7 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
90
89
  getTeamSharingService(): ITeamSharingService;
91
90
  getMetamodelService(): IMetamodelService;
92
91
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
93
- isServerSearchOptionSet(serverSearchOption: ServerSearchOption): boolean;
92
+ runModuleInAdaptableQL(adaptableQLModule: AdaptableQLModule): boolean;
94
93
  buildStandaloneColumnHeader(column: AdaptableColumn): AdaptableMenuItem[];
95
94
  clearFlashingCellState(): void;
96
95
  clearUpdatedRowState(): void;
@@ -25,7 +25,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
25
25
  let adaptableAlertForm;
26
26
  let isActionForm = false;
27
27
  if (typeof alertForm === 'string') {
28
- const alertForms = this.getNotificationsOptions().alertForms || [];
28
+ const alertForms = this.getAlertOptions().alertForms || [];
29
29
  adaptableAlertForm = (_a = alertForms.find((f) => f.name === alertForm)) === null || _a === void 0 ? void 0 : _a.form;
30
30
  }
31
31
  else {
@@ -68,7 +68,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
68
68
  const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
69
69
  const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
70
70
  if (!columnId) {
71
- return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_ALERT_ROW_KEY]);
71
+ return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_CELL_ROW_KEY]);
72
72
  }
73
73
  return toFlashingAlert(forPrimaryKey[columnId]);
74
74
  }
@@ -238,9 +238,9 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
238
238
  var _a, _b;
239
239
  return ((_b = (_a = this.adaptable.ModuleService.getModuleInfoByModule(adaptableModule)) === null || _a === void 0 ? void 0 : _a.FriendlyName) !== null && _b !== void 0 ? _b : adaptableModule);
240
240
  }
241
- isServerSearchOptionSet(serverSearchOption) {
242
- const serverSearchOptions = this.getSearchOptions().serverSearchOptions;
243
- return serverSearchOptions != undefined && serverSearchOptions.includes(serverSearchOption);
241
+ runModuleInAdaptableQL(adaptableQLModule) {
242
+ const adaptableQLModules = this.getAdaptableQLOptions().externallyEvaluatedModules;
243
+ return !adaptableQLModules.includes(adaptableQLModule);
244
244
  }
245
245
  buildStandaloneColumnHeader(column) {
246
246
  return this.adaptable.buildStandaloneColumnHeader(column);
@@ -310,6 +310,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
310
310
  .forEach((calculatedColumn) => {
311
311
  firstRowData[calculatedColumn.ColumnId] = this.adaptable.api.gridApi.getCellRawValue(firstRowPrimaryKeyValue, calculatedColumn.ColumnId);
312
312
  });
313
+ // FIXME AFL shouldn't here be also the FreeTextColumn??
313
314
  }
314
315
  return firstRowData;
315
316
  }
@@ -379,7 +380,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
379
380
  }
380
381
  }
381
382
  isTextComparisonCaseSensitive() {
382
- return this.adaptable.adaptableOptions.generalOptions.caseSensitiveTextComparisons;
383
+ return this.adaptable.adaptableOptions.adaptableQLOptions.caseSensitiveTextComparisons;
383
384
  }
384
385
  executeWithProgressIndicator(label, executeFn) {
385
386
  this.dispatchReduxAction(SystemRedux_1.SystemProgressIndicatorShow(label));
@@ -1,6 +1,7 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { LayoutApi } from '../LayoutApi';
3
3
  import { LayoutState, Layout } from '../../PredefinedConfig/LayoutState';
4
+ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
4
5
  export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
5
6
  getLayoutState(): LayoutState;
6
7
  shouldAutoSaveLayout: (layout?: Layout) => boolean;
@@ -27,6 +28,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
27
28
  getLayoutDescription(layout: Layout): string;
28
29
  private getColumnSort;
29
30
  createDefaultLayoutIfNeeded(): Layout | null;
31
+ showChangeColumnCaption(column: AdaptableColumn): void;
30
32
  showLayoutPopup(): void;
31
33
  isCurrentLayoutReadOnly(): boolean;
32
34
  }
@@ -14,6 +14,8 @@ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
14
14
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
15
15
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
16
16
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
17
+ const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
18
+ const LayoutRedux_1 = require("../../Redux/ActionsReducers/LayoutRedux");
17
19
  class LayoutApiImpl extends ApiBase_1.ApiBase {
18
20
  constructor() {
19
21
  super(...arguments);
@@ -229,6 +231,15 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
229
231
  }
230
232
  }
231
233
  }
234
+ showChangeColumnCaption(column) {
235
+ this.dispatchAction(PopupRedux_1.PopupShowPrompt({
236
+ Header: `Change caption for '${column.friendlyName}'`,
237
+ Msg: '',
238
+ DefaultValue: column.friendlyName,
239
+ ConfirmActionCreator: (inputText) => inputText !== column.friendlyName &&
240
+ LayoutRedux_1.LayoutSetColumnCaption(this.getCurrentLayoutName(), column.columnId, inputText),
241
+ }));
242
+ }
232
243
  showLayoutPopup() {
233
244
  this.showModulePopup(ModuleConstants.LayoutModuleId);
234
245
  }
@@ -25,7 +25,10 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
25
25
  // check that there is no other existing named query with the same name
26
26
  const duplicate = this.getAllNamedQuery().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
27
27
  if (duplicate) {
28
- return { valid: false, message: 'A Named Query already exists with that name' };
28
+ return {
29
+ valid: false,
30
+ message: 'A Named Query already exists with that name',
31
+ };
29
32
  }
30
33
  return { valid: true, message: '' };
31
34
  }
@@ -2,12 +2,15 @@ import { ApiBase } from './ApiBase';
2
2
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
3
3
  import { QueryLanguageApi } from '../QueryLanguageApi';
4
4
  import { ExpressionFunctionMap } from '../../types';
5
+ import { AdaptableQuery } from '../../PredefinedConfig/Common/AdaptableQuery';
5
6
  export declare class QueryLanguageApiImpl extends ApiBase implements QueryLanguageApi {
6
7
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
7
8
  isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
8
- isValidAggregationExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
9
+ isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
10
+ isValidAggregatedScalarExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
9
11
  getASTForExpression(query: string): any;
10
12
  getColumnsFromExpression(expression: string): string[];
11
13
  getQueryableColumnIds(): string[] | undefined;
12
14
  getModuleExpressionFunctionMap(): ExpressionFunctionMap;
15
+ getAdaptableQueryExpression(query: Partial<AdaptableQuery>): string | undefined;
13
16
  }
@@ -8,7 +8,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
8
8
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
9
9
  class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
10
10
  isValidBooleanExpression(query, module, validationErrorMessage) {
11
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
11
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
12
12
  .getQueryLanguageService()
13
13
  .validateBoolean(query, module, { force: true });
14
14
  if (!isValid && validationErrorMessage) {
@@ -17,7 +17,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
17
17
  return isValid;
18
18
  }
19
19
  isValidObservableExpression(expression, module, validationErrorMessage) {
20
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
20
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
21
21
  .getQueryLanguageService()
22
22
  .validateObservable(expression, module);
23
23
  if (!isValid && validationErrorMessage) {
@@ -25,10 +25,19 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
25
25
  }
26
26
  return isValid;
27
27
  }
28
- isValidAggregationExpression(expression, module, validationErrorMessage) {
29
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
28
+ isValidAggregatedBooleanExpression(expression, module, validationErrorMessage) {
29
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
30
30
  .getQueryLanguageService()
31
- .validateAggregation(expression, module);
31
+ .validateAggregatedBoolean(expression, module);
32
+ if (!isValid && validationErrorMessage) {
33
+ LoggingHelper_1.LogAdaptableWarning(`${validationErrorMessage} :: ${errorMessage}`);
34
+ }
35
+ return isValid;
36
+ }
37
+ isValidAggregatedScalarExpression(expression, module, validationErrorMessage) {
38
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
39
+ .getQueryLanguageService()
40
+ .validateAggregatedScalar(expression, module);
32
41
  if (!isValid && validationErrorMessage) {
33
42
  LoggingHelper_1.LogAdaptableWarning(`${validationErrorMessage} :: ${errorMessage}`);
34
43
  }
@@ -51,8 +60,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
51
60
  }
52
61
  }
53
62
  getQueryableColumnIds() {
54
- let queryableColumns = this.getQueryLanguageOptions()
55
- .queryableColumns;
63
+ let queryableColumns = this.getExpressionOptions().queryableColumns;
56
64
  if (!queryableColumns) {
57
65
  return undefined;
58
66
  }
@@ -68,7 +76,11 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
68
76
  }
69
77
  }
70
78
  getModuleExpressionFunctionMap() {
71
- return this.getQueryLanguageOptions().moduleExpressionFunctions;
79
+ return this.getExpressionOptions().moduleExpressionFunctions;
80
+ }
81
+ getAdaptableQueryExpression(query) {
82
+ var _a, _b, _c, _d;
83
+ return ((_d = (_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.AggregatedBooleanExpression) !== null && _d !== void 0 ? _d : query.AggregatedScalarExpression);
72
84
  }
73
85
  }
74
86
  exports.QueryLanguageApiImpl = QueryLanguageApiImpl;
@@ -0,0 +1,7 @@
1
+ import { SettingsPanelApi } from '../SettingsPanelApi';
2
+ import { ApiBase } from './ApiBase';
3
+ import { AdaptableModule } from '../../../types';
4
+ export declare class SettingsPanelApiImpl extends ApiBase implements SettingsPanelApi {
5
+ showSettingsPanel(moduleName?: AdaptableModule): void;
6
+ showCustomSettingsPanel(name: string): void;
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsPanelApiImpl = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ApiBase_1 = require("./ApiBase");
6
+ const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
7
+ class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
8
+ showSettingsPanel(moduleName) {
9
+ this.dispatchAction(PopupRedux.PopupShowScreen(moduleName));
10
+ }
11
+ showCustomSettingsPanel(name) {
12
+ this.dispatchAction(PopupRedux.PopupShowScreen('CustomSettingsPanelModule', name));
13
+ }
14
+ }
15
+ exports.SettingsPanelApiImpl = SettingsPanelApiImpl;
@@ -6,7 +6,7 @@ import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
6
6
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
7
7
  import { SelectedCellInfo } from '../PredefinedConfig/Selection/SelectedCellInfo';
8
8
  import { SelectedRowInfo } from '../PredefinedConfig/Selection/SelectedRowInfo';
9
- import { AdaptableModule } from '../PredefinedConfig/Common/Types';
9
+ import { AdaptableModule, AdaptableQLModule } from '../PredefinedConfig/Common/Types';
10
10
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
11
11
  import { IAdaptable } from '../AdaptableInterfaces/IAdaptable';
12
12
  import { IValidationService } from '../Utilities/Services/Interface/IValidationService';
@@ -15,7 +15,6 @@ import { IReportService } from '../Utilities/Services/Interface/IReportService';
15
15
  import { ICalculatedColumnExpressionService } from '../Utilities/Services/Interface/ICalculatedColumnExpressionService';
16
16
  import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
17
17
  import { Layout } from '../PredefinedConfig/LayoutState';
18
- import { ServerSearchOption } from '../AdaptableOptions/SearchOptions';
19
18
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
20
19
  import { IDataService } from '../Utilities/Services/Interface/IDataService';
21
20
  import { AdaptableMessageType, DataChangedInfo, SystemStatusMessageInfo } from '../types';
@@ -94,7 +93,7 @@ export interface InternalApi {
94
93
  getTeamSharingService(): ITeamSharingService;
95
94
  getMetamodelService(): IMetamodelService;
96
95
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
97
- isServerSearchOptionSet(serverSearchOption: ServerSearchOption): boolean;
96
+ runModuleInAdaptableQL(adaptableQLModule: AdaptableQLModule): boolean;
98
97
  buildStandaloneColumnHeader(column: AdaptableColumn): AdaptableMenuItem[];
99
98
  getCustomSortComparer(column: AdaptableColumn): ColumnValuesComparer | undefined;
100
99
  clearFlashingCellState(): void;
@@ -1,3 +1,4 @@
1
+ import { AdaptableColumn } from '../../types';
1
2
  import { LayoutState, Layout } from '../PredefinedConfig/LayoutState';
2
3
  /**
3
4
  * Provides run-time access to the Layout Module and associated state
@@ -128,4 +129,10 @@ export interface LayoutApi {
128
129
  */
129
130
  setColumnCaption(columnId: string, caption: string): void;
130
131
  isCurrentLayoutReadOnly(): boolean;
132
+ /**
133
+ * Opens change column caption popup
134
+ *
135
+ * @param column AdaptableColumn
136
+ */
137
+ showChangeColumnCaption(column: AdaptableColumn): void;
131
138
  }