@syncfusion/ej2-navigations 20.4.40 → 20.4.42

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.
@@ -1217,7 +1217,7 @@ let MenuBase = class MenuBase extends Component {
1217
1217
  }
1218
1218
  }
1219
1219
  if (this.cssClass) {
1220
- addClass([wrapper], this.cssClass.split(' '));
1220
+ addClass([wrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
1221
1221
  }
1222
1222
  if (this.enableRtl) {
1223
1223
  wrapper.classList.add(RTL);
@@ -1761,7 +1761,7 @@ let MenuBase = class MenuBase extends Component {
1761
1761
  }
1762
1762
  else {
1763
1763
  if (this.cssClass) {
1764
- addClass([this.popupWrapper], this.cssClass.split(' '));
1764
+ addClass([this.popupWrapper], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
1765
1765
  }
1766
1766
  this.popupObj.hide();
1767
1767
  }
@@ -2167,7 +2167,12 @@ let MenuBase = class MenuBase extends Component {
2167
2167
  }
2168
2168
  const ul = ListBase.createList(this.createElement, items, listBaseOptions, !this.template, this);
2169
2169
  ul.setAttribute('tabindex', '0');
2170
- this.isMenu ? ul.setAttribute('role', 'menu') : ul.setAttribute('role', 'menubar');
2170
+ if (this.isMenu) {
2171
+ ul.setAttribute('role', 'menu');
2172
+ }
2173
+ else {
2174
+ ul.setAttribute('role', 'menubar');
2175
+ }
2171
2176
  return ul;
2172
2177
  }
2173
2178
  moverHandler(e) {
@@ -2554,7 +2559,7 @@ let MenuBase = class MenuBase extends Component {
2554
2559
  removeClass([wrapper], oldProp.cssClass.split(' '));
2555
2560
  }
2556
2561
  if (newProp.cssClass) {
2557
- addClass([wrapper], newProp.cssClass.split(' '));
2562
+ addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
2558
2563
  }
2559
2564
  break;
2560
2565
  case 'enableRtl':
@@ -9669,6 +9674,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
9669
9674
  this.isFirstRender = false;
9670
9675
  // Specifies whether the node is dropped or not
9671
9676
  this.isNodeDropped = false;
9677
+ this.isInteracted = false;
9672
9678
  this.mouseDownStatus = false;
9673
9679
  }
9674
9680
  /**
@@ -11060,6 +11066,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11060
11066
  }
11061
11067
  if (this.isLoaded && this.expandArgs && !this.isRefreshed) {
11062
11068
  this.expandArgs = this.getExpandEvent(currLi, null);
11069
+ this.expandArgs.isInteracted = this.isInteracted;
11063
11070
  this.trigger('nodeExpanded', this.expandArgs);
11064
11071
  }
11065
11072
  }
@@ -11081,6 +11088,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11081
11088
  let colArgs;
11082
11089
  if (this.isLoaded) {
11083
11090
  colArgs = this.getExpandEvent(currLi, e);
11091
+ this.isInteracted = colArgs.isInteracted;
11084
11092
  this.trigger('nodeCollapsing', colArgs, (observedArgs) => {
11085
11093
  if (observedArgs.cancel) {
11086
11094
  removeClass([icon], PROCESS);
@@ -11140,6 +11148,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11140
11148
  this.removeExpand(liEle);
11141
11149
  if (this.isLoaded) {
11142
11150
  colArgs = this.getExpandEvent(liEle, null);
11151
+ colArgs.isInteracted = this.isInteracted;
11143
11152
  this.trigger('nodeCollapsed', colArgs);
11144
11153
  }
11145
11154
  }
@@ -11546,6 +11555,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11546
11555
  }
11547
11556
  if (this.isLoaded && !this.isRefreshed) {
11548
11557
  this.expandArgs = this.getExpandEvent(currLi, e);
11558
+ this.isInteracted = this.expandArgs.isInteracted;
11549
11559
  this.trigger('nodeExpanding', this.expandArgs, (observedArgs) => {
11550
11560
  if (observedArgs.cancel) {
11551
11561
  removeClass([icon], PROCESS);
@@ -15314,7 +15324,7 @@ let Breadcrumb = class Breadcrumb extends Component {
15314
15324
  this._maxItems = this.maxItems;
15315
15325
  this.element.setAttribute('aria-label', 'breadcrumb');
15316
15326
  if (this.cssClass) {
15317
- addClass([this.element], this.cssClass.split(' '));
15327
+ addClass([this.element], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
15318
15328
  }
15319
15329
  if (this.enableRtl) {
15320
15330
  this.element.classList.add('e-rtl');
@@ -15824,7 +15834,7 @@ let Breadcrumb = class Breadcrumb extends Component {
15824
15834
  removeClass([this.element], oldProp.cssClass.split(' '));
15825
15835
  }
15826
15836
  if (newProp.cssClass) {
15827
- addClass([this.element], newProp.cssClass.split(' '));
15837
+ addClass([this.element], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));
15828
15838
  }
15829
15839
  if ((oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) && !(newProp.cssClass &&
15830
15840
  newProp.cssClass.indexOf(ICONRIGHT) > -1) || !(oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) &&