@syncfusion/ej2-navigations 29.1.37 → 29.1.38

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.
@@ -3117,6 +3117,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3117
3117
  var pElement;
3118
3118
  var animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
3119
3119
  ? closest(ul, '.e-menu-vscroll') : ul;
3120
+ Animation.stop(animateElement);
3120
3121
  if (this.animationSettings.effect === 'None' || !isMenuOpen) {
3121
3122
  if (this.hamburgerMode && ul) {
3122
3123
  ul.style.top = '0px';
@@ -3125,6 +3126,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3125
3126
  this.end(ul, isMenuOpen);
3126
3127
  }
3127
3128
  else {
3129
+ animateElement.style.maxHeight = '';
3128
3130
  this.animation.animate(animateElement, {
3129
3131
  name: this.animationSettings.effect,
3130
3132
  duration: this.animationSettings.duration,
@@ -3143,7 +3145,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3143
3145
  }
3144
3146
  else {
3145
3147
  options.element.style.display = 'block';
3146
- options.element.style.maxHeight = _this.isMenu ? options.element.getBoundingClientRect().height + 'px' : options.element.scrollHeight + 'px';
3148
+ options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';
3147
3149
  }
3148
3150
  },
3149
3151
  progress: function (options) {
@@ -12630,7 +12632,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12630
12632
  return undefined;
12631
12633
  };
12632
12634
  TreeView.prototype.getChildGroup = function (data, parentId, isRoot) {
12633
- var childNodes;
12635
+ var childNodes = [];
12634
12636
  if (isNullOrUndefined(data)) {
12635
12637
  return childNodes;
12636
12638
  }
@@ -12644,9 +12646,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12644
12646
  else if (isRoot) {
12645
12647
  return data[parseInt(i.toString(), 10)];
12646
12648
  }
12647
- else {
12648
- return [];
12649
- }
12650
12649
  }
12651
12650
  return childNodes;
12652
12651
  };
@@ -14569,17 +14568,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14569
14568
  TreeView.prototype.removeChildNodes = function (parentId) {
14570
14569
  var cNodes = this.getChildGroup(this.groupedData, parentId, false);
14571
14570
  var childData = [];
14572
- if (cNodes) {
14573
- for (var i = 0, len = cNodes.length; i < len; i++) {
14574
- var dm = new DataManager(this.treeData);
14575
- var id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();
14576
- var data = {};
14577
- var currId = this.isNumberTypeId ? parseFloat(id) : id;
14578
- data[this.fields.id] = currId;
14579
- var nodeData = dm.remove(this.fields.id, data);
14580
- childData.push(nodeData[0]);
14581
- this.removeChildNodes(id);
14582
- }
14571
+ for (var i = 0, len = cNodes.length; i < len; i++) {
14572
+ var dm = new DataManager(this.treeData);
14573
+ var id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();
14574
+ var data = {};
14575
+ var currId = this.isNumberTypeId ? parseFloat(id) : id;
14576
+ data[this.fields.id] = currId;
14577
+ var nodeData = dm.remove(this.fields.id, data);
14578
+ childData.push(nodeData[0]);
14579
+ this.removeChildNodes(id);
14583
14580
  }
14584
14581
  return childData;
14585
14582
  };
@@ -18714,6 +18711,14 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
18714
18711
  if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
18715
18712
  return;
18716
18713
  }
18714
+ if (this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse)) {
18715
+ return;
18716
+ }
18717
+ var eventType = e.startEvents ? e.startEvents.toString() : null;
18718
+ if (eventType && ((this.swipeMode === CarouselSwipeMode.Mouse && eventType.includes('Touch')) ||
18719
+ (this.swipeMode === CarouselSwipeMode.Touch && eventType.includes('Mouse')))) {
18720
+ return;
18721
+ }
18717
18722
  var direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
18718
18723
  var slideIndex = this.getSlideIndex(direction);
18719
18724
  if (!this.isSuspendSlideTransition(slideIndex, direction)) {