@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 './textbox';
5
+ export * from './textbox-model';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Uploader modules
3
+ */
4
+ export * from './textbox';
5
+ export * from './textbox-model';
@@ -0,0 +1,155 @@
1
+ import { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue, isNullOrUndefined, Browser } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID, closest } from '@syncfusion/ej2-base';import { addClass, removeClass } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject, containerAttributes, TEXTBOX_FOCUS } from '../input/input';
2
+ import {ChangedEventArgs,FocusOutEventArgs,FocusInEventArgs,InputEventArgs} from "./textbox";
3
+ import {ComponentModel} from '@syncfusion/ej2-base';
4
+
5
+ /**
6
+ * Interface for a class TextBox
7
+ */
8
+ export interface TextBoxModel extends ComponentModel{
9
+
10
+ /**
11
+ * Specifies the behavior of the TextBox such as text, password, email, etc.
12
+ *
13
+ * @default 'text'
14
+ */
15
+ type?: string;
16
+
17
+ /**
18
+ * Specifies the boolean value whether the TextBox allows user to change the text.
19
+ *
20
+ * @default false
21
+ */
22
+ readonly?: boolean;
23
+
24
+ /**
25
+ * Sets the content of the TextBox.
26
+ *
27
+ * @default null
28
+ */
29
+ value?: string;
30
+
31
+ /**
32
+ * Specifies the floating label behavior of the TextBox that the placeholder text floats above the TextBox 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 TextBox always.
36
+ * * `Auto` - The placeholder text floats above the TextBox while focusing or enter a value in Textbox.
37
+ *
38
+ * @default Never
39
+ */
40
+ floatLabelType?: FloatLabelType;
41
+
42
+ /**
43
+ * Specifies the CSS class value that is appended to wrapper of Textbox.
44
+ *
45
+ * @default ''
46
+ */
47
+ cssClass?: string;
48
+
49
+ /**
50
+ * Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in Textbox.
51
+ * The property is depending on the floatLabelType property.
52
+ *
53
+ * @default null
54
+ */
55
+ placeholder?: string;
56
+
57
+ /**
58
+ * Specifies whether the browser is allow to automatically enter or select a value for the textbox.
59
+ * By default, autocomplete is enabled for textbox.
60
+ * Possible values are:
61
+ * `on` - Specifies that autocomplete is enabled.
62
+ * `off` - Specifies that autocomplete is disabled.
63
+ *
64
+ * @default 'on'
65
+ */
66
+ autocomplete?: string;
67
+
68
+ /**
69
+ * You can add the additional html attributes such as disabled, value etc., to the element.
70
+ * If you configured both property and equivalent html attribute then the component considers the property value.
71
+ * {% codeBlock src='textbox/htmlAttributes/index.md' %}{% endcodeBlock %}
72
+ *
73
+ * @default {}
74
+ */
75
+ htmlAttributes?: { [key: string]: string };
76
+
77
+ /**
78
+ * Specifies a boolean value that enable or disable the multiline on the TextBox.
79
+ * The TextBox changes from single line to multiline when enable this multiline mode.
80
+ *
81
+ * @default false
82
+ */
83
+ multiline?: boolean;
84
+
85
+ /**
86
+ * Specifies a Boolean value that indicates whether the TextBox allow user to interact with it.
87
+ *
88
+ * @default true
89
+ */
90
+ enabled?: boolean;
91
+
92
+ /**
93
+ * Specifies a Boolean value that indicates whether the clear button is displayed in Textbox.
94
+ *
95
+ * @default false
96
+ */
97
+ showClearButton?: boolean;
98
+
99
+ /**
100
+ * Enable or disable persisting TextBox state between page reloads. If enabled, the `value` state will be persisted.
101
+ *
102
+ * @default false
103
+ */
104
+ enablePersistence?: boolean;
105
+
106
+ /**
107
+ * Specifies the width of the Textbox component.
108
+ *
109
+ * @default null
110
+ */
111
+ width?: number | string;
112
+
113
+ /**
114
+ * Triggers when the TextBox component is created.
115
+ *
116
+ * @event created
117
+ */
118
+ created?: EmitType<Object>;
119
+
120
+ /**
121
+ * Triggers when the TextBox component is destroyed.
122
+ *
123
+ * @event destroyed
124
+ */
125
+ destroyed?: EmitType<Object>;
126
+
127
+ /**
128
+ * Triggers when the content of TextBox has changed and gets focus-out.
129
+ *
130
+ * @event change
131
+ */
132
+ change?: EmitType<ChangedEventArgs>;
133
+
134
+ /**
135
+ * Triggers when the TextBox has focus-out.
136
+ *
137
+ * @event blur
138
+ */
139
+ blur?: EmitType<FocusOutEventArgs>;
140
+
141
+ /**
142
+ * Triggers when the TextBox gets focus.
143
+ *
144
+ * @event focus
145
+ */
146
+ focus?: EmitType<FocusInEventArgs>;
147
+
148
+ /**
149
+ * Triggers each time when the value of TextBox has changed.
150
+ *
151
+ * @event input
152
+ */
153
+ input?: EmitType<InputEventArgs>;
154
+
155
+ }
@@ -0,0 +1,288 @@
1
+ import { Component, EmitType } from '@syncfusion/ej2-base';
2
+ import { INotifyPropertyChanged } from '@syncfusion/ej2-base';
3
+ import { FloatLabelType } from '../input/input';
4
+ import { TextBoxModel } from './textbox-model';
5
+ export interface FocusInEventArgs {
6
+ /** Returns the TextBox container element */
7
+ container?: HTMLElement;
8
+ /** Returns the event parameters from TextBox. */
9
+ event?: Event;
10
+ /** Returns the entered value of the TextBox. */
11
+ value?: string;
12
+ }
13
+ export interface FocusOutEventArgs {
14
+ /** Returns the TextBox container element */
15
+ container?: HTMLElement;
16
+ /** Returns the event parameters from TextBox. */
17
+ event?: Event;
18
+ /** Returns the entered value of the TextBox. */
19
+ value?: string;
20
+ }
21
+ export interface ChangedEventArgs extends FocusInEventArgs {
22
+ /** Returns the previously entered value of the TextBox. */
23
+ previousValue?: string;
24
+ /** DEPRECATED-Returns the original event. */
25
+ isInteraction?: boolean;
26
+ /** Returns the original event. */
27
+ isInteracted?: boolean;
28
+ }
29
+ export interface InputEventArgs extends FocusInEventArgs {
30
+ /** Returns the previously updated value of the TextBox. */
31
+ previousValue?: string;
32
+ }
33
+ /**
34
+ * Represents the TextBox component that allows the user to enter the values based on it's type.
35
+ * ```html
36
+ * <input name='images' id='textbox'/>
37
+ * ```
38
+ * ```typescript
39
+ * <script>
40
+ * var textboxObj = new TextBox();
41
+ * textboxObj.appendTo('#textbox');
42
+ * </script>
43
+ * ```
44
+ */
45
+ export declare class TextBox extends Component<HTMLInputElement | HTMLTextAreaElement> implements INotifyPropertyChanged {
46
+ private textboxWrapper;
47
+ private l10n;
48
+ private previousValue;
49
+ private cloneElement;
50
+ private globalize;
51
+ private preventChange;
52
+ private isHiddenInput;
53
+ private textarea;
54
+ private respectiveElement;
55
+ private isForm;
56
+ private formElement;
57
+ private initialValue;
58
+ private textboxOptions;
59
+ private inputPreviousValue;
60
+ private clearButton;
61
+ /**
62
+ * Specifies the behavior of the TextBox such as text, password, email, etc.
63
+ *
64
+ * @default 'text'
65
+ */
66
+ type: string;
67
+ /**
68
+ * Specifies the boolean value whether the TextBox allows user to change the text.
69
+ *
70
+ * @default false
71
+ */
72
+ readonly: boolean;
73
+ /**
74
+ * Sets the content of the TextBox.
75
+ *
76
+ * @default null
77
+ */
78
+ value: string;
79
+ /**
80
+ * Specifies the floating label behavior of the TextBox that the placeholder text floats above the TextBox based on the below values.
81
+ * Possible values are:
82
+ * * `Never` - The placeholder text should not be float ever.
83
+ * * `Always` - The placeholder text floats above the TextBox always.
84
+ * * `Auto` - The placeholder text floats above the TextBox while focusing or enter a value in Textbox.
85
+ *
86
+ * @default Never
87
+ */
88
+ floatLabelType: FloatLabelType;
89
+ /**
90
+ * Specifies the CSS class value that is appended to wrapper of Textbox.
91
+ *
92
+ * @default ''
93
+ */
94
+ cssClass: string;
95
+ /**
96
+ * Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in Textbox.
97
+ * The property is depending on the floatLabelType property.
98
+ *
99
+ * @default null
100
+ */
101
+ placeholder: string;
102
+ /**
103
+ * Specifies whether the browser is allow to automatically enter or select a value for the textbox.
104
+ * By default, autocomplete is enabled for textbox.
105
+ * Possible values are:
106
+ * `on` - Specifies that autocomplete is enabled.
107
+ * `off` - Specifies that autocomplete is disabled.
108
+ *
109
+ * @default 'on'
110
+ */
111
+ autocomplete: string;
112
+ /**
113
+ * You can add the additional html attributes such as disabled, value etc., to the element.
114
+ * If you configured both property and equivalent html attribute then the component considers the property value.
115
+ * {% codeBlock src='textbox/htmlAttributes/index.md' %}{% endcodeBlock %}
116
+ *
117
+ * @default {}
118
+ */
119
+ htmlAttributes: {
120
+ [key: string]: string;
121
+ };
122
+ /**
123
+ * Specifies a boolean value that enable or disable the multiline on the TextBox.
124
+ * The TextBox changes from single line to multiline when enable this multiline mode.
125
+ *
126
+ * @default false
127
+ */
128
+ multiline: boolean;
129
+ /**
130
+ * Specifies a Boolean value that indicates whether the TextBox allow user to interact with it.
131
+ *
132
+ * @default true
133
+ */
134
+ enabled: boolean;
135
+ /**
136
+ * Specifies a Boolean value that indicates whether the clear button is displayed in Textbox.
137
+ *
138
+ * @default false
139
+ */
140
+ showClearButton: boolean;
141
+ /**
142
+ * Enable or disable persisting TextBox state between page reloads. If enabled, the `value` state will be persisted.
143
+ *
144
+ * @default false
145
+ */
146
+ enablePersistence: boolean;
147
+ /**
148
+ * Specifies the width of the Textbox component.
149
+ *
150
+ * @default null
151
+ */
152
+ width: number | string;
153
+ /**
154
+ * Triggers when the TextBox component is created.
155
+ *
156
+ * @event created
157
+ */
158
+ created: EmitType<Object>;
159
+ /**
160
+ * Triggers when the TextBox component is destroyed.
161
+ *
162
+ * @event destroyed
163
+ */
164
+ destroyed: EmitType<Object>;
165
+ /**
166
+ * Triggers when the content of TextBox has changed and gets focus-out.
167
+ *
168
+ * @event change
169
+ */
170
+ change: EmitType<ChangedEventArgs>;
171
+ /**
172
+ * Triggers when the TextBox has focus-out.
173
+ *
174
+ * @event blur
175
+ */
176
+ blur: EmitType<FocusOutEventArgs>;
177
+ /**
178
+ * Triggers when the TextBox gets focus.
179
+ *
180
+ * @event focus
181
+ */
182
+ focus: EmitType<FocusInEventArgs>;
183
+ /**
184
+ * Triggers each time when the value of TextBox has changed.
185
+ *
186
+ * @event input
187
+ */
188
+ input: EmitType<InputEventArgs>;
189
+ /**
190
+ *
191
+ * @param {TextBoxModel} options - Specifies the TextBox model.
192
+ * @param {string | HTMLInputElement | HTMLTextAreaElement} element - Specifies the element to render as component.
193
+ * @private
194
+ */
195
+ constructor(options?: TextBoxModel, element?: string | HTMLInputElement | HTMLTextAreaElement);
196
+ /**
197
+ * Calls internally if any of the property value is changed.
198
+ *
199
+ * @param {TextBoxModel} newProp - Returns the dynamic property value of the component.
200
+ * @param {TextBoxModel} oldProp - Returns the previous property value of the component.
201
+ * @returns {void}
202
+ * @private
203
+ */
204
+ onPropertyChanged(newProp: TextBoxModel, oldProp: TextBoxModel): void;
205
+ /**
206
+ * Gets the component name
207
+ *
208
+ * @returns {string} Returns the component name.
209
+ * @private
210
+ */
211
+ getModuleName(): string;
212
+ protected preRender(): void;
213
+ private checkAttributes;
214
+ /**
215
+ * To Initialize the control rendering
216
+ *
217
+ * @returns {void}
218
+ * @private
219
+ */
220
+ render(): void;
221
+ private updateHTMLAttributesToWrapper;
222
+ private updateHTMLAttributesToElement;
223
+ private setInitialValue;
224
+ private wireEvents;
225
+ private animationHandler;
226
+ private resetValue;
227
+ private resetForm;
228
+ private focusHandler;
229
+ private focusOutHandler;
230
+ private keydownHandler;
231
+ private inputHandler;
232
+ private changeHandler;
233
+ private raiseChangeEvent;
234
+ private bindClearEvent;
235
+ private resetInputHandler;
236
+ private unWireEvents;
237
+ /**
238
+ * Removes the component from the DOM and detaches all its related event handlers.
239
+ * Also, it maintains the initial TextBox element from the DOM.
240
+ *
241
+ * @method destroy
242
+ * @returns {void}
243
+ */
244
+ destroy(): void;
245
+ /**
246
+ * Adding the icons to the TextBox component.
247
+ *
248
+ * @param { string } position - Specify the icon placement on the TextBox. Possible values are append and prepend.
249
+ * @param { string | string[] } icons - Icon classes which are need to add to the span element which is going to created.
250
+ * Span element acts as icon or button element for TextBox.
251
+ * @returns {void}
252
+ */
253
+ addIcon(position: string, icons: string | string[]): void;
254
+ /**
255
+ * Gets the properties to be maintained in the persisted state.
256
+ *
257
+ * @returns {string} Returns the persisted data.
258
+ */
259
+ getPersistData(): string;
260
+ /**
261
+ * Adding the multiple attributes as key-value pair to the TextBox element.
262
+ *
263
+ * @param {string} attributes - Specifies the attributes to be add to TextBox element.
264
+ * @returns {void}
265
+ */
266
+ addAttributes(attributes: {
267
+ [key: string]: string;
268
+ }): void;
269
+ /**
270
+ * Removing the multiple attributes as key-value pair to the TextBox element.
271
+ *
272
+ * @param { string[] } attributes - Specifies the attributes name to be removed from TextBox element.
273
+ * @returns {void}
274
+ */
275
+ removeAttributes(attributes: string[]): void;
276
+ /**
277
+ * Sets the focus to widget for interaction.
278
+ *
279
+ * @returns {void}
280
+ */
281
+ focusIn(): void;
282
+ /**
283
+ * Remove the focus from widget, if the widget is in focus state.
284
+ *
285
+ * @returns {void}
286
+ */
287
+ focusOut(): void;
288
+ }