@adaptabletools/adaptable 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 (395) 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 +73 -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/DataUpdateConfig.d.ts +17 -0
  33. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  34. package/src/AdaptableState/Common/NamedObject.js +1 -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 +1 -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 +29 -4
  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 +10 -1
  92. package/src/Api/Implementation/GridApiImpl.js +36 -5
  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 +15 -0
  127. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  128. package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
  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 +21 -0
  133. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  134. package/src/Redux/Store/AdaptableStore.js +121 -64
  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 +18 -17
  155. package/src/Utilities/Constants/DocumentationLinkConstants.js +18 -17
  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 +16 -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 +39 -41
  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 +44 -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 +47 -12
  194. package/src/View/Alert/Wizard/AlertWizard.js +14 -10
  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 +36 -1
  225. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +19 -18
  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 +41 -15
  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 +34 -14
  243. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +14 -10
  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 +20 -9
  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 +23 -14
  280. package/src/agGrid/Adaptable.js +15 -11
  281. package/src/agGrid/AdaptableAgGrid.d.ts +16 -3
  282. package/src/agGrid/AdaptableAgGrid.js +306 -103
  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 +79 -16
  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 +187 -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.esm.tsbuildinfo +1 -1
  338. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -632
  339. package/src/View/Alert/AlertEntityRow.d.ts +0 -11
  340. package/src/View/Alert/AlertEntityRow.js +0 -28
  341. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
  342. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -58
  343. package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
  344. package/src/View/Components/Buttons/ButtonFunction.js +0 -8
  345. package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
  346. package/src/View/Components/Buttons/ButtonGeneral.js +0 -7
  347. package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
  348. package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -5
  349. package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
  350. package/src/View/Components/Buttons/ButtonShow.js +0 -7
  351. package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
  352. package/src/View/Components/Buttons/ButtonShowChart.js +0 -7
  353. package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
  354. package/src/View/Components/Buttons/ButtonUndo.js +0 -7
  355. package/src/View/Components/ExpressionWizard.d.ts +0 -24
  356. package/src/View/Components/ExpressionWizard.js +0 -77
  357. package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
  358. package/src/View/Components/FilterForm/Waiting.js +0 -14
  359. package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
  360. package/src/View/Components/Panels/PanelFooter.js +0 -9
  361. package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
  362. package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -15
  363. package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
  364. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -26
  365. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
  366. package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -45
  367. package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
  368. package/src/View/Components/WizardSummaryRow.d.ts +0 -9
  369. package/src/View/Components/WizardSummaryRow.js +0 -11
  370. package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
  371. package/src/View/CustomSort/CustomSortSummary.js +0 -105
  372. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
  373. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -19
  374. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
  375. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -68
  376. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
  377. package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -68
  378. package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
  379. package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -56
  380. package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
  381. package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -35
  382. package/src/View/Filter/FilterSummary.d.ts +0 -18
  383. package/src/View/Filter/FilterSummary.js +0 -48
  384. package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
  385. package/src/View/FormatColumn/FormatColumnSummary.js +0 -90
  386. package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
  387. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -88
  388. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
  389. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -94
  390. package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
  391. package/src/View/PlusMinus/PlusMinusSummary.js +0 -95
  392. package/src/View/Wizard/WizardLegend.d.ts +0 -12
  393. package/src/View/Wizard/WizardLegend.js +0 -23
  394. /package/src/{View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts → AdaptableState/Common/AdaptableRowContext.js} +0 -0
  395. /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
@@ -3,16 +3,28 @@ import { Tabs } from '../../../components/Tabs';
3
3
  import { Tag } from '../../../components/Tag';
4
4
  import { NewColumnSelector } from '../../Components/ColumnSelector';
5
5
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
6
- import { Box } from '../../../components/Flex';
6
+ import { Box, Flex } from '../../../components/Flex';
7
+ import FormLayout, { FormRow } from '../../../components/FormLayout';
8
+ import Input from '../../../components/Input';
7
9
  export const renderCustomSortColumn = (data) => {
8
10
  const { api } = useOnePageAdaptableWizardContext();
9
11
  return (React.createElement(Box, { className: "twa:text-2 twa:py-2 twa:pr-2" },
10
- "Custom sort column: ",
11
- React.createElement(Tag, null, api.columnApi.getFriendlyNameForColumnId(data.ColumnId))));
12
+ React.createElement(Tag, { className: "twa:mr-2" },
13
+ "Name: ",
14
+ data.Name),
15
+ React.createElement(Tag, null,
16
+ "Column: ",
17
+ api.columnApi.getFriendlyNameForColumnId(data.ColumnId))));
12
18
  };
13
- export const isValidCustomSortColumn = (data) => {
19
+ export const isValidCustomSortColumn = (data, allCustomSorts) => {
20
+ if (!data.Name) {
21
+ return 'A name is required.';
22
+ }
23
+ if (allCustomSorts.some((customSort) => customSort.Name === data.Name && customSort.Uuid !== data.Uuid)) {
24
+ return 'A Custom Sort with this name already exists.';
25
+ }
14
26
  if (!data.ColumnId) {
15
- return 'You have to select a Column for Custom Sort';
27
+ return 'Please select a column for the Custom Sort.';
16
28
  }
17
29
  return true;
18
30
  };
@@ -42,14 +54,28 @@ export const CustomSortColumnWizardSection = (props) => {
42
54
  });
43
55
  });
44
56
  }, []);
45
- return (React.createElement(Tabs, { style: { height: '100%' } },
46
- React.createElement(Tabs.Tab, null, "Column"),
47
- React.createElement(Tabs.Content, null,
48
- React.createElement(NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: (ids) => {
49
- props.onChange({
50
- ...data,
51
- SortedValues: [],
52
- ColumnId: ids[0],
53
- });
54
- }, allowReorder: false }))));
57
+ const onNameChange = (event) => {
58
+ props.onChange({
59
+ ...data,
60
+ Name: event.target.value,
61
+ });
62
+ };
63
+ return (React.createElement(Flex, { flexDirection: "column", style: { height: '100%' } },
64
+ React.createElement(Tabs, { className: "twa:mb-3" },
65
+ React.createElement(Tabs.Tab, null, "Settings"),
66
+ React.createElement(Tabs.Content, null,
67
+ React.createElement(Flex, { flexDirection: "row" },
68
+ React.createElement(FormLayout, { className: "twa:max-w-[300px] twa:w-full" },
69
+ React.createElement(FormRow, { label: "Name" },
70
+ React.createElement(Input, { className: "twa:w-full", "data-name": "custom-sort-name", onChange: onNameChange, value: data?.Name ?? '' })))))),
71
+ React.createElement(Tabs, { style: { flex: 1, minHeight: 0 } },
72
+ React.createElement(Tabs.Tab, null, "Column"),
73
+ React.createElement(Tabs.Content, null,
74
+ React.createElement(NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: (ids) => {
75
+ props.onChange({
76
+ ...data,
77
+ SortedValues: [],
78
+ ColumnId: ids[0],
79
+ });
80
+ }, allowReorder: false })))));
55
81
  };
@@ -11,7 +11,7 @@ import { parseToISO } from '../../../Utilities/Helpers/DateHelper';
11
11
  import { TagList } from '../../../components/Tag';
12
12
  export const isValidCustomSortOrder = (data) => {
13
13
  if (!data.SortedValues || !data.SortedValues.length) {
14
- return 'You have to specify at least one value for Custom Sort order';
14
+ return 'At least one value is required for the Custom Sort order.';
15
15
  }
16
16
  return true;
17
17
  };
@@ -37,14 +37,14 @@ export const CustomSortWizard = (props) => {
37
37
  };
38
38
  return (React.createElement(OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: customSort, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
39
39
  {
40
- isValid: isValidCustomSortColumn,
40
+ isValid: (data) => isValidCustomSortColumn(data, allCustomSorts),
41
41
  renderSummary: renderCustomSortColumn,
42
- details: 'Select a Column for Custom Sort',
42
+ details: 'Enter Name and select a Column for Custom Sort',
43
43
  render: () => {
44
44
  return (React.createElement(Box, { className: "twa:p-2 twa:h-full" },
45
- React.createElement(CustomSortColumnWizardSection, { isNew: props.isNew, onChange: setCustomSort })));
45
+ React.createElement(CustomSortColumnWizardSection, { isNew: props.isNew, onChange: setCustomSort, allCustomSorts: allCustomSorts })));
46
46
  },
47
- title: 'Column',
47
+ title: 'Name & Column',
48
48
  },
49
49
  {
50
50
  title: 'Sort Order',
@@ -75,7 +75,7 @@ export const CustomToolbarCmp = (props) => {
75
75
  const disabled = button.disabled && button.disabled(button, dashboardContext);
76
76
  let buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'outlined';
77
77
  let buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'neutral';
78
- return (React.createElement(AdaptableButtonComponent, { style: { marginLeft: index ? 'var(--ab-space-1)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, className: buttonStyle?.className || '', onClick: () => {
78
+ return (React.createElement(AdaptableButtonComponent, { style: { marginLeft: index ? 'var(--ab-base-space)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, className: buttonStyle?.className || '', onClick: () => {
79
79
  button.onClick ? button.onClick(button, dashboardContext) : null;
80
80
  setTimeout(() => {
81
81
  // mutate state to force a re-rendering
@@ -69,18 +69,17 @@ class DashboardPopupComponent extends React.Component {
69
69
  React.createElement(Flex, { flexDirection: "column", className: "twa:h-full twa:gap-4" },
70
70
  areDashboardSettingsVisible && (React.createElement(React.Fragment, null,
71
71
  React.createElement(Card, null,
72
- React.createElement(Card.Title, { gap: 8 },
73
- "Display Settings",
74
- React.createElement(ToggleButton, { className: "twa:self-end", onChange: (visible) => this.props.onSetDashboardHidden(!visible), checked: !this.props.IsHidden, "data-name": "dashboard-visibility" }, this.props.IsHidden ? 'Hidden' : 'Visible')),
72
+ React.createElement(Card.Title, { gap: 8 }, "Display Settings"),
75
73
  React.createElement(Card.Body, { gap: 2, className: "twa:p-2" },
76
- React.createElement(ToggleButton, { disabled: this.props.IsFloating, className: "twa:w-24", onChange: (expanded) => this.props.onSetDashboardCollapsed(!expanded), checked: !this.props.IsCollapsed, "data-name": "expand-state" }, this.props.IsCollapsed ? 'Collapsed' : 'Expanded'),
74
+ React.createElement(ToggleButton, { className: "twa:w-24", onChange: (visible) => this.props.onSetDashboardHidden(!visible), checked: !this.props.IsHidden, "data-name": "dashboard-visibility" }, this.props.IsHidden ? 'Hidden' : 'Visible'),
75
+ this.props.DashboardState.Tabs?.length > 0 ? (React.createElement(ToggleButton, { disabled: this.props.IsFloating, className: "twa:w-24", onChange: (expanded) => this.props.onSetDashboardCollapsed(!expanded), checked: !this.props.IsCollapsed, "data-name": "expand-state" }, this.props.IsCollapsed ? 'Collapsed' : 'Expanded')) : null,
77
76
  this.props.api.optionsApi.getDashboardOptions().canFloat ? (React.createElement(ToggleButton, { className: "twa:w-24", onChange: (pinned) => this.props.onSetDashboardFloating(!pinned), checked: !this.props.IsFloating, "data-name": "floating" }, this.props.IsFloating ? 'Floating' : 'Pinned')) : null)))),
78
77
  React.createElement(Card, { className: "twa:flex-1 twa:overflow-hidden", gap: 0 },
79
78
  React.createElement(Card.Title, null, "Contents"),
80
79
  React.createElement(Card.Body, { className: "twa:p-2" },
81
80
  React.createElement(Tabs, { className: "twa:flex-1 twa:min-h-0" },
82
81
  React.createElement(Tabs.Tab, { value: "pinned-toolbars" }, "Pinned Toolbars"),
83
- React.createElement(Tabs.Tab, { value: "tabbed-toolbars" }, "Tabbed Toolbars"),
82
+ React.createElement(Tabs.Tab, { value: "tabbed-toolbars" }, "Tabs & Toolbars"),
84
83
  React.createElement(Tabs.Tab, { value: "buttons" }, "Buttons"),
85
84
  React.createElement(Tabs.Content, { value: "pinned-toolbars", className: contentCls },
86
85
  React.createElement(PinnedToolbarsSelector, null)),
@@ -160,6 +160,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, adaptableContainerId, agGr
160
160
  Revision: Date.now(),
161
161
  FormatColumns: [
162
162
  {
163
+ Name: 'Changed At',
163
164
  Scope: {
164
165
  ColumnIds: ['changeInfo.changedAt'],
165
166
  },
@@ -27,7 +27,7 @@ export const DataChangeHistoryViewPanelControl = (props) => {
27
27
  const enabled = changeHistoryMode === 'ACTIVE';
28
28
  const disabled = changeHistoryMode === 'INACTIVE';
29
29
  const suspended = changeHistoryMode === 'SUSPENDED';
30
- const gap = props.gap ?? 'var(--ab-space-1)';
30
+ const gap = props.gap ?? 'var(--ab-base-space)';
31
31
  const buttonsPaddingY = props.buttonsPaddingY ?? 2;
32
32
  const buttonPanel = (React.createElement(Flex, { className: "ab-DataChangeHistoryPanel--button-panel", style: { gap: gap, paddingBlock: buttonsPaddingY } },
33
33
  disabled && (React.createElement(ButtonPlay, { "aria-label": "Enable Data Change History", className: "ab-DataChangeHistoryPanel--button-activate", "data-name": 'data-change-history--button-activate', tooltip: '', onClick: () => onChangeHistoryEnable() })),
@@ -12,7 +12,7 @@ export const ExportDestinationPicker = ({ reportName, reportFormat, viewType, })
12
12
  };
13
13
  const supportedDestinations = exportApi.getSupportedExportDestinations(reportFormat);
14
14
  if (supportedDestinations.length === 0 || supportedDestinations.length === 1) {
15
- return (React.createElement(ButtonExport, { className: clsx(viewType !== 'StatusBar' ? 'twa:mr-[20px]' : undefined, 'twa:pr-0'), onClick: () => handleExport(supportedDestinations[0]), tooltip: "Export Report", disabled: reportName == undefined || reportFormat == undefined }));
15
+ return (React.createElement(ButtonExport, { className: clsx(viewType !== 'StatusBar' ? '' : undefined, ''), onClick: () => handleExport(supportedDestinations[0]), tooltip: "Export Report", disabled: reportName == undefined || reportFormat == undefined }));
16
16
  }
17
17
  const destinationItems = supportedDestinations.map((destination) => ({
18
18
  label: destination,
@@ -4,13 +4,15 @@ import { ReportNameSelector } from './ReportNameSelector';
4
4
  import { ReportFormatSelector } from './ReportFormatSelector';
5
5
  import { ExportDestinationPicker } from './ExportDestinationPicker';
6
6
  import { useAdaptable } from '../AdaptableContext';
7
+ import { Flex } from '../../components/Flex';
7
8
  export const ExportStatusBar = () => {
8
9
  const adaptable = useAdaptable();
9
10
  const exportApi = adaptable.api.exportApi;
10
11
  const currentReportName = useSelector((state) => state.Export.CurrentReport);
11
12
  const currentFormat = useSelector((state) => state.Export.CurrentFormat);
12
13
  return (React.createElement(React.Fragment, null,
13
- React.createElement(ReportNameSelector, { viewType: "StatusBar", size: 'small', reportName: currentReportName, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }),
14
- React.createElement(ReportFormatSelector, { viewType: "StatusBar", size: 'small', reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) }),
14
+ React.createElement(Flex, { className: "twa:gap-1" },
15
+ React.createElement(ReportNameSelector, { viewType: "StatusBar", reportName: currentReportName, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }),
16
+ React.createElement(ReportFormatSelector, { viewType: "StatusBar", reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) })),
15
17
  React.createElement(ExportDestinationPicker, { viewType: "StatusBar", reportName: currentReportName, reportFormat: currentFormat })));
16
18
  };
@@ -15,6 +15,7 @@ import { ReportNameSelector } from './ReportNameSelector';
15
15
  import { ReportFormatSelector } from './ReportFormatSelector';
16
16
  import { ExportDestinationPicker } from './ExportDestinationPicker';
17
17
  import { Flex } from '../../components/Flex';
18
+ import clsx from 'clsx';
18
19
  export const ExportViewPanel = (props) => {
19
20
  const dispatch = useDispatch();
20
21
  const exportApi = props.api.exportApi;
@@ -26,27 +27,33 @@ export const ExportViewPanel = (props) => {
26
27
  const deleteMessage = currentReport
27
28
  ? `Are you sure you want to delete '${currentReport.Name}'?`
28
29
  : 'Are you sure you want to delete this report?';
29
- const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
30
- return (React.createElement(Flex, { flexDirection: "row", className: `ab-${elementType}__Export__panel twa:gap-2`, flexWrap: props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
30
+ const isToolbar = props.viewType === 'Toolbar';
31
+ const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
32
+ return (React.createElement(Flex, { flexDirection: "row", className: clsx(`ab-${elementType}__CellSummary__wrap twa:gap-2 twa:flex-row`, {
33
+ 'twa:min-w-[486px] twa:flex-nowrap': isToolbar,
34
+ 'twa:flex-1 twa:flex-wrap': !isToolbar,
35
+ }) },
31
36
  React.createElement(ReportNameSelector, { viewType: props.viewType, reportName: currentReportName, userReports: userReports, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }),
32
37
  React.createElement(ReportFormatSelector, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) }),
33
38
  React.createElement(Flex, { className: join(accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Export__controls twa:w-full`) },
34
- React.createElement(ExportDestinationPicker, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat }),
35
- React.createElement(ButtonEdit, { onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
36
- action: 'Edit',
37
- source: 'Toolbar',
38
- })), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null, accessLevel: accessLevel }),
39
- React.createElement(ButtonNew, { variant: "text", className: `ab-${elementType}__Export__new`, tone: "neutral", children: null, onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
40
- action: 'New',
41
- source: 'Toolbar',
42
- })), tooltip: "Create New Report", accessLevel: props.accessLevel }),
43
- React.createElement(ButtonDelete, { tooltip: "Delete Report", className: `ab-${elementType}__Export__delete`, disabled: currentReport == null, ConfirmAction: ExportRedux.ReportDelete(currentReport), ConfirmationMsg: deleteMessage, ConfirmationTitle: 'Delete Report', accessLevel: accessLevel }),
44
- props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule, { className: `ab-${elementType}__Export__schedule twa:ml-1`, onClick: () => {
45
- const reportSchedule = ObjectFactory.CreateReportSchedule(currentReportName, currentFormat);
46
- dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ScheduleModuleId, 'SchedulePopup', {
39
+ React.createElement(Flex, { className: "twa:min-w-[44px]" },
40
+ React.createElement(ExportDestinationPicker, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat })),
41
+ React.createElement(Flex, null,
42
+ React.createElement(ButtonEdit, { onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
43
+ action: 'Edit',
44
+ source: 'Toolbar',
45
+ })), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null, accessLevel: accessLevel }),
46
+ React.createElement(ButtonNew, { variant: "text", className: `ab-${elementType}__Export__new`, tone: "neutral", children: null, onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
47
47
  action: 'New',
48
48
  source: 'Toolbar',
49
- value: reportSchedule,
50
- }));
51
- }, tooltip: "Schedule", disabled: currentReport == null, accessLevel: props.accessLevel })))));
49
+ })), tooltip: "Create New Report", accessLevel: props.accessLevel }),
50
+ React.createElement(ButtonDelete, { tooltip: "Delete Report", className: `ab-${elementType}__Export__delete`, disabled: currentReport == null, ConfirmAction: ExportRedux.ReportDelete(currentReport), ConfirmationMsg: deleteMessage, ConfirmationTitle: 'Delete Report', accessLevel: accessLevel }),
51
+ props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule, { className: `ab-${elementType}__Export__schedule`, onClick: () => {
52
+ const reportSchedule = ObjectFactory.CreateReportSchedule(currentReportName, currentFormat);
53
+ dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ScheduleModuleId, 'SchedulePopup', {
54
+ action: 'New',
55
+ source: 'Toolbar',
56
+ value: reportSchedule,
57
+ }));
58
+ }, tooltip: "Schedule", disabled: currentReport == null, accessLevel: props.accessLevel }))))));
52
59
  };
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
- import { FlashingCellDefinition } from '../../../types';
2
+ import { AdaptableApi, FlashingCellDefinition } from '../../../types';
3
3
  type FlashingAlertDurationWizardSectionProps = {
4
4
  readOnly?: boolean;
5
5
  flashingCell?: FlashingCellDefinition;
6
6
  onChange: (data: FlashingCellDefinition) => void;
7
7
  };
8
+ export declare const isSettingsValid: (data: FlashingCellDefinition, api: AdaptableApi) => true | "Name is required" | "A Flashing Cell already exists with that name";
8
9
  export declare const renderFlashingAlertSettingsSummary: (flashingAlert: FlashingCellDefinition) => React.JSX.Element;
9
10
  export declare const FlashingAlertSettingsWizardSection: (props: FlashingAlertDurationWizardSectionProps) => React.JSX.Element;
10
11
  export {};
@@ -2,15 +2,30 @@ import * as React from 'react';
2
2
  import { useRef } from 'react';
3
3
  import Input from '../../../components/Input';
4
4
  import usePrevious from '../../../components/utils/usePrevious';
5
- import Radio from '../../../components/Radio';
6
5
  import { Tabs } from '../../../components/Tabs';
7
6
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
8
7
  import { CodeBlock } from '../../../components/CodeBlock';
9
8
  import FormLayout, { FormRow } from '../../../components/FormLayout';
10
9
  import { CheckBox } from '../../../components/CheckBox';
11
10
  import { Box, Flex } from '../../../components/Flex';
11
+ import { Tag } from '../../../components/Tag';
12
+ import { SummaryText } from '../../Wizard/OnePageAdaptableWizard';
13
+ export const isSettingsValid = (data, api) => {
14
+ if (!data.Name?.trim()) {
15
+ return 'Name is required';
16
+ }
17
+ const allFlashingCells = api.flashingCellApi.getFlashingCellDefinitions();
18
+ const isDuplicateName = allFlashingCells.some((fc) => fc.Name === data.Name && fc.Uuid !== data.Uuid);
19
+ if (isDuplicateName) {
20
+ return 'A Flashing Cell already exists with that name';
21
+ }
22
+ return true;
23
+ };
12
24
  export const renderFlashingAlertSettingsSummary = (flashingAlert) => {
13
25
  return (React.createElement(React.Fragment, null,
26
+ React.createElement(SummaryText, null,
27
+ "Name ",
28
+ React.createElement(Tag, null, flashingAlert.Name || 'Not specified')),
14
29
  React.createElement(Box, { className: "twa:text-2" }, flashingAlert.FlashDuration === 'always' ? (React.createElement(React.Fragment, null, "Flashing is never removed")) : (React.createElement(React.Fragment, null,
15
30
  "Flashing is removed after ",
16
31
  React.createElement(CodeBlock, null, flashingAlert.FlashDuration),
@@ -20,6 +35,12 @@ export const renderFlashingAlertSettingsSummary = (flashingAlert) => {
20
35
  export const FlashingAlertSettingsWizardSection = (props) => {
21
36
  let { data: flashingCell } = useOnePageAdaptableWizardContext();
22
37
  flashingCell = flashingCell ?? props.flashingCell;
38
+ const handleNameChange = (event) => {
39
+ props.onChange({
40
+ ...flashingCell,
41
+ Name: event.target.value,
42
+ });
43
+ };
23
44
  const setDuration = (FlashDuration) => {
24
45
  props.onChange({ ...flashingCell, FlashDuration: FlashDuration });
25
46
  };
@@ -58,23 +79,22 @@ export const FlashingAlertSettingsWizardSection = (props) => {
58
79
  React.createElement(Tabs.Tab, null, "Flashing Cell Settings"),
59
80
  React.createElement(Tabs.Content, null,
60
81
  React.createElement(FormLayout, null,
61
- React.createElement(FormRow, { label: "Duration Type" },
62
- React.createElement(Radio, { "data-name": "duration-type-always", className: "twa:mr-3", checked: duration == 'always', tabIndex: -1, onChange: () => handleTypeChange('always') }, "Always"),
63
- React.createElement(Radio, { "data-name": "duration-type-number", checked: duration !== 'always', tabIndex: -1, onChange: () => handleTypeChange('number') }, "Limited (ms)")),
64
- React.createElement(FormRow, { label: "" },
65
- duration !== 'always' && (React.createElement(Flex, { flexDirection: "row", alignItems: "baseline" },
66
- React.createElement(Box, { className: "twa:text-2 twa:mr-2" }, "After"),
67
- React.createElement(Input, { "data-name": "duration-input", readOnly: props.readOnly, type: "text", name: "value", ref: inputRef, className: "twa:mt-2 twa:mr-1", value: duration, onChange: (event) => {
68
- const value = event.target.value;
69
- setDuration(isNaN(Number(value)) ? 500 : Number(value));
70
- } }),
71
- React.createElement(Box, { className: "twa:text-2" }, "milliseconds"))),
72
- duration === 'always' && (React.createElement(Box, { className: "twa:text-3 twa:h-[43px]" }, "Persists the flashing style indeterminately - can be removed manually"))),
82
+ React.createElement(FormRow, { label: "Name" },
83
+ React.createElement(Input, { "data-name": "flashing-cell-name", className: "twa:flex-1 twa:mr-3", onChange: handleNameChange, placeholder: "Enter Name", value: flashingCell.Name ?? '' })),
73
84
  React.createElement(FormRow, { label: "Flash Target" },
74
85
  React.createElement(CheckBox, { "data-name": "flashing-target", onChange: (checked) => handleTargetChange('cell', checked), className: "twa:mr-3", checked: flashingCell?.FlashTarget === 'cell' ||
75
86
  flashingCell?.FlashTarget?.includes?.('cell'), tabIndex: -1 }, "Cell"),
76
87
  React.createElement(CheckBox, { "data-name": "flashing-target-row", className: "twa:mr-3", onChange: (checked) => handleTargetChange('row', checked), checked: flashingCell?.FlashTarget === 'row' ||
77
88
  flashingCell?.FlashTarget?.includes?.('row'), tabIndex: -1 }, "Row"),
78
89
  React.createElement(CheckBox, { "data-name": "flashing-target-aggFuncCell", onChange: (checked) => handleTargetChange('aggFuncCell', checked), checked: flashingCell?.FlashTarget === 'aggFuncCell' ||
79
- flashingCell?.FlashTarget?.includes?.('aggFuncCell'), tabIndex: -1 }, "Aggregated Function Cell")))))));
90
+ flashingCell?.FlashTarget?.includes?.('aggFuncCell'), tabIndex: -1 }, "Aggregated Function Cell")),
91
+ React.createElement(FormRow, { label: "Duration" },
92
+ React.createElement(Flex, { alignItems: "center" },
93
+ React.createElement(CheckBox, { "data-name": "duration-always", checked: duration === 'always', onChange: (checked) => handleTypeChange(checked ? 'always' : 'number'), className: "twa:mr-4", tabIndex: -1 }, "Always"),
94
+ duration !== 'always' && (React.createElement(React.Fragment, null,
95
+ React.createElement(Input, { "data-name": "duration-input", readOnly: props.readOnly, type: "number", name: "value", ref: inputRef, className: "twa:w-20 twa:mr-2", value: duration, onChange: (event) => {
96
+ const value = event.target.value;
97
+ setDuration(isNaN(Number(value)) ? 500 : Number(value));
98
+ } }),
99
+ React.createElement(Box, { className: "twa:text-2" }, "ms"))))))))));
80
100
  };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useState, useCallback } from 'react';
3
3
  import { OnePageAdaptableWizard, OnePageWizardSummary } from '../../Wizard/OnePageAdaptableWizard';
4
- import { FlashingAlertSettingsWizardSection, renderFlashingAlertSettingsSummary, } from './FlashingCellSettingsWizardSection';
4
+ import { FlashingAlertSettingsWizardSection, renderFlashingAlertSettingsSummary, isSettingsValid, } from './FlashingCellSettingsWizardSection';
5
5
  import { cloneObject } from '../../../Utilities/Helpers/Helper';
6
6
  import { FlashingAlertRulesWizardSection, renderFlashingAlertRulesSummary, } from './FlashingCellRulesWizardSection';
7
7
  import { FlashingAlertStyleWizardSection, renderFlashingAlertStyleSummary, } from './FlashingCellStyleWizardSection';
@@ -17,7 +17,7 @@ import { ObjectTagsWizardSection, renderObjectTagsSummary, } from '../../Wizard/
17
17
  import { Box } from '../../../components/Flex';
18
18
  export const FlashingCellWizard = (props) => {
19
19
  const { api } = useAdaptable();
20
- const [flashingCell, setFlashingCell] = useState(() => {
20
+ const [flashingCell, doSetFlashingCell] = useState(() => {
21
21
  let flashingCell = props.data
22
22
  ? cloneObject(props.data)
23
23
  : ObjectFactory.CreateEmptyFlashingCellDefinition();
@@ -33,9 +33,12 @@ export const FlashingCellWizard = (props) => {
33
33
  }
34
34
  return flashingCell;
35
35
  });
36
+ const setFlashingCell = useCallback((data) => {
37
+ doSetFlashingCell(data);
38
+ }, []);
36
39
  const updateProperty = (propName) => {
37
40
  return (value) => {
38
- setFlashingCell((flashingCell) => {
41
+ doSetFlashingCell((flashingCell) => {
39
42
  flashingCell = { ...flashingCell, [propName]: value };
40
43
  return flashingCell;
41
44
  });
@@ -57,6 +60,14 @@ export const FlashingCellWizard = (props) => {
57
60
  props.onFinishWizard(flashingCell);
58
61
  };
59
62
  return (React.createElement(OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: flashingCell, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
63
+ {
64
+ details: 'Set Name, Duration and Target Properties',
65
+ isValid: isSettingsValid,
66
+ render: () => (React.createElement(Box, { className: "twa:p-2" },
67
+ React.createElement(FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
68
+ renderSummary: renderFlashingAlertSettingsSummary,
69
+ title: 'Settings',
70
+ },
60
71
  {
61
72
  details: 'Specify which data changes should trigger Cell Flashing',
62
73
  isValid: isScopeValid,
@@ -80,13 +91,6 @@ export const FlashingCellWizard = (props) => {
80
91
  renderSummary: renderFlashingAlertStyleSummary,
81
92
  title: 'Flash Styles',
82
93
  },
83
- {
84
- details: 'Set Duration and Target Properties',
85
- render: () => (React.createElement(Box, { className: "twa:p-2" },
86
- React.createElement(FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
87
- renderSummary: renderFlashingAlertSettingsSummary,
88
- title: 'Settings',
89
- },
90
94
  {
91
95
  details: 'Select Flashing Cell Tags',
92
96
  title: 'Tags',
@@ -1,7 +1,7 @@
1
1
  import { isAdaptableRuleValid } from '../../Components/EntityRulesEditor/Utilities';
2
2
  export const isValidFlashingCellRules = (flashingCell, api, context) => {
3
3
  if (!flashingCell.Rule?.Predicates?.length && !flashingCell.Rule.BooleanExpression) {
4
- return 'No Rule defined for Flashing Cell';
4
+ return 'A rule is required for the Flashing Cell.';
5
5
  }
6
6
  const isRuleValid = isAdaptableRuleValid(flashingCell, api, context);
7
7
  if (typeof isRuleValid === 'string') {
@@ -3,16 +3,15 @@ import FormLayout, { FormRow } from '../../../components/FormLayout';
3
3
  import { CheckBox } from '../../../components/CheckBox';
4
4
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
5
5
  import { Tag } from '../../../components/Tag';
6
- import { ToggleGroup } from '../../../components/Toggle/ToggleGroup';
7
- import { Toggle } from '../../../components/Toggle/Toggle';
8
6
  import Radio, { RadioGroup } from '../../../components/Radio';
9
7
  import { Box, Flex } from '../../../components/Flex';
10
- import { Card } from '../../../components/Card';
8
+ import { Tabs } from '../../../components/Tabs';
9
+ import Input from '../../../components/Input';
11
10
  export const renderFormatColumnSettingsSummary = (data) => {
12
11
  return (React.createElement(Box, { className: "twa:p-2" },
13
- React.createElement(Box, null,
14
- "Cell alignment ",
15
- React.createElement(Tag, null, data.CellAlignment ?? 'default')),
12
+ React.createElement(Box, { className: "twa:mt-3" },
13
+ "Name ",
14
+ React.createElement(Tag, null, data.Name)),
16
15
  React.createElement(Box, { className: "twa:mt-3" },
17
16
  "Data Rows ",
18
17
  React.createElement(Tag, null, data.RowScope?.ExcludeDataRows ? 'no' : 'yes')),
@@ -35,12 +34,11 @@ export const renderFormatColumnSettingsSummary = (data) => {
35
34
  };
36
35
  export const FormatColumnSettingsWizardSection = (props) => {
37
36
  const { data } = useOnePageAdaptableWizardContext();
38
- const onCellAlignmentSelectChanged = (CellAlignment) => {
39
- const newData = { ...data, CellAlignment };
40
- if (CellAlignment === null) {
41
- delete newData.CellAlignment;
42
- }
43
- props.onChange(newData);
37
+ const onNameChange = (event) => {
38
+ props.onChange({
39
+ ...data,
40
+ Name: event.target.value,
41
+ });
44
42
  };
45
43
  const onExcludeDataRowsChanged = (ExcludeDataRows) => {
46
44
  props.onChange({
@@ -78,43 +76,40 @@ export const FormatColumnSettingsWizardSection = (props) => {
78
76
  },
79
77
  });
80
78
  };
81
- return (React.createElement(Card, null,
82
- React.createElement(Card.Title, null, "Settings"),
83
- React.createElement(Card.Body, null,
84
- React.createElement(Flex, { flexDirection: "row" },
85
- React.createElement(FormLayout, null,
86
- React.createElement(FormRow, { label: "Cell Alignment" },
87
- React.createElement(ToggleGroup, null,
88
- React.createElement(Toggle, { icon: "align-left", pressed: data.CellAlignment === 'Left', onPressedChange: (pressed) => pressed
89
- ? onCellAlignmentSelectChanged('Left')
90
- : onCellAlignmentSelectChanged(null) }),
91
- React.createElement(Toggle, { icon: "align-center", pressed: data.CellAlignment === 'Center', onPressedChange: (pressed) => pressed
92
- ? onCellAlignmentSelectChanged('Center')
93
- : onCellAlignmentSelectChanged(null) }),
94
- React.createElement(Toggle, { icon: "align-right", pressed: data.CellAlignment === 'Right', onPressedChange: (pressed) => pressed
95
- ? onCellAlignmentSelectChanged('Right')
96
- : onCellAlignmentSelectChanged(null) }))),
97
- data.Target === 'cell' && (React.createElement(React.Fragment, null,
98
- React.createElement(FormRow, { label: "Exclude Data Rows:" },
99
- React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
100
- React.createElement(CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
101
- React.createElement(FormRow, { label: "Exclude Group Rows:" },
102
- React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
103
- React.createElement(CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
104
- React.createElement(FormRow, { label: "Exclude Row Summaries:" },
105
- React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
106
- React.createElement(CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
107
- React.createElement(FormRow, { label: "Exclude Total Rows:" },
108
- React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
109
- React.createElement(CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" }))))),
110
- React.createElement(FormRow, { label: "Apply on Column Group:" },
111
- React.createElement(RadioGroup, { value: data.ColumnGroupScope || 'Both', name: "columnGroupScope", orientation: "horizontal", onRadioChange: (columnGroupScope) => {
112
- props.onChange({
113
- ...data,
114
- ColumnGroupScope: columnGroupScope,
115
- });
116
- } },
117
- React.createElement(Radio, { className: "twa:ml-1", value: "Both" }, "Always"),
118
- React.createElement(Radio, { className: "twa:ml-4", value: "Expanded" }, "Expanded"),
119
- React.createElement(Radio, { className: "twa:ml-4", value: "Collapsed" }, "Collapsed"))))))));
79
+ return (React.createElement(Flex, { flexDirection: "column", style: { height: '100%' } },
80
+ React.createElement(Tabs, { className: "twa:mb-3" },
81
+ React.createElement(Tabs.Tab, null, "Settings"),
82
+ React.createElement(Tabs.Content, null,
83
+ React.createElement(Flex, { flexDirection: "row" },
84
+ React.createElement(FormLayout, { className: "twa:max-w-[300px] twa:w-full" },
85
+ React.createElement(FormRow, { label: "Name" },
86
+ React.createElement(Input, { className: "twa:w-full", "data-name": "format-column-name", onChange: onNameChange, value: data?.Name ?? '' })))))),
87
+ React.createElement(Tabs, null,
88
+ React.createElement(Tabs.Tab, null, "Configuration"),
89
+ React.createElement(Tabs.Content, null,
90
+ React.createElement(Flex, { flexDirection: "row" },
91
+ React.createElement(FormLayout, null,
92
+ data.Target === 'cell' && (React.createElement(React.Fragment, null,
93
+ React.createElement(FormRow, { label: "Exclude Data Rows:" },
94
+ React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
95
+ React.createElement(CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
96
+ React.createElement(FormRow, { label: "Exclude Group Rows:" },
97
+ React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
98
+ React.createElement(CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
99
+ React.createElement(FormRow, { label: "Exclude Row Summaries:" },
100
+ React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
101
+ React.createElement(CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
102
+ React.createElement(FormRow, { label: "Exclude Total Rows:" },
103
+ React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
104
+ React.createElement(CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" }))))),
105
+ React.createElement(FormRow, { label: "Apply on Column Group:" },
106
+ React.createElement(RadioGroup, { value: data.ColumnGroupScope || 'Both', name: "columnGroupScope", orientation: "horizontal", onRadioChange: (columnGroupScope) => {
107
+ props.onChange({
108
+ ...data,
109
+ ColumnGroupScope: columnGroupScope,
110
+ });
111
+ } },
112
+ React.createElement(Radio, { className: "twa:ml-1", value: "Both" }, "Always"),
113
+ React.createElement(Radio, { className: "twa:ml-4", value: "Expanded" }, "When Expanded"),
114
+ React.createElement(Radio, { className: "twa:ml-4", value: "Collapsed" }, "When Collapsed")))))))));
120
115
  };
@@ -8,7 +8,6 @@ export const isFormatColumnStyleValid = (data, api) => {
8
8
  if (data.Style &&
9
9
  UIHelper.IsEmptyStyle(data.Style) &&
10
10
  data.DisplayFormat === undefined &&
11
- data.CellAlignment === undefined &&
12
11
  !api.columnScopeApi.isSingleBooleanColumnScope(data.Scope)) {
13
12
  return 'No format applied';
14
13
  }
@@ -19,7 +18,8 @@ const toStyle = (data) => {
19
18
  ...convertAdaptableStyleToCSS(data.Style ?? {}),
20
19
  borderWidth: data.Style?.BorderColor ? 2 : 0,
21
20
  borderStyle: 'solid',
22
- textAlign: data.CellAlignment ? data.CellAlignment.toLowerCase() : undefined,
21
+ // ToDO abcdefg
22
+ textAlign: data.Style?.Alignment ? data.Style.Alignment.toLowerCase() : undefined,
23
23
  };
24
24
  };
25
25
  export const renderFormatColumnStyleWizardSummary = (data) => {