@syncfusion/ej2-navigations 28.2.11 → 28.2.12
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/treeview/treeview.js +25 -18
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.2.
|
|
3
|
+
* version : 28.2.12
|
|
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@28.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@28.2.11",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-GE2hi9B5q1Jo362qDbNfj/dPPF9pKstTRhQm3pfckhZpu1YLSDssIoGL/9SbQJzCqZgsyt8MFCg83l0MmgT/kw==",
|
|
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-28.2.
|
|
44
|
-
"_shasum": "
|
|
43
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.2.11.tgz",
|
|
44
|
+
"_shasum": "8a5c86c4a9879c2fd8752c9f14a98755403251af",
|
|
45
45
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
46
46
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
47
47
|
"author": {
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"bundleDependencies": false,
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@syncfusion/ej2-base": "~28.2.
|
|
55
|
+
"@syncfusion/ej2-base": "~28.2.12",
|
|
56
56
|
"@syncfusion/ej2-buttons": "~28.2.7",
|
|
57
|
-
"@syncfusion/ej2-data": "~28.2.
|
|
57
|
+
"@syncfusion/ej2-data": "~28.2.12",
|
|
58
58
|
"@syncfusion/ej2-inputs": "~28.2.11",
|
|
59
59
|
"@syncfusion/ej2-lists": "~28.2.3",
|
|
60
60
|
"@syncfusion/ej2-popups": "~28.2.9"
|
|
@@ -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": "28.2.
|
|
165
|
+
"version": "28.2.12",
|
|
166
166
|
"sideEffects": false
|
|
167
167
|
}
|
package/src/treeview/treeview.js
CHANGED
|
@@ -1018,8 +1018,8 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1018
1018
|
var oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal', dataUid_1, true));
|
|
1019
1019
|
checkedCount = oldCheckedNodes.length;
|
|
1020
1020
|
var parentNode = new DataManager(this.OldCheckedData).executeLocal(new Query().where('hasChildren', 'equal', true, true));
|
|
1021
|
-
if (parentNode.length > 0
|
|
1022
|
-
|
|
1021
|
+
if (parentNode.length > 0 && childNodeChecked_1 && ((this.OldCheckedData.some(function (oldNode) { return oldNode.id === dataUid_1; })) ||
|
|
1022
|
+
this.parentNodeCheck.indexOf(dataUid_1) !== -1)) {
|
|
1023
1023
|
checkedCount = parentNode.length;
|
|
1024
1024
|
parentNodeChecked = true;
|
|
1025
1025
|
}
|
|
@@ -1041,7 +1041,8 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1041
1041
|
if (count === 0 && checkedCount === 0) {
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
|
-
else if (count === checkedCount || ((parentNodeChecked && count > 0) && (oldChildCount.length === matchedChildNodes.length)
|
|
1044
|
+
else if (count === checkedCount || ((parentNodeChecked && count > 0) && ((oldChildCount.length === matchedChildNodes.length)
|
|
1045
|
+
|| (oldChildCount.length !== matchedChildNodes.length))
|
|
1045
1046
|
&& (oldChildCount.length !== 0 && matchedChildNodes.length !== 0) && rootNodeChecked_1
|
|
1046
1047
|
&& (this.autoCheck && this.showCheckBox))) {
|
|
1047
1048
|
this.changeState(checkBoxEle, 'check', null, true, true);
|
|
@@ -1067,25 +1068,31 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1067
1068
|
var childKey = typeof this.fields.child === 'string' ? this.fields.child : null;
|
|
1068
1069
|
var dataId = this.fields.id;
|
|
1069
1070
|
var parentKey = this.fields.parentID;
|
|
1071
|
+
var matchesDataUid = function (childNode) {
|
|
1072
|
+
if (!isNOU(childKey) && childKey in childNode && Array.isArray(childNode[childKey])) {
|
|
1073
|
+
var matchNode = childNode[dataId];
|
|
1074
|
+
if (!isNOU(matchNode)) {
|
|
1075
|
+
return matchNode.toString() === dataUid;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
var childNodePid = childNode[parentKey];
|
|
1080
|
+
if (!isNOU(childNodePid)) {
|
|
1081
|
+
return childNodePid.toString() === dataUid;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
return false;
|
|
1085
|
+
};
|
|
1070
1086
|
return this.checkedNodes
|
|
1071
1087
|
.map(function (checkedNodeId) {
|
|
1072
|
-
return
|
|
1073
|
-
.executeLocal(new Query().where('id', 'equal', checkedNodeId, true))[0];
|
|
1088
|
+
return _this.getNodeObject(checkedNodeId);
|
|
1074
1089
|
})
|
|
1075
1090
|
.filter(function (childNode) {
|
|
1076
|
-
if (childNode && typeof childNode === 'object' && (
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
else {
|
|
1084
|
-
var childNodePid = childNode[parentKey];
|
|
1085
|
-
if (!isNOU(childNodePid)) {
|
|
1086
|
-
return childNodePid.toString() === dataUid;
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1091
|
+
if (childNode && typeof childNode === 'object' && (childKey in childNode)) {
|
|
1092
|
+
return matchesDataUid(childNode);
|
|
1093
|
+
}
|
|
1094
|
+
else if (_this.dataType !== 2 && typeof childNode === 'object' && (parentKey in childNode || childKey in childNode)) {
|
|
1095
|
+
return matchesDataUid(childNode);
|
|
1089
1096
|
}
|
|
1090
1097
|
return false;
|
|
1091
1098
|
});
|