@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,108 @@
1
+ import { ChildProperty, Property, Event, EmitType, Complex, Collection, BaseEventArgs } from '@syncfusion/ej2-base';import { MenuAnimationSettings, MenuAnimationSettingsModel, MenuItem, MenuItemModel } from '@syncfusion/ej2-navigations';import { RibbonTooltip } from './ribbon-tooltip';import { RibbonTooltipModel } from './ribbon-tooltip-model';
2
+ import {FileMenuBeforeOpenCloseEventArgs,FileMenuEventArgs,FileMenuOpenCloseEventArgs} from "./ribbon-file-menu-settings";
3
+
4
+ /**
5
+ * Interface for a class FileMenuSettings
6
+ */
7
+ export interface FileMenuSettingsModel {
8
+
9
+ /**
10
+ * Defines the text content of file menu button.
11
+ *
12
+ * @default 'File'
13
+ */
14
+ text?: string;
15
+
16
+ /**
17
+ * Defines whether to show the file menu button.
18
+ *
19
+ * @default false
20
+ */
21
+ visible?: boolean;
22
+
23
+ /**
24
+ * Defines the list of menu items for the file menu.
25
+ *
26
+ * @default []
27
+ */
28
+ menuItems?: MenuItemModel[];
29
+
30
+ /**
31
+ * Specifies whether to show the sub menu or not on click.
32
+ * When set to true, the sub menu will open only on mouse click.
33
+ *
34
+ * @default false
35
+ */
36
+ showItemOnClick?: boolean;
37
+
38
+ /**
39
+ * Specifies the animation settings for the sub menu open/close.
40
+ *
41
+ * @default ''
42
+ */
43
+ animationSettings?: MenuAnimationSettingsModel;
44
+
45
+ /**
46
+ * Specifies the template for file menu item.
47
+ *
48
+ * @default ''
49
+ */
50
+ itemTemplate?: string;
51
+
52
+ /**
53
+ * Specifies the custom content for the file menu popup.
54
+ *
55
+ * @default ''
56
+ */
57
+ popupTemplate?: string | HTMLElement;
58
+
59
+ /**
60
+ * Specifies the tooltip settings for the file menu button.
61
+ *
62
+ * @default {}
63
+ */
64
+ ribbonTooltipSettings?: RibbonTooltipModel;
65
+
66
+ /**
67
+ * Event triggers before closing the file menu popup.
68
+ *
69
+ * @event beforeClose
70
+ */
71
+ beforeClose?: EmitType<FileMenuBeforeOpenCloseEventArgs>;
72
+
73
+ /**
74
+ * Event triggers before opening the file menu popup.
75
+ *
76
+ * @event beforeOpen
77
+ */
78
+ beforeOpen?: EmitType<FileMenuBeforeOpenCloseEventArgs>;
79
+
80
+ /**
81
+ * Event triggers while rendering each ribbon file menu item.
82
+ *
83
+ * @event beforeItemRender
84
+ */
85
+ beforeItemRender?: EmitType<FileMenuEventArgs>;
86
+
87
+ /**
88
+ * Event triggers when file menu popup is closed.
89
+ *
90
+ * @event close
91
+ */
92
+ close?: EmitType<FileMenuOpenCloseEventArgs>;
93
+
94
+ /**
95
+ * Event triggers when file menu popup is opened.
96
+ *
97
+ * @event open
98
+ */
99
+ open?: EmitType<FileMenuOpenCloseEventArgs>;
100
+
101
+ /**
102
+ * Event triggers while selecting an item in ribbon file menu.
103
+ *
104
+ * @event select
105
+ */
106
+ select?: EmitType<FileMenuEventArgs>;
107
+
108
+ }
@@ -0,0 +1,159 @@
1
+ import { ChildProperty, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
2
+ import { MenuAnimationSettingsModel, MenuItemModel } from '@syncfusion/ej2-navigations';
3
+ import { RibbonTooltipModel } from './ribbon-tooltip-model';
4
+ /**
5
+ * Defines the ribbon file menu settings.
6
+ */
7
+ export declare class FileMenuSettings extends ChildProperty<FileMenuSettings> {
8
+ /**
9
+ * Defines the text content of file menu button.
10
+ *
11
+ * @default 'File'
12
+ */
13
+ text: string;
14
+ /**
15
+ * Defines whether to show the file menu button.
16
+ *
17
+ * @default false
18
+ */
19
+ visible: boolean;
20
+ /**
21
+ * Defines the list of menu items for the file menu.
22
+ *
23
+ * @default []
24
+ */
25
+ menuItems: MenuItemModel[];
26
+ /**
27
+ * Specifies whether to show the sub menu or not on click.
28
+ * When set to true, the sub menu will open only on mouse click.
29
+ *
30
+ * @default false
31
+ */
32
+ showItemOnClick: boolean;
33
+ /**
34
+ * Specifies the animation settings for the sub menu open/close.
35
+ *
36
+ * @default ''
37
+ */
38
+ animationSettings: MenuAnimationSettingsModel;
39
+ /**
40
+ * Specifies the template for file menu item.
41
+ *
42
+ * @default ''
43
+ */
44
+ itemTemplate: string;
45
+ /**
46
+ * Specifies the custom content for the file menu popup.
47
+ *
48
+ * @default ''
49
+ */
50
+ popupTemplate: string | HTMLElement;
51
+ /**
52
+ * Specifies the tooltip settings for the file menu button.
53
+ *
54
+ * @default {}
55
+ */
56
+ ribbonTooltipSettings: RibbonTooltipModel;
57
+ /**
58
+ * Event triggers before closing the file menu popup.
59
+ *
60
+ * @event beforeClose
61
+ */
62
+ beforeClose: EmitType<FileMenuBeforeOpenCloseEventArgs>;
63
+ /**
64
+ * Event triggers before opening the file menu popup.
65
+ *
66
+ * @event beforeOpen
67
+ */
68
+ beforeOpen: EmitType<FileMenuBeforeOpenCloseEventArgs>;
69
+ /**
70
+ * Event triggers while rendering each ribbon file menu item.
71
+ *
72
+ * @event beforeItemRender
73
+ */
74
+ beforeItemRender: EmitType<FileMenuEventArgs>;
75
+ /**
76
+ * Event triggers when file menu popup is closed.
77
+ *
78
+ * @event close
79
+ */
80
+ close: EmitType<FileMenuOpenCloseEventArgs>;
81
+ /**
82
+ * Event triggers when file menu popup is opened.
83
+ *
84
+ * @event open
85
+ */
86
+ open: EmitType<FileMenuOpenCloseEventArgs>;
87
+ /**
88
+ * Event triggers while selecting an item in ribbon file menu.
89
+ *
90
+ * @event select
91
+ */
92
+ select: EmitType<FileMenuEventArgs>;
93
+ /**
94
+ * @param {Object} prop - Gets the property of FileMenu.
95
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
96
+ * @returns {void}
97
+ * @private
98
+ */
99
+ setProperties(prop: Object, muteOnChange: boolean): void;
100
+ }
101
+ /**
102
+ * Event Triggers when selecting or creating the file menu item.
103
+ */
104
+ export interface FileMenuEventArgs extends BaseEventArgs {
105
+ /**
106
+ * Provides the HTML element of the file menu item.
107
+ */
108
+ element: HTMLElement;
109
+ /**
110
+ * Provides the file menu item object.
111
+ */
112
+ item: MenuItemModel;
113
+ /**
114
+ * Provides the actual native event.
115
+ */
116
+ event?: Event;
117
+ }
118
+ /**
119
+ * Event Triggers when opening or closing the file menu.
120
+ */
121
+ export interface FileMenuOpenCloseEventArgs extends BaseEventArgs {
122
+ /**
123
+ * Provides the HTML element of the file menu popup.
124
+ */
125
+ element: HTMLElement;
126
+ /**
127
+ * Provides the file menu item object.
128
+ */
129
+ items?: MenuItemModel[];
130
+ /**
131
+ * Provides the parent file menu item of the popup, in case of sub-menu.
132
+ */
133
+ parentItem?: MenuItemModel;
134
+ }
135
+ /**
136
+ * Event Triggers before opening or closing the file menu.
137
+ */
138
+ export interface FileMenuBeforeOpenCloseEventArgs extends BaseEventArgs {
139
+ /**
140
+ * Defines whether to cancel the file menu popup opening or closing.
141
+ */
142
+ cancel: boolean;
143
+ /**
144
+ * Provides the HTML element of the file menu popup.
145
+ */
146
+ element: HTMLElement;
147
+ /**
148
+ * Provides the file menu item object.
149
+ */
150
+ items?: MenuItemModel[];
151
+ /**
152
+ * Provides the parent file menu item of the popup, in case of sub-menu.
153
+ */
154
+ parentItem?: MenuItemModel;
155
+ /**
156
+ * Provides the actual native event.
157
+ */
158
+ event: Event;
159
+ }
@@ -0,0 +1,84 @@
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, Property, Event, Complex, Collection } from '@syncfusion/ej2-base';
21
+ import { MenuAnimationSettings, MenuItem } from '@syncfusion/ej2-navigations';
22
+ import { RibbonTooltip } from './ribbon-tooltip';
23
+ /**
24
+ * Defines the ribbon file menu settings.
25
+ */
26
+ var FileMenuSettings = /** @class */ (function (_super) {
27
+ __extends(FileMenuSettings, _super);
28
+ function FileMenuSettings() {
29
+ return _super !== null && _super.apply(this, arguments) || this;
30
+ }
31
+ /**
32
+ * @param {Object} prop - Gets the property of FileMenu.
33
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
34
+ * @returns {void}
35
+ * @private
36
+ */
37
+ FileMenuSettings.prototype.setProperties = function (prop, muteOnChange) {
38
+ _super.prototype.setProperties.call(this, prop, muteOnChange);
39
+ };
40
+ __decorate([
41
+ Property('File')
42
+ ], FileMenuSettings.prototype, "text", void 0);
43
+ __decorate([
44
+ Property(false)
45
+ ], FileMenuSettings.prototype, "visible", void 0);
46
+ __decorate([
47
+ Collection([], MenuItem)
48
+ ], FileMenuSettings.prototype, "menuItems", void 0);
49
+ __decorate([
50
+ Property(false)
51
+ ], FileMenuSettings.prototype, "showItemOnClick", void 0);
52
+ __decorate([
53
+ Complex({}, MenuAnimationSettings)
54
+ ], FileMenuSettings.prototype, "animationSettings", void 0);
55
+ __decorate([
56
+ Property('')
57
+ ], FileMenuSettings.prototype, "itemTemplate", void 0);
58
+ __decorate([
59
+ Property('')
60
+ ], FileMenuSettings.prototype, "popupTemplate", void 0);
61
+ __decorate([
62
+ Complex({}, RibbonTooltip)
63
+ ], FileMenuSettings.prototype, "ribbonTooltipSettings", void 0);
64
+ __decorate([
65
+ Event()
66
+ ], FileMenuSettings.prototype, "beforeClose", void 0);
67
+ __decorate([
68
+ Event()
69
+ ], FileMenuSettings.prototype, "beforeOpen", void 0);
70
+ __decorate([
71
+ Event()
72
+ ], FileMenuSettings.prototype, "beforeItemRender", void 0);
73
+ __decorate([
74
+ Event()
75
+ ], FileMenuSettings.prototype, "close", void 0);
76
+ __decorate([
77
+ Event()
78
+ ], FileMenuSettings.prototype, "open", void 0);
79
+ __decorate([
80
+ Event()
81
+ ], FileMenuSettings.prototype, "select", void 0);
82
+ return FileMenuSettings;
83
+ }(ChildProperty));
84
+ export { FileMenuSettings };
@@ -0,0 +1,91 @@
1
+ import { ChildProperty, Collection, Property } from '@syncfusion/ej2-base';import { RibbonCollectionModel } from './ribbon-collection-model';import { ItemOrientation } from '../base/interface';import { RibbonCollection } from './ribbon-collection';
2
+
3
+ /**
4
+ * Interface for a class RibbonGroup
5
+ */
6
+ export interface RibbonGroupModel {
7
+
8
+ /**
9
+ * Defines the list of ribbon collections.
10
+ *
11
+ * @default []
12
+ * @aspType List<RibbonCollection>
13
+ */
14
+ collections?: RibbonCollectionModel[];
15
+
16
+ /**
17
+ * Defines one or more CSS classes to customize the appearance of group.
18
+ *
19
+ * @default ''
20
+ */
21
+ cssClass?: string;
22
+
23
+ /**
24
+ * Defines a unique identifier for the group.
25
+ *
26
+ * @default ''
27
+ */
28
+ id?: string;
29
+
30
+ /**
31
+ * Defines whether the group is in collapsed state or not during classic mode.
32
+ *
33
+ * @default false
34
+ */
35
+ isCollapsed?: boolean;
36
+
37
+ /**
38
+ * Defines whether the group can be collapsed on resize during classic mode.
39
+ *
40
+ * @default true
41
+ */
42
+ isCollapsible?: boolean;
43
+
44
+ /**
45
+ * Defines whether to add a separate popup for the overflow items in the group.
46
+ * If it is set to false, the overflow items will be shown in the common overflow popup present at the right end of the tab content.
47
+ *
48
+ * @default false
49
+ */
50
+ enableGroupOverflow?: boolean;
51
+
52
+ /**
53
+ * Defines the CSS class for the icons to be shown in the group overflow dropdown button in classic mode.
54
+ * During overflow, the entire group will be shown in a popup of a dropdown button which appears in the place of the group in ribbon tab.
55
+ *
56
+ * @default ''
57
+ */
58
+ groupIconCss?: string;
59
+
60
+ /**
61
+ * Defines the content of group header.
62
+ *
63
+ * @default ''
64
+ */
65
+ header?: string;
66
+
67
+ /**
68
+ * Defines whether to orientation in which the items of the group should be arranged.
69
+ *
70
+ * @isenumeration true
71
+ * @default ItemOrientation.Column
72
+ * @aspType ItemOrientation
73
+ */
74
+ orientation?: ItemOrientation | string;
75
+
76
+ /**
77
+ * Defines the priority order at which the group should be collapsed or expanded.
78
+ * For collapsing value is fetched in ascending order and for expanding value is fetched in descending order.
79
+ *
80
+ * @default 0
81
+ */
82
+ priority?: number;
83
+
84
+ /**
85
+ * Defines whether to show or hide the launcher icon for the group.
86
+ *
87
+ * @default false
88
+ */
89
+ showLauncherIcon?: boolean;
90
+
91
+ }
@@ -0,0 +1,87 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { RibbonCollectionModel } from './ribbon-collection-model';
3
+ import { ItemOrientation } from '../base/interface';
4
+ /**
5
+ * Defines the ribbon group.
6
+ */
7
+ export declare class RibbonGroup extends ChildProperty<RibbonGroup> {
8
+ /**
9
+ * Defines the list of ribbon collections.
10
+ *
11
+ * @default []
12
+ * @aspType List<RibbonCollection>
13
+ */
14
+ collections: RibbonCollectionModel[];
15
+ /**
16
+ * Defines one or more CSS classes to customize the appearance of group.
17
+ *
18
+ * @default ''
19
+ */
20
+ cssClass: string;
21
+ /**
22
+ * Defines a unique identifier for the group.
23
+ *
24
+ * @default ''
25
+ */
26
+ id: string;
27
+ /**
28
+ * Defines whether the group is in collapsed state or not during classic mode.
29
+ *
30
+ * @default false
31
+ */
32
+ isCollapsed: boolean;
33
+ /**
34
+ * Defines whether the group can be collapsed on resize during classic mode.
35
+ *
36
+ * @default true
37
+ */
38
+ isCollapsible: boolean;
39
+ /**
40
+ * Defines whether to add a separate popup for the overflow items in the group.
41
+ * If it is set to false, the overflow items will be shown in the common overflow popup present at the right end of the tab content.
42
+ *
43
+ * @default false
44
+ */
45
+ enableGroupOverflow: boolean;
46
+ /**
47
+ * Defines the CSS class for the icons to be shown in the group overflow dropdown button in classic mode.
48
+ * During overflow, the entire group will be shown in a popup of a dropdown button which appears in the place of the group in ribbon tab.
49
+ *
50
+ * @default ''
51
+ */
52
+ groupIconCss: string;
53
+ /**
54
+ * Defines the content of group header.
55
+ *
56
+ * @default ''
57
+ */
58
+ header: string;
59
+ /**
60
+ * Defines whether to orientation in which the items of the group should be arranged.
61
+ *
62
+ * @isenumeration true
63
+ * @default ItemOrientation.Column
64
+ * @aspType ItemOrientation
65
+ */
66
+ orientation: ItemOrientation | string;
67
+ /**
68
+ * Defines the priority order at which the group should be collapsed or expanded.
69
+ * For collapsing value is fetched in ascending order and for expanding value is fetched in descending order.
70
+ *
71
+ * @default 0
72
+ */
73
+ priority: number;
74
+ /**
75
+ * Defines whether to show or hide the launcher icon for the group.
76
+ *
77
+ * @default false
78
+ */
79
+ showLauncherIcon: boolean;
80
+ /**
81
+ * @param {Object} prop - Gets the property of Group.
82
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
83
+ * @returns {void}
84
+ * @private
85
+ */
86
+ setProperties(prop: Object, muteOnChange: boolean): void;
87
+ }
@@ -0,0 +1,74 @@
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, Property } from '@syncfusion/ej2-base';
21
+ import { RibbonCollection } from './ribbon-collection';
22
+ /**
23
+ * Defines the ribbon group.
24
+ */
25
+ var RibbonGroup = /** @class */ (function (_super) {
26
+ __extends(RibbonGroup, _super);
27
+ function RibbonGroup() {
28
+ return _super !== null && _super.apply(this, arguments) || this;
29
+ }
30
+ /**
31
+ * @param {Object} prop - Gets the property of Group.
32
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
33
+ * @returns {void}
34
+ * @private
35
+ */
36
+ RibbonGroup.prototype.setProperties = function (prop, muteOnChange) {
37
+ _super.prototype.setProperties.call(this, prop, muteOnChange);
38
+ };
39
+ __decorate([
40
+ Collection([], RibbonCollection)
41
+ ], RibbonGroup.prototype, "collections", void 0);
42
+ __decorate([
43
+ Property('')
44
+ ], RibbonGroup.prototype, "cssClass", void 0);
45
+ __decorate([
46
+ Property('')
47
+ ], RibbonGroup.prototype, "id", void 0);
48
+ __decorate([
49
+ Property(false)
50
+ ], RibbonGroup.prototype, "isCollapsed", void 0);
51
+ __decorate([
52
+ Property(true)
53
+ ], RibbonGroup.prototype, "isCollapsible", void 0);
54
+ __decorate([
55
+ Property(false)
56
+ ], RibbonGroup.prototype, "enableGroupOverflow", void 0);
57
+ __decorate([
58
+ Property('')
59
+ ], RibbonGroup.prototype, "groupIconCss", void 0);
60
+ __decorate([
61
+ Property('')
62
+ ], RibbonGroup.prototype, "header", void 0);
63
+ __decorate([
64
+ Property('Column')
65
+ ], RibbonGroup.prototype, "orientation", void 0);
66
+ __decorate([
67
+ Property(0)
68
+ ], RibbonGroup.prototype, "priority", void 0);
69
+ __decorate([
70
+ Property(false)
71
+ ], RibbonGroup.prototype, "showLauncherIcon", void 0);
72
+ return RibbonGroup;
73
+ }(ChildProperty));
74
+ export { RibbonGroup };