@syncfusion/ej2-ribbon 26.1.38 → 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 +32 -11
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +32 -11
- 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 +9 -9
- 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
- package/src/ribbon/items/ribbon-button.js +3 -1
- package/src/ribbon/items/ribbon-checkbox.js +3 -1
- package/src/ribbon/items/ribbon-colorpicker.js +3 -1
- package/src/ribbon/items/ribbon-combobox.js +3 -1
- package/src/ribbon/items/ribbon-dropdown.js +3 -1
- package/src/ribbon/items/ribbon-groupbutton.js +3 -1
- package/src/ribbon/items/ribbon-splitbutton.js +6 -2
- package/styles/fluent2.css +6 -6
- package/styles/ribbon/_fluent2-definition.scss +1 -1
- package/styles/ribbon/fluent2.css +6 -6
|
@@ -1422,7 +1422,9 @@ class RibbonButton {
|
|
|
1422
1422
|
if (item.buttonSettings.clicked) {
|
|
1423
1423
|
item.buttonSettings.clicked.call(this, e);
|
|
1424
1424
|
}
|
|
1425
|
-
overflowButton.
|
|
1425
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
1426
|
+
overflowButton.toggle();
|
|
1427
|
+
}
|
|
1426
1428
|
};
|
|
1427
1429
|
}
|
|
1428
1430
|
/**
|
|
@@ -1578,7 +1580,9 @@ class RibbonCheckBox {
|
|
|
1578
1580
|
if (item.checkBoxSettings.change) {
|
|
1579
1581
|
item.checkBoxSettings.change.call(this, e);
|
|
1580
1582
|
}
|
|
1581
|
-
overflowButton.
|
|
1583
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
1584
|
+
overflowButton.toggle();
|
|
1585
|
+
}
|
|
1582
1586
|
};
|
|
1583
1587
|
}
|
|
1584
1588
|
/**
|
|
@@ -1760,7 +1764,9 @@ class RibbonColorPicker {
|
|
|
1760
1764
|
};
|
|
1761
1765
|
splitBtn.close = () => {
|
|
1762
1766
|
if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
|
|
1763
|
-
overflowButton.
|
|
1767
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
1768
|
+
overflowButton.toggle();
|
|
1769
|
+
}
|
|
1764
1770
|
}
|
|
1765
1771
|
};
|
|
1766
1772
|
}
|
|
@@ -1968,7 +1974,9 @@ class RibbonComboBox {
|
|
|
1968
1974
|
item.comboBoxSettings.close.call(this, e);
|
|
1969
1975
|
}
|
|
1970
1976
|
if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
|
|
1971
|
-
overflowButton.
|
|
1977
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
1978
|
+
overflowButton.toggle();
|
|
1979
|
+
}
|
|
1972
1980
|
}
|
|
1973
1981
|
};
|
|
1974
1982
|
}
|
|
@@ -2160,7 +2168,9 @@ class RibbonDropDown {
|
|
|
2160
2168
|
item.dropDownSettings.close.call(this, e);
|
|
2161
2169
|
}
|
|
2162
2170
|
if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
|
|
2163
|
-
overflowButton.
|
|
2171
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
2172
|
+
overflowButton.toggle();
|
|
2173
|
+
}
|
|
2164
2174
|
}
|
|
2165
2175
|
};
|
|
2166
2176
|
}
|
|
@@ -2632,7 +2642,9 @@ class RibbonSplitButton {
|
|
|
2632
2642
|
if (item.splitButtonSettings.click) {
|
|
2633
2643
|
item.splitButtonSettings.click.call(this, e);
|
|
2634
2644
|
}
|
|
2635
|
-
overflowButton.
|
|
2645
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
2646
|
+
overflowButton.toggle();
|
|
2647
|
+
}
|
|
2636
2648
|
};
|
|
2637
2649
|
splitbutton.close = (e) => {
|
|
2638
2650
|
if (item.splitButtonSettings.close) {
|
|
@@ -2640,7 +2652,9 @@ class RibbonSplitButton {
|
|
|
2640
2652
|
}
|
|
2641
2653
|
splitbutton['wrapper'].classList.remove(RIBBON_POPUP_OPEN);
|
|
2642
2654
|
if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
|
|
2643
|
-
overflowButton.
|
|
2655
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
2656
|
+
overflowButton.toggle();
|
|
2657
|
+
}
|
|
2644
2658
|
}
|
|
2645
2659
|
};
|
|
2646
2660
|
}
|
|
@@ -3529,7 +3543,9 @@ class RibbonGroupButton {
|
|
|
3529
3543
|
targetEle.onclick = () => {
|
|
3530
3544
|
if (this.parent.activeLayout === 'Simplified' && targetEle.closest('.e-ribbon-dropdown-group-button').classList.contains(RIBBON_GROUP_BUTTON_OVERFLOW_POPUP)) {
|
|
3531
3545
|
dropdown.toggle();
|
|
3532
|
-
overflowButton.
|
|
3546
|
+
if (overflowButton.element.classList.contains('e-active')) {
|
|
3547
|
+
overflowButton.toggle();
|
|
3548
|
+
}
|
|
3533
3549
|
}
|
|
3534
3550
|
};
|
|
3535
3551
|
}
|
|
@@ -4887,9 +4903,11 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4887
4903
|
}
|
|
4888
4904
|
});
|
|
4889
4905
|
}
|
|
4890
|
-
toggleLayout() {
|
|
4906
|
+
toggleLayout(args) {
|
|
4891
4907
|
this.setProperties({ activeLayout: this.activeLayout === 'Simplified' ? 'Classic' : 'Simplified' }, true);
|
|
4892
4908
|
this.switchLayout();
|
|
4909
|
+
const eventArgs = { activeLayout: this.activeLayout, event: args };
|
|
4910
|
+
this.trigger('ribbonLayoutSwitched', eventArgs);
|
|
4893
4911
|
}
|
|
4894
4912
|
tabCreated() {
|
|
4895
4913
|
if (!this.hideLayoutSwitcher) {
|
|
@@ -6619,10 +6637,10 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6619
6637
|
id: this.tabObj.element.id + COLLAPSE_BUTTON_ID,
|
|
6620
6638
|
attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Layout Switcher', 'role': 'button' }
|
|
6621
6639
|
});
|
|
6622
|
-
this.collapseButton.onclick = () => { this.toggleLayout(); };
|
|
6640
|
+
this.collapseButton.onclick = (e) => { this.toggleLayout(e); };
|
|
6623
6641
|
this.collapseButton.onkeydown = (e) => {
|
|
6624
6642
|
if (e.key === 'Enter') {
|
|
6625
|
-
this.toggleLayout();
|
|
6643
|
+
this.toggleLayout(e);
|
|
6626
6644
|
}
|
|
6627
6645
|
};
|
|
6628
6646
|
this.element.classList.add(RIBBON_COLLAPSIBLE);
|
|
@@ -9231,6 +9249,9 @@ __decorate$l([
|
|
|
9231
9249
|
__decorate$l([
|
|
9232
9250
|
Event()
|
|
9233
9251
|
], Ribbon.prototype, "ribbonCollapsing", void 0);
|
|
9252
|
+
__decorate$l([
|
|
9253
|
+
Event()
|
|
9254
|
+
], Ribbon.prototype, "ribbonLayoutSwitched", void 0);
|
|
9234
9255
|
__decorate$l([
|
|
9235
9256
|
Event()
|
|
9236
9257
|
], Ribbon.prototype, "launcherIconClick", void 0);
|