@adaptabletools/adaptable-cjs 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-cjs",
3
- "version": "22.0.10",
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 the provided data change to its previous value
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): void;
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): void;
13
+ undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): GridCell | undefined;
14
+ undoAllDataChangeHistoryEntries(): GridCell[];
14
15
  clearDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
15
16
  openDataChangeHistorySettingsPanel(): void;
16
17
  private getDataChangeHistoryKey;
@@ -48,6 +48,13 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
48
48
  undoDataChangeHistoryEntry(dataChangeInfo) {
49
49
  const uniqueKey = this.getDataChangeHistoryKey(dataChangeInfo);
50
50
  this.dispatchAction((0, InternalRedux_1.DataChangeHistoryUndo)(dataChangeInfo, uniqueKey));
51
+ return this.getGridApi().getGridCellFromRowNode(dataChangeInfo.rowNode, dataChangeInfo.column.columnId);
52
+ }
53
+ undoAllDataChangeHistoryEntries() {
54
+ const allChanges = this.getDataChangeHistoryLog();
55
+ return allChanges
56
+ .map((dataChange) => this.undoDataChangeHistoryEntry(dataChange))
57
+ .filter((gridCell) => gridCell != null);
51
58
  }
52
59
  clearDataChangeHistoryEntry(dataChangeInfo) {
53
60
  const uniqueKey = this.getDataChangeHistoryKey(dataChangeInfo);
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: 1775746156657 || Date.now(),
6
- VERSION: "22.0.10" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1775828219195 || Date.now(),
6
+ VERSION: "22.0.11" || '--current-version--',
7
7
  };