@adaptabletools/adaptable-cjs 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 (395) 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 +85 -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/ColumnHighlightInfo.js +2 -0
  32. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
  33. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  34. package/src/AdaptableState/Common/NamedObject.js +2 -0
  35. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  36. package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
  37. package/src/AdaptableState/Common/Schedule.d.ts +8 -5
  38. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
  39. package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
  40. package/src/AdaptableState/CustomSortState.d.ts +5 -1
  41. package/src/AdaptableState/DashboardState.d.ts +1 -1
  42. package/src/AdaptableState/ExportState.d.ts +1 -1
  43. package/src/AdaptableState/FlashingCellState.d.ts +6 -2
  44. package/src/AdaptableState/FormatColumnState.d.ts +5 -9
  45. package/src/AdaptableState/InitialState.d.ts +10 -1
  46. package/src/AdaptableState/InternalState.d.ts +2 -0
  47. package/src/AdaptableState/LayoutState.d.ts +7 -3
  48. package/src/AdaptableState/NamedQueryState.d.ts +1 -1
  49. package/src/AdaptableState/PlusMinusState.d.ts +5 -1
  50. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  51. package/src/AdaptableState/ShortcutState.d.ts +5 -1
  52. package/src/AdaptableState/StyledColumnState.d.ts +1 -1
  53. package/src/AdaptableState/ThemeState.d.ts +1 -1
  54. package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
  55. package/src/AdaptableState/UserInterfaceState.js +2 -0
  56. package/src/Api/AlertApi.d.ts +6 -0
  57. package/src/Api/CustomSortApi.d.ts +12 -3
  58. package/src/Api/DataSetApi.d.ts +1 -1
  59. package/src/Api/FlashingCellApi.d.ts +6 -0
  60. package/src/Api/FormatColumnApi.d.ts +10 -4
  61. package/src/Api/GridApi.d.ts +27 -12
  62. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  63. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  64. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
  65. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  66. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  67. package/src/Api/Implementation/ApiBase.js +2 -1
  68. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  69. package/src/Api/Implementation/ChartingApiImpl.js +6 -2
  70. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  71. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  72. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  73. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  74. package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
  75. package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
  76. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  77. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  78. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  79. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  80. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  81. package/src/Api/Implementation/EventApiImpl.js +16 -14
  82. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  83. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  84. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  85. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  86. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  87. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
  88. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
  89. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
  90. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  91. package/src/Api/Implementation/GridApiImpl.d.ts +11 -10
  92. package/src/Api/Implementation/GridApiImpl.js +38 -20
  93. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  94. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  95. package/src/Api/Implementation/LayoutApiImpl.js +5 -1
  96. package/src/Api/Implementation/LayoutHelpers.js +7 -0
  97. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
  98. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  99. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
  100. package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
  101. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  102. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  103. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  104. package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
  105. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  106. package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
  107. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  108. package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
  109. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  110. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  111. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
  112. package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
  113. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  114. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  115. package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
  116. package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
  117. package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
  118. package/src/Api/Internal/LayoutInternalApi.js +1 -1
  119. package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
  120. package/src/Api/LayoutApi.d.ts +6 -0
  121. package/src/Api/PlusMinusApi.d.ts +6 -0
  122. package/src/Api/ScheduleApi.d.ts +6 -0
  123. package/src/Api/ShortcutApi.d.ts +6 -0
  124. package/src/Api/UserInterfaceApi.d.ts +17 -0
  125. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
  126. package/src/Redux/ActionsReducers/FormatColumnRedux.js +17 -1
  127. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  128. package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
  129. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
  130. package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
  131. package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
  132. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +26 -0
  133. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  134. package/src/Redux/Store/AdaptableStore.js +113 -57
  135. package/src/Strategy/AdaptableModuleBase.js +4 -0
  136. package/src/Strategy/AlertModule.js +5 -0
  137. package/src/Strategy/BulkUpdateModule.js +8 -8
  138. package/src/Strategy/CalculatedColumnModule.js +1 -0
  139. package/src/Strategy/CellSummaryModule.js +1 -1
  140. package/src/Strategy/CustomSortModule.js +4 -0
  141. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  142. package/src/Strategy/FlashingCellModule.js +6 -0
  143. package/src/Strategy/FormatColumnModule.js +4 -0
  144. package/src/Strategy/FreeTextColumnModule.js +1 -0
  145. package/src/Strategy/LayoutModule.js +6 -5
  146. package/src/Strategy/PlusMinusModule.js +7 -1
  147. package/src/Strategy/QuickSearchModule.js +1 -1
  148. package/src/Strategy/ScheduleModule.js +5 -0
  149. package/src/Strategy/SettingsPanelModule.js +11 -7
  150. package/src/Strategy/ShortcutModule.js +6 -0
  151. package/src/Strategy/SmartEditModule.js +10 -10
  152. package/src/Strategy/TeamSharingModule.js +10 -10
  153. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
  154. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
  155. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
  156. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  157. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
  158. package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
  159. package/src/Utilities/Extensions/StringExtensions.js +17 -0
  160. package/src/Utilities/Helpers/FormatHelper.js +9 -2
  161. package/src/Utilities/Helpers/StyleHelper.js +14 -0
  162. package/src/Utilities/MenuItem.js +18 -0
  163. package/src/Utilities/ObjectFactory.js +16 -3
  164. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  165. package/src/Utilities/Services/AlertService.js +6 -4
  166. package/src/Utilities/Services/AnnotationsService.js +4 -1
  167. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  168. package/src/Utilities/Services/ChartingService.js +1 -0
  169. package/src/Utilities/Services/DataService.js +11 -3
  170. package/src/Utilities/Services/Fdc3Service.js +9 -7
  171. package/src/Utilities/Services/FlashingCellService.js +5 -0
  172. package/src/Utilities/Services/LicenseService/index.js +1 -1
  173. package/src/Utilities/Services/MetamodelService.js +2 -2
  174. package/src/Utilities/Services/ModuleService.js +5 -6
  175. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  176. package/src/Utilities/Services/RowFormService.js +1 -0
  177. package/src/Utilities/Services/RowSummaryService.js +10 -7
  178. package/src/Utilities/Services/TeamSharingService.js +3 -1
  179. package/src/Utilities/Services/ThemeService.js +13 -15
  180. package/src/Utilities/Services/ValidationService.js +2 -1
  181. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  182. package/src/Utilities/logDeprecation.js +3 -4
  183. package/src/Utilities/resolveContainerElement.d.ts +23 -0
  184. package/src/Utilities/resolveContainerElement.js +47 -0
  185. package/src/View/AdaptablePopover/index.d.ts +1 -0
  186. package/src/View/AdaptablePopover/index.js +1 -1
  187. package/src/View/Alert/ActiveAlertsPanel.js +8 -0
  188. package/src/View/Alert/AlertViewPanel.js +13 -9
  189. package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
  190. package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
  191. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
  192. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
  193. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +48 -12
  194. package/src/View/Alert/Wizard/AlertWizard.js +12 -8
  195. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  196. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
  197. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
  198. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  199. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  200. package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
  201. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  202. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  203. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  204. package/src/View/Components/Buttons/ButtonApply.js +1 -1
  205. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  206. package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
  207. package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
  208. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  209. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
  210. package/src/View/Components/CellPopup/index.js +1 -1
  211. package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
  212. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
  213. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
  214. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  215. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
  216. package/src/View/Components/NewScopeComponent.js +3 -3
  217. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  218. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  219. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  220. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  221. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
  222. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
  223. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  224. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +35 -0
  225. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
  226. package/src/View/Components/StyleComponent.d.ts +1 -0
  227. package/src/View/Components/StyleComponent.js +94 -24
  228. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  229. package/src/View/Components/WizardSummaryPage.js +1 -1
  230. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  231. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +40 -14
  232. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  233. package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
  234. package/src/View/Dashboard/CustomToolbar.js +1 -1
  235. package/src/View/Dashboard/DashboardPopup.js +4 -5
  236. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
  237. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  238. package/src/View/Export/ExportDestinationPicker.js +1 -1
  239. package/src/View/Export/ExportStatusBar.js +4 -2
  240. package/src/View/Export/ExportViewPanel.js +25 -18
  241. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
  242. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -15
  243. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
  244. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  245. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
  246. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  247. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -11
  248. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  249. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
  250. package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
  251. package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
  252. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
  253. package/src/View/Layout/LayoutViewPanel.js +1 -1
  254. package/src/View/Layout/TransposedPopup.js +144 -138
  255. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  256. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  257. package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
  258. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
  259. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
  260. package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
  261. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  262. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
  263. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
  264. package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
  265. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
  266. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
  267. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
  268. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
  269. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
  270. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
  271. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
  272. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
  273. package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
  274. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  275. package/src/View/StateManagement/handleExportState.js +1 -1
  276. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  277. package/src/View/Theme/ThemePopup.js +13 -16
  278. package/src/View/UIHelper.d.ts +4 -1
  279. package/src/View/UIHelper.js +24 -14
  280. package/src/agGrid/Adaptable.js +15 -11
  281. package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
  282. package/src/agGrid/AdaptableAgGrid.js +257 -111
  283. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  284. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  285. package/src/agGrid/AdaptableLogger.js +10 -0
  286. package/src/agGrid/AgGridAdapter.js +19 -9
  287. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
  288. package/src/agGrid/AgGridColumnAdapter.js +20 -22
  289. package/src/agGrid/AgGridExportAdapter.js +15 -14
  290. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  291. package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
  292. package/src/agGrid/AgGridMenuAdapter.js +10 -1
  293. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  294. package/src/agGrid/AgGridOptionsService.js +3 -0
  295. package/src/agGrid/AgGridThemeAdapter.js +4 -2
  296. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  297. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  298. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  299. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  300. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  301. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  302. package/src/agGrid/index.d.ts +6 -0
  303. package/src/agGrid/index.js +6 -0
  304. package/src/components/CheckBox/index.js +1 -1
  305. package/src/components/ColorPicker/ColorPicker.js +5 -4
  306. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  307. package/src/components/Datepicker/index.js +1 -1
  308. package/src/components/Dropdown/Arrows.js +1 -1
  309. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  310. package/src/components/ExpressionEditor/EditorInput.js +19 -3
  311. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
  312. package/src/components/FormLayout/index.js +1 -1
  313. package/src/components/OverlayTrigger/index.js +1 -1
  314. package/src/components/Select/Select.js +78 -15
  315. package/src/components/Tree/TreeDropdown/index.js +2 -2
  316. package/src/components/overlayBaseZIndex.js +1 -1
  317. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  318. package/src/devTools/index.js +54 -53
  319. package/src/env.js +2 -2
  320. package/src/layout-manager/src/LMEmitter.js +11 -11
  321. package/src/layout-manager/src/LMLogger.js +7 -0
  322. package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
  323. package/src/layout-manager/src/index.js +81 -58
  324. package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
  325. package/src/metamodel/adaptable.metamodel.d.ts +177 -8
  326. package/src/metamodel/adaptable.metamodel.js +1 -1
  327. package/src/migration/AdaptableUpgradeHelper.js +8 -3
  328. package/src/migration/VersionUpgrade.js +1 -0
  329. package/src/migration/VersionUpgrade17.js +5 -6
  330. package/src/migration/VersionUpgrade20.js +4 -4
  331. package/src/migration/VersionUpgrade22.d.ts +21 -0
  332. package/src/migration/VersionUpgrade22.js +191 -0
  333. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  334. package/src/types.d.ts +9 -7
  335. package/themes/dark.css +30 -30
  336. package/themes/light.css +4 -2
  337. package/tsconfig.cjs.tsbuildinfo +1 -1
  338. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
  339. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
  340. package/src/View/Alert/AlertEntityRow.d.ts +0 -11
  341. package/src/View/Alert/AlertEntityRow.js +0 -33
  342. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
  343. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
  344. package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
  345. package/src/View/Components/Buttons/ButtonFunction.js +0 -13
  346. package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
  347. package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
  348. package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
  349. package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
  350. package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
  351. package/src/View/Components/Buttons/ButtonShow.js +0 -12
  352. package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
  353. package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
  354. package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
  355. package/src/View/Components/Buttons/ButtonUndo.js +0 -12
  356. package/src/View/Components/ExpressionWizard.d.ts +0 -24
  357. package/src/View/Components/ExpressionWizard.js +0 -82
  358. package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
  359. package/src/View/Components/FilterForm/Waiting.js +0 -19
  360. package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
  361. package/src/View/Components/Panels/PanelFooter.js +0 -14
  362. package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
  363. package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
  364. package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
  365. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
  366. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
  367. package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
  368. package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
  369. package/src/View/Components/WizardSummaryRow.d.ts +0 -9
  370. package/src/View/Components/WizardSummaryRow.js +0 -16
  371. package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
  372. package/src/View/CustomSort/CustomSortSummary.js +0 -110
  373. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
  374. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
  375. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
  376. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
  377. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
  378. package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
  379. package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
  380. package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
  381. package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
  382. package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
  383. package/src/View/Filter/FilterSummary.d.ts +0 -18
  384. package/src/View/Filter/FilterSummary.js +0 -53
  385. package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
  386. package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
  387. package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
  388. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
  389. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
  390. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
  391. package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
  392. package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
  393. package/src/View/Wizard/WizardLegend.d.ts +0 -12
  394. package/src/View/Wizard/WizardLegend.js +0 -28
  395. /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
@@ -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;
@@ -42,6 +42,7 @@ const InternalRedux = tslib_1.__importStar(require("../ActionsReducers/InternalR
42
42
  const TeamSharingRedux = tslib_1.__importStar(require("../ActionsReducers/TeamSharingRedux"));
43
43
  const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
44
44
  const ToolPanelRedux = tslib_1.__importStar(require("../ActionsReducers/ToolPanelRedux"));
45
+ const UserInterfaceRedux = tslib_1.__importStar(require("../ActionsReducers/UserInterfaceRedux"));
45
46
  const devTools_1 = require("../../devTools");
46
47
  const TeamSharingState_1 = require("../../AdaptableState/TeamSharingState");
47
48
  const buildAdaptableStateFunctionConfig_1 = require("./buildAdaptableStateFunctionConfig");
@@ -72,6 +73,23 @@ const LoadState = (State) => ({
72
73
  });
73
74
  exports.LoadState = LoadState;
74
75
  class AdaptableStore {
76
+ TheStore;
77
+ Load;
78
+ emitter;
79
+ storageEngine;
80
+ currentStorageState;
81
+ previousStorageState;
82
+ loadStorageInProgress = false;
83
+ loadStateOnStartup = true; // set to false if you want no state
84
+ on = (eventName, callback) => {
85
+ return this.emitter.on(eventName, callback);
86
+ };
87
+ onAny = (callback) => {
88
+ return this.emitter.onAny(callback);
89
+ };
90
+ emit = (eventName, data) => {
91
+ return this.emitter.emit(eventName, data);
92
+ };
75
93
  /**
76
94
  *
77
95
  * @param adaptable The Adaptable instance
@@ -81,49 +99,6 @@ class AdaptableStore {
81
99
  /*
82
100
  This is the main store for Adaptable State
83
101
  */
84
- this.loadStorageInProgress = false;
85
- this.loadStateOnStartup = true; // set to false if you want no state
86
- this.on = (eventName, callback) => {
87
- return this.emitter.on(eventName, callback);
88
- };
89
- this.onAny = (callback) => {
90
- return this.emitter.onAny(callback);
91
- };
92
- this.emit = (eventName, data) => {
93
- return this.emitter.emit(eventName, data);
94
- };
95
- this.loadStore = (config) => {
96
- const { adaptable, adaptableStateKey, initialState, postLoadHook } = config;
97
- const postProcessState = postLoadHook ?? ((state) => state);
98
- this.storageEngine.setStateKey(adaptableStateKey);
99
- // START STATE LOAD
100
- this.loadStorageInProgress = true;
101
- return (this.Load = this.storageEngine
102
- .load(adaptable, initialState)
103
- .then((storedState) => {
104
- if (storedState && this.loadStateOnStartup) {
105
- this.TheStore.dispatch((0, exports.LoadState)(postProcessState(adaptable.adaptableOptions.stateOptions.applyState(storedState, (0, buildAdaptableStateFunctionConfig_1.buildAdaptableStateFunctionConfig)(adaptable)))));
106
- }
107
- })
108
- .then(() => {
109
- this.TheStore.dispatch((0, exports.InitState)());
110
- // END STATE LOAD
111
- this.loadStorageInProgress = false;
112
- }, (e) => {
113
- adaptable.api.consoleError('Failed to load previous Adaptable State : ', e);
114
- //for now i'm still initializing Adaptable even if loading state has failed....
115
- //we may revisit that later
116
- this.TheStore.dispatch((0, exports.InitState)());
117
- // END STATE LOAD
118
- this.loadStorageInProgress = false;
119
- this.TheStore.dispatch(PopupRedux.PopupShowAlert({
120
- alertType: 'generic',
121
- header: 'Configuration',
122
- message: 'Error loading your configuration:' + e,
123
- alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
124
- }));
125
- }));
126
- };
127
102
  let rootReducerObject = {
128
103
  // Reducers for Non-Persisted State
129
104
  Popup: PopupRedux.PopupReducer,
@@ -153,6 +128,7 @@ class AdaptableStore {
153
128
  TeamSharing: TeamSharingRedux.TeamSharingReducer,
154
129
  Theme: ThemeRedux.ThemeReducer,
155
130
  ToolPanel: ToolPanelRedux.ToolPanelReducer,
131
+ UserInterface: UserInterfaceRedux.UserInterfaceReducer,
156
132
  };
157
133
  // allow plugins to participate in the root reducer
158
134
  adaptable.forPlugins((plugin) => {
@@ -268,6 +244,38 @@ class AdaptableStore {
268
244
  }
269
245
  return Promise.resolve(true);
270
246
  }
247
+ loadStore = (config) => {
248
+ const { adaptable, adaptableStateKey, initialState, postLoadHook } = config;
249
+ const postProcessState = postLoadHook ?? ((state) => state);
250
+ this.storageEngine.setStateKey(adaptableStateKey);
251
+ // START STATE LOAD
252
+ this.loadStorageInProgress = true;
253
+ return (this.Load = this.storageEngine
254
+ .load(adaptable, initialState)
255
+ .then((storedState) => {
256
+ if (storedState && this.loadStateOnStartup) {
257
+ this.TheStore.dispatch((0, exports.LoadState)(postProcessState(adaptable.adaptableOptions.stateOptions.applyState(storedState, (0, buildAdaptableStateFunctionConfig_1.buildAdaptableStateFunctionConfig)(adaptable)))));
258
+ }
259
+ })
260
+ .then(() => {
261
+ this.TheStore.dispatch((0, exports.InitState)());
262
+ // END STATE LOAD
263
+ this.loadStorageInProgress = false;
264
+ }, (e) => {
265
+ adaptable.api.consoleError('Failed to load saved Adaptable state.', e);
266
+ //for now i'm still initializing Adaptable even if loading state has failed....
267
+ //we may revisit that later
268
+ this.TheStore.dispatch((0, exports.InitState)());
269
+ // END STATE LOAD
270
+ this.loadStorageInProgress = false;
271
+ this.TheStore.dispatch(PopupRedux.PopupShowAlert({
272
+ alertType: 'generic',
273
+ header: 'Configuration',
274
+ message: 'Failed to load your configuration: ' + e,
275
+ alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
276
+ }));
277
+ }));
278
+ };
271
279
  }
272
280
  exports.AdaptableStore = AdaptableStore;
273
281
  function createDevToolsActionMarkerMiddleware(adaptable) {
@@ -582,6 +590,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
582
590
  * Action: We set up all columns again
583
591
  */
584
592
  case QuickSearchRedux.QUICK_SEARCH_SET_CELL_MATCHING_STYLE:
593
+ case FormatColumnRedux.FORMAT_COLUMN_ADD_BATCH:
585
594
  case FormatColumnRedux.FORMAT_COLUMN_ADD:
586
595
  case FormatColumnRedux.FORMAT_COLUMN_EDIT:
587
596
  case FormatColumnRedux.FORMAT_COLUMN_DELETE:
@@ -746,6 +755,27 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
746
755
  });
747
756
  return ret;
748
757
  }
758
+ case InternalRedux.HIGHLIGHT_COLUMN_ADD: {
759
+ const actionTyped = action;
760
+ const ret = next(action);
761
+ const columnHighlightInfo = actionTyped.columnHighlightInfo;
762
+ adaptable.api.gridApi.refreshColumn(columnHighlightInfo.columnId);
763
+ return ret;
764
+ }
765
+ case InternalRedux.HIGHLIGHT_COLUMN_DELETE: {
766
+ const actionTyped = action;
767
+ const ret = next(action);
768
+ adaptable.api.gridApi.refreshColumn(actionTyped.columnId);
769
+ return ret;
770
+ }
771
+ case InternalRedux.HIGHLIGHT_COLUMN_DELETE_ALL: {
772
+ const columnHighlightInfos = middlewareAPI.getState().Internal.ColumnHighlightInfo;
773
+ const ret = next(action);
774
+ columnHighlightInfos.forEach((columnHighlightInfo) => {
775
+ adaptable.api.gridApi.refreshColumn(columnHighlightInfo.columnId);
776
+ });
777
+ return ret;
778
+ }
749
779
  case InternalRedux.HIGHLIGHT_ROW_ADD: {
750
780
  const actionTyped = action;
751
781
  const ret = next(action);
@@ -971,6 +1001,31 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
971
1001
  module.setUpScheduleJobs();
972
1002
  return returnAction;
973
1003
  }
1004
+ /*******************
1005
+ * USER INTERFACE ACTIONS
1006
+ *******************/
1007
+ case UserInterfaceRedux.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI: {
1008
+ const returnAction = next(action);
1009
+ const { hideAdaptableUI } = action;
1010
+ // Hide or show Dashboard
1011
+ middlewareAPI.dispatch(DashboardRedux.DashboardSetIsHidden(hideAdaptableUI));
1012
+ // Hide or show Adaptable ToolPanel in the AG Grid sidebar
1013
+ if (hideAdaptableUI) {
1014
+ adaptable.hideAdaptableToolPanel();
1015
+ }
1016
+ else {
1017
+ adaptable.showAdaptableToolPanel();
1018
+ }
1019
+ // Hide or show Adaptable StatusBar panels
1020
+ if (hideAdaptableUI) {
1021
+ adaptable.hideAdaptableStatusBar();
1022
+ }
1023
+ else {
1024
+ adaptable.showAdaptableStatusBar();
1025
+ }
1026
+ // Column and Context Menus are handled in the AgGridMenuAdapter
1027
+ return returnAction;
1028
+ }
974
1029
  /*******************
975
1030
  * DASHBOARD ACTIONS
976
1031
  *******************/
@@ -1293,7 +1348,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1293
1348
  const alert = {
1294
1349
  alertType: 'generic',
1295
1350
  header: 'Team Sharing',
1296
- message: "Couldn't get shared items: " + error.message,
1351
+ message: 'Failed to retrieve shared items: ' + error.message,
1297
1352
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1298
1353
  };
1299
1354
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1363,7 +1418,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1363
1418
  const alert = {
1364
1419
  alertType: 'generic',
1365
1420
  header: 'Team Sharing',
1366
- message: `Couldn't share ${adaptable.ModuleService.getModuleFriendlyName(Module)}, there is already an existing active share for it: ${existingActiveSharedEntity.Description}`,
1421
+ message: `Cannot share ${adaptable.ModuleService.getModuleFriendlyName(Module)} an active share already exists: ${existingActiveSharedEntity.Description}.`,
1367
1422
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1368
1423
  };
1369
1424
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1387,7 +1442,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1387
1442
  const alert = {
1388
1443
  alertType: 'generic',
1389
1444
  header: 'Team Sharing',
1390
- message: `${adaptable.ModuleService.getModuleFriendlyName(Module)} Shared Successfully`,
1445
+ message: `${adaptable.ModuleService.getModuleFriendlyName(Module)} shared successfully.`,
1391
1446
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Success'),
1392
1447
  };
1393
1448
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1398,7 +1453,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1398
1453
  const alert = {
1399
1454
  alertType: 'generic',
1400
1455
  header: 'Team Sharing',
1401
- message: "Couldn't share item: " + error.message,
1456
+ message: 'Failed to share item: ' + error.message,
1402
1457
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1403
1458
  };
1404
1459
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1423,10 +1478,11 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1423
1478
  if (sharedEntityDependants.length) {
1424
1479
  const alert = {
1425
1480
  alertType: 'generic',
1426
- header: `Cannot remove the shared item as it is referenced in:`,
1427
- message: sharedEntityDependants
1428
- .map((sharedEntity) => `${adaptable.ModuleService.getModuleFriendlyName(sharedEntity.Module)} ${sharedEntity.Description}`)
1429
- .join('\n'),
1481
+ header: 'Team Sharing',
1482
+ message: 'Cannot remove this shared item. It is referenced by: ' +
1483
+ sharedEntityDependants
1484
+ .map((sharedEntity) => `${adaptable.ModuleService.getModuleFriendlyName(sharedEntity.Module)} ${sharedEntity.Description}`)
1485
+ .join(', '),
1430
1486
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Warning'),
1431
1487
  };
1432
1488
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1443,7 +1499,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1443
1499
  const alert = {
1444
1500
  alertType: 'generic',
1445
1501
  header: 'Team Sharing',
1446
- message: "Couldn't remove item: " + error.message,
1502
+ message: 'Failed to remove shared item: ' + error.message,
1447
1503
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1448
1504
  };
1449
1505
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1465,8 +1521,8 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1465
1521
  !adaptable.api.optionsApi.getTeamSharingOptions().suppressOverrideConfigWarning) {
1466
1522
  let confirmation = {
1467
1523
  CancelButtonText: 'Cancel Import',
1468
- Header: 'Overwriting Existing Object',
1469
- Msg: 'This import will overwrite an existing object in your State. Do you wish to continue?',
1524
+ Header: 'Overwrite Existing Item',
1525
+ Msg: 'This import will overwrite an existing item in your configuration. Do you wish to continue?',
1470
1526
  ConfirmButtonText: 'Import',
1471
1527
  CancelAction: null,
1472
1528
  ConfirmAction: processImportAction,
@@ -1512,7 +1568,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1512
1568
  const alert = {
1513
1569
  alertType: 'generic',
1514
1570
  header: 'Team Sharing',
1515
- message: `Item Successfully Imported`,
1571
+ message: 'Item imported successfully.',
1516
1572
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Success'),
1517
1573
  };
1518
1574
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1552,7 +1608,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1552
1608
  const alert = {
1553
1609
  alertType: 'generic',
1554
1610
  header: 'Team Sharing',
1555
- message: "Couldn't update active item: " + error.message,
1611
+ message: 'Failed to update shared item: ' + error.message,
1556
1612
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1557
1613
  };
1558
1614
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1573,7 +1629,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1573
1629
  const alert = {
1574
1630
  alertType: 'generic',
1575
1631
  header: 'Team Sharing',
1576
- message: "Couldn't check for updates: " + error.message,
1632
+ message: 'Failed to check for updates: ' + error.message,
1577
1633
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1578
1634
  };
1579
1635
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -8,6 +8,10 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
8
8
  * Base class for all strategies and does most of the work of creating menus
9
9
  */
10
10
  class AdaptableModuleBase {
11
+ api;
12
+ moduleInfo;
13
+ AccessLevel;
14
+ agGridModuleDepsInfo;
11
15
  constructor(module, friendlyName, glyph, popup, description, api) {
12
16
  this.api = api;
13
17
  this.moduleInfo = {
@@ -20,6 +20,7 @@ const getAlertBehaviourViewItems_1 = require("./Utilities/Alert/getAlertBehaviou
20
20
  const getAlertPreviewViewItems_1 = require("./Utilities/Alert/getAlertPreviewViewItems");
21
21
  const getAlertTypeViewItems_1 = require("./Utilities/Alert/getAlertTypeViewItems");
22
22
  class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
+ isListeningToCellDataChanges;
23
24
  constructor(api) {
24
25
  super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
25
26
  this.isListeningToCellDataChanges = false;
@@ -186,6 +187,10 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
186
187
  const alertType = (0, getAlertType_1.getAlertType)(alert);
187
188
  return {
188
189
  items: [
190
+ {
191
+ name: 'Name',
192
+ values: [alert.Name],
193
+ },
189
194
  (0, getAlertTypeViewItems_1.getAlertTypeViewItems)(alert),
190
195
  alertType === 'DataChange' && {
191
196
  ...(0, getScopeViewItems_1.getScopeViewItems)(alert.Scope, this.api),
@@ -43,8 +43,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
43
43
  IsValid: false,
44
44
  Alert: {
45
45
  alertType: 'generic',
46
- header: 'Bulk Update Error',
47
- message: 'Cannot edit while Grid is in Pivot Mode.',
46
+ header: 'Bulk Update',
47
+ message: 'Editing is not available in Pivot Mode.',
48
48
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
49
49
  },
50
50
  };
@@ -54,8 +54,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
54
54
  IsValid: false,
55
55
  Alert: {
56
56
  alertType: 'generic',
57
- header: 'Bulk Update Error',
58
- message: 'No cells are selected.\nPlease select some cells.',
57
+ header: 'Bulk Update',
58
+ message: 'No cells selected. Please select one or more cells to continue.',
59
59
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
60
60
  },
61
61
  };
@@ -65,8 +65,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
65
65
  IsValid: false,
66
66
  Alert: {
67
67
  alertType: 'generic',
68
- header: 'Bulk Update Error',
69
- message: 'Bulk Update only supports single column edit.\nPlease adjust cell selection.',
68
+ header: 'Bulk Update',
69
+ message: 'Bulk Update supports editing a single column at a time. Please adjust your selection.',
70
70
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
71
71
  },
72
72
  };
@@ -78,8 +78,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
78
78
  IsValid: false,
79
79
  Alert: {
80
80
  alertType: 'generic',
81
- header: 'Bulk Update Error',
82
- message: 'Bulk Update is not permitted on readonly cells.\nPlease adjust the cell selection.',
81
+ header: 'Bulk Update',
82
+ message: 'Bulk Update is not available for read-only cells. Please adjust your selection.',
83
83
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
84
84
  },
85
85
  };
@@ -11,6 +11,7 @@ const getCalculatedColumnSettingsTags_1 = require("../View/CalculatedColumn/Util
11
11
  const getExpressionViewItems_1 = require("../Utilities/getExpressionViewItems");
12
12
  const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
13
13
  class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
14
+ isListeningToCellDataChanges;
14
15
  constructor(api) {
15
16
  super(ModuleConstants.CalculatedColumnModuleId, ModuleConstants.CalculatedColumnFriendlyName, 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
16
17
  this.isListeningToCellDataChanges = false;
@@ -12,9 +12,9 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
12
12
  * Module that provides Cell Summaries on numeric columns
13
13
  */
14
14
  class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
+ cachedCellSummary = new WeakMap();
15
16
  constructor(api) {
16
17
  super(ModuleConstants.CellSummaryModuleId, ModuleConstants.CellSummaryFriendlyName, 'cells', 'CellSummaryPopup', 'See summary information on a group of numeric cells using multiple summary operations', api);
17
- this.cachedCellSummary = new WeakMap();
18
18
  }
19
19
  getViewAccessLevel() {
20
20
  return 'Full';
@@ -51,6 +51,10 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
51
51
  toView(customSort) {
52
52
  return {
53
53
  items: [
54
+ {
55
+ name: 'Name',
56
+ values: [customSort.Name],
57
+ },
54
58
  (0, getCustomSortColumnViewItems_1.getCustomSortColumnViewItems)(customSort, this.api),
55
59
  (0, getCustomSortSortOrderViewItems_1.getCustomSortSortOrderViewItems)(customSort),
56
60
  (0, getObjectTagsViewItems_1.getObjectTagsViewItems)(customSort, this.api),
@@ -6,6 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/DataChangeHistoryStatusBarContent");
8
8
  class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
+ isListeningToCellDataChanges;
9
10
  constructor(api) {
10
11
  super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'target', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
11
12
  this.isListeningToCellDataChanges = false;
@@ -16,6 +16,7 @@ const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWi
16
16
  const getFlashingCellDurationViewItems_1 = require("./Utilities/FlashingCell/getFlashingCellDurationViewItems");
17
17
  const AdaptableLogger_1 = require("../agGrid/AdaptableLogger");
18
18
  class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
+ isListeningToCellDataChanges;
19
20
  constructor(api) {
20
21
  super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'lightning', 'FlashingAlert', 'Flash cells when they change', api);
21
22
  this.isListeningToCellDataChanges = false;
@@ -185,6 +186,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
185
186
  }
186
187
  return [
187
188
  this.createMenuItemReduxAction('flashing-cell-add', 'Add Flashing Cell', this.moduleInfo.Glyph, FlashingCellRedux.FlashingCellDefinitionAdd({
189
+ Name: `Any Change [${column.columnId}]`,
188
190
  Scope: {
189
191
  ColumnIds: [column.columnId],
190
192
  },
@@ -250,6 +252,10 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
250
252
  toView(flashingCell) {
251
253
  return {
252
254
  items: [
255
+ {
256
+ name: 'Name',
257
+ values: [flashingCell.Name],
258
+ },
253
259
  { ...(0, getScopeViewItems_1.getScopeViewItems)(flashingCell.Scope, this.api), label: 'Trigger' },
254
260
  {
255
261
  ...(0, getRuleViewItems_1.getRuleViewItems)(flashingCell.Rule, this.api),
@@ -86,6 +86,10 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
86
86
  return {
87
87
  abObject: formatColumn,
88
88
  items: [
89
+ {
90
+ name: 'Name',
91
+ values: [formatColumn.Name],
92
+ },
89
93
  (0, getScopeViewItems_1.getScopeViewItems)(formatColumn.Scope, this.api),
90
94
  (0, getFormatColumnSettingsTargetItems_1.getFormatColumnSettingsTargetItems)(formatColumn),
91
95
  formatColumn.Rule && (0, getRuleViewItems_1.getRuleViewItems)(formatColumn.Rule, this.api),
@@ -9,6 +9,7 @@ const FreeTextColumnWizard_1 = require("../View/FreeTextColumn/Wizard/FreeTextCo
9
9
  const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
10
10
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
11
11
  class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
+ isListeningToCellDataChanges;
12
13
  constructor(api) {
13
14
  super(ModuleConstants.FreeTextColumnModuleId, ModuleConstants.FreeTextColumnFriendlyName, 'horizontal-lines', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
14
15
  this.isListeningToCellDataChanges = false;
@@ -21,9 +21,10 @@ const getGridFilterPreview_1 = require("../View/Layout/Wizard/getGridFilterPrevi
21
21
  const RowSummaryService_1 = require("../Utilities/Services/RowSummaryService");
22
22
  const LayoutHelpers_1 = require("../Api/Implementation/LayoutHelpers");
23
23
  class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
24
+ LayoutState;
25
+ rowSummaryService = new RowSummaryService_1.RowSummaryService(this.api);
24
26
  constructor(api) {
25
27
  super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
26
- this.rowSummaryService = new RowSummaryService_1.RowSummaryService(this.api);
27
28
  }
28
29
  onAdaptableReady() {
29
30
  this.rowSummaryService.onAdaptableReady();
@@ -302,14 +303,14 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
302
303
  }
303
304
  return {
304
305
  items: [
305
- {
306
- name: 'Grid Type',
307
- values: [(0, LayoutHelpers_1.isPivotLayout)(layout) ? 'Pivot' : 'Table'],
308
- },
309
306
  {
310
307
  name: 'Name',
311
308
  values: [layout.Name],
312
309
  },
310
+ {
311
+ name: 'Grid Type',
312
+ values: [(0, LayoutHelpers_1.isPivotLayout)(layout) ? 'Pivot' : 'Table'],
313
+ },
313
314
  /**
314
315
  * Hide pivot columns.
315
316
  *
@@ -15,6 +15,8 @@ const MovePlusMinus_1 = require("../View/PlusMinus/MovePlusMinus");
15
15
  const PlusMinusWizard_1 = require("../View/PlusMinus/Wizard/PlusMinusWizard");
16
16
  const AdaptableLogger_1 = require("../agGrid/AdaptableLogger");
17
17
  class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
18
+ shouldHandleKeyDown;
19
+ adaptable;
18
20
  constructor(api) {
19
21
  super(ModuleConstants.PlusMinusModuleId, ModuleConstants.PlusMinusFriendlyName, 'add-circle', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
20
22
  this.shouldHandleKeyDown = false;
@@ -188,7 +190,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
188
190
  failedMessages.push(failedMessage);
189
191
  }
190
192
  });
191
- this.api.alertApi.showAlertError('Nudge(s) failed rule', failedMessages.toString());
193
+ this.api.alertApi.showAlertError('Plus/Minus', 'One or more nudge values were rejected by validation rules: ' + failedMessages.toString());
192
194
  }
193
195
  }
194
196
  getTeamSharingAction() {
@@ -202,6 +204,10 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
202
204
  return {
203
205
  abObject: plusMinus,
204
206
  items: [
207
+ {
208
+ name: 'Name',
209
+ values: [plusMinus.Name],
210
+ },
205
211
  {
206
212
  name: 'Target',
207
213
  ...(0, getScopeViewItems_1.getScopeViewItems)(plusMinus.Scope, this.api),
@@ -28,7 +28,7 @@ class QuickSearchModule extends AdaptableModuleBase_1.AdaptableModuleBase {
28
28
  // Check for AG Grid QuickFilterModule if running Filter After Quick Search
29
29
  if (api.optionsApi.getQuickSearchOptions().filterGridAfterQuickSearch) {
30
30
  if (!api.internalApi.getAgGridModulesAdapter().isAgGridModuleRegistered('QuickFilterModule')) {
31
- api.consoleError('The AG Grid "GridFilter" Module is required if running Quick Search as Filter; Quick Search will run but no Filters will be applied');
31
+ api.consoleError('Quick Search with filterGridAfterQuickSearch requires the AG Grid "QuickFilterModule". Quick Search will run but grid filters will not be applied.');
32
32
  }
33
33
  }
34
34
  const isServerSideRowModel = agGridApi.getGridOption('rowModelType') === 'serverSide';
@@ -35,6 +35,7 @@ const NodeSchedule = {
35
35
  },
36
36
  };
37
37
  class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
+ scheduleJobs;
38
39
  constructor(api) {
39
40
  super(ModuleConstants.ScheduleModuleId, ModuleConstants.ScheduleFriendlyName, 'schedule', 'SchedulePopup', 'Schedule AdapTable functionality to run at times of your choosing (e.g. run reports)', api);
40
41
  this.scheduleJobs = [];
@@ -135,6 +136,10 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
135
136
  return {
136
137
  abObject: schedule,
137
138
  items: [
139
+ {
140
+ name: 'Name',
141
+ values: [schedule.Name],
142
+ },
138
143
  {
139
144
  name: 'Settings',
140
145
  values: (0, ScheduleSettingsSummary_1.getScheduleSettingsValues)(schedule).map((description) => `${description.label}: ${description.value}`),
@@ -11,15 +11,19 @@ class SettingsPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
11
  super(ModuleConstants.SettingsPanelModuleId, friendlyName, 'settings', null, 'Manage all Adaptable Settings', api);
12
12
  }
13
13
  createColumnMenuItems(column) {
14
- return [
15
- // To do : get the icon and name from settings in case they have changed?
16
- this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
17
- ];
14
+ if (this.isModuleVisible()) {
15
+ return [
16
+ // To do : get the icon and name from settings in case they have changed?
17
+ this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
18
+ ];
19
+ }
18
20
  }
19
21
  createContextMenuItems(menuContext) {
20
- return [
21
- this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
22
- ];
22
+ if (this.isModuleVisible()) {
23
+ return [
24
+ this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
25
+ ];
26
+ }
23
27
  }
24
28
  createModuleMenuItem(source) {
25
29
  if (this.isModuleVisible()) {
@@ -13,6 +13,8 @@ const getShortcutSettingsViewItems_1 = require("./Utilities/Shortcut/getShortcut
13
13
  const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
14
14
  const getScopeViewItems_1 = require("../Utilities/getScopeViewItems");
15
15
  class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
+ shouldHandleKeyDown;
17
+ adaptable;
16
18
  constructor(api) {
17
19
  super(ModuleConstants.ShortcutModuleId, ModuleConstants.ShortcutFriendlyName, 'link', 'ShortcutPopup', 'Set up rules so cells update mathematically when keys are pressed in numeric cells', api);
18
20
  this.shouldHandleKeyDown = false;
@@ -84,6 +86,10 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
84
86
  return {
85
87
  abObject: shortcut,
86
88
  items: [
89
+ {
90
+ name: 'Name',
91
+ values: [shortcut.Name],
92
+ },
87
93
  (0, getScopeViewItems_1.getScopeViewItems)(shortcut.Scope, this.api),
88
94
  (0, getShortcutSettingsViewItems_1.getShortcutSettingsViewItems)(shortcut),
89
95
  (0, getObjectTagsViewItems_1.getObjectTagsViewItems)(shortcut, this.api),