@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
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.3
3
+ * version : 29.1.33
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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,32 +1,30 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-ribbon@*",
3
- "_id": "@syncfusion/ej2-ribbon@28.1.33",
2
+ "_from": "@syncfusion/ej2-ribbon@29.1.33",
3
+ "_id": "@syncfusion/ej2-ribbon@29.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kHG+bm70Ur5w4DnVvMZf1buNwhh1WdZEgf93CQ0pf692oKM2X+lxhk5DULf2l5/3quJS3qa3epvygcETYz0N/Q==",
5
+ "_integrity": "sha512-deL3H0cN+gm6owujV1VPMIu3LekzchV867ThU9w+0hq3smMS/gmbJP+gnqjAQjUYQ+W/5yYJoENGtKv1DN9IcA==",
6
6
  "_location": "/@syncfusion/ej2-ribbon",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
- "type": "range",
9
+ "type": "version",
10
10
  "registry": true,
11
- "raw": "@syncfusion/ej2-ribbon@*",
11
+ "raw": "@syncfusion/ej2-ribbon@29.1.33",
12
12
  "name": "@syncfusion/ej2-ribbon",
13
13
  "escapedName": "@syncfusion%2fej2-ribbon",
14
14
  "scope": "@syncfusion",
15
- "rawSpec": "*",
15
+ "rawSpec": "29.1.34",
16
16
  "saveSpec": null,
17
- "fetchSpec": "*"
17
+ "fetchSpec": "29.1.34"
18
18
  },
19
19
  "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
20
  "/@syncfusion/ej2-angular-ribbon",
23
21
  "/@syncfusion/ej2-react-ribbon",
24
22
  "/@syncfusion/ej2-vue-ribbon"
25
23
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-28.1.33.tgz",
27
- "_shasum": "3051fd91e9f73e010feb1a8d86cb6c4771e3854d",
28
- "_spec": "@syncfusion/ej2-ribbon@*",
29
- "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
24
+ "_resolved": "https://registry.npmjs.org/@syncfusion/ej2-ribbon/-/ej2-ribbon-29.1.33.tgz",
25
+ "_shasum": "c8d35dba484385467e183cdba3f856466125568c",
26
+ "_spec": "@syncfusion/ej2-ribbon@29.1.33",
27
+ "_where": "E:\\march2025\\memory-leaks\\node_modules\\@syncfusion\\ej2-angular-ribbon",
30
28
  "author": {
31
29
  "name": "Syncfusion Inc."
32
30
  },
@@ -35,13 +33,13 @@
35
33
  },
36
34
  "bundleDependencies": false,
37
35
  "dependencies": {
38
- "@syncfusion/ej2-base": "~28.2.3",
39
- "@syncfusion/ej2-buttons": "~28.2.3",
40
- "@syncfusion/ej2-dropdowns": "~28.2.3",
41
- "@syncfusion/ej2-lists": "~28.2.3",
42
- "@syncfusion/ej2-navigations": "~28.2.3",
43
- "@syncfusion/ej2-popups": "~28.2.3",
44
- "@syncfusion/ej2-splitbuttons": "~28.2.3"
36
+ "@syncfusion/ej2-base": "~29.1.33",
37
+ "@syncfusion/ej2-buttons": "~29.1.33",
38
+ "@syncfusion/ej2-dropdowns": "~29.1.33",
39
+ "@syncfusion/ej2-lists": "~29.1.33",
40
+ "@syncfusion/ej2-navigations": "~29.1.33",
41
+ "@syncfusion/ej2-popups": "~29.1.33",
42
+ "@syncfusion/ej2-splitbuttons": "~29.1.33"
45
43
  },
46
44
  "deprecated": false,
47
45
  "description": "Essential JS 2 Component",
@@ -61,7 +59,7 @@
61
59
  "type": "git",
62
60
  "url": "git+https://github.com/syncfusion/ej2-ribbon-component.git"
63
61
  },
62
+ "sideEffects": false,
64
63
  "typings": "index.d.ts",
65
- "version": "28.2.3",
66
- "sideEffects": false
67
- }
64
+ "version": "29.1.34"
65
+ }
@@ -118,7 +118,9 @@ var RibbonButton = /** @class */ (function () {
118
118
  return;
119
119
  }
120
120
  var buttonObj = getComponent(buttonEle, Button);
121
- buttonObj.click();
121
+ if (!buttonObj.disabled) {
122
+ buttonObj.click();
123
+ }
122
124
  };
123
125
  /**
124
126
  * Updates the button properties.
@@ -111,7 +111,9 @@ var RibbonCheckBox = /** @class */ (function () {
111
111
  return;
112
112
  }
113
113
  var checkBoxObj = getComponent(inputEle, CheckBox);
114
- checkBoxObj.click();
114
+ if (!checkBoxObj.disabled) {
115
+ checkBoxObj.click();
116
+ }
115
117
  };
116
118
  /**
117
119
  * Updates the checkbox.
@@ -186,7 +186,9 @@ var RibbonColorPicker = /** @class */ (function () {
186
186
  if (!colorPickerObj) {
187
187
  return;
188
188
  }
189
- colorPickerObj.toggle();
189
+ if (!colorPickerObj.disabled) {
190
+ colorPickerObj.toggle();
191
+ }
190
192
  };
191
193
  /**
192
194
  * Updates the colorpicker properties.
@@ -389,7 +389,13 @@ var RibbonDropDown = /** @class */ (function () {
389
389
  * @returns {void}
390
390
  */
391
391
  RibbonDropDown.prototype.toggle = function (controlId) {
392
- this.getDropDownObj(controlId).toggle();
392
+ var dropdownObj = this.getDropDownObj(controlId);
393
+ if (!dropdownObj) {
394
+ return;
395
+ }
396
+ if (!dropdownObj.disabled) {
397
+ dropdownObj.toggle();
398
+ }
393
399
  };
394
400
  /**
395
401
  * Updates the dropdown.
@@ -218,7 +218,13 @@ var RibbonSplitButton = /** @class */ (function () {
218
218
  * @returns {void}
219
219
  */
220
220
  RibbonSplitButton.prototype.toggle = function (controlId) {
221
- this.getSplitButtonObj(controlId).toggle();
221
+ var splitBtnObj = this.getSplitButtonObj(controlId);
222
+ if (!splitBtnObj) {
223
+ return;
224
+ }
225
+ if (!splitBtnObj.disabled) {
226
+ splitBtnObj.toggle();
227
+ }
222
228
  };
223
229
  /**
224
230
  * Updates the splitbutton.
@@ -30,6 +30,7 @@ export declare class RibbonKeyTip {
30
30
  */
31
31
  keytipPress(keyPress: string, isMethod?: boolean): void;
32
32
  private clickItems;
33
+ private isInteractableElement;
33
34
  private commonItemsKeyTipPress;
34
35
  /**
35
36
  * Removes the keytip.
@@ -190,7 +190,8 @@ var RibbonKeyTip = /** @class */ (function () {
190
190
  if ((isPopUpItem && isPopUpPresent) || !isPopUpItem) {
191
191
  var keytipElement = this.parent.createElement('div', {
192
192
  className: constants.RIBBON_KEYTIP,
193
- id: id + constants.RIBBON_KEYTIP_ID
193
+ id: id + constants.RIBBON_KEYTIP_ID,
194
+ attrs: { role: 'dialog', 'aria-label': 'ribbon-keytip' }
194
195
  });
195
196
  document.body.append(keytipElement);
196
197
  var keytipPopup = new Popup(keytipElement, {
@@ -199,7 +200,8 @@ var RibbonKeyTip = /** @class */ (function () {
199
200
  collision: { X: 'fit', Y: 'flip' },
200
201
  targetType: 'relative',
201
202
  position: { X: xOffset, Y: yOffset },
202
- enableRtl: this.parent.enableRtl
203
+ enableRtl: this.parent.enableRtl,
204
+ actionOnScroll: 'hide'
203
205
  });
204
206
  keytipPopup.show();
205
207
  this.calculateKeyTipPosition(keyEle, keytipElement, type, yOffset);
@@ -364,24 +366,30 @@ var RibbonKeyTip = /** @class */ (function () {
364
366
  break;
365
367
  case 'combobox': {
366
368
  var itemEle_1 = document.querySelector('#' + itemID);
367
- setTimeout(function () {
368
- itemEle_1.focus();
369
- }, 100);
369
+ if (this.isInteractableElement(itemEle_1)) {
370
+ setTimeout(function () {
371
+ itemEle_1.focus();
372
+ }, 100);
373
+ }
370
374
  break;
371
375
  }
372
376
  case 'gallery': {
373
377
  var galleryEle = document.querySelector('#' + itemID);
374
- galleryEle.click();
378
+ if (this.isInteractableElement(galleryEle)) {
379
+ galleryEle.click();
380
+ }
375
381
  break;
376
382
  }
377
383
  case 'template': {
378
384
  var templateEle = document.querySelector('#' + itemID);
379
- templateEle.focus();
385
+ if (this.isInteractableElement(templateEle)) {
386
+ templateEle.focus();
387
+ }
380
388
  break;
381
389
  }
382
390
  case 'group-btn': {
383
391
  var itemElement = document.querySelector('#' + itemID);
384
- if (itemElement) {
392
+ if (this.isInteractableElement(itemElement)) {
385
393
  var item = getInstance(itemElement, DropDownButton);
386
394
  item.toggle();
387
395
  for (var i = 0; i < itemProp.item.groupButtonSettings.items.length; i++) {
@@ -395,6 +403,9 @@ var RibbonKeyTip = /** @class */ (function () {
395
403
  }
396
404
  }
397
405
  };
406
+ RibbonKeyTip.prototype.isInteractableElement = function (element) {
407
+ return element && !element.closest('.e-ribbon-item').classList.contains('e-disabled');
408
+ };
398
409
  RibbonKeyTip.prototype.commonItemsKeyTipPress = function (keyPress, key, isMethod) {
399
410
  var _this = this;
400
411
  if (this.parent.keyTipElements["" + key]) {