@syncfusion/ej2-ribbon 25.2.3 → 26.1.35

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 (117) hide show
  1. package/.eslintrc.json +3 -2
  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 +884 -599
  5. package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
  6. package/dist/es6/ej2-ribbon.es5.js +941 -584
  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 +13 -13
  12. package/src/ribbon/base/interface.d.ts +14 -0
  13. package/src/ribbon/base/ribbon-model.d.ts +1 -1
  14. package/src/ribbon/base/ribbon.d.ts +4 -1
  15. package/src/ribbon/base/ribbon.js +222 -95
  16. package/src/ribbon/items/ribbon-button.js +22 -2
  17. package/src/ribbon/items/ribbon-checkbox.js +19 -1
  18. package/src/ribbon/items/ribbon-colorpicker.js +16 -1
  19. package/src/ribbon/items/ribbon-combobox.js +19 -1
  20. package/src/ribbon/items/ribbon-dropdown.js +16 -1
  21. package/src/ribbon/items/ribbon-gallery.d.ts +15 -6
  22. package/src/ribbon/items/ribbon-gallery.js +164 -96
  23. package/src/ribbon/items/ribbon-groupbutton.d.ts +1 -0
  24. package/src/ribbon/items/ribbon-groupbutton.js +11 -3
  25. package/src/ribbon/items/ribbon-splitbutton.js +16 -1
  26. package/src/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +1 -1
  27. package/src/ribbon/models/ribbon-gallery-group-model.d.ts +5 -5
  28. package/src/ribbon/models/ribbon-gallery-group.d.ts +2 -2
  29. package/src/ribbon/models/ribbon-gallery-group.js +2 -2
  30. package/src/ribbon/models/ribbon-gallery-item-model.d.ts +5 -5
  31. package/src/ribbon/models/ribbon-gallery-item.d.ts +1 -1
  32. package/src/ribbon/models/ribbon-gallery-item.js +1 -1
  33. package/src/ribbon/models/ribbon-gallery-settings-model.d.ts +1 -1
  34. package/src/ribbon/models/ribbon-gallery-settings.d.ts +3 -3
  35. package/src/ribbon/models/ribbon-gallery-settings.js +2 -2
  36. package/src/ribbon/modules/ribbon-backstage.d.ts +6 -3
  37. package/src/ribbon/modules/ribbon-backstage.js +65 -12
  38. package/src/ribbon/modules/ribbon-contextualtab.js +5 -2
  39. package/src/ribbon/modules/ribbon-keytip.d.ts +1 -0
  40. package/src/ribbon/modules/ribbon-keytip.js +58 -46
  41. package/styles/bootstrap-dark.css +452 -269
  42. package/styles/bootstrap-dark.scss +18 -1
  43. package/styles/bootstrap.css +456 -276
  44. package/styles/bootstrap.scss +18 -1
  45. package/styles/bootstrap4.css +455 -272
  46. package/styles/bootstrap4.scss +18 -1
  47. package/styles/bootstrap5-dark.css +470 -278
  48. package/styles/bootstrap5-dark.scss +18 -1
  49. package/styles/bootstrap5.css +470 -278
  50. package/styles/bootstrap5.scss +18 -1
  51. package/styles/fabric-dark.css +451 -269
  52. package/styles/fabric-dark.scss +18 -1
  53. package/styles/fabric.css +450 -272
  54. package/styles/fabric.scss +18 -1
  55. package/styles/fluent-dark.css +472 -277
  56. package/styles/fluent-dark.scss +18 -1
  57. package/styles/fluent.css +472 -277
  58. package/styles/fluent.scss +18 -1
  59. package/styles/fluent2.css +3868 -0
  60. package/styles/fluent2.scss +18 -0
  61. package/styles/highcontrast-light.css +445 -263
  62. package/styles/highcontrast-light.scss +17 -1
  63. package/styles/highcontrast.css +451 -273
  64. package/styles/highcontrast.scss +18 -1
  65. package/styles/material-dark.css +540 -283
  66. package/styles/material-dark.scss +18 -1
  67. package/styles/material.css +539 -289
  68. package/styles/material.scss +18 -1
  69. package/styles/material3-dark.css +496 -280
  70. package/styles/material3-dark.scss +18 -1
  71. package/styles/material3.css +496 -280
  72. package/styles/material3.scss +18 -1
  73. package/styles/ribbon/_bds-definition.scss +56 -20
  74. package/styles/ribbon/_bootstrap-dark-definition.scss +56 -20
  75. package/styles/ribbon/_bootstrap-definition.scss +57 -21
  76. package/styles/ribbon/_bootstrap4-definition.scss +57 -21
  77. package/styles/ribbon/_bootstrap5-definition.scss +57 -21
  78. package/styles/ribbon/_bootstrap5.3-definition.scss +396 -0
  79. package/styles/ribbon/_fabric-dark-definition.scss +55 -19
  80. package/styles/ribbon/_fabric-definition.scss +56 -20
  81. package/styles/ribbon/_fluent-definition.scss +59 -23
  82. package/styles/ribbon/_fluent2-definition.scss +396 -0
  83. package/styles/ribbon/_fusionnew-definition.scss +50 -14
  84. package/styles/ribbon/_highcontrast-definition.scss +58 -22
  85. package/styles/ribbon/_highcontrast-light-definition.scss +49 -13
  86. package/styles/ribbon/_layout.scss +359 -399
  87. package/styles/ribbon/_material-dark-definition.scss +56 -20
  88. package/styles/ribbon/_material-definition.scss +56 -20
  89. package/styles/ribbon/_material3-definition.scss +56 -19
  90. package/styles/ribbon/_tailwind-definition.scss +56 -20
  91. package/styles/ribbon/_theme.scss +118 -170
  92. package/styles/ribbon/bootstrap-dark.css +452 -269
  93. package/styles/ribbon/bootstrap.css +456 -276
  94. package/styles/ribbon/bootstrap4.css +455 -272
  95. package/styles/ribbon/bootstrap5-dark.css +470 -278
  96. package/styles/ribbon/bootstrap5.css +470 -278
  97. package/styles/ribbon/fabric-dark.css +451 -269
  98. package/styles/ribbon/fabric.css +450 -272
  99. package/styles/ribbon/fluent-dark.css +472 -277
  100. package/styles/ribbon/fluent.css +472 -277
  101. package/styles/ribbon/fluent2.css +3868 -0
  102. package/styles/ribbon/fluent2.scss +18 -0
  103. package/styles/ribbon/highcontrast-light.css +445 -263
  104. package/styles/ribbon/highcontrast.css +451 -273
  105. package/styles/ribbon/icons/_bootstrap5.3.scss +9 -0
  106. package/styles/ribbon/icons/_fluent2.scss +9 -0
  107. package/styles/ribbon/material-dark.css +540 -283
  108. package/styles/ribbon/material.css +539 -289
  109. package/styles/ribbon/material3-dark.css +496 -280
  110. package/styles/ribbon/material3.css +496 -280
  111. package/styles/ribbon/tailwind-dark.css +506 -280
  112. package/styles/ribbon/tailwind.css +506 -280
  113. package/styles/tailwind-dark.css +506 -280
  114. package/styles/tailwind-dark.scss +18 -1
  115. package/styles/tailwind.css +506 -280
  116. package/styles/tailwind.scss +18 -1
  117. package/CHANGELOG.md +0 -93
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { getComponent, merge } from '@syncfusion/ej2-base';
2
13
  import { Button } from '@syncfusion/ej2-buttons';
3
14
  import { getItem, getItemElement, RibbonItemSize, setCustomAttributes } from '../base/index';
@@ -44,14 +55,23 @@ var RibbonButton = /** @class */ (function () {
44
55
  created: btnSettings.created
45
56
  }, buttonEle);
46
57
  if (btnSettings.htmlAttributes) {
47
- setCustomAttributes(buttonEle, btnSettings.htmlAttributes);
58
+ var htmlAttr = __assign({}, btnSettings.htmlAttributes);
59
+ if (htmlAttr.id) {
60
+ delete htmlAttr.id;
61
+ }
62
+ setCustomAttributes(buttonEle, htmlAttr);
48
63
  }
49
64
  buttonEle.onclick = function (e) {
50
65
  if (btnSettings.clicked) {
51
66
  btnSettings.clicked.call(_this, e);
52
67
  }
53
68
  };
54
- buttonEle.setAttribute('aria-label', btnSettings.content);
69
+ if (btnSettings.content) {
70
+ buttonEle.setAttribute('aria-label', btnSettings.content);
71
+ }
72
+ else {
73
+ buttonEle.setAttribute('aria-label', 'button');
74
+ }
55
75
  };
56
76
  /**
57
77
  * Adds the additional event handlers as the item moved into overflow popup.
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { getComponent, merge } from '@syncfusion/ej2-base';
2
13
  import { CheckBox } from '@syncfusion/ej2-buttons';
3
14
  import { getItem, getItemElement, RIBBON_CONTROL, SPACE, RIBBON_POPUP_CONTROL } from '../base/index';
@@ -29,6 +40,13 @@ var RibbonCheckBox = /** @class */ (function () {
29
40
  });
30
41
  itemEle.appendChild(inputEle);
31
42
  var checkBoxSettings = item.checkBoxSettings;
43
+ var htmlAttr = {};
44
+ if (checkBoxSettings.htmlAttributes) {
45
+ htmlAttr = __assign({}, checkBoxSettings.htmlAttributes);
46
+ if (htmlAttr.id) {
47
+ delete htmlAttr.id;
48
+ }
49
+ }
32
50
  new CheckBox({
33
51
  locale: this.parent.locale,
34
52
  enableRtl: this.parent.enableRtl,
@@ -39,7 +57,7 @@ var RibbonCheckBox = /** @class */ (function () {
39
57
  labelPosition: checkBoxSettings.labelPosition,
40
58
  disabled: item.disabled,
41
59
  created: checkBoxSettings.created,
42
- htmlAttributes: checkBoxSettings.htmlAttributes,
60
+ htmlAttributes: htmlAttr,
43
61
  change: function (e) {
44
62
  if (checkBoxSettings.change) {
45
63
  checkBoxSettings.change.call(_this, e);
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { EventHandler, getComponent, merge } from '@syncfusion/ej2-base';
2
13
  import { ColorPicker } from '@syncfusion/ej2-inputs';
3
14
  import { getItem, getItemElement, setCustomAttributes } from '../base/index';
@@ -68,7 +79,11 @@ var RibbonColorPicker = /** @class */ (function () {
68
79
  select: colorPickerSettings.select
69
80
  }, inputEle);
70
81
  if (colorPickerSettings.htmlAttributes) {
71
- setCustomAttributes(inputEle, colorPickerSettings.htmlAttributes);
82
+ var htmlAttr = __assign({}, colorPickerSettings.htmlAttributes);
83
+ if (htmlAttr.id) {
84
+ delete htmlAttr.id;
85
+ }
86
+ setCustomAttributes(inputEle, htmlAttr);
72
87
  }
73
88
  var wrapper = colorPicker.element.parentElement;
74
89
  EventHandler.add(wrapper, 'mouseenter', this.toggleWrapperHover.bind(this, wrapper, true), this);
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { getComponent, merge } from '@syncfusion/ej2-base';
2
13
  import { ComboBox } from '@syncfusion/ej2-dropdowns';
3
14
  import { getItem, getItemElement, RIBBON_CONTROL, SPACE, RIBBON_POPUP_CONTROL } from '../base/index';
@@ -29,6 +40,13 @@ var RibbonComboBox = /** @class */ (function () {
29
40
  });
30
41
  itemEle.appendChild(inputEle);
31
42
  var comboBoxSettings = item.comboBoxSettings;
43
+ var htmlAttr = {};
44
+ if (comboBoxSettings.htmlAttributes) {
45
+ htmlAttr = __assign({}, comboBoxSettings.htmlAttributes);
46
+ if (htmlAttr.id) {
47
+ delete htmlAttr.id;
48
+ }
49
+ }
32
50
  new ComboBox({
33
51
  locale: this.parent.locale,
34
52
  enableRtl: this.parent.enableRtl,
@@ -60,7 +78,7 @@ var RibbonComboBox = /** @class */ (function () {
60
78
  width: comboBoxSettings.width,
61
79
  beforeOpen: comboBoxSettings.beforeOpen,
62
80
  open: comboBoxSettings.open,
63
- htmlAttributes: comboBoxSettings.htmlAttributes,
81
+ htmlAttributes: htmlAttr,
64
82
  close: function (e) {
65
83
  if (comboBoxSettings.close) {
66
84
  comboBoxSettings.close.call(_this, e);
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { closest, getComponent, isNullOrUndefined, merge, remove } from '@syncfusion/ej2-base';
2
13
  import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
3
14
  import { Tooltip } from '@syncfusion/ej2-popups';
@@ -63,7 +74,11 @@ var RibbonDropDown = /** @class */ (function () {
63
74
  select: dropDownSettings.select
64
75
  }).appendTo(buttonEle);
65
76
  if (dropDownSettings.htmlAttributes) {
66
- setCustomAttributes(buttonEle, dropDownSettings.htmlAttributes);
77
+ var htmlAttr = __assign({}, dropDownSettings.htmlAttributes);
78
+ if (htmlAttr.id) {
79
+ delete htmlAttr.id;
80
+ }
81
+ setCustomAttributes(buttonEle, htmlAttr);
67
82
  }
68
83
  };
69
84
  /**
@@ -1,6 +1,6 @@
1
1
  import { Ribbon } from '../base/index';
2
2
  import { RibbonItemModel } from '../models/index';
3
- import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
3
+ import { Popup } from '@syncfusion/ej2-popups';
4
4
  /**
5
5
  * Defines the items of Ribbon.
6
6
  */
@@ -9,6 +9,7 @@ export declare class RibbonGallery {
9
9
  private count;
10
10
  private isAdded;
11
11
  private galleryItemsIndex;
12
+ private registeredTemplate;
12
13
  constructor(parent: Ribbon);
13
14
  protected getModuleName(): string;
14
15
  protected destroy(): void;
@@ -26,13 +27,22 @@ export declare class RibbonGallery {
26
27
  /**
27
28
  * Checks the gallery items height.
28
29
  *
29
- * @param {number} selectedTab - Gets the current selected tab.
30
30
  * @param {HTMLElement} activeContent - Gets the current active content.
31
31
  * @returns {void}
32
32
  * @hidden
33
33
  */
34
- checkAvailableHeight(selectedTab: number, activeContent: HTMLElement): void;
35
- private checkCollision;
34
+ checkAvailableHeight(activeContent: HTMLElement): void;
35
+ /**
36
+ * Checks the popup collision.
37
+ *
38
+ * @param {Popup} popup - Gets the popup.
39
+ * @param {HTMLElement} popupEle - Gets the popup element.
40
+ * @param {number} offsetValue - Gets the offset value of gallery popup button.
41
+ * @returns {void}
42
+ * @hidden
43
+ */
44
+ checkCollision(popup: Popup, popupEle: HTMLElement, offsetValue?: number): void;
45
+ private setGalleryPopupHeight;
36
46
  private createPopup;
37
47
  /**
38
48
  * Updates gallery in mode switching.
@@ -48,11 +58,10 @@ export declare class RibbonGallery {
48
58
  *
49
59
  * @param {RibbonItemModel} item - Gets the ribbon item model.
50
60
  * @param {HTMLElement} itemEle - Gets the ribbon item element.
51
- * @param {DropDownButton} overflowButton - Gets the overflow button.
52
61
  * @returns {void}
53
62
  * @hidden
54
63
  */
55
- addOverFlowEvents(item: RibbonItemModel, itemEle: HTMLElement, overflowButton: DropDownButton): void;
64
+ addOverFlowEvents(item: RibbonItemModel, itemEle: HTMLElement): void;
56
65
  /**
57
66
  * Removes the additional event handlers as the item moved into overflow popup.
58
67
  *