@syncfusion/ej2-inputs 32.2.8 → 33.1.44

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 32.2.8
3
+ * version : 33.1.44
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-inputs",
3
- "version": "32.2.8",
3
+ "version": "33.1.44",
4
4
  "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.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,10 +8,10 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-inputs.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~32.2.6",
12
- "@syncfusion/ej2-buttons": "~32.2.7",
13
- "@syncfusion/ej2-popups": "~32.2.8",
14
- "@syncfusion/ej2-splitbuttons": "~32.2.7"
11
+ "@syncfusion/ej2-base": "~33.1.44",
12
+ "@syncfusion/ej2-buttons": "~33.1.44",
13
+ "@syncfusion/ej2-popups": "~33.1.44",
14
+ "@syncfusion/ej2-splitbuttons": "~33.1.44"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -79,7 +79,7 @@ export declare namespace Input {
79
79
  * @param {string} placeholder - Placeholder value which is need to add.
80
80
  * @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the placeholder is need to add.
81
81
  */
82
- function setPlaceholder(placeholder: string, element: HTMLInputElement | HTMLTextAreaElement): void;
82
+ function setPlaceholder(placeholder: string, element: HTMLInputElement | HTMLTextAreaElement, moduleName?: string): void;
83
83
  /**
84
84
  * Set the read only attribute to the input element
85
85
  * ```
@@ -119,27 +119,29 @@ export var Input;
119
119
  args.element.addEventListener('focus', focusHandler);
120
120
  args.element.addEventListener('blur', blurHandler);
121
121
  args.element.addEventListener('input', inputHandler);
122
- args.element.__eventHandlers['inputFocusHandler'] = { focusHandler: focusHandler };
123
- args.element.__eventHandlers['inputBlurHandler'] = { blurHandler: blurHandler };
124
- args.element.__eventHandlers['inputHandler'] = { inputHandler: inputHandler };
122
+ args.element.__eventHandlers.inputFocusHandler = focusHandler;
123
+ args.element.__eventHandlers.inputBlurHandler = blurHandler;
124
+ args.element.__eventHandlers.inputHandler = inputHandler;
125
125
  }
126
126
  Input.bindInitialEvent = bindInitialEvent;
127
127
  function unbindInitialEvent(args) {
128
128
  if (!isNullOrUndefined(args.element)) {
129
129
  if (!isNullOrUndefined(args.element.__eventHandlers)) {
130
- if (!isNullOrUndefined(args.element.__eventHandlers['inputFocusHandler'])
131
- && !isNullOrUndefined(args.element.__eventHandlers['inputBlurHandler'])
132
- && !isNullOrUndefined(args.element.__eventHandlers['inputHandler'])) {
133
- var focusHandler_1 = args.element.__eventHandlers['inputFocusHandler'].focusHandler;
134
- var blurHandler_1 = args.element.__eventHandlers['inputBlurHandler'].blurHandler;
135
- var inputHandler_1 = args.element.__eventHandlers['inputHandler'].inputHandler;
130
+ if (!isNullOrUndefined(args.element.__eventHandlers.inputFocusHandler)
131
+ && !isNullOrUndefined(args.element.__eventHandlers.inputBlurHandler)
132
+ && !isNullOrUndefined(args.element.__eventHandlers.inputHandler)) {
133
+ var focusHandler_1 = args.element
134
+ .__eventHandlers.inputFocusHandler;
135
+ var blurHandler_1 = args.element
136
+ .__eventHandlers.inputBlurHandler;
137
+ var inputHandler_1 = args.element.__eventHandlers.inputHandler;
136
138
  args.element.removeEventListener('focus', focusHandler_1);
137
139
  args.element.removeEventListener('blur', blurHandler_1);
138
140
  args.element.removeEventListener('input', inputHandler_1);
139
141
  // Clean up stored bound functions
140
- delete args.element.__eventHandlers['inputFocusHandler'];
141
- delete args.element.__eventHandlers['inputBlurHandler'];
142
- delete args.element.__eventHandlers['inputHandler'];
142
+ args.element.__eventHandlers.inputFocusHandler = null;
143
+ args.element.__eventHandlers.inputBlurHandler = null;
144
+ args.element.__eventHandlers.inputHandler = null;
143
145
  }
144
146
  }
145
147
  }
@@ -264,8 +266,8 @@ export var Input;
264
266
  args.element.addEventListener('input', inputFloatHandler);
265
267
  args.element.addEventListener('blur', blurFloatHandler);
266
268
  // Store the event handler functions to remove them later
267
- args.element.__eventHandlers['floatInputHandler'] = { inputFloatHandler: inputFloatHandler };
268
- args.element.__eventHandlers['floatBlurHandler'] = { blurFloatHandler: blurFloatHandler };
269
+ args.element.__eventHandlers.floatInputHandler = inputFloatHandler;
270
+ args.element.__eventHandlers.floatBlurHandler = blurFloatHandler;
269
271
  }
270
272
  else {
271
273
  unWireFloatLabelEvents(args);
@@ -277,16 +279,16 @@ export var Input;
277
279
  function unWireFloatLabelEvents(args) {
278
280
  if (!isNullOrUndefined(args.element) &&
279
281
  !isNullOrUndefined(args.element.__eventHandlers)
280
- && !isNullOrUndefined(args.element.__eventHandlers['floatInputHandler'])
281
- && !isNullOrUndefined(args.element.__eventHandlers['floatBlurHandler'])) {
282
- var inputFloatHandler = args.element.__eventHandlers['floatInputHandler'].inputFloatHandler;
283
- var blurFloatHandler = args.element.__eventHandlers['floatBlurHandler'].blurFloatHandler;
282
+ && !isNullOrUndefined(args.element.__eventHandlers.floatInputHandler)
283
+ && !isNullOrUndefined(args.element.__eventHandlers.floatBlurHandler)) {
284
+ var inputFloatHandler = args.element.__eventHandlers.floatInputHandler;
285
+ var blurFloatHandler = args.element.__eventHandlers.floatBlurHandler;
284
286
  // Remove the event listeners using the defined functions
285
287
  args.element.removeEventListener('input', inputFloatHandler);
286
288
  args.element.removeEventListener('blur', blurFloatHandler);
287
289
  // Clean up stored event handler functions
288
- delete args.element.__eventHandlers['floatInputHandler'];
289
- delete args.element.__eventHandlers['floatBlurHandler'];
290
+ args.element.__eventHandlers.floatInputHandler = null;
291
+ args.element.__eventHandlers.floatBlurHandler = null;
290
292
  }
291
293
  }
292
294
  function checkFloatLabelType(type, container) {
@@ -405,7 +407,7 @@ export var Input;
405
407
  if (isBindClearAction === undefined || isBindClearAction) {
406
408
  var clickHandlerEvent = function (e) { return clickHandler(e, element, button); };
407
409
  button.addEventListener('click', clickHandlerEvent);
408
- element.__eventHandlers['clearClickHandler'] = { clickHandlerEvent: clickHandlerEvent };
410
+ element.__eventHandlers.clearClickHandler = clickHandlerEvent;
409
411
  }
410
412
  var inputHandlerEvent = function () { return inputHandler(element, button); };
411
413
  var focusHandlerEvent = function () { return focusHandler(element, button); };
@@ -414,36 +416,36 @@ export var Input;
414
416
  element.addEventListener('focus', focusHandlerEvent);
415
417
  element.addEventListener('blur', blurHandlerEvent);
416
418
  // Store the bound functions to remove them later
417
- element.__eventHandlers['clearInputHandler'] = { inputHandlerEvent: inputHandlerEvent };
418
- element.__eventHandlers['clearFocusHandler'] = { focusHandlerEvent: focusHandlerEvent };
419
- element.__eventHandlers['clearBlurHandler'] = { blurHandlerEvent: blurHandlerEvent };
419
+ element.__eventHandlers.clearInputHandler = inputHandlerEvent;
420
+ element.__eventHandlers.clearFocusHandler = focusHandlerEvent;
421
+ element.__eventHandlers.clearBlurHandler = blurHandlerEvent;
420
422
  }
421
423
  Input.wireClearBtnEvents = wireClearBtnEvents;
422
424
  function unWireClearBtnEvents(element, button) {
423
425
  if (!isNullOrUndefined(element) &&
424
426
  !isNullOrUndefined(element.__eventHandlers)) {
425
- if (!isNullOrUndefined(element.__eventHandlers['clearClickHandler'])) {
426
- var clickHandlerEvent = element.__eventHandlers['clearClickHandler'].clickHandlerEvent;
427
+ if (!isNullOrUndefined(element.__eventHandlers.clearClickHandler)) {
428
+ var clickHandlerEvent = element.__eventHandlers.clearClickHandler;
427
429
  if (isBindClearAction === undefined || isBindClearAction) {
428
430
  if (!isNullOrUndefined(button)) {
429
431
  button.removeEventListener('click', clickHandlerEvent);
430
432
  }
431
433
  }
432
- delete element.__eventHandlers['clearClickHandler'];
434
+ element.__eventHandlers.clearClickHandler = null;
433
435
  }
434
- if (!isNullOrUndefined(element.__eventHandlers['clearInputHandler'])
435
- && !isNullOrUndefined(element.__eventHandlers['clearFocusHandler'])
436
- && !isNullOrUndefined(element.__eventHandlers['clearBlurHandler'])) {
437
- var inputHandlerEvent = element.__eventHandlers['clearInputHandler'].inputHandlerEvent;
438
- var focusHandlerEvent = element.__eventHandlers['clearFocusHandler'].focusHandlerEvent;
439
- var blurHandlerEvent = element.__eventHandlers['clearBlurHandler'].blurHandlerEvent;
436
+ if (!isNullOrUndefined(element.__eventHandlers.clearInputHandler)
437
+ && !isNullOrUndefined(element.__eventHandlers.clearFocusHandler)
438
+ && !isNullOrUndefined(element.__eventHandlers.clearBlurHandler)) {
439
+ var inputHandlerEvent = element.__eventHandlers.clearInputHandler;
440
+ var focusHandlerEvent = element.__eventHandlers.clearFocusHandler;
441
+ var blurHandlerEvent = element.__eventHandlers.clearBlurHandler;
440
442
  element.removeEventListener('input', inputHandlerEvent);
441
443
  element.removeEventListener('focus', focusHandlerEvent);
442
444
  element.removeEventListener('blur', blurHandlerEvent);
443
445
  // Clean up stored Event functions
444
- delete element.__eventHandlers['clearInputHandler'];
445
- delete element.__eventHandlers['clearFocusHandler'];
446
- delete element.__eventHandlers['clearBlurHandler'];
446
+ element.__eventHandlers.clearInputHandler = null;
447
+ element.__eventHandlers.clearFocusHandler = null;
448
+ element.__eventHandlers.clearBlurHandler = null;
447
449
  }
448
450
  }
449
451
  }
@@ -622,7 +624,11 @@ export var Input;
622
624
  * @param {string} placeholder - Placeholder value which is need to add.
623
625
  * @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the placeholder is need to add.
624
626
  */
625
- function setPlaceholder(placeholder, element) {
627
+ function setPlaceholder(placeholder, element, moduleName) {
628
+ var modules = [
629
+ 'textbox', 'numerictextbox', 'textarea', 'combobox',
630
+ 'datepicker', 'daterangepicker', 'datetimepicker'
631
+ ];
626
632
  placeholder = encodePlaceHolder(placeholder);
627
633
  var parentElement = getParentNode(element);
628
634
  if (parentElement.classList.contains(CLASSNAMES.FLOATINPUT)) {
@@ -631,6 +637,9 @@ export var Input;
631
637
  if (floatTextContent && floatTextContent.children[0]) {
632
638
  floatTextContent.children[0].textContent = placeholder;
633
639
  }
640
+ else if (modules.indexOf(moduleName) !== -1 && floatTextContent) {
641
+ floatTextContent.textContent = placeholder;
642
+ }
634
643
  else {
635
644
  var floatText = parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0];
636
645
  if (!isNullOrUndefined(floatText)) {
@@ -1379,7 +1379,7 @@ var NumericTextBox = /** @class */ (function (_super) {
1379
1379
  Input.validateInputType(this.container, this.element);
1380
1380
  break;
1381
1381
  case 'placeholder':
1382
- Input.setPlaceholder(newProp.placeholder, this.element);
1382
+ Input.setPlaceholder(newProp.placeholder, this.element, this.getModuleName());
1383
1383
  Input.calculateWidth(this.element, this.container);
1384
1384
  break;
1385
1385
  case 'step':
@@ -125,7 +125,7 @@ var TextArea = /** @class */ (function (_super) {
125
125
  this.handleAdornmentFloatLabel();
126
126
  break;
127
127
  case 'placeholder':
128
- Input.setPlaceholder(this.placeholder, this.element);
128
+ Input.setPlaceholder(this.placeholder, this.element, this.getModuleName());
129
129
  Input.calculateWidth(this.element, this.textareaWrapper.container);
130
130
  break;
131
131
  case 'cssClass':
@@ -130,7 +130,7 @@ var TextBox = /** @class */ (function (_super) {
130
130
  this.handleFloatLabel();
131
131
  break;
132
132
  case 'placeholder':
133
- Input.setPlaceholder(this.placeholder, this.respectiveElement);
133
+ Input.setPlaceholder(this.placeholder, this.respectiveElement, this.getModuleName());
134
134
  Input.calculateWidth(this.respectiveElement, this.textboxWrapper.container);
135
135
  break;
136
136
  case 'autocomplete':
@@ -305,6 +305,7 @@ var Uploader = /** @class */ (function (_super) {
305
305
  }
306
306
  }
307
307
  }
308
+ element = null;
308
309
  };
309
310
  Uploader.prototype.reRenderFileList = function () {
310
311
  if (this.listParent) {
@@ -622,6 +623,7 @@ var Uploader = /** @class */ (function (_super) {
622
623
  if (!enableDropText && dropTextArea) {
623
624
  remove(dropTextArea);
624
625
  }
626
+ element = null;
625
627
  }
626
628
  else if (!isNullOrUndefined(this.uploaderOptions) && this.uploaderOptions.dropArea === undefined) {
627
629
  this.createDropTextHint();
@@ -942,6 +944,7 @@ var Uploader = /** @class */ (function (_super) {
942
944
  for (var j = startIndex; j < (startIndex + nameElements); j++) {
943
945
  data.push(allFiles[j]);
944
946
  }
947
+ liElement = null;
945
948
  return data;
946
949
  };
947
950
  Uploader.prototype.removeFiles = function (args) {
@@ -985,6 +988,8 @@ var Uploader = /** @class */ (function (_super) {
985
988
  this.clearButton.removeAttribute('disabled');
986
989
  }
987
990
  }
991
+ liElement = null;
992
+ selectedElement = null;
988
993
  };
989
994
  Uploader.prototype.removeFilesData = function (file, customTemplate) {
990
995
  var index;
@@ -1000,6 +1005,10 @@ var Uploader = /** @class */ (function (_super) {
1000
1005
  return;
1001
1006
  }
1002
1007
  this.element.value = '';
1008
+ var iconElement = selectedElement.querySelector('.e-icons');
1009
+ if (iconElement) {
1010
+ EventHandler.remove(iconElement, 'click', this.removeFiles);
1011
+ }
1003
1012
  detach(selectedElement);
1004
1013
  index = this.fileList.indexOf(selectedElement);
1005
1014
  this.fileList.splice(index, 1);
@@ -1068,6 +1077,7 @@ var Uploader = /** @class */ (function (_super) {
1068
1077
  formData.append(name, selectedFiles.name);
1069
1078
  }
1070
1079
  this.updateFormData(formData, eventArgs.customFormData);
1080
+ liElement = null;
1071
1081
  };
1072
1082
  /* istanbul ignore next */
1073
1083
  Uploader.prototype.updateFormData = function (formData, customData) {
@@ -1135,6 +1145,7 @@ var Uploader = /** @class */ (function (_super) {
1135
1145
  statusElement.classList.add(UPLOAD_FAILED);
1136
1146
  }
1137
1147
  }
1148
+ rootElement = null;
1138
1149
  this.checkActionButtonStatus();
1139
1150
  }
1140
1151
  this.trigger('failure', args);
@@ -1145,6 +1156,7 @@ var Uploader = /** @class */ (function (_super) {
1145
1156
  hideSpinner(spinnerTarget);
1146
1157
  detach(liElement.querySelector('.e-spinner-pane'));
1147
1158
  }
1159
+ liElement = null;
1148
1160
  };
1149
1161
  /* istanbul ignore next */
1150
1162
  Uploader.prototype.getFilesFromFolder = function (event) {
@@ -1423,6 +1435,10 @@ var Uploader = /** @class */ (function (_super) {
1423
1435
  };
1424
1436
  Uploader.prototype.clearData = function (singleUpload) {
1425
1437
  if (!isNullOrUndefined(this.listParent)) {
1438
+ var fileItems = this.listParent.querySelectorAll('.e-icons');
1439
+ for (var i = 0; i < fileItems.length; i++) {
1440
+ EventHandler.remove(fileItems[i], 'click', this.removeFiles);
1441
+ }
1426
1442
  detach(this.listParent);
1427
1443
  this.listParent = null;
1428
1444
  }
@@ -1434,9 +1450,10 @@ var Uploader = /** @class */ (function (_super) {
1434
1450
  if (hiddenElement) {
1435
1451
  this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).removeChild(hiddenElement);
1436
1452
  }
1453
+ hiddenElement = null;
1437
1454
  }
1438
- this.fileList = [];
1439
- this.filesData = [];
1455
+ this.fileList.length = 0;
1456
+ this.filesData.length = 0;
1440
1457
  this.removeActionButtons();
1441
1458
  };
1442
1459
  Uploader.prototype.updateSortedFileList = function (filesData) {
@@ -1446,6 +1463,7 @@ var Uploader = /** @class */ (function (_super) {
1446
1463
  for (var i = 0; i < this.listParent.querySelectorAll('li').length; i++) {
1447
1464
  var liElement = this.listParent.querySelectorAll('li')[i];
1448
1465
  previousListClone.appendChild(liElement.cloneNode(true));
1466
+ liElement = null;
1449
1467
  }
1450
1468
  this.removeActionButtons();
1451
1469
  var oldList = [].slice.call(previousListClone.childNodes);
@@ -1463,6 +1481,8 @@ var Uploader = /** @class */ (function (_super) {
1463
1481
  this.internalCreateFileList([filesData[index]]);
1464
1482
  }
1465
1483
  }
1484
+ previousListClone.innerHTML = '';
1485
+ oldList.length = 0;
1466
1486
  }
1467
1487
  else {
1468
1488
  this.internalCreateFileList(filesData);
@@ -1575,6 +1595,7 @@ var Uploader = /** @class */ (function (_super) {
1575
1595
  this.trigger('fileListRendering', eventsArgs);
1576
1596
  this.listParent.appendChild(listElement);
1577
1597
  this.fileList.push(listElement);
1598
+ listElement = null;
1578
1599
  }
1579
1600
  this.renderReactTemplates();
1580
1601
  };
@@ -1898,6 +1919,7 @@ var Uploader = /** @class */ (function (_super) {
1898
1919
  this.checkActionComplete(true);
1899
1920
  this.flag = preventActionComplete;
1900
1921
  }
1922
+ liElement = null;
1901
1923
  }
1902
1924
  }
1903
1925
  };
@@ -1958,6 +1980,7 @@ var Uploader = /** @class */ (function (_super) {
1958
1980
  filterFiles.push(files[i]);
1959
1981
  }
1960
1982
  }
1983
+ li = null;
1961
1984
  return filterFiles;
1962
1985
  };
1963
1986
  Uploader.prototype.updateStatus = function (files, status, statusCode, updateLiStatus) {
@@ -1973,6 +1996,7 @@ var Uploader = /** @class */ (function (_super) {
1973
1996
  li.querySelector('.' + STATUS).textContent = status;
1974
1997
  }
1975
1998
  }
1999
+ li = null;
1976
2000
  }
1977
2001
  return files;
1978
2002
  };
@@ -2046,6 +2070,7 @@ var Uploader = /** @class */ (function (_super) {
2046
2070
  }
2047
2071
  var args = { e: e, operation: 'upload', file: this.updateStatus(files, this.localizedTexts('inProgress'), '3') };
2048
2072
  this.trigger('progress', args);
2073
+ li = null;
2049
2074
  };
2050
2075
  /* istanbul ignore next */
2051
2076
  Uploader.prototype.cancelUploadingFile = function (files, e, request, li) {
@@ -2112,6 +2137,7 @@ var Uploader = /** @class */ (function (_super) {
2112
2137
  var requestResponse = e && e.currentTarget ? this.getResponse(e) : null;
2113
2138
  var args = { event: e, response: requestResponse, operation: 'cancel', file: file };
2114
2139
  this.trigger('success', args);
2140
+ liElement = null;
2115
2141
  };
2116
2142
  Uploader.prototype.renderFailureState = function (e, file, liElement) {
2117
2143
  var _this = this;
@@ -2231,6 +2257,7 @@ var Uploader = /** @class */ (function (_super) {
2231
2257
  _this.checkActionComplete(true);
2232
2258
  }
2233
2259
  });
2260
+ liElement = null;
2234
2261
  };
2235
2262
  Uploader.prototype.uploadFailed = function (e, file) {
2236
2263
  var _this = this;
@@ -2249,6 +2276,7 @@ var Uploader = /** @class */ (function (_super) {
2249
2276
  _this.uploadSequential();
2250
2277
  _this.checkActionComplete(true);
2251
2278
  });
2279
+ li = null;
2252
2280
  };
2253
2281
  Uploader.prototype.uploadSequential = function () {
2254
2282
  if (this.sequentialUpload) {
@@ -2532,6 +2560,7 @@ var Uploader = /** @class */ (function (_super) {
2532
2560
  }, false);
2533
2561
  this.checkActionButtonStatus();
2534
2562
  }
2563
+ liElement = null;
2535
2564
  };
2536
2565
  Uploader.prototype.checkChunkUpload = function () {
2537
2566
  return (this.asyncSettings.chunkSize <= 0 || isNullOrUndefined(this.asyncSettings.chunkSize)) ? false : true;
@@ -2625,6 +2654,7 @@ var Uploader = /** @class */ (function (_super) {
2625
2654
  else {
2626
2655
  this.chunkUploadFailed(e, metaData);
2627
2656
  }
2657
+ liElement = null;
2628
2658
  };
2629
2659
  Uploader.prototype.sendNextRequest = function (metaData) {
2630
2660
  metaData.start = metaData.end;
@@ -2657,6 +2687,7 @@ var Uploader = /** @class */ (function (_super) {
2657
2687
  hideSpinner(spinnerTarget);
2658
2688
  detach(liElement.querySelector('.e-spinner-pane'));
2659
2689
  }
2690
+ liElement = null;
2660
2691
  }
2661
2692
  };
2662
2693
  Uploader.prototype.pauseUpload = function (metaData, e, custom) {
@@ -2697,6 +2728,7 @@ var Uploader = /** @class */ (function (_super) {
2697
2728
  }
2698
2729
  this.pausedData.push(metaData);
2699
2730
  this.trigger('pausing', eventArgs);
2731
+ liElement = null;
2700
2732
  };
2701
2733
  Uploader.prototype.resumeUpload = function (metaData, e, custom) {
2702
2734
  var liElement = this.getLiElement(metaData.file);
@@ -2737,6 +2769,7 @@ var Uploader = /** @class */ (function (_super) {
2737
2769
  }
2738
2770
  }
2739
2771
  }
2772
+ liElement = null;
2740
2773
  };
2741
2774
  Uploader.prototype.updateMetaData = function (metaData) {
2742
2775
  if (this.uploadMetaData.indexOf(metaData) === -1) {
@@ -2759,6 +2792,7 @@ var Uploader = /** @class */ (function (_super) {
2759
2792
  cancelButton.classList.remove(ABORT_ICON, UPLOAD_INPROGRESS);
2760
2793
  }
2761
2794
  }
2795
+ liElement = null;
2762
2796
  };
2763
2797
  Uploader.prototype.chunkUploadFailed = function (e, metaData, custom) {
2764
2798
  var _this = this;
@@ -2828,6 +2862,7 @@ var Uploader = /** @class */ (function (_super) {
2828
2862
  }
2829
2863
  }
2830
2864
  });
2865
+ liElement = null;
2831
2866
  };
2832
2867
  Uploader.prototype.retryRequest = function (liElement, metaData, custom) {
2833
2868
  if (isNullOrUndefined(this.template) && (isNullOrUndefined(custom) || !custom) && liElement) {
@@ -2938,6 +2973,7 @@ var Uploader = /** @class */ (function (_super) {
2938
2973
  _this.checkPausePlayAction(e);
2939
2974
  }, false);
2940
2975
  }
2976
+ liElement = null;
2941
2977
  };
2942
2978
  /**
2943
2979
  * It is used to convert bytes value into kilobytes or megabytes depending on the size based
@@ -3016,11 +3052,18 @@ var Uploader = /** @class */ (function (_super) {
3016
3052
  this.uploadWrapper.parentElement.appendChild(this.element);
3017
3053
  detach(this.uploadWrapper);
3018
3054
  }
3019
- this.uploadWrapper = null;
3055
+ this.fileList = [];
3056
+ this.filesData = [];
3057
+ this.fileList.length = 0;
3058
+ this.filesData.length = 0;
3020
3059
  this.uploadWrapper = null;
3021
3060
  this.browseButton = null;
3061
+ this.listParent = null;
3022
3062
  this.dropAreaWrapper = null;
3023
3063
  this.dropZoneElement = null;
3064
+ this.actionButtons = null;
3065
+ this.pauseButton = null;
3066
+ this.formElement = null;
3024
3067
  this.dropArea = null;
3025
3068
  this.keyboardModule = null;
3026
3069
  this.clearButton = null;
@@ -3213,6 +3256,7 @@ var Uploader = /** @class */ (function (_super) {
3213
3256
  for (var j = endIndex; j >= startIndex; j--) {
3214
3257
  allFiles.splice(j, 1);
3215
3258
  }
3259
+ liElement = null;
3216
3260
  };
3217
3261
  /* eslint-disable valid-jsdoc, jsdoc/require-param */
3218
3262
  /**
@@ -2850,8 +2850,8 @@ textarea.e-input::selection,
2850
2850
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning).e-error,
2851
2851
  .e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error,
2852
2852
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error {
2853
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-danger), 0.25);
2854
- box-shadow: 0 0 0 4px rgba(var(--color-sf-danger), 0.25);
2853
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b/0.25);
2854
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b/0.25);
2855
2855
  }
2856
2856
 
2857
2857
  .e-input:focus:not(.e-error):not(.e-warning).e-success,
@@ -2861,8 +2861,8 @@ textarea.e-input::selection,
2861
2861
  .e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group) textarea:focus,
2862
2862
  .e-float-input:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input,
2863
2863
  .e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input {
2864
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2865
- box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2864
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2865
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2866
2866
  }
2867
2867
 
2868
2868
  .e-input:focus:not(.e-success):not(.e-error).e-warning,
@@ -2876,8 +2876,8 @@ textarea.e-input::selection,
2876
2876
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-error).e-warning,
2877
2877
  .e-input-group:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning,
2878
2878
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning {
2879
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-warning), 0.25);
2880
- box-shadow: 0 0 0 4px rgba(var(--color-sf-warning), 0.25);
2879
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b/0.25);
2880
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b/0.25);
2881
2881
  }
2882
2882
 
2883
2883
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error) input.e-input:focus,
@@ -2902,8 +2902,8 @@ textarea.e-input::selection,
2902
2902
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-error):not(.e-warning).e-success,
2903
2903
  .e-input-group:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success,
2904
2904
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success {
2905
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2906
- box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2905
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2906
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2907
2907
  }
2908
2908
 
2909
2909
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error),
@@ -2850,8 +2850,8 @@ textarea.e-input::selection,
2850
2850
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning).e-error,
2851
2851
  .e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error,
2852
2852
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error {
2853
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-danger), 0.25);
2854
- box-shadow: 0 0 0 4px rgba(var(--color-sf-danger), 0.25);
2853
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b/0.25);
2854
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b/0.25);
2855
2855
  }
2856
2856
 
2857
2857
  .e-input:focus:not(.e-error):not(.e-warning).e-success,
@@ -2861,8 +2861,8 @@ textarea.e-input::selection,
2861
2861
  .e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group) textarea:focus,
2862
2862
  .e-float-input:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input,
2863
2863
  .e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input {
2864
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2865
- box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2864
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2865
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2866
2866
  }
2867
2867
 
2868
2868
  .e-input:focus:not(.e-success):not(.e-error).e-warning,
@@ -2876,8 +2876,8 @@ textarea.e-input::selection,
2876
2876
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-error).e-warning,
2877
2877
  .e-input-group:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning,
2878
2878
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning {
2879
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-warning), 0.25);
2880
- box-shadow: 0 0 0 4px rgba(var(--color-sf-warning), 0.25);
2879
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b/0.25);
2880
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b/0.25);
2881
2881
  }
2882
2882
 
2883
2883
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error) input.e-input:focus,
@@ -2902,8 +2902,8 @@ textarea.e-input::selection,
2902
2902
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-error):not(.e-warning).e-success,
2903
2903
  .e-input-group:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success,
2904
2904
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success {
2905
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2906
- box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2905
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2906
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2907
2907
  }
2908
2908
 
2909
2909
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error),
@@ -193,9 +193,9 @@ $input-bigger-small-left-child-min-height: $zero-value !default;
193
193
  $input-bigger-small-left-child-min-width: $zero-value !default;
194
194
  $input-icon-inner-width: $zero-value !default;
195
195
  $input-icon-inner-height: $zero-value !default;
196
- $input-error-border-shadow: 0 0 0 4px rgba($danger, .25) !default;
197
- $input-success-border-shadow: 0 0 0 4px rgba($success, .25) !default;
198
- $input-warning-border-shadow: 0 0 0 4px rgba($warning, .25) !default;
196
+ $input-error-border-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b / .25) !default;
197
+ $input-success-border-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b / .25) !default;
198
+ $input-warning-border-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b / .25) !default;
199
199
  $input-group-border-shadow: $shadow-sm !default;
200
200
 
201
201
  // color
@@ -2672,8 +2672,8 @@ textarea.e-input::selection,
2672
2672
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning).e-error,
2673
2673
  .e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error,
2674
2674
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error {
2675
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-danger), 0.25);
2676
- box-shadow: 0 0 0 4px rgba(var(--color-sf-danger), 0.25);
2675
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b/0.25);
2676
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-danger) r g b/0.25);
2677
2677
  }
2678
2678
 
2679
2679
  .e-input:focus:not(.e-error):not(.e-warning).e-success,
@@ -2683,8 +2683,8 @@ textarea.e-input::selection,
2683
2683
  .e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group) textarea:focus,
2684
2684
  .e-float-input:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input,
2685
2685
  .e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input {
2686
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2687
- box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2686
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2687
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2688
2688
  }
2689
2689
 
2690
2690
  .e-input:focus:not(.e-success):not(.e-error).e-warning,
@@ -2698,8 +2698,8 @@ textarea.e-input::selection,
2698
2698
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-error).e-warning,
2699
2699
  .e-input-group:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning,
2700
2700
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning {
2701
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-warning), 0.25);
2702
- box-shadow: 0 0 0 4px rgba(var(--color-sf-warning), 0.25);
2701
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b/0.25);
2702
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-warning) r g b/0.25);
2703
2703
  }
2704
2704
 
2705
2705
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error) input.e-input:focus,
@@ -2724,8 +2724,8 @@ textarea.e-input::selection,
2724
2724
  .e-input-group.e-control-wrapper.e-input-focus:not(.e-error):not(.e-warning).e-success,
2725
2725
  .e-input-group:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success,
2726
2726
  .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success {
2727
- -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2728
- box-shadow: 0 0 0 4px rgba(var(--color-sf-success), 0.25);
2727
+ -webkit-box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2728
+ box-shadow: 0 0 0 4px rgba(from var(--color-sf-success) r g b/0.25);
2729
2729
  }
2730
2730
 
2731
2731
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error),