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