@syncfusion/ej2-navigations 20.3.58 → 20.3.60
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 +8 -2
- 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 +18 -11
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +19 -11
- 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/treeview/treeview.js +19 -11
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.60
|
|
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.58",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-6zlMWTfYP/IRcf1CK3sICjk6Zg+39jGz4+vSd5hve/o67YQJgmN6VjyuTJfJZkaiygoz2rbykc8ezItSGi8F7g==",
|
|
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.58.tgz",
|
|
42
|
+
"_shasum": "7a99612f52201c19882ab87cd6c9764d2f3645e2",
|
|
43
43
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
44
44
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
45
45
|
"author": {
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@syncfusion/ej2-base": "~20.3.56",
|
|
54
54
|
"@syncfusion/ej2-buttons": "~20.3.58",
|
|
55
|
-
"@syncfusion/ej2-data": "~20.3.
|
|
55
|
+
"@syncfusion/ej2-data": "~20.3.60",
|
|
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.60"
|
|
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.60",
|
|
164
164
|
"sideEffects": false
|
|
165
165
|
}
|
package/src/treeview/treeview.js
CHANGED
|
@@ -1857,6 +1857,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1857
1857
|
return (typeof mapper.child === 'string' || isNOU(mapper.child)) ? mapper : mapper.child;
|
|
1858
1858
|
};
|
|
1859
1859
|
TreeView.prototype.getChildNodes = function (obj, parentId, isRoot) {
|
|
1860
|
+
var _this = this;
|
|
1860
1861
|
if (isRoot === void 0) { isRoot = false; }
|
|
1861
1862
|
var childNodes;
|
|
1862
1863
|
if (isNOU(obj)) {
|
|
@@ -1867,15 +1868,22 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1867
1868
|
}
|
|
1868
1869
|
else {
|
|
1869
1870
|
if (typeof this.fields.child === 'string') {
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1871
|
+
var index = obj.findIndex(function (data) { return data[_this.fields.id] && data[_this.fields.id].toString() === parentId; });
|
|
1872
|
+
if (index !== -1) {
|
|
1873
|
+
return getValue(this.fields.child, obj[index]);
|
|
1874
|
+
}
|
|
1875
|
+
if (index === -1) {
|
|
1876
|
+
for (var i = 0, objlen = obj.length; i < objlen; i++) {
|
|
1877
|
+
var tempArray = getValue(this.fields.child, obj[i]);
|
|
1878
|
+
var childIndex = !isNOU(tempArray) ? tempArray.findIndex(function (data) { return data[_this.fields.id] && data[_this.fields.id].toString() === parentId; }) : -1;
|
|
1879
|
+
if (childIndex !== -1) {
|
|
1880
|
+
return getValue(this.fields.child, tempArray[childIndex]);
|
|
1881
|
+
}
|
|
1882
|
+
else if (!isNOU(tempArray)) {
|
|
1883
|
+
childNodes = this.getChildNodes(tempArray, parentId);
|
|
1884
|
+
if (childNodes !== undefined) {
|
|
1885
|
+
break;
|
|
1886
|
+
}
|
|
1879
1887
|
}
|
|
1880
1888
|
}
|
|
1881
1889
|
}
|
|
@@ -3675,7 +3683,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3675
3683
|
if (!isNullOrUndefined(dropLi)) {
|
|
3676
3684
|
dropIcon1 = select('div.' + ICON, dropLi);
|
|
3677
3685
|
}
|
|
3678
|
-
if (this.dataType === 1 && dropIcon1 && dropIcon1.classList.contains(EXPANDABLE)) {
|
|
3686
|
+
if (this.dataType === 1 && dropIcon1 && dropIcon1.classList.contains(EXPANDABLE) && !isNOU(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
|
|
3679
3687
|
this.preventExpand = true;
|
|
3680
3688
|
}
|
|
3681
3689
|
if (this.dataType !== 1) {
|
|
@@ -3695,7 +3703,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3695
3703
|
for (var i = 0; i < li.length; i++) {
|
|
3696
3704
|
dropUl.insertBefore(li[i], refNode);
|
|
3697
3705
|
}
|
|
3698
|
-
if (this.dataType === 1 && !isNullOrUndefined(dropLi)) {
|
|
3706
|
+
if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNOU(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
|
|
3699
3707
|
this.preventExpand = false;
|
|
3700
3708
|
var dropIcon = select('div.' + ICON, dropLi);
|
|
3701
3709
|
if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
|