@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
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { BlazorDotnetObject, Component } from '@syncfusion/ej2-base';
|
|
2
|
+
export declare abstract class SignatureBase extends Component<HTMLCanvasElement> {
|
|
3
|
+
private pointX;
|
|
4
|
+
private pointY;
|
|
5
|
+
private time;
|
|
6
|
+
private startPoint;
|
|
7
|
+
private controlPoint1;
|
|
8
|
+
private controlPoint2;
|
|
9
|
+
private endPoint;
|
|
10
|
+
private pointColl;
|
|
11
|
+
private canvasContext;
|
|
12
|
+
private lastVelocity;
|
|
13
|
+
private lastWidth;
|
|
14
|
+
private incStep;
|
|
15
|
+
private snapColl;
|
|
16
|
+
private minDistance;
|
|
17
|
+
private previous;
|
|
18
|
+
private interval;
|
|
19
|
+
private timeout;
|
|
20
|
+
private storedArgs;
|
|
21
|
+
private isSignatureEmpty;
|
|
22
|
+
private backgroundLoaded;
|
|
23
|
+
private fileType;
|
|
24
|
+
private fileName;
|
|
25
|
+
private clearArray;
|
|
26
|
+
private isBlazor;
|
|
27
|
+
private isResponsive;
|
|
28
|
+
private dotnetRef;
|
|
29
|
+
private signPointsColl;
|
|
30
|
+
private signRatioPointsColl;
|
|
31
|
+
private tempCanvas;
|
|
32
|
+
private tempContext;
|
|
33
|
+
private canRedraw;
|
|
34
|
+
/**
|
|
35
|
+
* Gets or sets the background color of the component.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
/**
|
|
40
|
+
* Gets or sets the background image for the component.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
backgroundImage: string;
|
|
44
|
+
/**
|
|
45
|
+
* Gets or sets whether to disable the signature component where the opacity is set to show disabled state.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Gets or sets whether to prevent the interaction in signature component.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
isReadOnly: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Gets or sets whether to save the signature along with Background Color and background Image while saving.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
saveWithBackground: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Gets or sets the stroke color of the signature.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
strokeColor: string;
|
|
64
|
+
/**
|
|
65
|
+
* Gets or sets the minimum stroke width for signature.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
minStrokeWidth: number;
|
|
69
|
+
/**
|
|
70
|
+
* Gets or sets the maximum stroke width for signature.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
maxStrokeWidth: number;
|
|
74
|
+
/**
|
|
75
|
+
* Gets or sets the velocity to calculate the stroke thickness based on the pressure of the contact on the digitizer surface.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
velocity: number;
|
|
79
|
+
/**
|
|
80
|
+
* Gets or sets the last signature url to maintain the persist state.
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
signatureValue: string;
|
|
84
|
+
/**
|
|
85
|
+
* To Initialize the component rendering
|
|
86
|
+
*
|
|
87
|
+
* @private
|
|
88
|
+
* @param {HTMLCanvasElement} element - Specifies the canvas element.
|
|
89
|
+
* @param {BlazorDotnetObject} dotnetRef - Specifies for blazor client to server communication.
|
|
90
|
+
* @returns {void}
|
|
91
|
+
*/
|
|
92
|
+
initialize(element: HTMLCanvasElement, dotnetRef?: BlazorDotnetObject): void;
|
|
93
|
+
private wireEvents;
|
|
94
|
+
private unwireEvents;
|
|
95
|
+
private setHTMLProperties;
|
|
96
|
+
protected mouseDownHandler(e: MouseEvent & TouchEvent): void;
|
|
97
|
+
private mouseMoveHandler;
|
|
98
|
+
private mouseUpHandler;
|
|
99
|
+
private keyboardHandler;
|
|
100
|
+
private resizeHandler;
|
|
101
|
+
private beginStroke;
|
|
102
|
+
private updateStroke;
|
|
103
|
+
private updateStrokeWithThrottle;
|
|
104
|
+
private delay;
|
|
105
|
+
private createPoint;
|
|
106
|
+
private point;
|
|
107
|
+
private addPoint;
|
|
108
|
+
private startDraw;
|
|
109
|
+
private endDraw;
|
|
110
|
+
private curveDraw;
|
|
111
|
+
private strokeDraw;
|
|
112
|
+
private arcDraw;
|
|
113
|
+
private calculateCurveControlPoints;
|
|
114
|
+
private bezierLengthCalc;
|
|
115
|
+
private bezierPointCalc;
|
|
116
|
+
private pointVelocityCalc;
|
|
117
|
+
private distanceTo;
|
|
118
|
+
private isRead;
|
|
119
|
+
private enableOrDisable;
|
|
120
|
+
private updateSnapCollection;
|
|
121
|
+
private setBackgroundImage;
|
|
122
|
+
private setBackgroundColor;
|
|
123
|
+
protected loadPersistedSignature(): void;
|
|
124
|
+
/**
|
|
125
|
+
* To get the signature as Blob.
|
|
126
|
+
*
|
|
127
|
+
* @param {string} url - specify the url/base 64 string to get blob of the signature.
|
|
128
|
+
* @returns {Blob}.
|
|
129
|
+
*/
|
|
130
|
+
getBlob(url: string): Blob;
|
|
131
|
+
private download;
|
|
132
|
+
private internalRefresh;
|
|
133
|
+
/**
|
|
134
|
+
* To refresh the signature.
|
|
135
|
+
*
|
|
136
|
+
* @returns {void}.
|
|
137
|
+
*/
|
|
138
|
+
refresh(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Erases all the signature strokes signed by user.
|
|
141
|
+
*
|
|
142
|
+
* @returns {void}.
|
|
143
|
+
*/
|
|
144
|
+
clear(): void;
|
|
145
|
+
/**
|
|
146
|
+
* Undo the last user action.
|
|
147
|
+
*
|
|
148
|
+
* @returns {void}.
|
|
149
|
+
*/
|
|
150
|
+
undo(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Redo the last user action.
|
|
153
|
+
*
|
|
154
|
+
* @returns {void}.
|
|
155
|
+
*/
|
|
156
|
+
redo(): void;
|
|
157
|
+
private isClear;
|
|
158
|
+
/**
|
|
159
|
+
* To check whether the signature is empty or not.
|
|
160
|
+
*
|
|
161
|
+
* @returns {boolean}.
|
|
162
|
+
*/
|
|
163
|
+
isEmpty(): boolean;
|
|
164
|
+
/**
|
|
165
|
+
* To check whether the undo collection is empty or not.
|
|
166
|
+
*
|
|
167
|
+
* @returns {boolean}.
|
|
168
|
+
*/
|
|
169
|
+
canUndo(): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* To check whether the redo collection is empty or not.
|
|
172
|
+
*
|
|
173
|
+
* @returns {boolean}.
|
|
174
|
+
*/
|
|
175
|
+
canRedo(): boolean;
|
|
176
|
+
/**
|
|
177
|
+
* To draw the signature based on the given text, with the font family and font size.
|
|
178
|
+
*
|
|
179
|
+
* @param {string} text - specify text to be drawn as signature.
|
|
180
|
+
* @param {string} fontFamily - specify font family of a signature.
|
|
181
|
+
* @param {number} fontSize - specify font size of a signature.
|
|
182
|
+
* @param {number} x- Specifies the x-coordinate to start the text of a signature. Default to the center point of the image if it not specified.
|
|
183
|
+
* @param {number} y - Specifies the y-coordinate to start the text of a signature. Default to the center point of the image if it not specified.
|
|
184
|
+
*
|
|
185
|
+
* @returns {void}.
|
|
186
|
+
*/
|
|
187
|
+
draw(text: string, fontFamily?: string, fontSize?: number, x?: number, y?: number): void;
|
|
188
|
+
/**
|
|
189
|
+
* To load the signature with the given base 64 string, height and width.
|
|
190
|
+
*
|
|
191
|
+
* @param {string} signature - specify the url/base 64 string to be drawn as signature.
|
|
192
|
+
* @param {number} width - specify the width of the loaded signature image.
|
|
193
|
+
* @param {number} height - specify the height of the loaded signature image.
|
|
194
|
+
* @returns {void}.
|
|
195
|
+
*/
|
|
196
|
+
load(signature: string, width?: number, height?: number): void;
|
|
197
|
+
private saveBackground;
|
|
198
|
+
/**
|
|
199
|
+
* To save the signature with the given file type and file name.
|
|
200
|
+
*
|
|
201
|
+
* @param {SignatureFileType} type - specify type of the file to be saved a signature.
|
|
202
|
+
* @param {string} fileName - specify name of the file to be saved a signature.
|
|
203
|
+
*
|
|
204
|
+
* @returns {void}.
|
|
205
|
+
*/
|
|
206
|
+
save(type?: SignatureFileType, fileName?: string): void;
|
|
207
|
+
private resetSnap;
|
|
208
|
+
private toJPEG;
|
|
209
|
+
private toSVG;
|
|
210
|
+
/**
|
|
211
|
+
* To save the signature as Blob.
|
|
212
|
+
*
|
|
213
|
+
* @returns {Blob}.
|
|
214
|
+
*/
|
|
215
|
+
saveAsBlob(): Blob;
|
|
216
|
+
/**
|
|
217
|
+
* Gets the signature as a Base 64 string.
|
|
218
|
+
*
|
|
219
|
+
* This method is used to retrieve the current signature on the canvas as a Base 64-encoded string, in the specified image format.
|
|
220
|
+
*
|
|
221
|
+
* @param {SignatureFileType} [type] - Specifies the type of the image format.
|
|
222
|
+
* Can be one of 'Png', 'Jpeg', or 'Svg'. If not specified, the default is 'Png'.
|
|
223
|
+
* @returns {string} - Returns the Base 64 string of the signature in the specified format.
|
|
224
|
+
*/
|
|
225
|
+
getSignature(type?: SignatureFileType): string;
|
|
226
|
+
/**
|
|
227
|
+
* Get component name.
|
|
228
|
+
*
|
|
229
|
+
* @returns {string} - Module Name
|
|
230
|
+
* @private
|
|
231
|
+
*/
|
|
232
|
+
protected getModuleName(): string;
|
|
233
|
+
/**
|
|
234
|
+
* To get the properties to be maintained in the persisted state.
|
|
235
|
+
*
|
|
236
|
+
* @returns {string} - Persist data
|
|
237
|
+
*/
|
|
238
|
+
protected getPersistData(): string;
|
|
239
|
+
/**
|
|
240
|
+
* Removes the component from the DOM and detaches all its related event handlers.
|
|
241
|
+
* Also it maintains the initial input element from the DOM.
|
|
242
|
+
*
|
|
243
|
+
* @method destroy
|
|
244
|
+
* @returns {void}
|
|
245
|
+
*/
|
|
246
|
+
destroy(): void;
|
|
247
|
+
/**
|
|
248
|
+
* Modified onPropertyChanged method for both blazor and EJ2 signature component.
|
|
249
|
+
*
|
|
250
|
+
* @private
|
|
251
|
+
* @param {string} key - Specifies the property, which changed.
|
|
252
|
+
* @param {string} value - Specifies the property value changed.
|
|
253
|
+
* @returns {void}
|
|
254
|
+
*/
|
|
255
|
+
propertyChanged(key: string, value: string | boolean | number): void;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Defines the signature file type.
|
|
259
|
+
*/
|
|
260
|
+
export declare type SignatureFileType = 'Png' | 'Jpeg' | 'Svg';
|
|
261
|
+
/**
|
|
262
|
+
* Interface for before save the canvas as image.
|
|
263
|
+
*/
|
|
264
|
+
export interface SignatureBeforeSaveEventArgs {
|
|
265
|
+
/**
|
|
266
|
+
* Gets or sets whether to cancel the save action. You can cancel and perform save operation programmatically.
|
|
267
|
+
*/
|
|
268
|
+
cancel?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Gets or sets the file name to be saved.
|
|
271
|
+
*/
|
|
272
|
+
fileName?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Gets or sets the file type to be saved.
|
|
275
|
+
*/
|
|
276
|
+
type?: SignatureFileType;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Interface for changes occur in the signature.
|
|
280
|
+
*/
|
|
281
|
+
export interface SignatureChangeEventArgs {
|
|
282
|
+
/**
|
|
283
|
+
* Gets or sets the action name of the signature.
|
|
284
|
+
*/
|
|
285
|
+
actionName: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Interface for Dimension calculation in the imageEditor.
|
|
289
|
+
*/
|
|
290
|
+
export interface Dimension {
|
|
291
|
+
/**
|
|
292
|
+
* Gets x position from the canvas.
|
|
293
|
+
*/
|
|
294
|
+
x?: number;
|
|
295
|
+
/**
|
|
296
|
+
* Gets y position from the canvas.
|
|
297
|
+
*/
|
|
298
|
+
y?: number;
|
|
299
|
+
/**
|
|
300
|
+
* Gets width of the image.
|
|
301
|
+
*/
|
|
302
|
+
width: number;
|
|
303
|
+
/**
|
|
304
|
+
* Gets height of the image.
|
|
305
|
+
*/
|
|
306
|
+
height: number;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Interface for active object in the imageEditor.
|
|
310
|
+
*/
|
|
311
|
+
export interface ActivePoint {
|
|
312
|
+
/**
|
|
313
|
+
* Gets mouse down x-point.
|
|
314
|
+
*/
|
|
315
|
+
startX: number;
|
|
316
|
+
/**
|
|
317
|
+
* Gets mouse down y-point.
|
|
318
|
+
*/
|
|
319
|
+
startY: number;
|
|
320
|
+
/**
|
|
321
|
+
* Gets mouse move x-point.
|
|
322
|
+
*/
|
|
323
|
+
endX?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Gets mouse move y-point.
|
|
326
|
+
*/
|
|
327
|
+
endY?: number;
|
|
328
|
+
/**
|
|
329
|
+
* Gets width of the selection.
|
|
330
|
+
*/
|
|
331
|
+
width?: number;
|
|
332
|
+
/**
|
|
333
|
+
* Gets height of the selection.
|
|
334
|
+
*/
|
|
335
|
+
height?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Gets radius of the circle dot.
|
|
338
|
+
*/
|
|
339
|
+
radius?: number;
|
|
340
|
+
}
|