@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.
- package/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +21 -16
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +21 -16
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/carousel/carousel.js +8 -0
- package/src/common/menu-base.js +3 -1
- package/src/treeview/treeview.js +10 -15
|
@@ -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 =
|
|
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
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
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)) {
|