@syncfusion/ej2-inputs 32.2.8 → 33.1.47

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.47
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.47",
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.45",
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)) {
@@ -594,7 +594,9 @@ var MaskedTextBox = /** @class */ (function (_super) {
594
594
  }, this.clearButton);
595
595
  this.changeEventArgs = null;
596
596
  this.inputObj = null;
597
- setValue('ej2_instances', null, this.element);
597
+ if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {
598
+ setValue('ej2_instances', null, this.element);
599
+ }
598
600
  _super.prototype.destroy.call(this);
599
601
  };
600
602
  __decorate([
@@ -1293,7 +1293,9 @@ var NumericTextBox = /** @class */ (function (_super) {
1293
1293
  floatLabelType: this.floatLabelType,
1294
1294
  properties: this.properties
1295
1295
  }, this.clearButton);
1296
- setValue('ej2_instances', null, this.element);
1296
+ if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {
1297
+ setValue('ej2_instances', null, this.element);
1298
+ }
1297
1299
  _super.prototype.destroy.call(this);
1298
1300
  };
1299
1301
  /**
@@ -1379,7 +1381,7 @@ var NumericTextBox = /** @class */ (function (_super) {
1379
1381
  Input.validateInputType(this.container, this.element);
1380
1382
  break;
1381
1383
  case 'placeholder':
1382
- Input.setPlaceholder(newProp.placeholder, this.element);
1384
+ Input.setPlaceholder(newProp.placeholder, this.element, this.getModuleName());
1383
1385
  Input.calculateWidth(this.element, this.container);
1384
1386
  break;
1385
1387
  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':
@@ -537,7 +537,9 @@ var TextArea = /** @class */ (function (_super) {
537
537
  properties: this.properties
538
538
  }, this.clearButton);
539
539
  this.formElement = null;
540
- setValue('ej2_instances', null, this.element);
540
+ if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {
541
+ setValue('ej2_instances', null, this.element);
542
+ }
541
543
  _super.prototype.destroy.call(this);
542
544
  };
543
545
  TextArea.prototype.focusHandler = function (args) {
@@ -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':
@@ -695,7 +695,9 @@ var TextBox = /** @class */ (function (_super) {
695
695
  floatLabelType: this.floatLabelType,
696
696
  properties: this.properties
697
697
  }, this.clearButton);
698
- setValue('ej2_instances', null, this.element);
698
+ if (this.element.tagName === 'EJS-TEXTBOX') {
699
+ setValue('ej2_instances', null, this.element);
700
+ }
699
701
  _super.prototype.destroy.call(this);
700
702
  };
701
703
  /**
@@ -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) {
@@ -369,7 +370,12 @@ var Uploader = /** @class */ (function (_super) {
369
370
  }
370
371
  }
371
372
  if (isNullOrUndefined(this.element.getAttribute('name'))) {
372
- this.element.setAttribute('name', this.element.getAttribute('id'));
373
+ if (!isNullOrUndefined(this.element.getAttribute('id')) && this.element.getAttribute('id') !== '') {
374
+ this.element.setAttribute('name', this.element.getAttribute('id'));
375
+ }
376
+ else {
377
+ this.element.setAttribute('name', 'UploadFiles');
378
+ }
373
379
  }
374
380
  if (!this.element.hasAttribute('type')) {
375
381
  this.element.setAttribute('type', 'file');
@@ -622,6 +628,7 @@ var Uploader = /** @class */ (function (_super) {
622
628
  if (!enableDropText && dropTextArea) {
623
629
  remove(dropTextArea);
624
630
  }
631
+ element = null;
625
632
  }
626
633
  else if (!isNullOrUndefined(this.uploaderOptions) && this.uploaderOptions.dropArea === undefined) {
627
634
  this.createDropTextHint();
@@ -942,6 +949,7 @@ var Uploader = /** @class */ (function (_super) {
942
949
  for (var j = startIndex; j < (startIndex + nameElements); j++) {
943
950
  data.push(allFiles[j]);
944
951
  }
952
+ liElement = null;
945
953
  return data;
946
954
  };
947
955
  Uploader.prototype.removeFiles = function (args) {
@@ -985,6 +993,8 @@ var Uploader = /** @class */ (function (_super) {
985
993
  this.clearButton.removeAttribute('disabled');
986
994
  }
987
995
  }
996
+ liElement = null;
997
+ selectedElement = null;
988
998
  };
989
999
  Uploader.prototype.removeFilesData = function (file, customTemplate) {
990
1000
  var index;
@@ -1000,6 +1010,10 @@ var Uploader = /** @class */ (function (_super) {
1000
1010
  return;
1001
1011
  }
1002
1012
  this.element.value = '';
1013
+ var iconElement = selectedElement.querySelector('.e-icons');
1014
+ if (iconElement) {
1015
+ EventHandler.remove(iconElement, 'click', this.removeFiles);
1016
+ }
1003
1017
  detach(selectedElement);
1004
1018
  index = this.fileList.indexOf(selectedElement);
1005
1019
  this.fileList.splice(index, 1);
@@ -1068,6 +1082,7 @@ var Uploader = /** @class */ (function (_super) {
1068
1082
  formData.append(name, selectedFiles.name);
1069
1083
  }
1070
1084
  this.updateFormData(formData, eventArgs.customFormData);
1085
+ liElement = null;
1071
1086
  };
1072
1087
  /* istanbul ignore next */
1073
1088
  Uploader.prototype.updateFormData = function (formData, customData) {
@@ -1135,6 +1150,7 @@ var Uploader = /** @class */ (function (_super) {
1135
1150
  statusElement.classList.add(UPLOAD_FAILED);
1136
1151
  }
1137
1152
  }
1153
+ rootElement = null;
1138
1154
  this.checkActionButtonStatus();
1139
1155
  }
1140
1156
  this.trigger('failure', args);
@@ -1145,6 +1161,7 @@ var Uploader = /** @class */ (function (_super) {
1145
1161
  hideSpinner(spinnerTarget);
1146
1162
  detach(liElement.querySelector('.e-spinner-pane'));
1147
1163
  }
1164
+ liElement = null;
1148
1165
  };
1149
1166
  /* istanbul ignore next */
1150
1167
  Uploader.prototype.getFilesFromFolder = function (event) {
@@ -1423,6 +1440,10 @@ var Uploader = /** @class */ (function (_super) {
1423
1440
  };
1424
1441
  Uploader.prototype.clearData = function (singleUpload) {
1425
1442
  if (!isNullOrUndefined(this.listParent)) {
1443
+ var fileItems = this.listParent.querySelectorAll('.e-icons');
1444
+ for (var i = 0; i < fileItems.length; i++) {
1445
+ EventHandler.remove(fileItems[i], 'click', this.removeFiles);
1446
+ }
1426
1447
  detach(this.listParent);
1427
1448
  this.listParent = null;
1428
1449
  }
@@ -1434,9 +1455,10 @@ var Uploader = /** @class */ (function (_super) {
1434
1455
  if (hiddenElement) {
1435
1456
  this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).removeChild(hiddenElement);
1436
1457
  }
1458
+ hiddenElement = null;
1437
1459
  }
1438
- this.fileList = [];
1439
- this.filesData = [];
1460
+ this.fileList.length = 0;
1461
+ this.filesData.length = 0;
1440
1462
  this.removeActionButtons();
1441
1463
  };
1442
1464
  Uploader.prototype.updateSortedFileList = function (filesData) {
@@ -1446,6 +1468,7 @@ var Uploader = /** @class */ (function (_super) {
1446
1468
  for (var i = 0; i < this.listParent.querySelectorAll('li').length; i++) {
1447
1469
  var liElement = this.listParent.querySelectorAll('li')[i];
1448
1470
  previousListClone.appendChild(liElement.cloneNode(true));
1471
+ liElement = null;
1449
1472
  }
1450
1473
  this.removeActionButtons();
1451
1474
  var oldList = [].slice.call(previousListClone.childNodes);
@@ -1463,6 +1486,8 @@ var Uploader = /** @class */ (function (_super) {
1463
1486
  this.internalCreateFileList([filesData[index]]);
1464
1487
  }
1465
1488
  }
1489
+ previousListClone.innerHTML = '';
1490
+ oldList.length = 0;
1466
1491
  }
1467
1492
  else {
1468
1493
  this.internalCreateFileList(filesData);
@@ -1575,6 +1600,7 @@ var Uploader = /** @class */ (function (_super) {
1575
1600
  this.trigger('fileListRendering', eventsArgs);
1576
1601
  this.listParent.appendChild(listElement);
1577
1602
  this.fileList.push(listElement);
1603
+ listElement = null;
1578
1604
  }
1579
1605
  this.renderReactTemplates();
1580
1606
  };
@@ -1898,6 +1924,7 @@ var Uploader = /** @class */ (function (_super) {
1898
1924
  this.checkActionComplete(true);
1899
1925
  this.flag = preventActionComplete;
1900
1926
  }
1927
+ liElement = null;
1901
1928
  }
1902
1929
  }
1903
1930
  };
@@ -1958,6 +1985,7 @@ var Uploader = /** @class */ (function (_super) {
1958
1985
  filterFiles.push(files[i]);
1959
1986
  }
1960
1987
  }
1988
+ li = null;
1961
1989
  return filterFiles;
1962
1990
  };
1963
1991
  Uploader.prototype.updateStatus = function (files, status, statusCode, updateLiStatus) {
@@ -1973,6 +2001,7 @@ var Uploader = /** @class */ (function (_super) {
1973
2001
  li.querySelector('.' + STATUS).textContent = status;
1974
2002
  }
1975
2003
  }
2004
+ li = null;
1976
2005
  }
1977
2006
  return files;
1978
2007
  };
@@ -2046,6 +2075,7 @@ var Uploader = /** @class */ (function (_super) {
2046
2075
  }
2047
2076
  var args = { e: e, operation: 'upload', file: this.updateStatus(files, this.localizedTexts('inProgress'), '3') };
2048
2077
  this.trigger('progress', args);
2078
+ li = null;
2049
2079
  };
2050
2080
  /* istanbul ignore next */
2051
2081
  Uploader.prototype.cancelUploadingFile = function (files, e, request, li) {
@@ -2112,6 +2142,7 @@ var Uploader = /** @class */ (function (_super) {
2112
2142
  var requestResponse = e && e.currentTarget ? this.getResponse(e) : null;
2113
2143
  var args = { event: e, response: requestResponse, operation: 'cancel', file: file };
2114
2144
  this.trigger('success', args);
2145
+ liElement = null;
2115
2146
  };
2116
2147
  Uploader.prototype.renderFailureState = function (e, file, liElement) {
2117
2148
  var _this = this;
@@ -2231,6 +2262,7 @@ var Uploader = /** @class */ (function (_super) {
2231
2262
  _this.checkActionComplete(true);
2232
2263
  }
2233
2264
  });
2265
+ liElement = null;
2234
2266
  };
2235
2267
  Uploader.prototype.uploadFailed = function (e, file) {
2236
2268
  var _this = this;
@@ -2249,6 +2281,7 @@ var Uploader = /** @class */ (function (_super) {
2249
2281
  _this.uploadSequential();
2250
2282
  _this.checkActionComplete(true);
2251
2283
  });
2284
+ li = null;
2252
2285
  };
2253
2286
  Uploader.prototype.uploadSequential = function () {
2254
2287
  if (this.sequentialUpload) {
@@ -2532,6 +2565,7 @@ var Uploader = /** @class */ (function (_super) {
2532
2565
  }, false);
2533
2566
  this.checkActionButtonStatus();
2534
2567
  }
2568
+ liElement = null;
2535
2569
  };
2536
2570
  Uploader.prototype.checkChunkUpload = function () {
2537
2571
  return (this.asyncSettings.chunkSize <= 0 || isNullOrUndefined(this.asyncSettings.chunkSize)) ? false : true;
@@ -2625,6 +2659,7 @@ var Uploader = /** @class */ (function (_super) {
2625
2659
  else {
2626
2660
  this.chunkUploadFailed(e, metaData);
2627
2661
  }
2662
+ liElement = null;
2628
2663
  };
2629
2664
  Uploader.prototype.sendNextRequest = function (metaData) {
2630
2665
  metaData.start = metaData.end;
@@ -2657,6 +2692,7 @@ var Uploader = /** @class */ (function (_super) {
2657
2692
  hideSpinner(spinnerTarget);
2658
2693
  detach(liElement.querySelector('.e-spinner-pane'));
2659
2694
  }
2695
+ liElement = null;
2660
2696
  }
2661
2697
  };
2662
2698
  Uploader.prototype.pauseUpload = function (metaData, e, custom) {
@@ -2697,6 +2733,7 @@ var Uploader = /** @class */ (function (_super) {
2697
2733
  }
2698
2734
  this.pausedData.push(metaData);
2699
2735
  this.trigger('pausing', eventArgs);
2736
+ liElement = null;
2700
2737
  };
2701
2738
  Uploader.prototype.resumeUpload = function (metaData, e, custom) {
2702
2739
  var liElement = this.getLiElement(metaData.file);
@@ -2737,6 +2774,7 @@ var Uploader = /** @class */ (function (_super) {
2737
2774
  }
2738
2775
  }
2739
2776
  }
2777
+ liElement = null;
2740
2778
  };
2741
2779
  Uploader.prototype.updateMetaData = function (metaData) {
2742
2780
  if (this.uploadMetaData.indexOf(metaData) === -1) {
@@ -2759,6 +2797,7 @@ var Uploader = /** @class */ (function (_super) {
2759
2797
  cancelButton.classList.remove(ABORT_ICON, UPLOAD_INPROGRESS);
2760
2798
  }
2761
2799
  }
2800
+ liElement = null;
2762
2801
  };
2763
2802
  Uploader.prototype.chunkUploadFailed = function (e, metaData, custom) {
2764
2803
  var _this = this;
@@ -2828,6 +2867,7 @@ var Uploader = /** @class */ (function (_super) {
2828
2867
  }
2829
2868
  }
2830
2869
  });
2870
+ liElement = null;
2831
2871
  };
2832
2872
  Uploader.prototype.retryRequest = function (liElement, metaData, custom) {
2833
2873
  if (isNullOrUndefined(this.template) && (isNullOrUndefined(custom) || !custom) && liElement) {
@@ -2938,6 +2978,7 @@ var Uploader = /** @class */ (function (_super) {
2938
2978
  _this.checkPausePlayAction(e);
2939
2979
  }, false);
2940
2980
  }
2981
+ liElement = null;
2941
2982
  };
2942
2983
  /**
2943
2984
  * It is used to convert bytes value into kilobytes or megabytes depending on the size based
@@ -3016,16 +3057,25 @@ var Uploader = /** @class */ (function (_super) {
3016
3057
  this.uploadWrapper.parentElement.appendChild(this.element);
3017
3058
  detach(this.uploadWrapper);
3018
3059
  }
3019
- this.uploadWrapper = null;
3060
+ this.fileList = [];
3061
+ this.filesData = [];
3062
+ this.fileList.length = 0;
3063
+ this.filesData.length = 0;
3020
3064
  this.uploadWrapper = null;
3021
3065
  this.browseButton = null;
3066
+ this.listParent = null;
3022
3067
  this.dropAreaWrapper = null;
3023
3068
  this.dropZoneElement = null;
3069
+ this.actionButtons = null;
3070
+ this.pauseButton = null;
3071
+ this.formElement = null;
3024
3072
  this.dropArea = null;
3025
3073
  this.keyboardModule = null;
3026
3074
  this.clearButton = null;
3027
3075
  this.uploadButton = null;
3028
- setValue('ej2_instances', null, this.element);
3076
+ if (this.element.tagName === 'EJS-UPLOADER') {
3077
+ setValue('ej2_instances', null, this.element);
3078
+ }
3029
3079
  _super.prototype.destroy.call(this);
3030
3080
  };
3031
3081
  /**
@@ -3213,6 +3263,7 @@ var Uploader = /** @class */ (function (_super) {
3213
3263
  for (var j = endIndex; j >= startIndex; j--) {
3214
3264
  allFiles.splice(j, 1);
3215
3265
  }
3266
+ liElement = null;
3216
3267
  };
3217
3268
  /* eslint-disable valid-jsdoc, jsdoc/require-param */
3218
3269
  /**
@@ -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(var(--color-sf-danger-shadow), 0.25);
2854
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 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(var(--color-sf-success-shadow), 0.25);
2865
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 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(var(--color-sf-warning-shadow), 0.25);
2880
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 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(var(--color-sf-success-shadow), 0.25);
2906
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 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(var(--color-sf-danger-shadow), 0.25);
2854
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 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(var(--color-sf-success-shadow), 0.25);
2865
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 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(var(--color-sf-warning-shadow), 0.25);
2880
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 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(var(--color-sf-success-shadow), 0.25);
2906
+ box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
2907
2907
  }
2908
2908
 
2909
2909
  .e-input-group:not(.e-success):not(.e-warning):not(.e-error),