@adaptabletools/adaptable 22.0.0-canary.1 → 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 (394) hide show
  1. package/agGrid.d.ts +9 -9
  2. package/agGrid.js +1 -0
  3. package/index.css +1280 -1400
  4. package/index.css.map +1 -1
  5. package/index.d.ts +66 -0
  6. package/index.js +73 -0
  7. package/package.json +3 -3
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
  9. package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
  11. package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
  13. package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
  14. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
  15. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  16. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  17. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
  18. package/src/AdaptableState/AdaptableState.d.ts +2 -0
  19. package/src/AdaptableState/AlertState.d.ts +5 -2
  20. package/src/AdaptableState/ChartingState.d.ts +2 -2
  21. package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
  22. package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
  23. package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
  24. package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
  25. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
  26. package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
  27. package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
  28. package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
  29. package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
  30. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
  31. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
  32. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  33. package/src/AdaptableState/Common/NamedObject.js +1 -0
  34. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  35. package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
  36. package/src/AdaptableState/Common/Schedule.d.ts +8 -5
  37. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
  38. package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
  39. package/src/AdaptableState/CustomSortState.d.ts +5 -1
  40. package/src/AdaptableState/DashboardState.d.ts +1 -1
  41. package/src/AdaptableState/ExportState.d.ts +1 -1
  42. package/src/AdaptableState/FlashingCellState.d.ts +6 -2
  43. package/src/AdaptableState/FormatColumnState.d.ts +5 -9
  44. package/src/AdaptableState/InitialState.d.ts +10 -1
  45. package/src/AdaptableState/InternalState.d.ts +2 -0
  46. package/src/AdaptableState/LayoutState.d.ts +7 -3
  47. package/src/AdaptableState/NamedQueryState.d.ts +1 -1
  48. package/src/AdaptableState/PlusMinusState.d.ts +5 -1
  49. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  50. package/src/AdaptableState/ShortcutState.d.ts +5 -1
  51. package/src/AdaptableState/StyledColumnState.d.ts +1 -1
  52. package/src/AdaptableState/ThemeState.d.ts +1 -1
  53. package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
  54. package/src/AdaptableState/UserInterfaceState.js +1 -0
  55. package/src/Api/AlertApi.d.ts +6 -0
  56. package/src/Api/CustomSortApi.d.ts +12 -3
  57. package/src/Api/DataSetApi.d.ts +1 -1
  58. package/src/Api/FlashingCellApi.d.ts +6 -0
  59. package/src/Api/FormatColumnApi.d.ts +10 -4
  60. package/src/Api/GridApi.d.ts +23 -12
  61. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  62. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  63. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
  64. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  65. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  66. package/src/Api/Implementation/ApiBase.js +2 -1
  67. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  68. package/src/Api/Implementation/ChartingApiImpl.js +6 -2
  69. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  70. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  71. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  72. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  73. package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
  74. package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
  75. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  76. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  77. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  78. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  79. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  80. package/src/Api/Implementation/EventApiImpl.js +16 -14
  81. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  82. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  83. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  84. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  85. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  86. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
  87. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
  88. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
  89. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  90. package/src/Api/Implementation/GridApiImpl.d.ts +10 -10
  91. package/src/Api/Implementation/GridApiImpl.js +36 -21
  92. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  93. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  94. package/src/Api/Implementation/LayoutApiImpl.js +5 -1
  95. package/src/Api/Implementation/LayoutHelpers.js +7 -0
  96. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
  97. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  98. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
  99. package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
  100. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  101. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  102. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  103. package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
  104. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  105. package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
  106. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  107. package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
  108. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  109. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  110. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
  111. package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
  112. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  113. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  114. package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
  115. package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
  116. package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
  117. package/src/Api/Internal/LayoutInternalApi.js +1 -1
  118. package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
  119. package/src/Api/LayoutApi.d.ts +6 -0
  120. package/src/Api/PlusMinusApi.d.ts +6 -0
  121. package/src/Api/ScheduleApi.d.ts +6 -0
  122. package/src/Api/ShortcutApi.d.ts +6 -0
  123. package/src/Api/UserInterfaceApi.d.ts +17 -0
  124. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
  125. package/src/Redux/ActionsReducers/FormatColumnRedux.js +15 -0
  126. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  127. package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
  128. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
  129. package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
  130. package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
  131. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +21 -0
  132. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  133. package/src/Redux/Store/AdaptableStore.js +113 -57
  134. package/src/Strategy/AdaptableModuleBase.js +4 -0
  135. package/src/Strategy/AlertModule.js +5 -0
  136. package/src/Strategy/BulkUpdateModule.js +8 -8
  137. package/src/Strategy/CalculatedColumnModule.js +1 -0
  138. package/src/Strategy/CellSummaryModule.js +1 -1
  139. package/src/Strategy/CustomSortModule.js +4 -0
  140. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  141. package/src/Strategy/FlashingCellModule.js +6 -0
  142. package/src/Strategy/FormatColumnModule.js +4 -0
  143. package/src/Strategy/FreeTextColumnModule.js +1 -0
  144. package/src/Strategy/LayoutModule.js +6 -5
  145. package/src/Strategy/PlusMinusModule.js +7 -1
  146. package/src/Strategy/QuickSearchModule.js +1 -1
  147. package/src/Strategy/ScheduleModule.js +5 -0
  148. package/src/Strategy/SettingsPanelModule.js +11 -7
  149. package/src/Strategy/ShortcutModule.js +6 -0
  150. package/src/Strategy/SmartEditModule.js +10 -10
  151. package/src/Strategy/TeamSharingModule.js +10 -10
  152. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
  153. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
  154. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
  155. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  156. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
  157. package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
  158. package/src/Utilities/Extensions/StringExtensions.js +16 -0
  159. package/src/Utilities/Helpers/FormatHelper.js +9 -2
  160. package/src/Utilities/Helpers/StyleHelper.js +14 -0
  161. package/src/Utilities/MenuItem.js +18 -0
  162. package/src/Utilities/ObjectFactory.js +16 -3
  163. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  164. package/src/Utilities/Services/AlertService.js +6 -4
  165. package/src/Utilities/Services/AnnotationsService.js +4 -1
  166. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  167. package/src/Utilities/Services/ChartingService.js +1 -0
  168. package/src/Utilities/Services/DataService.js +11 -3
  169. package/src/Utilities/Services/Fdc3Service.js +9 -7
  170. package/src/Utilities/Services/FlashingCellService.js +5 -0
  171. package/src/Utilities/Services/LicenseService/index.js +1 -1
  172. package/src/Utilities/Services/MetamodelService.js +2 -2
  173. package/src/Utilities/Services/ModuleService.js +5 -6
  174. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  175. package/src/Utilities/Services/RowFormService.js +1 -0
  176. package/src/Utilities/Services/RowSummaryService.js +10 -7
  177. package/src/Utilities/Services/TeamSharingService.js +3 -1
  178. package/src/Utilities/Services/ThemeService.js +13 -15
  179. package/src/Utilities/Services/ValidationService.js +2 -1
  180. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  181. package/src/Utilities/logDeprecation.js +3 -4
  182. package/src/Utilities/resolveContainerElement.d.ts +23 -0
  183. package/src/Utilities/resolveContainerElement.js +44 -0
  184. package/src/View/AdaptablePopover/index.d.ts +1 -0
  185. package/src/View/AdaptablePopover/index.js +1 -1
  186. package/src/View/Alert/ActiveAlertsPanel.js +8 -0
  187. package/src/View/Alert/AlertViewPanel.js +13 -9
  188. package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
  189. package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
  190. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
  191. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
  192. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +47 -12
  193. package/src/View/Alert/Wizard/AlertWizard.js +14 -10
  194. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  195. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
  196. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
  197. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  198. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  199. package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
  200. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  201. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  202. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  203. package/src/View/Components/Buttons/ButtonApply.js +1 -1
  204. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  205. package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
  206. package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
  207. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  208. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
  209. package/src/View/Components/CellPopup/index.js +1 -1
  210. package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
  211. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
  212. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
  213. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  214. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
  215. package/src/View/Components/NewScopeComponent.js +3 -3
  216. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  217. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  218. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  219. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  220. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
  221. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
  222. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  223. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +36 -1
  224. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +19 -18
  225. package/src/View/Components/StyleComponent.d.ts +1 -0
  226. package/src/View/Components/StyleComponent.js +94 -24
  227. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  228. package/src/View/Components/WizardSummaryPage.js +1 -1
  229. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
  230. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +41 -15
  231. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  232. package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
  233. package/src/View/Dashboard/CustomToolbar.js +1 -1
  234. package/src/View/Dashboard/DashboardPopup.js +4 -5
  235. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
  236. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  237. package/src/View/Export/ExportDestinationPicker.js +1 -1
  238. package/src/View/Export/ExportStatusBar.js +4 -2
  239. package/src/View/Export/ExportViewPanel.js +25 -18
  240. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
  241. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +34 -14
  242. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +14 -10
  243. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  244. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
  245. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  246. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -9
  247. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  248. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
  249. package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
  250. package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
  251. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
  252. package/src/View/Layout/LayoutViewPanel.js +1 -1
  253. package/src/View/Layout/TransposedPopup.js +144 -138
  254. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  255. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  256. package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
  257. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
  258. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
  259. package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
  260. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  261. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
  262. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
  263. package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
  264. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
  265. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
  266. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
  267. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
  268. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
  269. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
  270. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
  271. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
  272. package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
  273. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  274. package/src/View/StateManagement/handleExportState.js +1 -1
  275. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  276. package/src/View/Theme/ThemePopup.js +13 -16
  277. package/src/View/UIHelper.d.ts +4 -1
  278. package/src/View/UIHelper.js +23 -14
  279. package/src/agGrid/Adaptable.js +15 -11
  280. package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
  281. package/src/agGrid/AdaptableAgGrid.js +257 -111
  282. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  283. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  284. package/src/agGrid/AdaptableLogger.js +10 -0
  285. package/src/agGrid/AgGridAdapter.js +19 -9
  286. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
  287. package/src/agGrid/AgGridColumnAdapter.js +20 -22
  288. package/src/agGrid/AgGridExportAdapter.js +15 -14
  289. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  290. package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
  291. package/src/agGrid/AgGridMenuAdapter.js +10 -1
  292. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  293. package/src/agGrid/AgGridOptionsService.js +3 -0
  294. package/src/agGrid/AgGridThemeAdapter.js +4 -2
  295. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  296. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  297. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  298. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  299. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  300. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  301. package/src/agGrid/index.d.ts +6 -0
  302. package/src/agGrid/index.js +6 -0
  303. package/src/components/CheckBox/index.js +1 -1
  304. package/src/components/ColorPicker/ColorPicker.js +5 -4
  305. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  306. package/src/components/Datepicker/index.js +1 -1
  307. package/src/components/Dropdown/Arrows.js +1 -1
  308. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  309. package/src/components/ExpressionEditor/EditorInput.js +19 -3
  310. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
  311. package/src/components/FormLayout/index.js +1 -1
  312. package/src/components/OverlayTrigger/index.js +1 -1
  313. package/src/components/Select/Select.js +79 -16
  314. package/src/components/Tree/TreeDropdown/index.js +2 -2
  315. package/src/components/overlayBaseZIndex.js +1 -1
  316. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  317. package/src/devTools/index.js +54 -53
  318. package/src/env.js +2 -2
  319. package/src/layout-manager/src/LMEmitter.js +11 -11
  320. package/src/layout-manager/src/LMLogger.js +7 -0
  321. package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
  322. package/src/layout-manager/src/index.js +81 -58
  323. package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
  324. package/src/metamodel/adaptable.metamodel.d.ts +177 -8
  325. package/src/metamodel/adaptable.metamodel.js +1 -1
  326. package/src/migration/AdaptableUpgradeHelper.js +8 -3
  327. package/src/migration/VersionUpgrade.js +1 -0
  328. package/src/migration/VersionUpgrade17.js +5 -6
  329. package/src/migration/VersionUpgrade20.js +4 -4
  330. package/src/migration/VersionUpgrade22.d.ts +21 -0
  331. package/src/migration/VersionUpgrade22.js +187 -0
  332. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  333. package/src/types.d.ts +9 -7
  334. package/themes/dark.css +30 -30
  335. package/themes/light.css +4 -2
  336. package/tsconfig.esm.tsbuildinfo +1 -1
  337. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -632
  338. package/src/View/Alert/AlertEntityRow.d.ts +0 -11
  339. package/src/View/Alert/AlertEntityRow.js +0 -28
  340. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
  341. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -58
  342. package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
  343. package/src/View/Components/Buttons/ButtonFunction.js +0 -8
  344. package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
  345. package/src/View/Components/Buttons/ButtonGeneral.js +0 -7
  346. package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
  347. package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -5
  348. package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
  349. package/src/View/Components/Buttons/ButtonShow.js +0 -7
  350. package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
  351. package/src/View/Components/Buttons/ButtonShowChart.js +0 -7
  352. package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
  353. package/src/View/Components/Buttons/ButtonUndo.js +0 -7
  354. package/src/View/Components/ExpressionWizard.d.ts +0 -24
  355. package/src/View/Components/ExpressionWizard.js +0 -77
  356. package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
  357. package/src/View/Components/FilterForm/Waiting.js +0 -14
  358. package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
  359. package/src/View/Components/Panels/PanelFooter.js +0 -9
  360. package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
  361. package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -15
  362. package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
  363. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -26
  364. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
  365. package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -45
  366. package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
  367. package/src/View/Components/WizardSummaryRow.d.ts +0 -9
  368. package/src/View/Components/WizardSummaryRow.js +0 -11
  369. package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
  370. package/src/View/CustomSort/CustomSortSummary.js +0 -105
  371. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
  372. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -19
  373. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
  374. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -68
  375. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
  376. package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -68
  377. package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
  378. package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -56
  379. package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
  380. package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -35
  381. package/src/View/Filter/FilterSummary.d.ts +0 -18
  382. package/src/View/Filter/FilterSummary.js +0 -48
  383. package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
  384. package/src/View/FormatColumn/FormatColumnSummary.js +0 -90
  385. package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
  386. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -88
  387. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
  388. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -94
  389. package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
  390. package/src/View/PlusMinus/PlusMinusSummary.js +0 -95
  391. package/src/View/Wizard/WizardLegend.d.ts +0 -12
  392. package/src/View/Wizard/WizardLegend.js +0 -23
  393. /package/src/{View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts → AdaptableState/Common/AdaptableRowContext.js} +0 -0
  394. /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
@@ -1,58 +0,0 @@
1
- import * as React from 'react';
2
- import { connect } from 'react-redux';
3
- import { Helper } from '../../Utilities/Helpers/Helper';
4
- import * as CalculatedColumnRedux from '../../Redux/ActionsReducers/CalculatedColumnRedux';
5
- import { WizardStatus, } from '../Components/SharedProps/EditableConfigEntityState';
6
- import { UIHelper } from '../UIHelper';
7
- import { ModuleDetail } from '../Components/ModuleSummary/ModuleDetail';
8
- import { CalculatedColumnWizard } from './Wizard/CalculatedColumnWizard';
9
- export class CalculatedColumnSummaryComponent extends React.Component {
10
- constructor(props) {
11
- super(props);
12
- this.onFinishWizard = (calculatedColumn) => {
13
- this.props.onEdit(calculatedColumn);
14
- this.setState({
15
- editedAdaptableObject: null,
16
- wizardStartIndex: 0,
17
- wizardStatus: WizardStatus.None,
18
- });
19
- };
20
- this.state = UIHelper.getEmptyConfigState();
21
- }
22
- render() {
23
- let detailRow;
24
- this.props.CalculatedColumns.map((item, index) => {
25
- if (item.ColumnId == this.props.summarisedColumn.columnId) {
26
- detailRow = (React.createElement(ModuleDetail, { key: 'UF' + index, item1: this.props.moduleInfo.FriendlyName, item2: this.props.api.internalApi.getAdaptableQueryExpressionText(item.Query), configEnity: item, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(item), onShare: (config) => this.props.onShare(item, config), onDelete: CalculatedColumnRedux.CalculatedColumnDelete(item), showBold: true, accessLevel: this.props.accessLevel }));
27
- }
28
- });
29
- return (React.createElement("div", null,
30
- detailRow,
31
- this.state.editedAdaptableObject && (React.createElement(CalculatedColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.CalculatedColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
32
- }
33
- onEdit(calculatedColumn) {
34
- this.setState({
35
- editedAdaptableObject: Helper.cloneObject(calculatedColumn),
36
- wizardStartIndex: 0,
37
- wizardStatus: WizardStatus.Edit,
38
- });
39
- }
40
- onCloseWizard() {
41
- this.setState({
42
- editedAdaptableObject: null,
43
- wizardStartIndex: 0,
44
- wizardStatus: WizardStatus.None,
45
- });
46
- }
47
- }
48
- function mapStateToProps(state) {
49
- return {
50
- CalculatedColumns: state.CalculatedColumn.CalculatedColumns,
51
- };
52
- }
53
- function mapDispatchToProps(dispatch) {
54
- return {
55
- onEdit: (calculatedColumn) => dispatch(CalculatedColumnRedux.CalculatedColumnEdit(calculatedColumn)),
56
- };
57
- }
58
- export let CalculatedColumnSummary = connect(mapStateToProps, mapDispatchToProps)(CalculatedColumnSummaryComponent);
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { SimpleButtonProps } from '../../../components/SimpleButton';
3
- export interface ModuleButtonProps extends SimpleButtonProps {
4
- }
5
- export declare class ButtonFunction extends React.Component<ModuleButtonProps, {}> {
6
- render(): React.JSX.Element;
7
- }
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- import { twMerge } from '../../../twMerge';
4
- export class ButtonFunction extends React.Component {
5
- render() {
6
- return (React.createElement(SimpleButton, { "data-name": "function", tooltip: "Module", iconSize: 20, icon: "function", ...this.props, className: twMerge('twa:mr-1', this.props.className) }));
7
- }
8
- }
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { SimpleButtonProps } from '../../../components/SimpleButton';
3
- export declare class ButtonGeneral extends React.Component<SimpleButtonProps, {}> {
4
- render(): React.JSX.Element;
5
- }
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- export class ButtonGeneral extends React.Component {
4
- render() {
5
- return React.createElement(SimpleButton, { tooltip: "", variant: "text", ...this.props });
6
- }
7
- }
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { SimpleButtonProps } from '../../../components/SimpleButton';
3
- declare const _default: (props: SimpleButtonProps) => React.JSX.Element;
4
- export default _default;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- export default (props) => {
4
- return React.createElement(SimpleButton, { ...props, icon: 'delete', variant: "text", "data-name": "preview-delete" });
5
- };
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { SimpleButtonProps } from '../../../components/SimpleButton';
3
- export declare class ButtonShow extends React.Component<SimpleButtonProps, {}> {
4
- render(): React.JSX.Element;
5
- }
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- export class ButtonShow extends React.Component {
4
- render() {
5
- return (React.createElement(SimpleButton, { "data-name": "show", tooltip: "Show", iconSize: 18, icon: "check", variant: "text", ...this.props }));
6
- }
7
- }
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { SimpleButtonProps } from '../../../components/SimpleButton';
3
- export declare class ButtonShowChart extends React.Component<SimpleButtonProps, {}> {
4
- render(): React.JSX.Element;
5
- }
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- export class ButtonShowChart extends React.Component {
4
- render() {
5
- return (React.createElement(SimpleButton, { "data-name": "show-chart", tooltip: "Show Chart", iconSize: 20, icon: "chart", variant: "text", ...this.props }));
6
- }
7
- }
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { SimpleButtonProps } from '../../../components/SimpleButton';
3
- export declare class ButtonUndo extends React.Component<SimpleButtonProps, {}> {
4
- render(): React.JSX.Element;
5
- }
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- export class ButtonUndo extends React.Component {
4
- render() {
5
- return (React.createElement(SimpleButton, { "data-name": "undo", iconSize: 20, tooltip: "Undo", icon: 'undo', variant: "text", ...this.props }));
6
- }
7
- }
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import { AdaptableModule } from '../../AdaptableState/Common/Types';
3
- import { AdaptableWizardStep, AdaptableWizardStepProps } from '../Wizard/Interface/IAdaptableWizard';
4
- export interface ExpressionWizardProps extends AdaptableWizardStepProps<any> {
5
- onSetNewNamedQuery: (newNamedQuery: string) => void;
6
- callingModule?: AdaptableModule;
7
- }
8
- export interface ExpressionWizardState {
9
- expression?: string;
10
- saveToNamedQueries: boolean;
11
- newNamedQuery: string;
12
- }
13
- export declare class ExpressionWizard extends React.Component<ExpressionWizardProps, ExpressionWizardState> implements AdaptableWizardStep {
14
- constructor(props: ExpressionWizardProps);
15
- render(): React.JSX.Element;
16
- isValidExpression(): boolean;
17
- handleCustomExpressionChange: (expression: string) => void;
18
- canNext(): boolean;
19
- canBack(): boolean;
20
- next(): void;
21
- back(): void;
22
- getIndexStepIncrement(): number;
23
- getIndexStepDecrement(): number;
24
- }
@@ -1,77 +0,0 @@
1
- import * as React from 'react';
2
- import { CheckBox } from '../../components/CheckBox';
3
- import { ExpressionEditor } from '../../components/ExpressionEditor';
4
- import Input from '../../components/Input';
5
- import { StringExtensions } from '../../Utilities/Extensions/StringExtensions';
6
- import { NamedQueryModuleId } from '../../Utilities/Constants/ModuleConstants';
7
- import { useMemo } from 'react';
8
- import { Flex } from '../../components/Flex';
9
- export class ExpressionWizard extends React.Component {
10
- constructor(props) {
11
- super(props);
12
- this.handleCustomExpressionChange = (expression) => {
13
- this.setState({
14
- expression,
15
- }, () => this.props.updateGoBackState());
16
- };
17
- this.state = {
18
- // this is realy horrible but its only way to use the Expression Wizard for both Report (that has Query) and Format Column (that has Rule)
19
- // once we move to the new Wizard we can remove this monstrosity
20
- expression: this.props.callingModule && this.props.callingModule == 'Export'
21
- ? this.props.data.Query?.BooleanExpression
22
- : this.props.data.Rule?.BooleanExpression,
23
- saveToNamedQueries: false,
24
- newNamedQuery: '',
25
- };
26
- }
27
- render() {
28
- const initialData = useMemo(() => this.props.api.internalApi.getQueryPreviewData(), []);
29
- return (React.createElement(React.Fragment, null,
30
- React.createElement(ExpressionEditor, { type: 'boolean', module: NamedQueryModuleId, value: this.state.expression, onChange: this.handleCustomExpressionChange, initialData: initialData, columns: this.props.api.columnApi.internalApi.getQueryableColumnsForUIEditor(), fields: this.props.api.expressionApi.internalApi.getAvailableFields(), namedQueries: this.props.api.namedQueryApi.getNamedQueries(), api: this.props.api }),
31
- ' ',
32
- React.createElement(Flex, { flexDirection: "row", className: "twa:p-1 twa:mb-2 twa:ml-1", alignItems: "center", "data-name": "expression-wizard-save-option" },
33
- React.createElement(CheckBox, { className: "twa:ml-2 twa:mb-2", disabled: !this.isValidExpression(), checked: this.state.saveToNamedQueries, onChange: (checked) => this.setState({
34
- saveToNamedQueries: checked,
35
- }, () => this.props.updateGoBackState()) }, "Save as new Named Query"),
36
- this.state.saveToNamedQueries && (React.createElement(Input, { className: "twa:ml-2 twa:min-w-[20rem]", value: this.state.newNamedQuery, onChange: (e) => this.setState({
37
- newNamedQuery: e.target.value,
38
- }, () => this.props.updateGoBackState()) })))));
39
- }
40
- isValidExpression() {
41
- return (StringExtensions.IsNotNullOrEmpty(this.state.expression) &&
42
- this.props.api.internalApi
43
- .getQueryLanguageService()
44
- .validateBoolean(this.state.expression, NamedQueryModuleId).isValid);
45
- }
46
- canNext() {
47
- if (this.isValidExpression() == false) {
48
- return false;
49
- }
50
- if (this.state.saveToNamedQueries && StringExtensions.IsNullOrEmpty(this.state.newNamedQuery)) {
51
- return false;
52
- }
53
- return true;
54
- }
55
- canBack() {
56
- return true;
57
- }
58
- next() {
59
- this.props.callingModule == 'Export'
60
- ? (this.props.data.Query = {
61
- BooleanExpression: this.state.expression,
62
- })
63
- : (this.props.data.Rule = {
64
- BooleanExpression: this.state.expression,
65
- });
66
- if (this.state.saveToNamedQueries) {
67
- this.props.onSetNewNamedQuery(this.state.newNamedQuery);
68
- }
69
- }
70
- back() { }
71
- getIndexStepIncrement() {
72
- return 1;
73
- }
74
- getIndexStepDecrement() {
75
- return 1;
76
- }
77
- }
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- export type WaitingProps = React.ClassAttributes<Waiting> & {
3
- WaitingMessage: string;
4
- } & FlexProps & {
5
- className?: string;
6
- };
7
- import { FlexProps } from '../../../components/Flex';
8
- export declare class Waiting extends React.Component<WaitingProps, {}> {
9
- render(): any;
10
- }
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import IconRefresh from '../../../components/icons/refresh';
3
- import { Flex } from '../../../components/Flex';
4
- import { twMerge } from '../../../twMerge';
5
- export class Waiting extends React.Component {
6
- render() {
7
- const { WaitingMessage, ...props } = this.props;
8
- return (React.createElement(Flex, { flexDirection: "column", ...props, className: twMerge(`twa:my-2`, props.className) },
9
- React.createElement(Flex, { flexDirection: "row", justifyContent: "center" },
10
- React.createElement(IconRefresh, null)),
11
- React.createElement(Flex, { flexDirection: "row", justifyContent: "center" },
12
- React.createElement("h5", null, WaitingMessage))));
13
- }
14
- }
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- export interface PanelFooterProps {
3
- onCancel: () => void;
4
- onAccept: () => void;
5
- cancelDisabled?: boolean;
6
- acceptDisabled?: boolean;
7
- acceptText?: React.ReactElement;
8
- cancelText?: React.ReactElement;
9
- }
10
- export declare const PanelFooter: React.FunctionComponent<PanelFooterProps>;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import SimpleButton from '../../../components/SimpleButton';
3
- import { Flex, Box } from '../../../components/Flex';
4
- export const PanelFooter = (props) => {
5
- return (React.createElement(Flex, { className: "ab-Panel__Footer twa:p-1 twa:bg-primary", flexDirection: "row", alignItems: "center" },
6
- React.createElement(SimpleButton, { className: "twa:m-1", variant: "text", "data-name": "action-cancel", onClick: props.onCancel, disabled: props.cancelDisabled }, props.cancelText ?? 'CANCEL'),
7
- React.createElement(Box, { className: "twa:flex-1" }),
8
- React.createElement(SimpleButton, { variant: "raised", tone: "accent", "data-name": "action-finish", className: "twa:m-1", onClick: props.onAccept, disabled: props.acceptDisabled }, props.cancelText ?? 'Finish')));
9
- };
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { PanelProps } from '../../../components/Panel';
3
- export interface PanelWithTwoButtonsProps extends Omit<PanelProps, 'flex'> {
4
- firstButtonContent?: React.ReactNode;
5
- firstButton?: React.ReactElement<any>;
6
- secondButtonContent?: React.ReactNode;
7
- secondButton?: React.ReactElement<any>;
8
- headerText: string;
9
- }
10
- export declare class PanelWithTwoButtons extends React.Component<PanelWithTwoButtonsProps, {}> {
11
- render(): React.JSX.Element;
12
- }
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import Panel from '../../../components/Panel';
3
- import { Flex } from '../../../components/Flex';
4
- //We cannot destructure this.props using the react way in typescript which is a real pain as you
5
- //need to transfer props individually as a consequence
6
- //let { buttonContent, ...other } = this.props
7
- export class PanelWithTwoButtons extends React.Component {
8
- render() {
9
- let header = (React.createElement(Flex, { alignItems: "center", className: "twa:w-full" },
10
- React.createElement(Flex, { className: "twa:flex-1" }, this.props.headerText),
11
- this.props.secondButton,
12
- this.props.firstButton));
13
- return (React.createElement(Panel, { ...this.props, header: header }, this.props.children));
14
- }
15
- }
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { PanelProps } from '../../../components/Panel';
3
- export interface ToolPanelSettingsPanelProps extends PanelProps {
4
- button: React.ReactElement<any>;
5
- }
6
- export declare class ToolPanelSettingsPanel extends React.Component<ToolPanelSettingsPanelProps, {}> {
7
- render(): React.JSX.Element;
8
- }
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import { Icon } from '../../../components/icons';
3
- import Panel from '../../../components/Panel';
4
- //We cannot destructure this.props using the react way in typescript which is a real pain as you
5
- //need to transfer props individually as a consequence
6
- //let { buttonContent, ...other } = this.props
7
- export class ToolPanelSettingsPanel extends React.Component {
8
- render() {
9
- let header = (React.createElement("span", { style: { verticalAlign: 'middle' } },
10
- ' ',
11
- React.createElement(Icon, { name: 'spanner' }),
12
- " ",
13
- React.createElement("span", null, "Settings"),
14
- this.props.button &&
15
- React.cloneElement(this.props.button, {
16
- style: {
17
- float: 'right',
18
- border: '0px',
19
- background: 'none',
20
- borderRadius: '0px',
21
- boxShadow: 'none',
22
- },
23
- })));
24
- return (React.createElement(Panel, { header: header, style: { margin: '0px', padding: '0px' } }, this.props.children));
25
- }
26
- }
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { SelectionMode } from '../../../AdaptableState/Common/Enums';
3
- import { AdaptableColumn } from '../../../AdaptableState/Common/AdaptableColumn';
4
- export interface ColumnSelectorProps extends React.HTMLProps<ColumnSelector> {
5
- ColumnList: AdaptableColumn[];
6
- SelectedColumnIds: string[];
7
- onColumnChange: (SelectedColumns: AdaptableColumn[]) => void;
8
- SelectionMode: SelectionMode;
9
- className?: string;
10
- placeHolder?: string;
11
- showClearButton?: boolean;
12
- disabled?: boolean;
13
- }
14
- export declare class ColumnSelector extends React.Component<ColumnSelectorProps, {}> {
15
- render(): React.JSX.Element;
16
- onClearButton(): void;
17
- onColumnChange(selected: AdaptableColumn[], isEmptySelection: boolean): void;
18
- }
@@ -1,45 +0,0 @@
1
- import * as React from 'react';
2
- import { StringExtensions } from '../../../Utilities/Extensions/StringExtensions';
3
- import { SortOrder } from '../../../AdaptableState/Common/Enums';
4
- import { ArrayExtensions } from '../../../Utilities/Extensions/ArrayExtensions';
5
- import FormLayout, { FormRow } from '../../../components/FormLayout';
6
- import DropdownButton from '../../../components/DropdownButton';
7
- export class ColumnSelector extends React.Component {
8
- render() {
9
- const sortedColumns = ArrayExtensions.sortArrayWithProperty(SortOrder.Asc, this.props.ColumnList, 'friendlyName');
10
- const selectedColumnIds = this.props.SelectedColumnIds.filter((x) => StringExtensions.IsNotNullOrEmpty(x));
11
- const isEmptySelectedColumnIds = this.props.SelectedColumnIds.filter((x) => StringExtensions.IsNotNullOrEmpty(x)).length == 0;
12
- let sortedColumnOptions = sortedColumns.map((column) => {
13
- return {
14
- label: column.friendlyName,
15
- value: column.columnId,
16
- disabled: this.props.disabled,
17
- onClick: () => {
18
- const selected = sortedColumns.filter((c) => c.columnId === column.columnId);
19
- if (!selected.length) {
20
- this.onClearButton();
21
- }
22
- else {
23
- this.onColumnChange(selected, isEmptySelectedColumnIds);
24
- }
25
- },
26
- };
27
- });
28
- let currentColumnName = selectedColumnIds.length > 0
29
- ? this.props.ColumnList.find((c) => c.columnId == selectedColumnIds[0])?.friendlyName
30
- : 'Select a column';
31
- return (React.createElement("div", { "data-name": 'column-selector' },
32
- React.createElement(FormLayout, { columns: [{ name: 'columnSelector', style: { display: 'flex' } }], style: this.props.style },
33
- React.createElement(FormRow, null,
34
- React.createElement(DropdownButton, { className: "twa:w-full twa:text-0 twa:mr-2", columns: ['label'], showClearButton: currentColumnName != 'Select a column', onClear: () => this.onClearButton(), items: sortedColumnOptions, disabled: this.props.disabled || sortedColumnOptions.length == 0 }, currentColumnName)))));
35
- }
36
- onClearButton() {
37
- this.props.onColumnChange([]);
38
- }
39
- onColumnChange(selected, isEmptySelection) {
40
- if (selected.length == 0 && isEmptySelection) {
41
- return; // must be a nicer way but we want to avoid ridiculous amounts of prop calls
42
- }
43
- this.props.onColumnChange(selected);
44
- }
45
- }
@@ -1,4 +0,0 @@
1
- import { ColumnScope } from '../../../AdaptableState/Common/ColumnScope';
2
- export interface WizardScopeState {
3
- scope: ColumnScope;
4
- }
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { BaseRowProps } from './SharedProps/ConfigEntityRowProps';
3
- export interface WizardSummaryRowProps<WizardSummaryRow> extends BaseRowProps<WizardSummaryRow> {
4
- propertyName: string;
5
- propertyValue: any;
6
- }
7
- export declare class WizardSummaryRow extends React.Component<WizardSummaryRowProps<WizardSummaryRow>, {}> {
8
- render(): any;
9
- }
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { AdaptableObjectRow } from './AdaptableObjectRow';
3
- import { cloneObject } from '../../Utilities/Helpers/Helper';
4
- export class WizardSummaryRow extends React.Component {
5
- render() {
6
- let colItems = cloneObject(this.props.colItems);
7
- colItems[0].Content = this.props.propertyName;
8
- colItems[1].Content = this.props.propertyValue;
9
- return React.createElement(AdaptableObjectRow, { colItems: colItems, fontSize: 'medium' });
10
- }
11
- }
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
- import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
3
- import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
4
- import * as CustomSortRedux from '../../Redux/ActionsReducers/CustomSortRedux';
5
- import { CustomSort } from '../../AdaptableState/CustomSortState';
6
- export interface CustomSortSummaryProps extends ModuleSummaryProps<CustomSortSummaryComponent> {
7
- CustomSorts: CustomSort[];
8
- onAddCustomSort: (customSort: CustomSort) => CustomSortRedux.CustomSortAddAction;
9
- onEditCustomSort: (customSort: CustomSort) => CustomSortRedux.CustomSortEditAction;
10
- }
11
- export declare class CustomSortSummaryComponent extends React.Component<CustomSortSummaryProps, EditableConfigEntityState> {
12
- constructor(props: CustomSortSummaryProps);
13
- render(): any;
14
- onNew(): void;
15
- onEdit(customSort: CustomSort): void;
16
- onCloseWizard(): void;
17
- onFinishWizard: (customSort: CustomSort) => void;
18
- canFinishWizard(): boolean;
19
- private getCustomSortedValues;
20
- }
21
- export declare let CustomSortSummary: import("react-redux").ConnectedComponent<typeof CustomSortSummaryComponent, {
22
- [x: string]: any;
23
- }>;
@@ -1,105 +0,0 @@
1
- import * as React from 'react';
2
- import { WizardStatus, } from '../Components/SharedProps/EditableConfigEntityState';
3
- import { connect } from 'react-redux';
4
- import { Helper } from '../../Utilities/Helpers/Helper';
5
- import * as CustomSortRedux from '../../Redux/ActionsReducers/CustomSortRedux';
6
- import { ObjectFactory } from '../../Utilities/ObjectFactory';
7
- import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
8
- import { ModuleHeader } from '../Components/ModuleSummary/ModuleHeader';
9
- import { ModuleDetail } from '../Components/ModuleSummary/ModuleDetail';
10
- import { ModuleProfile } from '../Components/ModuleProfile';
11
- import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
12
- import { UIHelper } from '../UIHelper';
13
- import { StringExtensions } from '../../Utilities/Extensions/StringExtensions';
14
- import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
15
- import { CustomSortWizard } from './Wizard/CustomSortWizard';
16
- export class CustomSortSummaryComponent extends React.Component {
17
- constructor(props) {
18
- super(props);
19
- this.onFinishWizard = (customSort) => {
20
- if (this.props.CustomSorts.find((x) => x.ColumnId == customSort.ColumnId)) {
21
- this.props.onEditCustomSort(customSort);
22
- }
23
- else {
24
- this.props.onAddCustomSort(customSort);
25
- }
26
- this.setState({
27
- editedAdaptableObject: null,
28
- wizardStartIndex: 0,
29
- wizardStatus: WizardStatus.None,
30
- });
31
- };
32
- this.state = UIHelper.getEmptyConfigState();
33
- }
34
- render() {
35
- const customSort = this.props.CustomSorts.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
36
- const columnSortComparer = this.props.api.customSortApi.internalApi.getCustomSortComparer(this.props.summarisedColumn.columnId);
37
- let noCustomSort = customSort == null && columnSortComparer == null;
38
- let customSortRow;
39
- if (!this.props.summarisedColumn.sortable) {
40
- customSortRow = (React.createElement(ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'Column is not sortable', newButtonDisabled: true, onNew: () => this.onNew(), newButtonTooltip: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
41
- }
42
- else if (noCustomSort) {
43
- // title row
44
- customSortRow = (React.createElement(ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'No Custom Sort Set', onNew: () => this.onNew(), accessLevel: this.props.accessLevel, newButtonTooltip: this.props.moduleInfo.FriendlyName }));
45
- }
46
- else if (columnSortComparer != null) {
47
- customSortRow = (React.createElement(ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'Using a Custom Sort Comparer Function', onNew: () => this.onNew(), accessLevel: this.props.accessLevel, newButtonTooltip: this.props.moduleInfo.FriendlyName }));
48
- }
49
- else {
50
- customSortRow = (React.createElement(ModuleDetail, { key: this.props.moduleInfo.FriendlyName, item1: React.createElement(ModuleProfile, { moduleInfo: this.props.moduleInfo }), item2: this.getCustomSortedValues(customSort), configEnity: customSort, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(customSort), showEdit: customSort != undefined, onShare: (config) => this.props.onShare(customSort, config), showShare: this.props.teamSharingActivated, onDelete: CustomSortRedux.CustomSortDelete(customSort), showBold: true, accessLevel: this.props.accessLevel }));
51
- }
52
- return (React.createElement(React.Fragment, null,
53
- customSortRow,
54
- this.state.editedAdaptableObject && (React.createElement(CustomSortWizard, { isNew: this.state.wizardStatus === WizardStatus.New, moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.CustomSorts, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
55
- }
56
- onNew() {
57
- let configEntity = ObjectFactory.CreateEmptyCustomSort();
58
- configEntity.ColumnId = this.props.summarisedColumn.columnId;
59
- this.setState({
60
- editedAdaptableObject: configEntity,
61
- wizardStartIndex: 1,
62
- wizardStatus: WizardStatus.New,
63
- });
64
- }
65
- onEdit(customSort) {
66
- this.setState({
67
- editedAdaptableObject: Helper.cloneObject(customSort),
68
- wizardStartIndex: 1,
69
- wizardStatus: WizardStatus.Edit,
70
- });
71
- }
72
- onCloseWizard() {
73
- this.setState({
74
- editedAdaptableObject: null,
75
- wizardStartIndex: 0,
76
- wizardStatus: WizardStatus.None,
77
- });
78
- }
79
- canFinishWizard() {
80
- let customSort = this.state.editedAdaptableObject;
81
- return (StringExtensions.IsNotNullOrEmpty(customSort.ColumnId) &&
82
- ArrayExtensions.IsNotNullOrEmpty(customSort.SortedValues));
83
- }
84
- getCustomSortedValues(customSort) {
85
- if (ArrayExtensions.IsNotNullOrEmpty(customSort.SortedValues)) {
86
- return customSort.SortedValues.join(', ');
87
- }
88
- else {
89
- return '[Has bespoke Custom Sort implementing using bespoke function]';
90
- }
91
- }
92
- }
93
- function mapStateToProps(state, ownProps) {
94
- return {
95
- CustomSorts: state.CustomSort.CustomSorts,
96
- };
97
- }
98
- function mapDispatchToProps(dispatch) {
99
- return {
100
- onAddCustomSort: (customSort) => dispatch(CustomSortRedux.CustomSortAdd(customSort)),
101
- onEditCustomSort: (customSort) => dispatch(CustomSortRedux.CustomSortEdit(customSort)),
102
- onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.CustomSortModuleId, config)),
103
- };
104
- }
105
- export let CustomSortSummary = connect(mapStateToProps, mapDispatchToProps)(CustomSortSummaryComponent);
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { ValidationErrorsMap } from '../DataImportWizard';
3
- interface ImportSectionProps {
4
- data?: Record<string, unknown>[];
5
- onDataChange?: (data: Record<string, unknown>[]) => void;
6
- errors: ValidationErrorsMap | null;
7
- }
8
- export declare const ImportSection: React.FunctionComponent<ImportSectionProps>;
9
- export {};
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import FormLayout, { FormRow } from '../../../../components/FormLayout';
3
- import CheckBox from '../../../../components/icons/check-box';
4
- import { Tabs } from '../../../../components/Tabs';
5
- import { DataPreview } from './DataPreview';
6
- import { Flex } from '../../../../components/Flex';
7
- export const ImportSection = (props) => {
8
- return (React.createElement(Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
9
- React.createElement(Tabs, { className: "twa:mb-2" },
10
- React.createElement(Tabs.Tab, null, "Import Options"),
11
- React.createElement(Tabs.Content, null,
12
- React.createElement(FormLayout, null,
13
- React.createElement(FormRow, { label: "Exclude Invalid Rows" },
14
- React.createElement(CheckBox, null))))),
15
- React.createElement(Tabs, { className: "twa:flex-1" },
16
- React.createElement(Tabs.Tab, null, "Preview"),
17
- React.createElement(Tabs.Content, null,
18
- React.createElement(DataPreview, { onDataChange: props.onDataChange, data: props.data, errors: props.errors, editable: false })))));
19
- };