@adaptabletools/adaptable-cjs 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.
- package/package.json +1 -2
- package/src/Api/BulkUpdateApi.d.ts +0 -6
- package/src/Api/GridApi.d.ts +14 -4
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -2
- package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -0
- package/src/Api/Implementation/GridApiImpl.js +9 -0
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -4
- package/src/Api/SmartEditApi.d.ts +0 -6
- package/src/Redux/ActionsReducers/BulkUpdateRedux.d.ts +2 -11
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +3 -12
- package/src/Redux/ActionsReducers/SmartEditRedux.d.ts +2 -11
- package/src/Redux/ActionsReducers/SmartEditRedux.js +3 -12
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -2
- package/src/Redux/Store/AdaptableStore.js +16 -30
- package/src/Strategy/Interface/ISmartEditModule.d.ts +0 -2
- package/src/Strategy/SmartEditModule.d.ts +0 -2
- package/src/Strategy/SmartEditModule.js +0 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
- package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +1 -2
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -5
- package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -2
- package/src/View/SmartEdit/SmartEditPopup.js +2 -5
- package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
- package/src/agGrid/AdaptableAgGrid.js +6 -2
- package/src/agGrid/AgGridColumnAdapter.js +7 -0
- package/src/env.js +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -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);
|
|
@@ -432,6 +432,13 @@ class AgGridColumnAdapter {
|
|
|
432
432
|
return userValue;
|
|
433
433
|
}
|
|
434
434
|
const editableCallback = (params) => {
|
|
435
|
+
if (typeof userValue === 'function') {
|
|
436
|
+
const agGridColDefEditable = userValue(params);
|
|
437
|
+
if (agGridColDefEditable === false) {
|
|
438
|
+
return false;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
// if AG Grid editable is still true, we check if Adaptable allows it
|
|
435
442
|
const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
436
443
|
return this.adaptableApi.gridApi.isCellEditable(gridCell);
|
|
437
444
|
};
|
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: 1728918319237 || Date.now(),
|
|
6
|
+
VERSION: "19.0.4" || '--current-version--',
|
|
7
7
|
};
|