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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/README.md +4 -6
  2. package/agGrid.d.ts +9 -9
  3. package/agGrid.js +1 -0
  4. package/index.css +1280 -1400
  5. package/index.css.map +1 -1
  6. package/index.d.ts +66 -0
  7. package/index.js +85 -0
  8. package/package.json +3 -3
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +10 -1
  10. package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
  11. package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
  12. package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
  13. package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
  14. package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
  15. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
  16. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  17. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  18. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
  19. package/src/AdaptableState/AdaptableState.d.ts +2 -0
  20. package/src/AdaptableState/AlertState.d.ts +5 -2
  21. package/src/AdaptableState/ChartingState.d.ts +2 -2
  22. package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
  23. package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
  24. package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
  25. package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
  26. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
  27. package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
  28. package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
  29. package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
  30. package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
  31. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
  32. package/src/AdaptableState/Common/ColumnHighlightInfo.js +2 -0
  33. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
  34. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  35. package/src/AdaptableState/Common/NamedObject.js +2 -0
  36. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  37. package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
  38. package/src/AdaptableState/Common/Schedule.d.ts +8 -5
  39. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
  40. package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
  41. package/src/AdaptableState/CustomSortState.d.ts +5 -1
  42. package/src/AdaptableState/DashboardState.d.ts +1 -1
  43. package/src/AdaptableState/ExportState.d.ts +1 -1
  44. package/src/AdaptableState/FlashingCellState.d.ts +6 -2
  45. package/src/AdaptableState/FormatColumnState.d.ts +5 -9
  46. package/src/AdaptableState/InitialState.d.ts +10 -1
  47. package/src/AdaptableState/InternalState.d.ts +2 -0
  48. package/src/AdaptableState/LayoutState.d.ts +7 -3
  49. package/src/AdaptableState/NamedQueryState.d.ts +1 -1
  50. package/src/AdaptableState/PlusMinusState.d.ts +5 -1
  51. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  52. package/src/AdaptableState/ShortcutState.d.ts +5 -1
  53. package/src/AdaptableState/StyledColumnState.d.ts +1 -1
  54. package/src/AdaptableState/ThemeState.d.ts +1 -1
  55. package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
  56. package/src/AdaptableState/UserInterfaceState.js +2 -0
  57. package/src/Api/AlertApi.d.ts +6 -0
  58. package/src/Api/CustomSortApi.d.ts +12 -3
  59. package/src/Api/DataSetApi.d.ts +1 -1
  60. package/src/Api/FlashingCellApi.d.ts +6 -0
  61. package/src/Api/FormatColumnApi.d.ts +10 -4
  62. package/src/Api/GridApi.d.ts +29 -4
  63. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  64. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  65. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
  66. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  67. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  68. package/src/Api/Implementation/ApiBase.js +2 -1
  69. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  70. package/src/Api/Implementation/ChartingApiImpl.js +6 -2
  71. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  72. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  73. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  74. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  75. package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
  76. package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
  77. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  78. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  79. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  80. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  81. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  82. package/src/Api/Implementation/EventApiImpl.js +16 -14
  83. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  84. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  85. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  86. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  87. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  88. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
  89. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
  90. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
  91. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  92. package/src/Api/Implementation/GridApiImpl.d.ts +10 -1
  93. package/src/Api/Implementation/GridApiImpl.js +35 -4
  94. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  95. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  96. package/src/Api/Implementation/LayoutApiImpl.js +5 -1
  97. package/src/Api/Implementation/LayoutHelpers.js +7 -0
  98. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
  99. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  100. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
  101. package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
  102. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  103. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  104. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  105. package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
  106. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  107. package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
  108. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  109. package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
  110. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  111. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  112. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
  113. package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
  114. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  115. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  116. package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
  117. package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
  118. package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
  119. package/src/Api/Internal/LayoutInternalApi.js +1 -1
  120. package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
  121. package/src/Api/LayoutApi.d.ts +6 -0
  122. package/src/Api/PlusMinusApi.d.ts +6 -0
  123. package/src/Api/ScheduleApi.d.ts +6 -0
  124. package/src/Api/ShortcutApi.d.ts +6 -0
  125. package/src/Api/UserInterfaceApi.d.ts +17 -0
  126. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
  127. package/src/Redux/ActionsReducers/FormatColumnRedux.js +17 -1
  128. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  129. package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
  130. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
  131. package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
  132. package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
  133. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +26 -0
  134. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  135. package/src/Redux/Store/AdaptableStore.js +121 -64
  136. package/src/Strategy/AdaptableModuleBase.js +4 -0
  137. package/src/Strategy/AlertModule.js +5 -0
  138. package/src/Strategy/BulkUpdateModule.js +8 -8
  139. package/src/Strategy/CalculatedColumnModule.js +1 -0
  140. package/src/Strategy/CellSummaryModule.js +1 -1
  141. package/src/Strategy/CustomSortModule.js +4 -0
  142. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  143. package/src/Strategy/FlashingCellModule.js +6 -0
  144. package/src/Strategy/FormatColumnModule.js +4 -0
  145. package/src/Strategy/FreeTextColumnModule.js +1 -0
  146. package/src/Strategy/LayoutModule.js +6 -5
  147. package/src/Strategy/PlusMinusModule.js +7 -1
  148. package/src/Strategy/QuickSearchModule.js +1 -1
  149. package/src/Strategy/ScheduleModule.js +5 -0
  150. package/src/Strategy/SettingsPanelModule.js +11 -7
  151. package/src/Strategy/ShortcutModule.js +6 -0
  152. package/src/Strategy/SmartEditModule.js +10 -10
  153. package/src/Strategy/TeamSharingModule.js +10 -10
  154. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
  155. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
  156. package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
  157. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  158. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
  159. package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
  160. package/src/Utilities/Extensions/StringExtensions.js +17 -0
  161. package/src/Utilities/Helpers/FormatHelper.js +9 -2
  162. package/src/Utilities/Helpers/StyleHelper.js +14 -0
  163. package/src/Utilities/MenuItem.js +18 -0
  164. package/src/Utilities/ObjectFactory.js +16 -3
  165. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  166. package/src/Utilities/Services/AlertService.js +6 -4
  167. package/src/Utilities/Services/AnnotationsService.js +4 -1
  168. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  169. package/src/Utilities/Services/ChartingService.js +1 -0
  170. package/src/Utilities/Services/DataService.js +11 -3
  171. package/src/Utilities/Services/Fdc3Service.js +9 -7
  172. package/src/Utilities/Services/FlashingCellService.js +5 -0
  173. package/src/Utilities/Services/LicenseService/index.js +1 -1
  174. package/src/Utilities/Services/MetamodelService.js +2 -2
  175. package/src/Utilities/Services/ModuleService.js +39 -41
  176. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  177. package/src/Utilities/Services/RowFormService.js +1 -0
  178. package/src/Utilities/Services/RowSummaryService.js +10 -7
  179. package/src/Utilities/Services/TeamSharingService.js +3 -1
  180. package/src/Utilities/Services/ThemeService.js +13 -15
  181. package/src/Utilities/Services/ValidationService.js +2 -1
  182. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  183. package/src/Utilities/logDeprecation.js +3 -4
  184. package/src/Utilities/resolveContainerElement.d.ts +23 -0
  185. package/src/Utilities/resolveContainerElement.js +47 -0
  186. package/src/View/AdaptablePopover/index.d.ts +1 -0
  187. package/src/View/AdaptablePopover/index.js +1 -1
  188. package/src/View/Alert/ActiveAlertsPanel.js +8 -0
  189. package/src/View/Alert/AlertViewPanel.js +13 -9
  190. package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
  191. package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
  192. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
  193. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
  194. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +48 -12
  195. package/src/View/Alert/Wizard/AlertWizard.js +12 -8
  196. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  197. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
  198. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
  199. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  200. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  201. package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
  202. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  203. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  204. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  205. package/src/View/Components/Buttons/ButtonApply.js +1 -1
  206. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  207. package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
  208. package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
  209. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  210. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
  211. package/src/View/Components/CellPopup/index.js +1 -1
  212. package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
  213. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
  214. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
  215. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  216. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
  217. package/src/View/Components/NewScopeComponent.js +3 -3
  218. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  219. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  220. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  221. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  222. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
  223. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
  224. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  225. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +35 -0
  226. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
  227. package/src/View/Components/StyleComponent.d.ts +1 -0
  228. package/src/View/Components/StyleComponent.js +94 -24
  229. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  230. package/src/View/Components/WizardSummaryPage.js +1 -1
  231. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  232. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +40 -14
  233. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  234. package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
  235. package/src/View/Dashboard/CustomToolbar.js +1 -1
  236. package/src/View/Dashboard/DashboardPopup.js +4 -5
  237. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
  238. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  239. package/src/View/Export/ExportDestinationPicker.js +1 -1
  240. package/src/View/Export/ExportStatusBar.js +4 -2
  241. package/src/View/Export/ExportViewPanel.js +25 -18
  242. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
  243. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -15
  244. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
  245. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  246. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
  247. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  248. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -11
  249. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  250. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
  251. package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
  252. package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
  253. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
  254. package/src/View/Layout/LayoutViewPanel.js +1 -1
  255. package/src/View/Layout/TransposedPopup.js +144 -138
  256. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  257. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  258. package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
  259. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
  260. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
  261. package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
  262. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  263. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
  264. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
  265. package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
  266. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
  267. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
  268. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
  269. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
  270. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
  271. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
  272. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
  273. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
  274. package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
  275. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  276. package/src/View/StateManagement/handleExportState.js +1 -1
  277. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  278. package/src/View/Theme/ThemePopup.js +13 -16
  279. package/src/View/UIHelper.d.ts +4 -1
  280. package/src/View/UIHelper.js +24 -14
  281. package/src/agGrid/Adaptable.js +15 -11
  282. package/src/agGrid/AdaptableAgGrid.d.ts +16 -3
  283. package/src/agGrid/AdaptableAgGrid.js +306 -103
  284. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  285. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  286. package/src/agGrid/AdaptableLogger.js +10 -0
  287. package/src/agGrid/AgGridAdapter.js +19 -9
  288. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
  289. package/src/agGrid/AgGridColumnAdapter.js +20 -22
  290. package/src/agGrid/AgGridExportAdapter.js +15 -14
  291. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  292. package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
  293. package/src/agGrid/AgGridMenuAdapter.js +10 -1
  294. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  295. package/src/agGrid/AgGridOptionsService.js +3 -0
  296. package/src/agGrid/AgGridThemeAdapter.js +4 -2
  297. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  298. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  299. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  300. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  301. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  302. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  303. package/src/agGrid/index.d.ts +6 -0
  304. package/src/agGrid/index.js +6 -0
  305. package/src/components/CheckBox/index.js +1 -1
  306. package/src/components/ColorPicker/ColorPicker.js +5 -4
  307. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  308. package/src/components/Datepicker/index.js +1 -1
  309. package/src/components/Dropdown/Arrows.js +1 -1
  310. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  311. package/src/components/ExpressionEditor/EditorInput.js +19 -3
  312. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
  313. package/src/components/FormLayout/index.js +1 -1
  314. package/src/components/OverlayTrigger/index.js +1 -1
  315. package/src/components/Select/Select.js +78 -15
  316. package/src/components/Tree/TreeDropdown/index.js +2 -2
  317. package/src/components/overlayBaseZIndex.js +1 -1
  318. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  319. package/src/devTools/index.js +54 -53
  320. package/src/env.js +2 -2
  321. package/src/layout-manager/src/LMEmitter.js +11 -11
  322. package/src/layout-manager/src/LMLogger.js +7 -0
  323. package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
  324. package/src/layout-manager/src/index.js +81 -58
  325. package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
  326. package/src/metamodel/adaptable.metamodel.d.ts +177 -8
  327. package/src/metamodel/adaptable.metamodel.js +1 -1
  328. package/src/migration/AdaptableUpgradeHelper.js +8 -3
  329. package/src/migration/VersionUpgrade.js +1 -0
  330. package/src/migration/VersionUpgrade17.js +5 -6
  331. package/src/migration/VersionUpgrade20.js +4 -4
  332. package/src/migration/VersionUpgrade22.d.ts +21 -0
  333. package/src/migration/VersionUpgrade22.js +191 -0
  334. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  335. package/src/types.d.ts +9 -7
  336. package/themes/dark.css +30 -30
  337. package/themes/light.css +4 -2
  338. package/tsconfig.cjs.tsbuildinfo +1 -1
  339. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
  340. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
  341. package/src/View/Alert/AlertEntityRow.d.ts +0 -11
  342. package/src/View/Alert/AlertEntityRow.js +0 -33
  343. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
  344. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
  345. package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
  346. package/src/View/Components/Buttons/ButtonFunction.js +0 -13
  347. package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
  348. package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
  349. package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
  350. package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
  351. package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
  352. package/src/View/Components/Buttons/ButtonShow.js +0 -12
  353. package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
  354. package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
  355. package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
  356. package/src/View/Components/Buttons/ButtonUndo.js +0 -12
  357. package/src/View/Components/ExpressionWizard.d.ts +0 -24
  358. package/src/View/Components/ExpressionWizard.js +0 -82
  359. package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
  360. package/src/View/Components/FilterForm/Waiting.js +0 -19
  361. package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
  362. package/src/View/Components/Panels/PanelFooter.js +0 -14
  363. package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
  364. package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
  365. package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
  366. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
  367. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
  368. package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
  369. package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
  370. package/src/View/Components/WizardSummaryRow.d.ts +0 -9
  371. package/src/View/Components/WizardSummaryRow.js +0 -16
  372. package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
  373. package/src/View/CustomSort/CustomSortSummary.js +0 -110
  374. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
  375. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
  376. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
  377. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
  378. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
  379. package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
  380. package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
  381. package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
  382. package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
  383. package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
  384. package/src/View/Filter/FilterSummary.d.ts +0 -18
  385. package/src/View/Filter/FilterSummary.js +0 -53
  386. package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
  387. package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
  388. package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
  389. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
  390. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
  391. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
  392. package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
  393. package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
  394. package/src/View/Wizard/WizardLegend.d.ts +0 -12
  395. package/src/View/Wizard/WizardLegend.js +0 -28
  396. /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
@@ -8,16 +8,28 @@ const Tag_1 = require("../../../components/Tag");
8
8
  const ColumnSelector_1 = require("../../Components/ColumnSelector");
9
9
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
10
10
  const Flex_1 = require("../../../components/Flex");
11
+ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
12
+ const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
11
13
  const renderCustomSortColumn = (data) => {
12
14
  const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
13
15
  return (React.createElement(Flex_1.Box, { className: "twa:text-2 twa:py-2 twa:pr-2" },
14
- "Custom sort column: ",
15
- React.createElement(Tag_1.Tag, null, api.columnApi.getFriendlyNameForColumnId(data.ColumnId))));
16
+ React.createElement(Tag_1.Tag, { className: "twa:mr-2" },
17
+ "Name: ",
18
+ data.Name),
19
+ React.createElement(Tag_1.Tag, null,
20
+ "Column: ",
21
+ api.columnApi.getFriendlyNameForColumnId(data.ColumnId))));
16
22
  };
17
23
  exports.renderCustomSortColumn = renderCustomSortColumn;
18
- const isValidCustomSortColumn = (data) => {
24
+ const isValidCustomSortColumn = (data, allCustomSorts) => {
25
+ if (!data.Name) {
26
+ return 'A name is required.';
27
+ }
28
+ if (allCustomSorts.some((customSort) => customSort.Name === data.Name && customSort.Uuid !== data.Uuid)) {
29
+ return 'A Custom Sort with this name already exists.';
30
+ }
19
31
  if (!data.ColumnId) {
20
- return 'You have to select a Column for Custom Sort';
32
+ return 'Please select a column for the Custom Sort.';
21
33
  }
22
34
  return true;
23
35
  };
@@ -48,15 +60,29 @@ const CustomSortColumnWizardSection = (props) => {
48
60
  });
49
61
  });
50
62
  }, []);
51
- return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
52
- React.createElement(Tabs_1.Tabs.Tab, null, "Column"),
53
- React.createElement(Tabs_1.Tabs.Content, null,
54
- React.createElement(ColumnSelector_1.NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: (ids) => {
55
- props.onChange({
56
- ...data,
57
- SortedValues: [],
58
- ColumnId: ids[0],
59
- });
60
- }, allowReorder: false }))));
63
+ const onNameChange = (event) => {
64
+ props.onChange({
65
+ ...data,
66
+ Name: event.target.value,
67
+ });
68
+ };
69
+ return (React.createElement(Flex_1.Flex, { flexDirection: "column", style: { height: '100%' } },
70
+ React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
71
+ React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
72
+ React.createElement(Tabs_1.Tabs.Content, null,
73
+ React.createElement(Flex_1.Flex, { flexDirection: "row" },
74
+ React.createElement(FormLayout_1.default, { className: "twa:max-w-[300px] twa:w-full" },
75
+ React.createElement(FormLayout_1.FormRow, { label: "Name" },
76
+ React.createElement(Input_1.default, { className: "twa:w-full", "data-name": "custom-sort-name", onChange: onNameChange, value: data?.Name ?? '' })))))),
77
+ React.createElement(Tabs_1.Tabs, { style: { flex: 1, minHeight: 0 } },
78
+ React.createElement(Tabs_1.Tabs.Tab, null, "Column"),
79
+ React.createElement(Tabs_1.Tabs.Content, null,
80
+ React.createElement(ColumnSelector_1.NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: (ids) => {
81
+ props.onChange({
82
+ ...data,
83
+ SortedValues: [],
84
+ ColumnId: ids[0],
85
+ });
86
+ }, allowReorder: false })))));
61
87
  };
62
88
  exports.CustomSortColumnWizardSection = CustomSortColumnWizardSection;
@@ -15,7 +15,7 @@ const DateHelper_1 = require("../../../Utilities/Helpers/DateHelper");
15
15
  const Tag_1 = require("../../../components/Tag");
16
16
  const isValidCustomSortOrder = (data) => {
17
17
  if (!data.SortedValues || !data.SortedValues.length) {
18
- return 'You have to specify at least one value for Custom Sort order';
18
+ return 'At least one value is required for the Custom Sort order.';
19
19
  }
20
20
  return true;
21
21
  };
@@ -41,14 +41,14 @@ const CustomSortWizard = (props) => {
41
41
  };
42
42
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: customSort, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
43
43
  {
44
- isValid: CustomSortColumnWizardSection_1.isValidCustomSortColumn,
44
+ isValid: (data) => (0, CustomSortColumnWizardSection_1.isValidCustomSortColumn)(data, allCustomSorts),
45
45
  renderSummary: CustomSortColumnWizardSection_1.renderCustomSortColumn,
46
- details: 'Select a Column for Custom Sort',
46
+ details: 'Enter Name and select a Column for Custom Sort',
47
47
  render: () => {
48
48
  return (React.createElement(Flex_1.Box, { className: "twa:p-2 twa:h-full" },
49
- React.createElement(CustomSortColumnWizardSection_1.CustomSortColumnWizardSection, { isNew: props.isNew, onChange: setCustomSort })));
49
+ React.createElement(CustomSortColumnWizardSection_1.CustomSortColumnWizardSection, { isNew: props.isNew, onChange: setCustomSort, allCustomSorts: allCustomSorts })));
50
50
  },
51
- title: 'Column',
51
+ title: 'Name & Column',
52
52
  },
53
53
  {
54
54
  title: 'Sort Order',
@@ -79,7 +79,7 @@ const CustomToolbarCmp = (props) => {
79
79
  const disabled = button.disabled && button.disabled(button, dashboardContext);
80
80
  let buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'outlined';
81
81
  let buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'neutral';
82
- return (React.createElement(AdaptableButton_1.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: () => {
82
+ return (React.createElement(AdaptableButton_1.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: () => {
83
83
  button.onClick ? button.onClick(button, dashboardContext) : null;
84
84
  setTimeout(() => {
85
85
  // mutate state to force a re-rendering
@@ -73,18 +73,17 @@ class DashboardPopupComponent extends React.Component {
73
73
  React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:h-full twa:gap-4" },
74
74
  areDashboardSettingsVisible && (React.createElement(React.Fragment, null,
75
75
  React.createElement(Card_1.Card, null,
76
- React.createElement(Card_1.Card.Title, { gap: 8 },
77
- "Display Settings",
78
- React.createElement(ToggleButton_1.ToggleButton, { className: "twa:self-end", onChange: (visible) => this.props.onSetDashboardHidden(!visible), checked: !this.props.IsHidden, "data-name": "dashboard-visibility" }, this.props.IsHidden ? 'Hidden' : 'Visible')),
76
+ React.createElement(Card_1.Card.Title, { gap: 8 }, "Display Settings"),
79
77
  React.createElement(Card_1.Card.Body, { gap: 2, className: "twa:p-2" },
80
- React.createElement(ToggleButton_1.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'),
78
+ React.createElement(ToggleButton_1.ToggleButton, { className: "twa:w-24", onChange: (visible) => this.props.onSetDashboardHidden(!visible), checked: !this.props.IsHidden, "data-name": "dashboard-visibility" }, this.props.IsHidden ? 'Hidden' : 'Visible'),
79
+ this.props.DashboardState.Tabs?.length > 0 ? (React.createElement(ToggleButton_1.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,
81
80
  this.props.api.optionsApi.getDashboardOptions().canFloat ? (React.createElement(ToggleButton_1.ToggleButton, { className: "twa:w-24", onChange: (pinned) => this.props.onSetDashboardFloating(!pinned), checked: !this.props.IsFloating, "data-name": "floating" }, this.props.IsFloating ? 'Floating' : 'Pinned')) : null)))),
82
81
  React.createElement(Card_1.Card, { className: "twa:flex-1 twa:overflow-hidden", gap: 0 },
83
82
  React.createElement(Card_1.Card.Title, null, "Contents"),
84
83
  React.createElement(Card_1.Card.Body, { className: "twa:p-2" },
85
84
  React.createElement(Tabs_1.Tabs, { className: "twa:flex-1 twa:min-h-0" },
86
85
  React.createElement(Tabs_1.Tabs.Tab, { value: "pinned-toolbars" }, "Pinned Toolbars"),
87
- React.createElement(Tabs_1.Tabs.Tab, { value: "tabbed-toolbars" }, "Tabbed Toolbars"),
86
+ React.createElement(Tabs_1.Tabs.Tab, { value: "tabbed-toolbars" }, "Tabs & Toolbars"),
88
87
  React.createElement(Tabs_1.Tabs.Tab, { value: "buttons" }, "Buttons"),
89
88
  React.createElement(Tabs_1.Tabs.Content, { value: "pinned-toolbars", className: contentCls },
90
89
  React.createElement(PinnedToolbarsSelector_1.PinnedToolbarsSelector, null)),
@@ -165,6 +165,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, adaptableContainerId, agGr
165
165
  Revision: Date.now(),
166
166
  FormatColumns: [
167
167
  {
168
+ Name: 'Changed At',
168
169
  Scope: {
169
170
  ColumnIds: ['changeInfo.changedAt'],
170
171
  },
@@ -31,7 +31,7 @@ const DataChangeHistoryViewPanelControl = (props) => {
31
31
  const enabled = changeHistoryMode === 'ACTIVE';
32
32
  const disabled = changeHistoryMode === 'INACTIVE';
33
33
  const suspended = changeHistoryMode === 'SUSPENDED';
34
- const gap = props.gap ?? 'var(--ab-space-1)';
34
+ const gap = props.gap ?? 'var(--ab-base-space)';
35
35
  const buttonsPaddingY = props.buttonsPaddingY ?? 2;
36
36
  const buttonPanel = (React.createElement(Flex_1.Flex, { className: "ab-DataChangeHistoryPanel--button-panel", style: { gap: gap, paddingBlock: buttonsPaddingY } },
37
37
  disabled && (React.createElement(ButtonPlay_1.ButtonPlay, { "aria-label": "Enable Data Change History", className: "ab-DataChangeHistoryPanel--button-activate", "data-name": 'data-change-history--button-activate', tooltip: '', onClick: () => onChangeHistoryEnable() })),
@@ -16,7 +16,7 @@ const ExportDestinationPicker = ({ reportName, reportFormat, viewType, }) => {
16
16
  };
17
17
  const supportedDestinations = exportApi.getSupportedExportDestinations(reportFormat);
18
18
  if (supportedDestinations.length === 0 || supportedDestinations.length === 1) {
19
- return (react_1.default.createElement(ButtonExport_1.ButtonExport, { className: (0, clsx_1.default)(viewType !== 'StatusBar' ? 'twa:mr-[20px]' : undefined, 'twa:pr-0'), onClick: () => handleExport(supportedDestinations[0]), tooltip: "Export Report", disabled: reportName == undefined || reportFormat == undefined }));
19
+ return (react_1.default.createElement(ButtonExport_1.ButtonExport, { className: (0, clsx_1.default)(viewType !== 'StatusBar' ? '' : undefined, ''), onClick: () => handleExport(supportedDestinations[0]), tooltip: "Export Report", disabled: reportName == undefined || reportFormat == undefined }));
20
20
  }
21
21
  const destinationItems = supportedDestinations.map((destination) => ({
22
22
  label: destination,
@@ -8,14 +8,16 @@ const ReportNameSelector_1 = require("./ReportNameSelector");
8
8
  const ReportFormatSelector_1 = require("./ReportFormatSelector");
9
9
  const ExportDestinationPicker_1 = require("./ExportDestinationPicker");
10
10
  const AdaptableContext_1 = require("../AdaptableContext");
11
+ const Flex_1 = require("../../components/Flex");
11
12
  const ExportStatusBar = () => {
12
13
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
13
14
  const exportApi = adaptable.api.exportApi;
14
15
  const currentReportName = (0, react_redux_1.useSelector)((state) => state.Export.CurrentReport);
15
16
  const currentFormat = (0, react_redux_1.useSelector)((state) => state.Export.CurrentFormat);
16
17
  return (react_1.default.createElement(react_1.default.Fragment, null,
17
- react_1.default.createElement(ReportNameSelector_1.ReportNameSelector, { viewType: "StatusBar", size: 'small', reportName: currentReportName, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }),
18
- react_1.default.createElement(ReportFormatSelector_1.ReportFormatSelector, { viewType: "StatusBar", size: 'small', reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) }),
18
+ react_1.default.createElement(Flex_1.Flex, { className: "twa:gap-1" },
19
+ react_1.default.createElement(ReportNameSelector_1.ReportNameSelector, { viewType: "StatusBar", reportName: currentReportName, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }),
20
+ react_1.default.createElement(ReportFormatSelector_1.ReportFormatSelector, { viewType: "StatusBar", reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) })),
19
21
  react_1.default.createElement(ExportDestinationPicker_1.ExportDestinationPicker, { viewType: "StatusBar", reportName: currentReportName, reportFormat: currentFormat })));
20
22
  };
21
23
  exports.ExportStatusBar = ExportStatusBar;
@@ -19,6 +19,7 @@ const ReportNameSelector_1 = require("./ReportNameSelector");
19
19
  const ReportFormatSelector_1 = require("./ReportFormatSelector");
20
20
  const ExportDestinationPicker_1 = require("./ExportDestinationPicker");
21
21
  const Flex_1 = require("../../components/Flex");
22
+ const clsx_1 = tslib_1.__importDefault(require("clsx"));
22
23
  const ExportViewPanel = (props) => {
23
24
  const dispatch = (0, react_redux_1.useDispatch)();
24
25
  const exportApi = props.api.exportApi;
@@ -30,28 +31,34 @@ const ExportViewPanel = (props) => {
30
31
  const deleteMessage = currentReport
31
32
  ? `Are you sure you want to delete '${currentReport.Name}'?`
32
33
  : 'Are you sure you want to delete this report?';
33
- const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
34
- return (React.createElement(Flex_1.Flex, { flexDirection: "row", className: `ab-${elementType}__Export__panel twa:gap-2`, flexWrap: props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
34
+ const isToolbar = props.viewType === 'Toolbar';
35
+ const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
36
+ return (React.createElement(Flex_1.Flex, { flexDirection: "row", className: (0, clsx_1.default)(`ab-${elementType}__CellSummary__wrap twa:gap-2 twa:flex-row`, {
37
+ 'twa:min-w-[486px] twa:flex-nowrap': isToolbar,
38
+ 'twa:flex-1 twa:flex-wrap': !isToolbar,
39
+ }) },
35
40
  React.createElement(ReportNameSelector_1.ReportNameSelector, { viewType: props.viewType, reportName: currentReportName, userReports: userReports, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }),
36
41
  React.createElement(ReportFormatSelector_1.ReportFormatSelector, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) }),
37
42
  React.createElement(Flex_1.Flex, { className: (0, join_1.default)(accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Export__controls twa:w-full`) },
38
- React.createElement(ExportDestinationPicker_1.ExportDestinationPicker, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat }),
39
- React.createElement(ButtonEdit_1.ButtonEdit, { onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
40
- action: 'Edit',
41
- source: 'Toolbar',
42
- })), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null, accessLevel: accessLevel }),
43
- React.createElement(ButtonNew_1.ButtonNew, { variant: "text", className: `ab-${elementType}__Export__new`, tone: "neutral", children: null, onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
44
- action: 'New',
45
- source: 'Toolbar',
46
- })), tooltip: "Create New Report", accessLevel: props.accessLevel }),
47
- React.createElement(ButtonDelete_1.ButtonDelete, { tooltip: "Delete Report", className: `ab-${elementType}__Export__delete`, disabled: currentReport == null, ConfirmAction: ExportRedux.ReportDelete(currentReport), ConfirmationMsg: deleteMessage, ConfirmationTitle: 'Delete Report', accessLevel: accessLevel }),
48
- props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule_1.ButtonSchedule, { className: `ab-${elementType}__Export__schedule twa:ml-1`, onClick: () => {
49
- const reportSchedule = ObjectFactory_1.default.CreateReportSchedule(currentReportName, currentFormat);
50
- dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ScheduleModuleId, 'SchedulePopup', {
43
+ React.createElement(Flex_1.Flex, { className: "twa:min-w-[44px]" },
44
+ React.createElement(ExportDestinationPicker_1.ExportDestinationPicker, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat })),
45
+ React.createElement(Flex_1.Flex, null,
46
+ React.createElement(ButtonEdit_1.ButtonEdit, { onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
47
+ action: 'Edit',
48
+ source: 'Toolbar',
49
+ })), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null, accessLevel: accessLevel }),
50
+ React.createElement(ButtonNew_1.ButtonNew, { variant: "text", className: `ab-${elementType}__Export__new`, tone: "neutral", children: null, onClick: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ExportModuleId, props.moduleInfo.Popup, {
51
51
  action: 'New',
52
52
  source: 'Toolbar',
53
- value: reportSchedule,
54
- }));
55
- }, tooltip: "Schedule", disabled: currentReport == null, accessLevel: props.accessLevel })))));
53
+ })), tooltip: "Create New Report", accessLevel: props.accessLevel }),
54
+ React.createElement(ButtonDelete_1.ButtonDelete, { tooltip: "Delete Report", className: `ab-${elementType}__Export__delete`, disabled: currentReport == null, ConfirmAction: ExportRedux.ReportDelete(currentReport), ConfirmationMsg: deleteMessage, ConfirmationTitle: 'Delete Report', accessLevel: accessLevel }),
55
+ props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule_1.ButtonSchedule, { className: `ab-${elementType}__Export__schedule`, onClick: () => {
56
+ const reportSchedule = ObjectFactory_1.default.CreateReportSchedule(currentReportName, currentFormat);
57
+ dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ScheduleModuleId, 'SchedulePopup', {
58
+ action: 'New',
59
+ source: 'Toolbar',
60
+ value: reportSchedule,
61
+ }));
62
+ }, tooltip: "Schedule", disabled: currentReport == null, accessLevel: props.accessLevel }))))));
56
63
  };
57
64
  exports.ExportViewPanel = ExportViewPanel;
@@ -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 {};
@@ -1,20 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlashingAlertSettingsWizardSection = exports.renderFlashingAlertSettingsSummary = void 0;
3
+ exports.FlashingAlertSettingsWizardSection = exports.renderFlashingAlertSettingsSummary = exports.isSettingsValid = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_1 = require("react");
7
7
  const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
8
8
  const usePrevious_1 = tslib_1.__importDefault(require("../../../components/utils/usePrevious"));
9
- const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
10
9
  const Tabs_1 = require("../../../components/Tabs");
11
10
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
12
11
  const CodeBlock_1 = require("../../../components/CodeBlock");
13
12
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
14
13
  const CheckBox_1 = require("../../../components/CheckBox");
15
14
  const Flex_1 = require("../../../components/Flex");
15
+ const Tag_1 = require("../../../components/Tag");
16
+ const OnePageAdaptableWizard_2 = require("../../Wizard/OnePageAdaptableWizard");
17
+ const isSettingsValid = (data, api) => {
18
+ if (!data.Name?.trim()) {
19
+ return 'Name is required';
20
+ }
21
+ const allFlashingCells = api.flashingCellApi.getFlashingCellDefinitions();
22
+ const isDuplicateName = allFlashingCells.some((fc) => fc.Name === data.Name && fc.Uuid !== data.Uuid);
23
+ if (isDuplicateName) {
24
+ return 'A Flashing Cell already exists with that name';
25
+ }
26
+ return true;
27
+ };
28
+ exports.isSettingsValid = isSettingsValid;
16
29
  const renderFlashingAlertSettingsSummary = (flashingAlert) => {
17
30
  return (React.createElement(React.Fragment, null,
31
+ React.createElement(OnePageAdaptableWizard_2.SummaryText, null,
32
+ "Name ",
33
+ React.createElement(Tag_1.Tag, null, flashingAlert.Name || 'Not specified')),
18
34
  React.createElement(Flex_1.Box, { className: "twa:text-2" }, flashingAlert.FlashDuration === 'always' ? (React.createElement(React.Fragment, null, "Flashing is never removed")) : (React.createElement(React.Fragment, null,
19
35
  "Flashing is removed after ",
20
36
  React.createElement(CodeBlock_1.CodeBlock, null, flashingAlert.FlashDuration),
@@ -25,6 +41,12 @@ exports.renderFlashingAlertSettingsSummary = renderFlashingAlertSettingsSummary;
25
41
  const FlashingAlertSettingsWizardSection = (props) => {
26
42
  let { data: flashingCell } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
27
43
  flashingCell = flashingCell ?? props.flashingCell;
44
+ const handleNameChange = (event) => {
45
+ props.onChange({
46
+ ...flashingCell,
47
+ Name: event.target.value,
48
+ });
49
+ };
28
50
  const setDuration = (FlashDuration) => {
29
51
  props.onChange({ ...flashingCell, FlashDuration: FlashDuration });
30
52
  };
@@ -63,24 +85,23 @@ const FlashingAlertSettingsWizardSection = (props) => {
63
85
  React.createElement(Tabs_1.Tabs.Tab, null, "Flashing Cell Settings"),
64
86
  React.createElement(Tabs_1.Tabs.Content, null,
65
87
  React.createElement(FormLayout_1.default, null,
66
- React.createElement(FormLayout_1.FormRow, { label: "Duration Type" },
67
- React.createElement(Radio_1.default, { "data-name": "duration-type-always", className: "twa:mr-3", checked: duration == 'always', tabIndex: -1, onChange: () => handleTypeChange('always') }, "Always"),
68
- React.createElement(Radio_1.default, { "data-name": "duration-type-number", checked: duration !== 'always', tabIndex: -1, onChange: () => handleTypeChange('number') }, "Limited (ms)")),
69
- React.createElement(FormLayout_1.FormRow, { label: "" },
70
- duration !== 'always' && (React.createElement(Flex_1.Flex, { flexDirection: "row", alignItems: "baseline" },
71
- React.createElement(Flex_1.Box, { className: "twa:text-2 twa:mr-2" }, "After"),
72
- React.createElement(Input_1.default, { "data-name": "duration-input", readOnly: props.readOnly, type: "text", name: "value", ref: inputRef, className: "twa:mt-2 twa:mr-1", value: duration, onChange: (event) => {
73
- const value = event.target.value;
74
- setDuration(isNaN(Number(value)) ? 500 : Number(value));
75
- } }),
76
- React.createElement(Flex_1.Box, { className: "twa:text-2" }, "milliseconds"))),
77
- duration === 'always' && (React.createElement(Flex_1.Box, { className: "twa:text-3 twa:h-[43px]" }, "Persists the flashing style indeterminately - can be removed manually"))),
88
+ React.createElement(FormLayout_1.FormRow, { label: "Name" },
89
+ React.createElement(Input_1.default, { "data-name": "flashing-cell-name", className: "twa:flex-1 twa:mr-3", onChange: handleNameChange, placeholder: "Enter Name", value: flashingCell.Name ?? '' })),
78
90
  React.createElement(FormLayout_1.FormRow, { label: "Flash Target" },
79
91
  React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target", onChange: (checked) => handleTargetChange('cell', checked), className: "twa:mr-3", checked: flashingCell?.FlashTarget === 'cell' ||
80
92
  flashingCell?.FlashTarget?.includes?.('cell'), tabIndex: -1 }, "Cell"),
81
93
  React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target-row", className: "twa:mr-3", onChange: (checked) => handleTargetChange('row', checked), checked: flashingCell?.FlashTarget === 'row' ||
82
94
  flashingCell?.FlashTarget?.includes?.('row'), tabIndex: -1 }, "Row"),
83
95
  React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target-aggFuncCell", onChange: (checked) => handleTargetChange('aggFuncCell', checked), checked: flashingCell?.FlashTarget === 'aggFuncCell' ||
84
- flashingCell?.FlashTarget?.includes?.('aggFuncCell'), tabIndex: -1 }, "Aggregated Function Cell")))))));
96
+ flashingCell?.FlashTarget?.includes?.('aggFuncCell'), tabIndex: -1 }, "Aggregated Function Cell")),
97
+ React.createElement(FormLayout_1.FormRow, { label: "Duration" },
98
+ React.createElement(Flex_1.Flex, { alignItems: "center" },
99
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "duration-always", checked: duration === 'always', onChange: (checked) => handleTypeChange(checked ? 'always' : 'number'), className: "twa:mr-4", tabIndex: -1 }, "Always"),
100
+ duration !== 'always' && (React.createElement(React.Fragment, null,
101
+ React.createElement(Input_1.default, { "data-name": "duration-input", readOnly: props.readOnly, type: "number", name: "value", ref: inputRef, className: "twa:w-20 twa:mr-2", value: duration, onChange: (event) => {
102
+ const value = event.target.value;
103
+ setDuration(isNaN(Number(value)) ? 500 : Number(value));
104
+ } }),
105
+ React.createElement(Flex_1.Box, { className: "twa:text-2" }, "ms"))))))))));
85
106
  };
86
107
  exports.FlashingAlertSettingsWizardSection = FlashingAlertSettingsWizardSection;
@@ -21,7 +21,7 @@ const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection"
21
21
  const Flex_1 = require("../../../components/Flex");
22
22
  const FlashingCellWizard = (props) => {
23
23
  const { api } = (0, AdaptableContext_1.useAdaptable)();
24
- const [flashingCell, setFlashingCell] = (0, react_1.useState)(() => {
24
+ const [flashingCell, doSetFlashingCell] = (0, react_1.useState)(() => {
25
25
  let flashingCell = props.data
26
26
  ? (0, Helper_1.cloneObject)(props.data)
27
27
  : ObjectFactory_1.default.CreateEmptyFlashingCellDefinition();
@@ -37,9 +37,12 @@ const FlashingCellWizard = (props) => {
37
37
  }
38
38
  return flashingCell;
39
39
  });
40
+ const setFlashingCell = (0, react_1.useCallback)((data) => {
41
+ doSetFlashingCell(data);
42
+ }, []);
40
43
  const updateProperty = (propName) => {
41
44
  return (value) => {
42
- setFlashingCell((flashingCell) => {
45
+ doSetFlashingCell((flashingCell) => {
43
46
  flashingCell = { ...flashingCell, [propName]: value };
44
47
  return flashingCell;
45
48
  });
@@ -61,6 +64,14 @@ const FlashingCellWizard = (props) => {
61
64
  props.onFinishWizard(flashingCell);
62
65
  };
63
66
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: flashingCell, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
67
+ {
68
+ details: 'Set Name, Duration and Target Properties',
69
+ isValid: FlashingCellSettingsWizardSection_1.isSettingsValid,
70
+ render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
71
+ React.createElement(FlashingCellSettingsWizardSection_1.FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
72
+ renderSummary: FlashingCellSettingsWizardSection_1.renderFlashingAlertSettingsSummary,
73
+ title: 'Settings',
74
+ },
64
75
  {
65
76
  details: 'Specify which data changes should trigger Cell Flashing',
66
77
  isValid: NewScopeComponent_1.isScopeValid,
@@ -84,13 +95,6 @@ const FlashingCellWizard = (props) => {
84
95
  renderSummary: FlashingCellStyleWizardSection_1.renderFlashingAlertStyleSummary,
85
96
  title: 'Flash Styles',
86
97
  },
87
- {
88
- details: 'Set Duration and Target Properties',
89
- render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
90
- React.createElement(FlashingCellSettingsWizardSection_1.FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
91
- renderSummary: FlashingCellSettingsWizardSection_1.renderFlashingAlertSettingsSummary,
92
- title: 'Settings',
93
- },
94
98
  {
95
99
  details: 'Select Flashing Cell Tags',
96
100
  title: 'Tags',
@@ -4,7 +4,7 @@ exports.isValidFlashingCellRules = void 0;
4
4
  const Utilities_1 = require("../../Components/EntityRulesEditor/Utilities");
5
5
  const isValidFlashingCellRules = (flashingCell, api, context) => {
6
6
  if (!flashingCell.Rule?.Predicates?.length && !flashingCell.Rule.BooleanExpression) {
7
- return 'No Rule defined for Flashing Cell';
7
+ return 'A rule is required for the Flashing Cell.';
8
8
  }
9
9
  const isRuleValid = (0, Utilities_1.isAdaptableRuleValid)(flashingCell, api, context);
10
10
  if (typeof isRuleValid === 'string') {
@@ -7,16 +7,15 @@ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayou
7
7
  const CheckBox_1 = require("../../../components/CheckBox");
8
8
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
9
9
  const Tag_1 = require("../../../components/Tag");
10
- const ToggleGroup_1 = require("../../../components/Toggle/ToggleGroup");
11
- const Toggle_1 = require("../../../components/Toggle/Toggle");
12
10
  const Radio_1 = tslib_1.__importStar(require("../../../components/Radio"));
13
11
  const Flex_1 = require("../../../components/Flex");
14
- const Card_1 = require("../../../components/Card");
12
+ const Tabs_1 = require("../../../components/Tabs");
13
+ const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
15
14
  const renderFormatColumnSettingsSummary = (data) => {
16
15
  return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
17
- React.createElement(Flex_1.Box, null,
18
- "Cell alignment ",
19
- React.createElement(Tag_1.Tag, null, data.CellAlignment ?? 'default')),
16
+ React.createElement(Flex_1.Box, { className: "twa:mt-3" },
17
+ "Name ",
18
+ React.createElement(Tag_1.Tag, null, data.Name)),
20
19
  React.createElement(Flex_1.Box, { className: "twa:mt-3" },
21
20
  "Data Rows ",
22
21
  React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeDataRows ? 'no' : 'yes')),
@@ -40,12 +39,11 @@ const renderFormatColumnSettingsSummary = (data) => {
40
39
  exports.renderFormatColumnSettingsSummary = renderFormatColumnSettingsSummary;
41
40
  const FormatColumnSettingsWizardSection = (props) => {
42
41
  const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
43
- const onCellAlignmentSelectChanged = (CellAlignment) => {
44
- const newData = { ...data, CellAlignment };
45
- if (CellAlignment === null) {
46
- delete newData.CellAlignment;
47
- }
48
- props.onChange(newData);
42
+ const onNameChange = (event) => {
43
+ props.onChange({
44
+ ...data,
45
+ Name: event.target.value,
46
+ });
49
47
  };
50
48
  const onExcludeDataRowsChanged = (ExcludeDataRows) => {
51
49
  props.onChange({
@@ -83,44 +81,41 @@ const FormatColumnSettingsWizardSection = (props) => {
83
81
  },
84
82
  });
85
83
  };
86
- return (React.createElement(Card_1.Card, null,
87
- React.createElement(Card_1.Card.Title, null, "Settings"),
88
- React.createElement(Card_1.Card.Body, null,
89
- React.createElement(Flex_1.Flex, { flexDirection: "row" },
90
- React.createElement(FormLayout_1.default, null,
91
- React.createElement(FormLayout_1.FormRow, { label: "Cell Alignment" },
92
- React.createElement(ToggleGroup_1.ToggleGroup, null,
93
- React.createElement(Toggle_1.Toggle, { icon: "align-left", pressed: data.CellAlignment === 'Left', onPressedChange: (pressed) => pressed
94
- ? onCellAlignmentSelectChanged('Left')
95
- : onCellAlignmentSelectChanged(null) }),
96
- React.createElement(Toggle_1.Toggle, { icon: "align-center", pressed: data.CellAlignment === 'Center', onPressedChange: (pressed) => pressed
97
- ? onCellAlignmentSelectChanged('Center')
98
- : onCellAlignmentSelectChanged(null) }),
99
- React.createElement(Toggle_1.Toggle, { icon: "align-right", pressed: data.CellAlignment === 'Right', onPressedChange: (pressed) => pressed
100
- ? onCellAlignmentSelectChanged('Right')
101
- : onCellAlignmentSelectChanged(null) }))),
102
- data.Target === 'cell' && (React.createElement(React.Fragment, null,
103
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
104
- React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
105
- React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
106
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
107
- React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
108
- React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
109
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
110
- React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
111
- React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
112
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Total Rows:" },
113
- React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
114
- React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" }))))),
115
- React.createElement(FormLayout_1.FormRow, { label: "Apply on Column Group:" },
116
- React.createElement(Radio_1.RadioGroup, { value: data.ColumnGroupScope || 'Both', name: "columnGroupScope", orientation: "horizontal", onRadioChange: (columnGroupScope) => {
117
- props.onChange({
118
- ...data,
119
- ColumnGroupScope: columnGroupScope,
120
- });
121
- } },
122
- React.createElement(Radio_1.default, { className: "twa:ml-1", value: "Both" }, "Always"),
123
- React.createElement(Radio_1.default, { className: "twa:ml-4", value: "Expanded" }, "Expanded"),
124
- React.createElement(Radio_1.default, { className: "twa:ml-4", value: "Collapsed" }, "Collapsed"))))))));
84
+ return (React.createElement(Flex_1.Flex, { flexDirection: "column", style: { height: '100%' } },
85
+ React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
86
+ React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
87
+ React.createElement(Tabs_1.Tabs.Content, null,
88
+ React.createElement(Flex_1.Flex, { flexDirection: "row" },
89
+ React.createElement(FormLayout_1.default, { className: "twa:max-w-[300px] twa:w-full" },
90
+ React.createElement(FormLayout_1.FormRow, { label: "Name" },
91
+ React.createElement(Input_1.default, { className: "twa:w-full", "data-name": "format-column-name", onChange: onNameChange, value: data?.Name ?? '' })))))),
92
+ React.createElement(Tabs_1.Tabs, null,
93
+ React.createElement(Tabs_1.Tabs.Tab, null, "Configuration"),
94
+ React.createElement(Tabs_1.Tabs.Content, null,
95
+ React.createElement(Flex_1.Flex, { flexDirection: "row" },
96
+ React.createElement(FormLayout_1.default, null,
97
+ data.Target === 'cell' && (React.createElement(React.Fragment, null,
98
+ React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
99
+ React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
100
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
101
+ React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
102
+ React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
103
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
104
+ React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
105
+ React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
106
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
107
+ React.createElement(FormLayout_1.FormRow, { label: "Exclude Total Rows:" },
108
+ React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
109
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" }))))),
110
+ React.createElement(FormLayout_1.FormRow, { label: "Apply on Column Group:" },
111
+ React.createElement(Radio_1.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_1.default, { className: "twa:ml-1", value: "Both" }, "Always"),
118
+ React.createElement(Radio_1.default, { className: "twa:ml-4", value: "Expanded" }, "When Expanded"),
119
+ React.createElement(Radio_1.default, { className: "twa:ml-4", value: "Collapsed" }, "When Collapsed")))))))));
125
120
  };
126
121
  exports.FormatColumnSettingsWizardSection = FormatColumnSettingsWizardSection;
@@ -13,7 +13,6 @@ const isFormatColumnStyleValid = (data, api) => {
13
13
  if (data.Style &&
14
14
  UIHelper_1.default.IsEmptyStyle(data.Style) &&
15
15
  data.DisplayFormat === undefined &&
16
- data.CellAlignment === undefined &&
17
16
  !api.columnScopeApi.isSingleBooleanColumnScope(data.Scope)) {
18
17
  return 'No format applied';
19
18
  }
@@ -25,7 +24,8 @@ const toStyle = (data) => {
25
24
  ...(0, StyleHelper_1.convertAdaptableStyleToCSS)(data.Style ?? {}),
26
25
  borderWidth: data.Style?.BorderColor ? 2 : 0,
27
26
  borderStyle: 'solid',
28
- textAlign: data.CellAlignment ? data.CellAlignment.toLowerCase() : undefined,
27
+ // ToDO abcdefg
28
+ textAlign: data.Style?.Alignment ? data.Style.Alignment.toLowerCase() : undefined,
29
29
  };
30
30
  };
31
31
  const renderFormatColumnStyleWizardSummary = (data) => {