@syncfusion/ej2-navigations 19.3.54 → 19.3.56
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 +9 -0
- 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 -7
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +22 -7
- 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/common/menu-base.js +2 -2
- package/src/treeview/treeview.js +20 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.3.
|
|
3
|
+
* version : 19.3.56
|
|
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@19.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@19.3.54",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kx6DI1vFtwGig9SPJHWDkPaI/gYjN5XL0XxVdLCt445RhEtmABmZNKbqOE+r1p3NTCjbsAQ+L4zG9/P+6V7tQA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"/@syncfusion/ej2-spreadsheet",
|
|
38
38
|
"/@syncfusion/ej2-vue-navigations"
|
|
39
39
|
],
|
|
40
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-navigations/-/ej2-navigations-19.3.
|
|
41
|
-
"_shasum": "
|
|
40
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-19.3.54.tgz",
|
|
41
|
+
"_shasum": "a6a951a9701ff097a23cbd05e2976fb4bde92ab8",
|
|
42
42
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
43
43
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
44
44
|
"author": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"bundleDependencies": false,
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@syncfusion/ej2-base": "~19.3.
|
|
52
|
+
"@syncfusion/ej2-base": "~19.3.56",
|
|
53
53
|
"@syncfusion/ej2-buttons": "~19.3.53",
|
|
54
|
-
"@syncfusion/ej2-data": "~19.3.
|
|
54
|
+
"@syncfusion/ej2-data": "~19.3.56",
|
|
55
55
|
"@syncfusion/ej2-inputs": "~19.3.53",
|
|
56
56
|
"@syncfusion/ej2-lists": "~19.3.53",
|
|
57
57
|
"@syncfusion/ej2-popups": "~19.3.53"
|
|
@@ -159,6 +159,6 @@
|
|
|
159
159
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
160
160
|
},
|
|
161
161
|
"typings": "index.d.ts",
|
|
162
|
-
"version": "19.3.
|
|
162
|
+
"version": "19.3.56",
|
|
163
163
|
"sideEffects": false
|
|
164
164
|
}
|
package/src/common/menu-base.js
CHANGED
|
@@ -964,8 +964,8 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
964
964
|
_this.setBlankIconStyle(_this.popupWrapper);
|
|
965
965
|
_this.wireKeyboardEvent(_this.popupWrapper);
|
|
966
966
|
rippleEffect(_this.popupWrapper, { selector: '.' + ITEM });
|
|
967
|
-
_this.popupWrapper.style.left = _this.left +
|
|
968
|
-
_this.popupWrapper.style.top = _this.top +
|
|
967
|
+
_this.popupWrapper.style.left = _this.left + 'px';
|
|
968
|
+
_this.popupWrapper.style.top = _this.top + 'px';
|
|
969
969
|
var animationOptions = _this.animationSettings.effect !== 'None' ? {
|
|
970
970
|
name: _this.animationSettings.effect, duration: _this.animationSettings.duration,
|
|
971
971
|
timingFunction: _this.animationSettings.easing
|
package/src/treeview/treeview.js
CHANGED
|
@@ -1000,6 +1000,10 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1000
1000
|
var id = childItems[i][this.fields.id] ? childItems[i][this.fields.id].toString() : null;
|
|
1001
1001
|
if (this.checkedNodes.indexOf(id) !== -1) {
|
|
1002
1002
|
this.checkedNodes.splice(this.checkedNodes.indexOf(id), 1);
|
|
1003
|
+
var ele = this.element.querySelector('[data-uid="' + id + '"]');
|
|
1004
|
+
if (ele) {
|
|
1005
|
+
this.changeState(ele, 'uncheck', null);
|
|
1006
|
+
}
|
|
1003
1007
|
}
|
|
1004
1008
|
}
|
|
1005
1009
|
if (this.parentNodeCheck.indexOf(node) !== -1) {
|
|
@@ -1231,6 +1235,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1231
1235
|
var _this = this;
|
|
1232
1236
|
var eventArgs;
|
|
1233
1237
|
var currLi = closest(wrapper, '.' + LISTITEM);
|
|
1238
|
+
if (wrapper === currLi) {
|
|
1239
|
+
wrapper = select('.' + CHECKBOXWRAP, currLi);
|
|
1240
|
+
}
|
|
1234
1241
|
if (!isPrevent) {
|
|
1235
1242
|
this.checkActionNodes = [];
|
|
1236
1243
|
eventArgs = this.getCheckEvent(currLi, state, e);
|
|
@@ -2236,8 +2243,10 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2236
2243
|
TreeView.prototype.nodeCheckingAction = function (checkWrap, isCheck, li, eventArgs, e) {
|
|
2237
2244
|
if (this.checkedElement.indexOf(li.getAttribute('data-uid')) === -1) {
|
|
2238
2245
|
this.checkedElement.push(li.getAttribute('data-uid'));
|
|
2239
|
-
|
|
2240
|
-
|
|
2246
|
+
if (this.autoCheck) {
|
|
2247
|
+
var child = this.getChildNodes(this.treeData, li.getAttribute('data-uid'));
|
|
2248
|
+
(child !== null) ? this.allCheckNode(child, this.checkedElement, null, null, false) : child = null;
|
|
2249
|
+
}
|
|
2241
2250
|
}
|
|
2242
2251
|
this.changeState(checkWrap, isCheck ? 'uncheck' : 'check', e, true);
|
|
2243
2252
|
if (this.autoCheck) {
|
|
@@ -2403,11 +2412,17 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2403
2412
|
if (newCheck.indexOf(childId.toString()) === -1 && isNOU(checked)) {
|
|
2404
2413
|
newCheck.push(childId.toString());
|
|
2405
2414
|
}
|
|
2415
|
+
var hierChildId = getValue(this.fields.child.toString(), child[length_1]);
|
|
2406
2416
|
//Gets if any next level children are available for child nodes
|
|
2407
|
-
if (getValue(this.fields.hasChildren, child[length_1]) === true ||
|
|
2408
|
-
getValue(this.fields.child.toString(), child[length_1])) {
|
|
2417
|
+
if (getValue(this.fields.hasChildren, child[length_1]) === true || hierChildId) {
|
|
2409
2418
|
var id = getValue(this.fields.id, child[length_1]);
|
|
2410
|
-
var childId_1 =
|
|
2419
|
+
var childId_1 = void 0;
|
|
2420
|
+
if (this.dataType === 1) {
|
|
2421
|
+
childId_1 = this.getChildNodes(this.treeData, id.toString());
|
|
2422
|
+
}
|
|
2423
|
+
else {
|
|
2424
|
+
childId_1 = hierChildId;
|
|
2425
|
+
}
|
|
2411
2426
|
if (childId_1) {
|
|
2412
2427
|
(isNOU(validateCheck)) ? this.allCheckNode(childId_1, newCheck, checked, childCheck) :
|
|
2413
2428
|
this.allCheckNode(childId_1, newCheck, checked, childCheck, validateCheck);
|