@adaptabletools/adaptable 24.0.0-canary.8 → 24.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +2 -3
- package/agGrid.js +2 -3
- package/aql.d.ts +29 -1
- package/aql.js +49 -1
- package/devtools.d.ts +55 -1
- package/index.css +0 -19
- package/index.d.ts +2 -3
- package/index.js +2 -3
- package/package.json +1 -1
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
- package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
- package/src/AdaptableOptions/EditOptions.d.ts +18 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
- package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
- package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
- package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -2
- package/src/AdaptableState/AdaptableState.d.ts +98 -4
- package/src/AdaptableState/AlertState.d.ts +20 -21
- package/src/AdaptableState/ApplicationState.d.ts +5 -3
- package/src/AdaptableState/BaseState.d.ts +9 -2
- package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
- package/src/AdaptableState/ChartingState.d.ts +10 -5
- package/src/AdaptableState/CommentState.d.ts +10 -4
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
- package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
- package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
- package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
- package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
- package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
- package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
- package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
- package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
- package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
- package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
- package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
- package/src/AdaptableState/Common/Enums.d.ts +21 -0
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
- package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
- package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
- package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
- package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
- package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/RowScope.d.ts +3 -1
- package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
- package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
- package/src/AdaptableState/Common/Schedule.d.ts +10 -2
- package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
- package/src/AdaptableState/Common/Types.d.ts +9 -0
- package/src/AdaptableState/CustomSortState.d.ts +8 -5
- package/src/AdaptableState/DashboardState.d.ts +14 -10
- package/src/AdaptableState/ExportState.d.ts +12 -4
- package/src/AdaptableState/FlashingCellState.d.ts +8 -5
- package/src/AdaptableState/FormatColumnState.d.ts +28 -8
- package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
- package/src/AdaptableState/IPushPullState.d.ts +39 -3
- package/src/AdaptableState/InitialState.d.ts +9 -9
- package/src/AdaptableState/InternalState.d.ts +183 -3
- package/src/AdaptableState/LayoutState.d.ts +64 -21
- package/src/AdaptableState/NamedQueryState.d.ts +16 -4
- package/src/AdaptableState/NoteState.d.ts +7 -3
- package/src/AdaptableState/OpenFinState.d.ts +12 -2
- package/src/AdaptableState/PlusMinusState.d.ts +8 -4
- package/src/AdaptableState/PopupState.d.ts +29 -1
- package/src/AdaptableState/QuickSearchState.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
- package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
- package/src/AdaptableState/ShortcutState.d.ts +7 -3
- package/src/AdaptableState/StatusBarState.d.ts +7 -6
- package/src/AdaptableState/StyledColumnState.d.ts +46 -14
- package/src/AdaptableState/TeamSharingState.d.ts +46 -2
- package/src/AdaptableState/ThemeState.d.ts +24 -2
- package/src/AdaptableState/ToolPanelState.d.ts +10 -5
- package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
- package/src/AdaptableState/Uuid.d.ts +6 -0
- package/src/Api/ActionColumnApi.d.ts +3 -1
- package/src/Api/AdaptableApi.d.ts +54 -50
- package/src/Api/AlertApi.d.ts +20 -12
- package/src/Api/ApplicationApi.d.ts +6 -2
- package/src/Api/BulkUpdateApi.d.ts +2 -1
- package/src/Api/CalculatedColumnApi.d.ts +4 -1
- package/src/Api/CalendarApi.d.ts +10 -0
- package/src/Api/CellSummaryApi.d.ts +9 -3
- package/src/Api/ChartingApi.d.ts +22 -7
- package/src/Api/ColumnApi.d.ts +71 -4
- package/src/Api/ColumnFilterApi.d.ts +13 -3
- package/src/Api/ColumnMenuApi.d.ts +13 -2
- package/src/Api/ColumnScopeApi.d.ts +27 -1
- package/src/Api/CommentApi.d.ts +10 -7
- package/src/Api/ContextMenuApi.d.ts +11 -1
- package/src/Api/CustomSortApi.d.ts +6 -2
- package/src/Api/DashboardApi.d.ts +30 -9
- package/src/Api/DataChangeHistoryApi.d.ts +9 -3
- package/src/Api/DataImportApi.d.ts +1 -1
- package/src/Api/EntitlementApi.d.ts +6 -1
- package/src/Api/EventApi.d.ts +67 -19
- package/src/Api/Events/AdaptableReady.d.ts +6 -2
- package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
- package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
- package/src/Api/Events/AlertFired.d.ts +8 -2
- package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
- package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
- package/src/Api/Events/CellChanged.d.ts +6 -2
- package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
- package/src/Api/Events/ChartChanged.d.ts +16 -8
- package/src/Api/Events/CommentChanged.d.ts +8 -2
- package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
- package/src/Api/Events/DashboardChanged.d.ts +27 -6
- package/src/Api/Events/DataImported.d.ts +8 -4
- package/src/Api/Events/DataSetSelected.d.ts +6 -2
- package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
- package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
- package/src/Api/Events/GridFilterApplied.d.ts +11 -3
- package/src/Api/Events/GridSorted.d.ts +6 -2
- package/src/Api/Events/LayoutChanged.d.ts +36 -5
- package/src/Api/Events/LiveDataChanged.d.ts +21 -5
- package/src/Api/Events/NoteChanged.d.ts +5 -1
- package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
- package/src/Api/Events/RowChanged.d.ts +6 -2
- package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
- package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
- package/src/Api/Events/ThemeSelected.d.ts +6 -2
- package/src/Api/ExportApi.d.ts +59 -32
- package/src/Api/ExpressionApi.d.ts +24 -1
- package/src/Api/Fdc3Api.d.ts +16 -3
- package/src/Api/FlashingCellApi.d.ts +6 -1
- package/src/Api/FormatColumnApi.d.ts +18 -11
- package/src/Api/FreeTextColumnApi.d.ts +4 -2
- package/src/Api/GridApi.d.ts +92 -19
- package/src/Api/IPushPullApi.d.ts +19 -2
- package/src/Api/Internal/EventInternalApi.d.ts +2 -1
- package/src/Api/Internal/EventInternalApi.js +7 -0
- package/src/Api/InteropioPluginApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +29 -15
- package/src/Api/NamedQueryApi.d.ts +10 -6
- package/src/Api/NoteApi.d.ts +15 -11
- package/src/Api/OpenFinApi.d.ts +8 -2
- package/src/Api/OptionsApi.d.ts +43 -1
- package/src/Api/PluginsApi.d.ts +6 -1
- package/src/Api/PlusMinusApi.d.ts +2 -1
- package/src/Api/QuickSearchApi.d.ts +6 -1
- package/src/Api/RowFormApi.d.ts +8 -7
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/SmartEditApi.d.ts +4 -1
- package/src/Api/StateApi.d.ts +30 -2
- package/src/Api/StatusBarApi.d.ts +2 -0
- package/src/Api/StyledColumnApi.d.ts +23 -12
- package/src/Api/SystemStatusApi.d.ts +18 -6
- package/src/Api/TeamSharingApi.d.ts +8 -1
- package/src/Api/ThemeApi.d.ts +18 -9
- package/src/Api/ToolPanelApi.d.ts +12 -7
- package/src/Api/UserInterfaceApi.d.ts +10 -1
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/agGrid/Adaptable.d.ts +0 -12
- package/src/agGrid/Adaptable.js +0 -52
- package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
- package/src/agGrid/AdaptableLogger.d.ts +74 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
- package/src/agGrid/index.d.ts +1 -6
- package/src/agGrid/index.js +1 -3
- package/src/aql/ExpressionEvaluation.d.ts +27 -0
- package/src/aql/types.d.ts +22 -0
- package/src/env.js +2 -2
- package/src/migration/legacyAdaptableQuery.d.ts +29 -4
- package/src/setupDevTools.js +223 -0
- package/src/types.d.ts +0 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
- package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
- package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
- package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
- package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
- package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
- package/src/View/AdaptableWizardView/Wizard.js +0 -98
- package/src/View/AdaptableWizardView/index.d.ts +0 -4
- package/src/View/AdaptableWizardView/index.js +0 -4
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -15,49 +15,62 @@ import { AdaptableVariant } from '../AdaptableInterfaces/IAdaptable';
|
|
|
15
15
|
import { InternalState } from '../AdaptableState/InternalState';
|
|
16
16
|
import { ColumnHighlightInfo } from '../AdaptableState/Common/ColumnHighlightInfo';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Grid data and selection.
|
|
19
|
+
*
|
|
20
|
+
* Rows and cell values (raw, display and normalised), loading and editing data,
|
|
21
|
+
* filtering and sorting, the current selection, and row nodes. Prefer these
|
|
22
|
+
* methods to calling AG Grid directly when AdapTable wraps the behaviour.
|
|
19
23
|
*/
|
|
20
24
|
export interface GridApi {
|
|
21
25
|
/**
|
|
22
26
|
* Returns current AdapTable Variant: vanilla, angular, react, vue
|
|
27
|
+
* @returns Current AdapTable Variant: vanilla, angular, react, vue
|
|
23
28
|
*/
|
|
24
29
|
getVariant(): AdaptableVariant;
|
|
25
30
|
/**
|
|
26
31
|
* Returns the Internal section from AdapTable State
|
|
32
|
+
* @returns The Internal section from AdapTable State
|
|
27
33
|
*/
|
|
28
34
|
getInternalState(): InternalState;
|
|
29
35
|
/**
|
|
30
36
|
* Retrieves all data from the grid
|
|
37
|
+
* @returns All data from the grid
|
|
31
38
|
*/
|
|
32
39
|
getGridData(): any[];
|
|
33
40
|
/**
|
|
34
41
|
* Retrieves filtered data from the grid
|
|
42
|
+
* @returns Filtered data from the grid
|
|
35
43
|
*/
|
|
36
44
|
getFilteredData(): any[];
|
|
37
45
|
/**
|
|
38
46
|
* Retrieves visible data from the grid (filtered and sorted from visible columns only)
|
|
47
|
+
* @returns Visible data from the grid (filtered and sorted from visible columns only)
|
|
39
48
|
*/
|
|
40
49
|
getVisibleData(): any[];
|
|
41
50
|
/**
|
|
42
51
|
* Retrieves the displayed (formatted but not styled) data from the grid (filtered and sorted and visible columns only)
|
|
52
|
+
* @returns The displayed (formatted but not styled) data from the grid (filtered and sorted and visible columns only)
|
|
43
53
|
*/
|
|
44
54
|
getDisplayedData(): any[];
|
|
45
55
|
/**
|
|
46
56
|
* Retrieves all the values for a single Column.
|
|
47
57
|
*
|
|
48
58
|
* @param columnId the Column to read the values from
|
|
59
|
+
* @returns All the values for a single Column
|
|
49
60
|
*/
|
|
50
61
|
getColumnData(columnId: string): any[];
|
|
51
62
|
/**
|
|
52
63
|
* Retrieves the filtered values for a single Column.
|
|
53
64
|
*
|
|
54
65
|
* @param columnId the Column to read the values from
|
|
66
|
+
* @returns The filtered values for a single Column
|
|
55
67
|
*/
|
|
56
68
|
getFilteredColumnData(columnId: string): any[];
|
|
57
69
|
/**
|
|
58
70
|
* Retrieves the visible (filtered and sorted) values for a single Column.
|
|
59
71
|
*
|
|
60
72
|
* @param columnId the Column to read the values from
|
|
73
|
+
* @returns The visible (filtered and sorted) values for a single Column
|
|
61
74
|
*/
|
|
62
75
|
getVisibleColumnData(columnId: string): any[];
|
|
63
76
|
/**
|
|
@@ -69,6 +82,7 @@ export interface GridApi {
|
|
|
69
82
|
* Returns an empty array if the Column is unknown.
|
|
70
83
|
*
|
|
71
84
|
* @param columnId the Column to read the values from
|
|
85
|
+
* @returns The distinct raw values currently in a Column, sorted. Useful when building dropdown options (e.g. Action Column `select`, Forms) from values that already exist in the Grid. Returns an empty array if the Column is unknown
|
|
72
86
|
*/
|
|
73
87
|
getDistinctColumnValues(columnId: string): any[];
|
|
74
88
|
/**
|
|
@@ -80,12 +94,14 @@ export interface GridApi {
|
|
|
80
94
|
* Updates AdapTable (and AG Grid) with rows that have changed
|
|
81
95
|
* @param dataRows rows which have been updated - send whole row and AdapTable take cares of the rest
|
|
82
96
|
* @param config batch option and callback function to run post update
|
|
97
|
+
* @returns The row nodes that were updated
|
|
83
98
|
*/
|
|
84
99
|
updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
85
100
|
/**
|
|
86
101
|
* Adds or Updates AdapTable (and AG Grid) with new and changed rows
|
|
87
102
|
* @param dataRows rows to add or update
|
|
88
103
|
* @param config batch option and callback function to run post change
|
|
104
|
+
* @returns The row nodes that were added and the row nodes that were updated
|
|
89
105
|
*/
|
|
90
106
|
addOrUpdateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<{
|
|
91
107
|
addedRows: IRowNode[];
|
|
@@ -95,18 +111,21 @@ export interface GridApi {
|
|
|
95
111
|
* Adds rows to AdapTable (and AG Grid)
|
|
96
112
|
* @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
|
|
97
113
|
* @param config batch option and callback function to run post addition
|
|
114
|
+
* @returns The row nodes that were added
|
|
98
115
|
*/
|
|
99
116
|
addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
100
117
|
/**
|
|
101
118
|
* Deletes rows from AdapTable (and AG Grid)
|
|
102
119
|
* @param dataRows rows which should be deleted
|
|
103
120
|
* @param config batch option and callback function to run post deletion
|
|
121
|
+
* @returns The row nodes that were deleted. Empty when no rows were passed
|
|
104
122
|
*/
|
|
105
123
|
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
106
124
|
/**
|
|
107
125
|
* Adds, Updates or Deletes rows in AdapTable (and AG Grid) in single transaction
|
|
108
126
|
* @param dataRowConfig - Rows to add, update or remove
|
|
109
127
|
* @param dataUpdateConfig - batch option and callback function to run post transaction
|
|
128
|
+
* @returns The row nodes that were added, updated and removed
|
|
110
129
|
*/
|
|
111
130
|
manageGridData(dataRowConfig: DataRowConfig, dataUpdateConfig?: DataUpdateConfig): Promise<{
|
|
112
131
|
addedRows: IRowNode[];
|
|
@@ -121,32 +140,39 @@ export interface GridApi {
|
|
|
121
140
|
setCellValue(cellUpdateRequest: CellUpdateRequest): void;
|
|
122
141
|
/**
|
|
123
142
|
* Updates multiple cells
|
|
143
|
+
* @param cellUpdateRequests Cells to write, each with a column, row and new value
|
|
124
144
|
*/
|
|
125
145
|
setCellValues(cellUpdateRequests: CellUpdateRequest[]): void;
|
|
126
146
|
/**
|
|
127
147
|
* Reverses a data change (if triggered by cell edit)
|
|
128
148
|
* @param cellDataChangedInfo data change to undo
|
|
149
|
+
* @returns `true` once the previous cell value has been written back
|
|
129
150
|
*/
|
|
130
151
|
undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
|
|
131
152
|
/**
|
|
132
153
|
* Returns summary info on Selected Cells
|
|
154
|
+
* @returns Summary info on Selected Cells
|
|
133
155
|
*/
|
|
134
156
|
getCellSummaryInfo(): CellSummmaryInfo;
|
|
135
157
|
/**
|
|
136
158
|
* Returns all current Selected Cells in AdapTable
|
|
159
|
+
* @returns All current Selected Cells in AdapTable
|
|
137
160
|
*/
|
|
138
161
|
getSelectedCellInfo(): SelectedCellInfo;
|
|
139
162
|
/**
|
|
140
163
|
* Returns all current Selected Rows in AdapTable
|
|
164
|
+
* @returns All current Selected Rows in AdapTable
|
|
141
165
|
*/
|
|
142
166
|
getSelectedRowInfo(): SelectedRowInfo;
|
|
143
167
|
/**
|
|
144
168
|
* Returns Column Sort information in AdapTable
|
|
169
|
+
* @returns Column Sort information in AdapTable
|
|
145
170
|
*/
|
|
146
171
|
getColumnSorts(): ColumnSort[];
|
|
147
172
|
/**
|
|
148
173
|
* Retrieves ColumnSort for a given Column
|
|
149
174
|
* @param columnId Id of Column to retrieve ColumnSort
|
|
175
|
+
* @returns ColumnSort for a given Column. `undefined` when there is no match
|
|
150
176
|
*/
|
|
151
177
|
getColumnSortForColumn(columnId: string): ColumnSort | undefined;
|
|
152
178
|
/**
|
|
@@ -240,15 +266,18 @@ export interface GridApi {
|
|
|
240
266
|
selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
|
|
241
267
|
/**
|
|
242
268
|
* Retrieves the first Row Node in AdapTable
|
|
269
|
+
* @returns The first Row Node in AdapTable. `undefined` when there is no match
|
|
243
270
|
*/
|
|
244
271
|
getFirstRowNode(): IRowNode | undefined;
|
|
245
272
|
/**
|
|
246
273
|
* Retrieves the first Displayed Row Node in AdapTable
|
|
274
|
+
* @returns The first Displayed Row Node in AdapTable. `undefined` when there is no match
|
|
247
275
|
*/
|
|
248
276
|
getFirstDisplayedRowNode(): IRowNode | undefined;
|
|
249
277
|
/**
|
|
250
278
|
* Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter)
|
|
251
279
|
* @param config - configuration
|
|
280
|
+
* @returns All filtered Row Nodes currently in the Grid (i.e. after applying the current filter)
|
|
252
281
|
*/
|
|
253
282
|
getVisibleRowNodes(config?: {
|
|
254
283
|
includeGroupRows?: boolean;
|
|
@@ -257,6 +286,7 @@ export interface GridApi {
|
|
|
257
286
|
/**
|
|
258
287
|
* Retrieves all Row Nodes currently in the Grid (by default excluding the group rows)
|
|
259
288
|
* @param config - configuration
|
|
289
|
+
* @returns All Row Nodes currently in the Grid (by default excluding the group rows)
|
|
260
290
|
*/
|
|
261
291
|
getAllRowNodes(config?: {
|
|
262
292
|
includeGroupRows?: boolean;
|
|
@@ -265,81 +295,95 @@ export interface GridApi {
|
|
|
265
295
|
/**
|
|
266
296
|
* Retrieves all Grouped Row Nodes currently in the Grid
|
|
267
297
|
* @param config - configuration
|
|
298
|
+
* @returns All Grouped Row Nodes currently in the Grid
|
|
268
299
|
*/
|
|
269
300
|
getGroupRowNodes(config?: {
|
|
270
301
|
filterFn?(rowNode: IRowNode): boolean;
|
|
271
302
|
}): IRowNode[];
|
|
272
303
|
/**
|
|
273
304
|
* Retrieves Row Nodes that contain given Primary Keys
|
|
274
|
-
* @param primaryKeyValues Primary
|
|
305
|
+
* @param primaryKeyValues Primary Key Values to look up
|
|
306
|
+
* @returns Row Nodes that contain given Primary Keys
|
|
275
307
|
*/
|
|
276
308
|
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
|
|
277
309
|
/**
|
|
278
310
|
* Retrieves Row Node that contains given Primary Key
|
|
279
311
|
* @param primaryKeyValue Primary Key Value to look up
|
|
312
|
+
* @returns Row Node that contains given Primary Key
|
|
280
313
|
*/
|
|
281
314
|
getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
|
|
282
315
|
/**
|
|
283
316
|
* Retrieves the displayed RowNode at the given index
|
|
284
317
|
* @param rowIndex row index
|
|
318
|
+
* @returns The displayed RowNode at the given index. `undefined` when there is no match
|
|
285
319
|
*/
|
|
286
320
|
getRowNodeForIndex(rowIndex: number): IRowNode | undefined;
|
|
287
321
|
/**
|
|
288
|
-
* Returns the Primary
|
|
322
|
+
* Returns the Primary Key Value for a given Row Node
|
|
289
323
|
* @param rowNode rowNode to look up
|
|
324
|
+
* @returns The Primary Key Value for a given Row Node
|
|
290
325
|
*/
|
|
291
326
|
getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
|
|
292
327
|
/**
|
|
293
|
-
* Returns the Primary
|
|
294
|
-
* @param
|
|
328
|
+
* Returns the Primary Key Values for a given Row Node collection
|
|
329
|
+
* @param rowNodes Row nodes to look up
|
|
330
|
+
* @returns The Primary Key Values for a given Row Node collection
|
|
295
331
|
*/
|
|
296
332
|
getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
|
|
297
333
|
/**
|
|
298
334
|
* Retrieves Cell in given Row and Column
|
|
299
335
|
* @param rowNode Row to use
|
|
300
336
|
* @param columnId ColumnId to lookup
|
|
337
|
+
* @returns Cell in given Row and Column. `undefined` when there is no match
|
|
301
338
|
*/
|
|
302
339
|
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
|
|
303
340
|
/**
|
|
304
341
|
* Retrieves Display Value for a given cell
|
|
305
342
|
* @param primaryKeyValue (unique) value in Primary Key Column
|
|
306
343
|
* @param columnId name of Column which contains the cell
|
|
344
|
+
* @returns Display Value for a given cell. `undefined` when there is no match
|
|
307
345
|
*/
|
|
308
346
|
getCellDisplayValue(primaryKeyValue: any, columnId: string): any | undefined;
|
|
309
347
|
/**
|
|
310
348
|
* Retrieves Raw Value for a given cell
|
|
311
349
|
* @param primaryKeyValue (unique) value in Primary Key Column
|
|
312
350
|
* @param columnId name of Column which contains the cell
|
|
351
|
+
* @returns Raw Value for a given cell. `undefined` when there is no match
|
|
313
352
|
*/
|
|
314
353
|
getCellRawValue(primaryKeyValue: any, columnId: string): any | undefined;
|
|
315
354
|
/**
|
|
316
355
|
* Retrieves Normalised Value for a given cell
|
|
317
356
|
* @param primaryKeyValue (unique) value in Primary Key Column
|
|
318
357
|
* @param columnId name of Column which contains the cell
|
|
358
|
+
* @returns Normalised Value for a given cell. `undefined` when there is no match
|
|
319
359
|
*/
|
|
320
360
|
getCellNormalisedValue(primaryKeyValue: any, columnId: string): any | undefined;
|
|
321
361
|
/**
|
|
322
362
|
* Retrieves Raw Value for Cell in given Row and Column
|
|
323
363
|
* @param rowNode Row to use
|
|
324
364
|
* @param columnId ColumnId to lookup
|
|
365
|
+
* @returns Raw Value for Cell in given Row and Column. `undefined` when there is no match
|
|
325
366
|
*/
|
|
326
367
|
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
|
|
327
368
|
/**
|
|
328
369
|
* Returns all the Grid Cells in a Column that have the given Raw Value
|
|
329
370
|
* @param columnId ColumnId to lookup
|
|
330
371
|
* @param rawValue Raw Value to use
|
|
372
|
+
* @returns Cells whose raw value matches. `undefined` when the column is unknown; an empty array when no cell has that value
|
|
331
373
|
*/
|
|
332
374
|
getGridCellsForRawValue(columnId: string, rawValue: any): GridCell[] | undefined;
|
|
333
375
|
/**
|
|
334
376
|
* Gets the count of the cells in a Column that have the given Raw Value
|
|
335
377
|
* @param columnId ColumnId to lookup
|
|
336
378
|
* @param rawValue Raw Value to use
|
|
379
|
+
* @returns How many cells in the column have that raw value
|
|
337
380
|
*/
|
|
338
381
|
getCellRawValueCount(columnId: string, rawValue: any): number;
|
|
339
382
|
/**
|
|
340
383
|
* Returns all the Grid Cells in a Column that have the given Display Value
|
|
341
384
|
* @param columnId ColumnId to lookup
|
|
342
385
|
* @param displayValue Display Value to use
|
|
386
|
+
* @returns Cells whose display value matches. `undefined` when the column is unknown; an empty array when no cell has that value
|
|
343
387
|
*/
|
|
344
388
|
getGridCellsForDisplayValue(columnId: string, displayValue: any): GridCell[] | undefined;
|
|
345
389
|
/**
|
|
@@ -347,18 +391,21 @@ export interface GridApi {
|
|
|
347
391
|
* @param columnId ColumnId to lookup
|
|
348
392
|
* @param rawValue Raw Value
|
|
349
393
|
* @param rowNode Node containig the Column
|
|
394
|
+
* @returns Formatted Value for a given Raw Value in given Column. `undefined` when there is no match
|
|
350
395
|
*/
|
|
351
396
|
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
|
|
352
397
|
/**
|
|
353
398
|
* Retrieves Display Value for Cell in given Row and Column
|
|
354
399
|
* @param rowNode Row to use
|
|
355
400
|
* @param columnId ColumnId to lookup
|
|
401
|
+
* @returns Display Value for Cell in given Row and Column. `undefined` when there is no match
|
|
356
402
|
*/
|
|
357
403
|
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
|
|
358
404
|
/**
|
|
359
405
|
* Retrieves Normalised Value for Cell in given Row and Column
|
|
360
406
|
* @param rowNode Row to use
|
|
361
407
|
* @param columnId ColumnId to lookup
|
|
408
|
+
* @returns Normalised Value for Cell in given Row and Column. `undefined` when there is no match
|
|
362
409
|
*/
|
|
363
410
|
getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
|
|
364
411
|
/**
|
|
@@ -385,63 +432,77 @@ export interface GridApi {
|
|
|
385
432
|
expandRowGroupsForValues(columnValues: any[]): void;
|
|
386
433
|
/**
|
|
387
434
|
* Whether AdapTable instance can be pivoted
|
|
435
|
+
* @returns `true` when AdapTable instance can be pivoted
|
|
388
436
|
*/
|
|
389
437
|
isGridPivotable(): boolean;
|
|
390
438
|
/**
|
|
391
439
|
* Whether AdapTable instance can be Row Grouped
|
|
440
|
+
* @returns `true` when AdapTable instance can be Row Grouped
|
|
392
441
|
*/
|
|
393
442
|
isGridGroupable(): boolean;
|
|
394
443
|
/**
|
|
395
444
|
* Whether AdapTable instance offers row selection
|
|
445
|
+
* @returns `true` when AdapTable instance offers row selection
|
|
396
446
|
*/
|
|
397
447
|
isGridRowSelectable(): boolean;
|
|
398
448
|
/**
|
|
399
449
|
* Whether a Row is selected
|
|
400
450
|
* @param primaryKeyValue pkVaue of Row to check
|
|
451
|
+
* @returns `true` when a Row is selected
|
|
401
452
|
*/
|
|
402
453
|
isGridRowSelected(primaryKeyValue: any): boolean;
|
|
403
454
|
/**
|
|
404
455
|
* Whether AdapTable instance offers cell range selection
|
|
456
|
+
* @returns `true` when AdapTable instance offers cell range selection
|
|
405
457
|
*/
|
|
406
458
|
isGridRangeSelectable(): boolean;
|
|
407
459
|
/**
|
|
408
460
|
* Whether Grid is currently showing Row Groups
|
|
461
|
+
* @returns `true` when Grid is currently showing Row Groups
|
|
409
462
|
*/
|
|
410
463
|
isGridRowGrouped(): boolean;
|
|
411
464
|
/**
|
|
412
465
|
* Whether Grid is currently in Pivot Mode
|
|
466
|
+
* @returns `true` when Grid is currently in Pivot Mode
|
|
413
467
|
*/
|
|
414
468
|
isGridInPivotMode(): boolean;
|
|
415
469
|
/**
|
|
416
470
|
* Whether Grid displays a Tree Data (structured hierarchical data)
|
|
471
|
+
* @returns `true` when Grid displays a Tree Data (structured hierarchical data)
|
|
417
472
|
*/
|
|
418
473
|
isTreeDataGrid(): boolean;
|
|
419
474
|
/**
|
|
420
475
|
* Whether Grid is a Master Detail Grid
|
|
476
|
+
* @returns `true` when Grid is a Master Detail Grid
|
|
421
477
|
*/
|
|
422
478
|
isMasterDetailGrid(): boolean;
|
|
423
479
|
/**
|
|
424
480
|
* Whether given Row Node is a Row Group
|
|
425
481
|
* @param rowNode Node to check
|
|
482
|
+
* @returns `true` when given Row Node is a Row Group
|
|
426
483
|
*/
|
|
427
484
|
isGroupRowNode(rowNode: IRowNode): boolean;
|
|
428
485
|
/**
|
|
429
486
|
* Whether given Row Node is a Grand Total Row
|
|
430
487
|
* @param rowNode Node to check
|
|
488
|
+
* @returns `true` when given Row Node is a Grand Total Row
|
|
431
489
|
*/
|
|
432
490
|
isGrandTotalRowNode(rowNode: IRowNode): boolean;
|
|
433
491
|
/**
|
|
434
492
|
* Whether given Row Node is visible
|
|
435
493
|
* @param rowNode Node to check
|
|
494
|
+
* @returns `true` when given Row Node is visible
|
|
436
495
|
*/
|
|
437
496
|
isVisibleRowNode(rowNode: IRowNode): boolean;
|
|
438
497
|
/**
|
|
439
498
|
* Whether given Row Node is in a Summary Row
|
|
440
499
|
* @param rowNode Node to check
|
|
500
|
+
* @returns `true` when given Row Node is in a Summary Row
|
|
441
501
|
*/
|
|
442
502
|
isSummaryNode(rowNode: IRowNode): boolean;
|
|
443
503
|
/**
|
|
444
504
|
* Whether Quick Filter is available in the Grid
|
|
505
|
+
* @returns `true` when Quick Filter is available in the Grid
|
|
445
506
|
*/
|
|
446
507
|
isQuickFilterAvailable(): boolean;
|
|
447
508
|
/**
|
|
@@ -449,7 +510,7 @@ export interface GridApi {
|
|
|
449
510
|
*/
|
|
450
511
|
redrawGrid(): void;
|
|
451
512
|
/**
|
|
452
|
-
* Grid will jump to Row containing given Primary
|
|
513
|
+
* Grid will jump to Row containing given Primary Key Value
|
|
453
514
|
* @param primaryKeyValue value in Primary Key Column
|
|
454
515
|
*/
|
|
455
516
|
jumpToRow(primaryKeyValue: any): void;
|
|
@@ -501,7 +562,7 @@ export interface GridApi {
|
|
|
501
562
|
highlightRow(rowHighlightInfo: RowHighlightInfo): void;
|
|
502
563
|
/**
|
|
503
564
|
* Highlight rows using an adaptable style
|
|
504
|
-
* @param
|
|
565
|
+
* @param rowsHighlightInfo Rows to highlight and the style to apply
|
|
505
566
|
*/
|
|
506
567
|
highlightRows(rowsHighlightInfo: RowsHighlightInfo): void;
|
|
507
568
|
/**
|
|
@@ -532,12 +593,14 @@ export interface GridApi {
|
|
|
532
593
|
* Refresh a Cell Value in AdapTable
|
|
533
594
|
* @param rowNode AG Grid RowNode which contains cell to refresh
|
|
534
595
|
* @param columnId ColumnId which contains cell to refresh
|
|
596
|
+
* @param suppressFlash When `true`, the cell refreshes without flashing
|
|
535
597
|
*/
|
|
536
598
|
refreshCell(rowNode: IRowNode, columnId: string, suppressFlash?: boolean): void;
|
|
537
599
|
/**
|
|
538
600
|
* Refresh Cell Values in AdapTable
|
|
539
601
|
* @param rowNode agGrid RowNode which contains cells to refresh
|
|
540
602
|
* @param columnIds ColumnIds which contain cells to refresh
|
|
603
|
+
* @param suppressFlash When `true`, the cells refresh without flashing
|
|
541
604
|
*/
|
|
542
605
|
refreshCells(rowNode: IRowNode, columnIds: string[], suppressFlash?: boolean): void;
|
|
543
606
|
/**
|
|
@@ -579,34 +642,41 @@ export interface GridApi {
|
|
|
579
642
|
*/
|
|
580
643
|
refreshGroupRowNodes(): void;
|
|
581
644
|
/**
|
|
582
|
-
*
|
|
645
|
+
* Number of data rows, excluding group rows.
|
|
646
|
+
* @returns Number of data rows, excluding group rows
|
|
583
647
|
*/
|
|
584
648
|
getRowCount(): number;
|
|
585
649
|
/**
|
|
586
|
-
*
|
|
650
|
+
* Number of rows currently displayed, after filtering.
|
|
651
|
+
* @returns Number of rows currently displayed, after filtering
|
|
587
652
|
*/
|
|
588
653
|
getVisibleRowCount(): number;
|
|
589
654
|
/**
|
|
590
|
-
*
|
|
655
|
+
* Number of columns in the grid, including hidden columns.
|
|
656
|
+
* @returns Number of columns in the grid, including hidden columns
|
|
591
657
|
*/
|
|
592
658
|
getColumnCount(): number;
|
|
593
659
|
/**
|
|
594
|
-
*
|
|
660
|
+
* Number of columns that are currently visible.
|
|
661
|
+
* @returns Number of columns that are currently visible
|
|
595
662
|
*/
|
|
596
663
|
getVisibleColumnCount(): number;
|
|
597
664
|
/**
|
|
598
665
|
* Checks if given Grid Cell is editable
|
|
599
666
|
* @param gridCell Cell to check
|
|
667
|
+
* @returns `true` when given Grid Cell is editable
|
|
600
668
|
*/
|
|
601
669
|
isCellEditable(gridCell: GridCell): boolean;
|
|
602
670
|
/**
|
|
603
671
|
* Checks if given Grid Cell has been edited (uses Data Change History)
|
|
604
672
|
* @param gridCell Cell to check
|
|
673
|
+
* @returns `true` when given Grid Cell has been edited (uses Data Change History)
|
|
605
674
|
*/
|
|
606
675
|
isCellEdited(gridCell: GridCell): boolean;
|
|
607
676
|
/**
|
|
608
677
|
* Checks if all of given Grid Cells are editable
|
|
609
678
|
* @param gridCells cells to check
|
|
679
|
+
* @returns `true` when all of given Grid Cells are editable
|
|
610
680
|
*/
|
|
611
681
|
isEveryCellEditable(gridCells: GridCell[]): boolean;
|
|
612
682
|
/**
|
|
@@ -619,6 +689,7 @@ export interface GridApi {
|
|
|
619
689
|
deselectAll(): void;
|
|
620
690
|
/**
|
|
621
691
|
* Returns the Grid Container in which the AdapTable Instance is present
|
|
692
|
+
* @returns The Grid Container in which the AdapTable Instance is present
|
|
622
693
|
*/
|
|
623
694
|
getGridContainerElement(): HTMLElement | null;
|
|
624
695
|
/**
|
|
@@ -627,10 +698,12 @@ export interface GridApi {
|
|
|
627
698
|
openGridInfoSettingsPanel(): void;
|
|
628
699
|
/**
|
|
629
700
|
* Returns AG Grid Row Model Type
|
|
701
|
+
* @returns AG Grid Row Model Type
|
|
630
702
|
*/
|
|
631
703
|
getAgGridRowModelType(): RowModelType;
|
|
632
704
|
/**
|
|
633
|
-
* Opens a window with a transposed view of
|
|
705
|
+
* Opens a window with a transposed view of the grid.
|
|
706
|
+
* @param transposeConfig Which column, columns and rows to transpose. Omit it to transpose every column, using the primary key column
|
|
634
707
|
*/
|
|
635
708
|
showTransposedView(transposeConfig?: TransposeConfig): void;
|
|
636
709
|
/**
|
|
@@ -639,6 +712,7 @@ export interface GridApi {
|
|
|
639
712
|
closeTransposedView(): void;
|
|
640
713
|
/**
|
|
641
714
|
* Return all AG Grid columns
|
|
715
|
+
* @returns Every AG Grid column, including hidden columns
|
|
642
716
|
*/
|
|
643
717
|
getAllAgGridColumns(): Column<any>[];
|
|
644
718
|
/**
|
|
@@ -652,19 +726,18 @@ export interface GridApi {
|
|
|
652
726
|
*/
|
|
653
727
|
updateAgGridColumnStates(columnStates: ColumnState[]): void;
|
|
654
728
|
/**
|
|
655
|
-
*
|
|
729
|
+
* Replaces the grid's column definitions.
|
|
730
|
+
* @param columnDefinitions Column definitions to set
|
|
656
731
|
*/
|
|
657
732
|
setAgGridColumnDefinitions(columnDefinitions: (ColDef | ColGroupDef)[]): void;
|
|
658
733
|
/**
|
|
659
|
-
*
|
|
660
|
-
* @param
|
|
661
|
-
* @param columnDefinition - the new Column Definition
|
|
734
|
+
* Merges non-stateful AG Grid column properties into an existing column definition. The column is matched by `colId`. A column that does not exist yet is added.
|
|
735
|
+
* @param columnDefinition Column definition to merge. `colId` is required
|
|
662
736
|
*/
|
|
663
737
|
updateAgGridColumnDefinition(columnDefinition: ColDefWithId): void;
|
|
664
738
|
/**
|
|
665
|
-
*
|
|
666
|
-
* @param
|
|
667
|
-
* @param columnDefinition - the new Column Definition
|
|
739
|
+
* Merges non-stateful AG Grid column properties into the given column definitions. Each column is matched by `colId`.
|
|
740
|
+
* @param columnDefinitions Column definitions to merge. Each `colId` is required
|
|
668
741
|
*/
|
|
669
742
|
updateAgGridColumnDefinitions(columnDefinitions: ColDefWithId[]): void;
|
|
670
743
|
/**
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { IPushPullReport } from '../AdaptableState/InternalState';
|
|
2
2
|
import { IPushPullDomain } from '../AdaptableState/IPushPullState';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The ipushpull plugin: login, the current report, and sending a snapshot or live data.
|
|
5
5
|
*/
|
|
6
6
|
export interface IPushPullApi {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves `Username` from ipushpull state - AFTER someone logs in
|
|
9
|
+
* @returns `Username` from ipushpull state - AFTER someone logs in
|
|
9
10
|
*/
|
|
10
11
|
getCurrentIPushPullUsername(): string | undefined;
|
|
11
12
|
/**
|
|
12
13
|
* Retrieves `Password` from ipushpull state -- AFTER someone logs in
|
|
14
|
+
* @returns `Password` from ipushpull state -- AFTER someone logs in
|
|
13
15
|
*/
|
|
14
16
|
getCurrentIPushPullPassword(): string | undefined;
|
|
15
17
|
/**
|
|
16
18
|
* Retrieves `Username` from ipushpull options (if provided)
|
|
19
|
+
* @returns `Username` from ipushpull options (if provided)
|
|
17
20
|
*/
|
|
18
21
|
getIPushPullUsername(): string | undefined;
|
|
19
22
|
/**
|
|
20
23
|
* Retrieves `Password` from ipushpull options (if provided)
|
|
24
|
+
* @returns `Password` from ipushpull options (if provided)
|
|
21
25
|
*/
|
|
22
26
|
getIPushPullPassword(): string | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* Retrieves `AutoLogin` from ipushpull options; if `true` AdapTable will automatically log user in to ipushpull at start-up
|
|
29
|
+
* @returns `AutoLogin` from ipushpull options; if `true` AdapTable will automatically log user in to ipushpull at start-up
|
|
25
30
|
*/
|
|
26
31
|
getAutoLogin(): boolean;
|
|
27
32
|
/**
|
|
28
33
|
* Retrieves current ipushpull Report from ipushpull state; A Report contains Name, Folder and ipushpull Page
|
|
34
|
+
* @returns Current ipushpull Report from ipushpull state; A Report contains Name, Folder and ipushpull Page
|
|
29
35
|
*/
|
|
30
36
|
getCurrentLiveIPushPullReport(): IPushPullReport | undefined;
|
|
31
37
|
/**
|
|
@@ -50,10 +56,12 @@ export interface IPushPullApi {
|
|
|
50
56
|
stopLiveData(): void;
|
|
51
57
|
/**
|
|
52
58
|
* Retrieves the current ipushpull instance (if one has been provided by the User at design time in ipushpull state)
|
|
59
|
+
* @returns The current ipushpull instance (if one has been provided by the User at design time in ipushpull state)
|
|
53
60
|
*/
|
|
54
61
|
getIPushPullInstance(): any;
|
|
55
62
|
/**
|
|
56
|
-
*
|
|
63
|
+
* Replaces the ipushpull instance AdapTable is using. Prefer the login methods.
|
|
64
|
+
* @param ippInstance ipushpull instance to use
|
|
57
65
|
*/
|
|
58
66
|
setIPushPullInstance(ippInstance: any): void;
|
|
59
67
|
/**
|
|
@@ -66,17 +74,20 @@ export interface IPushPullApi {
|
|
|
66
74
|
* - **FolderId**: the number of the Domain / Folder
|
|
67
75
|
*
|
|
68
76
|
* - **Pages**: a string array containing the names of all the Pages in the Folder
|
|
77
|
+
* @returns All the ipushpull domain to which the current user has access An `IPushPullDomain` contains 3 properties: - **Name**: the name of the Domain / Folder - **FolderId**: the number of the Domain / Folder - **Pages**: a string array containing the names of all the Pages in the Folder
|
|
69
78
|
*/
|
|
70
79
|
getIPushPullDomains(): IPushPullDomain[];
|
|
71
80
|
/**
|
|
72
81
|
* Retrieves all pages in given ipushpull domain
|
|
73
82
|
* @param domain ipushpull folder which contains the pages
|
|
83
|
+
* @returns All pages in given ipushpull domain
|
|
74
84
|
*/
|
|
75
85
|
getPagesForIPushPullDomain(domain: string): string[];
|
|
76
86
|
/**
|
|
77
87
|
* Gets the Id of the ipushpull folder / Domain with the given name
|
|
78
88
|
*
|
|
79
89
|
* @param folderName the ipushpull folder name
|
|
90
|
+
* @returns The Id of the ipushpull folder / Domain with the given name
|
|
80
91
|
*/
|
|
81
92
|
getFolderIdForName(folderName: string): number;
|
|
82
93
|
/**
|
|
@@ -87,6 +98,7 @@ export interface IPushPullApi {
|
|
|
87
98
|
addNewIPushPullPage(folder: string, page: string): void;
|
|
88
99
|
/**
|
|
89
100
|
* Retrieves Throttle Time from ipushpull State; how often a Live report will update ipushpull (if data changes)
|
|
101
|
+
* @returns Throttle Time from ipushpull State; how often a Live report will update ipushpull (if data changes)
|
|
90
102
|
*/
|
|
91
103
|
getIPushPullThrottleTime(): number | undefined;
|
|
92
104
|
/**
|
|
@@ -99,6 +111,7 @@ export interface IPushPullApi {
|
|
|
99
111
|
* Checks if given report is currently 'live' (i.e. sending updates as data changes)
|
|
100
112
|
*
|
|
101
113
|
* @param report the report to check
|
|
114
|
+
* @returns `true` when given report is currently 'live' (i.e. sending updates as data changes)
|
|
102
115
|
*/
|
|
103
116
|
isIPushPullReportLive(report: IPushPullReport): boolean;
|
|
104
117
|
/**
|
|
@@ -125,18 +138,22 @@ export interface IPushPullApi {
|
|
|
125
138
|
logoutFromIPushPull(): void;
|
|
126
139
|
/**
|
|
127
140
|
* Checks if an ipushpull instance has been provided by the user
|
|
141
|
+
* @returns `true` when an ipushpull instance has been provided by the user
|
|
128
142
|
*/
|
|
129
143
|
isIPushPullAvailable(): boolean | undefined;
|
|
130
144
|
/**
|
|
131
145
|
* Checks to see if ipushpull is running (i.e. a user has successfully logged in)
|
|
146
|
+
* @returns `true` when a user is logged in to ipushpull
|
|
132
147
|
*/
|
|
133
148
|
isIPushPullRunning(): boolean | undefined;
|
|
134
149
|
/**
|
|
135
150
|
* Checks if a report is sending Live Data to ipushpull
|
|
151
|
+
* @returns `true` when a report is sending Live Data to ipushpull
|
|
136
152
|
*/
|
|
137
153
|
isIPushPullLiveDataRunning(): boolean | undefined;
|
|
138
154
|
/**
|
|
139
155
|
* Whether to display System Reports in ipushpull toolbar
|
|
156
|
+
* @returns `true` when to display System Reports in ipushpull toolbar
|
|
140
157
|
*/
|
|
141
158
|
includeSystemReports(): boolean;
|
|
142
159
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRowNode } from 'ag-grid-enterprise';
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { CellDataChangedInfo } from '../../AdaptableState/Common/CellDataChangedInfo';
|
|
4
|
-
import { AdaptableAlert, AdaptableFlashingCell, AdaptablePersistentState, AdaptableSharedEntity, AdaptableState, AdaptableTheme, CalculatedColumn, AdaptableNote, NoteChangedAction, ColumnFilterChangedInfo, CreatedRowInfo, DashboardState, DataImportedInfo, DataSet, DeletedRowInfo, EditedRowInfo, LayoutState, RowDataChangedInfo, ReportSchedule, SystemStatusMessageInfo } from '../../types';
|
|
4
|
+
import { AdaptableAlert, AdaptableFlashingCell, AdaptablePersistentState, AdaptableSharedEntity, AdaptableState, AdaptableTheme, CalculatedColumn, CommentThread, AdaptableNote, NoteChangedAction, ColumnFilterChangedInfo, CreatedRowInfo, DashboardState, DataImportedInfo, DataSet, DeletedRowInfo, EditedRowInfo, LayoutState, RowDataChangedInfo, ReportSchedule, SystemStatusMessageInfo } from '../../types';
|
|
5
5
|
import { SystemThemeName } from '../../AdaptableState/ThemeState';
|
|
6
6
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
7
7
|
import { LayoutChangedAction } from '../Events/LayoutChanged';
|
|
@@ -10,6 +10,7 @@ export declare class EventInternalApi extends ApiBase {
|
|
|
10
10
|
fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
11
11
|
fireRowChangedEvent(rowDataChangedInfo: RowDataChangedInfo): void;
|
|
12
12
|
fireDashboardChangedEvent(trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState): void;
|
|
13
|
+
fireCommentChangedEvent(commentThreads: CommentThread[]): void;
|
|
13
14
|
fireAlertFiredEvent(alertToFire: AdaptableAlert): void;
|
|
14
15
|
fireThemeSelectedEvent(theme: SystemThemeName): void;
|
|
15
16
|
fireThemeChangedEvent(theme: AdaptableTheme, trigger: 'ThemeSelected' | 'ThemeEdited'): void;
|
|
@@ -68,6 +68,13 @@ export class EventInternalApi extends ApiBase {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
fireCommentChangedEvent(commentThreads) {
|
|
72
|
+
const commentChangedInfo = {
|
|
73
|
+
commentThreads: commentThreads ?? [],
|
|
74
|
+
...this.getAdaptableInternalApi().buildBaseContext(),
|
|
75
|
+
};
|
|
76
|
+
this.getEventApi().emit('CommentChanged', commentChangedInfo);
|
|
77
|
+
}
|
|
71
78
|
fireAlertFiredEvent(alertToFire) {
|
|
72
79
|
const alertFiredInfo = {
|
|
73
80
|
alert: alertToFire,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { InteropioPluginOptions } from '../AdaptableOptions/InteropioPluginOptions';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The interop.io plugin.
|
|
4
4
|
*/
|
|
5
5
|
export interface InteropioPluginApi {
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves the InteropioPlugOptions provided in interopio Plugin
|
|
8
|
+
* @returns The InteropioPlugOptions provided in interopio Plugin
|
|
8
9
|
*/
|
|
9
10
|
getPluginOptions(): InteropioPluginOptions;
|
|
10
11
|
}
|