@syncfusion/ej2-ribbon 23.1.41 → 23.1.44

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 (43) hide show
  1. package/CHANGELOG.md +16 -0
  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 +225 -71
  5. package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
  6. package/dist/es6/ej2-ribbon.es5.js +225 -71
  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 +11 -11
  12. package/src/ribbon/base/ribbon.d.ts +3 -0
  13. package/src/ribbon/base/ribbon.js +160 -70
  14. package/src/ribbon/base/utils.d.ts +11 -0
  15. package/src/ribbon/base/utils.js +27 -1
  16. package/src/ribbon/items/ribbon-button.js +4 -1
  17. package/src/ribbon/items/ribbon-checkbox.js +1 -0
  18. package/src/ribbon/items/ribbon-colorpicker.js +4 -1
  19. package/src/ribbon/items/ribbon-combobox.js +1 -0
  20. package/src/ribbon/items/ribbon-dropdown.js +4 -1
  21. package/src/ribbon/items/ribbon-groupbutton.js +4 -1
  22. package/src/ribbon/items/ribbon-splitbutton.js +4 -1
  23. package/src/ribbon/models/ribbon-button-settings-model.d.ts +7 -0
  24. package/src/ribbon/models/ribbon-button-settings.d.ts +8 -0
  25. package/src/ribbon/models/ribbon-button-settings.js +3 -0
  26. package/src/ribbon/models/ribbon-checkbox-settings-model.d.ts +7 -0
  27. package/src/ribbon/models/ribbon-checkbox-settings.d.ts +8 -0
  28. package/src/ribbon/models/ribbon-checkbox-settings.js +3 -0
  29. package/src/ribbon/models/ribbon-colorpicker-settings-model.d.ts +7 -0
  30. package/src/ribbon/models/ribbon-colorpicker-settings.d.ts +8 -0
  31. package/src/ribbon/models/ribbon-colorpicker-settings.js +3 -0
  32. package/src/ribbon/models/ribbon-combobox-settings-model.d.ts +7 -0
  33. package/src/ribbon/models/ribbon-combobox-settings.d.ts +8 -0
  34. package/src/ribbon/models/ribbon-combobox-settings.js +3 -0
  35. package/src/ribbon/models/ribbon-dropdown-settings-model.d.ts +7 -0
  36. package/src/ribbon/models/ribbon-dropdown-settings.d.ts +8 -0
  37. package/src/ribbon/models/ribbon-dropdown-settings.js +3 -0
  38. package/src/ribbon/models/ribbon-group-button-item-model.d.ts +7 -0
  39. package/src/ribbon/models/ribbon-group-button-item.d.ts +8 -0
  40. package/src/ribbon/models/ribbon-group-button-item.js +3 -0
  41. package/src/ribbon/models/ribbon-splitbutton-settings-model.d.ts +7 -0
  42. package/src/ribbon/models/ribbon-splitbutton-settings.d.ts +8 -0
  43. package/src/ribbon/models/ribbon-splitbutton-settings.js +3 -0
@@ -33,6 +33,13 @@ export interface RibbonCheckBoxSettingsModel {
33
33
  */
34
34
  labelPosition?: LabelPosition;
35
35
 
36
+ /**
37
+ * Specifies additional HTML attributes to be applied to the checkbox.
38
+ *
39
+ * @default {}
40
+ */
41
+ htmlAttributes?: { [key: string]: string };
42
+
36
43
  /**
37
44
  * Event triggers once the checkbox is created.
38
45
  *
@@ -28,6 +28,14 @@ export declare class RibbonCheckBoxSettings extends ChildProperty<RibbonCheckBox
28
28
  * @default 'After'
29
29
  */
30
30
  labelPosition: LabelPosition;
31
+ /**
32
+ * Specifies additional HTML attributes to be applied to the checkbox.
33
+ *
34
+ * @default {}
35
+ */
36
+ htmlAttributes: {
37
+ [key: string]: string;
38
+ };
31
39
  /**
32
40
  * Event triggers once the checkbox is created.
33
41
  *
@@ -47,6 +47,9 @@ var RibbonCheckBoxSettings = /** @class */ (function (_super) {
47
47
  __decorate([
48
48
  Property('After')
49
49
  ], RibbonCheckBoxSettings.prototype, "labelPosition", void 0);
50
+ __decorate([
51
+ Property({})
52
+ ], RibbonCheckBoxSettings.prototype, "htmlAttributes", void 0);
50
53
  __decorate([
51
54
  Event()
52
55
  ], RibbonCheckBoxSettings.prototype, "created", void 0);
@@ -69,6 +69,13 @@ export interface RibbonColorPickerSettingsModel {
69
69
  */
70
70
  value?: string;
71
71
 
72
+ /**
73
+ * Specifies additional HTML attributes to be applied to the color picker.
74
+ *
75
+ * @default {}
76
+ */
77
+ htmlAttributes?: { [key: string]: string };
78
+
72
79
  /**
73
80
  * Event triggers before closing the ColorPicker popup.
74
81
  *
@@ -61,6 +61,14 @@ export declare class RibbonColorPickerSettings extends ChildProperty<RibbonColor
61
61
  * @default '#008000ff'
62
62
  */
63
63
  value: string;
64
+ /**
65
+ * Specifies additional HTML attributes to be applied to the color picker.
66
+ *
67
+ * @default {}
68
+ */
69
+ htmlAttributes: {
70
+ [key: string]: string;
71
+ };
64
72
  /**
65
73
  * Event triggers before closing the ColorPicker popup.
66
74
  *
@@ -62,6 +62,9 @@ var RibbonColorPickerSettings = /** @class */ (function (_super) {
62
62
  __decorate([
63
63
  Property('#008000ff')
64
64
  ], RibbonColorPickerSettings.prototype, "value", void 0);
65
+ __decorate([
66
+ Property({})
67
+ ], RibbonColorPickerSettings.prototype, "htmlAttributes", void 0);
65
68
  __decorate([
66
69
  Event()
67
70
  ], RibbonColorPickerSettings.prototype, "beforeClose", void 0);
@@ -209,6 +209,13 @@ export interface RibbonComboBoxSettingsModel {
209
209
  */
210
210
  width?: string | number;
211
211
 
212
+ /**
213
+ * Specifies additional HTML attributes to be applied to the combobox.
214
+ *
215
+ * @default {}
216
+ */
217
+ htmlAttributes?: { [key: string]: string };
218
+
212
219
  /**
213
220
  * Event triggers before opening the popup.
214
221
  *
@@ -191,6 +191,14 @@ export declare class RibbonComboBoxSettings extends ChildProperty<RibbonComboBox
191
191
  * @aspType string
192
192
  */
193
193
  width: string | number;
194
+ /**
195
+ * Specifies additional HTML attributes to be applied to the combobox.
196
+ *
197
+ * @default {}
198
+ */
199
+ htmlAttributes: {
200
+ [key: string]: string;
201
+ };
194
202
  /**
195
203
  * Event triggers before opening the popup.
196
204
  *
@@ -96,6 +96,9 @@ var RibbonComboBoxSettings = /** @class */ (function (_super) {
96
96
  __decorate([
97
97
  Property('150px')
98
98
  ], RibbonComboBoxSettings.prototype, "width", void 0);
99
+ __decorate([
100
+ Property({})
101
+ ], RibbonComboBoxSettings.prototype, "htmlAttributes", void 0);
99
102
  __decorate([
100
103
  Event()
101
104
  ], RibbonComboBoxSettings.prototype, "beforeOpen", void 0);
@@ -55,6 +55,13 @@ export interface RibbonDropDownSettingsModel {
55
55
  */
56
56
  createPopupOnClick?: boolean;
57
57
 
58
+ /**
59
+ * Specifies additional HTML attributes to be applied to the DropDownButton.
60
+ *
61
+ * @default {}
62
+ */
63
+ htmlAttributes?: { [key: string]: string };
64
+
58
65
  /**
59
66
  * Triggers before closing the DropDownButton popup.
60
67
  *
@@ -47,6 +47,14 @@ export declare class RibbonDropDownSettings extends ChildProperty<RibbonDropDown
47
47
  * @default false
48
48
  */
49
49
  createPopupOnClick: boolean;
50
+ /**
51
+ * Specifies additional HTML attributes to be applied to the DropDownButton.
52
+ *
53
+ * @default {}
54
+ */
55
+ htmlAttributes: {
56
+ [key: string]: string;
57
+ };
50
58
  /**
51
59
  * Triggers before closing the DropDownButton popup.
52
60
  *
@@ -57,6 +57,9 @@ var RibbonDropDownSettings = /** @class */ (function (_super) {
57
57
  __decorate([
58
58
  Property(false)
59
59
  ], RibbonDropDownSettings.prototype, "createPopupOnClick", void 0);
60
+ __decorate([
61
+ Property({})
62
+ ], RibbonDropDownSettings.prototype, "htmlAttributes", void 0);
60
63
  __decorate([
61
64
  Event()
62
65
  ], RibbonDropDownSettings.prototype, "beforeClose", void 0);
@@ -33,6 +33,13 @@ export interface RibbonGroupButtonItemModel {
33
33
  */
34
34
  selected?: boolean;
35
35
 
36
+ /**
37
+ * Specifies additional HTML attributes to be applied to the group button item.
38
+ *
39
+ * @default {}
40
+ */
41
+ htmlAttributes?: { [key: string]: string };
42
+
36
43
  /**
37
44
  * Triggers before clicking the button from group button.
38
45
  *
@@ -29,6 +29,14 @@ export declare class RibbonGroupButtonItem extends ChildProperty<RibbonGroupButt
29
29
  * @default false
30
30
  */
31
31
  selected: boolean;
32
+ /**
33
+ * Specifies additional HTML attributes to be applied to the group button item.
34
+ *
35
+ * @default {}
36
+ */
37
+ htmlAttributes: {
38
+ [key: string]: string;
39
+ };
32
40
  /**
33
41
  * Triggers before clicking the button from group button.
34
42
  *
@@ -39,6 +39,9 @@ var RibbonGroupButtonItem = /** @class */ (function (_super) {
39
39
  __decorate([
40
40
  Property(false)
41
41
  ], RibbonGroupButtonItem.prototype, "selected", void 0);
42
+ __decorate([
43
+ Property({})
44
+ ], RibbonGroupButtonItem.prototype, "htmlAttributes", void 0);
42
45
  __decorate([
43
46
  Event()
44
47
  ], RibbonGroupButtonItem.prototype, "beforeClick", void 0);
@@ -48,6 +48,13 @@ export interface RibbonSplitButtonSettingsModel {
48
48
  */
49
49
  target?: string | HTMLElement;
50
50
 
51
+ /**
52
+ * Specifies additional HTML attributes to be applied to the SplitButton.
53
+ *
54
+ * @default {}
55
+ */
56
+ htmlAttributes?: { [key: string]: string };
57
+
51
58
  /**
52
59
  * Triggers before closing the SplitButton popup.
53
60
  *
@@ -41,6 +41,14 @@ export declare class RibbonSplitButtonSettings extends ChildProperty<RibbonSplit
41
41
  * @aspType string
42
42
  */
43
43
  target: string | HTMLElement;
44
+ /**
45
+ * Specifies additional HTML attributes to be applied to the SplitButton.
46
+ *
47
+ * @default {}
48
+ */
49
+ htmlAttributes: {
50
+ [key: string]: string;
51
+ };
44
52
  /**
45
53
  * Triggers before closing the SplitButton popup.
46
54
  *
@@ -54,6 +54,9 @@ var RibbonSplitButtonSettings = /** @class */ (function (_super) {
54
54
  __decorate([
55
55
  Property('')
56
56
  ], RibbonSplitButtonSettings.prototype, "target", void 0);
57
+ __decorate([
58
+ Property({})
59
+ ], RibbonSplitButtonSettings.prototype, "htmlAttributes", void 0);
57
60
  __decorate([
58
61
  Event()
59
62
  ], RibbonSplitButtonSettings.prototype, "beforeClose", void 0);