@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
@@ -5,39 +5,56 @@ const tslib_1 = require("tslib");
5
5
  const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
6
6
  const ApiBase_1 = require("./ApiBase");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
- const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
9
- const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
10
- const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
11
- const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
12
- const Helper_1 = require("../../Utilities/Helpers/Helper");
8
+ const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
9
+ const logDeprecation_1 = require("../../Utilities/logDeprecation");
13
10
  class FormatColumnApiImpl extends ApiBase_1.ApiBase {
11
+ constructor(adaptable) {
12
+ super(adaptable);
13
+ this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(adaptable);
14
+ }
14
15
  getFormatColumnState() {
15
16
  return this.getAdaptableState().FormatColumn;
16
17
  }
17
18
  getAllFormatColumn(config) {
19
+ (0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
20
+ return this.getFormatColumns(config);
21
+ }
22
+ getFormatColumns(config) {
18
23
  var _a;
19
24
  return ((_a = this.handleLayoutAssociatedObjects(this.getFormatColumnState().FormatColumns, 'FormatColumn', config)) !== null && _a !== void 0 ? _a : []);
20
25
  }
21
26
  getFormatColumnById(id) {
22
- return this.getAllFormatColumn().find((formatColumn) => formatColumn.Uuid === id);
27
+ return this.getFormatColumns({ includeLayoutNotAssociatedObjects: true }).find((formatColumn) => formatColumn.Uuid === id);
23
28
  }
24
29
  getAllActiveFormatColumn() {
25
- return this.getAllFormatColumn().filter((formatColumn) => !formatColumn.IsSuspended);
30
+ (0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
31
+ return this.getActiveFormatColumns({ includeLayoutNotAssociatedObjects: true });
32
+ }
33
+ getActiveFormatColumns(config) {
34
+ return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
26
35
  }
27
36
  getAllSuspendedFormatColumn() {
28
- return this.getAllFormatColumn().filter((formatColumn) => formatColumn.IsSuspended);
37
+ (0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
38
+ return this.getSuspendedFormatColumns({ includeLayoutNotAssociatedObjects: true });
39
+ }
40
+ getSuspendedFormatColumns(config) {
41
+ return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
29
42
  }
30
43
  getAllFormatColumnWithStyle() {
31
- return this.getAllFormatColumn().filter((fc) => fc.Style);
44
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyle');
45
+ return this.internalApi.getAllFormatColumnWithStyle();
32
46
  }
33
47
  getAllFormatColumnWithStyleAndCellAlignment() {
34
- return this.getAllFormatColumn().filter((fc) => fc.Style || fc.CellAlignment);
48
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
49
+ return this.internalApi.getAllFormatColumnWithStyleAndCellAlignment();
35
50
  }
36
51
  getAllFormatColumnWithDisplayFormat() {
37
- return this.getAllFormatColumn().filter((fc) => fc.DisplayFormat);
52
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
53
+ return this.internalApi.getAllFormatColumnWithDisplayFormat();
38
54
  }
39
55
  getAllFormatColumnWithCellAlignment() {
40
- return this.getAllFormatColumn().filter((fc) => fc.CellAlignment);
56
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
57
+ return this.internalApi.getAllFormatColumnWithCellAlignment();
41
58
  }
42
59
  addFormatColumn(formatColumn) {
43
60
  this.addUidToAdaptableObject(formatColumn);
@@ -65,11 +82,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
65
82
  deleteFormatColumn(formatColumn) {
66
83
  this.dispatchAction(FormatColumnRedux.FormatColumnDelete(formatColumn));
67
84
  }
68
- deleteAllFormatColumn() {
69
- this.getAllFormatColumn().forEach((fc) => {
70
- this.deleteFormatColumn(fc);
71
- });
72
- }
73
85
  suspendFormatColumn(formatColumn) {
74
86
  this.dispatchAction(FormatColumnRedux.FormatColumnSuspend(formatColumn));
75
87
  return this.getFormatColumnById(formatColumn.Uuid);
@@ -78,68 +90,34 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
78
90
  this.dispatchAction(FormatColumnRedux.FormatColumnUnSuspend(formatColumn));
79
91
  return this.getFormatColumnById(formatColumn.Uuid);
80
92
  }
81
- applyFormatColumnDisplayFormats() {
82
- throw 'This API method is deprecated - it is not needed anymore.';
83
- }
84
93
  getFormatColumnsForColumn(column, config) {
85
- const formatColumns = this.getAllFormatColumn().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
86
- return this.getFormatColumnWithColumnInScope(formatColumns, column);
94
+ const formatColumns = this.getFormatColumns().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
95
+ return this.internalApi.getFormatColumnWithColumnInScope(formatColumns, column);
87
96
  }
88
97
  getFormatColumnsWithStyleForColumn(column, config) {
89
- const formatColumns = this.getAllFormatColumnWithStyleAndCellAlignment().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
90
- return this.getFormatColumnWithColumnInScope(formatColumns, column);
98
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
99
+ return this.internalApi.getFormatColumnsWithStyleForColumn(column, config);
91
100
  }
92
101
  getFormatColumnsForColumnId(columnId, config) {
93
- const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
102
+ const abColumn = this.adaptable.api.columnApi.getColumnWithColumnId(columnId);
94
103
  if (!abColumn) {
95
- return undefined;
104
+ return [];
96
105
  }
97
106
  return this.getFormatColumnsForColumn(abColumn, config);
98
107
  }
99
108
  getFormatColumnWithStyleClassNameForColumn(column, config) {
100
- return this.getFormatColumnsWithStyleForColumn(column, config).filter((formatColumn) => { var _a; return StringExtensions_1.default.IsNotNullOrEmpty((_a = formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName); });
109
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
110
+ return this.internalApi.getFormatColumnWithStyleClassNameForColumn(column, config);
101
111
  }
102
112
  getFormatColumnsWithDisplayFormatForColumn(column, config) {
103
- const formatColumns = this.getAllFormatColumnWithDisplayFormat().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
104
- return this.getFormatColumnWithColumnInScope(formatColumns, column);
105
- }
106
- getFormatColumnWithSingleColumnScope(columnId) {
107
- const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
108
- if (!abColumn) {
109
- return undefined;
110
- }
111
- const formatColumnsWithColumnScope = this.getFormatColumnsWithColumnScope(this.getAllFormatColumn());
112
- let returnFormatColumn = undefined;
113
- formatColumnsWithColumnScope.forEach((fc) => {
114
- if (returnFormatColumn == undefined) {
115
- if (this.adaptable.api.scopeApi.isSingleColumnScope(fc.Scope) &&
116
- this.adaptable.api.scopeApi.isColumnInScope(abColumn, fc.Scope)) {
117
- returnFormatColumn = fc;
118
- }
119
- }
120
- });
121
- return returnFormatColumn;
122
- }
123
- // TODO is this really needed, I don't think it achieves anything
124
- getFormatColumnInColumnScope(formatColumns) {
125
- // we need to maintain the format columns order, therefore we will extract all 3 scope types in a single iteration
126
- return formatColumns.filter((fc) => {
127
- return (
128
- // this.getFormatColumnsWithColumnScope(formatColumns)
129
- this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope) ||
130
- // this.getFormatColumnsWithDataTypeScope(formatColumns)
131
- this.adaptable.api.scopeApi.scopeHasDataType(fc.Scope) ||
132
- // this.getFormatColumnsWithAllScope(formatColumns)
133
- this.adaptable.api.scopeApi.scopeIsAll(fc.Scope));
134
- });
135
- }
136
- getFormatColumnWithColumnInScope(formatColumns, column) {
137
- return this.getFormatColumnInColumnScope(formatColumns).filter((scopedFormatColumn) => this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
138
- }
139
- hasStyleFormatColumns() {
140
- return ArrayExtensions_1.default.IsNotNullOrEmpty(this.getAllFormatColumnWithStyle());
113
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
114
+ return this.internalApi.getFormatColumnsWithDisplayFormatForColumn(column, config);
141
115
  }
142
116
  showFormatColumnPopup() {
117
+ (0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
118
+ this.openFormatColumnSettingsPanel();
119
+ }
120
+ openFormatColumnSettingsPanel() {
143
121
  this.showModulePopup(ModuleConstants.FormatColumnModuleId);
144
122
  }
145
123
  getFormatColumnsWithAllScope(formatColumns) {
@@ -151,45 +129,17 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
151
129
  getFormatColumnsWithColumnScope(formatColumns) {
152
130
  return formatColumns.filter((fc) => this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope));
153
131
  }
154
- applyCustomFormatters(value, node, abColumn, options) {
155
- var _a, _b, _c;
156
- const columnCustomFormatters = (_a = options === null || options === void 0 ? void 0 : options.CustomDisplayFormats) !== null && _a !== void 0 ? _a : [];
157
- if (!(columnCustomFormatters === null || columnCustomFormatters === void 0 ? void 0 : columnCustomFormatters.length)) {
158
- return value;
159
- }
160
- const adaptableOptions = this.adaptable.adaptableOptions;
161
- const customFormattersFromOptions = (_c = (_b = adaptableOptions === null || adaptableOptions === void 0 ? void 0 : adaptableOptions.userInterfaceOptions) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
162
- // formatters are applied in the order they are defined in the options
163
- const customFormatters = customFormattersFromOptions.filter((customFormatterOption) => columnCustomFormatters.includes(customFormatterOption.id));
164
- const customDisplayFormatterContext = ObjectFactory_1.default.CreateCustomDisplayFormatterContext(value, node, abColumn, this.getAdaptableApi());
165
- return customFormatters.reduce((context, formatter) => {
166
- if (formatter && formatter.handler) {
167
- return formatter.handler(context);
168
- }
169
- return context.cellValue;
170
- }, customDisplayFormatterContext);
171
- }
172
132
  getNumberFormattedValue(value, node, abColumn, options) {
173
- if (Helper_1.Helper.objectNotExists(value)) {
174
- return undefined;
175
- }
176
- const preparedValue = this.applyCustomFormatters(value, node, abColumn, options);
177
- return FormatHelper_1.default.NumberFormatter(preparedValue, options);
133
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getNumberFormattedValue');
134
+ return this.internalApi.getNumberFormattedValue(value, node, abColumn, options);
178
135
  }
179
136
  getStringFormattedValue(value, node, abColumn, options) {
180
- const preparedValue = this.applyCustomFormatters(value, node, abColumn, options);
181
- return FormatHelper_1.default.StringFormatter(preparedValue, options);
137
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getStringFormattedValue');
138
+ return this.internalApi.getStringFormattedValue(value, node, abColumn, options);
182
139
  }
183
140
  getDateFormattedValue(value, node, abColumn, options) {
184
- if (!value) {
185
- return undefined;
186
- }
187
- const preparedValue = this.applyCustomFormatters(value, node, abColumn, options);
188
- const dateFormatterOptions = options;
189
- // only use DateFormatter if we have a pattern
190
- return dateFormatterOptions.Pattern
191
- ? FormatHelper_1.default.DateFormatter(preparedValue, options)
192
- : preparedValue;
141
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getDateFormattedValue');
142
+ return this.internalApi.getDateFormattedValue(value, node, abColumn, options);
193
143
  }
194
144
  hasCustomDisplayFormatter(formatColumn) {
195
145
  var _a;
@@ -204,66 +154,20 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
204
154
  return true;
205
155
  }
206
156
  getFormatColumnDefsForScope(scope) {
207
- return this.getAdaptableApi()
208
- .predicateApi.getFormatColumnPredicateDefs()
209
- .filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
157
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnDefsForScope');
158
+ return this.internalApi.getFormatColumnDefsForScope(scope);
210
159
  }
211
160
  getFormatColumnsRelevantForColumn(formatColumns, column, params) {
212
- return formatColumns.filter((formatColumn) => this.isFormatColumnRelevantForColumn(formatColumn, column, params));
161
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsRelevantForColumn');
162
+ return this.internalApi.getFormatColumnsRelevantForColumn(formatColumns, column, params);
213
163
  }
214
164
  isFormatColumnRelevantForColumn(formatColumn, column, params) {
215
- // suspended is important to be first
216
- if (formatColumn.IsSuspended) {
217
- return false;
218
- }
219
- if (!formatColumn.IncludeGroupedRows &&
220
- this.adaptable.api.gridApi.isGroupRowNode(params.node)) {
221
- return false;
222
- }
223
- if (!formatColumn.Rule) {
224
- return true;
225
- }
226
- // first run the predicate
227
- if (formatColumn.Rule.Predicate && formatColumn.Rule.Predicate.PredicateId) {
228
- return this.evaluatePredicate({
229
- formatColumn,
230
- column,
231
- value: params.value,
232
- node: params.node,
233
- });
234
- }
235
- else if (formatColumn.Rule.BooleanExpression) {
236
- return this.evaluateExpression(formatColumn, params.node);
237
- }
238
- // nothing has passed then return false
239
- return false;
240
- }
241
- evaluatePredicate({ formatColumn, column, value, node, }) {
242
- const params = {
243
- value: value,
244
- oldValue: null,
245
- displayValue: value,
246
- node: node,
247
- column: column,
248
- };
249
- const result = this.adaptable.api.predicateApi.handlePredicate(formatColumn.Rule.Predicate, params, false);
250
- return result;
251
- }
252
- shouldRunStyle(formatColumn, node) {
253
- if (!formatColumn.IncludeGroupedRows && this.adaptable.api.gridApi.isGroupRowNode(node)) {
254
- return false;
255
- }
256
- return true;
257
- }
258
- evaluateExpression(formatColumn, node) {
259
- const isValidExpression = this.adaptable.api.queryLanguageApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
260
- return (isValidExpression &&
261
- this.adaptable.api.internalApi
262
- .getQueryLanguageService()
263
- .evaluateBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, node));
165
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'isFormatColumnRelevantForColumn');
166
+ return this.internalApi.isFormatColumnRelevantForColumn(formatColumn, column, params);
264
167
  }
265
168
  getFormatColumnsWithExpression() {
266
- return this.getAllFormatColumn().filter((fc) => { var _a; return !!((_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression); });
169
+ (0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithExpression');
170
+ return this.internalApi.getFormatColumnsWithExpression();
267
171
  }
268
172
  incrementFormatColumnPrecedence(formatColumn) {
269
173
  this.dispatchAction(FormatColumnRedux.FormatColumnMoveUp(formatColumn));
@@ -271,5 +175,10 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
271
175
  decrementFormatColumnPrecedence(formatColumn) {
272
176
  this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
273
177
  }
178
+ findFormatColumns(criteria) {
179
+ return this.getAdaptableApi().internalApi.findAdaptableObjectsByLookupCriteria(criteria, this.getFormatColumns({
180
+ includeLayoutNotAssociatedObjects: true,
181
+ }));
182
+ }
274
183
  }
275
184
  exports.FormatColumnApiImpl = FormatColumnApiImpl;
@@ -1,21 +1,29 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { FreeTextColumnApi } from '../FreeTextColumnApi';
3
- import { FreeTextColumnState, FreeTextColumn, FreeTextStoredValue } from '../../PredefinedConfig/FreeTextColumnState';
3
+ import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../../PredefinedConfig/FreeTextColumnState';
4
4
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
5
5
  import { RowNode } from '@ag-grid-community/core';
6
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
+ import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
6
8
  export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextColumnApi {
9
+ internalApi: FreeTextColumnInternalApi;
10
+ constructor(adaptable: IAdaptable);
7
11
  getFreeTextColumnState(): FreeTextColumnState;
8
12
  getAllFreeTextColumn(): FreeTextColumn[];
9
- getFreeTextColumnById(columnId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
13
+ getFreeTextColumns(): FreeTextColumn[];
14
+ getFreeTextColumnById(technicalId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
15
+ getFreeTextColumnForColumnId(columnId: string): FreeTextColumn | undefined;
10
16
  addFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
11
- editFreeTextColumn(freeTextColumn: Partial<FreeTextColumn> & {
12
- ColumnId: string;
13
- }): FreeTextColumn;
17
+ editFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
14
18
  addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
19
+ setStoredValue(columnId: string, storedValue: FreeTextStoredValue): FreeTextColumn;
15
20
  addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
21
+ setStoredValues(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
16
22
  deleteFreeTextColumn(columnId: string): void;
17
23
  showFreeTextColumnPopup(): void;
24
+ openFreeTextColumnSettingsPanel(): void;
18
25
  getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
26
+ getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
19
27
  checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
20
28
  getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
21
29
  }
@@ -7,16 +7,29 @@ const ApiBase_1 = require("./ApiBase");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
9
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
10
+ const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
11
+ const logDeprecation_1 = require("../../Utilities/logDeprecation");
10
12
  class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
13
+ constructor(adaptable) {
14
+ super(adaptable);
15
+ this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(adaptable);
16
+ }
11
17
  getFreeTextColumnState() {
12
18
  return this.getAdaptableState().FreeTextColumn;
13
19
  }
14
20
  getAllFreeTextColumn() {
21
+ (0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
22
+ return this.getFreeTextColumns();
23
+ }
24
+ getFreeTextColumns() {
15
25
  var _a;
16
26
  return (_a = this.getFreeTextColumnState().FreeTextColumns) !== null && _a !== void 0 ? _a : [];
17
27
  }
18
- getFreeTextColumnById(columnId) {
19
- return this.getAllFreeTextColumn().find((ftc) => ftc.ColumnId === columnId);
28
+ getFreeTextColumnById(technicalId) {
29
+ return this.getFreeTextColumns().find((ftc) => ftc.Uuid === technicalId);
30
+ }
31
+ getFreeTextColumnForColumnId(columnId) {
32
+ return this.getFreeTextColumns().find((ftc) => ftc.ColumnId === columnId);
20
33
  }
21
34
  addFreeTextColumn(freeTextColumn) {
22
35
  this.addUidToAdaptableObject(freeTextColumn);
@@ -28,11 +41,24 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
28
41
  return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
29
42
  }
30
43
  addEditFreeTextColumnStoredValue(freeTextColumn, storedValue) {
44
+ (0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
45
+ return this.setStoredValue(freeTextColumn.ColumnId, storedValue);
46
+ }
47
+ setStoredValue(columnId, storedValue) {
48
+ const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
49
+ if (!freeTextColumn) {
50
+ (0, LoggingHelper_1.LogAdaptableWarning)(`No FreeTextColumn with columnId=${columnId} was found!`);
51
+ return;
52
+ }
31
53
  this.dispatchAction(FreeTextColumnRedux.FreeTextColumnAddEditStoredValue(freeTextColumn, storedValue));
32
54
  return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
33
55
  }
34
56
  addStoredValuesToFreeTextColumn(columnId, storedValues, replaceAction) {
35
- const freeTextColumn = this.getFreeTextColumnById(columnId);
57
+ (0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
58
+ this.setStoredValues(columnId, storedValues, replaceAction);
59
+ }
60
+ setStoredValues(columnId, storedValues, replaceAction) {
61
+ const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
36
62
  if (freeTextColumn) {
37
63
  if (replaceAction == 'All') {
38
64
  freeTextColumn.FreeTextStoredValues = storedValues;
@@ -67,15 +93,23 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
67
93
  }
68
94
  }
69
95
  deleteFreeTextColumn(columnId) {
70
- let freeTextColumn = this.getAllFreeTextColumn().find((ftc) => ftc.ColumnId == columnId);
96
+ let freeTextColumn = this.getFreeTextColumns().find((ftc) => ftc.ColumnId == columnId);
71
97
  if (this.checkItemExists(freeTextColumn, columnId, ModuleConstants.FreeTextColumnModuleId)) {
72
98
  this.dispatchAction(FreeTextColumnRedux.FreeTextColumnDelete(freeTextColumn));
73
99
  }
74
100
  }
75
101
  showFreeTextColumnPopup() {
102
+ (0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
103
+ this.openFreeTextColumnSettingsPanel();
104
+ }
105
+ openFreeTextColumnSettingsPanel() {
76
106
  this.showModulePopup(ModuleConstants.FreeTextColumnModuleId);
77
107
  }
78
108
  getFreeTextColumnValueFromRowNode(freeTextColumn, rowNode) {
109
+ (0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
110
+ return this.getFreeTextColumnValueForRowNode(freeTextColumn, rowNode);
111
+ }
112
+ getFreeTextColumnValueForRowNode(freeTextColumn, rowNode) {
79
113
  try {
80
114
  if (this.adaptable.api.gridApi.isGroupRowNode(rowNode)) {
81
115
  return null;
@@ -95,31 +129,12 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
95
129
  }
96
130
  }
97
131
  checkFreeTextColumnForDataChange(cellDataChangedInfo) {
98
- let freeTextColumn = this.getAllFreeTextColumn().find((fc) => fc.ColumnId == cellDataChangedInfo.column.columnId);
99
- if (freeTextColumn) {
100
- let freeTextStoredValue = {
101
- PrimaryKey: cellDataChangedInfo.primaryKeyValue,
102
- FreeText: cellDataChangedInfo.newValue,
103
- };
104
- this.addEditFreeTextColumnStoredValue(freeTextColumn, freeTextStoredValue);
105
- var colsToRefresh = [cellDataChangedInfo.column.columnId];
106
- const refencedCalcColumns = this.adaptable.api.calculatedColumnApi.getCalculatedColumnsReferencingColumnId(cellDataChangedInfo.column.columnId);
107
- refencedCalcColumns.forEach((calculatedColumn) => {
108
- colsToRefresh.push(calculatedColumn.ColumnId);
109
- });
110
- this.adaptable.refreshCells([cellDataChangedInfo.rowNode], colsToRefresh, false);
111
- }
132
+ (0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
133
+ return this.internalApi.handleFreeTextColumnDataChange(cellDataChangedInfo);
112
134
  }
113
135
  getFreeTextColumnModuleReferences(freeTextColumn) {
114
- const references = [];
115
- this.adaptable.adaptableModules.forEach((module) => {
116
- if (module
117
- .getModuleFreeTextColumnReferences()
118
- .some((moduleReference) => moduleReference.Uuid === freeTextColumn.Uuid)) {
119
- references.push(module.moduleInfo.FriendlyName);
120
- }
121
- });
122
- return references;
136
+ (0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
137
+ return this.internalApi.getFreeTextColumnModuleReferences(freeTextColumn);
123
138
  }
124
139
  }
125
140
  exports.FreeTextColumnApiImpl = FreeTextColumnApiImpl;
@@ -14,7 +14,11 @@ import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChang
14
14
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
15
15
  import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
16
16
  import { AccessLevel } from '../../PredefinedConfig/Common/Entitlement';
17
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
18
+ import { GridInternalApi } from '../Internal/GridInternalApi';
17
19
  export declare class GridApiImpl extends ApiBase implements GridApi {
20
+ internalApi: GridInternalApi;
21
+ constructor(adaptable: IAdaptable);
18
22
  getGridState(): GridState;
19
23
  setGridData(dataSource: any[]): void;
20
24
  getGridData(): any[];
@@ -30,6 +34,11 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
30
34
  newValue: any;
31
35
  primaryKeyValue: any;
32
36
  }[]): void;
37
+ setCellValues(gridCells: {
38
+ columnId: any;
39
+ newValue: any;
40
+ primaryKeyValue: any;
41
+ }[]): void;
33
42
  getSelectedCellInfo(): SelectedCellInfo;
34
43
  getSelectedRowInfo(): SelectedRowInfo;
35
44
  getCellDisplayValue(primaryKeyValue: any, columnId: string): any | undefined;
@@ -53,7 +62,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
53
62
  deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
54
63
  deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
55
64
  deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
65
+ private getSelectionStartEndNodes;
56
66
  selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
67
+ selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
57
68
  selectColumn(columnId: string): void;
58
69
  selectColumns(columnIds: string[]): void;
59
70
  getFirstRowNode(): RowNode;
@@ -77,6 +88,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
77
88
  clearRowGroupColumns(): void;
78
89
  expandAllRowGroups(): void;
79
90
  closeAllRowGroups(): void;
91
+ collapseAllRowGroups(): void;
80
92
  getExpandRowGroupsKeys(): any[];
81
93
  expandRowGroupsForValues(columnValues: any[]): void;
82
94
  isGridPivotable(): boolean;
@@ -86,7 +98,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
86
98
  isGroupRowNode(rowNode: RowNode): boolean;
87
99
  isQuickFilterAvailable(): boolean;
88
100
  redrawGrid(): void;
89
- fireSearchChangedEvent(searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort'): void;
90
101
  fireGridSortedEvent(): void;
91
102
  fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
92
103
  fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
@@ -105,7 +116,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
105
116
  refreshRowByPrimaryKey(primaryKey: any): void;
106
117
  refreshRowNode(rowNode: RowNode): void;
107
118
  refreshRowNodes(rowNodes: RowNode[]): void;
119
+ isCellEditable(gridCell: GridCell): boolean;
108
120
  areCellsEditable(gridCells: GridCell[]): boolean;
121
+ isEveryCellEditable(gridCells: GridCell[]): boolean;
109
122
  getRowCount(): number;
110
123
  getVisibleRowCount(): number;
111
124
  getRowsInViewport(): RowNode[];
@@ -117,4 +130,5 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
117
130
  destroy(): void;
118
131
  getGridContainerElement(): HTMLElement | null;
119
132
  showGridInfoPopup(): void;
133
+ openGridInfoSettingsPanel(): void;
120
134
  }