@syncfusion/ej2-ribbon 33.2.4 → 33.2.10

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.2.4
3
+ * version : 33.2.10
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-ribbon",
3
- "version": "33.2.4",
3
+ "version": "33.2.10",
4
4
  "description": "Essential JS 2 Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,12 +10,12 @@
10
10
  "typings": "index.d.ts",
11
11
  "dependencies": {
12
12
  "@syncfusion/ej2-base": "~33.2.3",
13
- "@syncfusion/ej2-buttons": "~33.2.3",
14
- "@syncfusion/ej2-dropdowns": "~33.2.4",
13
+ "@syncfusion/ej2-buttons": "~33.2.5",
14
+ "@syncfusion/ej2-dropdowns": "~33.2.10",
15
15
  "@syncfusion/ej2-lists": "~33.2.3",
16
- "@syncfusion/ej2-navigations": "~33.2.4",
17
- "@syncfusion/ej2-popups": "~33.2.3",
18
- "@syncfusion/ej2-splitbuttons": "~33.2.3"
16
+ "@syncfusion/ej2-navigations": "~33.2.10",
17
+ "@syncfusion/ej2-popups": "~33.2.7",
18
+ "@syncfusion/ej2-splitbuttons": "~33.2.6"
19
19
  },
20
20
  "devDependencies": {},
21
21
  "keywords": [
@@ -290,6 +290,7 @@ export declare class Ribbon extends Component<HTMLElement> implements INotifyPro
290
290
  * @hidden
291
291
  */
292
292
  protected requiredModules(): ModuleDeclaration[];
293
+ getAppendToElement(): HTMLElement;
293
294
  private initialize;
294
295
  private initializeLocale;
295
296
  private wireEvents;
@@ -124,6 +124,16 @@ var Ribbon = /** @class */ (function (_super) {
124
124
  }
125
125
  return modules;
126
126
  };
127
+ Ribbon.prototype.getAppendToElement = function () {
128
+ if (this.isAngular) {
129
+ var cdkPane = this.element.closest('.cdk-overlay-pane');
130
+ var popoverEl = this.element.closest('[popover]');
131
+ if (cdkPane && popoverEl) {
132
+ return cdkPane;
133
+ }
134
+ }
135
+ return document.body;
136
+ };
127
137
  Ribbon.prototype.initialize = function () {
128
138
  this.element.id = this.element.id || getUniqueID('e-' + this.getModuleName());
129
139
  this.initializeLocale();
@@ -405,7 +415,7 @@ var Ribbon = /** @class */ (function (_super) {
405
415
  this.scrollModule.scrollStep = scrollEle.offsetWidth;
406
416
  }
407
417
  if (this.activeLayout === 'Simplified') {
408
- var activePopups = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active');
418
+ var 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"]');
409
419
  var 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');
410
420
  activePopups.forEach(function (popup) {
411
421
  var dropDownBtn = getInstance(popup, DropDownButton);
@@ -2126,6 +2136,10 @@ var Ribbon = /** @class */ (function (_super) {
2126
2136
  enableRtl: this.enableRtl,
2127
2137
  enablePersistence: this.enablePersistence,
2128
2138
  beforeOpen: function (args) {
2139
+ var target = _this.getAppendToElement();
2140
+ if (overflowDDB && overflowDDB.dropDown && !target.contains(overflowDDB.dropDown.element)) {
2141
+ target.appendChild(overflowDDB.dropDown.element);
2142
+ }
2129
2143
  var eventArgs = { element: args.element, event: args.event, cancel: args.cancel };
2130
2144
  _this.trigger('overflowPopupOpen', eventArgs, function (ribbonArgs) {
2131
2145
  if (ribbonArgs.cancel) {
@@ -52,7 +52,16 @@ var RibbonDropDown = /** @class */ (function () {
52
52
  }
53
53
  },
54
54
  beforeItemRender: dropDownSettings.beforeItemRender,
55
- beforeOpen: dropDownSettings.beforeOpen,
55
+ beforeOpen: function (e) {
56
+ var ddb = getComponent(buttonEle, DropDownButton);
57
+ var target = _this.parent.getAppendToElement();
58
+ if (ddb && ddb.dropDown && !target.contains(ddb.dropDown.element)) {
59
+ target.appendChild(ddb.dropDown.element);
60
+ }
61
+ if (dropDownSettings.beforeOpen) {
62
+ dropDownSettings.beforeOpen.call(_this, e);
63
+ }
64
+ },
56
65
  close: function (e) {
57
66
  if (dropDownSettings.close) {
58
67
  dropDownSettings.close.call(_this, e);
@@ -158,6 +167,12 @@ var RibbonDropDown = /** @class */ (function () {
158
167
  cssClass: VERTICAL_DDB + SPACE + RIBBON_GROUP_OVERFLOW_DDB,
159
168
  iconPosition: 'Top',
160
169
  content: name,
170
+ beforeOpen: function () {
171
+ var target = _this.parent.getAppendToElement();
172
+ if (dropdown && dropdown.dropDown && !target.contains(dropdown.dropDown.element)) {
173
+ target.appendChild(dropdown.dropDown.element);
174
+ }
175
+ },
161
176
  beforeClose: function (args) {
162
177
  args.cancel = !isNullOrUndefined(args.event && closest(args.event.target, '.' + RIBBON_POPUP_CONTROL));
163
178
  }
@@ -49,7 +49,16 @@ var RibbonSplitButton = /** @class */ (function () {
49
49
  }
50
50
  },
51
51
  beforeItemRender: splitButtonSettings.beforeItemRender,
52
- beforeOpen: splitButtonSettings.beforeOpen,
52
+ beforeOpen: function () {
53
+ var popupEl = splitbutton.dropDown.element;
54
+ var target = _this.parent.getAppendToElement();
55
+ if (popupEl && !target.contains(popupEl)) {
56
+ target.appendChild(popupEl);
57
+ }
58
+ if (splitButtonSettings.beforeOpen) {
59
+ splitButtonSettings.beforeOpen.call(_this);
60
+ }
61
+ },
53
62
  close: function () {
54
63
  splitbutton['wrapper'].classList.remove(RIBBON_POPUP_OPEN);
55
64
  if (splitButtonSettings.close) {