@syncfusion/ej2-inputs 30.2.6 → 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.
Files changed (99) hide show
  1. package/dist/ej2-inputs.min.js +2 -2
  2. package/dist/ej2-inputs.umd.min.js +2 -2
  3. package/dist/ej2-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-inputs.es2015.js +1 -1
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +1 -1
  7. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  8. package/dist/global/ej2-inputs.min.js +2 -2
  9. package/dist/global/ej2-inputs.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/dist/ts/color-picker/color-picker-model.d.ts +186 -0
  12. package/dist/ts/color-picker/color-picker.d.ts +398 -0
  13. package/dist/ts/color-picker/color-picker.ts +2209 -0
  14. package/dist/ts/color-picker/index.d.ts +5 -0
  15. package/dist/ts/color-picker/index.ts +5 -0
  16. package/dist/ts/common/index.d.ts +4 -0
  17. package/dist/ts/common/index.ts +4 -0
  18. package/dist/ts/common/signature-base.d.ts +340 -0
  19. package/dist/ts/common/signature-base.ts +1170 -0
  20. package/dist/ts/form-validator/form-validator-model.d.ts +121 -0
  21. package/dist/ts/form-validator/form-validator.d.ts +312 -0
  22. package/dist/ts/form-validator/form-validator.ts +1068 -0
  23. package/dist/ts/form-validator/index.d.ts +5 -0
  24. package/dist/ts/form-validator/index.ts +5 -0
  25. package/dist/ts/index.d.ts +18 -0
  26. package/dist/ts/index.ts +18 -0
  27. package/dist/ts/input/index.d.ts +4 -0
  28. package/dist/ts/input/index.ts +4 -0
  29. package/dist/ts/input/input.d.ts +345 -0
  30. package/dist/ts/input/input.ts +1277 -0
  31. package/dist/ts/maskedtextbox/base/index.d.ts +4 -0
  32. package/dist/ts/maskedtextbox/base/index.ts +4 -0
  33. package/dist/ts/maskedtextbox/base/mask-base.d.ts +134 -0
  34. package/dist/ts/maskedtextbox/base/mask-base.ts +1207 -0
  35. package/dist/ts/maskedtextbox/index.d.ts +5 -0
  36. package/dist/ts/maskedtextbox/index.ts +5 -0
  37. package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +5 -0
  38. package/dist/ts/maskedtextbox/maskedtextbox/index.ts +5 -0
  39. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +167 -0
  40. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +307 -0
  41. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +709 -0
  42. package/dist/ts/numerictextbox/index.d.ts +5 -0
  43. package/dist/ts/numerictextbox/index.ts +5 -0
  44. package/dist/ts/numerictextbox/numerictextbox-model.d.ts +228 -0
  45. package/dist/ts/numerictextbox/numerictextbox.d.ts +431 -0
  46. package/dist/ts/numerictextbox/numerictextbox.ts +1672 -0
  47. package/dist/ts/otp-input/index.d.ts +5 -0
  48. package/dist/ts/otp-input/index.ts +5 -0
  49. package/dist/ts/otp-input/otp-input-model.d.ts +165 -0
  50. package/dist/ts/otp-input/otp-input.d.ts +365 -0
  51. package/dist/ts/otp-input/otp-input.ts +924 -0
  52. package/dist/ts/rating/index.d.ts +5 -0
  53. package/dist/ts/rating/index.ts +5 -0
  54. package/dist/ts/rating/rating-model.d.ts +239 -0
  55. package/dist/ts/rating/rating.d.ts +416 -0
  56. package/dist/ts/rating/rating.ts +1101 -0
  57. package/dist/ts/signature/index.d.ts +5 -0
  58. package/dist/ts/signature/index.ts +5 -0
  59. package/dist/ts/signature/signature-model.d.ts +131 -0
  60. package/dist/ts/signature/signature.d.ts +167 -0
  61. package/dist/ts/signature/signature.ts +266 -0
  62. package/dist/ts/slider/index.d.ts +5 -0
  63. package/dist/ts/slider/index.ts +5 -0
  64. package/dist/ts/slider/slider-model.d.ts +401 -0
  65. package/dist/ts/slider/slider.d.ts +721 -0
  66. package/dist/ts/slider/slider.ts +3497 -0
  67. package/dist/ts/smart-textarea/caret-helper.d.ts +17 -0
  68. package/dist/ts/smart-textarea/caret-helper.ts +95 -0
  69. package/dist/ts/smart-textarea/index.d.ts +5 -0
  70. package/dist/ts/smart-textarea/index.ts +5 -0
  71. package/dist/ts/smart-textarea/smart-textarea-model.d.ts +44 -0
  72. package/dist/ts/smart-textarea/smart-textarea.d.ts +80 -0
  73. package/dist/ts/smart-textarea/smart-textarea.ts +518 -0
  74. package/dist/ts/speech-to-text/index.d.ts +5 -0
  75. package/dist/ts/speech-to-text/index.ts +5 -0
  76. package/dist/ts/speech-to-text/speech-to-text-model.d.ts +270 -0
  77. package/dist/ts/speech-to-text/speech-to-text.d.ts +487 -0
  78. package/dist/ts/speech-to-text/speech-to-text.ts +1008 -0
  79. package/dist/ts/textarea/index.d.ts +5 -0
  80. package/dist/ts/textarea/index.ts +5 -0
  81. package/dist/ts/textarea/textarea-model.d.ts +161 -0
  82. package/dist/ts/textarea/textarea.d.ts +237 -0
  83. package/dist/ts/textarea/textarea.ts +812 -0
  84. package/dist/ts/textbox/index.d.ts +5 -0
  85. package/dist/ts/textbox/index.ts +5 -0
  86. package/dist/ts/textbox/textbox-model.d.ts +155 -0
  87. package/dist/ts/textbox/textbox.d.ts +288 -0
  88. package/dist/ts/textbox/textbox.ts +872 -0
  89. package/dist/ts/uploader/index.d.ts +5 -0
  90. package/dist/ts/uploader/index.ts +5 -0
  91. package/dist/ts/uploader/uploader-model.d.ts +555 -0
  92. package/dist/ts/uploader/uploader.d.ts +1216 -0
  93. package/dist/ts/uploader/uploader.ts +4391 -0
  94. package/package.json +62 -12
  95. package/src/input/input.js +1 -1
  96. package/styles/input/_layout.scss +0 -1
  97. package/styles/input/tailwind3.css +0 -1
  98. package/styles/tailwind3-lite.css +0 -1
  99. package/styles/tailwind3.css +0 -1
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Uploader modules
3
+ */
4
+ export * from './textarea';
5
+ export * from './textarea-model';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Uploader modules
3
+ */
4
+ export * from './textarea';
5
+ export * from './textarea-model';
@@ -0,0 +1,161 @@
1
+ import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, isNullOrUndefined, setValue, getValue } from '@syncfusion/ej2-base';import { detach, getUniqueID, Event, EventHandler, EmitType, Internationalization, L10n, addClass, removeClass, closest, formatUnit } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject, TEXTBOX_FOCUS } from '../input/input';import { FocusInEventArgs, FocusOutEventArgs, InputEventArgs, ChangedEventArgs } from '../textbox/textbox';
2
+ import {Resize} from "./textarea";
3
+ import {ComponentModel} from '@syncfusion/ej2-base';
4
+
5
+ /**
6
+ * Interface for a class TextArea
7
+ */
8
+ export interface TextAreaModel extends ComponentModel{
9
+
10
+ /**
11
+ * Specifies the boolean value whether the TextArea allows user to change the text.
12
+ *
13
+ * @default false
14
+ */
15
+ readonly?: boolean;
16
+
17
+ /**
18
+ * Sets the content of the TextArea.
19
+ *
20
+ * @default null
21
+ */
22
+ value?: string;
23
+
24
+ /**
25
+ * Specifies the floating label behavior of the TextArea that the placeholder text floats above the TextArea based on the below values.
26
+ * Possible values are:
27
+ * * `Never` - The placeholder text should not be float ever.
28
+ * * `Always` - The placeholder text floats above the TextArea always.
29
+ * * `Auto` - The placeholder text floats above the TextArea while focusing or enter a value in TextArea.
30
+ *
31
+ * @default Never
32
+ */
33
+ floatLabelType?: FloatLabelType;
34
+
35
+ /**
36
+ * Specifies the CSS class value that is appended to wrapper of Textbox.
37
+ *
38
+ * @default ''
39
+ */
40
+ cssClass?: string;
41
+
42
+ /**
43
+ * Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in TextArea.
44
+ * The property is depending on the floatLabelType property.
45
+ *
46
+ * @default null
47
+ */
48
+ placeholder?: string;
49
+
50
+ /**
51
+ * You can add the additional html attributes such as disabled, value etc., to the element.
52
+ * If you configured both property and equivalent html attribute then the component considers the property value.
53
+ *
54
+ * @default {}
55
+ */
56
+ htmlAttributes?: { [key: string]: string };
57
+
58
+ /**
59
+ * Specifies a Boolean value that indicates whether the TextArea allow user to interact with it.
60
+ *
61
+ * @default true
62
+ */
63
+ enabled?: boolean;
64
+
65
+ /**
66
+ * Specifies a Boolean value that indicates whether the clear button is displayed in TextArea.
67
+ *
68
+ * @default false
69
+ */
70
+ showClearButton?: boolean;
71
+
72
+ /**
73
+ * Enable or disable persisting TextArea state between page reloads. If enabled, the `value` state will be persisted.
74
+ *
75
+ * @default false
76
+ */
77
+ enablePersistence?: boolean;
78
+
79
+ /**
80
+ * Specifies the width of the TextArea component.
81
+ *
82
+ * @default null
83
+ */
84
+ width?: number | string;
85
+
86
+ /**
87
+ * Specifies the resize mode of textarea.
88
+ * possible values are:
89
+ * * `Vertical` - The textarea element can be resized vertically.
90
+ * * `Horizontal` - The textarea element can be resized horizontally.
91
+ * * `Both` - The textarea element can be resized both vertically and horizontally.
92
+ * * `None` - The textarea element cannot be resized.
93
+ *
94
+ * @default Both
95
+ */
96
+ resizeMode?: Resize;
97
+
98
+ /**
99
+ * Specifies the maximum number of characters allowed in TextArea.
100
+ *
101
+ * @aspType int?
102
+ */
103
+ maxLength?: number;
104
+
105
+ /**
106
+ * specifies the visible width of the textarea, measured in average character widths.
107
+ *
108
+ * @aspType int?
109
+ */
110
+ cols?: number;
111
+
112
+ /**
113
+ * specifies the visible height of the textarea, measured in lines
114
+ *
115
+ * @aspType int?
116
+ */
117
+ rows?: number;
118
+
119
+ /**
120
+ * Triggers when the TextArea component is created.
121
+ *
122
+ * @event created
123
+ */
124
+ created?: EmitType<Object>;
125
+
126
+ /**
127
+ * Triggers when the TextArea component is destroyed.
128
+ *
129
+ * @event destroyed
130
+ */
131
+ destroyed?: EmitType<Object>;
132
+
133
+ /**
134
+ * Triggers when the content of TextArea has changed and gets focus-out.
135
+ *
136
+ * @event change
137
+ */
138
+ change?: EmitType<ChangedEventArgs>;
139
+
140
+ /**
141
+ * Triggers when the TextArea has focus-out.
142
+ *
143
+ * @event blur
144
+ */
145
+ blur?: EmitType<FocusOutEventArgs>;
146
+
147
+ /**
148
+ * Triggers when the TextArea gets focus.
149
+ *
150
+ * @event focus
151
+ */
152
+ focus?: EmitType<FocusInEventArgs>;
153
+
154
+ /**
155
+ * Triggers each time when the value of TextArea has changed.
156
+ *
157
+ * @event input
158
+ */
159
+ input?: EmitType<InputEventArgs>;
160
+
161
+ }
@@ -0,0 +1,237 @@
1
+ import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
2
+ import { EmitType } from '@syncfusion/ej2-base';
3
+ import { FloatLabelType } from '../input/input';
4
+ import { FocusInEventArgs, FocusOutEventArgs, InputEventArgs, ChangedEventArgs } from '../textbox/textbox';
5
+ import { TextAreaModel } from './textarea-model';
6
+ export declare type Resize = 'Vertical' | 'Horizontal' | 'Both' | 'None';
7
+ export declare class TextArea extends Component<HTMLTextAreaElement> implements INotifyPropertyChanged {
8
+ private textareaWrapper;
9
+ private textareaOptions;
10
+ private globalize;
11
+ private l10n;
12
+ private previousValue;
13
+ private formElement;
14
+ private isForm;
15
+ private initialValue;
16
+ private inputPreviousValue;
17
+ private preventChange;
18
+ private clearButton;
19
+ /**
20
+ * Specifies the boolean value whether the TextArea allows user to change the text.
21
+ *
22
+ * @default false
23
+ */
24
+ readonly: boolean;
25
+ /**
26
+ * Sets the content of the TextArea.
27
+ *
28
+ * @default null
29
+ */
30
+ value: string;
31
+ /**
32
+ * Specifies the floating label behavior of the TextArea that the placeholder text floats above the TextArea based on the below values.
33
+ * Possible values are:
34
+ * * `Never` - The placeholder text should not be float ever.
35
+ * * `Always` - The placeholder text floats above the TextArea always.
36
+ * * `Auto` - The placeholder text floats above the TextArea while focusing or enter a value in TextArea.
37
+ *
38
+ * @default Never
39
+ */
40
+ floatLabelType: FloatLabelType;
41
+ /**
42
+ * Specifies the CSS class value that is appended to wrapper of Textbox.
43
+ *
44
+ * @default ''
45
+ */
46
+ cssClass: string;
47
+ /**
48
+ * Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in TextArea.
49
+ * The property is depending on the floatLabelType property.
50
+ *
51
+ * @default null
52
+ */
53
+ placeholder: string;
54
+ /**
55
+ * You can add the additional html attributes such as disabled, value etc., to the element.
56
+ * If you configured both property and equivalent html attribute then the component considers the property value.
57
+ *
58
+ * @default {}
59
+ */
60
+ htmlAttributes: {
61
+ [key: string]: string;
62
+ };
63
+ /**
64
+ * Specifies a Boolean value that indicates whether the TextArea allow user to interact with it.
65
+ *
66
+ * @default true
67
+ */
68
+ enabled: boolean;
69
+ /**
70
+ * Specifies a Boolean value that indicates whether the clear button is displayed in TextArea.
71
+ *
72
+ * @default false
73
+ */
74
+ showClearButton: boolean;
75
+ /**
76
+ * Enable or disable persisting TextArea state between page reloads. If enabled, the `value` state will be persisted.
77
+ *
78
+ * @default false
79
+ */
80
+ enablePersistence: boolean;
81
+ /**
82
+ * Specifies the width of the TextArea component.
83
+ *
84
+ * @default null
85
+ */
86
+ width: number | string;
87
+ /**
88
+ * Specifies the resize mode of textarea.
89
+ * possible values are:
90
+ * * `Vertical` - The textarea element can be resized vertically.
91
+ * * `Horizontal` - The textarea element can be resized horizontally.
92
+ * * `Both` - The textarea element can be resized both vertically and horizontally.
93
+ * * `None` - The textarea element cannot be resized.
94
+ *
95
+ * @default Both
96
+ */
97
+ resizeMode: Resize;
98
+ /**
99
+ * Specifies the maximum number of characters allowed in TextArea.
100
+ *
101
+ * @aspType int?
102
+ */
103
+ maxLength: number;
104
+ /**
105
+ * specifies the visible width of the textarea, measured in average character widths.
106
+ *
107
+ * @aspType int?
108
+ */
109
+ cols: number;
110
+ /**
111
+ * specifies the visible height of the textarea, measured in lines
112
+ *
113
+ * @aspType int?
114
+ */
115
+ rows: number;
116
+ /**
117
+ * Triggers when the TextArea component is created.
118
+ *
119
+ * @event created
120
+ */
121
+ created: EmitType<Object>;
122
+ /**
123
+ * Triggers when the TextArea component is destroyed.
124
+ *
125
+ * @event destroyed
126
+ */
127
+ destroyed: EmitType<Object>;
128
+ /**
129
+ * Triggers when the content of TextArea has changed and gets focus-out.
130
+ *
131
+ * @event change
132
+ */
133
+ change: EmitType<ChangedEventArgs>;
134
+ /**
135
+ * Triggers when the TextArea has focus-out.
136
+ *
137
+ * @event blur
138
+ */
139
+ blur: EmitType<FocusOutEventArgs>;
140
+ /**
141
+ * Triggers when the TextArea gets focus.
142
+ *
143
+ * @event focus
144
+ */
145
+ focus: EmitType<FocusInEventArgs>;
146
+ /**
147
+ * Triggers each time when the value of TextArea has changed.
148
+ *
149
+ * @event input
150
+ */
151
+ input: EmitType<InputEventArgs>;
152
+ constructor(options?: TextAreaModel, element?: string | HTMLTextAreaElement);
153
+ /**
154
+ * Calls internally if any of the property value is changed.
155
+ *
156
+ * @param {TextAreaModel} newProp - Returns the dynamic property value of the component.
157
+ * @param {TextAreaModel} oldProp - Returns the previous property value of the component.
158
+ * @returns {void}
159
+ * @private
160
+ */
161
+ onPropertyChanged(newProp: TextAreaModel, oldProp: TextAreaModel): void;
162
+ protected preRender(): void;
163
+ /**
164
+ * To Initialize the control rendering
165
+ *
166
+ * @returns {void}
167
+ * @private
168
+ */
169
+ render(): void;
170
+ getModuleName(): string;
171
+ /**
172
+ * Gets the properties to be maintained in the persisted state.
173
+ *
174
+ * @returns {string} - Returns the string value.
175
+ */
176
+ getPersistData(): string;
177
+ private checkAttributes;
178
+ protected wireEvents(): void;
179
+ protected unWireEvents(): void;
180
+ /**
181
+ * Removes the component from the DOM and detaches all its related event handlers.
182
+ * Also, it maintains the initial TextArea element from the DOM.
183
+ *
184
+ * @method destroy
185
+ * @returns {void}
186
+ */
187
+ destroy(): void;
188
+ private focusHandler;
189
+ private focusOutHandler;
190
+ protected keydownHandler(args: KeyboardEvent): void;
191
+ private inputHandler;
192
+ private changeHandler;
193
+ private raiseChangeEvent;
194
+ private updateHTMLAttributesToWrapper;
195
+ private updateHTMLAttributesToElement;
196
+ private bindClearEvent;
197
+ private resetInputHandler;
198
+ /**
199
+ * Adding the multiple attributes as key-value pair to the TextArea element.
200
+ *
201
+ * @param {string} attributes - Specifies the attributes to be add to TextArea element.
202
+ * @returns {void}
203
+ */
204
+ addAttributes(attributes: {
205
+ [key: string]: string;
206
+ }): void;
207
+ /**
208
+ * Removing the multiple attributes as key-value pair to the TextArea element.
209
+ *
210
+ * @param { string[] } attributes - Specifies the attributes name to be removed from TextArea element.
211
+ * @returns {void}
212
+ */
213
+ removeAttributes(attributes: string[]): void;
214
+ /**
215
+ * Sets the focus to widget for interaction.
216
+ *
217
+ * @returns {void}
218
+ */
219
+ focusIn(): void;
220
+ /**
221
+ * Remove the focus from widget, if the widget is in focus state.
222
+ *
223
+ * @returns {void}
224
+ */
225
+ focusOut(): void;
226
+ /**
227
+ * Sets up the width for the textarea wrapper.
228
+ *
229
+ * @returns {void}
230
+ */
231
+ private setWrapperWidth;
232
+ private onMouseMove;
233
+ private resetForm;
234
+ private resetValue;
235
+ private setElementWidth;
236
+ private getCurrentResizeClass;
237
+ }