igniteui-angular 12.3.34 → 12.3.35

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.
@@ -8133,9 +8133,13 @@
8133
8133
  */
8134
8134
  this.pointerEventInGridBody = false;
8135
8135
  this._ranges = new Set();
8136
- this.pointerOriginHandler = function () {
8136
+ this.pointerOriginHandler = function (event) {
8137
8137
  _this.pointerEventInGridBody = false;
8138
8138
  document.body.removeEventListener('pointerup', _this.pointerOriginHandler);
8139
+ var targetTagName = event.target.tagName.toLowerCase();
8140
+ if (targetTagName !== 'igx-grid-cell' && targetTagName !== 'igx-tree-grid-cell') {
8141
+ _this.pointerUp(_this._lastSelectedNode, _this.grid.rangeSelected, true);
8142
+ }
8139
8143
  };
8140
8144
  this.initPointerState();
8141
8145
  this.initKeyboardState();
@@ -8261,6 +8265,7 @@
8261
8265
  * and the start node of the `state`.
8262
8266
  */
8263
8267
  IgxGridSelectionService.prototype.generateRange = function (node, state) {
8268
+ this._lastSelectedNode = node;
8264
8269
  if (!state) {
8265
8270
  return {
8266
8271
  rowStart: node.row,
@@ -8382,9 +8387,9 @@
8382
8387
  }
8383
8388
  return true;
8384
8389
  };
8385
- IgxGridSelectionService.prototype.pointerUp = function (node, emitter) {
8390
+ IgxGridSelectionService.prototype.pointerUp = function (node, emitter, firedOutsideGrid) {
8386
8391
  var _this = this;
8387
- if (this.dragMode) {
8392
+ if (this.dragMode || firedOutsideGrid) {
8388
8393
  this.restoreTextSelection();
8389
8394
  this.addRangeMeta(node, this.pointerState);
8390
8395
  this.mergeMap(this.selection, this.temp);
@@ -25937,6 +25942,11 @@
25937
25942
  * @hidden
25938
25943
  */
25939
25944
  this.inputId = this.id + "-input";
25945
+ /**
25946
+ * @hidden
25947
+ * @internal
25948
+ */
25949
+ this.destroy$ = new rxjs.Subject();
25940
25950
  /**
25941
25951
  * @hidden
25942
25952
  * @internal
@@ -26024,6 +26034,14 @@
26024
26034
  IgxRadioComponent.prototype._clicked = function () {
26025
26035
  this.select();
26026
26036
  };
26037
+ /**
26038
+ * @hidden
26039
+ * @internal
26040
+ */
26041
+ IgxRadioComponent.prototype.ngOnDestroy = function () {
26042
+ this.destroy$.next(true);
26043
+ this.destroy$.complete();
26044
+ };
26027
26045
  /**
26028
26046
  * Selects the current radio button.
26029
26047
  * ```typescript
@@ -26264,6 +26282,11 @@
26264
26282
  * @internal
26265
26283
  */
26266
26284
  this.destroy$ = new rxjs.Subject();
26285
+ /**
26286
+ * @hidden
26287
+ * @internal
26288
+ */
26289
+ this.queryChange$ = new rxjs.Subject();
26267
26290
  }
26268
26291
  Object.defineProperty(IgxRadioGroupDirective.prototype, "value", {
26269
26292
  /**
@@ -26438,8 +26461,9 @@
26438
26461
  // The initial value can possibly be set by NgModel and it is possible that
26439
26462
  // the OnInit of the NgModel occurs after the OnInit of this class.
26440
26463
  this._isInitialized = true;
26441
- setTimeout(function () {
26442
- _this._initRadioButtons();
26464
+ this.radioButtons.changes.pipe(operators.startWith(0), operators.takeUntil(this.destroy$)).subscribe(function () {
26465
+ _this.queryChange$.next();
26466
+ setTimeout(function () { return _this._initRadioButtons(); });
26443
26467
  });
26444
26468
  };
26445
26469
  /**
@@ -26512,7 +26536,7 @@
26512
26536
  button.checked = true;
26513
26537
  _this._selected = button;
26514
26538
  }
26515
- button.change.pipe(operators.takeUntil(_this.destroy$)).subscribe(function (ev) { return _this._selectedRadioButtonChanged(ev); });
26539
+ button.change.pipe(operators.takeUntil(button.destroy$), operators.takeUntil(_this.destroy$), operators.takeUntil(_this.queryChange$)).subscribe(function (ev) { return _this._selectedRadioButtonChanged(ev); });
26516
26540
  });
26517
26541
  }
26518
26542
  };
@@ -48755,8 +48779,13 @@
48755
48779
  this.grid.clearCellSelection();
48756
48780
  this.grid.navigateTo(this.activeNode.row, this.activeNode.column, function (obj) {
48757
48781
  var _a;
48758
- (_a = obj.target) === null || _a === void 0 ? void 0 : _a.activate(event);
48759
- _this.grid.cdr.detectChanges();
48782
+ if (_this.activeNode.row === obj.target.row.index) {
48783
+ (_a = obj.target) === null || _a === void 0 ? void 0 : _a.activate(event);
48784
+ _this.grid.cdr.detectChanges();
48785
+ }
48786
+ else {
48787
+ _this.grid.navigateTo(_this.activeNode.row, _this.activeNode.column);
48788
+ }
48760
48789
  });
48761
48790
  }
48762
48791
  else {