@syncfusion/ej2-inputs 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-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +1 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +1 -1
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/color-picker/color-picker-model.d.ts +186 -0
- package/dist/ts/color-picker/color-picker.d.ts +398 -0
- package/dist/ts/color-picker/color-picker.ts +2209 -0
- package/dist/ts/color-picker/index.d.ts +5 -0
- package/dist/ts/color-picker/index.ts +5 -0
- package/dist/ts/common/index.d.ts +4 -0
- package/dist/ts/common/index.ts +4 -0
- package/dist/ts/common/signature-base.d.ts +340 -0
- package/dist/ts/common/signature-base.ts +1170 -0
- package/dist/ts/form-validator/form-validator-model.d.ts +121 -0
- package/dist/ts/form-validator/form-validator.d.ts +312 -0
- package/dist/ts/form-validator/form-validator.ts +1068 -0
- package/dist/ts/form-validator/index.d.ts +5 -0
- package/dist/ts/form-validator/index.ts +5 -0
- package/dist/ts/index.d.ts +18 -0
- package/dist/ts/index.ts +18 -0
- package/dist/ts/input/index.d.ts +4 -0
- package/dist/ts/input/index.ts +4 -0
- package/dist/ts/input/input.d.ts +345 -0
- package/dist/ts/input/input.ts +1277 -0
- package/dist/ts/maskedtextbox/base/index.d.ts +4 -0
- package/dist/ts/maskedtextbox/base/index.ts +4 -0
- package/dist/ts/maskedtextbox/base/mask-base.d.ts +134 -0
- package/dist/ts/maskedtextbox/base/mask-base.ts +1207 -0
- package/dist/ts/maskedtextbox/index.d.ts +5 -0
- package/dist/ts/maskedtextbox/index.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/index.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +167 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +307 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +709 -0
- package/dist/ts/numerictextbox/index.d.ts +5 -0
- package/dist/ts/numerictextbox/index.ts +5 -0
- package/dist/ts/numerictextbox/numerictextbox-model.d.ts +228 -0
- package/dist/ts/numerictextbox/numerictextbox.d.ts +431 -0
- package/dist/ts/numerictextbox/numerictextbox.ts +1672 -0
- package/dist/ts/otp-input/index.d.ts +5 -0
- package/dist/ts/otp-input/index.ts +5 -0
- package/dist/ts/otp-input/otp-input-model.d.ts +165 -0
- package/dist/ts/otp-input/otp-input.d.ts +365 -0
- package/dist/ts/otp-input/otp-input.ts +924 -0
- package/dist/ts/rating/index.d.ts +5 -0
- package/dist/ts/rating/index.ts +5 -0
- package/dist/ts/rating/rating-model.d.ts +239 -0
- package/dist/ts/rating/rating.d.ts +416 -0
- package/dist/ts/rating/rating.ts +1101 -0
- package/dist/ts/signature/index.d.ts +5 -0
- package/dist/ts/signature/index.ts +5 -0
- package/dist/ts/signature/signature-model.d.ts +131 -0
- package/dist/ts/signature/signature.d.ts +167 -0
- package/dist/ts/signature/signature.ts +266 -0
- package/dist/ts/slider/index.d.ts +5 -0
- package/dist/ts/slider/index.ts +5 -0
- package/dist/ts/slider/slider-model.d.ts +401 -0
- package/dist/ts/slider/slider.d.ts +721 -0
- package/dist/ts/slider/slider.ts +3497 -0
- package/dist/ts/smart-textarea/caret-helper.d.ts +17 -0
- package/dist/ts/smart-textarea/caret-helper.ts +95 -0
- package/dist/ts/smart-textarea/index.d.ts +5 -0
- package/dist/ts/smart-textarea/index.ts +5 -0
- package/dist/ts/smart-textarea/smart-textarea-model.d.ts +44 -0
- package/dist/ts/smart-textarea/smart-textarea.d.ts +80 -0
- package/dist/ts/smart-textarea/smart-textarea.ts +518 -0
- package/dist/ts/speech-to-text/index.d.ts +5 -0
- package/dist/ts/speech-to-text/index.ts +5 -0
- package/dist/ts/speech-to-text/speech-to-text-model.d.ts +270 -0
- package/dist/ts/speech-to-text/speech-to-text.d.ts +487 -0
- package/dist/ts/speech-to-text/speech-to-text.ts +1008 -0
- package/dist/ts/textarea/index.d.ts +5 -0
- package/dist/ts/textarea/index.ts +5 -0
- package/dist/ts/textarea/textarea-model.d.ts +161 -0
- package/dist/ts/textarea/textarea.d.ts +237 -0
- package/dist/ts/textarea/textarea.ts +812 -0
- package/dist/ts/textbox/index.d.ts +5 -0
- package/dist/ts/textbox/index.ts +5 -0
- package/dist/ts/textbox/textbox-model.d.ts +155 -0
- package/dist/ts/textbox/textbox.d.ts +288 -0
- package/dist/ts/textbox/textbox.ts +872 -0
- package/dist/ts/uploader/index.d.ts +5 -0
- package/dist/ts/uploader/index.ts +5 -0
- package/dist/ts/uploader/uploader-model.d.ts +555 -0
- package/dist/ts/uploader/uploader.d.ts +1216 -0
- package/dist/ts/uploader/uploader.ts +4391 -0
- package/package.json +62 -12
- package/src/input/input.js +1 -1
- package/styles/bootstrap5.3-lite.css +3 -3
- package/styles/bootstrap5.3.css +5 -5
- package/styles/input/_layout.scss +0 -1
- package/styles/input/tailwind3.css +0 -1
- package/styles/tailwind-dark-lite.css +3 -3
- package/styles/tailwind-dark.css +5 -5
- package/styles/tailwind-lite.css +3 -3
- package/styles/tailwind.css +5 -5
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/uploader/_bootstrap5.3-definition.scss +1 -1
- package/styles/uploader/_tailwind-definition.scss +1 -1
- package/styles/uploader/bootstrap5.3.css +5 -5
- package/styles/uploader/tailwind-dark.css +5 -5
- package/styles/uploader/tailwind.css +5 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 31.1.17
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { BaseEventArgs, Component, EmitType, Event, INotifyPropertyChanged, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';import { Browser, closest, detach, EventHandler, getInstance, select, selectAll, formatUnit } from '@syncfusion/ej2-base';import { addClass, attributes, classList, isNullOrUndefined, L10n } from '@syncfusion/ej2-base';import { remove, removeClass, rippleEffect } from '@syncfusion/ej2-base';import { SplitButton, BeforeOpenCloseMenuEventArgs, getModel } from '@syncfusion/ej2-splitbuttons';import { Deferred } from '@syncfusion/ej2-splitbuttons';import { Tooltip, TooltipEventArgs, getZindexPartial, Popup, isCollide } from '@syncfusion/ej2-popups';import { Input } from './../input/index';import { NumericTextBox, NumericTextBoxModel, ChangeEventArgs } from './../numerictextbox/index';import { Slider, SliderChangeEventArgs } from './../slider/slider';
|
|
2
|
+
import {ColorPickerMode,ColorPickerEventArgs,PaletteTileEventArgs,BeforeOpenCloseEventArgs,OpenEventArgs,ModeSwitchEventArgs} from "./color-picker";
|
|
3
|
+
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for a class ColorPicker
|
|
7
|
+
*/
|
|
8
|
+
export interface ColorPickerModel extends ComponentModel{
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* It is used to set the color value for ColorPicker. It should be specified as Hex code.
|
|
12
|
+
*
|
|
13
|
+
* @default '#008000ff'
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* This property sets the CSS classes to root element of the ColorPicker
|
|
19
|
+
* which helps to customize the UI styles.
|
|
20
|
+
*
|
|
21
|
+
* @default ''
|
|
22
|
+
*/
|
|
23
|
+
cssClass?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* It is used to enable / disable ColorPicker component. If it is disabled the ColorPicker popup won’t open.
|
|
27
|
+
*
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* It is used to render the ColorPicker with the specified mode.
|
|
34
|
+
*
|
|
35
|
+
* @default 'Picker'
|
|
36
|
+
*/
|
|
37
|
+
mode?: ColorPickerMode;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* It is used to show / hide the mode switcher button of ColorPicker component.
|
|
41
|
+
*
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
modeSwitcher?: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* It is used to load custom colors to palette.
|
|
48
|
+
*
|
|
49
|
+
* @default null
|
|
50
|
+
*/
|
|
51
|
+
presetColors?: { [key: string]: string[] };
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* It is used to show / hide the control buttons (apply / cancel) of ColorPicker component.
|
|
55
|
+
*
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
showButtons?: boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* It is used to render the ColorPicker palette with specified columns.
|
|
62
|
+
*
|
|
63
|
+
* @default 10
|
|
64
|
+
*/
|
|
65
|
+
columns?: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* It is used to render the ColorPicker component as inline.
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
inline?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* It is used to enable / disable the no color option of ColorPicker component.
|
|
76
|
+
*
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
noColor?: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* To enable or disable persisting component's state between page reloads and it is extended from component class.
|
|
83
|
+
*
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
enablePersistence?: boolean;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* It is used to enable / disable the opacity option of ColorPicker component.
|
|
90
|
+
*
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
enableOpacity?: boolean;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the popup element creation on open.
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
createPopupOnClick?: boolean;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Specifies to show the recent color options in the color picker in the palate mode.
|
|
104
|
+
* It accepts boolean value to configure recent colors. The default value is false.
|
|
105
|
+
* If this property value is false, then the recent color user interface is not rendered in color picker component.
|
|
106
|
+
* This recent color option is rendered only in the palette mode.
|
|
107
|
+
*
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
showRecentColors?: boolean;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Triggers while selecting the color in picker / palette, when showButtons property is enabled.
|
|
114
|
+
*
|
|
115
|
+
* @event select
|
|
116
|
+
* @blazorProperty 'Selected'
|
|
117
|
+
*/
|
|
118
|
+
select?: EmitType<ColorPickerEventArgs>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
122
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
123
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
124
|
+
*
|
|
125
|
+
* @event change
|
|
126
|
+
* @blazorProperty 'ValueChange'
|
|
127
|
+
*/
|
|
128
|
+
change?: EmitType<ColorPickerEventArgs>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Trigger while rendering each palette tile.
|
|
132
|
+
*
|
|
133
|
+
* @event beforeTileRender
|
|
134
|
+
* @blazorProperty 'OnTileRender'
|
|
135
|
+
*/
|
|
136
|
+
beforeTileRender?: EmitType<PaletteTileEventArgs>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Triggers before opening the ColorPicker popup.
|
|
140
|
+
*
|
|
141
|
+
* @event beforeOpen
|
|
142
|
+
* @blazorProperty 'OnOpen'
|
|
143
|
+
*/
|
|
144
|
+
beforeOpen?: EmitType<BeforeOpenCloseEventArgs>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Triggers while opening the ColorPicker popup.
|
|
148
|
+
*
|
|
149
|
+
* @event open
|
|
150
|
+
* @blazorProperty 'Opened'
|
|
151
|
+
*/
|
|
152
|
+
open?: EmitType<OpenEventArgs>;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Triggers before closing the ColorPicker popup.
|
|
156
|
+
*
|
|
157
|
+
* @event beforeClose
|
|
158
|
+
* @blazorProperty 'OnClose'
|
|
159
|
+
*/
|
|
160
|
+
beforeClose?: EmitType<BeforeOpenCloseEventArgs>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Triggers before Switching between ColorPicker mode.
|
|
164
|
+
*
|
|
165
|
+
* @event beforeModeSwitch
|
|
166
|
+
* @blazorProperty 'OnModeSwitch'
|
|
167
|
+
*/
|
|
168
|
+
beforeModeSwitch?: EmitType<ModeSwitchEventArgs>;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Triggers after Switching between ColorPicker mode.
|
|
172
|
+
*
|
|
173
|
+
* @event onModeSwitch
|
|
174
|
+
* @blazorProperty 'ModeSwitched'
|
|
175
|
+
*/
|
|
176
|
+
onModeSwitch?: EmitType<ModeSwitchEventArgs>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Triggers once the component rendering is completed.
|
|
180
|
+
*
|
|
181
|
+
* @event created
|
|
182
|
+
* @blazorProperty 'Created'
|
|
183
|
+
*/
|
|
184
|
+
created?: EmitType<Event>;
|
|
185
|
+
|
|
186
|
+
}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { BaseEventArgs, Component, EmitType, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ColorPickerModel } from './color-picker-model';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ColorPicker Mode
|
|
5
|
+
* ```props
|
|
6
|
+
* Picker :- Specifies that the ColorPicker component should be rendered with the picker mode.
|
|
7
|
+
* Palette :- Specifies that the ColorPicker component should be rendered with the palette mode.
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare type ColorPickerMode = 'Picker' | 'Palette';
|
|
11
|
+
/**
|
|
12
|
+
* ColorPicker component is a user interface to select and adjust color values. It provides supports for various
|
|
13
|
+
* color specification like Red Green Blue, Hue Saturation Value and Hex codes.
|
|
14
|
+
* ```html
|
|
15
|
+
* <input type="color" id="color-picker">
|
|
16
|
+
* ```
|
|
17
|
+
* ```typescript
|
|
18
|
+
* <script>
|
|
19
|
+
* let colorPickerObj: ColorPicker = new ColorPicker(null , "#color-picker");
|
|
20
|
+
* </script>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class ColorPicker extends Component<HTMLInputElement> implements INotifyPropertyChanged {
|
|
24
|
+
private splitBtn;
|
|
25
|
+
private hueSlider;
|
|
26
|
+
private opacitySlider;
|
|
27
|
+
private tooltipEle;
|
|
28
|
+
private container;
|
|
29
|
+
private modal;
|
|
30
|
+
private isRgb;
|
|
31
|
+
private l10n;
|
|
32
|
+
private tileRipple;
|
|
33
|
+
private ctrlBtnRipple;
|
|
34
|
+
private clientX;
|
|
35
|
+
private clientY;
|
|
36
|
+
private rgb;
|
|
37
|
+
private hsv;
|
|
38
|
+
private formElement;
|
|
39
|
+
private initialInputValue;
|
|
40
|
+
private recentColors;
|
|
41
|
+
/**
|
|
42
|
+
* It is used to set the color value for ColorPicker. It should be specified as Hex code.
|
|
43
|
+
*
|
|
44
|
+
* @default '#008000ff'
|
|
45
|
+
*/
|
|
46
|
+
value: string;
|
|
47
|
+
/**
|
|
48
|
+
* This property sets the CSS classes to root element of the ColorPicker
|
|
49
|
+
* which helps to customize the UI styles.
|
|
50
|
+
*
|
|
51
|
+
* @default ''
|
|
52
|
+
*/
|
|
53
|
+
cssClass: string;
|
|
54
|
+
/**
|
|
55
|
+
* It is used to enable / disable ColorPicker component. If it is disabled the ColorPicker popup won’t open.
|
|
56
|
+
*
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* It is used to render the ColorPicker with the specified mode.
|
|
62
|
+
*
|
|
63
|
+
* @default 'Picker'
|
|
64
|
+
*/
|
|
65
|
+
mode: ColorPickerMode;
|
|
66
|
+
/**
|
|
67
|
+
* It is used to show / hide the mode switcher button of ColorPicker component.
|
|
68
|
+
*
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
modeSwitcher: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* It is used to load custom colors to palette.
|
|
74
|
+
*
|
|
75
|
+
* @default null
|
|
76
|
+
*/
|
|
77
|
+
presetColors: {
|
|
78
|
+
[key: string]: string[];
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* It is used to show / hide the control buttons (apply / cancel) of ColorPicker component.
|
|
82
|
+
*
|
|
83
|
+
* @default true
|
|
84
|
+
*/
|
|
85
|
+
showButtons: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* It is used to render the ColorPicker palette with specified columns.
|
|
88
|
+
*
|
|
89
|
+
* @default 10
|
|
90
|
+
*/
|
|
91
|
+
columns: number;
|
|
92
|
+
/**
|
|
93
|
+
* It is used to render the ColorPicker component as inline.
|
|
94
|
+
*
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
inline: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* It is used to enable / disable the no color option of ColorPicker component.
|
|
100
|
+
*
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
noColor: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* To enable or disable persisting component's state between page reloads and it is extended from component class.
|
|
106
|
+
*
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
enablePersistence: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* It is used to enable / disable the opacity option of ColorPicker component.
|
|
112
|
+
*
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
enableOpacity: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Specifies the popup element creation on open.
|
|
118
|
+
*
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
createPopupOnClick: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Specifies to show the recent color options in the color picker in the palate mode.
|
|
124
|
+
* It accepts boolean value to configure recent colors. The default value is false.
|
|
125
|
+
* If this property value is false, then the recent color user interface is not rendered in color picker component.
|
|
126
|
+
* This recent color option is rendered only in the palette mode.
|
|
127
|
+
*
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
showRecentColors: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Triggers while selecting the color in picker / palette, when showButtons property is enabled.
|
|
133
|
+
*
|
|
134
|
+
* @event select
|
|
135
|
+
* @blazorProperty 'Selected'
|
|
136
|
+
*/
|
|
137
|
+
select: EmitType<ColorPickerEventArgs>;
|
|
138
|
+
/**
|
|
139
|
+
* Triggers while changing the colors. It will be triggered based on the showButtons property.
|
|
140
|
+
* If the property is false, the event will be triggered while selecting the colors.
|
|
141
|
+
* If the property is true, the event will be triggered while apply the selected color.
|
|
142
|
+
*
|
|
143
|
+
* @event change
|
|
144
|
+
* @blazorProperty 'ValueChange'
|
|
145
|
+
*/
|
|
146
|
+
change: EmitType<ColorPickerEventArgs>;
|
|
147
|
+
/**
|
|
148
|
+
* Trigger while rendering each palette tile.
|
|
149
|
+
*
|
|
150
|
+
* @event beforeTileRender
|
|
151
|
+
* @blazorProperty 'OnTileRender'
|
|
152
|
+
*/
|
|
153
|
+
beforeTileRender: EmitType<PaletteTileEventArgs>;
|
|
154
|
+
/**
|
|
155
|
+
* Triggers before opening the ColorPicker popup.
|
|
156
|
+
*
|
|
157
|
+
* @event beforeOpen
|
|
158
|
+
* @blazorProperty 'OnOpen'
|
|
159
|
+
*/
|
|
160
|
+
beforeOpen: EmitType<BeforeOpenCloseEventArgs>;
|
|
161
|
+
/**
|
|
162
|
+
* Triggers while opening the ColorPicker popup.
|
|
163
|
+
*
|
|
164
|
+
* @event open
|
|
165
|
+
* @blazorProperty 'Opened'
|
|
166
|
+
*/
|
|
167
|
+
open: EmitType<OpenEventArgs>;
|
|
168
|
+
/**
|
|
169
|
+
* Triggers before closing the ColorPicker popup.
|
|
170
|
+
*
|
|
171
|
+
* @event beforeClose
|
|
172
|
+
* @blazorProperty 'OnClose'
|
|
173
|
+
*/
|
|
174
|
+
beforeClose: EmitType<BeforeOpenCloseEventArgs>;
|
|
175
|
+
/**
|
|
176
|
+
* Triggers before Switching between ColorPicker mode.
|
|
177
|
+
*
|
|
178
|
+
* @event beforeModeSwitch
|
|
179
|
+
* @blazorProperty 'OnModeSwitch'
|
|
180
|
+
*/
|
|
181
|
+
beforeModeSwitch: EmitType<ModeSwitchEventArgs>;
|
|
182
|
+
/**
|
|
183
|
+
* Triggers after Switching between ColorPicker mode.
|
|
184
|
+
*
|
|
185
|
+
* @event onModeSwitch
|
|
186
|
+
* @blazorProperty 'ModeSwitched'
|
|
187
|
+
*/
|
|
188
|
+
onModeSwitch: EmitType<ModeSwitchEventArgs>;
|
|
189
|
+
/**
|
|
190
|
+
* Triggers once the component rendering is completed.
|
|
191
|
+
*
|
|
192
|
+
* @event created
|
|
193
|
+
* @blazorProperty 'Created'
|
|
194
|
+
*/
|
|
195
|
+
created: EmitType<Event>;
|
|
196
|
+
constructor(options?: ColorPickerModel, element?: string | HTMLInputElement);
|
|
197
|
+
protected preRender(): void;
|
|
198
|
+
/**
|
|
199
|
+
* To Initialize the component rendering
|
|
200
|
+
*
|
|
201
|
+
* @private
|
|
202
|
+
* @returns {void}
|
|
203
|
+
*/
|
|
204
|
+
render(): void;
|
|
205
|
+
private initWrapper;
|
|
206
|
+
private getWrapper;
|
|
207
|
+
private createWidget;
|
|
208
|
+
private createSplitBtn;
|
|
209
|
+
private onOpen;
|
|
210
|
+
private getPopupInst;
|
|
211
|
+
private bindCallBackEvent;
|
|
212
|
+
private onPopupClose;
|
|
213
|
+
private createPalette;
|
|
214
|
+
private renderRecentColor;
|
|
215
|
+
private firstPaletteFocus;
|
|
216
|
+
private appendPalette;
|
|
217
|
+
private setNoColor;
|
|
218
|
+
private appendElement;
|
|
219
|
+
private addTileSelection;
|
|
220
|
+
private createPicker;
|
|
221
|
+
private setHsvContainerBg;
|
|
222
|
+
private getHsvContainer;
|
|
223
|
+
private setHandlerPosition;
|
|
224
|
+
private createSlider;
|
|
225
|
+
private createOpacitySlider;
|
|
226
|
+
private updateOpacitySliderBg;
|
|
227
|
+
private hueChange;
|
|
228
|
+
private opacityChange;
|
|
229
|
+
private updateOpacityInput;
|
|
230
|
+
private createPreview;
|
|
231
|
+
private isPicker;
|
|
232
|
+
private getPopupEle;
|
|
233
|
+
private createNumericInput;
|
|
234
|
+
private createInput;
|
|
235
|
+
private appendOpacityValue;
|
|
236
|
+
private appendValueSwitchBtn;
|
|
237
|
+
private createCtrlBtn;
|
|
238
|
+
private appendModeSwitchBtn;
|
|
239
|
+
private createDragTooltip;
|
|
240
|
+
private getTooltipInst;
|
|
241
|
+
private setTooltipOffset;
|
|
242
|
+
private toggleDisabled;
|
|
243
|
+
private convertToRgbString;
|
|
244
|
+
private convertToHsvString;
|
|
245
|
+
private updateHsv;
|
|
246
|
+
private convertToOtherFormat;
|
|
247
|
+
private updateInput;
|
|
248
|
+
private updatePreview;
|
|
249
|
+
private getDragHandler;
|
|
250
|
+
private removeTileSelection;
|
|
251
|
+
private convertRgbToNumberArray;
|
|
252
|
+
/**
|
|
253
|
+
* To get color value in specified type.
|
|
254
|
+
*
|
|
255
|
+
* @param {string} value - Specify the color value.
|
|
256
|
+
* @param {string} type - Specify the type to which the specified color needs to be converted.
|
|
257
|
+
* @method getValue
|
|
258
|
+
* @returns {string} - Color value
|
|
259
|
+
*/
|
|
260
|
+
getValue(value?: string, type?: string): string;
|
|
261
|
+
/**
|
|
262
|
+
* To show/hide ColorPicker popup based on current state of the SplitButton.
|
|
263
|
+
*
|
|
264
|
+
* @method toggle
|
|
265
|
+
* @returns {void}
|
|
266
|
+
*/
|
|
267
|
+
toggle(): void;
|
|
268
|
+
/**
|
|
269
|
+
* Get component name.
|
|
270
|
+
*
|
|
271
|
+
* @returns {string} - Module Name
|
|
272
|
+
* @private
|
|
273
|
+
*/
|
|
274
|
+
getModuleName(): string;
|
|
275
|
+
/**
|
|
276
|
+
* Gets the properties to be maintained in the persisted state.
|
|
277
|
+
*
|
|
278
|
+
* @returns {string} - Persist data
|
|
279
|
+
*/
|
|
280
|
+
getPersistData(): string;
|
|
281
|
+
protected wireEvents(): void;
|
|
282
|
+
private formResetHandler;
|
|
283
|
+
private addCtrlSwitchEvent;
|
|
284
|
+
private ctrlBtnKeyDown;
|
|
285
|
+
private pickerKeyDown;
|
|
286
|
+
private enterKeyHandler;
|
|
287
|
+
private closePopup;
|
|
288
|
+
private triggerChangeEvent;
|
|
289
|
+
private handlerDragPosition;
|
|
290
|
+
private handlerDown;
|
|
291
|
+
private handlerMove;
|
|
292
|
+
private setHsv;
|
|
293
|
+
private handlerEnd;
|
|
294
|
+
private btnClickHandler;
|
|
295
|
+
private switchToPalette;
|
|
296
|
+
private refreshImageEditorPopupPos;
|
|
297
|
+
private refreshPopupPos;
|
|
298
|
+
private formatSwitchHandler;
|
|
299
|
+
private updateValue;
|
|
300
|
+
private previewHandler;
|
|
301
|
+
private paletteClickHandler;
|
|
302
|
+
private noColorTile;
|
|
303
|
+
private switchToPicker;
|
|
304
|
+
private ctrlBtnClick;
|
|
305
|
+
private paletteKeyDown;
|
|
306
|
+
private keySelectionChanges;
|
|
307
|
+
private tilePosition;
|
|
308
|
+
private inputHandler;
|
|
309
|
+
private inputValueChange;
|
|
310
|
+
private triggerEvent;
|
|
311
|
+
/**
|
|
312
|
+
* Removes the component from the DOM and detaches all its related event handlers.
|
|
313
|
+
* Also it maintains the initial input element from the DOM.
|
|
314
|
+
*
|
|
315
|
+
* @method destroy
|
|
316
|
+
* @returns {void}
|
|
317
|
+
*/
|
|
318
|
+
destroy(): void;
|
|
319
|
+
private destroyOtherComp;
|
|
320
|
+
private isPopupOpen;
|
|
321
|
+
protected unWireEvents(): void;
|
|
322
|
+
private roundValue;
|
|
323
|
+
private hexToRgb;
|
|
324
|
+
private rgbToHsv;
|
|
325
|
+
private hsvToRgb;
|
|
326
|
+
private rgbToHex;
|
|
327
|
+
private hex;
|
|
328
|
+
private changeModeSwitcherProp;
|
|
329
|
+
private changeShowBtnProps;
|
|
330
|
+
private changeValueProp;
|
|
331
|
+
private setInputEleProps;
|
|
332
|
+
private changeDisabledProp;
|
|
333
|
+
private changeCssClassProps;
|
|
334
|
+
private changeRtlProps;
|
|
335
|
+
private changePaletteProps;
|
|
336
|
+
private changeOpacityProps;
|
|
337
|
+
/**
|
|
338
|
+
* Called internally if any of the property value changed.
|
|
339
|
+
*
|
|
340
|
+
* @param {ColorPickerModel} newProp - Specifies new properties
|
|
341
|
+
* @param {ColorPickerModel} oldProp - Specifies old properties
|
|
342
|
+
* @returns {void}
|
|
343
|
+
* @private
|
|
344
|
+
*/
|
|
345
|
+
onPropertyChanged(newProp: ColorPickerModel, oldProp: ColorPickerModel): void;
|
|
346
|
+
/**
|
|
347
|
+
* Sets the focus to Colorpicker
|
|
348
|
+
* its native method
|
|
349
|
+
*
|
|
350
|
+
* @public
|
|
351
|
+
* @returns {void}
|
|
352
|
+
*/
|
|
353
|
+
focusIn(): void;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Interface for change / select event.
|
|
357
|
+
*/
|
|
358
|
+
export interface ColorPickerEventArgs extends BaseEventArgs {
|
|
359
|
+
currentValue: {
|
|
360
|
+
hex: string;
|
|
361
|
+
rgba: string;
|
|
362
|
+
};
|
|
363
|
+
previousValue: {
|
|
364
|
+
hex: string;
|
|
365
|
+
rgba: string;
|
|
366
|
+
};
|
|
367
|
+
value?: string;
|
|
368
|
+
event?: Event;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Interface for before change event.
|
|
372
|
+
*/
|
|
373
|
+
export interface PaletteTileEventArgs extends BaseEventArgs {
|
|
374
|
+
element: HTMLElement;
|
|
375
|
+
presetName: string;
|
|
376
|
+
value: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Interface for before open / close event.
|
|
380
|
+
*/
|
|
381
|
+
export interface BeforeOpenCloseEventArgs extends BaseEventArgs {
|
|
382
|
+
element: HTMLElement;
|
|
383
|
+
event: Event;
|
|
384
|
+
cancel: boolean;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Interface for open event.
|
|
388
|
+
*/
|
|
389
|
+
export interface OpenEventArgs extends BaseEventArgs {
|
|
390
|
+
element: HTMLElement;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Interface for mode switching event.
|
|
394
|
+
*/
|
|
395
|
+
export interface ModeSwitchEventArgs extends BaseEventArgs {
|
|
396
|
+
element: HTMLElement;
|
|
397
|
+
mode: string;
|
|
398
|
+
}
|