@adaptabletools/adaptable-plugin-openfin 11.1.1-canary.0 → 11.1.1
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 +2 -2
- package/src/Module/OpenFinModule.js +12 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-openfin",
|
|
3
|
-
"version": "11.1.1
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"redux": "4.0.5",
|
|
21
21
|
"styled-components": "^4.4.1",
|
|
22
22
|
"tslib": "^2.0.0",
|
|
23
|
-
"@adaptabletools/adaptable": "11.1.1
|
|
23
|
+
"@adaptabletools/adaptable": "11.1.1"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -130,14 +130,14 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
130
130
|
// if a piece of data has updated then update any live reports except cell or row selected
|
|
131
131
|
// currently we DONT send deltas or even check if the updated cell is in the current report - we should
|
|
132
132
|
// we simply send everything to iOpenFin every time any cell ticks....
|
|
133
|
-
this.removeDataChangedListener = this.adaptable.DataService.on('
|
|
133
|
+
this.removeDataChangedListener = this.adaptable.DataService.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
134
134
|
const currentLiveIOpenFinReport = this.getOpenFinApi().getCurrentLiveOpenFinReport();
|
|
135
135
|
const report = currentLiveIOpenFinReport
|
|
136
136
|
? this.api.exportApi.getReportByName(currentLiveIOpenFinReport.ReportName)
|
|
137
137
|
: null;
|
|
138
138
|
if (currentLiveIOpenFinReport &&
|
|
139
139
|
!isSelectionReport(currentLiveIOpenFinReport) &&
|
|
140
|
-
this.api.exportApi.isDataChangeInReport(
|
|
140
|
+
this.api.exportApi.isDataChangeInReport(cellDataChangedInfo, report)) {
|
|
141
141
|
this.throttledRecomputeAndSendLiveDataEvent();
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -218,7 +218,7 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
218
218
|
return reject(msg);
|
|
219
219
|
// return resolve({ ignore: true });
|
|
220
220
|
}
|
|
221
|
-
const
|
|
221
|
+
const cellDataChangedInfo = this.api.internalApi.buildDataChangedInfo({
|
|
222
222
|
oldValue,
|
|
223
223
|
newValue,
|
|
224
224
|
column: this.api.columnApi.getColumnFromId(columnId),
|
|
@@ -226,11 +226,14 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
226
226
|
rowNode,
|
|
227
227
|
trigger: 'tick',
|
|
228
228
|
});
|
|
229
|
-
const failedValidationRules = this.adaptable.ValidationService.getValidationRulesForDataChange(
|
|
229
|
+
const failedValidationRules = this.adaptable.ValidationService.getValidationRulesForDataChange(cellDataChangedInfo);
|
|
230
230
|
if (failedValidationRules.length) {
|
|
231
|
-
return resolve({
|
|
231
|
+
return resolve({
|
|
232
|
+
failedValidationRules,
|
|
233
|
+
cellDataChangedInfo: cellDataChangedInfo,
|
|
234
|
+
});
|
|
232
235
|
}
|
|
233
|
-
resolve({
|
|
236
|
+
resolve({ cellDataChangedInfo: cellDataChangedInfo, failedValidationRules: [] });
|
|
234
237
|
});
|
|
235
238
|
});
|
|
236
239
|
return Promise.allSettled(promises)
|
|
@@ -244,12 +247,12 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
244
247
|
return acc;
|
|
245
248
|
}
|
|
246
249
|
acc.failedValidationRules.push(...result.value.failedValidationRules);
|
|
247
|
-
acc.
|
|
250
|
+
acc.cellDataChangedInfos.push(result.value.cellDataChangedInfo);
|
|
248
251
|
return acc;
|
|
249
252
|
}, {
|
|
250
253
|
success: true,
|
|
251
254
|
failedValidationRules: [],
|
|
252
|
-
|
|
255
|
+
cellDataChangedInfos: [],
|
|
253
256
|
});
|
|
254
257
|
})
|
|
255
258
|
.then(resolveTop);
|
|
@@ -313,7 +316,7 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
313
316
|
}
|
|
314
317
|
this.adaptable.api.alertApi.displayAlert({
|
|
315
318
|
alertType: 'cellChanged',
|
|
316
|
-
|
|
319
|
+
cellDataChangedInfo: info,
|
|
317
320
|
alertDefinition: {
|
|
318
321
|
AlertProperties: {
|
|
319
322
|
DisplayNotification: true,
|