@syncfusion/ej2-navigations 22.1.36 → 22.1.39

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.
@@ -1462,7 +1462,7 @@ let MenuBase = class MenuBase extends Component {
1462
1462
  const popups = [];
1463
1463
  const allPopup = selectAll('.' + POPUP);
1464
1464
  allPopup.forEach((elem) => {
1465
- if (this.element.id === elem.id.split('-')[2]) {
1465
+ if (this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
1466
1466
  popups.push(elem);
1467
1467
  }
1468
1468
  });
@@ -3387,6 +3387,7 @@ let Toolbar = class Toolbar extends Component {
3387
3387
  constructor(options, element) {
3388
3388
  super(options, element);
3389
3389
  this.resizeContext = this.resize.bind(this);
3390
+ this.orientationChangeContext = this.orientationChange.bind(this);
3390
3391
  /**
3391
3392
  * Contains the keyboard configuration of the Toolbar.
3392
3393
  */
@@ -3475,6 +3476,7 @@ let Toolbar = class Toolbar extends Component {
3475
3476
  wireEvents() {
3476
3477
  EventHandler.add(this.element, 'click', this.clickHandler, this);
3477
3478
  window.addEventListener('resize', this.resizeContext);
3479
+ window.addEventListener('orientationchange', this.orientationChangeContext);
3478
3480
  if (this.allowKeyboard) {
3479
3481
  this.wireKeyboardEvent();
3480
3482
  }
@@ -3521,6 +3523,7 @@ let Toolbar = class Toolbar extends Component {
3521
3523
  this.destroyScroll();
3522
3524
  this.unwireKeyboardEvent();
3523
3525
  window.removeEventListener('resize', this.resizeContext);
3526
+ window.removeEventListener('orientationchange', this.orientationChangeContext);
3524
3527
  EventHandler.remove(document, 'scroll', this.docEvent);
3525
3528
  EventHandler.remove(document, 'click', this.docEvent);
3526
3529
  }
@@ -5307,6 +5310,11 @@ let Toolbar = class Toolbar extends Component {
5307
5310
  this.tbResize = false;
5308
5311
  this.separator();
5309
5312
  }
5313
+ orientationChange() {
5314
+ setTimeout(() => {
5315
+ this.resize();
5316
+ }, 500);
5317
+ }
5310
5318
  extendedOpen() {
5311
5319
  const sib = this.element.querySelector('.' + CLS_EXTENDABLECLASS);
5312
5320
  if (this.overflowMode === 'Extended' && sib) {
@@ -17311,6 +17319,7 @@ let Carousel = class Carousel extends Component {
17311
17319
  EventHandler.remove(this.element.firstElementChild, 'animationend', this.onTransitionEnd);
17312
17320
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
17313
17321
  EventHandler.clearEvents(this.element);
17322
+ EventHandler.clearEvents(this.itemsContainer);
17314
17323
  }
17315
17324
  /**
17316
17325
  * Method to transit from the current slide to the previous slide.
@@ -17410,8 +17419,9 @@ let Carousel = class Carousel extends Component {
17410
17419
  this.destroyButtons();
17411
17420
  this.unWireEvents();
17412
17421
  [].slice.call(this.element.children).forEach((ele) => { this.element.removeChild(ele); });
17413
- removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5]);
17422
+ removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5, CLS_SWIPE]);
17414
17423
  ['tabindex', 'role', 'style'].forEach((attr) => { this.element.removeAttribute(attr); });
17424
+ this.itemsContainer = null;
17415
17425
  super.destroy();
17416
17426
  }
17417
17427
  };