@syncfusion/ej2-ribbon 26.1.35 → 26.1.40
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 +34 -10
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +34 -10
- 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 +10 -10
- package/src/ribbon/base/ribbon.js +10 -2
- 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/bootstrap-dark.css +25 -0
- package/styles/bootstrap.css +25 -0
- package/styles/bootstrap4.css +25 -0
- package/styles/bootstrap5-dark.css +25 -0
- package/styles/bootstrap5.css +25 -0
- package/styles/fabric-dark.css +25 -0
- package/styles/fabric.css +25 -0
- package/styles/fluent-dark.css +25 -0
- package/styles/fluent.css +25 -0
- package/styles/fluent2.css +63 -38
- package/styles/highcontrast-light.css +25 -0
- package/styles/highcontrast.css +25 -0
- package/styles/material-dark.css +25 -0
- package/styles/material.css +25 -0
- package/styles/material3-dark.css +25 -0
- package/styles/material3.css +25 -0
- package/styles/ribbon/_bds-definition.scss +2 -0
- package/styles/ribbon/_bootstrap-dark-definition.scss +2 -0
- package/styles/ribbon/_bootstrap-definition.scss +2 -0
- package/styles/ribbon/_bootstrap4-definition.scss +2 -0
- package/styles/ribbon/_bootstrap5-definition.scss +2 -0
- package/styles/ribbon/_bootstrap5.3-definition.scss +2 -0
- package/styles/ribbon/_fabric-dark-definition.scss +2 -0
- package/styles/ribbon/_fabric-definition.scss +2 -0
- package/styles/ribbon/_fluent-definition.scss +2 -0
- package/styles/ribbon/_fluent2-definition.scss +3 -1
- package/styles/ribbon/_fusionnew-definition.scss +2 -0
- package/styles/ribbon/_highcontrast-definition.scss +2 -0
- package/styles/ribbon/_highcontrast-light-definition.scss +2 -0
- package/styles/ribbon/_layout.scss +12 -0
- package/styles/ribbon/_material-dark-definition.scss +2 -0
- package/styles/ribbon/_material-definition.scss +2 -0
- package/styles/ribbon/_material3-definition.scss +2 -0
- package/styles/ribbon/_tailwind-definition.scss +2 -0
- package/styles/ribbon/bootstrap-dark.css +25 -0
- package/styles/ribbon/bootstrap.css +25 -0
- package/styles/ribbon/bootstrap4.css +25 -0
- package/styles/ribbon/bootstrap5-dark.css +25 -0
- package/styles/ribbon/bootstrap5.css +25 -0
- package/styles/ribbon/fabric-dark.css +25 -0
- package/styles/ribbon/fabric.css +25 -0
- package/styles/ribbon/fluent-dark.css +25 -0
- package/styles/ribbon/fluent.css +25 -0
- package/styles/ribbon/fluent2.css +63 -38
- package/styles/ribbon/highcontrast-light.css +25 -0
- package/styles/ribbon/highcontrast.css +25 -0
- package/styles/ribbon/material-dark.css +25 -0
- package/styles/ribbon/material.css +25 -0
- package/styles/ribbon/material3-dark.css +25 -0
- package/styles/ribbon/material3.css +25 -0
- package/styles/ribbon/tailwind-dark.css +25 -0
- package/styles/ribbon/tailwind.css +25 -0
- package/styles/tailwind-dark.css +25 -0
- package/styles/tailwind.css +25 -0
|
@@ -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
|
}
|
|
@@ -4903,6 +4919,11 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4903
4919
|
const selectedTabId = e.selectedItem.getAttribute('data-id');
|
|
4904
4920
|
let selectedIndex = getIndex(this.tabs, ((tab) => (tab.id === selectedTabId)));
|
|
4905
4921
|
selectedIndex = selectedIndex === -1 ? this.selectedTab : selectedIndex;
|
|
4922
|
+
const selectedContent = this.tabObj.items[parseInt(selectedIndex.toString(), 10)].content;
|
|
4923
|
+
if ((!selectedContent.querySelector('.' + RIBBON_GROUP)) && (this.tabs[parseInt(selectedIndex.toString(), 10)].groups.length !== 0)) {
|
|
4924
|
+
const elements = this.createGroups(this.tabs[parseInt(selectedIndex.toString(), 10)].groups, selectedIndex);
|
|
4925
|
+
append(elements, selectedContent);
|
|
4926
|
+
}
|
|
4906
4927
|
const isContextual = this.isContextualTab(selectedTabId);
|
|
4907
4928
|
this.updateSelectedState(selectedTabId);
|
|
4908
4929
|
const eventArgs = { previousIndex: this.selectedTab, selectedIndex: selectedIndex, isContextual: isContextual };
|
|
@@ -4924,7 +4945,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4924
4945
|
if (this.ribbonGalleryModule) {
|
|
4925
4946
|
this.ribbonGalleryModule.checkAvailableHeight(e.selectedContent.firstChild);
|
|
4926
4947
|
}
|
|
4927
|
-
this.checkOverflow(selectedIndex,
|
|
4948
|
+
this.checkOverflow(selectedIndex, selectedContent);
|
|
4928
4949
|
if (this.activeLayout === 'Simplified' && this.overflowDDB) {
|
|
4929
4950
|
const overflowTarget = this.overflowDDB.target;
|
|
4930
4951
|
const ofTabContainer = overflowTarget.querySelector('.' + RIBBON_TAB_ACTIVE);
|
|
@@ -6311,7 +6332,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
6311
6332
|
}
|
|
6312
6333
|
ribbonTabSelecting(e) {
|
|
6313
6334
|
this.currentControlIndex = 0;
|
|
6314
|
-
const nextTabId = e.selectingItem.getAttribute('data-id');
|
|
6335
|
+
const nextTabId = e.selectingItem ? e.selectingItem.getAttribute('data-id') : null;
|
|
6315
6336
|
const previousTabId = e.previousItem.getAttribute('data-id');
|
|
6316
6337
|
let nextIndex = getIndex(this.tabs, ((tab) => (tab.id === nextTabId)));
|
|
6317
6338
|
const isContextual = this.isContextualTab(nextTabId);
|
|
@@ -7648,6 +7669,9 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
7648
7669
|
if (index === -1) {
|
|
7649
7670
|
return;
|
|
7650
7671
|
}
|
|
7672
|
+
const tbItems = this.tabObj.items[parseInt(index.toString(), 10)].content;
|
|
7673
|
+
this.tabObj.element.querySelector('#' + tabId + HEADER_ID).classList[value ? 'remove' : 'add']('e-disabled');
|
|
7674
|
+
tbItems.classList[value ? 'remove' : 'add']('e-disabled');
|
|
7651
7675
|
this.tabObj.enableTab(index, value);
|
|
7652
7676
|
}
|
|
7653
7677
|
/**
|