@adaptabletools/adaptable 19.1.0 → 19.1.1
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/package.json +1 -1
- package/src/Api/GridApi.d.ts +2 -1
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +6 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +16 -15
- package/src/Api/Implementation/ApiBase.d.ts +12 -3
- package/src/Api/Implementation/ApiBase.js +39 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
- package/src/Api/Implementation/CalendarApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +9 -9
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -18
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
- package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CommentsApiImpl.js +6 -4
- package/src/Api/Implementation/ConfigApiImpl.js +23 -24
- package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
- package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DashboardApiImpl.js +5 -5
- package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataImportApiImpl.js +3 -3
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataSetApiImpl.js +5 -5
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EventApiImpl.js +2 -2
- package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.js +7 -7
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
- package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
- package/src/Api/Implementation/GridApiImpl.js +106 -103
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
- package/src/Api/Implementation/LayoutApiImpl.js +3 -3
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +3 -3
- package/src/Api/Implementation/OptionsApiImpl.js +7 -7
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PredicateApiImpl.js +4 -4
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ThemeApiImpl.js +8 -8
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
- package/src/Api/Internal/ActionRowInternalApi.js +8 -8
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +55 -50
- package/src/Api/Internal/AlertInternalApi.js +9 -9
- package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
- package/src/Api/Internal/ChartingInternalApi.js +1 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
- package/src/Api/Internal/ColumnInternalApi.js +3 -3
- package/src/Api/Internal/CustomSortInternalApi.js +3 -3
- package/src/Api/Internal/DashboardInternalApi.js +4 -3
- package/src/Api/Internal/DataImportInternalApi.js +2 -2
- package/src/Api/Internal/DataSetInternalApi.js +2 -2
- package/src/Api/Internal/ExportInternalApi.js +21 -22
- package/src/Api/Internal/ExpressionInternalApi.js +4 -4
- package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
- package/src/Api/Internal/Fdc3InternalApi.js +9 -12
- package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
- package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
- package/src/Api/Internal/GridFilterInternalApi.js +2 -2
- package/src/Api/Internal/GridInternalApi.js +26 -26
- package/src/Api/Internal/LayoutInternalApi.js +6 -5
- package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
- package/src/Api/Internal/PredicateInternalApi.js +5 -5
- package/src/Api/Internal/ScheduleInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/Strategy/NoteModule.d.ts +0 -1
- package/src/Strategy/NoteModule.js +4 -5
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/Fdc3Service.js +1 -3
- package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
- package/src/Utilities/Services/FlashingCellService.js +2 -3
- package/src/Utilities/Services/RowEditService.js +3 -5
- package/src/View/Alert/AlertStatusSubPanel.js +4 -4
- package/src/View/Charting/ShowChartButton.js +4 -4
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
- package/src/agGrid/FloatingFilterWrapper.js +4 -3
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
- package/src/env.js +2 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -3,9 +3,9 @@ import { ApiBase } from './ApiBase';
|
|
|
3
3
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
4
4
|
import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
|
|
5
5
|
export class FormatColumnApiImpl extends ApiBase {
|
|
6
|
-
constructor(
|
|
7
|
-
super(
|
|
8
|
-
this.internalApi = new FormatColumnInternalApi(
|
|
6
|
+
constructor(_adaptable) {
|
|
7
|
+
super(_adaptable);
|
|
8
|
+
this.internalApi = new FormatColumnInternalApi(_adaptable);
|
|
9
9
|
}
|
|
10
10
|
getFormatColumnState() {
|
|
11
11
|
return this.getAdaptableState().FormatColumn;
|
|
@@ -108,7 +108,7 @@ export class FormatColumnApiImpl extends ApiBase {
|
|
|
108
108
|
this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
|
|
109
109
|
}
|
|
110
110
|
findFormatColumns(criteria) {
|
|
111
|
-
return this.
|
|
111
|
+
return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getFormatColumns({
|
|
112
112
|
includeLayoutNotAssociatedObjects: true,
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
@@ -6,7 +6,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
6
6
|
import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
|
|
7
7
|
export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextColumnApi {
|
|
8
8
|
internalApi: FreeTextColumnInternalApi;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(_adaptable: IAdaptable);
|
|
10
10
|
getFreeTextColumnState(): FreeTextColumnState;
|
|
11
11
|
getFreeTextColumns(): FreeTextColumn[];
|
|
12
12
|
getFreeTextColumnById(technicalId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
|
|
@@ -4,9 +4,9 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
|
4
4
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
5
5
|
import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
|
|
6
6
|
export class FreeTextColumnApiImpl extends ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new FreeTextColumnInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new FreeTextColumnInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
getFreeTextColumnState() {
|
|
12
12
|
return this.getAdaptableState().FreeTextColumn;
|
|
@@ -89,7 +89,7 @@ export class FreeTextColumnApiImpl extends ApiBase {
|
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
91
|
if (ArrayExtensions.IsNotNullOrEmpty(freeTextColumn.FreeTextStoredValues)) {
|
|
92
|
-
let pkValue = this.
|
|
92
|
+
let pkValue = this._adaptable.getPrimaryKeyValueFromRowNode(rowNode);
|
|
93
93
|
let freeTextStoredValue = freeTextColumn.FreeTextStoredValues.find((fdx) => fdx.PrimaryKey == pkValue);
|
|
94
94
|
if (freeTextStoredValue) {
|
|
95
95
|
return freeTextStoredValue.FreeText;
|
|
@@ -17,7 +17,7 @@ import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
|
17
17
|
import { TransposeConfig } from '../../PredefinedConfig/Common/TransposeConfig';
|
|
18
18
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
19
19
|
internalApi: GridInternalApi;
|
|
20
|
-
constructor(
|
|
20
|
+
constructor(_adaptable: IAdaptable);
|
|
21
21
|
getVariant(): AdaptableVariant;
|
|
22
22
|
getGridState(): GridState;
|
|
23
23
|
loadGridData(dataSource: any): void;
|
|
@@ -114,7 +114,8 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
114
114
|
unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
|
|
115
115
|
unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
|
|
116
116
|
unHighlightAllRows(): void;
|
|
117
|
-
refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
|
|
117
|
+
refreshCells(rowNodes: IRowNode[], columnIds: string[], suppressFlash?: boolean): void;
|
|
118
|
+
refreshAllCells(forceUpdate?: boolean): void;
|
|
118
119
|
refreshGridCell(gridCell: GridCell): void;
|
|
119
120
|
refreshGridCells(gridCells: GridCell[]): void;
|
|
120
121
|
refreshColumn(columnId: string): void;
|
|
@@ -7,12 +7,12 @@ import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
|
7
7
|
import { WINDOW_SHOW_TRANSPOSED_VIEW } from '../../View/Components/Popups/WindowPopups/windowFactory';
|
|
8
8
|
import { ROW_SUMMARY_ROW_ID } from '../../PredefinedConfig/Common/RowSummary';
|
|
9
9
|
export class GridApiImpl extends ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new GridInternalApi(
|
|
10
|
+
constructor(_adaptable) {
|
|
11
|
+
super(_adaptable);
|
|
12
|
+
this.internalApi = new GridInternalApi(_adaptable);
|
|
13
13
|
}
|
|
14
14
|
getVariant() {
|
|
15
|
-
return this.
|
|
15
|
+
return this.getAdaptableVariant();
|
|
16
16
|
}
|
|
17
17
|
getGridState() {
|
|
18
18
|
return this.getAdaptableState().Grid;
|
|
@@ -22,20 +22,20 @@ export class GridApiImpl extends ApiBase {
|
|
|
22
22
|
// to prevent `cellchanged` events from being triggered for rows that have
|
|
23
23
|
// the same primary key with existing rows
|
|
24
24
|
// see #testprevent_cellchanged_event_on_load_grid_data
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
25
|
+
this._adaptable.agGridAdapter.setGridOption('rowData', []);
|
|
26
|
+
this._adaptable.setGridData(dataSource);
|
|
27
27
|
const allRowNodes = this.getAllRowNodes();
|
|
28
28
|
this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Load');
|
|
29
29
|
}
|
|
30
30
|
getGridData() {
|
|
31
|
-
return this.
|
|
31
|
+
return this._adaptable.getGridData();
|
|
32
32
|
}
|
|
33
33
|
getFilteredData() {
|
|
34
|
-
return this.
|
|
34
|
+
return this._adaptable.getFilteredData();
|
|
35
35
|
}
|
|
36
36
|
getVisibleData() {
|
|
37
37
|
const data = [];
|
|
38
|
-
this.
|
|
38
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => {
|
|
39
39
|
if (!this.isGroupRowNode(rowNode)) {
|
|
40
40
|
data.push(rowNode.data);
|
|
41
41
|
}
|
|
@@ -43,12 +43,12 @@ export class GridApiImpl extends ApiBase {
|
|
|
43
43
|
return data;
|
|
44
44
|
}
|
|
45
45
|
async updateGridData(dataRows, dataUpdateConfig) {
|
|
46
|
-
const rowNodes = await this.
|
|
46
|
+
const rowNodes = await this._adaptable.updateRows(dataRows, dataUpdateConfig);
|
|
47
47
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Update');
|
|
48
48
|
return rowNodes;
|
|
49
49
|
}
|
|
50
50
|
async addOrUpdateGridData(dataRows, dataUpdateConfig) {
|
|
51
|
-
const { added, updated } = await this.
|
|
51
|
+
const { added, updated } = await this._adaptable.addOrUpdateRows(dataRows, dataUpdateConfig);
|
|
52
52
|
if (ArrayExtensions.IsNotNullOrEmpty(updated)) {
|
|
53
53
|
this.internalApi.fireGridDataChangedEvent(dataRows, updated, 'Update');
|
|
54
54
|
}
|
|
@@ -61,13 +61,13 @@ export class GridApiImpl extends ApiBase {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
async addGridData(dataRows, dataUpdateConfig) {
|
|
64
|
-
const rowNodes = await this.
|
|
64
|
+
const rowNodes = await this._adaptable.addRows(dataRows, dataUpdateConfig);
|
|
65
65
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
|
|
66
66
|
return rowNodes;
|
|
67
67
|
}
|
|
68
68
|
undoCellEdit(cellDataChangedInfo) {
|
|
69
69
|
// for the reason of this hacky solution see the comments in DataService
|
|
70
|
-
this.
|
|
70
|
+
this.getAdaptableInternalApi().getDataService().logUndoChange(cellDataChangedInfo);
|
|
71
71
|
const cellUpdateRequest = {
|
|
72
72
|
columnId: cellDataChangedInfo.column.columnId,
|
|
73
73
|
newValue: cellDataChangedInfo.oldValue,
|
|
@@ -79,7 +79,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
79
79
|
}
|
|
80
80
|
async deleteGridData(dataRows, dataUpdateConfig) {
|
|
81
81
|
if (this.checkArrayExists(dataRows)) {
|
|
82
|
-
const rowNodes = await this.
|
|
82
|
+
const rowNodes = await this._adaptable.deleteRows(dataRows, dataUpdateConfig);
|
|
83
83
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
|
|
84
84
|
return rowNodes;
|
|
85
85
|
}
|
|
@@ -97,7 +97,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
97
97
|
this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${cellUpdateRequest.primaryKeyValue}`);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
this.
|
|
100
|
+
this._adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
|
|
101
101
|
this.refreshCells([rowNode], [abColumn.columnId]);
|
|
102
102
|
}
|
|
103
103
|
setCellValues(cellUpdateRequests) {
|
|
@@ -122,10 +122,10 @@ export class GridApiImpl extends ApiBase {
|
|
|
122
122
|
return rowNode ? this.getNormalisedValueFromRowNode(rowNode, columnId) : undefined;
|
|
123
123
|
}
|
|
124
124
|
hideFilterForm() {
|
|
125
|
-
this.
|
|
125
|
+
this._adaptable.hideColumnFilterForm();
|
|
126
126
|
}
|
|
127
127
|
applyGridFiltering() {
|
|
128
|
-
this.
|
|
128
|
+
this._adaptable.applyColumnFiltering();
|
|
129
129
|
}
|
|
130
130
|
clearGridFiltering() {
|
|
131
131
|
// slightly round the houses but we have to call ColumnFilterAPI as it does it properly
|
|
@@ -139,11 +139,11 @@ export class GridApiImpl extends ApiBase {
|
|
|
139
139
|
return columnSorts === null || columnSorts === void 0 ? void 0 : columnSorts.find((cs) => cs.ColumnId == columnId);
|
|
140
140
|
}
|
|
141
141
|
setAdaptableSorting(columnSorts) {
|
|
142
|
-
this.
|
|
142
|
+
this._adaptable.setColumnSort(columnSorts);
|
|
143
143
|
this.setColumnSorts(columnSorts);
|
|
144
144
|
}
|
|
145
145
|
clearAdaptableSorting() {
|
|
146
|
-
this.
|
|
146
|
+
this._adaptable.clearColumnSort();
|
|
147
147
|
this.clearColumnSorts();
|
|
148
148
|
}
|
|
149
149
|
setColumnSorts(columnSorts) {
|
|
@@ -163,13 +163,13 @@ export class GridApiImpl extends ApiBase {
|
|
|
163
163
|
this.selectNodes(nodes, clearSelection);
|
|
164
164
|
}
|
|
165
165
|
selectNode(rowNode, clearSelection) {
|
|
166
|
-
this.
|
|
166
|
+
this._adaptable.selectNode(rowNode, clearSelection);
|
|
167
167
|
}
|
|
168
168
|
selectNodes(rowNodes, clearSelection) {
|
|
169
|
-
this.
|
|
169
|
+
this._adaptable.selectNodes(rowNodes, clearSelection);
|
|
170
170
|
}
|
|
171
171
|
deSelectRow(primaryKeyValue, clearSelection) {
|
|
172
|
-
this.
|
|
172
|
+
this._adaptable.deSelectNode(this.getRowNodeForPrimaryKey(primaryKeyValue), clearSelection);
|
|
173
173
|
}
|
|
174
174
|
deSelectRows(primaryKeyValues, clearSelection) {
|
|
175
175
|
let nodes = [];
|
|
@@ -179,22 +179,22 @@ export class GridApiImpl extends ApiBase {
|
|
|
179
179
|
this.deSelectNodes(nodes, clearSelection);
|
|
180
180
|
}
|
|
181
181
|
deSelectNode(rowNode, clearSelection) {
|
|
182
|
-
this.
|
|
182
|
+
this._adaptable.deSelectNode(rowNode, clearSelection);
|
|
183
183
|
}
|
|
184
184
|
deSelectNodes(rowNodes, clearSelection) {
|
|
185
|
-
this.
|
|
185
|
+
this._adaptable.deSelectNodes(rowNodes, clearSelection);
|
|
186
186
|
}
|
|
187
187
|
getSelectionStartEndNodes(gridCellRange) {
|
|
188
188
|
let startNode;
|
|
189
189
|
let endNode;
|
|
190
190
|
startNode = gridCellRange.primaryKeyValueEnd
|
|
191
|
-
? this.
|
|
192
|
-
: this.
|
|
191
|
+
? this._adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueStart)
|
|
192
|
+
: this._adaptable.getRowNodeByIndex(gridCellRange.rowIndexStart);
|
|
193
193
|
if (gridCellRange.primaryKeyValueEnd) {
|
|
194
|
-
endNode = this.
|
|
194
|
+
endNode = this._adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueEnd);
|
|
195
195
|
}
|
|
196
196
|
else if (gridCellRange.rowIndexEnd) {
|
|
197
|
-
endNode = this.
|
|
197
|
+
endNode = this._adaptable.getRowNodeByIndex(gridCellRange.rowIndexEnd);
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
200
|
endNode = startNode;
|
|
@@ -211,7 +211,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
211
211
|
}
|
|
212
212
|
const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
|
|
213
213
|
if (startNode && endNode) {
|
|
214
|
-
this.
|
|
214
|
+
this._adaptable.selectCells(gridCellRange.columnIds, startNode, endNode, clearSelection);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
selectCellRangeByQuery(query, gridCellRange, clearSelection) {
|
|
@@ -222,13 +222,13 @@ export class GridApiImpl extends ApiBase {
|
|
|
222
222
|
if (gridCellRange) {
|
|
223
223
|
const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
|
|
224
224
|
for (let rowIndex = startNode.rowIndex; rowIndex <= endNode.rowIndex; rowIndex++) {
|
|
225
|
-
const rowNode = this.
|
|
225
|
+
const rowNode = this._adaptable.getRowNodeByIndex(rowIndex);
|
|
226
226
|
isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
230
230
|
// include all row
|
|
231
|
-
this.
|
|
231
|
+
this._adaptable.forAllRowNodesDo((rowNode) => {
|
|
232
232
|
isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
@@ -268,7 +268,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
268
268
|
let preparedClearSelection = clearSelection;
|
|
269
269
|
rowRanges.forEach((range) => {
|
|
270
270
|
// clear only on first range selection
|
|
271
|
-
this.
|
|
271
|
+
this._adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
|
|
272
272
|
preparedClearSelection = false;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
@@ -279,106 +279,106 @@ export class GridApiImpl extends ApiBase {
|
|
|
279
279
|
this.getAdaptableApi().columnApi.selectColumns(columnIds);
|
|
280
280
|
}
|
|
281
281
|
getFirstRowNode() {
|
|
282
|
-
return this.
|
|
282
|
+
return this._adaptable.getFirstRowNode();
|
|
283
283
|
}
|
|
284
284
|
getFirstDisplayedRowNode() {
|
|
285
|
-
return this.
|
|
285
|
+
return this._adaptable.getFirstDisplayedRowNode();
|
|
286
286
|
}
|
|
287
287
|
getVisibleRowNodes(config) {
|
|
288
288
|
const rowNodes = [];
|
|
289
|
-
this.
|
|
289
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => rowNodes.push(rowNode), config);
|
|
290
290
|
return rowNodes;
|
|
291
291
|
}
|
|
292
292
|
getAllRowNodes(config) {
|
|
293
|
-
return this.
|
|
293
|
+
return this._adaptable.getAllRowNodes(config);
|
|
294
294
|
}
|
|
295
295
|
getGroupRowNodes(config) {
|
|
296
|
-
return this.
|
|
296
|
+
return this._adaptable.getGroupRowNodes(config);
|
|
297
297
|
}
|
|
298
298
|
getGridCellFromRowNode(rowNode, columnId) {
|
|
299
|
-
return this.
|
|
299
|
+
return this._adaptable.getGridCellFromRowNode(rowNode, columnId);
|
|
300
300
|
}
|
|
301
301
|
getRawValueFromRowNode(rowNode, columnId) {
|
|
302
|
-
return this.
|
|
302
|
+
return this._adaptable.getRawValueFromRowNode(rowNode, columnId);
|
|
303
303
|
}
|
|
304
304
|
getDisplayValueFromRowNode(rowNode, columnId) {
|
|
305
|
-
return this.
|
|
305
|
+
return this._adaptable.getDisplayValueFromRowNode(rowNode, columnId);
|
|
306
306
|
}
|
|
307
307
|
getDisplayValueFromRawValue(rowNode, columnId, rawValue) {
|
|
308
|
-
return this.
|
|
308
|
+
return this._adaptable.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
|
|
309
309
|
}
|
|
310
310
|
getNormalisedValueFromRowNode(rowNode, columnId) {
|
|
311
|
-
const rawValue = this.
|
|
311
|
+
const rawValue = this._adaptable.getRawValueFromRowNode(rowNode, columnId);
|
|
312
312
|
const abColumn = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
|
|
313
|
-
return this.
|
|
313
|
+
return this._adaptable.getNormalisedValueFromRawValue(rawValue, abColumn);
|
|
314
314
|
}
|
|
315
315
|
getRowNodesForPrimaryKeys(primaryKeyValues) {
|
|
316
|
-
return this.
|
|
316
|
+
return this._adaptable.getRowNodesForPrimaryKeys(primaryKeyValues);
|
|
317
317
|
}
|
|
318
318
|
getRowNodeForPrimaryKey(primaryKeyValue) {
|
|
319
|
-
return this.
|
|
319
|
+
return this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
320
320
|
}
|
|
321
321
|
getPrimaryKeyValueForRowNode(rowNode) {
|
|
322
|
-
return this.
|
|
322
|
+
return this._adaptable.getPrimaryKeyValueFromRowNode(rowNode);
|
|
323
323
|
}
|
|
324
324
|
getRowNodeForIndex(index) {
|
|
325
|
-
return this.
|
|
325
|
+
return this._adaptable.getRowNodeByIndex(index);
|
|
326
326
|
}
|
|
327
327
|
getPrimaryKeyValuesForRowNodes(rowNodes) {
|
|
328
328
|
return rowNodes.map((rowNode) => this.getPrimaryKeyValueForRowNode(rowNode));
|
|
329
329
|
}
|
|
330
330
|
setRowGroupColumns(columnIds) {
|
|
331
|
-
this.
|
|
331
|
+
this._adaptable.setRowGroupColumns(columnIds);
|
|
332
332
|
}
|
|
333
333
|
clearRowGroupColumns() {
|
|
334
|
-
this.
|
|
334
|
+
this._adaptable.clearRowGroupColumns();
|
|
335
335
|
}
|
|
336
336
|
expandAllRowGroups() {
|
|
337
|
-
this.
|
|
337
|
+
this._adaptable.expandAllRowGroups();
|
|
338
338
|
}
|
|
339
339
|
collapseAllRowGroups() {
|
|
340
|
-
this.
|
|
340
|
+
this._adaptable.collapseAllRowGroups();
|
|
341
341
|
}
|
|
342
342
|
getExpandRowGroupsKeys() {
|
|
343
|
-
return this.
|
|
343
|
+
return this._adaptable.getExpandRowGroupsKeys();
|
|
344
344
|
}
|
|
345
345
|
expandRowGroupsForValues(columnValues) {
|
|
346
|
-
this.
|
|
346
|
+
this._adaptable.expandRowGroupsForValues(columnValues);
|
|
347
347
|
}
|
|
348
348
|
isGridPivotable() {
|
|
349
|
-
return !this.
|
|
349
|
+
return !this.getAdaptableInternalApi().isGridInTreeMode();
|
|
350
350
|
}
|
|
351
351
|
isGridGroupable() {
|
|
352
|
-
return !this.
|
|
352
|
+
return !this.getAdaptableInternalApi().isGridInTreeMode();
|
|
353
353
|
}
|
|
354
354
|
isGridRowSelectable() {
|
|
355
|
-
return this.
|
|
355
|
+
return this._adaptable.isGridRowSelectable();
|
|
356
356
|
}
|
|
357
357
|
isGridRangeSelectable() {
|
|
358
|
-
return this.
|
|
358
|
+
return this._adaptable.isGridRangeSelectable();
|
|
359
359
|
}
|
|
360
360
|
isGridRowGrouped() {
|
|
361
|
-
return this.
|
|
361
|
+
return this._adaptable.isGridGroupingActive();
|
|
362
362
|
}
|
|
363
363
|
isGridInPivotMode() {
|
|
364
364
|
return this.getLayoutApi().isCurrentLayoutPivot();
|
|
365
365
|
}
|
|
366
366
|
isGroupRowNode(rowNode) {
|
|
367
|
-
return this.
|
|
367
|
+
return this._adaptable.isGroupRowNode(rowNode);
|
|
368
368
|
}
|
|
369
369
|
isSummaryNode(rowNode) {
|
|
370
370
|
var _a;
|
|
371
371
|
return !!((_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID]);
|
|
372
372
|
}
|
|
373
373
|
isQuickFilterAvailable() {
|
|
374
|
-
return this.
|
|
374
|
+
return this._adaptable.isQuickFilterAvailable();
|
|
375
375
|
}
|
|
376
376
|
redrawGrid() {
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
377
|
+
this._adaptable.redrawBody();
|
|
378
|
+
this._adaptable.refreshHeader();
|
|
379
379
|
}
|
|
380
380
|
getGridCellsForRawValue(columnId, rawValue) {
|
|
381
|
-
const gridCells = this.
|
|
381
|
+
const gridCells = this._adaptable.getGridCellsForColumn(columnId);
|
|
382
382
|
if (!gridCells) {
|
|
383
383
|
return undefined;
|
|
384
384
|
}
|
|
@@ -395,7 +395,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
395
395
|
return gridCells === null || gridCells === void 0 ? void 0 : gridCells.length;
|
|
396
396
|
}
|
|
397
397
|
getGridCellsForDisplayValue(columnId, displayValue) {
|
|
398
|
-
const gridCells = this.
|
|
398
|
+
const gridCells = this._adaptable.getGridCellsForColumn(columnId);
|
|
399
399
|
if (!gridCells) {
|
|
400
400
|
return undefined;
|
|
401
401
|
}
|
|
@@ -408,15 +408,15 @@ export class GridApiImpl extends ApiBase {
|
|
|
408
408
|
return returnGridCells;
|
|
409
409
|
}
|
|
410
410
|
jumpToRow(primaryKeyValue) {
|
|
411
|
-
const node = this.
|
|
412
|
-
this.
|
|
411
|
+
const node = this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
412
|
+
this._adaptable.jumpToRow(node);
|
|
413
413
|
}
|
|
414
414
|
jumpToColumn(columnId) {
|
|
415
|
-
this.
|
|
415
|
+
this._adaptable.jumpToColumn(columnId);
|
|
416
416
|
}
|
|
417
417
|
jumpToCell(primaryKeyValue, columnId) {
|
|
418
|
-
const node = this.
|
|
419
|
-
this.
|
|
418
|
+
const node = this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
419
|
+
this._adaptable.jumpToCell(columnId, node);
|
|
420
420
|
}
|
|
421
421
|
highlightCell(cellHighlightInfo) {
|
|
422
422
|
this.dispatchAction(SystemHighlightCellAdd(cellHighlightInfo));
|
|
@@ -457,8 +457,11 @@ export class GridApiImpl extends ApiBase {
|
|
|
457
457
|
unHighlightAllRows() {
|
|
458
458
|
this.dispatchAction(SystemHighlightRowDeleteAll());
|
|
459
459
|
}
|
|
460
|
-
refreshCells(rowNodes, columnIds) {
|
|
461
|
-
this.
|
|
460
|
+
refreshCells(rowNodes, columnIds, suppressFlash = true) {
|
|
461
|
+
this._adaptable.refreshCells(rowNodes, columnIds, suppressFlash);
|
|
462
|
+
}
|
|
463
|
+
refreshAllCells(forceUpdate = false) {
|
|
464
|
+
this._adaptable.refreshAllCells(forceUpdate);
|
|
462
465
|
}
|
|
463
466
|
refreshGridCell(gridCell) {
|
|
464
467
|
this.refreshCells([gridCell.rowNode], [gridCell.column.columnId]);
|
|
@@ -469,25 +472,25 @@ export class GridApiImpl extends ApiBase {
|
|
|
469
472
|
});
|
|
470
473
|
}
|
|
471
474
|
refreshColumn(columnId) {
|
|
472
|
-
this.
|
|
475
|
+
this._adaptable.refreshCells(null, [columnId], true);
|
|
473
476
|
}
|
|
474
477
|
refreshColumns(columnIds) {
|
|
475
|
-
this.
|
|
478
|
+
this._adaptable.refreshCells(null, columnIds, true);
|
|
476
479
|
}
|
|
477
480
|
refreshRowByPrimaryKey(primaryKey) {
|
|
478
481
|
const rowNode = this.getRowNodeForPrimaryKey(primaryKey);
|
|
479
482
|
this.refreshRowNode(rowNode);
|
|
480
483
|
}
|
|
481
484
|
refreshRowNode(rowNode) {
|
|
482
|
-
this.
|
|
485
|
+
this._adaptable.redrawRow(rowNode);
|
|
483
486
|
}
|
|
484
487
|
refreshRowNodes(rowNodes) {
|
|
485
|
-
this.
|
|
488
|
+
this._adaptable.redrawRows(rowNodes);
|
|
486
489
|
}
|
|
487
490
|
refreshGroupRowNodes() {
|
|
488
491
|
// see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
492
|
+
this.getAgGridApi().refreshClientSideRowModel('group');
|
|
493
|
+
this._adaptable.updateRowGroupsExpandedState();
|
|
491
494
|
}
|
|
492
495
|
isCellEditable(gridCell) {
|
|
493
496
|
if (!gridCell) {
|
|
@@ -505,7 +508,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
505
508
|
}
|
|
506
509
|
const cellEditableFn = this.getEditOptions().isCellEditable;
|
|
507
510
|
if (cellEditableFn) {
|
|
508
|
-
const cellEditableContext = Object.assign({ gridCell }, this.
|
|
511
|
+
const cellEditableContext = Object.assign({ gridCell }, this.getAdaptableInternalApi().buildBaseContext());
|
|
509
512
|
return cellEditableFn(cellEditableContext);
|
|
510
513
|
}
|
|
511
514
|
return true;
|
|
@@ -526,37 +529,37 @@ export class GridApiImpl extends ApiBase {
|
|
|
526
529
|
return true;
|
|
527
530
|
}
|
|
528
531
|
getRowCount() {
|
|
529
|
-
return this.
|
|
532
|
+
return this._adaptable.getRowCount();
|
|
530
533
|
}
|
|
531
534
|
getVisibleRowCount() {
|
|
532
|
-
return this.
|
|
535
|
+
return this._adaptable.getVisibleRowCount();
|
|
533
536
|
}
|
|
534
537
|
getRowsInViewport() {
|
|
535
|
-
return this.
|
|
538
|
+
return this._adaptable.getRowsInViewport();
|
|
536
539
|
}
|
|
537
540
|
getColumnCount() {
|
|
538
|
-
return this.
|
|
541
|
+
return this._adaptable.getColumnCount();
|
|
539
542
|
}
|
|
540
543
|
getVisibleColumnCount() {
|
|
541
|
-
return this.
|
|
544
|
+
return this._adaptable.getVisibleColumnCount();
|
|
542
545
|
}
|
|
543
546
|
selectAll() {
|
|
544
|
-
this.
|
|
547
|
+
this._adaptable.selectAll();
|
|
545
548
|
}
|
|
546
549
|
deselectAll() {
|
|
547
|
-
this.
|
|
550
|
+
this._adaptable.deselectAll();
|
|
548
551
|
}
|
|
549
552
|
destroy() {
|
|
550
|
-
this.
|
|
553
|
+
this._adaptable.destroy();
|
|
551
554
|
}
|
|
552
555
|
getGridContainerElement() {
|
|
553
|
-
return this.
|
|
556
|
+
return this._adaptable.getAgGridContainerElement();
|
|
554
557
|
}
|
|
555
558
|
openGridInfoSettingsPanel() {
|
|
556
559
|
this.showModulePopup(ModuleConstants.GridInfoModuleId);
|
|
557
560
|
}
|
|
558
561
|
getAgGridRowModelType() {
|
|
559
|
-
return this.
|
|
562
|
+
return this._adaptable.getAgGridRowModelType();
|
|
560
563
|
}
|
|
561
564
|
showTransposedView(transposeConfig = {}) {
|
|
562
565
|
var _a, _b, _c, _d, _e;
|
|
@@ -565,7 +568,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
565
568
|
const visibleColumns = (_c = transposeConfig.visibleColumns) !== null && _c !== void 0 ? _c : false;
|
|
566
569
|
const visibleRows = (_d = transposeConfig.visibleRows) !== null && _d !== void 0 ? _d : false;
|
|
567
570
|
const autosize = (_e = transposeConfig.autosize) !== null && _e !== void 0 ? _e : true;
|
|
568
|
-
this.
|
|
571
|
+
this.getAdaptableInternalApi().showPopupWindow({
|
|
569
572
|
id: WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
570
573
|
factoryId: WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
571
574
|
title: 'Transposed View',
|
|
@@ -580,7 +583,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
580
583
|
});
|
|
581
584
|
}
|
|
582
585
|
getAllAgGridColumns() {
|
|
583
|
-
return this.
|
|
586
|
+
return this._adaptable.getAllGridColumns();
|
|
584
587
|
}
|
|
585
588
|
updateAgGridColumnState(columnState) {
|
|
586
589
|
const columnExists = this.getColumnApi().doesColumnExist(columnState.colId);
|
|
@@ -588,7 +591,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
588
591
|
this.logWarn(`Column with id ${columnState.colId} does not exist, could NOT update configuration`);
|
|
589
592
|
return;
|
|
590
593
|
}
|
|
591
|
-
const agGridApi = this.
|
|
594
|
+
const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
|
|
592
595
|
agGridApi.applyColumnState({
|
|
593
596
|
state: [columnState],
|
|
594
597
|
});
|
|
@@ -601,18 +604,18 @@ export class GridApiImpl extends ApiBase {
|
|
|
601
604
|
notExistingColumnIds.forEach((colId) => {
|
|
602
605
|
this.logWarn(`Column with id ${colId} does not exist, could NOT update configuration`);
|
|
603
606
|
});
|
|
604
|
-
const agGridApi = this.
|
|
607
|
+
const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
|
|
605
608
|
agGridApi.applyColumnState({
|
|
606
609
|
state: existingColumnStates,
|
|
607
610
|
});
|
|
608
611
|
}
|
|
609
612
|
setAgGridColumnDefinitions(columnDefinitions) {
|
|
610
|
-
const agGridApi = this.
|
|
613
|
+
const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
|
|
611
614
|
agGridApi.setGridOption('columnDefs', columnDefinitions);
|
|
612
|
-
this.
|
|
615
|
+
this._adaptable.updateColumnModelAndRefreshGrid({ skipColDefsRefresh: true });
|
|
613
616
|
}
|
|
614
617
|
updateAgGridColumnDefinition(columnDefinitionToBeUpdated) {
|
|
615
|
-
const currentColDefs = [...this.
|
|
618
|
+
const currentColDefs = [...this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
|
|
616
619
|
const columnId = columnDefinitionToBeUpdated.colId;
|
|
617
620
|
const doesColumnExist = this.getColumnApi().doesColumnExist(columnId);
|
|
618
621
|
if (!doesColumnExist) {
|
|
@@ -621,20 +624,20 @@ export class GridApiImpl extends ApiBase {
|
|
|
621
624
|
this.setAgGridColumnDefinitions(newColDefs);
|
|
622
625
|
return;
|
|
623
626
|
}
|
|
624
|
-
const updatedColDefs = this.
|
|
627
|
+
const updatedColDefs = this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
625
628
|
return colDef.colId === columnId ? Object.assign(Object.assign({}, colDef), columnDefinitionToBeUpdated) : colDef;
|
|
626
629
|
});
|
|
627
630
|
this.setAgGridColumnDefinitions(updatedColDefs);
|
|
628
631
|
}
|
|
629
632
|
updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated) {
|
|
630
|
-
const currentColDefs = [...this.
|
|
631
|
-
const updatedColDefs = this.
|
|
633
|
+
const currentColDefs = [...this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
|
|
634
|
+
const updatedColDefs = this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
632
635
|
const newColDef = newColumnDefinitions.find((c) => c.colId === colDef.colId);
|
|
633
636
|
return newColDef ? Object.assign(Object.assign({}, colDef), newColDef) : colDef;
|
|
634
637
|
});
|
|
635
638
|
// find out new columns which are not in the current column definitions
|
|
636
639
|
const currentColIds = [];
|
|
637
|
-
this.
|
|
640
|
+
this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
638
641
|
currentColIds.push(colDef.colId);
|
|
639
642
|
return colDef;
|
|
640
643
|
});
|
|
@@ -650,8 +653,8 @@ export class GridApiImpl extends ApiBase {
|
|
|
650
653
|
this.logWarn(`Column with id ${columnId} does not exist!`);
|
|
651
654
|
return;
|
|
652
655
|
}
|
|
653
|
-
const currentColDefs = this.
|
|
654
|
-
const updatedColDefs = this.
|
|
656
|
+
const currentColDefs = this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
|
|
657
|
+
const updatedColDefs = this._adaptable.agGridAdapter
|
|
655
658
|
.traverseColDefs(currentColDefs, (colDef) => {
|
|
656
659
|
return colDef.colId === columnId ? null : colDef;
|
|
657
660
|
})
|
|
@@ -659,9 +662,9 @@ export class GridApiImpl extends ApiBase {
|
|
|
659
662
|
this.setAgGridColumnDefinitions(updatedColDefs);
|
|
660
663
|
}
|
|
661
664
|
addAgGridColumnDefinition(newColumnDefinition) {
|
|
662
|
-
const currentColDefs = this.
|
|
665
|
+
const currentColDefs = this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
|
|
663
666
|
// just in case check of there is not already an existing column with the same id and eliminate it
|
|
664
|
-
const sanitizedColDefs = this.
|
|
667
|
+
const sanitizedColDefs = this._adaptable.agGridAdapter
|
|
665
668
|
.traverseColDefs(currentColDefs, (colDef) => {
|
|
666
669
|
return colDef.colId === newColumnDefinition.colId ? null : colDef;
|
|
667
670
|
})
|
|
@@ -5,7 +5,7 @@ import { ApiBase } from './ApiBase';
|
|
|
5
5
|
import { GridFilter } from '../../types';
|
|
6
6
|
export declare class GridFilterApiImpl extends ApiBase implements GridFilterApi {
|
|
7
7
|
internalApi: GridFilterInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getCurrentGridFilter(): GridFilter | undefined;
|
|
10
10
|
getCurrentGridFilterExpression(): string | undefined;
|
|
11
11
|
setGridFilterExpression(filter: string): void;
|