@syncfusion/ej2-inputs 31.2.10 → 31.2.15

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.
@@ -1893,9 +1893,6 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1893
1893
  if (this.value || this.value === 0) {
1894
1894
  var value = this.formatNumber();
1895
1895
  var elementValue = this.isFocused ? value : this.instance.getNumberFormat(this.cultureInfo)(this.value);
1896
- if (/[eE]/.test(value)) {
1897
- elementValue = this.formatScientificNotation(elementValue);
1898
- }
1899
1896
  this.setElementValue(elementValue);
1900
1897
  attributes(this.element, { 'aria-valuenow': value });
1901
1898
  if (!isNullOrUndefined(this.hiddenInput)) {
@@ -1949,7 +1946,6 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1949
1946
  };
1950
1947
  NumericTextBox.prototype.formatNumber = function () {
1951
1948
  var numberOfDecimals = this.getNumberOfDecimals(this.value);
1952
- this.storedValueString = this.value.toString();
1953
1949
  return this.instance.getNumberFormat({
1954
1950
  maximumFractionDigits: numberOfDecimals,
1955
1951
  minimumFractionDigits: numberOfDecimals, useGrouping: false
@@ -2069,9 +2065,6 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2069
2065
  this.prevValue = this.value;
2070
2066
  if ((this.value || this.value === 0)) {
2071
2067
  var formatValue_1 = this.formatNumber();
2072
- if (/[eE]/.test(this.value.toString())) {
2073
- formatValue_1 = this.formatScientificNotation(formatValue_1);
2074
- }
2075
2068
  this.setElementValue(formatValue_1);
2076
2069
  if (!this.isPrevFocused) {
2077
2070
  if (!Browser.isDevice && Browser.info.version === '11.0') {
@@ -2114,9 +2107,6 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2114
2107
  this.setProperties({ value: null }, true);
2115
2108
  }
2116
2109
  var parsedInput = this.instance.getNumberParser({ format: 'n' })(this.element.value);
2117
- if (/[eE]/.test(this.element.value)) {
2118
- parsedInput = parseFloat(this.formatScientificNotation(this.element.value));
2119
- }
2120
2110
  this.updateValue(parsedInput);
2121
2111
  if (!Browser.isDevice) {
2122
2112
  EventHandler.remove(this.element, 'mousewheel DOMMouseScroll', this.mouseWheel);
@@ -2219,40 +2209,6 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2219
2209
  EventHandler.remove(this.spinDown, 'mouseleave', this.mouseUpClick);
2220
2210
  }
2221
2211
  };
2222
- NumericTextBox.prototype.formatScientificNotation = function (value) {
2223
- value = this.storedValueString ? this.storedValueString : value;
2224
- var _a = value.toLowerCase().split('e'), base = _a[0], exponentPart = _a[1];
2225
- var exponent = parseInt(exponentPart, 10);
2226
- var match = this.format.match(/n(\d+)/i);
2227
- var requiredDigits = match ? parseInt(match[1], 10) : 10;
2228
- var baseDigits = base.replace('.', '');
2229
- var fullDecimal;
2230
- if (exponent < 0) {
2231
- var zerosCount = Math.abs(Number(exponent)) - 1;
2232
- var limitedZeros = '0'.repeat(Math.min(zerosCount, requiredDigits));
2233
- fullDecimal = '0.' + limitedZeros + baseDigits;
2234
- }
2235
- else {
2236
- var _b = base.split('.'), intPart_1 = _b[0], _c = _b[1], decPart_1 = _c === void 0 ? '' : _c;
2237
- var shift = exponent - decPart_1.length;
2238
- if (shift >= 0) {
2239
- fullDecimal = intPart_1 + decPart_1 + '0'.repeat(shift);
2240
- }
2241
- else {
2242
- var newDec = decPart_1.slice(0, exponent) + '.' + decPart_1.slice(exponent);
2243
- fullDecimal = intPart_1 + newDec;
2244
- }
2245
- }
2246
- var _d = fullDecimal.split('.'), intPart = _d[0], _e = _d[1], decPart = _e === void 0 ? '' : _e;
2247
- if (this.isFocused) {
2248
- var limitedDecimal = decPart.slice(0, requiredDigits);
2249
- return intPart + "." + decPart;
2250
- }
2251
- else {
2252
- var formattedDecimal = decPart.padEnd(requiredDigits, '0').slice(0, requiredDigits);
2253
- return intPart + "." + formattedDecimal;
2254
- }
2255
- };
2256
2212
  /**
2257
2213
  * Increments the NumericTextBox value with the specified step value.
2258
2214
  *
@@ -9568,12 +9524,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9568
9524
  if (!this.enabled) {
9569
9525
  return;
9570
9526
  }
9571
- if (!this.multiple && this.getFilesData().length > 0) {
9572
- var selectedFile = this.getSelectedFiles(0);
9573
- if (selectedFile) {
9574
- this.remove(selectedFile, false, false, true, null);
9575
- }
9576
- }
9577
9527
  var targetFiles;
9578
9528
  /* istanbul ignore next */
9579
9529
  if (args.type === 'drop') {
@@ -9772,6 +9722,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9772
9722
  if (this.browserName !== 'msie' && !singleUpload) {
9773
9723
  this.element.value = '';
9774
9724
  }
9725
+ if (this.isFormUpload() && this.uploadWrapper.querySelector('.' + INPUT_WRAPPER)) {
9726
+ var hiddenElement = this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).querySelector('.' + HIDDEN_INPUT);
9727
+ if (hiddenElement) {
9728
+ this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).removeChild(hiddenElement);
9729
+ }
9730
+ }
9775
9731
  this.fileList = [];
9776
9732
  this.filesData = [];
9777
9733
  this.removeActionButtons();