@adaptabletools/adaptable-cjs 22.0.0-canary.0 → 22.0.0-canary.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/README.md +4 -6
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -0
- package/src/Api/GridApi.d.ts +14 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +9 -0
- package/src/Api/Implementation/GridApiImpl.js +16 -0
- package/src/Redux/Store/AdaptableStore.js +8 -7
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
- package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
- package/src/Utilities/Services/ModuleService.js +37 -38
- package/src/agGrid/AdaptableAgGrid.d.ts +9 -0
- package/src/agGrid/AdaptableAgGrid.js +61 -4
- package/src/env.js +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@ Repository for the vanilla version of AdapTable - the AG Grid extension develope
|
|
|
4
4
|
|
|
5
5
|
AdapTable provides a huge range of Data Grid (and FDC3) features, which extend AG Grid, and allow advanced users to manage, edit and visualise their data in ways not previously possible.
|
|
6
6
|
|
|
7
|
-
There are also [AdapTable React](https://
|
|
7
|
+
There are also [AdapTable React](https://www.adaptabletools.com/docs/react-overview), [AdapTable Angular](https://www.adaptabletools.com/docs/angular-overview) and [AdapTable Vue](https://www.adaptabletools.com/docs/vue-overview) versions available for those who wish to access AdapTable using their preferred Framework.
|
|
8
8
|
|
|
9
9
|
## Documentation
|
|
10
10
|
|
|
11
|
-
For full details on how to install, instantiate and reference AdapTable programmatically at run-time please read the [AdapTable Developer Documentation](https://
|
|
11
|
+
For full details on how to install, instantiate and reference AdapTable programmatically at run-time please read the [AdapTable Developer Documentation](https://www.adaptabletools.com/docs).
|
|
12
12
|
|
|
13
13
|
## Licenses
|
|
14
14
|
|
|
@@ -20,14 +20,12 @@ We can also make a trial license available for a short period of time to allow y
|
|
|
20
20
|
|
|
21
21
|
**Note: The AdapTable license does not include an AG Grid license which must be bought separately**.
|
|
22
22
|
|
|
23
|
-
Please contact [`sales@adaptabletools.com`](mailto:sales@adaptabletools.com) or see our [License Help Page](https://
|
|
23
|
+
Please contact [`sales@adaptabletools.com`](mailto:sales@adaptabletools.com) or see our [License Help Page](https://www.adaptabletools.com/buy/buying-adaptable-licensing) for more information.
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
## Demos
|
|
27
27
|
|
|
28
|
-
The [AdapTable Documentation](https://
|
|
29
|
-
|
|
30
|
-
Additionally you can see a number of large demos at the [Adaptable Tools website](https://www.adaptabletools.com/demos).
|
|
28
|
+
The [AdapTable Documentation](https://www.adaptabletools.com/docs) contains numerous demos that show the many different functionalities available in AdapTable.
|
|
31
29
|
|
|
32
30
|
## Other AdapTable Resources
|
|
33
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "22.0.0-canary.
|
|
3
|
+
"version": "22.0.0-canary.1",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -171,6 +171,15 @@ export interface IAdaptable {
|
|
|
171
171
|
updated: IRowNode[];
|
|
172
172
|
}>;
|
|
173
173
|
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
174
|
+
applyGridDataTransaction(dataTransaction: {
|
|
175
|
+
add?: any[];
|
|
176
|
+
update?: any[];
|
|
177
|
+
remove?: any[];
|
|
178
|
+
}, config?: DataUpdateConfig): Promise<{
|
|
179
|
+
addedRows: IRowNode[];
|
|
180
|
+
updatedRows: IRowNode[];
|
|
181
|
+
removedRows: IRowNode[];
|
|
182
|
+
}>;
|
|
174
183
|
getPrimaryKeyValueFromRowNode(rowNode: IRowNode, gridApi?: GridApi): any;
|
|
175
184
|
getDistinctGridCellsForGroupedColumn(): GridCellWithChildren[];
|
|
176
185
|
getDistinctGridCellsForColumn(column: AdaptableColumn): GridCell[];
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -69,6 +69,20 @@ export interface GridApi {
|
|
|
69
69
|
* @param config batch option and callback function to run post deletion
|
|
70
70
|
*/
|
|
71
71
|
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Applies a data transaction (add, update, remove) to AdapTable (and AG Grid)
|
|
74
|
+
* @param dataTransaction - data transaction containing rows to add, update or remove
|
|
75
|
+
* @param config - batch option and callback function to run post transaction
|
|
76
|
+
*/
|
|
77
|
+
applyGridDataTransaction(dataTransaction: {
|
|
78
|
+
add?: any[];
|
|
79
|
+
update?: any[];
|
|
80
|
+
remove?: any[];
|
|
81
|
+
}, config?: DataUpdateConfig): Promise<{
|
|
82
|
+
addedRows: IRowNode[];
|
|
83
|
+
updatedRows: IRowNode[];
|
|
84
|
+
removedRows: IRowNode[];
|
|
85
|
+
}>;
|
|
72
86
|
/**
|
|
73
87
|
* Updates cell in AdapTable (first performs Cell & Server Validation)
|
|
74
88
|
* @param cellUpdateRequest (contains columnId, newValue and primaryKeyValue
|
|
@@ -151,4 +151,13 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
151
151
|
updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated: ColDefWithId[]): void;
|
|
152
152
|
removeAgGridColumnDefinition(columnId: string): void;
|
|
153
153
|
addAgGridColumnDefinition(newColumnDefinition: ColDefWithId): void;
|
|
154
|
+
applyGridDataTransaction(dataTransaction: {
|
|
155
|
+
add?: any[];
|
|
156
|
+
update?: any[];
|
|
157
|
+
remove?: any[];
|
|
158
|
+
}, config?: DataUpdateConfig): Promise<{
|
|
159
|
+
addedRows: IRowNode[];
|
|
160
|
+
updatedRows: IRowNode[];
|
|
161
|
+
removedRows: IRowNode[];
|
|
162
|
+
}>;
|
|
154
163
|
}
|
|
@@ -687,5 +687,21 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
687
687
|
.filter(Boolean);
|
|
688
688
|
this.setAgGridColumnDefinitions([...sanitizedColDefs, newColumnDefinition]);
|
|
689
689
|
}
|
|
690
|
+
async applyGridDataTransaction(dataTransaction, config) {
|
|
691
|
+
const transactionResult = await this._adaptable.applyGridDataTransaction(dataTransaction, config);
|
|
692
|
+
if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
|
|
693
|
+
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.remove, transactionResult.removedRows, 'Delete');
|
|
694
|
+
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
695
|
+
}
|
|
696
|
+
if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
|
|
697
|
+
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.update, transactionResult.updatedRows, 'Update');
|
|
698
|
+
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
699
|
+
}
|
|
700
|
+
if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
|
|
701
|
+
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.add, transactionResult.addedRows, 'Add');
|
|
702
|
+
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
703
|
+
}
|
|
704
|
+
return transactionResult;
|
|
705
|
+
}
|
|
690
706
|
}
|
|
691
707
|
exports.GridApiImpl = GridApiImpl;
|
|
@@ -1007,6 +1007,14 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1007
1007
|
const newLayout = (newLayoutState.Layouts || []).find((l) => l.Name == newLayoutState.CurrentLayout) ||
|
|
1008
1008
|
newLayoutState.Layouts[0] ||
|
|
1009
1009
|
GeneralConstants_1.ERROR_LAYOUT;
|
|
1010
|
+
if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
|
|
1011
|
+
returnAction.type == LayoutRedux.LAYOUT_DELETE) {
|
|
1012
|
+
// tell AdapTable the Layout has been selected
|
|
1013
|
+
if (newLayout) {
|
|
1014
|
+
adaptable.updateLayoutInManagerAfterStoreHasChanged(newLayout);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
// !!! filter refresh has to be AFTER the layout has been set in the store
|
|
1010
1018
|
let refreshColumnFilters = false;
|
|
1011
1019
|
if (adaptable.api.filterApi.columnFilterApi.internalApi.areColumnFiltersDifferent(oldLayout.ColumnFilters, newLayout.ColumnFilters)) {
|
|
1012
1020
|
refreshColumnFilters = true;
|
|
@@ -1018,13 +1026,6 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1018
1026
|
if (refreshColumnFilters || refreshGridFilter) {
|
|
1019
1027
|
adaptable.applyFiltering({ updateColumnFilterModel: refreshColumnFilters });
|
|
1020
1028
|
}
|
|
1021
|
-
if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
|
|
1022
|
-
returnAction.type == LayoutRedux.LAYOUT_DELETE) {
|
|
1023
|
-
// tell AdapTable the Layout has been selected
|
|
1024
|
-
if (newLayout) {
|
|
1025
|
-
adaptable.updateLayoutInManagerAfterStoreHasChanged(newLayout);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
1029
|
// when changing current layout via the api, the layout should update
|
|
1029
1030
|
if (returnAction.type == LayoutRedux.LAYOUT_SAVE) {
|
|
1030
1031
|
const savingLayout = returnAction.layout;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
1
|
+
export declare const HOST_URL_ROOT = "https://www.adaptabletools.com";
|
|
2
|
+
export declare const HOST_URL_DOCS = "https://www.adaptabletools.com/docs";
|
|
3
|
+
export declare const ExpressionEditorDocsLink = "https://www.adaptabletools.com/docs/ui-expression-editor";
|
|
4
|
+
export declare const BooleanQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-standard";
|
|
5
|
+
export declare const ScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-standard";
|
|
6
|
+
export declare const ObservableQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-observable";
|
|
7
|
+
export declare const AggregatedBooleanQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-aggregation";
|
|
8
|
+
export declare const AggregatedScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-aggregation";
|
|
9
|
+
export declare const CumulativeAggregatedScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-cumulative";
|
|
10
|
+
export declare const QuantileAggregatedScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-quantile";
|
|
11
|
+
export declare const PredicateDocsLink = "https://www.adaptabletools.com/docs/adaptable-predicate";
|
|
12
|
+
export declare const PrimaryKeyDocsLink = "https://www.adaptabletools.com/docs/getting-started-primary-key";
|
|
13
|
+
export declare const LicenseDocsLink = "https://www.adaptabletools.com/buy/buying-adaptable-licensing";
|
|
14
|
+
export declare const AdaptableOptionsDocsLink = "https://www.adaptabletools.com/docs/reference-options-overview";
|
|
15
|
+
export declare const AgGridModulesDocsLink = "https://www.adaptabletools.com/docs/dev-guide-aggrid-modules-overview";
|
|
16
|
+
export declare const AlertMessageDocsLink = "https://www.adaptabletools.com/docs/handbook-alerting-message";
|
|
17
|
+
export declare const FormatColumnPlaceholderDocsLink = "https://www.adaptabletools.com/docs/handbook-column-formatting-display-format-placeholder";
|
|
18
|
+
export declare const AgGridRequiredModulesDocsLink = "https://www.adaptabletools.com/docs/dev-guide-aggrid-modules-overview#mandatory-modules";
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgGridRequiredModulesDocsLink = exports.FormatColumnPlaceholderDocsLink = exports.AlertMessageDocsLink = exports.AgGridModulesDocsLink = exports.AdaptableOptionsDocsLink = exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.QuantileAggregatedScalarQueryDocsLink = exports.CumulativeAggregatedScalarQueryDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = void 0;
|
|
4
|
-
exports.
|
|
3
|
+
exports.AgGridRequiredModulesDocsLink = exports.FormatColumnPlaceholderDocsLink = exports.AlertMessageDocsLink = exports.AgGridModulesDocsLink = exports.AdaptableOptionsDocsLink = exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.QuantileAggregatedScalarQueryDocsLink = exports.CumulativeAggregatedScalarQueryDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = exports.HOST_URL_ROOT = void 0;
|
|
4
|
+
exports.HOST_URL_ROOT = 'https://www.adaptabletools.com';
|
|
5
|
+
exports.HOST_URL_DOCS = `${exports.HOST_URL_ROOT}/docs`;
|
|
5
6
|
//export const HOST_URL_DOCS = 'http://localhost:3000';
|
|
6
|
-
exports.ExpressionEditorDocsLink = `${exports.HOST_URL_DOCS}/
|
|
7
|
-
exports.BooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
8
|
-
exports.ScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
9
|
-
exports.ObservableQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
10
|
-
exports.AggregatedBooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
11
|
-
exports.AggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
12
|
-
exports.CumulativeAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
13
|
-
exports.QuantileAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/
|
|
14
|
-
exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/
|
|
15
|
-
exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/
|
|
16
|
-
exports.LicenseDocsLink = `${exports.
|
|
17
|
-
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/
|
|
18
|
-
exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/
|
|
19
|
-
exports.AlertMessageDocsLink = `${exports.HOST_URL_DOCS}/
|
|
20
|
-
exports.FormatColumnPlaceholderDocsLink = `${exports.HOST_URL_DOCS}/
|
|
21
|
-
exports.AgGridRequiredModulesDocsLink = `${exports.HOST_URL_DOCS}/
|
|
7
|
+
exports.ExpressionEditorDocsLink = `${exports.HOST_URL_DOCS}/ui-expression-editor`;
|
|
8
|
+
exports.BooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-standard`;
|
|
9
|
+
exports.ScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-standard`;
|
|
10
|
+
exports.ObservableQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-observable`;
|
|
11
|
+
exports.AggregatedBooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-aggregation`;
|
|
12
|
+
exports.AggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-aggregation`;
|
|
13
|
+
exports.CumulativeAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-cumulative`;
|
|
14
|
+
exports.QuantileAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-quantile`;
|
|
15
|
+
exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/adaptable-predicate`;
|
|
16
|
+
exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/getting-started-primary-key`;
|
|
17
|
+
exports.LicenseDocsLink = `${exports.HOST_URL_ROOT}/buy/buying-adaptable-licensing`;
|
|
18
|
+
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/reference-options-overview`;
|
|
19
|
+
exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/dev-guide-aggrid-modules-overview`;
|
|
20
|
+
exports.AlertMessageDocsLink = `${exports.HOST_URL_DOCS}/handbook-alerting-message`;
|
|
21
|
+
exports.FormatColumnPlaceholderDocsLink = `${exports.HOST_URL_DOCS}/handbook-column-formatting-display-format-placeholder`;
|
|
22
|
+
exports.AgGridRequiredModulesDocsLink = `${exports.HOST_URL_DOCS}/dev-guide-aggrid-modules-overview#mandatory-modules`;
|
|
@@ -109,84 +109,83 @@ class ModuleService {
|
|
|
109
109
|
}
|
|
110
110
|
getModuleDocumentationPageByModule(adaptableModule) {
|
|
111
111
|
let url = `${DocumentationLinkConstants_1.HOST_URL_DOCS}/`;
|
|
112
|
-
let learnUrl = url + 'guide/';
|
|
113
112
|
switch (adaptableModule) {
|
|
114
113
|
case 'Alert':
|
|
115
|
-
return
|
|
114
|
+
return url + 'handbook-alerting';
|
|
116
115
|
case 'BulkUpdate':
|
|
117
116
|
return url + 'handbook-editing-bulk-update';
|
|
118
117
|
case 'CalculatedColumn':
|
|
119
|
-
return
|
|
118
|
+
return url + 'handbook-calculated-column';
|
|
120
119
|
case 'CellSummary':
|
|
121
|
-
return
|
|
120
|
+
return url + 'handbook-summarising';
|
|
122
121
|
case 'Charting':
|
|
123
|
-
return
|
|
122
|
+
return url + 'handbook-charts';
|
|
124
123
|
case 'ColumnFilter':
|
|
125
|
-
return
|
|
124
|
+
return url + 'handbook-column-filter';
|
|
126
125
|
case 'ColumnInfo':
|
|
127
|
-
return
|
|
126
|
+
return url + 'dev-guide-column-grid-column-info';
|
|
128
127
|
case 'Comment':
|
|
129
|
-
return
|
|
128
|
+
return url + 'handbook-comments';
|
|
130
129
|
case 'CustomSort':
|
|
131
|
-
return
|
|
130
|
+
return url + 'handbook-custom-sorting';
|
|
132
131
|
case 'Dashboard':
|
|
133
|
-
return
|
|
132
|
+
return url + 'ui-dashboard';
|
|
134
133
|
case 'DataChangeHistory':
|
|
135
|
-
return
|
|
134
|
+
return url + 'handbook-monitoring-data-change-history';
|
|
136
135
|
case 'DataImport':
|
|
137
|
-
return
|
|
136
|
+
return url + 'handbook-importing';
|
|
138
137
|
case 'DataSet':
|
|
139
|
-
return
|
|
138
|
+
return url + 'handbook-data-sets';
|
|
140
139
|
case 'Export':
|
|
141
|
-
return
|
|
140
|
+
return url + 'handbook-exporting';
|
|
142
141
|
case 'Fdc3':
|
|
143
|
-
return
|
|
142
|
+
return url + 'handbook-fdc3';
|
|
144
143
|
case 'FlashingCell':
|
|
145
|
-
return
|
|
144
|
+
return url + 'handbook-flashing-cell';
|
|
146
145
|
case 'FormatColumn':
|
|
147
|
-
return
|
|
146
|
+
return url + 'handbook-column-formatting';
|
|
148
147
|
case 'FreeTextColumn':
|
|
149
|
-
return
|
|
148
|
+
return url + 'handbook-freetext-column';
|
|
150
149
|
case 'GridFilter':
|
|
151
|
-
return
|
|
150
|
+
return url + 'handbook-grid-filter';
|
|
152
151
|
case 'GridInfo':
|
|
153
|
-
return
|
|
152
|
+
return url + 'dev-guide-column-grid-column-info';
|
|
154
153
|
case 'Layout':
|
|
155
|
-
return
|
|
154
|
+
return url + 'handbook-layouts';
|
|
156
155
|
case 'NamedQuery':
|
|
157
|
-
return
|
|
156
|
+
return url + 'handbook-named-queries';
|
|
158
157
|
case 'Note':
|
|
159
|
-
return
|
|
158
|
+
return url + 'handbook-notes';
|
|
160
159
|
case 'PlusMinus':
|
|
161
|
-
return
|
|
160
|
+
return url + 'handbook-editing-plus-minus';
|
|
162
161
|
case 'QuickSearch':
|
|
163
|
-
return
|
|
162
|
+
return url + 'handbook-quick-search';
|
|
164
163
|
case 'Schedule':
|
|
165
|
-
return
|
|
164
|
+
return url + 'handbook-scheduling';
|
|
166
165
|
case 'SettingsPanel':
|
|
167
|
-
return
|
|
166
|
+
return url + 'ui-settings-panel';
|
|
168
167
|
case 'Shortcut':
|
|
169
|
-
return
|
|
168
|
+
return url + 'handbook-editing-shortcut';
|
|
170
169
|
case 'SmartEdit':
|
|
171
|
-
return
|
|
170
|
+
return url + 'handbook-editing-smart-edit';
|
|
172
171
|
case 'StateManagement':
|
|
173
|
-
return
|
|
172
|
+
return url + 'dev-guide-adaptable-state-management';
|
|
174
173
|
case 'StatusBar':
|
|
175
|
-
return
|
|
174
|
+
return url + 'ui-status-bar';
|
|
176
175
|
case 'StyledColumn':
|
|
177
|
-
return
|
|
176
|
+
return url + 'handbook-styled-column-overview';
|
|
178
177
|
case 'SystemStatus':
|
|
179
|
-
return
|
|
178
|
+
return url + 'handbook-system-status-message';
|
|
180
179
|
case 'TeamSharing':
|
|
181
|
-
return
|
|
180
|
+
return url + 'handbook-team-sharing';
|
|
182
181
|
case 'Theme':
|
|
183
|
-
return
|
|
182
|
+
return url + 'handbook-theming';
|
|
184
183
|
case 'ToolPanel':
|
|
185
|
-
return
|
|
184
|
+
return url + 'ui-tool-panel';
|
|
186
185
|
case 'IPushPull':
|
|
187
|
-
return
|
|
186
|
+
return url + 'integrations-ipushpull';
|
|
188
187
|
case 'OpenFin':
|
|
189
|
-
return
|
|
188
|
+
return url + 'integrations-openfin';
|
|
190
189
|
default:
|
|
191
190
|
return 'good';
|
|
192
191
|
}
|
|
@@ -257,6 +257,15 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
257
257
|
added: IRowNode[];
|
|
258
258
|
updated: IRowNode[];
|
|
259
259
|
}>;
|
|
260
|
+
applyGridDataTransaction(dataTransaction: {
|
|
261
|
+
add?: any[];
|
|
262
|
+
update?: any[];
|
|
263
|
+
remove?: any[];
|
|
264
|
+
}, config?: DataUpdateConfig): Promise<{
|
|
265
|
+
addedRows: IRowNode[];
|
|
266
|
+
updatedRows: IRowNode[];
|
|
267
|
+
removedRows: IRowNode[];
|
|
268
|
+
}>;
|
|
260
269
|
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
261
270
|
getRowNodeForPrimaryKey(primaryKeyValue: any): any;
|
|
262
271
|
hideColumn(columnId: string): void;
|
|
@@ -658,11 +658,8 @@ You need to define at least one Layout!`);
|
|
|
658
658
|
// FIXME AFL FILTER why is this needed???
|
|
659
659
|
this.refreshSelectedCellsState();
|
|
660
660
|
this.refreshSelectedRowsState();
|
|
661
|
-
// FIXME AFL: this is temporary, will be replaced with v22's new autoCol filtering
|
|
662
|
-
const currentPivotLayoutHasAutoCols = this.api.layoutApi.isCurrentLayoutPivot() &&
|
|
663
|
-
!!this.api.layoutApi.getCurrentRowGroupsColumnIds()?.length;
|
|
664
661
|
// agGridApi.setFilterModel() already triggered onFilterChanged(), so we skip it if updateColumnFilterModel is TRUE
|
|
665
|
-
if (!filteringApplied
|
|
662
|
+
if (!filteringApplied) {
|
|
666
663
|
agGridApi.onFilterChanged();
|
|
667
664
|
filteringApplied = true;
|
|
668
665
|
}
|
|
@@ -2408,6 +2405,66 @@ You need to define at least one Layout!`);
|
|
|
2408
2405
|
});
|
|
2409
2406
|
}
|
|
2410
2407
|
}
|
|
2408
|
+
async applyGridDataTransaction(dataTransaction, config = {}) {
|
|
2409
|
+
const result = {
|
|
2410
|
+
addedRows: [],
|
|
2411
|
+
updatedRows: [],
|
|
2412
|
+
removedRows: [],
|
|
2413
|
+
};
|
|
2414
|
+
if (!dataTransaction) {
|
|
2415
|
+
return result;
|
|
2416
|
+
}
|
|
2417
|
+
const addDataRows = dataTransaction.add;
|
|
2418
|
+
const updateDataRows = dataTransaction.update;
|
|
2419
|
+
const removeDataRows = dataTransaction.remove;
|
|
2420
|
+
if (this.hasAutogeneratedPrimaryKey) {
|
|
2421
|
+
this.addSyntheticPrimaryKeyIfMissing(addDataRows);
|
|
2422
|
+
}
|
|
2423
|
+
if (config.runAsync) {
|
|
2424
|
+
return new Promise((resolve) => {
|
|
2425
|
+
this.applyAgGridTransactionAsync({
|
|
2426
|
+
update: updateDataRows,
|
|
2427
|
+
add: addDataRows,
|
|
2428
|
+
remove: removeDataRows,
|
|
2429
|
+
addIndex: config.addIndex,
|
|
2430
|
+
}, (transaction) => {
|
|
2431
|
+
if (typeof config.callback === 'function') {
|
|
2432
|
+
config.callback(transaction);
|
|
2433
|
+
}
|
|
2434
|
+
if (transaction?.add) {
|
|
2435
|
+
this.updateRowGroupsAndColumnGroupsExpandedState();
|
|
2436
|
+
}
|
|
2437
|
+
resolve({
|
|
2438
|
+
addedRows: transaction?.add,
|
|
2439
|
+
updatedRows: transaction?.update,
|
|
2440
|
+
removedRows: transaction?.remove,
|
|
2441
|
+
});
|
|
2442
|
+
});
|
|
2443
|
+
if (config.flushAsync) {
|
|
2444
|
+
this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
|
|
2445
|
+
}
|
|
2446
|
+
});
|
|
2447
|
+
}
|
|
2448
|
+
else {
|
|
2449
|
+
const transaction = this.applyAgGridTransaction({
|
|
2450
|
+
update: updateDataRows,
|
|
2451
|
+
add: addDataRows,
|
|
2452
|
+
remove: removeDataRows,
|
|
2453
|
+
addIndex: config.addIndex,
|
|
2454
|
+
});
|
|
2455
|
+
if (transaction?.add) {
|
|
2456
|
+
this.updateRowGroupsAndColumnGroupsExpandedState();
|
|
2457
|
+
}
|
|
2458
|
+
if (config.flushAsync) {
|
|
2459
|
+
this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
|
|
2460
|
+
}
|
|
2461
|
+
return Promise.resolve({
|
|
2462
|
+
addedRows: transaction?.add,
|
|
2463
|
+
updatedRows: transaction?.update,
|
|
2464
|
+
removedRows: transaction?.remove,
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2411
2468
|
deleteRows(dataRows, dataUpdateConfig) {
|
|
2412
2469
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
2413
2470
|
if (dataUpdateConfig.runAsync) {
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "22.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1769179439939 || Date.now(),
|
|
6
|
+
VERSION: "22.0.0-canary.1" || '--current-version--',
|
|
7
7
|
};
|