@adaptabletools/adaptable 10.0.2 → 10.0.4-canary.2

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 (306) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/base.css +84 -32
  4. package/bundle.cjs.js +350 -0
  5. package/index.css +100 -34
  6. package/package.json +1 -5
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +24 -12
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
  13. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
  15. package/src/AdaptableOptions/EditOptions.d.ts +2 -3
  16. package/src/AdaptableOptions/FilterOptions.d.ts +22 -15
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
  18. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
  20. package/src/AdaptableOptions/NotificationsOptions.d.ts +11 -1
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +108 -6
  23. package/src/Api/AdaptableApi.d.ts +12 -12
  24. package/src/Api/AlertApi.d.ts +1 -1
  25. package/src/Api/CalculatedColumnApi.d.ts +15 -0
  26. package/src/Api/ColumnApi.d.ts +49 -5
  27. package/src/Api/ConfigApi.d.ts +8 -0
  28. package/src/Api/EventApi.d.ts +1 -1
  29. package/src/Api/Events/AdaptableReady.d.ts +5 -8
  30. package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
  31. package/src/Api/Events/AlertFired.d.ts +2 -1
  32. package/src/Api/Events/BaseEventInfo.d.ts +10 -0
  33. package/src/{Utilities/Interface/ProgressIndicator.js → Api/Events/BaseEventInfo.js} +0 -0
  34. package/src/Api/Events/CellChanged.d.ts +2 -1
  35. package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
  36. package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
  37. package/src/Api/Events/DashboardChanged.d.ts +2 -1
  38. package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
  39. package/src/Api/Events/GridDataChanged.d.ts +2 -1
  40. package/src/Api/Events/LayoutChanged.d.ts +2 -1
  41. package/src/Api/Events/LiveDataChanged.d.ts +2 -1
  42. package/src/Api/Events/SearchChanged.d.ts +2 -1
  43. package/src/Api/Events/SelectionChanged.d.ts +2 -1
  44. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
  45. package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
  46. package/src/Api/Events/ThemeChanged.d.ts +2 -1
  47. package/src/Api/GridApi.d.ts +44 -18
  48. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/AlertApiImpl.js +22 -15
  50. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
  51. package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
  52. package/src/Api/Implementation/ColumnApiImpl.d.ts +12 -3
  53. package/src/Api/Implementation/ColumnApiImpl.js +79 -44
  54. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  55. package/src/Api/Implementation/ConfigApiImpl.js +28 -41
  56. package/src/Api/Implementation/DashboardApiImpl.js +2 -1
  57. package/src/Api/Implementation/ExportApiImpl.js +4 -4
  58. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
  59. package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -3
  60. package/src/Api/Implementation/GridApiImpl.d.ts +11 -2
  61. package/src/Api/Implementation/GridApiImpl.js +30 -13
  62. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -2
  63. package/src/Api/Implementation/InternalApiImpl.js +21 -5
  64. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  65. package/src/Api/Implementation/LayoutApiImpl.js +19 -3
  66. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
  67. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  68. package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
  69. package/src/Api/Implementation/ScopeApiImpl.js +11 -11
  70. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
  71. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  72. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  73. package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
  74. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +15 -11
  75. package/src/Api/Implementation/UserInterfaceApiImpl.js +73 -91
  76. package/src/Api/InternalApi.d.ts +4 -2
  77. package/src/Api/LayoutApi.d.ts +7 -0
  78. package/src/Api/PluginsApi.d.ts +1 -7
  79. package/src/Api/TeamSharingApi.d.ts +1 -1
  80. package/src/Api/ThemeApi.d.ts +2 -2
  81. package/src/Api/UserInterfaceApi.d.ts +19 -9
  82. package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
  83. package/src/PredefinedConfig/AlertState.d.ts +5 -1
  84. package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
  85. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -38
  86. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
  87. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +36 -36
  88. package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
  89. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  90. package/src/PredefinedConfig/Common/AdaptablePredicate.js +19 -18
  91. package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
  92. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
  93. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +5 -1
  94. package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
  95. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +49 -0
  96. package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -0
  97. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  98. package/src/PredefinedConfig/Common/Types.js +9 -7
  99. package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
  100. package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
  101. package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
  102. package/src/PredefinedConfig/ExportState.d.ts +3 -3
  103. package/src/PredefinedConfig/FilterState.d.ts +3 -3
  104. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  105. package/src/PredefinedConfig/FreeTextColumnState.d.ts +11 -1
  106. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  107. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
  108. package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
  109. package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
  110. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
  111. package/src/PredefinedConfig/Selection/GridRow.d.ts +12 -4
  112. package/src/PredefinedConfig/SystemState.d.ts +4 -1
  113. package/src/PredefinedConfig/ThemeState.d.ts +5 -1
  114. package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
  115. package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
  116. package/src/Redux/ActionsReducers/GridRedux.js +2 -2
  117. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
  118. package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
  119. package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
  120. package/src/Redux/DeadRedux.d.ts +4 -8
  121. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
  122. package/src/Redux/Store/AdaptableStore.d.ts +3 -3
  123. package/src/Redux/Store/AdaptableStore.js +25 -16
  124. package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
  125. package/src/Strategy/AdaptableModuleBase.js +8 -8
  126. package/src/Strategy/AlertModule.d.ts +2 -2
  127. package/src/Strategy/AlertModule.js +13 -105
  128. package/src/Strategy/BulkUpdateModule.d.ts +2 -2
  129. package/src/Strategy/BulkUpdateModule.js +7 -7
  130. package/src/Strategy/CalculatedColumnModule.js +1 -1
  131. package/src/Strategy/CellSummaryModule.d.ts +2 -2
  132. package/src/Strategy/CellSummaryModule.js +3 -3
  133. package/src/Strategy/ConditionalStyleModule.js +3 -3
  134. package/src/Strategy/CustomSortModule.js +2 -2
  135. package/src/Strategy/DashboardModule.d.ts +2 -2
  136. package/src/Strategy/DataChangeHistoryModule.js +2 -2
  137. package/src/Strategy/ExportModule.d.ts +2 -4
  138. package/src/Strategy/ExportModule.js +59 -62
  139. package/src/Strategy/FilterModule.d.ts +2 -2
  140. package/src/Strategy/FilterModule.js +4 -4
  141. package/src/Strategy/FormatColumnModule.js +6 -6
  142. package/src/Strategy/FreeTextColumnModule.js +1 -1
  143. package/src/Strategy/GridInfoModule.d.ts +2 -2
  144. package/src/Strategy/Interface/IModule.d.ts +2 -2
  145. package/src/Strategy/LayoutModule.d.ts +2 -2
  146. package/src/Strategy/LayoutModule.js +22 -9
  147. package/src/Strategy/PlusMinusModule.js +8 -9
  148. package/src/Strategy/SmartEditModule.d.ts +2 -2
  149. package/src/Strategy/SmartEditModule.js +8 -9
  150. package/src/Strategy/SystemStatusModule.d.ts +2 -2
  151. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  152. package/src/Utilities/Constants/GeneralConstants.js +2 -1
  153. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  154. package/src/Utilities/Constants/ModuleConstants.js +7 -7
  155. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +9 -7
  156. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
  157. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
  158. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
  159. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  160. package/src/Utilities/Helpers/DateHelper.d.ts +2 -2
  161. package/src/Utilities/Helpers/DateHelper.js +30 -20
  162. package/src/Utilities/Helpers/PreviewHelper.js +2 -2
  163. package/src/Utilities/Interface/Preview.d.ts +2 -1
  164. package/src/Utilities/ObjectFactory.d.ts +1 -1
  165. package/src/Utilities/ObjectFactory.js +14 -2
  166. package/src/Utilities/Services/DataService.js +5 -5
  167. package/src/Utilities/Services/LicenseService.js +16 -2
  168. package/src/Utilities/Services/ReportService.js +13 -12
  169. package/src/Utilities/Services/ValidationService.js +4 -5
  170. package/src/Utilities/runIfNotResolvedIn.d.ts +8 -0
  171. package/src/Utilities/runIfNotResolvedIn.js +23 -0
  172. package/src/View/AdaptableView.js +1 -1
  173. package/src/View/AdaptableViewFactory.d.ts +2 -1
  174. package/src/View/AdaptableViewFactory.js +2 -0
  175. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
  176. package/src/View/Alert/AlertPopup.js +1 -1
  177. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +19 -5
  178. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  179. package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +2 -0
  180. package/src/View/BulkUpdate/BulkUpdatePopup.js +6 -4
  181. package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +2 -0
  182. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +3 -1
  183. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
  184. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
  185. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  186. package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
  187. package/src/View/Components/ColumnSelector/index.js +2 -2
  188. package/src/View/Components/FilterForm/FilterForm.d.ts +3 -51
  189. package/src/View/Components/FilterForm/FilterForm.js +57 -38
  190. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
  191. package/src/View/Components/FilterForm/ListBoxFilterForm.js +18 -9
  192. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +3 -43
  193. package/src/View/Components/FilterForm/QuickFilterForm.js +74 -35
  194. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +3 -0
  195. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +8 -0
  196. package/src/View/Components/NewScopeComponent.js +1 -1
  197. package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
  198. package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
  199. package/src/View/Components/Popups/AdaptablePopup.d.ts +1 -1
  200. package/src/View/Components/Popups/AdaptablePopupAlert.js +23 -10
  201. package/src/View/Components/PreviewResultsPanel.js +1 -1
  202. package/src/View/Components/RangesComponent.js +2 -2
  203. package/src/View/Components/Selectors/ColumnSelector.js +5 -5
  204. package/src/View/Components/Selectors/ColumnValueSelector.d.ts +10 -2
  205. package/src/View/Components/Selectors/ColumnValueSelector.js +47 -15
  206. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -11
  207. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  208. package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
  209. package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
  210. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
  211. package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
  212. package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
  213. package/src/View/CustomSort/CustomSortPopup.js +2 -2
  214. package/src/View/CustomSort/CustomSortSummary.js +3 -3
  215. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -4
  216. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +24 -6
  217. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  218. package/src/View/Dashboard/Dashboard.js +2 -3
  219. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
  220. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -10
  221. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
  222. package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
  223. package/src/View/Export/ExportViewPanel.js +6 -6
  224. package/src/View/Filter/FilterSummary.js +2 -2
  225. package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
  226. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  227. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  228. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +4 -2
  229. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +5 -3
  230. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
  231. package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
  232. package/src/View/GridInfo/GridInfoPopup.js +4 -1
  233. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  234. package/src/View/Layout/LayoutViewPanel.js +2 -2
  235. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
  236. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
  237. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
  238. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
  239. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
  240. package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
  241. package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
  242. package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
  243. package/src/View/Query/QueryViewPanel.js +3 -3
  244. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
  245. package/src/View/Schedule/SchedulePopup.js +3 -3
  246. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  247. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  248. package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
  249. package/src/View/StateManagement/StateManagementPopup.js +21 -114
  250. package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
  251. package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
  252. package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
  253. package/src/View/StateManagement/components/ClearButton.js +9 -0
  254. package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
  255. package/src/View/StateManagement/components/ExportDropdown.js +43 -0
  256. package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
  257. package/src/View/StateManagement/components/LoadButton.js +38 -0
  258. package/src/View/StateManagement/handleExportState.d.ts +1 -0
  259. package/src/View/StateManagement/handleExportState.js +22 -0
  260. package/src/View/Theme/ThemeViewPanel.js +1 -1
  261. package/src/View/UIHelper.d.ts +2 -0
  262. package/src/View/UIHelper.js +10 -1
  263. package/src/agGrid/ActionColumnRenderer.d.ts +2 -1
  264. package/src/agGrid/ActionColumnRenderer.js +21 -4
  265. package/src/agGrid/Adaptable.d.ts +28 -11
  266. package/src/agGrid/Adaptable.js +326 -168
  267. package/src/agGrid/agGridHelper.d.ts +4 -4
  268. package/src/agGrid/agGridHelper.js +46 -46
  269. package/src/agGrid/agGridMenuHelper.d.ts +15 -13
  270. package/src/agGrid/agGridMenuHelper.js +55 -47
  271. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
  272. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
  273. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
  274. package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
  275. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
  276. package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
  277. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
  278. package/src/components/Dashboard/Dashboard.js +1 -1
  279. package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
  280. package/src/components/Datepicker/index.js +9 -5
  281. package/src/components/DropdownButton/index.js +1 -1
  282. package/src/components/ExpressionEditor/index.js +7 -7
  283. package/src/components/Loader/Loader.d.ts +7 -0
  284. package/src/components/Loader/Loader.js +13 -0
  285. package/src/components/Loader/index.d.ts +2 -0
  286. package/src/components/Loader/index.js +7 -0
  287. package/src/components/Modal/index.d.ts +1 -1
  288. package/src/components/OverlayTrigger/index.js +3 -3
  289. package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
  290. package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
  291. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -0
  292. package/src/components/ProgressIndicator/ProgressIndicator.js +54 -0
  293. package/src/components/icons/index.js +2 -0
  294. package/src/components/icons/upload.d.ts +3 -0
  295. package/src/components/icons/upload.js +8 -0
  296. package/src/metamodel/adaptable.metamodel.d.ts +176 -52
  297. package/src/metamodel/adaptable.metamodel.js +659 -366
  298. package/src/types.d.ts +5 -4
  299. package/version.d.ts +1 -1
  300. package/version.js +1 -1
  301. package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
  302. package/src/PredefinedConfig/DeprecatedState.js +0 -5
  303. package/src/Utilities/Interface/ProgressIndicator.d.ts +0 -4
  304. package/src/View/Export/ProgressIndicator.d.ts +0 -6
  305. package/src/View/Export/ProgressIndicator.js +0 -25
  306. package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
@@ -1,34 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataChangeHistoryModuleId = exports.QueryModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.PlusMinusModuleId = exports.SparklineColumnModuleId = exports.GridInfoModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.Glue42ModuleId = exports.OpenFinModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.FilterModuleId = exports.ChartModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.AlertModuleId = void 0;
3
+ exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SparklineColumnModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.AlertModuleId = void 0;
4
4
  exports.AlertModuleId = 'Alert';
5
5
  exports.BulkUpdateModuleId = 'BulkUpdate';
6
6
  exports.CalculatedColumnModuleId = 'CalculatedColumn';
7
7
  exports.CellSummaryModuleId = 'CellSummary';
8
8
  exports.ChartModuleId = 'Chart';
9
- exports.FilterModuleId = 'Filter';
10
9
  exports.ConditionalStyleModuleId = 'ConditionalStyle';
11
10
  exports.CustomSortModuleId = 'CustomSort';
12
11
  exports.DashboardModuleId = 'Dashboard';
12
+ exports.DataChangeHistoryModuleId = 'DataChangeHistory';
13
13
  exports.DataSourceModuleId = 'DataSource';
14
14
  exports.ExportModuleId = 'Export';
15
+ exports.FilterModuleId = 'Filter';
15
16
  exports.FormatColumnModuleId = 'FormatColumn';
16
17
  exports.FreeTextColumnModuleId = 'FreeTextColumn';
17
- exports.OpenFinModuleId = 'OpenFin';
18
18
  exports.Glue42ModuleId = 'Glue42';
19
+ exports.GridInfoModuleId = 'GridInfo';
19
20
  exports.IPushPullModuleId = 'IPushPull';
20
21
  exports.LayoutModuleId = 'Layout';
21
- exports.GridInfoModuleId = 'GridInfo';
22
- exports.SparklineColumnModuleId = 'SparklineColumn';
22
+ exports.OpenFinModuleId = 'OpenFin';
23
23
  exports.PlusMinusModuleId = 'PlusMinus';
24
+ exports.QueryModuleId = 'Query';
24
25
  exports.QuickSearchModuleId = 'QuickSearch';
25
26
  exports.ScheduleModuleId = 'Schedule';
26
27
  exports.ShortcutModuleId = 'Shortcut';
27
28
  exports.SmartEditModuleId = 'SmartEdit';
29
+ exports.SparklineColumnModuleId = 'SparklineColumn';
28
30
  exports.StateManagementModuleId = 'StateManagement';
29
31
  exports.SystemStatusModuleId = 'SystemStatus';
30
32
  exports.TeamSharingModuleId = 'TeamSharing';
31
33
  exports.ThemeModuleId = 'Theme';
32
34
  exports.ToolPanelModuleId = 'ToolPanel';
33
- exports.QueryModuleId = 'Query';
34
- exports.DataChangeHistoryModuleId = 'DataChangeHistory';
@@ -33,6 +33,7 @@ exports.DefaultAdaptableOptions = {
33
33
  isDraggable: false,
34
34
  transition: 'Slide',
35
35
  actionHandlers: undefined,
36
+ showApplicationIcon: false,
36
37
  flashingAlertDefaultProperties: {
37
38
  FlashDuration: 500,
38
39
  DownChangeStyle: {
@@ -50,8 +51,8 @@ exports.DefaultAdaptableOptions = {
50
51
  },
51
52
  containerOptions: {
52
53
  adaptableContainer: 'adaptable',
53
- vendorContainer: 'grid',
54
- vendorContainerWaitTimeout: 60000,
54
+ agGridContainer: 'grid',
55
+ agGridContainerWaitTimeout: 60000,
55
56
  modalContainer: undefined,
56
57
  chartContainer: undefined,
57
58
  systemStatusContainer: undefined,
@@ -117,8 +118,8 @@ exports.DefaultAdaptableOptions = {
117
118
  showAdaptableContextMenu: true,
118
119
  showAdaptableColumnMenu: true,
119
120
  showUngroupColumnMenuItem: true,
120
- columnMenuOrder: ['vendor', 'adaptable', 'user'],
121
- contextMenuOrder: ['vendor', 'adaptable', 'user'],
121
+ columnMenuOrder: ['aggrid', 'adaptable', 'user'],
122
+ contextMenuOrder: ['aggrid', 'adaptable', 'user'],
122
123
  columnMenuItems: undefined,
123
124
  contextMenuItems: undefined,
124
125
  },
@@ -127,10 +128,11 @@ exports.DefaultAdaptableOptions = {
127
128
  hideQuickFilterInput: undefined,
128
129
  indicateFilteredColumns: true,
129
130
  useAdaptableFilterForm: true,
130
- useVendorFilterFormStyle: true,
131
+ useAgGridFilterFormStyle: true,
131
132
  useAdaptableQuickFilter: true,
132
133
  clearFiltersOnStartUp: false,
133
134
  quickFilterTrigger: 'mouseenter',
135
+ quickFilterValuesTrigger: 'mouseenter',
134
136
  filterActionOnUserDataChange: {
135
137
  applyFilter: GeneralConstants.FILTER_ALWAYS,
136
138
  throttleDelay: 0,
@@ -202,7 +204,7 @@ exports.DefaultAdaptableOptions = {
202
204
  width: UIHelper_1.default.getAdaptableToolPanelWidth(),
203
205
  minWidth: UIHelper_1.default.getAdaptableToolPanelWidth(),
204
206
  maxWidth: undefined,
205
- toolPanelOrder: ['filters', 'columns', 'AdaptableToolPanel'],
207
+ toolPanelOrder: ['filters', 'columns', 'adaptable'],
206
208
  },
207
209
  queryLanguageOptions: {
208
210
  defaultBooleanFunctions: booleanExpressionFunctions_1.booleanExpressionFunctions,
@@ -216,7 +218,7 @@ exports.DefaultAdaptableOptions = {
216
218
  },
217
219
  dataChangeHistoryOptions: {
218
220
  activeByDefault: false,
219
- filterDataChange: undefined,
221
+ showDataChange: undefined,
220
222
  },
221
223
  customPredicateDefs: [],
222
224
  };
@@ -227,7 +227,7 @@ exports.booleanExpressionFunctions = {
227
227
  const searchTerm = expressionFunctionUtils_1.getStringValue(context, String(args[0]));
228
228
  return (_a = context.api) === null || _a === void 0 ? void 0 : _a.columnApi.getColumns().some((column) => {
229
229
  var _a;
230
- const value = (_a = context.api) === null || _a === void 0 ? void 0 : _a.gridApi.getNormalisedValueFromRowNode(context.node, column.ColumnId);
230
+ const value = (_a = context.api) === null || _a === void 0 ? void 0 : _a.gridApi.getNormalisedValueFromRowNode(context.node, column.columnId);
231
231
  const columnValue = expressionFunctionUtils_1.getStringValue(context, String(value));
232
232
  return columnValue.indexOf(searchTerm) !== -1;
233
233
  });
@@ -23,7 +23,7 @@ exports.isTextSearchCaseInsensitive = (context) => !context.api.internalApi.isTe
23
23
  exports.getDataChangeLog$ = (context, columnNameFilter) => {
24
24
  let dataChangeLog$ = context.api.internalApi.getDataService().dataChangeLog$;
25
25
  // filter only the given column changes
26
- dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.columnId === columnNameFilter));
26
+ dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
27
27
  // filter based on the WHERE clause
28
28
  if (context.filterFn) {
29
29
  dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((value) => context.filterFn(value.rowNode)));
@@ -92,7 +92,7 @@ const validateColumnId = (columnId, api) => {
92
92
  if (!column) {
93
93
  throw new ExpressionEvaluationError_1.ExpressionEvaluationError('', `Column name "${columnId}" is not found`);
94
94
  }
95
- if (!column.Queryable) {
95
+ if (!column.queryable) {
96
96
  throw new ExpressionEvaluationError_1.ExpressionEvaluationError('', `Column name "${columnId}" is not queryable`);
97
97
  }
98
98
  };
@@ -244,14 +244,15 @@ const getDataChangedInfoStub = (context) => {
244
244
  const rowNode = rowNodeStub;
245
245
  if (rowNode) {
246
246
  const primaryKeyValue = context.api.gridApi.getPrimaryKeyValueForRowNode(rowNode);
247
- const columnId = (_a = context.api.columnApi.getQueryableColumns()[0]) === null || _a === void 0 ? void 0 : _a.ColumnId;
247
+ const columnId = (_a = context.api.columnApi.getQueryableColumns()[0]) === null || _a === void 0 ? void 0 : _a.columnId;
248
248
  const oldValue = context.api.gridApi.getCellRawValue(primaryKeyValue, columnId);
249
+ const column = context.api.columnApi.getColumnFromId(columnId);
249
250
  const newValue = oldValue;
250
251
  return {
251
252
  changedAt: Date.now(),
252
253
  rowNode,
253
254
  primaryKeyValue,
254
- columnId,
255
+ column: column,
255
256
  oldValue,
256
257
  newValue,
257
258
  };
@@ -89,7 +89,7 @@ exports.scalarExpressionFunctions = {
89
89
  if (!column) {
90
90
  throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `Column name "${columnId}" is not found`);
91
91
  }
92
- if (!column.Queryable) {
92
+ if (!column.queryable) {
93
93
  throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `Column name "${columnId}" is not queryable`);
94
94
  }
95
95
  return (_b = context.api) === null || _b === void 0 ? void 0 : _b.gridApi.getNormalisedValueFromRowNode(context.node, columnId);
@@ -6,5 +6,5 @@ export declare const isValidDate: (date: Date) => boolean;
6
6
  */
7
7
  export declare const isValueValidDate: (data: any) => boolean;
8
8
  export declare const dateToISO: (date: Date | number | string) => string;
9
- export declare const parseToISO: (date: string | Date | number, dateFormat: string) => string;
10
- export declare const parseDate: (date: string, dateFormat: string) => Date | undefined;
9
+ export declare const parseToISO: (date: string | Date | number, dateFormat?: string) => string;
10
+ export declare const parseDateValue: (dateValue: string | Date | number, dateFormat?: string) => Date | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseDate = exports.parseToISO = exports.dateToISO = exports.isValueValidDate = exports.isValidDate = void 0;
3
+ exports.parseDateValue = exports.parseToISO = exports.dateToISO = exports.isValueValidDate = exports.isValidDate = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const parseISO_1 = tslib_1.__importDefault(require("date-fns/parseISO"));
6
6
  const parse_1 = tslib_1.__importDefault(require("date-fns/parse"));
@@ -25,26 +25,36 @@ exports.dateToISO = (date) => {
25
25
  return FormatHelper_1.DateFormatter(date, { Pattern: 'yyyy-MM-dd' });
26
26
  };
27
27
  exports.parseToISO = (date, dateFormat) => {
28
- let dateInstance = date instanceof Date
29
- ? date
30
- : typeof date === 'number'
31
- ? new Date(date)
32
- : exports.parseDate(date, dateFormat);
33
- let valid = dateInstance && exports.isValidDate(dateInstance);
34
- if (!valid) {
35
- dateInstance = new Date(date);
36
- valid = exports.isValidDate(dateInstance);
37
- }
38
- return valid ? exports.dateToISO(dateInstance) : '';
28
+ const dateInstance = exports.parseDateValue(date, dateFormat);
29
+ return exports.isValidDate(dateInstance) ? exports.dateToISO(dateInstance) : '';
39
30
  };
40
- exports.parseDate = (date, dateFormat) => {
41
- let d = parse_1.default(date, dateFormat, new Date());
42
- if (!exports.isValidDate(d)) {
43
- d = parseISO_1.default(date);
31
+ exports.parseDateValue = (dateValue, dateFormat) => {
32
+ if (dateValue == undefined) {
33
+ return undefined;
34
+ }
35
+ if (dateValue instanceof Date) {
36
+ return !isNaN(dateValue.getTime()) ? dateValue : undefined;
37
+ }
38
+ let dateInstance;
39
+ if (typeof dateValue === 'number') {
40
+ dateInstance = new Date(dateValue);
41
+ }
42
+ else {
43
+ // typeof dateValue === 'string'
44
+ if (dateFormat) {
45
+ dateInstance = parse_1.default(dateValue, dateFormat, new Date());
46
+ }
47
+ else {
48
+ dateInstance = parseISO_1.default(dateValue);
49
+ }
50
+ if (!exports.isValidDate(dateInstance)) {
51
+ // last chance: try to use the native Date.parse(), https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse
52
+ dateInstance = new Date(Date.parse(dateValue));
53
+ }
44
54
  }
45
- if (!exports.isValidDate(d)) {
46
- LoggingHelper_1.LogAdaptableError(`Invalid date value "${date}" - cannot be converted to a Date instance. Please make sure you specify adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat correctly.`);
47
- d = undefined;
55
+ if (!exports.isValidDate(dateInstance)) {
56
+ LoggingHelper_1.LogAdaptableError(`Invalid date value "${dateValue}" - cannot be converted to a Date instance. Please make sure you specify adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat correctly.`);
57
+ dateInstance = undefined;
48
58
  }
49
- return d;
59
+ return dateInstance;
50
60
  };
@@ -39,11 +39,11 @@ function GetCellInfosFromPreview(previewInfo, bypassValidationWarnings) {
39
39
  if (previewResult.validationRules.length == 0) {
40
40
  newValues.push({
41
41
  primaryKeyValue: previewResult.id,
42
- columnId: previewInfo.columnId,
43
42
  rawValue: previewResult.computedValue,
44
43
  displayValue: previewResult.computedValue,
45
44
  normalisedValue: previewResult.computedValue,
46
45
  rowNode: previewResult.rowNode,
46
+ column: previewInfo.column,
47
47
  });
48
48
  }
49
49
  }
@@ -54,7 +54,7 @@ function GetCellInfosFromPreview(previewInfo, bypassValidationWarnings) {
54
54
  .forEach((pr) => {
55
55
  newValues.push({
56
56
  primaryKeyValue: pr.id,
57
- columnId: previewInfo.columnId,
57
+ column: previewInfo.column,
58
58
  rawValue: pr.computedValue,
59
59
  displayValue: pr.computedValue,
60
60
  normalisedValue: pr.computedValue,
@@ -1,7 +1,8 @@
1
1
  import { AlertDefinition } from '../../PredefinedConfig/AlertState';
2
2
  import { RowNode } from '@ag-grid-community/all-modules';
3
+ import { AdaptableColumn } from '../../../types';
3
4
  export interface PreviewInfo {
4
- columnId: string;
5
+ column: AdaptableColumn;
5
6
  previewResults: PreviewResult[];
6
7
  previewValidationSummary: PreviewValidationSummary;
7
8
  }
@@ -61,7 +61,7 @@ export declare function CreateEmptySchedule(): Schedule;
61
61
  export declare function CreateEmptyShortcut(): Shortcut;
62
62
  export declare function CreateEmptyConditionalStyle(): ConditionalStyle;
63
63
  export declare function CreateEmptyFormatColumn(): FormatColumn;
64
- export declare function CreateEmptyFreeTextColumn(): FreeTextColumn;
64
+ export declare function CreateEmptyFreeTextColumn(isFilterable: boolean): FreeTextColumn;
65
65
  export declare function CreateEmptyLayout(layout?: Partial<Layout> & {
66
66
  Name: string;
67
67
  }, adaptableColumns?: AdaptableColumn[]): Layout;
@@ -74,6 +74,8 @@ function CreateEmptyCalculatedColumn(isFilterable) {
74
74
  Sortable: true,
75
75
  Pivotable: true,
76
76
  Aggregatable: true,
77
+ SuppressMenu: false,
78
+ SuppressMovable: false,
77
79
  },
78
80
  };
79
81
  }
@@ -334,13 +336,23 @@ function CreateEmptyFormatColumn() {
334
336
  };
335
337
  }
336
338
  exports.CreateEmptyFormatColumn = CreateEmptyFormatColumn;
337
- function CreateEmptyFreeTextColumn() {
339
+ function CreateEmptyFreeTextColumn(isFilterable) {
338
340
  return {
339
341
  Uuid: Uuid_1.createUuid(),
340
342
  ColumnId: GeneralConstants_1.EMPTY_STRING,
341
343
  DefaultValue: GeneralConstants_1.EMPTY_STRING,
342
344
  FreeTextStoredValues: [],
343
345
  TextEditor: 'Inline',
346
+ FreeTextColumnSettings: {
347
+ Filterable: isFilterable,
348
+ Resizable: true,
349
+ Groupable: true,
350
+ Sortable: true,
351
+ Pivotable: true,
352
+ Aggregatable: true,
353
+ SuppressMenu: false,
354
+ SuppressMovable: false,
355
+ },
344
356
  };
345
357
  }
346
358
  exports.CreateEmptyFreeTextColumn = CreateEmptyFreeTextColumn;
@@ -348,7 +360,7 @@ function CreateEmptyLayout(layout, adaptableColumns) {
348
360
  return Object.assign(Object.assign({}, layout), { Uuid: Uuid_1.createUuid(), Columns: layout.Columns || [], ColumnSorts: layout.ColumnSorts || [],
349
361
  // ColumnFlexMap: layout.ColumnFlexMap || {},
350
362
  ColumnWidthMap: layout.ColumnWidthMap || {}, RowGroupedColumns: layout.RowGroupedColumns ||
351
- (adaptableColumns ? adaptableColumns.filter((c) => c.IsGrouped).map((c) => c.ColumnId) : []) });
363
+ (adaptableColumns ? adaptableColumns.filter((c) => c.isGrouped).map((c) => c.columnId) : []) });
352
364
  }
353
365
  exports.CreateEmptyLayout = CreateEmptyLayout;
354
366
  function CreateEmptyStyle() {
@@ -30,8 +30,8 @@ class DataService {
30
30
  // we need this temporary "shared memory" because the value change and the AG Grid cellChanged event are asynchronous
31
31
  // in the first phase we keep the undone change
32
32
  logUndoChange(change) {
33
- const { primaryKeyValue, columnId, oldValue, newValue } = change;
34
- const undoChangeKey = this.getUndoChangeKey(primaryKeyValue, columnId, oldValue, newValue);
33
+ const { primaryKeyValue, column, oldValue, newValue } = change;
34
+ const undoChangeKey = this.getUndoChangeKey(primaryKeyValue, column.columnId, oldValue, newValue);
35
35
  this.undoChangeLog.set(undoChangeKey, change);
36
36
  // normally the extractUndoChange() should be executed right after this method
37
37
  // just to be sure that no 'zombie' undo change remains here (if something goes wrong with the undo value change)
@@ -39,16 +39,16 @@ class DataService {
39
39
  // why 2 and not 3 or 1? no good reason, only seems like a reasonable waiting time :)
40
40
  const UNDO_WAIT = 2000;
41
41
  const timeoutId = setTimeout(() => {
42
- LoggingHelper_1.LogAdaptableInfo(`Undo change was NOT handled, this should NOT happen: PK(${change.primaryKeyValue}) Col(${change.columnId}) RevertedValue(${change.newValue}) NewValue(${change.oldValue})`);
42
+ LoggingHelper_1.LogAdaptableInfo(`Undo change was NOT handled, this should NOT happen: PK(${change.primaryKeyValue}) Col(${change.column}) RevertedValue(${change.newValue}) NewValue(${change.oldValue})`);
43
43
  this.extractUndoChange(change);
44
44
  }, UNDO_WAIT);
45
45
  this.undoChangeTimers.set(undoChangeKey, timeoutId);
46
46
  }
47
47
  // in the second phase, when AG-Grid triggers the cellChange event, we check if it corresponds to an undone change
48
48
  extractUndoChange(change) {
49
- const { primaryKeyValue, columnId, oldValue, newValue } = change;
49
+ const { primaryKeyValue, column, oldValue, newValue } = change;
50
50
  // this is post-undo, so we have to swap the new& old values
51
- const undoChangeKey = this.getUndoChangeKey(primaryKeyValue, columnId, newValue, oldValue);
51
+ const undoChangeKey = this.getUndoChangeKey(primaryKeyValue, column.columnId, newValue, oldValue);
52
52
  const result = this.undoChangeLog.get(undoChangeKey);
53
53
  this.undoChangeLog.delete(undoChangeKey);
54
54
  const timeoutId = this.undoChangeTimers.get(undoChangeKey);
@@ -23,19 +23,33 @@ var LicenseValidityType;
23
23
  LicenseValidityType["COMMERCIAL_EXPIRED_IN_SCOPE"] = "COMMERCIAL_EXPIRED_IN_SCOPE";
24
24
  LicenseValidityType["COMMERCIAL_EXPIRED_OUT_OF_SCOPE"] = "COMMERCIAL_EXPIRED_OUT_OF_SCOPE";
25
25
  })(LicenseValidityType = exports.LicenseValidityType || (exports.LicenseValidityType = {}));
26
+ const SANDPACK_REGEX = /(https):\/\/\d+\-\d+\-\d\-(sandpack\.codesandbox\.io)/g;
27
+ const SANDBOX_REGEX = /(https):\/\/\S+(\.csb\.app\/)/g;
28
+ const origin = typeof window !== 'undefined' ? window.location.origin : '';
29
+ const isInsideSandpack = () => {
30
+ const [_fullUrl, protocol, sandpackUrl] = Array.from(SANDPACK_REGEX.exec(origin) || []);
31
+ return protocol === 'https' && sandpackUrl === 'sandpack.codesandbox.io';
32
+ };
33
+ const isInsideSandbox = () => {
34
+ const [_fullUrl, protocol, sandboxUrl] = Array.from(SANDBOX_REGEX.exec(origin) || []);
35
+ return protocol === 'https' && sandboxUrl === '.csb.app/';
36
+ };
26
37
  class LicenseService {
27
38
  constructor(adaptable, licenseKey, packageDetails) {
28
39
  this.adaptable = adaptable;
29
40
  this.adaptable = adaptable;
30
41
  let details = null;
31
- if (licenseKey)
42
+ if (licenseKey) {
32
43
  try {
33
44
  details = decode_1.decode(licenseKey);
34
45
  }
35
46
  catch (error) {
36
47
  details = error;
37
48
  }
38
- this.handleLicenseValidation(details, this.getValidityType(details, packageDetails));
49
+ }
50
+ if (!isInsideSandpack() && !isInsideSandbox()) {
51
+ this.handleLicenseValidation(details, this.getValidityType(details, packageDetails));
52
+ }
39
53
  }
40
54
  getValidityType(details, packageDetails) {
41
55
  if (!details) {
@@ -160,14 +160,14 @@ class ReportService {
160
160
  reportColumns = gridColumns;
161
161
  break;
162
162
  case Enums_1.ReportColumnScope.VisibleColumns:
163
- reportColumns = gridColumns.filter((c) => c.Visible);
163
+ reportColumns = gridColumns.filter((c) => c.visible);
164
164
  break;
165
165
  case Enums_1.ReportColumnScope.SelectedColumns:
166
166
  // we extract the selected columns from the grid columns to preserve the grid column order
167
167
  const selectedColumnIds = this.adaptable.api.gridApi
168
168
  .getSelectedCellInfo()
169
- .columns.map((column) => column.ColumnId);
170
- reportColumns = gridColumns.filter((gridColumn) => selectedColumnIds.includes(gridColumn.ColumnId));
169
+ .columns.map((column) => column.columnId);
170
+ reportColumns = gridColumns.filter((gridColumn) => selectedColumnIds.includes(gridColumn.columnId));
171
171
  break;
172
172
  case Enums_1.ReportColumnScope.ScopeColumns:
173
173
  if ('ColumnIds' in report.Scope) {
@@ -182,7 +182,7 @@ class ReportService {
182
182
  break;
183
183
  }
184
184
  if (includePrimaryKey) {
185
- const pkColumn = reportColumns.find((column) => column.ColumnId === this.adaptable.adaptableOptions.primaryKey);
185
+ const pkColumn = reportColumns.find((column) => column.columnId === this.adaptable.adaptableOptions.primaryKey);
186
186
  // TODO simplify after we fix the IsPrimaryKey bug
187
187
  // const pkColumn = reportColumns.find(column => column.IsPrimaryKey);
188
188
  if (!pkColumn && !!this.adaptable.api.columnApi.getPrimaryKeyColumn()) {
@@ -194,16 +194,16 @@ class ReportService {
194
194
  getReportData(report, includePrimaryKey = false) {
195
195
  var _a, _b;
196
196
  const columns = this.GetReportColumnsForReport(report, includePrimaryKey).map((column) => ({
197
- ColumnId: column.ColumnId,
198
- FriendlyName: column.FriendlyName,
199
- DataType: column.DataType,
197
+ columnId: column.columnId,
198
+ friendlyName: column.friendlyName,
199
+ dataType: column.dataType,
200
200
  }));
201
201
  if (ArrayExtensions_1.default.IsNullOrEmpty(columns) &&
202
202
  report.ReportRowScope !== Enums_1.ReportRowScope.CustomRows) {
203
203
  return { columns: [], rows: [] };
204
204
  }
205
205
  const data = { columns, rows: [] };
206
- const columnIds = columns.map((column) => column.ColumnId);
206
+ const columnIds = columns.map((column) => column.columnId);
207
207
  switch (report.ReportRowScope) {
208
208
  case Enums_1.ReportRowScope.AllRows:
209
209
  this.adaptable.forAllRowNodesDo((rowNode) => {
@@ -240,7 +240,7 @@ class ReportService {
240
240
  const rowPrimaryKeyValue = this.adaptable.getPrimaryKeyValueFromRowNode(rowNode);
241
241
  const selectedRowCells = selectedCellsByPrimaryKey[rowPrimaryKeyValue];
242
242
  if (selectedRowCells) {
243
- const selectedRowColumnIds = selectedRowCells.map((rowCell) => rowCell.columnId);
243
+ const selectedRowColumnIds = selectedRowCells.map((rowCell) => rowCell.column.columnId);
244
244
  const selectedColumnIds = columnIds.filter((columnId) => selectedRowColumnIds.includes(columnId));
245
245
  const row = this.getRowObjectForColumnIds(rowNode, selectedColumnIds);
246
246
  if (includePrimaryKey) {
@@ -275,8 +275,8 @@ class ReportService {
275
275
  }
276
276
  convertReportDataToArray(reportData) {
277
277
  return [
278
- reportData.columns.map((column) => column.FriendlyName),
279
- ...reportData.rows.map((row) => reportData.columns.map((column) => row[column.ColumnId])),
278
+ reportData.columns.map((column) => column.friendlyName),
279
+ ...reportData.rows.map((row) => reportData.columns.map((column) => row[column.columnId])),
280
280
  ];
281
281
  }
282
282
  getRowObjectForColumnIds(rowNode, columnIds) {
@@ -287,6 +287,7 @@ class ReportService {
287
287
  }
288
288
  PublishLiveLiveDataChangedEvent(reportDestination, liveDataTrigger, liveReport) {
289
289
  const liveDataChangedInfo = {
290
+ adaptableApi: this.adaptable.api,
290
291
  reportDestination: reportDestination,
291
292
  liveDataTrigger: liveDataTrigger,
292
293
  liveReport: liveReport,
@@ -329,7 +330,7 @@ class ReportService {
329
330
  return type === 'rawValue'
330
331
  ? cellRawValue
331
332
  : // type === formattedValue
332
- this.adaptable.getFormattedValueFromRawValue(cellRawValue, columnId);
333
+ this.adaptable.getDisplayValueFromRawValue(columnId, cellRawValue);
333
334
  }
334
335
  computeCellExportValueFormat(columnType) {
335
336
  if (this.adaptable.adaptableOptions.exportOptions.exportFormatType === 'rawValue' ||
@@ -18,7 +18,7 @@ class ValidationService {
18
18
  }
19
19
  let editingRules = this.adaptable.api.alertApi
20
20
  .getAlertDefinitionsWithPreventEdit()
21
- .filter((v) => this.adaptable.api.scopeApi.isColumnInScope(this.adaptable.api.columnApi.getColumnFromId(dataChangedInfo.columnId), v.Scope));
21
+ .filter((v) => this.adaptable.api.scopeApi.isColumnInScope(dataChangedInfo.column, v.Scope));
22
22
  let failedValidations = [];
23
23
  if (ArrayExtensions_1.ArrayExtensions.IsNotEmpty(editingRules)) {
24
24
  editingRules.forEach((alertDefinition) => {
@@ -55,13 +55,12 @@ class ValidationService {
55
55
  return true;
56
56
  }
57
57
  IsAlertDefinitionTriggered(alertDefinition, dataChangedEvent) {
58
- const column = this.adaptable.api.columnApi.getColumnFromId(dataChangedEvent.columnId);
59
58
  return this.adaptable.api.predicateApi.handlePredicate(alertDefinition.Rule.Predicate, {
60
59
  value: dataChangedEvent.newValue,
61
60
  oldValue: dataChangedEvent.oldValue,
62
- displayValue: this.adaptable.getDisplayValueFromRowNode(dataChangedEvent.rowNode, dataChangedEvent.columnId),
61
+ displayValue: this.adaptable.getDisplayValueFromRowNode(dataChangedEvent.rowNode, dataChangedEvent.column.columnId),
63
62
  node: dataChangedEvent.rowNode,
64
- column,
63
+ column: dataChangedEvent.column,
65
64
  }, false);
66
65
  }
67
66
  performServerValidation(dataChangedInfo, config) {
@@ -82,7 +81,7 @@ class ValidationService {
82
81
  if (!row) {
83
82
  return;
84
83
  }
85
- row[(_b = this.adaptable.api.columnApi.getVendorGridColumnFieldForColumn(dataChangedInfo.columnId)) !== null && _b !== void 0 ? _b : dataChangedInfo.columnId] = validationResult.NewValue;
84
+ row[(_b = this.adaptable.api.columnApi.getAgGridColumnFieldForAdaptableColumn(dataChangedInfo.column.columnId)) !== null && _b !== void 0 ? _b : dataChangedInfo.column.columnId] = validationResult.NewValue;
86
85
  this.adaptable.api.gridApi.updateGridData([row]);
87
86
  if (StringExtensions_1.default.IsNotNullOrEmpty(validationResult.ValidationMessage) &&
88
87
  this.adaptable.adaptableOptions.editOptions.displayServerValidationMessages) {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Calls the callback if the promise does not resolve in a amount of time.
3
+ *
4
+ * @param promise
5
+ * @param callback Called if promise does not resolve in the time defined by 'delay'
6
+ * @param delay Time after which if the promise was not resolved the callback (fn) is called.
7
+ */
8
+ export declare const runIfNotResolvedIn: <T>(promise: Promise<T>, callback: () => void, delay?: number) => Promise<T>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runIfNotResolvedIn = void 0;
4
+ /**
5
+ * Calls the callback if the promise does not resolve in a amount of time.
6
+ *
7
+ * @param promise
8
+ * @param callback Called if promise does not resolve in the time defined by 'delay'
9
+ * @param delay Time after which if the promise was not resolved the callback (fn) is called.
10
+ */
11
+ exports.runIfNotResolvedIn = async (promise, callback, delay = 100) => {
12
+ let isFulfilled = false;
13
+ promise === null || promise === void 0 ? void 0 : promise.then(() => {
14
+ isFulfilled = true;
15
+ });
16
+ (async () => {
17
+ await new Promise((resolve) => setTimeout(resolve, delay));
18
+ if (!isFulfilled) {
19
+ callback();
20
+ }
21
+ })();
22
+ return promise;
23
+ };
@@ -15,9 +15,9 @@ const ChartEnums_1 = require("../PredefinedConfig/Common/ChartEnums");
15
15
  const AdaptableLoadingScreen_1 = require("./Components/Popups/AdaptableLoadingScreen");
16
16
  const Toastify_1 = require("../components/Toastify");
17
17
  const renderWithAdaptableContext_1 = require("./renderWithAdaptableContext");
18
- const ProgressIndicator_1 = require("./Export/ProgressIndicator");
19
18
  const License_1 = require("./License");
20
19
  const ExportCustomDestinationFormPopups_1 = require("./Export/ExportCustomDestinationFormPopups");
20
+ const ProgressIndicator_1 = require("../components/ProgressIndicator/ProgressIndicator");
21
21
  class AdaptableView extends React.Component {
22
22
  render() {
23
23
  var _a, _b, _c, _d, _e;
@@ -1,7 +1,8 @@
1
+ import * as React from 'react';
1
2
  import { ConnectedComponent } from 'react-redux';
2
3
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
3
4
  export declare const AdaptableViewFactory: IAdaptableViewFactory;
4
- export declare const AdaptableViewPanelFactory: Map<AdaptableModule, ConnectedComponent<any, any>>;
5
+ export declare const AdaptableViewPanelFactory: Map<AdaptableModule, React.FunctionComponent<any> | ConnectedComponent<any, any>>;
5
6
  export interface IAdaptableViewFactory {
6
7
  [key: string]: any;
7
8
  }
@@ -44,6 +44,7 @@ const ThemeViewPanel_1 = require("./Theme/ThemeViewPanel");
44
44
  const DataSourceViewPanel_1 = require("./DataSource/DataSourceViewPanel");
45
45
  const DataChangeHistoryPopup_1 = require("./DataChangeHistory/DataChangeHistoryPopup");
46
46
  const DataChangeHistoryViewPanel_1 = require("./DataChangeHistory/DataChangeHistoryViewPanel");
47
+ const StateManagementViewPanel_1 = require("./StateManagement/StateManagementViewPanel");
47
48
  exports.AdaptableViewFactory = {
48
49
  ExpandedQueryPopup: ExpandedQueryPopup_1.ExpandedQueryPopup,
49
50
  AlertPopup: AlertPopup_1.AlertPopup,
@@ -88,4 +89,5 @@ exports.AdaptableViewPanelFactory = new Map([
88
89
  [ModuleConstants.ThemeModuleId, ThemeViewPanel_1.ThemeViewPanelControl],
89
90
  [ModuleConstants.DataSourceModuleId, DataSourceViewPanel_1.DataSourceViewPanelControl],
90
91
  [ModuleConstants.DataChangeHistoryModuleId, DataChangeHistoryViewPanel_1.DataChangeHistoryViewPanelControl],
92
+ [ModuleConstants.StateManagementModuleId, StateManagementViewPanel_1.StateManagementViewPanel],
91
93
  ]);