@syncfusion/ej2-ribbon 24.2.8 → 25.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.
- package/CHANGELOG.md +5 -9
- package/README.md +3 -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 +2051 -137
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +2180 -146
- 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 +13 -13
- package/src/global.js +1 -1
- package/src/ribbon/base/constant.d.ts +8 -0
- package/src/ribbon/base/constant.js +8 -0
- package/src/ribbon/base/interface.d.ts +114 -1
- package/src/ribbon/base/interface.js +4 -0
- package/src/ribbon/base/ribbon-model.d.ts +22 -1
- package/src/ribbon/base/ribbon.d.ts +67 -5
- package/src/ribbon/base/ribbon.js +457 -76
- package/src/ribbon/base/utils.d.ts +3 -2
- package/src/ribbon/base/utils.js +3 -2
- package/src/ribbon/items/index.d.ts +1 -0
- package/src/ribbon/items/index.js +1 -0
- package/src/ribbon/items/ribbon-colorpicker.js +6 -1
- package/src/ribbon/items/ribbon-gallery.d.ts +87 -0
- package/src/ribbon/items/ribbon-gallery.js +712 -0
- package/src/ribbon/items/ribbon-groupbutton.js +3 -0
- package/src/ribbon/models/index.d.ts +8 -0
- package/src/ribbon/models/index.js +4 -0
- package/src/ribbon/models/ribbon-back-stage-settings-model.d.ts +7 -0
- package/src/ribbon/models/ribbon-back-stage-settings.d.ts +6 -0
- package/src/ribbon/models/ribbon-back-stage-settings.js +3 -0
- package/src/ribbon/models/ribbon-backstage-item-model.d.ts +7 -0
- package/src/ribbon/models/ribbon-backstage-item.d.ts +6 -0
- package/src/ribbon/models/ribbon-backstage-item.js +3 -0
- package/src/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +30 -0
- package/src/ribbon/models/ribbon-contextual-tab-settings.d.ts +33 -0
- package/src/ribbon/models/ribbon-contextual-tab-settings.js +50 -0
- package/src/ribbon/models/ribbon-file-menu-settings-model.d.ts +7 -0
- package/src/ribbon/models/ribbon-file-menu-settings.d.ts +6 -0
- package/src/ribbon/models/ribbon-file-menu-settings.js +3 -0
- package/src/ribbon/models/ribbon-gallery-group-model.d.ts +44 -0
- package/src/ribbon/models/ribbon-gallery-group.d.ts +38 -0
- package/src/ribbon/models/ribbon-gallery-group.js +47 -0
- package/src/ribbon/models/ribbon-gallery-item-model.d.ts +43 -0
- package/src/ribbon/models/ribbon-gallery-item.d.ts +38 -0
- package/src/ribbon/models/ribbon-gallery-item.js +46 -0
- package/src/ribbon/models/ribbon-gallery-settings-model.d.ts +108 -0
- package/src/ribbon/models/ribbon-gallery-settings.d.ts +95 -0
- package/src/ribbon/models/ribbon-gallery-settings.js +71 -0
- package/src/ribbon/models/ribbon-group-button-item-model.d.ts +7 -0
- package/src/ribbon/models/ribbon-group-button-item.d.ts +6 -0
- package/src/ribbon/models/ribbon-group-button-item.js +3 -0
- package/src/ribbon/models/ribbon-group-model.d.ts +14 -0
- package/src/ribbon/models/ribbon-group.d.ts +12 -0
- package/src/ribbon/models/ribbon-group.js +6 -0
- package/src/ribbon/models/ribbon-item-model.d.ts +15 -1
- package/src/ribbon/models/ribbon-item.d.ts +13 -0
- package/src/ribbon/models/ribbon-item.js +7 -0
- package/src/ribbon/models/ribbon-tab-model.d.ts +7 -0
- package/src/ribbon/models/ribbon-tab.d.ts +6 -0
- package/src/ribbon/models/ribbon-tab.js +3 -0
- package/src/ribbon/modules/index.d.ts +2 -0
- package/src/ribbon/modules/index.js +2 -0
- package/src/ribbon/modules/ribbon-backstage.d.ts +2 -0
- package/src/ribbon/modules/ribbon-backstage.js +37 -0
- package/src/ribbon/modules/ribbon-contextualtab.d.ts +27 -0
- package/src/ribbon/modules/ribbon-contextualtab.js +90 -0
- package/src/ribbon/modules/ribbon-filemenu.d.ts +2 -0
- package/src/ribbon/modules/ribbon-filemenu.js +19 -0
- package/src/ribbon/modules/ribbon-keytip.d.ts +54 -0
- package/src/ribbon/modules/ribbon-keytip.js +554 -0
- package/styles/bootstrap-dark.css +398 -24
- package/styles/bootstrap.css +389 -15
- package/styles/bootstrap4.css +398 -24
- package/styles/bootstrap5-dark.css +391 -17
- package/styles/bootstrap5.css +391 -17
- package/styles/fabric-dark.css +390 -16
- package/styles/fabric.css +387 -13
- package/styles/fluent-dark.css +389 -15
- package/styles/fluent.css +389 -15
- package/styles/highcontrast-light.css +381 -7
- package/styles/highcontrast.css +390 -16
- package/styles/material-dark.css +391 -17
- package/styles/material.css +391 -17
- package/styles/material3-dark.css +389 -15
- package/styles/material3.css +389 -15
- package/styles/ribbon/_bds-definition.scss +360 -0
- package/styles/ribbon/_bootstrap-dark-definition.scss +81 -6
- package/styles/ribbon/_bootstrap-definition.scss +81 -6
- package/styles/ribbon/_bootstrap4-definition.scss +82 -7
- package/styles/ribbon/_bootstrap5-definition.scss +81 -6
- package/styles/ribbon/_fabric-dark-definition.scss +79 -4
- package/styles/ribbon/_fabric-definition.scss +78 -3
- package/styles/ribbon/_fluent-definition.scss +80 -5
- package/styles/ribbon/_fusionnew-definition.scss +76 -1
- package/styles/ribbon/_highcontrast-definition.scss +80 -5
- package/styles/ribbon/_highcontrast-light-definition.scss +76 -1
- package/styles/ribbon/_layout.scss +344 -38
- package/styles/ribbon/_material-dark-definition.scss +80 -5
- package/styles/ribbon/_material-definition.scss +81 -6
- package/styles/ribbon/_material3-definition.scss +80 -5
- package/styles/ribbon/_tailwind-definition.scss +80 -5
- package/styles/ribbon/_theme.scss +71 -0
- package/styles/ribbon/bootstrap-dark.css +398 -24
- package/styles/ribbon/bootstrap.css +389 -15
- package/styles/ribbon/bootstrap4.css +398 -24
- package/styles/ribbon/bootstrap5-dark.css +391 -17
- package/styles/ribbon/bootstrap5.css +391 -17
- package/styles/ribbon/fabric-dark.css +390 -16
- package/styles/ribbon/fabric.css +387 -13
- package/styles/ribbon/fluent-dark.css +389 -15
- package/styles/ribbon/fluent.css +389 -15
- package/styles/ribbon/highcontrast-light.css +381 -7
- package/styles/ribbon/highcontrast.css +390 -16
- package/styles/ribbon/icons/_bds.scss +9 -0
- package/styles/ribbon/material-dark.css +391 -17
- package/styles/ribbon/material.css +391 -17
- package/styles/ribbon/material3-dark.css +389 -15
- package/styles/ribbon/material3.css +389 -15
- package/styles/ribbon/tailwind-dark.css +390 -16
- package/styles/ribbon/tailwind.css +390 -16
- package/styles/tailwind-dark.css +390 -16
- package/styles/tailwind.css +390 -16
|
@@ -53,6 +53,9 @@ var RibbonGroupButton = /** @class */ (function () {
|
|
|
53
53
|
if (groupBtnSettings.items[parseInt(i.toString(), 10)].htmlAttributes) {
|
|
54
54
|
setCustomAttributes(groupButtonEle, groupBtnSettings.items[parseInt(i.toString(), 10)].htmlAttributes);
|
|
55
55
|
}
|
|
56
|
+
if (groupBtnSettings.items[parseInt(i.toString(), 10)].content) {
|
|
57
|
+
groupButtonEle.classList.add(constants.RIBBON_GROUP_BUTTON_CONTENT);
|
|
58
|
+
}
|
|
56
59
|
var buttonEle = itemElement.querySelector('#' + item.id + constants.RIBBON_GROUP_BUTTON_ID + i);
|
|
57
60
|
if (groupBtnSettings.selection === RibbonGroupButtonSelection.Single) {
|
|
58
61
|
btnContainerEle.classList.add(constants.RIBBON_SINGLE_BUTTON_SELECTION);
|
|
@@ -15,6 +15,14 @@ export * from './ribbon-backstage-item';
|
|
|
15
15
|
export * from './ribbon-tooltip';
|
|
16
16
|
export * from './ribbon-group-button-settings';
|
|
17
17
|
export * from './ribbon-group-button-item';
|
|
18
|
+
export * from './ribbon-contextual-tab-settings';
|
|
19
|
+
export * from './ribbon-gallery-group';
|
|
20
|
+
export * from './ribbon-gallery-item';
|
|
21
|
+
export * from './ribbon-gallery-settings';
|
|
22
|
+
export * from './ribbon-gallery-settings-model';
|
|
23
|
+
export * from './ribbon-gallery-item-model';
|
|
24
|
+
export * from './ribbon-gallery-group-model';
|
|
25
|
+
export * from './ribbon-contextual-tab-settings-model';
|
|
18
26
|
export * from './ribbon-group-button-item-model';
|
|
19
27
|
export * from './ribbon-group-button-settings-model';
|
|
20
28
|
export * from './ribbon-tooltip-model';
|
|
@@ -16,3 +16,7 @@ export * from './ribbon-backstage-item';
|
|
|
16
16
|
export * from './ribbon-tooltip';
|
|
17
17
|
export * from './ribbon-group-button-settings';
|
|
18
18
|
export * from './ribbon-group-button-item';
|
|
19
|
+
export * from './ribbon-contextual-tab-settings';
|
|
20
|
+
export * from './ribbon-gallery-group';
|
|
21
|
+
export * from './ribbon-gallery-item';
|
|
22
|
+
export * from './ribbon-gallery-settings';
|
|
@@ -12,6 +12,12 @@ export declare class BackStageMenu extends ChildProperty<BackStageMenu> {
|
|
|
12
12
|
* @default 'File'
|
|
13
13
|
*/
|
|
14
14
|
text: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the keytip content.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
keyTip: string;
|
|
15
21
|
/**
|
|
16
22
|
* Defines whether to show the backstage menu button.
|
|
17
23
|
*
|
|
@@ -41,6 +41,9 @@ var BackStageMenu = /** @class */ (function (_super) {
|
|
|
41
41
|
__decorate([
|
|
42
42
|
Property('File')
|
|
43
43
|
], BackStageMenu.prototype, "text", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Property('')
|
|
46
|
+
], BackStageMenu.prototype, "keyTip", void 0);
|
|
44
47
|
__decorate([
|
|
45
48
|
Property(false)
|
|
46
49
|
], BackStageMenu.prototype, "visible", void 0);
|
|
@@ -16,6 +16,12 @@ export declare class BackstageItem extends ChildProperty<BackstageItem> {
|
|
|
16
16
|
* @default ''
|
|
17
17
|
*/
|
|
18
18
|
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the keytip content.
|
|
21
|
+
*
|
|
22
|
+
* @default ''
|
|
23
|
+
*/
|
|
24
|
+
keyTip: string;
|
|
19
25
|
/**
|
|
20
26
|
* Specifies the backstage item’s content as selector.
|
|
21
27
|
*
|
|
@@ -32,6 +32,9 @@ var BackstageItem = /** @class */ (function (_super) {
|
|
|
32
32
|
__decorate([
|
|
33
33
|
Property('')
|
|
34
34
|
], BackstageItem.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Property('')
|
|
37
|
+
], BackstageItem.prototype, "keyTip", void 0);
|
|
35
38
|
__decorate([
|
|
36
39
|
Property('')
|
|
37
40
|
], BackstageItem.prototype, "content", void 0);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property, Collection } from '@syncfusion/ej2-base';import { RibbonTab } from './ribbon-tab';import { RibbonTabModel } from './ribbon-tab-model';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonContextualTabSettings
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonContextualTabSettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Specifies whether the contextual tab is visible.
|
|
10
|
+
*
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether the contextual tab is selected.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
isSelected?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines the tab groups to be rendered in ribbon.
|
|
24
|
+
*
|
|
25
|
+
* @default []
|
|
26
|
+
* @aspType List<RibbonTab>
|
|
27
|
+
*/
|
|
28
|
+
tabs?: RibbonTabModel[];
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
import { RibbonTabModel } from './ribbon-tab-model';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ribbon contextual tab.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RibbonContextualTabSettings extends ChildProperty<RibbonContextualTabSettings> {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies whether the contextual tab is visible.
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
visible: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies whether the contextual tab is selected.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the tab groups to be rendered in ribbon.
|
|
21
|
+
*
|
|
22
|
+
* @default []
|
|
23
|
+
* @aspType List<RibbonTab>
|
|
24
|
+
*/
|
|
25
|
+
tabs: RibbonTabModel[];
|
|
26
|
+
/**
|
|
27
|
+
* @param {Object} prop - Gets the property of contextual tab.
|
|
28
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
29
|
+
* @returns {void}
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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, Collection } from '@syncfusion/ej2-base';
|
|
21
|
+
import { RibbonTab } from './ribbon-tab';
|
|
22
|
+
/**
|
|
23
|
+
* Defines the ribbon contextual tab.
|
|
24
|
+
*/
|
|
25
|
+
var RibbonContextualTabSettings = /** @class */ (function (_super) {
|
|
26
|
+
__extends(RibbonContextualTabSettings, _super);
|
|
27
|
+
function RibbonContextualTabSettings() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param {Object} prop - Gets the property of contextual tab.
|
|
32
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
33
|
+
* @returns {void}
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
RibbonContextualTabSettings.prototype.setProperties = function (prop, muteOnChange) {
|
|
37
|
+
_super.prototype.setProperties.call(this, prop, muteOnChange);
|
|
38
|
+
};
|
|
39
|
+
__decorate([
|
|
40
|
+
Property(false)
|
|
41
|
+
], RibbonContextualTabSettings.prototype, "visible", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Property(false)
|
|
44
|
+
], RibbonContextualTabSettings.prototype, "isSelected", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Collection([], RibbonTab)
|
|
47
|
+
], RibbonContextualTabSettings.prototype, "tabs", void 0);
|
|
48
|
+
return RibbonContextualTabSettings;
|
|
49
|
+
}(ChildProperty));
|
|
50
|
+
export { RibbonContextualTabSettings };
|
|
@@ -98,6 +98,12 @@ export declare class FileMenuSettings extends ChildProperty<FileMenuSettings> {
|
|
|
98
98
|
* @event select
|
|
99
99
|
*/
|
|
100
100
|
select: EmitType<FileMenuEventArgs>;
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the keytip content.
|
|
103
|
+
*
|
|
104
|
+
* @default ''
|
|
105
|
+
*/
|
|
106
|
+
keyTip: string;
|
|
101
107
|
/**
|
|
102
108
|
* @param {Object} prop - Gets the property of FileMenu.
|
|
103
109
|
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
@@ -79,6 +79,9 @@ var FileMenuSettings = /** @class */ (function (_super) {
|
|
|
79
79
|
__decorate([
|
|
80
80
|
Event()
|
|
81
81
|
], FileMenuSettings.prototype, "select", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
Property('')
|
|
84
|
+
], FileMenuSettings.prototype, "keyTip", void 0);
|
|
82
85
|
return FileMenuSettings;
|
|
83
86
|
}(ChildProperty));
|
|
84
87
|
export { FileMenuSettings };
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChildProperty } from "@syncfusion/ej2-base";
|
|
2
|
+
import { RibbonGalleryItemModel } from "./ribbon-gallery-item-model";
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ribbon gallery group.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RibbonGalleryGroup extends ChildProperty<RibbonGalleryGroup> {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the properties for collection of gallery items in Ribbon.
|
|
9
|
+
*
|
|
10
|
+
* @default []
|
|
11
|
+
* @aspType List<RibbonGalleryItem>
|
|
12
|
+
*/
|
|
13
|
+
items: RibbonGalleryItemModel[];
|
|
14
|
+
/**
|
|
15
|
+
* Defines the header for the group items present in Ribbon Gallery popup.
|
|
16
|
+
*
|
|
17
|
+
* @default ''
|
|
18
|
+
*/
|
|
19
|
+
header: string;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the width of the gallery items.
|
|
22
|
+
*
|
|
23
|
+
* @default 'auto'
|
|
24
|
+
*/
|
|
25
|
+
itemWidth: string;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the height of the gallery item.
|
|
28
|
+
*
|
|
29
|
+
* @default 'auto'
|
|
30
|
+
*/
|
|
31
|
+
itemHeight: string;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the CSS class to customize the gallery groups.
|
|
34
|
+
*
|
|
35
|
+
* @default ''
|
|
36
|
+
*/
|
|
37
|
+
cssClass: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { RibbonGalleryItem } from "./ribbon-gallery-item";
|
|
22
|
+
/**
|
|
23
|
+
* Defines the ribbon gallery group.
|
|
24
|
+
*/
|
|
25
|
+
var RibbonGalleryGroup = /** @class */ (function (_super) {
|
|
26
|
+
__extends(RibbonGalleryGroup, _super);
|
|
27
|
+
function RibbonGalleryGroup() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
Collection([], RibbonGalleryItem)
|
|
32
|
+
], RibbonGalleryGroup.prototype, "items", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Property('')
|
|
35
|
+
], RibbonGalleryGroup.prototype, "header", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Property('auto')
|
|
38
|
+
], RibbonGalleryGroup.prototype, "itemWidth", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Property('auto')
|
|
41
|
+
], RibbonGalleryGroup.prototype, "itemHeight", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Property('')
|
|
44
|
+
], RibbonGalleryGroup.prototype, "cssClass", void 0);
|
|
45
|
+
return RibbonGalleryGroup;
|
|
46
|
+
}(ChildProperty));
|
|
47
|
+
export { RibbonGalleryGroup };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ChildProperty, Property } from "@syncfusion/ej2-base";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonGalleryItem
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonGalleryItemModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the content for the gallery item.
|
|
10
|
+
*
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
content?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Defines the image or icons for the gallery item.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
iconCss?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Specifies additional HTML attributes to be applied to the Ribbon Gallery item.
|
|
24
|
+
*
|
|
25
|
+
* @default {}
|
|
26
|
+
*/
|
|
27
|
+
htmlAttributes?: { [key: string]: string };
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines the CSS class to customize the gallery items.
|
|
31
|
+
*
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
cssClass?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Defines whether the item is disabled or not.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
|
|
43
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChildProperty } from "@syncfusion/ej2-base";
|
|
2
|
+
/**
|
|
3
|
+
* Defines the ribbon gallery item.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RibbonGalleryItem extends ChildProperty<RibbonGalleryItem> {
|
|
6
|
+
/**
|
|
7
|
+
* Defines the content for the gallery item.
|
|
8
|
+
*
|
|
9
|
+
* @default ''
|
|
10
|
+
*/
|
|
11
|
+
content: string;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the image or icons for the gallery item.
|
|
14
|
+
*
|
|
15
|
+
* @default ''
|
|
16
|
+
*/
|
|
17
|
+
iconCss: string;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies additional HTML attributes to be applied to the Ribbon Gallery item.
|
|
20
|
+
*
|
|
21
|
+
* @default {}
|
|
22
|
+
*/
|
|
23
|
+
htmlAttributes: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Defines the CSS class to customize the gallery items.
|
|
28
|
+
*
|
|
29
|
+
* @default ''
|
|
30
|
+
*/
|
|
31
|
+
cssClass: string;
|
|
32
|
+
/**
|
|
33
|
+
* Defines whether the item is disabled or not.
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 } from "@syncfusion/ej2-base";
|
|
21
|
+
/**
|
|
22
|
+
* Defines the ribbon gallery item.
|
|
23
|
+
*/
|
|
24
|
+
var RibbonGalleryItem = /** @class */ (function (_super) {
|
|
25
|
+
__extends(RibbonGalleryItem, _super);
|
|
26
|
+
function RibbonGalleryItem() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
Property('')
|
|
31
|
+
], RibbonGalleryItem.prototype, "content", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Property('')
|
|
34
|
+
], RibbonGalleryItem.prototype, "iconCss", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Property({})
|
|
37
|
+
], RibbonGalleryItem.prototype, "htmlAttributes", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Property('')
|
|
40
|
+
], RibbonGalleryItem.prototype, "cssClass", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Property(false)
|
|
43
|
+
], RibbonGalleryItem.prototype, "disabled", void 0);
|
|
44
|
+
return RibbonGalleryItem;
|
|
45
|
+
}(ChildProperty));
|
|
46
|
+
export { RibbonGalleryItem };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ChildProperty, Collection, EmitType, Property, Event } from "@syncfusion/ej2-base";import { RibbonGalleryGroupModel } from "./ribbon-gallery-group-model";import { RibbonGalleryGroup } from "./ribbon-gallery-group";import { GalleryHoverEventArgs, GalleryItemEventArgs, GalleryPopupEventArgs, GallerySelectEventArgs, GalleryBeforeSelectEventArgs } from "../base/interface";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonGallerySettings
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonGallerySettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the properties for collection of gallery items in the Ribbon.
|
|
10
|
+
*
|
|
11
|
+
* @default []
|
|
12
|
+
* @aspType List<RibbonGalleryGroup>
|
|
13
|
+
*/
|
|
14
|
+
groups?: RibbonGalleryGroupModel[];
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines the number of items to be displayed in the Ribbon Gallery.
|
|
18
|
+
*
|
|
19
|
+
* @default 3
|
|
20
|
+
*/
|
|
21
|
+
itemCount?: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Defines the index of current selected gallery item.
|
|
25
|
+
*
|
|
26
|
+
* @default null
|
|
27
|
+
*/
|
|
28
|
+
selectedItemIndex?: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Defines the height of the ribbon gallery popup.
|
|
32
|
+
*
|
|
33
|
+
* @default 'auto'
|
|
34
|
+
*/
|
|
35
|
+
popupHeight?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Defines the width of the ribbon gallery popup.
|
|
39
|
+
*
|
|
40
|
+
* @default 'auto'
|
|
41
|
+
*/
|
|
42
|
+
popupWidth?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Defines the template for gallery items contents. The current gallery item model passed as context to build the content.
|
|
46
|
+
*
|
|
47
|
+
* @default ''
|
|
48
|
+
* @angularType string | object
|
|
49
|
+
* @reactType string | function | JSX.Element
|
|
50
|
+
* @vueType string | function
|
|
51
|
+
* @aspType string
|
|
52
|
+
*/
|
|
53
|
+
template?: string | Function;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Defines the template for gallery items in popup. The current gallery item model passed as context to build the content.
|
|
57
|
+
*
|
|
58
|
+
* @default ''
|
|
59
|
+
* @angularType string | object
|
|
60
|
+
* @reactType string | function | JSX.Element
|
|
61
|
+
* @vueType string | function
|
|
62
|
+
* @aspType string
|
|
63
|
+
*/
|
|
64
|
+
popupTemplate?: string | Function;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Event triggers when the gallery popup opens.
|
|
68
|
+
*
|
|
69
|
+
* @event popupOpen
|
|
70
|
+
*/
|
|
71
|
+
popupOpen?: EmitType<GalleryPopupEventArgs>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Event triggers when the gallery popup closes.
|
|
75
|
+
*
|
|
76
|
+
* @event popupClose
|
|
77
|
+
*/
|
|
78
|
+
popupClose?: EmitType<GalleryPopupEventArgs>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Event triggers when a user hovers over a gallery item.
|
|
82
|
+
*
|
|
83
|
+
* @event itemHover
|
|
84
|
+
*/
|
|
85
|
+
itemHover?: EmitType<GalleryHoverEventArgs>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Event triggers before rendering each gallery item.
|
|
89
|
+
*
|
|
90
|
+
* @event beforeItemRender
|
|
91
|
+
*/
|
|
92
|
+
beforeItemRender?: EmitType<GalleryItemEventArgs>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Event triggers before the gallery items selects.
|
|
96
|
+
*
|
|
97
|
+
* @event beforeSelect
|
|
98
|
+
*/
|
|
99
|
+
beforeSelect?: EmitType<GalleryBeforeSelectEventArgs>;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Event triggers when the gallery items selects.
|
|
103
|
+
*
|
|
104
|
+
* @event select
|
|
105
|
+
*/
|
|
106
|
+
select?: EmitType<GallerySelectEventArgs>;
|
|
107
|
+
|
|
108
|
+
}
|