@adaptabletools/adaptable 18.0.0-canary.0 → 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.
- package/agGrid.d.ts +4 -21
- package/agGrid.js +9 -26
- package/base.css +11 -3
- package/base.css.map +1 -1
- package/index.css +88 -70
- package/index.css.map +1 -1
- package/package.json +4 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +61 -108
- package/src/AdaptableOptions/AdaptableOptions.d.ts +12 -6
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -2
- package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.js +1 -5
- package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/BulkUpdateApi.d.ts +0 -5
- package/src/Api/ConfigApi.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -4
- package/src/Api/GridApi.d.ts +18 -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 +4 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
- package/src/Api/Implementation/CommentsApiImpl.d.ts +4 -0
- package/src/Api/Implementation/CommentsApiImpl.js +7 -1
- package/src/Api/Implementation/ConfigApiImpl.js +13 -5
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -3
- package/src/Api/Implementation/GridApiImpl.js +33 -14
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +15 -0
- package/src/Api/Implementation/NotesApiImpl.d.ts +6 -4
- package/src/Api/Implementation/NotesApiImpl.js +9 -8
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
- package/src/Api/Implementation/OptionsApiImpl.js +12 -2
- package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ScopeApiImpl.js +20 -7
- 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/CommentsInternalApi.d.ts +4 -0
- package/src/Api/Internal/CommentsInternalApi.js +14 -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/FormatColumnInternalApi.js +3 -2
- 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/NotesInternalApi.d.ts +4 -0
- package/src/Api/Internal/NotesInternalApi.js +14 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
- package/src/Api/InteropioPluginApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +11 -0
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/Api/ScopeApi.d.ts +10 -0
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +4 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +3 -0
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
- package/src/PredefinedConfig/Common/RowSummary.d.ts +7 -0
- package/src/PredefinedConfig/Common/RowSummary.js +1 -0
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/NotesState.d.ts +10 -20
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +7 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +20 -0
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
- package/src/Redux/ActionsReducers/NotesRedux.js +11 -10
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +13 -1
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +33 -50
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
- 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/CellSummaryModule.d.ts +1 -0
- package/src/Strategy/CellSummaryModule.js +50 -21
- package/src/Strategy/ChartingModule.d.ts +0 -1
- package/src/Strategy/ChartingModule.js +2 -22
- 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 +5 -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 +8 -3
- package/src/Strategy/LayoutModule.js +108 -53
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/NotesModule.js +3 -4
- 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/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +1 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +294 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +18 -58
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +4 -0
- package/src/Utilities/ObjectFactory.js +6 -6
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +3 -2
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +14 -9
- package/src/Utilities/Services/CellPopupService.js +0 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
- package/src/Utilities/Services/LicenseService/index.js +19 -7
- package/src/Utilities/Services/MetamodelService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.js +6 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -1
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/Utilities/Services/SummaryService.d.ts +19 -0
- package/src/Utilities/Services/SummaryService.js +29 -0
- package/src/View/AdaptableView.js +1 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/Comments/CommentsPopup.js +12 -8
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/NewScopeComponent.js +34 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/Components/Popups/AdaptableToaster.js +1 -1
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +3 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +8 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +46 -8
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
- package/src/View/Layout/TransposedPopup.d.ts +3 -0
- package/src/View/Layout/TransposedPopup.js +194 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Notes/NotesPopup.js +9 -11
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/Theme/ThemeSelector.js +3 -3
- package/src/agGrid/ActionColumnRenderer.js +7 -6
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +8 -5292
- package/src/agGrid/AdaptableAgGrid.d.ts +351 -0
- package/src/agGrid/AdaptableAgGrid.js +3936 -0
- package/src/agGrid/AdaptableLogger.js +77 -11
- package/src/agGrid/AgGridAdapter.d.ts +62 -0
- package/src/agGrid/AgGridAdapter.js +577 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +824 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +271 -0
- package/src/agGrid/AgGridOptionsService.d.ts +12 -0
- package/src/agGrid/AgGridOptionsService.js +54 -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} +70 -9
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +4 -3
- package/src/components/Select/Select.d.ts +2 -0
- package/src/components/Select/Select.js +2 -2
- package/src/components/Textarea/index.d.ts +9 -0
- package/src/components/Textarea/index.js +50 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/rows.d.ts +3 -0
- package/src/components/icons/rows.js +4 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +74 -11
- package/src/metamodel/adaptable.metamodel.js +157 -34
- 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/parser/src/types.d.ts +5 -0
- package/src/types.d.ts +7 -3
- 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/View/Components/ScopeComponent.d.ts +0 -24
- package/src/View/Components/ScopeComponent.js +0 -133
- package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
- package/src/View/Export/Wizard/ReportScopeWizard.js +0 -47
- 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
- /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
- /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartModel, ChartRef, Column, GridOptions, IRowNode, Module,
|
|
1
|
+
import { ChartModel, ChartRef, Column, GridApi, GridOptions, IRowNode, Module, RowModelType, StatusPanelDef } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
3
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
|
|
@@ -10,8 +10,7 @@ import { SelectedCellInfo } from '../PredefinedConfig/Selection/SelectedCellInfo
|
|
|
10
10
|
import { AdaptableTheme } from '../PredefinedConfig/ThemeState';
|
|
11
11
|
import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
|
|
12
12
|
import { IModuleCollection } from '../Strategy/Interface/IModule';
|
|
13
|
-
import {
|
|
14
|
-
import { IPPStyle } from '../Utilities/Interface/IPPStyle';
|
|
13
|
+
import { AdaptableMenuItem, AdaptableOptions, AdaptablePlugin, ChartDefinition, SelectedRowInfo } from '../types';
|
|
15
14
|
import { ICalculatedColumnExpressionService } from '../Utilities/Services/Interface/ICalculatedColumnExpressionService';
|
|
16
15
|
import { IDataService } from '../Utilities/Services/Interface/IDataService';
|
|
17
16
|
import { CellPopupService } from '../Utilities/Services/CellPopupService';
|
|
@@ -25,11 +24,14 @@ import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
|
|
|
25
24
|
import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharingService';
|
|
26
25
|
import { AdaptableFrameworkComponent } from '../AdaptableOptions/AdaptableFrameworkComponent';
|
|
27
26
|
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
28
|
-
import { ColumnValuesComparer } from '../AdaptableOptions/CustomSortOptions';
|
|
29
|
-
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
30
27
|
import { RenderReactRootFn } from '../renderReactRoot';
|
|
31
28
|
import { AdaptableLogger } from '../agGrid/AdaptableLogger';
|
|
32
29
|
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
30
|
+
import { SummaryService } from '../Utilities/Services/SummaryService';
|
|
31
|
+
import { AgGridAdapter } from '../agGrid/AgGridAdapter';
|
|
32
|
+
import { AgGridColumnAdapter } from '../agGrid/AgGridColumnAdapter';
|
|
33
|
+
import { AgGridMenuAdapter } from '../agGrid/AgGridMenuAdapter';
|
|
34
|
+
import { RowEditService } from '../Utilities/Services/RowEditService';
|
|
33
35
|
/**
|
|
34
36
|
* Contains AG Grid Options and Modules - used when instantiating AdapTable vanilla
|
|
35
37
|
*/
|
|
@@ -59,37 +61,18 @@ export type AdaptableVariant = 'vanilla' | 'react' | 'angular';
|
|
|
59
61
|
export interface IAdaptable {
|
|
60
62
|
logger: AdaptableLogger;
|
|
61
63
|
variant: AdaptableVariant;
|
|
62
|
-
|
|
64
|
+
isReady: boolean;
|
|
65
|
+
isDestroyed: boolean;
|
|
63
66
|
api: AdaptableApi;
|
|
64
67
|
adaptableOptions: AdaptableOptions;
|
|
65
|
-
_rawAdaptableOptions: AdaptableOptions;
|
|
66
68
|
adaptableStore: IAdaptableStore;
|
|
67
69
|
adaptableModules: IModuleCollection;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
70
|
+
agGridAdapter: AgGridAdapter;
|
|
71
|
+
agGridMenuAdapter: AgGridMenuAdapter;
|
|
72
|
+
agGridColumnAdapter: AgGridColumnAdapter;
|
|
72
73
|
embedColumnMenu: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Set when Adaptable is fully initialised
|
|
75
|
-
*
|
|
76
|
-
* Avoid unnecessary store calls and rendering
|
|
77
|
-
*/
|
|
78
|
-
isInitialised: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Set to true when adaptable is destroyed.
|
|
81
|
-
*/
|
|
82
|
-
isDestroyed: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* TRUE iff:
|
|
85
|
-
* 1. isInitialised = TRUE
|
|
86
|
-
* 2. isDestroyed = FALSE
|
|
87
|
-
*/
|
|
88
|
-
isLive: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* TRUE if the Adaptable custom tool panel (side-bar) is displayed
|
|
91
|
-
*/
|
|
92
74
|
hasAdaptableToolPanel: boolean;
|
|
75
|
+
renderReactRoot: RenderReactRootFn;
|
|
93
76
|
/**
|
|
94
77
|
* Adaptable contains a number of 'Services' which are created at Startup
|
|
95
78
|
*
|
|
@@ -105,9 +88,10 @@ export interface IAdaptable {
|
|
|
105
88
|
AlertService: IAlertService;
|
|
106
89
|
TeamSharingService: ITeamSharingService;
|
|
107
90
|
MetamodelService: IMetamodelService;
|
|
108
|
-
RowEditService:
|
|
91
|
+
RowEditService: RowEditService;
|
|
109
92
|
Fdc3Service: Fdc3Service;
|
|
110
93
|
CellPopupService: CellPopupService;
|
|
94
|
+
SummaryService: SummaryService;
|
|
111
95
|
/**
|
|
112
96
|
* INTERNAL ADAPTABLE EVENTS
|
|
113
97
|
* These are not called externally - for that we use eventapi
|
|
@@ -120,6 +104,7 @@ export interface IAdaptable {
|
|
|
120
104
|
_on(eventName: 'ScrollChanged', callback: () => void): () => void;
|
|
121
105
|
_on(eventName: 'MouseEnter', callback: (event: MouseEvent) => void): () => void;
|
|
122
106
|
_on(eventName: 'MouseLeave', callback: (event: MouseEvent) => void): () => void;
|
|
107
|
+
_on(eventname: 'FirstDataRendered', callback: () => void): () => void;
|
|
123
108
|
_on(eventName: 'CellEditorKeyDown', callback: (param: {
|
|
124
109
|
keyDownEvent: KeyboardEvent;
|
|
125
110
|
cellValue: any;
|
|
@@ -149,20 +134,34 @@ export interface IAdaptable {
|
|
|
149
134
|
componentType: string;
|
|
150
135
|
}): Promise<any>;
|
|
151
136
|
_emitSync(eventName: 'CreateAdaptableContextMenuItems', data?: any): Promise<any>;
|
|
152
|
-
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
getAgGridContainerElement(): HTMLElement | null;
|
|
153
141
|
redrawBody(): void;
|
|
154
|
-
|
|
155
|
-
redrawHeader(): void;
|
|
142
|
+
refreshHeader(): void;
|
|
156
143
|
redrawRow(rowNode: IRowNode): void;
|
|
157
|
-
redrawRows(rowNodes
|
|
144
|
+
redrawRows(rowNodes?: IRowNode[]): void;
|
|
158
145
|
refreshCells(rowNodes: IRowNode[], columns: (string | any)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
159
146
|
refreshColumns(columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
160
|
-
|
|
161
|
-
|
|
147
|
+
refreshSelectedCellsState(): SelectedCellInfo | undefined;
|
|
148
|
+
refreshSelectedRowsState(): SelectedRowInfo | undefined;
|
|
149
|
+
selectColumn(columnId: string, config?: {
|
|
150
|
+
keepExistingSelection?: boolean;
|
|
151
|
+
}): void;
|
|
152
|
+
selectColumns(columnIds: string[], config?: {
|
|
153
|
+
keepExistingSelection?: boolean;
|
|
154
|
+
}): void;
|
|
155
|
+
selectAll(): void;
|
|
156
|
+
deselectAll(): void;
|
|
157
|
+
selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
158
|
+
deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
159
|
+
selectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
160
|
+
deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
161
|
+
selectCells(columnIds: string[], startNode: IRowNode, endNode: IRowNode, clearSelection?: boolean): void;
|
|
162
162
|
jumpToRow(rowNode: IRowNode): void;
|
|
163
163
|
jumpToColumn(columnId: string): void;
|
|
164
164
|
jumpToCell(columnId: string, rowNode: IRowNode): void;
|
|
165
|
-
getAgGridContainerElement(): HTMLElement | null;
|
|
166
165
|
setGridData(dataSource: any): void;
|
|
167
166
|
getGridData(): any[];
|
|
168
167
|
getFilteredData(): any[];
|
|
@@ -173,50 +172,22 @@ export interface IAdaptable {
|
|
|
173
172
|
updated: IRowNode[];
|
|
174
173
|
}>;
|
|
175
174
|
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
176
|
-
|
|
177
|
-
keepExistingSelection?: boolean;
|
|
178
|
-
}): void;
|
|
179
|
-
selectColumns(columnIds: string[], config?: {
|
|
180
|
-
keepExistingSelection?: boolean;
|
|
181
|
-
}): void;
|
|
182
|
-
selectAll(): void;
|
|
183
|
-
deselectAll(): void;
|
|
184
|
-
hideColumn(columnId: string): void;
|
|
185
|
-
showColumn(columnId: string): void;
|
|
186
|
-
autoSizeColumn(columnId: string): void;
|
|
187
|
-
autoSizeColumns(columnIds: string[]): void;
|
|
188
|
-
autoSizeAllColumns(): void;
|
|
189
|
-
updateColumnsIntoStore(): void;
|
|
190
|
-
setColumnOrder(visibleColumnList: string[]): void;
|
|
191
|
-
getPrimaryKeyValueFromRowNode(rowNode: IRowNode): any;
|
|
192
|
-
getColumnValueDisplayValuePairList(columnId: string, visibleRowsOnly: boolean, onlyIncludeIds?: {
|
|
193
|
-
[key: string]: boolean;
|
|
194
|
-
}): any[];
|
|
175
|
+
getPrimaryKeyValueFromRowNode(rowNode: IRowNode, gridApi?: GridApi): any;
|
|
195
176
|
getDistinctValuesForColumn(column: AdaptableColumn, distinctValuesParams: DistinctValuesParams): GridCell[];
|
|
196
|
-
getDistinctFilterListValuesForColumn(column: AdaptableColumn, filter: string, distinctValuesParams: DistinctValuesParams): Promise<{
|
|
197
|
-
gridCells: GridCell[];
|
|
198
|
-
suppressClientSideFilter?: boolean;
|
|
199
|
-
}>;
|
|
200
|
-
getDistinctCustomSortValuesForColumn(column: AdaptableColumn, distinctValuesParams: DistinctValuesParams): Promise<GridCell[]>;
|
|
201
|
-
getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, selectedGridCells: GridCell[], distinctValuesParams: DistinctValuesParams): Promise<GridCell[]>;
|
|
202
|
-
getDisplayValue(id: any, columnId: string): string | undefined;
|
|
203
177
|
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
|
|
204
178
|
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
205
179
|
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): string | undefined;
|
|
206
180
|
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
|
|
207
181
|
getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
|
|
208
182
|
getGridCellsForColumn(columnId: string): GridCell[] | undefined;
|
|
209
|
-
getDataRowFromRowNode(rowNode: IRowNode): any;
|
|
210
183
|
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
|
|
211
184
|
getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
|
|
212
185
|
getRowNodeByIndex(index: number): IRowNode;
|
|
213
186
|
getAgGridStatusPanels(): StatusPanelDef[];
|
|
214
187
|
forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
|
|
215
|
-
lookupPlugins(propertyName: string, ...args: any): any;
|
|
216
188
|
getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
|
|
217
189
|
getPlugin(pluginId: string): AdaptablePlugin;
|
|
218
190
|
setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?: IRowNode): void;
|
|
219
|
-
cancelEdit(): any;
|
|
220
191
|
isCellEditable(rowNode: IRowNode, column: Column): boolean;
|
|
221
192
|
getFirstRowNode(): IRowNode | undefined;
|
|
222
193
|
getFirstDisplayedRowNode(): IRowNode | undefined;
|
|
@@ -228,10 +199,6 @@ export interface IAdaptable {
|
|
|
228
199
|
includeGroupRows?: boolean;
|
|
229
200
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
230
201
|
}): void;
|
|
231
|
-
getVisibleRowNodes(config?: {
|
|
232
|
-
includeGroupRows?: boolean;
|
|
233
|
-
filterFn?: (rowNode: IRowNode) => boolean;
|
|
234
|
-
}): IRowNode[];
|
|
235
202
|
getAllRowNodes(config?: {
|
|
236
203
|
includeGroupRows?: boolean;
|
|
237
204
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
@@ -242,26 +209,26 @@ export interface IAdaptable {
|
|
|
242
209
|
updateRowGroupsExpandedState(layout?: Layout): void;
|
|
243
210
|
getRowsInViewport(): IRowNode[];
|
|
244
211
|
isGroupRowNode(rowNode: IRowNode): boolean;
|
|
245
|
-
isVisibleNode(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
|
-
getFirstGroupedColumn(): AdaptableColumn | undefined;
|
|
252
212
|
isRowNodeVisible(rowNode: IRowNode): boolean;
|
|
253
213
|
getAgGridColumnType(columnId: string): string | string[];
|
|
254
|
-
|
|
214
|
+
hideColumn(columnId: string): void;
|
|
215
|
+
showColumn(columnId: string): void;
|
|
216
|
+
autoSizeColumn(columnId: string): void;
|
|
217
|
+
autoSizeColumns(columnIds: string[]): void;
|
|
218
|
+
autoSizeAllColumns(): void;
|
|
219
|
+
setColumnOrder(visibleColumnList: string[]): void;
|
|
255
220
|
setColumnSort(columnSorts: ColumnSort[]): void;
|
|
256
221
|
clearColumnSort(): void;
|
|
257
222
|
hideColumnFilterForm(): void;
|
|
258
|
-
applyColumnFiltering(): void;
|
|
259
223
|
clearColumnFiltering(): void;
|
|
260
224
|
clearColumnFilteringForColumns(columnIds: string[]): void;
|
|
225
|
+
applyColumnFiltering(): void;
|
|
261
226
|
applyGridFiltering(): void;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
227
|
+
refreshQuickFilter(): void;
|
|
228
|
+
showQuickFilter(): void;
|
|
229
|
+
hideQuickFilter(): void;
|
|
230
|
+
isQuickFilterAvailable(): boolean;
|
|
231
|
+
setAgGridQuickSearch(query: string): void;
|
|
265
232
|
canGenerateCharts(): boolean;
|
|
266
233
|
canDisplaySparklines(): boolean;
|
|
267
234
|
showCharts(charts: ChartDefinition[]): ChartRef[];
|
|
@@ -270,32 +237,13 @@ export interface IAdaptable {
|
|
|
270
237
|
updateChart(chart: ChartDefinition): void;
|
|
271
238
|
getChartModels(): ChartModel[];
|
|
272
239
|
getAgGridRowModelType(): RowModelType;
|
|
273
|
-
getCurrentIPPStyle(): IPPStyle;
|
|
274
|
-
getDefaultIPPStyle(): IPPStyle;
|
|
275
240
|
getRowCount(): number;
|
|
276
241
|
getColumnCount(): number;
|
|
277
|
-
getVisibleRowCount(): number;
|
|
278
242
|
getVisibleColumnCount(): number;
|
|
279
|
-
setLayout(layout: Layout): void;
|
|
280
243
|
isGridSelectable(): boolean;
|
|
281
|
-
isGridRangeSelectable(): boolean;
|
|
282
|
-
isGridGroupable(): boolean;
|
|
283
|
-
isGridPivotable(): boolean;
|
|
284
244
|
isGridGroupingActive(): boolean;
|
|
285
|
-
showQuickFilter(): void;
|
|
286
|
-
hideQuickFilter(): void;
|
|
287
|
-
isQuickFilterAvailable(): boolean;
|
|
288
|
-
setAgGridQuickSearch(query: string): void;
|
|
289
|
-
getAgGridLightThemeName(): string;
|
|
290
245
|
getAgGridCurrentThemeName(): string;
|
|
291
246
|
applyAdaptableTheme(theme: AdaptableTheme | string): void;
|
|
292
|
-
/**
|
|
293
|
-
* called when you want to destroy the instance & cleanup resources
|
|
294
|
-
*/
|
|
295
|
-
destroy(config?: {
|
|
296
|
-
unmount: boolean;
|
|
297
|
-
destroyApi?: boolean;
|
|
298
|
-
}): void;
|
|
299
247
|
setRowGroupColumns(columnIds: string[]): void;
|
|
300
248
|
getAgGridAllGridColumns(): Column<any>[];
|
|
301
249
|
clearRowGroupColumns(): void;
|
|
@@ -305,14 +253,19 @@ export interface IAdaptable {
|
|
|
305
253
|
getExpandRowGroupsKeys(): any[];
|
|
306
254
|
getAdaptableContainerElement(): HTMLElement | null;
|
|
307
255
|
getAgGridContainerElement(): HTMLElement | null;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
updateColDefsForSpecialColumns({ skipSetupColumns }?: {
|
|
311
|
-
skipSetupColumns?: boolean;
|
|
256
|
+
updateColumnModelAndRefreshGrid(config?: {
|
|
257
|
+
skipColDefsRefresh?: boolean;
|
|
312
258
|
}): void;
|
|
313
259
|
getAgGridColumnForColumnId(columnId: string): Column;
|
|
314
|
-
isAgGridModulePresent(moduleName: ModuleNames): boolean;
|
|
315
260
|
getMinMaxCachedValueForColumn(column: AdaptableColumn, minMax: 'min' | 'max'): number | undefined;
|
|
316
261
|
getAgGridRegisteredModules(): Module[];
|
|
317
|
-
|
|
262
|
+
setupRowSummaries: () => void;
|
|
263
|
+
destroy(config?: {
|
|
264
|
+
unmount: boolean;
|
|
265
|
+
destroyApi?: boolean;
|
|
266
|
+
}): void;
|
|
267
|
+
setLayout(layout?: Layout): void;
|
|
268
|
+
canExportToExcel(): boolean;
|
|
269
|
+
exportToExcel(reportData: ReportData, fileName: string): void;
|
|
270
|
+
exportVisualDataToExcel(): void;
|
|
318
271
|
}
|
|
@@ -29,12 +29,12 @@ import { CalendarOptions } from './CalendarOptions';
|
|
|
29
29
|
import { QuickSearchOptions } from './QuickSearchOptions';
|
|
30
30
|
import { FormatColumnOptions } from './FormatColumnOptions';
|
|
31
31
|
import { Fdc3Options } from './Fdc3Options';
|
|
32
|
-
import {
|
|
32
|
+
import { NoteOptions } from './NoteOptions';
|
|
33
33
|
import { PredicateOptions } from './PredicateOptions';
|
|
34
34
|
import { DataImportOptions } from './DataImportOptions';
|
|
35
35
|
import { ColumnFilterOptions } from './ColumnFilterOptions';
|
|
36
36
|
import { GridFilterOptions } from './GridFilterOptions';
|
|
37
|
-
import { CommentsOptions } from './
|
|
37
|
+
import { CommentsOptions } from './CommentOptions';
|
|
38
38
|
/**
|
|
39
39
|
* Large group of options enabling developers to set up AdapTable at design time to fit precise requirements
|
|
40
40
|
*/
|
|
@@ -42,7 +42,7 @@ export interface AdaptableOptions<TData = any> {
|
|
|
42
42
|
/**
|
|
43
43
|
* Identifier for this instance of AdapTable
|
|
44
44
|
*
|
|
45
|
-
* @defaultValue '
|
|
45
|
+
* @defaultValue 'adaptable_id_${random_number}'
|
|
46
46
|
* @gridInfoItem
|
|
47
47
|
* @noCodeItem
|
|
48
48
|
*/
|
|
@@ -65,6 +65,12 @@ export interface AdaptableOptions<TData = any> {
|
|
|
65
65
|
* Commercial license key. If the license is not provided or is expired, various visual information notes will be displayed and some functionality may be limited.
|
|
66
66
|
*/
|
|
67
67
|
licenseKey?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Automatically migrate the state from the previous version of Adaptable to the current version.
|
|
70
|
+
*
|
|
71
|
+
* @defaultValue true
|
|
72
|
+
*/
|
|
73
|
+
autoMigrateState?: boolean;
|
|
68
74
|
/**
|
|
69
75
|
* User State set at design-time and shipped with AdapTable for first use; can be `PredefinedConfig` object or url to file containing config
|
|
70
76
|
*
|
|
@@ -128,13 +134,13 @@ export interface AdaptableOptions<TData = any> {
|
|
|
128
134
|
*/
|
|
129
135
|
containerOptions?: ContainerOptions;
|
|
130
136
|
/**
|
|
131
|
-
* Options for managing
|
|
137
|
+
* Options for managing Notes
|
|
132
138
|
*/
|
|
133
|
-
|
|
139
|
+
noteOptions?: NoteOptions;
|
|
134
140
|
/**
|
|
135
141
|
* Options for managing AdapTable Comments
|
|
136
142
|
*/
|
|
137
|
-
|
|
143
|
+
commentOptions?: CommentsOptions<TData>;
|
|
138
144
|
/**
|
|
139
145
|
* Options for using Custom Sort
|
|
140
146
|
*/
|
|
@@ -177,17 +177,17 @@ export interface FilterFormOptions<TData = any> {
|
|
|
177
177
|
defaultFilterFormTab?: 'Values' | 'Predicates';
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
|
-
* Options for managing the Values (IN)
|
|
180
|
+
* Options for managing the Values (IN) Filter in Filter Bar and Filter Form
|
|
181
181
|
*/
|
|
182
182
|
export interface ValuesFilterOptions<TData = any> {
|
|
183
183
|
/**
|
|
184
|
-
* Distinct column items to display in Filter
|
|
184
|
+
* Distinct column items to display in Values Filter; useful with large datasource (though AdapTable offers virtualisation)
|
|
185
185
|
*
|
|
186
|
-
* @defaultValue
|
|
186
|
+
* @defaultValue undefined
|
|
187
187
|
* @gridInfoItem
|
|
188
188
|
* @noCodeItem
|
|
189
189
|
*/
|
|
190
|
-
maxFilterValuesToDisplay?: number;
|
|
190
|
+
maxFilterValuesToDisplay?: ((columFilterContext: ColumnFilterContext<TData>) => number) | number;
|
|
191
191
|
/**
|
|
192
192
|
* If Values filter should filter on datetime rather than date
|
|
193
193
|
* @defaultValue true
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Column } from '@ag-grid-community/core';
|
|
2
|
-
import { AdaptableColumnGroup } from '../types';
|
|
2
|
+
import { AdaptableColumnGroup, BaseContext } from '../types';
|
|
3
|
+
export interface ColumnTypesContext extends BaseContext {
|
|
4
|
+
}
|
|
3
5
|
/**
|
|
4
6
|
* Options related to managing Columns in Adaptable.
|
|
5
7
|
*/
|
|
@@ -13,7 +15,7 @@ export interface ColumnOptions {
|
|
|
13
15
|
* Optional list of Column Types - used primarily for Calculated and FreeText Columns
|
|
14
16
|
* @defaultValue undefined
|
|
15
17
|
*/
|
|
16
|
-
columnTypes?: string[];
|
|
18
|
+
columnTypes?: string[] | ((context: ColumnTypesContext) => string[]);
|
|
17
19
|
/**
|
|
18
20
|
* Log warning to console if AdapTable cannot find a column
|
|
19
21
|
*
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CommentThread, BaseContext, CellAddress } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
* Options for managing AdapTable
|
|
3
|
+
* Options for managing Comments and Comment Threads in AdapTable
|
|
4
4
|
*/
|
|
5
5
|
export interface CommentsOptions<TData = any> {
|
|
6
6
|
/**
|
|
7
7
|
* Whether a cell can be noted on
|
|
8
8
|
* TODO: check if it works
|
|
9
9
|
*/
|
|
10
|
-
isCellCommentable?: (
|
|
10
|
+
isCellCommentable?: (commentableCellContext: CommentableCellContext) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Called to load initial comments
|
|
13
13
|
*/
|
|
14
|
-
loadCommentThreads?(
|
|
14
|
+
loadCommentThreads?(commentLoadContext: CommentLoadContext): Promise<CommentThread[]>;
|
|
15
15
|
/**
|
|
16
16
|
* Called when comments change
|
|
17
17
|
* @param commentThreads
|
|
@@ -19,10 +19,10 @@ export interface CommentsOptions<TData = any> {
|
|
|
19
19
|
persistCommentThreads?(commentThreads: CommentThread[]): void;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Context used when determining if a
|
|
22
|
+
* Context used when determining if a Comment can be added to a Cell
|
|
23
23
|
*/
|
|
24
24
|
export interface CommentableCellContext extends BaseContext {
|
|
25
25
|
address: CellAddress;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface CommentLoadContext extends BaseContext {
|
|
28
28
|
}
|
|
@@ -230,5 +230,5 @@ type ModuleGroup = {
|
|
|
230
230
|
title: string;
|
|
231
231
|
};
|
|
232
232
|
export declare const DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE: (AdaptableModule | ModuleGroup)[];
|
|
233
|
-
export declare const
|
|
233
|
+
export declare const DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE: (AdaptableModule | ModuleGroup)[];
|
|
234
234
|
export {};
|
|
@@ -38,9 +38,7 @@ export const DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE = [
|
|
|
38
38
|
ModuleConstants.ExportModuleId,
|
|
39
39
|
ModuleConstants.DataImportModuleId,
|
|
40
40
|
ModuleConstants.DataChangeHistoryModuleId,
|
|
41
|
-
ModuleConstants.SmartEditModuleId,
|
|
42
41
|
ModuleConstants.PlusMinusModuleId,
|
|
43
|
-
ModuleConstants.BulkUpdateModuleId,
|
|
44
42
|
ModuleConstants.ShortcutModuleId,
|
|
45
43
|
ModuleConstants.TeamSharingModuleId,
|
|
46
44
|
ModuleConstants.ScheduleModuleId,
|
|
@@ -50,7 +48,7 @@ export const DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE = [
|
|
|
50
48
|
ModuleConstants.NotesModuleId,
|
|
51
49
|
ModuleConstants.CommentsModuleId,
|
|
52
50
|
];
|
|
53
|
-
export const
|
|
51
|
+
export const DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = [
|
|
54
52
|
ModuleConstants.SettingsPanelModuleId,
|
|
55
53
|
ModuleConstants.DashboardModuleId,
|
|
56
54
|
ModuleConstants.ToolPanelModuleId,
|
|
@@ -86,9 +84,7 @@ export const DEFAULT_ADAPTABLE_COLUMN_MENU_ORDER = [
|
|
|
86
84
|
ModuleConstants.ExportModuleId,
|
|
87
85
|
ModuleConstants.DataImportModuleId,
|
|
88
86
|
ModuleConstants.DataChangeHistoryModuleId,
|
|
89
|
-
ModuleConstants.SmartEditModuleId,
|
|
90
87
|
ModuleConstants.PlusMinusModuleId,
|
|
91
|
-
ModuleConstants.BulkUpdateModuleId,
|
|
92
88
|
ModuleConstants.ShortcutModuleId,
|
|
93
89
|
ModuleConstants.TeamSharingModuleId,
|
|
94
90
|
ModuleConstants.ScheduleModuleId,
|
|
@@ -111,6 +111,23 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
111
111
|
* @noCodeItem
|
|
112
112
|
*/
|
|
113
113
|
showLoadingScreen?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Delay in milliseconds before Loading Screen appears. `showLoadingScreen` must be true for this to take effect
|
|
116
|
+
*
|
|
117
|
+
* @defaultValue 200
|
|
118
|
+
*/
|
|
119
|
+
loadingScreenDelay?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Title to display in Loading Screen.
|
|
122
|
+
* @defaultValue 'Initialising Grid'
|
|
123
|
+
*/
|
|
124
|
+
loadingScreenTitle?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Text to display in Loading Screen.
|
|
127
|
+
*
|
|
128
|
+
* @defaultValue 'Retrieving your settings and setting up the grid...'
|
|
129
|
+
*/
|
|
130
|
+
loadingScreenText?: string;
|
|
114
131
|
}
|
|
115
132
|
/**
|
|
116
133
|
* Base class for all Permitted Values related objects
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GridApi as AgGridApi } from '@ag-grid-community/core';
|
|
1
2
|
import { AlertApi } from './AlertApi';
|
|
2
3
|
import { PluginsApi } from './PluginsApi';
|
|
3
4
|
import { BulkUpdateApi } from './BulkUpdateApi';
|
|
@@ -53,6 +54,10 @@ import { CommentApi } from './CommentApi';
|
|
|
53
54
|
* Has a huge number of classes each dedicated to a specific AdapTable Module or functionality
|
|
54
55
|
*/
|
|
55
56
|
export interface AdaptableApi {
|
|
57
|
+
/**
|
|
58
|
+
* AG Grid API; try to use the API methods provided by Adaptable instead of using this directly
|
|
59
|
+
*/
|
|
60
|
+
agGridApi: AgGridApi;
|
|
56
61
|
/**
|
|
57
62
|
* Provides access to Action Columns
|
|
58
63
|
*/
|
|
@@ -16,9 +16,4 @@ export interface BulkUpdateApi {
|
|
|
16
16
|
* @param cellUpdateRequests Cells to apply the Bulk Update
|
|
17
17
|
*/
|
|
18
18
|
applyBulkUpdate(cellUpdateRequests: CellUpdateRequest[]): void;
|
|
19
|
-
/**
|
|
20
|
-
* Sets Bulk Update value
|
|
21
|
-
* @param bulkUpdateValue the value to use in Bulk Update Operation
|
|
22
|
-
*/
|
|
23
|
-
setBulkUpdateValue(bulkUpdateValue: string): void;
|
|
24
19
|
}
|
package/src/Api/ConfigApi.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
3
|
/**
|
|
4
4
|
* Object returned by `AdaptableReady` event - fired when AdapTable has loaded
|
|
5
5
|
*/
|
|
6
6
|
export interface AdaptableReadyInfo<TData = any> extends BaseEventInfo {
|
|
7
7
|
/**
|
|
8
|
-
* Underlying AG Grid
|
|
8
|
+
* Underlying AG Grid API
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
agGridApi: GridApi<TData>;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
|
+
export type GridDataChangeTrigger = 'Add' | 'Edit' | 'Delete' | 'Load';
|
|
3
4
|
/**
|
|
4
5
|
* EventInfo returned by GridDataChanged event
|
|
5
|
-
*/
|
|
6
|
-
export interface GridDataChangedInfo<TData = any> extends BaseEventInfo {
|
|
6
|
+
*/ export interface GridDataChangedInfo<TData = any> extends BaseEventInfo {
|
|
7
7
|
/**
|
|
8
8
|
* Timestamp of change occurrence (in milliseconds)
|
|
9
9
|
*/
|
|
@@ -13,9 +13,9 @@ export interface GridDataChangedInfo<TData = any> extends BaseEventInfo {
|
|
|
13
13
|
*/
|
|
14
14
|
dataRows: TData[];
|
|
15
15
|
/**
|
|
16
|
-
* Trigger for row change: 'Add', 'Edit'
|
|
16
|
+
* Trigger for row change: 'Add', 'Edit', 'Delete', 'Load'
|
|
17
17
|
*/
|
|
18
|
-
rowTrigger:
|
|
18
|
+
rowTrigger: GridDataChangeTrigger;
|
|
19
19
|
/**
|
|
20
20
|
* Row Nodes that were affected by this change
|
|
21
21
|
*/
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { DataUpdateConfig } from '../PredefinedConfig/Common/DataUpdateConfig';
|
|
|
7
7
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
8
8
|
import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
|
|
9
9
|
import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
|
|
10
|
-
import {
|
|
10
|
+
import { IRowNode, RowModelType } from '@ag-grid-community/core';
|
|
11
11
|
import { GridCellRange } from '../PredefinedConfig/Selection/GridCellRange';
|
|
12
12
|
import { RowsHighlightInfo } from '../PredefinedConfig/Common/RowsHighlightInfo';
|
|
13
13
|
/**
|
|
@@ -27,15 +27,18 @@ export interface GridApi {
|
|
|
27
27
|
*/
|
|
28
28
|
getFilteredData(): any[];
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param data any data suitable as AG Grid data source
|
|
30
|
+
* @deprecated use `loadGridData()` instead
|
|
32
31
|
*/
|
|
33
32
|
resetGridData(data: any[]): void;
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @param dataany data suitable as AG Grid data source
|
|
34
|
+
* @deprecated use `loadGridData()` instead
|
|
37
35
|
*/
|
|
38
36
|
setInitialGridData(data: any): void;
|
|
37
|
+
/**
|
|
38
|
+
* Loads data into grid and fire a `GridDataChanged.trigger='Load'` event
|
|
39
|
+
* @param data data to load
|
|
40
|
+
*/
|
|
41
|
+
loadGridData(data: any): void;
|
|
39
42
|
/**
|
|
40
43
|
* Updates AdapTable (and AG Grid) with rows that have changed
|
|
41
44
|
* @param dataRows rows which have been updated - send whole row and AdapTable take cares of the rest
|
|
@@ -86,10 +89,6 @@ export interface GridApi {
|
|
|
86
89
|
* Returns all current Selected Rows in AdapTable
|
|
87
90
|
*/
|
|
88
91
|
getSelectedRowInfo(): SelectedRowInfo;
|
|
89
|
-
/**
|
|
90
|
-
* Returns Ag Grid instance (passed into Adaptable Options at start-up)
|
|
91
|
-
*/
|
|
92
|
-
getAgGridInstance(): GridOptions;
|
|
93
92
|
/**
|
|
94
93
|
* Returns Column Sort information in AdapTable
|
|
95
94
|
*/
|
|
@@ -469,10 +468,6 @@ export interface GridApi {
|
|
|
469
468
|
* Returns number of rows in Data Source
|
|
470
469
|
*/
|
|
471
470
|
getRowCount(): number;
|
|
472
|
-
/**
|
|
473
|
-
* Returns number of visible rows in Data Source
|
|
474
|
-
*/
|
|
475
|
-
getVisibleRowCount(): number;
|
|
476
471
|
/**
|
|
477
472
|
* Returns number of columns in Data Source
|
|
478
473
|
*/
|
|
@@ -515,4 +510,14 @@ export interface GridApi {
|
|
|
515
510
|
* Returns AG Grid Row Model Type
|
|
516
511
|
*/
|
|
517
512
|
getAgGridRowModelType(): RowModelType;
|
|
513
|
+
/**
|
|
514
|
+
* Returns number of visible rows in Data Source
|
|
515
|
+
*
|
|
516
|
+
* @deprecated use `getRowCount()` instead
|
|
517
|
+
*/
|
|
518
|
+
getVisibleRowCount(): number;
|
|
519
|
+
/**
|
|
520
|
+
* Opens a window with a transposed view of Grid
|
|
521
|
+
*/
|
|
522
|
+
showTransposedView(transposedColumnId: string, hideTransposedColumn?: boolean): void;
|
|
518
523
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ActionColumn, ActionColumnApi } from '../../../types';
|
|
2
2
|
import { ApiBase } from './ApiBase';
|
|
3
3
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
4
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
4
5
|
export declare class ActionColumnApiImpl extends ApiBase implements ActionColumnApi {
|
|
5
6
|
constructor(adaptable: IAdaptable);
|
|
6
7
|
getActionColumns(): ActionColumn[];
|
|
8
|
+
getColDefsForActionColumns(): ColDef[];
|
|
7
9
|
}
|