@syncfusion/ej2-navigations 23.2.4 → 23.2.7

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.
@@ -5282,6 +5282,11 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5282
5282
  eleObj.appendTo(ele);
5283
5283
  }
5284
5284
  this.add(innerEle, CLS_TEMPLATE);
5285
+ var firstChild = innerEle.firstElementChild;
5286
+ if (!isNullOrUndefined(firstChild)) {
5287
+ firstChild.setAttribute('tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
5288
+ firstChild.setAttribute('data-tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
5289
+ }
5285
5290
  this.tbarEle.push(innerEle);
5286
5291
  };
5287
5292
  Toolbar.prototype.buttonRendering = function (item, innerEle) {
@@ -5406,12 +5411,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5406
5411
  };
5407
5412
  Toolbar.prototype.activeEleRemove = function (curEle) {
5408
5413
  if (!isNullOrUndefined(this.activeEle)) {
5409
- if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5410
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5411
- }
5412
- else {
5413
- this.activeEle.removeAttribute('tabindex');
5414
- }
5414
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5415
5415
  }
5416
5416
  this.activeEle = curEle;
5417
5417
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5420,7 +5420,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5420
5420
  curEle.removeAttribute('tabindex');
5421
5421
  }
5422
5422
  else {
5423
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5423
+ var tabIndex = parseInt(this.getDataTabindex(this.activeEle)) + 1;
5424
+ this.activeEle.setAttribute('tabindex', tabIndex.toString());
5424
5425
  }
5425
5426
  }
5426
5427
  };
@@ -11010,17 +11011,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11010
11011
  TreeView.prototype.doCheckBoxAction = function (nodes, doCheck) {
11011
11012
  var li = selectAll('.' + LISTITEM, this.element);
11012
11013
  if (!isNullOrUndefined(nodes)) {
11013
- for (var len = nodes.length; len >= 0; len--) {
11014
- var liEle = void 0;
11015
- if (nodes.length === 1) {
11016
- liEle = this.getElement(nodes[len - 1]);
11017
- }
11018
- else {
11019
- liEle = this.getElement(nodes[len]);
11020
- }
11014
+ for (var len = nodes.length - 1; len >= 0; len--) {
11015
+ var liEle = this.getElement(nodes[len]);
11021
11016
  if (isNullOrUndefined(liEle)) {
11022
11017
  var node = void 0;
11023
- node = nodes[len - nodes.length] ? nodes[len - nodes.length].toString() : nodes[len] ? nodes[len].toString() : null;
11018
+ node = nodes[len - (nodes.length - 1)] ? nodes[len - (nodes.length - 1)].toString() : nodes[len] ? nodes[len].toString() : null;
11024
11019
  if (node !== '' && doCheck && node) {
11025
11020
  this.setValidCheckedNode(node);
11026
11021
  this.dynamicCheckState(node, doCheck);
@@ -11070,7 +11065,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11070
11065
  }
11071
11066
  }
11072
11067
  if (nodes) {
11073
- for (var j = 0; j < nodes.length; j++) {
11068
+ for (var j = 0; j < nodes.length - 1; j++) {
11074
11069
  var node = nodes[j] ? nodes[j].toString() : '';
11075
11070
  if (!doCheck) {
11076
11071
  this.updateField(this.treeData, this.fields, node, 'isChecked', null);
@@ -14617,7 +14612,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14617
14612
  this.isAnimate = false;
14618
14613
  this.isFieldChange = true;
14619
14614
  this.initialRender = true;
14620
- if (isNullOrUndefined(this.isReact) && !(this.fields.dataSource instanceof DataManager)) {
14615
+ if (!this.isReact || this.isReact && !(this.fields.dataSource instanceof DataManager)) {
14621
14616
  this.reRenderNodes();
14622
14617
  }
14623
14618
  this.initialRender = false;
@@ -15522,7 +15517,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15522
15517
  };
15523
15518
  this.trigger('open', openArguments, function (observedopenArgs) {
15524
15519
  if (!observedopenArgs.cancel) {
15525
- removeClass([_this.element], VISIBILITY);
15520
+ removeClass([_this.element], [VISIBILITY, DISABLEANIMATION]);
15526
15521
  if (_this.element.classList.contains(OPEN)) {
15527
15522
  return;
15528
15523
  }