@adaptabletools/adaptable 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "19.0.2",
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",
@@ -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;
@@ -98,6 +98,7 @@ export class GridApiImpl extends ApiBase {
98
98
  return;
99
99
  }
100
100
  this.adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
101
+ this.refreshCells([rowNode], [abColumn.columnId]);
101
102
  }
102
103
  setCellValues(cellUpdateRequests) {
103
104
  cellUpdateRequests === null || cellUpdateRequests === void 0 ? void 0 : cellUpdateRequests.forEach((cellUpdateRequest) => this.setCellValue(cellUpdateRequest));
@@ -459,6 +460,14 @@ export class GridApiImpl extends ApiBase {
459
460
  refreshCells(rowNodes, columnIds) {
460
461
  this.adaptable.refreshCells(rowNodes, columnIds, true);
461
462
  }
463
+ refreshGridCell(gridCell) {
464
+ this.refreshCells([gridCell.rowNode], [gridCell.column.columnId]);
465
+ }
466
+ refreshGridCells(gridCells) {
467
+ gridCells.forEach((gc) => {
468
+ this.refreshGridCell(gc);
469
+ });
470
+ }
462
471
  refreshColumn(columnId) {
463
472
  this.adaptable.refreshCells(null, [columnId], true);
464
473
  }
@@ -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;
@@ -269,6 +269,7 @@ export class AdaptableAgGrid {
269
269
  var _a, _b;
270
270
  // Phase 1: Preprocess Adaptable Options
271
271
  this._isDetailGrid = config.isDetailGrid === true;
272
+ this._isDetailGridForIndex = config.isDetailGridForRowIndex;
272
273
  this.lifecycleState = 'preprocessOptions';
273
274
  this._rawAdaptableOptions = config.adaptableOptions;
274
275
  if (StringExtensions.IsNullOrEmptyOrWhiteSpace(this._rawAdaptableOptions.adaptableId)) {
@@ -584,7 +585,10 @@ export class AdaptableAgGrid {
584
585
  * `gridId`
585
586
  */
586
587
  this.agGridOptionsService.setGridOptionsProperty(gridOptions, 'gridId', (original_gridId) => {
587
- const agGridId = original_gridId || this.adaptableOptions.adaptableId;
588
+ let agGridId = original_gridId || this.adaptableOptions.adaptableId;
589
+ if (this._isDetailGridForIndex != null) {
590
+ agGridId = `${agGridId}_detail-${this._isDetailGridForIndex}`;
591
+ }
588
592
  this._agGridId = agGridId;
589
593
  return agGridId;
590
594
  });
@@ -2471,7 +2475,7 @@ export class AdaptableAgGrid {
2471
2475
  let dataType = column.dataType;
2472
2476
  newValue = dataType == 'Number' ? Number(value) : value;
2473
2477
  if (dataType == undefined) {
2474
- return; // no point continuing as probably a wrong column
2478
+ return; // no point continuing as probably a wrong column
2475
2479
  }
2476
2480
  if (rowNode) {
2477
2481
  rowNode.setDataValue(column.columnId, newValue);
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  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: 1728328912394 || Date.now(),
4
- VERSION: "19.0.2" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1728393013093 || Date.now(),
4
+ VERSION: "19.0.3" || '--current-version--',
5
5
  };