@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.
- 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 +25 -18
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +25 -18
- 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 +7 -7
- package/src/carousel/carousel.js +8 -0
- package/src/common/menu-base.js +5 -1
- package/src/tab/tab.js +2 -2
- package/src/treeview/treeview.js +10 -15
|
@@ -2360,6 +2360,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
var cmenuWidth = Math.ceil(this.getMenuWidth(ul, ul.offsetWidth, this.enableRtl));
|
|
2362
2362
|
var cmenu = addScrolling(this.createElement, wrapper, ul, 'vscroll', this.enableRtl, wrapper.offsetHeight);
|
|
2363
|
+
var newOffset = this.callFit(cmenu, false, true, top, left);
|
|
2364
|
+
top = newOffset.top;
|
|
2363
2365
|
Object.assign(cmenu.style, {
|
|
2364
2366
|
top: top + "px",
|
|
2365
2367
|
left: left + "px",
|
|
@@ -3117,6 +3119,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3117
3119
|
var pElement;
|
|
3118
3120
|
var animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
|
|
3119
3121
|
? closest(ul, '.e-menu-vscroll') : ul;
|
|
3122
|
+
Animation.stop(animateElement);
|
|
3120
3123
|
if (this.animationSettings.effect === 'None' || !isMenuOpen) {
|
|
3121
3124
|
if (this.hamburgerMode && ul) {
|
|
3122
3125
|
ul.style.top = '0px';
|
|
@@ -3125,6 +3128,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3125
3128
|
this.end(ul, isMenuOpen);
|
|
3126
3129
|
}
|
|
3127
3130
|
else {
|
|
3131
|
+
animateElement.style.maxHeight = '';
|
|
3128
3132
|
this.animation.animate(animateElement, {
|
|
3129
3133
|
name: this.animationSettings.effect,
|
|
3130
3134
|
duration: this.animationSettings.duration,
|
|
@@ -3143,7 +3147,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
3143
3147
|
}
|
|
3144
3148
|
else {
|
|
3145
3149
|
options.element.style.display = 'block';
|
|
3146
|
-
options.element.style.maxHeight =
|
|
3150
|
+
options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';
|
|
3147
3151
|
}
|
|
3148
3152
|
},
|
|
3149
3153
|
progress: function (options) {
|
|
@@ -9808,14 +9812,14 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9808
9812
|
*/
|
|
9809
9813
|
Tab.prototype.removeTab = function (index) {
|
|
9810
9814
|
var _this = this;
|
|
9811
|
-
var trg = selectAll('.' + CLS_TB_ITEM, this.
|
|
9815
|
+
var trg = selectAll('.' + CLS_TB_ITEM, this.hdrEle)[index];
|
|
9812
9816
|
if (isNullOrUndefined(trg)) {
|
|
9813
9817
|
return;
|
|
9814
9818
|
}
|
|
9815
9819
|
var removeArgs = { removedItem: trg, removedIndex: index, cancel: false };
|
|
9816
9820
|
this.trigger('removing', removeArgs, function (tabRemovingArgs) {
|
|
9817
9821
|
if (!tabRemovingArgs.cancel) {
|
|
9818
|
-
var header = select('#' + CLS_ITEM$2 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.
|
|
9822
|
+
var header = select('#' + CLS_ITEM$2 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.hdrEle));
|
|
9819
9823
|
if (!isNullOrUndefined(header)) {
|
|
9820
9824
|
_this.clearTabTemplate(header, 'headerTemplate', CLS_TB_ITEM);
|
|
9821
9825
|
}
|
|
@@ -12630,7 +12634,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12630
12634
|
return undefined;
|
|
12631
12635
|
};
|
|
12632
12636
|
TreeView.prototype.getChildGroup = function (data, parentId, isRoot) {
|
|
12633
|
-
var childNodes;
|
|
12637
|
+
var childNodes = [];
|
|
12634
12638
|
if (isNullOrUndefined(data)) {
|
|
12635
12639
|
return childNodes;
|
|
12636
12640
|
}
|
|
@@ -12644,9 +12648,6 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12644
12648
|
else if (isRoot) {
|
|
12645
12649
|
return data[parseInt(i.toString(), 10)];
|
|
12646
12650
|
}
|
|
12647
|
-
else {
|
|
12648
|
-
return [];
|
|
12649
|
-
}
|
|
12650
12651
|
}
|
|
12651
12652
|
return childNodes;
|
|
12652
12653
|
};
|
|
@@ -14569,17 +14570,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
14569
14570
|
TreeView.prototype.removeChildNodes = function (parentId) {
|
|
14570
14571
|
var cNodes = this.getChildGroup(this.groupedData, parentId, false);
|
|
14571
14572
|
var childData = [];
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
this.removeChildNodes(id);
|
|
14582
|
-
}
|
|
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);
|
|
14583
14582
|
}
|
|
14584
14583
|
return childData;
|
|
14585
14584
|
};
|
|
@@ -18714,6 +18713,14 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
18714
18713
|
if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
|
|
18715
18714
|
return;
|
|
18716
18715
|
}
|
|
18716
|
+
if (this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse)) {
|
|
18717
|
+
return;
|
|
18718
|
+
}
|
|
18719
|
+
var eventType = e.startEvents ? e.startEvents.toString() : null;
|
|
18720
|
+
if (eventType && ((this.swipeMode === CarouselSwipeMode.Mouse && eventType.includes('Touch')) ||
|
|
18721
|
+
(this.swipeMode === CarouselSwipeMode.Touch && eventType.includes('Mouse')))) {
|
|
18722
|
+
return;
|
|
18723
|
+
}
|
|
18717
18724
|
var direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
|
|
18718
18725
|
var slideIndex = this.getSlideIndex(direction);
|
|
18719
18726
|
if (!this.isSuspendSlideTransition(slideIndex, direction)) {
|