@adaptabletools/adaptable-plugin-openfin 18.1.13 → 18.1.15-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": "18.1.13",
3
+ "version": "18.1.15-canary.0",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
@@ -18,7 +18,7 @@
18
18
  "redux": "4.0.5",
19
19
  "styled-components": "^4.4.1",
20
20
  "tslib": "^2.3.0",
21
- "@adaptabletools/adaptable": "18.1.13"
21
+ "@adaptabletools/adaptable": "18.1.15-canary.0"
22
22
  },
23
23
  "type": "module",
24
24
  "module": "src/index.js"
@@ -22,8 +22,7 @@ export class OpenFinModule extends AdaptableModuleBase {
22
22
  this.AccessLevel = 'Hidden';
23
23
  }
24
24
  else {
25
- this.AccessLevel = this.api.internalApi
26
- .getEntitlementService()
25
+ this.AccessLevel = this.api.entitlementApi
27
26
  .getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
28
27
  }
29
28
  }
@@ -46,15 +45,15 @@ export class OpenFinModule extends AdaptableModuleBase {
46
45
  if (currentLiveIOpenFinReport) {
47
46
  this.isSendingData = true;
48
47
  let report = this.api.exportApi.getReportByName(currentLiveIOpenFinReport.ReportName);
49
- let reportData = this.adaptable.ReportService.getReportData(report, true);
48
+ let reportData = this.api.exportApi.internalApi.getReportData(report, true);
50
49
  this.currentReportData = reportData;
51
- let ReportAsArray = this.adaptable.ReportService.convertReportDataToArray(reportData);
50
+ let ReportAsArray = this.api.exportApi.internalApi.convertReportDataToArray(reportData);
52
51
  return this.getOpenFinService()
53
52
  .clearAndPushData(ReportAsArray)
54
53
  .then(() => {
55
54
  this.adaptable.logger.success('All live report data sent');
56
55
  this.isSendingData = false;
57
- return this.adaptable.ReportService.PublishLiveLiveDataChangedEvent('OpenFin', 'LiveDataUpdated', currentLiveIOpenFinReport);
56
+ return this.api.exportApi.internalApi.publishLiveLiveDataChangedEvent('OpenFin', 'LiveDataUpdated', currentLiveIOpenFinReport);
58
57
  })
59
58
  .catch((reason) => {
60
59
  this.isSendingData = false;
@@ -70,36 +69,6 @@ export class OpenFinModule extends AdaptableModuleBase {
70
69
  });
71
70
  }
72
71
  }
73
- // private sendReportDelta(
74
- // currentLiveOpenFinReport: OpenFinReport,
75
- // dataChangedInfo: DataChangedInfo
76
- // ) {
77
- // let report: Report = this.api.exportApi.getReportByName(
78
- // currentLiveOpenFinReport.ReportName
79
- // );
80
- // const columns: AdaptableColumn[] = this.adaptable.ReportService.GetReportColumnsForReport(
81
- // report
82
- // );
83
- // let columnIndex = columns.findIndex((col) => col.ColumnId === dataChangedInfo.ColumnId);
84
- // if (columnIndex == -1) {
85
- // LogAdaptableError(
86
- // `Cannot send delta update for column ${dataChangedInfo.ColumnId}`
87
- // );
88
- // return;
89
- // }
90
- // const rowNode = this.api.gridApi.getRowNodeForPrimaryKey(
91
- // dataChangedInfo.PrimaryKeyValue
92
- // );
93
- // if (!rowNode || rowNode.rowIndex == null) {
94
- // LogAdaptableError(
95
- // `Cannot send delta update for row with primary key ${dataChangedInfo.PrimaryKeyValue}`
96
- // );
97
- // }
98
- // const rowIndex = rowNode.rowIndex as number;
99
- // const excelAddress = getExcelColumnLetter(columnIndex) + `${rowIndex + 2}`; // +1 since first row in excel are column headers and +1 since rows in excel start at 1
100
- // const data = this.adaptable.ReportService.getRowValues(rowNode, columns, report)[columnIndex];
101
- // this.getOpenFinService().pushData([[data]], excelAddress);
102
- // }
103
72
  startLiveData(iOpenFinReport) {
104
73
  this.cleanup(); // just in case the previous report has not been stopped
105
74
  this.liveTimeoutId = setTimeout(() => {
@@ -151,13 +151,13 @@ export class OpenFinApiImpl extends ApiBase {
151
151
  startLiveData(OpenFinReport) {
152
152
  if (this.checkItemExists(OpenFinReport, OpenFinReport.ReportName, 'OpenFin Report')) {
153
153
  this.dispatchAction(OpenFinRedux.OpenFinStartLiveData(OpenFinReport));
154
- this.adaptable.ReportService.PublishLiveLiveDataChangedEvent('OpenFin', 'LiveDataStarted', OpenFinReport);
154
+ this.getAdaptableApi().exportApi.internalApi.publishLiveLiveDataChangedEvent('OpenFin', 'LiveDataStarted', OpenFinReport);
155
155
  }
156
156
  }
157
157
  stopLiveData() {
158
158
  let currentLiveReport = this.getCurrentLiveOpenFinReport();
159
159
  this.dispatchAction(OpenFinRedux.OpenFinStopLiveData(currentLiveReport));
160
160
  // fire the Live Report event for Export Stopped
161
- this.adaptable.ReportService.PublishLiveLiveDataChangedEvent('OpenFin', 'LiveDataStopped', currentLiveReport);
161
+ this.getAdaptableApi().exportApi.internalApi.publishLiveLiveDataChangedEvent('OpenFin', 'LiveDataStopped', currentLiveReport);
162
162
  }
163
163
  }
@@ -37,7 +37,7 @@ class OpenFinViewPanelComponent extends React.Component {
37
37
  render() {
38
38
  let allReports = this.props.api.exportApi
39
39
  .getAvailableSystemReports()
40
- .filter((s) => this.props.api.internalApi.getReportService().IsSystemReportActive(s))
40
+ .filter((s) => this.props.api.exportApi.internalApi.isSystemReportActive(s))
41
41
  .filter((s) => s !== GeneralConstants.VISUAL_DATA_REPORT)
42
42
  .map((s) => {
43
43
  return s;