@adaptabletools/adaptable-plugin-openfin 17.0.0-canary.8 → 17.0.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": "17.0.0-canary.8",
3
+ "version": "17.0.0",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
@@ -19,6 +19,6 @@
19
19
  "redux": "4.0.5",
20
20
  "styled-components": "^4.4.1",
21
21
  "tslib": "^2.3.0",
22
- "@adaptabletools/adaptable": "17.0.0-canary.8"
22
+ "@adaptabletools/adaptable": "17.0.0"
23
23
  }
24
24
  }
@@ -14,7 +14,8 @@ export declare class OpenFinModule extends AdaptableModuleBase implements IOpenF
14
14
  private removeGridRefreshedListener;
15
15
  private removeGridFilteredListener;
16
16
  private removeGridSortChangedListener;
17
- private removeSelectionChangedListener;
17
+ private removeCellSelectionChangedListener;
18
+ private removeRowSelectionChangedListener;
18
19
  private removeSheetChangedListener;
19
20
  private currentReportData;
20
21
  constructor(api: AdaptableApi);
@@ -148,11 +148,17 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
148
148
  this.removeGridFilteredListener = this.adaptable._on('AdapTableFiltersApplied', resendLiveDataNoSelectionReport);
149
149
  }
150
150
  // if grid selection has changed and the iOpenFin Live report is 'Selected Cells' or 'Selected Rows' then send updated data
151
- this.removeSelectionChangedListener = this.api.eventApi.on('SelectionChanged', () => {
151
+ this.removeCellSelectionChangedListener = this.api.eventApi.on('CellSelectionChanged', () => {
152
152
  const currentLiveIOpenFinReport = this.getOpenFinApi().getCurrentLiveOpenFinReport();
153
153
  if (currentLiveIOpenFinReport &&
154
- (currentLiveIOpenFinReport.ReportName === GeneralConstants_1.SELECTED_CELLS_REPORT ||
155
- currentLiveIOpenFinReport.ReportName === GeneralConstants_1.SELECTED_ROWS_REPORT)) {
154
+ currentLiveIOpenFinReport.ReportName === GeneralConstants_1.SELECTED_CELLS_REPORT) {
155
+ this.throttledRecomputeAndSendLiveDataEvent();
156
+ }
157
+ });
158
+ this.removeRowSelectionChangedListener = this.api.eventApi.on('RowSelectionChanged', () => {
159
+ const currentLiveIOpenFinReport = this.getOpenFinApi().getCurrentLiveOpenFinReport();
160
+ if (currentLiveIOpenFinReport &&
161
+ currentLiveIOpenFinReport.ReportName === GeneralConstants_1.SELECTED_ROWS_REPORT) {
156
162
  this.throttledRecomputeAndSendLiveDataEvent();
157
163
  }
158
164
  });
@@ -375,8 +381,11 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
375
381
  if (this.removeGridFilteredListener) {
376
382
  this.removeGridFilteredListener();
377
383
  }
378
- if (this.removeSelectionChangedListener) {
379
- this.removeSelectionChangedListener();
384
+ if (this.removeCellSelectionChangedListener) {
385
+ this.removeCellSelectionChangedListener();
386
+ }
387
+ if (this.removeRowSelectionChangedListener) {
388
+ this.removeRowSelectionChangedListener();
380
389
  }
381
390
  if (this.removeSheetChangedListener) {
382
391
  this.removeSheetChangedListener();