@adaptabletools/adaptable 22.0.10 → 22.0.11
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.11",
|
|
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",
|
|
@@ -37,11 +37,16 @@ export interface DataChangeHistoryApi {
|
|
|
37
37
|
*/
|
|
38
38
|
addDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
39
39
|
/**
|
|
40
|
-
* Reverts
|
|
40
|
+
* Reverts provided data change to its previous value and returns GridCell that was undone
|
|
41
41
|
*
|
|
42
42
|
* @param dataChangeInfo the change to be undone
|
|
43
43
|
*/
|
|
44
|
-
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo):
|
|
44
|
+
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): GridCell | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Reverts all data changes to previous values and returns GridCells that were undone
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
undoAllDataChangeHistoryEntries(): GridCell[];
|
|
45
50
|
/**
|
|
46
51
|
* Clears a Row in Data Change Grid
|
|
47
52
|
*
|
|
@@ -10,7 +10,8 @@ export declare class DataChangeHistoryApiImpl extends ApiBase implements DataCha
|
|
|
10
10
|
getDataChangeHistoryLog(): CellDataChangedInfo[];
|
|
11
11
|
getDataChangeForGridCell(gridCell: GridCell): CellDataChangedInfo | undefined;
|
|
12
12
|
addDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
13
|
-
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo):
|
|
13
|
+
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): GridCell | undefined;
|
|
14
|
+
undoAllDataChangeHistoryEntries(): GridCell[];
|
|
14
15
|
clearDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
15
16
|
openDataChangeHistorySettingsPanel(): void;
|
|
16
17
|
private getDataChangeHistoryKey;
|
|
@@ -44,6 +44,13 @@ export class DataChangeHistoryApiImpl extends ApiBase {
|
|
|
44
44
|
undoDataChangeHistoryEntry(dataChangeInfo) {
|
|
45
45
|
const uniqueKey = this.getDataChangeHistoryKey(dataChangeInfo);
|
|
46
46
|
this.dispatchAction(DataChangeHistoryUndo(dataChangeInfo, uniqueKey));
|
|
47
|
+
return this.getGridApi().getGridCellFromRowNode(dataChangeInfo.rowNode, dataChangeInfo.column.columnId);
|
|
48
|
+
}
|
|
49
|
+
undoAllDataChangeHistoryEntries() {
|
|
50
|
+
const allChanges = this.getDataChangeHistoryLog();
|
|
51
|
+
return allChanges
|
|
52
|
+
.map((dataChange) => this.undoDataChangeHistoryEntry(dataChange))
|
|
53
|
+
.filter((gridCell) => gridCell != null);
|
|
47
54
|
}
|
|
48
55
|
clearDataChangeHistoryEntry(dataChangeInfo) {
|
|
49
56
|
const uniqueKey = this.getDataChangeHistoryKey(dataChangeInfo);
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "22.0.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1775828182886 || Date.now(),
|
|
4
|
+
VERSION: "22.0.11" || '--current-version--',
|
|
5
5
|
};
|