@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
@@ -1,5 +1,5 @@
1
- import { FormatColumnState, FormatColumn } from '../PredefinedConfig/FormatColumnState';
2
- import { AdaptableColumn, AdaptableFormat, AdaptablePredicateDef, AdaptableScope } from '../types';
1
+ import { FormatColumn, FormatColumnState } from '../PredefinedConfig/FormatColumnState';
2
+ import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope } from '../types';
3
3
  import { RowNode } from '@ag-grid-community/core';
4
4
  /**
5
5
  * Provides run-time access to the Format Column Module and associated state
@@ -13,11 +13,11 @@ export interface FormatColumnApi {
13
13
  * Retrieves all Format Columns in Adaptable State
14
14
  * @returns format columns
15
15
  */
16
- getAllFormatColumn(config?: {
16
+ getFormatColumns(config?: {
17
17
  includeLayoutNotAssociatedObjects?: boolean;
18
18
  }): FormatColumn[];
19
19
  /**
20
- * Retrieves Format Column by Id
20
+ * Retrieves Format Column by the technical ID (from `FormatColumnState`)
21
21
  * @param id Format Column id
22
22
  * @returns format column
23
23
  */
@@ -26,32 +26,16 @@ export interface FormatColumnApi {
26
26
  * Retrieves all active (not-suspended) Format Columns in Adaptable State
27
27
  * @returns format columns
28
28
  */
29
- getAllActiveFormatColumn(): FormatColumn[];
29
+ getActiveFormatColumns(config?: {
30
+ includeLayoutNotAssociatedObjects?: boolean;
31
+ }): FormatColumn[];
30
32
  /**
31
33
  * Retrieves all suspended Format Columns in Adaptable State
32
34
  * @returns format columns
33
35
  */
34
- getAllSuspendedFormatColumn(): FormatColumn[];
35
- /**
36
- * Retrieves all Format Columns in Adaptable State with the `Style` property set
37
- * @returns format columns
38
- */
39
- getAllFormatColumnWithStyle(): FormatColumn[];
40
- /**
41
- * Retrieves all Format Columns in Adaptable State with the `Style` or the `CellAlignment` property set
42
- * @returns format columns
43
- */
44
- getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
45
- /**
46
- * Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set
47
- * @returns format columns
48
- */
49
- getAllFormatColumnWithDisplayFormat(): FormatColumn[];
50
- /**
51
- * Retrieves all Format Columns in Adaptable State with `CellAlignment` property set
52
- * @returns format columns
53
- */
54
- getAllFormatColumnWithCellAlignment(): FormatColumn[];
36
+ getSuspendedFormatColumns(config?: {
37
+ includeLayoutNotAssociatedObjects?: boolean;
38
+ }): FormatColumn[];
55
39
  /**
56
40
  * Adds a Format Column to Format Column State
57
41
  * @param formatColumn Format Column to Add
@@ -87,18 +71,10 @@ export interface FormatColumnApi {
87
71
  * @returns format column
88
72
  */
89
73
  unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
90
- /**
91
- * Deletes all Format Columns in Adaptable State
92
- */
93
- deleteAllFormatColumn(): void;
94
- /**
95
- * Applies display format for all Format Columns in AdapTable State
96
- */
97
- applyFormatColumnDisplayFormats(): void;
98
74
  /**
99
75
  * Opens Settings Panel with Format Column section selected and visible
100
76
  */
101
- showFormatColumnPopup(): void;
77
+ openFormatColumnSettingsPanel(): void;
102
78
  /**
103
79
  * Gets all FormatColumns which are defined for the given column
104
80
  * @param column The Column for which to retrieve the Format Column
@@ -116,107 +92,112 @@ export interface FormatColumnApi {
116
92
  includeSuspended?: boolean;
117
93
  }): FormatColumn[];
118
94
  /**
119
- * Get Format Column which has Scope of Single Column, if any, for given ColumnId
120
- * @param columnId ColumnId for which to retrieve the Format Column
121
- * @returns format column
95
+ * Checks if a Format Column contains a Custom Display Formatter
96
+ * @param formatColumn Format Column
97
+ */
98
+ hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
99
+ /**
100
+ * Increment the precedence of the given FormatColumn
101
+ * @param formatColumn
102
+ */
103
+ incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
104
+ /**
105
+ * Decrement the precedence of the given FormatColumn
106
+ * @param formatColumn
107
+ */
108
+ decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
109
+ /**
110
+ * Find all Flashing Cell Definitions which match the given criteria
111
+ * @param flashingCellLookupCriteria lookup criteria
112
+ */
113
+ findFormatColumns(formatColumnLookupCriteria: AdaptableObjectLookupCriteria): FormatColumn[];
114
+ /**
115
+ * TO BE REMOVED
122
116
  */
123
- getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
124
117
  /**
125
- * Get all FormatColumns which are defined for this column and have a custom AdaptableStyle
126
- * @param column
127
- * @param config
128
- * @returns list of FormatColumn
118
+ * @deprecated use `getFormatColumns()` instead
119
+ */
120
+ getAllFormatColumn(config?: {
121
+ includeLayoutNotAssociatedObjects?: boolean;
122
+ }): FormatColumn[];
123
+ /**
124
+ * @deprecated use `getActiveFormatColumns()` instead
125
+ */
126
+ getAllActiveFormatColumn(): FormatColumn[];
127
+ /**
128
+ * @deprecated use `getSuspendedFormatColumns()` instead
129
+ */
130
+ getAllSuspendedFormatColumn(): FormatColumn[];
131
+ /**
132
+ * @deprecated internal method, will be removed in next major release
133
+ */
134
+ getAllFormatColumnWithStyle(): FormatColumn[];
135
+ /**
136
+ * @deprecated internal method, will be removed in next major release
137
+ */
138
+ getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
139
+ /**
140
+ * @deprecated internal method, will be removed in next major release
141
+ */
142
+ getAllFormatColumnWithDisplayFormat(): FormatColumn[];
143
+ /**
144
+ * @deprecated internal method, will be removed in next major release
145
+ */
146
+ getAllFormatColumnWithCellAlignment(): FormatColumn[];
147
+ /**
148
+ * @deprecated use `openFormatColumnSettingsPanel()` instead
149
+ */
150
+ showFormatColumnPopup(): void;
151
+ /**
152
+ * @deprecated internal method, will be removed in next major release
129
153
  */
130
154
  getFormatColumnsWithStyleForColumn(column: AdaptableColumn, config?: {
131
155
  includeSuspended?: boolean;
132
156
  }): FormatColumn[];
133
157
  /**
134
- * Gets Format Column if any for given Column which includes Style element with ClassName
135
- * @param column The Column for which to retrieve the Format Column
136
- * @returns format columns
158
+ * @deprecated internal method, will be removed in next major release
137
159
  */
138
160
  getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn, config?: {
139
161
  includeSuspended?: boolean;
140
162
  }): FormatColumn[];
141
163
  /**
142
- * Get all FormatColumns which are defined for this column and have a custom DisplayFormat
143
- * @param column
144
- * @param config
145
- * @returns list of FormatColumn
164
+ * @deprecated internal method, will be removed in next major release
146
165
  */
147
166
  getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
148
167
  includeSuspended?: boolean;
149
168
  }): FormatColumn[];
150
169
  /**
151
- * Returns true if Format State includes Format Columns with a Style property
152
- */
153
- hasStyleFormatColumns(): boolean;
154
- /**
155
- * Format value according to format options.
156
- *
157
- * @param customDisplayFormatterContext context that includes value to format
158
- * @param options formatter options
170
+ * @deprecated internal method, will be removed in next major release
159
171
  */
160
172
  getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
161
173
  /**
162
- * Format value according to format options.
163
- *
164
- * @param value context that includes value to format
165
- * @param options formatter options
174
+ * @deprecated internal method, will be removed in next major release
166
175
  */
167
176
  getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
168
177
  /**
169
- * Format value according to format options.
170
- *
171
- * @param customDisplayFormatterContext context that includes value to format
172
- * @param options formatter options
178
+ * @deprecated internal method, will be removed in next major release
173
179
  */
174
180
  getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
175
181
  /**
176
- * Checks if a Format Column contains a Custom Display Formatter
177
- * @param formatColumn Format Column
178
- */
179
- hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
180
- /**
181
- * Returns all Predicates appropriate for the given Scope
182
- * @param scope Scope to check
182
+ * @deprecated internal method, will be removed in next major release
183
183
  */
184
184
  getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
185
185
  /**
186
- * Checks if format column is relevant for a given cell (intersection of given AdaptableColumn and RowNode)
187
- *
188
- * @param formatColumn
189
- * @param column
190
- * @param params
186
+ * @deprecated internal method, will be removed in next major release
191
187
  */
192
188
  isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
193
189
  node: RowNode;
194
190
  value: any;
195
191
  }): boolean;
196
192
  /**
197
- * Extract from the given FormatColumns only the ones which are relevant for a given cell (intersection of given AdaptableColumn and RowNode)
198
- *
199
- * @param formatColumns
200
- * @param column
201
- * @param params
193
+ * @deprecated internal method, will be removed in next major release
202
194
  */
203
195
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
204
196
  node: RowNode;
205
197
  value: any;
206
198
  }): FormatColumn[];
207
199
  /**
208
- * Retrieves all Format Columns which have an Expression
209
- * @returns Format Columns with Expression
200
+ * @deprecated internal method, will be removed in next major release
210
201
  */
211
202
  getFormatColumnsWithExpression(): FormatColumn[] | undefined;
212
- /**
213
- * Increment the precedence of the given FormatColumn
214
- * @param formatColumn
215
- */
216
- incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
217
- /**
218
- * Decrement the precedence of the given FormatColumn
219
- * @param formatColumn
220
- */
221
- decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
222
203
  }
@@ -1,4 +1,4 @@
1
- import { FreeTextColumnState, FreeTextColumn, FreeTextStoredValue } from '../PredefinedConfig/FreeTextColumnState';
1
+ import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../PredefinedConfig/FreeTextColumnState';
2
2
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
3
3
  import { RowNode } from '@ag-grid-community/core';
4
4
  /**
@@ -13,13 +13,19 @@ export interface FreeTextColumnApi {
13
13
  * Gets all FreeTextColumns in Adaptable State
14
14
  * @returns free text column
15
15
  */
16
- getAllFreeTextColumn(): FreeTextColumn[];
16
+ getFreeTextColumns(): FreeTextColumn[];
17
+ /**
18
+ * Retrieves FreeTextColumn by the technical ID (from `FreeTextColumnState`)
19
+ * @param id technical ID
20
+ * @returns free text column
21
+ */
22
+ getFreeTextColumnById(id: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
17
23
  /**
18
- * Retrieves FreeTextColumn for given ColumnId
19
- * @param columnId to Check
24
+ * Gets FreeText Column, if any, for given ColumnId
25
+ * @param columnId ColumnId for which to retrieve the FreeText Column
20
26
  * @returns free text column
21
27
  */
22
- getFreeTextColumnById(columnId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
28
+ getFreeTextColumnForColumnId(columnId: string): FreeTextColumn | undefined;
23
29
  /**
24
30
  * Adds new FreeTextColumn to Adaptable State
25
31
  * @param freeTextColumn to add
@@ -31,21 +37,26 @@ export interface FreeTextColumnApi {
31
37
  * @param freeTextColum to edit (ColumnId is mandatory)
32
38
  * @returns free text column
33
39
  */
34
- editFreeTextColumn(freeTextColumn: Partial<FreeTextColumn> & {
35
- ColumnId: string;
36
- }): FreeTextColumn;
40
+ editFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
37
41
  /**
38
- * Deletes existing FreeTextColumn from Adaptable State
39
- * @param columnId name of FreeTextColumn to delete
42
+ * Deletes FreeTextColumn with given ColumnId from Adaptable State
43
+ * @param columnId ColumnId of FreeTextColumn to delete
40
44
  */
41
45
  deleteFreeTextColumn(columnId: string): void;
42
46
  /**
43
- * Adds FreeTextStoredValue for a FreeTextColumn (replaces existing one if exists)
44
- * @param freeTextColumn FreeTextColumn to which to add Stored Value
47
+ * Sets FreeTextStoredValue for the FreeTextColumn with the given ColumnId (replaces existing one if exists)
48
+ * @param columnId ColumnId of FreeTextColumn to which to add Stored Value
45
49
  * @param storedValue FreeTextStored Value to add
46
50
  * @returns free text column
47
51
  */
48
- addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
52
+ setStoredValue(columnId: string, storedValue: FreeTextStoredValue): FreeTextColumn;
53
+ /**
54
+ * Sets Stored Values to the FreeTextColumn with the given ColumnId
55
+ * @param columnId Free Text Column to which to add Stored Values
56
+ * @param storedValues Stored Values to Add
57
+ * @param replaceAction Function Behaviour: 'All' replaces ALL existing Stored Values; 'Conflicting' adds all stored values and replaces those which clash; 'None' only adds where no existing
58
+ */
59
+ setStoredValues(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
49
60
  /**
50
61
  * Adds Stored Values to Existing FreeTextColumn
51
62
  * @param columnId Free Text Column to which to add Stored Values
@@ -54,23 +65,44 @@ export interface FreeTextColumnApi {
54
65
  */
55
66
  addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
56
67
  /**
57
- * Retrieves a Free Text Column value from a row
68
+ * Retrieves a Free Text Column value for a given row node
58
69
  * @param freeTextColumn column to lookup
59
70
  * @param rowNode row to lookup
60
71
  */
72
+ getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
73
+ /**
74
+ * Opens Settings Panel with Free Text Column section selected and visible
75
+ */
76
+ openFreeTextColumnSettingsPanel(): void;
77
+ /**
78
+ * TO BE REMOVED
79
+ */
80
+ /**
81
+ * @deprecated use `getFreeTextColumns()` instead
82
+ */
83
+ getAllFreeTextColumn(): FreeTextColumn[];
84
+ /**
85
+ * @deprecated use `setStoredValue()` instead
86
+ */
87
+ addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
88
+ /**
89
+ * @deprecated use `setStoredValues()` instead
90
+ */
91
+ addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
92
+ /**
93
+ * @deprecated use `getFreeTextColumnValueForRowNode()` instead
94
+ */
61
95
  getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
62
96
  /**
63
- * Checks if a User Edit was in a Free Text Column
64
- * @param cellDataChangedInfo change to check
97
+ * @deprecated internal method, will be removed in next major release
65
98
  */
66
99
  checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
67
100
  /**
68
- * Opens Settings Panel with Free Text Column section selected and visible
101
+ * @deprecated internal method, will be removed in next major release
69
102
  */
70
- showFreeTextColumnPopup(): void;
103
+ getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
71
104
  /**
72
- * Returns all the references in the AdaptableState of the given FreeTextColumn
73
- * @param freeTextColumn FreeTextColumn to be checked
105
+ * @deprecated use `openFreeTextColumnSettingsPanel()` instead
74
106
  */
75
- getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
107
+ showFreeTextColumnPopup(): void;
76
108
  }
@@ -68,7 +68,7 @@ export interface GridApi {
68
68
  * Updates multiple cells
69
69
  * @param gridCells cells to update
70
70
  */
71
- setCellsValue(gridCells: {
71
+ setCellValues(gridCells: {
72
72
  columnId: any;
73
73
  newValue: any;
74
74
  primaryKeyValue: any;
@@ -189,6 +189,14 @@ export interface GridApi {
189
189
  * @param clearSelection Whether to clear current selection in grid
190
190
  */
191
191
  selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
192
+ /**
193
+ * Selects a group of cells in a given range using a query
194
+ *
195
+ * @param query query to use to select cells
196
+ * @param gridCellRange range to select
197
+ * @param clearSelection whether to clear current selection in grid
198
+ */
199
+ selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
192
200
  /**
193
201
  * Retrieves the first Row Node in AdapTable
194
202
  */
@@ -219,6 +227,10 @@ export interface GridApi {
219
227
  * @param primaryKeyValue Primary Key Value to look up
220
228
  */
221
229
  getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
230
+ /**
231
+ * Retrieves the displayed RowNode at the given index
232
+ * @param rowIndex row index
233
+ */
222
234
  getRowNodeForIndex(rowIndex: number): RowNode | undefined;
223
235
  /**
224
236
  * Returns the Primary Kev Value for a given Row Node
@@ -293,9 +305,9 @@ export interface GridApi {
293
305
  */
294
306
  expandAllRowGroups(): void;
295
307
  /**
296
- * Close all open groups in Row Grouping
308
+ * Collapse all open groups in Row Grouping
297
309
  */
298
- closeAllRowGroups(): void;
310
+ collapseAllRowGroups(): void;
299
311
  /**
300
312
  * Get keys for any open rows in Row Grouping
301
313
  */
@@ -334,23 +346,6 @@ export interface GridApi {
334
346
  * Redraws AdapTable (expensive operation so use sparingly)
335
347
  */
336
348
  redrawGrid(): void;
337
- /**
338
- * Fires Search Changed Event - typically used to enable server searching and filtering
339
- * This is now deprecated and will be removed in AdapTable 13
340
- */
341
- fireSearchChangedEvent(searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort', searchAtDate?: Date): void;
342
- /**
343
- * Fires Grid Sorted Event
344
- */
345
- fireGridSortedEvent(): void;
346
- /**
347
- * Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed
348
- */
349
- fireCellChangedEvent(cellChangedInfo: CellDataChangedInfo): void;
350
- /**
351
- * Fires Grid Data Changed Event - when a row has changed in AG Grid
352
- */
353
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
354
349
  /**
355
350
  * Grid will jump to Row containing given Primary Kev Value
356
351
  * @param primaryKeyValue value in Primary Key Column
@@ -448,10 +443,15 @@ export interface GridApi {
448
443
  */
449
444
  destroy(): void;
450
445
  /**
451
- * Checks if given set of Grid Cells are editable
446
+ * Checks if given Grid Cell is editable
447
+ * @param gridCell cell to check
448
+ */
449
+ isCellEditable(gridCell: GridCell): boolean;
450
+ /**
451
+ * Checks if all of given Grid Cells are editable
452
452
  * @param gridCells cells to check
453
453
  */
454
- areCellsEditable(gridCells: GridCell[]): boolean;
454
+ isEveryCellEditable(gridCells: GridCell[]): boolean;
455
455
  /**
456
456
  * Retrieves the Entitlement Access Level for a given Adaptable Module
457
457
  * @param adaptableModule Adaptable Mdoule for which to get the Entitlement Access Level
@@ -472,5 +472,40 @@ export interface GridApi {
472
472
  /**
473
473
  * Opens Settings Panel with Grid Info section selected and visible
474
474
  */
475
+ openGridInfoSettingsPanel(): void;
476
+ /**
477
+ * TO BE REMOVED
478
+ */
479
+ /**
480
+ * @deprecated use `setCellValues()` instead
481
+ */
482
+ setCellsValue(gridCells: {
483
+ columnId: any;
484
+ newValue: any;
485
+ primaryKeyValue: any;
486
+ }[]): void;
487
+ /**
488
+ * @deprecated use `collapseAllRowGroups()` instead
489
+ */
490
+ closeAllRowGroups(): void;
491
+ /**
492
+ * @deprecated internal method, will be removed in next major release
493
+ */
494
+ fireGridSortedEvent(): void;
495
+ /**
496
+ * @deprecated internal method, will be removed in next major release
497
+ */
498
+ fireCellChangedEvent(cellChangedInfo: CellDataChangedInfo): void;
499
+ /**
500
+ * @deprecated internal method, will be removed in next major release
501
+ */
502
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
503
+ /**
504
+ * @deprecated use `openGridInfoSettingsPanel()` instead
505
+ */
475
506
  showGridInfoPopup(): void;
507
+ /**
508
+ * @deprecated use `isEveryCellEditable()` instead
509
+ */
510
+ areCellsEditable(gridCells: GridCell[]): boolean;
476
511
  }
@@ -1,8 +1,14 @@
1
- import { ActionApi, ActionColumn } from '../../../types';
1
+ import { ActionApi, ActionColumn, ActionRowButtonType } from '../../../types';
2
2
  import { ApiBase } from './ApiBase';
3
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
4
+ import { ActionInternalApi } from '../Internal/ActionInternalApi';
3
5
  export declare class ActionApiImpl extends ApiBase implements ActionApi {
4
- getAllActionColumn(): ActionColumn[];
6
+ internalApi: ActionInternalApi;
7
+ constructor(adaptable: IAdaptable);
8
+ getActionColumns(): ActionColumn[];
9
+ getActionRowButtons(): ActionRowButtonType[];
5
10
  displayEditActionRow(primaryKey: any): void;
6
- displayCreateActionRow(duplicatedRowNodePrimaryKey?: any): void;
11
+ displayCreateActionRow(): void;
7
12
  displayCloneActionRow(clonedRowNodePrimaryKey?: any): void;
13
+ getAllActionColumn(): ActionColumn[];
8
14
  }
@@ -4,19 +4,31 @@ exports.ActionApiImpl = void 0;
4
4
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
5
5
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
6
6
  const ApiBase_1 = require("./ApiBase");
7
+ const ActionInternalApi_1 = require("../Internal/ActionInternalApi");
8
+ const logDeprecation_1 = require("../../Utilities/logDeprecation");
7
9
  class ActionApiImpl extends ApiBase_1.ApiBase {
8
- getAllActionColumn() {
10
+ constructor(adaptable) {
11
+ super(adaptable);
12
+ this.internalApi = new ActionInternalApi_1.ActionInternalApi(adaptable);
13
+ }
14
+ getActionColumns() {
9
15
  var _a;
10
16
  return (_a = this.getActionOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
11
17
  }
18
+ getActionRowButtons() {
19
+ const actionRowButtons = this.getActionOptions().actionRowButtons;
20
+ return typeof actionRowButtons === 'function'
21
+ ? actionRowButtons({
22
+ adaptableApi: this.getAdaptableApi(),
23
+ })
24
+ : actionRowButtons !== null && actionRowButtons !== void 0 ? actionRowButtons : [];
25
+ }
12
26
  displayEditActionRow(primaryKey) {
13
27
  const rowNode = this.adaptable.api.gridApi.getRowNodeForPrimaryKey(primaryKey);
14
28
  if (!rowNode) {
15
29
  (0, LoggingHelper_1.LogAdaptableWarning)(`Can NOT edit row: rowNode not found for primaryKey ${primaryKey}`);
16
30
  }
17
- const editForm = this.adaptable.api.internalApi
18
- .getRowEditService()
19
- .buildRowEditForm(rowNode);
31
+ const editForm = this.internalApi.buildRowEditForm(rowNode);
20
32
  this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
21
33
  Id: 'edit_row_form',
22
34
  Form: editForm,
@@ -26,10 +38,8 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
26
38
  },
27
39
  }));
28
40
  }
29
- displayCreateActionRow(duplicatedRowNodePrimaryKey) {
30
- const createForm = this.adaptable.api.internalApi
31
- .getRowEditService()
32
- .buildRowCreateForm();
41
+ displayCreateActionRow() {
42
+ const createForm = this.internalApi.buildRowCreateForm();
33
43
  this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
34
44
  Id: 'create_row_form',
35
45
  Form: createForm,
@@ -40,9 +50,7 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
40
50
  if (!rowNode) {
41
51
  (0, LoggingHelper_1.LogAdaptableWarning)(`Can NOT clone row: rowNode not found for primaryKey ${clonedRowNodePrimaryKey}`);
42
52
  }
43
- const createForm = this.adaptable.api.internalApi
44
- .getRowEditService()
45
- .buildRowCreateForm(rowNode);
53
+ const createForm = this.internalApi.buildRowCreateForm(rowNode);
46
54
  this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
47
55
  Id: 'create_row_form',
48
56
  Form: createForm,
@@ -52,5 +60,9 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
52
60
  },
53
61
  }));
54
62
  }
63
+ getAllActionColumn() {
64
+ (0, logDeprecation_1.logDeprecation)('ActionApi', 'getAllActionColumn', 'getActionColumns');
65
+ return this.getActionColumns();
66
+ }
55
67
  }
56
68
  exports.ActionApiImpl = ActionApiImpl;
@@ -1,4 +1,5 @@
1
1
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
2
+ import { AdaptableInternalApi } from '../Internal/AdaptableInternalApi';
2
3
  import { AdaptableApi, SettingsPanelApi } from '../../types';
3
4
  import { AlertApi } from '../AlertApi';
4
5
  import { BulkUpdateApi } from '../BulkUpdateApi';
@@ -16,7 +17,6 @@ import { PluginsApi } from '../PluginsApi';
16
17
  import { ExportApi } from '../ExportApi';
17
18
  import { FormatColumnApi } from '../FormatColumnApi';
18
19
  import { FreeTextColumnApi } from '../FreeTextColumnApi';
19
- import { InternalApi } from '../InternalApi';
20
20
  import { LayoutApi } from '../LayoutApi';
21
21
  import { PlusMinusApi } from '../PlusMinusApi';
22
22
  import { QuickSearchApi } from '../QuickSearchApi';
@@ -43,6 +43,7 @@ import { ActionApi } from '../../../types';
43
43
  import { StyledColumnApi } from '../StyledColumnApi';
44
44
  export declare class AdaptableApiImpl implements AdaptableApi {
45
45
  protected adaptable: IAdaptable;
46
+ internalApi: AdaptableInternalApi;
46
47
  actionApi: ActionApi;
47
48
  applicationApi: ApplicationApi;
48
49
  alertApi: AlertApi;
@@ -63,7 +64,6 @@ export declare class AdaptableApiImpl implements AdaptableApi {
63
64
  formatColumnApi: FormatColumnApi;
64
65
  freeTextColumnApi: FreeTextColumnApi;
65
66
  gridApi: GridApi;
66
- internalApi: InternalApi;
67
67
  layoutApi: LayoutApi;
68
68
  plusMinusApi: PlusMinusApi;
69
69
  quickSearchApi: QuickSearchApi;
@@ -27,7 +27,7 @@ const FilterApiImpl_1 = require("./FilterApiImpl");
27
27
  const SystemStatusApiImpl_1 = require("./SystemStatusApiImpl");
28
28
  const ThemeApiImpl_1 = require("./ThemeApiImpl");
29
29
  const UserInterfaceApiImpl_1 = require("./UserInterfaceApiImpl");
30
- const InternalApiImpl_1 = require("./InternalApiImpl");
30
+ const AdaptableInternalApi_1 = require("../Internal/AdaptableInternalApi");
31
31
  const ScheduleApiImpl_1 = require("./ScheduleApiImpl");
32
32
  const QueryApiImpl_1 = require("./QueryApiImpl");
33
33
  const TeamSharingApiImpl_1 = require("./TeamSharingApiImpl");
@@ -42,6 +42,7 @@ const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
42
42
  const ActionApiImpl_1 = require("./ActionApiImpl");
43
43
  const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
44
44
  const CalendarApiImpl_1 = require("./CalendarApiImpl");
45
+ const EntitlementApiImpl_1 = require("./EntitlementApiImpl");
45
46
  class AdaptableApiImpl {
46
47
  constructor(adaptable) {
47
48
  this.adaptable = adaptable;
@@ -62,6 +63,7 @@ class AdaptableApiImpl {
62
63
  this.customSortApi = new CustomSortApiImpl_1.CustomSortApiImpl(adaptable);
63
64
  this.dashboardApi = new DashboardApiImpl_1.DashboardApiImpl(adaptable);
64
65
  this.dataSetApi = new DataSetApiImpl_1.DataSetApiImpl(adaptable);
66
+ this.entitlementApi = new EntitlementApiImpl_1.EntitlementApiImpl(adaptable);
65
67
  this.eventApi = new EventApiImpl_1.EventApiImpl(adaptable);
66
68
  this.exportApi = new ExportApiImpl_1.ExportApiImpl(adaptable);
67
69
  this.formatColumnApi = new FormatColumnApiImpl_1.FormatColumnApiImpl(adaptable);
@@ -87,7 +89,8 @@ class AdaptableApiImpl {
87
89
  this.dataChangeHistoryApi = new DataChangeHistoryApiImpl_1.DataChangeHistoryApiImpl(adaptable);
88
90
  this.chartingApi = new ChartingApiImpl_1.ChartingApiImpl(adaptable);
89
91
  this.statusBarApi = new StatusBarApiImpl_1.StatusBarApiImpl(adaptable);
90
- this.internalApi = new InternalApiImpl_1.InternalApiImpl(adaptable);
92
+ // adaptable internal api
93
+ this.internalApi = new AdaptableInternalApi_1.AdaptableInternalApi(adaptable);
91
94
  }
92
95
  /**
93
96
  * This is only meant to be called by the Adaptable instance.