@syncfusion/ej2-ribbon 30.2.4 → 31.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-ribbon.umd.min.js +1 -1
- package/dist/global/ej2-ribbon.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/index.d.ts +1 -0
- package/dist/ts/index.ts +3 -0
- package/dist/ts/ribbon/base/constant.d.ts +201 -0
- package/dist/ts/ribbon/base/constant.ts +204 -0
- package/dist/ts/ribbon/base/index.d.ts +8 -0
- package/dist/ts/ribbon/base/index.ts +8 -0
- package/dist/ts/ribbon/base/interface.d.ts +398 -0
- package/dist/ts/ribbon/base/interface.ts +424 -0
- package/dist/ts/ribbon/base/ribbon-model.d.ts +195 -0
- package/dist/ts/ribbon/base/ribbon.d.ts +608 -0
- package/dist/ts/ribbon/base/ribbon.ts +4896 -0
- package/dist/ts/ribbon/base/utils.d.ts +139 -0
- package/dist/ts/ribbon/base/utils.ts +341 -0
- package/dist/ts/ribbon/index.d.ts +7 -0
- package/dist/ts/ribbon/index.ts +7 -0
- package/dist/ts/ribbon/items/index.d.ts +8 -0
- package/dist/ts/ribbon/items/index.ts +8 -0
- package/dist/ts/ribbon/items/ribbon-button.d.ts +64 -0
- package/dist/ts/ribbon/items/ribbon-button.ts +160 -0
- package/dist/ts/ribbon/items/ribbon-checkbox.d.ts +55 -0
- package/dist/ts/ribbon/items/ribbon-checkbox.ts +130 -0
- package/dist/ts/ribbon/items/ribbon-colorpicker.d.ts +72 -0
- package/dist/ts/ribbon/items/ribbon-colorpicker.ts +228 -0
- package/dist/ts/ribbon/items/ribbon-combobox.d.ts +77 -0
- package/dist/ts/ribbon/items/ribbon-combobox.ts +201 -0
- package/dist/ts/ribbon/items/ribbon-dropdown.d.ts +128 -0
- package/dist/ts/ribbon/items/ribbon-dropdown.ts +400 -0
- package/dist/ts/ribbon/items/ribbon-gallery.d.ts +97 -0
- package/dist/ts/ribbon/items/ribbon-gallery.ts +773 -0
- package/dist/ts/ribbon/items/ribbon-groupbutton.d.ts +73 -0
- package/dist/ts/ribbon/items/ribbon-groupbutton.ts +531 -0
- package/dist/ts/ribbon/items/ribbon-splitbutton.d.ts +85 -0
- package/dist/ts/ribbon/items/ribbon-splitbutton.ts +257 -0
- package/dist/ts/ribbon/models/index.d.ts +42 -0
- package/dist/ts/ribbon/models/index.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-back-button-model.d.ts +29 -0
- package/dist/ts/ribbon/models/ribbon-back-button.d.ts +24 -0
- package/dist/ts/ribbon/models/ribbon-back-button.ts +31 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings-model.d.ts +83 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.d.ts +81 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.ts +109 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item-model.d.ts +69 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item.d.ts +80 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item.ts +102 -0
- package/dist/ts/ribbon/models/ribbon-button-settings-model.d.ts +64 -0
- package/dist/ts/ribbon/models/ribbon-button-settings.d.ts +63 -0
- package/dist/ts/ribbon/models/ribbon-button-settings.ts +80 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings-model.d.ts +57 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.d.ts +58 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.ts +74 -0
- package/dist/ts/ribbon/models/ribbon-collection-model.d.ts +30 -0
- package/dist/ts/ribbon/models/ribbon-collection.d.ts +33 -0
- package/dist/ts/ribbon/models/ribbon-collection.ts +45 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings-model.d.ts +137 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.d.ts +129 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.ts +165 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings-model.d.ts +275 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings.d.ts +257 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings.ts +313 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +30 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.d.ts +33 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings-model.d.ts +114 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.d.ts +107 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.ts +139 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings-model.d.ts +123 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.d.ts +173 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.ts +220 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group-model.d.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group.d.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group.ts +50 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item-model.d.ts +43 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item.d.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item.ts +47 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings-model.d.ts +108 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings.d.ts +95 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings.ts +123 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item-model.d.ts +64 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item.d.ts +65 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item.ts +85 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings-model.d.ts +32 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings.d.ts +29 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-group-model.d.ts +112 -0
- package/dist/ts/ribbon/models/ribbon-group.d.ts +105 -0
- package/dist/ts/ribbon/models/ribbon-group.ts +138 -0
- package/dist/ts/ribbon/models/ribbon-item-model.d.ts +144 -0
- package/dist/ts/ribbon/models/ribbon-item.d.ts +141 -0
- package/dist/ts/ribbon/models/ribbon-item.ts +190 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings-model.d.ts +114 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.d.ts +107 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.ts +140 -0
- package/dist/ts/ribbon/models/ribbon-tab-model.d.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-tab.d.ts +45 -0
- package/dist/ts/ribbon/models/ribbon-tab.ts +61 -0
- package/dist/ts/ribbon/models/ribbon-tooltip-model.d.ts +43 -0
- package/dist/ts/ribbon/models/ribbon-tooltip.d.ts +36 -0
- package/dist/ts/ribbon/models/ribbon-tooltip.ts +47 -0
- package/dist/ts/ribbon/modules/index.d.ts +4 -0
- package/dist/ts/ribbon/modules/index.ts +5 -0
- package/dist/ts/ribbon/modules/ribbon-backstage.d.ts +117 -0
- package/dist/ts/ribbon/modules/ribbon-backstage.ts +620 -0
- package/dist/ts/ribbon/modules/ribbon-contextualtab.d.ts +27 -0
- package/dist/ts/ribbon/modules/ribbon-contextualtab.ts +93 -0
- package/dist/ts/ribbon/modules/ribbon-filemenu.d.ts +96 -0
- package/dist/ts/ribbon/modules/ribbon-filemenu.ts +353 -0
- package/dist/ts/ribbon/modules/ribbon-keytip.d.ts +56 -0
- package/dist/ts/ribbon/modules/ribbon-keytip.ts +580 -0
- package/package.json +55 -19
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property } from '@syncfusion/ej2-base';
|
|
2
|
+
import { LabelPosition, ChangeEventArgs } from '@syncfusion/ej2-buttons';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines the ribbon checkbox item.
|
|
6
|
+
*/
|
|
7
|
+
export class RibbonCheckBoxSettings extends ChildProperty<RibbonCheckBoxSettings> {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Defines the whether the checkbox is checked or not.
|
|
11
|
+
*
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
@Property(false)
|
|
15
|
+
public checked: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines one or more CSS classes to customize the appearance of checkbox.
|
|
19
|
+
*
|
|
20
|
+
* @default ''
|
|
21
|
+
*/
|
|
22
|
+
@Property('')
|
|
23
|
+
public cssClass: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Defines the label for the checkbox.
|
|
27
|
+
*
|
|
28
|
+
* @default ''
|
|
29
|
+
*/
|
|
30
|
+
@Property('')
|
|
31
|
+
public label: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Defines whether the label is position `After` or `Before` the checkbox.
|
|
35
|
+
*
|
|
36
|
+
* @default 'After'
|
|
37
|
+
*/
|
|
38
|
+
@Property('After')
|
|
39
|
+
public labelPosition: LabelPosition;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Specifies additional HTML attributes to be applied to the checkbox.
|
|
43
|
+
*
|
|
44
|
+
* @default {}
|
|
45
|
+
*/
|
|
46
|
+
@Property({})
|
|
47
|
+
public htmlAttributes: { [key: string]: string };
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Event triggers once the checkbox is created.
|
|
51
|
+
*
|
|
52
|
+
* @event created
|
|
53
|
+
*/
|
|
54
|
+
@Event()
|
|
55
|
+
public created: EmitType<Event>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Event triggers when the checkbox state is changed.
|
|
59
|
+
*
|
|
60
|
+
* @event change
|
|
61
|
+
*/
|
|
62
|
+
@Event()
|
|
63
|
+
public change: EmitType<ChangeEventArgs>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @param {Object} prop - Gets the property of checkbox.
|
|
67
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
68
|
+
* @returns {void}
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
72
|
+
super.setProperties(prop, muteOnChange);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChildProperty, Collection, Property } from '@syncfusion/ej2-base';import { RibbonItem } from './ribbon-item';import { RibbonItemModel } from './ribbon-item-model';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonCollection
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonCollectionModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines a unique identifier for the collection.
|
|
10
|
+
*
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Defines one or more CSS classes to customize the appearance of collection.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
cssClass?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines the list of ribbon items.
|
|
24
|
+
*
|
|
25
|
+
* @default []
|
|
26
|
+
* @aspType List<RibbonItem>
|
|
27
|
+
*/
|
|
28
|
+
items?: RibbonItemModel[];
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
import { RibbonItemModel } from './ribbon-item-model';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the items of Ribbon.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RibbonCollection extends ChildProperty<RibbonCollection> {
|
|
7
|
+
/**
|
|
8
|
+
* Defines a unique identifier for the collection.
|
|
9
|
+
*
|
|
10
|
+
* @default ''
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Defines one or more CSS classes to customize the appearance of collection.
|
|
15
|
+
*
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
cssClass: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the list of ribbon items.
|
|
21
|
+
*
|
|
22
|
+
* @default []
|
|
23
|
+
* @aspType List<RibbonItem>
|
|
24
|
+
*/
|
|
25
|
+
items: RibbonItemModel[];
|
|
26
|
+
/**
|
|
27
|
+
* @param {Object} prop - Gets the property of collection.
|
|
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,45 @@
|
|
|
1
|
+
import { ChildProperty, Collection, Property } from '@syncfusion/ej2-base';
|
|
2
|
+
import { RibbonItem } from './ribbon-item';
|
|
3
|
+
import { RibbonItemModel } from './ribbon-item-model';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Defines the items of Ribbon.
|
|
7
|
+
*/
|
|
8
|
+
export class RibbonCollection extends ChildProperty<RibbonCollection> {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines a unique identifier for the collection.
|
|
12
|
+
*
|
|
13
|
+
* @default ''
|
|
14
|
+
*/
|
|
15
|
+
@Property('')
|
|
16
|
+
public id: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Defines one or more CSS classes to customize the appearance of collection.
|
|
20
|
+
*
|
|
21
|
+
* @default ''
|
|
22
|
+
*/
|
|
23
|
+
@Property('')
|
|
24
|
+
public cssClass: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Defines the list of ribbon items.
|
|
28
|
+
*
|
|
29
|
+
* @default []
|
|
30
|
+
* @aspType List<RibbonItem>
|
|
31
|
+
*/
|
|
32
|
+
@Collection<RibbonItemModel>([], RibbonItem)
|
|
33
|
+
public items: RibbonItemModel[];
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @param {Object} prop - Gets the property of collection.
|
|
37
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
38
|
+
* @returns {void}
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
42
|
+
super.setProperties(prop, muteOnChange);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
* Specifies the label text for the overflow item.
|
|
24
|
+
*
|
|
25
|
+
* @default ''
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines whether to enable the opacity option in the color picker.
|
|
31
|
+
*
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
enableOpacity?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Defines the rendering mode of the color picker.
|
|
38
|
+
*
|
|
39
|
+
* @default 'Palette'
|
|
40
|
+
*/
|
|
41
|
+
mode?: ColorPickerMode;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Defines whether to show / hide the mode switcher button in the color picker.
|
|
45
|
+
*
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
modeSwitcher?: boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Defines whether to enable / disable the palette section in the color picker.
|
|
52
|
+
*
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
noColor?: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Defines the custom colors to load in the color picker palette.
|
|
59
|
+
*
|
|
60
|
+
* @default null
|
|
61
|
+
*/
|
|
62
|
+
presetColors?: { [key: string]: string[] };
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Defines whether to show / hide the control buttons (apply / cancel) in the color picker.
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
showButtons?: boolean;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Specifies the value of the color picker.
|
|
73
|
+
* The value should be a valid hex color code.
|
|
74
|
+
*
|
|
75
|
+
* @default '#008000ff'
|
|
76
|
+
*/
|
|
77
|
+
value?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Specifies additional HTML attributes to be applied to the color picker.
|
|
81
|
+
*
|
|
82
|
+
* @default {}
|
|
83
|
+
*/
|
|
84
|
+
htmlAttributes?: { [key: string]: string };
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Event triggers before closing the ColorPicker popup.
|
|
88
|
+
*
|
|
89
|
+
* @event beforeClose
|
|
90
|
+
*/
|
|
91
|
+
beforeClose?: EmitType<BeforeOpenCloseEventArgs>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Event triggers before opening the ColorPicker popup.
|
|
95
|
+
*
|
|
96
|
+
* @event beforeOpen
|
|
97
|
+
*/
|
|
98
|
+
beforeOpen?: EmitType<BeforeOpenCloseEventArgs>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Event triggers while rendering each palette tile.
|
|
102
|
+
*
|
|
103
|
+
* @event beforeTileRender
|
|
104
|
+
*/
|
|
105
|
+
beforeTileRender?: EmitType<PaletteTileEventArgs>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Event triggers once the color picker is created.
|
|
109
|
+
*
|
|
110
|
+
* @event created
|
|
111
|
+
*/
|
|
112
|
+
created?: EmitType<Event>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Event triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
116
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
117
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
118
|
+
*
|
|
119
|
+
* @event change
|
|
120
|
+
*/
|
|
121
|
+
change?: EmitType<ChangeEventArgs>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Event triggers while opening the ColorPicker popup.
|
|
125
|
+
*
|
|
126
|
+
* @event open
|
|
127
|
+
*/
|
|
128
|
+
open?: EmitType<OpenEventArgs>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Event triggers while selecting the color in picker / palette, when showButtons property is enabled.
|
|
132
|
+
*
|
|
133
|
+
* @event select
|
|
134
|
+
*/
|
|
135
|
+
select?: EmitType<ColorPickerEventArgs>;
|
|
136
|
+
|
|
137
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
* Specifies the label text for the overflow item.
|
|
21
|
+
*
|
|
22
|
+
* @default ''
|
|
23
|
+
*/
|
|
24
|
+
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines whether to enable the opacity option in the color picker.
|
|
27
|
+
*
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
enableOpacity: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the rendering mode of the color picker.
|
|
33
|
+
*
|
|
34
|
+
* @default 'Palette'
|
|
35
|
+
*/
|
|
36
|
+
mode: ColorPickerMode;
|
|
37
|
+
/**
|
|
38
|
+
* Defines whether to show / hide the mode switcher button in the color picker.
|
|
39
|
+
*
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
modeSwitcher: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Defines whether to enable / disable the palette section in the color picker.
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
noColor: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the custom colors to load in the color picker palette.
|
|
51
|
+
*
|
|
52
|
+
* @default null
|
|
53
|
+
*/
|
|
54
|
+
presetColors: {
|
|
55
|
+
[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
|
+
* Specifies the value of the color picker.
|
|
65
|
+
* The value should be a valid hex color code.
|
|
66
|
+
*
|
|
67
|
+
* @default '#008000ff'
|
|
68
|
+
*/
|
|
69
|
+
value: string;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies additional HTML attributes to be applied to the color picker.
|
|
72
|
+
*
|
|
73
|
+
* @default {}
|
|
74
|
+
*/
|
|
75
|
+
htmlAttributes: {
|
|
76
|
+
[key: string]: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Event triggers before closing the ColorPicker popup.
|
|
80
|
+
*
|
|
81
|
+
* @event beforeClose
|
|
82
|
+
*/
|
|
83
|
+
beforeClose: EmitType<BeforeOpenCloseEventArgs>;
|
|
84
|
+
/**
|
|
85
|
+
* Event triggers before opening the ColorPicker popup.
|
|
86
|
+
*
|
|
87
|
+
* @event beforeOpen
|
|
88
|
+
*/
|
|
89
|
+
beforeOpen: EmitType<BeforeOpenCloseEventArgs>;
|
|
90
|
+
/**
|
|
91
|
+
* Event triggers while rendering each palette tile.
|
|
92
|
+
*
|
|
93
|
+
* @event beforeTileRender
|
|
94
|
+
*/
|
|
95
|
+
beforeTileRender: EmitType<PaletteTileEventArgs>;
|
|
96
|
+
/**
|
|
97
|
+
* Event triggers once the color picker is created.
|
|
98
|
+
*
|
|
99
|
+
* @event created
|
|
100
|
+
*/
|
|
101
|
+
created: EmitType<Event>;
|
|
102
|
+
/**
|
|
103
|
+
* Event triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
104
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
105
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
106
|
+
*
|
|
107
|
+
* @event change
|
|
108
|
+
*/
|
|
109
|
+
change: EmitType<ChangeEventArgs>;
|
|
110
|
+
/**
|
|
111
|
+
* Event triggers while opening the ColorPicker popup.
|
|
112
|
+
*
|
|
113
|
+
* @event open
|
|
114
|
+
*/
|
|
115
|
+
open: EmitType<OpenEventArgs>;
|
|
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
|
+
* @param {Object} prop - Gets the property of colorpicker.
|
|
124
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
125
|
+
* @returns {void}
|
|
126
|
+
* @private
|
|
127
|
+
*/
|
|
128
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
129
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ColorPickerMode, ChangeEventArgs, OpenEventArgs, PaletteTileEventArgs, BeforeOpenCloseEventArgs, ColorPickerEventArgs } from '@syncfusion/ej2-inputs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines the ribbon color picker.
|
|
6
|
+
*/
|
|
7
|
+
export class RibbonColorPickerSettings extends ChildProperty<RibbonColorPickerSettings> {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Defines the number of columns to be rendered in the color picker palette.
|
|
11
|
+
*
|
|
12
|
+
* @default 10
|
|
13
|
+
*/
|
|
14
|
+
@Property(10)
|
|
15
|
+
public columns: number;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines one or more CSS classes to customize the appearance of the color picker.
|
|
19
|
+
*
|
|
20
|
+
* @default ''
|
|
21
|
+
*/
|
|
22
|
+
@Property('')
|
|
23
|
+
public cssClass: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the label text for the overflow item.
|
|
27
|
+
*
|
|
28
|
+
* @default ''
|
|
29
|
+
*/
|
|
30
|
+
@Property('')
|
|
31
|
+
public label: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Defines whether to enable the opacity option in the color picker.
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
@Property(true)
|
|
39
|
+
public enableOpacity: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Defines the rendering mode of the color picker.
|
|
43
|
+
*
|
|
44
|
+
* @default 'Palette'
|
|
45
|
+
*/
|
|
46
|
+
@Property('Palette')
|
|
47
|
+
public mode: ColorPickerMode;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Defines whether to show / hide the mode switcher button in the color picker.
|
|
51
|
+
*
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
@Property(true)
|
|
55
|
+
public modeSwitcher: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Defines whether to enable / disable the palette section in the color picker.
|
|
59
|
+
*
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
@Property(false)
|
|
63
|
+
public noColor: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Defines the custom colors to load in the color picker palette.
|
|
67
|
+
*
|
|
68
|
+
* @default null
|
|
69
|
+
*/
|
|
70
|
+
@Property(null)
|
|
71
|
+
public presetColors: { [key: string]: string[] };
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Defines whether to show / hide the control buttons (apply / cancel) in the color picker.
|
|
75
|
+
*
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
@Property(true)
|
|
79
|
+
public showButtons: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the value of the color picker.
|
|
83
|
+
* The value should be a valid hex color code.
|
|
84
|
+
*
|
|
85
|
+
* @default '#008000ff'
|
|
86
|
+
*/
|
|
87
|
+
@Property('#008000ff')
|
|
88
|
+
public value: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Specifies additional HTML attributes to be applied to the color picker.
|
|
92
|
+
*
|
|
93
|
+
* @default {}
|
|
94
|
+
*/
|
|
95
|
+
@Property({})
|
|
96
|
+
public htmlAttributes: { [key: string]: string };
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Event triggers before closing the ColorPicker popup.
|
|
100
|
+
*
|
|
101
|
+
* @event beforeClose
|
|
102
|
+
*/
|
|
103
|
+
@Event()
|
|
104
|
+
public beforeClose: EmitType<BeforeOpenCloseEventArgs>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Event triggers before opening the ColorPicker popup.
|
|
108
|
+
*
|
|
109
|
+
* @event beforeOpen
|
|
110
|
+
*/
|
|
111
|
+
@Event()
|
|
112
|
+
public beforeOpen: EmitType<BeforeOpenCloseEventArgs>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Event triggers while rendering each palette tile.
|
|
116
|
+
*
|
|
117
|
+
* @event beforeTileRender
|
|
118
|
+
*/
|
|
119
|
+
@Event()
|
|
120
|
+
public beforeTileRender: EmitType<PaletteTileEventArgs>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Event triggers once the color picker is created.
|
|
124
|
+
*
|
|
125
|
+
* @event created
|
|
126
|
+
*/
|
|
127
|
+
@Event()
|
|
128
|
+
public created: EmitType<Event>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Event triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
132
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
133
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
134
|
+
*
|
|
135
|
+
* @event change
|
|
136
|
+
*/
|
|
137
|
+
@Event()
|
|
138
|
+
public change: EmitType<ChangeEventArgs>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Event triggers while opening the ColorPicker popup.
|
|
142
|
+
*
|
|
143
|
+
* @event open
|
|
144
|
+
*/
|
|
145
|
+
@Event()
|
|
146
|
+
public open: EmitType<OpenEventArgs>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Event triggers while selecting the color in picker / palette, when showButtons property is enabled.
|
|
150
|
+
*
|
|
151
|
+
* @event select
|
|
152
|
+
*/
|
|
153
|
+
@Event()
|
|
154
|
+
public select: EmitType<ColorPickerEventArgs>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param {Object} prop - Gets the property of colorpicker.
|
|
158
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
159
|
+
* @returns {void}
|
|
160
|
+
* @private
|
|
161
|
+
*/
|
|
162
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
163
|
+
super.setProperties(prop, muteOnChange);
|
|
164
|
+
}
|
|
165
|
+
}
|