@syncfusion/ej2-ribbon 23.2.5 → 23.2.7
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/CHANGELOG.md +8 -0
- package/dist/ej2-ribbon.umd.min.js +2 -2
- package/dist/ej2-ribbon.umd.min.js.map +1 -1
- package/dist/es6/ej2-ribbon.es2015.js +20 -3
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +20 -3
- package/dist/es6/ej2-ribbon.es5.js.map +1 -1
- package/dist/global/ej2-ribbon.min.js +2 -2
- package/dist/global/ej2-ribbon.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/ribbon/base/interface.d.ts +17 -0
- package/src/ribbon/base/ribbon-model.d.ts +15 -1
- package/src/ribbon/base/ribbon.d.ts +13 -1
- package/src/ribbon/base/ribbon.js +20 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.2.
|
|
3
|
+
* version : 23.2.7
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-ribbon@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-ribbon@23.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-ribbon@23.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-yaxRdEtxHw8Ko6CIOCA3KeaoQuBu8pNB/hDtISHgRg+VlFVdvfxy450RiOQFaN8ivXOiwi7jyGT4NvHA4E+qlA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-ribbon",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-ribbon",
|
|
24
24
|
"/@syncfusion/ej2-vue-ribbon"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-23.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-ribbon/-/ej2-ribbon-23.2.5.tgz",
|
|
27
|
+
"_shasum": "249585a25ef9d78e2207bdcecd2ee38fd2d74c05",
|
|
28
28
|
"_spec": "@syncfusion/ej2-ribbon@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~23.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~23.2.
|
|
40
|
-
"@syncfusion/ej2-dropdowns": "~23.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~23.2.6",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~23.2.7",
|
|
40
|
+
"@syncfusion/ej2-dropdowns": "~23.2.7",
|
|
41
41
|
"@syncfusion/ej2-lists": "~23.2.4",
|
|
42
|
-
"@syncfusion/ej2-navigations": "~23.2.
|
|
42
|
+
"@syncfusion/ej2-navigations": "~23.2.7",
|
|
43
43
|
"@syncfusion/ej2-popups": "~23.2.4",
|
|
44
44
|
"@syncfusion/ej2-splitbuttons": "~23.2.4"
|
|
45
45
|
},
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "git+https://github.com/syncfusion/ej2-ribbon-component.git"
|
|
63
63
|
},
|
|
64
64
|
"typings": "index.d.ts",
|
|
65
|
-
"version": "23.2.
|
|
65
|
+
"version": "23.2.7",
|
|
66
66
|
"sideEffects": false
|
|
67
67
|
}
|
|
@@ -200,6 +200,23 @@ export interface ClickGroupButtonEventArgs extends BaseEventArgs {
|
|
|
200
200
|
*/
|
|
201
201
|
selectedItems: RibbonGroupButtonItemModel[];
|
|
202
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Triggers before open / close of overflow popup menu.
|
|
205
|
+
*/
|
|
206
|
+
export interface OverflowPopupEventArgs extends BaseEventArgs {
|
|
207
|
+
/**
|
|
208
|
+
* Provides the HTML element of the overflow popup.
|
|
209
|
+
*/
|
|
210
|
+
element: HTMLElement;
|
|
211
|
+
/**
|
|
212
|
+
* Defines the original event arguments.
|
|
213
|
+
*/
|
|
214
|
+
event: Event;
|
|
215
|
+
/**
|
|
216
|
+
* Defines whether to cancel the overflow popup open or close.
|
|
217
|
+
*/
|
|
218
|
+
cancel?: boolean;
|
|
219
|
+
}
|
|
203
220
|
/** @hidden */
|
|
204
221
|
export interface itemProps {
|
|
205
222
|
item?: RibbonItemModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
1
|
+
import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -150,4 +150,18 @@ export interface RibbonModel extends ComponentModel{
|
|
|
150
150
|
*/
|
|
151
151
|
created?: EmitType<Event>;
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Event triggers when the overflow popup opens.
|
|
155
|
+
*
|
|
156
|
+
* @event overflowPopupOpen
|
|
157
|
+
*/
|
|
158
|
+
overflowPopupOpen?: EmitType<OverflowPopupEventArgs>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Event triggers when the overflow popup closes.
|
|
162
|
+
*
|
|
163
|
+
* @event overflowPopupClose
|
|
164
|
+
*/
|
|
165
|
+
overflowPopupClose?: EmitType<OverflowPopupEventArgs>;
|
|
166
|
+
|
|
153
167
|
}
|
|
@@ -3,7 +3,7 @@ import { INotifyPropertyChanged, ModuleDeclaration } from '@syncfusion/ej2-base'
|
|
|
3
3
|
import { Tab, TabAnimationSettingsModel } from '@syncfusion/ej2-navigations';
|
|
4
4
|
import { RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettingsModel, BackStageMenuModel } from '../models/index';
|
|
5
5
|
import { RibbonModel } from './ribbon-model';
|
|
6
|
-
import { ExpandCollapseEventArgs, LauncherClickEventArgs, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';
|
|
6
|
+
import { ExpandCollapseEventArgs, LauncherClickEventArgs, OverflowPopupEventArgs, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';
|
|
7
7
|
import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';
|
|
8
8
|
import { RibbonFileMenu, RibbonBackstage } from '../modules/index';
|
|
9
9
|
import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
@@ -136,6 +136,18 @@ export declare class Ribbon extends Component<HTMLElement> implements INotifyPro
|
|
|
136
136
|
* @event created
|
|
137
137
|
*/
|
|
138
138
|
created: EmitType<Event>;
|
|
139
|
+
/**
|
|
140
|
+
* Event triggers when the overflow popup opens.
|
|
141
|
+
*
|
|
142
|
+
* @event overflowPopupOpen
|
|
143
|
+
*/
|
|
144
|
+
overflowPopupOpen: EmitType<OverflowPopupEventArgs>;
|
|
145
|
+
/**
|
|
146
|
+
* Event triggers when the overflow popup closes.
|
|
147
|
+
*
|
|
148
|
+
* @event overflowPopupClose
|
|
149
|
+
*/
|
|
150
|
+
overflowPopupClose: EmitType<OverflowPopupEventArgs>;
|
|
139
151
|
/**
|
|
140
152
|
* The `ribbonButtonModule` is used to create and manipulate buttons in ribbon item.
|
|
141
153
|
*/
|
|
@@ -1695,11 +1695,22 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
1695
1695
|
locale: this.locale,
|
|
1696
1696
|
enableRtl: this.enableRtl,
|
|
1697
1697
|
enablePersistence: this.enablePersistence,
|
|
1698
|
+
beforeOpen: function (args) {
|
|
1699
|
+
var eventArgs = { element: args.element, event: args.event, cancel: args.cancel };
|
|
1700
|
+
_this.trigger('overflowPopupOpen', eventArgs, function (ribbonArgs) {
|
|
1701
|
+
if (ribbonArgs.cancel) {
|
|
1702
|
+
args.cancel = true;
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1705
|
+
},
|
|
1698
1706
|
beforeClose: function (args) {
|
|
1699
1707
|
var ele = args.event ? closest(args.event.target, '.' + constants.RIBBON_POPUP_CONTROL) : null;
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1708
|
+
var eventArgs = { element: args.element, event: args.event, cancel: args.cancel };
|
|
1709
|
+
_this.trigger('overflowPopupClose', eventArgs, function (ribbonArgs) {
|
|
1710
|
+
if (ele || ribbonArgs.cancel) {
|
|
1711
|
+
args.cancel = true;
|
|
1712
|
+
}
|
|
1713
|
+
});
|
|
1703
1714
|
}
|
|
1704
1715
|
}, overflowButton);
|
|
1705
1716
|
this.element.classList.add(constants.RIBBON_OVERFLOW);
|
|
@@ -4025,6 +4036,12 @@ var Ribbon = /** @class */ (function (_super) {
|
|
|
4025
4036
|
__decorate([
|
|
4026
4037
|
Event()
|
|
4027
4038
|
], Ribbon.prototype, "created", void 0);
|
|
4039
|
+
__decorate([
|
|
4040
|
+
Event()
|
|
4041
|
+
], Ribbon.prototype, "overflowPopupOpen", void 0);
|
|
4042
|
+
__decorate([
|
|
4043
|
+
Event()
|
|
4044
|
+
], Ribbon.prototype, "overflowPopupClose", void 0);
|
|
4028
4045
|
Ribbon = Ribbon_1 = __decorate([
|
|
4029
4046
|
NotifyPropertyChanges
|
|
4030
4047
|
], Ribbon);
|