@syncfusion/ej2-ribbon 21.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 (188) hide show
  1. package/.eslintrc.json +259 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +60 -0
  3. package/.github/PULL_REQUEST_TEMPLATE/feature.md +37 -0
  4. package/CHANGELOG.md +19 -0
  5. package/README.md +3 -0
  6. package/dist/ej2-ribbon.umd.min.js +11 -0
  7. package/dist/ej2-ribbon.umd.min.js.map +1 -0
  8. package/dist/es6/ej2-ribbon.es2015.js +4946 -0
  9. package/dist/es6/ej2-ribbon.es2015.js.map +1 -0
  10. package/dist/es6/ej2-ribbon.es5.js +5253 -0
  11. package/dist/es6/ej2-ribbon.es5.js.map +1 -0
  12. package/dist/global/ej2-ribbon.min.js +11 -0
  13. package/dist/global/ej2-ribbon.min.js.map +1 -0
  14. package/dist/global/index.d.ts +14 -0
  15. package/index.d.ts +4 -0
  16. package/index.js +4 -0
  17. package/license +10 -0
  18. package/package.json +67 -0
  19. package/ribbon.d.ts +4 -0
  20. package/ribbon.js +4 -0
  21. package/src/global.js +3 -0
  22. package/src/index.d.ts +1 -0
  23. package/src/index.js +3 -0
  24. package/src/ribbon/base/constant.d.ts +151 -0
  25. package/src/ribbon/base/constant.js +151 -0
  26. package/src/ribbon/base/index.d.ts +8 -0
  27. package/src/ribbon/base/index.js +7 -0
  28. package/src/ribbon/base/interface.d.ts +194 -0
  29. package/src/ribbon/base/interface.js +106 -0
  30. package/src/ribbon/base/ribbon-model.d.ts +129 -0
  31. package/src/ribbon/base/ribbon.d.ts +357 -0
  32. package/src/ribbon/base/ribbon.js +2413 -0
  33. package/src/ribbon/base/utils.d.ts +113 -0
  34. package/src/ribbon/base/utils.js +288 -0
  35. package/src/ribbon/index.d.ts +7 -0
  36. package/src/ribbon/index.js +7 -0
  37. package/src/ribbon/items/index.d.ts +6 -0
  38. package/src/ribbon/items/index.js +6 -0
  39. package/src/ribbon/items/ribbon-button.d.ts +65 -0
  40. package/src/ribbon/items/ribbon-button.js +153 -0
  41. package/src/ribbon/items/ribbon-checkbox.d.ts +56 -0
  42. package/src/ribbon/items/ribbon-checkbox.js +134 -0
  43. package/src/ribbon/items/ribbon-colorpicker.d.ts +66 -0
  44. package/src/ribbon/items/ribbon-colorpicker.js +163 -0
  45. package/src/ribbon/items/ribbon-combobox.d.ts +78 -0
  46. package/src/ribbon/items/ribbon-combobox.js +185 -0
  47. package/src/ribbon/items/ribbon-dropdown.d.ts +123 -0
  48. package/src/ribbon/items/ribbon-dropdown.js +268 -0
  49. package/src/ribbon/items/ribbon-splitbutton.d.ts +86 -0
  50. package/src/ribbon/items/ribbon-splitbutton.js +227 -0
  51. package/src/ribbon/models/index.d.ts +24 -0
  52. package/src/ribbon/models/index.js +13 -0
  53. package/src/ribbon/models/ribbon-button-settings-model.d.ts +57 -0
  54. package/src/ribbon/models/ribbon-button-settings.d.ts +55 -0
  55. package/src/ribbon/models/ribbon-button-settings.js +61 -0
  56. package/src/ribbon/models/ribbon-checkbox-settings-model.d.ts +50 -0
  57. package/src/ribbon/models/ribbon-checkbox-settings.d.ts +50 -0
  58. package/src/ribbon/models/ribbon-checkbox-settings.js +58 -0
  59. package/src/ribbon/models/ribbon-collection-model.d.ts +30 -0
  60. package/src/ribbon/models/ribbon-collection.d.ts +33 -0
  61. package/src/ribbon/models/ribbon-collection.js +50 -0
  62. package/src/ribbon/models/ribbon-colorpicker-settings-model.d.ts +123 -0
  63. package/src/ribbon/models/ribbon-colorpicker-settings.d.ts +115 -0
  64. package/src/ribbon/models/ribbon-colorpicker-settings.js +88 -0
  65. package/src/ribbon/models/ribbon-combobox-settings-model.d.ts +241 -0
  66. package/src/ribbon/models/ribbon-combobox-settings.d.ts +223 -0
  67. package/src/ribbon/models/ribbon-combobox-settings.js +122 -0
  68. package/src/ribbon/models/ribbon-dropdown-settings-model.d.ts +100 -0
  69. package/src/ribbon/models/ribbon-dropdown-settings.d.ts +93 -0
  70. package/src/ribbon/models/ribbon-dropdown-settings.js +80 -0
  71. package/src/ribbon/models/ribbon-file-menu-settings-model.d.ts +108 -0
  72. package/src/ribbon/models/ribbon-file-menu-settings.d.ts +159 -0
  73. package/src/ribbon/models/ribbon-file-menu-settings.js +84 -0
  74. package/src/ribbon/models/ribbon-group-model.d.ts +91 -0
  75. package/src/ribbon/models/ribbon-group.d.ts +87 -0
  76. package/src/ribbon/models/ribbon-group.js +74 -0
  77. package/src/ribbon/models/ribbon-item-model.d.ts +120 -0
  78. package/src/ribbon/models/ribbon-item.d.ts +118 -0
  79. package/src/ribbon/models/ribbon-item.js +93 -0
  80. package/src/ribbon/models/ribbon-splitbutton-settings-model.d.ts +107 -0
  81. package/src/ribbon/models/ribbon-splitbutton-settings.d.ts +99 -0
  82. package/src/ribbon/models/ribbon-splitbutton-settings.js +83 -0
  83. package/src/ribbon/models/ribbon-tab-model.d.ts +37 -0
  84. package/src/ribbon/models/ribbon-tab.d.ts +39 -0
  85. package/src/ribbon/models/ribbon-tab.js +53 -0
  86. package/src/ribbon/models/ribbon-tooltip-model.d.ts +43 -0
  87. package/src/ribbon/models/ribbon-tooltip.d.ts +36 -0
  88. package/src/ribbon/models/ribbon-tooltip.js +46 -0
  89. package/src/ribbon/modules/index.d.ts +1 -0
  90. package/src/ribbon/modules/index.js +1 -0
  91. package/src/ribbon/modules/ribbon-filemenu.d.ts +94 -0
  92. package/src/ribbon/modules/ribbon-filemenu.js +318 -0
  93. package/styles/bootstrap-dark.css +1502 -0
  94. package/styles/bootstrap-dark.scss +1 -0
  95. package/styles/bootstrap.css +1507 -0
  96. package/styles/bootstrap.scss +1 -0
  97. package/styles/bootstrap4.css +1557 -0
  98. package/styles/bootstrap4.scss +1 -0
  99. package/styles/bootstrap5-dark.css +1586 -0
  100. package/styles/bootstrap5-dark.scss +1 -0
  101. package/styles/bootstrap5.css +1586 -0
  102. package/styles/bootstrap5.scss +1 -0
  103. package/styles/fabric-dark.css +1478 -0
  104. package/styles/fabric-dark.scss +1 -0
  105. package/styles/fabric.css +1476 -0
  106. package/styles/fabric.scss +1 -0
  107. package/styles/fluent-dark.css +1562 -0
  108. package/styles/fluent-dark.scss +1 -0
  109. package/styles/fluent.css +1562 -0
  110. package/styles/fluent.scss +1 -0
  111. package/styles/highcontrast-light.css +1485 -0
  112. package/styles/highcontrast-light.scss +1 -0
  113. package/styles/highcontrast.css +1494 -0
  114. package/styles/highcontrast.scss +1 -0
  115. package/styles/material-dark.css +1548 -0
  116. package/styles/material-dark.scss +1 -0
  117. package/styles/material.css +1581 -0
  118. package/styles/material.scss +1 -0
  119. package/styles/ribbon/_all.scss +2 -0
  120. package/styles/ribbon/_bootstrap-dark-definition.scss +206 -0
  121. package/styles/ribbon/_bootstrap-definition.scss +206 -0
  122. package/styles/ribbon/_bootstrap4-definition.scss +206 -0
  123. package/styles/ribbon/_bootstrap5-dark-definition.scss +1 -0
  124. package/styles/ribbon/_bootstrap5-definition.scss +206 -0
  125. package/styles/ribbon/_fabric-dark-definition.scss +206 -0
  126. package/styles/ribbon/_fabric-definition.scss +206 -0
  127. package/styles/ribbon/_fluent-dark-definition.scss +1 -0
  128. package/styles/ribbon/_fluent-definition.scss +206 -0
  129. package/styles/ribbon/_fusionnew-definition.scss +206 -0
  130. package/styles/ribbon/_highcontrast-definition.scss +206 -0
  131. package/styles/ribbon/_highcontrast-light-definition.scss +206 -0
  132. package/styles/ribbon/_layout.scss +1040 -0
  133. package/styles/ribbon/_material-dark-definition.scss +206 -0
  134. package/styles/ribbon/_material-definition.scss +206 -0
  135. package/styles/ribbon/_tailwind-dark-definition.scss +1 -0
  136. package/styles/ribbon/_tailwind-definition.scss +206 -0
  137. package/styles/ribbon/_theme.scss +343 -0
  138. package/styles/ribbon/bootstrap-dark.css +1502 -0
  139. package/styles/ribbon/bootstrap-dark.scss +17 -0
  140. package/styles/ribbon/bootstrap.css +1507 -0
  141. package/styles/ribbon/bootstrap.scss +17 -0
  142. package/styles/ribbon/bootstrap4.css +1557 -0
  143. package/styles/ribbon/bootstrap4.scss +17 -0
  144. package/styles/ribbon/bootstrap5-dark.css +1586 -0
  145. package/styles/ribbon/bootstrap5-dark.scss +17 -0
  146. package/styles/ribbon/bootstrap5.css +1586 -0
  147. package/styles/ribbon/bootstrap5.scss +17 -0
  148. package/styles/ribbon/fabric-dark.css +1478 -0
  149. package/styles/ribbon/fabric-dark.scss +17 -0
  150. package/styles/ribbon/fabric.css +1476 -0
  151. package/styles/ribbon/fabric.scss +17 -0
  152. package/styles/ribbon/fluent-dark.css +1562 -0
  153. package/styles/ribbon/fluent-dark.scss +17 -0
  154. package/styles/ribbon/fluent.css +1562 -0
  155. package/styles/ribbon/fluent.scss +17 -0
  156. package/styles/ribbon/highcontrast-light.css +1485 -0
  157. package/styles/ribbon/highcontrast-light.scss +16 -0
  158. package/styles/ribbon/highcontrast.css +1494 -0
  159. package/styles/ribbon/highcontrast.scss +17 -0
  160. package/styles/ribbon/icons/_bootstrap-dark.scss +9 -0
  161. package/styles/ribbon/icons/_bootstrap.scss +9 -0
  162. package/styles/ribbon/icons/_bootstrap4.scss +9 -0
  163. package/styles/ribbon/icons/_bootstrap5-dark.scss +1 -0
  164. package/styles/ribbon/icons/_bootstrap5.scss +9 -0
  165. package/styles/ribbon/icons/_fabric-dark.scss +9 -0
  166. package/styles/ribbon/icons/_fabric.scss +9 -0
  167. package/styles/ribbon/icons/_fluent-dark.scss +1 -0
  168. package/styles/ribbon/icons/_fluent.scss +9 -0
  169. package/styles/ribbon/icons/_fusionnew.scss +9 -0
  170. package/styles/ribbon/icons/_highcontrast.scss +9 -0
  171. package/styles/ribbon/icons/_material-dark.scss +9 -0
  172. package/styles/ribbon/icons/_material.scss +9 -0
  173. package/styles/ribbon/icons/_material3.scss +9 -0
  174. package/styles/ribbon/icons/_tailwind-dark.scss +9 -0
  175. package/styles/ribbon/icons/_tailwind.scss +9 -0
  176. package/styles/ribbon/material-dark.css +1548 -0
  177. package/styles/ribbon/material-dark.scss +17 -0
  178. package/styles/ribbon/material.css +1581 -0
  179. package/styles/ribbon/material.scss +17 -0
  180. package/styles/ribbon/tailwind-dark.css +1560 -0
  181. package/styles/ribbon/tailwind-dark.scss +17 -0
  182. package/styles/ribbon/tailwind.css +1560 -0
  183. package/styles/ribbon/tailwind.scss +17 -0
  184. package/styles/tailwind-dark.css +1560 -0
  185. package/styles/tailwind-dark.scss +1 -0
  186. package/styles/tailwind.css +1560 -0
  187. package/styles/tailwind.scss +1 -0
  188. package/tslint.json +111 -0
@@ -0,0 +1,120 @@
1
+ import { ChildProperty, Complex, Property } from '@syncfusion/ej2-base';import { RibbonItemType, RibbonItemSize, DisplayMode } from '../base/interface';import { RibbonButtonSettings } from './ribbon-button-settings';import { RibbonButtonSettingsModel } from './ribbon-button-settings-model';import { RibbonCheckBoxSettings } from './ribbon-checkbox-settings';import { RibbonCheckBoxSettingsModel } from './ribbon-checkbox-settings-model';import { RibbonColorPickerSettings } from './ribbon-colorpicker-settings';import { RibbonColorPickerSettingsModel } from './ribbon-colorpicker-settings-model';import { RibbonComboBoxSettings } from './ribbon-combobox-settings';import { RibbonComboBoxSettingsModel } from './ribbon-combobox-settings-model';import { RibbonDropDownSettings } from './ribbon-dropdown-settings';import { RibbonDropDownSettingsModel } from './ribbon-dropdown-settings-model';import { RibbonSplitButtonSettings } from './ribbon-splitbutton-settings';import { RibbonSplitButtonSettingsModel } from './ribbon-splitbutton-settings-model';import { RibbonTooltip } from './ribbon-tooltip';import { RibbonTooltipModel } from './ribbon-tooltip-model';
2
+
3
+ /**
4
+ * Interface for a class RibbonItem
5
+ */
6
+ export interface RibbonItemModel {
7
+
8
+ /**
9
+ * Defines the active size of the ribbon item.
10
+ *
11
+ * @default 'Medium'
12
+ * @aspNumberEnum
13
+ */
14
+ activeSize?: RibbonItemSize;
15
+
16
+ /**
17
+ * Defines the sizes that are allowed for the ribbon item on ribbon resize.
18
+ *
19
+ * @default null
20
+ * @aspNumberEnum
21
+ */
22
+ allowedSizes?: RibbonItemSize;
23
+
24
+ /**
25
+ * Defines a unique identifier for the item.
26
+ *
27
+ * @default ''
28
+ */
29
+ id?: string;
30
+
31
+ /**
32
+ * Defines one or more CSS classes to customize the appearance of item.
33
+ *
34
+ * @default ''
35
+ */
36
+ cssClass?: string;
37
+
38
+ /**
39
+ * Defines whether the item is disabled or not.
40
+ *
41
+ * @default false
42
+ */
43
+ disabled?: boolean;
44
+
45
+ /**
46
+ * Defines the template content for the ribbon item.
47
+ * `ActiveSize` property is passed as string in template context.
48
+ *
49
+ * @default ''
50
+ * @aspType string
51
+ */
52
+ itemTemplate?: string | HTMLElement;
53
+
54
+ /**
55
+ * Defines the type of control to be added as the Ribbon Item.
56
+ *
57
+ * @isenumeration true
58
+ * @default RibbonItemType.Button
59
+ * @asptype RibbonItemType
60
+ */
61
+ type?: RibbonItemType | string;
62
+
63
+ /**
64
+ * Defines the display options for the ribbon item.
65
+ *
66
+ * @default 'Auto'
67
+ * @aspNumberEnum
68
+ */
69
+ displayOptions?: DisplayMode;
70
+
71
+ /**
72
+ * Defines the settings for the tooltip of the item.
73
+ *
74
+ * @default {}
75
+ */
76
+ ribbonTooltipSettings?: RibbonTooltipModel;
77
+
78
+ /**
79
+ * Defines the settings for the ribbon button.
80
+ *
81
+ * @default {}
82
+ */
83
+ buttonSettings?: RibbonButtonSettingsModel;
84
+
85
+ /**
86
+ * Defines the settings for the ribbon dropdown button.
87
+ *
88
+ * @default {}
89
+ */
90
+ dropDownSettings?: RibbonDropDownSettingsModel;
91
+
92
+ /**
93
+ * Defines the settings for the ribbon checkbox.
94
+ *
95
+ * @default {}
96
+ */
97
+ checkBoxSettings?: RibbonCheckBoxSettingsModel;
98
+
99
+ /**
100
+ * Defines the settings for the ribbon color picker.
101
+ *
102
+ * @default {}
103
+ */
104
+ colorPickerSettings?: RibbonColorPickerSettingsModel;
105
+
106
+ /**
107
+ * Defines the settings for the ribbon combobox.
108
+ *
109
+ * @default {}
110
+ */
111
+ comboBoxSettings?: RibbonComboBoxSettingsModel;
112
+
113
+ /**
114
+ * Defines the settings for the ribbon split button.
115
+ *
116
+ * @default {}
117
+ */
118
+ splitButtonSettings?: RibbonSplitButtonSettingsModel;
119
+
120
+ }
@@ -0,0 +1,118 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { RibbonItemType, RibbonItemSize, DisplayMode } from '../base/interface';
3
+ import { RibbonButtonSettingsModel } from './ribbon-button-settings-model';
4
+ import { RibbonCheckBoxSettingsModel } from './ribbon-checkbox-settings-model';
5
+ import { RibbonColorPickerSettingsModel } from './ribbon-colorpicker-settings-model';
6
+ import { RibbonComboBoxSettingsModel } from './ribbon-combobox-settings-model';
7
+ import { RibbonDropDownSettingsModel } from './ribbon-dropdown-settings-model';
8
+ import { RibbonSplitButtonSettingsModel } from './ribbon-splitbutton-settings-model';
9
+ import { RibbonTooltipModel } from './ribbon-tooltip-model';
10
+ /**
11
+ * Defines the ribbon item.
12
+ */
13
+ export declare class RibbonItem extends ChildProperty<RibbonItem> {
14
+ /**
15
+ * Defines the active size of the ribbon item.
16
+ *
17
+ * @default 'Medium'
18
+ * @aspNumberEnum
19
+ */
20
+ activeSize: RibbonItemSize;
21
+ /**
22
+ * Defines the sizes that are allowed for the ribbon item on ribbon resize.
23
+ *
24
+ * @default null
25
+ * @aspNumberEnum
26
+ */
27
+ allowedSizes: RibbonItemSize;
28
+ /**
29
+ * Defines a unique identifier for the item.
30
+ *
31
+ * @default ''
32
+ */
33
+ id: string;
34
+ /**
35
+ * Defines one or more CSS classes to customize the appearance of item.
36
+ *
37
+ * @default ''
38
+ */
39
+ cssClass: string;
40
+ /**
41
+ * Defines whether the item is disabled or not.
42
+ *
43
+ * @default false
44
+ */
45
+ disabled: boolean;
46
+ /**
47
+ * Defines the template content for the ribbon item.
48
+ * `ActiveSize` property is passed as string in template context.
49
+ *
50
+ * @default ''
51
+ * @aspType string
52
+ */
53
+ itemTemplate: string | HTMLElement;
54
+ /**
55
+ * Defines the type of control to be added as the Ribbon Item.
56
+ *
57
+ * @isenumeration true
58
+ * @default RibbonItemType.Button
59
+ * @asptype RibbonItemType
60
+ */
61
+ type: RibbonItemType | string;
62
+ /**
63
+ * Defines the display options for the ribbon item.
64
+ *
65
+ * @default 'Auto'
66
+ * @aspNumberEnum
67
+ */
68
+ displayOptions: DisplayMode;
69
+ /**
70
+ * Defines the settings for the tooltip of the item.
71
+ *
72
+ * @default {}
73
+ */
74
+ ribbonTooltipSettings: RibbonTooltipModel;
75
+ /**
76
+ * Defines the settings for the ribbon button.
77
+ *
78
+ * @default {}
79
+ */
80
+ buttonSettings: RibbonButtonSettingsModel;
81
+ /**
82
+ * Defines the settings for the ribbon dropdown button.
83
+ *
84
+ * @default {}
85
+ */
86
+ dropDownSettings: RibbonDropDownSettingsModel;
87
+ /**
88
+ * Defines the settings for the ribbon checkbox.
89
+ *
90
+ * @default {}
91
+ */
92
+ checkBoxSettings: RibbonCheckBoxSettingsModel;
93
+ /**
94
+ * Defines the settings for the ribbon color picker.
95
+ *
96
+ * @default {}
97
+ */
98
+ colorPickerSettings: RibbonColorPickerSettingsModel;
99
+ /**
100
+ * Defines the settings for the ribbon combobox.
101
+ *
102
+ * @default {}
103
+ */
104
+ comboBoxSettings: RibbonComboBoxSettingsModel;
105
+ /**
106
+ * Defines the settings for the ribbon split button.
107
+ *
108
+ * @default {}
109
+ */
110
+ splitButtonSettings: RibbonSplitButtonSettingsModel;
111
+ /**
112
+ * @param {Object} prop - Gets the property of item.
113
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
114
+ * @returns {void}
115
+ * @private
116
+ */
117
+ setProperties(prop: Object, muteOnChange: boolean): void;
118
+ }
@@ -0,0 +1,93 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ import { ChildProperty, Complex, Property } from '@syncfusion/ej2-base';
21
+ import { RibbonItemSize, DisplayMode } from '../base/interface';
22
+ import { RibbonButtonSettings } from './ribbon-button-settings';
23
+ import { RibbonCheckBoxSettings } from './ribbon-checkbox-settings';
24
+ import { RibbonColorPickerSettings } from './ribbon-colorpicker-settings';
25
+ import { RibbonComboBoxSettings } from './ribbon-combobox-settings';
26
+ import { RibbonDropDownSettings } from './ribbon-dropdown-settings';
27
+ import { RibbonSplitButtonSettings } from './ribbon-splitbutton-settings';
28
+ import { RibbonTooltip } from './ribbon-tooltip';
29
+ /**
30
+ * Defines the ribbon item.
31
+ */
32
+ var RibbonItem = /** @class */ (function (_super) {
33
+ __extends(RibbonItem, _super);
34
+ function RibbonItem() {
35
+ return _super !== null && _super.apply(this, arguments) || this;
36
+ }
37
+ /**
38
+ * @param {Object} prop - Gets the property of item.
39
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
40
+ * @returns {void}
41
+ * @private
42
+ */
43
+ RibbonItem.prototype.setProperties = function (prop, muteOnChange) {
44
+ _super.prototype.setProperties.call(this, prop, muteOnChange);
45
+ };
46
+ __decorate([
47
+ Property(RibbonItemSize.Medium)
48
+ ], RibbonItem.prototype, "activeSize", void 0);
49
+ __decorate([
50
+ Property(RibbonItemSize.Small | RibbonItemSize.Medium | RibbonItemSize.Large)
51
+ ], RibbonItem.prototype, "allowedSizes", void 0);
52
+ __decorate([
53
+ Property('')
54
+ ], RibbonItem.prototype, "id", void 0);
55
+ __decorate([
56
+ Property('')
57
+ ], RibbonItem.prototype, "cssClass", void 0);
58
+ __decorate([
59
+ Property(false)
60
+ ], RibbonItem.prototype, "disabled", void 0);
61
+ __decorate([
62
+ Property('')
63
+ ], RibbonItem.prototype, "itemTemplate", void 0);
64
+ __decorate([
65
+ Property('Button')
66
+ ], RibbonItem.prototype, "type", void 0);
67
+ __decorate([
68
+ Property(DisplayMode.Auto)
69
+ ], RibbonItem.prototype, "displayOptions", void 0);
70
+ __decorate([
71
+ Complex({}, RibbonTooltip)
72
+ ], RibbonItem.prototype, "ribbonTooltipSettings", void 0);
73
+ __decorate([
74
+ Complex({}, RibbonButtonSettings)
75
+ ], RibbonItem.prototype, "buttonSettings", void 0);
76
+ __decorate([
77
+ Complex({}, RibbonDropDownSettings)
78
+ ], RibbonItem.prototype, "dropDownSettings", void 0);
79
+ __decorate([
80
+ Complex({}, RibbonCheckBoxSettings)
81
+ ], RibbonItem.prototype, "checkBoxSettings", void 0);
82
+ __decorate([
83
+ Complex({}, RibbonColorPickerSettings)
84
+ ], RibbonItem.prototype, "colorPickerSettings", void 0);
85
+ __decorate([
86
+ Complex({}, RibbonComboBoxSettings)
87
+ ], RibbonItem.prototype, "comboBoxSettings", void 0);
88
+ __decorate([
89
+ Complex({}, RibbonSplitButtonSettings)
90
+ ], RibbonItem.prototype, "splitButtonSettings", void 0);
91
+ return RibbonItem;
92
+ }(ChildProperty));
93
+ export { RibbonItem };
@@ -0,0 +1,107 @@
1
+ import { ChildProperty, Collection, Event, EmitType, Property } from '@syncfusion/ej2-base';import { ItemModel, Item, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs, ClickEventArgs } from '@syncfusion/ej2-splitbuttons';
2
+
3
+ /**
4
+ * Interface for a class RibbonSplitButtonSettings
5
+ */
6
+ export interface RibbonSplitButtonSettingsModel {
7
+
8
+ /**
9
+ * Specifies the event to close the SplitButton popup.
10
+ *
11
+ * @default ''
12
+ */
13
+ closeActionEvents?: string;
14
+
15
+ /**
16
+ * Specifies the content of the SplitButton.
17
+ *
18
+ * @default ''
19
+ */
20
+ content?: string;
21
+
22
+ /**
23
+ * Defines one or more CSS classes to customize the appearance of SplitButton.
24
+ *
25
+ * @default ''
26
+ */
27
+ cssClass?: string;
28
+
29
+ /**
30
+ * Defines the CSS class for the icons to be shown in the SplitButton.
31
+ *
32
+ * @default ''
33
+ */
34
+ iconCss?: string;
35
+
36
+ /**
37
+ * Defines the list of items for the SplitButton popup.
38
+ *
39
+ * @default []
40
+ */
41
+ items?: ItemModel[];
42
+
43
+ /**
44
+ * Specifies the selector for the element to be shown in the SplitButton popup.
45
+ *
46
+ * @default ''
47
+ * @aspType string
48
+ */
49
+ target?: string | HTMLElement;
50
+
51
+ /**
52
+ * Triggers before closing the SplitButton popup.
53
+ *
54
+ * @event beforeClose
55
+ */
56
+ beforeClose?: EmitType<BeforeOpenCloseMenuEventArgs>;
57
+
58
+ /**
59
+ * Triggers while rendering each Popup item of SplitButton.
60
+ *
61
+ * @event beforeItemRender
62
+ */
63
+ beforeItemRender?: EmitType<MenuEventArgs>;
64
+
65
+ /**
66
+ * Triggers before opening the SplitButton popup.
67
+ *
68
+ * @event beforeOpen
69
+ */
70
+ beforeOpen?: EmitType<BeforeOpenCloseMenuEventArgs>;
71
+
72
+ /**
73
+ * Triggers while closing the SplitButton popup.
74
+ *
75
+ * @event close
76
+ */
77
+ close?: EmitType<OpenCloseMenuEventArgs>;
78
+
79
+ /**
80
+ * Triggers while clicking the primary button in SplitButton.
81
+ *
82
+ * @event click
83
+ */
84
+ click?: EmitType<ClickEventArgs>;
85
+
86
+ /**
87
+ * Event triggers once the SplitButton is created.
88
+ *
89
+ * @event created
90
+ */
91
+ created?: EmitType<Event>;
92
+
93
+ /**
94
+ * Triggers while opening the SplitButton popup.
95
+ *
96
+ * @event open
97
+ */
98
+ open?: EmitType<OpenCloseMenuEventArgs>;
99
+
100
+ /**
101
+ * Triggers while selecting an action item in SplitButton popup.
102
+ *
103
+ * @event select
104
+ */
105
+ select?: EmitType<MenuEventArgs>;
106
+
107
+ }
@@ -0,0 +1,99 @@
1
+ import { ChildProperty, EmitType } from '@syncfusion/ej2-base';
2
+ import { ItemModel, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs, ClickEventArgs } from '@syncfusion/ej2-splitbuttons';
3
+ /**
4
+ * Defines the ribbon SplitButton item.
5
+ */
6
+ export declare class RibbonSplitButtonSettings extends ChildProperty<RibbonSplitButtonSettings> {
7
+ /**
8
+ * Specifies the event to close the SplitButton popup.
9
+ *
10
+ * @default ''
11
+ */
12
+ closeActionEvents: string;
13
+ /**
14
+ * Specifies the content of the SplitButton.
15
+ *
16
+ * @default ''
17
+ */
18
+ content: string;
19
+ /**
20
+ * Defines one or more CSS classes to customize the appearance of SplitButton.
21
+ *
22
+ * @default ''
23
+ */
24
+ cssClass: string;
25
+ /**
26
+ * Defines the CSS class for the icons to be shown in the SplitButton.
27
+ *
28
+ * @default ''
29
+ */
30
+ iconCss: string;
31
+ /**
32
+ * Defines the list of items for the SplitButton popup.
33
+ *
34
+ * @default []
35
+ */
36
+ items: ItemModel[];
37
+ /**
38
+ * Specifies the selector for the element to be shown in the SplitButton popup.
39
+ *
40
+ * @default ''
41
+ * @aspType string
42
+ */
43
+ target: string | HTMLElement;
44
+ /**
45
+ * Triggers before closing the SplitButton popup.
46
+ *
47
+ * @event beforeClose
48
+ */
49
+ beforeClose: EmitType<BeforeOpenCloseMenuEventArgs>;
50
+ /**
51
+ * Triggers while rendering each Popup item of SplitButton.
52
+ *
53
+ * @event beforeItemRender
54
+ */
55
+ beforeItemRender: EmitType<MenuEventArgs>;
56
+ /**
57
+ * Triggers before opening the SplitButton popup.
58
+ *
59
+ * @event beforeOpen
60
+ */
61
+ beforeOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
62
+ /**
63
+ * Triggers while closing the SplitButton popup.
64
+ *
65
+ * @event close
66
+ */
67
+ close: EmitType<OpenCloseMenuEventArgs>;
68
+ /**
69
+ * Triggers while clicking the primary button in SplitButton.
70
+ *
71
+ * @event click
72
+ */
73
+ click: EmitType<ClickEventArgs>;
74
+ /**
75
+ * Event triggers once the SplitButton is created.
76
+ *
77
+ * @event created
78
+ */
79
+ created: EmitType<Event>;
80
+ /**
81
+ * Triggers while opening the SplitButton popup.
82
+ *
83
+ * @event open
84
+ */
85
+ open: EmitType<OpenCloseMenuEventArgs>;
86
+ /**
87
+ * Triggers while selecting an action item in SplitButton popup.
88
+ *
89
+ * @event select
90
+ */
91
+ select: EmitType<MenuEventArgs>;
92
+ /**
93
+ * @param {Object} prop - Gets the property of DropDown.
94
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
95
+ * @returns {void}
96
+ * @private
97
+ */
98
+ setProperties(prop: Object, muteOnChange: boolean): void;
99
+ }
@@ -0,0 +1,83 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ import { ChildProperty, Collection, Event, Property } from '@syncfusion/ej2-base';
21
+ import { Item } from '@syncfusion/ej2-splitbuttons';
22
+ /**
23
+ * Defines the ribbon SplitButton item.
24
+ */
25
+ var RibbonSplitButtonSettings = /** @class */ (function (_super) {
26
+ __extends(RibbonSplitButtonSettings, _super);
27
+ function RibbonSplitButtonSettings() {
28
+ return _super !== null && _super.apply(this, arguments) || this;
29
+ }
30
+ /**
31
+ * @param {Object} prop - Gets the property of DropDown.
32
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
33
+ * @returns {void}
34
+ * @private
35
+ */
36
+ RibbonSplitButtonSettings.prototype.setProperties = function (prop, muteOnChange) {
37
+ _super.prototype.setProperties.call(this, prop, muteOnChange);
38
+ };
39
+ __decorate([
40
+ Property('')
41
+ ], RibbonSplitButtonSettings.prototype, "closeActionEvents", void 0);
42
+ __decorate([
43
+ Property('')
44
+ ], RibbonSplitButtonSettings.prototype, "content", void 0);
45
+ __decorate([
46
+ Property('')
47
+ ], RibbonSplitButtonSettings.prototype, "cssClass", void 0);
48
+ __decorate([
49
+ Property('')
50
+ ], RibbonSplitButtonSettings.prototype, "iconCss", void 0);
51
+ __decorate([
52
+ Collection([], Item)
53
+ ], RibbonSplitButtonSettings.prototype, "items", void 0);
54
+ __decorate([
55
+ Property('')
56
+ ], RibbonSplitButtonSettings.prototype, "target", void 0);
57
+ __decorate([
58
+ Event()
59
+ ], RibbonSplitButtonSettings.prototype, "beforeClose", void 0);
60
+ __decorate([
61
+ Event()
62
+ ], RibbonSplitButtonSettings.prototype, "beforeItemRender", void 0);
63
+ __decorate([
64
+ Event()
65
+ ], RibbonSplitButtonSettings.prototype, "beforeOpen", void 0);
66
+ __decorate([
67
+ Event()
68
+ ], RibbonSplitButtonSettings.prototype, "close", void 0);
69
+ __decorate([
70
+ Event()
71
+ ], RibbonSplitButtonSettings.prototype, "click", void 0);
72
+ __decorate([
73
+ Event()
74
+ ], RibbonSplitButtonSettings.prototype, "created", void 0);
75
+ __decorate([
76
+ Event()
77
+ ], RibbonSplitButtonSettings.prototype, "open", void 0);
78
+ __decorate([
79
+ Event()
80
+ ], RibbonSplitButtonSettings.prototype, "select", void 0);
81
+ return RibbonSplitButtonSettings;
82
+ }(ChildProperty));
83
+ export { RibbonSplitButtonSettings };
@@ -0,0 +1,37 @@
1
+ import { ChildProperty, Collection, Property } from '@syncfusion/ej2-base';import { RibbonGroup } from './ribbon-group';import { RibbonGroupModel } from './ribbon-group-model';
2
+
3
+ /**
4
+ * Interface for a class RibbonTab
5
+ */
6
+ export interface RibbonTabModel {
7
+
8
+ /**
9
+ * Defines a unique identifier for the tab.
10
+ *
11
+ * @default ''
12
+ */
13
+ id?: string;
14
+
15
+ /**
16
+ * Defines one or more CSS classes to customize the appearance of tab.
17
+ *
18
+ * @default ''
19
+ */
20
+ cssClass?: string;
21
+
22
+ /**
23
+ * Defines the list of ribbon groups.
24
+ *
25
+ * @default []
26
+ * @aspType List<RibbonGroup>
27
+ */
28
+ groups?: RibbonGroupModel[];
29
+
30
+ /**
31
+ * Defines the content of tab header.
32
+ *
33
+ * @default ''
34
+ */
35
+ header?: string;
36
+
37
+ }
@@ -0,0 +1,39 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { RibbonGroupModel } from './ribbon-group-model';
3
+ /**
4
+ * Defines the ribbon tab.
5
+ */
6
+ export declare class RibbonTab extends ChildProperty<RibbonTab> {
7
+ /**
8
+ * Defines a unique identifier for the tab.
9
+ *
10
+ * @default ''
11
+ */
12
+ id: string;
13
+ /**
14
+ * Defines one or more CSS classes to customize the appearance of tab.
15
+ *
16
+ * @default ''
17
+ */
18
+ cssClass: string;
19
+ /**
20
+ * Defines the list of ribbon groups.
21
+ *
22
+ * @default []
23
+ * @aspType List<RibbonGroup>
24
+ */
25
+ groups: RibbonGroupModel[];
26
+ /**
27
+ * Defines the content of tab header.
28
+ *
29
+ * @default ''
30
+ */
31
+ header: string;
32
+ /**
33
+ * @param {Object} prop - Gets the property of tab.
34
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
35
+ * @returns {void}
36
+ * @private
37
+ */
38
+ setProperties(prop: Object, muteOnChange: boolean): void;
39
+ }