@adaptabletools/adaptable-plugin-openfin 10.0.3 → 10.0.4-canary.0
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-plugin-openfin",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.4-canary.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rebass": "^3.2.2",
|
|
14
14
|
"redux": "4.0.5",
|
|
15
15
|
"styled-components": "^4.4.1",
|
|
16
|
-
"@adaptabletools/adaptable": "10.0.
|
|
16
|
+
"@adaptabletools/adaptable": "10.0.4-canary.0"
|
|
17
17
|
},
|
|
18
18
|
"author": {
|
|
19
19
|
"name": "Jonny Wolfson",
|
|
@@ -165,23 +165,23 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
165
165
|
// update on only 1 cell
|
|
166
166
|
const columns = this.getCurrentReportColumns();
|
|
167
167
|
const primaryKeyColumnId = this.adaptable.adaptableOptions.primaryKey;
|
|
168
|
-
const primaryKeyColumnIndex = columns.findIndex((c) => c.
|
|
168
|
+
const primaryKeyColumnIndex = columns.findIndex((c) => c.columnId === primaryKeyColumnId);
|
|
169
169
|
openFinService.getRowContents(row, columns.length).then((rowValues) => {
|
|
170
170
|
var _a, _b, _c;
|
|
171
171
|
const primaryKey = primaryKeyColumnIndex != -1 ? rowValues[primaryKeyColumnIndex] : null;
|
|
172
172
|
const rowNode = this.api.gridApi.getRowNodeForPrimaryKey(primaryKey);
|
|
173
173
|
const col = columns[column - 1];
|
|
174
|
-
const columnId = col.
|
|
174
|
+
const columnId = col.columnId;
|
|
175
175
|
const columnIsPrimaryKey = columnId === primaryKeyColumnId;
|
|
176
176
|
if (rowNode && !columnIsPrimaryKey) {
|
|
177
|
-
if (this.api.columnApi.getColumnFromId(columnId).
|
|
177
|
+
if (this.api.columnApi.getColumnFromId(columnId).readOnly) {
|
|
178
178
|
logger_1.LogAdaptableWarning(`Can't update column ${columnId} as it is read-only`);
|
|
179
179
|
}
|
|
180
180
|
else {
|
|
181
181
|
const dataChangedInfo = this.api.internalApi.buildDataChangedInfo({
|
|
182
182
|
oldValue: rowNode.data[columnId],
|
|
183
183
|
newValue: value,
|
|
184
|
-
columnId,
|
|
184
|
+
column: this.api.columnApi.getColumnFromId(columnId),
|
|
185
185
|
primaryKeyValue: primaryKey,
|
|
186
186
|
rowNode,
|
|
187
187
|
trigger: 'tick',
|