@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.
- package/dist/ej2-ribbon.umd.min.js +2 -2
- package/dist/ej2-ribbon.umd.min.js.map +1 -1
- package/dist/es6/ej2-ribbon.es2015.js +8 -3
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +8 -3
- package/dist/es6/ej2-ribbon.es5.js.map +1 -1
- package/dist/global/ej2-ribbon.min.js +2 -2
- package/dist/global/ej2-ribbon.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/ribbon/base/interface.d.ts +13 -0
- package/src/ribbon/base/ribbon-model.d.ts +8 -1
- package/src/ribbon/base/ribbon.d.ts +7 -1
- package/src/ribbon/base/ribbon.js +8 -3
|
@@ -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);
|