@adaptabletools/adaptable-cjs 19.0.2 → 19.0.3
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 +10 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -0
- package/src/Api/Implementation/GridApiImpl.js +9 -0
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
- package/src/agGrid/AdaptableAgGrid.js +6 -2
- package/src/env.js +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.3",
|
|
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",
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -457,6 +457,16 @@ export interface GridApi {
|
|
|
457
457
|
* @param columnIds ColumnIds which contain cells to refresh
|
|
458
458
|
*/
|
|
459
459
|
refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
|
|
460
|
+
/**
|
|
461
|
+
* Refreshes a single Grid Cell
|
|
462
|
+
* @param gridCell GridCell to refresh
|
|
463
|
+
*/
|
|
464
|
+
refreshGridCell(gridCell: GridCell): void;
|
|
465
|
+
/**
|
|
466
|
+
* Refreshes a single Grid Cell
|
|
467
|
+
* @param gridCells GridCells to refresh
|
|
468
|
+
*/
|
|
469
|
+
refreshGridCells(gridCells: GridCell[]): void;
|
|
460
470
|
/**
|
|
461
471
|
* Forces a re-render of the row with the given primary key value
|
|
462
472
|
* @param primaryKey row primary key
|
|
@@ -115,6 +115,8 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
115
115
|
unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
|
|
116
116
|
unHighlightAllRows(): void;
|
|
117
117
|
refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
|
|
118
|
+
refreshGridCell(gridCell: GridCell): void;
|
|
119
|
+
refreshGridCells(gridCells: GridCell[]): void;
|
|
118
120
|
refreshColumn(columnId: string): void;
|
|
119
121
|
refreshColumns(columnIds: string[]): void;
|
|
120
122
|
refreshRowByPrimaryKey(primaryKey: any): void;
|
|
@@ -102,6 +102,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
this.adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
|
|
105
|
+
this.refreshCells([rowNode], [abColumn.columnId]);
|
|
105
106
|
}
|
|
106
107
|
setCellValues(cellUpdateRequests) {
|
|
107
108
|
cellUpdateRequests === null || cellUpdateRequests === void 0 ? void 0 : cellUpdateRequests.forEach((cellUpdateRequest) => this.setCellValue(cellUpdateRequest));
|
|
@@ -463,6 +464,14 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
463
464
|
refreshCells(rowNodes, columnIds) {
|
|
464
465
|
this.adaptable.refreshCells(rowNodes, columnIds, true);
|
|
465
466
|
}
|
|
467
|
+
refreshGridCell(gridCell) {
|
|
468
|
+
this.refreshCells([gridCell.rowNode], [gridCell.column.columnId]);
|
|
469
|
+
}
|
|
470
|
+
refreshGridCells(gridCells) {
|
|
471
|
+
gridCells.forEach((gc) => {
|
|
472
|
+
this.refreshGridCell(gc);
|
|
473
|
+
});
|
|
474
|
+
}
|
|
466
475
|
refreshColumn(columnId) {
|
|
467
476
|
this.adaptable.refreshCells(null, [columnId], true);
|
|
468
477
|
}
|
|
@@ -34,6 +34,7 @@ interface AdaptableInitInternalConfig<TData = any> {
|
|
|
34
34
|
gridOptions: GridOptions<TData>;
|
|
35
35
|
modules?: Module[];
|
|
36
36
|
isDetailGrid?: boolean;
|
|
37
|
+
isDetailGridForRowIndex?: number;
|
|
37
38
|
/**
|
|
38
39
|
* Adaptable init hook for rendering the React/Angular AG Grid component
|
|
39
40
|
*/
|
|
@@ -61,6 +62,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
61
62
|
_rawAdaptableOptions: AdaptableOptions;
|
|
62
63
|
adaptableOptions: AdaptableOptions;
|
|
63
64
|
_isDetailGrid: boolean;
|
|
65
|
+
_isDetailGridForIndex?: number;
|
|
64
66
|
agGridOptionsService: AgGridOptionsService;
|
|
65
67
|
agGridAdapter: AgGridAdapter;
|
|
66
68
|
agGridColumnAdapter: AgGridColumnAdapter;
|
|
@@ -273,6 +273,7 @@ class AdaptableAgGrid {
|
|
|
273
273
|
var _a, _b;
|
|
274
274
|
// Phase 1: Preprocess Adaptable Options
|
|
275
275
|
this._isDetailGrid = config.isDetailGrid === true;
|
|
276
|
+
this._isDetailGridForIndex = config.isDetailGridForRowIndex;
|
|
276
277
|
this.lifecycleState = 'preprocessOptions';
|
|
277
278
|
this._rawAdaptableOptions = config.adaptableOptions;
|
|
278
279
|
if (StringExtensions_1.default.IsNullOrEmptyOrWhiteSpace(this._rawAdaptableOptions.adaptableId)) {
|
|
@@ -588,7 +589,10 @@ class AdaptableAgGrid {
|
|
|
588
589
|
* `gridId`
|
|
589
590
|
*/
|
|
590
591
|
this.agGridOptionsService.setGridOptionsProperty(gridOptions, 'gridId', (original_gridId) => {
|
|
591
|
-
|
|
592
|
+
let agGridId = original_gridId || this.adaptableOptions.adaptableId;
|
|
593
|
+
if (this._isDetailGridForIndex != null) {
|
|
594
|
+
agGridId = `${agGridId}_detail-${this._isDetailGridForIndex}`;
|
|
595
|
+
}
|
|
592
596
|
this._agGridId = agGridId;
|
|
593
597
|
return agGridId;
|
|
594
598
|
});
|
|
@@ -2475,7 +2479,7 @@ class AdaptableAgGrid {
|
|
|
2475
2479
|
let dataType = column.dataType;
|
|
2476
2480
|
newValue = dataType == 'Number' ? Number(value) : value;
|
|
2477
2481
|
if (dataType == undefined) {
|
|
2478
|
-
return; // no point continuing as probably a wrong
|
|
2482
|
+
return; // no point continuing as probably a wrong column
|
|
2479
2483
|
}
|
|
2480
2484
|
if (rowNode) {
|
|
2481
2485
|
rowNode.setDataValue(column.columnId, newValue);
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
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: "19.0.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1728393044652 || Date.now(),
|
|
6
|
+
VERSION: "19.0.3" || '--current-version--',
|
|
7
7
|
};
|