@syncfusion/ej2-navigations 27.1.50 → 27.1.52

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.
@@ -3307,6 +3307,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3307
3307
  idx = navIdx.pop();
3308
3308
  iitems = this.getItems(navIdx);
3309
3309
  menuitem = new MenuItem(iitems[0], 'items', items[i], true);
3310
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3311
+ menuitem.parentObj = iitems[0].parentObj;
3310
3312
  iitems.splice(isAfter ? idx + 1 : idx, 0, menuitem);
3311
3313
  var uls = this.isMenu ? [this.getWrapper()].concat(this.getPopups()) : [].slice.call(this.getWrapper().children);
3312
3314
  if (!isNullOrUndefined(idx) && navIdx.length < uls.length) {
@@ -12914,7 +12916,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12914
12916
  var nextNode = isTowards ? this.getNextNode(li) : this.getPrevNode(li);
12915
12917
  this.setFocus(li, nextNode);
12916
12918
  this.navigateToFocus(!isTowards);
12917
- if (nextNode.classList.contains('e-disable') || nextNode.classList.contains('e-prevent')) {
12919
+ if (nextNode.classList.contains('e-disable')) {
12918
12920
  var lastChild = nextNode.lastChild;
12919
12921
  if (nextNode.previousSibling == null && nextNode.classList.contains('e-level-1')) {
12920
12922
  this.focusNextNode(nextNode, true);
@@ -12975,7 +12977,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12975
12977
  TreeView.prototype.setFocus = function (preNode, nextNode) {
12976
12978
  removeClass([preNode], FOCUS);
12977
12979
  preNode.setAttribute('tabindex', '-1');
12978
- if (!nextNode.classList.contains('e-disable') && !nextNode.classList.contains(PREVENTSELECT)) {
12980
+ if (!nextNode.classList.contains('e-disable')) {
12979
12981
  addClass([nextNode], FOCUS);
12980
12982
  nextNode.setAttribute('tabindex', '0');
12981
12983
  nextNode.focus();
@@ -12994,7 +12996,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12994
12996
  TreeView.prototype.focusIn = function () {
12995
12997
  if (!this.mouseDownStatus) {
12996
12998
  var focusedElement = this.getFocusedNode();
12997
- if (focusedElement.classList.contains('e-disable') || focusedElement.classList.contains('e-prevent')) {
12999
+ if (focusedElement.classList.contains('e-disable')) {
12998
13000
  focusedElement.setAttribute('tabindex', '-1');
12999
13001
  this.navigateNode(true);
13000
13002
  }
@@ -13457,16 +13459,18 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13457
13459
  this.dragStartAction = false;
13458
13460
  };
13459
13461
  TreeView.prototype.getOffsetX = function (event, target) {
13460
- if (event instanceof TouchEvent && event.changedTouches.length > 0) {
13461
- return event.changedTouches[0].clientX - target.getBoundingClientRect().left;
13462
+ var touchList = event.changedTouches;
13463
+ if (touchList && touchList.length > 0) {
13464
+ return touchList[0].clientX - target.getBoundingClientRect().left;
13462
13465
  }
13463
13466
  else {
13464
13467
  return event.offsetX;
13465
13468
  }
13466
13469
  };
13467
13470
  TreeView.prototype.getOffsetY = function (event, target) {
13468
- if (event instanceof TouchEvent && event.changedTouches.length > 0) {
13469
- return event.changedTouches[0].clientY - target.getBoundingClientRect().top;
13471
+ var touchList = event.changedTouches;
13472
+ if (touchList && touchList.length > 0) {
13473
+ return touchList[0].clientY - target.getBoundingClientRect().top;
13470
13474
  }
13471
13475
  else {
13472
13476
  return event.offsetY;
@@ -19273,7 +19277,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
19273
19277
  if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
19274
19278
  this.setProgressPosition(this.element, true);
19275
19279
  }
19276
- this.navigateToStep(this.activeStep, null, null, false);
19280
+ this.navigateToStep(this.activeStep, null, null, false, false);
19277
19281
  };
19278
19282
  Stepper.prototype.updateStepFocus = function () {
19279
19283
  if (this.isKeyNavFocus) {
@@ -19981,7 +19985,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
19981
19985
  if (this.stepperItemList && this.progressbar) {
19982
19986
  this.setProgressPosition(this.element);
19983
19987
  }
19984
- this.navigateToStep(this.activeStep, null, null, false);
19988
+ this.navigateToStep(this.activeStep, null, null, false, false);
19985
19989
  };
19986
19990
  Stepper.prototype.updateElementClassArray = function () {
19987
19991
  var classArray = [RTL$3, READONLY, 'e-steps-focus', LABELAFTER, LABELBEFORE, 'e-label-top',