@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 29.1.37
3
+ * version : 29.1.38
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-navigations@*",
3
- "_id": "@syncfusion/ej2-navigations@29.1.33",
3
+ "_id": "@syncfusion/ej2-navigations@29.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-6HoXngkCgCEnxSZUNuTX9TFIXNlCUY9FrwkLoYLhQVEmgkrME/1wIJn/9TPcC8b+6fcIcBt+NcV7sIoL6H5NUQ==",
5
+ "_integrity": "sha512-HxYgu7qoNaDNQV6R/D5ApVuT0IQiM08jyZBctuHEZCSJkvnOEpctLNZmpjfP4/gGzOpszK12iiDkp6RbeIC4fA==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -40,8 +40,8 @@
40
40
  "/@syncfusion/ej2-spreadsheet",
41
41
  "/@syncfusion/ej2-vue-navigations"
42
42
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-29.1.33.tgz",
44
- "_shasum": "1b96a986b2cf7ff1902ad333b2e6f1f351e105ff",
43
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-29.1.37.tgz",
44
+ "_shasum": "4154853be60d95a8f0a5ff83e1b6b46d7144abb8",
45
45
  "_spec": "@syncfusion/ej2-navigations@*",
46
46
  "_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
47
47
  "author": {
@@ -55,7 +55,7 @@
55
55
  "@syncfusion/ej2-base": "~29.1.36",
56
56
  "@syncfusion/ej2-buttons": "~29.1.34",
57
57
  "@syncfusion/ej2-data": "~29.1.33",
58
- "@syncfusion/ej2-inputs": "~29.1.34",
58
+ "@syncfusion/ej2-inputs": "~29.1.38",
59
59
  "@syncfusion/ej2-lists": "~29.1.34",
60
60
  "@syncfusion/ej2-popups": "~29.1.37"
61
61
  },
@@ -162,6 +162,6 @@
162
162
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
163
163
  },
164
164
  "typings": "index.d.ts",
165
- "version": "29.1.37",
165
+ "version": "29.1.38",
166
166
  "sideEffects": false
167
167
  }
@@ -949,6 +949,14 @@ var Carousel = /** @class */ (function (_super) {
949
949
  if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
950
950
  return;
951
951
  }
952
+ if (this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse)) {
953
+ return;
954
+ }
955
+ var eventType = e.startEvents ? e.startEvents.toString() : null;
956
+ if (eventType && ((this.swipeMode === CarouselSwipeMode.Mouse && eventType.includes('Touch')) ||
957
+ (this.swipeMode === CarouselSwipeMode.Touch && eventType.includes('Mouse')))) {
958
+ return;
959
+ }
952
960
  var direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
953
961
  var slideIndex = this.getSlideIndex(direction);
954
962
  if (!this.isSuspendSlideTransition(slideIndex, direction)) {
@@ -2060,6 +2060,7 @@ var MenuBase = /** @class */ (function (_super) {
2060
2060
  var pElement;
2061
2061
  var animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
2062
2062
  ? closest(ul, '.e-menu-vscroll') : ul;
2063
+ Animation.stop(animateElement);
2063
2064
  if (this.animationSettings.effect === 'None' || !isMenuOpen) {
2064
2065
  if (this.hamburgerMode && ul) {
2065
2066
  ul.style.top = '0px';
@@ -2068,6 +2069,7 @@ var MenuBase = /** @class */ (function (_super) {
2068
2069
  this.end(ul, isMenuOpen);
2069
2070
  }
2070
2071
  else {
2072
+ animateElement.style.maxHeight = '';
2071
2073
  this.animation.animate(animateElement, {
2072
2074
  name: this.animationSettings.effect,
2073
2075
  duration: this.animationSettings.duration,
@@ -2086,7 +2088,7 @@ var MenuBase = /** @class */ (function (_super) {
2086
2088
  }
2087
2089
  else {
2088
2090
  options.element.style.display = 'block';
2089
- options.element.style.maxHeight = _this.isMenu ? options.element.getBoundingClientRect().height + 'px' : options.element.scrollHeight + 'px';
2091
+ options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';
2090
2092
  }
2091
2093
  },
2092
2094
  progress: function (options) {
@@ -2214,7 +2214,7 @@ var TreeView = /** @class */ (function (_super) {
2214
2214
  return undefined;
2215
2215
  };
2216
2216
  TreeView.prototype.getChildGroup = function (data, parentId, isRoot) {
2217
- var childNodes;
2217
+ var childNodes = [];
2218
2218
  if (isNOU(data)) {
2219
2219
  return childNodes;
2220
2220
  }
@@ -2228,9 +2228,6 @@ var TreeView = /** @class */ (function (_super) {
2228
2228
  else if (isRoot) {
2229
2229
  return data[parseInt(i.toString(), 10)];
2230
2230
  }
2231
- else {
2232
- return [];
2233
- }
2234
2231
  }
2235
2232
  return childNodes;
2236
2233
  };
@@ -4156,17 +4153,15 @@ var TreeView = /** @class */ (function (_super) {
4156
4153
  TreeView.prototype.removeChildNodes = function (parentId) {
4157
4154
  var cNodes = this.getChildGroup(this.groupedData, parentId, false);
4158
4155
  var childData = [];
4159
- if (cNodes) {
4160
- for (var i = 0, len = cNodes.length; i < len; i++) {
4161
- var dm = new DataManager(this.treeData);
4162
- var id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();
4163
- var data = {};
4164
- var currId = this.isNumberTypeId ? parseFloat(id) : id;
4165
- data[this.fields.id] = currId;
4166
- var nodeData = dm.remove(this.fields.id, data);
4167
- childData.push(nodeData[0]);
4168
- this.removeChildNodes(id);
4169
- }
4156
+ for (var i = 0, len = cNodes.length; i < len; i++) {
4157
+ var dm = new DataManager(this.treeData);
4158
+ var id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();
4159
+ var data = {};
4160
+ var currId = this.isNumberTypeId ? parseFloat(id) : id;
4161
+ data[this.fields.id] = currId;
4162
+ var nodeData = dm.remove(this.fields.id, data);
4163
+ childData.push(nodeData[0]);
4164
+ this.removeChildNodes(id);
4170
4165
  }
4171
4166
  return childData;
4172
4167
  };