@syncfusion/ej2-navigations 20.3.57 → 20.3.58
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/CHANGELOG.md +12 -1
- 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 +22 -3
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +22 -3
- 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 -3
- package/src/treeview/treeview.js +14 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.
|
|
3
|
+
* version : 20.3.58
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@20.3.57",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rj+kdc64a6LVN5O58sjyKfcH37SLQnYxITd9VRoc2N+qhkn0XxRCDw+qAgfF8NQU25oHZlW2fy0jgW9tky/YQA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"/@syncfusion/ej2-spreadsheet",
|
|
39
39
|
"/@syncfusion/ej2-vue-navigations"
|
|
40
40
|
],
|
|
41
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.3.
|
|
42
|
-
"_shasum": "
|
|
41
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.3.57.tgz",
|
|
42
|
+
"_shasum": "288f223b59d58007b99707177429330fb6ce944e",
|
|
43
43
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
44
44
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
45
45
|
"author": {
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"bundleDependencies": false,
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@syncfusion/ej2-base": "~20.3.56",
|
|
54
|
-
"@syncfusion/ej2-buttons": "~20.3.
|
|
54
|
+
"@syncfusion/ej2-buttons": "~20.3.58",
|
|
55
55
|
"@syncfusion/ej2-data": "~20.3.56",
|
|
56
56
|
"@syncfusion/ej2-inputs": "~20.3.57",
|
|
57
57
|
"@syncfusion/ej2-lists": "~20.3.56",
|
|
58
|
-
"@syncfusion/ej2-popups": "~20.3.
|
|
58
|
+
"@syncfusion/ej2-popups": "~20.3.58"
|
|
59
59
|
},
|
|
60
60
|
"deprecated": false,
|
|
61
61
|
"description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
|
|
@@ -160,6 +160,6 @@
|
|
|
160
160
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
161
161
|
},
|
|
162
162
|
"typings": "index.d.ts",
|
|
163
|
-
"version": "20.3.
|
|
163
|
+
"version": "20.3.58",
|
|
164
164
|
"sideEffects": false
|
|
165
165
|
}
|
package/src/carousel/carousel.js
CHANGED
|
@@ -352,8 +352,10 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
352
352
|
var navigators = this.createElement('div', { className: CLS_NAVIGATORS });
|
|
353
353
|
var itemsContainer = this.element.querySelector("." + CLS_SLIDE_CONTAINER);
|
|
354
354
|
itemsContainer.insertAdjacentElement('afterend', navigators);
|
|
355
|
-
this.
|
|
356
|
-
|
|
355
|
+
if (!isNullOrUndefined(this.slideItems) && this.slideItems.length > 1) {
|
|
356
|
+
this.renderNavigatorButton('Previous');
|
|
357
|
+
this.renderNavigatorButton('Next');
|
|
358
|
+
}
|
|
357
359
|
this.renderTemplates();
|
|
358
360
|
};
|
|
359
361
|
Carousel.prototype.renderNavigatorButton = function (direction) {
|
|
@@ -389,7 +391,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
389
391
|
EventHandler.add(buttonContainer, 'click', this.navigatorClickHandler, this);
|
|
390
392
|
};
|
|
391
393
|
Carousel.prototype.renderPlayButton = function () {
|
|
392
|
-
if (this.buttonsVisibility === 'Hidden' || !this.showPlayButton) {
|
|
394
|
+
if (isNullOrUndefined(this.slideItems) || this.buttonsVisibility === 'Hidden' || !this.showPlayButton || this.slideItems.length <= 1) {
|
|
393
395
|
return;
|
|
394
396
|
}
|
|
395
397
|
var playPauseWrap = this.createElement('div', {
|
|
@@ -490,6 +492,9 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
490
492
|
}
|
|
491
493
|
};
|
|
492
494
|
Carousel.prototype.autoSlide = function () {
|
|
495
|
+
if (isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
493
498
|
this.resetSlideInterval();
|
|
494
499
|
this.applySlideInterval();
|
|
495
500
|
};
|
package/src/treeview/treeview.js
CHANGED
|
@@ -3671,6 +3671,13 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3671
3671
|
var li = ListBase.createListItemFromJson(this.createElement, sNodes, this.listBaseOption, level);
|
|
3672
3672
|
var id = this.getId(dropLi);
|
|
3673
3673
|
var refNode;
|
|
3674
|
+
var dropIcon1;
|
|
3675
|
+
if (!isNullOrUndefined(dropLi)) {
|
|
3676
|
+
dropIcon1 = select('div.' + ICON, dropLi);
|
|
3677
|
+
}
|
|
3678
|
+
if (this.dataType === 1 && dropIcon1 && dropIcon1.classList.contains(EXPANDABLE)) {
|
|
3679
|
+
this.preventExpand = true;
|
|
3680
|
+
}
|
|
3674
3681
|
if (this.dataType !== 1) {
|
|
3675
3682
|
this.addChildData(this.treeData, this.fields, id, nodes, index);
|
|
3676
3683
|
this.isFirstRender = false;
|
|
@@ -3688,6 +3695,13 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3688
3695
|
for (var i = 0; i < li.length; i++) {
|
|
3689
3696
|
dropUl.insertBefore(li[i], refNode);
|
|
3690
3697
|
}
|
|
3698
|
+
if (this.dataType === 1 && !isNullOrUndefined(dropLi)) {
|
|
3699
|
+
this.preventExpand = false;
|
|
3700
|
+
var dropIcon = select('div.' + ICON, dropLi);
|
|
3701
|
+
if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
|
|
3702
|
+
this.expandAction(dropLi, dropIcon, null);
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3691
3705
|
}
|
|
3692
3706
|
if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
|
|
3693
3707
|
var cNodes = dropUl.childNodes;
|