@syncfusion/ej2-ribbon 33.2.5 → 34.1.29
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 +108 -9
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +116 -17
- 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/ribbon-model.d.ts +1 -1
- package/src/ribbon/base/ribbon.js +2 -3
- package/src/ribbon/base/utils.js +8 -0
- package/src/ribbon/items/ribbon-colorpicker.js +20 -1
- package/src/ribbon/items/ribbon-combobox.js +30 -1
- package/src/ribbon/items/ribbon-gallery.js +17 -5
- package/src/ribbon/items/ribbon-groupbutton.js +18 -6
- package/src/ribbon/items/ribbon-splitbutton.js +8 -2
- package/src/ribbon/modules/ribbon-filemenu.js +14 -0
- package/styles/bds-lite.css +15 -312
- package/styles/bds-lite.scss +1 -15
- package/styles/bds.css +20 -316
- package/styles/bds.scss +2 -16
- package/styles/bootstrap-dark-lite.css +6 -74
- package/styles/bootstrap-dark-lite.scss +1 -15
- package/styles/bootstrap-dark.css +6 -74
- package/styles/bootstrap-dark.scss +2 -16
- package/styles/bootstrap-lite.css +6 -76
- package/styles/bootstrap-lite.scss +1 -15
- package/styles/bootstrap.css +6 -76
- package/styles/bootstrap.scss +2 -16
- package/styles/bootstrap4-lite.css +7 -127
- package/styles/bootstrap4-lite.scss +1 -15
- package/styles/bootstrap4.css +7 -127
- package/styles/bootstrap4.scss +2 -16
- package/styles/bootstrap5-dark-lite.css +6 -149
- package/styles/bootstrap5-dark-lite.scss +1 -15
- package/styles/bootstrap5-dark.css +11 -149
- package/styles/bootstrap5-dark.scss +2 -16
- package/styles/bootstrap5-lite.css +7 -150
- package/styles/bootstrap5-lite.scss +1 -16
- package/styles/bootstrap5.3-lite.css +7 -318
- package/styles/bootstrap5.3-lite.scss +1 -16
- package/styles/bootstrap5.3.css +13 -403
- package/styles/bootstrap5.3.scss +2 -17
- package/styles/bootstrap5.css +12 -150
- package/styles/bootstrap5.scss +2 -17
- package/styles/fabric-dark-lite.css +6 -50
- package/styles/fabric-dark-lite.scss +1 -16
- package/styles/fabric-dark.css +6 -50
- package/styles/fabric-dark.scss +2 -17
- package/styles/fabric-lite.css +6 -51
- package/styles/fabric-lite.scss +1 -16
- package/styles/fabric.css +6 -51
- package/styles/fabric.scss +2 -17
- package/styles/fluent-dark-lite.css +6 -141
- package/styles/fluent-dark-lite.scss +1 -16
- package/styles/fluent-dark.css +6 -141
- package/styles/fluent-dark.scss +2 -17
- package/styles/fluent-lite.css +6 -141
- package/styles/fluent-lite.scss +1 -16
- package/styles/fluent.css +6 -141
- package/styles/fluent.scss +2 -17
- package/styles/fluent2-lite.css +7 -390
- package/styles/fluent2-lite.scss +1 -16
- package/styles/fluent2.css +7 -476
- package/styles/fluent2.scss +2 -17
- package/styles/highcontrast-light-lite.css +6 -71
- package/styles/highcontrast-light-lite.scss +1 -16
- package/styles/highcontrast-light.css +6 -71
- package/styles/highcontrast-light.scss +2 -17
- package/styles/highcontrast-lite.css +6 -72
- package/styles/highcontrast-lite.scss +1 -16
- package/styles/highcontrast.css +6 -72
- package/styles/highcontrast.scss +2 -17
- package/styles/material-dark-lite.css +7 -211
- package/styles/material-dark-lite.scss +1 -16
- package/styles/material-dark.css +7 -211
- package/styles/material-dark.scss +2 -17
- package/styles/material-lite.css +6 -215
- package/styles/material-lite.scss +1 -15
- package/styles/material.css +6 -215
- package/styles/material.scss +2 -16
- package/styles/material3-dark-lite.css +7 -358
- package/styles/material3-dark-lite.scss +1 -16
- package/styles/material3-dark.css +7 -440
- package/styles/material3-dark.scss +2 -17
- package/styles/material3-lite.css +7 -362
- package/styles/material3-lite.scss +1 -16
- package/styles/material3.css +7 -446
- package/styles/material3.scss +2 -17
- package/styles/ribbon/_all.scss +2 -2
- package/styles/ribbon/_bds-definition.scss +2 -2
- package/styles/ribbon/_bigger.scss +8 -1
- package/styles/ribbon/_bootstrap-dark-definition.scss +1 -2
- package/styles/ribbon/_bootstrap-definition.scss +2 -2
- package/styles/ribbon/_bootstrap4-definition.scss +1 -2
- package/styles/ribbon/_bootstrap5-dark-definition.scss +2 -2
- package/styles/ribbon/_bootstrap5-definition.scss +2 -2
- package/styles/ribbon/_bootstrap5.3-definition.scss +3 -3
- package/styles/ribbon/_fabric-dark-definition.scss +2 -2
- package/styles/ribbon/_fabric-definition.scss +2 -2
- package/styles/ribbon/_fluent-dark-definition.scss +2 -2
- package/styles/ribbon/_fluent-definition.scss +2 -2
- package/styles/ribbon/_fluent2-definition.scss +2 -2
- package/styles/ribbon/_highcontrast-definition.scss +2 -2
- package/styles/ribbon/_highcontrast-light-definition.scss +2 -2
- package/styles/ribbon/_layout.scss +1 -1
- package/styles/ribbon/_material-dark-definition.scss +2 -2
- package/styles/ribbon/_material-definition.scss +2 -2
- package/styles/ribbon/_material3-dark-definition.scss +2 -2
- package/styles/ribbon/_material3-definition.scss +2 -2
- package/styles/ribbon/_tailwind-dark-definition.scss +2 -2
- package/styles/ribbon/_tailwind-definition.scss +2 -2
- package/styles/ribbon/_tailwind3-definition.scss +2 -2
- package/styles/ribbon/_theme.scss +1 -1
- package/styles/ribbon/_variables.scss +2 -0
- package/styles/ribbon/bds.css +20 -316
- package/styles/ribbon/bds.scss +2 -17
- package/styles/ribbon/bootstrap-dark.css +6 -74
- package/styles/ribbon/bootstrap-dark.scss +2 -17
- package/styles/ribbon/bootstrap.css +6 -76
- package/styles/ribbon/bootstrap.scss +2 -17
- package/styles/ribbon/bootstrap4.css +7 -127
- package/styles/ribbon/bootstrap4.scss +2 -17
- package/styles/ribbon/bootstrap5-dark.css +11 -149
- package/styles/ribbon/bootstrap5-dark.scss +2 -17
- package/styles/ribbon/bootstrap5.3.css +13 -403
- package/styles/ribbon/bootstrap5.3.scss +2 -17
- package/styles/ribbon/bootstrap5.css +12 -150
- package/styles/ribbon/bootstrap5.scss +2 -17
- package/styles/ribbon/fabric-dark.css +6 -50
- package/styles/ribbon/fabric-dark.scss +2 -17
- package/styles/ribbon/fabric.css +6 -51
- package/styles/ribbon/fabric.scss +2 -17
- package/styles/ribbon/fluent-dark.css +6 -141
- package/styles/ribbon/fluent-dark.scss +2 -17
- package/styles/ribbon/fluent.css +6 -141
- package/styles/ribbon/fluent.scss +2 -17
- package/styles/ribbon/fluent2.css +7 -476
- package/styles/ribbon/fluent2.scss +2 -17
- package/styles/ribbon/highcontrast-light.css +6 -71
- package/styles/ribbon/highcontrast-light.scss +2 -17
- package/styles/ribbon/highcontrast.css +6 -72
- package/styles/ribbon/highcontrast.scss +2 -17
- package/styles/ribbon/icons/_bds.scss +1 -1
- package/styles/ribbon/icons/_bootstrap-dark.scss +1 -1
- package/styles/ribbon/icons/_bootstrap.scss +1 -1
- package/styles/ribbon/icons/_bootstrap4.scss +1 -1
- package/styles/ribbon/icons/_bootstrap5.3.scss +1 -1
- package/styles/ribbon/icons/_bootstrap5.scss +1 -1
- package/styles/ribbon/icons/_fabric-dark.scss +1 -1
- package/styles/ribbon/icons/_fabric.scss +1 -1
- package/styles/ribbon/icons/_fluent.scss +1 -1
- package/styles/ribbon/icons/_fluent2.scss +1 -1
- package/styles/ribbon/icons/_fusionnew.scss +1 -1
- package/styles/ribbon/icons/_highcontrast.scss +1 -1
- package/styles/ribbon/icons/_material-dark.scss +1 -1
- package/styles/ribbon/icons/_material.scss +1 -1
- package/styles/ribbon/icons/_material3.scss +1 -1
- package/styles/ribbon/icons/_tailwind-dark.scss +1 -1
- package/styles/ribbon/icons/_tailwind.scss +1 -1
- package/styles/ribbon/icons/_tailwind3.scss +1 -1
- package/styles/ribbon/material-dark.css +7 -211
- package/styles/ribbon/material-dark.scss +2 -17
- package/styles/ribbon/material.css +6 -215
- package/styles/ribbon/material.scss +2 -17
- package/styles/ribbon/material3-dark.css +7 -440
- package/styles/ribbon/material3-dark.scss +2 -17
- package/styles/ribbon/material3.css +7 -446
- package/styles/ribbon/material3.scss +2 -17
- package/styles/ribbon/tailwind-dark.css +19 -176
- package/styles/ribbon/tailwind-dark.scss +2 -17
- package/styles/ribbon/tailwind.css +20 -177
- package/styles/ribbon/tailwind.scss +2 -17
- package/styles/ribbon/tailwind3.css +15 -376
- package/styles/ribbon/tailwind3.scss +2 -17
- package/styles/tailwind-dark-lite.css +14 -176
- package/styles/tailwind-dark-lite.scss +1 -16
- package/styles/tailwind-dark.css +19 -176
- package/styles/tailwind-dark.scss +2 -17
- package/styles/tailwind-lite.css +15 -177
- package/styles/tailwind-lite.scss +1 -16
- package/styles/tailwind.css +20 -177
- package/styles/tailwind.scss +2 -17
- package/styles/tailwind3-lite.css +15 -302
- package/styles/tailwind3-lite.scss +1 -16
- package/styles/tailwind3.css +15 -376
- package/styles/tailwind3.scss +2 -17
- package/styles/ribbon/_all.bds.scss +0 -2
- package/styles/ribbon/_all.bootstrap-dark.scss +0 -2
- package/styles/ribbon/_all.bootstrap.scss +0 -2
- package/styles/ribbon/_all.bootstrap4.scss +0 -2
- package/styles/ribbon/_all.bootstrap5-dark.scss +0 -2
- package/styles/ribbon/_all.bootstrap5.3.scss +0 -2
- package/styles/ribbon/_all.bootstrap5.scss +0 -2
- package/styles/ribbon/_all.fabric-dark.scss +0 -2
- package/styles/ribbon/_all.fabric.scss +0 -2
- package/styles/ribbon/_all.fluent-dark.scss +0 -2
- package/styles/ribbon/_all.fluent.scss +0 -2
- package/styles/ribbon/_all.fluent2.scss +0 -2
- package/styles/ribbon/_all.highcontrast-light.scss +0 -2
- package/styles/ribbon/_all.highcontrast.scss +0 -2
- package/styles/ribbon/_all.material-dark.scss +0 -2
- package/styles/ribbon/_all.material.scss +0 -2
- package/styles/ribbon/_all.material3-dark.scss +0 -2
- package/styles/ribbon/_all.material3.scss +0 -2
- package/styles/ribbon/_all.tailwind-dark.scss +0 -2
- package/styles/ribbon/_all.tailwind.scss +0 -2
- package/styles/ribbon/_all.tailwind3.scss +0 -2
- package/styles/ribbon/_bigger.bds.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap-dark.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap4.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap5-dark.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap5.3.scss +0 -3
- package/styles/ribbon/_bigger.bootstrap5.scss +0 -3
- package/styles/ribbon/_bigger.fabric-dark.scss +0 -3
- package/styles/ribbon/_bigger.fabric.scss +0 -3
- package/styles/ribbon/_bigger.fluent-dark.scss +0 -3
- package/styles/ribbon/_bigger.fluent.scss +0 -3
- package/styles/ribbon/_bigger.fluent2.scss +0 -3
- package/styles/ribbon/_bigger.highcontrast-light.scss +0 -3
- package/styles/ribbon/_bigger.highcontrast.scss +0 -3
- package/styles/ribbon/_bigger.material-dark.scss +0 -3
- package/styles/ribbon/_bigger.material.scss +0 -3
- package/styles/ribbon/_bigger.material3-dark.scss +0 -3
- package/styles/ribbon/_bigger.material3.scss +0 -3
- package/styles/ribbon/_bigger.tailwind-dark.scss +0 -3
- package/styles/ribbon/_bigger.tailwind.scss +0 -3
- package/styles/ribbon/_bigger.tailwind3.scss +0 -3
- package/styles/ribbon/_layout.bds.scss +0 -3
- package/styles/ribbon/_layout.bootstrap-dark.scss +0 -3
- package/styles/ribbon/_layout.bootstrap.scss +0 -3
- package/styles/ribbon/_layout.bootstrap4.scss +0 -3
- package/styles/ribbon/_layout.bootstrap5-dark.scss +0 -3
- package/styles/ribbon/_layout.bootstrap5.3.scss +0 -3
- package/styles/ribbon/_layout.bootstrap5.scss +0 -3
- package/styles/ribbon/_layout.fabric-dark.scss +0 -3
- package/styles/ribbon/_layout.fabric.scss +0 -3
- package/styles/ribbon/_layout.fluent-dark.scss +0 -3
- package/styles/ribbon/_layout.fluent.scss +0 -3
- package/styles/ribbon/_layout.fluent2.scss +0 -3
- package/styles/ribbon/_layout.highcontrast-light.scss +0 -3
- package/styles/ribbon/_layout.highcontrast.scss +0 -3
- package/styles/ribbon/_layout.material-dark.scss +0 -3
- package/styles/ribbon/_layout.material.scss +0 -3
- package/styles/ribbon/_layout.material3-dark.scss +0 -3
- package/styles/ribbon/_layout.material3.scss +0 -3
- package/styles/ribbon/_layout.tailwind-dark.scss +0 -3
- package/styles/ribbon/_layout.tailwind.scss +0 -3
- package/styles/ribbon/_layout.tailwind3.scss +0 -3
- package/styles/ribbon/_theme-variables.bds.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap4.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap5-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap5.3.scss +0 -1
- package/styles/ribbon/_theme-variables.bootstrap5.scss +0 -1
- package/styles/ribbon/_theme-variables.fabric-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.fabric.scss +0 -1
- package/styles/ribbon/_theme-variables.fluent-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.fluent.scss +0 -1
- package/styles/ribbon/_theme-variables.fluent2.scss +0 -1
- package/styles/ribbon/_theme-variables.highcontrast-light.scss +0 -1
- package/styles/ribbon/_theme-variables.highcontrast.scss +0 -1
- package/styles/ribbon/_theme-variables.material-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.material.scss +0 -1
- package/styles/ribbon/_theme-variables.material3-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.material3.scss +0 -1
- package/styles/ribbon/_theme-variables.tailwind-dark.scss +0 -1
- package/styles/ribbon/_theme-variables.tailwind.scss +0 -1
- package/styles/ribbon/_theme-variables.tailwind3.scss +0 -1
- package/styles/ribbon/_theme.bds.scss +0 -4
- package/styles/ribbon/_theme.bootstrap-dark.scss +0 -4
- package/styles/ribbon/_theme.bootstrap.scss +0 -4
- package/styles/ribbon/_theme.bootstrap4.scss +0 -4
- package/styles/ribbon/_theme.bootstrap5-dark.scss +0 -4
- package/styles/ribbon/_theme.bootstrap5.3.scss +0 -4
- package/styles/ribbon/_theme.bootstrap5.scss +0 -4
- package/styles/ribbon/_theme.fabric-dark.scss +0 -4
- package/styles/ribbon/_theme.fabric.scss +0 -4
- package/styles/ribbon/_theme.fluent-dark.scss +0 -4
- package/styles/ribbon/_theme.fluent.scss +0 -4
- package/styles/ribbon/_theme.fluent2.scss +0 -4
- package/styles/ribbon/_theme.highcontrast-light.scss +0 -4
- package/styles/ribbon/_theme.highcontrast.scss +0 -4
- package/styles/ribbon/_theme.material-dark.scss +0 -4
- package/styles/ribbon/_theme.material.scss +0 -4
- package/styles/ribbon/_theme.material3-dark.scss +0 -4
- package/styles/ribbon/_theme.material3.scss +0 -4
- package/styles/ribbon/_theme.tailwind-dark.scss +0 -4
- package/styles/ribbon/_theme.tailwind.scss +0 -4
- package/styles/ribbon/_theme.tailwind3.scss +0 -4
|
@@ -1694,7 +1694,16 @@ class RibbonColorPicker {
|
|
|
1694
1694
|
colorPickerSettings.beforeClose.call(this);
|
|
1695
1695
|
}
|
|
1696
1696
|
},
|
|
1697
|
-
beforeOpen:
|
|
1697
|
+
beforeOpen: (e) => {
|
|
1698
|
+
const target = this.parent.getAppendToElement();
|
|
1699
|
+
const splitBtn = colorPicker['splitBtn'];
|
|
1700
|
+
if (splitBtn && splitBtn.dropDown && !target.contains(splitBtn.dropDown.element)) {
|
|
1701
|
+
target.appendChild(splitBtn.dropDown.element);
|
|
1702
|
+
}
|
|
1703
|
+
if (colorPickerSettings.beforeOpen) {
|
|
1704
|
+
colorPickerSettings.beforeOpen.call(this, e);
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1698
1707
|
beforeTileRender: colorPickerSettings.beforeTileRender,
|
|
1699
1708
|
created: colorPickerSettings.created,
|
|
1700
1709
|
change: (e) => {
|
|
@@ -1762,6 +1771,16 @@ class RibbonColorPicker {
|
|
|
1762
1771
|
item.colorPickerSettings.beforeClose.call(this);
|
|
1763
1772
|
}
|
|
1764
1773
|
};
|
|
1774
|
+
colorPickerObj.beforeOpen = (e) => {
|
|
1775
|
+
const target = this.parent.getAppendToElement();
|
|
1776
|
+
const splitBtn = colorPickerObj['splitBtn'];
|
|
1777
|
+
if (splitBtn && splitBtn.dropDown && !target.contains(splitBtn.dropDown.element)) {
|
|
1778
|
+
target.appendChild(splitBtn.dropDown.element);
|
|
1779
|
+
}
|
|
1780
|
+
if (item.colorPickerSettings.beforeOpen) {
|
|
1781
|
+
item.colorPickerSettings.beforeOpen.call(this, e);
|
|
1782
|
+
}
|
|
1783
|
+
};
|
|
1765
1784
|
splitBtn.close = () => {
|
|
1766
1785
|
if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
|
|
1767
1786
|
if (overflowButton.element.classList.contains('e-active')) {
|
|
@@ -1931,7 +1950,21 @@ class RibbonComboBox {
|
|
|
1931
1950
|
text: comboBoxSettings.text,
|
|
1932
1951
|
value: comboBoxSettings.value,
|
|
1933
1952
|
width: comboBoxSettings.width,
|
|
1934
|
-
beforeOpen:
|
|
1953
|
+
beforeOpen: (e) => {
|
|
1954
|
+
requestAnimationFrame(() => {
|
|
1955
|
+
if (!this.parent) {
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
const target = this.parent.getAppendToElement();
|
|
1959
|
+
const popupEle = document.getElementById(inputEle.id + '_popup');
|
|
1960
|
+
if (popupEle && !target.contains(popupEle)) {
|
|
1961
|
+
target.appendChild(popupEle);
|
|
1962
|
+
}
|
|
1963
|
+
});
|
|
1964
|
+
if (comboBoxSettings.beforeOpen) {
|
|
1965
|
+
comboBoxSettings.beforeOpen.call(this, e);
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1935
1968
|
open: comboBoxSettings.open,
|
|
1936
1969
|
htmlAttributes: comboBoxSettings.htmlAttributes,
|
|
1937
1970
|
close: (e) => {
|
|
@@ -1967,6 +2000,21 @@ class RibbonComboBox {
|
|
|
1967
2000
|
const inputEle = itemEle.querySelector('#' + item.id);
|
|
1968
2001
|
inputEle.setAttribute('data-control', item.type.toString());
|
|
1969
2002
|
const comboBoxObj = getComponent(inputEle, ComboBox);
|
|
2003
|
+
comboBoxObj.beforeOpen = (e) => {
|
|
2004
|
+
requestAnimationFrame(() => {
|
|
2005
|
+
if (!this.parent) {
|
|
2006
|
+
return;
|
|
2007
|
+
}
|
|
2008
|
+
const target = this.parent.getAppendToElement();
|
|
2009
|
+
const popupEle = document.getElementById(item.id + '_popup');
|
|
2010
|
+
if (popupEle && !target.contains(popupEle)) {
|
|
2011
|
+
target.appendChild(popupEle);
|
|
2012
|
+
}
|
|
2013
|
+
});
|
|
2014
|
+
if (item.comboBoxSettings.beforeOpen) {
|
|
2015
|
+
item.comboBoxSettings.beforeOpen.call(this, e);
|
|
2016
|
+
}
|
|
2017
|
+
};
|
|
1970
2018
|
comboBoxObj.setProperties({ cssClass: comboBoxObj.cssClass + SPACE + RIBBON_POPUP_CONTROL });
|
|
1971
2019
|
comboBoxObj.close = (e) => {
|
|
1972
2020
|
const target = e.event ? e.event.target : null;
|
|
@@ -2660,9 +2708,15 @@ class RibbonSplitButton {
|
|
|
2660
2708
|
}
|
|
2661
2709
|
};
|
|
2662
2710
|
let target;
|
|
2663
|
-
splitbutton.beforeOpen = (
|
|
2711
|
+
splitbutton.beforeOpen = () => {
|
|
2712
|
+
const splitBtn = getComponent(splitButtonEle, SplitButton);
|
|
2713
|
+
const popupEl = splitBtn && splitBtn.dropDown ? splitBtn.dropDown.element : null;
|
|
2714
|
+
const target = this.parent.getAppendToElement();
|
|
2715
|
+
if (popupEl && !target.contains(popupEl)) {
|
|
2716
|
+
target.appendChild(popupEl);
|
|
2717
|
+
}
|
|
2664
2718
|
if (item.splitButtonSettings.beforeOpen) {
|
|
2665
|
-
item.splitButtonSettings.beforeOpen.call(this
|
|
2719
|
+
item.splitButtonSettings.beforeOpen.call(this);
|
|
2666
2720
|
}
|
|
2667
2721
|
};
|
|
2668
2722
|
splitbutton.beforeClose = (e) => {
|
|
@@ -3101,6 +3155,7 @@ function createTooltip(element, ribbon) {
|
|
|
3101
3155
|
const ribbonTooltip = new Tooltip({
|
|
3102
3156
|
target: '.' + RIBBON_TOOLTIP_TARGET,
|
|
3103
3157
|
beforeRender: beforeTooltipRender.bind(this),
|
|
3158
|
+
beforeOpen: beforeTooltipOpen.bind(this),
|
|
3104
3159
|
windowCollision: true
|
|
3105
3160
|
});
|
|
3106
3161
|
ribbonTooltip.appendTo(element);
|
|
@@ -3112,6 +3167,13 @@ function createTooltip(element, ribbon) {
|
|
|
3112
3167
|
function beforeTooltipRender(args) {
|
|
3113
3168
|
setToolTipContent(args, ribbonTooltip, ribbon.tooltipData);
|
|
3114
3169
|
}
|
|
3170
|
+
function beforeTooltipOpen(args) {
|
|
3171
|
+
const target = ribbon.getAppendToElement();
|
|
3172
|
+
const tooltipPopup = args.element;
|
|
3173
|
+
if (tooltipPopup && !target.contains(tooltipPopup)) {
|
|
3174
|
+
target.appendChild(tooltipPopup);
|
|
3175
|
+
}
|
|
3176
|
+
}
|
|
3115
3177
|
}
|
|
3116
3178
|
/**
|
|
3117
3179
|
* Destroys tooltip
|
|
@@ -3284,7 +3346,13 @@ class RibbonGroupButton {
|
|
|
3284
3346
|
target: btnContainerEle,
|
|
3285
3347
|
enableRtl: this.parent.enableRtl,
|
|
3286
3348
|
cssClass: 'e-ribbon-dropdown-group-button',
|
|
3287
|
-
disabled: item.disabled
|
|
3349
|
+
disabled: item.disabled,
|
|
3350
|
+
beforeOpen: () => {
|
|
3351
|
+
const target = this.parent.getAppendToElement();
|
|
3352
|
+
if (dropdown && dropdown.dropDown && !target.contains(dropdown.dropDown.element)) {
|
|
3353
|
+
target.appendChild(dropdown.dropDown.element);
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3288
3356
|
}, buttonEle);
|
|
3289
3357
|
if (groupBtnSettings.header) {
|
|
3290
3358
|
const dropDownPopup = dropdown.dropDown;
|
|
@@ -3459,7 +3527,13 @@ class RibbonGroupButton {
|
|
|
3459
3527
|
target: containerEle,
|
|
3460
3528
|
enableRtl: this.parent.enableRtl,
|
|
3461
3529
|
cssClass: 'e-ribbon-dropdown-group-button',
|
|
3462
|
-
disabled: item.disabled
|
|
3530
|
+
disabled: item.disabled,
|
|
3531
|
+
beforeOpen: () => {
|
|
3532
|
+
const target = this.parent.getAppendToElement();
|
|
3533
|
+
if (dropdown && dropdown.dropDown && !target.contains(dropdown.dropDown.element)) {
|
|
3534
|
+
target.appendChild(dropdown.dropDown.element);
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3463
3537
|
}, buttonEle);
|
|
3464
3538
|
if (groupBtnSettings.header) {
|
|
3465
3539
|
const dropDownPopup = dropdown.dropDown;
|
|
@@ -4084,7 +4158,8 @@ class RibbonGallery {
|
|
|
4084
4158
|
className: 'e-ribbon-gallery-popup',
|
|
4085
4159
|
id: item.id + '_galleryPopup'
|
|
4086
4160
|
});
|
|
4087
|
-
|
|
4161
|
+
const appendTarget = this.parent.getAppendToElement();
|
|
4162
|
+
appendTarget.append(gallerypopupElement);
|
|
4088
4163
|
const galleryPopup = new Popup(gallerypopupElement, {
|
|
4089
4164
|
relateTo: buttonEle,
|
|
4090
4165
|
content: popupContainer,
|
|
@@ -4195,6 +4270,13 @@ class RibbonGallery {
|
|
|
4195
4270
|
enableRtl: this.parent.enableRtl,
|
|
4196
4271
|
cssClass: 'e-ribbon-gallery-dropdown',
|
|
4197
4272
|
disabled: item.disabled,
|
|
4273
|
+
beforeOpen: () => {
|
|
4274
|
+
const target = this.parent.getAppendToElement();
|
|
4275
|
+
const dropDownPopup = dropdown && dropdown.dropDown ? dropdown.dropDown.element : null;
|
|
4276
|
+
if (dropDownPopup && !target.contains(dropDownPopup)) {
|
|
4277
|
+
target.appendChild(dropDownPopup);
|
|
4278
|
+
}
|
|
4279
|
+
},
|
|
4198
4280
|
open: () => {
|
|
4199
4281
|
const popupContainerItems = popupContainerEle.querySelectorAll('.e-ribbon-gallery-container');
|
|
4200
4282
|
this.setWrapperStyle(popup, popupContainerItems);
|
|
@@ -4319,6 +4401,10 @@ class RibbonGallery {
|
|
|
4319
4401
|
if (isCancelled) {
|
|
4320
4402
|
return;
|
|
4321
4403
|
}
|
|
4404
|
+
const target = this.parent.getAppendToElement();
|
|
4405
|
+
if (!target.contains(popupEle)) {
|
|
4406
|
+
target.appendChild(popupEle);
|
|
4407
|
+
}
|
|
4322
4408
|
popup.show();
|
|
4323
4409
|
this.checkCollision(popup, popupEle);
|
|
4324
4410
|
const buttonEle = document.querySelector('#' + itemID + '_popupButton');
|
|
@@ -4844,7 +4930,7 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
4844
4930
|
this.scrollModule.scrollStep = scrollEle.offsetWidth;
|
|
4845
4931
|
}
|
|
4846
4932
|
if (this.activeLayout === 'Simplified') {
|
|
4847
|
-
const activePopups = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active');
|
|
4933
|
+
const activePopups = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active[aria-expanded="true"], .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active[aria-expanded="true"]');
|
|
4848
4934
|
const colorPickerPopups = document.querySelectorAll('.e-ribbon .e-colorpicker-wrapper.e-ribbon-control.e-ribbon-open .e-colorpicker, .e-ribbon-group-overflow-ddb .e-colorpicker-wrapper.e-ribbon-control.e-ribbon-open .e-colorpicker');
|
|
4849
4935
|
activePopups.forEach((popup) => {
|
|
4850
4936
|
const dropDownBtn = getInstance(popup, DropDownButton);
|
|
@@ -9206,7 +9292,6 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
|
|
|
9206
9292
|
super.destroy();
|
|
9207
9293
|
this.tabObj.destroy();
|
|
9208
9294
|
this.tabObj = undefined;
|
|
9209
|
-
this.l10n = null;
|
|
9210
9295
|
this.initialPropsData = {};
|
|
9211
9296
|
this.hiddenGroups = [];
|
|
9212
9297
|
this.hiddenElements = {};
|
|
@@ -9506,6 +9591,13 @@ class RibbonFileMenu {
|
|
|
9506
9591
|
if (!isOpen && args.event && args.event.target.closest('.e-ribbon-menu')) {
|
|
9507
9592
|
args.cancel = true;
|
|
9508
9593
|
}
|
|
9594
|
+
if (isOpen && this.fileMenuDDB && this.fileMenuDDB.dropDown) {
|
|
9595
|
+
const target = this.parent.getAppendToElement();
|
|
9596
|
+
const popupEl = this.fileMenuDDB.dropDown.element;
|
|
9597
|
+
if (popupEl && !target.contains(popupEl)) {
|
|
9598
|
+
target.appendChild(popupEl);
|
|
9599
|
+
}
|
|
9600
|
+
}
|
|
9509
9601
|
const event = isOpen ? this.parent.fileMenu.beforeOpen :
|
|
9510
9602
|
this.parent.fileMenu.beforeClose;
|
|
9511
9603
|
if (event) {
|
|
@@ -9566,6 +9658,13 @@ class RibbonFileMenu {
|
|
|
9566
9658
|
}, this);
|
|
9567
9659
|
}
|
|
9568
9660
|
menuBeforeEvent(isOpen, args) {
|
|
9661
|
+
if (isOpen) {
|
|
9662
|
+
const target = this.parent.getAppendToElement();
|
|
9663
|
+
const popup = args.element && args.element.closest('.e-popup');
|
|
9664
|
+
if (popup && !target.contains(popup)) {
|
|
9665
|
+
target.appendChild(popup);
|
|
9666
|
+
}
|
|
9667
|
+
}
|
|
9569
9668
|
const event = isOpen ? this.parent.fileMenu.beforeOpen :
|
|
9570
9669
|
this.parent.fileMenu.beforeClose;
|
|
9571
9670
|
if (event) {
|