@syncfusion/ej2-ribbon 26.1.40 → 26.1.41

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.
@@ -4903,9 +4903,11 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
4903
4903
  }
4904
4904
  });
4905
4905
  }
4906
- toggleLayout() {
4906
+ toggleLayout(args) {
4907
4907
  this.setProperties({ activeLayout: this.activeLayout === 'Simplified' ? 'Classic' : 'Simplified' }, true);
4908
4908
  this.switchLayout();
4909
+ const eventArgs = { activeLayout: this.activeLayout, event: args };
4910
+ this.trigger('ribbonLayoutSwitched', eventArgs);
4909
4911
  }
4910
4912
  tabCreated() {
4911
4913
  if (!this.hideLayoutSwitcher) {
@@ -6635,10 +6637,10 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
6635
6637
  id: this.tabObj.element.id + COLLAPSE_BUTTON_ID,
6636
6638
  attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Layout Switcher', 'role': 'button' }
6637
6639
  });
6638
- this.collapseButton.onclick = () => { this.toggleLayout(); };
6640
+ this.collapseButton.onclick = (e) => { this.toggleLayout(e); };
6639
6641
  this.collapseButton.onkeydown = (e) => {
6640
6642
  if (e.key === 'Enter') {
6641
- this.toggleLayout();
6643
+ this.toggleLayout(e);
6642
6644
  }
6643
6645
  };
6644
6646
  this.element.classList.add(RIBBON_COLLAPSIBLE);
@@ -9247,6 +9249,9 @@ __decorate$l([
9247
9249
  __decorate$l([
9248
9250
  Event()
9249
9251
  ], Ribbon.prototype, "ribbonCollapsing", void 0);
9252
+ __decorate$l([
9253
+ Event()
9254
+ ], Ribbon.prototype, "ribbonLayoutSwitched", void 0);
9250
9255
  __decorate$l([
9251
9256
  Event()
9252
9257
  ], Ribbon.prototype, "launcherIconClick", void 0);