@syncfusion/ej2-navigations 23.1.44 → 23.2.5
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 +16 -0
- 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 +15 -10
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +15 -10
- 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 +11 -11
- package/src/common/menu-base.js +3 -1
- package/src/sidebar/sidebar.js +1 -1
- package/src/toolbar/toolbar.js +8 -7
- package/src/treeview/treeview.js +3 -1
|
@@ -3056,12 +3056,14 @@ let MenuBase = class MenuBase extends Component {
|
|
|
3056
3056
|
let ul;
|
|
3057
3057
|
let index;
|
|
3058
3058
|
let navIdx;
|
|
3059
|
+
let item;
|
|
3059
3060
|
for (let i = 0; i < items.length; i++) {
|
|
3060
3061
|
navIdx = this.getIndex(items[i], isUniqueId);
|
|
3061
3062
|
index = navIdx.pop();
|
|
3062
3063
|
ul = this.getUlByNavIdx(navIdx.length);
|
|
3064
|
+
item = this.getItems(navIdx);
|
|
3063
3065
|
if (ul) {
|
|
3064
|
-
const validUl = isUniqueId ? ul.children[index].id :
|
|
3066
|
+
const validUl = isUniqueId ? ul.children[index].id : item[index].text.toString();
|
|
3065
3067
|
if (ishide && validUl === items[i]) {
|
|
3066
3068
|
ul.children[index].classList.add(HIDE);
|
|
3067
3069
|
}
|
|
@@ -5126,6 +5128,11 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5126
5128
|
eleObj.appendTo(ele);
|
|
5127
5129
|
}
|
|
5128
5130
|
this.add(innerEle, CLS_TEMPLATE);
|
|
5131
|
+
const firstChild = innerEle.firstElementChild;
|
|
5132
|
+
if (!isNullOrUndefined(firstChild)) {
|
|
5133
|
+
firstChild.setAttribute('tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
|
|
5134
|
+
firstChild.setAttribute('data-tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
|
|
5135
|
+
}
|
|
5129
5136
|
this.tbarEle.push(innerEle);
|
|
5130
5137
|
}
|
|
5131
5138
|
buttonRendering(item, innerEle) {
|
|
@@ -5250,12 +5257,7 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5250
5257
|
}
|
|
5251
5258
|
activeEleRemove(curEle) {
|
|
5252
5259
|
if (!isNullOrUndefined(this.activeEle)) {
|
|
5253
|
-
|
|
5254
|
-
this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
|
|
5255
|
-
}
|
|
5256
|
-
else {
|
|
5257
|
-
this.activeEle.removeAttribute('tabindex');
|
|
5258
|
-
}
|
|
5260
|
+
this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
|
|
5259
5261
|
}
|
|
5260
5262
|
this.activeEle = curEle;
|
|
5261
5263
|
if (this.getDataTabindex(this.activeEle) === '-1') {
|
|
@@ -5264,7 +5266,8 @@ let Toolbar = class Toolbar extends Component {
|
|
|
5264
5266
|
curEle.removeAttribute('tabindex');
|
|
5265
5267
|
}
|
|
5266
5268
|
else {
|
|
5267
|
-
|
|
5269
|
+
let tabIndex = parseInt(this.getDataTabindex(this.activeEle)) + 1;
|
|
5270
|
+
this.activeEle.setAttribute('tabindex', tabIndex.toString());
|
|
5268
5271
|
}
|
|
5269
5272
|
}
|
|
5270
5273
|
}
|
|
@@ -14265,7 +14268,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
14265
14268
|
this.isAnimate = false;
|
|
14266
14269
|
this.isFieldChange = true;
|
|
14267
14270
|
this.initialRender = true;
|
|
14268
|
-
this.
|
|
14271
|
+
if (isNullOrUndefined(this.isReact) && !(this.fields.dataSource instanceof DataManager)) {
|
|
14272
|
+
this.reRenderNodes();
|
|
14273
|
+
}
|
|
14269
14274
|
this.initialRender = false;
|
|
14270
14275
|
this.isAnimate = true;
|
|
14271
14276
|
this.isFieldChange = false;
|
|
@@ -15149,7 +15154,7 @@ let Sidebar = class Sidebar extends Component {
|
|
|
15149
15154
|
};
|
|
15150
15155
|
this.trigger('open', openArguments, (observedopenArgs) => {
|
|
15151
15156
|
if (!observedopenArgs.cancel) {
|
|
15152
|
-
removeClass([this.element], VISIBILITY);
|
|
15157
|
+
removeClass([this.element], [VISIBILITY, DISABLEANIMATION]);
|
|
15153
15158
|
if (this.element.classList.contains(OPEN)) {
|
|
15154
15159
|
return;
|
|
15155
15160
|
}
|