@syncfusion/ej2-inputs 31.1.17 → 31.1.21

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 (107) 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 +11 -3
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +11 -3
  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/package.json +11 -61
  12. package/src/color-picker/color-picker.js +4 -3
  13. package/src/textbox/textbox.js +7 -0
  14. package/styles/bootstrap4-lite.css +2 -2
  15. package/styles/bootstrap4.css +2 -2
  16. package/styles/bootstrap5-dark-lite.css +2 -2
  17. package/styles/bootstrap5-dark.css +2 -2
  18. package/styles/bootstrap5-lite.css +2 -2
  19. package/styles/bootstrap5.css +2 -2
  20. package/styles/input/_bootstrap4-definition.scss +1 -1
  21. package/styles/input/_bootstrap5-definition.scss +1 -1
  22. package/styles/input/bootstrap4.css +2 -2
  23. package/styles/input/bootstrap5-dark.css +2 -2
  24. package/styles/input/bootstrap5.css +2 -2
  25. package/dist/ts/color-picker/color-picker-model.d.ts +0 -186
  26. package/dist/ts/color-picker/color-picker.d.ts +0 -398
  27. package/dist/ts/color-picker/color-picker.ts +0 -2209
  28. package/dist/ts/color-picker/index.d.ts +0 -5
  29. package/dist/ts/color-picker/index.ts +0 -5
  30. package/dist/ts/common/index.d.ts +0 -4
  31. package/dist/ts/common/index.ts +0 -4
  32. package/dist/ts/common/signature-base.d.ts +0 -340
  33. package/dist/ts/common/signature-base.ts +0 -1170
  34. package/dist/ts/form-validator/form-validator-model.d.ts +0 -121
  35. package/dist/ts/form-validator/form-validator.d.ts +0 -312
  36. package/dist/ts/form-validator/form-validator.ts +0 -1068
  37. package/dist/ts/form-validator/index.d.ts +0 -5
  38. package/dist/ts/form-validator/index.ts +0 -5
  39. package/dist/ts/index.d.ts +0 -18
  40. package/dist/ts/index.ts +0 -18
  41. package/dist/ts/input/index.d.ts +0 -4
  42. package/dist/ts/input/index.ts +0 -4
  43. package/dist/ts/input/input.d.ts +0 -345
  44. package/dist/ts/input/input.ts +0 -1277
  45. package/dist/ts/maskedtextbox/base/index.d.ts +0 -4
  46. package/dist/ts/maskedtextbox/base/index.ts +0 -4
  47. package/dist/ts/maskedtextbox/base/mask-base.d.ts +0 -134
  48. package/dist/ts/maskedtextbox/base/mask-base.ts +0 -1207
  49. package/dist/ts/maskedtextbox/index.d.ts +0 -5
  50. package/dist/ts/maskedtextbox/index.ts +0 -5
  51. package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +0 -5
  52. package/dist/ts/maskedtextbox/maskedtextbox/index.ts +0 -5
  53. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +0 -167
  54. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -307
  55. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +0 -709
  56. package/dist/ts/numerictextbox/index.d.ts +0 -5
  57. package/dist/ts/numerictextbox/index.ts +0 -5
  58. package/dist/ts/numerictextbox/numerictextbox-model.d.ts +0 -228
  59. package/dist/ts/numerictextbox/numerictextbox.d.ts +0 -431
  60. package/dist/ts/numerictextbox/numerictextbox.ts +0 -1672
  61. package/dist/ts/otp-input/index.d.ts +0 -5
  62. package/dist/ts/otp-input/index.ts +0 -5
  63. package/dist/ts/otp-input/otp-input-model.d.ts +0 -165
  64. package/dist/ts/otp-input/otp-input.d.ts +0 -365
  65. package/dist/ts/otp-input/otp-input.ts +0 -924
  66. package/dist/ts/rating/index.d.ts +0 -5
  67. package/dist/ts/rating/index.ts +0 -5
  68. package/dist/ts/rating/rating-model.d.ts +0 -239
  69. package/dist/ts/rating/rating.d.ts +0 -416
  70. package/dist/ts/rating/rating.ts +0 -1101
  71. package/dist/ts/signature/index.d.ts +0 -5
  72. package/dist/ts/signature/index.ts +0 -5
  73. package/dist/ts/signature/signature-model.d.ts +0 -131
  74. package/dist/ts/signature/signature.d.ts +0 -167
  75. package/dist/ts/signature/signature.ts +0 -266
  76. package/dist/ts/slider/index.d.ts +0 -5
  77. package/dist/ts/slider/index.ts +0 -5
  78. package/dist/ts/slider/slider-model.d.ts +0 -401
  79. package/dist/ts/slider/slider.d.ts +0 -721
  80. package/dist/ts/slider/slider.ts +0 -3497
  81. package/dist/ts/smart-textarea/caret-helper.d.ts +0 -17
  82. package/dist/ts/smart-textarea/caret-helper.ts +0 -95
  83. package/dist/ts/smart-textarea/index.d.ts +0 -5
  84. package/dist/ts/smart-textarea/index.ts +0 -5
  85. package/dist/ts/smart-textarea/smart-textarea-model.d.ts +0 -44
  86. package/dist/ts/smart-textarea/smart-textarea.d.ts +0 -80
  87. package/dist/ts/smart-textarea/smart-textarea.ts +0 -518
  88. package/dist/ts/speech-to-text/index.d.ts +0 -5
  89. package/dist/ts/speech-to-text/index.ts +0 -5
  90. package/dist/ts/speech-to-text/speech-to-text-model.d.ts +0 -270
  91. package/dist/ts/speech-to-text/speech-to-text.d.ts +0 -487
  92. package/dist/ts/speech-to-text/speech-to-text.ts +0 -1008
  93. package/dist/ts/textarea/index.d.ts +0 -5
  94. package/dist/ts/textarea/index.ts +0 -5
  95. package/dist/ts/textarea/textarea-model.d.ts +0 -161
  96. package/dist/ts/textarea/textarea.d.ts +0 -237
  97. package/dist/ts/textarea/textarea.ts +0 -812
  98. package/dist/ts/textbox/index.d.ts +0 -5
  99. package/dist/ts/textbox/index.ts +0 -5
  100. package/dist/ts/textbox/textbox-model.d.ts +0 -155
  101. package/dist/ts/textbox/textbox.d.ts +0 -288
  102. package/dist/ts/textbox/textbox.ts +0 -872
  103. package/dist/ts/uploader/index.d.ts +0 -5
  104. package/dist/ts/uploader/index.ts +0 -5
  105. package/dist/ts/uploader/uploader-model.d.ts +0 -555
  106. package/dist/ts/uploader/uploader.d.ts +0 -1216
  107. package/dist/ts/uploader/uploader.ts +0 -4391
@@ -1,5 +0,0 @@
1
- /**
2
- * Uploader modules
3
- */
4
- export * from './textarea';
5
- export * from './textarea-model';
@@ -1,5 +0,0 @@
1
- /**
2
- * Uploader modules
3
- */
4
- export * from './textarea';
5
- export * from './textarea-model';
@@ -1,161 +0,0 @@
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
- }
@@ -1,237 +0,0 @@
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
- }