@syncfusion/ej2-inputs 27.2.2 → 28.1.33

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 +70 -66
  6. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  7. package/dist/es6/ej2-inputs.es5.js +71 -67
  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 -10
  13. package/src/common/signature-base.js +21 -11
  14. package/src/numerictextbox/numerictextbox.js +5 -3
  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 +5 -0
  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 +127 -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 +8925 -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 +4 -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 +16 -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 +12253 -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 +4 -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 +1037 -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.2
4
- * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
3
+ * version : 28.1.33
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.1.58",
3
+ "_id": "@syncfusion/ej2-inputs@18.78.15",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-s75vBdv7AiCW1O5g63F0APf1fqTjDkVNmwHxkw2XJ/LACiwrlKiyOCNGJkLyAEALCW804kFlB6Q+VdXkYK9DBA==",
5
+ "_integrity": "sha512-u19irYb2qOhizRbtcSy8Bgirpw6/yGNoeGoPBNv3lLSkhJuBBnKlbkmQypUc7sK2wzvweVhOhKIfa39Qbc1gzg==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -40,19 +40,19 @@
40
40
  "/@syncfusion/ej2-schedule",
41
41
  "/@syncfusion/ej2-vue-inputs"
42
42
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-27.1.58.tgz",
44
- "_shasum": "4a3b02a7205511c8d49c17d382c55e70428ab59e",
43
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-inputs/-/ej2-inputs-18.78.15.tgz",
44
+ "_shasum": "4b6d3072316a9a70c761474f3f0c076356d40cb2",
45
45
  "_spec": "@syncfusion/ej2-inputs@*",
46
- "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
46
+ "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
47
47
  "author": {
48
48
  "name": "Syncfusion Inc."
49
49
  },
50
50
  "bundleDependencies": false,
51
51
  "dependencies": {
52
- "@syncfusion/ej2-base": "~27.2.2",
53
- "@syncfusion/ej2-buttons": "~27.2.2",
54
- "@syncfusion/ej2-popups": "~27.2.2",
55
- "@syncfusion/ej2-splitbuttons": "~27.2.2"
52
+ "@syncfusion/ej2-base": "~28.1.33",
53
+ "@syncfusion/ej2-buttons": "~28.1.33",
54
+ "@syncfusion/ej2-popups": "~28.1.33",
55
+ "@syncfusion/ej2-splitbuttons": "~28.1.33"
56
56
  },
57
57
  "deprecated": false,
58
58
  "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 +120,7 @@
120
120
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
121
121
  },
122
122
  "typings": "index.d.ts",
123
- "version": "27.2.2",
123
+ "version": "28.1.33",
124
124
  "sideEffects": false,
125
125
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
126
126
  }
@@ -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,7 +195,7 @@ 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);
@@ -203,7 +207,7 @@ var SignatureBase = /** @class */ (function (_super) {
203
207
  this.canvasContext.closePath();
204
208
  this.canvasContext.fill();
205
209
  }
206
- else {
210
+ else if (this.canvasContext && this.element) {
207
211
  var restoreImg_1 = new Image();
208
212
  restoreImg_1.src = this.snapColl[this.incStep];
209
213
  restoreImg_1.onload = function () {
@@ -455,10 +459,12 @@ var SignatureBase = /** @class */ (function (_super) {
455
459
  if (this.incStep > 0) {
456
460
  var canvasNew = this.createElement('canvas', { className: 'e-' + this.getModuleName() + '-wrapper' });
457
461
  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());
462
+ if (this.canvasContext) {
463
+ canvasNew.width = this.canvasContext.canvas.width;
464
+ canvasNew.height = this.canvasContext.canvas.height;
465
+ canvasContextNew.drawImage(this.canvasContext.canvas, 0, 0, canvasNew.width, canvasNew.height);
466
+ this.snapColl.push(canvasNew.toDataURL());
467
+ }
462
468
  }
463
469
  else {
464
470
  this.snapColl.push(this.canvasContext.canvas.toDataURL());
@@ -789,7 +795,7 @@ var SignatureBase = /** @class */ (function (_super) {
789
795
  }
790
796
  else if (type === 'Svg') {
791
797
  fileName = fileName || 'Signature';
792
- this.toSVG(fileName, this.canvasContext.canvas.toDataURL('image/png'));
798
+ this.toSVG(fileName);
793
799
  }
794
800
  else if (type === 'Jpeg') {
795
801
  fileName = fileName || 'Signature';
@@ -937,8 +943,12 @@ var SignatureBase = /** @class */ (function (_super) {
937
943
  removeClass([this.element], 'e-' + this.getModuleName());
938
944
  this.element.removeAttribute('tabindex');
939
945
  this.pointColl = null;
946
+ this.tempContext = null;
947
+ this.tempCanvas = null;
948
+ this.canvasContext = null;
940
949
  }
941
950
  _super.prototype.destroy.call(this);
951
+ this.element = null;
942
952
  };
943
953
  /**
944
954
  * Modified onPropertyChanged method for both blazor and EJ2 signature component.
@@ -780,9 +780,11 @@ 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
- if (this.value !== null && this.serverDecimalSeparator) {
785
- this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
783
+ if (!isNullOrUndefined(this.hiddenInput)) {
784
+ this.hiddenInput.value = this.value.toString();
785
+ if (this.value !== null && this.serverDecimalSeparator) {
786
+ this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
787
+ }
786
788
  }
787
789
  }
788
790
  else {
@@ -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;
@@ -2982,6 +2982,8 @@ var Uploader = /** @class */ (function (_super) {
2982
2982
  };
2983
2983
  this.trigger('beforeUpload', eventArgs, function (eventArgs) {
2984
2984
  if (!eventArgs.cancel) {
2985
+ _this.customFormDatas = (eventArgs.customFormData && eventArgs.customFormData.length > 0) ?
2986
+ eventArgs.customFormData : _this.customFormDatas;
2985
2987
  _this.uploadFiles(uploadFiles_1, custom);
2986
2988
  }
2987
2989
  });
@@ -3087,6 +3089,9 @@ var Uploader = /** @class */ (function (_super) {
3087
3089
  if (eventArgs.cancel) {
3088
3090
  _this.eventCancelByArgs(e, eventArgs, selectedFiles[i]);
3089
3091
  }
3092
+ if (_this.customFormDatas && _this.customFormDatas.length > 0) {
3093
+ _this.updateFormData(formData, _this.customFormDatas);
3094
+ }
3090
3095
  _this.updateFormData(formData, eventArgs.customFormData);
3091
3096
  });
3092
3097
  };