@adaptabletools/adaptable 18.0.0-canary.1 → 18.0.0-canary.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/agGrid.d.ts +4 -21
  2. package/agGrid.js +9 -26
  3. package/base.css +11 -3
  4. package/base.css.map +1 -1
  5. package/index.css +88 -70
  6. package/index.css.map +1 -1
  7. package/package.json +4 -5
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +61 -108
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +12 -6
  10. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
  11. package/src/AdaptableOptions/ColumnOptions.d.ts +4 -2
  12. package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
  13. package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/MenuOptions.js +1 -5
  15. package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +1 -1
  16. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
  17. package/src/Api/AdaptableApi.d.ts +5 -0
  18. package/src/Api/BulkUpdateApi.d.ts +0 -5
  19. package/src/Api/ConfigApi.d.ts +1 -1
  20. package/src/Api/Events/AdaptableReady.d.ts +3 -3
  21. package/src/Api/Events/GridDataChanged.d.ts +4 -4
  22. package/src/Api/GridApi.d.ts +18 -13
  23. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
  24. package/src/Api/Implementation/ActionColumnApiImpl.js +33 -0
  25. package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -0
  26. package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
  27. package/src/Api/Implementation/ApiBase.d.ts +2 -1
  28. package/src/Api/Implementation/ApiBase.js +4 -1
  29. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
  30. package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
  31. package/src/Api/Implementation/CommentsApiImpl.d.ts +4 -0
  32. package/src/Api/Implementation/CommentsApiImpl.js +7 -1
  33. package/src/Api/Implementation/ConfigApiImpl.js +13 -5
  34. package/src/Api/Implementation/GridApiImpl.d.ts +4 -3
  35. package/src/Api/Implementation/GridApiImpl.js +33 -14
  36. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  37. package/src/Api/Implementation/LayoutApiImpl.js +15 -0
  38. package/src/Api/Implementation/NotesApiImpl.d.ts +6 -4
  39. package/src/Api/Implementation/NotesApiImpl.js +9 -8
  40. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
  41. package/src/Api/Implementation/OptionsApiImpl.js +12 -2
  42. package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
  43. package/src/Api/Implementation/ScopeApiImpl.js +20 -7
  44. package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
  45. package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
  46. package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
  47. package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
  48. package/src/Api/Internal/ActionRowInternalApi.js +106 -0
  49. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
  50. package/src/Api/Internal/AdaptableInternalApi.js +10 -8
  51. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  52. package/src/Api/Internal/CalculatedColumnInternalApi.js +70 -0
  53. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
  54. package/src/Api/Internal/ColumnFilterInternalApi.js +11 -1
  55. package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
  56. package/src/Api/Internal/ColumnInternalApi.js +12 -0
  57. package/src/Api/Internal/CommentsInternalApi.d.ts +4 -0
  58. package/src/Api/Internal/CommentsInternalApi.js +14 -0
  59. package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
  60. package/src/Api/Internal/CustomSortInternalApi.js +32 -1
  61. package/src/Api/Internal/DataSetInternalApi.js +1 -1
  62. package/src/Api/Internal/FormatColumnInternalApi.js +3 -2
  63. package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
  64. package/src/Api/Internal/FreeTextColumnInternalApi.js +59 -0
  65. package/src/Api/Internal/GridFilterInternalApi.js +1 -1
  66. package/src/Api/Internal/GridInternalApi.d.ts +21 -3
  67. package/src/Api/Internal/GridInternalApi.js +126 -7
  68. package/src/Api/Internal/NotesInternalApi.d.ts +4 -0
  69. package/src/Api/Internal/NotesInternalApi.js +14 -0
  70. package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
  71. package/src/Api/InteropioPluginApi.d.ts +2 -2
  72. package/src/Api/LayoutApi.d.ts +11 -0
  73. package/src/Api/OptionsApi.d.ts +5 -1
  74. package/src/Api/ScopeApi.d.ts +10 -0
  75. package/src/EnvVars.d.ts +3 -0
  76. package/src/EnvVars.js +4 -0
  77. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
  78. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  79. package/src/PredefinedConfig/Common/AdaptableScope.d.ts +4 -1
  80. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
  81. package/src/PredefinedConfig/Common/AggregationColumns.js +3 -0
  82. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
  83. package/src/PredefinedConfig/Common/RowSummary.d.ts +7 -0
  84. package/src/PredefinedConfig/Common/RowSummary.js +1 -0
  85. package/src/PredefinedConfig/LayoutState.d.ts +5 -0
  86. package/src/PredefinedConfig/NotesState.d.ts +10 -20
  87. package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
  88. package/src/PredefinedConfig/SystemState.d.ts +7 -0
  89. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
  90. package/src/Redux/ActionsReducers/LayoutRedux.js +20 -0
  91. package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
  92. package/src/Redux/ActionsReducers/NotesRedux.js +8 -7
  93. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  94. package/src/Redux/ActionsReducers/SystemRedux.js +13 -1
  95. package/src/Redux/Store/AdaptableStore.d.ts +4 -6
  96. package/src/Redux/Store/AdaptableStore.js +33 -50
  97. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
  98. package/src/Strategy/AdaptableModuleBase.d.ts +2 -3
  99. package/src/Strategy/AdaptableModuleBase.js +4 -7
  100. package/src/Strategy/AlertModule.d.ts +1 -2
  101. package/src/Strategy/AlertModule.js +2 -55
  102. package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
  103. package/src/Strategy/CalculatedColumnModule.js +5 -25
  104. package/src/Strategy/CellSummaryModule.d.ts +1 -0
  105. package/src/Strategy/CellSummaryModule.js +50 -21
  106. package/src/Strategy/ChartingModule.d.ts +0 -1
  107. package/src/Strategy/ChartingModule.js +2 -22
  108. package/src/Strategy/ColumnFilterModule.d.ts +1 -2
  109. package/src/Strategy/ColumnFilterModule.js +1 -64
  110. package/src/Strategy/CommentsModule.d.ts +1 -0
  111. package/src/Strategy/CommentsModule.js +5 -1
  112. package/src/Strategy/CustomSortModule.js +1 -1
  113. package/src/Strategy/DashboardModule.d.ts +1 -2
  114. package/src/Strategy/DashboardModule.js +1 -8
  115. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  116. package/src/Strategy/DataChangeHistoryModule.js +3 -1
  117. package/src/Strategy/DataSetModule.d.ts +1 -1
  118. package/src/Strategy/DataSetModule.js +1 -1
  119. package/src/Strategy/FlashingCellModule.d.ts +1 -2
  120. package/src/Strategy/FlashingCellModule.js +2 -15
  121. package/src/Strategy/FormatColumnModule.d.ts +0 -2
  122. package/src/Strategy/FormatColumnModule.js +0 -47
  123. package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
  124. package/src/Strategy/FreeTextColumnModule.js +0 -30
  125. package/src/Strategy/GridFilterModule.d.ts +0 -1
  126. package/src/Strategy/GridFilterModule.js +0 -37
  127. package/src/Strategy/Interface/IModule.d.ts +0 -1
  128. package/src/Strategy/LayoutModule.d.ts +8 -3
  129. package/src/Strategy/LayoutModule.js +108 -53
  130. package/src/Strategy/NamedQueryModule.d.ts +0 -1
  131. package/src/Strategy/NamedQueryModule.js +0 -19
  132. package/src/Strategy/NotesModule.js +3 -4
  133. package/src/Strategy/PlusMinusModule.d.ts +1 -1
  134. package/src/Strategy/PlusMinusModule.js +1 -1
  135. package/src/Strategy/ScheduleModule.d.ts +1 -1
  136. package/src/Strategy/ScheduleModule.js +1 -1
  137. package/src/Strategy/ShortcutModule.d.ts +1 -1
  138. package/src/Strategy/ShortcutModule.js +1 -1
  139. package/src/Strategy/StyledColumnModule.d.ts +0 -1
  140. package/src/Strategy/StyledColumnModule.js +0 -21
  141. package/src/Strategy/TeamSharingModule.d.ts +1 -0
  142. package/src/Strategy/TeamSharingModule.js +5 -5
  143. package/src/Strategy/ToolPanelModule.d.ts +0 -1
  144. package/src/Strategy/ToolPanelModule.js +0 -23
  145. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  146. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  147. package/src/Utilities/Constants/GeneralConstants.js +1 -0
  148. package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
  149. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -1
  150. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +294 -0
  151. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
  152. package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
  153. package/src/Utilities/Extensions/ArrayExtensions.js +4 -0
  154. package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
  155. package/src/Utilities/Helpers/AdaptableHelper.js +18 -58
  156. package/src/Utilities/Helpers/Helper.d.ts +2 -0
  157. package/src/Utilities/Helpers/Helper.js +4 -0
  158. package/src/Utilities/ObjectFactory.js +6 -6
  159. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +3 -2
  160. package/src/Utilities/Services/AggregatedScalarLiveValue.js +14 -9
  161. package/src/Utilities/Services/CellPopupService.js +0 -1
  162. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  163. package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
  164. package/src/Utilities/Services/LicenseService/index.js +19 -7
  165. package/src/Utilities/Services/MetamodelService.d.ts +1 -1
  166. package/src/Utilities/Services/MetamodelService.js +6 -3
  167. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
  168. package/src/Utilities/Services/QueryLanguageService.js +2 -1
  169. package/src/Utilities/Services/RowEditService.d.ts +3 -2
  170. package/src/Utilities/Services/RowEditService.js +3 -1
  171. package/src/Utilities/Services/SummaryService.d.ts +19 -0
  172. package/src/Utilities/Services/SummaryService.js +29 -0
  173. package/src/View/AdaptableView.js +1 -3
  174. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
  175. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  176. package/src/View/CalculatedColumn/utils.d.ts +1 -1
  177. package/src/View/CellSummary/CellSummaryPopup.js +1 -1
  178. package/src/View/Comments/CommentsPopup.js +12 -8
  179. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  180. package/src/View/Components/NewScopeComponent.js +34 -1
  181. package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
  182. package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
  183. package/src/View/Components/Popups/AdaptableToaster.js +1 -1
  184. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
  185. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
  186. package/src/View/Components/Popups/WindowPopups/windowFactory.js +3 -0
  187. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
  188. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  189. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +8 -8
  190. package/src/View/GridFilter/GridFilterViewPanel.js +6 -2
  191. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
  192. package/src/View/Layout/TransposedPopup.d.ts +3 -0
  193. package/src/View/Layout/TransposedPopup.js +194 -0
  194. package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
  195. package/src/View/Notes/NotesPopup.js +9 -11
  196. package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
  197. package/src/View/Theme/ThemeSelector.js +3 -3
  198. package/src/agGrid/ActionColumnRenderer.js +7 -6
  199. package/src/agGrid/Adaptable.d.ts +3 -455
  200. package/src/agGrid/Adaptable.js +8 -5292
  201. package/src/agGrid/AdaptableAgGrid.d.ts +351 -0
  202. package/src/agGrid/AdaptableAgGrid.js +3936 -0
  203. package/src/agGrid/AdaptableLogger.js +77 -11
  204. package/src/agGrid/AgGridAdapter.d.ts +62 -0
  205. package/src/agGrid/AgGridAdapter.js +577 -0
  206. package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
  207. package/src/agGrid/AgGridColumnAdapter.js +824 -0
  208. package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
  209. package/src/agGrid/AgGridMenuAdapter.js +271 -0
  210. package/src/agGrid/AgGridOptionsService.d.ts +12 -0
  211. package/src/agGrid/AgGridOptionsService.js +54 -0
  212. package/src/agGrid/BadgeRenderer.js +1 -1
  213. package/src/agGrid/CheckboxRenderer.js +1 -1
  214. package/src/agGrid/FilterWrapper.d.ts +2 -2
  215. package/src/agGrid/FilterWrapper.js +1 -1
  216. package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
  217. package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
  218. package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +70 -9
  219. package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
  220. package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
  221. package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
  222. package/src/components/Datepicker/index.d.ts +1 -1
  223. package/src/components/InfiniteTable/index.js +2 -2
  224. package/src/components/Input/index.d.ts +1 -1
  225. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  226. package/src/components/Modal/index.d.ts +1 -0
  227. package/src/components/Modal/index.js +4 -3
  228. package/src/components/Select/Select.d.ts +2 -0
  229. package/src/components/Select/Select.js +2 -2
  230. package/src/components/icons/index.js +2 -0
  231. package/src/components/icons/rows.d.ts +3 -0
  232. package/src/components/icons/rows.js +4 -0
  233. package/src/env.js +2 -2
  234. package/src/metamodel/adaptable.metamodel.d.ts +74 -11
  235. package/src/metamodel/adaptable.metamodel.js +147 -34
  236. package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
  237. package/src/migration/AdaptableUpgradeHelper.js +48 -0
  238. package/src/migration/VersionUpgrade.d.ts +8 -0
  239. package/src/migration/VersionUpgrade.js +11 -0
  240. package/src/migration/VersionUpgrade17.d.ts +18 -0
  241. package/src/migration/VersionUpgrade17.js +342 -0
  242. package/src/migration/VersionUpgrade18.d.ts +5 -0
  243. package/src/migration/VersionUpgrade18.js +6 -0
  244. package/src/parser/src/types.d.ts +5 -0
  245. package/src/types.d.ts +7 -3
  246. package/tsconfig.esm.tsbuildinfo +1 -1
  247. package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
  248. package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
  249. package/src/Utilities/Services/Interface/IRowEditService.js +0 -1
  250. package/src/View/Components/ScopeComponent.d.ts +0 -24
  251. package/src/View/Components/ScopeComponent.js +0 -133
  252. package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
  253. package/src/View/Export/Wizard/ReportScopeWizard.js +0 -47
  254. package/src/agGrid/agGridHelper.d.ts +0 -57
  255. package/src/agGrid/agGridHelper.js +0 -686
  256. package/src/agGrid/agGridMenuHelper.d.ts +0 -46
  257. package/src/agGrid/agGridMenuHelper.js +0 -668
  258. /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
  259. /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
@@ -0,0 +1,351 @@
1
+ import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
2
+ import { ChartRef, Column, GridApi, GridOptions, IRowNode, Module, RowModelType } from '@ag-grid-community/core';
3
+ import { AdaptableLogger } from './AdaptableLogger';
4
+ import { AdaptableApi } from '../Api/AdaptableApi';
5
+ import { DistinctValuesParams, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
6
+ import { EmitterCallback } from '../Utilities/Emitter';
7
+ import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
8
+ import { AgGridAdapter } from './AgGridAdapter';
9
+ import { IDataService } from '../Utilities/Services/Interface/IDataService';
10
+ import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
11
+ import { ICalculatedColumnExpressionService } from '../Utilities/Services/Interface/ICalculatedColumnExpressionService';
12
+ import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
13
+ import { IReportService } from '../Utilities/Services/Interface/IReportService';
14
+ import { IModuleService } from '../Utilities/Services/Interface/IModuleService';
15
+ import { IValidationService } from '../Utilities/Services/Interface/IValidationService';
16
+ import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
17
+ import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
18
+ import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharingService';
19
+ import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
20
+ import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
21
+ import { CellPopupService } from '../Utilities/Services/CellPopupService';
22
+ import { IModuleCollection } from '../Strategy/Interface/IModule';
23
+ import { AgGridMenuAdapter } from './AgGridMenuAdapter';
24
+ import { AdaptableColumn, AdaptableTheme, ChartDefinition, ColumnSort, DataUpdateConfig, GridCell, Layout, ReportData, SelectedCellInfo, SelectedRowInfo } from '../types';
25
+ import { RenderReactRootFn } from '../renderReactRoot';
26
+ import { AgGridOptionsService } from './AgGridOptionsService';
27
+ import { AgGridColumnAdapter } from './AgGridColumnAdapter';
28
+ import { RowEditService } from '../Utilities/Services/RowEditService';
29
+ import { SummaryService } from '../Utilities/Services/SummaryService';
30
+ export type AdaptableVariant = 'vanilla' | 'react' | 'angular';
31
+ export type AdaptableLifecycleState = 'initial' | 'preprocessOptions' | 'initAdaptableState' | 'setupAgGrid' | 'initAgGrid' | 'available' | 'ready' | 'preDestroyed';
32
+ type RenderAgGridFrameworkComponentResult = false | GridApi;
33
+ interface AdaptableInitInternalConfig<TData = any> {
34
+ variant: AdaptableVariant;
35
+ adaptableOptions: AdaptableOptions<TData>;
36
+ gridOptions: GridOptions<TData>;
37
+ modules?: Module[];
38
+ /**
39
+ * Adaptable init hook for rendering the React/Angular AG Grid component
40
+ */
41
+ renderAgGridFrameworkComponent?: (gridOptions: GridOptions<TData>) => Promise<RenderAgGridFrameworkComponentResult>;
42
+ }
43
+ export declare class AdaptableAgGrid implements IAdaptable {
44
+ logger: AdaptableLogger;
45
+ private _id;
46
+ lifecycleState: AdaptableLifecycleState;
47
+ variant: AdaptableVariant;
48
+ private emitter;
49
+ /**
50
+ * Runtime flags
51
+ */
52
+ embedColumnMenu: boolean;
53
+ hasAutogeneratedPrimaryKey: boolean;
54
+ hasAdaptableToolPanel: boolean;
55
+ private initWithLazyData;
56
+ /**
57
+ * once layouts are properly handled with the new aggrid methods & events
58
+ * we can remove this hack
59
+ */
60
+ private previousAgGridColumnState;
61
+ _rawAdaptableOptions: AdaptableOptions;
62
+ adaptableOptions: AdaptableOptions;
63
+ agGridOptionsService: AgGridOptionsService;
64
+ agGridAdapter: AgGridAdapter;
65
+ agGridColumnAdapter: AgGridColumnAdapter;
66
+ agGridMenuAdapter: AgGridMenuAdapter;
67
+ private DANGER_USE_GETTER_adaptableContainerElement;
68
+ private DANGER_USE_GETTER_agGridContainerElement;
69
+ api: AdaptableApi;
70
+ adaptableStore: IAdaptableStore;
71
+ adaptableModules: IModuleCollection;
72
+ DataService: IDataService;
73
+ CalculatedColumnExpressionService: ICalculatedColumnExpressionService;
74
+ EntitlementService: IEntitlementService;
75
+ ReportService: IReportService;
76
+ ModuleService: IModuleService;
77
+ ValidationService: IValidationService;
78
+ QueryLanguageService: IQueryLanguageService;
79
+ AlertService: IAlertService;
80
+ TeamSharingService: ITeamSharingService;
81
+ MetamodelService: IMetamodelService;
82
+ RowEditService: RowEditService;
83
+ Fdc3Service: Fdc3Service;
84
+ CellPopupService: CellPopupService;
85
+ SummaryService: SummaryService;
86
+ private LicenseService;
87
+ private ChartingService;
88
+ private ThemeService;
89
+ private rowListeners;
90
+ private throttleFilterOnEditDataChange;
91
+ private throttleFilterOnTickingDataChange;
92
+ private debouncedSetColumnIntoStore;
93
+ private debouncedSaveGridLayout;
94
+ private debouncedSetSelectedRows;
95
+ private debouncedSetSelectedCells;
96
+ private agGridListenerKeydown;
97
+ private agGridListenerMouseEnter;
98
+ private agGridListenerMouseLeave;
99
+ private listenerGlobalColumnEventsThatTriggerStateChange;
100
+ private listenerGlobalColumnEventsThatTriggerAutoLayoutSave;
101
+ private listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave;
102
+ private listenerGlobalSetRowSelection;
103
+ private listenerCellEditingStarted;
104
+ private listenerFirstDataRendered;
105
+ private listenerPivotModeChanged;
106
+ private listenerPivotChanged;
107
+ private listenerColumnRowGroupChanged;
108
+ private listenerColumnResized;
109
+ private listenerRangeSelectionChanged;
110
+ private listenerSortChanged;
111
+ private listenerModelUpdated;
112
+ private columnMinMaxValuesCache;
113
+ renderReactRoot: RenderReactRootFn;
114
+ private unmountReactRoot?;
115
+ private unmountLoadingScreen?;
116
+ /**
117
+ * Temporary, these are MIGRATION technical debts, and should be removed as soon as possible
118
+ */
119
+ private adaptableStatusPanelKeys;
120
+ constructor();
121
+ static forEachAdaptable(fn: (adaptable: AdaptableAgGrid) => void): void;
122
+ private static collectInstance;
123
+ private static dismissInstance;
124
+ get isReady(): boolean;
125
+ get isAvailable(): boolean;
126
+ get isDestroyed(): boolean;
127
+ _emit: (eventName: string, data?: any) => Promise<any>;
128
+ _emitSync: (eventName: string, data?: any) => any;
129
+ _on: (eventName: string, callback: EmitterCallback) => (() => void);
130
+ _onIncludeFired: (eventName: string, callback: EmitterCallback) => (() => void);
131
+ /**
132
+ * Internal initializer for Adaptable, directly called by the React and Angular Adaptable wrappers
133
+ * @private
134
+ */
135
+ static _initInternal(config: AdaptableInitInternalConfig): Promise<AdaptableApi>;
136
+ private _initAdaptableAgGrid;
137
+ private normaliseLayoutState;
138
+ private normaliseToolPanelState;
139
+ refreshQuickFilter(): void;
140
+ applyColumnFiltering(): void;
141
+ applyGridFiltering(): void;
142
+ private refreshColDefs;
143
+ showQuickFilter(): void;
144
+ hideQuickFilter(): void;
145
+ private normalizeAdaptableOptions;
146
+ private setInitialGridOptions;
147
+ /**
148
+ * Either initializes the AG Grid instance or delegates it to the framework wrappers (React/Anglar)
149
+ */
150
+ private initializeAgGrid;
151
+ private getAllColumnDefinitions;
152
+ private getSpecialColDefs;
153
+ private enhanceColDefsWithSpecialColumns;
154
+ useRowNodeLookUp(): boolean;
155
+ getAgGridContainerElement(): HTMLElement | null;
156
+ getAdaptableContainerElement(): HTMLElement | null;
157
+ refreshSelectedCellsState(): SelectedCellInfo | undefined;
158
+ refreshSelectedRowsState(): SelectedRowInfo | undefined;
159
+ isGridSelectable(): boolean;
160
+ private initAdaptableStore;
161
+ private mapAdaptableStateToAgGridState;
162
+ private addGridEventListeners;
163
+ private shouldAutoSizeLayout;
164
+ private autoSizeLayoutIfNeeded;
165
+ private performAudit;
166
+ forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
167
+ getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
168
+ getPlugin(pluginId: string): AdaptablePlugin;
169
+ private initServices;
170
+ private initLicenseService;
171
+ private initModules;
172
+ /**
173
+ * This method contains all the updates on the AdaptableState which were made AFTER Adaptbale was ready
174
+ * This was contidioned because we required AG Grid to be ready before we could make these updates
175
+ * We should be able to refactor the code, no that we no fore sure that Adaptable State is ready BEFORE AG Grid init
176
+ */
177
+ private temporaryAdaptableStateUpdates;
178
+ private validatePrimaryKey;
179
+ private deriveAdaptableColumnStateFromAgGrid;
180
+ private checkShouldClearExistingFiltersOrSearches;
181
+ getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
182
+ getPrimaryKeyValueFromRowNode(rowNode: IRowNode, gridApi?: GridApi): string | number;
183
+ getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any;
184
+ getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): string | undefined;
185
+ getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
186
+ private getCleanValue;
187
+ getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
188
+ updateColumnModelAndRefreshGrid(config?: {
189
+ skipColDefsRefresh?: boolean;
190
+ }): void;
191
+ redrawBody(): void;
192
+ refreshHeader(): void;
193
+ redrawRows(rowNodes?: IRowNode[]): void;
194
+ redrawRow(rowNode: IRowNode): void;
195
+ refreshCells(rowNodes: IRowNode[], columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
196
+ refreshColumns(columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
197
+ jumpToRow(rowNode: IRowNode): void;
198
+ jumpToColumn(columnId: string): void;
199
+ jumpToCell(columnId: string, rowNode: IRowNode): void;
200
+ selectColumn(columnId: string, config?: {
201
+ keepExistingSelection?: boolean;
202
+ }): void;
203
+ selectColumns(columnIds: string[], config?: {
204
+ keepExistingSelection?: boolean;
205
+ }): void;
206
+ selectAll(): void;
207
+ deselectAll(): void;
208
+ setGridData(dataSource: any[]): void;
209
+ getGridData(): any[];
210
+ private addSyntheticPrimaryKey;
211
+ private addSyntheticPrimaryKeyIfMissing;
212
+ getFirstDisplayedRowNode(): IRowNode;
213
+ getFirstRowNode(): IRowNode | undefined;
214
+ updateRowGroupsExpandedState(layout?: Layout): void;
215
+ isGroupRowNode(rowNode: IRowNode): boolean;
216
+ getFilteredData(): any[];
217
+ updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
218
+ addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
219
+ addOrUpdateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<{
220
+ added: IRowNode[];
221
+ updated: IRowNode[];
222
+ }>;
223
+ deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
224
+ getRowNodeForPrimaryKey(primaryKeyValue: any): any;
225
+ hideColumn(columnId: string): void;
226
+ showColumn(columnId: string): void;
227
+ autoSizeColumn(columnId: string): void;
228
+ autoSizeColumns(columnIds: string[]): void;
229
+ autoSizeAllColumns(): void;
230
+ setColumnOrder(VisibleColumnList: string[]): void;
231
+ private getSortedColumnStateForVisibleColumns;
232
+ getDistinctValuesForColumn(column: AdaptableColumn, distinctValuesParams: DistinctValuesParams): GridCell[];
233
+ private getGridCellsForPermittedValues;
234
+ private getDistinctGridCellsForColumn;
235
+ private addDistinctColumnValue;
236
+ private getUniqueGridCells;
237
+ getGridCellsForColumn(columnId: string): GridCell[] | undefined;
238
+ getRowNodesForPrimaryKeys(primaryKeyValues: any[]): any[];
239
+ getRowNodeByIndex(index: number): IRowNode;
240
+ getAgGridStatusPanels(): import("@ag-grid-community/core").StatusPanelDef[];
241
+ setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?: IRowNode): void;
242
+ isCellEditable(rowNode: IRowNode, column: Column): boolean;
243
+ forAllRowNodesDo(func: (rowNode: IRowNode, rowIndex: number) => void, config?: {
244
+ includeGroupRows?: boolean;
245
+ filterFn?: (rowNode: IRowNode) => boolean;
246
+ }): void;
247
+ forAllVisibleRowNodesDo(func: (rowNode: IRowNode, rowIndex: number) => void, config?: {
248
+ includeGroupRows?: boolean;
249
+ filterFn?: (rowNode: IRowNode) => boolean;
250
+ }): void;
251
+ getAgGridRowModelType(): RowModelType;
252
+ getAllRowNodes(config?: {
253
+ includeGroupRows?: boolean;
254
+ filterFn?: (rowNode: IRowNode) => boolean;
255
+ }): IRowNode[];
256
+ getGroupRowNodes(): IRowNode[];
257
+ getRowsInViewport(): IRowNode[];
258
+ isRowNodeVisible(rowNode: IRowNode): boolean;
259
+ selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
260
+ deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
261
+ selectNode(rowNode: IRowNode, clearSelection: boolean): void;
262
+ deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
263
+ selectCells(columnIds: string[], startNode: IRowNode, endNode: IRowNode, clearSelection?: boolean): void;
264
+ getAgGridColumnType(columnId: string): string | string[];
265
+ setColumnSort(columnSorts: ColumnSort[]): void;
266
+ clearColumnSort(): void;
267
+ hideFilterFormPopup: Function;
268
+ hideColumnFilterForm(): void;
269
+ clearColumnFiltering(): void;
270
+ clearColumnFilteringForColumns(columnIds: string[]): void;
271
+ canGenerateCharts(): boolean;
272
+ canDisplaySparklines(): boolean;
273
+ showCharts(chartsDefinitions: ChartDefinition[], chartContainer?: HTMLElement): ChartRef[];
274
+ showChart(chartDefinition: ChartDefinition, container?: HTMLElement): ChartRef;
275
+ updateChart(chart: ChartDefinition): void;
276
+ getChartModels(): import("@ag-grid-community/core").ChartModel[];
277
+ getRowCount(): number;
278
+ getColumnCount(): number;
279
+ getVisibleColumnCount(): number;
280
+ isGridGroupable(): boolean;
281
+ isGridGroupingActive(): boolean;
282
+ setAgGridQuickSearch(searchText: string): void;
283
+ getAgGridCurrentThemeName(): string;
284
+ private getAgGridLightThemeName;
285
+ applyAdaptableTheme(theme: AdaptableTheme | string): void;
286
+ setRowGroupColumns(columnIds: string[]): void;
287
+ getAgGridAllGridColumns(): Column<any>[];
288
+ clearRowGroupColumns(): void;
289
+ expandAllRowGroups(): void;
290
+ closeAllRowGroups(): void;
291
+ expandRowGroupsForValues(columnValues: any[]): void;
292
+ getExpandRowGroupsKeys(): any[];
293
+ getAgGridColumnForColumnId(columnId: string): Column;
294
+ getMinMaxCachedValueForColumn(column: AdaptableColumn, minMax: 'min' | 'max'): number;
295
+ getAgGridRegisteredModules(): Module[];
296
+ destroy(config?: {
297
+ unmount: boolean;
298
+ destroyApi?: boolean;
299
+ }): void;
300
+ canExportToExcel(): boolean;
301
+ exportToExcel(reportData: ReportData, fileName: string): void;
302
+ exportVisualDataToExcel(): void;
303
+ isQuickFilterAvailable(): boolean;
304
+ private hasFloatingFilterOnAtLeastOneColumn;
305
+ getChartRef(chartId: string): ChartRef;
306
+ setLayout(layout?: Layout): void;
307
+ private getActiveAdaptableAggFuncForCol;
308
+ /**
309
+ * Setting layout works by modifing the column state.
310
+ * The column state is based on the current existing columns.
311
+ * At this point the column groups do not exist, and the widths from layout are not applied.
312
+ *
313
+ * After the col sate is applied and the column groups are created we need
314
+ * to apply the state again to update the widths of the group columns.
315
+ */
316
+ private applyGroupColumnWidth;
317
+ private onRowDataChanged;
318
+ private onCellDataChanged;
319
+ private isUndoChange;
320
+ /**
321
+ * There are a few things that we need to do AFTER we edit a cell and it makes sense to put them in one place
322
+ */
323
+ private performPostEditChecks;
324
+ private refreshCellsBasedOnCellDataChange;
325
+ private refreshColumnForRelativeRangeStyledColumns;
326
+ private getStyledColumnComparisonChanges;
327
+ private getFormatColumnPredicateStyleChanges;
328
+ private getFormatColumnExpressionStylesChanges;
329
+ private checkChangedCellCurrentlySelected;
330
+ private resetMinMaxCachedValueForColumn;
331
+ private filterOnTickingDataChange;
332
+ private filterOnEditDataChange;
333
+ private shouldCreateDefaultLayout;
334
+ private createDefaultLayout;
335
+ private updateLayoutFromGrid;
336
+ private persistLayout;
337
+ /**
338
+ * When reading the state from the grid, we have to make sure 'avg' is not overriden with the 'avg' string.
339
+ */
340
+ private mapAggregationColumnsFromGrid;
341
+ private persistColumnIndexBeforeGrouping;
342
+ /**
343
+ * Restores the order previous grouping order.
344
+ */
345
+ private restoreUnGroupColumnOrder;
346
+ private onSortChanged;
347
+ private getColumnSorts;
348
+ setPinnedRows(pinnedRows: any, location: 'top' | 'bottom'): void;
349
+ setupRowSummaries(): void;
350
+ }
351
+ export {};