@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.
Files changed (195) hide show
  1. package/README.md +2 -2
  2. package/dist/ej2-inputs.min.js +3 -3
  3. package/dist/ej2-inputs.umd.min.js +3 -3
  4. package/dist/ej2-inputs.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-inputs.es2015.js +63 -65
  6. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  7. package/dist/es6/ej2-inputs.es5.js +64 -66
  8. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  9. package/dist/global/ej2-inputs.min.js +3 -3
  10. package/dist/global/ej2-inputs.min.js.map +1 -1
  11. package/dist/global/index.d.ts +2 -2
  12. package/package.json +10 -14
  13. package/src/common/signature-base.js +22 -11
  14. package/src/numerictextbox/numerictextbox.js +1 -1
  15. package/src/otp-input/otp-input.js +35 -49
  16. package/src/slider/slider.d.ts +1 -0
  17. package/src/slider/slider.js +5 -4
  18. package/src/uploader/uploader.js +1 -1
  19. package/styles/bds-lite.css +5293 -0
  20. package/styles/bds-lite.scss +37 -0
  21. package/styles/bds.css +8139 -0
  22. package/styles/bds.scss +46 -0
  23. package/styles/bootstrap-dark-lite.css +4 -0
  24. package/styles/bootstrap-dark.css +4 -0
  25. package/styles/bootstrap-lite.css +4 -0
  26. package/styles/bootstrap.css +4 -0
  27. package/styles/bootstrap4-lite.css +4 -1
  28. package/styles/bootstrap4.css +4 -1
  29. package/styles/bootstrap5-dark-lite.css +7 -4
  30. package/styles/bootstrap5-dark.css +7 -4
  31. package/styles/bootstrap5-lite.css +5 -2
  32. package/styles/bootstrap5.3-lite.css +4 -1
  33. package/styles/bootstrap5.3.css +4 -1
  34. package/styles/bootstrap5.css +5 -2
  35. package/styles/color-picker/_bigger.scss +46 -7
  36. package/styles/color-picker/_layout.scss +41 -3
  37. package/styles/color-picker/_tailwind3-definition.scss +152 -0
  38. package/styles/color-picker/_theme.scss +13 -2
  39. package/styles/color-picker/bds.css +1080 -0
  40. package/styles/color-picker/bds.scss +12 -0
  41. package/styles/color-picker/bootstrap-dark.css +3 -0
  42. package/styles/color-picker/bootstrap.css +3 -0
  43. package/styles/color-picker/bootstrap4.css +3 -0
  44. package/styles/color-picker/bootstrap5-dark.css +3 -0
  45. package/styles/color-picker/bootstrap5.3.css +3 -0
  46. package/styles/color-picker/bootstrap5.css +3 -0
  47. package/styles/color-picker/fabric-dark.css +3 -0
  48. package/styles/color-picker/fabric.css +3 -0
  49. package/styles/color-picker/fluent-dark.css +3 -0
  50. package/styles/color-picker/fluent.css +3 -0
  51. package/styles/color-picker/fluent2.css +3 -0
  52. package/styles/color-picker/highcontrast-light.css +3 -0
  53. package/styles/color-picker/highcontrast.css +3 -0
  54. package/styles/color-picker/icons/_tailwind3.scss +9 -0
  55. package/styles/color-picker/material-dark.css +3 -0
  56. package/styles/color-picker/material.css +3 -0
  57. package/styles/color-picker/material3-dark.css +3 -0
  58. package/styles/color-picker/material3.css +3 -0
  59. package/styles/color-picker/tailwind-dark.css +3 -0
  60. package/styles/color-picker/tailwind.css +3 -0
  61. package/styles/color-picker/tailwind3.css +880 -0
  62. package/styles/color-picker/tailwind3.scss +12 -0
  63. package/styles/data-form/_tailwind3-definition.scss +41 -0
  64. package/styles/data-form/bds.css +236 -0
  65. package/styles/data-form/bds.scss +3 -0
  66. package/styles/data-form/tailwind3.css +236 -0
  67. package/styles/data-form/tailwind3.scss +3 -0
  68. package/styles/fabric-dark-lite.css +4 -0
  69. package/styles/fabric-dark.css +4 -0
  70. package/styles/fabric-lite.css +4 -0
  71. package/styles/fabric.css +4 -0
  72. package/styles/fluent-dark-lite.css +8 -5
  73. package/styles/fluent-dark.css +8 -5
  74. package/styles/fluent-lite.css +6 -3
  75. package/styles/fluent.css +6 -3
  76. package/styles/fluent2-lite.css +10 -6
  77. package/styles/fluent2.css +11 -7
  78. package/styles/highcontrast-light-lite.css +3 -0
  79. package/styles/highcontrast-light.css +3 -0
  80. package/styles/highcontrast-lite.css +3 -0
  81. package/styles/highcontrast.css +3 -0
  82. package/styles/input/_bigger.scss +124 -120
  83. package/styles/input/_layout.scss +143 -121
  84. package/styles/input/_tailwind3-definition.scss +511 -0
  85. package/styles/input/_theme.scss +67 -40
  86. package/styles/input/bds.css +4537 -0
  87. package/styles/input/bds.scss +5 -0
  88. package/styles/input/fluent2.css +2 -2
  89. package/styles/input/icons/_tailwind3.scss +17 -0
  90. package/styles/input/tailwind-dark.css +2 -0
  91. package/styles/input/tailwind.css +2 -0
  92. package/styles/input/tailwind3.css +8926 -0
  93. package/styles/input/tailwind3.scss +5 -0
  94. package/styles/maskedtextbox/_tailwind3-definition.scss +7 -0
  95. package/styles/maskedtextbox/bds.css +180 -0
  96. package/styles/maskedtextbox/bds.scss +5 -0
  97. package/styles/maskedtextbox/fluent2.css +1 -1
  98. package/styles/maskedtextbox/tailwind3.css +47 -0
  99. package/styles/maskedtextbox/tailwind3.scss +5 -0
  100. package/styles/material-dark-lite.css +4 -0
  101. package/styles/material-dark.css +4 -0
  102. package/styles/material-lite.css +4 -0
  103. package/styles/material.css +4 -0
  104. package/styles/material3-dark-lite.css +8 -4
  105. package/styles/material3-dark.css +8 -4
  106. package/styles/material3-lite.css +8 -4
  107. package/styles/material3.css +8 -4
  108. package/styles/numerictextbox/_tailwind3-definition.scss +3 -0
  109. package/styles/numerictextbox/bds.css +197 -0
  110. package/styles/numerictextbox/bds.scss +6 -0
  111. package/styles/numerictextbox/icons/_tailwind3.scss +11 -0
  112. package/styles/numerictextbox/tailwind3.css +64 -0
  113. package/styles/numerictextbox/tailwind3.scss +6 -0
  114. package/styles/otp-input/_tailwind3-definition.scss +59 -0
  115. package/styles/otp-input/bds.css +230 -0
  116. package/styles/otp-input/bds.scss +4 -0
  117. package/styles/otp-input/tailwind3.css +230 -0
  118. package/styles/otp-input/tailwind3.scss +4 -0
  119. package/styles/rating/_tailwind3-definition.scss +47 -0
  120. package/styles/rating/bds.css +323 -0
  121. package/styles/rating/bds.scss +5 -0
  122. package/styles/rating/tailwind3.css +319 -0
  123. package/styles/rating/tailwind3.scss +5 -0
  124. package/styles/signature/_layout.scss +3 -0
  125. package/styles/signature/_tailwind3-definition.scss +3 -0
  126. package/styles/signature/bds.css +13 -0
  127. package/styles/signature/bds.scss +3 -0
  128. package/styles/signature/tailwind3.css +15 -0
  129. package/styles/signature/tailwind3.scss +3 -0
  130. package/styles/slider/_layout.scss +29 -15
  131. package/styles/slider/_tailwind3-definition.scss +92 -0
  132. package/styles/slider/_theme.scss +4 -2
  133. package/styles/slider/bds.css +620 -0
  134. package/styles/slider/bds.scss +6 -0
  135. package/styles/slider/bootstrap-dark.css +1 -0
  136. package/styles/slider/bootstrap.css +1 -0
  137. package/styles/slider/bootstrap4.css +1 -1
  138. package/styles/slider/bootstrap5.3.css +1 -1
  139. package/styles/slider/fabric-dark.css +1 -0
  140. package/styles/slider/fabric.css +1 -0
  141. package/styles/slider/fluent-dark.css +1 -1
  142. package/styles/slider/fluent.css +1 -1
  143. package/styles/slider/fluent2.css +3 -2
  144. package/styles/slider/material-dark.css +1 -0
  145. package/styles/slider/material.css +1 -0
  146. package/styles/slider/material3-dark.css +1 -0
  147. package/styles/slider/material3.css +1 -0
  148. package/styles/slider/tailwind3.css +442 -0
  149. package/styles/slider/tailwind3.scss +6 -0
  150. package/styles/smart-textarea/_bootstrap5-definition.scss +3 -3
  151. package/styles/smart-textarea/_fluent-definition.scss +3 -3
  152. package/styles/smart-textarea/_material3-definition.scss +3 -3
  153. package/styles/smart-textarea/_tailwind-definition.scss +3 -3
  154. package/styles/smart-textarea/_tailwind3-definition.scss +3 -0
  155. package/styles/smart-textarea/_theme.scss +2 -29
  156. package/styles/smart-textarea/bds.css +67 -0
  157. package/styles/smart-textarea/bds.scss +4 -0
  158. package/styles/smart-textarea/bootstrap5-dark.css +4 -4
  159. package/styles/smart-textarea/bootstrap5.css +2 -2
  160. package/styles/smart-textarea/fluent-dark.css +4 -4
  161. package/styles/smart-textarea/fluent.css +2 -2
  162. package/styles/smart-textarea/material3-dark.css +4 -4
  163. package/styles/smart-textarea/material3.css +4 -4
  164. package/styles/smart-textarea/tailwind-dark.css +4 -4
  165. package/styles/smart-textarea/tailwind.css +2 -2
  166. package/styles/smart-textarea/tailwind3.css +67 -0
  167. package/styles/smart-textarea/tailwind3.scss +4 -0
  168. package/styles/tailwind-dark-lite.css +9 -4
  169. package/styles/tailwind-dark.css +9 -4
  170. package/styles/tailwind-lite.css +7 -2
  171. package/styles/tailwind.css +7 -2
  172. package/styles/tailwind3-lite.css +7247 -0
  173. package/styles/tailwind3-lite.scss +37 -0
  174. package/styles/tailwind3.css +12252 -0
  175. package/styles/tailwind3.scss +46 -0
  176. package/styles/textarea/_tailwind3-definition.scss +1 -0
  177. package/styles/textarea/bds.css +183 -0
  178. package/styles/textarea/bds.scss +5 -0
  179. package/styles/textarea/tailwind3.css +50 -0
  180. package/styles/textarea/tailwind3.scss +5 -0
  181. package/styles/textbox/_tailwind3-definition.scss +4 -0
  182. package/styles/textbox/bds.css +177 -0
  183. package/styles/textbox/bds.scss +5 -0
  184. package/styles/textbox/tailwind3.css +44 -0
  185. package/styles/textbox/tailwind3.scss +5 -0
  186. package/styles/uploader/_bigger.scss +3 -0
  187. package/styles/uploader/_layout.scss +3 -0
  188. package/styles/uploader/_tailwind3-definition.scss +211 -0
  189. package/styles/uploader/_theme.scss +21 -0
  190. package/styles/uploader/bds.css +1124 -0
  191. package/styles/uploader/bds.scss +7 -0
  192. package/styles/uploader/fluent2.css +2 -2
  193. package/styles/uploader/icons/_tailwind3.scss +34 -0
  194. package/styles/uploader/tailwind3.css +1036 -0
  195. package/styles/uploader/tailwind3.scss +7 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 27.2.4
4
- * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
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@27.2.2",
3
+ "_id": "@syncfusion/ej2-inputs@28.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-nq91ptVmGbNbhUus/YIQI+3stGjgkRpv+vfIHQkOKq1wjC2+a7F+J5+7qbZw149fWw1nA2WgAXMTxuJtcTZ3PQ==",
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-27.2.2.tgz",
44
- "_shasum": "e61a97322e25d835e3b9004e3bdb9b64d66a8e32",
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-automation_release_27.1.1/packages/included",
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": "~27.2.2",
53
- "@syncfusion/ej2-buttons": "~27.2.4",
54
- "@syncfusion/ej2-popups": "~27.2.2",
55
- "@syncfusion/ej2-splitbuttons": "~27.2.2"
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": "27.2.4",
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
- EventHandler.remove(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler);
79
- EventHandler.remove(this.canvasContext.canvas, 'mouseup touchend', this.mouseUpHandler);
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
- EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);
84
- EventHandler.remove(this.canvasContext.canvas, 'keydown', this.keyboardHandler);
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
- canvasNew.width = this.canvasContext.canvas.width;
459
- canvasNew.height = this.canvasContext.canvas.height;
460
- canvasContextNew.drawImage(this.canvasContext.canvas, 0, 0, canvasNew.width, canvasNew.height);
461
- this.snapColl.push(canvasNew.toDataURL());
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, this.canvasContext.canvas.toDataURL('image/png'));
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 = valueContainer[parseInt(index.toString(), 10)] || '';
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: 'inputmode' in this.htmlAttributes ? this.htmlAttributes['inputmode'] : (this.type === 'number' ? 'numeric' : 'text')
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
- for (var i = 0; i < this.separatorElements.length; i++) {
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
- for (var i = 0; i < this.separatorElements.length; i++) {
203
- this.separatorElements[parseInt(i.toString(), 10)].textContent = this.separator;
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
- this.setElementAttributes({ 'placeholder': this.placeholder.length === 1 || this.placeholder.length === 0 ? this.placeholder : this.placeholder.charAt(i) }, this.inputs[parseInt(i.toString(), 10)]);
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 _this = this;
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', 'inputmode' in _this.htmlAttributes ? _this.htmlAttributes['inputmode'] : (inputType === 'number' ? 'numeric' : 'text'));
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
- if (value.length > 0) {
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
- if (index !== this.inputs.length - 1) {
271
- value = nextInputElement.value;
272
- nextInputElement.value = '';
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
- if (index > 0) {
293
- previousInputElement.focus();
294
- previousInputElement.select();
295
- }
287
+ if (event.key === 'ArrowLeft' && index > 0) {
288
+ previousInputElement.focus();
289
+ previousInputElement.select();
296
290
  }
297
- else {
298
- if (index < this.inputs.length - 1) {
299
- nextInputElement.focus();
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 (event.key !== 'Tab' && !event.shiftKey && !event.ctrlKey) {
310
- if (this.type === 'number' && (/\D/.test(event.key.toLocaleLowerCase()))) {
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
- var isValueChanged = previousValue.toString().charAt(i) !== stringifiedValue.charAt(i);
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
- variantClass = variantClass === 'outlined' ? 'outline' : variantClass;
456
- if (variantClass === 'underlined' || variantClass === 'filled' || variantClass === 'outline') {
457
- removeClass([this.element], ['e-underlined', 'e-filled', 'e-outline']);
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
- for (var i = 0; i < this.inputs.length; i++) {
560
- remove(this.inputs[parseInt(i.toString(), 10)]);
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) {
@@ -330,6 +330,7 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
330
330
  private isBootstrap;
331
331
  private isBootstrap4;
332
332
  private isTailwind;
333
+ private isTailwind3;
333
334
  private isBootstrap5;
334
335
  private isFluent;
335
336
  private isFluent2;
@@ -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
- this.isBootstrap4 || this.isTailwind || this.isBootstrap5 || this.isFluent || this.isFluent2 || this.isBootstrap5Dot3,
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;
@@ -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
  }