@syncfusion/ej2-ribbon 31.1.17 → 31.1.22
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 +3 -3
- package/dist/ej2-ribbon.umd.min.js.map +1 -1
- package/dist/es6/ej2-ribbon.es2015.js +24 -5
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +24 -5
- package/dist/es6/ej2-ribbon.es5.js.map +1 -1
- package/dist/global/ej2-ribbon.min.js +3 -3
- package/dist/global/ej2-ribbon.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +17 -53
- package/src/ribbon/base/ribbon-model.d.ts +1 -1
- package/src/ribbon/base/ribbon.js +14 -5
- package/src/ribbon/items/ribbon-splitbutton.js +11 -0
- package/styles/bds-lite.css +9 -0
- package/styles/bds.css +9 -0
- package/styles/bootstrap-dark-lite.css +9 -0
- package/styles/bootstrap-dark.css +9 -0
- package/styles/bootstrap-lite.css +9 -0
- package/styles/bootstrap.css +9 -0
- package/styles/bootstrap4-lite.css +17 -0
- package/styles/bootstrap4.css +17 -0
- package/styles/bootstrap5-dark-lite.css +9 -0
- package/styles/bootstrap5-dark.css +9 -0
- package/styles/bootstrap5-lite.css +9 -0
- package/styles/bootstrap5.3-lite.css +9 -0
- package/styles/bootstrap5.3.css +9 -0
- package/styles/bootstrap5.css +9 -0
- package/styles/fabric-dark-lite.css +9 -0
- package/styles/fabric-dark.css +9 -0
- package/styles/fabric-lite.css +9 -0
- package/styles/fabric.css +9 -0
- package/styles/fluent-dark-lite.css +9 -0
- package/styles/fluent-dark.css +9 -0
- package/styles/fluent-lite.css +9 -0
- package/styles/fluent.css +9 -0
- package/styles/fluent2-lite.css +11 -2
- package/styles/fluent2.css +11 -2
- package/styles/highcontrast-light-lite.css +9 -0
- package/styles/highcontrast-light.css +9 -0
- package/styles/highcontrast-lite.css +9 -0
- package/styles/highcontrast.css +9 -0
- package/styles/material-dark-lite.css +9 -0
- package/styles/material-dark.css +9 -0
- package/styles/material-lite.css +9 -0
- package/styles/material.css +9 -0
- package/styles/material3-dark-lite.css +9 -0
- package/styles/material3-dark.css +9 -0
- package/styles/material3-lite.css +9 -0
- package/styles/material3.css +9 -0
- package/styles/ribbon/_fluent2-definition.scss +2 -2
- package/styles/ribbon/_layout.scss +7 -0
- package/styles/ribbon/bds.css +9 -0
- package/styles/ribbon/bootstrap-dark.css +9 -0
- package/styles/ribbon/bootstrap.css +9 -0
- package/styles/ribbon/bootstrap4.css +17 -0
- package/styles/ribbon/bootstrap5-dark.css +9 -0
- package/styles/ribbon/bootstrap5.3.css +9 -0
- package/styles/ribbon/bootstrap5.css +9 -0
- package/styles/ribbon/fabric-dark.css +9 -0
- package/styles/ribbon/fabric.css +9 -0
- package/styles/ribbon/fluent-dark.css +9 -0
- package/styles/ribbon/fluent.css +9 -0
- package/styles/ribbon/fluent2.css +11 -2
- package/styles/ribbon/highcontrast-light.css +9 -0
- package/styles/ribbon/highcontrast.css +9 -0
- package/styles/ribbon/material-dark.css +9 -0
- package/styles/ribbon/material.css +9 -0
- package/styles/ribbon/material3-dark.css +9 -0
- package/styles/ribbon/material3.css +9 -0
- package/styles/ribbon/tailwind-dark.css +9 -0
- package/styles/ribbon/tailwind.css +9 -0
- package/styles/ribbon/tailwind3.css +9 -0
- package/styles/tailwind-dark-lite.css +9 -0
- package/styles/tailwind-dark.css +9 -0
- package/styles/tailwind-lite.css +9 -0
- package/styles/tailwind.css +9 -0
- package/styles/tailwind3-lite.css +9 -0
- package/styles/tailwind3.css +9 -0
- package/dist/ts/index.d.ts +0 -1
- package/dist/ts/index.ts +0 -3
- package/dist/ts/ribbon/base/constant.d.ts +0 -201
- package/dist/ts/ribbon/base/constant.ts +0 -204
- package/dist/ts/ribbon/base/index.d.ts +0 -8
- package/dist/ts/ribbon/base/index.ts +0 -8
- package/dist/ts/ribbon/base/interface.d.ts +0 -398
- package/dist/ts/ribbon/base/interface.ts +0 -424
- package/dist/ts/ribbon/base/ribbon-model.d.ts +0 -195
- package/dist/ts/ribbon/base/ribbon.d.ts +0 -608
- package/dist/ts/ribbon/base/ribbon.ts +0 -4896
- package/dist/ts/ribbon/base/utils.d.ts +0 -139
- package/dist/ts/ribbon/base/utils.ts +0 -341
- package/dist/ts/ribbon/index.d.ts +0 -7
- package/dist/ts/ribbon/index.ts +0 -7
- package/dist/ts/ribbon/items/index.d.ts +0 -8
- package/dist/ts/ribbon/items/index.ts +0 -8
- package/dist/ts/ribbon/items/ribbon-button.d.ts +0 -64
- package/dist/ts/ribbon/items/ribbon-button.ts +0 -160
- package/dist/ts/ribbon/items/ribbon-checkbox.d.ts +0 -55
- package/dist/ts/ribbon/items/ribbon-checkbox.ts +0 -130
- package/dist/ts/ribbon/items/ribbon-colorpicker.d.ts +0 -72
- package/dist/ts/ribbon/items/ribbon-colorpicker.ts +0 -228
- package/dist/ts/ribbon/items/ribbon-combobox.d.ts +0 -77
- package/dist/ts/ribbon/items/ribbon-combobox.ts +0 -201
- package/dist/ts/ribbon/items/ribbon-dropdown.d.ts +0 -128
- package/dist/ts/ribbon/items/ribbon-dropdown.ts +0 -400
- package/dist/ts/ribbon/items/ribbon-gallery.d.ts +0 -97
- package/dist/ts/ribbon/items/ribbon-gallery.ts +0 -773
- package/dist/ts/ribbon/items/ribbon-groupbutton.d.ts +0 -73
- package/dist/ts/ribbon/items/ribbon-groupbutton.ts +0 -531
- package/dist/ts/ribbon/items/ribbon-splitbutton.d.ts +0 -85
- package/dist/ts/ribbon/items/ribbon-splitbutton.ts +0 -257
- package/dist/ts/ribbon/models/index.d.ts +0 -42
- package/dist/ts/ribbon/models/index.ts +0 -44
- package/dist/ts/ribbon/models/ribbon-back-button-model.d.ts +0 -29
- package/dist/ts/ribbon/models/ribbon-back-button.d.ts +0 -24
- package/dist/ts/ribbon/models/ribbon-back-button.ts +0 -31
- package/dist/ts/ribbon/models/ribbon-back-stage-settings-model.d.ts +0 -83
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.d.ts +0 -81
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.ts +0 -109
- package/dist/ts/ribbon/models/ribbon-backstage-item-model.d.ts +0 -69
- package/dist/ts/ribbon/models/ribbon-backstage-item.d.ts +0 -80
- package/dist/ts/ribbon/models/ribbon-backstage-item.ts +0 -102
- package/dist/ts/ribbon/models/ribbon-button-settings-model.d.ts +0 -64
- package/dist/ts/ribbon/models/ribbon-button-settings.d.ts +0 -63
- package/dist/ts/ribbon/models/ribbon-button-settings.ts +0 -80
- package/dist/ts/ribbon/models/ribbon-checkbox-settings-model.d.ts +0 -57
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.d.ts +0 -58
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.ts +0 -74
- package/dist/ts/ribbon/models/ribbon-collection-model.d.ts +0 -30
- package/dist/ts/ribbon/models/ribbon-collection.d.ts +0 -33
- package/dist/ts/ribbon/models/ribbon-collection.ts +0 -45
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings-model.d.ts +0 -137
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.d.ts +0 -129
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.ts +0 -165
- package/dist/ts/ribbon/models/ribbon-combobox-settings-model.d.ts +0 -275
- package/dist/ts/ribbon/models/ribbon-combobox-settings.d.ts +0 -257
- package/dist/ts/ribbon/models/ribbon-combobox-settings.ts +0 -313
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +0 -30
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.d.ts +0 -33
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.ts +0 -44
- package/dist/ts/ribbon/models/ribbon-dropdown-settings-model.d.ts +0 -114
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.d.ts +0 -107
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.ts +0 -139
- package/dist/ts/ribbon/models/ribbon-file-menu-settings-model.d.ts +0 -123
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.d.ts +0 -173
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.ts +0 -220
- package/dist/ts/ribbon/models/ribbon-gallery-group-model.d.ts +0 -44
- package/dist/ts/ribbon/models/ribbon-gallery-group.d.ts +0 -38
- package/dist/ts/ribbon/models/ribbon-gallery-group.ts +0 -50
- package/dist/ts/ribbon/models/ribbon-gallery-item-model.d.ts +0 -43
- package/dist/ts/ribbon/models/ribbon-gallery-item.d.ts +0 -38
- package/dist/ts/ribbon/models/ribbon-gallery-item.ts +0 -47
- package/dist/ts/ribbon/models/ribbon-gallery-settings-model.d.ts +0 -108
- package/dist/ts/ribbon/models/ribbon-gallery-settings.d.ts +0 -95
- package/dist/ts/ribbon/models/ribbon-gallery-settings.ts +0 -123
- package/dist/ts/ribbon/models/ribbon-group-button-item-model.d.ts +0 -64
- package/dist/ts/ribbon/models/ribbon-group-button-item.d.ts +0 -65
- package/dist/ts/ribbon/models/ribbon-group-button-item.ts +0 -85
- package/dist/ts/ribbon/models/ribbon-group-button-settings-model.d.ts +0 -32
- package/dist/ts/ribbon/models/ribbon-group-button-settings.d.ts +0 -29
- package/dist/ts/ribbon/models/ribbon-group-button-settings.ts +0 -38
- package/dist/ts/ribbon/models/ribbon-group-model.d.ts +0 -112
- package/dist/ts/ribbon/models/ribbon-group.d.ts +0 -105
- package/dist/ts/ribbon/models/ribbon-group.ts +0 -138
- package/dist/ts/ribbon/models/ribbon-item-model.d.ts +0 -144
- package/dist/ts/ribbon/models/ribbon-item.d.ts +0 -141
- package/dist/ts/ribbon/models/ribbon-item.ts +0 -190
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings-model.d.ts +0 -114
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.d.ts +0 -107
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.ts +0 -140
- package/dist/ts/ribbon/models/ribbon-tab-model.d.ts +0 -44
- package/dist/ts/ribbon/models/ribbon-tab.d.ts +0 -45
- package/dist/ts/ribbon/models/ribbon-tab.ts +0 -61
- package/dist/ts/ribbon/models/ribbon-tooltip-model.d.ts +0 -43
- package/dist/ts/ribbon/models/ribbon-tooltip.d.ts +0 -36
- package/dist/ts/ribbon/models/ribbon-tooltip.ts +0 -47
- package/dist/ts/ribbon/modules/index.d.ts +0 -4
- package/dist/ts/ribbon/modules/index.ts +0 -5
- package/dist/ts/ribbon/modules/ribbon-backstage.d.ts +0 -117
- package/dist/ts/ribbon/modules/ribbon-backstage.ts +0 -620
- package/dist/ts/ribbon/modules/ribbon-contextualtab.d.ts +0 -27
- package/dist/ts/ribbon/modules/ribbon-contextualtab.ts +0 -93
- package/dist/ts/ribbon/modules/ribbon-filemenu.d.ts +0 -96
- package/dist/ts/ribbon/modules/ribbon-filemenu.ts +0 -353
- package/dist/ts/ribbon/modules/ribbon-keytip.d.ts +0 -56
- package/dist/ts/ribbon/modules/ribbon-keytip.ts +0 -580
|
@@ -1,608 +0,0 @@
|
|
|
1
|
-
import { Component, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
-
import { INotifyPropertyChanged, ModuleDeclaration } from '@syncfusion/ej2-base';
|
|
3
|
-
import { Tab, TabAnimationSettingsModel } from '@syncfusion/ej2-navigations';
|
|
4
|
-
import { RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettingsModel, BackStageMenuModel, RibbonContextualTabSettingsModel } from '../models/index';
|
|
5
|
-
import { RibbonModel } from './ribbon-model';
|
|
6
|
-
import { ExpandCollapseEventArgs, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';
|
|
7
|
-
import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';
|
|
8
|
-
import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';
|
|
9
|
-
import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
10
|
-
import { RibbonContextualTab } from '../modules/ribbon-contextualtab';
|
|
11
|
-
import { RibbonGallery } from '../items/ribbon-gallery';
|
|
12
|
-
/**
|
|
13
|
-
* The Ribbon Component is a structured layout to manage tools with tabs and groups.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Ribbon extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the active layout of the ribbon.
|
|
18
|
-
* Accepts one of the below values.
|
|
19
|
-
* * Classic – Renders the ribbon tab contents in classic layout.
|
|
20
|
-
* * Simplified – Renders the ribbon tab contents in single row.
|
|
21
|
-
*
|
|
22
|
-
* @isenumeration true
|
|
23
|
-
* @default RibbonLayout.Classic
|
|
24
|
-
* @asptype RibbonLayout
|
|
25
|
-
*/
|
|
26
|
-
activeLayout: RibbonLayout | string;
|
|
27
|
-
/**
|
|
28
|
-
* Defines one or more CSS classes to customize the appearance of ribbon.
|
|
29
|
-
*
|
|
30
|
-
* @default ''
|
|
31
|
-
*/
|
|
32
|
-
cssClass: string;
|
|
33
|
-
/**
|
|
34
|
-
* Defines whether to enable the key tip or not.
|
|
35
|
-
*
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
enableKeyTips: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Defines the key tip text for the layoutSwitcher icon.
|
|
41
|
-
*
|
|
42
|
-
* @default ''
|
|
43
|
-
*/
|
|
44
|
-
layoutSwitcherKeyTip: string;
|
|
45
|
-
/**
|
|
46
|
-
* Defines the properties of ribbon file menu.
|
|
47
|
-
*
|
|
48
|
-
* @default {}
|
|
49
|
-
*/
|
|
50
|
-
fileMenu: FileMenuSettingsModel;
|
|
51
|
-
/**
|
|
52
|
-
* Defines the properties of ribbon backstage.
|
|
53
|
-
*
|
|
54
|
-
* @default {}
|
|
55
|
-
*/
|
|
56
|
-
backStageMenu: BackStageMenuModel;
|
|
57
|
-
/**
|
|
58
|
-
* Defines the icon CSS for the launcher icon button in group header.
|
|
59
|
-
*
|
|
60
|
-
* @default ''
|
|
61
|
-
*/
|
|
62
|
-
launcherIconCss: string;
|
|
63
|
-
/**
|
|
64
|
-
* Specifies whether the ribbon is minimized or not.
|
|
65
|
-
* When minimized, only the tab header is shown.
|
|
66
|
-
*
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
isMinimized: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Provides the localization value for the controls present in ribbon items.
|
|
72
|
-
*
|
|
73
|
-
* @default 'en-us'
|
|
74
|
-
*/
|
|
75
|
-
locale: string;
|
|
76
|
-
/**
|
|
77
|
-
* Specifies the index of the current active tab.
|
|
78
|
-
*
|
|
79
|
-
* @default 0
|
|
80
|
-
*/
|
|
81
|
-
selectedTab: number;
|
|
82
|
-
/**
|
|
83
|
-
* Specifies the animation configuration settings for showing the content of the Ribbon Tab.
|
|
84
|
-
*
|
|
85
|
-
* @default { previous: { effect: 'SlideLeftIn', duration: 600, easing: 'ease' },next: { effect: 'SlideRightIn', duration: 600, easing: 'ease' } }
|
|
86
|
-
*/
|
|
87
|
-
tabAnimation: TabAnimationSettingsModel;
|
|
88
|
-
/**
|
|
89
|
-
* Defines the list of ribbon tabs.
|
|
90
|
-
*
|
|
91
|
-
* @default []
|
|
92
|
-
*/
|
|
93
|
-
tabs: RibbonTabModel[];
|
|
94
|
-
/**
|
|
95
|
-
* Defines the properties of ribbon contextual tab.
|
|
96
|
-
*
|
|
97
|
-
* @default []
|
|
98
|
-
*/
|
|
99
|
-
contextualTabs: RibbonContextualTabSettingsModel[];
|
|
100
|
-
/**
|
|
101
|
-
* Specifies the width of the ribbon.
|
|
102
|
-
*
|
|
103
|
-
* @default '100%'
|
|
104
|
-
*/
|
|
105
|
-
width: string | number;
|
|
106
|
-
/**
|
|
107
|
-
* Specifies the template content for the help pane of ribbon.
|
|
108
|
-
* The help pane appears on the right side of the ribbon header row.
|
|
109
|
-
*
|
|
110
|
-
* @default ''
|
|
111
|
-
* @angularType string | object | HTMLElement
|
|
112
|
-
* @reactType string | function | JSX.Element | HTMLElement
|
|
113
|
-
* @vueType string | function | HTMLElement
|
|
114
|
-
* @aspType string
|
|
115
|
-
*/
|
|
116
|
-
helpPaneTemplate: string | HTMLElement | Function;
|
|
117
|
-
/**
|
|
118
|
-
* Defines whether to show the layout switcher button or not.
|
|
119
|
-
*
|
|
120
|
-
* @default false
|
|
121
|
-
*/
|
|
122
|
-
hideLayoutSwitcher: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Event triggers before selecting the tab item.
|
|
125
|
-
*
|
|
126
|
-
* @event tabSelecting
|
|
127
|
-
*/
|
|
128
|
-
tabSelecting: EmitType<TabSelectingEventArgs>;
|
|
129
|
-
/**
|
|
130
|
-
* Event triggers after selecting the tab item.
|
|
131
|
-
*
|
|
132
|
-
* @event tabSelected
|
|
133
|
-
*/
|
|
134
|
-
tabSelected: EmitType<TabSelectedEventArgs>;
|
|
135
|
-
/**
|
|
136
|
-
* Event triggers before expanding the ribbon.
|
|
137
|
-
*
|
|
138
|
-
* @event ribbonExpanding
|
|
139
|
-
*/
|
|
140
|
-
ribbonExpanding: EmitType<ExpandCollapseEventArgs>;
|
|
141
|
-
/**
|
|
142
|
-
* Event triggers before collapsing the ribbon.
|
|
143
|
-
*
|
|
144
|
-
* @event ribbonCollapsing
|
|
145
|
-
*/
|
|
146
|
-
ribbonCollapsing: EmitType<ExpandCollapseEventArgs>;
|
|
147
|
-
/**
|
|
148
|
-
* Event triggers when the ribbon layout is switched.
|
|
149
|
-
*
|
|
150
|
-
* @event ribbonLayoutSwitched
|
|
151
|
-
*/
|
|
152
|
-
ribbonLayoutSwitched: EmitType<LayoutSwitchedEventArgs>;
|
|
153
|
-
/**
|
|
154
|
-
* Event triggers when the launcher icon of the group is clicked.
|
|
155
|
-
*
|
|
156
|
-
* @event launcherIconClick
|
|
157
|
-
*/
|
|
158
|
-
launcherIconClick: EmitType<LauncherClickEventArgs>;
|
|
159
|
-
/**
|
|
160
|
-
* Event triggers once the Ribbon Component rendering is completed.
|
|
161
|
-
*
|
|
162
|
-
* @event created
|
|
163
|
-
*/
|
|
164
|
-
created: EmitType<Event>;
|
|
165
|
-
/**
|
|
166
|
-
* Event triggers when the overflow popup opens.
|
|
167
|
-
*
|
|
168
|
-
* @event overflowPopupOpen
|
|
169
|
-
*/
|
|
170
|
-
overflowPopupOpen: EmitType<OverflowPopupEventArgs>;
|
|
171
|
-
/**
|
|
172
|
-
* Event triggers when the overflow popup closes.
|
|
173
|
-
*
|
|
174
|
-
* @event overflowPopupClose
|
|
175
|
-
*/
|
|
176
|
-
overflowPopupClose: EmitType<OverflowPopupEventArgs>;
|
|
177
|
-
/**
|
|
178
|
-
* The `ribbonButtonModule` is used to create and manipulate buttons in ribbon item.
|
|
179
|
-
*/
|
|
180
|
-
ribbonButtonModule: RibbonButton;
|
|
181
|
-
/**
|
|
182
|
-
* The `ribbonDropDownModule` is used to create and manipulate dropdown buttons in ribbon item.
|
|
183
|
-
*/
|
|
184
|
-
ribbonDropDownModule: RibbonDropDown;
|
|
185
|
-
/**
|
|
186
|
-
* The `ribbonSplitButtonModule` is used to create and manipulate split buttons in ribbon item.
|
|
187
|
-
*/
|
|
188
|
-
ribbonSplitButtonModule: RibbonSplitButton;
|
|
189
|
-
/**
|
|
190
|
-
* The `ribbonCheckBoxModule` is used to create and manipulate checkbox in ribbon item.
|
|
191
|
-
*/
|
|
192
|
-
ribbonCheckBoxModule: RibbonCheckBox;
|
|
193
|
-
/**
|
|
194
|
-
* The `ribbonColorPickerModule` is used to create and manipulate color picker in ribbon item.
|
|
195
|
-
*/
|
|
196
|
-
ribbonColorPickerModule: RibbonColorPicker;
|
|
197
|
-
/**
|
|
198
|
-
* The `ribbonComboBoxModule` is used to create and manipulate combobox in ribbon item.
|
|
199
|
-
*/
|
|
200
|
-
ribbonComboBoxModule: RibbonComboBox;
|
|
201
|
-
/**
|
|
202
|
-
* The `ribbonGalleryModule` is used to create and manipulate gallery in ribbon item.
|
|
203
|
-
*/
|
|
204
|
-
ribbonGalleryModule: RibbonGallery;
|
|
205
|
-
/**
|
|
206
|
-
* The `ribbonFileMenuModule` is used to create and manipulate the ribbon file menu.
|
|
207
|
-
*/
|
|
208
|
-
ribbonFileMenuModule: RibbonFileMenu;
|
|
209
|
-
/**
|
|
210
|
-
* The `ribbonBackstageModule` is used to create and manipulate the ribbon backstage.
|
|
211
|
-
*/
|
|
212
|
-
ribbonBackstageModule: RibbonBackstage;
|
|
213
|
-
/**
|
|
214
|
-
* The `ribbonGroupButtonModule` is used to create and manipulate group button in ribbon item.
|
|
215
|
-
*/
|
|
216
|
-
ribbonGroupButtonModule: RibbonGroupButton;
|
|
217
|
-
/**
|
|
218
|
-
* The `ribbonContextualTabModule` is used to create and manipulate group button in ribbon item.
|
|
219
|
-
*/
|
|
220
|
-
ribbonContextualTabModule: RibbonContextualTab;
|
|
221
|
-
/**
|
|
222
|
-
* The `ribbonKeytipModule` is used to create and manipulate the ribbon keytip.
|
|
223
|
-
*/
|
|
224
|
-
ribbonKeyTipModule: RibbonKeyTip;
|
|
225
|
-
private itemIndex;
|
|
226
|
-
private idIndex;
|
|
227
|
-
private isAddRemove;
|
|
228
|
-
private collapseButton;
|
|
229
|
-
private ribbonTempEle;
|
|
230
|
-
private scrollModule;
|
|
231
|
-
private currentControlIndex;
|
|
232
|
-
private keyboardModuleRibbon;
|
|
233
|
-
private keyConfigs;
|
|
234
|
-
private initialPropsData;
|
|
235
|
-
private hiddenElements;
|
|
236
|
-
private hiddenGroups;
|
|
237
|
-
private itemsModel;
|
|
238
|
-
private targetTabs;
|
|
239
|
-
private isUpdateItems;
|
|
240
|
-
private resizeListener;
|
|
241
|
-
/** @hidden */
|
|
242
|
-
keysPress: string;
|
|
243
|
-
/** @hidden */
|
|
244
|
-
keyTipElements: {
|
|
245
|
-
[key: string]: object;
|
|
246
|
-
};
|
|
247
|
-
/** @hidden */
|
|
248
|
-
overflowDDB: DropDownButton;
|
|
249
|
-
/** @hidden */
|
|
250
|
-
tabsInternal: RibbonTabModel[];
|
|
251
|
-
/** @hidden */
|
|
252
|
-
tabObj: Tab;
|
|
253
|
-
/** @hidden */
|
|
254
|
-
tooltipData: ribbonTooltipData[];
|
|
255
|
-
/** @hidden */
|
|
256
|
-
isKeytipOpen: boolean;
|
|
257
|
-
/**
|
|
258
|
-
* Constructor for creating the widget.
|
|
259
|
-
*
|
|
260
|
-
* @param {RibbonModel} options - Specifies the ribbon model
|
|
261
|
-
* @param {string|HTMLDivElement} element - Specifies the target element
|
|
262
|
-
*/
|
|
263
|
-
constructor(options?: RibbonModel, element?: string | HTMLElement);
|
|
264
|
-
/**
|
|
265
|
-
* Initialize the control rendering.
|
|
266
|
-
*
|
|
267
|
-
* @returns {void}
|
|
268
|
-
* @private
|
|
269
|
-
*/
|
|
270
|
-
protected render(): void;
|
|
271
|
-
protected preRender(): void;
|
|
272
|
-
/**
|
|
273
|
-
* Get the properties to be maintained in the persisted state.
|
|
274
|
-
*
|
|
275
|
-
* @returns {string} - Persist data
|
|
276
|
-
*/
|
|
277
|
-
protected getPersistData(): string;
|
|
278
|
-
/**
|
|
279
|
-
* Get component name.
|
|
280
|
-
*
|
|
281
|
-
* @returns {string} - Module name
|
|
282
|
-
* @private
|
|
283
|
-
*/
|
|
284
|
-
protected getModuleName(): string;
|
|
285
|
-
/**
|
|
286
|
-
* To provide the array of modules needed for component rendering
|
|
287
|
-
*
|
|
288
|
-
* @returns {ModuleDeclaration[]} - returns module declaration.
|
|
289
|
-
* @hidden
|
|
290
|
-
*/
|
|
291
|
-
protected requiredModules(): ModuleDeclaration[];
|
|
292
|
-
private initialize;
|
|
293
|
-
private wireEvents;
|
|
294
|
-
private wireKeyboardEvent;
|
|
295
|
-
private keyActionHandler;
|
|
296
|
-
private handleNavigation;
|
|
297
|
-
private resizeHandler;
|
|
298
|
-
private mouseEventHandler;
|
|
299
|
-
private keytipActionHandler;
|
|
300
|
-
private checkKeyTipPresent;
|
|
301
|
-
private removeKeytip;
|
|
302
|
-
private addKeyTip;
|
|
303
|
-
private renderTabs;
|
|
304
|
-
private minimize;
|
|
305
|
-
private toggleLayout;
|
|
306
|
-
private tabCreated;
|
|
307
|
-
private ribbonTabSelected;
|
|
308
|
-
private updateSelectedState;
|
|
309
|
-
private checkOverflow;
|
|
310
|
-
private addTabOverflowKeyTip;
|
|
311
|
-
private checkSimplifiedItemShrinking;
|
|
312
|
-
private checkSimplifiedItemExpanding;
|
|
313
|
-
private createSimplfiedOverflow;
|
|
314
|
-
private checkEmptyCollection;
|
|
315
|
-
private updatePopupItems;
|
|
316
|
-
private removeSimplfiedOverflow;
|
|
317
|
-
private checkOverflowHiddenItems;
|
|
318
|
-
private createOverflowPopup;
|
|
319
|
-
private addOverflowEvents;
|
|
320
|
-
private createOfTabContainer;
|
|
321
|
-
private checkGroupShrinking;
|
|
322
|
-
private checkValidCollectionLength;
|
|
323
|
-
private checkClassicCollection;
|
|
324
|
-
private checkClassicItem;
|
|
325
|
-
private checkLargeToMedium;
|
|
326
|
-
private checkMediumToSmall;
|
|
327
|
-
private checkGroupExpanding;
|
|
328
|
-
private checkSmallToMedium;
|
|
329
|
-
private checkMediumToLarge;
|
|
330
|
-
private handleContentSize;
|
|
331
|
-
private setItemSize;
|
|
332
|
-
private createOverflowDropdown;
|
|
333
|
-
private removeOverflowDropdown;
|
|
334
|
-
private removeDropdown;
|
|
335
|
-
private getGroupResizeOrder;
|
|
336
|
-
private destroyScroll;
|
|
337
|
-
private clearOverflowDropDown;
|
|
338
|
-
private isContextualTab;
|
|
339
|
-
private ribbonTabSelecting;
|
|
340
|
-
private createTabItems;
|
|
341
|
-
private renderInitialTab;
|
|
342
|
-
private addOverflowButton;
|
|
343
|
-
private upDownKeyHandler;
|
|
344
|
-
private findDisabledItem;
|
|
345
|
-
private removeOverflowButton;
|
|
346
|
-
private removeOverflowEvent;
|
|
347
|
-
private createGroupContainer;
|
|
348
|
-
private addExpandCollapse;
|
|
349
|
-
private removeExpandCollapse;
|
|
350
|
-
private reRenderTabs;
|
|
351
|
-
private switchLayout;
|
|
352
|
-
private createLauncherIcon;
|
|
353
|
-
private launcherIconClicked;
|
|
354
|
-
private createGroups;
|
|
355
|
-
private updateGroupProps;
|
|
356
|
-
private validateItemSize;
|
|
357
|
-
private createCollection;
|
|
358
|
-
private createRibbonItem;
|
|
359
|
-
private createItems;
|
|
360
|
-
private createHelpPaneTemplate;
|
|
361
|
-
private createTemplateContent;
|
|
362
|
-
private renderItemTemplate;
|
|
363
|
-
private checkID;
|
|
364
|
-
private hasHtmlAtrrID;
|
|
365
|
-
private updateCommonProperty;
|
|
366
|
-
private removeLauncherIcon;
|
|
367
|
-
private destroyTabItems;
|
|
368
|
-
private destroyFunction;
|
|
369
|
-
/**
|
|
370
|
-
* Gets the item module name.
|
|
371
|
-
*
|
|
372
|
-
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
373
|
-
* @returns {void}
|
|
374
|
-
* @hidden
|
|
375
|
-
*/
|
|
376
|
-
getItemModuleName(item: RibbonItemModel): string;
|
|
377
|
-
private clearOverflowResize;
|
|
378
|
-
/**
|
|
379
|
-
* Refreshes the layout.
|
|
380
|
-
*
|
|
381
|
-
* @returns {void}
|
|
382
|
-
*/
|
|
383
|
-
refreshLayout(): void;
|
|
384
|
-
/**
|
|
385
|
-
* Selects the tab
|
|
386
|
-
*
|
|
387
|
-
* @param {string} tabId - Gets the tab ID
|
|
388
|
-
* @returns {void}
|
|
389
|
-
*/
|
|
390
|
-
selectTab(tabId: string): void;
|
|
391
|
-
/**
|
|
392
|
-
* Shows a specific tab in the ribbon.
|
|
393
|
-
*
|
|
394
|
-
* @param {string} tabId - The ID of the tab to be shown.
|
|
395
|
-
* @param {boolean} isContextual - The boolean if the rendering is contextual.
|
|
396
|
-
* @returns {void}
|
|
397
|
-
*/
|
|
398
|
-
showTab(tabId: string, isContextual?: boolean): void;
|
|
399
|
-
/**
|
|
400
|
-
* Hides a specific tab in the ribbon.
|
|
401
|
-
*
|
|
402
|
-
* @param {string} tabId - The ID of the tab to be hidden.
|
|
403
|
-
* @param {boolean} isContextual - The boolean if the rendering is contextual.
|
|
404
|
-
* @returns {void}
|
|
405
|
-
*/
|
|
406
|
-
hideTab(tabId: string, isContextual?: boolean): void;
|
|
407
|
-
private showHideTab;
|
|
408
|
-
/**
|
|
409
|
-
* Enables a specific tab in the ribbon.
|
|
410
|
-
*
|
|
411
|
-
* @param {string} tabId - The ID of the tab to be enabled.
|
|
412
|
-
* @returns {void}
|
|
413
|
-
*/
|
|
414
|
-
enableTab(tabId: string): void;
|
|
415
|
-
/**
|
|
416
|
-
* Disables a specific tab in the ribbon.
|
|
417
|
-
*
|
|
418
|
-
* @param {string} tabId - The ID of the tab to be disabled.
|
|
419
|
-
* @returns {void}
|
|
420
|
-
*/
|
|
421
|
-
disableTab(tabId: string): void;
|
|
422
|
-
private enableDisableTab;
|
|
423
|
-
/**
|
|
424
|
-
* Adds the ribbon tab.
|
|
425
|
-
*
|
|
426
|
-
* @param {RibbonTabModel} tab - Gets the ribbon tab model
|
|
427
|
-
* @param {string} targetId - Gets the ID of the target tab to add the new tab.
|
|
428
|
-
* @param {boolean} isAfter - Defines whether the tab is added before or after the target.
|
|
429
|
-
* @returns {void}
|
|
430
|
-
*/
|
|
431
|
-
addTab(tab: RibbonTabModel, targetId?: string, isAfter?: boolean): void;
|
|
432
|
-
/**
|
|
433
|
-
* Removes the ribbon tab.
|
|
434
|
-
*
|
|
435
|
-
* @param {string} tabId - Gets the tab ID
|
|
436
|
-
* @returns {void}
|
|
437
|
-
*/
|
|
438
|
-
removeTab(tabId: string): void;
|
|
439
|
-
/**
|
|
440
|
-
* Adds the ribbon group.
|
|
441
|
-
*
|
|
442
|
-
* @param {string} tabId - Gets the tab ID.
|
|
443
|
-
* @param {RibbonGroupModel} group - Gets the ribbon group model.
|
|
444
|
-
* @param {string} targetId - Gets the ID of the target group to add the new group.
|
|
445
|
-
* @param {boolean} isAfter - Defines whether the group is added before or after the target.
|
|
446
|
-
* @returns {void}
|
|
447
|
-
*/
|
|
448
|
-
addGroup(tabId: string, group: RibbonGroupModel, targetId?: string, isAfter?: boolean): void;
|
|
449
|
-
/**
|
|
450
|
-
* Removes the ribbon group.
|
|
451
|
-
*
|
|
452
|
-
* @param {string} groupId -Gets the group ID.
|
|
453
|
-
* @returns {void}
|
|
454
|
-
*/
|
|
455
|
-
removeGroup(groupId: string): void;
|
|
456
|
-
private isHeaderVisible;
|
|
457
|
-
/**
|
|
458
|
-
* Hides a specific group within a ribbon tab.
|
|
459
|
-
*
|
|
460
|
-
* @param {string} groupID - The ID of the group to be hidden.
|
|
461
|
-
* @returns {void}
|
|
462
|
-
*/
|
|
463
|
-
hideGroup(groupID: string): void;
|
|
464
|
-
/**
|
|
465
|
-
* Shows a specific group within a ribbon tab.
|
|
466
|
-
*
|
|
467
|
-
* @param {string} groupID - The ID of the group to be shown.
|
|
468
|
-
* @returns {void}
|
|
469
|
-
*/
|
|
470
|
-
showGroup(groupID: string): void;
|
|
471
|
-
private showHideGroup;
|
|
472
|
-
private updateHiddenElements;
|
|
473
|
-
private checkHiddenElements;
|
|
474
|
-
private updateItemsSimplifiedWidth;
|
|
475
|
-
private checkWidthDifference;
|
|
476
|
-
private calculateHiddenElementsWidth;
|
|
477
|
-
private calculateMediumDataWidth;
|
|
478
|
-
private calculateOverflowItemsWidth;
|
|
479
|
-
/**
|
|
480
|
-
* Disables a specific group within a ribbon tab.
|
|
481
|
-
*
|
|
482
|
-
* @param {string} groupID - The ID of the group to be disabled.
|
|
483
|
-
* @returns {void}
|
|
484
|
-
*/
|
|
485
|
-
disableGroup(groupID: string): void;
|
|
486
|
-
/**
|
|
487
|
-
* Enables a specific group within a ribbon tab.
|
|
488
|
-
*
|
|
489
|
-
* @param {string} groupID - The ID of the group to be enabled.
|
|
490
|
-
* @returns {void}
|
|
491
|
-
*/
|
|
492
|
-
enableGroup(groupID: string): void;
|
|
493
|
-
private enableDisableGroup;
|
|
494
|
-
/**
|
|
495
|
-
* adds the ribbon collection.
|
|
496
|
-
*
|
|
497
|
-
* @param {string} groupId - Gets the ribbon group ID.
|
|
498
|
-
* @param {RibbonCollectionModel} collection - Gets the ribbon collection model.
|
|
499
|
-
* @param {string} targetId - Gets the ID of the target collection to add the new collection.
|
|
500
|
-
* @param {boolean} isAfter - Defines whether the collection is added before or after the target.
|
|
501
|
-
* @returns {void}
|
|
502
|
-
*/
|
|
503
|
-
addCollection(groupId: string, collection: RibbonCollectionModel, targetId?: string, isAfter?: boolean): void;
|
|
504
|
-
/**
|
|
505
|
-
* Removes the ribbon collection.
|
|
506
|
-
*
|
|
507
|
-
* @param {string} collectionId - Gets the collection ID.
|
|
508
|
-
* @returns {void}
|
|
509
|
-
*/
|
|
510
|
-
removeCollection(collectionId: string): void;
|
|
511
|
-
/**
|
|
512
|
-
* Adds ribbon item.
|
|
513
|
-
*
|
|
514
|
-
* @param {string} collectionId - Gets the collection ID.
|
|
515
|
-
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
516
|
-
* @param {string} targetId - Gets the ID of the target item to add the new item.
|
|
517
|
-
* @param {boolean} isAfter - Defines whether the item is added before or after the target.
|
|
518
|
-
* @returns {void}
|
|
519
|
-
*/
|
|
520
|
-
addItem(collectionId: string, item: RibbonItemModel, targetId?: string, isAfter?: boolean): void;
|
|
521
|
-
/**
|
|
522
|
-
* Removes ribbon item.
|
|
523
|
-
*
|
|
524
|
-
* @param {string} itemId - Gets the item ID.
|
|
525
|
-
* @returns {void}
|
|
526
|
-
*/
|
|
527
|
-
removeItem(itemId: string): void;
|
|
528
|
-
/**
|
|
529
|
-
* Hides a specific ribbon item.
|
|
530
|
-
*
|
|
531
|
-
* @param {string} itemId - The ID of the item to be hidden.
|
|
532
|
-
* @returns {void}
|
|
533
|
-
*/
|
|
534
|
-
hideItem(itemId: string): void;
|
|
535
|
-
/**
|
|
536
|
-
* Shows a specific ribbon item.
|
|
537
|
-
*
|
|
538
|
-
* @param {string} itemId - The ID of the item to be shown.
|
|
539
|
-
* @returns {void}
|
|
540
|
-
*/
|
|
541
|
-
showItem(itemId: string): void;
|
|
542
|
-
private showHideItem;
|
|
543
|
-
private updateInitialProps;
|
|
544
|
-
private checkHiddenItems;
|
|
545
|
-
private checkOverflowItems;
|
|
546
|
-
/**
|
|
547
|
-
* tab - Gets the ribbon tab to be updated. The id of the tab is a required property. Other properties are optional.
|
|
548
|
-
*
|
|
549
|
-
* @param {RibbonTabModel} tab - Gets the ribbon tab model.
|
|
550
|
-
* @returns {void}
|
|
551
|
-
*/
|
|
552
|
-
updateTab(tab: RibbonTabModel): void;
|
|
553
|
-
/**
|
|
554
|
-
* group - Gets the ribbon group to be updated. The id of the group is a required property. Other properties are optional.
|
|
555
|
-
*
|
|
556
|
-
* @param {RibbonGroupModel} group - Gets the ribbon group model.
|
|
557
|
-
* @returns {void}
|
|
558
|
-
*/
|
|
559
|
-
updateGroup(group: RibbonGroupModel): void;
|
|
560
|
-
/**
|
|
561
|
-
* collection - Gets the ribbon collection to be updated. The id of the collection is a required property. Other properties are optional.
|
|
562
|
-
*
|
|
563
|
-
* @param {RibbonCollectionModel} collection - Gets the ribbon collection model.
|
|
564
|
-
* @returns {void}
|
|
565
|
-
*/
|
|
566
|
-
updateCollection(collection: RibbonCollectionModel): void;
|
|
567
|
-
/**
|
|
568
|
-
* item - Gets the ribbon item to be updated. The id of the item is a required property. Other properties are optional.
|
|
569
|
-
*
|
|
570
|
-
* @param {RibbonItemModel} item - Gets the ribbon item model.
|
|
571
|
-
* @returns {void}
|
|
572
|
-
*/
|
|
573
|
-
updateItem(item: RibbonItemModel): void;
|
|
574
|
-
private removeItemElement;
|
|
575
|
-
/**
|
|
576
|
-
* Enables ribbon item.
|
|
577
|
-
*
|
|
578
|
-
* @param {string} itemId - Gets the item ID.
|
|
579
|
-
* @returns {void}
|
|
580
|
-
*/
|
|
581
|
-
enableItem(itemId: string): void;
|
|
582
|
-
/**
|
|
583
|
-
* Disables ribbon item.
|
|
584
|
-
*
|
|
585
|
-
* @param {string} itemId - Gets the item ID.
|
|
586
|
-
* @returns {void}
|
|
587
|
-
*/
|
|
588
|
-
disableItem(itemId: string): void;
|
|
589
|
-
/**
|
|
590
|
-
* Gets the Ribbon item model associated with the specified item ID.
|
|
591
|
-
*
|
|
592
|
-
* @param {string} itemId - The unique ID of the Ribbon item.
|
|
593
|
-
* @returns {RibbonItemModel} - Returns the Ribbon item model.
|
|
594
|
-
*/
|
|
595
|
-
getItem(itemId: string): RibbonItemModel;
|
|
596
|
-
private enableDisableItem;
|
|
597
|
-
private unwireEvents;
|
|
598
|
-
destroy(): void;
|
|
599
|
-
/**
|
|
600
|
-
* Called internally if any of the property value changed.
|
|
601
|
-
*
|
|
602
|
-
* @param {RibbonModel} newProp - Specifies new properties
|
|
603
|
-
* @param {RibbonModel} oldProp - Specifies old properties
|
|
604
|
-
* @returns {void}
|
|
605
|
-
* @private
|
|
606
|
-
*/
|
|
607
|
-
onPropertyChanged(newProp: RibbonModel, oldProp?: RibbonModel): void;
|
|
608
|
-
}
|