@adaptabletools/adaptable 19.0.2 → 19.0.4

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.
Files changed (33) hide show
  1. package/package.json +1 -2
  2. package/src/Api/BulkUpdateApi.d.ts +0 -6
  3. package/src/Api/GridApi.d.ts +14 -4
  4. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -2
  5. package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
  6. package/src/Api/Implementation/ColumnApiImpl.js +1 -1
  7. package/src/Api/Implementation/GridApiImpl.d.ts +2 -0
  8. package/src/Api/Implementation/GridApiImpl.js +9 -0
  9. package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -2
  10. package/src/Api/Implementation/SmartEditApiImpl.js +0 -4
  11. package/src/Api/SmartEditApi.d.ts +0 -6
  12. package/src/Redux/ActionsReducers/BulkUpdateRedux.d.ts +2 -11
  13. package/src/Redux/ActionsReducers/BulkUpdateRedux.js +2 -10
  14. package/src/Redux/ActionsReducers/SmartEditRedux.d.ts +2 -11
  15. package/src/Redux/ActionsReducers/SmartEditRedux.js +2 -10
  16. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +0 -1
  17. package/src/Redux/Store/AdaptableStore.js +16 -30
  18. package/src/Strategy/Interface/ISmartEditModule.d.ts +0 -2
  19. package/src/Strategy/SmartEditModule.d.ts +0 -2
  20. package/src/Strategy/SmartEditModule.js +0 -3
  21. package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +1 -1
  22. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
  23. package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +1 -2
  24. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -5
  25. package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -2
  26. package/src/View/SmartEdit/SmartEditPopup.js +2 -5
  27. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
  28. package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
  29. package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
  30. package/src/agGrid/AdaptableAgGrid.js +6 -2
  31. package/src/agGrid/AgGridColumnAdapter.js +7 -0
  32. package/src/env.js +2 -2
  33. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -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);
@@ -427,6 +427,13 @@ export class AgGridColumnAdapter {
427
427
  return userValue;
428
428
  }
429
429
  const editableCallback = (params) => {
430
+ if (typeof userValue === 'function') {
431
+ const agGridColDefEditable = userValue(params);
432
+ if (agGridColDefEditable === false) {
433
+ return false;
434
+ }
435
+ }
436
+ // if AG Grid editable is still true, we check if Adaptable allows it
430
437
  const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
431
438
  return this.adaptableApi.gridApi.isCellEditable(gridCell);
432
439
  };
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: 1728918286871 || Date.now(),
4
+ VERSION: "19.0.4" || '--current-version--',
5
5
  };