@syncfusion/ej2-inputs 20.4.54 → 21.1.37
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.
- package/CHANGELOG.md +3 -30
- package/README.md +196 -119
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +174 -120
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +168 -114
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/color-picker/color-picker.d.ts +6 -1
- package/src/color-picker/color-picker.js +21 -4
- package/src/common/signature-base.js +6 -3
- package/src/form-validator/form-validator.js +23 -21
- package/src/input/input.js +10 -10
- package/src/maskedtextbox/base/mask-base.js +5 -5
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +3 -3
- package/src/numerictextbox/numerictextbox.js +4 -4
- package/src/rating/rating-model.d.ts +33 -11
- package/src/rating/rating.d.ts +25 -1
- package/src/rating/rating.js +65 -45
- package/src/slider/slider-model.d.ts +41 -6
- package/src/slider/slider.d.ts +113 -8
- package/src/slider/slider.js +14 -4
- package/src/textbox/textbox.js +4 -2
- package/src/uploader/uploader-model.d.ts +1 -1
- package/src/uploader/uploader.js +13 -13
- package/styles/bootstrap-dark.css +14 -0
- package/styles/bootstrap.css +14 -0
- package/styles/bootstrap4.css +14 -0
- package/styles/bootstrap5-dark.css +18 -4
- package/styles/bootstrap5.css +18 -4
- package/styles/color-picker/_layout.scss +78 -6
- package/styles/color-picker/_theme.scss +3 -0
- package/styles/color-picker/bootstrap-dark.css +6 -0
- package/styles/color-picker/bootstrap.css +6 -0
- package/styles/color-picker/bootstrap4.css +6 -0
- package/styles/color-picker/bootstrap5-dark.css +6 -0
- package/styles/color-picker/bootstrap5.css +6 -0
- package/styles/color-picker/fabric-dark.css +6 -0
- package/styles/color-picker/fabric.css +6 -0
- package/styles/color-picker/fluent-dark.css +6 -0
- package/styles/color-picker/fluent.css +6 -0
- package/styles/color-picker/highcontrast-light.css +6 -0
- package/styles/color-picker/highcontrast.css +6 -0
- package/styles/color-picker/material-dark.css +6 -0
- package/styles/color-picker/material.css +6 -0
- package/styles/color-picker/tailwind-dark.css +6 -0
- package/styles/color-picker/tailwind.css +6 -0
- package/styles/fabric-dark.css +14 -0
- package/styles/fabric.css +14 -0
- package/styles/fluent-dark.css +14 -0
- package/styles/fluent.css +14 -0
- package/styles/highcontrast-light.css +14 -0
- package/styles/highcontrast.css +14 -0
- package/styles/input/_bootstrap5-definition.scss +2 -2
- package/styles/input/_fluent-definition.scss +5 -5
- package/styles/input/_layout.scss +445 -445
- package/styles/input/_tailwind-definition.scss +14 -14
- package/styles/input/_theme.scss +218 -199
- package/styles/input/material-dark.css +1 -1
- package/styles/input/material.css +1 -1
- package/styles/maskedtextbox/_bootstrap5-definition.scss +2 -2
- package/styles/maskedtextbox/_fluent-definition.scss +2 -2
- package/styles/material-dark.css +15 -5
- package/styles/material.css +15 -1
- package/styles/numerictextbox/icons/_material3.scss +3 -3
- package/styles/rating/_bootstrap-dark-definition.scss +4 -3
- package/styles/rating/_bootstrap-definition.scss +4 -3
- package/styles/rating/_bootstrap4-definition.scss +4 -3
- package/styles/rating/_bootstrap5-definition.scss +16 -15
- package/styles/rating/_fabric-dark-definition.scss +4 -3
- package/styles/rating/_fabric-definition.scss +4 -3
- package/styles/rating/_fluent-definition.scss +16 -15
- package/styles/rating/_fusionnew-definition.scss +4 -3
- package/styles/rating/_highcontrast-definition.scss +4 -3
- package/styles/rating/_highcontrast-light-definition.scss +4 -3
- package/styles/rating/_layout.scss +8 -0
- package/styles/rating/_material-dark-definition.scss +4 -3
- package/styles/rating/_material-definition.scss +4 -3
- package/styles/rating/_tailwind-definition.scss +16 -15
- package/styles/rating/_theme.scss +14 -2
- package/styles/rating/bootstrap-dark.css +8 -0
- package/styles/rating/bootstrap.css +8 -0
- package/styles/rating/bootstrap4.css +8 -0
- package/styles/rating/bootstrap5-dark.css +8 -0
- package/styles/rating/bootstrap5.css +8 -0
- package/styles/rating/fabric-dark.css +8 -0
- package/styles/rating/fabric.css +8 -0
- package/styles/rating/fluent-dark.css +8 -0
- package/styles/rating/fluent.css +8 -0
- package/styles/rating/highcontrast-light.css +8 -0
- package/styles/rating/highcontrast.css +8 -0
- package/styles/rating/material-dark.css +8 -0
- package/styles/rating/material.css +8 -0
- package/styles/rating/tailwind-dark.css +9 -1
- package/styles/rating/tailwind.css +9 -1
- package/styles/slider/_layout.scss +44 -25
- package/styles/slider/_theme.scss +6 -1
- package/styles/tailwind-dark.css +16 -2
- package/styles/tailwind.css +16 -2
- package/styles/uploader/_bootstrap5-definition.scss +12 -12
- package/styles/uploader/_fluent-definition.scss +10 -10
- package/styles/uploader/_layout.scss +7 -2
- package/styles/uploader/_tailwind-definition.scss +10 -10
- package/styles/uploader/_theme.scss +13 -3
- package/styles/uploader/bootstrap5-dark.css +4 -4
- package/styles/uploader/bootstrap5.css +4 -4
- package/styles/uploader/material-dark.css +0 -4
- package/styles/uploader/tailwind-dark.css +1 -1
- package/styles/uploader/tailwind.css +1 -1
- package/styles/color-picker/_material3-definition.scss +0 -133
- package/styles/input/_material3-definition.scss +0 -336
- package/styles/maskedtextbox/_material3-definition.scss +0 -7
- package/styles/numerictextbox/_material3-definition.scss +0 -3
- package/styles/rating/_material3-definition.scss +0 -46
- package/styles/signature/_material3-definition.scss +0 -3
- package/styles/slider/_material3-definition.scss +0 -90
- package/styles/textbox/_material3-definition.scss +0 -1
- package/styles/uploader/_material3-definition.scss +0 -216
package/src/slider/slider.d.ts
CHANGED
|
@@ -13,23 +13,27 @@ export declare class TicksData extends ChildProperty<TicksData> {
|
|
|
13
13
|
* * both - Ticks are placed on the both side of the Slider bar.
|
|
14
14
|
* * none - Ticks are not shown.
|
|
15
15
|
* {% codeBlock src='slider/placement/index.md' %}{% endcodeBlock %}
|
|
16
|
+
*
|
|
16
17
|
* @default 'None'
|
|
17
18
|
*/
|
|
18
19
|
placement: Placement;
|
|
19
20
|
/**
|
|
20
21
|
* It is used to denote the distance between two major (large) ticks from the scale of the Slider.
|
|
21
22
|
* {% codeBlock src='slider/largestep/index.md' %}{% endcodeBlock %}
|
|
23
|
+
*
|
|
22
24
|
* @default 10
|
|
23
25
|
*/
|
|
24
26
|
largeStep: number;
|
|
25
27
|
/**
|
|
26
28
|
* It is used to denote the distance between two minor (small) ticks from the scale of the Slider.
|
|
27
29
|
* {% codeBlock src='slider/smallstep/index.md' %}{% endcodeBlock %}
|
|
30
|
+
*
|
|
28
31
|
* @default 1
|
|
29
32
|
*/
|
|
30
33
|
smallStep: number;
|
|
31
34
|
/**
|
|
32
35
|
* We can show or hide the small ticks in the Slider, which will be appeared in between the largeTicks.
|
|
36
|
+
*
|
|
33
37
|
* @default false
|
|
34
38
|
*/
|
|
35
39
|
showSmallTicks: boolean;
|
|
@@ -45,6 +49,7 @@ export declare class TicksData extends ChildProperty<TicksData> {
|
|
|
45
49
|
export interface SliderTooltipEventArgs {
|
|
46
50
|
/**
|
|
47
51
|
* It is used to get the value of the Slider.
|
|
52
|
+
*
|
|
48
53
|
* @isGenericType true
|
|
49
54
|
*/
|
|
50
55
|
value: number | number[];
|
|
@@ -59,11 +64,13 @@ export interface SliderTooltipEventArgs {
|
|
|
59
64
|
export interface SliderChangeEventArgs {
|
|
60
65
|
/**
|
|
61
66
|
* It is used to get the current value of the Slider.
|
|
67
|
+
*
|
|
62
68
|
* @isGenericType true
|
|
63
69
|
*/
|
|
64
70
|
value: number | number[];
|
|
65
71
|
/**
|
|
66
72
|
* It is used to get the previous value of the Slider.
|
|
73
|
+
*
|
|
67
74
|
* @isGenericType true
|
|
68
75
|
*/
|
|
69
76
|
previousValue: number | number[];
|
|
@@ -117,16 +124,19 @@ export interface SliderTickRenderedEventArgs {
|
|
|
117
124
|
export declare class ColorRangeData extends ChildProperty<ColorRangeData> {
|
|
118
125
|
/**
|
|
119
126
|
* It is used to set the color in the slider bar.
|
|
127
|
+
*
|
|
120
128
|
* @default ''
|
|
121
129
|
*/
|
|
122
130
|
color: string;
|
|
123
131
|
/**
|
|
124
132
|
* It is used to get the starting value for applying color.
|
|
133
|
+
*
|
|
125
134
|
* @default null
|
|
126
135
|
*/
|
|
127
136
|
start: number;
|
|
128
137
|
/**
|
|
129
138
|
* It is used to get the end value for applying color.
|
|
139
|
+
*
|
|
130
140
|
* @default null
|
|
131
141
|
*/
|
|
132
142
|
end: number;
|
|
@@ -138,38 +148,45 @@ export declare class ColorRangeData extends ChildProperty<ColorRangeData> {
|
|
|
138
148
|
export declare class LimitData extends ChildProperty<LimitData> {
|
|
139
149
|
/**
|
|
140
150
|
* It is used to enable the limit in the slider.
|
|
151
|
+
*
|
|
141
152
|
* @default false
|
|
142
153
|
*/
|
|
143
154
|
enabled: boolean;
|
|
144
155
|
/**
|
|
145
156
|
* It is used to set the minimum start limit value.
|
|
157
|
+
*
|
|
146
158
|
* @default null
|
|
147
159
|
*/
|
|
148
160
|
minStart: number;
|
|
149
161
|
/**
|
|
150
162
|
* It is used to set the minimum end limit value.
|
|
163
|
+
*
|
|
151
164
|
* @default null
|
|
152
165
|
*/
|
|
153
166
|
minEnd: number;
|
|
154
167
|
/**
|
|
155
168
|
* It is used to set the maximum start limit value.
|
|
169
|
+
*
|
|
156
170
|
* @default null
|
|
157
171
|
*/
|
|
158
172
|
maxStart: number;
|
|
159
173
|
/**
|
|
160
174
|
* It is used to set the maximum end limit value.
|
|
175
|
+
*
|
|
161
176
|
* @default null
|
|
162
177
|
*/
|
|
163
178
|
maxEnd: number;
|
|
164
179
|
/**
|
|
165
180
|
* It is used to lock the first handle.
|
|
166
181
|
* {% codeBlock src='slider/limitStartHandleFixed/index.md' %}{% endcodeBlock %}
|
|
182
|
+
*
|
|
167
183
|
* @default false
|
|
168
184
|
*/
|
|
169
185
|
startHandleFixed: boolean;
|
|
170
186
|
/**
|
|
171
187
|
* It is used to lock the second handle.
|
|
172
188
|
* {% codeBlock src='slider/limitEndHandleFixed/index.md' %}{% endcodeBlock %}
|
|
189
|
+
*
|
|
173
190
|
* @default false
|
|
174
191
|
*/
|
|
175
192
|
endHandleFixed: boolean;
|
|
@@ -181,6 +198,7 @@ export declare class TooltipData extends ChildProperty<TooltipData> {
|
|
|
181
198
|
/**
|
|
182
199
|
* It is used to customize the Tooltip which accepts custom CSS class names that define
|
|
183
200
|
* specific user-defined styles and themes to be applied on the Tooltip element.
|
|
201
|
+
*
|
|
184
202
|
* @default ''
|
|
185
203
|
*/
|
|
186
204
|
cssClass: string;
|
|
@@ -196,6 +214,7 @@ export declare class TooltipData extends ChildProperty<TooltipData> {
|
|
|
196
214
|
* If it is in desktop, it will show the Tooltip content when hovering on the target element.
|
|
197
215
|
* If it is in touch device. It will show the Tooltip content when tap and holding on the target element.
|
|
198
216
|
* {% codeBlock src='slider/tooltipShowOn/index.md' %}{% endcodeBlock %}
|
|
217
|
+
*
|
|
199
218
|
* @default 'Auto'
|
|
200
219
|
*/
|
|
201
220
|
showOn: TooltipShowOn;
|
|
@@ -213,23 +232,83 @@ export declare class TooltipData extends ChildProperty<TooltipData> {
|
|
|
213
232
|
/**
|
|
214
233
|
* Ticks Placement.
|
|
215
234
|
*/
|
|
216
|
-
export declare type Placement =
|
|
235
|
+
export declare type Placement =
|
|
236
|
+
/**
|
|
237
|
+
* Ticks are placed in the top of the horizontal slider bar or at the left of the vertical slider bar.
|
|
238
|
+
*/
|
|
239
|
+
'Before' |
|
|
240
|
+
/**
|
|
241
|
+
* Ticks are placed in the bottom of the horizontal slider bar or at the right of the vertical slider bar.
|
|
242
|
+
*/
|
|
243
|
+
'After' |
|
|
244
|
+
/**
|
|
245
|
+
* Ticks are placed on the both side of the slider bar.
|
|
246
|
+
*/
|
|
247
|
+
'Both' |
|
|
248
|
+
/**
|
|
249
|
+
* Ticks are not shown.
|
|
250
|
+
*/
|
|
251
|
+
'None';
|
|
217
252
|
/**
|
|
218
253
|
* Tooltip Placement.
|
|
219
254
|
*/
|
|
220
|
-
export declare type TooltipPlacement =
|
|
255
|
+
export declare type TooltipPlacement =
|
|
256
|
+
/**
|
|
257
|
+
* Tooltip is shown in the top of the horizontal slider bar or at the left of the vertical slider bar.
|
|
258
|
+
*/
|
|
259
|
+
'Before' |
|
|
260
|
+
/**
|
|
261
|
+
* Tooltip is shown in the bottom of the horizontal slider bar or at the right of the vertical slider bar.
|
|
262
|
+
*/
|
|
263
|
+
'After';
|
|
221
264
|
/**
|
|
222
265
|
* Tooltip ShowOn.
|
|
223
266
|
*/
|
|
224
|
-
export declare type TooltipShowOn =
|
|
267
|
+
export declare type TooltipShowOn =
|
|
268
|
+
/**
|
|
269
|
+
* Tooltip is shown while focusing the Slider handle.
|
|
270
|
+
*/
|
|
271
|
+
'Focus' |
|
|
272
|
+
/**
|
|
273
|
+
* Tooltip is shown while hovering the Slider handle.
|
|
274
|
+
*/
|
|
275
|
+
'Hover' |
|
|
276
|
+
/**
|
|
277
|
+
* Tooltip is shown always.
|
|
278
|
+
*/
|
|
279
|
+
'Always' |
|
|
280
|
+
/**
|
|
281
|
+
* Tooltip is shown while hovering the Slider handle in desktop and tap and hold in touch devices.
|
|
282
|
+
*/
|
|
283
|
+
'Auto';
|
|
225
284
|
/**
|
|
226
285
|
* Slider type.
|
|
227
286
|
*/
|
|
228
|
-
export declare type SliderType =
|
|
287
|
+
export declare type SliderType =
|
|
288
|
+
/**
|
|
289
|
+
* Allows to select a single value in the Slider.
|
|
290
|
+
*/
|
|
291
|
+
'Default' |
|
|
292
|
+
/**
|
|
293
|
+
* Allows to select a single value in the Slider, it display’s a shadow from the start to the current value.
|
|
294
|
+
*/
|
|
295
|
+
'MinRange' |
|
|
296
|
+
/**
|
|
297
|
+
* Allows to select a range of values in the Slider.
|
|
298
|
+
*/
|
|
299
|
+
'Range';
|
|
229
300
|
/**
|
|
230
301
|
* Slider orientation.
|
|
231
302
|
*/
|
|
232
|
-
export declare type SliderOrientation =
|
|
303
|
+
export declare type SliderOrientation =
|
|
304
|
+
/**
|
|
305
|
+
* Renders the slider in horizontal orientation.
|
|
306
|
+
*/
|
|
307
|
+
'Horizontal' |
|
|
308
|
+
/**
|
|
309
|
+
* Renders the slider in vertical orientation.
|
|
310
|
+
*/
|
|
311
|
+
'Vertical';
|
|
233
312
|
/**
|
|
234
313
|
* The Slider component allows the user to select a value or range
|
|
235
314
|
* of values in-between a min and max range, by dragging the handle over the slider bar.
|
|
@@ -312,6 +391,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
312
391
|
* The value should be specified in array of number when render Slider type as range.
|
|
313
392
|
*
|
|
314
393
|
* {% codeBlock src="slider/value-api/index.ts" %}{% endcodeBlock %}
|
|
394
|
+
*
|
|
315
395
|
* @default null
|
|
316
396
|
* @isGenericType true
|
|
317
397
|
*/
|
|
@@ -319,6 +399,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
319
399
|
/**
|
|
320
400
|
* Specifies an array of slider values in number or string type.
|
|
321
401
|
* The min and max step values are not considered.
|
|
402
|
+
*
|
|
322
403
|
* @default null
|
|
323
404
|
*/
|
|
324
405
|
customValues: string[] | number[];
|
|
@@ -329,11 +410,13 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
329
410
|
* to know more about this property.
|
|
330
411
|
*
|
|
331
412
|
* {% codeBlock src="slider/step-api/index.ts" %}{% endcodeBlock %}
|
|
413
|
+
*
|
|
332
414
|
* @default 1
|
|
333
415
|
*/
|
|
334
416
|
step: number;
|
|
335
417
|
/**
|
|
336
418
|
* Specifies the width of the Slider.
|
|
419
|
+
*
|
|
337
420
|
* @default null
|
|
338
421
|
*/
|
|
339
422
|
width: number | string;
|
|
@@ -341,6 +424,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
341
424
|
* Gets/Sets the minimum value of the slider.
|
|
342
425
|
*
|
|
343
426
|
* {% codeBlock src="slider/min-max-api/index.ts" %}{% endcodeBlock %}
|
|
427
|
+
*
|
|
344
428
|
* @default 0
|
|
345
429
|
*/
|
|
346
430
|
min: number;
|
|
@@ -348,12 +432,14 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
348
432
|
* Gets/Sets the maximum value of the slider.
|
|
349
433
|
*
|
|
350
434
|
* {% codeBlock src="slider/min-max-api/index.ts" %}{% endcodeBlock %}
|
|
435
|
+
*
|
|
351
436
|
* @default 100
|
|
352
437
|
*/
|
|
353
438
|
max: number;
|
|
354
439
|
/**
|
|
355
440
|
* Specifies whether the render the slider in read-only mode to restrict any user interaction.
|
|
356
441
|
* The slider rendered with user defined values and can’t be interacted with user actions.
|
|
442
|
+
*
|
|
357
443
|
* @default false
|
|
358
444
|
*/
|
|
359
445
|
readonly: boolean;
|
|
@@ -363,6 +449,8 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
363
449
|
* * minRange - Allows to select a single value in the Slider. It display’s a shadow from the start to the current value.
|
|
364
450
|
* * range - Allows to select a range of values in the Slider. It displays shadow in-between the selection range.
|
|
365
451
|
* {% codeBlock src='slider/types/index.md' %}{% endcodeBlock %}
|
|
452
|
+
*
|
|
453
|
+
* @default 'Default'
|
|
366
454
|
*/
|
|
367
455
|
type: SliderType;
|
|
368
456
|
/**
|
|
@@ -375,6 +463,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
375
463
|
* to know more about this property with demo.
|
|
376
464
|
* {% codeBlock src='slider/ticks/index.md' %}{% endcodeBlock %}
|
|
377
465
|
* {% codeBlock src="slider/ticks-api/index.ts" %}{% endcodeBlock %}
|
|
466
|
+
*
|
|
378
467
|
* @default { placement: 'before' }
|
|
379
468
|
*/
|
|
380
469
|
ticks: TicksDataModel;
|
|
@@ -384,11 +473,13 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
384
473
|
* to know more about this property.
|
|
385
474
|
*
|
|
386
475
|
* {% codeBlock src="slider/limits-api/index.ts" %}{% endcodeBlock %}
|
|
476
|
+
*
|
|
387
477
|
* @default { enabled: false }
|
|
388
478
|
*/
|
|
389
479
|
limits: LimitDataModel;
|
|
390
480
|
/**
|
|
391
|
-
*
|
|
481
|
+
* Enable or Disable the slider.
|
|
482
|
+
*
|
|
392
483
|
* @default true
|
|
393
484
|
*/
|
|
394
485
|
enabled: boolean;
|
|
@@ -396,6 +487,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
396
487
|
* Specifies the visibility, position of the tooltip over the slider element.
|
|
397
488
|
*
|
|
398
489
|
* {% codeBlock src="slider/tooltip-api/index.ts" %}{% endcodeBlock %}
|
|
490
|
+
*
|
|
399
491
|
* @default { placement: 'Before', isVisible: false, showOn: 'Focus', format: null }
|
|
400
492
|
*/
|
|
401
493
|
tooltip: TooltipDataModel;
|
|
@@ -406,34 +498,40 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
406
498
|
* to know more about this property.
|
|
407
499
|
*
|
|
408
500
|
* {% codeBlock src="slider/showButtons-api/index.ts" %}{% endcodeBlock %}
|
|
501
|
+
*
|
|
409
502
|
* @default false
|
|
410
503
|
*/
|
|
411
504
|
showButtons: boolean;
|
|
412
505
|
/**
|
|
413
|
-
*
|
|
506
|
+
* Enable or Disable the animation for slider movement.
|
|
507
|
+
*
|
|
414
508
|
* @default true
|
|
415
509
|
*/
|
|
416
510
|
enableAnimation: boolean;
|
|
417
511
|
/**
|
|
418
512
|
* Specifies whether to render the slider in vertical or horizontal orientation.
|
|
419
|
-
* Refer the documentation [here](../../slider/
|
|
513
|
+
* Refer the documentation [here](../../slider/orientation/)
|
|
420
514
|
* to know more about this property.
|
|
515
|
+
*
|
|
421
516
|
* @default 'Horizontal'
|
|
422
517
|
*/
|
|
423
518
|
orientation: SliderOrientation;
|
|
424
519
|
/**
|
|
425
520
|
* Specifies the custom classes to be added to the element used to customize the slider.
|
|
426
521
|
* {% codeBlock src='slider/cssClass/index.md' %}{% endcodeBlock %}
|
|
522
|
+
*
|
|
427
523
|
* @default ''
|
|
428
524
|
*/
|
|
429
525
|
cssClass: string;
|
|
430
526
|
/**
|
|
431
527
|
* Defines whether to allow the cross-scripting site or not.
|
|
528
|
+
*
|
|
432
529
|
* @default false
|
|
433
530
|
*/
|
|
434
531
|
enableHtmlSanitizer: boolean;
|
|
435
532
|
/**
|
|
436
533
|
* Triggers when the Slider is successfully created.
|
|
534
|
+
*
|
|
437
535
|
* @event
|
|
438
536
|
*/
|
|
439
537
|
created: EmitType<Object>;
|
|
@@ -481,6 +579,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
481
579
|
private fractionalToInteger;
|
|
482
580
|
/**
|
|
483
581
|
* To Initialize the control rendering
|
|
582
|
+
*
|
|
484
583
|
* @private
|
|
485
584
|
*/
|
|
486
585
|
render(): void;
|
|
@@ -491,6 +590,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
491
590
|
private getTheme;
|
|
492
591
|
/**
|
|
493
592
|
* Initialize the rendering
|
|
593
|
+
*
|
|
494
594
|
* @private
|
|
495
595
|
*/
|
|
496
596
|
private initRender;
|
|
@@ -571,6 +671,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
571
671
|
private checkHandleValue;
|
|
572
672
|
/**
|
|
573
673
|
* It is used to reposition slider.
|
|
674
|
+
*
|
|
574
675
|
* @returns void
|
|
575
676
|
*/
|
|
576
677
|
reposition(): void;
|
|
@@ -608,18 +709,21 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
608
709
|
private limitsPropertyChange;
|
|
609
710
|
/**
|
|
610
711
|
* Get the properties to be maintained in the persisted state.
|
|
712
|
+
*
|
|
611
713
|
* @private
|
|
612
714
|
*/
|
|
613
715
|
protected getPersistData(): string;
|
|
614
716
|
/**
|
|
615
717
|
* Removes the component from the DOM and detaches all its related event handlers.
|
|
616
718
|
* Also it removes the attributes and classes.
|
|
719
|
+
*
|
|
617
720
|
* @method destroy
|
|
618
721
|
* @return {void}
|
|
619
722
|
*/
|
|
620
723
|
destroy(): void;
|
|
621
724
|
/**
|
|
622
725
|
* Calls internally if any of the property value is changed.
|
|
726
|
+
*
|
|
623
727
|
* @private
|
|
624
728
|
*/
|
|
625
729
|
onPropertyChanged(newProp: SliderModel, oldProp: SliderModel): void;
|
|
@@ -630,6 +734,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
630
734
|
private setBarColor;
|
|
631
735
|
/**
|
|
632
736
|
* Gets the component name
|
|
737
|
+
*
|
|
633
738
|
* @private
|
|
634
739
|
*/
|
|
635
740
|
getModuleName(): string;
|
package/src/slider/slider.js
CHANGED
|
@@ -305,6 +305,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
305
305
|
};
|
|
306
306
|
/**
|
|
307
307
|
* To Initialize the control rendering
|
|
308
|
+
*
|
|
308
309
|
* @private
|
|
309
310
|
*/
|
|
310
311
|
Slider.prototype.render = function () {
|
|
@@ -315,7 +316,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
315
316
|
this.setZindex();
|
|
316
317
|
this.renderComplete();
|
|
317
318
|
if (this.element.tagName === 'EJS-SLIDER') {
|
|
318
|
-
if (this.getTheme(this.sliderContainer) ==
|
|
319
|
+
if (this.getTheme(this.sliderContainer) == 'none') {
|
|
319
320
|
setTimeout(function () {
|
|
320
321
|
_this.refresh();
|
|
321
322
|
}, 0);
|
|
@@ -366,6 +367,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
366
367
|
};
|
|
367
368
|
/**
|
|
368
369
|
* Initialize the rendering
|
|
370
|
+
*
|
|
369
371
|
* @private
|
|
370
372
|
*/
|
|
371
373
|
Slider.prototype.initRender = function () {
|
|
@@ -962,7 +964,6 @@ var Slider = /** @class */ (function (_super) {
|
|
|
962
964
|
this.sliderContainer.classList.add(classNames.materialSlider);
|
|
963
965
|
this.tooltipValue();
|
|
964
966
|
this.tooltipObj.animation.close.effect = 'None';
|
|
965
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input
|
|
966
967
|
this.tooltipObj.open(this.firstHandle);
|
|
967
968
|
}
|
|
968
969
|
};
|
|
@@ -1795,6 +1796,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
1795
1796
|
};
|
|
1796
1797
|
/**
|
|
1797
1798
|
* It is used to reposition slider.
|
|
1799
|
+
*
|
|
1798
1800
|
* @returns void
|
|
1799
1801
|
*/
|
|
1800
1802
|
Slider.prototype.reposition = function () {
|
|
@@ -2045,7 +2047,12 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2045
2047
|
focusedElement.classList.remove(classNames.sliderTabHandle);
|
|
2046
2048
|
}
|
|
2047
2049
|
var handle = this.activeHandle === 1 ? this.firstHandle : this.secondHandle;
|
|
2048
|
-
|
|
2050
|
+
var behindElement;
|
|
2051
|
+
if ((evt.type === 'click' || evt.type === 'mousedown') && evt.target === handle) {
|
|
2052
|
+
var eventX = evt.clientX, eventY = evt.clientY;
|
|
2053
|
+
behindElement = document.elementFromPoint(eventX, eventY);
|
|
2054
|
+
}
|
|
2055
|
+
if (evt.target === handle && behindElement != handle) {
|
|
2049
2056
|
if (this.isMaterial && !this.tooltip.isVisible &&
|
|
2050
2057
|
!this.getHandle().classList.contains(classNames.sliderTabHandle)) {
|
|
2051
2058
|
this.materialChange();
|
|
@@ -2296,7 +2303,6 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2296
2303
|
Slider.prototype.openTooltip = function (target) {
|
|
2297
2304
|
if (this.tooltip.isVisible && this.tooltipObj && !this.isMaterialTooltip) {
|
|
2298
2305
|
this.tooltipValue();
|
|
2299
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input
|
|
2300
2306
|
this.tooltipObj.open(target);
|
|
2301
2307
|
this.tooltipTarget = target;
|
|
2302
2308
|
}
|
|
@@ -2616,6 +2622,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2616
2622
|
};
|
|
2617
2623
|
/**
|
|
2618
2624
|
* Get the properties to be maintained in the persisted state.
|
|
2625
|
+
*
|
|
2619
2626
|
* @private
|
|
2620
2627
|
*/
|
|
2621
2628
|
Slider.prototype.getPersistData = function () {
|
|
@@ -2625,6 +2632,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2625
2632
|
/**
|
|
2626
2633
|
* Removes the component from the DOM and detaches all its related event handlers.
|
|
2627
2634
|
* Also it removes the attributes and classes.
|
|
2635
|
+
*
|
|
2628
2636
|
* @method destroy
|
|
2629
2637
|
* @return {void}
|
|
2630
2638
|
*/
|
|
@@ -2646,6 +2654,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2646
2654
|
};
|
|
2647
2655
|
/**
|
|
2648
2656
|
* Calls internally if any of the property value is changed.
|
|
2657
|
+
*
|
|
2649
2658
|
* @private
|
|
2650
2659
|
*/
|
|
2651
2660
|
// tslint:disable-next-line
|
|
@@ -2864,6 +2873,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2864
2873
|
};
|
|
2865
2874
|
/**
|
|
2866
2875
|
* Gets the component name
|
|
2876
|
+
*
|
|
2867
2877
|
* @private
|
|
2868
2878
|
*/
|
|
2869
2879
|
Slider.prototype.getModuleName = function () {
|
package/src/textbox/textbox.js
CHANGED
|
@@ -203,7 +203,9 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
203
203
|
if (this.element.tagName !== 'TEXTAREA') {
|
|
204
204
|
this.element.setAttribute('type', this.type);
|
|
205
205
|
}
|
|
206
|
-
this.
|
|
206
|
+
if (this.type === 'text') {
|
|
207
|
+
this.element.setAttribute('role', 'textbox');
|
|
208
|
+
}
|
|
207
209
|
this.globalize = new Internationalization(this.locale);
|
|
208
210
|
var localeText = { placeholder: this.placeholder };
|
|
209
211
|
this.l10n = new L10n('textbox', localeText, this.locale);
|
|
@@ -336,7 +338,7 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
336
338
|
this.inputPreviousValue = this.value;
|
|
337
339
|
this.respectiveElement.defaultValue = this.respectiveElement.value;
|
|
338
340
|
Input.setWidth(this.width, this.textboxWrapper.container);
|
|
339
|
-
if (!isNullOrUndefined(closest(this.element,
|
|
341
|
+
if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
|
|
340
342
|
this.enabled = false;
|
|
341
343
|
}
|
|
342
344
|
this.renderComplete();
|
|
@@ -132,7 +132,7 @@ export interface UploaderModel extends ComponentModel{
|
|
|
132
132
|
/**
|
|
133
133
|
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
134
134
|
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
135
|
-
*
|
|
135
|
+
*
|
|
136
136
|
* {% codeBlock src='uploader/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
137
137
|
*
|
|
138
138
|
* @default {}
|
package/src/uploader/uploader.js
CHANGED
|
@@ -909,7 +909,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
909
909
|
/* istanbul ignore next */
|
|
910
910
|
Uploader.prototype.onPasteFile = function (event) {
|
|
911
911
|
var item = event.clipboardData.items;
|
|
912
|
-
if (event.type
|
|
912
|
+
if (event.type === 'paste' && this.browserName !== 'msie' && this.browserName !== 'edge' && this.browserName !== 'safari') {
|
|
913
913
|
this.element.files = event.clipboardData.files;
|
|
914
914
|
}
|
|
915
915
|
if (item.length !== 1) {
|
|
@@ -1286,14 +1286,14 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
1286
1286
|
if (this.enableHtmlSanitizer) {
|
|
1287
1287
|
for (var i = 0; i < fileData.length; i++) {
|
|
1288
1288
|
var sanitizeFile = SanitizeHtmlHelper.beforeSanitize();
|
|
1289
|
-
var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[i].name);
|
|
1290
|
-
if (sanitizeFileName
|
|
1291
|
-
var encodedFileName = targetFiles[i].name.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
|
|
1289
|
+
var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[parseInt(i.toString())].name);
|
|
1290
|
+
if (sanitizeFileName !== fileData[parseInt(i.toString())].name) {
|
|
1291
|
+
var encodedFileName = targetFiles[parseInt(i.toString())].name.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
|
|
1292
1292
|
return '&#' + i.charCodeAt(0) + ';';
|
|
1293
1293
|
});
|
|
1294
|
-
fileData[i].name = encodedFileName;
|
|
1295
|
-
fileData[i].status = this.localizedTexts('invalidFileName');
|
|
1296
|
-
fileData[i].statusCode = '0';
|
|
1294
|
+
fileData[parseInt(i.toString())].name = encodedFileName;
|
|
1295
|
+
fileData[parseInt(i.toString())].status = this.localizedTexts('invalidFileName');
|
|
1296
|
+
fileData[parseInt(i.toString())].statusCode = '0';
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
@@ -2533,13 +2533,13 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
2533
2533
|
this.updateStatus(metaData.file, this.localizedTexts('fileUploadCancel'), '5');
|
|
2534
2534
|
this.updateProgressBarClasses(liElement, UPLOAD_FAILED);
|
|
2535
2535
|
this.removeProgressbar(liElement, 'failure');
|
|
2536
|
-
deleteIcon && deleteIcon.classList.remove(ABORT_ICON);
|
|
2537
|
-
deleteIcon && deleteIcon.classList.add(REMOVE_ICON);
|
|
2538
|
-
deleteIcon && deleteIcon.setAttribute('title', this.localizedTexts('remove'));
|
|
2536
|
+
(deleteIcon && deleteIcon.classList.remove(ABORT_ICON));
|
|
2537
|
+
(deleteIcon && deleteIcon.classList.add(REMOVE_ICON));
|
|
2538
|
+
(deleteIcon && deleteIcon.setAttribute('title', this.localizedTexts('remove')));
|
|
2539
2539
|
var pauseIcon = liElement.querySelector('.' + PAUSE_UPLOAD);
|
|
2540
|
-
pauseIcon && pauseIcon.classList.add(RETRY_ICON);
|
|
2541
|
-
pauseIcon && pauseIcon.classList.remove(PAUSE_UPLOAD);
|
|
2542
|
-
pauseIcon && pauseIcon.setAttribute('title', this.localizedTexts('retry'));
|
|
2540
|
+
(pauseIcon && pauseIcon.classList.add(RETRY_ICON));
|
|
2541
|
+
(pauseIcon && pauseIcon.classList.remove(PAUSE_UPLOAD));
|
|
2542
|
+
(pauseIcon && pauseIcon.setAttribute('title', this.localizedTexts('retry')));
|
|
2543
2543
|
if (!isNullOrUndefined(liElement) && !isNullOrUndefined(deleteIcon)
|
|
2544
2544
|
&& !isNullOrUndefined(liElement.querySelector('.e-spinner-pane'))) {
|
|
2545
2545
|
hideSpinner(spinnerTarget);
|
|
@@ -6162,6 +6162,12 @@ body.e-colorpicker-overflow {
|
|
|
6162
6162
|
.e-bigger.e-colorpicker-container .e-split-btn-wrapper.e-rtl .e-split-colorpicker.e-split-btn {
|
|
6163
6163
|
padding: 0 6px;
|
|
6164
6164
|
}
|
|
6165
|
+
.e-bigger .e-colorpicker-wrapper .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn),
|
|
6166
|
+
.e-bigger.e-colorpicker-wrapper .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn),
|
|
6167
|
+
.e-bigger .e-colorpicker-container .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn),
|
|
6168
|
+
.e-bigger.e-colorpicker-container .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn) {
|
|
6169
|
+
line-height: 0;
|
|
6170
|
+
}
|
|
6165
6171
|
|
|
6166
6172
|
.e-container {
|
|
6167
6173
|
border: 0;
|
|
@@ -6805,6 +6811,8 @@ body.e-colorpicker-overflow {
|
|
|
6805
6811
|
padding: 4px;
|
|
6806
6812
|
line-height: 9px;
|
|
6807
6813
|
display: block;
|
|
6814
|
+
min-width: 28px;
|
|
6815
|
+
min-height: 28px;
|
|
6808
6816
|
position: relative;
|
|
6809
6817
|
}
|
|
6810
6818
|
.e-rating-container .e-rating-item-container .e-rating-item {
|
|
@@ -6900,6 +6908,8 @@ body.e-colorpicker-overflow {
|
|
|
6900
6908
|
.e-small .e-rating-container .e-rating-item-container {
|
|
6901
6909
|
font-size: 16px;
|
|
6902
6910
|
line-height: 4px;
|
|
6911
|
+
min-height: 24px;
|
|
6912
|
+
min-width: 24px;
|
|
6903
6913
|
}
|
|
6904
6914
|
.e-small.e-rating-container .e-rating-label,
|
|
6905
6915
|
.e-small .e-rating-container .e-rating-label {
|
|
@@ -6915,6 +6925,8 @@ body.e-colorpicker-overflow {
|
|
|
6915
6925
|
.e-bigger .e-rating-container .e-rating-item-container {
|
|
6916
6926
|
font-size: 32px;
|
|
6917
6927
|
line-height: 16px;
|
|
6928
|
+
min-width: 40px;
|
|
6929
|
+
min-height: 40px;
|
|
6918
6930
|
}
|
|
6919
6931
|
.e-bigger.e-rating-container .e-rating-label,
|
|
6920
6932
|
.e-bigger .e-rating-container .e-rating-label {
|
|
@@ -6932,6 +6944,8 @@ body.e-colorpicker-overflow {
|
|
|
6932
6944
|
.e-small .e-bigger.e-rating-container .e-rating-item-container {
|
|
6933
6945
|
font-size: 26px;
|
|
6934
6946
|
line-height: 9px;
|
|
6947
|
+
min-width: 34px;
|
|
6948
|
+
min-height: 34px;
|
|
6935
6949
|
}
|
|
6936
6950
|
.e-bigger.e-small.e-rating-container .e-rating-label,
|
|
6937
6951
|
.e-bigger.e-small .e-rating-container .e-rating-label,
|
package/styles/bootstrap.css
CHANGED
|
@@ -6141,6 +6141,12 @@ body.e-colorpicker-overflow {
|
|
|
6141
6141
|
.e-bigger.e-colorpicker-container .e-split-btn-wrapper.e-rtl .e-split-colorpicker.e-split-btn {
|
|
6142
6142
|
padding: 0 6px;
|
|
6143
6143
|
}
|
|
6144
|
+
.e-bigger .e-colorpicker-wrapper .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn),
|
|
6145
|
+
.e-bigger.e-colorpicker-wrapper .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn),
|
|
6146
|
+
.e-bigger .e-colorpicker-container .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn),
|
|
6147
|
+
.e-bigger.e-colorpicker-container .e-colorpicker-popup:not(.e-split-btn-wrapper):not(.e-dropdown-btn) {
|
|
6148
|
+
line-height: 0;
|
|
6149
|
+
}
|
|
6144
6150
|
|
|
6145
6151
|
.e-container {
|
|
6146
6152
|
border: 0;
|
|
@@ -6784,6 +6790,8 @@ body.e-colorpicker-overflow {
|
|
|
6784
6790
|
padding: 4px;
|
|
6785
6791
|
line-height: 9px;
|
|
6786
6792
|
display: block;
|
|
6793
|
+
min-width: 28px;
|
|
6794
|
+
min-height: 28px;
|
|
6787
6795
|
position: relative;
|
|
6788
6796
|
}
|
|
6789
6797
|
.e-rating-container .e-rating-item-container .e-rating-item {
|
|
@@ -6879,6 +6887,8 @@ body.e-colorpicker-overflow {
|
|
|
6879
6887
|
.e-small .e-rating-container .e-rating-item-container {
|
|
6880
6888
|
font-size: 16px;
|
|
6881
6889
|
line-height: 4px;
|
|
6890
|
+
min-height: 24px;
|
|
6891
|
+
min-width: 24px;
|
|
6882
6892
|
}
|
|
6883
6893
|
.e-small.e-rating-container .e-rating-label,
|
|
6884
6894
|
.e-small .e-rating-container .e-rating-label {
|
|
@@ -6894,6 +6904,8 @@ body.e-colorpicker-overflow {
|
|
|
6894
6904
|
.e-bigger .e-rating-container .e-rating-item-container {
|
|
6895
6905
|
font-size: 32px;
|
|
6896
6906
|
line-height: 16px;
|
|
6907
|
+
min-width: 40px;
|
|
6908
|
+
min-height: 40px;
|
|
6897
6909
|
}
|
|
6898
6910
|
.e-bigger.e-rating-container .e-rating-label,
|
|
6899
6911
|
.e-bigger .e-rating-container .e-rating-label {
|
|
@@ -6911,6 +6923,8 @@ body.e-colorpicker-overflow {
|
|
|
6911
6923
|
.e-small .e-bigger.e-rating-container .e-rating-item-container {
|
|
6912
6924
|
font-size: 26px;
|
|
6913
6925
|
line-height: 9px;
|
|
6926
|
+
min-width: 34px;
|
|
6927
|
+
min-height: 34px;
|
|
6914
6928
|
}
|
|
6915
6929
|
.e-bigger.e-small.e-rating-container .e-rating-label,
|
|
6916
6930
|
.e-bigger.e-small .e-rating-container .e-rating-label,
|