@syncfusion/ej2-inputs 31.1.17 → 31.1.20

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 (106) 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 +4 -3
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +4 -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 +10 -60
  12. package/src/color-picker/color-picker.js +4 -3
  13. package/styles/bootstrap4-lite.css +2 -2
  14. package/styles/bootstrap4.css +2 -2
  15. package/styles/bootstrap5-dark-lite.css +2 -2
  16. package/styles/bootstrap5-dark.css +2 -2
  17. package/styles/bootstrap5-lite.css +2 -2
  18. package/styles/bootstrap5.css +2 -2
  19. package/styles/input/_bootstrap4-definition.scss +1 -1
  20. package/styles/input/_bootstrap5-definition.scss +1 -1
  21. package/styles/input/bootstrap4.css +2 -2
  22. package/styles/input/bootstrap5-dark.css +2 -2
  23. package/styles/input/bootstrap5.css +2 -2
  24. package/dist/ts/color-picker/color-picker-model.d.ts +0 -186
  25. package/dist/ts/color-picker/color-picker.d.ts +0 -398
  26. package/dist/ts/color-picker/color-picker.ts +0 -2209
  27. package/dist/ts/color-picker/index.d.ts +0 -5
  28. package/dist/ts/color-picker/index.ts +0 -5
  29. package/dist/ts/common/index.d.ts +0 -4
  30. package/dist/ts/common/index.ts +0 -4
  31. package/dist/ts/common/signature-base.d.ts +0 -340
  32. package/dist/ts/common/signature-base.ts +0 -1170
  33. package/dist/ts/form-validator/form-validator-model.d.ts +0 -121
  34. package/dist/ts/form-validator/form-validator.d.ts +0 -312
  35. package/dist/ts/form-validator/form-validator.ts +0 -1068
  36. package/dist/ts/form-validator/index.d.ts +0 -5
  37. package/dist/ts/form-validator/index.ts +0 -5
  38. package/dist/ts/index.d.ts +0 -18
  39. package/dist/ts/index.ts +0 -18
  40. package/dist/ts/input/index.d.ts +0 -4
  41. package/dist/ts/input/index.ts +0 -4
  42. package/dist/ts/input/input.d.ts +0 -345
  43. package/dist/ts/input/input.ts +0 -1277
  44. package/dist/ts/maskedtextbox/base/index.d.ts +0 -4
  45. package/dist/ts/maskedtextbox/base/index.ts +0 -4
  46. package/dist/ts/maskedtextbox/base/mask-base.d.ts +0 -134
  47. package/dist/ts/maskedtextbox/base/mask-base.ts +0 -1207
  48. package/dist/ts/maskedtextbox/index.d.ts +0 -5
  49. package/dist/ts/maskedtextbox/index.ts +0 -5
  50. package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +0 -5
  51. package/dist/ts/maskedtextbox/maskedtextbox/index.ts +0 -5
  52. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +0 -167
  53. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -307
  54. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +0 -709
  55. package/dist/ts/numerictextbox/index.d.ts +0 -5
  56. package/dist/ts/numerictextbox/index.ts +0 -5
  57. package/dist/ts/numerictextbox/numerictextbox-model.d.ts +0 -228
  58. package/dist/ts/numerictextbox/numerictextbox.d.ts +0 -431
  59. package/dist/ts/numerictextbox/numerictextbox.ts +0 -1672
  60. package/dist/ts/otp-input/index.d.ts +0 -5
  61. package/dist/ts/otp-input/index.ts +0 -5
  62. package/dist/ts/otp-input/otp-input-model.d.ts +0 -165
  63. package/dist/ts/otp-input/otp-input.d.ts +0 -365
  64. package/dist/ts/otp-input/otp-input.ts +0 -924
  65. package/dist/ts/rating/index.d.ts +0 -5
  66. package/dist/ts/rating/index.ts +0 -5
  67. package/dist/ts/rating/rating-model.d.ts +0 -239
  68. package/dist/ts/rating/rating.d.ts +0 -416
  69. package/dist/ts/rating/rating.ts +0 -1101
  70. package/dist/ts/signature/index.d.ts +0 -5
  71. package/dist/ts/signature/index.ts +0 -5
  72. package/dist/ts/signature/signature-model.d.ts +0 -131
  73. package/dist/ts/signature/signature.d.ts +0 -167
  74. package/dist/ts/signature/signature.ts +0 -266
  75. package/dist/ts/slider/index.d.ts +0 -5
  76. package/dist/ts/slider/index.ts +0 -5
  77. package/dist/ts/slider/slider-model.d.ts +0 -401
  78. package/dist/ts/slider/slider.d.ts +0 -721
  79. package/dist/ts/slider/slider.ts +0 -3497
  80. package/dist/ts/smart-textarea/caret-helper.d.ts +0 -17
  81. package/dist/ts/smart-textarea/caret-helper.ts +0 -95
  82. package/dist/ts/smart-textarea/index.d.ts +0 -5
  83. package/dist/ts/smart-textarea/index.ts +0 -5
  84. package/dist/ts/smart-textarea/smart-textarea-model.d.ts +0 -44
  85. package/dist/ts/smart-textarea/smart-textarea.d.ts +0 -80
  86. package/dist/ts/smart-textarea/smart-textarea.ts +0 -518
  87. package/dist/ts/speech-to-text/index.d.ts +0 -5
  88. package/dist/ts/speech-to-text/index.ts +0 -5
  89. package/dist/ts/speech-to-text/speech-to-text-model.d.ts +0 -270
  90. package/dist/ts/speech-to-text/speech-to-text.d.ts +0 -487
  91. package/dist/ts/speech-to-text/speech-to-text.ts +0 -1008
  92. package/dist/ts/textarea/index.d.ts +0 -5
  93. package/dist/ts/textarea/index.ts +0 -5
  94. package/dist/ts/textarea/textarea-model.d.ts +0 -161
  95. package/dist/ts/textarea/textarea.d.ts +0 -237
  96. package/dist/ts/textarea/textarea.ts +0 -812
  97. package/dist/ts/textbox/index.d.ts +0 -5
  98. package/dist/ts/textbox/index.ts +0 -5
  99. package/dist/ts/textbox/textbox-model.d.ts +0 -155
  100. package/dist/ts/textbox/textbox.d.ts +0 -288
  101. package/dist/ts/textbox/textbox.ts +0 -872
  102. package/dist/ts/uploader/index.d.ts +0 -5
  103. package/dist/ts/uploader/index.ts +0 -5
  104. package/dist/ts/uploader/uploader-model.d.ts +0 -555
  105. package/dist/ts/uploader/uploader.d.ts +0 -1216
  106. package/dist/ts/uploader/uploader.ts +0 -4391
@@ -1,5 +0,0 @@
1
- /**
2
- * Input box Component
3
- */
4
- export * from './form-validator';
5
- export * from './form-validator-model';
@@ -1,5 +0,0 @@
1
- /**
2
- * Input box Component
3
- */
4
- export * from './form-validator';
5
- export * from './form-validator-model';
@@ -1,18 +0,0 @@
1
- /**
2
- * NumericTextBox all modules
3
- */
4
- export * from './numerictextbox/index';
5
- export * from './maskedtextbox/index';
6
- export * from './input/index';
7
- export * from './slider/index';
8
- export * from './form-validator/index';
9
- export * from './uploader/index';
10
- export * from './color-picker/index';
11
- export * from './textbox/index';
12
- export * from './textarea/index';
13
- export * from './smart-textarea/index';
14
- export * from './signature/index';
15
- export * from './rating/index';
16
- export * from './otp-input/index';
17
- export * from './common/index';
18
- export * from './speech-to-text/index';
package/dist/ts/index.ts DELETED
@@ -1,18 +0,0 @@
1
- /**
2
- * NumericTextBox all modules
3
- */
4
- export * from './numerictextbox/index';
5
- export * from './maskedtextbox/index';
6
- export * from './input/index';
7
- export * from './slider/index';
8
- export * from './form-validator/index';
9
- export * from './uploader/index';
10
- export * from './color-picker/index';
11
- export * from './textbox/index';
12
- export * from './textarea/index';
13
- export * from './smart-textarea/index';
14
- export * from './signature/index';
15
- export * from './rating/index';
16
- export * from './otp-input/index';
17
- export * from './common/index';
18
- export * from './speech-to-text/index';
@@ -1,4 +0,0 @@
1
- /**
2
- * Input box Component
3
- */
4
- export * from './input';
@@ -1,4 +0,0 @@
1
- /**
2
- * Input box Component
3
- */
4
- export * from './input';
@@ -1,345 +0,0 @@
1
- /**
2
- * Defines floating label type of the input and decides how the label should float on the input.
3
- */
4
- export declare type FloatLabelType = 'Never' | 'Always' | 'Auto';
5
- /**
6
- * Defines the constant attributes for the input element container.
7
- */
8
- export declare const containerAttributes: string[];
9
- /**
10
- * Defines the constant focus class for the input element.
11
- */
12
- export declare const TEXTBOX_FOCUS: string;
13
- /**
14
- * Base for Input creation through util methods.
15
- */
16
- export declare namespace Input {
17
- /**
18
- * Create a wrapper to input element with multiple span elements and set the basic properties to input based components.
19
- * ```
20
- * E.g : Input.createInput({ element: element, floatLabelType : "Auto", properties: { placeholder: 'Search' } });
21
- * ```
22
- *
23
- */
24
- function createInput(args: InputArgs, internalCreateElement?: createElementParams): InputObject;
25
- function bindInitialEvent(args: InputArgs): void;
26
- function wireFloatingEvents(element: HTMLInputElement | HTMLTextAreaElement): void;
27
- function wireClearBtnEvents(element: HTMLInputElement | HTMLTextAreaElement, button: HTMLElement, container: HTMLElement): void;
28
- function destroy(args: InputArgs, button?: HTMLElement): void;
29
- /**
30
- * Sets the value to the input element.
31
- * ```
32
- * E.g : Input.setValue('content', element, "Auto", true );
33
- * ```
34
- *
35
- * @param {string} value - Specify the value of the input element.
36
- * @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the specified value is updated.
37
- * @param {string} floatLabelType - Specify the float label type of the input element.
38
- * @param {boolean} clearButton - Boolean value to specify whether the clear icon is enabled / disabled on the input.
39
- */
40
- function setValue(value: string, element: HTMLInputElement | HTMLTextAreaElement, floatLabelType?: string, clearButton?: boolean): void;
41
- /**
42
- * Sets the single or multiple cssClass to wrapper of input element.
43
- * ```
44
- * E.g : Input.setCssClass('e-custom-class', [element]);
45
- * ```
46
- *
47
- * @param {string} cssClass - Css class names which are needed to add.
48
- * @param {Element[] | NodeList} elements - The elements which are needed to add / remove classes.
49
- * @param {string} oldClass
50
- * - Css class names which are needed to remove. If old classes are need to remove, can give this optional parameter.
51
- */
52
- function setCssClass(cssClass: string, elements: Element[] | NodeList, oldClass?: string): void;
53
- /**
54
- * Set the width to the placeholder when it overflows on the button such as spinbutton, clearbutton, icon etc
55
- * ```
56
- * E.g : Input.calculateWidth(element, container);
57
- * ```
58
- *
59
- * @param {any} element - Input element which is need to add.
60
- * @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
61
- */
62
- function calculateWidth(element: any, container: HTMLElement, moduleName?: string): void;
63
- /**
64
- * Set the width to the wrapper of input element.
65
- * ```
66
- * E.g : Input.setWidth('200px', container);
67
- * ```
68
- *
69
- * @param {number | string} width - Width value which is need to add.
70
- * @param {HTMLElement} container - The element on which the width is need to add.
71
- */
72
- function setWidth(width: number | string, container: HTMLElement): void;
73
- /**
74
- * Set the placeholder attribute to the input element.
75
- * ```
76
- * E.g : Input.setPlaceholder('Search here', element);
77
- * ```
78
- *
79
- * @param {string} placeholder - Placeholder value which is need to add.
80
- * @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the placeholder is need to add.
81
- */
82
- function setPlaceholder(placeholder: string, element: HTMLInputElement | HTMLTextAreaElement): void;
83
- /**
84
- * Set the read only attribute to the input element
85
- * ```
86
- * E.g : Input.setReadonly(true, element);
87
- * ```
88
- *
89
- * @param {boolean} isReadonly
90
- * - Boolean value to specify whether to set read only. Setting "True" value enables read only.
91
- * @param {HTMLInputElement | HTMLTextAreaElement} element
92
- * - The element which is need to enable read only.
93
- */
94
- function setReadonly(isReadonly: boolean, element: HTMLInputElement | HTMLTextAreaElement, floatLabelType?: string): void;
95
- /**
96
- * Displays the element direction from right to left when its enabled.
97
- * ```
98
- * E.g : Input.setEnableRtl(true, [inputObj.container]);
99
- * ```
100
- *
101
- * @param {boolean} isRtl
102
- * - Boolean value to specify whether to set RTL. Setting "True" value enables the RTL mode.
103
- * @param {Element[] | NodeList} elements
104
- * - The elements that are needed to enable/disable RTL.
105
- */
106
- function setEnableRtl(isRtl: boolean, elements: Element[] | NodeList): void;
107
- /**
108
- * Enables or disables the given input element.
109
- * ```
110
- * E.g : Input.setEnabled(false, element);
111
- * ```
112
- *
113
- * @param {boolean} isEnable
114
- * - Boolean value to specify whether to enable or disable.
115
- * @param {HTMLInputElement | HTMLTextAreaElement} element
116
- * - Element to be enabled or disabled.
117
- */
118
- function setEnabled(isEnable: boolean, element: HTMLInputElement | HTMLTextAreaElement, floatLabelType?: string, inputContainer?: HTMLElement): void;
119
- function setClearButton(isClear: boolean, element: HTMLInputElement | HTMLTextAreaElement, inputObject: InputObject, initial?: boolean, internalCreateElement?: createElementParams): void;
120
- /**
121
- * Removing the multiple attributes from the given element such as "disabled","id" , etc.
122
- * ```
123
- * E.g : Input.removeAttributes({ 'disabled': 'disabled', 'aria-disabled': 'true' }, element);
124
- * ```
125
- *
126
- * @param {string} attrs
127
- * - Array of attributes which are need to removed from the element.
128
- * @param {HTMLInputElement | HTMLElement} element
129
- * - Element on which the attributes are needed to be removed.
130
- */
131
- function removeAttributes(attrs: {
132
- [key: string]: string;
133
- }, element: HTMLInputElement | HTMLElement): void;
134
- /**
135
- * Adding the multiple attributes to the given element such as "disabled","id" , etc.
136
- * ```
137
- * E.g : Input.addAttributes({ 'id': 'inputpopup' }, element);
138
- * ```
139
- *
140
- * @param {string} attrs
141
- * - Array of attributes which is added to element.
142
- * @param {HTMLInputElement | HTMLElement} element
143
- * - Element on which the attributes are needed to be added.
144
- */
145
- function addAttributes(attrs: {
146
- [key: string]: string;
147
- }, element: HTMLInputElement | HTMLElement): void;
148
- function removeFloating(input: InputObject): void;
149
- function addFloating(input: HTMLInputElement | HTMLTextAreaElement, type: FloatLabelType | string, placeholder: string, internalCreateElement?: createElementParams): void;
150
- /**
151
- * Create the span inside the label and add the label text into the span textcontent
152
- * ```
153
- * E.g : Input.createSpanElement(inputObject, makeElement);
154
- * ```
155
- *
156
- * @param {Element} inputObject
157
- * - Element which is need to get the label
158
- * @param {createElementParams} makeElement
159
- * - Element which is need to create the span
160
- */
161
- function createSpanElement(inputObject: Element, makeElement: createElementParams): void;
162
- /**
163
- * Enable or Disable the ripple effect on the icons inside the Input. Ripple effect is only applicable for material theme.
164
- * ```
165
- * E.g : Input.setRipple(true, [inputObjects]);
166
- * ```
167
- *
168
- * @param {boolean} isRipple
169
- * - Boolean value to specify whether to enable the ripple effect.
170
- * @param {InputObject[]} inputObj
171
- * - Specify the collection of input objects.
172
- */
173
- function setRipple(isRipple: boolean, inputObj: InputObject[]): void;
174
- /**
175
- * Creates a new span element with the given icons added and append it in container element.
176
- * ```
177
- * E.g : Input.addIcon('append', 'e-icon-spin', inputObj.container, inputElement);
178
- * ```
179
- *
180
- * @param {string} position - Specify the icon placement on the input.Possible values are append and prepend.
181
- * @param {string | string[]} icons - Icon classes which are need to add to the span element which is going to created.
182
- * Span element acts as icon or button element for input.
183
- * @param {HTMLElement} container - The container on which created span element is going to append.
184
- * @param {HTMLElement} input - The inputElement on which created span element is going to prepend.
185
- */
186
- function addIcon(position: string, icons: string | string[], container: HTMLElement, input: HTMLElement, internalCreate?: createElementParams): void;
187
- /**
188
- * Creates a new span element with the given icons added and prepend it in input element.
189
- * ```
190
- * E.g : Input.prependSpan('e-icon-spin', inputObj.container, inputElement);
191
- * ```
192
- *
193
- * @param {string} iconClass - Icon classes which are need to add to the span element which is going to created.
194
- * Span element acts as icon or button element for input.
195
- * @param {HTMLElement} container - The container on which created span element is going to append.
196
- * @param {HTMLElement} inputElement - The inputElement on which created span element is going to prepend.
197
- */
198
- function prependSpan(iconClass: string, container: HTMLElement, inputElement: HTMLElement, internalCreateElement?: createElementParams): HTMLElement;
199
- /**
200
- * Creates a new span element with the given icons added and append it in container element.
201
- * ```
202
- * E.g : Input.appendSpan('e-icon-spin', inputObj.container);
203
- * ```
204
- *
205
- * @param {string} iconClass - Icon classes which are need to add to the span element which is going to created.
206
- * Span element acts as icon or button element for input.
207
- * @param {HTMLElement} container - The container on which created span element is going to append.
208
- */
209
- function appendSpan(iconClass: string, container: HTMLElement, internalCreateElement?: createElementParams): HTMLElement;
210
- function validateInputType(containerElement: HTMLElement, input: HTMLInputElement | HTMLTextAreaElement): void;
211
- function updateHTMLAttributesToElement(htmlAttributes: {
212
- [key: string]: string;
213
- }, element: HTMLInputElement | HTMLTextAreaElement): void;
214
- function updateCssClass(newClass: string, oldClass: string, container: HTMLElement): void;
215
- function getInputValidClassList(inputClassName: string): string;
216
- function updateHTMLAttributesToWrapper(htmlAttributes: {
217
- [key: string]: string;
218
- }, container: HTMLElement): void;
219
- function isBlank(inputString: string): boolean;
220
- }
221
- export interface InputObject {
222
- container?: HTMLElement;
223
- buttons?: HTMLElement[];
224
- clearButton?: HTMLElement;
225
- }
226
- /**
227
- * Arguments to create input element for input text boxes utility.These properties are optional.
228
- */
229
- export interface InputArgs {
230
- /**
231
- * Element which is needed to add to the container.
232
- * ```
233
- * E.g : Input.createInput({ element: element });
234
- * ```
235
- */
236
- element: HTMLInputElement | HTMLTextAreaElement;
237
- /**
238
- * ```
239
- * E.g : Input.createInput({ element: element, buttons: ['e-icon-up', 'e-icon-down'] });
240
- * ```
241
- * Specifies the icon classes for span element which will be append to the container.
242
- */
243
- buttons?: string[];
244
- /**
245
- * ```
246
- * E.g : Input.createInput({ element: element, customTag: 'ej2-custom-input' });
247
- * ```
248
- * Specifies the custom tag which is acts as container to the input.
249
- */
250
- customTag?: string;
251
- /**
252
- * ```
253
- * E.g : Input.createInput({ element: element, floatLabelType : "Always" });
254
- * ```
255
- * Specifies how the floating label works.
256
- * Possible values are:
257
- * * Never - Never float the label in the input when the placeholder is available.
258
- * * Always - The floating label will always float above the input.
259
- * * Auto - The floating label will float above the input after focusing or entering a value in the input.
260
- */
261
- floatLabelType?: FloatLabelType | string;
262
- /**
263
- * ```
264
- * E.g : Input.createInput({ element: element, customTag: 'ej2-custom-input' ,bindClearAction: false });
265
- * ```
266
- * Specifies whether to bind the clear button action in input base or not.
267
- */
268
- bindClearAction?: boolean;
269
- /**
270
- * ```
271
- * E.g : Input.createInput({ element: element, properties: { readonly: true, placeholder: 'Search here' } });
272
- * ```
273
- * To specifies the properties such as readonly,enable rtl,etc.
274
- */
275
- properties?: {
276
- readonly?: boolean;
277
- placeholder?: string;
278
- cssClass?: string;
279
- enableRtl?: boolean;
280
- enabled?: boolean;
281
- showClearButton?: boolean;
282
- };
283
- }
284
- /**
285
- * Default required properties for input components.
286
- */
287
- export interface IInput {
288
- /**
289
- * Sets the placeholder value to input.
290
- */
291
- placeholder: string;
292
- /**
293
- * Sets the css class value to input.
294
- */
295
- cssClass: string;
296
- /**
297
- * Sets the enabled value to input.
298
- */
299
- enabled?: boolean;
300
- /**
301
- * Sets the readonly value to input.
302
- */
303
- readonly: boolean;
304
- /**
305
- * Sets the enable rtl value to input.
306
- */
307
- enableRtl: boolean;
308
- /**
309
- * Specifies whether to display the Clear button in the input.
310
- */
311
- showClearButton?: boolean;
312
- /**
313
- * Specifies how the floating label works.
314
- * Possible values are:
315
- * * Never - Never float the label in the input when the placeholder is available.
316
- * * Always - The floating label will always float above the input.
317
- * * Auto - The floating label will float above the input after focusing or entering a value in the input.
318
- */
319
- floatLabelType?: FloatLabelType | string;
320
- /**
321
- * Sets the change event mapping function to input.
322
- */
323
- change: Function;
324
- }
325
- export declare type createElementParams = (tag: string, prop?: {
326
- id?: string;
327
- className?: string;
328
- innerHTML?: string;
329
- styles?: string;
330
- attrs?: {
331
- [key: string]: string;
332
- };
333
- }) => HTMLElement;
334
- /**
335
- * Defines the argument for the focus event.
336
- */
337
- export interface FocusEventArgs {
338
- model?: Object;
339
- }
340
- /**
341
- * Defines the argument for the blur event.
342
- */
343
- export interface BlurEventArgs {
344
- model?: Object;
345
- }