@syncfusion/ej2-ribbon 30.2.4 → 31.1.17
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.
- package/dist/ej2-ribbon.umd.min.js +1 -1
- package/dist/global/ej2-ribbon.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/index.d.ts +1 -0
- package/dist/ts/index.ts +3 -0
- package/dist/ts/ribbon/base/constant.d.ts +201 -0
- package/dist/ts/ribbon/base/constant.ts +204 -0
- package/dist/ts/ribbon/base/index.d.ts +8 -0
- package/dist/ts/ribbon/base/index.ts +8 -0
- package/dist/ts/ribbon/base/interface.d.ts +398 -0
- package/dist/ts/ribbon/base/interface.ts +424 -0
- package/dist/ts/ribbon/base/ribbon-model.d.ts +195 -0
- package/dist/ts/ribbon/base/ribbon.d.ts +608 -0
- package/dist/ts/ribbon/base/ribbon.ts +4896 -0
- package/dist/ts/ribbon/base/utils.d.ts +139 -0
- package/dist/ts/ribbon/base/utils.ts +341 -0
- package/dist/ts/ribbon/index.d.ts +7 -0
- package/dist/ts/ribbon/index.ts +7 -0
- package/dist/ts/ribbon/items/index.d.ts +8 -0
- package/dist/ts/ribbon/items/index.ts +8 -0
- package/dist/ts/ribbon/items/ribbon-button.d.ts +64 -0
- package/dist/ts/ribbon/items/ribbon-button.ts +160 -0
- package/dist/ts/ribbon/items/ribbon-checkbox.d.ts +55 -0
- package/dist/ts/ribbon/items/ribbon-checkbox.ts +130 -0
- package/dist/ts/ribbon/items/ribbon-colorpicker.d.ts +72 -0
- package/dist/ts/ribbon/items/ribbon-colorpicker.ts +228 -0
- package/dist/ts/ribbon/items/ribbon-combobox.d.ts +77 -0
- package/dist/ts/ribbon/items/ribbon-combobox.ts +201 -0
- package/dist/ts/ribbon/items/ribbon-dropdown.d.ts +128 -0
- package/dist/ts/ribbon/items/ribbon-dropdown.ts +400 -0
- package/dist/ts/ribbon/items/ribbon-gallery.d.ts +97 -0
- package/dist/ts/ribbon/items/ribbon-gallery.ts +773 -0
- package/dist/ts/ribbon/items/ribbon-groupbutton.d.ts +73 -0
- package/dist/ts/ribbon/items/ribbon-groupbutton.ts +531 -0
- package/dist/ts/ribbon/items/ribbon-splitbutton.d.ts +85 -0
- package/dist/ts/ribbon/items/ribbon-splitbutton.ts +257 -0
- package/dist/ts/ribbon/models/index.d.ts +42 -0
- package/dist/ts/ribbon/models/index.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-back-button-model.d.ts +29 -0
- package/dist/ts/ribbon/models/ribbon-back-button.d.ts +24 -0
- package/dist/ts/ribbon/models/ribbon-back-button.ts +31 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings-model.d.ts +83 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.d.ts +81 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.ts +109 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item-model.d.ts +69 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item.d.ts +80 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item.ts +102 -0
- package/dist/ts/ribbon/models/ribbon-button-settings-model.d.ts +64 -0
- package/dist/ts/ribbon/models/ribbon-button-settings.d.ts +63 -0
- package/dist/ts/ribbon/models/ribbon-button-settings.ts +80 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings-model.d.ts +57 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.d.ts +58 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.ts +74 -0
- package/dist/ts/ribbon/models/ribbon-collection-model.d.ts +30 -0
- package/dist/ts/ribbon/models/ribbon-collection.d.ts +33 -0
- package/dist/ts/ribbon/models/ribbon-collection.ts +45 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings-model.d.ts +137 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.d.ts +129 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.ts +165 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings-model.d.ts +275 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings.d.ts +257 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings.ts +313 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +30 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.d.ts +33 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings-model.d.ts +114 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.d.ts +107 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.ts +139 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings-model.d.ts +123 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.d.ts +173 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.ts +220 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group-model.d.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group.d.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group.ts +50 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item-model.d.ts +43 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item.d.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item.ts +47 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings-model.d.ts +108 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings.d.ts +95 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings.ts +123 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item-model.d.ts +64 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item.d.ts +65 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item.ts +85 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings-model.d.ts +32 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings.d.ts +29 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-group-model.d.ts +112 -0
- package/dist/ts/ribbon/models/ribbon-group.d.ts +105 -0
- package/dist/ts/ribbon/models/ribbon-group.ts +138 -0
- package/dist/ts/ribbon/models/ribbon-item-model.d.ts +144 -0
- package/dist/ts/ribbon/models/ribbon-item.d.ts +141 -0
- package/dist/ts/ribbon/models/ribbon-item.ts +190 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings-model.d.ts +114 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.d.ts +107 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.ts +140 -0
- package/dist/ts/ribbon/models/ribbon-tab-model.d.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-tab.d.ts +45 -0
- package/dist/ts/ribbon/models/ribbon-tab.ts +61 -0
- package/dist/ts/ribbon/models/ribbon-tooltip-model.d.ts +43 -0
- package/dist/ts/ribbon/models/ribbon-tooltip.d.ts +36 -0
- package/dist/ts/ribbon/models/ribbon-tooltip.ts +47 -0
- package/dist/ts/ribbon/modules/index.d.ts +4 -0
- package/dist/ts/ribbon/modules/index.ts +5 -0
- package/dist/ts/ribbon/modules/ribbon-backstage.d.ts +117 -0
- package/dist/ts/ribbon/modules/ribbon-backstage.ts +620 -0
- package/dist/ts/ribbon/modules/ribbon-contextualtab.d.ts +27 -0
- package/dist/ts/ribbon/modules/ribbon-contextualtab.ts +93 -0
- package/dist/ts/ribbon/modules/ribbon-filemenu.d.ts +96 -0
- package/dist/ts/ribbon/modules/ribbon-filemenu.ts +353 -0
- package/dist/ts/ribbon/modules/ribbon-keytip.d.ts +56 -0
- package/dist/ts/ribbon/modules/ribbon-keytip.ts +580 -0
- package/package.json +55 -19
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { ChildProperty, Collection, Event, EmitType, Property } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ItemModel, Item, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs } from '@syncfusion/ej2-splitbuttons';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines the ribbon DropDownButton item.
|
|
6
|
+
*/
|
|
7
|
+
export class RibbonDropDownSettings extends ChildProperty<RibbonDropDownSettings> {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the event to close the DropDownButton popup.
|
|
11
|
+
*
|
|
12
|
+
* @default ''
|
|
13
|
+
*/
|
|
14
|
+
@Property('')
|
|
15
|
+
public closeActionEvents: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the content of the DropDownButton.
|
|
19
|
+
*
|
|
20
|
+
* @default ''
|
|
21
|
+
*/
|
|
22
|
+
@Property('')
|
|
23
|
+
public content: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Defines one or more CSS classes to customize the appearance of DropDownButton.
|
|
27
|
+
*
|
|
28
|
+
* @default ''
|
|
29
|
+
*/
|
|
30
|
+
@Property('')
|
|
31
|
+
public cssClass: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Defines the CSS class for the icons to be shown in the DropDownButton.
|
|
35
|
+
*
|
|
36
|
+
* @default ''
|
|
37
|
+
*/
|
|
38
|
+
@Property('')
|
|
39
|
+
public iconCss: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Defines the list of items for the DropDownButton popup.
|
|
43
|
+
*
|
|
44
|
+
* @default []
|
|
45
|
+
*/
|
|
46
|
+
@Collection<ItemModel>([], Item)
|
|
47
|
+
public items: ItemModel[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the selector for the element to be shown in the DropDownButton popup.
|
|
51
|
+
*
|
|
52
|
+
* @default ''
|
|
53
|
+
* @aspType string
|
|
54
|
+
*/
|
|
55
|
+
@Property('')
|
|
56
|
+
public target: string | HTMLElement;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Specifies whether to create popup element on open.
|
|
60
|
+
*
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
@Property(false)
|
|
64
|
+
public createPopupOnClick: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Specifies additional HTML attributes to be applied to the DropDownButton.
|
|
68
|
+
*
|
|
69
|
+
* @default {}
|
|
70
|
+
*/
|
|
71
|
+
@Property({})
|
|
72
|
+
public htmlAttributes: { [key: string]: string };
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Triggers before closing the DropDownButton popup.
|
|
76
|
+
*
|
|
77
|
+
* @event beforeClose
|
|
78
|
+
*/
|
|
79
|
+
@Event()
|
|
80
|
+
public beforeClose: EmitType<BeforeOpenCloseMenuEventArgs>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Triggers while rendering each Popup item of DropDownButton.
|
|
84
|
+
*
|
|
85
|
+
* @event beforeItemRender
|
|
86
|
+
*/
|
|
87
|
+
@Event()
|
|
88
|
+
public beforeItemRender: EmitType<MenuEventArgs>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Triggers before opening the DropDownButton popup.
|
|
92
|
+
*
|
|
93
|
+
* @event beforeOpen
|
|
94
|
+
*/
|
|
95
|
+
@Event()
|
|
96
|
+
public beforeOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Triggers while closing the DropDownButton popup.
|
|
100
|
+
*
|
|
101
|
+
* @event close
|
|
102
|
+
*/
|
|
103
|
+
@Event()
|
|
104
|
+
public close: EmitType<OpenCloseMenuEventArgs>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Event triggers once the DropDownButton is created.
|
|
108
|
+
*
|
|
109
|
+
* @event created
|
|
110
|
+
*/
|
|
111
|
+
@Event()
|
|
112
|
+
public created: EmitType<Event>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Triggers while opening the DropDownButton popup.
|
|
116
|
+
*
|
|
117
|
+
* @event open
|
|
118
|
+
*/
|
|
119
|
+
@Event()
|
|
120
|
+
public open: EmitType<OpenCloseMenuEventArgs>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Triggers while selecting an action item in DropDownButton popup.
|
|
124
|
+
*
|
|
125
|
+
* @event select
|
|
126
|
+
*/
|
|
127
|
+
@Event()
|
|
128
|
+
public select: EmitType<MenuEventArgs>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {Object} prop - Gets the property of DropDown.
|
|
132
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
133
|
+
* @returns {void}
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
137
|
+
super.setProperties(prop, muteOnChange);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
* @angularType string | object
|
|
50
|
+
* @reactType string | function | JSX.Element
|
|
51
|
+
* @vueType string | function
|
|
52
|
+
* @aspType string
|
|
53
|
+
*/
|
|
54
|
+
itemTemplate?: string | Function;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the custom content for the file menu popup.
|
|
58
|
+
*
|
|
59
|
+
* @default ''
|
|
60
|
+
* @angularType string | HTMLElement
|
|
61
|
+
* @reactType string | HTMLElement | JSX.Element
|
|
62
|
+
* @vueType string | HTMLElement
|
|
63
|
+
* @aspType string
|
|
64
|
+
*/
|
|
65
|
+
popupTemplate?: string | HTMLElement;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Specifies the tooltip settings for the file menu button.
|
|
69
|
+
*
|
|
70
|
+
* @default {}
|
|
71
|
+
*/
|
|
72
|
+
ribbonTooltipSettings?: RibbonTooltipModel;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Event triggers before closing the file menu popup.
|
|
76
|
+
*
|
|
77
|
+
* @event beforeClose
|
|
78
|
+
*/
|
|
79
|
+
beforeClose?: EmitType<FileMenuBeforeOpenCloseEventArgs>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Event triggers before opening the file menu popup.
|
|
83
|
+
*
|
|
84
|
+
* @event beforeOpen
|
|
85
|
+
*/
|
|
86
|
+
beforeOpen?: EmitType<FileMenuBeforeOpenCloseEventArgs>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Event triggers while rendering each ribbon file menu item.
|
|
90
|
+
*
|
|
91
|
+
* @event beforeItemRender
|
|
92
|
+
*/
|
|
93
|
+
beforeItemRender?: EmitType<FileMenuEventArgs>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Event triggers when file menu popup is closed.
|
|
97
|
+
*
|
|
98
|
+
* @event close
|
|
99
|
+
*/
|
|
100
|
+
close?: EmitType<FileMenuOpenCloseEventArgs>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Event triggers when file menu popup is opened.
|
|
104
|
+
*
|
|
105
|
+
* @event open
|
|
106
|
+
*/
|
|
107
|
+
open?: EmitType<FileMenuOpenCloseEventArgs>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Event triggers while selecting an item in ribbon file menu.
|
|
111
|
+
*
|
|
112
|
+
* @event select
|
|
113
|
+
*/
|
|
114
|
+
select?: EmitType<FileMenuEventArgs>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Specifies the keytip content.
|
|
118
|
+
*
|
|
119
|
+
* @default ''
|
|
120
|
+
*/
|
|
121
|
+
keyTip?: string;
|
|
122
|
+
|
|
123
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
* @angularType string | object
|
|
44
|
+
* @reactType string | function | JSX.Element
|
|
45
|
+
* @vueType string | function
|
|
46
|
+
* @aspType string
|
|
47
|
+
*/
|
|
48
|
+
itemTemplate: string | Function;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the custom content for the file menu popup.
|
|
51
|
+
*
|
|
52
|
+
* @default ''
|
|
53
|
+
* @angularType string | HTMLElement
|
|
54
|
+
* @reactType string | HTMLElement | JSX.Element
|
|
55
|
+
* @vueType string | HTMLElement
|
|
56
|
+
* @aspType string
|
|
57
|
+
*/
|
|
58
|
+
popupTemplate: string | HTMLElement;
|
|
59
|
+
/**
|
|
60
|
+
* Specifies the tooltip settings for the file menu button.
|
|
61
|
+
*
|
|
62
|
+
* @default {}
|
|
63
|
+
*/
|
|
64
|
+
ribbonTooltipSettings: RibbonTooltipModel;
|
|
65
|
+
/**
|
|
66
|
+
* Event triggers before closing the file menu popup.
|
|
67
|
+
*
|
|
68
|
+
* @event beforeClose
|
|
69
|
+
*/
|
|
70
|
+
beforeClose: EmitType<FileMenuBeforeOpenCloseEventArgs>;
|
|
71
|
+
/**
|
|
72
|
+
* Event triggers before opening the file menu popup.
|
|
73
|
+
*
|
|
74
|
+
* @event beforeOpen
|
|
75
|
+
*/
|
|
76
|
+
beforeOpen: EmitType<FileMenuBeforeOpenCloseEventArgs>;
|
|
77
|
+
/**
|
|
78
|
+
* Event triggers while rendering each ribbon file menu item.
|
|
79
|
+
*
|
|
80
|
+
* @event beforeItemRender
|
|
81
|
+
*/
|
|
82
|
+
beforeItemRender: EmitType<FileMenuEventArgs>;
|
|
83
|
+
/**
|
|
84
|
+
* Event triggers when file menu popup is closed.
|
|
85
|
+
*
|
|
86
|
+
* @event close
|
|
87
|
+
*/
|
|
88
|
+
close: EmitType<FileMenuOpenCloseEventArgs>;
|
|
89
|
+
/**
|
|
90
|
+
* Event triggers when file menu popup is opened.
|
|
91
|
+
*
|
|
92
|
+
* @event open
|
|
93
|
+
*/
|
|
94
|
+
open: EmitType<FileMenuOpenCloseEventArgs>;
|
|
95
|
+
/**
|
|
96
|
+
* Event triggers while selecting an item in ribbon file menu.
|
|
97
|
+
*
|
|
98
|
+
* @event select
|
|
99
|
+
*/
|
|
100
|
+
select: EmitType<FileMenuEventArgs>;
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the keytip content.
|
|
103
|
+
*
|
|
104
|
+
* @default ''
|
|
105
|
+
*/
|
|
106
|
+
keyTip: string;
|
|
107
|
+
/**
|
|
108
|
+
* @param {Object} prop - Gets the property of FileMenu.
|
|
109
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
110
|
+
* @returns {void}
|
|
111
|
+
* @private
|
|
112
|
+
*/
|
|
113
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Event Triggers when selecting or creating the file menu item.
|
|
117
|
+
*/
|
|
118
|
+
export interface FileMenuEventArgs extends BaseEventArgs {
|
|
119
|
+
/**
|
|
120
|
+
* Provides the HTML element of the file menu item.
|
|
121
|
+
*/
|
|
122
|
+
element: HTMLElement;
|
|
123
|
+
/**
|
|
124
|
+
* Provides the file menu item object.
|
|
125
|
+
*/
|
|
126
|
+
item: MenuItemModel;
|
|
127
|
+
/**
|
|
128
|
+
* Provides the actual native event.
|
|
129
|
+
*/
|
|
130
|
+
event?: Event;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Event Triggers when opening or closing the file menu.
|
|
134
|
+
*/
|
|
135
|
+
export interface FileMenuOpenCloseEventArgs extends BaseEventArgs {
|
|
136
|
+
/**
|
|
137
|
+
* Provides the HTML element of the file menu popup.
|
|
138
|
+
*/
|
|
139
|
+
element: HTMLElement;
|
|
140
|
+
/**
|
|
141
|
+
* Provides the file menu item object.
|
|
142
|
+
*/
|
|
143
|
+
items?: MenuItemModel[];
|
|
144
|
+
/**
|
|
145
|
+
* Provides the parent file menu item of the popup, in case of sub-menu.
|
|
146
|
+
*/
|
|
147
|
+
parentItem?: MenuItemModel;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Event Triggers before opening or closing the file menu.
|
|
151
|
+
*/
|
|
152
|
+
export interface FileMenuBeforeOpenCloseEventArgs extends BaseEventArgs {
|
|
153
|
+
/**
|
|
154
|
+
* Defines whether to cancel the file menu popup opening or closing.
|
|
155
|
+
*/
|
|
156
|
+
cancel: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Provides the HTML element of the file menu popup.
|
|
159
|
+
*/
|
|
160
|
+
element: HTMLElement;
|
|
161
|
+
/**
|
|
162
|
+
* Provides the file menu item object.
|
|
163
|
+
*/
|
|
164
|
+
items?: MenuItemModel[];
|
|
165
|
+
/**
|
|
166
|
+
* Provides the parent file menu item of the popup, in case of sub-menu.
|
|
167
|
+
*/
|
|
168
|
+
parentItem?: MenuItemModel;
|
|
169
|
+
/**
|
|
170
|
+
* Provides the actual native event.
|
|
171
|
+
*/
|
|
172
|
+
event: Event;
|
|
173
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { ChildProperty, Property, Event, EmitType, Complex, Collection, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
2
|
+
import { MenuAnimationSettings, MenuAnimationSettingsModel, MenuItem, MenuItemModel } from '@syncfusion/ej2-navigations';
|
|
3
|
+
import { RibbonTooltip } from './ribbon-tooltip';
|
|
4
|
+
import { RibbonTooltipModel } from './ribbon-tooltip-model';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Defines the ribbon file menu settings.
|
|
8
|
+
*/
|
|
9
|
+
export class FileMenuSettings extends ChildProperty<FileMenuSettings> {
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Defines the text content of file menu button.
|
|
13
|
+
*
|
|
14
|
+
* @default 'File'
|
|
15
|
+
*/
|
|
16
|
+
@Property('File')
|
|
17
|
+
public text: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Defines whether to show the file menu button.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
@Property(false)
|
|
25
|
+
public visible: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Defines the list of menu items for the file menu.
|
|
29
|
+
*
|
|
30
|
+
* @default []
|
|
31
|
+
*/
|
|
32
|
+
@Collection<MenuItemModel>([], MenuItem)
|
|
33
|
+
public menuItems: MenuItemModel[];
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Specifies whether to show the sub menu or not on click.
|
|
37
|
+
* When set to true, the sub menu will open only on mouse click.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
@Property(false)
|
|
42
|
+
public showItemOnClick: boolean;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the animation settings for the sub menu open/close.
|
|
46
|
+
*
|
|
47
|
+
* @default ''
|
|
48
|
+
*/
|
|
49
|
+
@Complex<MenuAnimationSettingsModel>({}, MenuAnimationSettings)
|
|
50
|
+
public animationSettings: MenuAnimationSettingsModel;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the template for file menu item.
|
|
54
|
+
*
|
|
55
|
+
* @default ''
|
|
56
|
+
* @angularType string | object
|
|
57
|
+
* @reactType string | function | JSX.Element
|
|
58
|
+
* @vueType string | function
|
|
59
|
+
* @aspType string
|
|
60
|
+
*/
|
|
61
|
+
@Property('')
|
|
62
|
+
public itemTemplate: string | Function;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the custom content for the file menu popup.
|
|
66
|
+
*
|
|
67
|
+
* @default ''
|
|
68
|
+
* @angularType string | HTMLElement
|
|
69
|
+
* @reactType string | HTMLElement | JSX.Element
|
|
70
|
+
* @vueType string | HTMLElement
|
|
71
|
+
* @aspType string
|
|
72
|
+
*/
|
|
73
|
+
@Property('')
|
|
74
|
+
public popupTemplate: string | HTMLElement;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Specifies the tooltip settings for the file menu button.
|
|
78
|
+
*
|
|
79
|
+
* @default {}
|
|
80
|
+
*/
|
|
81
|
+
@Complex<RibbonTooltipModel>({}, RibbonTooltip)
|
|
82
|
+
public ribbonTooltipSettings: RibbonTooltipModel;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Event triggers before closing the file menu popup.
|
|
86
|
+
*
|
|
87
|
+
* @event beforeClose
|
|
88
|
+
*/
|
|
89
|
+
@Event()
|
|
90
|
+
public beforeClose: EmitType<FileMenuBeforeOpenCloseEventArgs>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Event triggers before opening the file menu popup.
|
|
94
|
+
*
|
|
95
|
+
* @event beforeOpen
|
|
96
|
+
*/
|
|
97
|
+
@Event()
|
|
98
|
+
public beforeOpen: EmitType<FileMenuBeforeOpenCloseEventArgs>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Event triggers while rendering each ribbon file menu item.
|
|
102
|
+
*
|
|
103
|
+
* @event beforeItemRender
|
|
104
|
+
*/
|
|
105
|
+
@Event()
|
|
106
|
+
public beforeItemRender: EmitType<FileMenuEventArgs>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Event triggers when file menu popup is closed.
|
|
110
|
+
*
|
|
111
|
+
* @event close
|
|
112
|
+
*/
|
|
113
|
+
@Event()
|
|
114
|
+
public close: EmitType<FileMenuOpenCloseEventArgs>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Event triggers when file menu popup is opened.
|
|
118
|
+
*
|
|
119
|
+
* @event open
|
|
120
|
+
*/
|
|
121
|
+
@Event()
|
|
122
|
+
public open: EmitType<FileMenuOpenCloseEventArgs>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Event triggers while selecting an item in ribbon file menu.
|
|
126
|
+
*
|
|
127
|
+
* @event select
|
|
128
|
+
*/
|
|
129
|
+
@Event()
|
|
130
|
+
public select: EmitType<FileMenuEventArgs>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Specifies the keytip content.
|
|
134
|
+
*
|
|
135
|
+
* @default ''
|
|
136
|
+
*/
|
|
137
|
+
@Property('')
|
|
138
|
+
public keyTip: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @param {Object} prop - Gets the property of FileMenu.
|
|
142
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
143
|
+
* @returns {void}
|
|
144
|
+
* @private
|
|
145
|
+
*/
|
|
146
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
147
|
+
super.setProperties(prop, muteOnChange);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Event Triggers when selecting or creating the file menu item.
|
|
153
|
+
*/
|
|
154
|
+
export interface FileMenuEventArgs extends BaseEventArgs {
|
|
155
|
+
/**
|
|
156
|
+
* Provides the HTML element of the file menu item.
|
|
157
|
+
*/
|
|
158
|
+
element: HTMLElement;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Provides the file menu item object.
|
|
162
|
+
*/
|
|
163
|
+
item: MenuItemModel;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Provides the actual native event.
|
|
167
|
+
*/
|
|
168
|
+
event?: Event;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Event Triggers when opening or closing the file menu.
|
|
173
|
+
*/
|
|
174
|
+
export interface FileMenuOpenCloseEventArgs extends BaseEventArgs {
|
|
175
|
+
/**
|
|
176
|
+
* Provides the HTML element of the file menu popup.
|
|
177
|
+
*/
|
|
178
|
+
element: HTMLElement;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Provides the file menu item object.
|
|
182
|
+
*/
|
|
183
|
+
items?: MenuItemModel[];
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Provides the parent file menu item of the popup, in case of sub-menu.
|
|
187
|
+
*/
|
|
188
|
+
parentItem?: MenuItemModel;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Event Triggers before opening or closing the file menu.
|
|
193
|
+
*/
|
|
194
|
+
export interface FileMenuBeforeOpenCloseEventArgs extends BaseEventArgs {
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Defines whether to cancel the file menu popup opening or closing.
|
|
198
|
+
*/
|
|
199
|
+
cancel: boolean;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Provides the HTML element of the file menu popup.
|
|
203
|
+
*/
|
|
204
|
+
element: HTMLElement;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Provides the file menu item object.
|
|
208
|
+
*/
|
|
209
|
+
items?: MenuItemModel[];
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Provides the parent file menu item of the popup, in case of sub-menu.
|
|
213
|
+
*/
|
|
214
|
+
parentItem?: MenuItemModel;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Provides the actual native event.
|
|
218
|
+
*/
|
|
219
|
+
event: Event;
|
|
220
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChildProperty, Collection, Property } from '@syncfusion/ej2-base';import { RibbonGalleryItemModel } from './ribbon-gallery-item-model';import { RibbonGalleryItem } from './ribbon-gallery-item';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonGalleryGroup
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonGalleryGroupModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the properties for collection of gallery items in Ribbon.
|
|
10
|
+
*
|
|
11
|
+
* @default []
|
|
12
|
+
* @aspType List<RibbonGalleryItem>
|
|
13
|
+
*/
|
|
14
|
+
items?: RibbonGalleryItemModel[];
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines the header for the group items present in Ribbon Gallery popup.
|
|
18
|
+
*
|
|
19
|
+
* @default ''
|
|
20
|
+
*/
|
|
21
|
+
header?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Defines the width of the gallery items.
|
|
25
|
+
*
|
|
26
|
+
* @default 'auto'
|
|
27
|
+
*/
|
|
28
|
+
itemWidth?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Defines the height of the gallery item.
|
|
32
|
+
*
|
|
33
|
+
* @default 'auto'
|
|
34
|
+
*/
|
|
35
|
+
itemHeight?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Defines the CSS class to customize the gallery groups.
|
|
39
|
+
*
|
|
40
|
+
* @default ''
|
|
41
|
+
*/
|
|
42
|
+
cssClass?: string;
|
|
43
|
+
|
|
44
|
+
}
|