@syncfusion/ej2-inputs 27.2.4 → 28.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/README.md +2 -2
- package/dist/ej2-inputs.min.js +3 -3
- package/dist/ej2-inputs.umd.min.js +3 -3
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +63 -65
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +64 -66
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +3 -3
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +10 -14
- package/src/common/signature-base.js +22 -11
- package/src/numerictextbox/numerictextbox.js +1 -1
- package/src/otp-input/otp-input.js +35 -49
- package/src/slider/slider.d.ts +1 -0
- package/src/slider/slider.js +5 -4
- package/src/uploader/uploader.js +1 -1
- package/styles/bds-lite.css +5293 -0
- package/styles/bds-lite.scss +37 -0
- package/styles/bds.css +8139 -0
- package/styles/bds.scss +46 -0
- package/styles/bootstrap-dark-lite.css +4 -0
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap-lite.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4-lite.css +4 -1
- package/styles/bootstrap4.css +4 -1
- package/styles/bootstrap5-dark-lite.css +7 -4
- package/styles/bootstrap5-dark.css +7 -4
- package/styles/bootstrap5-lite.css +5 -2
- package/styles/bootstrap5.3-lite.css +4 -1
- package/styles/bootstrap5.3.css +4 -1
- package/styles/bootstrap5.css +5 -2
- package/styles/color-picker/_bigger.scss +46 -7
- package/styles/color-picker/_layout.scss +41 -3
- package/styles/color-picker/_tailwind3-definition.scss +152 -0
- package/styles/color-picker/_theme.scss +13 -2
- package/styles/color-picker/bds.css +1080 -0
- package/styles/color-picker/bds.scss +12 -0
- package/styles/color-picker/bootstrap-dark.css +3 -0
- package/styles/color-picker/bootstrap.css +3 -0
- package/styles/color-picker/bootstrap4.css +3 -0
- package/styles/color-picker/bootstrap5-dark.css +3 -0
- package/styles/color-picker/bootstrap5.3.css +3 -0
- package/styles/color-picker/bootstrap5.css +3 -0
- package/styles/color-picker/fabric-dark.css +3 -0
- package/styles/color-picker/fabric.css +3 -0
- package/styles/color-picker/fluent-dark.css +3 -0
- package/styles/color-picker/fluent.css +3 -0
- package/styles/color-picker/fluent2.css +3 -0
- package/styles/color-picker/highcontrast-light.css +3 -0
- package/styles/color-picker/highcontrast.css +3 -0
- package/styles/color-picker/icons/_tailwind3.scss +9 -0
- package/styles/color-picker/material-dark.css +3 -0
- package/styles/color-picker/material.css +3 -0
- package/styles/color-picker/material3-dark.css +3 -0
- package/styles/color-picker/material3.css +3 -0
- package/styles/color-picker/tailwind-dark.css +3 -0
- package/styles/color-picker/tailwind.css +3 -0
- package/styles/color-picker/tailwind3.css +880 -0
- package/styles/color-picker/tailwind3.scss +12 -0
- package/styles/data-form/_tailwind3-definition.scss +41 -0
- package/styles/data-form/bds.css +236 -0
- package/styles/data-form/bds.scss +3 -0
- package/styles/data-form/tailwind3.css +236 -0
- package/styles/data-form/tailwind3.scss +3 -0
- package/styles/fabric-dark-lite.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric-lite.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/fluent-dark-lite.css +8 -5
- package/styles/fluent-dark.css +8 -5
- package/styles/fluent-lite.css +6 -3
- package/styles/fluent.css +6 -3
- package/styles/fluent2-lite.css +10 -6
- package/styles/fluent2.css +11 -7
- package/styles/highcontrast-light-lite.css +3 -0
- package/styles/highcontrast-light.css +3 -0
- package/styles/highcontrast-lite.css +3 -0
- package/styles/highcontrast.css +3 -0
- package/styles/input/_bigger.scss +124 -120
- package/styles/input/_layout.scss +143 -121
- package/styles/input/_tailwind3-definition.scss +511 -0
- package/styles/input/_theme.scss +67 -40
- package/styles/input/bds.css +4537 -0
- package/styles/input/bds.scss +5 -0
- package/styles/input/fluent2.css +2 -2
- package/styles/input/icons/_tailwind3.scss +17 -0
- package/styles/input/tailwind-dark.css +2 -0
- package/styles/input/tailwind.css +2 -0
- package/styles/input/tailwind3.css +8926 -0
- package/styles/input/tailwind3.scss +5 -0
- package/styles/maskedtextbox/_tailwind3-definition.scss +7 -0
- package/styles/maskedtextbox/bds.css +180 -0
- package/styles/maskedtextbox/bds.scss +5 -0
- package/styles/maskedtextbox/fluent2.css +1 -1
- package/styles/maskedtextbox/tailwind3.css +47 -0
- package/styles/maskedtextbox/tailwind3.scss +5 -0
- package/styles/material-dark-lite.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material-lite.css +4 -0
- package/styles/material.css +4 -0
- package/styles/material3-dark-lite.css +8 -4
- package/styles/material3-dark.css +8 -4
- package/styles/material3-lite.css +8 -4
- package/styles/material3.css +8 -4
- package/styles/numerictextbox/_tailwind3-definition.scss +3 -0
- package/styles/numerictextbox/bds.css +197 -0
- package/styles/numerictextbox/bds.scss +6 -0
- package/styles/numerictextbox/icons/_tailwind3.scss +11 -0
- package/styles/numerictextbox/tailwind3.css +64 -0
- package/styles/numerictextbox/tailwind3.scss +6 -0
- package/styles/otp-input/_tailwind3-definition.scss +59 -0
- package/styles/otp-input/bds.css +230 -0
- package/styles/otp-input/bds.scss +4 -0
- package/styles/otp-input/tailwind3.css +230 -0
- package/styles/otp-input/tailwind3.scss +4 -0
- package/styles/rating/_tailwind3-definition.scss +47 -0
- package/styles/rating/bds.css +323 -0
- package/styles/rating/bds.scss +5 -0
- package/styles/rating/tailwind3.css +319 -0
- package/styles/rating/tailwind3.scss +5 -0
- package/styles/signature/_layout.scss +3 -0
- package/styles/signature/_tailwind3-definition.scss +3 -0
- package/styles/signature/bds.css +13 -0
- package/styles/signature/bds.scss +3 -0
- package/styles/signature/tailwind3.css +15 -0
- package/styles/signature/tailwind3.scss +3 -0
- package/styles/slider/_layout.scss +29 -15
- package/styles/slider/_tailwind3-definition.scss +92 -0
- package/styles/slider/_theme.scss +4 -2
- package/styles/slider/bds.css +620 -0
- package/styles/slider/bds.scss +6 -0
- package/styles/slider/bootstrap-dark.css +1 -0
- package/styles/slider/bootstrap.css +1 -0
- package/styles/slider/bootstrap4.css +1 -1
- package/styles/slider/bootstrap5.3.css +1 -1
- package/styles/slider/fabric-dark.css +1 -0
- package/styles/slider/fabric.css +1 -0
- package/styles/slider/fluent-dark.css +1 -1
- package/styles/slider/fluent.css +1 -1
- package/styles/slider/fluent2.css +3 -2
- package/styles/slider/material-dark.css +1 -0
- package/styles/slider/material.css +1 -0
- package/styles/slider/material3-dark.css +1 -0
- package/styles/slider/material3.css +1 -0
- package/styles/slider/tailwind3.css +442 -0
- package/styles/slider/tailwind3.scss +6 -0
- package/styles/smart-textarea/_bootstrap5-definition.scss +3 -3
- package/styles/smart-textarea/_fluent-definition.scss +3 -3
- package/styles/smart-textarea/_material3-definition.scss +3 -3
- package/styles/smart-textarea/_tailwind-definition.scss +3 -3
- package/styles/smart-textarea/_tailwind3-definition.scss +3 -0
- package/styles/smart-textarea/_theme.scss +2 -29
- package/styles/smart-textarea/bds.css +67 -0
- package/styles/smart-textarea/bds.scss +4 -0
- package/styles/smart-textarea/bootstrap5-dark.css +4 -4
- package/styles/smart-textarea/bootstrap5.css +2 -2
- package/styles/smart-textarea/fluent-dark.css +4 -4
- package/styles/smart-textarea/fluent.css +2 -2
- package/styles/smart-textarea/material3-dark.css +4 -4
- package/styles/smart-textarea/material3.css +4 -4
- package/styles/smart-textarea/tailwind-dark.css +4 -4
- package/styles/smart-textarea/tailwind.css +2 -2
- package/styles/smart-textarea/tailwind3.css +67 -0
- package/styles/smart-textarea/tailwind3.scss +4 -0
- package/styles/tailwind-dark-lite.css +9 -4
- package/styles/tailwind-dark.css +9 -4
- package/styles/tailwind-lite.css +7 -2
- package/styles/tailwind.css +7 -2
- package/styles/tailwind3-lite.css +7247 -0
- package/styles/tailwind3-lite.scss +37 -0
- package/styles/tailwind3.css +12252 -0
- package/styles/tailwind3.scss +46 -0
- package/styles/textarea/_tailwind3-definition.scss +1 -0
- package/styles/textarea/bds.css +183 -0
- package/styles/textarea/bds.scss +5 -0
- package/styles/textarea/tailwind3.css +50 -0
- package/styles/textarea/tailwind3.scss +5 -0
- package/styles/textbox/_tailwind3-definition.scss +4 -0
- package/styles/textbox/bds.css +177 -0
- package/styles/textbox/bds.scss +5 -0
- package/styles/textbox/tailwind3.css +44 -0
- package/styles/textbox/tailwind3.scss +5 -0
- package/styles/uploader/_bigger.scss +3 -0
- package/styles/uploader/_layout.scss +3 -0
- package/styles/uploader/_tailwind3-definition.scss +211 -0
- package/styles/uploader/_theme.scss +21 -0
- package/styles/uploader/bds.css +1124 -0
- package/styles/uploader/bds.scss +7 -0
- package/styles/uploader/fluent2.css +2 -2
- package/styles/uploader/icons/_tailwind3.scss +34 -0
- package/styles/uploader/tailwind3.css +1036 -0
- package/styles/uploader/tailwind3.scss +7 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 -
|
|
3
|
+
* version : 28.1.37
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-inputs@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inputs@
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@28.1.33",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-NIzV4t1zM7uZhDC7L5XlleROmjNmOkRxVdJMWPEbOC/iHrzwLGf7uK4OcDQEoDE9y1Aeq2YHKMjBl91Fx2e2gA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
-
"/@syncfusion/ej2",
|
|
22
21
|
"/@syncfusion/ej2-angular-inputs",
|
|
23
22
|
"/@syncfusion/ej2-calendars",
|
|
24
23
|
"/@syncfusion/ej2-diagrams",
|
|
@@ -27,32 +26,29 @@
|
|
|
27
26
|
"/@syncfusion/ej2-filemanager",
|
|
28
27
|
"/@syncfusion/ej2-gantt",
|
|
29
28
|
"/@syncfusion/ej2-grids",
|
|
30
|
-
"/@syncfusion/ej2-image-editor",
|
|
31
29
|
"/@syncfusion/ej2-inplace-editor",
|
|
32
|
-
"/@syncfusion/ej2-interactive-chat",
|
|
33
30
|
"/@syncfusion/ej2-kanban",
|
|
34
31
|
"/@syncfusion/ej2-navigations",
|
|
35
32
|
"/@syncfusion/ej2-pdfviewer",
|
|
36
33
|
"/@syncfusion/ej2-pivotview",
|
|
37
|
-
"/@syncfusion/ej2-querybuilder",
|
|
38
34
|
"/@syncfusion/ej2-react-inputs",
|
|
39
35
|
"/@syncfusion/ej2-richtexteditor",
|
|
40
36
|
"/@syncfusion/ej2-schedule",
|
|
41
37
|
"/@syncfusion/ej2-vue-inputs"
|
|
42
38
|
],
|
|
43
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-
|
|
44
|
-
"_shasum": "
|
|
39
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.1.33.tgz",
|
|
40
|
+
"_shasum": "dbd1c2d98a61671fc64edd179a11698985bac2f9",
|
|
45
41
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
46
|
-
"_where": "/jenkins/workspace/elease-
|
|
42
|
+
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
47
43
|
"author": {
|
|
48
44
|
"name": "Syncfusion Inc."
|
|
49
45
|
},
|
|
50
46
|
"bundleDependencies": false,
|
|
51
47
|
"dependencies": {
|
|
52
|
-
"@syncfusion/ej2-base": "~
|
|
53
|
-
"@syncfusion/ej2-buttons": "~
|
|
54
|
-
"@syncfusion/ej2-popups": "~
|
|
55
|
-
"@syncfusion/ej2-splitbuttons": "~
|
|
48
|
+
"@syncfusion/ej2-base": "~28.1.33",
|
|
49
|
+
"@syncfusion/ej2-buttons": "~28.1.37",
|
|
50
|
+
"@syncfusion/ej2-popups": "~28.1.33",
|
|
51
|
+
"@syncfusion/ej2-splitbuttons": "~28.1.37"
|
|
56
52
|
},
|
|
57
53
|
"deprecated": false,
|
|
58
54
|
"description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
|
|
@@ -120,7 +116,7 @@
|
|
|
120
116
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
121
117
|
},
|
|
122
118
|
"typings": "index.d.ts",
|
|
123
|
-
"version": "
|
|
119
|
+
"version": "28.1.37",
|
|
124
120
|
"sideEffects": false,
|
|
125
121
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
126
122
|
}
|
|
@@ -75,13 +75,17 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
75
75
|
};
|
|
76
76
|
SignatureBase.prototype.unwireEvents = function (type) {
|
|
77
77
|
if (type === 'mouseup' || type === 'touchend') {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
if (this.canvasContext) {
|
|
79
|
+
EventHandler.remove(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler);
|
|
80
|
+
EventHandler.remove(this.canvasContext.canvas, 'mouseup touchend', this.mouseUpHandler);
|
|
81
|
+
}
|
|
80
82
|
EventHandler.remove(document, 'mouseup', this.mouseUpHandler);
|
|
81
83
|
}
|
|
82
84
|
else {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
if (this.canvasContext) {
|
|
86
|
+
EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);
|
|
87
|
+
EventHandler.remove(this.canvasContext.canvas, 'keydown', this.keyboardHandler);
|
|
88
|
+
}
|
|
85
89
|
window.removeEventListener('resize', this.resizeHandler);
|
|
86
90
|
}
|
|
87
91
|
};
|
|
@@ -191,10 +195,11 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
191
195
|
SignatureBase.prototype.resizeHandler = function () {
|
|
192
196
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
193
197
|
var proxy = this;
|
|
194
|
-
if (this.isResponsive && this.canRedraw) {
|
|
198
|
+
if (this.isResponsive && this.canRedraw && this.canvasContext && this.element) {
|
|
195
199
|
this.canvasContext.canvas.width = this.element.offsetWidth;
|
|
196
200
|
this.canvasContext.canvas.height = this.element.offsetHeight;
|
|
197
201
|
this.canvasContext.scale(1, 1);
|
|
202
|
+
this.canvasContext.fillStyle = this.strokeColor;
|
|
198
203
|
var pointSize = (this.minStrokeWidth + this.maxStrokeWidth) / 2;
|
|
199
204
|
for (var i = 0; i < this.signRatioPointsColl.length; i++) {
|
|
200
205
|
this.arcDraw((this.signRatioPointsColl[i].x * this.canvasContext.canvas.width), (this.signRatioPointsColl[i].y * this.canvasContext.canvas.height), pointSize);
|
|
@@ -203,7 +208,7 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
203
208
|
this.canvasContext.closePath();
|
|
204
209
|
this.canvasContext.fill();
|
|
205
210
|
}
|
|
206
|
-
else {
|
|
211
|
+
else if (this.canvasContext && this.element) {
|
|
207
212
|
var restoreImg_1 = new Image();
|
|
208
213
|
restoreImg_1.src = this.snapColl[this.incStep];
|
|
209
214
|
restoreImg_1.onload = function () {
|
|
@@ -455,10 +460,12 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
455
460
|
if (this.incStep > 0) {
|
|
456
461
|
var canvasNew = this.createElement('canvas', { className: 'e-' + this.getModuleName() + '-wrapper' });
|
|
457
462
|
var canvasContextNew = canvasNew.getContext('2d');
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
463
|
+
if (this.canvasContext) {
|
|
464
|
+
canvasNew.width = this.canvasContext.canvas.width;
|
|
465
|
+
canvasNew.height = this.canvasContext.canvas.height;
|
|
466
|
+
canvasContextNew.drawImage(this.canvasContext.canvas, 0, 0, canvasNew.width, canvasNew.height);
|
|
467
|
+
this.snapColl.push(canvasNew.toDataURL());
|
|
468
|
+
}
|
|
462
469
|
}
|
|
463
470
|
else {
|
|
464
471
|
this.snapColl.push(this.canvasContext.canvas.toDataURL());
|
|
@@ -789,7 +796,7 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
789
796
|
}
|
|
790
797
|
else if (type === 'Svg') {
|
|
791
798
|
fileName = fileName || 'Signature';
|
|
792
|
-
this.toSVG(fileName
|
|
799
|
+
this.toSVG(fileName);
|
|
793
800
|
}
|
|
794
801
|
else if (type === 'Jpeg') {
|
|
795
802
|
fileName = fileName || 'Signature';
|
|
@@ -937,8 +944,12 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
937
944
|
removeClass([this.element], 'e-' + this.getModuleName());
|
|
938
945
|
this.element.removeAttribute('tabindex');
|
|
939
946
|
this.pointColl = null;
|
|
947
|
+
this.tempContext = null;
|
|
948
|
+
this.tempCanvas = null;
|
|
949
|
+
this.canvasContext = null;
|
|
940
950
|
}
|
|
941
951
|
_super.prototype.destroy.call(this);
|
|
952
|
+
this.element = null;
|
|
942
953
|
};
|
|
943
954
|
/**
|
|
944
955
|
* Modified onPropertyChanged method for both blazor and EJ2 signature component.
|
|
@@ -780,8 +780,8 @@ var NumericTextBox = /** @class */ (function (_super) {
|
|
|
780
780
|
var elementValue = this.isFocused ? value : this.instance.getNumberFormat(this.cultureInfo)(this.value);
|
|
781
781
|
this.setElementValue(elementValue);
|
|
782
782
|
attributes(this.element, { 'aria-valuenow': value });
|
|
783
|
-
this.hiddenInput.value = this.value.toString();
|
|
784
783
|
if (!isNullOrUndefined(this.hiddenInput)) {
|
|
784
|
+
this.hiddenInput.value = this.value.toString();
|
|
785
785
|
if (this.value !== null && this.serverDecimalSeparator) {
|
|
786
786
|
this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
|
|
787
787
|
}
|
|
@@ -150,14 +150,14 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
150
150
|
var valueContainer = this.getDefaultValue();
|
|
151
151
|
var inputValue = '';
|
|
152
152
|
if (valueContainer) {
|
|
153
|
+
var valueAtIndex = valueContainer[parseInt(index.toString(), 10)];
|
|
153
154
|
if (this.type === 'number') {
|
|
154
|
-
var valueAtIndex = valueContainer[parseInt(index.toString(), 10)];
|
|
155
155
|
if (!isNaN(Number(valueAtIndex))) {
|
|
156
156
|
inputValue = valueAtIndex;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
|
-
inputValue =
|
|
160
|
+
inputValue = valueAtIndex || '';
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
var inputEle = this.createElement('input', {
|
|
@@ -166,7 +166,7 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
166
166
|
attrs: {
|
|
167
167
|
maxlength: '1',
|
|
168
168
|
type: this.type,
|
|
169
|
-
inputmode:
|
|
169
|
+
inputmode: this.htmlAttributes['inputmode'] || (this.type === 'number' ? 'numeric' : 'text')
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
if (this.disabled) {
|
|
@@ -192,27 +192,28 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
OtpInput.prototype.updateSeparatorValue = function () {
|
|
195
|
+
var _this = this;
|
|
195
196
|
if (this.separator === '') {
|
|
196
|
-
|
|
197
|
-
remove(this.separatorElements[parseInt(i.toString(), 10)]);
|
|
198
|
-
}
|
|
197
|
+
this.separatorElements.forEach(function (element) { return remove(element); });
|
|
199
198
|
this.separatorElements = [];
|
|
200
|
-
return;
|
|
201
199
|
}
|
|
202
|
-
|
|
203
|
-
this.separatorElements
|
|
200
|
+
else {
|
|
201
|
+
this.separatorElements.forEach(function (element) {
|
|
202
|
+
element.textContent = _this.separator;
|
|
203
|
+
});
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
OtpInput.prototype.addPlaceHolder = function () {
|
|
207
207
|
for (var i = 0; i < this.inputs.length; i++) {
|
|
208
|
-
|
|
208
|
+
var placeholderValue = this.placeholder.length <= 1 ? this.placeholder : this.placeholder.charAt(i);
|
|
209
|
+
this.setElementAttributes({ 'placeholder': placeholderValue }, this.inputs[parseInt(i.toString(), 10)]);
|
|
209
210
|
}
|
|
210
211
|
};
|
|
211
212
|
OtpInput.prototype.updateInputType = function (inputType) {
|
|
212
|
-
var
|
|
213
|
+
var inputMode = this.htmlAttributes['inputmode'] || (inputType === 'number' ? 'numeric' : 'text');
|
|
213
214
|
this.inputs.forEach(function (input) {
|
|
214
215
|
input.type = inputType;
|
|
215
|
-
input.setAttribute('inputmode',
|
|
216
|
+
input.setAttribute('inputmode', inputMode);
|
|
216
217
|
});
|
|
217
218
|
};
|
|
218
219
|
OtpInput.prototype.getDefaultValue = function () {
|
|
@@ -222,10 +223,7 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
222
223
|
}
|
|
223
224
|
// To remove the white space if present.
|
|
224
225
|
var value = extractedValue.replace(/\s/g, '');
|
|
225
|
-
|
|
226
|
-
return value.split('');
|
|
227
|
-
}
|
|
228
|
-
return undefined;
|
|
226
|
+
return value.length > 0 ? value.split('') : undefined;
|
|
229
227
|
};
|
|
230
228
|
OtpInput.prototype.getTransformedText = function (transformingText) {
|
|
231
229
|
var transformedText = this.textTransform.toLowerCase() === TextTransform.Lowercase ? transformingText.toLowerCase() :
|
|
@@ -266,12 +264,10 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
266
264
|
value = currentInputElement.value;
|
|
267
265
|
currentInputElement.value = '';
|
|
268
266
|
}
|
|
269
|
-
else {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
nextInputElement.focus();
|
|
274
|
-
}
|
|
267
|
+
else if (index !== this.inputs.length - 1) {
|
|
268
|
+
value = nextInputElement.value;
|
|
269
|
+
nextInputElement.value = '';
|
|
270
|
+
nextInputElement.focus();
|
|
275
271
|
}
|
|
276
272
|
if (value.length > 0) {
|
|
277
273
|
this.triggerInputEvent(index, event);
|
|
@@ -288,28 +284,22 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
288
284
|
}
|
|
289
285
|
}
|
|
290
286
|
else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
|
291
|
-
if (event.key === 'ArrowLeft') {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
previousInputElement.select();
|
|
295
|
-
}
|
|
287
|
+
if (event.key === 'ArrowLeft' && index > 0) {
|
|
288
|
+
previousInputElement.focus();
|
|
289
|
+
previousInputElement.select();
|
|
296
290
|
}
|
|
297
|
-
else {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
nextInputElement.select();
|
|
301
|
-
}
|
|
291
|
+
else if (event.key === 'ArrowRight' && index < this.inputs.length - 1) {
|
|
292
|
+
nextInputElement.focus();
|
|
293
|
+
nextInputElement.select();
|
|
302
294
|
}
|
|
303
295
|
event.preventDefault();
|
|
304
296
|
}
|
|
305
297
|
else if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
|
|
306
298
|
event.preventDefault();
|
|
307
299
|
}
|
|
308
|
-
else {
|
|
309
|
-
if (
|
|
310
|
-
|
|
311
|
-
event.preventDefault();
|
|
312
|
-
}
|
|
300
|
+
else if (event.key !== 'Tab' && !event.shiftKey && !event.ctrlKey) {
|
|
301
|
+
if (this.type === 'number' && (/\D/.test(event.key.toLocaleLowerCase()))) {
|
|
302
|
+
event.preventDefault();
|
|
313
303
|
}
|
|
314
304
|
}
|
|
315
305
|
};
|
|
@@ -428,9 +418,9 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
428
418
|
if (this.textTransform) {
|
|
429
419
|
stringifiedValue = this.getTransformedText(stringifiedValue);
|
|
430
420
|
}
|
|
421
|
+
var previousStringValue = previousValue.toString();
|
|
431
422
|
for (var i = 0; i < this.inputs.length; i++) {
|
|
432
|
-
|
|
433
|
-
if (isValueChanged) {
|
|
423
|
+
if (previousStringValue.charAt(i) !== stringifiedValue.charAt(i)) {
|
|
434
424
|
this.inputs[parseInt(i.toString(), 10)].value = stringifiedValue.charAt(i);
|
|
435
425
|
this.hiddenInputEle.value = stringifiedValue;
|
|
436
426
|
}
|
|
@@ -451,10 +441,10 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
451
441
|
}
|
|
452
442
|
};
|
|
453
443
|
OtpInput.prototype.updateVariantClass = function () {
|
|
454
|
-
var variantClass = this.stylingMode.toLocaleLowerCase();
|
|
455
|
-
|
|
456
|
-
if (variantClass
|
|
457
|
-
removeClass([this.element],
|
|
444
|
+
var variantClass = this.stylingMode.toLocaleLowerCase() === 'outlined' ? 'outline' : this.stylingMode.toLocaleLowerCase();
|
|
445
|
+
var validClasses = ['underlined', 'filled', 'outline'];
|
|
446
|
+
if (validClasses.indexOf(variantClass) !== -1) {
|
|
447
|
+
removeClass([this.element], validClasses.map(function (cls) { return "e-" + cls; }));
|
|
458
448
|
addClass([this.element], "e-" + variantClass);
|
|
459
449
|
}
|
|
460
450
|
};
|
|
@@ -556,12 +546,8 @@ var OtpInput = /** @class */ (function (_super) {
|
|
|
556
546
|
OtpInput.prototype.destroy = function () {
|
|
557
547
|
_super.prototype.destroy.call(this);
|
|
558
548
|
this.unWireEvents();
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
562
|
-
for (var i = 0; i < this.separatorElements.length; i++) {
|
|
563
|
-
remove(this.separatorElements[parseInt(i.toString(), 10)]);
|
|
564
|
-
}
|
|
549
|
+
this.inputs.forEach(function (input) { remove(input); });
|
|
550
|
+
this.separatorElements.forEach(function (separatorElement) { remove(separatorElement); });
|
|
565
551
|
remove(this.hiddenInputEle);
|
|
566
552
|
removeClass([this.element], ['e-underlined', 'e-filled', 'e-outline', 'e-rtl']);
|
|
567
553
|
if (this.cssClass) {
|
package/src/slider/slider.d.ts
CHANGED
package/src/slider/slider.js
CHANGED
|
@@ -445,6 +445,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
445
445
|
|| this.getTheme(this.sliderContainer) === 'bootstrap-dark';
|
|
446
446
|
this.isBootstrap4 = this.getTheme(this.sliderContainer) === 'bootstrap4';
|
|
447
447
|
this.isTailwind = this.getTheme(this.sliderContainer) === 'tailwind' || this.getTheme(this.sliderContainer) === 'tailwind-dark';
|
|
448
|
+
this.isTailwind3 = this.getTheme(this.sliderContainer) === 'tailwind3' || this.getTheme(this.sliderContainer) === 'tailwind3-dark';
|
|
448
449
|
this.isBootstrap5 = this.getTheme(this.sliderContainer) === 'bootstrap5';
|
|
449
450
|
this.isFluent = this.getTheme(this.sliderContainer) === 'FluentUI';
|
|
450
451
|
this.isFluent2 = this.getTheme(this.sliderContainer) === 'fluent2';
|
|
@@ -964,8 +965,8 @@ var Slider = /** @class */ (function (_super) {
|
|
|
964
965
|
};
|
|
965
966
|
Slider.prototype.renderTooltip = function () {
|
|
966
967
|
this.tooltipObj = new Tooltip({
|
|
967
|
-
showTipPointer: this.isBootstrap || this.isMaterial || this.isMaterial3 ||
|
|
968
|
-
|
|
968
|
+
showTipPointer: this.isBootstrap || this.isMaterial || this.isMaterial3 || this.isBootstrap4 || this.isTailwind
|
|
969
|
+
|| this.isTailwind3 || this.isBootstrap5 || this.isFluent || this.isFluent2 || this.isBootstrap5Dot3,
|
|
969
970
|
cssClass: classNames.sliderTooltip,
|
|
970
971
|
height: (this.isMaterial || this.isMaterial3) ? 30 : 'auto',
|
|
971
972
|
animation: { open: { effect: 'None' }, close: { effect: 'FadeOut', duration: 500 } },
|
|
@@ -1002,13 +1003,13 @@ var Slider = /** @class */ (function (_super) {
|
|
|
1002
1003
|
Slider.prototype.setButtons = function () {
|
|
1003
1004
|
this.firstBtn = this.createElement('div', { className: classNames.sliderButton + ' ' + classNames.firstButton });
|
|
1004
1005
|
this.firstBtn.appendChild(this.createElement('span', { className: classNames.sliderButtonIcon }));
|
|
1005
|
-
if (this.isTailwind) {
|
|
1006
|
+
if (this.isTailwind || this.isTailwind3) {
|
|
1006
1007
|
this.firstBtn.querySelector('span').classList.add('e-icons');
|
|
1007
1008
|
}
|
|
1008
1009
|
this.firstBtn.tabIndex = -1;
|
|
1009
1010
|
this.secondBtn = this.createElement('div', { className: classNames.sliderButton + ' ' + classNames.secondButton });
|
|
1010
1011
|
this.secondBtn.appendChild(this.createElement('span', { className: classNames.sliderButtonIcon }));
|
|
1011
|
-
if (this.isTailwind) {
|
|
1012
|
+
if (this.isTailwind || this.isTailwind3) {
|
|
1012
1013
|
this.secondBtn.querySelector('span').classList.add('e-icons');
|
|
1013
1014
|
}
|
|
1014
1015
|
this.secondBtn.tabIndex = -1;
|
package/src/uploader/uploader.js
CHANGED
|
@@ -921,7 +921,7 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
921
921
|
}
|
|
922
922
|
for (var file = 0; file < item.length; file++) {
|
|
923
923
|
var pasteFile = [].slice.call(item)[file];
|
|
924
|
-
if ((pasteFile.kind === 'file') || pasteFile.type.match('^image/')) {
|
|
924
|
+
if (!isNullOrUndefined(pasteFile.getAsFile()) && ((pasteFile.kind === 'file') || pasteFile.type.match('^image/'))) {
|
|
925
925
|
this.renderSelectedFiles(event, [pasteFile.getAsFile()], false, true);
|
|
926
926
|
}
|
|
927
927
|
}
|