@syncfusion/ej2-navigations 29.1.34 → 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) {
@@ -5297,6 +5299,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5297
5299
  * @returns {void}.
5298
5300
  */
5299
5301
  Toolbar.prototype.enableItems = function (items, isEnable) {
5302
+ var _this = this;
5300
5303
  var elements = items;
5301
5304
  var len = elements.length;
5302
5305
  var ele;
@@ -5308,12 +5311,15 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5308
5311
  ele.classList.remove(CLS_DISABLE$2);
5309
5312
  if (!isNullOrUndefined(ele.firstElementChild)) {
5310
5313
  ele.firstElementChild.setAttribute('aria-disabled', 'false');
5314
+ _this.updateTabIndex('0');
5311
5315
  }
5312
5316
  }
5313
5317
  else {
5314
5318
  ele.classList.add(CLS_DISABLE$2);
5315
5319
  if (!isNullOrUndefined(ele.firstElementChild)) {
5316
5320
  ele.firstElementChild.setAttribute('aria-disabled', 'true');
5321
+ ele.firstElementChild.setAttribute('tabindex', '-1');
5322
+ _this.updateTabIndex('0');
5317
5323
  }
5318
5324
  }
5319
5325
  };
@@ -12626,7 +12632,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12626
12632
  return undefined;
12627
12633
  };
12628
12634
  TreeView.prototype.getChildGroup = function (data, parentId, isRoot) {
12629
- var childNodes;
12635
+ var childNodes = [];
12630
12636
  if (isNullOrUndefined(data)) {
12631
12637
  return childNodes;
12632
12638
  }
@@ -12640,9 +12646,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12640
12646
  else if (isRoot) {
12641
12647
  return data[parseInt(i.toString(), 10)];
12642
12648
  }
12643
- else {
12644
- return [];
12645
- }
12646
12649
  }
12647
12650
  return childNodes;
12648
12651
  };
@@ -14565,17 +14568,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14565
14568
  TreeView.prototype.removeChildNodes = function (parentId) {
14566
14569
  var cNodes = this.getChildGroup(this.groupedData, parentId, false);
14567
14570
  var childData = [];
14568
- if (cNodes) {
14569
- for (var i = 0, len = cNodes.length; i < len; i++) {
14570
- var dm = new DataManager(this.treeData);
14571
- var id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();
14572
- var data = {};
14573
- var currId = this.isNumberTypeId ? parseFloat(id) : id;
14574
- data[this.fields.id] = currId;
14575
- var nodeData = dm.remove(this.fields.id, data);
14576
- childData.push(nodeData[0]);
14577
- this.removeChildNodes(id);
14578
- }
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);
14579
14580
  }
14580
14581
  return childData;
14581
14582
  };
@@ -18710,6 +18711,14 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
18710
18711
  if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
18711
18712
  return;
18712
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
+ }
18713
18722
  var direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
18714
18723
  var slideIndex = this.getSlideIndex(direction);
18715
18724
  if (!this.isSuspendSlideTransition(slideIndex, direction)) {