@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
|
@@ -2015,8 +2015,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2015
2015
|
_this.setBlankIconStyle(_this.popupWrapper);
|
|
2016
2016
|
_this.wireKeyboardEvent(_this.popupWrapper);
|
|
2017
2017
|
rippleEffect(_this.popupWrapper, { selector: '.' + ITEM });
|
|
2018
|
-
_this.popupWrapper.style.left = _this.left +
|
|
2019
|
-
_this.popupWrapper.style.top = _this.top +
|
|
2018
|
+
_this.popupWrapper.style.left = _this.left + 'px';
|
|
2019
|
+
_this.popupWrapper.style.top = _this.top + 'px';
|
|
2020
2020
|
var animationOptions = _this.animationSettings.effect !== 'None' ? {
|
|
2021
2021
|
name: _this.animationSettings.effect, duration: _this.animationSettings.duration,
|
|
2022
2022
|
timingFunction: _this.animationSettings.easing
|
|
@@ -10557,6 +10557,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10557
10557
|
var id = childItems[i][this.fields.id] ? childItems[i][this.fields.id].toString() : null;
|
|
10558
10558
|
if (this.checkedNodes.indexOf(id) !== -1) {
|
|
10559
10559
|
this.checkedNodes.splice(this.checkedNodes.indexOf(id), 1);
|
|
10560
|
+
var ele = this.element.querySelector('[data-uid="' + id + '"]');
|
|
10561
|
+
if (ele) {
|
|
10562
|
+
this.changeState(ele, 'uncheck', null);
|
|
10563
|
+
}
|
|
10560
10564
|
}
|
|
10561
10565
|
}
|
|
10562
10566
|
if (this.parentNodeCheck.indexOf(node) !== -1) {
|
|
@@ -10788,6 +10792,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
10788
10792
|
var _this = this;
|
|
10789
10793
|
var eventArgs;
|
|
10790
10794
|
var currLi = closest(wrapper, '.' + LISTITEM);
|
|
10795
|
+
if (wrapper === currLi) {
|
|
10796
|
+
wrapper = select('.' + CHECKBOXWRAP, currLi);
|
|
10797
|
+
}
|
|
10791
10798
|
if (!isPrevent) {
|
|
10792
10799
|
this.checkActionNodes = [];
|
|
10793
10800
|
eventArgs = this.getCheckEvent(currLi, state, e);
|
|
@@ -11792,8 +11799,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11792
11799
|
TreeView.prototype.nodeCheckingAction = function (checkWrap, isCheck, li, eventArgs, e) {
|
|
11793
11800
|
if (this.checkedElement.indexOf(li.getAttribute('data-uid')) === -1) {
|
|
11794
11801
|
this.checkedElement.push(li.getAttribute('data-uid'));
|
|
11795
|
-
|
|
11796
|
-
|
|
11802
|
+
if (this.autoCheck) {
|
|
11803
|
+
var child = this.getChildNodes(this.treeData, li.getAttribute('data-uid'));
|
|
11804
|
+
(child !== null) ? this.allCheckNode(child, this.checkedElement, null, null, false) : child = null;
|
|
11805
|
+
}
|
|
11797
11806
|
}
|
|
11798
11807
|
this.changeState(checkWrap, isCheck ? 'uncheck' : 'check', e, true);
|
|
11799
11808
|
if (this.autoCheck) {
|
|
@@ -11959,11 +11968,17 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11959
11968
|
if (newCheck.indexOf(childId.toString()) === -1 && isNullOrUndefined(checked)) {
|
|
11960
11969
|
newCheck.push(childId.toString());
|
|
11961
11970
|
}
|
|
11971
|
+
var hierChildId = getValue(this.fields.child.toString(), child[length_1]);
|
|
11962
11972
|
//Gets if any next level children are available for child nodes
|
|
11963
|
-
if (getValue(this.fields.hasChildren, child[length_1]) === true ||
|
|
11964
|
-
getValue(this.fields.child.toString(), child[length_1])) {
|
|
11973
|
+
if (getValue(this.fields.hasChildren, child[length_1]) === true || hierChildId) {
|
|
11965
11974
|
var id = getValue(this.fields.id, child[length_1]);
|
|
11966
|
-
var childId_1 =
|
|
11975
|
+
var childId_1 = void 0;
|
|
11976
|
+
if (this.dataType === 1) {
|
|
11977
|
+
childId_1 = this.getChildNodes(this.treeData, id.toString());
|
|
11978
|
+
}
|
|
11979
|
+
else {
|
|
11980
|
+
childId_1 = hierChildId;
|
|
11981
|
+
}
|
|
11967
11982
|
if (childId_1) {
|
|
11968
11983
|
(isNullOrUndefined(validateCheck)) ? this.allCheckNode(childId_1, newCheck, checked, childCheck) :
|
|
11969
11984
|
this.allCheckNode(childId_1, newCheck, checked, childCheck, validateCheck);
|