@syncfusion/ej2-navigations 29.1.37 → 29.1.40

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.40
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.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-6HoXngkCgCEnxSZUNuTX9TFIXNlCUY9FrwkLoYLhQVEmgkrME/1wIJn/9TPcC8b+6fcIcBt+NcV7sIoL6H5NUQ==",
5
+ "_integrity": "sha512-/OPUPqbnwIXo36+W0w/F8pH6cNjrJsgEEaZpZP7uklGeqIpyFLrPo4f4uDFKdbgrX+K3Bs01loThHmaB1447ig==",
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.38.tgz",
44
+ "_shasum": "f3d612527b73d8271adacdf1811bfdec8e76b0f5",
45
45
  "_spec": "@syncfusion/ej2-navigations@*",
46
46
  "_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
47
47
  "author": {
@@ -55,8 +55,8 @@
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",
59
- "@syncfusion/ej2-lists": "~29.1.34",
58
+ "@syncfusion/ej2-inputs": "~29.1.39",
59
+ "@syncfusion/ej2-lists": "~29.1.40",
60
60
  "@syncfusion/ej2-popups": "~29.1.37"
61
61
  },
62
62
  "deprecated": false,
@@ -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.40",
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)) {
@@ -1303,6 +1303,8 @@ var MenuBase = /** @class */ (function (_super) {
1303
1303
  }
1304
1304
  var cmenuWidth = Math.ceil(this.getMenuWidth(ul, ul.offsetWidth, this.enableRtl));
1305
1305
  var cmenu = addScrolling(this.createElement, wrapper, ul, 'vscroll', this.enableRtl, wrapper.offsetHeight);
1306
+ var newOffset = this.callFit(cmenu, false, true, top, left);
1307
+ top = newOffset.top;
1306
1308
  Object.assign(cmenu.style, {
1307
1309
  top: top + "px",
1308
1310
  left: left + "px",
@@ -2060,6 +2062,7 @@ var MenuBase = /** @class */ (function (_super) {
2060
2062
  var pElement;
2061
2063
  var animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
2062
2064
  ? closest(ul, '.e-menu-vscroll') : ul;
2065
+ Animation.stop(animateElement);
2063
2066
  if (this.animationSettings.effect === 'None' || !isMenuOpen) {
2064
2067
  if (this.hamburgerMode && ul) {
2065
2068
  ul.style.top = '0px';
@@ -2068,6 +2071,7 @@ var MenuBase = /** @class */ (function (_super) {
2068
2071
  this.end(ul, isMenuOpen);
2069
2072
  }
2070
2073
  else {
2074
+ animateElement.style.maxHeight = '';
2071
2075
  this.animation.animate(animateElement, {
2072
2076
  name: this.animationSettings.effect,
2073
2077
  duration: this.animationSettings.duration,
@@ -2086,7 +2090,7 @@ var MenuBase = /** @class */ (function (_super) {
2086
2090
  }
2087
2091
  else {
2088
2092
  options.element.style.display = 'block';
2089
- options.element.style.maxHeight = _this.isMenu ? options.element.getBoundingClientRect().height + 'px' : options.element.scrollHeight + 'px';
2093
+ options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';
2090
2094
  }
2091
2095
  },
2092
2096
  progress: function (options) {
package/src/tab/tab.js CHANGED
@@ -1956,14 +1956,14 @@ var Tab = /** @class */ (function (_super) {
1956
1956
  */
1957
1957
  Tab.prototype.removeTab = function (index) {
1958
1958
  var _this = this;
1959
- var trg = selectAll('.' + CLS_TB_ITEM, this.element)[index];
1959
+ var trg = selectAll('.' + CLS_TB_ITEM, this.hdrEle)[index];
1960
1960
  if (isNOU(trg)) {
1961
1961
  return;
1962
1962
  }
1963
1963
  var removeArgs = { removedItem: trg, removedIndex: index, cancel: false };
1964
1964
  this.trigger('removing', removeArgs, function (tabRemovingArgs) {
1965
1965
  if (!tabRemovingArgs.cancel) {
1966
- var header = select('#' + CLS_ITEM + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.element));
1966
+ var header = select('#' + CLS_ITEM + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.hdrEle));
1967
1967
  if (!isNOU(header)) {
1968
1968
  _this.clearTabTemplate(header, 'headerTemplate', CLS_TB_ITEM);
1969
1969
  }
@@ -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
  };