@adaptabletools/adaptable 13.1.1 → 14.0.0-canary.1

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 (382) hide show
  1. package/README.md +1 -1
  2. package/base.css +7 -2
  3. package/base.css.map +1 -1
  4. package/bundle.cjs.js +180 -177
  5. package/index.css +11 -2
  6. package/index.css.map +1 -1
  7. package/package.json +2 -2
  8. package/publishTimestamp.d.ts +1 -1
  9. package/publishTimestamp.js +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
  11. package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
  12. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -9
  13. package/src/AdaptableOptions/AlertOptions.d.ts +6 -1
  14. package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +8 -3
  18. package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +6 -4
  19. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
  20. package/src/Api/ActionApi.d.ts +14 -3
  21. package/src/Api/AdaptableApi.d.ts +0 -6
  22. package/src/Api/AlertApi.d.ts +127 -92
  23. package/src/Api/BulkUpdateApi.d.ts +9 -2
  24. package/src/Api/CalculatedColumnApi.d.ts +26 -21
  25. package/src/Api/CellSummaryApi.d.ts +15 -8
  26. package/src/Api/ChartingApi.d.ts +9 -2
  27. package/src/Api/ColumnApi.d.ts +153 -115
  28. package/src/Api/ConfigApi.d.ts +18 -18
  29. package/src/Api/CustomSortApi.d.ts +36 -7
  30. package/src/Api/DashboardApi.d.ts +12 -5
  31. package/src/Api/DataChangeHistoryApi.d.ts +8 -1
  32. package/src/Api/DataSetApi.d.ts +13 -3
  33. package/src/Api/EventApi.d.ts +2 -2
  34. package/src/Api/ExportApi.d.ts +30 -13
  35. package/src/Api/FilterApi.d.ts +74 -62
  36. package/src/Api/FlashingCellApi.d.ts +25 -9
  37. package/src/Api/FormatColumnApi.d.ts +76 -95
  38. package/src/Api/FreeTextColumnApi.d.ts +53 -21
  39. package/src/Api/GridApi.d.ts +57 -22
  40. package/src/Api/Implementation/ActionApiImpl.d.ts +9 -3
  41. package/src/Api/Implementation/ActionApiImpl.js +23 -11
  42. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  43. package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
  44. package/src/Api/Implementation/AlertApiImpl.d.ts +57 -28
  45. package/src/Api/Implementation/AlertApiImpl.js +179 -197
  46. package/src/Api/Implementation/ApiBase.d.ts +43 -2
  47. package/src/Api/Implementation/ApiBase.js +129 -5
  48. package/src/Api/Implementation/ApplicationApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +1 -0
  50. package/src/Api/Implementation/BulkUpdateApiImpl.js +4 -1
  51. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +7 -2
  52. package/src/Api/Implementation/CalculatedColumnApiImpl.js +28 -37
  53. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -0
  54. package/src/Api/Implementation/CellSummaryApiImpl.js +6 -1
  55. package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -2
  56. package/src/Api/Implementation/ChartingApiImpl.js +10 -4
  57. package/src/Api/Implementation/ColumnApiImpl.d.ts +22 -6
  58. package/src/Api/Implementation/ColumnApiImpl.js +184 -195
  59. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  60. package/src/Api/Implementation/ConfigApiImpl.js +1 -1
  61. package/src/Api/Implementation/CustomSortApiImpl.d.ts +16 -1
  62. package/src/Api/Implementation/CustomSortApiImpl.js +33 -7
  63. package/src/Api/Implementation/DashboardApiImpl.d.ts +6 -1
  64. package/src/Api/Implementation/DashboardApiImpl.js +11 -12
  65. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  66. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
  67. package/src/Api/Implementation/DataSetApiImpl.d.ts +6 -0
  68. package/src/Api/Implementation/DataSetApiImpl.js +17 -8
  69. package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
  70. package/src/Api/Implementation/ExportApiImpl.d.ts +9 -1
  71. package/src/Api/Implementation/ExportApiImpl.js +34 -68
  72. package/src/Api/Implementation/FilterApiImpl.d.ts +10 -1
  73. package/src/Api/Implementation/FilterApiImpl.js +61 -157
  74. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -0
  75. package/src/Api/Implementation/FlashingCellApiImpl.js +23 -26
  76. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +20 -15
  77. package/src/Api/Implementation/FormatColumnApiImpl.js +62 -153
  78. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +13 -5
  79. package/src/Api/Implementation/FreeTextColumnApiImpl.js +42 -27
  80. package/src/Api/Implementation/GridApiImpl.d.ts +15 -1
  81. package/src/Api/Implementation/GridApiImpl.js +117 -61
  82. package/src/Api/Implementation/LayoutApiImpl.d.ts +8 -7
  83. package/src/Api/Implementation/LayoutApiImpl.js +29 -112
  84. package/src/Api/Implementation/PluginsApiImpl.d.ts +1 -1
  85. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -1
  86. package/src/Api/Implementation/PlusMinusApiImpl.js +5 -0
  87. package/src/Api/Implementation/PredicateApiImpl.d.ts +8 -5
  88. package/src/Api/Implementation/PredicateApiImpl.js +33 -98
  89. package/src/Api/Implementation/QueryApiImpl.d.ts +7 -2
  90. package/src/Api/Implementation/QueryApiImpl.js +22 -44
  91. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -0
  92. package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -0
  93. package/src/Api/Implementation/QuickSearchApiImpl.d.ts +1 -0
  94. package/src/Api/Implementation/QuickSearchApiImpl.js +5 -0
  95. package/src/Api/Implementation/ScheduleApiImpl.d.ts +27 -0
  96. package/src/Api/Implementation/ScheduleApiImpl.js +86 -17
  97. package/src/Api/Implementation/ScopeApiImpl.js +9 -7
  98. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +2 -0
  99. package/src/Api/Implementation/SettingsPanelApiImpl.js +9 -0
  100. package/src/Api/Implementation/ShortcutApiImpl.d.ts +8 -1
  101. package/src/Api/Implementation/ShortcutApiImpl.js +25 -4
  102. package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -0
  103. package/src/Api/Implementation/SmartEditApiImpl.js +5 -0
  104. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +14 -11
  105. package/src/Api/Implementation/StyledColumnApiImpl.js +40 -185
  106. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +6 -1
  107. package/src/Api/Implementation/SystemStatusApiImpl.js +19 -12
  108. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +6 -5
  109. package/src/Api/Implementation/TeamSharingApiImpl.js +15 -25
  110. package/src/Api/Implementation/ThemeApiImpl.d.ts +5 -1
  111. package/src/Api/Implementation/ThemeApiImpl.js +23 -4
  112. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
  113. package/src/Api/Implementation/UserInterfaceApiImpl.js +13 -4
  114. package/src/Api/Internal/ActionInternalApi.d.ts +23 -0
  115. package/src/Api/Internal/ActionInternalApi.js +198 -0
  116. package/src/Api/{Implementation/InternalApiImpl.d.ts → Internal/AdaptableInternalApi.d.ts} +7 -57
  117. package/src/Api/{Implementation/InternalApiImpl.js → Internal/AdaptableInternalApi.js} +28 -306
  118. package/src/Api/Internal/AlertInternalApi.d.ts +148 -0
  119. package/src/Api/Internal/AlertInternalApi.js +484 -0
  120. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +24 -0
  121. package/src/Api/Internal/CalculatedColumnInternalApi.js +57 -0
  122. package/src/Api/Internal/ColumnInternalApi.d.ts +33 -0
  123. package/src/Api/Internal/ColumnInternalApi.js +67 -0
  124. package/src/Api/Internal/CustomSortInternalApi.d.ts +6 -0
  125. package/src/Api/Internal/CustomSortInternalApi.js +11 -0
  126. package/src/Api/Internal/DashboardInternalApi.d.ts +8 -0
  127. package/src/Api/Internal/DashboardInternalApi.js +26 -0
  128. package/src/Api/Internal/DataSetInternalApi.d.ts +9 -0
  129. package/src/Api/Internal/DataSetInternalApi.js +20 -0
  130. package/src/Api/Internal/ExportInternalApi.d.ts +11 -0
  131. package/src/Api/Internal/ExportInternalApi.js +73 -0
  132. package/src/Api/Internal/FilterInternalApi.d.ts +58 -0
  133. package/src/Api/Internal/FilterInternalApi.js +194 -0
  134. package/src/Api/Internal/FlashingCellInternalApi.d.ts +12 -0
  135. package/src/Api/Internal/FlashingCellInternalApi.js +56 -0
  136. package/src/Api/Internal/FormatColumnInternalApi.d.ts +109 -0
  137. package/src/Api/Internal/FormatColumnInternalApi.js +225 -0
  138. package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +15 -0
  139. package/src/Api/Internal/FreeTextColumnInternalApi.js +44 -0
  140. package/src/Api/Internal/GridInternalApi.d.ts +82 -0
  141. package/src/Api/Internal/GridInternalApi.js +252 -0
  142. package/src/Api/Internal/LayoutInternalApi.d.ts +48 -0
  143. package/src/Api/Internal/LayoutInternalApi.js +163 -0
  144. package/src/Api/Internal/PredicateInternalApi.d.ts +37 -0
  145. package/src/Api/Internal/PredicateInternalApi.js +140 -0
  146. package/src/Api/Internal/QueryInternalApi.d.ts +17 -0
  147. package/src/Api/Internal/QueryInternalApi.js +57 -0
  148. package/src/Api/Internal/QueryLanguageInternalApi.d.ts +11 -0
  149. package/src/Api/Internal/QueryLanguageInternalApi.js +34 -0
  150. package/src/Api/Internal/StyledColumnInternalApi.d.ts +59 -0
  151. package/src/Api/Internal/StyledColumnInternalApi.js +249 -0
  152. package/src/Api/Internal/SystemStatusInternalApi.d.ts +11 -0
  153. package/src/Api/Internal/SystemStatusInternalApi.js +27 -0
  154. package/src/Api/Internal/TeamSharingInternalApi.d.ts +20 -0
  155. package/src/Api/Internal/TeamSharingInternalApi.js +66 -0
  156. package/src/Api/LayoutApi.d.ts +28 -44
  157. package/src/Api/PlusMinusApi.d.ts +9 -2
  158. package/src/Api/PredicateApi.d.ts +26 -10
  159. package/src/Api/QueryApi.d.ts +23 -18
  160. package/src/Api/QuickSearchApi.d.ts +5 -1
  161. package/src/Api/ScheduleApi.d.ts +97 -16
  162. package/src/Api/SettingsPanelApi.d.ts +12 -1
  163. package/src/Api/ShortcutApi.d.ts +28 -7
  164. package/src/Api/SmartEditApi.d.ts +8 -1
  165. package/src/Api/StyledColumnApi.d.ts +34 -54
  166. package/src/Api/SystemStatusApi.d.ts +12 -6
  167. package/src/Api/TeamSharingApi.d.ts +4 -17
  168. package/src/Api/ThemeApi.d.ts +25 -6
  169. package/src/Api/UserInterfaceApi.d.ts +13 -2
  170. package/src/PredefinedConfig/AlertState.d.ts +1 -1
  171. package/src/PredefinedConfig/Common/AdaptableColumn.js +4 -0
  172. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +0 -5
  173. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +10 -0
  174. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  175. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +22 -1
  176. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -0
  177. package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -3
  178. package/src/PredefinedConfig/Common/FDC3Context.d.ts +0 -5
  179. package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
  180. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  181. package/src/PredefinedConfig/StyledColumnState.d.ts +9 -0
  182. package/src/PredefinedConfig/SystemState.d.ts +5 -0
  183. package/src/Redux/ActionsReducers/GridRedux.d.ts +18 -0
  184. package/src/Redux/ActionsReducers/GridRedux.js +65 -2
  185. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  186. package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
  187. package/src/Redux/Store/AdaptableStore.js +34 -26
  188. package/src/Strategy/AdaptableModuleBase.js +6 -6
  189. package/src/Strategy/AlertModule.d.ts +1 -6
  190. package/src/Strategy/AlertModule.js +37 -92
  191. package/src/Strategy/BulkUpdateModule.js +3 -3
  192. package/src/Strategy/CalculatedColumnModule.js +6 -6
  193. package/src/Strategy/ChartingModule.js +1 -1
  194. package/src/Strategy/CustomSortModule.js +4 -4
  195. package/src/Strategy/DashboardModule.js +2 -2
  196. package/src/Strategy/DataSetModule.js +1 -1
  197. package/src/Strategy/ExportModule.js +4 -4
  198. package/src/Strategy/FilterModule.js +7 -6
  199. package/src/Strategy/FlashingCellModule.d.ts +2 -0
  200. package/src/Strategy/FlashingCellModule.js +21 -5
  201. package/src/Strategy/FormatColumnModule.d.ts +1 -0
  202. package/src/Strategy/FormatColumnModule.js +29 -3
  203. package/src/Strategy/FreeTextColumnModule.js +3 -3
  204. package/src/Strategy/LayoutModule.js +18 -18
  205. package/src/Strategy/PlusMinusModule.js +2 -2
  206. package/src/Strategy/QueryModule.js +3 -3
  207. package/src/Strategy/ScheduleModule.js +10 -12
  208. package/src/Strategy/ShortcutModule.js +5 -5
  209. package/src/Strategy/SmartEditModule.js +3 -3
  210. package/src/Strategy/StyledColumnModule.js +9 -7
  211. package/src/Strategy/TeamSharingModule.js +3 -3
  212. package/src/Strategy/ThemeModule.js +1 -1
  213. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -1
  214. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +1 -1
  215. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -1
  216. package/src/Strategy/Utilities/getRuleViewItems.d.ts +1 -1
  217. package/src/Strategy/Utilities/getRuleViewItems.js +4 -3
  218. package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
  219. package/src/Strategy/Utilities/updateSingleToMultiplePredicates.d.ts +5 -0
  220. package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +12 -0
  221. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -3
  222. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +8 -0
  223. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -0
  224. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +73 -78
  225. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +3 -1
  226. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +9 -5
  227. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +12 -3
  228. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  229. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +133 -28
  230. package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
  231. package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
  232. package/src/Utilities/Helpers/FormatHelper.js +13 -10
  233. package/src/Utilities/ObjectFactory.js +8 -6
  234. package/src/Utilities/Services/CalculatedColumnExpressionService.js +1 -1
  235. package/src/Utilities/Services/ChartingService.js +2 -2
  236. package/src/Utilities/Services/DataService.js +1 -1
  237. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +2 -1
  238. package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -5
  239. package/src/Utilities/Services/ModuleService.js +1 -1
  240. package/src/Utilities/Services/QueryLanguageService.js +2 -2
  241. package/src/Utilities/Services/ReportService.js +3 -3
  242. package/src/Utilities/Services/RowEditService.d.ts +0 -19
  243. package/src/Utilities/Services/RowEditService.js +4 -161
  244. package/src/Utilities/Services/TeamSharingService.js +3 -3
  245. package/src/Utilities/Services/ValidationService.js +9 -7
  246. package/src/Utilities/logDeprecation.d.ts +3 -0
  247. package/src/Utilities/logDeprecation.js +30 -0
  248. package/src/View/AdaptablePopover/index.d.ts +2 -0
  249. package/src/View/AdaptablePopover/index.js +6 -2
  250. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +4 -2
  251. package/src/View/Alert/AlertEntityRow.js +1 -1
  252. package/src/View/Alert/AlertStatusSubPanel.js +1 -1
  253. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -2
  254. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
  255. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
  256. package/src/View/Alert/Wizard/AlertWizard.js +3 -3
  257. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -2
  258. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  259. package/src/View/Alert/Wizard/isValidAlertRules.js +4 -3
  260. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
  261. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
  262. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +25 -4
  263. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  264. package/src/View/Components/Charting/ChartingViewPanel.d.ts +2 -2
  265. package/src/View/Components/Charting/ChartingViewPanel.js +17 -3
  266. package/src/View/Components/Charting/ChartingWizard/ChartingWizard.js +2 -2
  267. package/src/View/Components/Charting/ChartingWizard/SettingsSection.js +1 -1
  268. package/src/View/Components/Charting/DeleteChartButton.d.ts +7 -0
  269. package/src/View/Components/Charting/DeleteChartButton.js +12 -0
  270. package/src/View/Components/Charting/EditChartButton.d.ts +8 -0
  271. package/src/View/Components/Charting/EditChartButton.js +21 -0
  272. package/src/View/Components/EntityRulesEditor/PredicatesEditor.d.ts +16 -0
  273. package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +86 -0
  274. package/src/View/Components/EntityRulesEditor/Utilities.d.ts +6 -0
  275. package/src/View/Components/EntityRulesEditor/Utilities.js +21 -0
  276. package/src/View/Components/EntityRulesEditor/index.d.ts +4 -9
  277. package/src/View/Components/EntityRulesEditor/index.js +16 -90
  278. package/src/View/Components/ExpressionWizard.js +1 -1
  279. package/src/View/Components/ExternalRenderer.js +3 -1
  280. package/src/View/Components/FilterForm/FilterForm.js +3 -3
  281. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -5
  282. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +5 -6
  283. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  284. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
  285. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  286. package/src/View/Components/Popups/AdaptablePopupConfirmation.d.ts +2 -12
  287. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +46 -39
  288. package/src/View/Components/PredicateEditor/PredicateEditor.js +5 -5
  289. package/src/View/Components/ScopeComponent.js +3 -3
  290. package/src/View/Components/Selectors/ColumnValueSelector.js +1 -1
  291. package/src/View/Components/StyleComponent.js +42 -14
  292. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  293. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  294. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
  295. package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +1 -1
  296. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  297. package/src/View/Dashboard/Dashboard.js +1 -1
  298. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  299. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +10 -1
  300. package/src/View/DataSet/DataSetSelector.js +1 -1
  301. package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
  302. package/src/View/DataSet/DataSetViewPanel.js +1 -1
  303. package/src/View/Export/ExportSelector.js +2 -2
  304. package/src/View/Export/ExportViewPanel.js +2 -2
  305. package/src/View/Export/ReportExportDropdown.js +1 -1
  306. package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
  307. package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
  308. package/src/View/Filter/FilterSummary.js +1 -1
  309. package/src/View/Filter/FilterViewPanel.js +1 -1
  310. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
  311. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -2
  312. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +4 -3
  313. package/src/View/FormatColumn/MoveFormatColumn.js +1 -1
  314. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +11 -5
  315. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +2 -2
  316. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +8 -6
  317. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +3 -4
  318. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +5 -19
  319. package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
  320. package/src/View/GridInfo/GridInfoPopup.js +6 -6
  321. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  322. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
  323. package/src/View/Layout/LayoutViewPanel.js +1 -1
  324. package/src/View/Layout/PivotDetailsPopoup.js +1 -1
  325. package/src/View/Layout/SaveLayoutButton.js +1 -1
  326. package/src/View/Layout/Wizard/LayoutWizard.js +2 -2
  327. package/src/View/Layout/Wizard/sections/AggregationsSection.js +4 -4
  328. package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
  329. package/src/View/Layout/Wizard/sections/FilterSection.js +2 -2
  330. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
  331. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
  332. package/src/View/Layout/Wizard/sections/SortSection.js +1 -1
  333. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
  334. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
  335. package/src/View/Query/ExpandedQueryPopup.js +1 -1
  336. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  337. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -2
  338. package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
  339. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
  340. package/src/View/StatusBar/StatusBarPanel.js +1 -1
  341. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -2
  342. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +9 -0
  343. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +2 -2
  344. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.d.ts +5 -0
  345. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +26 -0
  346. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.d.ts +5 -0
  347. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +23 -0
  348. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +8 -0
  349. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +25 -0
  350. package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.d.ts → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts} +2 -2
  351. package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.js → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js} +21 -19
  352. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.d.ts +1 -0
  353. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -0
  354. package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
  355. package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
  356. package/src/agGrid/ActionColumnRenderer.js +1 -1
  357. package/src/agGrid/Adaptable.d.ts +5 -3
  358. package/src/agGrid/Adaptable.js +106 -121
  359. package/src/agGrid/FilterWrapper.js +3 -3
  360. package/src/agGrid/FloatingFilterWrapper.js +3 -3
  361. package/src/agGrid/PercentBarRenderer.js +6 -6
  362. package/src/agGrid/agGridHelper.js +3 -3
  363. package/src/agGrid/agGridMenuHelper.js +3 -3
  364. package/src/agGrid/weightedAverage.js +2 -2
  365. package/src/components/ExpressionEditor/BaseEditorInput.js +92 -7
  366. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -1
  367. package/src/components/OverlayTrigger/index.js +6 -2
  368. package/src/components/OverlayTrigger/utils.d.ts +1 -1
  369. package/src/components/OverlayTrigger/utils.js +4 -4
  370. package/src/components/icons/index.js +2 -0
  371. package/src/components/icons/open-in-new.d.ts +3 -0
  372. package/src/components/icons/open-in-new.js +7 -0
  373. package/src/env.js +1 -3
  374. package/src/metamodel/adaptable.metamodel.d.ts +30 -10
  375. package/src/metamodel/adaptable.metamodel.js +1 -1
  376. package/src/parser/src/parser.js +644 -382
  377. package/src/parser/src/types.d.ts +9 -0
  378. package/src/types.d.ts +3 -3
  379. package/version.d.ts +1 -1
  380. package/version.js +1 -1
  381. package/src/Api/InternalApi.d.ts +0 -155
  382. package/src/Api/InternalApi.js +0 -2
@@ -145,7 +145,7 @@ class AdaptableModuleBase {
145
145
  return column.filterable;
146
146
  }
147
147
  else if (functionType == 'quickfilter') {
148
- return this.api.columnApi.usesAdaptableQuickFilter(column.columnId);
148
+ return this.api.columnApi.internalApi.usesAdaptableQuickFilter(column.columnId);
149
149
  }
150
150
  }
151
151
  return true;
@@ -163,7 +163,7 @@ class AdaptableModuleBase {
163
163
  }
164
164
  getModuleCalculatedColumnReferences() {
165
165
  const references = [];
166
- const allCalculatedColumns = this.api.calculatedColumnApi.getAllCalculatedColumn();
166
+ const allCalculatedColumns = this.api.calculatedColumnApi.getCalculatedColumns();
167
167
  this.getModuleAdaptableObjects().forEach((adaptableObject) => {
168
168
  const referencedColumnIds = this.getExplicitlyReferencedColumnIds(adaptableObject);
169
169
  referencedColumnIds.forEach((referencedColumnId) => {
@@ -178,7 +178,7 @@ class AdaptableModuleBase {
178
178
  }
179
179
  getModuleFreeTextColumnReferences() {
180
180
  const references = [];
181
- const allFreeTextColumns = this.api.freeTextColumnApi.getAllFreeTextColumn();
181
+ const allFreeTextColumns = this.api.freeTextColumnApi.getFreeTextColumns();
182
182
  this.getModuleAdaptableObjects().forEach((adaptableObject) => {
183
183
  const referencedColumnIds = this.getExplicitlyReferencedColumnIds(adaptableObject);
184
184
  referencedColumnIds.forEach((referencedColumnId) => {
@@ -196,8 +196,8 @@ class AdaptableModuleBase {
196
196
  // extract special column references
197
197
  const referencedColumnIds = this.getExplicitlyReferencedColumnIds(adaptableObject);
198
198
  if (referencedColumnIds.length) {
199
- const allCalculatedColumns = this.api.calculatedColumnApi.getAllCalculatedColumn();
200
- const allFreeTextColumns = this.api.freeTextColumnApi.getAllFreeTextColumn();
199
+ const allCalculatedColumns = this.api.calculatedColumnApi.getCalculatedColumns();
200
+ const allFreeTextColumns = this.api.freeTextColumnApi.getFreeTextColumns();
201
201
  referencedColumnIds.forEach((referencedColumnId) => {
202
202
  // check for calculated column
203
203
  const referencedCalculatedColumn = allCalculatedColumns.find((calculatedColumn) => calculatedColumn.ColumnId === referencedColumnId);
@@ -240,7 +240,7 @@ class AdaptableModuleBase {
240
240
  return false;
241
241
  }
242
242
  showLayoutNotAssociatedObjects() {
243
- return this.api.internalApi.showLayoutNotAssociatedObjects();
243
+ return this.api.layoutApi.internalApi.showLayoutNotAssociatedObjects();
244
244
  }
245
245
  getFriendlyName(module, friendlyName) {
246
246
  let returnValue = friendlyName;
@@ -14,17 +14,12 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
14
14
  getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
15
15
  getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
16
16
  updateOldConfig(): void;
17
+ private updateAlertSingleToMultiplePredicates;
17
18
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
18
19
  private handleCellDataChanged;
19
20
  private handleGridDataChanged;
20
21
  private handleReactiveAlertTriggered;
21
- private showAlertForDefinitions;
22
- private getAlertDefinitionsForCellDataChange;
23
22
  private getAlertDefinitionsForGridDataChange;
24
- private getBaseAlertDefinitionsForDataChange;
25
- private isAggregationAlertTriggered;
26
- private isAlertPredicateTriggered;
27
- private isAlertDefinitionForRowChangeEvent;
28
23
  getTeamSharingAction(): TeamSharingImportInfo<AlertDefinition>;
29
24
  toViewCompact(alert: AdaptableAlert): AdaptableObjectCompactView;
30
25
  toView(alert: AlertDefinition): AdaptableObjectView;
@@ -7,7 +7,6 @@ const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/Syste
7
7
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
8
8
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
9
9
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
10
- const AdaptableQuery_1 = require("../PredefinedConfig/Common/AdaptableQuery");
11
10
  const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
12
11
  const AlertWizard_1 = require("../View/Alert/Wizard/AlertWizard");
13
12
  const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
@@ -18,7 +17,8 @@ const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
18
17
  const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
19
18
  const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
20
19
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
21
- const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
20
+ const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
21
+ const Helper_1 = require("../Utilities/Helpers/Helper");
22
22
  class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  constructor(api) {
24
24
  super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
@@ -73,10 +73,11 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
73
73
  if (!queryExpression) {
74
74
  return [];
75
75
  }
76
- return this.api.queryApi.getReferencedNamedQueryNames(queryExpression);
76
+ return this.api.queryApi.internalApi.getReferencedNamedQueryNames(queryExpression);
77
77
  }
78
78
  updateOldConfig() {
79
79
  var _a;
80
+ this.updateAlertSingleToMultiplePredicates();
80
81
  // 1. Make all (new) Flashing Cells have a Predicate if none exists
81
82
  const alertState = this.api.alertApi.getAlertState();
82
83
  const flashingAlertDefinitions = alertState.FlashingAlertDefinitions;
@@ -85,7 +86,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
85
86
  ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
86
87
  this.api.flashingCellApi.setFlashingCellDefinitions(flashingAlertDefinitions);
87
88
  // TODO: state does not clear
88
- this.api.internalApi.clearFlashingCellState();
89
+ this.api.flashingCellApi.internalApi.clearFlashingCellState();
89
90
  }
90
91
  (_a = alertState.AlertDefinitions) === null || _a === void 0 ? void 0 : _a.forEach((alertDefinition) => {
91
92
  // if ShowPopup then change to DisplayNotificate
@@ -115,16 +116,28 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
115
116
  }
116
117
  });
117
118
  }
119
+ updateAlertSingleToMultiplePredicates() {
120
+ const alertDefinitions = this.api.alertApi.getAlertDefinitions({
121
+ includeLayoutNotAssociatedObjects: true,
122
+ });
123
+ alertDefinitions.forEach((alertDefinition) => {
124
+ if (alertDefinition.Rule && 'Predicate' in alertDefinition.Rule) {
125
+ const preparedAlertDefinition = (0, Helper_1.cloneObject)(alertDefinition);
126
+ (0, updateSingleToMultiplePredicates_1.updateSingleToMultiplePredicates)(preparedAlertDefinition.Rule);
127
+ this.api.alertApi.editAlertDefinition(preparedAlertDefinition);
128
+ }
129
+ });
130
+ }
118
131
  addContextMenuItems(menuContext) {
119
132
  const items = [];
120
133
  if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
121
134
  if (menuContext.adaptableColumn && menuContext.rowNode) {
122
135
  let relevantAlert;
123
136
  // find alerts which highlight the current cell
124
- relevantAlert = this.api.internalApi.getAdaptableAlertWithHighlightCell(menuContext.adaptableColumn.columnId, menuContext.rowNode);
137
+ relevantAlert = this.api.alertApi.internalApi.getAdaptableAlertWithHighlightCell(menuContext.adaptableColumn.columnId, menuContext.rowNode);
125
138
  if (!relevantAlert) {
126
139
  // find alerts which highlight the current row
127
- relevantAlert = this.api.internalApi.getAdaptableAlertWithHighlightRow(menuContext.rowNode);
140
+ relevantAlert = this.api.alertApi.internalApi.getAdaptableAlertWithHighlightRow(menuContext.rowNode);
128
141
  }
129
142
  if (relevantAlert) {
130
143
  items.push(this.createColumnMenuItemReduxAction('Clear Alert', this.moduleInfo.Glyph, SystemRedux.SystemAlertDelete(relevantAlert)));
@@ -134,9 +147,9 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
134
147
  return items;
135
148
  }
136
149
  handleCellDataChanged(cellDataChangedInfo) {
137
- const alertDefinitions = this.getAlertDefinitionsForCellDataChange(cellDataChangedInfo);
150
+ const alertDefinitions = this.api.alertApi.internalApi.getAlertDefinitionsForCellDataChange(cellDataChangedInfo);
138
151
  if (alertDefinitions === null || alertDefinitions === void 0 ? void 0 : alertDefinitions.length) {
139
- this.showAlertForDefinitions(cellDataChangedInfo, alertDefinitions);
152
+ this.api.alertApi.internalApi.showAlertForDefinitions(cellDataChangedInfo, alertDefinitions);
140
153
  }
141
154
  }
142
155
  handleGridDataChanged(gridDataChangedInfo) {
@@ -145,15 +158,21 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
145
158
  const numberOfChangedRows = gridDataChangedInfo.rowNodes.length;
146
159
  const actionName = rowAdded ? 'Added' : 'Removed';
147
160
  const alertHeader = numberOfChangedRows > 1 ? `${actionName} Rows` : `${actionName} Row `;
148
- const dynamicAlertMessage = numberOfChangedRows > 1
161
+ const defaultMessage = numberOfChangedRows > 1
149
162
  ? `${numberOfChangedRows} rows were ${actionName.toLowerCase()}`
150
163
  : `${numberOfChangedRows} row was ${actionName.toLowerCase()}`;
151
164
  alertDefinitions === null || alertDefinitions === void 0 ? void 0 : alertDefinitions.forEach((alertDefinition) => {
165
+ const customMessage = this.api.alertApi.internalApi.getCustomAlertDescription(alertDefinition, {
166
+ gridDataChangedInfo,
167
+ });
168
+ const customHeader = this.api.alertApi.internalApi.getCustomAlertMessageTitle(alertDefinition, {
169
+ gridDataChangedInfo,
170
+ });
152
171
  const alertMessage = alertDefinition.MessageText
153
172
  ? alertDefinition.MessageText
154
- : dynamicAlertMessage;
155
- const alert = ObjectFactory_1.default.CreateRowChangedAlert(alertHeader, alertMessage, alertDefinition, gridDataChangedInfo);
156
- this.api.alertApi.displayAlert(alert);
173
+ : customMessage !== null && customMessage !== void 0 ? customMessage : defaultMessage;
174
+ const alert = ObjectFactory_1.default.CreateRowChangedAlert(customHeader !== null && customHeader !== void 0 ? customHeader : alertHeader, alertMessage, alertDefinition, gridDataChangedInfo);
175
+ this.api.alertApi.showAdaptableAlert(alert);
157
176
  });
158
177
  }
159
178
  handleReactiveAlertTriggered(reactiveAlertInfo) {
@@ -165,100 +184,26 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
165
184
  reactiveAlertInfo.dataChangeLogEntry.rowData =
166
185
  (_a = reactiveAlertInfo.dataChangeLogEntry.rowNode) === null || _a === void 0 ? void 0 : _a.data;
167
186
  if (reactiveAlertInfo.type === 'alert') {
168
- this.showAlertForDefinitions(reactiveAlertInfo.dataChangeLogEntry, [
187
+ this.api.alertApi.internalApi.showAlertForDefinitions(reactiveAlertInfo.dataChangeLogEntry, [
169
188
  reactiveAlertInfo.alertDefinition,
170
189
  ]);
171
190
  }
172
191
  }
173
- showAlertForDefinitions(cellDataChangedInfo, alertDefinitions = []) {
174
- alertDefinitions.forEach((alertDefinition) => {
175
- const alert = ObjectFactory_1.default.CreateCellChangedAlert(this.api.alertApi.getAlertMessageTitle(alertDefinition, cellDataChangedInfo), this.api.alertApi.getAlertDescription(alertDefinition, cellDataChangedInfo), alertDefinition, cellDataChangedInfo);
176
- this.api.alertApi.displayAlert(alert);
177
- });
178
- }
179
- getAlertDefinitionsForCellDataChange(dataChangedEvent) {
180
- return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent, this.api.alertApi.getActiveNonReactiveAlertDefinitions());
181
- }
182
192
  getAlertDefinitionsForGridDataChange(gridDataChangedInfo) {
183
- return this.api.alertApi
193
+ return this.api.alertApi.internalApi
184
194
  .getActiveNonReactiveAlertDefinitions()
185
- .filter((alertDefinition) => this.isAlertDefinitionForRowChangeEvent(alertDefinition))
195
+ .filter((alertDefinition) => this.api.alertApi.internalApi.isAlertDefinitionForRowChangeEvent(alertDefinition))
186
196
  .filter((alertDefinition) => {
187
- var _a, _b, _c, _d;
197
+ var _a, _b;
188
198
  if (gridDataChangedInfo.rowTrigger === 'Add') {
189
- return ((_b = (_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === 'AddedRow';
199
+ return (_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates.some((predicate) => (predicate === null || predicate === void 0 ? void 0 : predicate.PredicateId) === 'AddedRow');
190
200
  }
191
201
  if (gridDataChangedInfo.rowTrigger === 'Delete') {
192
- return ((_d = (_c = alertDefinition.Rule) === null || _c === void 0 ? void 0 : _c.Predicate) === null || _d === void 0 ? void 0 : _d.PredicateId) === 'RemovedRow';
202
+ return (_b = alertDefinition.Rule) === null || _b === void 0 ? void 0 : _b.Predicates.some((predicate) => (predicate === null || predicate === void 0 ? void 0 : predicate.PredicateId) === 'RemovedRow');
193
203
  }
194
204
  return false;
195
205
  });
196
206
  }
197
- getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
198
- let relatedAlertDefinitions = definitions
199
- .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
200
- .filter((alertDefinition) => !(0, AdaptableQuery_1.isReactiveQuery)(alertDefinition.Rule));
201
- let triggeredAlerts = [];
202
- if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedAlertDefinitions)) {
203
- relatedAlertDefinitions.forEach((alertDefinition) => {
204
- if (alertDefinition.Rule.BooleanExpression) {
205
- let expression = alertDefinition.Rule.BooleanExpression;
206
- let rowNode = dataChangedEvent.rowNode;
207
- if (!rowNode) {
208
- rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
209
- }
210
- const isValidExpression = this.api.queryLanguageApi.isValidBooleanExpression(expression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${expression}'`);
211
- const isSatisfiedExpression = isValidExpression &&
212
- this.api.internalApi
213
- .getQueryLanguageService()
214
- .evaluateBooleanExpression(expression, this.moduleInfo.ModuleName, rowNode);
215
- if (isSatisfiedExpression) {
216
- triggeredAlerts.push(alertDefinition);
217
- }
218
- }
219
- else if (alertDefinition.Rule.AggregatedBooleanExpression) {
220
- const isValidExpression = this.api.queryLanguageApi.isValidAggregatedBooleanExpression(alertDefinition.Rule.AggregatedBooleanExpression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${alertDefinition.Rule.AggregatedBooleanExpression}'`);
221
- const isSatisfiedExpression = isValidExpression &&
222
- this.isAggregationAlertTriggered(alertDefinition, dataChangedEvent);
223
- if (isSatisfiedExpression) {
224
- triggeredAlerts.push(alertDefinition);
225
- }
226
- }
227
- else {
228
- if (!this.isAlertDefinitionForRowChangeEvent(alertDefinition) &&
229
- this.isAlertPredicateTriggered(alertDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
230
- triggeredAlerts.push(alertDefinition);
231
- }
232
- }
233
- });
234
- }
235
- return triggeredAlerts;
236
- }
237
- isAggregationAlertTriggered(alertDefinition, dataChangedEvent) {
238
- const changedColumn = dataChangedEvent.column.columnId;
239
- const aggregationColumns = this.api.queryLanguageApi.getColumnsFromExpression(alertDefinition.Rule.AggregatedBooleanExpression);
240
- if (!aggregationColumns.includes(changedColumn)) {
241
- return false;
242
- }
243
- const aggregatedBooleanValue = this.api.internalApi
244
- .getQueryLanguageService()
245
- .computeAggregatedBooleanValue(alertDefinition.Rule.AggregatedBooleanExpression, ModuleConstants_1.AlertModuleId);
246
- return aggregatedBooleanValue;
247
- }
248
- isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
249
- return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
250
- value: dataChangedEvent.newValue,
251
- oldValue: dataChangedEvent.oldValue,
252
- // TODO send real display value
253
- displayValue: null,
254
- node: dataChangedEvent.rowNode,
255
- column: dataChangedEvent.column,
256
- }, defaultNoPredicateReturn);
257
- }
258
- isAlertDefinitionForRowChangeEvent(alertDefinition) {
259
- return (this.api.internalApi.isAlertDefinitionForAddedRowChangeEvent(alertDefinition) ||
260
- this.api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(alertDefinition));
261
- }
262
207
  getTeamSharingAction() {
263
208
  return {
264
209
  ModuleEntities: this.api.alertApi.getAlertDefinitions(),
@@ -22,7 +22,7 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
22
  !menuContext.adaptableColumn.readOnly &&
23
23
  menuContext.isSelectedCell &&
24
24
  menuContext.isSingleSelectedColumn &&
25
- this.api.gridApi.areCellsEditable(menuContext.selectedCellInfo.gridCells)) {
25
+ this.api.gridApi.isEveryCellEditable(menuContext.selectedCellInfo.gridCells)) {
26
26
  let popUpParams = {
27
27
  source: 'ContextMenu',
28
28
  };
@@ -84,7 +84,7 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
84
84
  };
85
85
  }
86
86
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(selectedCellInfo.gridCells) &&
87
- !this.api.gridApi.areCellsEditable(selectedCellInfo.gridCells)) {
87
+ !this.api.gridApi.isEveryCellEditable(selectedCellInfo.gridCells)) {
88
88
  return {
89
89
  IsValid: false,
90
90
  Alert: {
@@ -106,7 +106,7 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
106
106
  let column;
107
107
  if (!this.api.internalApi.isGridInPivotMode()) {
108
108
  if (selectedCellInfo != null && selectedCellInfo.columns.length > 0) {
109
- column = this.api.columnApi.getColumnFromId(selectedCellInfo.columns[0].columnId);
109
+ column = this.api.columnApi.getColumnWithColumnId(selectedCellInfo.columns[0].columnId);
110
110
  let typedBulkUpdateValue;
111
111
  switch (column.dataType) {
112
112
  case 'Number':
@@ -20,10 +20,10 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
20
20
  this.api.internalApi.dispatchReduxAction(CalculatedColumnRedux.CalculatedColumnReady(this.api.calculatedColumnApi.getCalculatedColumnState()));
21
21
  }
22
22
  getModuleAdaptableObjects() {
23
- return this.api.calculatedColumnApi.getAllCalculatedColumn();
23
+ return this.api.calculatedColumnApi.getCalculatedColumns();
24
24
  }
25
25
  updateOldConfig() {
26
- const calcColumns = this.api.calculatedColumnApi.getAllCalculatedColumn();
26
+ const calcColumns = this.api.calculatedColumnApi.getCalculatedColumns();
27
27
  let oldCalculatedColumns = [];
28
28
  calcColumns.forEach((cc) => {
29
29
  if (cc.ColumnExpression && !cc.Query) {
@@ -35,7 +35,7 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
35
35
  (0, LoggingHelper_1.LogAdaptableWarning)(`Updating incorrect Predefined Config for Calculated Column: ${cc.ColumnId}`);
36
36
  }
37
37
  });
38
- this.api.calculatedColumnApi.editCalculatedColumns(oldCalculatedColumns);
38
+ oldCalculatedColumns.forEach((oldCalcCol) => this.api.calculatedColumnApi.editCalculatedColumn(oldCalcCol));
39
39
  }
40
40
  getExplicitlyReferencedColumnIds(calculatedColumn) {
41
41
  var _a;
@@ -43,12 +43,12 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
43
43
  }
44
44
  getReferencedNamedQueryNames(calculatedColumn) {
45
45
  var _a;
46
- return ((_a = this.api.queryApi.getReferencedNamedQueryNames(this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
46
+ return ((_a = this.api.queryApi.internalApi.getReferencedNamedQueryNames(this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
47
47
  }
48
48
  addColumnMenuItems(column) {
49
49
  if (column && this.isModuleEditable()) {
50
50
  if (this.api.calculatedColumnApi
51
- .getAllCalculatedColumn()
51
+ .getCalculatedColumns()
52
52
  .find((cc) => cc.ColumnId == column.columnId)) {
53
53
  let popupParam = {
54
54
  column: column,
@@ -63,7 +63,7 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
63
63
  }
64
64
  getTeamSharingAction() {
65
65
  return {
66
- ModuleEntities: this.api.calculatedColumnApi.getAllCalculatedColumn(),
66
+ ModuleEntities: this.api.calculatedColumnApi.getCalculatedColumns(),
67
67
  AddAction: CalculatedColumnRedux.CalculatedColumnAdd,
68
68
  EditAction: CalculatedColumnRedux.CalculatedColumnEdit,
69
69
  };
@@ -37,7 +37,7 @@ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
37
37
  // return false;
38
38
  }
39
39
  getModuleAdaptableObjects() {
40
- return this.api.chartingApi.getAllChartDefinitions();
40
+ return this.api.chartingApi.getChartDefinitions();
41
41
  }
42
42
  toViewAll() {
43
43
  return this.getModuleAdaptableObjects().map((layout) => this.toView(layout));
@@ -14,7 +14,7 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
14
14
  super(ModuleConstants.CustomSortModuleId, ModuleConstants.CustomSortFriendlyName, 'custom-sort', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
15
15
  }
16
16
  getModuleAdaptableObjects(config) {
17
- return this.api.customSortApi.getAllCustomSort(config);
17
+ return this.api.customSortApi.getCustomSorts(config);
18
18
  }
19
19
  getExplicitlyReferencedColumnIds(customSort) {
20
20
  return [customSort.ColumnId];
@@ -25,11 +25,11 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
25
25
  addColumnMenuItems(column) {
26
26
  if (column && this.isModuleEditable() && column.sortable) {
27
27
  let customSort = this.api.customSortApi
28
- .getAllCustomSort()
28
+ .getCustomSorts()
29
29
  .find((x) => x.ColumnId == column.columnId);
30
30
  let label = customSort ? 'Edit ' : 'Create ';
31
31
  // dont show a menu item if there is a custom sort that uses a comparer function
32
- const columnSortComparer = this.api.internalApi.getCustomSortComparer(column);
32
+ const columnSortComparer = this.api.customSortApi.internalApi.getCustomSortComparer(column);
33
33
  if (columnSortComparer) {
34
34
  return undefined;
35
35
  }
@@ -45,7 +45,7 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
45
45
  }
46
46
  getTeamSharingAction() {
47
47
  return {
48
- ModuleEntities: this.api.customSortApi.getAllCustomSort(),
48
+ ModuleEntities: this.api.customSortApi.getCustomSorts(),
49
49
  AddAction: CustomSortRedux.CustomSortAdd,
50
50
  EditAction: CustomSortRedux.CustomSortEdit,
51
51
  };
@@ -26,7 +26,7 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
26
26
  if (this.api.isDestroyed()) {
27
27
  return;
28
28
  }
29
- this.api.dashboardApi.fireDashboardChangedEvent('ADAPTABLE_READY', null, this.api.dashboardApi.getDashboardState());
29
+ this.api.dashboardApi.internalApi.fireDashboardChangedEvent('ADAPTABLE_READY', null, this.api.dashboardApi.getDashboardState());
30
30
  }, 20);
31
31
  }
32
32
  addColumnMenuItems() {
@@ -39,7 +39,7 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
39
39
  if (this.isModuleAvailable()) {
40
40
  let menuItems = [];
41
41
  if (this.isModuleEditable()) {
42
- menuItems.push(this.createColumnMenuItemClickFunction('Configure', 'settings', () => this.api.dashboardApi.showDashboardPopup()));
42
+ menuItems.push(this.createColumnMenuItemClickFunction('Configure', 'settings', () => this.api.dashboardApi.openDashboardSettingsPanel()));
43
43
  }
44
44
  if (this.api.dashboardApi.getDashboardState().IsCollapsed) {
45
45
  menuItems.push(this.createColumnMenuItemReduxAction('Expand', 'expand', DashboardRedux.DashboardSetIsCollapsed(false)));
@@ -13,7 +13,7 @@ class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
13
  super(ModuleConstants.DataSetModuleId, ModuleConstants.DataSetFriendlyName, 'data-set', 'DataSetPopup', 'Update the entire data source in AdapTable using pre-populated data sets', api);
14
14
  }
15
15
  handleAdaptableReady() {
16
- this.api.dataSetApi.getAllDataSets().forEach((ds) => {
16
+ this.api.dataSetApi.getDataSets().forEach((ds) => {
17
17
  if (!ds.Uuid) {
18
18
  ds.Uuid = (0, Uuid_1.createUuid)();
19
19
  }
@@ -23,7 +23,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  super(ModuleConstants.ExportModuleId, ModuleConstants.ExportFriendlyName, 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
24
24
  }
25
25
  getModuleAdaptableObjects() {
26
- return this.api.exportApi.getAllReports();
26
+ return this.api.exportApi.getReports();
27
27
  }
28
28
  getExplicitlyReferencedColumnIds(report) {
29
29
  if (report.ReportColumnScope === 'ScopeColumns' &&
@@ -38,7 +38,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
38
  if (!report.Query) {
39
39
  return [];
40
40
  }
41
- return this.api.queryApi.getReferencedNamedQueryNames(report.Query.BooleanExpression);
41
+ return this.api.queryApi.internalApi.getReferencedNamedQueryNames(report.Query.BooleanExpression);
42
42
  }
43
43
  addContextMenuItems(menuContext) {
44
44
  const canExport = !menuContext.isRowGroupColumn &&
@@ -54,7 +54,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
54
54
  for (const destination of this.api.exportApi.getAvailableExportDestinations()) {
55
55
  menuItems.push(this.createColumnMenuItemClickFunction(destination, this.moduleInfo.Glyph, () => this.export(selectedCellReport, destination)));
56
56
  }
57
- for (const customDestination of this.api.exportApi.getAllCustomDestination()) {
57
+ for (const customDestination of this.api.exportApi.getCustomDestinations()) {
58
58
  menuItems.push(this.createColumnMenuItemClickFunction(customDestination.name, this.moduleInfo.Glyph, () => this.export(selectedCellReport, customDestination.name)));
59
59
  }
60
60
  return [
@@ -176,7 +176,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
176
176
  }
177
177
  getTeamSharingAction() {
178
178
  return {
179
- ModuleEntities: this.api.exportApi.getAllReports(),
179
+ ModuleEntities: this.api.exportApi.getReports(),
180
180
  AddAction: ExportRedux.ReportAdd,
181
181
  EditAction: ExportRedux.ReportEdit,
182
182
  };
@@ -28,7 +28,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
28
28
  }
29
29
  const columnFilters = this.api.filterApi.getColumnFilters();
30
30
  columnFilters.forEach((cf) => {
31
- if (!this.api.columnApi.doesColumnExist(cf.ColumnId)) {
31
+ if (!this.api.columnApi.isColumnInGrid(cf.ColumnId)) {
32
32
  (0, LoggingHelper_1.LogAdaptableError)('Column Filter contains missing column: ' + cf.ColumnId);
33
33
  }
34
34
  });
@@ -43,10 +43,10 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
43
43
  let isMultiple = menuContext.selectedCellInfo.gridCells.length > 1;
44
44
  let clickFunction = isMultiple
45
45
  ? () => {
46
- this.api.filterApi.createValuesColumnFilterForCells(menuContext.selectedCellInfo.gridCells);
46
+ this.api.filterApi.internalApi.createValuesColumnFilterForCells(menuContext.selectedCellInfo.gridCells);
47
47
  }
48
48
  : () => {
49
- this.api.filterApi.createEqualityColumnFilterForCell(menuContext.selectedCellInfo.gridCells[0]);
49
+ this.api.filterApi.internalApi.createEqualityColumnFilterForCell(menuContext.selectedCellInfo.gridCells[0]);
50
50
  };
51
51
  menuItemClickFunction = this.createColumnMenuItemClickFunction(isMultiple ? 'Filter on Cell Values' : 'Filter on Cell Value', this.moduleInfo.Glyph, clickFunction);
52
52
  }
@@ -57,7 +57,8 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
57
57
  let baseMenuItems = [];
58
58
  if (column && this.api.gridApi.isQuickFilterAvailable()) {
59
59
  const isFilterVisible = this.api.filterApi.isQuickFilterVisible();
60
- if (this.isModuleEditable() && this.api.columnApi.usesAdaptableQuickFilter(column.columnId)) {
60
+ if (this.isModuleEditable() &&
61
+ this.api.columnApi.internalApi.usesAdaptableQuickFilter(column.columnId)) {
61
62
  baseMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Filter Bar' : 'Show Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible
62
63
  ? SystemRedux.SystemQuickFilterBarHide()
63
64
  : SystemRedux.SystemQuickFilterBarShow()));
@@ -85,7 +86,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
85
86
  toViewCompact(filter) {
86
87
  return {
87
88
  item: {
88
- values: [this.api.filterApi.columnFilterToString(filter)],
89
+ values: [this.api.filterApi.internalApi.columnFilterToString(filter)],
89
90
  },
90
91
  abObject: filter,
91
92
  };
@@ -95,7 +96,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
95
96
  items: [
96
97
  {
97
98
  name: 'Column',
98
- values: [this.api.columnApi.getFriendlyNameFromColumnId(filter.ColumnId)],
99
+ values: [this.api.columnApi.getFriendlyNameForColumnId(filter.ColumnId)],
99
100
  },
100
101
  ],
101
102
  abObject: filter,
@@ -9,6 +9,8 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
9
9
  import { FlashingCellDefinition } from '../PredefinedConfig/FlashingCellState';
10
10
  export declare class FlashingCellModule extends AdaptableModuleBase implements IModule {
11
11
  constructor(api: AdaptableApi);
12
+ updateOldConfig(): void;
13
+ private updateFlashingCellSingleToMultiplePredicates;
12
14
  getModuleAdaptableObjects(config?: {
13
15
  includeLayoutNotAssociatedObjects?: boolean;
14
16
  }): AdaptableObject[];
@@ -15,6 +15,8 @@ const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWi
15
15
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
16
16
  const getFlashingTargetViewItems_1 = require("./Utilities/FlashingCell/getFlashingTargetViewItems");
17
17
  const getFlashingCellStyleViewItems_1 = require("./Utilities/FlashingCell/getFlashingCellStyleViewItems");
18
+ const Helper_1 = require("../Utilities/Helpers/Helper");
19
+ const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
18
20
  class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
21
  constructor(api) {
20
22
  super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'flashing-cell', 'FlashingAlert', 'Flash cells when they change', api);
@@ -41,6 +43,19 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
41
43
  this.handleCellDataChanged(cellDataChangedInfo);
42
44
  });
43
45
  }
46
+ updateOldConfig() {
47
+ this.updateFlashingCellSingleToMultiplePredicates();
48
+ }
49
+ updateFlashingCellSingleToMultiplePredicates() {
50
+ const flashingCells = this.api.flashingCellApi.getFlashingCellDefinitions();
51
+ flashingCells.forEach((flashingCell) => {
52
+ if (flashingCell.Rule && 'Predicate' in flashingCell.Rule) {
53
+ const preparedFlashingCell = (0, Helper_1.cloneObject)(flashingCell);
54
+ (0, updateSingleToMultiplePredicates_1.updateSingleToMultiplePredicates)(preparedFlashingCell.Rule);
55
+ this.api.flashingCellApi.editFlashingCellDefinition(preparedFlashingCell);
56
+ }
57
+ });
58
+ }
44
59
  getModuleAdaptableObjects(config) {
45
60
  return this.api.flashingCellApi.getFlashingCellDefinitions(config);
46
61
  }
@@ -61,7 +76,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
61
76
  if (!queryExpression) {
62
77
  return [];
63
78
  }
64
- return this.api.queryApi.getReferencedNamedQueryNames(queryExpression);
79
+ return this.api.queryApi.internalApi.getReferencedNamedQueryNames(queryExpression);
65
80
  }
66
81
  addColumnMenuItems(column) {
67
82
  if (column && this.isModuleEditable()) {
@@ -81,7 +96,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
81
96
  ColumnIds: [column.columnId],
82
97
  },
83
98
  Rule: {
84
- Predicate: { PredicateId: 'Any' },
99
+ Predicates: [{ PredicateId: 'Any' }],
85
100
  },
86
101
  })),
87
102
  ];
@@ -92,8 +107,8 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
92
107
  const items = [];
93
108
  if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
94
109
  if (menuContext.adaptableColumn && menuContext.rowNode) {
95
- const flashingCellForRow = this.api.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue);
96
- const flashingCellForCell = this.api.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
110
+ const flashingCellForRow = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue);
111
+ const flashingCellForCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
97
112
  if (flashingCellForRow) {
98
113
  if (flashingCellForRow.flashTarget === 'row' ||
99
114
  (Array.isArray(flashingCellForRow === null || flashingCellForRow === void 0 ? void 0 : flashingCellForRow.flashTarget) &&
@@ -201,7 +216,8 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
201
216
  return triggeredFlashingCells;
202
217
  }
203
218
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
204
- return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
219
+ var _a;
220
+ return this.api.predicateApi.handlePredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
205
221
  value: dataChangedEvent.newValue,
206
222
  oldValue: dataChangedEvent.oldValue,
207
223
  // TODO send real display value
@@ -14,6 +14,7 @@ export declare class FormatColumnModule extends AdaptableModuleBase implements I
14
14
  getExplicitlyReferencedColumnIds(formatColumn: FormatColumn): string[];
15
15
  hasNamedQueryReferences(): boolean;
16
16
  updateOldConfig(): void;
17
+ private updateFormatColumnSingleToMultiplePredicates;
17
18
  private updateConditionalStylesColumnsOldConfig;
18
19
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
19
20
  getTeamSharingAction(): TeamSharingImportInfo<FormatColumn>;