@syncfusion/ej2-ribbon 21.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/.eslintrc.json +259 -0
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +60 -0
- package/.github/PULL_REQUEST_TEMPLATE/feature.md +37 -0
- package/CHANGELOG.md +19 -0
- package/README.md +3 -0
- package/dist/ej2-ribbon.umd.min.js +11 -0
- package/dist/ej2-ribbon.umd.min.js.map +1 -0
- package/dist/es6/ej2-ribbon.es2015.js +4946 -0
- package/dist/es6/ej2-ribbon.es2015.js.map +1 -0
- package/dist/es6/ej2-ribbon.es5.js +5253 -0
- package/dist/es6/ej2-ribbon.es5.js.map +1 -0
- package/dist/global/ej2-ribbon.min.js +11 -0
- package/dist/global/ej2-ribbon.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/license +10 -0
- package/package.json +67 -0
- package/ribbon.d.ts +4 -0
- package/ribbon.js +4 -0
- package/src/global.js +3 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -0
- package/src/ribbon/base/constant.d.ts +151 -0
- package/src/ribbon/base/constant.js +151 -0
- package/src/ribbon/base/index.d.ts +8 -0
- package/src/ribbon/base/index.js +7 -0
- package/src/ribbon/base/interface.d.ts +194 -0
- package/src/ribbon/base/interface.js +106 -0
- package/src/ribbon/base/ribbon-model.d.ts +129 -0
- package/src/ribbon/base/ribbon.d.ts +357 -0
- package/src/ribbon/base/ribbon.js +2413 -0
- package/src/ribbon/base/utils.d.ts +113 -0
- package/src/ribbon/base/utils.js +288 -0
- package/src/ribbon/index.d.ts +7 -0
- package/src/ribbon/index.js +7 -0
- package/src/ribbon/items/index.d.ts +6 -0
- package/src/ribbon/items/index.js +6 -0
- package/src/ribbon/items/ribbon-button.d.ts +65 -0
- package/src/ribbon/items/ribbon-button.js +153 -0
- package/src/ribbon/items/ribbon-checkbox.d.ts +56 -0
- package/src/ribbon/items/ribbon-checkbox.js +134 -0
- package/src/ribbon/items/ribbon-colorpicker.d.ts +66 -0
- package/src/ribbon/items/ribbon-colorpicker.js +163 -0
- package/src/ribbon/items/ribbon-combobox.d.ts +78 -0
- package/src/ribbon/items/ribbon-combobox.js +185 -0
- package/src/ribbon/items/ribbon-dropdown.d.ts +123 -0
- package/src/ribbon/items/ribbon-dropdown.js +268 -0
- package/src/ribbon/items/ribbon-splitbutton.d.ts +86 -0
- package/src/ribbon/items/ribbon-splitbutton.js +227 -0
- package/src/ribbon/models/index.d.ts +24 -0
- package/src/ribbon/models/index.js +13 -0
- package/src/ribbon/models/ribbon-button-settings-model.d.ts +57 -0
- package/src/ribbon/models/ribbon-button-settings.d.ts +55 -0
- package/src/ribbon/models/ribbon-button-settings.js +61 -0
- package/src/ribbon/models/ribbon-checkbox-settings-model.d.ts +50 -0
- package/src/ribbon/models/ribbon-checkbox-settings.d.ts +50 -0
- package/src/ribbon/models/ribbon-checkbox-settings.js +58 -0
- package/src/ribbon/models/ribbon-collection-model.d.ts +30 -0
- package/src/ribbon/models/ribbon-collection.d.ts +33 -0
- package/src/ribbon/models/ribbon-collection.js +50 -0
- package/src/ribbon/models/ribbon-colorpicker-settings-model.d.ts +123 -0
- package/src/ribbon/models/ribbon-colorpicker-settings.d.ts +115 -0
- package/src/ribbon/models/ribbon-colorpicker-settings.js +88 -0
- package/src/ribbon/models/ribbon-combobox-settings-model.d.ts +241 -0
- package/src/ribbon/models/ribbon-combobox-settings.d.ts +223 -0
- package/src/ribbon/models/ribbon-combobox-settings.js +122 -0
- package/src/ribbon/models/ribbon-dropdown-settings-model.d.ts +100 -0
- package/src/ribbon/models/ribbon-dropdown-settings.d.ts +93 -0
- package/src/ribbon/models/ribbon-dropdown-settings.js +80 -0
- package/src/ribbon/models/ribbon-file-menu-settings-model.d.ts +108 -0
- package/src/ribbon/models/ribbon-file-menu-settings.d.ts +159 -0
- package/src/ribbon/models/ribbon-file-menu-settings.js +84 -0
- package/src/ribbon/models/ribbon-group-model.d.ts +91 -0
- package/src/ribbon/models/ribbon-group.d.ts +87 -0
- package/src/ribbon/models/ribbon-group.js +74 -0
- package/src/ribbon/models/ribbon-item-model.d.ts +120 -0
- package/src/ribbon/models/ribbon-item.d.ts +118 -0
- package/src/ribbon/models/ribbon-item.js +93 -0
- package/src/ribbon/models/ribbon-splitbutton-settings-model.d.ts +107 -0
- package/src/ribbon/models/ribbon-splitbutton-settings.d.ts +99 -0
- package/src/ribbon/models/ribbon-splitbutton-settings.js +83 -0
- package/src/ribbon/models/ribbon-tab-model.d.ts +37 -0
- package/src/ribbon/models/ribbon-tab.d.ts +39 -0
- package/src/ribbon/models/ribbon-tab.js +53 -0
- package/src/ribbon/models/ribbon-tooltip-model.d.ts +43 -0
- package/src/ribbon/models/ribbon-tooltip.d.ts +36 -0
- package/src/ribbon/models/ribbon-tooltip.js +46 -0
- package/src/ribbon/modules/index.d.ts +1 -0
- package/src/ribbon/modules/index.js +1 -0
- package/src/ribbon/modules/ribbon-filemenu.d.ts +94 -0
- package/src/ribbon/modules/ribbon-filemenu.js +318 -0
- package/styles/bootstrap-dark.css +1502 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +1507 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +1557 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +1586 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +1586 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.css +1478 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +1476 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +1562 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1562 -0
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +1485 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +1494 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +1548 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +1581 -0
- package/styles/material.scss +1 -0
- package/styles/ribbon/_all.scss +2 -0
- package/styles/ribbon/_bootstrap-dark-definition.scss +206 -0
- package/styles/ribbon/_bootstrap-definition.scss +206 -0
- package/styles/ribbon/_bootstrap4-definition.scss +206 -0
- package/styles/ribbon/_bootstrap5-dark-definition.scss +1 -0
- package/styles/ribbon/_bootstrap5-definition.scss +206 -0
- package/styles/ribbon/_fabric-dark-definition.scss +206 -0
- package/styles/ribbon/_fabric-definition.scss +206 -0
- package/styles/ribbon/_fluent-dark-definition.scss +1 -0
- package/styles/ribbon/_fluent-definition.scss +206 -0
- package/styles/ribbon/_fusionnew-definition.scss +206 -0
- package/styles/ribbon/_highcontrast-definition.scss +206 -0
- package/styles/ribbon/_highcontrast-light-definition.scss +206 -0
- package/styles/ribbon/_layout.scss +1040 -0
- package/styles/ribbon/_material-dark-definition.scss +206 -0
- package/styles/ribbon/_material-definition.scss +206 -0
- package/styles/ribbon/_tailwind-dark-definition.scss +1 -0
- package/styles/ribbon/_tailwind-definition.scss +206 -0
- package/styles/ribbon/_theme.scss +343 -0
- package/styles/ribbon/bootstrap-dark.css +1502 -0
- package/styles/ribbon/bootstrap-dark.scss +17 -0
- package/styles/ribbon/bootstrap.css +1507 -0
- package/styles/ribbon/bootstrap.scss +17 -0
- package/styles/ribbon/bootstrap4.css +1557 -0
- package/styles/ribbon/bootstrap4.scss +17 -0
- package/styles/ribbon/bootstrap5-dark.css +1586 -0
- package/styles/ribbon/bootstrap5-dark.scss +17 -0
- package/styles/ribbon/bootstrap5.css +1586 -0
- package/styles/ribbon/bootstrap5.scss +17 -0
- package/styles/ribbon/fabric-dark.css +1478 -0
- package/styles/ribbon/fabric-dark.scss +17 -0
- package/styles/ribbon/fabric.css +1476 -0
- package/styles/ribbon/fabric.scss +17 -0
- package/styles/ribbon/fluent-dark.css +1562 -0
- package/styles/ribbon/fluent-dark.scss +17 -0
- package/styles/ribbon/fluent.css +1562 -0
- package/styles/ribbon/fluent.scss +17 -0
- package/styles/ribbon/highcontrast-light.css +1485 -0
- package/styles/ribbon/highcontrast-light.scss +16 -0
- package/styles/ribbon/highcontrast.css +1494 -0
- package/styles/ribbon/highcontrast.scss +17 -0
- package/styles/ribbon/icons/_bootstrap-dark.scss +9 -0
- package/styles/ribbon/icons/_bootstrap.scss +9 -0
- package/styles/ribbon/icons/_bootstrap4.scss +9 -0
- package/styles/ribbon/icons/_bootstrap5-dark.scss +1 -0
- package/styles/ribbon/icons/_bootstrap5.scss +9 -0
- package/styles/ribbon/icons/_fabric-dark.scss +9 -0
- package/styles/ribbon/icons/_fabric.scss +9 -0
- package/styles/ribbon/icons/_fluent-dark.scss +1 -0
- package/styles/ribbon/icons/_fluent.scss +9 -0
- package/styles/ribbon/icons/_fusionnew.scss +9 -0
- package/styles/ribbon/icons/_highcontrast.scss +9 -0
- package/styles/ribbon/icons/_material-dark.scss +9 -0
- package/styles/ribbon/icons/_material.scss +9 -0
- package/styles/ribbon/icons/_material3.scss +9 -0
- package/styles/ribbon/icons/_tailwind-dark.scss +9 -0
- package/styles/ribbon/icons/_tailwind.scss +9 -0
- package/styles/ribbon/material-dark.css +1548 -0
- package/styles/ribbon/material-dark.scss +17 -0
- package/styles/ribbon/material.css +1581 -0
- package/styles/ribbon/material.scss +17 -0
- package/styles/ribbon/tailwind-dark.css +1560 -0
- package/styles/ribbon/tailwind-dark.scss +17 -0
- package/styles/ribbon/tailwind.css +1560 -0
- package/styles/ribbon/tailwind.scss +17 -0
- package/styles/tailwind-dark.css +1560 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +1560 -0
- package/styles/tailwind.scss +1 -0
- package/tslint.json +111 -0
|
@@ -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, Collection, Property } from '@syncfusion/ej2-base';
|
|
21
|
+
import { RibbonItem } from './ribbon-item';
|
|
22
|
+
/**
|
|
23
|
+
* Defines the items of Ribbon.
|
|
24
|
+
*/
|
|
25
|
+
var RibbonCollection = /** @class */ (function (_super) {
|
|
26
|
+
__extends(RibbonCollection, _super);
|
|
27
|
+
function RibbonCollection() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param {Object} prop - Gets the property of collection.
|
|
32
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
33
|
+
* @returns {void}
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
RibbonCollection.prototype.setProperties = function (prop, muteOnChange) {
|
|
37
|
+
_super.prototype.setProperties.call(this, prop, muteOnChange);
|
|
38
|
+
};
|
|
39
|
+
__decorate([
|
|
40
|
+
Property('')
|
|
41
|
+
], RibbonCollection.prototype, "id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Property('')
|
|
44
|
+
], RibbonCollection.prototype, "cssClass", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Collection([], RibbonItem)
|
|
47
|
+
], RibbonCollection.prototype, "items", void 0);
|
|
48
|
+
return RibbonCollection;
|
|
49
|
+
}(ChildProperty));
|
|
50
|
+
export { RibbonCollection };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property } from '@syncfusion/ej2-base';import { ColorPickerMode, ChangeEventArgs, OpenEventArgs, PaletteTileEventArgs, BeforeOpenCloseEventArgs, ColorPickerEventArgs } from '@syncfusion/ej2-inputs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonColorPickerSettings
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonColorPickerSettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the number of columns to be rendered in the color picker palette.
|
|
10
|
+
*
|
|
11
|
+
* @default 10
|
|
12
|
+
*/
|
|
13
|
+
columns?: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Defines one or more CSS classes to customize the appearance of the color picker.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
cssClass?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines whether to enable the opacity option in the color picker.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
enableOpacity?: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines the rendering mode of the color picker.
|
|
31
|
+
*
|
|
32
|
+
* @default 'Picker'
|
|
33
|
+
*/
|
|
34
|
+
mode?: ColorPickerMode;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Defines whether to show / hide the mode switcher button in the color picker.
|
|
38
|
+
*
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
modeSwitcher?: boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Defines whether to enable / disable the palette section in the color picker.
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
noColor?: boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Defines the custom colors to load in the color picker palette.
|
|
52
|
+
*
|
|
53
|
+
* @default null
|
|
54
|
+
*/
|
|
55
|
+
presetColors?: { [key: string]: string[] };
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Defines whether to show / hide the control buttons (apply / cancel) in the color picker.
|
|
59
|
+
*
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
showButtons?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the value of the color picker.
|
|
66
|
+
* The value should be a valid hex color code.
|
|
67
|
+
*
|
|
68
|
+
* @default '#008000ff'
|
|
69
|
+
*/
|
|
70
|
+
value?: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Event triggers before closing the ColorPicker popup.
|
|
74
|
+
*
|
|
75
|
+
* @event beforeClose
|
|
76
|
+
*/
|
|
77
|
+
beforeClose?: EmitType<BeforeOpenCloseEventArgs>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Event triggers before opening the ColorPicker popup.
|
|
81
|
+
*
|
|
82
|
+
* @event beforeOpen
|
|
83
|
+
*/
|
|
84
|
+
beforeOpen?: EmitType<BeforeOpenCloseEventArgs>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Event triggers while rendering each palette tile.
|
|
88
|
+
*
|
|
89
|
+
* @event beforeTileRender
|
|
90
|
+
*/
|
|
91
|
+
beforeTileRender?: EmitType<PaletteTileEventArgs>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Event triggers once the color picker is created.
|
|
95
|
+
*
|
|
96
|
+
* @event created
|
|
97
|
+
*/
|
|
98
|
+
created?: EmitType<Event>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Event triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
102
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
103
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
104
|
+
*
|
|
105
|
+
* @event change
|
|
106
|
+
*/
|
|
107
|
+
change?: EmitType<ChangeEventArgs>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Event triggers while opening the ColorPicker popup.
|
|
111
|
+
*
|
|
112
|
+
* @event open
|
|
113
|
+
*/
|
|
114
|
+
open?: EmitType<OpenEventArgs>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Event triggers while selecting the color in picker / palette, when showButtons property is enabled.
|
|
118
|
+
*
|
|
119
|
+
* @event select
|
|
120
|
+
*/
|
|
121
|
+
select?: EmitType<ColorPickerEventArgs>;
|
|
122
|
+
|
|
123
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ChildProperty, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ColorPickerMode, ChangeEventArgs, OpenEventArgs, PaletteTileEventArgs, BeforeOpenCloseEventArgs, ColorPickerEventArgs } from '@syncfusion/ej2-inputs';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ribbon color picker.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RibbonColorPickerSettings extends ChildProperty<RibbonColorPickerSettings> {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the number of columns to be rendered in the color picker palette.
|
|
9
|
+
*
|
|
10
|
+
* @default 10
|
|
11
|
+
*/
|
|
12
|
+
columns: number;
|
|
13
|
+
/**
|
|
14
|
+
* Defines one or more CSS classes to customize the appearance of the color picker.
|
|
15
|
+
*
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
cssClass: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines whether to enable the opacity option in the color picker.
|
|
21
|
+
*
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
enableOpacity: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the rendering mode of the color picker.
|
|
27
|
+
*
|
|
28
|
+
* @default 'Picker'
|
|
29
|
+
*/
|
|
30
|
+
mode: ColorPickerMode;
|
|
31
|
+
/**
|
|
32
|
+
* Defines whether to show / hide the mode switcher button in the color picker.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
modeSwitcher: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Defines whether to enable / disable the palette section in the color picker.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
noColor: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Defines the custom colors to load in the color picker palette.
|
|
45
|
+
*
|
|
46
|
+
* @default null
|
|
47
|
+
*/
|
|
48
|
+
presetColors: {
|
|
49
|
+
[key: string]: string[];
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Defines whether to show / hide the control buttons (apply / cancel) in the color picker.
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
showButtons: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the value of the color picker.
|
|
59
|
+
* The value should be a valid hex color code.
|
|
60
|
+
*
|
|
61
|
+
* @default '#008000ff'
|
|
62
|
+
*/
|
|
63
|
+
value: string;
|
|
64
|
+
/**
|
|
65
|
+
* Event triggers before closing the ColorPicker popup.
|
|
66
|
+
*
|
|
67
|
+
* @event beforeClose
|
|
68
|
+
*/
|
|
69
|
+
beforeClose: EmitType<BeforeOpenCloseEventArgs>;
|
|
70
|
+
/**
|
|
71
|
+
* Event triggers before opening the ColorPicker popup.
|
|
72
|
+
*
|
|
73
|
+
* @event beforeOpen
|
|
74
|
+
*/
|
|
75
|
+
beforeOpen: EmitType<BeforeOpenCloseEventArgs>;
|
|
76
|
+
/**
|
|
77
|
+
* Event triggers while rendering each palette tile.
|
|
78
|
+
*
|
|
79
|
+
* @event beforeTileRender
|
|
80
|
+
*/
|
|
81
|
+
beforeTileRender: EmitType<PaletteTileEventArgs>;
|
|
82
|
+
/**
|
|
83
|
+
* Event triggers once the color picker is created.
|
|
84
|
+
*
|
|
85
|
+
* @event created
|
|
86
|
+
*/
|
|
87
|
+
created: EmitType<Event>;
|
|
88
|
+
/**
|
|
89
|
+
* Event triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
90
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
91
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
92
|
+
*
|
|
93
|
+
* @event change
|
|
94
|
+
*/
|
|
95
|
+
change: EmitType<ChangeEventArgs>;
|
|
96
|
+
/**
|
|
97
|
+
* Event triggers while opening the ColorPicker popup.
|
|
98
|
+
*
|
|
99
|
+
* @event open
|
|
100
|
+
*/
|
|
101
|
+
open: EmitType<OpenEventArgs>;
|
|
102
|
+
/**
|
|
103
|
+
* Event triggers while selecting the color in picker / palette, when showButtons property is enabled.
|
|
104
|
+
*
|
|
105
|
+
* @event select
|
|
106
|
+
*/
|
|
107
|
+
select: EmitType<ColorPickerEventArgs>;
|
|
108
|
+
/**
|
|
109
|
+
* @param {Object} prop - Gets the property of colorpicker.
|
|
110
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
111
|
+
* @returns {void}
|
|
112
|
+
* @private
|
|
113
|
+
*/
|
|
114
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
115
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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, Event, Property } from '@syncfusion/ej2-base';
|
|
21
|
+
/**
|
|
22
|
+
* Defines the ribbon color picker.
|
|
23
|
+
*/
|
|
24
|
+
var RibbonColorPickerSettings = /** @class */ (function (_super) {
|
|
25
|
+
__extends(RibbonColorPickerSettings, _super);
|
|
26
|
+
function RibbonColorPickerSettings() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @param {Object} prop - Gets the property of colorpicker.
|
|
31
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
32
|
+
* @returns {void}
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
RibbonColorPickerSettings.prototype.setProperties = function (prop, muteOnChange) {
|
|
36
|
+
_super.prototype.setProperties.call(this, prop, muteOnChange);
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
Property(10)
|
|
40
|
+
], RibbonColorPickerSettings.prototype, "columns", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Property('')
|
|
43
|
+
], RibbonColorPickerSettings.prototype, "cssClass", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Property(true)
|
|
46
|
+
], RibbonColorPickerSettings.prototype, "enableOpacity", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Property('Picker')
|
|
49
|
+
], RibbonColorPickerSettings.prototype, "mode", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Property(true)
|
|
52
|
+
], RibbonColorPickerSettings.prototype, "modeSwitcher", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Property(false)
|
|
55
|
+
], RibbonColorPickerSettings.prototype, "noColor", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Property(null)
|
|
58
|
+
], RibbonColorPickerSettings.prototype, "presetColors", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Property(true)
|
|
61
|
+
], RibbonColorPickerSettings.prototype, "showButtons", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Property('#008000ff')
|
|
64
|
+
], RibbonColorPickerSettings.prototype, "value", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Event()
|
|
67
|
+
], RibbonColorPickerSettings.prototype, "beforeClose", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Event()
|
|
70
|
+
], RibbonColorPickerSettings.prototype, "beforeOpen", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Event()
|
|
73
|
+
], RibbonColorPickerSettings.prototype, "beforeTileRender", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
Event()
|
|
76
|
+
], RibbonColorPickerSettings.prototype, "created", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
Event()
|
|
79
|
+
], RibbonColorPickerSettings.prototype, "change", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
Event()
|
|
82
|
+
], RibbonColorPickerSettings.prototype, "open", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
Event()
|
|
85
|
+
], RibbonColorPickerSettings.prototype, "select", void 0);
|
|
86
|
+
return RibbonColorPickerSettings;
|
|
87
|
+
}(ChildProperty));
|
|
88
|
+
export { RibbonColorPickerSettings };
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property, Complex } from '@syncfusion/ej2-base';import { BeforeOpenEventArgs, ChangeEventArgs, FieldSettings, FieldSettingsModel, FilteringEventArgs, FilterType, PopupEventArgs } from '@syncfusion/ej2-dropdowns';import { SelectEventArgs, SortOrder } from '@syncfusion/ej2-lists';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonComboBoxSettings
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonComboBoxSettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Specifies whether to show the filter bar (search box) of the combobox.
|
|
10
|
+
* The filter action retrieves matched items through the filtering event based on the characters typed in the search TextBox.
|
|
11
|
+
* If no match is found, the value of the noRecordsTemplate property will be displayed.
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
allowFiltering?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies whether to suggest a first matched item in input when searching.
|
|
19
|
+
* No action happens when no matches found.
|
|
20
|
+
*
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
autofill?: boolean;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Defines the CSS class to customize the appearance of the combobox.
|
|
27
|
+
*
|
|
28
|
+
* @default ''
|
|
29
|
+
*/
|
|
30
|
+
cssClass?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Defines the list of items to shown in the combobox.
|
|
34
|
+
*
|
|
35
|
+
* @default []
|
|
36
|
+
*/
|
|
37
|
+
dataSource?: { [key: string]: Object }[] | string[] | number[] | boolean[];
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the mapping for the columns of the data table bind to the combobox.
|
|
41
|
+
* * text - Maps the text column from data table for each list item.
|
|
42
|
+
* * value - Maps the value column from data table for each list item.
|
|
43
|
+
* * iconCss - Maps the icon class column from data table for each list item.
|
|
44
|
+
* * groupBy - Group the list items with it's related items by mapping groupBy field.
|
|
45
|
+
*
|
|
46
|
+
* @default {text: null, value: null, iconCss: null, groupBy: null}
|
|
47
|
+
*/
|
|
48
|
+
fields?: FieldSettingsModel;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Specifies filter type to be considered on search action.
|
|
52
|
+
* The `FilterType` and its supported data types are
|
|
53
|
+
*
|
|
54
|
+
* <table>
|
|
55
|
+
* <tr>
|
|
56
|
+
* <td colSpan=1 rowSpan=1>
|
|
57
|
+
* FilterType<br/></td><td colSpan=1 rowSpan=1>
|
|
58
|
+
* Description<br/></td><td colSpan=1 rowSpan=1>
|
|
59
|
+
* Supported Types<br/></td></tr>
|
|
60
|
+
* <tr>
|
|
61
|
+
* <td colSpan=1 rowSpan=1>
|
|
62
|
+
* StartsWith<br/></td><td colSpan=1 rowSpan=1>
|
|
63
|
+
* Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
|
|
64
|
+
* String<br/></td></tr>
|
|
65
|
+
* <tr>
|
|
66
|
+
* <td colSpan=1 rowSpan=1>
|
|
67
|
+
* EndsWith<br/></td><td colSpan=1 rowSpan=1>
|
|
68
|
+
* Checks whether a value ends with specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
|
|
69
|
+
* <br/>String<br/></td></tr>
|
|
70
|
+
* <tr>
|
|
71
|
+
* <td colSpan=1 rowSpan=1>
|
|
72
|
+
* Contains<br/></td><td colSpan=1 rowSpan=1>
|
|
73
|
+
* Checks whether a value contains with specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
|
|
74
|
+
* <br/>String<br/></td></tr>
|
|
75
|
+
* </table>
|
|
76
|
+
*
|
|
77
|
+
* @default Contains
|
|
78
|
+
*/
|
|
79
|
+
filterType?: FilterType;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the template content for the footer container of the popup list.
|
|
83
|
+
*
|
|
84
|
+
* @default null
|
|
85
|
+
*/
|
|
86
|
+
footerTemplate?: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Specifies the template content for the group headers present in the popup list.
|
|
90
|
+
*
|
|
91
|
+
* @default null
|
|
92
|
+
*/
|
|
93
|
+
groupTemplate?: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the template content for the header container of the popup list.
|
|
97
|
+
*
|
|
98
|
+
* @default null
|
|
99
|
+
*/
|
|
100
|
+
headerTemplate?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Specifies the index of the selected item in the combobox.
|
|
104
|
+
*
|
|
105
|
+
* @default null
|
|
106
|
+
*/
|
|
107
|
+
index?: number;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Specifies the template content for each list item present in the popup.
|
|
111
|
+
*
|
|
112
|
+
* @default null
|
|
113
|
+
*/
|
|
114
|
+
itemTemplate?: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Specifies the template content for the popup list of combobox when no data is available.
|
|
118
|
+
*
|
|
119
|
+
* @default 'No records found'
|
|
120
|
+
*/
|
|
121
|
+
noRecordsTemplate?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Specifies a short hint that describes the expected value of the combobox.
|
|
125
|
+
*
|
|
126
|
+
* @default null
|
|
127
|
+
*/
|
|
128
|
+
placeholder?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Specifies the height of the popup list.
|
|
132
|
+
*
|
|
133
|
+
* @default '300px'
|
|
134
|
+
* @aspType string
|
|
135
|
+
*/
|
|
136
|
+
popupHeight?: string | number;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Specifies the width of the popup list.
|
|
140
|
+
* By default, the popup width sets based on the width of the combobox.
|
|
141
|
+
*
|
|
142
|
+
* @default '100%'
|
|
143
|
+
* @aspType string
|
|
144
|
+
*/
|
|
145
|
+
popupWidth?: string | number;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Specifies whether to show or hide the clear button.
|
|
149
|
+
* When the clear button is clicked, `value`, `text`, and `index` properties are reset to null.
|
|
150
|
+
*
|
|
151
|
+
* @default true
|
|
152
|
+
*/
|
|
153
|
+
showClearButton?: boolean;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Specifies the order in which the data source needs to be sorted. The available type of sort orders are
|
|
157
|
+
* * `None` - The data source is not sorted.
|
|
158
|
+
* * `Ascending` - The data source is sorted in ascending order.
|
|
159
|
+
* * `Descending` - The data source is sorted in descending order.
|
|
160
|
+
*
|
|
161
|
+
* @default null
|
|
162
|
+
* @asptype object
|
|
163
|
+
* @aspjsonconverterignore
|
|
164
|
+
*/
|
|
165
|
+
sortOrder?: SortOrder;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Defines the display text of the selected item in the combobox.
|
|
169
|
+
*
|
|
170
|
+
* @default null
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
text?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Defines the value of the selected item in the combobox.
|
|
177
|
+
*
|
|
178
|
+
* @default null
|
|
179
|
+
* @isGenericType true
|
|
180
|
+
*/
|
|
181
|
+
value?: number | string | boolean;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Specifies the width of the combobox.
|
|
185
|
+
* By default, the combobox width sets based on the width of its parent container.
|
|
186
|
+
*
|
|
187
|
+
* @default '150px'
|
|
188
|
+
* @aspType string
|
|
189
|
+
*/
|
|
190
|
+
width?: string | number;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Event triggers before opening the popup.
|
|
194
|
+
*
|
|
195
|
+
* @event beforeOpen
|
|
196
|
+
*/
|
|
197
|
+
beforeOpen?: EmitType<BeforeOpenEventArgs>;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Event triggers when an item in a popup is selected or when the model value is changed by user.
|
|
201
|
+
*
|
|
202
|
+
* @event change
|
|
203
|
+
*/
|
|
204
|
+
change?: EmitType<ChangeEventArgs>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Event triggers when the popup is closed.
|
|
208
|
+
*
|
|
209
|
+
* @event close
|
|
210
|
+
*/
|
|
211
|
+
close?: EmitType<PopupEventArgs>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Event triggers once the combobox is created.
|
|
215
|
+
*
|
|
216
|
+
* @event created
|
|
217
|
+
*/
|
|
218
|
+
created?: EmitType<Event>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Event triggers on typing a character in the combobox.
|
|
222
|
+
*
|
|
223
|
+
* @event filtering
|
|
224
|
+
*/
|
|
225
|
+
filtering?: EmitType<FilteringEventArgs>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Event triggers when the popup is opened
|
|
229
|
+
*
|
|
230
|
+
* @event open
|
|
231
|
+
*/
|
|
232
|
+
open?: EmitType<PopupEventArgs>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Event triggers when an item in the popup is selected.
|
|
236
|
+
*
|
|
237
|
+
* @event select
|
|
238
|
+
*/
|
|
239
|
+
select?: EmitType<SelectEventArgs>;
|
|
240
|
+
|
|
241
|
+
}
|