@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
|
@@ -1926,8 +1926,8 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1926
1926
|
this.setBlankIconStyle(this.popupWrapper);
|
|
1927
1927
|
this.wireKeyboardEvent(this.popupWrapper);
|
|
1928
1928
|
rippleEffect(this.popupWrapper, { selector: '.' + ITEM });
|
|
1929
|
-
this.popupWrapper.style.left = this.left +
|
|
1930
|
-
this.popupWrapper.style.top = this.top +
|
|
1929
|
+
this.popupWrapper.style.left = this.left + 'px';
|
|
1930
|
+
this.popupWrapper.style.top = this.top + 'px';
|
|
1931
1931
|
const animationOptions = this.animationSettings.effect !== 'None' ? {
|
|
1932
1932
|
name: this.animationSettings.effect, duration: this.animationSettings.duration,
|
|
1933
1933
|
timingFunction: this.animationSettings.easing
|
|
@@ -10238,6 +10238,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10238
10238
|
let id = childItems[i][this.fields.id] ? childItems[i][this.fields.id].toString() : null;
|
|
10239
10239
|
if (this.checkedNodes.indexOf(id) !== -1) {
|
|
10240
10240
|
this.checkedNodes.splice(this.checkedNodes.indexOf(id), 1);
|
|
10241
|
+
let ele = this.element.querySelector('[data-uid="' + id + '"]');
|
|
10242
|
+
if (ele) {
|
|
10243
|
+
this.changeState(ele, 'uncheck', null);
|
|
10244
|
+
}
|
|
10241
10245
|
}
|
|
10242
10246
|
}
|
|
10243
10247
|
if (this.parentNodeCheck.indexOf(node) !== -1) {
|
|
@@ -10468,6 +10472,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10468
10472
|
changeState(wrapper, state, e, isPrevent, isAdd, doCheck) {
|
|
10469
10473
|
let eventArgs;
|
|
10470
10474
|
let currLi = closest(wrapper, '.' + LISTITEM);
|
|
10475
|
+
if (wrapper === currLi) {
|
|
10476
|
+
wrapper = select('.' + CHECKBOXWRAP, currLi);
|
|
10477
|
+
}
|
|
10471
10478
|
if (!isPrevent) {
|
|
10472
10479
|
this.checkActionNodes = [];
|
|
10473
10480
|
eventArgs = this.getCheckEvent(currLi, state, e);
|
|
@@ -11461,8 +11468,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11461
11468
|
nodeCheckingAction(checkWrap, isCheck, li, eventArgs, e) {
|
|
11462
11469
|
if (this.checkedElement.indexOf(li.getAttribute('data-uid')) === -1) {
|
|
11463
11470
|
this.checkedElement.push(li.getAttribute('data-uid'));
|
|
11464
|
-
|
|
11465
|
-
|
|
11471
|
+
if (this.autoCheck) {
|
|
11472
|
+
let child = this.getChildNodes(this.treeData, li.getAttribute('data-uid'));
|
|
11473
|
+
(child !== null) ? this.allCheckNode(child, this.checkedElement, null, null, false) : child = null;
|
|
11474
|
+
}
|
|
11466
11475
|
}
|
|
11467
11476
|
this.changeState(checkWrap, isCheck ? 'uncheck' : 'check', e, true);
|
|
11468
11477
|
if (this.autoCheck) {
|
|
@@ -11628,11 +11637,17 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11628
11637
|
if (newCheck.indexOf(childId.toString()) === -1 && isNullOrUndefined(checked)) {
|
|
11629
11638
|
newCheck.push(childId.toString());
|
|
11630
11639
|
}
|
|
11640
|
+
let hierChildId = getValue(this.fields.child.toString(), child[length]);
|
|
11631
11641
|
//Gets if any next level children are available for child nodes
|
|
11632
|
-
if (getValue(this.fields.hasChildren, child[length]) === true ||
|
|
11633
|
-
getValue(this.fields.child.toString(), child[length])) {
|
|
11642
|
+
if (getValue(this.fields.hasChildren, child[length]) === true || hierChildId) {
|
|
11634
11643
|
let id = getValue(this.fields.id, child[length]);
|
|
11635
|
-
let childId
|
|
11644
|
+
let childId;
|
|
11645
|
+
if (this.dataType === 1) {
|
|
11646
|
+
childId = this.getChildNodes(this.treeData, id.toString());
|
|
11647
|
+
}
|
|
11648
|
+
else {
|
|
11649
|
+
childId = hierChildId;
|
|
11650
|
+
}
|
|
11636
11651
|
if (childId) {
|
|
11637
11652
|
(isNullOrUndefined(validateCheck)) ? this.allCheckNode(childId, newCheck, checked, childCheck) :
|
|
11638
11653
|
this.allCheckNode(childId, newCheck, checked, childCheck, validateCheck);
|