@revolist/revogrid 4.12.6 → 4.12.7

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.
@@ -702,7 +702,20 @@ class ViewportService {
702
702
  }
703
703
  }
704
704
  getSelectedRange() {
705
- return this.config.selectionStoreConnector.selectedRange;
705
+ const focused = this.config.selectionStoreConnector.focusedStore;
706
+ if (!focused) {
707
+ return null;
708
+ }
709
+ // get column data
710
+ const colType = this.config.selectionStoreConnector.storesXToType[focused.position.x];
711
+ // get row data
712
+ const rowType = this.config.selectionStoreConnector.storesYToType[focused.position.y];
713
+ const range = focused.entity.store.get('range');
714
+ if (!range) {
715
+ return null;
716
+ }
717
+ return Object.assign(Object.assign({}, range), { colType,
718
+ rowType });
706
719
  }
707
720
  setEdit(rowIndex, colIndex, colType, rowType) {
708
721
  var _a;