@syncfusion/ej2-ribbon 34.1.30 → 34.1.31

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 : 34.1.30
3
+ * version : 34.1.31
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": "34.1.30",
3
+ "version": "34.1.31",
4
4
  "description": "Essential JS 2 Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -13,9 +13,9 @@
13
13
  "@syncfusion/ej2-buttons": "~34.1.30",
14
14
  "@syncfusion/ej2-dropdowns": "~34.1.30",
15
15
  "@syncfusion/ej2-lists": "~34.1.30",
16
- "@syncfusion/ej2-navigations": "~34.1.30",
16
+ "@syncfusion/ej2-navigations": "~34.1.31",
17
17
  "@syncfusion/ej2-popups": "~34.1.29",
18
- "@syncfusion/ej2-splitbuttons": "~34.1.29"
18
+ "@syncfusion/ej2-splitbuttons": "~34.1.31"
19
19
  },
20
20
  "devDependencies": {},
21
21
  "keywords": [
@@ -899,6 +899,10 @@ var Ribbon = /** @class */ (function (_super) {
899
899
  if (dropDownPopup) {
900
900
  dropDownPopup.setProperties({ position: { X: isLeft ? 'left' : 'right', Y: isMenu ? 'top' : 'bottom' } }, true);
901
901
  if (isMenu) {
902
+ var target = this.getAppendToElement();
903
+ if (dropdown && dropdown.dropDown && !target.contains(dropdown.dropDown.element)) {
904
+ target.appendChild(dropdown.dropDown.element);
905
+ }
902
906
  dropdown.beforeOpen = function (e) {
903
907
  if (isLeft) {
904
908
  if (item.type === RibbonItemType.Gallery && _this.ribbonGalleryModule) {
@@ -266,10 +266,15 @@ var RibbonGallery = /** @class */ (function () {
266
266
  galleryWrapper.style.width = itemsWidth + 'px';
267
267
  }
268
268
  };
269
- RibbonGallery.prototype.setWrapperStyle = function (popup, popupContainerItems) {
269
+ RibbonGallery.prototype.setWrapperStyle = function (popup, popupContainerItems, isOverflow) {
270
270
  if (popup.width !== 'auto') {
271
271
  popupContainerItems.forEach(function (ele) {
272
- ele.style.flexFlow = 'column wrap';
272
+ if (isOverflow) {
273
+ ele.style.flexFlow = 'column wrap';
274
+ }
275
+ else {
276
+ ele.style.flexFlow = 'wrap';
277
+ }
273
278
  });
274
279
  }
275
280
  };
@@ -516,6 +521,7 @@ var RibbonGallery = /** @class */ (function () {
516
521
  popupButton.classList.add('e-hidden');
517
522
  }
518
523
  var itemProp = getItem(this.parent.tabs, item.id);
524
+ var isGroupOF_1 = itemProp && itemProp.group ? itemProp.group.enableGroupOverflow : false;
519
525
  var iconCss = itemProp && itemProp.group.groupIconCss ? itemProp.group.groupIconCss : '';
520
526
  var content = itemProp && itemProp.group.header ? itemProp.group.header : '';
521
527
  if (!iconCss) {
@@ -550,7 +556,7 @@ var RibbonGallery = /** @class */ (function () {
550
556
  },
551
557
  open: function () {
552
558
  var popupContainerItems = popupContainerEle_1.querySelectorAll('.e-ribbon-gallery-container');
553
- _this.setWrapperStyle(popup_1, popupContainerItems);
559
+ _this.setWrapperStyle(popup_1, popupContainerItems, isGroupOF_1);
554
560
  _this.setFoucsToFirstItem(popupContainerEle_1, true, item.id);
555
561
  if (popup_1.width !== 'auto') {
556
562
  _this.alignGalleryPopupLeft(popupContainerEle_1, buttonEle_1);