@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.
Files changed (110) 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/bootstrap5.3-lite.css +3 -3
  97. package/styles/bootstrap5.3.css +5 -5
  98. package/styles/input/_layout.scss +0 -1
  99. package/styles/input/tailwind3.css +0 -1
  100. package/styles/tailwind-dark-lite.css +3 -3
  101. package/styles/tailwind-dark.css +5 -5
  102. package/styles/tailwind-lite.css +3 -3
  103. package/styles/tailwind.css +5 -5
  104. package/styles/tailwind3-lite.css +0 -1
  105. package/styles/tailwind3.css +0 -1
  106. package/styles/uploader/_bootstrap5.3-definition.scss +1 -1
  107. package/styles/uploader/_tailwind-definition.scss +1 -1
  108. package/styles/uploader/bootstrap5.3.css +5 -5
  109. package/styles/uploader/tailwind-dark.css +5 -5
  110. package/styles/uploader/tailwind.css +5 -5
@@ -0,0 +1,401 @@
1
+ import { Component, EventHandler, Property, Event, EmitType, Complex, Collection } from '@syncfusion/ej2-base';import { L10n, Internationalization, NumberFormatOptions } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';import { attributes, addClass, removeClass, setStyleAttribute, detach, closest } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, Browser, SanitizeHtmlHelper, initializeCSPTemplate } from '@syncfusion/ej2-base';import { Tooltip, Position, TooltipEventArgs, getZindexPartial } from '@syncfusion/ej2-popups';
2
+ import {Placement,TooltipPlacement,TooltipShowOn,SliderType,SliderOrientation,SliderChangeEventArgs,SliderTickEventArgs,SliderTickRenderedEventArgs,SliderTooltipEventArgs} from "./slider";
3
+ import {ComponentModel} from '@syncfusion/ej2-base';
4
+
5
+ /**
6
+ * Interface for a class TicksData
7
+ */
8
+ export interface TicksDataModel {
9
+
10
+ /**
11
+ * It is used to denote the position of the ticks in the Slider. The available options are:
12
+ *
13
+ * * before - Ticks are placed in the top of the horizontal slider bar or at the left of the vertical slider bar.
14
+ * * after - Ticks are placed in the bottom of the horizontal slider bar or at the right of the vertical slider bar.
15
+ * * both - Ticks are placed on the both side of the Slider bar.
16
+ * * none - Ticks are not shown.
17
+ * {% codeBlock src='slider/placement/index.md' %}{% endcodeBlock %}
18
+ *
19
+ * @default 'None'
20
+ */
21
+ placement?: Placement;
22
+
23
+ /**
24
+ * It is used to denote the distance between two major (large) ticks from the scale of the Slider.
25
+ * {% codeBlock src='slider/largestep/index.md' %}{% endcodeBlock %}
26
+ *
27
+ * @default 10
28
+ */
29
+ largeStep?: number;
30
+
31
+ /**
32
+ * It is used to denote the distance between two minor (small) ticks from the scale of the Slider.
33
+ * {% codeBlock src='slider/smallstep/index.md' %}{% endcodeBlock %}
34
+ *
35
+ * @default 1
36
+ */
37
+ smallStep?: number;
38
+
39
+ /**
40
+ * We can show or hide the small ticks in the Slider, which will be appeared in between the largeTicks.
41
+ *
42
+ * @default false
43
+ */
44
+ showSmallTicks?: boolean;
45
+
46
+ /**
47
+ * It is used to customize the Slider scale value to the desired format using Internationalization or events(custom formatting).
48
+ * {% codeBlock src='slider/format/index.md' %}{% endcodeBlock %}
49
+ */
50
+ format?: string;
51
+
52
+ }
53
+
54
+ /**
55
+ * Interface for a class ColorRangeData
56
+ */
57
+ export interface ColorRangeDataModel {
58
+
59
+ /**
60
+ * It is used to set the color in the slider bar.
61
+ *
62
+ * @default ''
63
+ */
64
+ color?: string;
65
+
66
+ /**
67
+ * It is used to get the starting value for applying color.
68
+ *
69
+ * @default null
70
+ */
71
+ start?: number;
72
+
73
+ /**
74
+ * It is used to get the end value for applying color.
75
+ *
76
+ * @default null
77
+ */
78
+ end?: number;
79
+
80
+ }
81
+
82
+ /**
83
+ * Interface for a class LimitData
84
+ */
85
+ export interface LimitDataModel {
86
+
87
+ /**
88
+ * It is used to enable the limit in the slider.
89
+ *
90
+ * @default false
91
+ */
92
+ enabled?: boolean;
93
+
94
+ /**
95
+ * It is used to set the minimum start limit value.
96
+ *
97
+ * @default null
98
+ */
99
+ minStart?: number;
100
+
101
+ /**
102
+ * It is used to set the minimum end limit value.
103
+ *
104
+ * @default null
105
+ */
106
+ minEnd?: number;
107
+
108
+ /**
109
+ * It is used to set the maximum start limit value.
110
+ *
111
+ * @default null
112
+ */
113
+ maxStart?: number;
114
+
115
+ /**
116
+ * It is used to set the maximum end limit value.
117
+ *
118
+ * @default null
119
+ */
120
+ maxEnd?: number;
121
+
122
+ /**
123
+ * It is used to lock the first handle.
124
+ * {% codeBlock src='slider/limitStartHandleFixed/index.md' %}{% endcodeBlock %}
125
+ *
126
+ * @default false
127
+ */
128
+ startHandleFixed?: boolean;
129
+
130
+ /**
131
+ * It is used to lock the second handle.
132
+ * {% codeBlock src='slider/limitEndHandleFixed/index.md' %}{% endcodeBlock %}
133
+ *
134
+ * @default false
135
+ */
136
+ endHandleFixed?: boolean;
137
+
138
+ }
139
+
140
+ /**
141
+ * Interface for a class TooltipData
142
+ */
143
+ export interface TooltipDataModel {
144
+
145
+ /**
146
+ * It is used to customize the Tooltip which accepts custom CSS class names that define
147
+ * specific user-defined styles and themes to be applied on the Tooltip element.
148
+ *
149
+ * @default ''
150
+ */
151
+ cssClass?: string;
152
+
153
+ /**
154
+ * It is used to denote the position for the tooltip element in the Slider. The available options are:
155
+ * {% codeBlock src='slider/tooltipplacement/index.md' %}{% endcodeBlock %}
156
+ * * Before - Tooltip is shown in the top of the horizontal slider bar or at the left of the vertical slider bar.
157
+ * * After - Tooltip is shown in the bottom of the horizontal slider bar or at the right of the vertical slider bar.
158
+ */
159
+ placement?: TooltipPlacement;
160
+
161
+ /**
162
+ * It is used to determine the device mode to show the Tooltip.
163
+ * If it is in desktop, it will show the Tooltip content when hovering on the target element.
164
+ * If it is in touch device. It will show the Tooltip content when tap and holding on the target element.
165
+ * {% codeBlock src='slider/tooltipShowOn/index.md' %}{% endcodeBlock %}
166
+ *
167
+ * @default 'Auto'
168
+ */
169
+ showOn?: TooltipShowOn;
170
+
171
+ /**
172
+ * It is used to show or hide the Tooltip of Slider Component.
173
+ * {% codeBlock src='slider/tooltipIsVisible/index.md' %}{% endcodeBlock %}
174
+ */
175
+ isVisible?: boolean;
176
+
177
+ /**
178
+ * It is used to customize the Tooltip content to the desired format
179
+ * using internationalization or events (custom formatting).
180
+ */
181
+ format?: string;
182
+
183
+ }
184
+
185
+ /**
186
+ * Interface for a class Slider
187
+ */
188
+ export interface SliderModel extends ComponentModel{
189
+
190
+ /**
191
+ * It is used to denote the current value of the Slider.
192
+ * The value should be specified in array of number when render Slider type as range.
193
+ *
194
+ * {% codeBlock src="slider/value-api/index.ts" %}{% endcodeBlock %}
195
+ *
196
+ * @default null
197
+ * @isGenericType true
198
+ */
199
+ value?: number | number[];
200
+
201
+ /**
202
+ * Specifies an array of slider values in number or string type.
203
+ * The min and max step values are not considered.
204
+ *
205
+ * @default null
206
+ */
207
+ customValues?: string[] | number[];
208
+
209
+ /**
210
+ * Specifies the step value for each value change when the increase / decrease
211
+ * button is clicked or on arrow keys press or on dragging the thumb.
212
+ * Refer the documentation [here](../../slider/ticks#step)
213
+ * to know more about this property.
214
+ *
215
+ * {% codeBlock src="slider/step-api/index.ts" %}{% endcodeBlock %}
216
+ *
217
+ * @default 1
218
+ */
219
+ step?: number;
220
+
221
+ /**
222
+ * Specifies the width of the Slider.
223
+ *
224
+ * @default null
225
+ */
226
+ width?: number | string;
227
+
228
+ /**
229
+ * Gets/Sets the minimum value of the slider.
230
+ *
231
+ * {% codeBlock src="slider/min-max-api/index.ts" %}{% endcodeBlock %}
232
+ *
233
+ * @default 0
234
+ */
235
+ min?: number;
236
+
237
+ /**
238
+ * Gets/Sets the maximum value of the slider.
239
+ *
240
+ * {% codeBlock src="slider/min-max-api/index.ts" %}{% endcodeBlock %}
241
+ *
242
+ * @default 100
243
+ */
244
+ max?: number;
245
+
246
+ /**
247
+ * Specifies whether the render the slider in read-only mode to restrict any user interaction.
248
+ * The slider rendered with user defined values and can’t be interacted with user actions.
249
+ *
250
+ * @default false
251
+ */
252
+ readonly?: boolean;
253
+
254
+ /**
255
+ * Defines the type of the Slider. The available options are:
256
+ * * default - Allows to a single value in the Slider.
257
+ * * minRange - Allows to select a single value in the Slider. It display’s a shadow from the start to the current value.
258
+ * * range - Allows to select a range of values in the Slider. It displays shadow in-between the selection range.
259
+ * {% codeBlock src='slider/types/index.md' %}{% endcodeBlock %}
260
+ *
261
+ * @default 'Default'
262
+ */
263
+ type?: SliderType;
264
+
265
+ /**
266
+ * Specifies the color to the slider based on given value.
267
+ */
268
+ colorRange?: ColorRangeDataModel[];
269
+
270
+ /**
271
+ * It is used to render the slider ticks options such as placement and step values.
272
+ * Refer the documentation [here](../../slider/ticks)
273
+ * to know more about this property with demo.
274
+ * {% codeBlock src='slider/ticks/index.md' %}{% endcodeBlock %}
275
+ * {% codeBlock src="slider/ticks-api/index.ts" %}{% endcodeBlock %}
276
+ *
277
+ * @default { placement: 'before' }
278
+ */
279
+ ticks?: TicksDataModel;
280
+
281
+ /**
282
+ * Specified the limit within which the slider to be moved.
283
+ * Refer the documentation [here](../../slider/limits)
284
+ * to know more about this property.
285
+ *
286
+ * {% codeBlock src="slider/limits-api/index.ts" %}{% endcodeBlock %}
287
+ *
288
+ * @default { enabled: false }
289
+ */
290
+ limits?: LimitDataModel;
291
+
292
+ /**
293
+ * Enable or Disable the slider.
294
+ *
295
+ * @default true
296
+ */
297
+ enabled?: boolean;
298
+
299
+ /**
300
+ * Specifies the visibility, position of the tooltip over the slider element.
301
+ *
302
+ * {% codeBlock src="slider/tooltip-api/index.ts" %}{% endcodeBlock %}
303
+ *
304
+ * @default { placement: 'Before', isVisible: false, showOn: 'Focus', format: null }
305
+ */
306
+ tooltip?: TooltipDataModel;
307
+
308
+ /**
309
+ * Specifies whether to show or hide the increase/decrease buttons
310
+ * of Slider to change the slider value.
311
+ * Refer the documentation [here](../../slider/getting-started#buttons)
312
+ * to know more about this property.
313
+ *
314
+ * {% codeBlock src="slider/showButtons-api/index.ts" %}{% endcodeBlock %}
315
+ *
316
+ * @default false
317
+ */
318
+ showButtons?: boolean;
319
+
320
+ /**
321
+ * Enable or Disable the animation for slider movement.
322
+ *
323
+ * @default true
324
+ */
325
+ enableAnimation?: boolean;
326
+
327
+ /**
328
+ * Specifies whether to render the slider in vertical or horizontal orientation.
329
+ * Refer the documentation [here](../../slider/orientation/)
330
+ * to know more about this property.
331
+ *
332
+ * @default 'Horizontal'
333
+ */
334
+ orientation?: SliderOrientation;
335
+
336
+ /**
337
+ * Specifies the custom classes to be added to the element used to customize the slider.
338
+ * {% codeBlock src='slider/cssClass/index.md' %}{% endcodeBlock %}
339
+ *
340
+ * @default ''
341
+ */
342
+ cssClass?: string;
343
+
344
+ /**
345
+ * Specifies whether to display or remove the untrusted HTML values in the Slider component.
346
+ * If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
347
+ *
348
+ * @default true
349
+ */
350
+ enableHtmlSanitizer?: boolean;
351
+
352
+ /**
353
+ * Triggers when the Slider is successfully created.
354
+ *
355
+ * @event created
356
+ */
357
+ created?: EmitType<Object>;
358
+
359
+ /**
360
+ * We can trigger change event whenever Slider value is changed.
361
+ * In other term, this event will be triggered while drag the slider thumb.
362
+ * {% codeBlock src='slider/changeEvent/index.md' %}{% endcodeBlock %}
363
+ *
364
+ * @event change
365
+ */
366
+ change?: EmitType<SliderChangeEventArgs>;
367
+
368
+ /**
369
+ * Fires whenever the Slider value is changed.
370
+ * In other term, this event will be triggered, while drag the slider thumb completed.
371
+ *
372
+ * @event changed
373
+ */
374
+ changed?: EmitType<SliderChangeEventArgs>;
375
+
376
+ /**
377
+ * Triggers on rendering the ticks element in the Slider,
378
+ * which is used to customize the ticks labels dynamically.
379
+ * {% codeBlock src='slider/renderingticksEvent/index.md' %}{% endcodeBlock %}
380
+ *
381
+ * @event renderingTicks
382
+ */
383
+ renderingTicks?: EmitType<SliderTickEventArgs>;
384
+
385
+ /**
386
+ * Triggers when the ticks are rendered on the Slider.
387
+ * {% codeBlock src='slider/renderedticksEvent/index.md' %}{% endcodeBlock %}
388
+ *
389
+ * @event renderedTicks
390
+ */
391
+ renderedTicks?: EmitType<SliderTickRenderedEventArgs>;
392
+
393
+ /**
394
+ * Triggers when the Sider tooltip value is changed.
395
+ * {% codeBlock src='slider/tooltipChangeEvent/index.md' %}{% endcodeBlock %}
396
+ *
397
+ * @event tooltipChange
398
+ */
399
+ tooltipChange?: EmitType<SliderTooltipEventArgs>;
400
+
401
+ }