@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.
@@ -1540,7 +1540,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1540
1540
  var popups_1 = [];
1541
1541
  var allPopup = selectAll('.' + POPUP);
1542
1542
  allPopup.forEach(function (elem) {
1543
- if (_this.element.id === elem.id.split('-')[2]) {
1543
+ if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
1544
1544
  popups_1.push(elem);
1545
1545
  }
1546
1546
  });
@@ -3522,6 +3522,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3522
3522
  function Toolbar(options, element) {
3523
3523
  var _this = _super.call(this, options, element) || this;
3524
3524
  _this.resizeContext = _this.resize.bind(_this);
3525
+ _this.orientationChangeContext = _this.orientationChange.bind(_this);
3525
3526
  /**
3526
3527
  * Contains the keyboard configuration of the Toolbar.
3527
3528
  */
@@ -3614,6 +3615,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3614
3615
  Toolbar.prototype.wireEvents = function () {
3615
3616
  EventHandler.add(this.element, 'click', this.clickHandler, this);
3616
3617
  window.addEventListener('resize', this.resizeContext);
3618
+ window.addEventListener('orientationchange', this.orientationChangeContext);
3617
3619
  if (this.allowKeyboard) {
3618
3620
  this.wireKeyboardEvent();
3619
3621
  }
@@ -3660,6 +3662,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3660
3662
  this.destroyScroll();
3661
3663
  this.unwireKeyboardEvent();
3662
3664
  window.removeEventListener('resize', this.resizeContext);
3665
+ window.removeEventListener('orientationchange', this.orientationChangeContext);
3663
3666
  EventHandler.remove(document, 'scroll', this.docEvent);
3664
3667
  EventHandler.remove(document, 'click', this.docEvent);
3665
3668
  };
@@ -5460,6 +5463,12 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5460
5463
  this.tbResize = false;
5461
5464
  this.separator();
5462
5465
  };
5466
+ Toolbar.prototype.orientationChange = function () {
5467
+ var _this = this;
5468
+ setTimeout(function () {
5469
+ _this.resize();
5470
+ }, 500);
5471
+ };
5463
5472
  Toolbar.prototype.extendedOpen = function () {
5464
5473
  var sib = this.element.querySelector('.' + CLS_EXTENDABLECLASS);
5465
5474
  if (this.overflowMode === 'Extended' && sib) {
@@ -17737,6 +17746,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17737
17746
  EventHandler.remove(this.element.firstElementChild, 'animationend', this.onTransitionEnd);
17738
17747
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
17739
17748
  EventHandler.clearEvents(this.element);
17749
+ EventHandler.clearEvents(this.itemsContainer);
17740
17750
  };
17741
17751
  /**
17742
17752
  * Method to transit from the current slide to the previous slide.
@@ -17837,8 +17847,9 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17837
17847
  this.destroyButtons();
17838
17848
  this.unWireEvents();
17839
17849
  [].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
17840
- removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5]);
17850
+ removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5, CLS_SWIPE]);
17841
17851
  ['tabindex', 'role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
17852
+ this.itemsContainer = null;
17842
17853
  _super.prototype.destroy.call(this);
17843
17854
  };
17844
17855
  __decorate$11([