@adaptabletools/adaptable 19.1.0 → 19.1.2-canary.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/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +3 -0
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/CommentOptions.d.ts +2 -2
- package/src/AdaptableOptions/NoteOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +21 -11
- package/src/Api/Events/GridDataChanged.d.ts +3 -0
- package/src/Api/GridApi.d.ts +8 -3
- 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 +5 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -1
- 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 +108 -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/CommentsInternalApi.d.ts +1 -0
- package/src/Api/Internal/CommentsInternalApi.js +4 -0
- 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/NoteInternalApi.d.ts +1 -0
- package/src/Api/Internal/NoteInternalApi.js +4 -0
- 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/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +3 -0
- 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/Comments/CommentsEditor.js +2 -2
- package/src/View/Comments/CommentsPopup.js +1 -4
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Note/NotePopup.js +1 -4
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -5
- package/src/agGrid/AdaptableAgGrid.js +47 -26
- package/src/agGrid/AgGridAdapter.js +3 -3
- package/src/agGrid/FloatingFilterWrapper.js +4 -3
- package/src/agGrid/defaultAdaptableOptions.js +100 -96
- 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/src/metamodel/adaptable.metamodel.d.ts +32 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -6,13 +6,14 @@ import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
|
6
6
|
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
|
+
import { logDeprecationExternal } from '../../Utilities/logDeprecation';
|
|
9
10
|
export class GridApiImpl extends ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new GridInternalApi(
|
|
11
|
+
constructor(_adaptable) {
|
|
12
|
+
super(_adaptable);
|
|
13
|
+
this.internalApi = new GridInternalApi(_adaptable);
|
|
13
14
|
}
|
|
14
15
|
getVariant() {
|
|
15
|
-
return this.
|
|
16
|
+
return this.getAdaptableVariant();
|
|
16
17
|
}
|
|
17
18
|
getGridState() {
|
|
18
19
|
return this.getAdaptableState().Grid;
|
|
@@ -22,20 +23,20 @@ export class GridApiImpl extends ApiBase {
|
|
|
22
23
|
// to prevent `cellchanged` events from being triggered for rows that have
|
|
23
24
|
// the same primary key with existing rows
|
|
24
25
|
// see #testprevent_cellchanged_event_on_load_grid_data
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
26
|
+
this._adaptable.agGridAdapter.setGridOption('rowData', []);
|
|
27
|
+
this._adaptable.setGridData(dataSource);
|
|
27
28
|
const allRowNodes = this.getAllRowNodes();
|
|
28
29
|
this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Load');
|
|
29
30
|
}
|
|
30
31
|
getGridData() {
|
|
31
|
-
return this.
|
|
32
|
+
return this._adaptable.getGridData();
|
|
32
33
|
}
|
|
33
34
|
getFilteredData() {
|
|
34
|
-
return this.
|
|
35
|
+
return this._adaptable.getFilteredData();
|
|
35
36
|
}
|
|
36
37
|
getVisibleData() {
|
|
37
38
|
const data = [];
|
|
38
|
-
this.
|
|
39
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => {
|
|
39
40
|
if (!this.isGroupRowNode(rowNode)) {
|
|
40
41
|
data.push(rowNode.data);
|
|
41
42
|
}
|
|
@@ -43,12 +44,12 @@ export class GridApiImpl extends ApiBase {
|
|
|
43
44
|
return data;
|
|
44
45
|
}
|
|
45
46
|
async updateGridData(dataRows, dataUpdateConfig) {
|
|
46
|
-
const rowNodes = await this.
|
|
47
|
+
const rowNodes = await this._adaptable.updateRows(dataRows, dataUpdateConfig);
|
|
47
48
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Update');
|
|
48
49
|
return rowNodes;
|
|
49
50
|
}
|
|
50
51
|
async addOrUpdateGridData(dataRows, dataUpdateConfig) {
|
|
51
|
-
const { added, updated } = await this.
|
|
52
|
+
const { added, updated } = await this._adaptable.addOrUpdateRows(dataRows, dataUpdateConfig);
|
|
52
53
|
if (ArrayExtensions.IsNotNullOrEmpty(updated)) {
|
|
53
54
|
this.internalApi.fireGridDataChangedEvent(dataRows, updated, 'Update');
|
|
54
55
|
}
|
|
@@ -61,13 +62,13 @@ export class GridApiImpl extends ApiBase {
|
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
async addGridData(dataRows, dataUpdateConfig) {
|
|
64
|
-
const rowNodes = await this.
|
|
65
|
+
const rowNodes = await this._adaptable.addRows(dataRows, dataUpdateConfig);
|
|
65
66
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
|
|
66
67
|
return rowNodes;
|
|
67
68
|
}
|
|
68
69
|
undoCellEdit(cellDataChangedInfo) {
|
|
69
70
|
// for the reason of this hacky solution see the comments in DataService
|
|
70
|
-
this.
|
|
71
|
+
this.getAdaptableInternalApi().getDataService().logUndoChange(cellDataChangedInfo);
|
|
71
72
|
const cellUpdateRequest = {
|
|
72
73
|
columnId: cellDataChangedInfo.column.columnId,
|
|
73
74
|
newValue: cellDataChangedInfo.oldValue,
|
|
@@ -79,7 +80,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
79
80
|
}
|
|
80
81
|
async deleteGridData(dataRows, dataUpdateConfig) {
|
|
81
82
|
if (this.checkArrayExists(dataRows)) {
|
|
82
|
-
const rowNodes = await this.
|
|
83
|
+
const rowNodes = await this._adaptable.deleteRows(dataRows, dataUpdateConfig);
|
|
83
84
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
|
|
84
85
|
return rowNodes;
|
|
85
86
|
}
|
|
@@ -97,7 +98,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
97
98
|
this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${cellUpdateRequest.primaryKeyValue}`);
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
|
-
this.
|
|
101
|
+
this._adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
|
|
101
102
|
this.refreshCells([rowNode], [abColumn.columnId]);
|
|
102
103
|
}
|
|
103
104
|
setCellValues(cellUpdateRequests) {
|
|
@@ -122,10 +123,10 @@ export class GridApiImpl extends ApiBase {
|
|
|
122
123
|
return rowNode ? this.getNormalisedValueFromRowNode(rowNode, columnId) : undefined;
|
|
123
124
|
}
|
|
124
125
|
hideFilterForm() {
|
|
125
|
-
this.
|
|
126
|
+
this._adaptable.hideColumnFilterForm();
|
|
126
127
|
}
|
|
127
128
|
applyGridFiltering() {
|
|
128
|
-
this.
|
|
129
|
+
this._adaptable.applyColumnFiltering();
|
|
129
130
|
}
|
|
130
131
|
clearGridFiltering() {
|
|
131
132
|
// slightly round the houses but we have to call ColumnFilterAPI as it does it properly
|
|
@@ -139,11 +140,11 @@ export class GridApiImpl extends ApiBase {
|
|
|
139
140
|
return columnSorts === null || columnSorts === void 0 ? void 0 : columnSorts.find((cs) => cs.ColumnId == columnId);
|
|
140
141
|
}
|
|
141
142
|
setAdaptableSorting(columnSorts) {
|
|
142
|
-
this.
|
|
143
|
+
this._adaptable.setColumnSort(columnSorts);
|
|
143
144
|
this.setColumnSorts(columnSorts);
|
|
144
145
|
}
|
|
145
146
|
clearAdaptableSorting() {
|
|
146
|
-
this.
|
|
147
|
+
this._adaptable.clearColumnSort();
|
|
147
148
|
this.clearColumnSorts();
|
|
148
149
|
}
|
|
149
150
|
setColumnSorts(columnSorts) {
|
|
@@ -163,13 +164,13 @@ export class GridApiImpl extends ApiBase {
|
|
|
163
164
|
this.selectNodes(nodes, clearSelection);
|
|
164
165
|
}
|
|
165
166
|
selectNode(rowNode, clearSelection) {
|
|
166
|
-
this.
|
|
167
|
+
this._adaptable.selectNode(rowNode, clearSelection);
|
|
167
168
|
}
|
|
168
169
|
selectNodes(rowNodes, clearSelection) {
|
|
169
|
-
this.
|
|
170
|
+
this._adaptable.selectNodes(rowNodes, clearSelection);
|
|
170
171
|
}
|
|
171
172
|
deSelectRow(primaryKeyValue, clearSelection) {
|
|
172
|
-
this.
|
|
173
|
+
this._adaptable.deSelectNode(this.getRowNodeForPrimaryKey(primaryKeyValue), clearSelection);
|
|
173
174
|
}
|
|
174
175
|
deSelectRows(primaryKeyValues, clearSelection) {
|
|
175
176
|
let nodes = [];
|
|
@@ -179,22 +180,22 @@ export class GridApiImpl extends ApiBase {
|
|
|
179
180
|
this.deSelectNodes(nodes, clearSelection);
|
|
180
181
|
}
|
|
181
182
|
deSelectNode(rowNode, clearSelection) {
|
|
182
|
-
this.
|
|
183
|
+
this._adaptable.deSelectNode(rowNode, clearSelection);
|
|
183
184
|
}
|
|
184
185
|
deSelectNodes(rowNodes, clearSelection) {
|
|
185
|
-
this.
|
|
186
|
+
this._adaptable.deSelectNodes(rowNodes, clearSelection);
|
|
186
187
|
}
|
|
187
188
|
getSelectionStartEndNodes(gridCellRange) {
|
|
188
189
|
let startNode;
|
|
189
190
|
let endNode;
|
|
190
191
|
startNode = gridCellRange.primaryKeyValueEnd
|
|
191
|
-
? this.
|
|
192
|
-
: this.
|
|
192
|
+
? this._adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueStart)
|
|
193
|
+
: this._adaptable.getRowNodeByIndex(gridCellRange.rowIndexStart);
|
|
193
194
|
if (gridCellRange.primaryKeyValueEnd) {
|
|
194
|
-
endNode = this.
|
|
195
|
+
endNode = this._adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueEnd);
|
|
195
196
|
}
|
|
196
197
|
else if (gridCellRange.rowIndexEnd) {
|
|
197
|
-
endNode = this.
|
|
198
|
+
endNode = this._adaptable.getRowNodeByIndex(gridCellRange.rowIndexEnd);
|
|
198
199
|
}
|
|
199
200
|
else {
|
|
200
201
|
endNode = startNode;
|
|
@@ -211,7 +212,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
211
212
|
}
|
|
212
213
|
const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
|
|
213
214
|
if (startNode && endNode) {
|
|
214
|
-
this.
|
|
215
|
+
this._adaptable.selectCells(gridCellRange.columnIds, startNode, endNode, clearSelection);
|
|
215
216
|
}
|
|
216
217
|
}
|
|
217
218
|
selectCellRangeByQuery(query, gridCellRange, clearSelection) {
|
|
@@ -222,13 +223,13 @@ export class GridApiImpl extends ApiBase {
|
|
|
222
223
|
if (gridCellRange) {
|
|
223
224
|
const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
|
|
224
225
|
for (let rowIndex = startNode.rowIndex; rowIndex <= endNode.rowIndex; rowIndex++) {
|
|
225
|
-
const rowNode = this.
|
|
226
|
+
const rowNode = this._adaptable.getRowNodeByIndex(rowIndex);
|
|
226
227
|
isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
230
|
else {
|
|
230
231
|
// include all row
|
|
231
|
-
this.
|
|
232
|
+
this._adaptable.forAllRowNodesDo((rowNode) => {
|
|
232
233
|
isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
|
|
233
234
|
});
|
|
234
235
|
}
|
|
@@ -268,7 +269,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
268
269
|
let preparedClearSelection = clearSelection;
|
|
269
270
|
rowRanges.forEach((range) => {
|
|
270
271
|
// clear only on first range selection
|
|
271
|
-
this.
|
|
272
|
+
this._adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
|
|
272
273
|
preparedClearSelection = false;
|
|
273
274
|
});
|
|
274
275
|
}
|
|
@@ -279,106 +280,106 @@ export class GridApiImpl extends ApiBase {
|
|
|
279
280
|
this.getAdaptableApi().columnApi.selectColumns(columnIds);
|
|
280
281
|
}
|
|
281
282
|
getFirstRowNode() {
|
|
282
|
-
return this.
|
|
283
|
+
return this._adaptable.getFirstRowNode();
|
|
283
284
|
}
|
|
284
285
|
getFirstDisplayedRowNode() {
|
|
285
|
-
return this.
|
|
286
|
+
return this._adaptable.getFirstDisplayedRowNode();
|
|
286
287
|
}
|
|
287
288
|
getVisibleRowNodes(config) {
|
|
288
289
|
const rowNodes = [];
|
|
289
|
-
this.
|
|
290
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => rowNodes.push(rowNode), config);
|
|
290
291
|
return rowNodes;
|
|
291
292
|
}
|
|
292
293
|
getAllRowNodes(config) {
|
|
293
|
-
return this.
|
|
294
|
+
return this._adaptable.getAllRowNodes(config);
|
|
294
295
|
}
|
|
295
296
|
getGroupRowNodes(config) {
|
|
296
|
-
return this.
|
|
297
|
+
return this._adaptable.getGroupRowNodes(config);
|
|
297
298
|
}
|
|
298
299
|
getGridCellFromRowNode(rowNode, columnId) {
|
|
299
|
-
return this.
|
|
300
|
+
return this._adaptable.getGridCellFromRowNode(rowNode, columnId);
|
|
300
301
|
}
|
|
301
302
|
getRawValueFromRowNode(rowNode, columnId) {
|
|
302
|
-
return this.
|
|
303
|
+
return this._adaptable.getRawValueFromRowNode(rowNode, columnId);
|
|
303
304
|
}
|
|
304
305
|
getDisplayValueFromRowNode(rowNode, columnId) {
|
|
305
|
-
return this.
|
|
306
|
+
return this._adaptable.getDisplayValueFromRowNode(rowNode, columnId);
|
|
306
307
|
}
|
|
307
308
|
getDisplayValueFromRawValue(rowNode, columnId, rawValue) {
|
|
308
|
-
return this.
|
|
309
|
+
return this._adaptable.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
|
|
309
310
|
}
|
|
310
311
|
getNormalisedValueFromRowNode(rowNode, columnId) {
|
|
311
|
-
const rawValue = this.
|
|
312
|
+
const rawValue = this._adaptable.getRawValueFromRowNode(rowNode, columnId);
|
|
312
313
|
const abColumn = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
|
|
313
|
-
return this.
|
|
314
|
+
return this._adaptable.getNormalisedValueFromRawValue(rawValue, abColumn);
|
|
314
315
|
}
|
|
315
316
|
getRowNodesForPrimaryKeys(primaryKeyValues) {
|
|
316
|
-
return this.
|
|
317
|
+
return this._adaptable.getRowNodesForPrimaryKeys(primaryKeyValues);
|
|
317
318
|
}
|
|
318
319
|
getRowNodeForPrimaryKey(primaryKeyValue) {
|
|
319
|
-
return this.
|
|
320
|
+
return this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
320
321
|
}
|
|
321
322
|
getPrimaryKeyValueForRowNode(rowNode) {
|
|
322
|
-
return this.
|
|
323
|
+
return this._adaptable.getPrimaryKeyValueFromRowNode(rowNode);
|
|
323
324
|
}
|
|
324
325
|
getRowNodeForIndex(index) {
|
|
325
|
-
return this.
|
|
326
|
+
return this._adaptable.getRowNodeByIndex(index);
|
|
326
327
|
}
|
|
327
328
|
getPrimaryKeyValuesForRowNodes(rowNodes) {
|
|
328
329
|
return rowNodes.map((rowNode) => this.getPrimaryKeyValueForRowNode(rowNode));
|
|
329
330
|
}
|
|
330
331
|
setRowGroupColumns(columnIds) {
|
|
331
|
-
this.
|
|
332
|
+
this._adaptable.setRowGroupColumns(columnIds);
|
|
332
333
|
}
|
|
333
334
|
clearRowGroupColumns() {
|
|
334
|
-
this.
|
|
335
|
+
this._adaptable.clearRowGroupColumns();
|
|
335
336
|
}
|
|
336
337
|
expandAllRowGroups() {
|
|
337
|
-
this.
|
|
338
|
+
this._adaptable.expandAllRowGroups();
|
|
338
339
|
}
|
|
339
340
|
collapseAllRowGroups() {
|
|
340
|
-
this.
|
|
341
|
+
this._adaptable.collapseAllRowGroups();
|
|
341
342
|
}
|
|
342
343
|
getExpandRowGroupsKeys() {
|
|
343
|
-
return this.
|
|
344
|
+
return this._adaptable.getExpandRowGroupsKeys();
|
|
344
345
|
}
|
|
345
346
|
expandRowGroupsForValues(columnValues) {
|
|
346
|
-
this.
|
|
347
|
+
this._adaptable.expandRowGroupsForValues(columnValues);
|
|
347
348
|
}
|
|
348
349
|
isGridPivotable() {
|
|
349
|
-
return !this.
|
|
350
|
+
return !this.getAdaptableInternalApi().isGridInTreeMode();
|
|
350
351
|
}
|
|
351
352
|
isGridGroupable() {
|
|
352
|
-
return !this.
|
|
353
|
+
return !this.getAdaptableInternalApi().isGridInTreeMode();
|
|
353
354
|
}
|
|
354
355
|
isGridRowSelectable() {
|
|
355
|
-
return this.
|
|
356
|
+
return this._adaptable.isGridRowSelectable();
|
|
356
357
|
}
|
|
357
358
|
isGridRangeSelectable() {
|
|
358
|
-
return this.
|
|
359
|
+
return this._adaptable.isGridRangeSelectable();
|
|
359
360
|
}
|
|
360
361
|
isGridRowGrouped() {
|
|
361
|
-
return this.
|
|
362
|
+
return this._adaptable.isGridGroupingActive();
|
|
362
363
|
}
|
|
363
364
|
isGridInPivotMode() {
|
|
364
365
|
return this.getLayoutApi().isCurrentLayoutPivot();
|
|
365
366
|
}
|
|
366
367
|
isGroupRowNode(rowNode) {
|
|
367
|
-
return this.
|
|
368
|
+
return this._adaptable.isGroupRowNode(rowNode);
|
|
368
369
|
}
|
|
369
370
|
isSummaryNode(rowNode) {
|
|
370
371
|
var _a;
|
|
371
372
|
return !!((_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID]);
|
|
372
373
|
}
|
|
373
374
|
isQuickFilterAvailable() {
|
|
374
|
-
return this.
|
|
375
|
+
return this._adaptable.isQuickFilterAvailable();
|
|
375
376
|
}
|
|
376
377
|
redrawGrid() {
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
378
|
+
this._adaptable.redrawBody();
|
|
379
|
+
this._adaptable.refreshHeader();
|
|
379
380
|
}
|
|
380
381
|
getGridCellsForRawValue(columnId, rawValue) {
|
|
381
|
-
const gridCells = this.
|
|
382
|
+
const gridCells = this._adaptable.getGridCellsForColumn(columnId);
|
|
382
383
|
if (!gridCells) {
|
|
383
384
|
return undefined;
|
|
384
385
|
}
|
|
@@ -395,7 +396,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
395
396
|
return gridCells === null || gridCells === void 0 ? void 0 : gridCells.length;
|
|
396
397
|
}
|
|
397
398
|
getGridCellsForDisplayValue(columnId, displayValue) {
|
|
398
|
-
const gridCells = this.
|
|
399
|
+
const gridCells = this._adaptable.getGridCellsForColumn(columnId);
|
|
399
400
|
if (!gridCells) {
|
|
400
401
|
return undefined;
|
|
401
402
|
}
|
|
@@ -408,15 +409,15 @@ export class GridApiImpl extends ApiBase {
|
|
|
408
409
|
return returnGridCells;
|
|
409
410
|
}
|
|
410
411
|
jumpToRow(primaryKeyValue) {
|
|
411
|
-
const node = this.
|
|
412
|
-
this.
|
|
412
|
+
const node = this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
413
|
+
this._adaptable.jumpToRow(node);
|
|
413
414
|
}
|
|
414
415
|
jumpToColumn(columnId) {
|
|
415
|
-
this.
|
|
416
|
+
this._adaptable.jumpToColumn(columnId);
|
|
416
417
|
}
|
|
417
418
|
jumpToCell(primaryKeyValue, columnId) {
|
|
418
|
-
const node = this.
|
|
419
|
-
this.
|
|
419
|
+
const node = this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
420
|
+
this._adaptable.jumpToCell(columnId, node);
|
|
420
421
|
}
|
|
421
422
|
highlightCell(cellHighlightInfo) {
|
|
422
423
|
this.dispatchAction(SystemHighlightCellAdd(cellHighlightInfo));
|
|
@@ -457,8 +458,11 @@ export class GridApiImpl extends ApiBase {
|
|
|
457
458
|
unHighlightAllRows() {
|
|
458
459
|
this.dispatchAction(SystemHighlightRowDeleteAll());
|
|
459
460
|
}
|
|
460
|
-
refreshCells(rowNodes, columnIds) {
|
|
461
|
-
this.
|
|
461
|
+
refreshCells(rowNodes, columnIds, suppressFlash = true) {
|
|
462
|
+
this._adaptable.refreshCells(rowNodes, columnIds, suppressFlash);
|
|
463
|
+
}
|
|
464
|
+
refreshAllCells(forceUpdate = false) {
|
|
465
|
+
this._adaptable.refreshAllCells(forceUpdate);
|
|
462
466
|
}
|
|
463
467
|
refreshGridCell(gridCell) {
|
|
464
468
|
this.refreshCells([gridCell.rowNode], [gridCell.column.columnId]);
|
|
@@ -469,25 +473,25 @@ export class GridApiImpl extends ApiBase {
|
|
|
469
473
|
});
|
|
470
474
|
}
|
|
471
475
|
refreshColumn(columnId) {
|
|
472
|
-
this.
|
|
476
|
+
this._adaptable.refreshCells(null, [columnId], true);
|
|
473
477
|
}
|
|
474
478
|
refreshColumns(columnIds) {
|
|
475
|
-
this.
|
|
479
|
+
this._adaptable.refreshCells(null, columnIds, true);
|
|
476
480
|
}
|
|
477
481
|
refreshRowByPrimaryKey(primaryKey) {
|
|
478
482
|
const rowNode = this.getRowNodeForPrimaryKey(primaryKey);
|
|
479
483
|
this.refreshRowNode(rowNode);
|
|
480
484
|
}
|
|
481
485
|
refreshRowNode(rowNode) {
|
|
482
|
-
this.
|
|
486
|
+
this._adaptable.redrawRow(rowNode);
|
|
483
487
|
}
|
|
484
488
|
refreshRowNodes(rowNodes) {
|
|
485
|
-
this.
|
|
489
|
+
this._adaptable.redrawRows(rowNodes);
|
|
486
490
|
}
|
|
487
491
|
refreshGroupRowNodes() {
|
|
488
492
|
// see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
493
|
+
this.getAgGridApi().refreshClientSideRowModel('group');
|
|
494
|
+
this._adaptable.updateRowGroupsExpandedState();
|
|
491
495
|
}
|
|
492
496
|
isCellEditable(gridCell) {
|
|
493
497
|
if (!gridCell) {
|
|
@@ -505,7 +509,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
505
509
|
}
|
|
506
510
|
const cellEditableFn = this.getEditOptions().isCellEditable;
|
|
507
511
|
if (cellEditableFn) {
|
|
508
|
-
const cellEditableContext = Object.assign({ gridCell }, this.
|
|
512
|
+
const cellEditableContext = Object.assign({ gridCell }, this.getAdaptableInternalApi().buildBaseContext());
|
|
509
513
|
return cellEditableFn(cellEditableContext);
|
|
510
514
|
}
|
|
511
515
|
return true;
|
|
@@ -526,37 +530,38 @@ export class GridApiImpl extends ApiBase {
|
|
|
526
530
|
return true;
|
|
527
531
|
}
|
|
528
532
|
getRowCount() {
|
|
529
|
-
return this.
|
|
533
|
+
return this._adaptable.getRowCount();
|
|
530
534
|
}
|
|
531
535
|
getVisibleRowCount() {
|
|
532
|
-
return this.
|
|
536
|
+
return this._adaptable.getVisibleRowCount();
|
|
533
537
|
}
|
|
534
538
|
getRowsInViewport() {
|
|
535
|
-
return this.
|
|
539
|
+
return this._adaptable.getRowsInViewport();
|
|
536
540
|
}
|
|
537
541
|
getColumnCount() {
|
|
538
|
-
return this.
|
|
542
|
+
return this._adaptable.getColumnCount();
|
|
539
543
|
}
|
|
540
544
|
getVisibleColumnCount() {
|
|
541
|
-
return this.
|
|
545
|
+
return this._adaptable.getVisibleColumnCount();
|
|
542
546
|
}
|
|
543
547
|
selectAll() {
|
|
544
|
-
this.
|
|
548
|
+
this._adaptable.selectAll();
|
|
545
549
|
}
|
|
546
550
|
deselectAll() {
|
|
547
|
-
this.
|
|
551
|
+
this._adaptable.deselectAll();
|
|
548
552
|
}
|
|
549
553
|
destroy() {
|
|
550
|
-
this.
|
|
554
|
+
logDeprecationExternal(this._adaptable.logger, 'GridApi', 'destroy', 'AdaptableApi', 'destroy');
|
|
555
|
+
this.getAdaptableApi().destroy();
|
|
551
556
|
}
|
|
552
557
|
getGridContainerElement() {
|
|
553
|
-
return this.
|
|
558
|
+
return this._adaptable.getAgGridContainerElement();
|
|
554
559
|
}
|
|
555
560
|
openGridInfoSettingsPanel() {
|
|
556
561
|
this.showModulePopup(ModuleConstants.GridInfoModuleId);
|
|
557
562
|
}
|
|
558
563
|
getAgGridRowModelType() {
|
|
559
|
-
return this.
|
|
564
|
+
return this._adaptable.getAgGridRowModelType();
|
|
560
565
|
}
|
|
561
566
|
showTransposedView(transposeConfig = {}) {
|
|
562
567
|
var _a, _b, _c, _d, _e;
|
|
@@ -565,7 +570,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
565
570
|
const visibleColumns = (_c = transposeConfig.visibleColumns) !== null && _c !== void 0 ? _c : false;
|
|
566
571
|
const visibleRows = (_d = transposeConfig.visibleRows) !== null && _d !== void 0 ? _d : false;
|
|
567
572
|
const autosize = (_e = transposeConfig.autosize) !== null && _e !== void 0 ? _e : true;
|
|
568
|
-
this.
|
|
573
|
+
this.getAdaptableInternalApi().showPopupWindow({
|
|
569
574
|
id: WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
570
575
|
factoryId: WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
571
576
|
title: 'Transposed View',
|
|
@@ -580,7 +585,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
580
585
|
});
|
|
581
586
|
}
|
|
582
587
|
getAllAgGridColumns() {
|
|
583
|
-
return this.
|
|
588
|
+
return this._adaptable.getAllGridColumns();
|
|
584
589
|
}
|
|
585
590
|
updateAgGridColumnState(columnState) {
|
|
586
591
|
const columnExists = this.getColumnApi().doesColumnExist(columnState.colId);
|
|
@@ -588,7 +593,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
588
593
|
this.logWarn(`Column with id ${columnState.colId} does not exist, could NOT update configuration`);
|
|
589
594
|
return;
|
|
590
595
|
}
|
|
591
|
-
const agGridApi = this.
|
|
596
|
+
const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
|
|
592
597
|
agGridApi.applyColumnState({
|
|
593
598
|
state: [columnState],
|
|
594
599
|
});
|
|
@@ -601,18 +606,18 @@ export class GridApiImpl extends ApiBase {
|
|
|
601
606
|
notExistingColumnIds.forEach((colId) => {
|
|
602
607
|
this.logWarn(`Column with id ${colId} does not exist, could NOT update configuration`);
|
|
603
608
|
});
|
|
604
|
-
const agGridApi = this.
|
|
609
|
+
const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
|
|
605
610
|
agGridApi.applyColumnState({
|
|
606
611
|
state: existingColumnStates,
|
|
607
612
|
});
|
|
608
613
|
}
|
|
609
614
|
setAgGridColumnDefinitions(columnDefinitions) {
|
|
610
|
-
const agGridApi = this.
|
|
615
|
+
const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
|
|
611
616
|
agGridApi.setGridOption('columnDefs', columnDefinitions);
|
|
612
|
-
this.
|
|
617
|
+
this._adaptable.updateColumnModelAndRefreshGrid({ skipColDefsRefresh: true });
|
|
613
618
|
}
|
|
614
619
|
updateAgGridColumnDefinition(columnDefinitionToBeUpdated) {
|
|
615
|
-
const currentColDefs = [...this.
|
|
620
|
+
const currentColDefs = [...this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
|
|
616
621
|
const columnId = columnDefinitionToBeUpdated.colId;
|
|
617
622
|
const doesColumnExist = this.getColumnApi().doesColumnExist(columnId);
|
|
618
623
|
if (!doesColumnExist) {
|
|
@@ -621,20 +626,20 @@ export class GridApiImpl extends ApiBase {
|
|
|
621
626
|
this.setAgGridColumnDefinitions(newColDefs);
|
|
622
627
|
return;
|
|
623
628
|
}
|
|
624
|
-
const updatedColDefs = this.
|
|
629
|
+
const updatedColDefs = this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
625
630
|
return colDef.colId === columnId ? Object.assign(Object.assign({}, colDef), columnDefinitionToBeUpdated) : colDef;
|
|
626
631
|
});
|
|
627
632
|
this.setAgGridColumnDefinitions(updatedColDefs);
|
|
628
633
|
}
|
|
629
634
|
updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated) {
|
|
630
|
-
const currentColDefs = [...this.
|
|
631
|
-
const updatedColDefs = this.
|
|
635
|
+
const currentColDefs = [...this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
|
|
636
|
+
const updatedColDefs = this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
632
637
|
const newColDef = newColumnDefinitions.find((c) => c.colId === colDef.colId);
|
|
633
638
|
return newColDef ? Object.assign(Object.assign({}, colDef), newColDef) : colDef;
|
|
634
639
|
});
|
|
635
640
|
// find out new columns which are not in the current column definitions
|
|
636
641
|
const currentColIds = [];
|
|
637
|
-
this.
|
|
642
|
+
this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
|
|
638
643
|
currentColIds.push(colDef.colId);
|
|
639
644
|
return colDef;
|
|
640
645
|
});
|
|
@@ -650,8 +655,8 @@ export class GridApiImpl extends ApiBase {
|
|
|
650
655
|
this.logWarn(`Column with id ${columnId} does not exist!`);
|
|
651
656
|
return;
|
|
652
657
|
}
|
|
653
|
-
const currentColDefs = this.
|
|
654
|
-
const updatedColDefs = this.
|
|
658
|
+
const currentColDefs = this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
|
|
659
|
+
const updatedColDefs = this._adaptable.agGridAdapter
|
|
655
660
|
.traverseColDefs(currentColDefs, (colDef) => {
|
|
656
661
|
return colDef.colId === columnId ? null : colDef;
|
|
657
662
|
})
|
|
@@ -659,9 +664,9 @@ export class GridApiImpl extends ApiBase {
|
|
|
659
664
|
this.setAgGridColumnDefinitions(updatedColDefs);
|
|
660
665
|
}
|
|
661
666
|
addAgGridColumnDefinition(newColumnDefinition) {
|
|
662
|
-
const currentColDefs = this.
|
|
667
|
+
const currentColDefs = this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
|
|
663
668
|
// just in case check of there is not already an existing column with the same id and eliminate it
|
|
664
|
-
const sanitizedColDefs = this.
|
|
669
|
+
const sanitizedColDefs = this._adaptable.agGridAdapter
|
|
665
670
|
.traverseColDefs(currentColDefs, (colDef) => {
|
|
666
671
|
return colDef.colId === newColumnDefinition.colId ? null : colDef;
|
|
667
672
|
})
|
|
@@ -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;
|
|
@@ -4,9 +4,9 @@ import { GridFilterInternalApi } from '../Internal/GridFilterInternalApi';
|
|
|
4
4
|
import { ApiBase } from './ApiBase';
|
|
5
5
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
6
6
|
export class GridFilterApiImpl extends ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new GridFilterInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new GridFilterInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
getCurrentGridFilter() {
|
|
12
12
|
var _a;
|
|
@@ -24,7 +24,7 @@ export class GridFilterApiImpl extends ApiBase {
|
|
|
24
24
|
}
|
|
25
25
|
openUIEditorForGridFilter(expression) {
|
|
26
26
|
const preparedQuery = expression !== null && expression !== void 0 ? expression : this.getCurrentGridFilterExpression();
|
|
27
|
-
this.
|
|
27
|
+
this.getAdaptableInternalApi().showPopupWindow({
|
|
28
28
|
id: WINDOW_GRID_FILTER_EDITOR,
|
|
29
29
|
title: ModuleConstants.GridFilterFriendlyName,
|
|
30
30
|
icon: 'filter-list',
|
|
@@ -9,7 +9,7 @@ import { LayoutInternalApi } from '../Internal/LayoutInternalApi';
|
|
|
9
9
|
import { ExtendedLayoutInfo } from '../../PredefinedConfig/Common/ExtendedLayoutInfo';
|
|
10
10
|
export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
11
11
|
internalApi: LayoutInternalApi;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(_adaptable: IAdaptable);
|
|
13
13
|
isCurrentLayoutPivot(): boolean;
|
|
14
14
|
getLayoutState(): LayoutState;
|
|
15
15
|
shouldAutoSaveLayouts: () => boolean;
|
|
@@ -10,13 +10,13 @@ import { DEFAULT_LAYOUT } from '../../Utilities/Constants/GeneralConstants';
|
|
|
10
10
|
import { PopupShowPrompt } from '../../Redux/ActionsReducers/PopupRedux';
|
|
11
11
|
import { LayoutInternalApi } from '../Internal/LayoutInternalApi';
|
|
12
12
|
export class LayoutApiImpl extends ApiBase {
|
|
13
|
-
constructor(
|
|
14
|
-
super(
|
|
13
|
+
constructor(_adaptable) {
|
|
14
|
+
super(_adaptable);
|
|
15
15
|
this.shouldAutoSaveLayouts = () => {
|
|
16
16
|
var _a;
|
|
17
17
|
return (_a = this.getLayoutOptions()) === null || _a === void 0 ? void 0 : _a.autoSaveLayouts;
|
|
18
18
|
};
|
|
19
|
-
this.internalApi = new LayoutInternalApi(
|
|
19
|
+
this.internalApi = new LayoutInternalApi(_adaptable);
|
|
20
20
|
}
|
|
21
21
|
isCurrentLayoutPivot() {
|
|
22
22
|
return this.getCurrentLayout().EnablePivot;
|
|
@@ -5,7 +5,7 @@ import { NamedQueryApi, NamedQueryValidationResult } from '../NamedQueryApi';
|
|
|
5
5
|
import { ApiBase } from './ApiBase';
|
|
6
6
|
export declare class NamedQueryApiImpl extends ApiBase implements NamedQueryApi {
|
|
7
7
|
internalApi: NamedQueryInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
addNamedQuery(namedQuery: NamedQuery): void;
|
|
10
10
|
addNamedQueries(namedQueries: NamedQuery[]): void;
|
|
11
11
|
getNamedQueryState(): NamedQueryState;
|
|
@@ -4,9 +4,9 @@ import { NamedQueryInternalApi } from '../Internal/NamedQueryInternalApi';
|
|
|
4
4
|
import { ApiBase } from './ApiBase';
|
|
5
5
|
import * as NamedQueryRedux from '../../Redux/ActionsReducers/NamedQueryRedux';
|
|
6
6
|
export class NamedQueryApiImpl extends ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new NamedQueryInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new NamedQueryInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
addNamedQuery(namedQuery) {
|
|
12
12
|
this.dispatchAction(NamedQueryRedux.NamedQueryAdd(namedQuery));
|
|
@@ -6,7 +6,7 @@ import { NoteInternalApi } from '../Internal/NoteInternalApi';
|
|
|
6
6
|
import { CellAddress } from '../../types';
|
|
7
7
|
export declare class NoteApiImpl extends ApiBase implements NoteApi {
|
|
8
8
|
internalApi: NoteInternalApi;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(_adaptable: IAdaptable);
|
|
10
10
|
addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
|
|
11
11
|
editNote(note: AdaptableNote): void;
|
|
12
12
|
updateNoteText(noteStr: string, note: AdaptableNote): void;
|