@adaptabletools/adaptable 12.2.2 → 14.0.0-canary.0

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 (449) hide show
  1. package/base.css +2 -2
  2. package/bundle.cjs.js +419 -143
  3. package/index.css +2 -2
  4. package/package.json +3 -3
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +3 -2
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
  9. package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
  10. package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -5
  11. package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
  12. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
  13. package/src/AdaptableOptions/ColumnOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/EntitlementOptions.d.ts +15 -0
  15. package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
  17. package/src/Api/ChartingApi.d.ts +1 -1
  18. package/src/Api/ColumnApi.d.ts +1 -1
  19. package/src/Api/Events/ActionRowSubmitted.d.ts +1 -1
  20. package/src/Api/Events/AdaptableReady.d.ts +1 -1
  21. package/src/Api/Events/GridDataChanged.d.ts +1 -1
  22. package/src/Api/ExportApi.d.ts +5 -1
  23. package/src/Api/FilterApi.d.ts +1 -1
  24. package/src/Api/FinanceApi.d.ts +1 -1
  25. package/src/Api/FormatColumnApi.d.ts +1 -1
  26. package/src/Api/FreeTextColumnApi.d.ts +1 -1
  27. package/src/Api/GridApi.d.ts +4 -3
  28. package/src/Api/Implementation/ActionApiImpl.js +5 -5
  29. package/src/Api/Implementation/AlertApiImpl.js +9 -9
  30. package/src/Api/Implementation/ApiBase.js +3 -3
  31. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -1
  32. package/src/Api/Implementation/CellSummaryApiImpl.js +5 -2
  33. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  34. package/src/Api/Implementation/ChartingApiImpl.js +1 -1
  35. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  36. package/src/Api/Implementation/ColumnApiImpl.js +1 -1
  37. package/src/Api/Implementation/ConfigApiImpl.js +2 -2
  38. package/src/Api/Implementation/DashboardApiImpl.js +2 -2
  39. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -5
  40. package/src/Api/Implementation/ExportApiImpl.js +2 -2
  41. package/src/Api/Implementation/FilterApiImpl.d.ts +1 -1
  42. package/src/Api/Implementation/FilterApiImpl.js +6 -6
  43. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
  44. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
  45. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  46. package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
  47. package/src/Api/Implementation/GridApiImpl.js +12 -12
  48. package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/InternalApiImpl.js +5 -5
  50. package/src/Api/Implementation/LayoutApiImpl.js +12 -12
  51. package/src/Api/Implementation/PredicateApiImpl.js +3 -3
  52. package/src/Api/Implementation/QueryApiImpl.js +6 -6
  53. package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -5
  54. package/src/Api/Implementation/ScopeApiImpl.js +3 -3
  55. package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
  56. package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
  57. package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
  58. package/src/Api/Implementation/SystemStatusApiImpl.js +9 -9
  59. package/src/Api/Implementation/TeamSharingApiImpl.js +10 -10
  60. package/src/Api/InternalApi.d.ts +1 -1
  61. package/src/Api/StatusBarApi.d.ts +1 -1
  62. package/src/PredefinedConfig/ChartingState.d.ts +1 -1
  63. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +1 -1
  64. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
  65. package/src/PredefinedConfig/Common/AdaptablePredicate.js +17 -17
  66. package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +1 -1
  67. package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
  68. package/src/PredefinedConfig/Selection/GridCell.d.ts +1 -1
  69. package/src/PredefinedConfig/Selection/GridRow.d.ts +1 -1
  70. package/src/PredefinedConfig/Uuid.js +1 -1
  71. package/src/Redux/ActionsReducers/AlertRedux.js +2 -2
  72. package/src/Redux/ActionsReducers/ChartingRedux.d.ts +1 -1
  73. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +2 -2
  74. package/src/Redux/ActionsReducers/CustomSortRedux.js +2 -2
  75. package/src/Redux/ActionsReducers/FlashingCellRedux.js +2 -2
  76. package/src/Redux/ActionsReducers/FormatColumnRedux.js +2 -2
  77. package/src/Redux/ActionsReducers/GridRedux.d.ts +1 -1
  78. package/src/Redux/ActionsReducers/PlusMinusRedux.js +2 -2
  79. package/src/Redux/ActionsReducers/ScheduleRedux.js +10 -10
  80. package/src/Redux/ActionsReducers/ShortcutRedux.js +2 -2
  81. package/src/Redux/ActionsReducers/SystemRedux.js +2 -2
  82. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +8 -8
  83. package/src/Redux/Store/AdaptableReduxMerger.js +9 -9
  84. package/src/Redux/Store/AdaptableStore.js +23 -23
  85. package/src/Strategy/AlertModule.js +6 -6
  86. package/src/Strategy/CalculatedColumnModule.js +4 -4
  87. package/src/Strategy/ConditionalStyleModule.js +8 -8
  88. package/src/Strategy/CustomSortModule.js +3 -3
  89. package/src/Strategy/DashboardModule.js +1 -1
  90. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  91. package/src/Strategy/DataSetModule.js +2 -2
  92. package/src/Strategy/ExportModule.js +4 -4
  93. package/src/Strategy/FilterModule.js +1 -1
  94. package/src/Strategy/FlashingCellModule.js +7 -7
  95. package/src/Strategy/FormatColumnModule.js +8 -8
  96. package/src/Strategy/FreeTextColumnModule.js +1 -1
  97. package/src/Strategy/LayoutModule.js +2 -2
  98. package/src/Strategy/PlusMinusModule.js +3 -3
  99. package/src/Strategy/QueryModule.js +1 -1
  100. package/src/Strategy/ScheduleModule.js +2 -2
  101. package/src/Strategy/ShortcutModule.js +3 -3
  102. package/src/Strategy/StatusBarModule.d.ts +1 -1
  103. package/src/Strategy/TeamSharingModule.js +6 -6
  104. package/src/Strategy/ToolPanelModule.js +4 -4
  105. package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +2 -2
  106. package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -1
  107. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  108. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  109. package/src/Utilities/Constants/GeneralConstants.js +2 -2
  110. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
  111. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -3
  112. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
  113. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +35 -35
  114. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +18 -18
  115. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +10 -10
  116. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +48 -48
  117. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +19 -19
  118. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  119. package/src/Utilities/Helpers/AdaptableHelper.js +5 -5
  120. package/src/Utilities/Helpers/DateHelper.js +9 -9
  121. package/src/Utilities/Helpers/FormatHelper.js +2 -2
  122. package/src/Utilities/Helpers/Helper.js +3 -9
  123. package/src/Utilities/Helpers/LoggingHelper.js +1 -1
  124. package/src/Utilities/Helpers/StyleHelper.js +1 -1
  125. package/src/Utilities/Interface/Preview.d.ts +1 -1
  126. package/src/Utilities/ObjectFactory.d.ts +1 -1
  127. package/src/Utilities/ObjectFactory.js +30 -30
  128. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
  129. package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
  130. package/src/Utilities/Services/AlertService.js +3 -3
  131. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -1
  132. package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -3
  133. package/src/Utilities/Services/DataService.js +1 -1
  134. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -1
  135. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  136. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
  137. package/src/Utilities/Services/Interface/IRowEditService.d.ts +1 -1
  138. package/src/Utilities/Services/LicenseService.js +1 -1
  139. package/src/Utilities/Services/MetamodelService.js +3 -3
  140. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
  141. package/src/Utilities/Services/QueryLanguageService.js +2 -2
  142. package/src/Utilities/Services/ReportService.d.ts +1 -1
  143. package/src/Utilities/Services/ReportService.js +7 -7
  144. package/src/Utilities/Services/RowEditService.d.ts +1 -1
  145. package/src/Utilities/Services/TeamSharingService.js +1 -1
  146. package/src/Utilities/license/decode.js +1 -1
  147. package/src/View/AdaptableView.js +2 -2
  148. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +1 -1
  149. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +10 -10
  150. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +1 -1
  151. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +3 -3
  152. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +1 -1
  153. package/src/View/AdaptableWizardView/Wizard.js +6 -6
  154. package/src/View/AdaptableWizardView/helper.d.ts +1 -1
  155. package/src/View/AdaptableWizardView/helper.js +1 -1
  156. package/src/View/Alert/ActiveAlertsPanel.js +2 -2
  157. package/src/View/Alert/AlertEmptyView.js +1 -1
  158. package/src/View/Alert/AlertEntityRow.js +1 -1
  159. package/src/View/Alert/AlertStatusSubPanel.js +3 -3
  160. package/src/View/Alert/AlertViewPanel.js +2 -2
  161. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +5 -5
  162. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
  163. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
  164. package/src/View/Alert/Wizard/AlertWizard.js +4 -4
  165. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
  166. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  167. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  168. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
  169. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  170. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
  171. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +3 -3
  172. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
  173. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -4
  174. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +5 -5
  175. package/src/View/CellSummary/CellSummaryPopup.js +1 -1
  176. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
  177. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
  178. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
  179. package/src/View/ColorPicker.d.ts +1 -1
  180. package/src/View/ColorPicker.js +2 -2
  181. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  182. package/src/View/Components/AdaptableDateInput/index.js +4 -4
  183. package/src/View/Components/AdaptableInput/index.js +1 -1
  184. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -4
  185. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
  186. package/src/View/Components/AdaptableObjectRow/index.js +1 -1
  187. package/src/View/Components/Buttons/ButtonBase/index.js +1 -1
  188. package/src/View/Components/Buttons/ButtonDelete.js +1 -1
  189. package/src/View/Components/ColumnSelector/index.js +1 -1
  190. package/src/View/Components/EntityRulesEditor/index.js +3 -3
  191. package/src/View/Components/ExpressionWizard.js +1 -1
  192. package/src/View/Components/ExternalRenderer.js +1 -1
  193. package/src/View/Components/FilterForm/FilterForm.js +7 -7
  194. package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -4
  195. package/src/View/Components/FilterForm/QuickFilterForm.js +13 -13
  196. package/src/View/Components/ListBox/DualListBoxEditor.js +10 -10
  197. package/src/View/Components/ModuleValueSelector/index.js +6 -6
  198. package/src/View/Components/NewScopeComponent.js +3 -3
  199. package/src/View/Components/Panels/PanelToolPanel/index.js +1 -1
  200. package/src/View/Components/Panels/PanelWithImage.js +1 -1
  201. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +1 -1
  202. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +3 -3
  203. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +8 -8
  204. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -4
  205. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +3 -3
  206. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
  207. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
  208. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
  209. package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
  210. package/src/View/Components/Popups/AdaptablePopupPrompt.js +1 -1
  211. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
  212. package/src/View/Components/Popups/FormPopups/FormPopups.js +5 -5
  213. package/src/View/Components/Popups/Utilities.js +5 -5
  214. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +6 -6
  215. package/src/View/Components/RangesComponent.js +2 -2
  216. package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
  217. package/src/View/Components/TagValueSelector/index.js +2 -2
  218. package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +2 -2
  219. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -6
  220. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -6
  221. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
  222. package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
  223. package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +6 -4
  224. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  225. package/src/View/Components/ValueSelector/index.js +7 -7
  226. package/src/View/Components/WizardSummaryRow.js +1 -1
  227. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
  228. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
  229. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -2
  230. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
  231. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -2
  232. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +3 -3
  233. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  234. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
  235. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +9 -9
  236. package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
  237. package/src/View/Dashboard/CustomDashboardButton.js +2 -2
  238. package/src/View/Dashboard/CustomToolbarWrapper.js +7 -7
  239. package/src/View/Dashboard/Dashboard.js +4 -4
  240. package/src/View/Dashboard/DashboardPopup.js +1 -1
  241. package/src/View/Dashboard/DashboardViewPanel.js +1 -1
  242. package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
  243. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +7 -9
  244. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -7
  245. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +9 -9
  246. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  247. package/src/View/DataSet/DataSetSelector.js +1 -1
  248. package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
  249. package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
  250. package/src/View/DataSet/DataSetViewPanel.js +1 -1
  251. package/src/View/Export/ExportSelector.js +1 -1
  252. package/src/View/Export/ExportViewPanel.d.ts +2 -1
  253. package/src/View/Export/ExportViewPanel.js +14 -5
  254. package/src/View/Export/ReportExportDropdown.js +3 -3
  255. package/src/View/Export/Wizard/NewReportWizard.js +4 -4
  256. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -2
  257. package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -2
  258. package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -3
  259. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  260. package/src/View/Filter/FilterSummary.d.ts +1 -1
  261. package/src/View/Filter/FilterSummary.js +2 -2
  262. package/src/View/Filter/FilterViewPanel.d.ts +1 -1
  263. package/src/View/Filter/FilterViewPanel.js +3 -3
  264. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
  265. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
  266. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +3 -3
  267. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
  268. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +7 -7
  269. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  270. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -5
  271. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
  272. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
  273. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -5
  274. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +6 -6
  275. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
  276. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -5
  277. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +4 -4
  278. package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -2
  279. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -4
  280. package/src/View/Layout/EditCurrentLayoutButton.js +1 -1
  281. package/src/View/Layout/LayoutCloneButton.js +1 -1
  282. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  283. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
  284. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  285. package/src/View/Layout/LayoutViewPanel.js +2 -2
  286. package/src/View/Layout/SaveLayoutButton.js +3 -3
  287. package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
  288. package/src/View/Layout/Wizard/LayoutWizard.js +5 -5
  289. package/src/View/Layout/Wizard/sections/AggregationsSection.js +7 -7
  290. package/src/View/Layout/Wizard/sections/ColumnsSection.js +8 -8
  291. package/src/View/Layout/Wizard/sections/FilterSection.js +5 -5
  292. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +5 -5
  293. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +5 -5
  294. package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
  295. package/src/View/Layout/Wizard/sections/SortSection.js +6 -6
  296. package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
  297. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
  298. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
  299. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
  300. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +3 -3
  301. package/src/View/Query/EditCurrentQueryButton.js +1 -1
  302. package/src/View/Query/ExpandedQueryPopup.js +3 -3
  303. package/src/View/Query/QueryViewPanel.d.ts +1 -1
  304. package/src/View/Query/QueryViewPanel.js +1 -1
  305. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -3
  306. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
  307. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
  308. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  309. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +3 -3
  310. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
  311. package/src/View/QuickSearch/QuickSearchViewPanel.js +2 -2
  312. package/src/View/QuickSearch/useQuickSearchDebounced.js +3 -3
  313. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
  314. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
  315. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +2 -2
  316. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  317. package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -2
  318. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
  319. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
  320. package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -4
  321. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  322. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
  323. package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
  324. package/src/View/StateManagement/StateManagementViewPanel.js +1 -1
  325. package/src/View/StateManagement/components/ExportDropdown.js +2 -2
  326. package/src/View/StateManagement/components/LoadButton.js +1 -1
  327. package/src/View/StateManagement/handleExportState.js +1 -1
  328. package/src/View/StatusBar/AdaptableStatusBar.js +5 -5
  329. package/src/View/StatusBar/StatusBarPopup.js +2 -2
  330. package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -1
  331. package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
  332. package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
  333. package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
  334. package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
  335. package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
  336. package/src/View/TeamSharing/SharedEntityObjectView.js +2 -2
  337. package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
  338. package/src/View/Theme/ThemePopup.js +1 -1
  339. package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
  340. package/src/View/Theme/ThemeViewPanel.js +2 -2
  341. package/src/View/Wizard/AdaptableWizard.js +1 -1
  342. package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
  343. package/src/View/Wizard/OnePageAdaptableWizard.js +5 -5
  344. package/src/View/Wizard/OnePageWizards.js +14 -12
  345. package/src/View/Wizard/useKeyboardNavigation.js +1 -1
  346. package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
  347. package/src/agGrid/ActionColumnRenderer.js +3 -3
  348. package/src/agGrid/Adaptable.d.ts +19 -11
  349. package/src/agGrid/Adaptable.js +157 -160
  350. package/src/agGrid/CheckboxRenderer.d.ts +1 -1
  351. package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
  352. package/src/agGrid/FilterWrapper.js +1 -1
  353. package/src/agGrid/FloatingFilterWrapper.js +1 -1
  354. package/src/agGrid/GroupCellRenderer.d.ts +1 -1
  355. package/src/agGrid/GroupCellRenderer.js +2 -2
  356. package/src/agGrid/PercentBarRenderer.js +1 -1
  357. package/src/agGrid/agGridHelper.d.ts +1 -1
  358. package/src/agGrid/agGridHelper.js +12 -13
  359. package/src/agGrid/agGridMenuHelper.d.ts +1 -1
  360. package/src/agGrid/agGridMenuHelper.js +5 -5
  361. package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
  362. package/src/agGrid/createAgStatusPanelComponent.js +1 -1
  363. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +3 -3
  364. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
  365. package/src/agGrid/editors/AdaptableDateEditor/index.js +5 -5
  366. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
  367. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -1
  368. package/src/agGrid/editors/AdaptableNumberEditor/index.js +4 -4
  369. package/src/agGrid/weightedAverage.d.ts +1 -1
  370. package/src/agGrid/weightedAverage.js +3 -3
  371. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
  372. package/src/components/AdaptableIconComponent/index.js +14 -17
  373. package/src/components/CheckBox/index.js +3 -3
  374. package/src/components/CodeBlock/index.js +1 -1
  375. package/src/components/Dashboard/Dashboard.js +8 -8
  376. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  377. package/src/components/Datepicker/Caption.js +7 -7
  378. package/src/components/Datepicker/CaptionLabel.js +4 -4
  379. package/src/components/Datepicker/index.d.ts +1 -1
  380. package/src/components/Datepicker/index.js +10 -10
  381. package/src/components/Dialog/index.js +9 -9
  382. package/src/components/Dialog/useIsOpen.js +1 -1
  383. package/src/components/Dropdown/index.js +6 -6
  384. package/src/components/DropdownButton/index.js +7 -7
  385. package/src/components/DropdownButton/renderItem.js +1 -1
  386. package/src/components/DropdownButton/useExpanded.js +4 -4
  387. package/src/components/EllipsisContainer/index.js +8 -8
  388. package/src/components/EmptyContent/index.js +1 -1
  389. package/src/components/ErrorBox/index.js +1 -1
  390. package/src/components/ExpressionEditor/BaseEditorInput.js +20 -7
  391. package/src/components/ExpressionEditor/EditorButton.js +1 -1
  392. package/src/components/ExpressionEditor/EditorContext.js +2 -2
  393. package/src/components/ExpressionEditor/EditorInput.js +2 -2
  394. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +9 -9
  395. package/src/components/ExpressionEditor/NamedQueryContext.js +2 -2
  396. package/src/components/ExpressionEditor/index.js +8 -8
  397. package/src/components/FieldWrap/index.js +1 -1
  398. package/src/components/FileDroppable/index.js +4 -4
  399. package/src/components/FormLayout/index.js +4 -4
  400. package/src/components/HelpBlock/index.js +1 -1
  401. package/src/components/Input/index.d.ts +1 -1
  402. package/src/components/Input/index.js +1 -1
  403. package/src/components/List/GridList/index.js +1 -1
  404. package/src/components/List/ListGroup/index.js +1 -1
  405. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  406. package/src/components/List/ListGroupItem/index.js +2 -2
  407. package/src/components/Modal/Backdrop.js +5 -5
  408. package/src/components/Modal/index.js +5 -5
  409. package/src/components/NotifyResize/index.js +1 -1
  410. package/src/components/OverlayTrigger/Overlay.js +15 -15
  411. package/src/components/OverlayTrigger/getOverlayStyle.js +1 -1
  412. package/src/components/OverlayTrigger/index.js +24 -24
  413. package/src/components/OverlayTrigger/useAgGridClassName.js +2 -2
  414. package/src/components/Panel/index.js +3 -3
  415. package/src/components/PopupWithFooter.d.ts +1 -1
  416. package/src/components/ProgressIndicator/ProgressIndicator.js +5 -5
  417. package/src/components/Radio/index.js +3 -3
  418. package/src/components/ResizeObserver/index.js +10 -10
  419. package/src/components/SelectableList/index.js +4 -4
  420. package/src/components/SimpleButton/index.js +3 -3
  421. package/src/components/StylePreview.js +1 -1
  422. package/src/components/Table/index.js +1 -1
  423. package/src/components/Tabs/index.js +6 -7
  424. package/src/components/Tag/Tag.js +1 -1
  425. package/src/components/Textarea/index.d.ts +1 -1
  426. package/src/components/Textarea/index.js +1 -1
  427. package/src/components/ToggleButton/index.js +1 -1
  428. package/src/components/WindowModal/WindowModal.js +4 -4
  429. package/src/components/WindowModal/useStacking.js +1 -1
  430. package/src/components/WizardPanel/index.js +1 -1
  431. package/src/components/icons/DefaultIcon.js +2 -2
  432. package/src/components/icons/index.js +1 -1
  433. package/src/components/utils/batchUpdate.js +1 -1
  434. package/src/components/utils/useAutoFocus.js +2 -2
  435. package/src/components/utils/useContainerScrollObserver/index.js +7 -7
  436. package/src/components/utils/useDraggable.js +5 -5
  437. package/src/components/utils/useLatest.js +2 -2
  438. package/src/components/utils/usePrevious.js +2 -2
  439. package/src/components/utils/usePropState.js +1 -1
  440. package/src/components/utils/useProperty.js +2 -2
  441. package/src/components/utils/useRerender.js +2 -2
  442. package/src/components/utils/useSelectionRange.js +3 -3
  443. package/src/components/utils/uuid.js +1 -1
  444. package/src/metamodel/adaptable.metamodel.d.ts +18 -0
  445. package/src/metamodel/adaptable.metamodel.js +1 -1
  446. package/src/parser/src/index.js +1 -1
  447. package/src/types.d.ts +1 -0
  448. package/version.d.ts +1 -1
  449. package/version.js +1 -1
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdaptableNoCodeWizard = exports.Adaptable = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const all_modules_1 = require("@ag-grid-community/all-modules");
5
+ const core_1 = require("@ag-grid-community/core");
6
6
  const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
7
7
  const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
8
8
  const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
@@ -17,6 +17,7 @@ const AdaptableStore_1 = require("../Redux/Store/AdaptableStore");
17
17
  const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
18
18
  const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
19
19
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
20
+ const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
20
21
  const DefaultAdaptableOptions_1 = require("../Utilities/Defaults/DefaultAdaptableOptions");
21
22
  const Emitter_1 = tslib_1.__importDefault(require("../Utilities/Emitter"));
22
23
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
@@ -55,7 +56,6 @@ const waitForCondition_1 = require("../Utilities/waitForCondition");
55
56
  const publishTimestamp_1 = tslib_1.__importDefault(require("../../publishTimestamp"));
56
57
  const MetamodelService_1 = require("../Utilities/Services/MetamodelService");
57
58
  const DocumentationLinkConstants_1 = require("../Utilities/Constants/DocumentationLinkConstants");
58
- const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
59
59
  const CheckboxRenderer_1 = require("./CheckboxRenderer");
60
60
  const DateHelper_1 = require("../Utilities/Helpers/DateHelper");
61
61
  const StatusBarState_1 = require("../PredefinedConfig/StatusBarState");
@@ -65,7 +65,6 @@ const RowEditService_1 = require("../Utilities/Services/RowEditService");
65
65
  const weightedAverage_1 = require("./weightedAverage");
66
66
  const AggregationColumns_1 = require("../PredefinedConfig/Common/AggregationColumns");
67
67
  const tinycolor = require('tinycolor2');
68
- all_modules_1.ModuleRegistry.registerModules(all_modules_1.AllCommunityModules);
69
68
  const GROUP_PATH_SEPARATOR = '/';
70
69
  // IMPORTANT - we need colId to be set in order for safeSetColDefs to work correctly
71
70
  const assignColId = (colDef) => {
@@ -80,13 +79,13 @@ const assignColId = (colDef) => {
80
79
  }
81
80
  else {
82
81
  if (!colDef.colId) {
83
- LoggingHelper_1.LogAdaptableWarning('A column is missing the colId - please check ', colDef, 'Either pass a "field" property or a "colId" property.');
82
+ (0, LoggingHelper_1.LogAdaptableWarning)('A column is missing the colId - please check ', colDef, 'Either pass a "field" property or a "colId" property.');
84
83
  }
85
84
  }
86
85
  };
87
- const RowNodeProto = all_modules_1.RowNode.prototype;
86
+ const RowNodeProto = core_1.RowNode.prototype;
88
87
  const RowNode_dispatchLocalEvent = RowNodeProto.dispatchLocalEvent;
89
- const GridApi_setColumnDefs = all_modules_1.GridApi.prototype.setColumnDefs;
88
+ const GridApi_setColumnDefs = core_1.GridApi.prototype.setColumnDefs;
90
89
  /**
91
90
  * AgGrid does not expose Events.EVENT_ROW_DATA_CHANGED
92
91
  * so we have to override `dispatchLocalEvent`
@@ -96,11 +95,11 @@ RowNodeProto.dispatchLocalEvent = function (event) {
96
95
  const node = event.node;
97
96
  const result = RowNode_dispatchLocalEvent.apply(this, arguments);
98
97
  const extractGridApiFromRowNode = (rowNode) => {
99
- var _a, _b;
98
+ var _a;
100
99
  // starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
101
- const rowNodeApi = (_b = (_a = rowNode) === null || _a === void 0 ? void 0 : _a.beans) === null || _b === void 0 ? void 0 : _b.gridApi;
100
+ const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
102
101
  if (!rowNodeApi) {
103
- LoggingHelper_1.LogAdaptableWarning(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
102
+ (0, LoggingHelper_1.LogAdaptableWarning)(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
104
103
  }
105
104
  return rowNodeApi;
106
105
  };
@@ -170,7 +169,6 @@ class Adaptable {
170
169
  };
171
170
  this._adaptableReady = false;
172
171
  this.isDestroyed = false;
173
- this.agGridModules = [];
174
172
  this.isPluginLoaded = (pluginId) => {
175
173
  const plugins = this.adaptableOptions.plugins || [];
176
174
  for (let i = 0, len = plugins.length; i < len; i++) {
@@ -184,34 +182,34 @@ class Adaptable {
184
182
  this.isAgGridReady = () => {
185
183
  var _a, _b;
186
184
  const waitTimeout = (_b = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.agGridContainerWaitTimeout) !== null && _b !== void 0 ? _b : 60000;
187
- return waitForCondition_1.waitForCondition(() => !!this.gridOptions.api, waitTimeout);
185
+ return (0, waitForCondition_1.waitForCondition)(() => !!this.gridOptions.api, waitTimeout);
188
186
  };
189
187
  // debounced methods
190
- this.debouncedSetColumnIntoStore = debounce_1.default(() => {
188
+ this.debouncedSetColumnIntoStore = (0, debounce_1.default)(() => {
191
189
  if (this.isDestroyed || !this.gridOptions.api) {
192
190
  return;
193
191
  }
194
192
  this.updateColumnsIntoStore();
195
193
  }, GeneralConstants_1.HALF_SECOND);
196
- this.debouncedSaveGridLayout = debounce_1.default(() => {
194
+ this.debouncedSaveGridLayout = (0, debounce_1.default)(() => {
197
195
  if (this.isDestroyed || !this.gridOptions.api) {
198
196
  return;
199
197
  }
200
198
  this.updateLayoutFromGrid();
201
199
  }, GeneralConstants_1.HALF_SECOND);
202
- this.debouncedSetSelectedCells = debounce_1.default(() => {
200
+ this.debouncedSetSelectedCells = (0, debounce_1.default)(() => {
203
201
  if (this.isDestroyed || !this.gridOptions.api) {
204
202
  return;
205
203
  }
206
204
  this.setSelectedCells();
207
205
  }, 250);
208
- this.debouncedSetSelectedRows = debounce_1.default(() => {
206
+ this.debouncedSetSelectedRows = (0, debounce_1.default)(() => {
209
207
  if (this.isDestroyed || !this.gridOptions.api) {
210
208
  return;
211
209
  }
212
210
  this.setSelectedRows();
213
211
  }, GeneralConstants_1.HALF_SECOND);
214
- this.debouncedFilterGrid = debounce_1.default((callback = () => { }) => {
212
+ this.debouncedFilterGrid = (0, debounce_1.default)((callback = () => { }) => {
215
213
  if (this.isDestroyed || !this.gridOptions.api) {
216
214
  return;
217
215
  }
@@ -248,7 +246,7 @@ class Adaptable {
248
246
  };
249
247
  this.getColumnDefsWithCorrectVisibility = () => {
250
248
  const visibleColIds = this.api.layoutApi.getCurrentVisibleColumnIdsMap();
251
- return this.gridOptions.columnApi.getAllColumns().map((c) => {
249
+ return this.gridOptions.columnApi.getColumns().map((c) => {
252
250
  const colDef = c.getColDef();
253
251
  const colId = c.getColId();
254
252
  colDef.colId = colId;
@@ -256,35 +254,35 @@ class Adaptable {
256
254
  return colDef;
257
255
  });
258
256
  };
259
- // TODO continue here
260
- // - group case branches in adaptablestore
261
- // - safeSetColDefs
262
- // - test custom sort in row groups !!!
263
- // - test edit lookup columns
264
- //TODO use the list above to return a better typed object
265
- this.getPreviousColDefInfo = (colDef) => {
266
- const def = colDef;
267
- return def.__ab || {};
268
- };
269
257
  // (global as any).adaptable = this;
270
258
  }
271
259
  get isLive() {
272
260
  return this.isInitialised && !this.isDestroyed;
273
261
  }
274
- static init(adaptableOptions) {
262
+ /**
263
+ * Initializer for Adaptable
264
+ *
265
+ * @param adaptableOptions the AdaptableOptions
266
+ * @param runtimeConfig the list of all the provided AG Grid modules (which will be passed to the underlying AG Grid instance)
267
+ * @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
268
+ */
269
+ static init(adaptableOptions, runtimeConfig) {
270
+ var _a;
271
+ if (!((_a = runtimeConfig === null || runtimeConfig === void 0 ? void 0 : runtimeConfig.agGridModules) === null || _a === void 0 ? void 0 : _a.length)) {
272
+ (0, LoggingHelper_1.ConsoleLogWarning)(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${DocumentationLinkConstants_1.AgGridModulesDocsLink}`);
273
+ }
274
+ else {
275
+ core_1.ModuleRegistry.registerModules(runtimeConfig.agGridModules);
276
+ }
275
277
  return Adaptable.initInternal(adaptableOptions);
276
278
  }
277
279
  /**
278
280
  * Lazy static constructor for Adaptable
279
281
  * Receives an AdaptableOptions object
280
- * Returns a Promise containing the api object in order to enable run-time access to AdapTable's properties and functions
282
+ * Returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
281
283
  * @param adaptableOptions an instance of AdaptableOptions
282
284
  */
283
285
  static async initInternal(adaptableOptions, runtimeConfig) {
284
- const extraOptions = {
285
- renderGrid: undefined,
286
- runtimeConfig: null,
287
- };
288
286
  let promise = null;
289
287
  if (Array.isArray(adaptableOptions.plugins)) {
290
288
  // do this
@@ -324,7 +322,7 @@ class Adaptable {
324
322
  }
325
323
  }
326
324
  static collectInstance(adaptable) {
327
- adaptable._id = adaptable.adaptableOptions.adaptableId || Uuid_1.createUuid();
325
+ adaptable._id = adaptable.adaptableOptions.adaptableId || (0, Uuid_1.createUuid)();
328
326
  adaptableInstances[adaptable._id] = adaptable;
329
327
  }
330
328
  static forEachAdaptable(fn) {
@@ -340,7 +338,7 @@ class Adaptable {
340
338
  async init(adaptableOptions, runtimeConfig, _staticInit) {
341
339
  var _a, _b, _c, _d, _e, _f;
342
340
  if (!_staticInit) {
343
- LoggingHelper_1.ConsoleLogWarning(`
341
+ (0, LoggingHelper_1.ConsoleLogWarning)(`
344
342
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
345
343
  !!!!!!! You should not use the "Adaptable" constructor directly, as it was deprecated in v6 and removed in v7!
346
344
  !!!!!!!
@@ -351,7 +349,7 @@ class Adaptable {
351
349
  // we create AdaptableOptions by merging the values provided by the user with the defaults (where no value has been set)
352
350
  this.adaptableOptions = AdaptableHelper_1.default.assignAdaptableOptions(adaptableOptions);
353
351
  if (this.hasAutogeneratedPrimaryKey()) {
354
- LoggingHelper_1.LogAdaptableWarning(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
352
+ (0, LoggingHelper_1.LogAdaptableWarning)(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
355
353
  when no unique column is available, as it limits some Adaptable functionalities!
356
354
 
357
355
  For more details see: ${DocumentationLinkConstants_1.PrimaryKeyDocsLink}`);
@@ -359,7 +357,6 @@ class Adaptable {
359
357
  }
360
358
  Adaptable.collectInstance(this);
361
359
  this.runtimeConfig = runtimeConfig || {};
362
- this.agGridModules = this.runtimeConfig.modules || [];
363
360
  this.gridOptions = this.adaptableOptions.gridOptions;
364
361
  if (this.gridOptions.allowContextMenuWithControlKey === undefined) {
365
362
  this.gridOptions.allowContextMenuWithControlKey = true;
@@ -432,9 +429,10 @@ class Adaptable {
432
429
  return this.initializeAgGrid().then((initialized) => {
433
430
  if (!initialized) {
434
431
  // we have no grid, we can't do anything
435
- LoggingHelper_1.ConsoleLogError('Unable to set up AG Grid');
432
+ (0, LoggingHelper_1.ConsoleLogError)('Unable to set up AG Grid');
436
433
  return this.api;
437
434
  }
435
+ (0, LoggingHelper_1.LogAdaptableInfo)(`Registered AG Grid modules: `, this.getAgGridRegisteredModules().sort());
438
436
  let self = this;
439
437
  // add our adaptable object to the grid options api object
440
438
  // this is VERY useful for when we need to access Adaptable inside of agGrid only functions
@@ -457,7 +455,7 @@ class Adaptable {
457
455
  this.initInternalGridLogic();
458
456
  AdaptableHelper_1.default.checkValidPrimaryKey(this);
459
457
  }, (e) => {
460
- LoggingHelper_1.ConsoleLogError('Failed to Init Modules : ', e);
458
+ (0, LoggingHelper_1.ConsoleLogError)('Failed to Init Modules : ', e);
461
459
  // for now we initiliaze the grid even if initialising Modules has failed (perhaps revisit this?)
462
460
  this.initInternalGridLogic();
463
461
  this.api.internalApi.hideLoadingScreen(); // doesnt really help but at least clears the screen
@@ -477,16 +475,16 @@ class Adaptable {
477
475
  }
478
476
  if (this.abContainerElement != null) {
479
477
  this.abContainerElement.innerHTML = '';
480
- ReactDOM.render(AdaptableView_1.AdaptableApp({ Adaptable: this }), this.abContainerElement);
478
+ ReactDOM.render((0, AdaptableView_1.AdaptableApp)({ Adaptable: this }), this.abContainerElement);
481
479
  }
482
480
  // create debounce methods that take a time based on user settings
483
- this.throttleFilterOnEditDataChange = throttle_1.default(
481
+ this.throttleFilterOnEditDataChange = (0, throttle_1.default)(
484
482
  // the extra function is to make sure we have a reference to ag-grid-api
485
483
  () => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.filterOptions.filterActionOnUserDataChange.throttleDelay, {
486
484
  trailing: true,
487
485
  leading: false,
488
486
  });
489
- this.throttleFilterOnTickingDataChange = throttle_1.default(() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.filterOptions.filterActionOnExternalDataChange.throttleDelay, {
487
+ this.throttleFilterOnTickingDataChange = (0, throttle_1.default)(() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.filterOptions.filterActionOnExternalDataChange.throttleDelay, {
490
488
  trailing: true,
491
489
  leading: false,
492
490
  });
@@ -529,13 +527,13 @@ class Adaptable {
529
527
  return undefined;
530
528
  }
531
529
  initStore() {
532
- LoggingHelper_1.LogAdaptableInfo(`Initialising AdaptableStore`);
530
+ (0, LoggingHelper_1.LogAdaptableInfo)(`Initialising AdaptableStore`);
533
531
  this.adaptableStore = new AdaptableStore_1.AdaptableStore(this, this.isAgGridReady());
534
532
  this.adaptableStore.onAny((eventName, data) => {
535
533
  this.performAudit(data.action, data.state, data.newState);
536
534
  this.forPlugins((plugin) => plugin.onStoreEvent(eventName, data, this.adaptableStore));
537
535
  if (eventName == AdaptableStore_1.INIT_STATE) {
538
- LoggingHelper_1.LogAdaptableInfo(`Updating obsolete configuration/state`);
536
+ (0, LoggingHelper_1.LogAdaptableInfo)(`Updating obsolete configuration/state`);
539
537
  this.adaptableModules.forEach((m) => m.updateOldConfig());
540
538
  // call stuff here
541
539
  // and reset state also?
@@ -568,7 +566,7 @@ class Adaptable {
568
566
  }
569
567
  initializeAgGrid() {
570
568
  var _a;
571
- LoggingHelper_1.LogAdaptableInfo(`Initializing AgGrid...`);
569
+ (0, LoggingHelper_1.LogAdaptableInfo)(`Initializing AG Grid...`);
572
570
  // set up whether we use the getRowNode method or loop when finding a rowNode (former is preferable)
573
571
  // can only do that here as the gridOptions not yet set up
574
572
  this.useRowNodeLookUp = this.agGridHelper.TrySetUpNodeIds(this.hasAutogeneratedPrimaryKey());
@@ -576,12 +574,12 @@ class Adaptable {
576
574
  this.gridOptions.columnDefs.forEach(assignColId);
577
575
  }
578
576
  if ((_a = this.adaptableOptions.generalOptions) === null || _a === void 0 ? void 0 : _a.hideEmptyGroupRows) {
579
- LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: 'GeneralOptions.hideEmptyGroupRows' is deprecated and will no longer be evaluated!`);
577
+ (0, LoggingHelper_1.ConsoleLogWarning)(`DEPRECATED: 'GeneralOptions.hideEmptyGroupRows' is deprecated and will no longer be evaluated!`);
580
578
  }
581
579
  const adaptableSideBarDef = this.createAdaptableSideBarDef();
582
580
  if (!!adaptableSideBarDef) {
583
581
  this.gridOptions.components = this.gridOptions.components || {};
584
- this.gridOptions.components.AdaptableToolPanel = AdaptableToolPanel_1.getAdaptableToolPanelAgGridComponent(this);
582
+ this.gridOptions.components.AdaptableToolPanel = (0, AdaptableToolPanel_1.getAdaptableToolPanelAgGridComponent)(this);
585
583
  }
586
584
  if (this.agGridHelper.isSideBarDefObject(adaptableSideBarDef)) {
587
585
  this.setGridOptionsProperty('sideBar', () => {
@@ -595,7 +593,7 @@ class Adaptable {
595
593
  if (!agGridContainer) {
596
594
  agGridContainer = this.initAgGridContainerFromInitializedAgGrid();
597
595
  if (!agGridContainer) {
598
- LoggingHelper_1.ConsoleLogError('You must provide an element id in `containerOptions.agGridContainer`');
596
+ (0, LoggingHelper_1.ConsoleLogError)('You must provide an element id in `containerOptions.agGridContainer`');
599
597
  return false;
600
598
  }
601
599
  }
@@ -613,7 +611,7 @@ class Adaptable {
613
611
  this.initAgGridContainerFromInitializedAgGrid();
614
612
  return Promise.resolve(true);
615
613
  }, () => {
616
- LoggingHelper_1.ConsoleLogError(`Could not find any agGrid instance rendered. Could not find reference to ag-grid api. Make sure you pass the same gridOptions object reference both to Adaptable and AgGrid`);
614
+ (0, LoggingHelper_1.ConsoleLogError)(`Could not find any agGrid instance rendered. Could not find reference to ag-grid api. Make sure you pass the same gridOptions object reference both to Adaptable and AgGrid`);
617
615
  return Promise.reject(false);
618
616
  });
619
617
  }
@@ -624,10 +622,9 @@ class Adaptable {
624
622
  }
625
623
  // now create the grid itself - it is done this way as previously when we instantiated the Grid 'properly' it got created as J.Grid
626
624
  let grid;
627
- const modules = this.adaptableOptions.modules || [];
628
- this.agGridModules = [...this.agGridModules, ...modules];
629
625
  const agGridContainer = this.getAgGridContainerElement();
630
- grid = new all_modules_1.Grid(agGridContainer, this.gridOptions, { modules });
626
+ // the AG Grid modules are already registered, see the init() method
627
+ grid = new core_1.Grid(agGridContainer, this.gridOptions);
631
628
  // add our adaptable object to the grid options api object
632
629
  // this is VERY useful for when we need to access Adaptable inside of agGrid only functions
633
630
  if (this.gridOptions.api) {
@@ -665,7 +662,7 @@ class Adaptable {
665
662
  }
666
663
  }
667
664
  if (!agGridContainer) {
668
- LoggingHelper_1.ConsoleLogError(`Could not find the AG Grid Container. This will probably break some AdapTable functionality.`);
665
+ (0, LoggingHelper_1.ConsoleLogError)(`Could not find the AG Grid Container. This will probably break some AdapTable functionality.`);
669
666
  }
670
667
  return (this.adaptableOptions.containerOptions.agGridContainer = agGridContainer);
671
668
  }
@@ -723,7 +720,7 @@ class Adaptable {
723
720
  const context = {
724
721
  Key: statusPanel.key,
725
722
  };
726
- return Object.assign(Object.assign({}, statusPanel), { statusPanel: createAgStatusPanelComponent_1.createAgStatusPanelComponent(AdaptableStatusBar_1.AdaptableStatusBar, this, context) });
723
+ return Object.assign(Object.assign({}, statusPanel), { statusPanel: (0, createAgStatusPanelComponent_1.createAgStatusPanelComponent)(AdaptableStatusBar_1.AdaptableStatusBar, this, context) });
727
724
  }
728
725
  return statusPanel;
729
726
  });
@@ -807,14 +804,14 @@ class Adaptable {
807
804
  return false;
808
805
  }
809
806
  clearGridFiltering() {
810
- this.gridOptions.columnApi.getAllColumns().forEach((c) => {
807
+ this.gridOptions.columnApi.getColumns().forEach((c) => {
811
808
  this.gridOptions.api.destroyFilter(c);
812
809
  });
813
810
  }
814
811
  clearColumnFiltering(columnIds) {
815
812
  columnIds.forEach((c) => {
816
813
  const column = this.gridOptions.columnApi
817
- .getAllColumns()
814
+ .getColumns()
818
815
  .find((col) => col.getColId() == c);
819
816
  if (column) {
820
817
  this.gridOptions.api.destroyFilter(column);
@@ -834,7 +831,7 @@ class Adaptable {
834
831
  // }
835
832
  // }
836
833
  const allColumns = [];
837
- const agGridCols = this.gridOptions.columnApi.getAllColumns();
834
+ const agGridCols = this.gridOptions.columnApi.getColumns();
838
835
  const columnGroupChildren = this.gridOptions.columnApi.getAllDisplayedColumnGroups();
839
836
  const groupsCount = {};
840
837
  const colsToGroups = columnGroupChildren.reduce((acc, columnGroup) => {
@@ -906,7 +903,7 @@ class Adaptable {
906
903
  if (gradientStyle) {
907
904
  const min = this.api.formatColumnApi.getNumericStyleMinValue(columnStyle, abColumn, params.node, params.value);
908
905
  const max = this.api.formatColumnApi.getNumericStyleMaxValue(columnStyle, abColumn, params.node, params.value);
909
- const clampedValue = clamp_1.default(params.value, min, max);
906
+ const clampedValue = (0, clamp_1.default)(params.value, min, max);
910
907
  let cellBackColor;
911
908
  let reverseGradient = false;
912
909
  if (gradientStyle.ColumnComparison) {
@@ -926,7 +923,7 @@ class Adaptable {
926
923
  if (reverseGradient) {
927
924
  alpha = 1 - alpha;
928
925
  }
929
- const preparedColor = StyleHelper_1.getVariableColor(cellBackColor);
926
+ const preparedColor = (0, StyleHelper_1.getVariableColor)(cellBackColor);
930
927
  style.backgroundColor = tinycolor(preparedColor).setAlpha(alpha).toRgbString();
931
928
  }
932
929
  if (columnStyle.PercentBarStyle && columnStyle.PercentBarStyle.CellText) {
@@ -1287,7 +1284,8 @@ class Adaptable {
1287
1284
  const aggregationFunctionsColumnsMap = layout.AggregationColumns || {};
1288
1285
  const columnsToShow = !layout.EnablePivot
1289
1286
  ? layout.Columns
1290
- : ((_b = this.gridOptions.columnApi.getSecondaryColumns()) === null || _b === void 0 ? void 0 : _b.map((column) => column.getColId())) || [];
1287
+ : ((_b = this.gridOptions.columnApi.getPivotResultColumns()) === null || _b === void 0 ? void 0 : _b.map((column) => column.getColId())) ||
1288
+ [];
1291
1289
  let isChanged = false;
1292
1290
  const colsToAutoSize = {};
1293
1291
  let newColState = this.getSortedColumnStateForVisibleColumns(columnsToShow, columnsState);
@@ -1359,7 +1357,7 @@ class Adaptable {
1359
1357
  newColState.sort = null;
1360
1358
  newColState.sortIndex = null;
1361
1359
  }
1362
- isChanged = isChanged || !isEqual_1.default(newColState, oldColState);
1360
+ isChanged = isChanged || !(0, isEqual_1.default)(newColState, oldColState);
1363
1361
  return newColState;
1364
1362
  })
1365
1363
  .filter((x) => !!x);
@@ -1395,7 +1393,7 @@ class Adaptable {
1395
1393
  shouldUpdateHeaders = this.setupColumnHeaderAggregations(layout);
1396
1394
  // update the header name for all columns
1397
1395
  // there should be a simpler solution for this, once the Layout Management is refactored
1398
- this.gridOptions.columnApi.getAllColumns().forEach((col) => {
1396
+ this.gridOptions.columnApi.getColumns().forEach((col) => {
1399
1397
  const colDef = col.getColDef();
1400
1398
  const colId = col.getColId();
1401
1399
  const abColumn = this.api.columnApi.getColumnFromId(colId);
@@ -1568,7 +1566,7 @@ class Adaptable {
1568
1566
  if (isEndRowPin) {
1569
1567
  shouldIncludeRange = false;
1570
1568
  }
1571
- LoggingHelper_1.ConsoleLogWarning('Cannot select pinned rows in AG Grid.');
1569
+ (0, LoggingHelper_1.ConsoleLogWarning)('Cannot select pinned rows in AG Grid.');
1572
1570
  }
1573
1571
  if (shouldIncludeRange) {
1574
1572
  const y1 = Math.min(rangeSelection.startRow.rowIndex, rangeSelection.endRow.rowIndex);
@@ -1718,7 +1716,7 @@ class Adaptable {
1718
1716
  });
1719
1717
  }
1720
1718
  }
1721
- const uniqueVals = uniqBy_1.default(returnValues, 'rawValue');
1719
+ const uniqueVals = (0, uniqBy_1.default)(returnValues, 'rawValue');
1722
1720
  return uniqueVals.slice(0, this.adaptableOptions.filterOptions.maxFilterValuesToDisplay);
1723
1721
  }
1724
1722
  async getDistinctFilterValuesForColumn(column, visibleRowsOnly, filter, skipRowNode) {
@@ -1737,7 +1735,7 @@ class Adaptable {
1737
1735
  preparedPermittedValues = await (permittedValues === null || permittedValues === void 0 ? void 0 : permittedValues.values(filterPermittedValuesParams));
1738
1736
  }
1739
1737
  catch (error) {
1740
- LoggingHelper_1.ConsoleLogError(`Failed to load filter permitted values`, column, filter, error);
1738
+ (0, LoggingHelper_1.ConsoleLogError)(`Failed to load filter permitted values`, column, filter, error);
1741
1739
  }
1742
1740
  return {
1743
1741
  suppressClientSideFilter: permittedValues.suppressFilterSearchBar,
@@ -1755,7 +1753,7 @@ class Adaptable {
1755
1753
  preparedPermittedValues = await (permittedValues === null || permittedValues === void 0 ? void 0 : permittedValues.values(permittedValuesParams));
1756
1754
  }
1757
1755
  catch (error) {
1758
- LoggingHelper_1.ConsoleLogError(`Failed to load custom sort permitted values`, column, error);
1756
+ (0, LoggingHelper_1.ConsoleLogError)(`Failed to load custom sort permitted values`, column, error);
1759
1757
  }
1760
1758
  return this.getDistinctValuesForColumn(column, visibleRowsOnly, skipRowNode, preparedPermittedValues);
1761
1759
  }
@@ -1771,7 +1769,7 @@ class Adaptable {
1771
1769
  preparedPermittedValues = await (permittedValues === null || permittedValues === void 0 ? void 0 : permittedValues.values(bulkUpdatePermittedValuesParams));
1772
1770
  }
1773
1771
  catch (error) {
1774
- LoggingHelper_1.ConsoleLogError(`Failed to load bulk permitted values`, error, column, selectedGridCells);
1772
+ (0, LoggingHelper_1.ConsoleLogError)(`Failed to load bulk permitted values`, error, column, selectedGridCells);
1775
1773
  }
1776
1774
  return this.getDistinctValuesForColumn(column, visibleRowsOnly, skipRowNode, preparedPermittedValues);
1777
1775
  }
@@ -1930,7 +1928,7 @@ class Adaptable {
1930
1928
  }
1931
1929
  getFormattedValue(rowNode, rawValue, columnId, colDef, formatterFn) {
1932
1930
  const column = this.gridOptions.columnApi
1933
- .getAllColumns()
1931
+ .getColumns()
1934
1932
  .find((c) => c.getColId() == columnId);
1935
1933
  const params = {
1936
1934
  value: rawValue,
@@ -1966,7 +1964,7 @@ class Adaptable {
1966
1964
  return typeof rawValue !== 'boolean' ? Boolean(rawValue) : rawValue;
1967
1965
  }
1968
1966
  if (dataType === 'Date') {
1969
- return rawValue instanceof Date ? rawValue : DateHelper_1.parseDateValue(rawValue);
1967
+ return rawValue instanceof Date ? rawValue : (0, DateHelper_1.parseDateValue)(rawValue);
1970
1968
  }
1971
1969
  return rawValue;
1972
1970
  }
@@ -2060,19 +2058,22 @@ class Adaptable {
2060
2058
  }
2061
2059
  selectNode(rowNode, clearSelection) {
2062
2060
  if (!rowNode) {
2063
- LoggingHelper_1.LogAdaptableError('No node to select');
2061
+ (0, LoggingHelper_1.LogAdaptableError)('No node to select');
2064
2062
  return;
2065
2063
  }
2066
2064
  rowNode.setSelected(true, clearSelection);
2067
2065
  }
2068
2066
  deSelectNode(rowNode, clearSelection) {
2069
2067
  if (!rowNode) {
2070
- LoggingHelper_1.LogAdaptableError('No node to deselect');
2068
+ (0, LoggingHelper_1.LogAdaptableError)('No node to deselect');
2071
2069
  return;
2072
2070
  }
2073
2071
  rowNode.setSelected(false, clearSelection);
2074
2072
  }
2075
- selectCells(columnIds, startNode, endNode) {
2073
+ selectCells(columnIds, startNode, endNode, clearSelection) {
2074
+ if (clearSelection) {
2075
+ this.gridOptions.api.clearRangeSelection();
2076
+ }
2076
2077
  const cellRangeParams = {
2077
2078
  rowStartIndex: startNode.rowIndex,
2078
2079
  rowEndIndex: endNode.rowIndex,
@@ -2111,7 +2112,7 @@ class Adaptable {
2111
2112
  this.gridOptions.api.redrawRows(redrawRowsParams);
2112
2113
  }
2113
2114
  catch (ex) {
2114
- LoggingHelper_1.ConsoleLogError('ag-grid redrawRows was unable to find some row nodes. Tried to redraw row nodes: ', rowNodes, ex);
2115
+ (0, LoggingHelper_1.ConsoleLogError)('ag-grid redrawRows was unable to find some row nodes. Tried to redraw row nodes: ', rowNodes, ex);
2115
2116
  }
2116
2117
  }
2117
2118
  refreshCells(rowNodes, columns, forceUpdate, suppressFlash = false) {
@@ -2147,7 +2148,7 @@ class Adaptable {
2147
2148
  ];
2148
2149
  }
2149
2150
  getColDefsForFreeTextColumns() {
2150
- const defaultFreeTextColumnSettings = ObjectFactory_1.CreateEmptyFreeTextColumn().FreeTextColumnSettings;
2151
+ const defaultFreeTextColumnSettings = (0, ObjectFactory_1.CreateEmptyFreeTextColumn)().FreeTextColumnSettings;
2151
2152
  return this.api.freeTextColumnApi.getAllFreeTextColumn().map((freeTextColumn) => {
2152
2153
  var _a;
2153
2154
  const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
@@ -2193,7 +2194,7 @@ class Adaptable {
2193
2194
  if (freeTextColumnSettings.HeaderToolTip) {
2194
2195
  newColDef.headerTooltip = freeTextColumnSettings.HeaderToolTip;
2195
2196
  }
2196
- LoggingHelper_1.LogAdaptableInfo('Setting up FreeText Column: ' + freeTextColumn.ColumnId);
2197
+ (0, LoggingHelper_1.LogAdaptableInfo)('Setting up FreeText Column: ' + freeTextColumn.ColumnId);
2197
2198
  return newColDef;
2198
2199
  });
2199
2200
  }
@@ -2330,7 +2331,7 @@ class Adaptable {
2330
2331
  cellRenderer: ActionColumnRenderer_1.ActionColumnRenderer,
2331
2332
  type: [GeneralConstants_1.AB_SPECIAL_COLUMN, 'abColDefObject'],
2332
2333
  };
2333
- LoggingHelper_1.LogAdaptableInfo('Setting up Action Column: ' + actionColumn.columnId);
2334
+ (0, LoggingHelper_1.LogAdaptableInfo)('Setting up Action Column: ' + actionColumn.columnId);
2334
2335
  return newColDef;
2335
2336
  });
2336
2337
  }
@@ -2389,7 +2390,7 @@ class Adaptable {
2389
2390
  this.setLayout();
2390
2391
  }
2391
2392
  getColDefsForCalculatedColumns() {
2392
- const defaultCalculatedColumnSettings = ObjectFactory_1.CreateEmptyCalculatedColumn().CalculatedColumnSettings;
2393
+ const defaultCalculatedColumnSettings = (0, ObjectFactory_1.CreateEmptyCalculatedColumn)().CalculatedColumnSettings;
2393
2394
  return this.api.calculatedColumnApi.getAllCalculatedColumn().map((calculatedColumn) => {
2394
2395
  const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
2395
2396
  if (!calculatedColumnSettings.DataType) {
@@ -2439,7 +2440,7 @@ class Adaptable {
2439
2440
  if (calculatedColumnSettings.HeaderToolTip) {
2440
2441
  newColDef.headerTooltip = calculatedColumnSettings.HeaderToolTip;
2441
2442
  }
2442
- LoggingHelper_1.LogAdaptableInfo('Setting up Calculated Column: ' + calculatedColumn.ColumnId);
2443
+ (0, LoggingHelper_1.LogAdaptableInfo)('Setting up Calculated Column: ' + calculatedColumn.ColumnId);
2443
2444
  return newColDef;
2444
2445
  });
2445
2446
  }
@@ -2490,14 +2491,14 @@ class Adaptable {
2490
2491
  destroy(config) {
2491
2492
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
2492
2493
  if (this.gridOptions && this.gridOptions.api) {
2493
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_FIRST_DATA_RENDERED, this.listenerFirstDataRendered);
2494
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.listenerPivotModeChanged);
2495
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_COLUMN_PIVOT_CHANGED, this.listenerPivotChanged);
2496
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.listenerColumnRowGroupChanged);
2497
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_RANGE_SELECTION_CHANGED, this.listenerRangeSelectionChanged);
2498
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_COLUMN_RESIZED, this.listenerColumnResized);
2499
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_SORT_CHANGED, this.listenerSortChanged);
2500
- this.gridOptions.api.removeEventListener(all_modules_1.Events.EVENT_MODEL_UPDATED, this.listenerModelUpdated);
2494
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_FIRST_DATA_RENDERED, this.listenerFirstDataRendered);
2495
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.listenerPivotModeChanged);
2496
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_PIVOT_CHANGED, this.listenerPivotChanged);
2497
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.listenerColumnRowGroupChanged);
2498
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_RANGE_SELECTION_CHANGED, this.listenerRangeSelectionChanged);
2499
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_RESIZED, this.listenerColumnResized);
2500
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_SORT_CHANGED, this.listenerSortChanged);
2501
+ this.gridOptions.api.removeEventListener(core_1.Events.EVENT_MODEL_UPDATED, this.listenerModelUpdated);
2501
2502
  this.gridOptions.api.removeGlobalListener(this.listenerGlobalSetRowSelection);
2502
2503
  this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerStateChange);
2503
2504
  this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave);
@@ -2649,7 +2650,7 @@ class Adaptable {
2649
2650
  if (!this.abContainerElement) {
2650
2651
  let oldContainer = document.getElementById('adaptableBlotter');
2651
2652
  if (oldContainer) {
2652
- LoggingHelper_1.LogAdaptableWarning(`
2653
+ (0, LoggingHelper_1.LogAdaptableWarning)(`
2653
2654
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2654
2655
  !!!!! The old default container element for Adaptable was "#adaptableBlotter", configured via 'containerOptions.adaptableContainer="adaptableBlotter"'.
2655
2656
  !!!!! Seems like you haven't updated your html container selector, so we're falling back to using that one.
@@ -2673,16 +2674,16 @@ class Adaptable {
2673
2674
  return this.gridContainerElement;
2674
2675
  }
2675
2676
  initInternalGridLogic() {
2676
- LoggingHelper_1.LogAdaptableInfo(`Initializing InternalGridLogic...`);
2677
+ (0, LoggingHelper_1.LogAdaptableInfo)(`Initializing InternalGridLogic...`);
2677
2678
  if (this.abContainerElement == null) {
2678
2679
  this.abContainerElement = this.getAdaptableContainerElement();
2679
2680
  }
2680
2681
  if (this.abContainerElement == null) {
2681
2682
  if (typeof this.adaptableOptions.containerOptions.adaptableContainer === 'string') {
2682
- LoggingHelper_1.ConsoleLogError(`There is no DIV with id="${this.adaptableOptions.containerOptions.adaptableContainer}" so cannot render Adaptable`);
2683
+ (0, LoggingHelper_1.ConsoleLogError)(`There is no DIV with id="${this.adaptableOptions.containerOptions.adaptableContainer}" so cannot render Adaptable`);
2683
2684
  }
2684
2685
  else {
2685
- LoggingHelper_1.ConsoleLogError(`No valid adaptableContainer found to render Adaptable`, this.adaptableOptions.containerOptions.adaptableContainer);
2686
+ (0, LoggingHelper_1.ConsoleLogError)(`No valid adaptableContainer found to render Adaptable`, this.adaptableOptions.containerOptions.adaptableContainer);
2686
2687
  }
2687
2688
  return;
2688
2689
  }
@@ -2701,12 +2702,12 @@ class Adaptable {
2701
2702
  * Action: Set Columns in store and filter grid
2702
2703
  */
2703
2704
  const columnEventsThatTriggersStateChange = [
2704
- all_modules_1.Events.EVENT_COLUMN_MOVED,
2705
- all_modules_1.Events.EVENT_GRID_COLUMNS_CHANGED,
2706
- all_modules_1.Events.EVENT_COLUMN_EVERYTHING_CHANGED,
2707
- all_modules_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
2708
- all_modules_1.Events.EVENT_COLUMN_VISIBLE,
2709
- all_modules_1.Events.EVENT_NEW_COLUMNS_LOADED,
2705
+ core_1.Events.EVENT_COLUMN_MOVED,
2706
+ core_1.Events.EVENT_GRID_COLUMNS_CHANGED,
2707
+ core_1.Events.EVENT_COLUMN_EVERYTHING_CHANGED,
2708
+ core_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
2709
+ core_1.Events.EVENT_COLUMN_VISIBLE,
2710
+ core_1.Events.EVENT_NEW_COLUMNS_LOADED,
2710
2711
  ];
2711
2712
  this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerStateChange = (type) => {
2712
2713
  if (columnEventsThatTriggersStateChange.indexOf(type) > -1) {
@@ -2719,7 +2720,7 @@ class Adaptable {
2719
2720
  * Action2: Ensure that we have set column data types
2720
2721
  * Note: Deals with scenario where the data is provided to AdapTable after grid has been setup
2721
2722
  */
2722
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_FIRST_DATA_RENDERED, (this.listenerFirstDataRendered = () => {
2723
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_FIRST_DATA_RENDERED, (this.listenerFirstDataRendered = () => {
2723
2724
  this.checkColumnsDataTypeSet();
2724
2725
  this.setLayout();
2725
2726
  }));
@@ -2728,7 +2729,7 @@ class Adaptable {
2728
2729
  * Action 1: Autosize pivot columns when entering pivot mode (if autosize pivot in Layout is true)
2729
2730
  * Action 2: Set pivot mode on / off in api as necessary
2730
2731
  */
2731
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, (this.listenerPivotModeChanged = (params) => {
2732
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, (this.listenerPivotModeChanged = (params) => {
2732
2733
  if (params.type == 'columnPivotModeChanged' &&
2733
2734
  params.columnApi != null &&
2734
2735
  params.columnApi.columnController != null &&
@@ -2746,7 +2747,7 @@ class Adaptable {
2746
2747
  * Use Case: A pivot column has changed
2747
2748
  * Action: Autosize pivot columns (if autosize pivot in Layout is true)
2748
2749
  */
2749
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_COLUMN_PIVOT_CHANGED, (this.listenerPivotChanged = (params) => {
2750
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_PIVOT_CHANGED, (this.listenerPivotChanged = (params) => {
2750
2751
  if (params.type == 'columnPivotChanged' &&
2751
2752
  params.columnApi != null &&
2752
2753
  params.columnApi.columnController != null &&
@@ -2761,13 +2762,13 @@ class Adaptable {
2761
2762
  * Action: Save the Layout (on a debounce)
2762
2763
  */
2763
2764
  const columnEventsThatTriggersAutoLayoutSave = [
2764
- all_modules_1.Events.EVENT_COLUMN_PINNED,
2765
- all_modules_1.Events.EVENT_COLUMN_PIVOT_CHANGED,
2766
- all_modules_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,
2767
- all_modules_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
2768
- all_modules_1.Events.EVENT_SORT_CHANGED,
2769
- all_modules_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,
2770
- all_modules_1.Events.EVENT_COLUMN_VALUE_CHANGED,
2765
+ core_1.Events.EVENT_COLUMN_PINNED,
2766
+ core_1.Events.EVENT_COLUMN_PIVOT_CHANGED,
2767
+ core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,
2768
+ core_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
2769
+ core_1.Events.EVENT_SORT_CHANGED,
2770
+ core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,
2771
+ core_1.Events.EVENT_COLUMN_VALUE_CHANGED,
2771
2772
  ];
2772
2773
  // ADD filter event
2773
2774
  this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave = (type) => {
@@ -2777,8 +2778,8 @@ class Adaptable {
2777
2778
  }));
2778
2779
  // Save Layout if Display Row Groups is "dynamic"
2779
2780
  const rowGroupEventsThatTriggersAutoLayoutSave = [
2780
- all_modules_1.Events.EVENT_ROW_GROUP_OPENED,
2781
- all_modules_1.Events.EVENT_EXPAND_COLLAPSE_ALL,
2781
+ core_1.Events.EVENT_ROW_GROUP_OPENED,
2782
+ core_1.Events.EVENT_EXPAND_COLLAPSE_ALL,
2782
2783
  ];
2783
2784
  this.gridOptions.api.addGlobalListener((this.listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave = (type) => {
2784
2785
  if (rowGroupEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
@@ -2791,7 +2792,7 @@ class Adaptable {
2791
2792
  * Use Case: A visible Column has become row grouped and 'hideColumnWhenGrouped' is true
2792
2793
  * Action: Make the column invisible
2793
2794
  */
2794
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
2795
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
2795
2796
  if (this.api.internalApi.isGridInPivotMode()) {
2796
2797
  return;
2797
2798
  }
@@ -2809,7 +2810,7 @@ class Adaptable {
2809
2810
  * Action 1: Save the Layout (on a debounce)
2810
2811
  * Action 2: Emit the internal ColumnResized event - used by Sparkline Column (in Charts)
2811
2812
  */
2812
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
2813
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
2813
2814
  if (params.finished == true && params.type == 'columnResized' && params.column) {
2814
2815
  this.debouncedSaveGridLayout();
2815
2816
  }
@@ -2819,9 +2820,9 @@ class Adaptable {
2819
2820
  * Action: Set Selected Rows (on a debeounce)
2820
2821
  */
2821
2822
  const columnEventsThatTriggerSetRowSelection = [
2822
- all_modules_1.Events.EVENT_ROW_GROUP_OPENED,
2823
- all_modules_1.Events.EVENT_SELECTION_CHANGED,
2824
- all_modules_1.Events.EVENT_ROW_SELECTED,
2823
+ core_1.Events.EVENT_ROW_GROUP_OPENED,
2824
+ core_1.Events.EVENT_SELECTION_CHANGED,
2825
+ core_1.Events.EVENT_ROW_SELECTED,
2825
2826
  ];
2826
2827
  this.gridOptions.api.addGlobalListener((this.listenerGlobalSetRowSelection = (type) => {
2827
2828
  if (ArrayExtensions_1.ArrayExtensions.ContainsItem(columnEventsThatTriggerSetRowSelection, type)) {
@@ -2832,7 +2833,7 @@ class Adaptable {
2832
2833
  * Use Case: User has selected a range of cells
2833
2834
  * Action: Set Selected Cells (on a debounce)
2834
2835
  */
2835
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_RANGE_SELECTION_CHANGED, (this.listenerRangeSelectionChanged = (params) => {
2836
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_RANGE_SELECTION_CHANGED, (this.listenerRangeSelectionChanged = (params) => {
2836
2837
  if (params.finished == true) {
2837
2838
  this.debouncedSetSelectedCells();
2838
2839
  }
@@ -2842,7 +2843,7 @@ class Adaptable {
2842
2843
  * Action1: Update AdapTable Sort Info
2843
2844
  * Action2: Set Selected Cells (on a debounce)
2844
2845
  */
2845
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_SORT_CHANGED, (this.listenerSortChanged = () => {
2846
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_SORT_CHANGED, (this.listenerSortChanged = () => {
2846
2847
  this.onSortChanged();
2847
2848
  this.debouncedSetSelectedCells();
2848
2849
  }));
@@ -2851,7 +2852,7 @@ class Adaptable {
2851
2852
  * Use Case: Model has updated
2852
2853
  * Action: If user has set to see grouping totals as header create a pinned row (bit of a hack)
2853
2854
  */
2854
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
2855
+ this.gridOptions.api.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
2855
2856
  if (showGroupingTotalsAsHeader) {
2856
2857
  if (params && params.api) {
2857
2858
  const pinnedData = params.api.getPinnedTopRow(0);
@@ -2940,7 +2941,7 @@ class Adaptable {
2940
2941
  }
2941
2942
  }
2942
2943
  catch (ex) {
2943
- LoggingHelper_1.LogAdaptableError(ex);
2944
+ (0, LoggingHelper_1.LogAdaptableError)(ex);
2944
2945
  return false;
2945
2946
  }
2946
2947
  return originalDoesExternalFilterPass ? originalDoesExternalFilterPass(node) : true;
@@ -2978,7 +2979,7 @@ class Adaptable {
2978
2979
  }
2979
2980
  }
2980
2981
  const agFilterModel = this.gridOptions.api.getFilterModel();
2981
- (this.gridOptions.columnApi.getAllColumns() || []).forEach((col) => {
2982
+ (this.gridOptions.columnApi.getColumns() || []).forEach((col) => {
2982
2983
  /**
2983
2984
  * When ag-grid filters are used active state should not be removed for all columns.
2984
2985
  * Need to check if the column has a filter model.
@@ -2995,25 +2996,22 @@ class Adaptable {
2995
2996
  return this.agGridMenuHelper.buildStandaloneColumnHeader(adaptableColumn);
2996
2997
  }
2997
2998
  prepareGrid() {
2998
- LoggingHelper_1.LogAdaptableInfo('Preparing grid...');
2999
+ (0, LoggingHelper_1.LogAdaptableInfo)('Preparing grid...');
2999
3000
  // add any special renderers, display formats, custom sorts and apply the theme
3000
3001
  // then do any final rendering required, filter the grid and - to be on the safe set - redraw
3001
3002
  try {
3002
- // it is very important that this method is executed as soon as possible and BEFORE the updateColDefsForSpecialColumns() method
3003
- // this will ensure that the columns are recreated as expected (see method implementation&comments for more details)
3004
- //this.cleanupFloatingFilters_WORKAROUND();
3005
3003
  this.updateColDefsForSpecialColumns();
3006
3004
  this.applyCurrentTheme();
3007
3005
  this.applyFinalRendering();
3008
3006
  this.applyGridFiltering();
3009
3007
  }
3010
3008
  catch (ex) {
3011
- LoggingHelper_1.ConsoleLogError('AgGrid setup failed');
3012
- LoggingHelper_1.ConsoleLogError(ex);
3009
+ (0, LoggingHelper_1.ConsoleLogError)('AgGrid setup failed');
3010
+ (0, LoggingHelper_1.ConsoleLogError)(ex);
3013
3011
  }
3014
3012
  }
3015
3013
  setupColumns() {
3016
- const cols = this.gridOptions.columnApi.getAllColumns();
3014
+ const cols = this.gridOptions.columnApi.getColumns();
3017
3015
  cols.map((c) => c.getColDef()).forEach(assignColId);
3018
3016
  // this needs to be here, before the other setup below
3019
3017
  // so the setup methods below reference the correct columns in adaptable store
@@ -3205,7 +3203,7 @@ class Adaptable {
3205
3203
  setupColumnCellEditor({ colId, col }) {
3206
3204
  const adaptableColumn = this.api.columnApi.getColumnFromId(colId);
3207
3205
  const editLookUpItem = this.api.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
3208
- const hasRichSelectCellEditor = this.isModulePresent('rich-select');
3206
+ const hasRichSelectCellEditor = this.isAgGridModulePresent(core_1.ModuleNames.RichSelectModule);
3209
3207
  this.setColDefProperty(col, 'cellEditor', () => {
3210
3208
  var _a;
3211
3209
  const formatColumn = this.api.formatColumnApi.getActiveFormatColumnForColumn(adaptableColumn);
@@ -3360,7 +3358,7 @@ class Adaptable {
3360
3358
  if (!layoutCustomHeader && (formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.HeaderName) && !formatColumn.IsSuspended) {
3361
3359
  // fallback to the formatColumn property if no Layout custom header is provided
3362
3360
  resultHeaderName = formatColumn.HeaderName;
3363
- LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: 'FormatColumn.HeaderName' is deprecated: use 'Layout.ColumnHeadersMap' instead`);
3361
+ (0, LoggingHelper_1.ConsoleLogWarning)(`DEPRECATED: 'FormatColumn.HeaderName' is deprecated: use 'Layout.ColumnHeadersMap' instead`);
3364
3362
  }
3365
3363
  // required here for the initial layout rendering
3366
3364
  abColumn.friendlyName = resultHeaderName;
@@ -3378,7 +3376,7 @@ class Adaptable {
3378
3376
  return;
3379
3377
  }
3380
3378
  this.gridOptions.api.destroyFilter(col);
3381
- return FilterWrapper_1.FilterWrapperFactory(this);
3379
+ return (0, FilterWrapper_1.FilterWrapperFactory)(this);
3382
3380
  });
3383
3381
  }
3384
3382
  setupColumnFloatingFilter({ col, colDef }) {
@@ -3387,7 +3385,7 @@ class Adaptable {
3387
3385
  if (isFloatingFilterDisabled) {
3388
3386
  return;
3389
3387
  }
3390
- return FloatingFilterWrapper_1.FloatingFilterWrapperFactory(this);
3388
+ return (0, FloatingFilterWrapper_1.FloatingFilterWrapperFactory)(this);
3391
3389
  });
3392
3390
  this.setColDefProperty(col, 'floatingFilterComponentParams', () => {
3393
3391
  if (isFloatingFilterDisabled) {
@@ -3541,7 +3539,7 @@ class Adaptable {
3541
3539
  this.api.themeApi.applyCurrentTheme();
3542
3540
  }
3543
3541
  applyFinalRendering() {
3544
- this.embedColumnMenu = this.isModulePresent('menu');
3542
+ this.embedColumnMenu = this.isAgGridModulePresent(core_1.ModuleNames.MenuModule);
3545
3543
  if (this.gridOptions.treeData && this.gridOptions.treeData == true) {
3546
3544
  this.api.internalApi.setTreeModeOn();
3547
3545
  }
@@ -3550,14 +3548,11 @@ class Adaptable {
3550
3548
  }
3551
3549
  this.agGridHelper.checkShouldClearExistingFiltersOrSearches();
3552
3550
  }
3553
- isModulePresent(moduleName) {
3554
- const registeredModules = all_modules_1.ModuleRegistry.getRegisteredModules();
3555
- let modules = registeredModules.concat(this.agGridModules);
3556
- let moduleNames = modules.map((m) => m.moduleName);
3557
- return ArrayExtensions_1.ArrayExtensions.ContainsAnyItem(moduleNames, [
3558
- `@ag-grid-enterprise/${moduleName}`,
3559
- '@ag-grid-enterprise/all-modules',
3560
- ]);
3551
+ isAgGridModulePresent(moduleName) {
3552
+ return core_1.ModuleRegistry.isRegistered(moduleName);
3553
+ }
3554
+ getAgGridRegisteredModules() {
3555
+ return core_1.ModuleRegistry.getRegisteredModules().map((module) => module.moduleName);
3561
3556
  }
3562
3557
  onRowDataChanged({ rowNode, oldData, newData, }) {
3563
3558
  if (oldData == null || oldData == undefined) {
@@ -3650,7 +3645,7 @@ class Adaptable {
3650
3645
  }
3651
3646
  cellDataChangedInfos.forEach((cellDataChangedInfo) => {
3652
3647
  if (cellDataChangedInfo.trigger === 'undo') {
3653
- LoggingHelper_1.LogAdaptableInfo(`Undo data change: PK(${cellDataChangedInfo.primaryKeyValue}) Col(${cellDataChangedInfo.column}) RevertedValue(${cellDataChangedInfo.oldValue}) OriginalValue(${cellDataChangedInfo.newValue})`);
3648
+ (0, LoggingHelper_1.LogAdaptableInfo)(`Undo data change: PK(${cellDataChangedInfo.primaryKeyValue}) Col(${cellDataChangedInfo.column}) RevertedValue(${cellDataChangedInfo.oldValue}) OriginalValue(${cellDataChangedInfo.newValue})`);
3654
3649
  }
3655
3650
  if (cellDataChangedInfo.trigger === 'edit' || cellDataChangedInfo.trigger === 'undo') {
3656
3651
  this.checkChangedCellCurrentlySelected(cellDataChangedInfo);
@@ -3848,13 +3843,13 @@ class Adaptable {
3848
3843
  : this.gridOptions.api.getDisplayedRowCount();
3849
3844
  }
3850
3845
  getColumnCount() {
3851
- return this.gridOptions.columnApi.getAllColumns().length;
3846
+ return this.gridOptions.columnApi.getColumns().length;
3852
3847
  }
3853
3848
  getVisibleRowCount() {
3854
3849
  return this.gridOptions.api.getDisplayedRowCount();
3855
3850
  }
3856
3851
  getVisibleColumnCount() {
3857
- return this.gridOptions.columnApi.getAllColumns().filter((c) => c.isVisible()).length;
3852
+ return this.gridOptions.columnApi.getColumns().filter((c) => c.isVisible()).length;
3858
3853
  }
3859
3854
  selectColumns(columnIds, config) {
3860
3855
  if (!(config === null || config === void 0 ? void 0 : config.keepExistingSelection)) {
@@ -4111,7 +4106,7 @@ class Adaptable {
4111
4106
  }
4112
4107
  // do we want to do this each time or check once at startup and then set a flag?
4113
4108
  isGridSelectable() {
4114
- let isRangeSelectionModuleRegistered = this.isModulePresent('range-selection');
4109
+ let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(core_1.ModuleNames.RangeSelectionModule);
4115
4110
  if (isRangeSelectionModuleRegistered &&
4116
4111
  this.gridOptions.enableRangeSelection != null &&
4117
4112
  this.gridOptions.enableRangeSelection) {
@@ -4247,7 +4242,7 @@ class Adaptable {
4247
4242
  });
4248
4243
  if (this.adaptableOptions.userInterfaceOptions &&
4249
4244
  this.adaptableOptions.userInterfaceOptions.useCustomMacLikeScrollbars &&
4250
- getScrollbarSize_1.default() > 0) {
4245
+ (0, getScrollbarSize_1.default)() > 0) {
4251
4246
  el.classList.add('ab--custom-mac-like-scrollbars');
4252
4247
  }
4253
4248
  else {
@@ -4308,11 +4303,11 @@ class Adaptable {
4308
4303
  }
4309
4304
  }
4310
4305
  if (abLoaded !== '777') {
4311
- LoggingHelper_1.ConsoleLogError('Please import Adaptable styles from "@adaptabletools/adaptable/index.css"');
4306
+ (0, LoggingHelper_1.ConsoleLogError)('Please import Adaptable styles from "@adaptabletools/adaptable/index.css"');
4312
4307
  }
4313
4308
  // every theme should define a custom css variable: --ab-theme-loaded: <themeName> defined on the document element.
4314
4309
  if (abThemeLoaded !== themeName) {
4315
- LoggingHelper_1.ConsoleLogWarning(`Theme "${themeName}" doesn't seem to be loaded! Make sure you import the css file for the "${themeName}" theme!
4310
+ (0, LoggingHelper_1.ConsoleLogWarning)(`Theme "${themeName}" doesn't seem to be loaded! Make sure you import the css file for the "${themeName}" theme!
4316
4311
 
4317
4312
  If it's a default theme, try
4318
4313
 
@@ -4383,19 +4378,19 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4383
4378
  }
4384
4379
  getGridOptionsApi() {
4385
4380
  if (!this.gridOptions.api) {
4386
- LoggingHelper_1.ConsoleLogError('There is a problem with your instance of AG Grid - it has no gridApi object. Please contact Support.');
4381
+ (0, LoggingHelper_1.ConsoleLogError)('There is a problem with your instance of AG Grid - it has no gridApi object. Please contact Support.');
4387
4382
  return;
4388
4383
  }
4389
4384
  return this.gridOptions.api;
4390
4385
  }
4391
4386
  canGenerateCharts() {
4392
- return this.isModulePresent('charts') && this.gridOptions.enableCharts;
4387
+ return (this.isAgGridModulePresent(core_1.ModuleNames.GridChartsModule) && this.gridOptions.enableCharts);
4393
4388
  }
4394
4389
  canHaveSparklines() {
4395
- return this.isModulePresent('sparklines');
4390
+ return this.isAgGridModulePresent(core_1.ModuleNames.SparklinesModule);
4396
4391
  }
4397
4392
  canExportToExcel() {
4398
- return this.isModulePresent('excel-export');
4393
+ return this.isAgGridModulePresent(core_1.ModuleNames.ExcelExportModule);
4399
4394
  }
4400
4395
  exportToExcel(reportData, fileName) {
4401
4396
  const columnDefs = reportData.columns.map((column) => ({
@@ -4434,7 +4429,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4434
4429
  columnDefs,
4435
4430
  rowData: reportData.rows,
4436
4431
  };
4437
- const grid = new all_modules_1.Grid(document.createElement('div'), gridOptions);
4432
+ const grid = new core_1.Grid(document.createElement('div'), gridOptions);
4438
4433
  gridOptions.api.exportDataAsExcel({
4439
4434
  sheetName: 'Sheet 1',
4440
4435
  fileName: fileName,
@@ -4552,11 +4547,11 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4552
4547
  });
4553
4548
  }
4554
4549
  convertAdaptableStyleToCSS(style) {
4555
- return StyleHelper_1.convertAdaptableStyleToCSS(style);
4550
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)(style);
4556
4551
  }
4557
4552
  convertCSSToExcelStyle(style) {
4558
4553
  const getHexColor = (color) => {
4559
- const preparedColor = StyleHelper_1.getVariableColor(color);
4554
+ const preparedColor = (0, StyleHelper_1.getVariableColor)(color);
4560
4555
  const t = tinycolor(preparedColor);
4561
4556
  const a = t.getAlpha();
4562
4557
  return tinycolor.mix(tinycolor('white'), t, a * 100).toHexString();
@@ -4611,7 +4606,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4611
4606
  if (!result.font) {
4612
4607
  result.font = {};
4613
4608
  }
4614
- result.font.size = StyleHelper_1.convertCSSAbsoluteFontSizeToPt(style.fontSize);
4609
+ result.font.size = (0, StyleHelper_1.convertCSSAbsoluteFontSizeToPt)(style.fontSize);
4615
4610
  }
4616
4611
  return result;
4617
4612
  }
@@ -4639,7 +4634,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4639
4634
  }
4640
4635
  addSyntheticPrimaryKey(rowData = []) {
4641
4636
  for (let i = 0; i < rowData.length; i++) {
4642
- rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN] = Uuid_1.createUuid();
4637
+ rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN] = (0, Uuid_1.createUuid)();
4643
4638
  }
4644
4639
  }
4645
4640
  // add a synthetic PK only if missing (useful in case of updating row data)
@@ -4647,7 +4642,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4647
4642
  this.adaptableOptions.primaryKey = GeneralConstants_1.AUTOGENERATED_PK_COLUMN;
4648
4643
  for (let i = 0; i < rowData.length; i++) {
4649
4644
  if (!rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN]) {
4650
- rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN] = Uuid_1.createUuid();
4645
+ rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN] = (0, Uuid_1.createUuid)();
4651
4646
  }
4652
4647
  }
4653
4648
  }
@@ -4661,14 +4656,14 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4661
4656
  }
4662
4657
  showCharts(charts) {
4663
4658
  if (!this.gridOptions.api) {
4664
- LoggingHelper_1.ConsoleLogError('Adaptable must be instantiated before calling showCharts');
4659
+ (0, LoggingHelper_1.ConsoleLogError)('Adaptable must be instantiated before calling showCharts');
4665
4660
  return [];
4666
4661
  }
4667
4662
  return charts.map((chart) => this.gridOptions.api.restoreChart(chart));
4668
4663
  }
4669
4664
  getChartModels() {
4670
4665
  if (!this.gridOptions.api) {
4671
- LoggingHelper_1.ConsoleLogError('Adaptable must be instantiated before calling getChartModels');
4666
+ (0, LoggingHelper_1.ConsoleLogError)('Adaptable must be instantiated before calling getChartModels');
4672
4667
  return [];
4673
4668
  }
4674
4669
  return this.gridOptions.api.getChartModels();
@@ -4697,7 +4692,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4697
4692
  return undefined;
4698
4693
  }
4699
4694
  if (adaptableAggFunc.type === 'weightedAverage') {
4700
- return weightedAverage_1.weightedAverage(params, params.colDef.colId, adaptableAggFunc.weightedColumnId);
4695
+ return (0, weightedAverage_1.weightedAverage)(params, params.colDef.colId, adaptableAggFunc.weightedColumnId);
4701
4696
  }
4702
4697
  return undefined;
4703
4698
  };
@@ -4728,13 +4723,14 @@ class AdaptableNoCodeWizard {
4728
4723
  * @param adaptableOptions
4729
4724
  */
4730
4725
  constructor(adaptableOptions, extraOptions = {}) {
4731
- const defaultInit = async ({ gridOptions, adaptableOptions }) => {
4726
+ const defaultInit = async ({ gridOptions, adaptableOptions, agGridModules, }) => {
4732
4727
  adaptableOptions.gridOptions = gridOptions;
4733
- return await Adaptable.init(adaptableOptions);
4728
+ return await Adaptable.init(adaptableOptions, { agGridModules: agGridModules });
4734
4729
  };
4735
4730
  this.adaptableOptions = adaptableOptions;
4736
4731
  this.init = extraOptions.onInit || defaultInit;
4737
4732
  this.extraOptions = extraOptions;
4733
+ this.agGridModules = core_1.ModuleRegistry.getRegisteredModules();
4738
4734
  this.render();
4739
4735
  }
4740
4736
  render(container) {
@@ -4764,6 +4760,7 @@ class AdaptableNoCodeWizard {
4764
4760
  this.init({
4765
4761
  adaptableOptions,
4766
4762
  gridOptions: adaptableOptions.gridOptions,
4763
+ agGridModules: [...this.agGridModules],
4767
4764
  });
4768
4765
  } })), container);
4769
4766
  }