@adaptabletools/adaptable-cjs 22.0.0-canary.0 → 22.0.0-canary.10

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 (396) hide show
  1. package/README.md +4 -6
  2. package/agGrid.d.ts +9 -9
  3. package/agGrid.js +1 -0
  4. package/index.css +1280 -1400
  5. package/index.css.map +1 -1
  6. package/index.d.ts +66 -0
  7. package/index.js +85 -0
  8. package/package.json +3 -3
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +10 -1
  10. package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
  11. package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
  12. package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
  13. package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
  14. package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
  15. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
  16. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  17. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  18. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
  19. package/src/AdaptableState/AdaptableState.d.ts +2 -0
  20. package/src/AdaptableState/AlertState.d.ts +5 -2
  21. package/src/AdaptableState/ChartingState.d.ts +2 -2
  22. package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
  23. package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
  24. package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
  25. package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
  26. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
  27. package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
  28. package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
  29. package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
  30. package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
  31. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
  32. package/src/AdaptableState/Common/ColumnHighlightInfo.js +2 -0
  33. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
  34. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  35. package/src/AdaptableState/Common/NamedObject.js +2 -0
  36. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  37. package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
  38. package/src/AdaptableState/Common/Schedule.d.ts +8 -5
  39. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
  40. package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
  41. package/src/AdaptableState/CustomSortState.d.ts +5 -1
  42. package/src/AdaptableState/DashboardState.d.ts +1 -1
  43. package/src/AdaptableState/ExportState.d.ts +1 -1
  44. package/src/AdaptableState/FlashingCellState.d.ts +6 -2
  45. package/src/AdaptableState/FormatColumnState.d.ts +5 -9
  46. package/src/AdaptableState/InitialState.d.ts +10 -1
  47. package/src/AdaptableState/InternalState.d.ts +2 -0
  48. package/src/AdaptableState/LayoutState.d.ts +7 -3
  49. package/src/AdaptableState/NamedQueryState.d.ts +1 -1
  50. package/src/AdaptableState/PlusMinusState.d.ts +5 -1
  51. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  52. package/src/AdaptableState/ShortcutState.d.ts +5 -1
  53. package/src/AdaptableState/StyledColumnState.d.ts +1 -1
  54. package/src/AdaptableState/ThemeState.d.ts +1 -1
  55. package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
  56. package/src/AdaptableState/UserInterfaceState.js +2 -0
  57. package/src/Api/AlertApi.d.ts +6 -0
  58. package/src/Api/CustomSortApi.d.ts +12 -3
  59. package/src/Api/DataSetApi.d.ts +1 -1
  60. package/src/Api/FlashingCellApi.d.ts +6 -0
  61. package/src/Api/FormatColumnApi.d.ts +10 -4
  62. package/src/Api/GridApi.d.ts +29 -4
  63. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  64. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  65. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
  66. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  67. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  68. package/src/Api/Implementation/ApiBase.js +2 -1
  69. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  70. package/src/Api/Implementation/ChartingApiImpl.js +6 -2
  71. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  72. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  73. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  74. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  75. package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
  76. package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
  77. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  78. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  79. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  80. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  81. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  82. package/src/Api/Implementation/EventApiImpl.js +16 -14
  83. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  84. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  85. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  86. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  87. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  88. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
  89. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
  90. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
  91. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  92. package/src/Api/Implementation/GridApiImpl.d.ts +10 -1
  93. package/src/Api/Implementation/GridApiImpl.js +35 -4
  94. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  95. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  96. package/src/Api/Implementation/LayoutApiImpl.js +5 -1
  97. package/src/Api/Implementation/LayoutHelpers.js +7 -0
  98. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
  99. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  100. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
  101. package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
  102. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  103. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  104. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  105. package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
  106. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  107. package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
  108. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  109. package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
  110. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  111. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  112. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
  113. package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
  114. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  115. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  116. package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
  117. package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
  118. package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
  119. package/src/Api/Internal/LayoutInternalApi.js +1 -1
  120. package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
  121. package/src/Api/LayoutApi.d.ts +6 -0
  122. package/src/Api/PlusMinusApi.d.ts +6 -0
  123. package/src/Api/ScheduleApi.d.ts +6 -0
  124. package/src/Api/ShortcutApi.d.ts +6 -0
  125. package/src/Api/UserInterfaceApi.d.ts +17 -0
  126. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
  127. package/src/Redux/ActionsReducers/FormatColumnRedux.js +17 -1
  128. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  129. package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
  130. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
  131. package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
  132. package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
  133. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +26 -0
  134. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  135. package/src/Redux/Store/AdaptableStore.js +121 -64
  136. package/src/Strategy/AdaptableModuleBase.js +4 -0
  137. package/src/Strategy/AlertModule.js +5 -0
  138. package/src/Strategy/BulkUpdateModule.js +8 -8
  139. package/src/Strategy/CalculatedColumnModule.js +1 -0
  140. package/src/Strategy/CellSummaryModule.js +1 -1
  141. package/src/Strategy/CustomSortModule.js +4 -0
  142. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  143. package/src/Strategy/FlashingCellModule.js +6 -0
  144. package/src/Strategy/FormatColumnModule.js +4 -0
  145. package/src/Strategy/FreeTextColumnModule.js +1 -0
  146. package/src/Strategy/LayoutModule.js +6 -5
  147. package/src/Strategy/PlusMinusModule.js +7 -1
  148. package/src/Strategy/QuickSearchModule.js +1 -1
  149. package/src/Strategy/ScheduleModule.js +5 -0
  150. package/src/Strategy/SettingsPanelModule.js +11 -7
  151. package/src/Strategy/ShortcutModule.js +6 -0
  152. package/src/Strategy/SmartEditModule.js +10 -10
  153. package/src/Strategy/TeamSharingModule.js +10 -10
  154. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
  155. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
  156. package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
  157. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  158. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
  159. package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
  160. package/src/Utilities/Extensions/StringExtensions.js +17 -0
  161. package/src/Utilities/Helpers/FormatHelper.js +9 -2
  162. package/src/Utilities/Helpers/StyleHelper.js +14 -0
  163. package/src/Utilities/MenuItem.js +18 -0
  164. package/src/Utilities/ObjectFactory.js +16 -3
  165. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  166. package/src/Utilities/Services/AlertService.js +6 -4
  167. package/src/Utilities/Services/AnnotationsService.js +4 -1
  168. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  169. package/src/Utilities/Services/ChartingService.js +1 -0
  170. package/src/Utilities/Services/DataService.js +11 -3
  171. package/src/Utilities/Services/Fdc3Service.js +9 -7
  172. package/src/Utilities/Services/FlashingCellService.js +5 -0
  173. package/src/Utilities/Services/LicenseService/index.js +1 -1
  174. package/src/Utilities/Services/MetamodelService.js +2 -2
  175. package/src/Utilities/Services/ModuleService.js +39 -41
  176. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  177. package/src/Utilities/Services/RowFormService.js +1 -0
  178. package/src/Utilities/Services/RowSummaryService.js +10 -7
  179. package/src/Utilities/Services/TeamSharingService.js +3 -1
  180. package/src/Utilities/Services/ThemeService.js +13 -15
  181. package/src/Utilities/Services/ValidationService.js +2 -1
  182. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  183. package/src/Utilities/logDeprecation.js +3 -4
  184. package/src/Utilities/resolveContainerElement.d.ts +23 -0
  185. package/src/Utilities/resolveContainerElement.js +47 -0
  186. package/src/View/AdaptablePopover/index.d.ts +1 -0
  187. package/src/View/AdaptablePopover/index.js +1 -1
  188. package/src/View/Alert/ActiveAlertsPanel.js +8 -0
  189. package/src/View/Alert/AlertViewPanel.js +13 -9
  190. package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
  191. package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
  192. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
  193. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
  194. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +48 -12
  195. package/src/View/Alert/Wizard/AlertWizard.js +12 -8
  196. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  197. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
  198. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
  199. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  200. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  201. package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
  202. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  203. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  204. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  205. package/src/View/Components/Buttons/ButtonApply.js +1 -1
  206. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  207. package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
  208. package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
  209. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  210. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
  211. package/src/View/Components/CellPopup/index.js +1 -1
  212. package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
  213. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
  214. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
  215. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  216. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
  217. package/src/View/Components/NewScopeComponent.js +3 -3
  218. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  219. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  220. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  221. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  222. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
  223. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
  224. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  225. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +35 -0
  226. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
  227. package/src/View/Components/StyleComponent.d.ts +1 -0
  228. package/src/View/Components/StyleComponent.js +94 -24
  229. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  230. package/src/View/Components/WizardSummaryPage.js +1 -1
  231. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  232. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +40 -14
  233. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  234. package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
  235. package/src/View/Dashboard/CustomToolbar.js +1 -1
  236. package/src/View/Dashboard/DashboardPopup.js +4 -5
  237. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
  238. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  239. package/src/View/Export/ExportDestinationPicker.js +1 -1
  240. package/src/View/Export/ExportStatusBar.js +4 -2
  241. package/src/View/Export/ExportViewPanel.js +25 -18
  242. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
  243. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -15
  244. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
  245. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  246. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
  247. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  248. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -11
  249. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  250. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
  251. package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
  252. package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
  253. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
  254. package/src/View/Layout/LayoutViewPanel.js +1 -1
  255. package/src/View/Layout/TransposedPopup.js +144 -138
  256. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  257. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  258. package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
  259. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
  260. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
  261. package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
  262. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  263. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
  264. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
  265. package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
  266. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
  267. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
  268. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
  269. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
  270. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
  271. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
  272. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
  273. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
  274. package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
  275. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  276. package/src/View/StateManagement/handleExportState.js +1 -1
  277. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  278. package/src/View/Theme/ThemePopup.js +13 -16
  279. package/src/View/UIHelper.d.ts +4 -1
  280. package/src/View/UIHelper.js +24 -14
  281. package/src/agGrid/Adaptable.js +15 -11
  282. package/src/agGrid/AdaptableAgGrid.d.ts +16 -3
  283. package/src/agGrid/AdaptableAgGrid.js +306 -103
  284. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  285. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  286. package/src/agGrid/AdaptableLogger.js +10 -0
  287. package/src/agGrid/AgGridAdapter.js +19 -9
  288. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
  289. package/src/agGrid/AgGridColumnAdapter.js +20 -22
  290. package/src/agGrid/AgGridExportAdapter.js +15 -14
  291. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  292. package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
  293. package/src/agGrid/AgGridMenuAdapter.js +10 -1
  294. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  295. package/src/agGrid/AgGridOptionsService.js +3 -0
  296. package/src/agGrid/AgGridThemeAdapter.js +4 -2
  297. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  298. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  299. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  300. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  301. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  302. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  303. package/src/agGrid/index.d.ts +6 -0
  304. package/src/agGrid/index.js +6 -0
  305. package/src/components/CheckBox/index.js +1 -1
  306. package/src/components/ColorPicker/ColorPicker.js +5 -4
  307. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  308. package/src/components/Datepicker/index.js +1 -1
  309. package/src/components/Dropdown/Arrows.js +1 -1
  310. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  311. package/src/components/ExpressionEditor/EditorInput.js +19 -3
  312. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
  313. package/src/components/FormLayout/index.js +1 -1
  314. package/src/components/OverlayTrigger/index.js +1 -1
  315. package/src/components/Select/Select.js +78 -15
  316. package/src/components/Tree/TreeDropdown/index.js +2 -2
  317. package/src/components/overlayBaseZIndex.js +1 -1
  318. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  319. package/src/devTools/index.js +54 -53
  320. package/src/env.js +2 -2
  321. package/src/layout-manager/src/LMEmitter.js +11 -11
  322. package/src/layout-manager/src/LMLogger.js +7 -0
  323. package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
  324. package/src/layout-manager/src/index.js +81 -58
  325. package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
  326. package/src/metamodel/adaptable.metamodel.d.ts +177 -8
  327. package/src/metamodel/adaptable.metamodel.js +1 -1
  328. package/src/migration/AdaptableUpgradeHelper.js +8 -3
  329. package/src/migration/VersionUpgrade.js +1 -0
  330. package/src/migration/VersionUpgrade17.js +5 -6
  331. package/src/migration/VersionUpgrade20.js +4 -4
  332. package/src/migration/VersionUpgrade22.d.ts +21 -0
  333. package/src/migration/VersionUpgrade22.js +191 -0
  334. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  335. package/src/types.d.ts +9 -7
  336. package/themes/dark.css +30 -30
  337. package/themes/light.css +4 -2
  338. package/tsconfig.cjs.tsbuildinfo +1 -1
  339. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
  340. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
  341. package/src/View/Alert/AlertEntityRow.d.ts +0 -11
  342. package/src/View/Alert/AlertEntityRow.js +0 -33
  343. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
  344. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
  345. package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
  346. package/src/View/Components/Buttons/ButtonFunction.js +0 -13
  347. package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
  348. package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
  349. package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
  350. package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
  351. package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
  352. package/src/View/Components/Buttons/ButtonShow.js +0 -12
  353. package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
  354. package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
  355. package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
  356. package/src/View/Components/Buttons/ButtonUndo.js +0 -12
  357. package/src/View/Components/ExpressionWizard.d.ts +0 -24
  358. package/src/View/Components/ExpressionWizard.js +0 -82
  359. package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
  360. package/src/View/Components/FilterForm/Waiting.js +0 -19
  361. package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
  362. package/src/View/Components/Panels/PanelFooter.js +0 -14
  363. package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
  364. package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
  365. package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
  366. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
  367. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
  368. package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
  369. package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
  370. package/src/View/Components/WizardSummaryRow.d.ts +0 -9
  371. package/src/View/Components/WizardSummaryRow.js +0 -16
  372. package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
  373. package/src/View/CustomSort/CustomSortSummary.js +0 -110
  374. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
  375. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
  376. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
  377. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
  378. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
  379. package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
  380. package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
  381. package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
  382. package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
  383. package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
  384. package/src/View/Filter/FilterSummary.d.ts +0 -18
  385. package/src/View/Filter/FilterSummary.js +0 -53
  386. package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
  387. package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
  388. package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
  389. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
  390. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
  391. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
  392. package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
  393. package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
  394. package/src/View/Wizard/WizardLegend.d.ts +0 -12
  395. package/src/View/Wizard/WizardLegend.js +0 -28
  396. /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
@@ -11,7 +11,10 @@ const react_1 = require("react");
11
11
  const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
12
12
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
13
13
  const SystemStatusInternalApi_1 = require("../Internal/SystemStatusInternalApi");
14
+ const resolveContainerElement_1 = require("../../Utilities/resolveContainerElement");
14
15
  class SystemStatusApiImpl extends ApiBase_1.ApiBase {
16
+ systemStatusDiv;
17
+ internalApi;
15
18
  constructor(_adaptable) {
16
19
  super(_adaptable);
17
20
  this.internalApi = new SystemStatusInternalApi_1.SystemStatusInternalApi(_adaptable);
@@ -29,16 +32,16 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
29
32
  }
30
33
  switch (messageType) {
31
34
  case 'Success':
32
- alertApi.showAlertSuccess('System Status Success', fullMessage);
35
+ alertApi.showAlertSuccess('System Status', fullMessage);
33
36
  return;
34
37
  case 'Info':
35
- alertApi.showAlertInfo('System Status Info', fullMessage);
38
+ alertApi.showAlertInfo('System Status', fullMessage);
36
39
  return;
37
40
  case 'Warning':
38
- alertApi.showAlertWarning('System Status Warning', fullMessage);
41
+ alertApi.showAlertWarning('System Status', fullMessage);
39
42
  return;
40
43
  case 'Error':
41
- alertApi.showAlertError('System Status Error', fullMessage);
44
+ alertApi.showAlertError('System Status', fullMessage);
42
45
  return;
43
46
  }
44
47
  }
@@ -50,11 +53,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
50
53
  }
51
54
  displayMessageInDiv(statusMessage, statusFurtherInformation, messageType) {
52
55
  if (!this.systemStatusDiv) {
53
- let optionsDiv = this.getContainerOptions().systemStatusContainer;
54
- if (optionsDiv) {
55
- this.systemStatusDiv =
56
- typeof optionsDiv === 'string' ? document.getElementById(optionsDiv) : optionsDiv;
57
- }
56
+ this.systemStatusDiv = (0, resolveContainerElement_1.resolveContainerElement)(this.getContainerOptions().systemStatusContainer, this.getAdaptableInternalApi().buildBaseContext());
58
57
  }
59
58
  if (this.systemStatusDiv) {
60
59
  if (StringExtensions_1.default.IsNotNullOrEmpty(statusFurtherInformation)) {
@@ -9,6 +9,7 @@ const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux
9
9
  const TeamSharingInternalApi_1 = require("../Internal/TeamSharingInternalApi");
10
10
  const TeamSharingState_1 = require("../../AdaptableState/TeamSharingState");
11
11
  class TeamSharingApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new TeamSharingInternalApi_1.TeamSharingInternalApi(_adaptable);
@@ -10,6 +10,7 @@ const ThemeInternalApi_1 = require("../Internal/ThemeInternalApi");
10
10
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
11
11
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
12
12
  class ThemeApiImpl extends ApiBase_1.ApiBase {
13
+ internalApi;
13
14
  constructor(_adaptable) {
14
15
  super(_adaptable);
15
16
  this.internalApi = new ThemeInternalApi_1.ThemeInternalApi(_adaptable);
@@ -6,6 +6,7 @@ import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
6
6
  import { UserInterfaceApi } from '../UserInterfaceApi';
7
7
  import { ProgressIndicatorConfig } from '../../AdaptableState/Common/ProgressIndicatorConfig';
8
8
  import { ApiBase } from './ApiBase';
9
+ import { UserInterfaceState } from '../../AdaptableState/UserInterfaceState';
9
10
  export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
10
11
  internalApi: UserInterfaceInternalApi;
11
12
  private showProgressIndicatorTimeout;
@@ -26,4 +27,8 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
26
27
  close: () => void;
27
28
  };
28
29
  closeCustomWindowPopup(windowId: string): void;
30
+ getUserInterfaceState(): UserInterfaceState;
31
+ isAdaptableUIVisible(): boolean;
32
+ hideAdaptableUI(): void;
33
+ showAdaptableUI(): void;
29
34
  }
@@ -8,10 +8,12 @@ const WindowPopups_1 = require("../../View/Components/Popups/WindowPopups/Window
8
8
  const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
9
9
  const ApiBase_1 = require("./ApiBase");
10
10
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
11
+ const UserInterfaceRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/UserInterfaceRedux"));
11
12
  class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
13
+ internalApi;
14
+ showProgressIndicatorTimeout = null;
12
15
  constructor(_adaptable) {
13
16
  super(_adaptable);
14
- this.showProgressIndicatorTimeout = null;
15
17
  this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(_adaptable);
16
18
  }
17
19
  getColorPalette() {
@@ -131,5 +133,17 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
131
133
  closeCustomWindowPopup(windowId) {
132
134
  this.dispatchAction(PopupRedux.PopupHideWindow(windowId));
133
135
  }
136
+ getUserInterfaceState() {
137
+ return this.getAdaptableState().UserInterface;
138
+ }
139
+ isAdaptableUIVisible() {
140
+ return !(this.getUserInterfaceState().HideAdaptableUI ?? false);
141
+ }
142
+ hideAdaptableUI() {
143
+ this.dispatchAction(UserInterfaceRedux.UserInterfaceSetHideAdaptableUI(true));
144
+ }
145
+ showAdaptableUI() {
146
+ this.dispatchAction(UserInterfaceRedux.UserInterfaceSetHideAdaptableUI(false));
147
+ }
134
148
  }
135
149
  exports.UserInterfaceApiImpl = UserInterfaceApiImpl;
@@ -154,8 +154,8 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
154
154
  if (calculatedColumnReferences.length) {
155
155
  const alert = {
156
156
  alertType: 'generic',
157
- header: 'CalculatedColumn could not be deleted',
158
- message: `It is still referenced in the following modules: ${calculatedColumnReferences.join(', ')}`,
157
+ header: 'Calculated Column',
158
+ message: `This Calculated Column cannot be deleted. It is still referenced by: ${calculatedColumnReferences.join(', ')}.`,
159
159
  alertDefinition: (0, ObjectFactory_1.CreateInternalAlertDefinitionForMessages)('Error'),
160
160
  };
161
161
  this.getAlertApi().displayAdaptableAlertNotification(alert);
@@ -282,7 +282,7 @@ class ColumnInternalApi extends ApiBase_1.ApiBase {
282
282
  getQueryableColumnsForUIEditor() {
283
283
  return this.getColumnApi()
284
284
  .getQueryableColumns()
285
- .filter((column) => !column.isGeneratedPivotResultColumn && !column.isGeneratedRowGroupColumn);
285
+ .filter((column) => !column.isGeneratedPivotResultColumn && !column.isGeneratedRowGroupColumn && !column.isGeneratedSelectionColumn);
286
286
  }
287
287
  isAlwaysHiddenColumn(columnIdentifier) {
288
288
  return this.getColumnApi().hasColumnType(columnIdentifier, AdaptableColumn_1.HIDDEN_COLUMN_TYPE);
@@ -7,21 +7,11 @@ export declare class FormatColumnInternalApi extends ApiBase {
7
7
  * @returns format columns
8
8
  */
9
9
  getAllFormatColumnWithStyle(config?: FormatColumnConfig): FormatColumn[];
10
- /**
11
- * Retrieves all Format Columns in Adaptable State with the `Style` or the `CellAlignment` property set
12
- * @returns format columns
13
- */
14
- getAllFormatColumnWithStyleAndCellAlignment(config?: FormatColumnConfig): FormatColumn[];
15
10
  /**
16
11
  * Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set
17
12
  * @returns format columns
18
13
  */
19
14
  getAllFormatColumnWithDisplayFormat(config?: FormatColumnConfig): FormatColumn[];
20
- /**
21
- * Retrieves all Format Columns in Adaptable State with `CellAlignment` property set
22
- * @returns format columns
23
- */
24
- getAllFormatColumnWithCellAlignment(config?: FormatColumnConfig): FormatColumn[];
25
15
  /**
26
16
  * Get all FormatColumns which are defined for this column and have a custom AdaptableStyle
27
17
  * @param column
@@ -45,15 +45,6 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
45
45
  .getFormatColumns(config)
46
46
  .filter((fc) => fc.Style);
47
47
  }
48
- /**
49
- * Retrieves all Format Columns in Adaptable State with the `Style` or the `CellAlignment` property set
50
- * @returns format columns
51
- */
52
- getAllFormatColumnWithStyleAndCellAlignment(config) {
53
- return this.getFormatColumnApi()
54
- .getFormatColumns(config)
55
- .filter((fc) => fc.Style || fc.CellAlignment);
56
- }
57
48
  /**
58
49
  * Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set
59
50
  * @returns format columns
@@ -63,15 +54,6 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
63
54
  .getFormatColumns(config)
64
55
  .filter((fc) => fc.DisplayFormat);
65
56
  }
66
- /**
67
- * Retrieves all Format Columns in Adaptable State with `CellAlignment` property set
68
- * @returns format columns
69
- */
70
- getAllFormatColumnWithCellAlignment(config) {
71
- return this.getFormatColumnApi()
72
- .getFormatColumns(config)
73
- .filter((fc) => fc.CellAlignment);
74
- }
75
57
  /**
76
58
  * Get all FormatColumns which are defined for this column and have a custom AdaptableStyle
77
59
  * @param column
@@ -79,7 +61,7 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
79
61
  * @returns list of FormatColumn
80
62
  */
81
63
  getFormatColumnsWithStyleForColumn(column, config) {
82
- const formatColumns = this.getAllFormatColumnWithStyleAndCellAlignment()
64
+ const formatColumns = this.getAllFormatColumnWithStyle()
83
65
  .filter((formatColumn) => {
84
66
  // FormatColumn default target is 'cell', so if no target is specified, we assume 'cell'
85
67
  const fcTarget = formatColumn.Target ?? 'cell';
@@ -99,8 +99,8 @@ class FreeTextColumnInternalApi extends ApiBase_1.ApiBase {
99
99
  if (freeTextColumnReferences.length) {
100
100
  const alert = {
101
101
  alertType: 'generic',
102
- header: 'FreeTextColumn could not be deleted',
103
- message: `It is still referenced in the following modules: ${freeTextColumnReferences.join(', ')}`,
102
+ header: 'Free Text Column',
103
+ message: `This Free Text Column cannot be deleted. It is still referenced by: ${freeTextColumnReferences.join(', ')}.`,
104
104
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
105
105
  };
106
106
  this.getAlertApi().displayAdaptableAlertNotification(alert);
@@ -96,7 +96,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
96
96
  }
97
97
  setupRowSummaries() {
98
98
  if (!this._adaptable.agGridModulesAdapter.isAgGridModuleRegistered('PinnedRowModule')) {
99
- this.getAdaptableApi().consoleError(`Can NOT set Layout Row Summaries - missing required AG Grid module 'PinnedRowModule'`);
99
+ this.getAdaptableApi().consoleError('Layout Row Summaries require the AG Grid "PinnedRowModule". Please register this module.');
100
100
  return;
101
101
  }
102
102
  const rowSummaries = this.getAdaptableState().Internal?.RowSummary?.rowSummaries ?? [];
@@ -44,8 +44,8 @@ class NamedQueryInternalApi extends ApiBase_1.ApiBase {
44
44
  if (namedQueryReferences.length) {
45
45
  const alert = {
46
46
  alertType: 'generic',
47
- header: 'Named Query could not be deleted',
48
- message: `It is still referenced in the following modules: ${namedQueryReferences.join(', ')}`,
47
+ header: 'Named Query',
48
+ message: `This Named Query cannot be deleted. It is still referenced by: ${namedQueryReferences.join(', ')}.`,
49
49
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
50
50
  };
51
51
  this.getAlertApi().displayAdaptableAlertNotification(alert);
@@ -60,8 +60,8 @@ class NamedQueryInternalApi extends ApiBase_1.ApiBase {
60
60
  if (namedQueryReferences.length) {
61
61
  const alert = {
62
62
  alertType: 'generic',
63
- header: 'Named Query could not be renamed',
64
- message: `It is currently referenced in the following modules: ${namedQueryReferences.join(', ')}`,
63
+ header: 'Named Query',
64
+ message: `This Named Query cannot be renamed. It is currently referenced by: ${namedQueryReferences.join(', ')}.`,
65
65
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
66
66
  };
67
67
  this.getAlertApi().displayAdaptableAlertNotification(alert);
@@ -57,6 +57,12 @@ export interface LayoutApi {
57
57
  */
58
58
  getLayoutByName(layoutName: string): Layout | null;
59
59
  /**
60
+ * Sets (i.e. selects) the Extended Layout
61
+ * @param extendedLayout Extended Layout to set
62
+ */
63
+ setExtendedLayout(extendedLayout: ExtendedLayout): void;
64
+ /**
65
+ *
60
66
  * Retrieves Layout with the given name
61
67
  * @param layoutName Layout to retrieve
62
68
  * @returns layout
@@ -20,6 +20,12 @@ export interface PlusMinusApi {
20
20
  * @returns plus minus rule
21
21
  */
22
22
  getPlusMinusById(id: PlusMinusNudge['Uuid'], config?: LayoutExtendedConfig): PlusMinusNudge;
23
+ /**
24
+ * Retrieves a Plus Minus Nudge by its Name
25
+ * @param name Name of the Plus Minus Nudge
26
+ * @returns Plus Minus Nudge or undefined if not found
27
+ */
28
+ getPlusMinusNudgeByName(name: string): PlusMinusNudge | undefined;
23
29
  /**
24
30
  * Retrieves all active (not-suspended) Plus Minus Rules in Adaptable State with those with expressions first
25
31
  * @returns plus minus rules
@@ -23,6 +23,12 @@ export interface ScheduleApi {
23
23
  * @returns schedule
24
24
  */
25
25
  getScheduleById(id: BaseSchedule['Uuid'], config?: LayoutExtendedConfig): BaseSchedule;
26
+ /**
27
+ * Retrieves a Schedule by its Name
28
+ * @param name Name of the Schedule
29
+ * @returns Schedule or undefined if not found
30
+ */
31
+ getScheduleByName(name: string): BaseSchedule | undefined;
26
32
  /**
27
33
  * Retrieves all Reminder-based Schedules from Schedule State
28
34
  * @returns reminder schedules
@@ -19,6 +19,12 @@ export interface ShortcutApi {
19
19
  * @returns shortcut
20
20
  */
21
21
  getShortcutById(id: Shortcut['Uuid'], config?: LayoutExtendedConfig): Shortcut;
22
+ /**
23
+ * Retrieves a Shortcut by its Name
24
+ * @param name Name of the Shortcut
25
+ * @returns Shortcut or undefined if not found
26
+ */
27
+ getShortcutByName(name: string): Shortcut | undefined;
22
28
  /**
23
29
  * Gets all active (not-suspended) Shortcuts in Adaptable State
24
30
  * @returns shortcuts
@@ -3,6 +3,7 @@ import { AdaptableObject, AdaptableObjectTag } from '../AdaptableState/Common/Ad
3
3
  import { AdaptableModule, CustomIcon } from '../types';
4
4
  import { CustomWindowConfig } from '../AdaptableState/Common/CustomWindowConfig';
5
5
  import { ProgressIndicatorConfig } from '../AdaptableState/Common/ProgressIndicatorConfig';
6
+ import { UserInterfaceState } from '../AdaptableState/UserInterfaceState';
6
7
  /**
7
8
  * Functions relating to User Interface section of Adaptable State
8
9
  */
@@ -78,4 +79,20 @@ export interface UserInterfaceApi {
78
79
  * @param windowId window popup id
79
80
  */
80
81
  closeCustomWindowPopup(windowId: string): void;
82
+ /**
83
+ * Retrieves the current User Interface State
84
+ */
85
+ getUserInterfaceState(): UserInterfaceState;
86
+ /**
87
+ * Returns whether the AdapTable UI is currently visible
88
+ */
89
+ isAdaptableUIVisible(): boolean;
90
+ /**
91
+ * Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
92
+ */
93
+ hideAdaptableUI(): void;
94
+ /**
95
+ * Shows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
96
+ */
97
+ showAdaptableUI(): void;
81
98
  }
@@ -1,5 +1,9 @@
1
1
  import { FormatColumnState, FormatColumn } from '../../AdaptableState/FormatColumnState';
2
2
  import * as Redux from 'redux';
3
+ /**
4
+ * @ReduxAction Many Format Columns have been added
5
+ */
6
+ export declare const FORMAT_COLUMN_ADD_BATCH = "FORMAT_COLUMN_ADD_BATCH";
3
7
  /**
4
8
  * @ReduxAction A Format Column has been added
5
9
  */
@@ -44,6 +48,9 @@ export declare const FORMAT_COLUMN_UNSUSPEND = "FORMAT_COLUMN_UNSUSPEND";
44
48
  * @ReduxAction FormatColumn Module is unsuspended, or activated
45
49
  */
46
50
  export declare const FORMAT_COLUMN_UNSUSPEND_ALL = "FORMAT_COLUMN_UNSUSPEND_ALL";
51
+ export interface FormatColumnAddBatchAction extends Redux.Action {
52
+ formatColumns: FormatColumn[];
53
+ }
47
54
  export interface FormatColumnAction extends Redux.Action {
48
55
  formatColumn: FormatColumn;
49
56
  }
@@ -70,6 +77,7 @@ export interface FormatColumnUnSuspendAllAction extends Redux.Action {
70
77
  export interface FormatColumnReadyAction extends Redux.Action {
71
78
  formatColumnState: FormatColumnState;
72
79
  }
80
+ export declare const FormatColumnsAdd: (formatColumns: FormatColumn[]) => FormatColumnAddBatchAction;
73
81
  export declare const FormatColumnAdd: (formatColumn: FormatColumn) => FormatColumnAddAction;
74
82
  export declare const FormatColumnEdit: (formatColumn: FormatColumn) => FormatColumnEditAction;
75
83
  export declare const FormatColumnDelete: (formatColumn: FormatColumn) => FormatColumnDeleteAction;
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspendAll = exports.FormatColumnSuspendAll = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnMoveDown = exports.FormatColumnMoveUp = exports.FormatColumnDeleteAll = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND_ALL = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND_ALL = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE_ALL = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = exports.FORMAT_COLUMN_ADD = void 0;
3
+ exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspendAll = exports.FormatColumnSuspendAll = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnMoveDown = exports.FormatColumnMoveUp = exports.FormatColumnDeleteAll = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FormatColumnsAdd = exports.FORMAT_COLUMN_UNSUSPEND_ALL = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND_ALL = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE_ALL = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = exports.FORMAT_COLUMN_ADD = exports.FORMAT_COLUMN_ADD_BATCH = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
6
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
7
7
  const utils_1 = require("./utils");
8
+ /**
9
+ * @ReduxAction Many Format Columns have been added
10
+ */
11
+ exports.FORMAT_COLUMN_ADD_BATCH = 'FORMAT_COLUMN_ADD_BATCH';
8
12
  /**
9
13
  * @ReduxAction A Format Column has been added
10
14
  */
@@ -49,6 +53,11 @@ exports.FORMAT_COLUMN_UNSUSPEND = 'FORMAT_COLUMN_UNSUSPEND';
49
53
  * @ReduxAction FormatColumn Module is unsuspended, or activated
50
54
  */
51
55
  exports.FORMAT_COLUMN_UNSUSPEND_ALL = 'FORMAT_COLUMN_UNSUSPEND_ALL';
56
+ const FormatColumnsAdd = (formatColumns) => ({
57
+ type: exports.FORMAT_COLUMN_ADD_BATCH,
58
+ formatColumns,
59
+ });
60
+ exports.FormatColumnsAdd = FormatColumnsAdd;
52
61
  const FormatColumnAdd = (formatColumn) => ({
53
62
  type: exports.FORMAT_COLUMN_ADD,
54
63
  formatColumn,
@@ -107,6 +116,13 @@ const initialState = {
107
116
  const FormatColumnReducer = (state = initialState, action) => {
108
117
  let formatColumns;
109
118
  switch (action.type) {
119
+ case exports.FORMAT_COLUMN_ADD_BATCH: {
120
+ const actionFormatColumns = action.formatColumns;
121
+ actionFormatColumns.forEach(AdaptableHelper_1.default.addAdaptableObjectPrimitives);
122
+ formatColumns = [].concat(state.FormatColumns);
123
+ formatColumns.push(...actionFormatColumns);
124
+ return { ...state, FormatColumns: formatColumns };
125
+ }
110
126
  case exports.FORMAT_COLUMN_ADD: {
111
127
  const actionFormatColumn = action.formatColumn;
112
128
  AdaptableHelper_1.default.addAdaptableObjectPrimitives(actionFormatColumn);
@@ -15,6 +15,7 @@ import { SelectedCellInfo } from '../../AdaptableState/Selection/SelectedCellInf
15
15
  import { SelectedRowInfo } from '../../AdaptableState/Selection/SelectedRowInfo';
16
16
  import { CellHighlightInfo, RowHighlightInfo, RowsHighlightInfo } from '../../types';
17
17
  import { IRowNode } from 'ag-grid-enterprise';
18
+ import { ColumnHighlightInfo } from '../../AdaptableState/Common/ColumnHighlightInfo';
18
19
  export declare const SET_COLUMNS = "SET_COLUMNS";
19
20
  export declare const SET_SELECTED_CELLS = "SET_SELECTED_CELLS";
20
21
  export declare const SET_SELECTED_ROWS = "SET_SELECTED_ROWS";
@@ -23,6 +24,9 @@ export declare const SET_DASHBOARD_MODULE_BUTTONS = "SET_DASHBOARD_MODULE_BUTTON
23
24
  export declare const HIGHLIGHT_CELL_ADD = "HIGHLIGHT_CELL_ADD";
24
25
  export declare const HIGHLIGHT_CELL_DELETE = "HIGHLIGHT_CELL_DELETE";
25
26
  export declare const HIGHLIGHT_CELL_DELETE_ALL = "HIGHLIGHT_CELL_DELETE_ALL";
27
+ export declare const HIGHLIGHT_COLUMN_ADD = "HIGHLIGHT_COLUMN_ADD";
28
+ export declare const HIGHLIGHT_COLUMN_DELETE = "HIGHLIGHT_COLUMN_DELETE";
29
+ export declare const HIGHLIGHT_COLUMN_DELETE_ALL = "HIGHLIGHT_COLUMN_DELETE_ALL";
26
30
  export declare const HIGHLIGHT_ROW_ADD = "HIGHLIGHT_ROW_ADD";
27
31
  export declare const HIGHLIGHT_ROWS_ADD = "HIGHLIGHT_ROWS_ADD";
28
32
  export declare const HIGHLIGHT_ROW_DELETE = "HIGHLIGHT_ROW_DELETE";
@@ -93,6 +97,14 @@ export interface HighlightCellDeleteAction extends Redux.Action {
93
97
  }
94
98
  export interface HighlightCellDeleteAllAction extends Redux.Action {
95
99
  }
100
+ export interface HighlightColumnAddAction extends Redux.Action {
101
+ columnHighlightInfo: ColumnHighlightInfo;
102
+ }
103
+ export interface HighlightColumnDeleteAction extends Redux.Action {
104
+ columnId: ColumnHighlightInfo['columnId'];
105
+ }
106
+ export interface HighlightColumnDeleteAllAction extends Redux.Action {
107
+ }
96
108
  export interface HighlightRowAddAction extends Redux.Action {
97
109
  rowHighlightInfo: RowHighlightInfo;
98
110
  }
@@ -121,6 +133,9 @@ export interface SystemExportEndAction extends Redux.Action {
121
133
  export declare const HighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => HighlightCellAddAction;
122
134
  export declare const HighlightCellDelete: (primaryKeyValue: CellHighlightInfo["primaryKeyValue"], columnId: CellHighlightInfo["columnId"]) => HighlightCellDeleteAction;
123
135
  export declare const HighlightCellDeleteAll: () => HighlightCellDeleteAllAction;
136
+ export declare const HighlightColumnAdd: (columnHighlightInfo: ColumnHighlightInfo) => HighlightColumnAddAction;
137
+ export declare const HighlightColumnDelete: (columnId: ColumnHighlightInfo["columnId"]) => HighlightColumnDeleteAction;
138
+ export declare const HighlightColumnDeleteAll: () => HighlightColumnDeleteAllAction;
124
139
  export declare const HighlightRowAdd: (rowHighlightInfo: RowHighlightInfo) => HighlightRowAddAction;
125
140
  export declare const HighlightRowsAdd: (rowsHighlightInfo: RowsHighlightInfo) => HighlightRowsAddAction;
126
141
  export declare const HighlightRowDelete: (primaryKeyValue: RowHighlightInfo["primaryKeyValue"]) => HighlightRowDeleteAction;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DASHBOARD_REFRESH = exports.LAYOUT_SHOW_NON_EXTENDED_OBJECTS = exports.DISABLE_DELETE_CONFIRMATION = exports.QUICK_FILTER_BAR_HIDE = exports.QUICK_FILTER_BAR_SHOW = exports.SETTINGS_PANEL_SET = exports.DATA_CHANGE_HISTORY_RESUME = exports.DATA_CHANGE_HISTORY_SUSPEND = exports.DATA_CHANGE_HISTORY_DISABLE = exports.DATA_CHANGE_HISTORY_ENABLE = exports.DATA_CHANGE_HISTORY_CLEAR_ROW = exports.DATA_CHANGE_HISTORY_UNDO = exports.DATA_CHANGE_HISTORY_ADD = exports.LICENSE_DISABLE_PERSISTENCE = exports.LICENSE_SHOW_WATERMARK = exports.CREATE_CELL_SUMMARY_INFO = exports.SET_CELL_SUMMARY_INFO = exports.CELL_SUMMARY_CHANGE_OPERATION = exports.CACHED_QUERY_ADD = exports.BULK_UPDATE_CHANGE_VALUE = exports.BULK_UPDATE_SET_PREVIEW = exports.BULK_UPDATE_SET_VALID_SELECTION = exports.BULK_UPDATE_CHECK_CELL_SELECTION = exports.SMART_EDIT_CHANGE_OPERATION = exports.SMART_EDIT_CHANGE_VALUE = exports.SMARTEDIT_SET_PREVIEW = exports.SMARTEDIT_SET_VALID_SELECTION = exports.SMARTEDIT_FETCH_PREVIEW = exports.SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.ALERT_REMOVE_ROW_HIGHLIGHT = exports.ALERT_REMOVE_CELL_HIGHLIGHT = exports.ALERT_DELETE_ALL = exports.ALERT_DELETE = exports.ALERT_ADD = exports.HIGHLIGHT_ROW_DELETE_ALL = exports.HIGHLIGHT_ROWS_DELETE = exports.HIGHLIGHT_ROW_DELETE = exports.HIGHLIGHT_ROWS_ADD = exports.HIGHLIGHT_ROW_ADD = exports.HIGHLIGHT_CELL_DELETE_ALL = exports.HIGHLIGHT_CELL_DELETE = exports.HIGHLIGHT_CELL_ADD = exports.SET_DASHBOARD_MODULE_BUTTONS = exports.SET_SETTINGS_PANEL_ITEMS = exports.SET_SELECTED_ROWS = exports.SET_SELECTED_CELLS = exports.SET_COLUMNS = void 0;
4
- exports.DataChangeHistoryEnable = exports.DataChangeHistoryClearRow = exports.DataChangeHistoryUndo = exports.DataChangeHistoryAdd = exports.LicenseDisablePersistence = exports.LicenseShowWatermark = exports.CellSummaryChangeOperation = exports.CachedQueryAdd = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SetCellSummaryInfo = exports.CreateCellSummaryInfo = exports.AdaptableAlertRemoveRowHighlight = exports.AdaptableAlertRemoveCellHighlight = exports.AdaptableAlertDeleteAll = exports.AdaptableAlertDelete = exports.AdaptableAlertAdd = exports.SetDasboardModuleButtons = exports.SetSettingsPanelItems = exports.SetSelectedRows = exports.SetSelectedCells = exports.SetColumns = exports.GridHighlightRowDeleteAll = exports.GridHighlightRowsDelete = exports.HighlightRowDelete = exports.HighlightRowsAdd = exports.HighlightRowAdd = exports.HighlightCellDeleteAll = exports.HighlightCellDelete = exports.HighlightCellAdd = exports.DATA_IMPORT_COMPLETED = exports.SUMMARY_ROW_SET = exports.CELL_POPUP_EDIT_FOCUSED_ENTITY = exports.CELL_POPUP_HIDE = exports.CELL_POPUP_SHOW = exports.SYSTEM_EXPORT_END = exports.SYSTEM_EXPORT_BEGIN = exports.SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.CHARTING_SET_CURRENT_CHART_MODELS = exports.DATA_SET_SELECT = void 0;
5
- exports.InternalReducer = exports.DataImportCompleted = exports.CommentsAndNotesFocusedEntitySelector = exports.CommentsAndNotesEditModeSelector = exports.CommentsAndNotesSelector = exports.QuickSearchFloatingVisibilitySelector = exports.DisableDeleteConfirmationSelector = exports.CellPopupHide = exports.RowSummarySet = exports.CellPopupEditFocusedEntity = exports.CellPopupShow = exports.QuickSearchFloatingVisibility = exports.SystemExportEnd = exports.SystemExportBegin = exports.DisableDeleteConfirmation = exports.ChartingCurrentChartModelsSelector = exports.ChartingSetCurrentChartModels = exports.DataSetSelect = exports.DashboardRefresh = exports.LayoutShowNonExtendedObjects = exports.QuickFilterBarHide = exports.QuickFilterBarShow = exports.SettingsPanelSet = exports.DataChangeHistoryResume = exports.DataChangeHistorySuspend = exports.DataChangeHistoryDisable = void 0;
3
+ exports.QUICK_FILTER_BAR_HIDE = exports.QUICK_FILTER_BAR_SHOW = exports.SETTINGS_PANEL_SET = exports.DATA_CHANGE_HISTORY_RESUME = exports.DATA_CHANGE_HISTORY_SUSPEND = exports.DATA_CHANGE_HISTORY_DISABLE = exports.DATA_CHANGE_HISTORY_ENABLE = exports.DATA_CHANGE_HISTORY_CLEAR_ROW = exports.DATA_CHANGE_HISTORY_UNDO = exports.DATA_CHANGE_HISTORY_ADD = exports.LICENSE_DISABLE_PERSISTENCE = exports.LICENSE_SHOW_WATERMARK = exports.CREATE_CELL_SUMMARY_INFO = exports.SET_CELL_SUMMARY_INFO = exports.CELL_SUMMARY_CHANGE_OPERATION = exports.CACHED_QUERY_ADD = exports.BULK_UPDATE_CHANGE_VALUE = exports.BULK_UPDATE_SET_PREVIEW = exports.BULK_UPDATE_SET_VALID_SELECTION = exports.BULK_UPDATE_CHECK_CELL_SELECTION = exports.SMART_EDIT_CHANGE_OPERATION = exports.SMART_EDIT_CHANGE_VALUE = exports.SMARTEDIT_SET_PREVIEW = exports.SMARTEDIT_SET_VALID_SELECTION = exports.SMARTEDIT_FETCH_PREVIEW = exports.SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.ALERT_REMOVE_ROW_HIGHLIGHT = exports.ALERT_REMOVE_CELL_HIGHLIGHT = exports.ALERT_DELETE_ALL = exports.ALERT_DELETE = exports.ALERT_ADD = exports.HIGHLIGHT_ROW_DELETE_ALL = exports.HIGHLIGHT_ROWS_DELETE = exports.HIGHLIGHT_ROW_DELETE = exports.HIGHLIGHT_ROWS_ADD = exports.HIGHLIGHT_ROW_ADD = exports.HIGHLIGHT_COLUMN_DELETE_ALL = exports.HIGHLIGHT_COLUMN_DELETE = exports.HIGHLIGHT_COLUMN_ADD = exports.HIGHLIGHT_CELL_DELETE_ALL = exports.HIGHLIGHT_CELL_DELETE = exports.HIGHLIGHT_CELL_ADD = exports.SET_DASHBOARD_MODULE_BUTTONS = exports.SET_SETTINGS_PANEL_ITEMS = exports.SET_SELECTED_ROWS = exports.SET_SELECTED_CELLS = exports.SET_COLUMNS = void 0;
4
+ exports.CellSummaryChangeOperation = exports.CachedQueryAdd = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SetCellSummaryInfo = exports.CreateCellSummaryInfo = exports.AdaptableAlertRemoveRowHighlight = exports.AdaptableAlertRemoveCellHighlight = exports.AdaptableAlertDeleteAll = exports.AdaptableAlertDelete = exports.AdaptableAlertAdd = exports.SetDasboardModuleButtons = exports.SetSettingsPanelItems = exports.SetSelectedRows = exports.SetSelectedCells = exports.SetColumns = exports.GridHighlightRowDeleteAll = exports.GridHighlightRowsDelete = exports.HighlightRowDelete = exports.HighlightRowsAdd = exports.HighlightRowAdd = exports.HighlightColumnDeleteAll = exports.HighlightColumnDelete = exports.HighlightColumnAdd = exports.HighlightCellDeleteAll = exports.HighlightCellDelete = exports.HighlightCellAdd = exports.DATA_IMPORT_COMPLETED = exports.SUMMARY_ROW_SET = exports.CELL_POPUP_EDIT_FOCUSED_ENTITY = exports.CELL_POPUP_HIDE = exports.CELL_POPUP_SHOW = exports.SYSTEM_EXPORT_END = exports.SYSTEM_EXPORT_BEGIN = exports.SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.CHARTING_SET_CURRENT_CHART_MODELS = exports.DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.LAYOUT_SHOW_NON_EXTENDED_OBJECTS = exports.DISABLE_DELETE_CONFIRMATION = void 0;
5
+ exports.InternalReducer = exports.DataImportCompleted = exports.CommentsAndNotesFocusedEntitySelector = exports.CommentsAndNotesEditModeSelector = exports.CommentsAndNotesSelector = exports.QuickSearchFloatingVisibilitySelector = exports.DisableDeleteConfirmationSelector = exports.CellPopupHide = exports.RowSummarySet = exports.CellPopupEditFocusedEntity = exports.CellPopupShow = exports.QuickSearchFloatingVisibility = exports.SystemExportEnd = exports.SystemExportBegin = exports.DisableDeleteConfirmation = exports.ChartingCurrentChartModelsSelector = exports.ChartingSetCurrentChartModels = exports.DataSetSelect = exports.DashboardRefresh = exports.LayoutShowNonExtendedObjects = exports.QuickFilterBarHide = exports.QuickFilterBarShow = exports.SettingsPanelSet = exports.DataChangeHistoryResume = exports.DataChangeHistorySuspend = exports.DataChangeHistoryDisable = exports.DataChangeHistoryEnable = exports.DataChangeHistoryClearRow = exports.DataChangeHistoryUndo = exports.DataChangeHistoryAdd = exports.LicenseDisablePersistence = exports.LicenseShowWatermark = void 0;
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
7
  const ReduxConstants_1 = require("../../Utilities/Constants/ReduxConstants");
8
8
  const Enums_1 = require("../../AdaptableState/Common/Enums");
@@ -27,6 +27,10 @@ exports.SET_DASHBOARD_MODULE_BUTTONS = 'SET_DASHBOARD_MODULE_BUTTONS';
27
27
  exports.HIGHLIGHT_CELL_ADD = 'HIGHLIGHT_CELL_ADD';
28
28
  exports.HIGHLIGHT_CELL_DELETE = 'HIGHLIGHT_CELL_DELETE';
29
29
  exports.HIGHLIGHT_CELL_DELETE_ALL = 'HIGHLIGHT_CELL_DELETE_ALL';
30
+ // Column Highlight
31
+ exports.HIGHLIGHT_COLUMN_ADD = 'HIGHLIGHT_COLUMN_ADD';
32
+ exports.HIGHLIGHT_COLUMN_DELETE = 'HIGHLIGHT_COLUMN_DELETE';
33
+ exports.HIGHLIGHT_COLUMN_DELETE_ALL = 'HIGHLIGHT_COLUMN_DELETE_ALL';
30
34
  // Row Highlight
31
35
  exports.HIGHLIGHT_ROW_ADD = 'HIGHLIGHT_ROW_ADD';
32
36
  exports.HIGHLIGHT_ROWS_ADD = 'HIGHLIGHT_ROWS_ADD';
@@ -114,6 +118,20 @@ const HighlightCellDeleteAll = () => ({
114
118
  type: exports.HIGHLIGHT_CELL_DELETE_ALL,
115
119
  });
116
120
  exports.HighlightCellDeleteAll = HighlightCellDeleteAll;
121
+ const HighlightColumnAdd = (columnHighlightInfo) => ({
122
+ type: exports.HIGHLIGHT_COLUMN_ADD,
123
+ columnHighlightInfo: columnHighlightInfo,
124
+ });
125
+ exports.HighlightColumnAdd = HighlightColumnAdd;
126
+ const HighlightColumnDelete = (columnId) => ({
127
+ type: exports.HIGHLIGHT_COLUMN_DELETE,
128
+ columnId,
129
+ });
130
+ exports.HighlightColumnDelete = HighlightColumnDelete;
131
+ const HighlightColumnDeleteAll = () => ({
132
+ type: exports.HIGHLIGHT_COLUMN_DELETE_ALL,
133
+ });
134
+ exports.HighlightColumnDeleteAll = HighlightColumnDeleteAll;
117
135
  const HighlightRowAdd = (rowHighlightInfo) => ({
118
136
  type: exports.HIGHLIGHT_ROW_ADD,
119
137
  rowHighlightInfo: rowHighlightInfo,
@@ -419,6 +437,7 @@ const initialState = {
419
437
  SelectedCellInfo: null,
420
438
  SelectedRowInfo: null,
421
439
  CellHighlightInfo: GeneralConstants_1.EMPTY_ARRAY,
440
+ ColumnHighlightInfo: GeneralConstants_1.EMPTY_ARRAY,
422
441
  RowHighlightInfo: GeneralConstants_1.EMPTY_ARRAY,
423
442
  SettingsPanelModuleEntries: GeneralConstants_1.EMPTY_ARRAY,
424
443
  AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
@@ -518,6 +537,26 @@ const InternalReducer = (state = initialState, action) => {
518
537
  CellHighlightInfo: [],
519
538
  });
520
539
  }
540
+ case exports.HIGHLIGHT_COLUMN_ADD: {
541
+ const actionTypedAdd = action;
542
+ return Object.assign({}, state, {
543
+ ColumnHighlightInfo: [...state.ColumnHighlightInfo, actionTypedAdd.columnHighlightInfo],
544
+ });
545
+ }
546
+ case exports.HIGHLIGHT_COLUMN_DELETE: {
547
+ const actionTypedDelete = action;
548
+ const actionId = actionTypedDelete.columnId;
549
+ return Object.assign({}, state, {
550
+ ColumnHighlightInfo: state.ColumnHighlightInfo.filter((columnHighlightInfo) => {
551
+ return columnHighlightInfo.columnId !== actionId;
552
+ }),
553
+ });
554
+ }
555
+ case exports.HIGHLIGHT_COLUMN_DELETE_ALL: {
556
+ return Object.assign({}, state, {
557
+ ColumnHighlightInfo: [],
558
+ });
559
+ }
521
560
  case exports.HIGHLIGHT_ROW_ADD: {
522
561
  const actionTypedAdd = action;
523
562
  return Object.assign({}, state, {
@@ -168,11 +168,11 @@ export declare const getColumnFilterSelector: (state: AdaptableState, columnId:
168
168
  Predicates: import("../../types").ColumnFilterPredicate[];
169
169
  PredicatesOperator?: import("../../types").PredicatesOperator;
170
170
  IsSuspended?: boolean;
171
- Uuid?: import("../../AdaptableState/Uuid").TypeUuid;
172
171
  Source?: "InitialState" | "User";
173
172
  AdaptableVersion?: import("../../types").AdaptableVersion;
174
173
  IsReadOnly?: boolean;
175
174
  Tags?: import("../../types").AdaptableObjectTag[];
176
175
  Metadata?: any;
176
+ Uuid?: import("../../AdaptableState/Uuid").TypeUuid;
177
177
  };
178
178
  export declare const LayoutReducer: Redux.Reducer<LayoutState>;
@@ -51,7 +51,7 @@ const GetNoteSelector = (state, address) => {
51
51
  // happy check
52
52
  return true;
53
53
  }
54
- // Primary keys retreived from the grid dom are always strings, so we must also consider them strings
54
+ // Primary keys retrieved from the grid dom are always strings, so we must also consider them strings
55
55
  if ((typeof address.PrimaryKeyValue === 'number' && typeof note.PrimaryKeyValue === 'string') ||
56
56
  (typeof address.PrimaryKeyValue === 'string' && typeof note.PrimaryKeyValue === 'number')) {
57
57
  return (note.PrimaryKeyValue.toString() === address.PrimaryKeyValue.toString() &&
@@ -0,0 +1,11 @@
1
+ import * as Redux from 'redux';
2
+ import { UserInterfaceState } from '../../AdaptableState/UserInterfaceState';
3
+ /**
4
+ * @ReduxAction Sets whether all AdapTable UI elements are hidden
5
+ */
6
+ export declare const USER_INTERFACE_SET_HIDE_ADAPTABLE_UI = "USER_INTERFACE_SET_HIDE_ADAPTABLE_UI";
7
+ export interface UserInterfaceSetHideAdaptableUIAction extends Redux.Action {
8
+ hideAdaptableUI: boolean;
9
+ }
10
+ export declare const UserInterfaceSetHideAdaptableUI: (hideAdaptableUI: boolean) => UserInterfaceSetHideAdaptableUIAction;
11
+ export declare const UserInterfaceReducer: Redux.Reducer<UserInterfaceState>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserInterfaceReducer = exports.UserInterfaceSetHideAdaptableUI = exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI = void 0;
4
+ /**
5
+ * @ReduxAction Sets whether all AdapTable UI elements are hidden
6
+ */
7
+ exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI = 'USER_INTERFACE_SET_HIDE_ADAPTABLE_UI';
8
+ const UserInterfaceSetHideAdaptableUI = (hideAdaptableUI) => ({
9
+ type: exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI,
10
+ hideAdaptableUI,
11
+ });
12
+ exports.UserInterfaceSetHideAdaptableUI = UserInterfaceSetHideAdaptableUI;
13
+ const initialState = {
14
+ HideAdaptableUI: false,
15
+ };
16
+ const UserInterfaceReducer = (state = initialState, action) => {
17
+ switch (action.type) {
18
+ case exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI:
19
+ return Object.assign({}, state, {
20
+ HideAdaptableUI: action.hideAdaptableUI,
21
+ });
22
+ default:
23
+ return state;
24
+ }
25
+ };
26
+ exports.UserInterfaceReducer = UserInterfaceReducer;
@@ -30,6 +30,12 @@ const loadState = ({ adaptableId, adaptableStateKey }) => {
30
30
  return Promise.resolve(parsedJsonState);
31
31
  };
32
32
  class AdaptableReduxLocalStorageEngine {
33
+ adaptableId;
34
+ adaptableStateKey;
35
+ userName;
36
+ initialState;
37
+ loadState;
38
+ persistState;
33
39
  constructor(config) {
34
40
  this.adaptableId = config.adaptableId;
35
41
  this.adaptableStateKey = config.adaptableStateKey;