@adaptabletools/adaptable 22.0.0-canary.1 → 22.0.0-canary.11

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 (394) hide show
  1. package/agGrid.d.ts +9 -9
  2. package/agGrid.js +1 -0
  3. package/index.css +1280 -1400
  4. package/index.css.map +1 -1
  5. package/index.d.ts +66 -0
  6. package/index.js +73 -0
  7. package/package.json +3 -3
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
  9. package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
  11. package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
  13. package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
  14. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
  15. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  16. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  17. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
  18. package/src/AdaptableState/AdaptableState.d.ts +2 -0
  19. package/src/AdaptableState/AlertState.d.ts +5 -2
  20. package/src/AdaptableState/ChartingState.d.ts +2 -2
  21. package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
  22. package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
  23. package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
  24. package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
  25. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
  26. package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
  27. package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
  28. package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
  29. package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
  30. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
  31. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
  32. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  33. package/src/AdaptableState/Common/NamedObject.js +1 -0
  34. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  35. package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
  36. package/src/AdaptableState/Common/Schedule.d.ts +8 -5
  37. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
  38. package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
  39. package/src/AdaptableState/CustomSortState.d.ts +5 -1
  40. package/src/AdaptableState/DashboardState.d.ts +1 -1
  41. package/src/AdaptableState/ExportState.d.ts +1 -1
  42. package/src/AdaptableState/FlashingCellState.d.ts +6 -2
  43. package/src/AdaptableState/FormatColumnState.d.ts +5 -9
  44. package/src/AdaptableState/InitialState.d.ts +10 -1
  45. package/src/AdaptableState/InternalState.d.ts +2 -0
  46. package/src/AdaptableState/LayoutState.d.ts +7 -3
  47. package/src/AdaptableState/NamedQueryState.d.ts +1 -1
  48. package/src/AdaptableState/PlusMinusState.d.ts +5 -1
  49. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  50. package/src/AdaptableState/ShortcutState.d.ts +5 -1
  51. package/src/AdaptableState/StyledColumnState.d.ts +1 -1
  52. package/src/AdaptableState/ThemeState.d.ts +1 -1
  53. package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
  54. package/src/AdaptableState/UserInterfaceState.js +1 -0
  55. package/src/Api/AlertApi.d.ts +6 -0
  56. package/src/Api/CustomSortApi.d.ts +12 -3
  57. package/src/Api/DataSetApi.d.ts +1 -1
  58. package/src/Api/FlashingCellApi.d.ts +6 -0
  59. package/src/Api/FormatColumnApi.d.ts +10 -4
  60. package/src/Api/GridApi.d.ts +27 -12
  61. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  62. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  63. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
  64. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  65. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  66. package/src/Api/Implementation/ApiBase.js +2 -1
  67. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  68. package/src/Api/Implementation/ChartingApiImpl.js +6 -2
  69. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  70. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  71. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  72. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  73. package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
  74. package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
  75. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  76. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  77. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  78. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  79. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  80. package/src/Api/Implementation/EventApiImpl.js +16 -14
  81. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  82. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  83. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  84. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  85. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  86. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
  87. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
  88. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
  89. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  90. package/src/Api/Implementation/GridApiImpl.d.ts +11 -10
  91. package/src/Api/Implementation/GridApiImpl.js +39 -21
  92. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  93. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  94. package/src/Api/Implementation/LayoutApiImpl.js +5 -1
  95. package/src/Api/Implementation/LayoutHelpers.js +7 -0
  96. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
  97. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  98. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
  99. package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
  100. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  101. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  102. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  103. package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
  104. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  105. package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
  106. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  107. package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
  108. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  109. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  110. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
  111. package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
  112. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  113. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  114. package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
  115. package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
  116. package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
  117. package/src/Api/Internal/LayoutInternalApi.js +1 -1
  118. package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
  119. package/src/Api/LayoutApi.d.ts +6 -0
  120. package/src/Api/PlusMinusApi.d.ts +6 -0
  121. package/src/Api/ScheduleApi.d.ts +6 -0
  122. package/src/Api/ShortcutApi.d.ts +6 -0
  123. package/src/Api/UserInterfaceApi.d.ts +17 -0
  124. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
  125. package/src/Redux/ActionsReducers/FormatColumnRedux.js +15 -0
  126. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  127. package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
  128. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
  129. package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
  130. package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
  131. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +21 -0
  132. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  133. package/src/Redux/Store/AdaptableStore.js +113 -57
  134. package/src/Strategy/AdaptableModuleBase.js +4 -0
  135. package/src/Strategy/AlertModule.js +5 -0
  136. package/src/Strategy/BulkUpdateModule.js +8 -8
  137. package/src/Strategy/CalculatedColumnModule.js +1 -0
  138. package/src/Strategy/CellSummaryModule.js +1 -1
  139. package/src/Strategy/CustomSortModule.js +4 -0
  140. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  141. package/src/Strategy/FlashingCellModule.js +6 -0
  142. package/src/Strategy/FormatColumnModule.js +4 -0
  143. package/src/Strategy/FreeTextColumnModule.js +1 -0
  144. package/src/Strategy/LayoutModule.js +6 -5
  145. package/src/Strategy/PlusMinusModule.js +7 -1
  146. package/src/Strategy/QuickSearchModule.js +1 -1
  147. package/src/Strategy/ScheduleModule.js +5 -0
  148. package/src/Strategy/SettingsPanelModule.js +11 -7
  149. package/src/Strategy/ShortcutModule.js +6 -0
  150. package/src/Strategy/SmartEditModule.js +10 -10
  151. package/src/Strategy/TeamSharingModule.js +10 -10
  152. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
  153. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
  154. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
  155. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  156. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
  157. package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
  158. package/src/Utilities/Extensions/StringExtensions.js +16 -0
  159. package/src/Utilities/Helpers/FormatHelper.js +9 -2
  160. package/src/Utilities/Helpers/StyleHelper.js +14 -0
  161. package/src/Utilities/MenuItem.js +18 -0
  162. package/src/Utilities/ObjectFactory.js +16 -3
  163. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  164. package/src/Utilities/Services/AlertService.js +6 -4
  165. package/src/Utilities/Services/AnnotationsService.js +4 -1
  166. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  167. package/src/Utilities/Services/ChartingService.js +1 -0
  168. package/src/Utilities/Services/DataService.js +11 -3
  169. package/src/Utilities/Services/Fdc3Service.js +9 -7
  170. package/src/Utilities/Services/FlashingCellService.js +5 -0
  171. package/src/Utilities/Services/LicenseService/index.js +1 -1
  172. package/src/Utilities/Services/MetamodelService.js +2 -2
  173. package/src/Utilities/Services/ModuleService.js +5 -6
  174. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  175. package/src/Utilities/Services/RowFormService.js +1 -0
  176. package/src/Utilities/Services/RowSummaryService.js +10 -7
  177. package/src/Utilities/Services/TeamSharingService.js +3 -1
  178. package/src/Utilities/Services/ThemeService.js +13 -15
  179. package/src/Utilities/Services/ValidationService.js +2 -1
  180. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  181. package/src/Utilities/logDeprecation.js +3 -4
  182. package/src/Utilities/resolveContainerElement.d.ts +23 -0
  183. package/src/Utilities/resolveContainerElement.js +44 -0
  184. package/src/View/AdaptablePopover/index.d.ts +1 -0
  185. package/src/View/AdaptablePopover/index.js +1 -1
  186. package/src/View/Alert/ActiveAlertsPanel.js +8 -0
  187. package/src/View/Alert/AlertViewPanel.js +13 -9
  188. package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
  189. package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
  190. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
  191. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
  192. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +47 -12
  193. package/src/View/Alert/Wizard/AlertWizard.js +14 -10
  194. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  195. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
  196. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
  197. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  198. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  199. package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
  200. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  201. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  202. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  203. package/src/View/Components/Buttons/ButtonApply.js +1 -1
  204. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  205. package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
  206. package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
  207. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  208. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
  209. package/src/View/Components/CellPopup/index.js +1 -1
  210. package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
  211. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
  212. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
  213. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  214. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
  215. package/src/View/Components/NewScopeComponent.js +3 -3
  216. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  217. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  218. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  219. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  220. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
  221. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
  222. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  223. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +36 -1
  224. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +19 -18
  225. package/src/View/Components/StyleComponent.d.ts +1 -0
  226. package/src/View/Components/StyleComponent.js +94 -24
  227. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  228. package/src/View/Components/WizardSummaryPage.js +1 -1
  229. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  230. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +41 -15
  231. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  232. package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
  233. package/src/View/Dashboard/CustomToolbar.js +1 -1
  234. package/src/View/Dashboard/DashboardPopup.js +4 -5
  235. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
  236. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  237. package/src/View/Export/ExportDestinationPicker.js +1 -1
  238. package/src/View/Export/ExportStatusBar.js +4 -2
  239. package/src/View/Export/ExportViewPanel.js +25 -18
  240. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
  241. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +34 -14
  242. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +14 -10
  243. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  244. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
  245. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  246. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -9
  247. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  248. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
  249. package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
  250. package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
  251. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
  252. package/src/View/Layout/LayoutViewPanel.js +1 -1
  253. package/src/View/Layout/TransposedPopup.js +144 -138
  254. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  255. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  256. package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
  257. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
  258. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
  259. package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
  260. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  261. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
  262. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
  263. package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
  264. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
  265. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
  266. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
  267. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
  268. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
  269. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
  270. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
  271. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
  272. package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
  273. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  274. package/src/View/StateManagement/handleExportState.js +1 -1
  275. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  276. package/src/View/Theme/ThemePopup.js +13 -16
  277. package/src/View/UIHelper.d.ts +4 -1
  278. package/src/View/UIHelper.js +23 -14
  279. package/src/agGrid/Adaptable.js +15 -11
  280. package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
  281. package/src/agGrid/AdaptableAgGrid.js +257 -111
  282. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  283. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  284. package/src/agGrid/AdaptableLogger.js +10 -0
  285. package/src/agGrid/AgGridAdapter.js +19 -9
  286. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
  287. package/src/agGrid/AgGridColumnAdapter.js +20 -22
  288. package/src/agGrid/AgGridExportAdapter.js +15 -14
  289. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  290. package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
  291. package/src/agGrid/AgGridMenuAdapter.js +10 -1
  292. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  293. package/src/agGrid/AgGridOptionsService.js +3 -0
  294. package/src/agGrid/AgGridThemeAdapter.js +4 -2
  295. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  296. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  297. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  298. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  299. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  300. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  301. package/src/agGrid/index.d.ts +6 -0
  302. package/src/agGrid/index.js +6 -0
  303. package/src/components/CheckBox/index.js +1 -1
  304. package/src/components/ColorPicker/ColorPicker.js +5 -4
  305. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  306. package/src/components/Datepicker/index.js +1 -1
  307. package/src/components/Dropdown/Arrows.js +1 -1
  308. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  309. package/src/components/ExpressionEditor/EditorInput.js +19 -3
  310. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
  311. package/src/components/FormLayout/index.js +1 -1
  312. package/src/components/OverlayTrigger/index.js +1 -1
  313. package/src/components/Select/Select.js +79 -16
  314. package/src/components/Tree/TreeDropdown/index.js +2 -2
  315. package/src/components/overlayBaseZIndex.js +1 -1
  316. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  317. package/src/devTools/index.js +54 -53
  318. package/src/env.js +2 -2
  319. package/src/layout-manager/src/LMEmitter.js +11 -11
  320. package/src/layout-manager/src/LMLogger.js +7 -0
  321. package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
  322. package/src/layout-manager/src/index.js +81 -58
  323. package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
  324. package/src/metamodel/adaptable.metamodel.d.ts +177 -8
  325. package/src/metamodel/adaptable.metamodel.js +1 -1
  326. package/src/migration/AdaptableUpgradeHelper.js +8 -3
  327. package/src/migration/VersionUpgrade.js +1 -0
  328. package/src/migration/VersionUpgrade17.js +5 -6
  329. package/src/migration/VersionUpgrade20.js +4 -4
  330. package/src/migration/VersionUpgrade22.d.ts +21 -0
  331. package/src/migration/VersionUpgrade22.js +187 -0
  332. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  333. package/src/types.d.ts +9 -7
  334. package/themes/dark.css +30 -30
  335. package/themes/light.css +4 -2
  336. package/tsconfig.esm.tsbuildinfo +1 -1
  337. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -632
  338. package/src/View/Alert/AlertEntityRow.d.ts +0 -11
  339. package/src/View/Alert/AlertEntityRow.js +0 -28
  340. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
  341. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -58
  342. package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
  343. package/src/View/Components/Buttons/ButtonFunction.js +0 -8
  344. package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
  345. package/src/View/Components/Buttons/ButtonGeneral.js +0 -7
  346. package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
  347. package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -5
  348. package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
  349. package/src/View/Components/Buttons/ButtonShow.js +0 -7
  350. package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
  351. package/src/View/Components/Buttons/ButtonShowChart.js +0 -7
  352. package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
  353. package/src/View/Components/Buttons/ButtonUndo.js +0 -7
  354. package/src/View/Components/ExpressionWizard.d.ts +0 -24
  355. package/src/View/Components/ExpressionWizard.js +0 -77
  356. package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
  357. package/src/View/Components/FilterForm/Waiting.js +0 -14
  358. package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
  359. package/src/View/Components/Panels/PanelFooter.js +0 -9
  360. package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
  361. package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -15
  362. package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
  363. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -26
  364. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
  365. package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -45
  366. package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
  367. package/src/View/Components/WizardSummaryRow.d.ts +0 -9
  368. package/src/View/Components/WizardSummaryRow.js +0 -11
  369. package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
  370. package/src/View/CustomSort/CustomSortSummary.js +0 -105
  371. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
  372. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -19
  373. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
  374. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -68
  375. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
  376. package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -68
  377. package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
  378. package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -56
  379. package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
  380. package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -35
  381. package/src/View/Filter/FilterSummary.d.ts +0 -18
  382. package/src/View/Filter/FilterSummary.js +0 -48
  383. package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
  384. package/src/View/FormatColumn/FormatColumnSummary.js +0 -90
  385. package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
  386. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -88
  387. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
  388. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -94
  389. package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
  390. package/src/View/PlusMinus/PlusMinusSummary.js +0 -95
  391. package/src/View/Wizard/WizardLegend.d.ts +0 -12
  392. package/src/View/Wizard/WizardLegend.js +0 -23
  393. /package/src/{View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts → AdaptableState/Common/AdaptableRowContext.js} +0 -0
  394. /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
@@ -11,6 +11,7 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
11
11
  getCustomSortState(): CustomSortState;
12
12
  getCustomSorts(config?: LayoutExtendedConfig): CustomSort[];
13
13
  getCustomSortById(id: CustomSort['Uuid'], config?: LayoutExtendedConfig): CustomSort;
14
+ getCustomSortByName(name: string): CustomSort | undefined;
14
15
  getLiveCustomSorts(): CustomSort[];
15
16
  getLiveCustomSortComparers(): ColumnValuesComparer[];
16
17
  getActiveCustomSorts(config?: LayoutExtendedConfig): CustomSort[];
@@ -18,7 +19,11 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
18
19
  getCustomSortByColumn(column: string): CustomSort;
19
20
  getCustomSortForColumn(columnId: string): CustomSort | undefined;
20
21
  addCustomSort(customSort: CustomSort): CustomSort;
21
- createCustomSort(columnId: string, values: string[]): CustomSort;
22
+ createCustomSort(params: {
23
+ name: string;
24
+ columnId: string;
25
+ values: string[];
26
+ }): CustomSort;
22
27
  editCustomSortValues(columnId: string, values: string[]): CustomSort;
23
28
  editCustomSort(customSort: CustomSort): CustomSort;
24
29
  deleteCustomSort(column: string): void;
@@ -3,6 +3,7 @@ import * as CustomSortRedux from '../../Redux/ActionsReducers/CustomSortRedux';
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { CustomSortInternalApi } from '../Internal/CustomSortInternalApi';
5
5
  export class CustomSortApiImpl extends ApiBase {
6
+ internalApi;
6
7
  constructor(_adaptable) {
7
8
  super(_adaptable);
8
9
  this.internalApi = new CustomSortInternalApi(_adaptable);
@@ -16,6 +17,9 @@ export class CustomSortApiImpl extends ApiBase {
16
17
  getCustomSortById(id, config) {
17
18
  return this.getCustomSorts(config).find((customSort) => customSort.Uuid === id);
18
19
  }
20
+ getCustomSortByName(name) {
21
+ return this.getCustomSorts().find((customSort) => customSort.Name === name);
22
+ }
19
23
  getLiveCustomSorts() {
20
24
  let returnVals = [];
21
25
  const sortedColIds = this.getGridApi()
@@ -69,8 +73,8 @@ export class CustomSortApiImpl extends ApiBase {
69
73
  this.dispatchAction(CustomSortRedux.CustomSortAdd(customSort));
70
74
  return this.getCustomSortById(customSort.Uuid);
71
75
  }
72
- createCustomSort(columnId, values) {
73
- let customSort = { ColumnId: columnId, SortedValues: values };
76
+ createCustomSort(params) {
77
+ let customSort = { Name: params.name, ColumnId: params.columnId, SortedValues: params.values };
74
78
  return this.addCustomSort(customSort);
75
79
  }
76
80
  editCustomSortValues(columnId, values) {
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import { DashboardRefresh } from '../../Redux/ActionsReducers/InternalRedux';
6
6
  import { DashboardInternalApi } from '../Internal/DashboardInternalApi';
7
7
  export class DashboardApiImpl extends ApiBase {
8
+ internalApi;
8
9
  constructor(_adaptable) {
9
10
  super(_adaptable);
10
11
  this.internalApi = new DashboardInternalApi(_adaptable);
@@ -2,21 +2,6 @@ import { ApiBase } from './ApiBase';
2
2
  import { DataChangeHistoryClearRow, DataChangeHistoryDisable, DataChangeHistoryEnable, DataChangeHistoryResume, DataChangeHistorySuspend, DataChangeHistoryUndo, DataChangeHistoryAdd, } from '../../Redux/ActionsReducers/InternalRedux';
3
3
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
4
4
  export class DataChangeHistoryApiImpl extends ApiBase {
5
- constructor() {
6
- super(...arguments);
7
- this.getDataChangeHistoryKey = (dataChangeInfo) => {
8
- const columnId = dataChangeInfo.column.columnId;
9
- const primaryKeyValue = dataChangeInfo.primaryKeyValue;
10
- const changedAt = dataChangeInfo.changedAt;
11
- const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
12
- if (showLastDataChangeOnly) {
13
- return JSON.stringify({ columnId, primaryKeyValue });
14
- }
15
- else {
16
- return JSON.stringify({ columnId, primaryKeyValue, changedAt });
17
- }
18
- };
19
- }
20
5
  getDataChangeHistoryMode() {
21
6
  return this.getAdaptableState().Internal.DataChangeHistory.currentMode;
22
7
  }
@@ -67,4 +52,16 @@ export class DataChangeHistoryApiImpl extends ApiBase {
67
52
  openDataChangeHistorySettingsPanel() {
68
53
  this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
69
54
  }
55
+ getDataChangeHistoryKey = (dataChangeInfo) => {
56
+ const columnId = dataChangeInfo.column.columnId;
57
+ const primaryKeyValue = dataChangeInfo.primaryKeyValue;
58
+ const changedAt = dataChangeInfo.changedAt;
59
+ const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
60
+ if (showLastDataChangeOnly) {
61
+ return JSON.stringify({ columnId, primaryKeyValue });
62
+ }
63
+ else {
64
+ return JSON.stringify({ columnId, primaryKeyValue, changedAt });
65
+ }
66
+ };
70
67
  }
@@ -1,6 +1,7 @@
1
1
  import { DataImportInternalApi } from '../Internal/DataImportInternalApi';
2
2
  import { ApiBase } from './ApiBase';
3
3
  export class DataImportApiImpl extends ApiBase {
4
+ internalApi;
4
5
  constructor(_adaptable) {
5
6
  super(_adaptable);
6
7
  this.internalApi = new DataImportInternalApi(_adaptable);
@@ -3,6 +3,7 @@ import * as InternalRedux from '../../Redux/ActionsReducers/InternalRedux';
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { DataSetInternalApi } from '../Internal/DataSetInternalApi';
5
5
  export class DataSetApiImpl extends ApiBase {
6
+ internalApi;
6
7
  constructor(_adaptable) {
7
8
  super(_adaptable);
8
9
  this.internalApi = new DataSetInternalApi(_adaptable);
@@ -1,6 +1,7 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { EntitlementInternalApi } from '../Internal/EntitlementInternalApi';
3
3
  export class EntitlementApiImpl extends ApiBase {
4
+ internalApi;
4
5
  constructor(_adaptable) {
5
6
  super(_adaptable);
6
7
  this.internalApi = new EntitlementInternalApi(_adaptable);
@@ -2,22 +2,10 @@ import { ApiBase } from './ApiBase';
2
2
  import Emitter from '../../Utilities/Emitter';
3
3
  import { EventInternalApi } from '../Internal/EventInternalApi';
4
4
  export class EventApiImpl extends ApiBase {
5
+ emitter;
6
+ internalApi;
5
7
  constructor(_adaptable) {
6
8
  super(_adaptable);
7
- this.on = (eventName, callback) => {
8
- let result;
9
- if (eventName === 'AdaptableReady') {
10
- this.emitter.onIncludeFiredOnce(eventName).then(callback);
11
- return () => { };
12
- }
13
- else {
14
- result = this.emitter.on(eventName, callback);
15
- }
16
- return result;
17
- };
18
- this.off = (eventName, callback) => this.emitter.off(eventName, callback);
19
- this.emit = (eventName, data) => this.emitter.emit(eventName, data);
20
- this.emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
21
9
  this.emitter = new Emitter();
22
10
  this.internalApi = new EventInternalApi(_adaptable);
23
11
  }
@@ -26,4 +14,18 @@ export class EventApiImpl extends ApiBase {
26
14
  this.emitSync('AdaptableDestroy');
27
15
  this.emitter.destroy();
28
16
  }
17
+ on = (eventName, callback) => {
18
+ let result;
19
+ if (eventName === 'AdaptableReady') {
20
+ this.emitter.onIncludeFiredOnce(eventName).then(callback);
21
+ return () => { };
22
+ }
23
+ else {
24
+ result = this.emitter.on(eventName, callback);
25
+ }
26
+ return result;
27
+ };
28
+ off = (eventName, callback) => this.emitter.off(eventName, callback);
29
+ emit = (eventName, data) => this.emitter.emit(eventName, data);
30
+ emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
29
31
  }
@@ -4,6 +4,7 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
4
4
  import { ExportInternalApi } from '../Internal/ExportInternalApi';
5
5
  import { ALL_DATA_REPORT, CLIPBOARD_EXPORT_DESTINATION, DOWNLOAD_EXPORT_DESTINATION, EMPTY_STRING, SYSTEM_EXPORT_DESTINATIONS, SYSTEM_REPORT_FORMATS, SYSTEM_REPORT_NAMES, } from '../../Utilities/Constants/GeneralConstants';
6
6
  export class ExportApiImpl extends ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new ExportInternalApi(_adaptable);
@@ -2,6 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import * as parser from '../../parser/src';
3
3
  import { ExpressionInternalApi } from '../Internal/ExpressionInternalApi';
4
4
  export class ExpressionApiImpl extends ApiBase {
5
+ internalApi;
5
6
  constructor(_adaptable) {
6
7
  super(_adaptable);
7
8
  this.internalApi = new ExpressionInternalApi(_adaptable);
@@ -2,6 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import { Fdc3InternalApi } from '../Internal/Fdc3InternalApi';
3
3
  import { ContextConfiguration } from '../../AdaptableState/Common/Fdc3Context';
4
4
  export class Fdc3ApiImpl extends ApiBase {
5
+ internalApi;
5
6
  constructor(_adaptable) {
6
7
  super(_adaptable);
7
8
  this.internalApi = new Fdc3InternalApi(_adaptable);
@@ -3,6 +3,9 @@ import { FilterInternalApi } from '../Internal/FilterInternalApi';
3
3
  import { ColumnFilterApiImpl } from './ColumnFilterApiImpl';
4
4
  import { GridFilterApiImpl } from './GridFilterApiImpl';
5
5
  export class FilterApiImpl extends ApiBase {
6
+ internalApi;
7
+ columnFilterApi;
8
+ gridFilterApi;
6
9
  constructor(_adaptable) {
7
10
  super(_adaptable);
8
11
  this.internalApi = new FilterInternalApi(_adaptable);
@@ -13,6 +13,7 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
13
13
  getFlashingCellState(): FlashingCellState;
14
14
  getFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
15
15
  getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid'], config?: LayoutExtendedConfig): FlashingCellDefinition;
16
+ getFlashingCellDefinitionByName(name: string): FlashingCellDefinition | undefined;
16
17
  getActiveFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
17
18
  getSuspendedFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
18
19
  getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
@@ -2,6 +2,7 @@ import * as FlashingCellRedux from '../../Redux/ActionsReducers/FlashingCellRedu
2
2
  import { ApiBase } from './ApiBase';
3
3
  import { FlashingCellInternalApi } from '../Internal/FlashingCellInternalApi';
4
4
  export class FlashingCellApiImpl extends ApiBase {
5
+ internalApi;
5
6
  constructor(_adaptable) {
6
7
  super(_adaptable);
7
8
  this.internalApi = new FlashingCellInternalApi(_adaptable);
@@ -18,6 +19,9 @@ export class FlashingCellApiImpl extends ApiBase {
18
19
  getFlashingCellDefinitionById(id, config) {
19
20
  return this.getFlashingCellDefinitions(config)?.find((fc) => fc?.Uuid === id);
20
21
  }
22
+ getFlashingCellDefinitionByName(name) {
23
+ return this.getFlashingCellDefinitions().find((fc) => fc.Name === name);
24
+ }
21
25
  getActiveFlashingCellDefinitions(config) {
22
26
  return this.getFlashingCellDefinitions(config).filter((fc) => !fc.IsSuspended);
23
27
  }
@@ -1,18 +1,19 @@
1
+ import { AdaptableObjectLookupCriteria, FormatColumnConfig } from '../../../types';
2
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
3
+ import { AdaptableColumn } from '../../AdaptableState/Common/AdaptableColumn';
1
4
  import { AdaptableStyle } from '../../AdaptableState/Common/AdaptableStyle';
2
- import { ApiBase } from './ApiBase';
3
- import { FormatColumnApi } from '../FormatColumnApi';
4
5
  import { FormatColumn, FormatColumnState } from '../../AdaptableState/FormatColumnState';
5
- import { AdaptableColumn } from '../../AdaptableState/Common/AdaptableColumn';
6
6
  import { AdaptableFormat } from '../../types';
7
- import { AdaptableObjectLookupCriteria, FormatColumnConfig } from '../../../types';
7
+ import { FormatColumnApi } from '../FormatColumnApi';
8
8
  import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
9
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
9
+ import { ApiBase } from './ApiBase';
10
10
  export declare class FormatColumnApiImpl extends ApiBase implements FormatColumnApi {
11
11
  internalApi: FormatColumnInternalApi;
12
12
  constructor(_adaptable: IAdaptable);
13
13
  getFormatColumnState(): FormatColumnState;
14
14
  getFormatColumns(config?: FormatColumnConfig): FormatColumn[];
15
15
  getFormatColumnByUuId(id: FormatColumn['Uuid'], config?: FormatColumnConfig): FormatColumn;
16
+ getFormatColumnByName(name: string): FormatColumn | undefined;
16
17
  getActiveFormatColumns(config?: FormatColumnConfig): FormatColumn[];
17
18
  getDisplayFormatForColumn(column: AdaptableColumn, config?: FormatColumnConfig): AdaptableFormat | undefined;
18
19
  getSuspendedFormatColumns(config?: FormatColumnConfig): FormatColumn[];
@@ -1,9 +1,10 @@
1
1
  import * as FormatColumnRedux from '../../Redux/ActionsReducers/FormatColumnRedux';
2
- import { ApiBase } from './ApiBase';
3
2
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
4
- import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
5
3
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
4
+ import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
5
+ import { ApiBase } from './ApiBase';
6
6
  export class FormatColumnApiImpl extends ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new FormatColumnInternalApi(_adaptable);
@@ -17,6 +18,9 @@ export class FormatColumnApiImpl extends ApiBase {
17
18
  getFormatColumnByUuId(id, config) {
18
19
  return this.getFormatColumns(config).find((formatColumn) => formatColumn.Uuid === id);
19
20
  }
21
+ getFormatColumnByName(name) {
22
+ return this.getFormatColumns().find((formatColumn) => formatColumn.Name === name);
23
+ }
20
24
  getActiveFormatColumns(config) {
21
25
  return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
22
26
  }
@@ -37,9 +41,7 @@ export class FormatColumnApiImpl extends ApiBase {
37
41
  return this.getFormatColumnByUuId(formatColumn.Uuid);
38
42
  }
39
43
  addFormatColumns(formatColumns) {
40
- formatColumns.forEach((fc) => {
41
- this.addFormatColumn(fc);
42
- });
44
+ this.dispatchAction(FormatColumnRedux.FormatColumnsAdd(formatColumns));
43
45
  return formatColumns?.map((formatColumn) => this.getFormatColumnByUuId(formatColumn.Uuid));
44
46
  }
45
47
  editFormatColumn(formatColumn) {
@@ -4,6 +4,7 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
4
4
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
5
5
  import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
6
6
  export class FreeTextColumnApiImpl extends ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new FreeTextColumnInternalApi(_adaptable);
@@ -4,7 +4,7 @@ import { SelectedCellInfo } from '../../AdaptableState/Selection/SelectedCellInf
4
4
  import { SelectedRowInfo } from '../../AdaptableState/Selection/SelectedRowInfo';
5
5
  import { CellUpdateRequest, GridCell } from '../../AdaptableState/Selection/GridCell';
6
6
  import { ColumnSort } from '../../AdaptableState/Common/ColumnSort';
7
- import { DataUpdateConfig } from '../../AdaptableState/Common/DataUpdateConfig';
7
+ import { DataRowConfig, DataUpdateConfig } from '../../AdaptableState/Common/DataUpdateConfig';
8
8
  import { CellHighlightInfo } from '../../AdaptableState/Common/CellHighlightInfo';
9
9
  import { RowHighlightInfo } from '../../AdaptableState/Common/RowHighlightInfo';
10
10
  import { ColDef, ColGroupDef, Column, ColumnState, IRowNode, RowModelType } from 'ag-grid-enterprise';
@@ -16,6 +16,7 @@ import { GridInternalApi } from '../Internal/GridInternalApi';
16
16
  import { TransposeConfig } from '../../AdaptableState/Common/TransposeConfig';
17
17
  import { CellSummmaryInfo } from '../../types';
18
18
  import { InternalState } from '../../AdaptableState/InternalState';
19
+ import { ColumnHighlightInfo } from '../../AdaptableState/Common/ColumnHighlightInfo';
19
20
  export declare class GridApiImpl extends ApiBase implements GridApi {
20
21
  internalApi: GridInternalApi;
21
22
  constructor(_adaptable: IAdaptable);
@@ -34,6 +35,11 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
34
35
  addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
35
36
  undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
36
37
  deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
38
+ manageGridData(dataRowConfig: DataRowConfig, dataUpdateConfig?: DataUpdateConfig): Promise<{
39
+ addedRows: IRowNode[];
40
+ updatedRows: IRowNode[];
41
+ removedRows: IRowNode[];
42
+ }>;
37
43
  setCellValue(cellUpdateRequest: CellUpdateRequest): void;
38
44
  setCellValues(cellUpdateRequests: CellUpdateRequest[]): void;
39
45
  getCellSummaryInfo(): CellSummmaryInfo;
@@ -113,6 +119,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
113
119
  highlightCell(cellHighlightInfo: CellHighlightInfo): void;
114
120
  unHighlightCell(primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']): void;
115
121
  unHighlightAllCells(): void;
122
+ highlightColumn(columnHighlightInfo: ColumnHighlightInfo): void;
123
+ unHighlightColumn(columnId: string): void;
124
+ unHighlightAllColumns(): void;
116
125
  highlightRow(rowHighlightInfo: RowHighlightInfo): void;
117
126
  highlightRows(rowHighlightInfos: RowsHighlightInfo): void;
118
127
  unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
@@ -143,6 +152,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
143
152
  openGridInfoSettingsPanel(): void;
144
153
  getAgGridRowModelType(): RowModelType;
145
154
  showTransposedView(transposeConfig?: TransposeConfig): void;
155
+ closeTransposedView(): void;
146
156
  getAllAgGridColumns(): Column<any>[];
147
157
  updateAgGridColumnState(columnState: ColumnState): void;
148
158
  updateAgGridColumnStates(columnStates: ColumnState[]): void;
@@ -151,13 +161,4 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
151
161
  updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated: ColDefWithId[]): void;
152
162
  removeAgGridColumnDefinition(columnId: string): void;
153
163
  addAgGridColumnDefinition(newColumnDefinition: ColDefWithId): void;
154
- applyGridDataTransaction(dataTransaction: {
155
- add?: any[];
156
- update?: any[];
157
- remove?: any[];
158
- }, config?: DataUpdateConfig): Promise<{
159
- addedRows: IRowNode[];
160
- updatedRows: IRowNode[];
161
- removedRows: IRowNode[];
162
- }>;
163
164
  }
@@ -1,5 +1,5 @@
1
1
  import { ApiBase } from './ApiBase';
2
- import { HighlightCellAdd, HighlightCellDelete, HighlightCellDeleteAll, HighlightRowAdd, HighlightRowDelete, GridHighlightRowDeleteAll, HighlightRowsAdd, GridHighlightRowsDelete, } from '../../Redux/ActionsReducers/InternalRedux';
2
+ import { HighlightCellAdd, HighlightCellDelete, HighlightCellDeleteAll, HighlightColumnAdd, HighlightColumnDelete, HighlightColumnDeleteAll, HighlightRowAdd, HighlightRowDelete, GridHighlightRowDeleteAll, HighlightRowsAdd, GridHighlightRowsDelete, } from '../../Redux/ActionsReducers/InternalRedux';
3
3
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
4
4
  import { GridInternalApi } from '../Internal/GridInternalApi';
5
5
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
@@ -7,6 +7,7 @@ import { WINDOW_SHOW_TRANSPOSED_VIEW } from '../../View/Components/Popups/Window
7
7
  import { ROW_SUMMARY_ROW_ID } from '../../AdaptableState/Common/RowSummary';
8
8
  import { errorOnce } from '../../agGrid/AdaptableLogger';
9
9
  export class GridApiImpl extends ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new GridInternalApi(_adaptable);
@@ -94,6 +95,22 @@ export class GridApiImpl extends ApiBase {
94
95
  }
95
96
  return [];
96
97
  }
98
+ async manageGridData(dataRowConfig, dataUpdateConfig) {
99
+ const transactionResult = await this._adaptable.manageGridRows(dataRowConfig, dataUpdateConfig);
100
+ if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
101
+ const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRowConfig.deleteRows, transactionResult.removedRows, 'Delete');
102
+ this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
103
+ }
104
+ if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
105
+ const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRowConfig.updateRows, transactionResult.updatedRows, 'Update');
106
+ this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
107
+ }
108
+ if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
109
+ const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRowConfig.addRows, transactionResult.addedRows, 'Add');
110
+ this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
111
+ }
112
+ return transactionResult;
113
+ }
97
114
  setCellValue(cellUpdateRequest) {
98
115
  const abColumn = this.getColumnApi().getColumnWithColumnId(cellUpdateRequest.columnId);
99
116
  if (!abColumn) {
@@ -453,6 +470,20 @@ export class GridApiImpl extends ApiBase {
453
470
  unHighlightAllCells() {
454
471
  this.dispatchAction(HighlightCellDeleteAll());
455
472
  }
473
+ highlightColumn(columnHighlightInfo) {
474
+ this.dispatchAction(HighlightColumnAdd(columnHighlightInfo));
475
+ if (columnHighlightInfo.timeout) {
476
+ setTimeout(() => {
477
+ this.unHighlightColumn(columnHighlightInfo.columnId);
478
+ }, columnHighlightInfo.timeout);
479
+ }
480
+ }
481
+ unHighlightColumn(columnId) {
482
+ this.dispatchAction(HighlightColumnDelete(columnId));
483
+ }
484
+ unHighlightAllColumns() {
485
+ this.dispatchAction(HighlightColumnDeleteAll());
486
+ }
456
487
  highlightRow(rowHighlightInfo) {
457
488
  this.dispatchAction(HighlightRowAdd(rowHighlightInfo));
458
489
  if (rowHighlightInfo.timeout) {
@@ -576,9 +607,9 @@ export class GridApiImpl extends ApiBase {
576
607
  showTransposedView(transposeConfig = {}) {
577
608
  const transposedColumnId = transposeConfig.transposedColumnId ?? this.getOptionsApi().getPrimaryKey();
578
609
  const hideTransposedColumn = transposeConfig.hideTransposedColumn ?? true;
579
- const visibleColumns = transposeConfig.visibleColumns ?? false;
580
- const visibleRows = transposeConfig.visibleRows ?? false;
581
610
  const autosize = transposeConfig.autosize ?? true;
611
+ const columnsToTranspose = transposeConfig.columnsToTranspose;
612
+ const rowsToTranspose = transposeConfig.rowsToTranspose;
582
613
  this.getAdaptableInternalApi().showPopupWindow({
583
614
  id: WINDOW_SHOW_TRANSPOSED_VIEW,
584
615
  factoryId: WINDOW_SHOW_TRANSPOSED_VIEW,
@@ -587,12 +618,15 @@ export class GridApiImpl extends ApiBase {
587
618
  popupProps: {
588
619
  transposedColumnId,
589
620
  hideTransposedColumn,
590
- visibleColumns,
591
- visibleRows,
592
621
  autosize,
622
+ columnsToTranspose,
623
+ rowsToTranspose,
593
624
  },
594
625
  });
595
626
  }
627
+ closeTransposedView() {
628
+ this.getUserInterfaceApi().closeCustomWindowPopup('WINDOW_SHOW_TRANSPOSED_VIEW');
629
+ }
596
630
  getAllAgGridColumns() {
597
631
  return this._adaptable.getAllGridColumns();
598
632
  }
@@ -683,20 +717,4 @@ export class GridApiImpl extends ApiBase {
683
717
  .filter(Boolean);
684
718
  this.setAgGridColumnDefinitions([...sanitizedColDefs, newColumnDefinition]);
685
719
  }
686
- async applyGridDataTransaction(dataTransaction, config) {
687
- const transactionResult = await this._adaptable.applyGridDataTransaction(dataTransaction, config);
688
- if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
689
- const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.remove, transactionResult.removedRows, 'Delete');
690
- this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
691
- }
692
- if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
693
- const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.update, transactionResult.updatedRows, 'Update');
694
- this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
695
- }
696
- if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
697
- const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.add, transactionResult.addedRows, 'Add');
698
- this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
699
- }
700
- return transactionResult;
701
- }
702
720
  }
@@ -4,6 +4,7 @@ import { GridFilterInternalApi } from '../Internal/GridFilterInternalApi';
4
4
  import { ApiBase } from './ApiBase';
5
5
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
6
6
  export class GridFilterApiImpl extends ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new GridFilterInternalApi(_adaptable);
@@ -24,6 +24,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
24
24
  getCurrentLayoutColumnSort(columnId: string): ColumnSort['SortOrder'] | null;
25
25
  getCurrentLayoutName(): string;
26
26
  getLayoutByName(layoutName: string): Layout | null;
27
+ setExtendedLayout(extendedLayout: ExtendedLayout): void;
27
28
  createOrUpdateExtendedLayout(extendedLayoutInfo: ExtendedLayout): void;
28
29
  getExtendedLayoutByName(layoutName: string): ExtendedLayout | undefined;
29
30
  cloneExtendedLayout(extendedLayoutToClone: ExtendedLayout, layoutName: string): ExtendedLayout | false;
@@ -8,6 +8,7 @@ import { LayoutInternalApi } from '../Internal/LayoutInternalApi';
8
8
  import { isPivotLayout, normalizeLayout } from './LayoutHelpers';
9
9
  import { ERROR_LAYOUT } from '../../Utilities/Constants/GeneralConstants';
10
10
  export class LayoutApiImpl extends ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new LayoutInternalApi(_adaptable);
@@ -89,6 +90,9 @@ export class LayoutApiImpl extends ApiBase {
89
90
  }
90
91
  }
91
92
  }
93
+ setExtendedLayout(extendedLayout) {
94
+ this.setLayout(extendedLayout.Layout.Name);
95
+ }
92
96
  createOrUpdateExtendedLayout(extendedLayoutInfo) {
93
97
  const config = {
94
98
  includeLayoutNotExtendedObjects: true,
@@ -402,7 +406,7 @@ export class LayoutApiImpl extends ApiBase {
402
406
  const currentLayout = this.getCurrentLayout();
403
407
  const customHeader = currentLayout.ColumnHeaders?.[column.columnId] ?? column.friendlyName;
404
408
  this.dispatchAction(PopupShowPrompt({
405
- Header: `Change caption for '${column.friendlyName}'`,
409
+ Header: `Change Caption for "${column.friendlyName}"`,
406
410
  Msg: '',
407
411
  DefaultValue: customHeader,
408
412
  ConfirmActionCreator: (inputText) => {
@@ -274,6 +274,7 @@ export const pivotLayoutToPivotLayoutModel = (pivotLayout) => {
274
274
  GrandTotalRow: pivotLayout.GrandTotalRow,
275
275
  PivotGrandTotal: pivotLayout.PivotGrandTotal,
276
276
  PivotColumnTotal: pivotLayout.PivotColumnTotal,
277
+ PivotResultColumnsOrder: pivotLayout.PivotResultColumnsOrder,
277
278
  RowGroupValues: toRowGroupValuesForLayoutModel(pivotLayout.RowGroupValues),
278
279
  ColumnGroupValues: pivotLayout.ColumnGroupValues
279
280
  ? pivotLayout.ColumnGroupValues.ColumnGroupDefaultBehavior === 'always-expanded' ||
@@ -507,6 +508,12 @@ export const pivotLayoutModelToPivotLayout = (layoutModel) => {
507
508
  else {
508
509
  delete pivotLayout.PivotColumnTotal;
509
510
  }
511
+ if (layoutModel.PivotResultColumnsOrder != null) {
512
+ pivotLayout.PivotResultColumnsOrder = layoutModel.PivotResultColumnsOrder;
513
+ }
514
+ else {
515
+ delete pivotLayout.PivotResultColumnsOrder;
516
+ }
510
517
  if (layoutModel.PivotAggregationColumns) {
511
518
  pivotLayout.PivotAggregationColumns = (layoutModel.PivotAggregationColumns || []).map(({ ColumnId, AggFunc, Total }) => ({
512
519
  ColumnId,
@@ -4,6 +4,7 @@ import { NamedQueryInternalApi } from '../Internal/NamedQueryInternalApi';
4
4
  import { ApiBase } from './ApiBase';
5
5
  import * as NamedQueryRedux from '../../Redux/ActionsReducers/NamedQueryRedux';
6
6
  export class NamedQueryApiImpl extends ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new NamedQueryInternalApi(_adaptable);
@@ -25,14 +26,14 @@ export class NamedQueryApiImpl extends ApiBase {
25
26
  }
26
27
  isValidNamedQuery(namedQuery) {
27
28
  if (IsNullOrEmptyOrWhiteSpace(namedQuery?.Name)) {
28
- return { valid: false, message: 'Named Query name cannot be blank' };
29
+ return { valid: false, message: 'A name is required for the Named Query.' };
29
30
  }
30
31
  // check that there is no other existing named query with the same name
31
32
  const duplicate = this.getNamedQueries().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
32
33
  if (duplicate) {
33
34
  return {
34
35
  valid: false,
35
- message: 'A Named Query already exists with that name',
36
+ message: 'A Named Query with this name already exists.',
36
37
  };
37
38
  }
38
39
  return { valid: true, message: '' };
@@ -2,6 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import * as NoteRedux from '../../Redux/ActionsReducers/NoteRedux';
3
3
  import { NoteInternalApi } from '../Internal/NoteInternalApi';
4
4
  export class NoteApiImpl extends ApiBase {
5
+ internalApi;
5
6
  constructor(_adaptable) {
6
7
  super(_adaptable);
7
8
  this.internalApi = new NoteInternalApi(_adaptable);
@@ -7,6 +7,7 @@ export declare class PlusMinusApiImpl extends ApiBase implements PlusMinusApi {
7
7
  getPlusMinusState(): PlusMinusState;
8
8
  getAllPlusMinus(config?: LayoutExtendedConfig): PlusMinusNudge[];
9
9
  getPlusMinusById(id: PlusMinusNudge['Uuid'], config?: LayoutExtendedConfig): PlusMinusNudge;
10
+ getPlusMinusNudgeByName(name: string): PlusMinusNudge | undefined;
10
11
  getAllActivePlusMinus(config?: LayoutExtendedConfig): PlusMinusNudge[];
11
12
  getAllSuspendedPlusMinus(config?: LayoutExtendedConfig): PlusMinusNudge[];
12
13
  runPlusMinusNudge(plusMinusNudge: PlusMinusNudge, cellsToUpdate: GridCell[], direction: 'up' | 'down'): void;
@@ -12,6 +12,9 @@ export class PlusMinusApiImpl extends ApiBase {
12
12
  getPlusMinusById(id, config) {
13
13
  return this.getAllPlusMinus(config).find((plusMinus) => plusMinus?.Uuid === id);
14
14
  }
15
+ getPlusMinusNudgeByName(name) {
16
+ return this.getAllPlusMinus().find((plusMinus) => plusMinus.Name === name);
17
+ }
15
18
  getAllActivePlusMinus(config) {
16
19
  return this.getAllPlusMinus(config).filter((plusMinusNudge) => !plusMinusNudge.IsSuspended);
17
20
  }
@@ -26,6 +26,7 @@ export const getTreeSelectionStateForPredicateInputs = (inputs, cache = treeSele
26
26
  return newTreeSelectionState;
27
27
  };
28
28
  export class PredicateApiImpl extends ApiBase {
29
+ internalApi;
29
30
  constructor(_adaptable) {
30
31
  super(_adaptable);
31
32
  this.internalApi = new PredicateInternalApi(_adaptable);
@@ -2,6 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import { RowFormInternalApi } from '../Internal/RowFormInternalApi';
3
3
  import { PopupShowForm } from '../../Redux/ActionsReducers/PopupRedux';
4
4
  export class RowFormApiImpl extends ApiBase {
5
+ internalApi;
5
6
  constructor(_adaptable) {
6
7
  super(_adaptable);
7
8
  this.internalApi = new RowFormInternalApi(_adaptable);
@@ -11,6 +11,7 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
11
11
  constructor(_adaptable: IAdaptable);
12
12
  getScheduleState(): ScheduleState;
13
13
  getSchedules(config?: LayoutExtendedConfig): BaseSchedule[];
14
+ getScheduleByName(name: string): BaseSchedule | undefined;
14
15
  getReminderSchedules(config?: LayoutExtendedConfig): ReminderSchedule[];
15
16
  getScheduleById(id: BaseSchedule['Uuid'], config?: LayoutExtendedConfig): BaseSchedule;
16
17
  getActiveReminderSchedules(config?: LayoutExtendedConfig): ReminderSchedule[];