@syncfusion/ej2-ribbon 22.2.12 → 23.1.36
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 +0 -26
- 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 +1739 -192
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
- package/dist/es6/ej2-ribbon.es5.js +1800 -135
- 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 +40 -0
- package/src/ribbon/base/constant.js +40 -0
- package/src/ribbon/base/interface.d.ts +49 -2
- package/src/ribbon/base/interface.js +19 -1
- package/src/ribbon/base/ribbon-model.d.ts +25 -1
- package/src/ribbon/base/ribbon.d.ts +108 -3
- package/src/ribbon/base/ribbon.js +434 -61
- package/src/ribbon/items/index.d.ts +1 -0
- package/src/ribbon/items/index.js +1 -0
- package/src/ribbon/items/ribbon-button.js +3 -0
- package/src/ribbon/items/ribbon-colorpicker.js +1 -1
- package/src/ribbon/items/ribbon-dropdown.js +2 -1
- package/src/ribbon/items/ribbon-groupbutton.d.ts +69 -0
- package/src/ribbon/items/ribbon-groupbutton.js +444 -0
- package/src/ribbon/models/index.d.ts +10 -0
- package/src/ribbon/models/index.js +5 -0
- package/src/ribbon/models/ribbon-back-button-model.d.ts +29 -0
- package/src/ribbon/models/ribbon-back-button.d.ts +24 -0
- package/src/ribbon/models/ribbon-back-button.js +40 -0
- package/src/ribbon/models/ribbon-back-stage-settings-model.d.ts +76 -0
- package/src/ribbon/models/ribbon-back-stage-settings.d.ts +75 -0
- package/src/ribbon/models/ribbon-back-stage-settings.js +70 -0
- package/src/ribbon/models/ribbon-backstage-item-model.d.ts +62 -0
- package/src/ribbon/models/ribbon-backstage-item.d.ts +74 -0
- package/src/ribbon/models/ribbon-backstage-item.js +52 -0
- package/src/ribbon/models/ribbon-combobox-settings-model.d.ts +15 -0
- package/src/ribbon/models/ribbon-combobox-settings.d.ts +15 -0
- package/src/ribbon/models/ribbon-dropdown-settings-model.d.ts +7 -0
- package/src/ribbon/models/ribbon-dropdown-settings.d.ts +6 -0
- package/src/ribbon/models/ribbon-dropdown-settings.js +3 -0
- package/src/ribbon/models/ribbon-file-menu-settings-model.d.ts +6 -0
- package/src/ribbon/models/ribbon-file-menu-settings.d.ts +6 -0
- package/src/ribbon/models/ribbon-group-button-item-model.d.ts +50 -0
- package/src/ribbon/models/ribbon-group-button-item.d.ts +44 -0
- package/src/ribbon/models/ribbon-group-button-item.js +50 -0
- package/src/ribbon/models/ribbon-group-button-settings-model.d.ts +25 -0
- package/src/ribbon/models/ribbon-group-button-settings.d.ts +23 -0
- package/src/ribbon/models/ribbon-group-button-settings.js +38 -0
- package/src/ribbon/models/ribbon-item-model.d.ts +11 -1
- package/src/ribbon/models/ribbon-item.d.ts +10 -0
- package/src/ribbon/models/ribbon-item.js +4 -0
- package/src/ribbon/modules/index.d.ts +1 -0
- package/src/ribbon/modules/index.js +1 -0
- package/src/ribbon/modules/ribbon-backstage.d.ts +112 -0
- package/src/ribbon/modules/ribbon-backstage.js +554 -0
- package/styles/bootstrap-dark.css +511 -8
- package/styles/bootstrap.css +511 -8
- package/styles/bootstrap4.css +511 -8
- package/styles/bootstrap5-dark.css +511 -8
- package/styles/bootstrap5.css +511 -8
- package/styles/fabric-dark.css +511 -8
- package/styles/fabric.css +511 -8
- package/styles/fluent-dark.css +511 -8
- package/styles/fluent.css +511 -8
- package/styles/highcontrast-light.css +511 -8
- package/styles/highcontrast.css +511 -8
- package/styles/material-dark.css +511 -9
- package/styles/material.css +512 -9
- package/styles/material3-dark.css +511 -9
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +511 -9
- package/styles/material3.scss +1 -1
- package/styles/ribbon/_bootstrap-dark-definition.scss +65 -0
- package/styles/ribbon/_bootstrap-definition.scss +65 -0
- package/styles/ribbon/_bootstrap4-definition.scss +65 -0
- package/styles/ribbon/_bootstrap5-definition.scss +65 -0
- package/styles/ribbon/_fabric-dark-definition.scss +65 -0
- package/styles/ribbon/_fabric-definition.scss +65 -0
- package/styles/ribbon/_fluent-definition.scss +65 -0
- package/styles/ribbon/_fusionnew-definition.scss +65 -0
- package/styles/ribbon/_highcontrast-definition.scss +65 -0
- package/styles/ribbon/_highcontrast-light-definition.scss +65 -0
- package/styles/ribbon/_layout.scss +280 -5
- package/styles/ribbon/_material-dark-definition.scss +65 -0
- package/styles/ribbon/_material-definition.scss +65 -0
- package/styles/ribbon/_material3-definition.scss +66 -0
- package/styles/ribbon/_tailwind-definition.scss +65 -0
- package/styles/ribbon/_theme.scss +144 -1
- package/styles/ribbon/bootstrap-dark.css +511 -8
- package/styles/ribbon/bootstrap-dark.scss +1 -1
- package/styles/ribbon/bootstrap.css +511 -8
- package/styles/ribbon/bootstrap.scss +1 -1
- package/styles/ribbon/bootstrap4.css +511 -8
- package/styles/ribbon/bootstrap4.scss +1 -1
- package/styles/ribbon/bootstrap5-dark.css +511 -8
- package/styles/ribbon/bootstrap5-dark.scss +1 -1
- package/styles/ribbon/bootstrap5.css +511 -8
- package/styles/ribbon/bootstrap5.scss +1 -1
- package/styles/ribbon/fabric-dark.css +511 -8
- package/styles/ribbon/fabric-dark.scss +1 -1
- package/styles/ribbon/fabric.css +511 -8
- package/styles/ribbon/fabric.scss +1 -1
- package/styles/ribbon/fluent-dark.css +511 -8
- package/styles/ribbon/fluent-dark.scss +1 -1
- package/styles/ribbon/fluent.css +511 -8
- package/styles/ribbon/fluent.scss +1 -1
- package/styles/ribbon/highcontrast-light.css +511 -8
- package/styles/ribbon/highcontrast-light.scss +1 -1
- package/styles/ribbon/highcontrast.css +511 -8
- package/styles/ribbon/highcontrast.scss +1 -1
- package/styles/ribbon/material-dark.css +511 -9
- package/styles/ribbon/material-dark.scss +1 -1
- package/styles/ribbon/material.css +512 -9
- package/styles/ribbon/material.scss +1 -1
- package/styles/ribbon/material3-dark.css +511 -9
- package/styles/ribbon/material3-dark.scss +1 -1
- package/styles/ribbon/material3.css +511 -9
- package/styles/ribbon/material3.scss +1 -1
- package/styles/ribbon/tailwind-dark.css +511 -9
- package/styles/ribbon/tailwind-dark.scss +1 -1
- package/styles/ribbon/tailwind.css +511 -9
- package/styles/ribbon/tailwind.scss +1 -1
- package/styles/tailwind-dark.css +511 -9
- package/styles/tailwind.css +511 -9
|
@@ -0,0 +1,40 @@
|
|
|
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 backstage back button.
|
|
23
|
+
*/
|
|
24
|
+
var BackstageBackButton = /** @class */ (function (_super) {
|
|
25
|
+
__extends(BackstageBackButton, _super);
|
|
26
|
+
function BackstageBackButton() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
Property('')
|
|
31
|
+
], BackstageBackButton.prototype, "text", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Property('')
|
|
34
|
+
], BackstageBackButton.prototype, "iconCss", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Property(true)
|
|
37
|
+
], BackstageBackButton.prototype, "visible", void 0);
|
|
38
|
+
return BackstageBackButton;
|
|
39
|
+
}(ChildProperty));
|
|
40
|
+
export { BackstageBackButton };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ChildProperty, Property, Complex, Collection } from '@syncfusion/ej2-base';import { BackstageBackButton } from './ribbon-back-button';import { BackstageBackButtonModel } from './ribbon-back-button-model';import { BackstageItem } from './ribbon-backstage-item';import { BackstageItemModel } from './ribbon-backstage-item-model';import { RibbonTooltipModel } from './ribbon-tooltip-model';import { RibbonTooltip } from './ribbon-tooltip';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class BackStageMenu
|
|
5
|
+
*/
|
|
6
|
+
export interface BackStageMenuModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the text content of backstage menu button.
|
|
10
|
+
*
|
|
11
|
+
* @default 'File'
|
|
12
|
+
*/
|
|
13
|
+
text?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Defines whether to show the backstage menu button.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines the height of the backstage menu.
|
|
24
|
+
*
|
|
25
|
+
* @default 'auto'
|
|
26
|
+
*/
|
|
27
|
+
height?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines the width of the backstage menu.
|
|
31
|
+
*
|
|
32
|
+
* @default 'auto'
|
|
33
|
+
*/
|
|
34
|
+
width?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Defines the selector that points to the element in which backstage will be positioned.
|
|
38
|
+
*
|
|
39
|
+
* @default null
|
|
40
|
+
*/
|
|
41
|
+
target?: string | HTMLElement;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Defines the properties of ribbon backstage back button.
|
|
45
|
+
*
|
|
46
|
+
* @default {}
|
|
47
|
+
*/
|
|
48
|
+
backButton?: BackstageBackButtonModel;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Defines the properties of ribbon backstage back button.
|
|
52
|
+
*
|
|
53
|
+
* @default []
|
|
54
|
+
* @aspType List<BackstageItem>
|
|
55
|
+
*/
|
|
56
|
+
items?: BackstageItemModel[];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Defines the template for Backstage content.
|
|
60
|
+
*
|
|
61
|
+
* @default ''
|
|
62
|
+
* @angularType string | object
|
|
63
|
+
* @reactType string | function | JSX.Element
|
|
64
|
+
* @vueType string | function
|
|
65
|
+
* @aspType string
|
|
66
|
+
*/
|
|
67
|
+
template?: string | Function;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Specifies the tooltip settings for the file menu button.
|
|
71
|
+
*
|
|
72
|
+
* @default {}
|
|
73
|
+
*/
|
|
74
|
+
ribbonTooltipSettings?: RibbonTooltipModel;
|
|
75
|
+
|
|
76
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
import { BackstageBackButtonModel } from './ribbon-back-button-model';
|
|
3
|
+
import { BackstageItemModel } from './ribbon-backstage-item-model';
|
|
4
|
+
import { RibbonTooltipModel } from './ribbon-tooltip-model';
|
|
5
|
+
/**
|
|
6
|
+
* Defines the ribbon file menu settings.
|
|
7
|
+
*/
|
|
8
|
+
export declare class BackStageMenu extends ChildProperty<BackStageMenu> {
|
|
9
|
+
/**
|
|
10
|
+
* Defines the text content of backstage menu button.
|
|
11
|
+
*
|
|
12
|
+
* @default 'File'
|
|
13
|
+
*/
|
|
14
|
+
text: string;
|
|
15
|
+
/**
|
|
16
|
+
* Defines whether to show the backstage menu button.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
visible: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the height of the backstage menu.
|
|
23
|
+
*
|
|
24
|
+
* @default 'auto'
|
|
25
|
+
*/
|
|
26
|
+
height: string;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the width of the backstage menu.
|
|
29
|
+
*
|
|
30
|
+
* @default 'auto'
|
|
31
|
+
*/
|
|
32
|
+
width: string;
|
|
33
|
+
/**
|
|
34
|
+
* Defines the selector that points to the element in which backstage will be positioned.
|
|
35
|
+
*
|
|
36
|
+
* @default null
|
|
37
|
+
*/
|
|
38
|
+
target: string | HTMLElement;
|
|
39
|
+
/**
|
|
40
|
+
* Defines the properties of ribbon backstage back button.
|
|
41
|
+
*
|
|
42
|
+
* @default {}
|
|
43
|
+
*/
|
|
44
|
+
backButton: BackstageBackButtonModel;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the properties of ribbon backstage back button.
|
|
47
|
+
*
|
|
48
|
+
* @default []
|
|
49
|
+
* @aspType List<BackstageItem>
|
|
50
|
+
*/
|
|
51
|
+
items: BackstageItemModel[];
|
|
52
|
+
/**
|
|
53
|
+
* Defines the template for Backstage content.
|
|
54
|
+
*
|
|
55
|
+
* @default ''
|
|
56
|
+
* @angularType string | object
|
|
57
|
+
* @reactType string | function | JSX.Element
|
|
58
|
+
* @vueType string | function
|
|
59
|
+
* @aspType string
|
|
60
|
+
*/
|
|
61
|
+
template: string | Function;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the tooltip settings for the file menu button.
|
|
64
|
+
*
|
|
65
|
+
* @default {}
|
|
66
|
+
*/
|
|
67
|
+
ribbonTooltipSettings: RibbonTooltipModel;
|
|
68
|
+
/**
|
|
69
|
+
* @param {Object} prop - Gets the property of Backstage Menu.
|
|
70
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
71
|
+
* @returns {void}
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
75
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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, Complex, Collection } from '@syncfusion/ej2-base';
|
|
21
|
+
import { BackstageBackButton } from './ribbon-back-button';
|
|
22
|
+
import { BackstageItem } from './ribbon-backstage-item';
|
|
23
|
+
import { RibbonTooltip } from './ribbon-tooltip';
|
|
24
|
+
/**
|
|
25
|
+
* Defines the ribbon file menu settings.
|
|
26
|
+
*/
|
|
27
|
+
var BackStageMenu = /** @class */ (function (_super) {
|
|
28
|
+
__extends(BackStageMenu, _super);
|
|
29
|
+
function BackStageMenu() {
|
|
30
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param {Object} prop - Gets the property of Backstage Menu.
|
|
34
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
35
|
+
* @returns {void}
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
BackStageMenu.prototype.setProperties = function (prop, muteOnChange) {
|
|
39
|
+
_super.prototype.setProperties.call(this, prop, muteOnChange);
|
|
40
|
+
};
|
|
41
|
+
__decorate([
|
|
42
|
+
Property('File')
|
|
43
|
+
], BackStageMenu.prototype, "text", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Property(false)
|
|
46
|
+
], BackStageMenu.prototype, "visible", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Property('auto')
|
|
49
|
+
], BackStageMenu.prototype, "height", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Property('auto')
|
|
52
|
+
], BackStageMenu.prototype, "width", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Property(null)
|
|
55
|
+
], BackStageMenu.prototype, "target", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Complex({}, BackstageBackButton)
|
|
58
|
+
], BackStageMenu.prototype, "backButton", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Collection([], BackstageItem)
|
|
61
|
+
], BackStageMenu.prototype, "items", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Property('')
|
|
64
|
+
], BackStageMenu.prototype, "template", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Complex({}, RibbonTooltip)
|
|
67
|
+
], BackStageMenu.prototype, "ribbonTooltipSettings", void 0);
|
|
68
|
+
return BackStageMenu;
|
|
69
|
+
}(ChildProperty));
|
|
70
|
+
export { BackStageMenu };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ChildProperty, Property, Event, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
2
|
+
import {BackstageItemClickArgs} from "./ribbon-backstage-item";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface for a class BackstageItem
|
|
6
|
+
*/
|
|
7
|
+
export interface BackstageItemModel {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the text for backstage item.
|
|
11
|
+
*
|
|
12
|
+
* @default ''
|
|
13
|
+
*/
|
|
14
|
+
text?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines a unique identifier for the backstage item.
|
|
18
|
+
*
|
|
19
|
+
* @default ''
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the backstage item’s content as selector.
|
|
25
|
+
*
|
|
26
|
+
* @default ''
|
|
27
|
+
* @angularType string | object
|
|
28
|
+
* @reactType string | function | JSX.Element
|
|
29
|
+
* @vueType string | function
|
|
30
|
+
* @aspType string
|
|
31
|
+
*/
|
|
32
|
+
content?: string | Function;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the icon css class for backstage back button.
|
|
36
|
+
*
|
|
37
|
+
* @default ''
|
|
38
|
+
*/
|
|
39
|
+
iconCss?: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the separator between the backstage items.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
separator?: boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Specifies whether the item is placed in Footer section of backstage.
|
|
50
|
+
*
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
isFooter?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Event triggers when backstage item is clicked.
|
|
57
|
+
*
|
|
58
|
+
* @event backStageItemClick
|
|
59
|
+
*/
|
|
60
|
+
backStageItemClick?: EmitType<BackstageItemClickArgs>;
|
|
61
|
+
|
|
62
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ChildProperty, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
2
|
+
import { BackstageItemModel } from './ribbon-backstage-item-model';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ribbon backstage back button.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BackstageItem extends ChildProperty<BackstageItem> {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies the text for backstage item.
|
|
9
|
+
*
|
|
10
|
+
* @default ''
|
|
11
|
+
*/
|
|
12
|
+
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* Defines a unique identifier for the backstage item.
|
|
15
|
+
*
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the backstage item’s content as selector.
|
|
21
|
+
*
|
|
22
|
+
* @default ''
|
|
23
|
+
* @angularType string | object
|
|
24
|
+
* @reactType string | function | JSX.Element
|
|
25
|
+
* @vueType string | function
|
|
26
|
+
* @aspType string
|
|
27
|
+
*/
|
|
28
|
+
content: string | Function;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the icon css class for backstage back button.
|
|
31
|
+
*
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
iconCss: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the separator between the backstage items.
|
|
37
|
+
*
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
separator: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies whether the item is placed in Footer section of backstage.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
isFooter: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Event triggers when backstage item is clicked.
|
|
49
|
+
*
|
|
50
|
+
* @event backStageItemClick
|
|
51
|
+
*/
|
|
52
|
+
backStageItemClick: EmitType<BackstageItemClickArgs>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Event triggers when backstage item is clicked.
|
|
56
|
+
*/
|
|
57
|
+
export interface BackstageItemClickArgs extends BaseEventArgs {
|
|
58
|
+
/**
|
|
59
|
+
* Set to true when the event has to be canceled, else false.
|
|
60
|
+
*/
|
|
61
|
+
cancel: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Provides the backstage menu item object.
|
|
64
|
+
*/
|
|
65
|
+
item?: BackstageItemModel;
|
|
66
|
+
/**
|
|
67
|
+
* Provides the HTML element of the backstage menu item clicked.
|
|
68
|
+
*/
|
|
69
|
+
target: HTMLElement;
|
|
70
|
+
/**
|
|
71
|
+
* Returns true when back button item is clicked.
|
|
72
|
+
*/
|
|
73
|
+
isBackButton: boolean;
|
|
74
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { ChildProperty, Property, Event } from '@syncfusion/ej2-base';
|
|
21
|
+
/**
|
|
22
|
+
* Defines the ribbon backstage back button.
|
|
23
|
+
*/
|
|
24
|
+
var BackstageItem = /** @class */ (function (_super) {
|
|
25
|
+
__extends(BackstageItem, _super);
|
|
26
|
+
function BackstageItem() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
Property('')
|
|
31
|
+
], BackstageItem.prototype, "text", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Property('')
|
|
34
|
+
], BackstageItem.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Property('')
|
|
37
|
+
], BackstageItem.prototype, "content", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Property('')
|
|
40
|
+
], BackstageItem.prototype, "iconCss", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Property(false)
|
|
43
|
+
], BackstageItem.prototype, "separator", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Property(false)
|
|
46
|
+
], BackstageItem.prototype, "isFooter", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Event()
|
|
49
|
+
], BackstageItem.prototype, "backStageItemClick", void 0);
|
|
50
|
+
return BackstageItem;
|
|
51
|
+
}(ChildProperty));
|
|
52
|
+
export { BackstageItem };
|
|
@@ -82,6 +82,9 @@ export interface RibbonComboBoxSettingsModel {
|
|
|
82
82
|
* Specifies the template content for the footer container of the popup list.
|
|
83
83
|
*
|
|
84
84
|
* @default null
|
|
85
|
+
* @angularType string | object
|
|
86
|
+
* @reactType string | function | JSX.Element
|
|
87
|
+
* @vueType string | function
|
|
85
88
|
* @aspType string
|
|
86
89
|
*/
|
|
87
90
|
footerTemplate?: string | Function;
|
|
@@ -90,6 +93,9 @@ export interface RibbonComboBoxSettingsModel {
|
|
|
90
93
|
* Specifies the template content for the group headers present in the popup list.
|
|
91
94
|
*
|
|
92
95
|
* @default null
|
|
96
|
+
* @angularType string | object
|
|
97
|
+
* @reactType string | function | JSX.Element
|
|
98
|
+
* @vueType string | function
|
|
93
99
|
* @aspType string
|
|
94
100
|
*/
|
|
95
101
|
groupTemplate?: string | Function;
|
|
@@ -98,6 +104,9 @@ export interface RibbonComboBoxSettingsModel {
|
|
|
98
104
|
* Specifies the template content for the header container of the popup list.
|
|
99
105
|
*
|
|
100
106
|
* @default null
|
|
107
|
+
* @angularType string | object
|
|
108
|
+
* @reactType string | function | JSX.Element
|
|
109
|
+
* @vueType string | function
|
|
101
110
|
* @aspType string
|
|
102
111
|
*/
|
|
103
112
|
headerTemplate?: string | Function;
|
|
@@ -113,6 +122,9 @@ export interface RibbonComboBoxSettingsModel {
|
|
|
113
122
|
* Specifies the template content for each list item present in the popup.
|
|
114
123
|
*
|
|
115
124
|
* @default null
|
|
125
|
+
* @angularType string | object
|
|
126
|
+
* @reactType string | function | JSX.Element
|
|
127
|
+
* @vueType string | function
|
|
116
128
|
* @aspType string
|
|
117
129
|
*/
|
|
118
130
|
itemTemplate?: string | Function;
|
|
@@ -121,6 +133,9 @@ export interface RibbonComboBoxSettingsModel {
|
|
|
121
133
|
* Specifies the template content for the popup list of combobox when no data is available.
|
|
122
134
|
*
|
|
123
135
|
* @default 'No records found'
|
|
136
|
+
* @angularType string | object
|
|
137
|
+
* @reactType string | function | JSX.Element
|
|
138
|
+
* @vueType string | function
|
|
124
139
|
* @aspType string
|
|
125
140
|
*/
|
|
126
141
|
noRecordsTemplate?: string | Function;
|
|
@@ -78,6 +78,9 @@ export declare class RibbonComboBoxSettings extends ChildProperty<RibbonComboBox
|
|
|
78
78
|
* Specifies the template content for the footer container of the popup list.
|
|
79
79
|
*
|
|
80
80
|
* @default null
|
|
81
|
+
* @angularType string | object
|
|
82
|
+
* @reactType string | function | JSX.Element
|
|
83
|
+
* @vueType string | function
|
|
81
84
|
* @aspType string
|
|
82
85
|
*/
|
|
83
86
|
footerTemplate: string | Function;
|
|
@@ -85,6 +88,9 @@ export declare class RibbonComboBoxSettings extends ChildProperty<RibbonComboBox
|
|
|
85
88
|
* Specifies the template content for the group headers present in the popup list.
|
|
86
89
|
*
|
|
87
90
|
* @default null
|
|
91
|
+
* @angularType string | object
|
|
92
|
+
* @reactType string | function | JSX.Element
|
|
93
|
+
* @vueType string | function
|
|
88
94
|
* @aspType string
|
|
89
95
|
*/
|
|
90
96
|
groupTemplate: string | Function;
|
|
@@ -92,6 +98,9 @@ export declare class RibbonComboBoxSettings extends ChildProperty<RibbonComboBox
|
|
|
92
98
|
* Specifies the template content for the header container of the popup list.
|
|
93
99
|
*
|
|
94
100
|
* @default null
|
|
101
|
+
* @angularType string | object
|
|
102
|
+
* @reactType string | function | JSX.Element
|
|
103
|
+
* @vueType string | function
|
|
95
104
|
* @aspType string
|
|
96
105
|
*/
|
|
97
106
|
headerTemplate: string | Function;
|
|
@@ -105,6 +114,9 @@ export declare class RibbonComboBoxSettings extends ChildProperty<RibbonComboBox
|
|
|
105
114
|
* Specifies the template content for each list item present in the popup.
|
|
106
115
|
*
|
|
107
116
|
* @default null
|
|
117
|
+
* @angularType string | object
|
|
118
|
+
* @reactType string | function | JSX.Element
|
|
119
|
+
* @vueType string | function
|
|
108
120
|
* @aspType string
|
|
109
121
|
*/
|
|
110
122
|
itemTemplate: string | Function;
|
|
@@ -112,6 +124,9 @@ export declare class RibbonComboBoxSettings extends ChildProperty<RibbonComboBox
|
|
|
112
124
|
* Specifies the template content for the popup list of combobox when no data is available.
|
|
113
125
|
*
|
|
114
126
|
* @default 'No records found'
|
|
127
|
+
* @angularType string | object
|
|
128
|
+
* @reactType string | function | JSX.Element
|
|
129
|
+
* @vueType string | function
|
|
115
130
|
* @aspType string
|
|
116
131
|
*/
|
|
117
132
|
noRecordsTemplate: string | Function;
|
|
@@ -48,6 +48,13 @@ export interface RibbonDropDownSettingsModel {
|
|
|
48
48
|
*/
|
|
49
49
|
target?: string | HTMLElement;
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Specifies whether to create popup element on open.
|
|
53
|
+
*
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
createPopupOnClick?: boolean;
|
|
57
|
+
|
|
51
58
|
/**
|
|
52
59
|
* Triggers before closing the DropDownButton popup.
|
|
53
60
|
*
|
|
@@ -41,6 +41,12 @@ export declare class RibbonDropDownSettings extends ChildProperty<RibbonDropDown
|
|
|
41
41
|
* @aspType string
|
|
42
42
|
*/
|
|
43
43
|
target: string | HTMLElement;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies whether to create popup element on open.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
createPopupOnClick: boolean;
|
|
44
50
|
/**
|
|
45
51
|
* Triggers before closing the DropDownButton popup.
|
|
46
52
|
*
|
|
@@ -54,6 +54,9 @@ var RibbonDropDownSettings = /** @class */ (function (_super) {
|
|
|
54
54
|
__decorate([
|
|
55
55
|
Property('')
|
|
56
56
|
], RibbonDropDownSettings.prototype, "target", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Property(false)
|
|
59
|
+
], RibbonDropDownSettings.prototype, "createPopupOnClick", void 0);
|
|
57
60
|
__decorate([
|
|
58
61
|
Event()
|
|
59
62
|
], RibbonDropDownSettings.prototype, "beforeClose", void 0);
|
|
@@ -46,6 +46,9 @@ export interface FileMenuSettingsModel {
|
|
|
46
46
|
* Specifies the template for file menu item.
|
|
47
47
|
*
|
|
48
48
|
* @default ''
|
|
49
|
+
* @angularType string | object
|
|
50
|
+
* @reactType string | function | JSX.Element
|
|
51
|
+
* @vueType string | function
|
|
49
52
|
* @aspType string
|
|
50
53
|
*/
|
|
51
54
|
itemTemplate?: string | Function;
|
|
@@ -54,6 +57,9 @@ export interface FileMenuSettingsModel {
|
|
|
54
57
|
* Specifies the custom content for the file menu popup.
|
|
55
58
|
*
|
|
56
59
|
* @default ''
|
|
60
|
+
* @angularType string | HTMLElement
|
|
61
|
+
* @reactType string | HTMLElement | JSX.Element
|
|
62
|
+
* @vueType string | HTMLElement
|
|
57
63
|
* @aspType string
|
|
58
64
|
*/
|
|
59
65
|
popupTemplate?: string | HTMLElement;
|
|
@@ -40,6 +40,9 @@ export declare class FileMenuSettings extends ChildProperty<FileMenuSettings> {
|
|
|
40
40
|
* Specifies the template for file menu item.
|
|
41
41
|
*
|
|
42
42
|
* @default ''
|
|
43
|
+
* @angularType string | object
|
|
44
|
+
* @reactType string | function | JSX.Element
|
|
45
|
+
* @vueType string | function
|
|
43
46
|
* @aspType string
|
|
44
47
|
*/
|
|
45
48
|
itemTemplate: string | Function;
|
|
@@ -47,6 +50,9 @@ export declare class FileMenuSettings extends ChildProperty<FileMenuSettings> {
|
|
|
47
50
|
* Specifies the custom content for the file menu popup.
|
|
48
51
|
*
|
|
49
52
|
* @default ''
|
|
53
|
+
* @angularType string | HTMLElement
|
|
54
|
+
* @reactType string | HTMLElement | JSX.Element
|
|
55
|
+
* @vueType string | HTMLElement
|
|
50
56
|
* @aspType string
|
|
51
57
|
*/
|
|
52
58
|
popupTemplate: string | HTMLElement;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property, Complex } from '@syncfusion/ej2-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonGroupButtonItem
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonGroupButtonItemModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the content for the button.
|
|
10
|
+
*
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
content?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Defines the CSS class for the icons to be shown in button.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
iconCss?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the tooltip settings for the group button items.
|
|
24
|
+
*
|
|
25
|
+
* @default {}
|
|
26
|
+
*/
|
|
27
|
+
ribbonTooltipSettings?: RibbonTooltipModel;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines whether the button is selected or not.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
selected?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Triggers before clicking the button from group button.
|
|
38
|
+
*
|
|
39
|
+
* @event beforeClick
|
|
40
|
+
*/
|
|
41
|
+
beforeClick?: EmitType<BeforeClickGroupButtonEventArgs>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Triggers after clicking the button from group button.
|
|
45
|
+
*
|
|
46
|
+
* @event click
|
|
47
|
+
*/
|
|
48
|
+
click?: EmitType<ClickGroupButtonEventArgs>;
|
|
49
|
+
|
|
50
|
+
}
|