@syncfusion/ej2-ribbon 28.2.3 → 29.1.34

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.
Files changed (102) hide show
  1. package/README.md +1 -1
  2. package/dist/ej2-ribbon.umd.min.js +2 -2
  3. package/dist/ej2-ribbon.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-ribbon.es2015.js +42 -13
  5. package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
  6. package/dist/es6/ej2-ribbon.es5.js +42 -13
  7. package/dist/es6/ej2-ribbon.es5.js.map +1 -1
  8. package/dist/global/ej2-ribbon.min.js +2 -2
  9. package/dist/global/ej2-ribbon.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +21 -23
  12. package/src/ribbon/items/ribbon-button.js +3 -1
  13. package/src/ribbon/items/ribbon-checkbox.js +3 -1
  14. package/src/ribbon/items/ribbon-colorpicker.js +3 -1
  15. package/src/ribbon/items/ribbon-dropdown.js +7 -1
  16. package/src/ribbon/items/ribbon-splitbutton.js +7 -1
  17. package/src/ribbon/modules/ribbon-keytip.d.ts +1 -0
  18. package/src/ribbon/modules/ribbon-keytip.js +19 -8
  19. package/styles/bds-lite.css +546 -451
  20. package/styles/bds.css +709 -590
  21. package/styles/bootstrap-dark-lite.css +531 -472
  22. package/styles/bootstrap-dark.css +694 -611
  23. package/styles/bootstrap-lite.css +511 -452
  24. package/styles/bootstrap.css +674 -591
  25. package/styles/bootstrap4-lite.css +517 -458
  26. package/styles/bootstrap4.css +680 -597
  27. package/styles/bootstrap5-dark-lite.css +559 -500
  28. package/styles/bootstrap5-dark.css +722 -639
  29. package/styles/bootstrap5-lite.css +539 -480
  30. package/styles/bootstrap5.3-lite.css +518 -459
  31. package/styles/bootstrap5.3.css +683 -600
  32. package/styles/bootstrap5.css +702 -619
  33. package/styles/fabric-dark-lite.css +527 -468
  34. package/styles/fabric-dark.css +690 -607
  35. package/styles/fabric-lite.css +518 -459
  36. package/styles/fabric.css +681 -598
  37. package/styles/fluent-dark-lite.css +517 -458
  38. package/styles/fluent-dark.css +680 -597
  39. package/styles/fluent-lite.css +517 -458
  40. package/styles/fluent.css +680 -597
  41. package/styles/fluent2-lite.css +530 -469
  42. package/styles/fluent2.css +721 -636
  43. package/styles/highcontrast-light-lite.css +514 -451
  44. package/styles/highcontrast-light.css +677 -590
  45. package/styles/highcontrast-lite.css +514 -451
  46. package/styles/highcontrast.css +677 -590
  47. package/styles/material-dark-lite.css +512 -453
  48. package/styles/material-dark.css +676 -593
  49. package/styles/material-lite.css +511 -452
  50. package/styles/material.css +674 -591
  51. package/styles/material3-dark-lite.css +511 -452
  52. package/styles/material3-dark.css +674 -591
  53. package/styles/material3-lite.css +511 -452
  54. package/styles/material3.css +674 -591
  55. package/styles/ribbon/_bds-definition.scss +6 -1
  56. package/styles/ribbon/_bigger.scss +79 -56
  57. package/styles/ribbon/_bootstrap-dark-definition.scss +10 -3
  58. package/styles/ribbon/_bootstrap-definition.scss +7 -2
  59. package/styles/ribbon/_bootstrap4-definition.scss +12 -5
  60. package/styles/ribbon/_bootstrap5-definition.scss +7 -2
  61. package/styles/ribbon/_bootstrap5.3-definition.scss +10 -5
  62. package/styles/ribbon/_fabric-dark-definition.scss +7 -2
  63. package/styles/ribbon/_fabric-definition.scss +7 -2
  64. package/styles/ribbon/_fluent-definition.scss +7 -2
  65. package/styles/ribbon/_fluent2-definition.scss +8 -3
  66. package/styles/ribbon/_fusionnew-definition.scss +6 -1
  67. package/styles/ribbon/_highcontrast-definition.scss +7 -2
  68. package/styles/ribbon/_highcontrast-light-definition.scss +7 -2
  69. package/styles/ribbon/_layout.scss +100 -58
  70. package/styles/ribbon/_material-dark-definition.scss +9 -4
  71. package/styles/ribbon/_material-definition.scss +7 -2
  72. package/styles/ribbon/_material3-definition.scss +7 -2
  73. package/styles/ribbon/_tailwind-definition.scss +7 -2
  74. package/styles/ribbon/_tailwind3-definition.scss +13 -8
  75. package/styles/ribbon/_theme.scss +108 -51
  76. package/styles/ribbon/bds.css +709 -590
  77. package/styles/ribbon/bootstrap-dark.css +694 -611
  78. package/styles/ribbon/bootstrap.css +674 -591
  79. package/styles/ribbon/bootstrap4.css +680 -597
  80. package/styles/ribbon/bootstrap5-dark.css +722 -639
  81. package/styles/ribbon/bootstrap5.3.css +683 -600
  82. package/styles/ribbon/bootstrap5.css +702 -619
  83. package/styles/ribbon/fabric-dark.css +690 -607
  84. package/styles/ribbon/fabric.css +681 -598
  85. package/styles/ribbon/fluent-dark.css +680 -597
  86. package/styles/ribbon/fluent.css +680 -597
  87. package/styles/ribbon/fluent2.css +721 -636
  88. package/styles/ribbon/highcontrast-light.css +677 -590
  89. package/styles/ribbon/highcontrast.css +677 -590
  90. package/styles/ribbon/material-dark.css +676 -593
  91. package/styles/ribbon/material.css +674 -591
  92. package/styles/ribbon/material3-dark.css +674 -591
  93. package/styles/ribbon/material3.css +674 -591
  94. package/styles/ribbon/tailwind-dark.css +710 -591
  95. package/styles/ribbon/tailwind.css +710 -591
  96. package/styles/ribbon/tailwind3.css +716 -597
  97. package/styles/tailwind-dark-lite.css +547 -452
  98. package/styles/tailwind-dark.css +710 -591
  99. package/styles/tailwind-lite.css +547 -452
  100. package/styles/tailwind.css +710 -591
  101. package/styles/tailwind3-lite.css +553 -458
  102. package/styles/tailwind3.css +716 -597
@@ -1839,7 +1839,9 @@ var RibbonButton = /** @__PURE__ @class */ (function () {
1839
1839
  return;
1840
1840
  }
1841
1841
  var buttonObj = getComponent(buttonEle, Button);
1842
- buttonObj.click();
1842
+ if (!buttonObj.disabled) {
1843
+ buttonObj.click();
1844
+ }
1843
1845
  };
1844
1846
  /**
1845
1847
  * Updates the button properties.
@@ -2000,7 +2002,9 @@ var RibbonCheckBox = /** @__PURE__ @class */ (function () {
2000
2002
  return;
2001
2003
  }
2002
2004
  var checkBoxObj = getComponent(inputEle, CheckBox);
2003
- checkBoxObj.click();
2005
+ if (!checkBoxObj.disabled) {
2006
+ checkBoxObj.click();
2007
+ }
2004
2008
  };
2005
2009
  /**
2006
2010
  * Updates the checkbox.
@@ -2213,7 +2217,9 @@ var RibbonColorPicker = /** @__PURE__ @class */ (function () {
2213
2217
  if (!colorPickerObj) {
2214
2218
  return;
2215
2219
  }
2216
- colorPickerObj.toggle();
2220
+ if (!colorPickerObj.disabled) {
2221
+ colorPickerObj.toggle();
2222
+ }
2217
2223
  };
2218
2224
  /**
2219
2225
  * Updates the colorpicker properties.
@@ -2849,7 +2855,13 @@ var RibbonDropDown = /** @__PURE__ @class */ (function () {
2849
2855
  * @returns {void}
2850
2856
  */
2851
2857
  RibbonDropDown.prototype.toggle = function (controlId) {
2852
- this.getDropDownObj(controlId).toggle();
2858
+ var dropdownObj = this.getDropDownObj(controlId);
2859
+ if (!dropdownObj) {
2860
+ return;
2861
+ }
2862
+ if (!dropdownObj.disabled) {
2863
+ dropdownObj.toggle();
2864
+ }
2853
2865
  };
2854
2866
  /**
2855
2867
  * Updates the dropdown.
@@ -3122,7 +3134,13 @@ var RibbonSplitButton = /** @__PURE__ @class */ (function () {
3122
3134
  * @returns {void}
3123
3135
  */
3124
3136
  RibbonSplitButton.prototype.toggle = function (controlId) {
3125
- this.getSplitButtonObj(controlId).toggle();
3137
+ var splitBtnObj = this.getSplitButtonObj(controlId);
3138
+ if (!splitBtnObj) {
3139
+ return;
3140
+ }
3141
+ if (!splitBtnObj.disabled) {
3142
+ splitBtnObj.toggle();
3143
+ }
3126
3144
  };
3127
3145
  /**
3128
3146
  * Updates the splitbutton.
@@ -11067,7 +11085,8 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
11067
11085
  if ((isPopUpItem && isPopUpPresent) || !isPopUpItem) {
11068
11086
  var keytipElement = this.parent.createElement('div', {
11069
11087
  className: RIBBON_KEYTIP,
11070
- id: id + RIBBON_KEYTIP_ID
11088
+ id: id + RIBBON_KEYTIP_ID,
11089
+ attrs: { role: 'dialog', 'aria-label': 'ribbon-keytip' }
11071
11090
  });
11072
11091
  document.body.append(keytipElement);
11073
11092
  var keytipPopup = new Popup(keytipElement, {
@@ -11076,7 +11095,8 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
11076
11095
  collision: { X: 'fit', Y: 'flip' },
11077
11096
  targetType: 'relative',
11078
11097
  position: { X: xOffset, Y: yOffset },
11079
- enableRtl: this.parent.enableRtl
11098
+ enableRtl: this.parent.enableRtl,
11099
+ actionOnScroll: 'hide'
11080
11100
  });
11081
11101
  keytipPopup.show();
11082
11102
  this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset);
@@ -11241,24 +11261,30 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
11241
11261
  break;
11242
11262
  case 'combobox': {
11243
11263
  var itemEle_1 = document.querySelector('#' + itemID);
11244
- setTimeout(function () {
11245
- itemEle_1.focus();
11246
- }, 100);
11264
+ if (this.isInteractableElement(itemEle_1)) {
11265
+ setTimeout(function () {
11266
+ itemEle_1.focus();
11267
+ }, 100);
11268
+ }
11247
11269
  break;
11248
11270
  }
11249
11271
  case 'gallery': {
11250
11272
  var galleryEle = document.querySelector('#' + itemID);
11251
- galleryEle.click();
11273
+ if (this.isInteractableElement(galleryEle)) {
11274
+ galleryEle.click();
11275
+ }
11252
11276
  break;
11253
11277
  }
11254
11278
  case 'template': {
11255
11279
  var templateEle = document.querySelector('#' + itemID);
11256
- templateEle.focus();
11280
+ if (this.isInteractableElement(templateEle)) {
11281
+ templateEle.focus();
11282
+ }
11257
11283
  break;
11258
11284
  }
11259
11285
  case 'group-btn': {
11260
11286
  var itemElement = document.querySelector('#' + itemID);
11261
- if (itemElement) {
11287
+ if (this.isInteractableElement(itemElement)) {
11262
11288
  var item = getInstance(itemElement, DropDownButton);
11263
11289
  item.toggle();
11264
11290
  for (var i = 0; i < itemProp.item.groupButtonSettings.items.length; i++) {
@@ -11272,6 +11298,9 @@ var RibbonKeyTip = /** @__PURE__ @class */ (function () {
11272
11298
  }
11273
11299
  }
11274
11300
  };
11301
+ RibbonKeyTip.prototype.isInteractableElement = function (element) {
11302
+ return element && !element.closest('.e-ribbon-item').classList.contains('e-disabled');
11303
+ };
11275
11304
  RibbonKeyTip.prototype.commonItemsKeyTipPress = function (keyPress, key, isMethod) {
11276
11305
  var _this = this;
11277
11306
  if (this.parent.keyTipElements["" + key]) {