@syncfusion/ej2-inputs 19.2.59 → 19.3.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.
Files changed (150) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/ej2-inputs.umd.min.js +2 -2
  3. package/dist/ej2-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-inputs.es2015.js +346 -606
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +358 -623
  7. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  8. package/dist/global/ej2-inputs.min.js +2 -2
  9. package/dist/global/ej2-inputs.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/helpers/e2e/colorpickerHelper.d.ts +23 -0
  12. package/helpers/e2e/colorpickerHelper.js +53 -0
  13. package/package.json +9 -9
  14. package/src/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +1 -4
  15. package/src/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -3
  16. package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +2 -11
  17. package/src/numerictextbox/numerictextbox-model.d.ts +1 -10
  18. package/src/numerictextbox/numerictextbox.d.ts +0 -9
  19. package/src/numerictextbox/numerictextbox.js +51 -95
  20. package/src/slider/slider.d.ts +1 -0
  21. package/src/slider/slider.js +10 -1
  22. package/src/textbox/textbox-model.d.ts +1 -4
  23. package/src/textbox/textbox.d.ts +0 -3
  24. package/src/textbox/textbox.js +90 -112
  25. package/src/uploader/uploader-model.d.ts +1 -26
  26. package/src/uploader/uploader.d.ts +0 -40
  27. package/src/uploader/uploader.js +210 -407
  28. package/styles/bootstrap-dark.css +14 -6
  29. package/styles/bootstrap.css +14 -6
  30. package/styles/bootstrap4.css +22 -12
  31. package/styles/bootstrap5-dark.css +7548 -0
  32. package/styles/bootstrap5-dark.scss +7 -0
  33. package/styles/bootstrap5.css +7548 -0
  34. package/styles/bootstrap5.scss +7 -0
  35. package/styles/color-picker/_bootstrap5-dark-definition.scss +1 -0
  36. package/styles/color-picker/_bootstrap5-definition.scss +134 -0
  37. package/styles/color-picker/_layout.scss +26 -3
  38. package/styles/color-picker/_tailwind-dark-definition.scss +1 -132
  39. package/styles/color-picker/_tailwind-definition.scss +25 -24
  40. package/styles/color-picker/_theme.scss +33 -0
  41. package/styles/color-picker/bootstrap5-dark.css +964 -0
  42. package/styles/color-picker/bootstrap5-dark.scss +11 -0
  43. package/styles/color-picker/bootstrap5.css +964 -0
  44. package/styles/color-picker/bootstrap5.scss +11 -0
  45. package/styles/color-picker/icons/_bootstrap5-dark.scss +1 -0
  46. package/styles/color-picker/icons/_bootstrap5.scss +10 -0
  47. package/styles/fabric-dark.css +15 -7
  48. package/styles/fabric.css +15 -7
  49. package/styles/highcontrast-light.css +15 -7
  50. package/styles/highcontrast.css +16 -8
  51. package/styles/input/_bootstrap5-dark-definition.scss +1 -0
  52. package/styles/input/_bootstrap5-definition.scss +320 -0
  53. package/styles/input/_definition.scss +217 -0
  54. package/styles/input/_fabric-definition.scss +1 -1
  55. package/styles/input/_highcontrast-definition.scss +1 -1
  56. package/styles/input/_layout.scss +196 -157
  57. package/styles/input/_material-dark-definition.scss +133 -120
  58. package/styles/input/_material-definition.scss +1 -0
  59. package/styles/input/_tailwind-dark-definition.scss +1 -315
  60. package/styles/input/_tailwind-definition.scss +50 -47
  61. package/styles/input/_theme.scss +92 -59
  62. package/styles/input/bootstrap-dark.css +12 -3
  63. package/styles/input/bootstrap.css +12 -3
  64. package/styles/input/bootstrap4.css +15 -3
  65. package/styles/input/bootstrap5-dark.css +4670 -0
  66. package/styles/input/bootstrap5-dark.scss +4 -0
  67. package/styles/input/bootstrap5.css +4670 -0
  68. package/styles/input/bootstrap5.scss +4 -0
  69. package/styles/input/fabric-dark.css +12 -3
  70. package/styles/input/fabric.css +13 -4
  71. package/styles/input/highcontrast-light.css +12 -3
  72. package/styles/input/highcontrast.css +13 -4
  73. package/styles/input/icons/_bootstrap5-dark.scss +1 -0
  74. package/styles/input/icons/_bootstrap5.scss +17 -0
  75. package/styles/input/icons/_material-dark.scss +32 -0
  76. package/styles/input/icons/_tailwind-dark.scss +1 -17
  77. package/styles/input/material-dark.css +2320 -201
  78. package/styles/input/material.css +12 -3
  79. package/styles/input/tailwind-dark.css +14 -5
  80. package/styles/input/tailwind.css +14 -5
  81. package/styles/maskedtextbox/_bootstrap5-dark-definition.scss +1 -0
  82. package/styles/maskedtextbox/_bootstrap5-definition.scss +7 -0
  83. package/styles/maskedtextbox/_tailwind-dark-definition.scss +1 -6
  84. package/styles/maskedtextbox/_tailwind-definition.scss +4 -1
  85. package/styles/maskedtextbox/bootstrap5-dark.css +33 -0
  86. package/styles/maskedtextbox/bootstrap5-dark.scss +4 -0
  87. package/styles/maskedtextbox/bootstrap5.css +33 -0
  88. package/styles/maskedtextbox/bootstrap5.scss +4 -0
  89. package/styles/material-dark.css +2337 -218
  90. package/styles/material.css +14 -5
  91. package/styles/numerictextbox/_bootstrap5-dark-definition.scss +1 -0
  92. package/styles/numerictextbox/_bootstrap5-definition.scss +3 -0
  93. package/styles/numerictextbox/_tailwind-dark-definition.scss +1 -5
  94. package/styles/numerictextbox/_tailwind-definition.scss +1 -1
  95. package/styles/numerictextbox/bootstrap5-dark.css +48 -0
  96. package/styles/numerictextbox/bootstrap5-dark.scss +5 -0
  97. package/styles/numerictextbox/bootstrap5.css +48 -0
  98. package/styles/numerictextbox/bootstrap5.scss +5 -0
  99. package/styles/numerictextbox/icons/_bootstrap5-dark.scss +1 -0
  100. package/styles/numerictextbox/icons/_bootstrap5.scss +12 -0
  101. package/styles/numerictextbox/icons/_tailwind-dark.scss +1 -12
  102. package/styles/slider/_bootstrap5-dark-definition.scss +1 -0
  103. package/styles/slider/_bootstrap5-definition.scss +90 -0
  104. package/styles/slider/_fabric-dark-definition.scss +2 -2
  105. package/styles/slider/_layout.scss +294 -69
  106. package/styles/slider/_material-dark-definition.scss +1 -1
  107. package/styles/slider/_tailwind-dark-definition.scss +1 -80
  108. package/styles/slider/_tailwind-definition.scss +32 -27
  109. package/styles/slider/_theme.scss +14 -6
  110. package/styles/slider/bootstrap-dark.css +2 -3
  111. package/styles/slider/bootstrap.css +2 -3
  112. package/styles/slider/bootstrap4.css +7 -9
  113. package/styles/slider/bootstrap5-dark.css +749 -0
  114. package/styles/slider/bootstrap5-dark.scss +5 -0
  115. package/styles/slider/bootstrap5.css +749 -0
  116. package/styles/slider/bootstrap5.scss +5 -0
  117. package/styles/slider/fabric-dark.css +3 -4
  118. package/styles/slider/fabric.css +2 -3
  119. package/styles/slider/highcontrast-light.css +3 -4
  120. package/styles/slider/highcontrast.css +3 -4
  121. package/styles/slider/material-dark.css +16 -16
  122. package/styles/slider/material.css +2 -2
  123. package/styles/slider/tailwind-dark.css +9 -8
  124. package/styles/slider/tailwind.css +7 -3
  125. package/styles/tailwind-dark.css +23 -13
  126. package/styles/tailwind.css +21 -8
  127. package/styles/textbox/_bootstrap5-dark-definition.scss +1 -0
  128. package/styles/textbox/_bootstrap5-definition.scss +0 -0
  129. package/styles/textbox/_tailwind-dark-definition.scss +1 -0
  130. package/styles/textbox/bootstrap5-dark.css +0 -0
  131. package/styles/textbox/bootstrap5-dark.scss +4 -0
  132. package/styles/textbox/bootstrap5.css +0 -0
  133. package/styles/textbox/bootstrap5.scss +4 -0
  134. package/styles/uploader/_bootstrap5-dark-definition.scss +1 -0
  135. package/styles/uploader/_bootstrap5-definition.scss +216 -0
  136. package/styles/uploader/_definition.scss +142 -0
  137. package/styles/uploader/_tailwind-dark-definition.scss +1 -216
  138. package/styles/uploader/_tailwind-definition.scss +21 -21
  139. package/styles/uploader/_theme.scss +2 -2
  140. package/styles/uploader/bootstrap5-dark.css +1079 -0
  141. package/styles/uploader/bootstrap5-dark.scss +6 -0
  142. package/styles/uploader/bootstrap5.css +1079 -0
  143. package/styles/uploader/bootstrap5.scss +6 -0
  144. package/styles/uploader/icons/_bootstrap5-dark.scss +1 -0
  145. package/styles/uploader/icons/_bootstrap5.scss +34 -0
  146. package/styles/uploader/icons/_tailwind-dark.scss +1 -35
  147. package/styles/uploader/material-dark.css +1 -1
  148. package/.eslintrc.json +0 -244
  149. package/styles/color-picker/_icons.scss +0 -10
  150. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { Ajax, Animation, Base, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getInstance, getNumericObject, getUniqueID, getValue, isBlazor, isNullOrUndefined, merge, onIntlChange, remove, removeClass, resetBlazorTemplate, rippleEffect, select, selectAll, setStyleAttribute, setValue, updateBlazorTemplate } from '@syncfusion/ej2-base';
1
+ import { Ajax, Animation, Base, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getInstance, getNumericObject, getUniqueID, getValue, isNullOrUndefined, merge, onIntlChange, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
2
2
  import { Popup, Tooltip, createSpinner, getZindexPartial, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
3
3
  import { Deferred, SplitButton, getModel } from '@syncfusion/ej2-splitbuttons';
4
4
 
@@ -915,15 +915,13 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
915
915
  this.element = input;
916
916
  setValue('ej2_instances', ejInstance, this.element);
917
917
  }
918
- if (!(isBlazor() && this.isServerRendered)) {
919
- attributes(this.element, { 'role': 'spinbutton', 'tabindex': '0', 'autocomplete': 'off', 'aria-live': 'assertive' });
920
- var localeText = {
921
- incrementTitle: 'Increment value', decrementTitle: 'Decrement value', placeholder: this.placeholder
922
- };
923
- this.l10n = new L10n('numerictextbox', localeText, this.locale);
924
- if (this.l10n.getConstant('placeholder') !== '') {
925
- this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
926
- }
918
+ attributes(this.element, { 'role': 'spinbutton', 'tabindex': '0', 'autocomplete': 'off', 'aria-live': 'assertive' });
919
+ var localeText = {
920
+ incrementTitle: 'Increment value', decrementTitle: 'Decrement value', placeholder: this.placeholder
921
+ };
922
+ this.l10n = new L10n('numerictextbox', localeText, this.locale);
923
+ if (this.l10n.getConstant('placeholder') !== '') {
924
+ this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
927
925
  }
928
926
  this.isValidState = true;
929
927
  this.inputStyle = null;
@@ -932,16 +930,14 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
932
930
  this.initCultureInfo();
933
931
  this.initCultureFunc();
934
932
  this.prevValue = this.value;
935
- if (!(isBlazor() && this.isServerRendered)) {
936
- this.updateHTMLAttrToElement();
937
- this.checkAttributes(false);
938
- if (this.formEle) {
939
- this.inputEleValue = this.value;
940
- }
933
+ this.updateHTMLAttrToElement();
934
+ this.checkAttributes(false);
935
+ if (this.formEle) {
936
+ this.inputEleValue = this.value;
941
937
  }
942
938
  this.validateMinMax();
943
939
  this.validateStep();
944
- if (this.placeholder === null && !(isBlazor() && this.isServerRendered)) {
940
+ if (this.placeholder === null) {
945
941
  this.updatePlaceholder();
946
942
  }
947
943
  };
@@ -953,47 +949,26 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
953
949
  */
954
950
  NumericTextBox.prototype.render = function () {
955
951
  if (this.element.tagName.toLowerCase() === 'input') {
956
- if (!(isBlazor() && this.isServerRendered)) {
957
- this.createWrapper();
958
- if (this.showSpinButton) {
959
- this.spinBtnCreation();
960
- }
961
- this.setElementWidth(this.width);
962
- if (!this.container.classList.contains('e-input-group')) {
963
- this.container.classList.add('e-input-group');
964
- }
965
- this.changeValue(this.value === null || isNaN(this.value) ?
966
- null : this.strictMode ? this.trimValue(this.value) : this.value);
952
+ this.createWrapper();
953
+ if (this.showSpinButton) {
954
+ this.spinBtnCreation();
967
955
  }
968
- else {
969
- this.container = this.element.parentElement;
970
- this.inputWrapper = { container: this.container };
971
- this.hiddenInput = this.container.querySelector('input[type="hidden"]');
972
- if (this.showClearButton) {
973
- this.inputWrapper.clearButton = this.container.querySelector('.e-clear-icon');
974
- Input.wireClearBtnEvents(this.element, this.inputWrapper.clearButton, this.inputWrapper.container);
975
- }
976
- if (this.showSpinButton) {
977
- this.spinDown = this.container.querySelector('.' + SPINDOWN);
978
- this.spinUp = this.container.querySelector('.' + SPINUP);
979
- this.wireSpinBtnEvents();
980
- }
981
- Input.bindInitialEvent({
982
- element: this.element, buttons: null, customTag: null, floatLabelType: this.floatLabelType, properties: this.properties
983
- });
956
+ this.setElementWidth(this.width);
957
+ if (!this.container.classList.contains('e-input-group')) {
958
+ this.container.classList.add('e-input-group');
984
959
  }
960
+ this.changeValue(this.value === null || isNaN(this.value) ?
961
+ null : this.strictMode ? this.trimValue(this.value) : this.value);
985
962
  this.wireEvents();
986
- if (!(isBlazor() && this.isServerRendered)) {
987
- if (this.value !== null && !isNaN(this.value)) {
988
- if (this.decimals) {
989
- this.setProperties({ value: this.roundNumber(this.value, this.decimals) }, true);
990
- }
991
- }
992
- if (this.element.getAttribute('value') || this.value) {
993
- this.element.setAttribute('value', this.element.value);
994
- this.hiddenInput.setAttribute('value', this.hiddenInput.value);
963
+ if (this.value !== null && !isNaN(this.value)) {
964
+ if (this.decimals) {
965
+ this.setProperties({ value: this.roundNumber(this.value, this.decimals) }, true);
995
966
  }
996
967
  }
968
+ if (this.element.getAttribute('value') || this.value) {
969
+ this.element.setAttribute('value', this.element.value);
970
+ this.hiddenInput.setAttribute('value', this.hiddenInput.value);
971
+ }
997
972
  this.elementPrevValue = this.element.value;
998
973
  if (this.element.hasAttribute('data-val')) {
999
974
  this.element.setAttribute('data-val', 'false');
@@ -1908,25 +1883,23 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1908
1883
  */
1909
1884
  NumericTextBox.prototype.destroy = function () {
1910
1885
  this.unwireEvents();
1911
- if (!(isBlazor() && this.isServerRendered)) {
1912
- detach(this.hiddenInput);
1913
- if (this.showSpinButton) {
1914
- this.unwireSpinBtnEvents();
1915
- detach(this.spinUp);
1916
- detach(this.spinDown);
1917
- }
1918
- var attrArray = ['aria-labelledby', 'role', 'autocomplete', 'aria-readonly',
1919
- 'autocorrect', 'aria-disabled', 'aria-placeholder', 'autocapitalize',
1920
- 'spellcheck', 'aria-autocomplete', 'tabindex', 'aria-valuemin',
1921
- 'aria-valuemax', 'aria-live', 'aria-valuenow', 'aria-invalid'];
1922
- for (var i = 0; i < attrArray.length; i++) {
1923
- this.element.removeAttribute(attrArray[i]);
1924
- }
1925
- this.element.classList.remove('e-input');
1926
- this.container.insertAdjacentElement('afterend', this.element);
1927
- detach(this.container);
1928
- _super.prototype.destroy.call(this);
1886
+ detach(this.hiddenInput);
1887
+ if (this.showSpinButton) {
1888
+ this.unwireSpinBtnEvents();
1889
+ detach(this.spinUp);
1890
+ detach(this.spinDown);
1929
1891
  }
1892
+ var attrArray = ['aria-labelledby', 'role', 'autocomplete', 'aria-readonly',
1893
+ 'autocorrect', 'aria-disabled', 'aria-placeholder', 'autocapitalize',
1894
+ 'spellcheck', 'aria-autocomplete', 'tabindex', 'aria-valuemin',
1895
+ 'aria-valuemax', 'aria-live', 'aria-valuenow', 'aria-invalid'];
1896
+ for (var i = 0; i < attrArray.length; i++) {
1897
+ this.element.removeAttribute(attrArray[i]);
1898
+ }
1899
+ this.element.classList.remove('e-input');
1900
+ this.container.insertAdjacentElement('afterend', this.element);
1901
+ detach(this.container);
1902
+ _super.prototype.destroy.call(this);
1930
1903
  };
1931
1904
  /* eslint-disable valid-jsdoc, jsdoc/require-returns */
1932
1905
  /**
@@ -2080,33 +2053,16 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2080
2053
  }
2081
2054
  };
2082
2055
  NumericTextBox.prototype.updateClearButton = function (newProp) {
2083
- if (isBlazor()) {
2084
- if (this.showClearButton) {
2085
- this.inputWrapper.clearButton = this.container.querySelector('.e-clear-icon');
2086
- Input.wireClearBtnEvents(this.element, this.inputWrapper.clearButton, this.inputWrapper.container);
2087
- }
2088
- }
2089
- else {
2090
- Input.setClearButton(newProp.showClearButton, this.element, this.inputWrapper, undefined, this.createElement);
2091
- this.bindClearEvent();
2092
- }
2056
+ Input.setClearButton(newProp.showClearButton, this.element, this.inputWrapper, undefined, this.createElement);
2057
+ this.bindClearEvent();
2093
2058
  };
2094
2059
  NumericTextBox.prototype.updateSpinButton = function (newProp) {
2095
- if (isBlazor()) {
2096
- if (this.showSpinButton) {
2097
- this.spinDown = this.container.querySelector('.' + SPINDOWN);
2098
- this.spinUp = this.container.querySelector('.' + SPINUP);
2099
- this.wireSpinBtnEvents();
2100
- }
2060
+ if (newProp.showSpinButton) {
2061
+ this.spinBtnCreation();
2101
2062
  }
2102
2063
  else {
2103
- if (newProp.showSpinButton) {
2104
- this.spinBtnCreation();
2105
- }
2106
- else {
2107
- detach(this.spinUp);
2108
- detach(this.spinDown);
2109
- }
2064
+ detach(this.spinUp);
2065
+ detach(this.spinDown);
2110
2066
  }
2111
2067
  };
2112
2068
  /**
@@ -3484,9 +3440,7 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3484
3440
  * @private
3485
3441
  */
3486
3442
  MaskedTextBox.prototype.render = function () {
3487
- var _this = this;
3488
3443
  if (this.element.tagName.toLowerCase() === 'input') {
3489
- var checkBlazor = isBlazor() && this.isServerRendered;
3490
3444
  if (this.floatLabelType === 'Never') {
3491
3445
  addClass([this.element], INPUT);
3492
3446
  }
@@ -3496,14 +3450,7 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3496
3450
  this.element.setAttribute('name', this.element.id);
3497
3451
  }
3498
3452
  this.isInitial = true;
3499
- if (checkBlazor && Browser.isIE === true) {
3500
- setTimeout(function () {
3501
- _this.resetMaskedTextBox();
3502
- });
3503
- }
3504
- else {
3505
- this.resetMaskedTextBox();
3506
- }
3453
+ this.resetMaskedTextBox();
3507
3454
  this.isInitial = false;
3508
3455
  this.setMaskPlaceholder(true, false);
3509
3456
  this.setWidth(this.width);
@@ -4177,11 +4124,19 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4177
4124
  * @private
4178
4125
  */
4179
4126
  Slider.prototype.render = function () {
4127
+ var _this = this;
4180
4128
  this.initialize();
4181
4129
  this.initRender();
4182
4130
  this.wireEvents();
4183
4131
  this.setZindex();
4184
4132
  this.renderComplete();
4133
+ if (this.element.tagName === 'EJS-SLIDER') {
4134
+ if (this.getTheme(this.sliderContainer) == "none") {
4135
+ setTimeout(function () {
4136
+ _this.refresh();
4137
+ }, 0);
4138
+ }
4139
+ }
4185
4140
  };
4186
4141
  Slider.prototype.initialize = function () {
4187
4142
  addClass([this.element], classNames.root);
@@ -4300,6 +4255,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4300
4255
  || this.getTheme(this.sliderContainer) === 'bootstrap-dark';
4301
4256
  this.isBootstrap4 = this.getTheme(this.sliderContainer) === 'bootstrap4';
4302
4257
  this.isTailwind = this.getTheme(this.sliderContainer) === 'tailwind' || this.getTheme(this.sliderContainer) === 'tailwind-dark';
4258
+ this.isBootstrap5 = this.getTheme(this.sliderContainer) === 'bootstrap5';
4303
4259
  this.isMaterialTooltip = this.isMaterial && this.type !== 'Range' && this.tooltip.isVisible;
4304
4260
  };
4305
4261
  Slider.prototype.createRangeBar = function () {
@@ -4790,7 +4746,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4790
4746
  };
4791
4747
  Slider.prototype.renderTooltip = function () {
4792
4748
  this.tooltipObj = new Tooltip({
4793
- showTipPointer: this.isBootstrap || this.isMaterial || this.isBootstrap4 || this.isTailwind,
4749
+ showTipPointer: this.isBootstrap || this.isMaterial || this.isBootstrap4 || this.isTailwind || this.isBootstrap5,
4794
4750
  cssClass: classNames.sliderTooltip,
4795
4751
  height: this.isMaterial ? 30 : 'auto',
4796
4752
  animation: { open: { effect: 'None' }, close: { effect: 'FadeOut', duration: 500 } },
@@ -7856,9 +7812,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
7856
7812
  this.updateDirectoryAttributes();
7857
7813
  break;
7858
7814
  case 'template':
7859
- if (!this.isServerBlazor) {
7860
- this.clearAll();
7861
- }
7815
+ this.clearAll();
7862
7816
  break;
7863
7817
  case 'minFileSize':
7864
7818
  case 'maxFileSize':
@@ -7959,55 +7913,44 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
7959
7913
  };
7960
7914
  this.l10n = new L10n('uploader', this.localeText, this.locale);
7961
7915
  this.preLocaleObj = getValue('currentLocale', this.l10n);
7962
- this.isServerBlazor = (isBlazor() && this.isServerRendered) ? true : false;
7963
- this.isBlazorTemplate = this.isServerBlazor && this.template !== '' && !isNullOrUndefined(this.template) ? true : false;
7964
- this.isBlazorSaveUrl = (this.isServerRendered &&
7965
- (this.asyncSettings.saveUrl === '' || isNullOrUndefined(this.asyncSettings.saveUrl))) ? true : false;
7966
- if (this.isBlazorSaveUrl && this.sequentialUpload) {
7967
- this.sequentialUpload = false;
7968
- }
7969
- if (!this.isBlazorSaveUrl) {
7970
- this.formRendered();
7971
- }
7972
- if (!this.isServerBlazor) {
7973
- this.updateHTMLAttrToElement();
7974
- this.checkHTMLAttributes(false);
7975
- var ejInstance = getValue('ej2_instances', this.element);
7976
- /* istanbul ignore next */
7977
- if (this.element.tagName === 'EJS-UPLOADER') {
7978
- var inputElement = this.createElement('input', { attrs: { type: 'file' } });
7979
- var index = 0;
7980
- for (index; index < this.element.attributes.length; index++) {
7981
- inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
7982
- inputElement.innerHTML = this.element.innerHTML;
7983
- }
7984
- if (!inputElement.hasAttribute('name')) {
7985
- inputElement.setAttribute('name', 'UploadFiles');
7986
- }
7987
- this.element.appendChild(inputElement);
7988
- this.element = inputElement;
7989
- setValue('ej2_instances', ejInstance, this.element);
7916
+ this.formRendered();
7917
+ this.updateHTMLAttrToElement();
7918
+ this.checkHTMLAttributes(false);
7919
+ var ejInstance = getValue('ej2_instances', this.element);
7920
+ /* istanbul ignore next */
7921
+ if (this.element.tagName === 'EJS-UPLOADER') {
7922
+ var inputElement = this.createElement('input', { attrs: { type: 'file' } });
7923
+ var index = 0;
7924
+ for (index; index < this.element.attributes.length; index++) {
7925
+ inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
7926
+ inputElement.innerHTML = this.element.innerHTML;
7990
7927
  }
7991
- /* istanbul ignore next */
7992
- if (ejInstance[0].isPureReactComponent) {
7993
- if (!isNullOrUndefined(ejInstance[0].props.name)) {
7994
- this.element.setAttribute('name', ejInstance[0].props.name);
7995
- }
7996
- else if (!isNullOrUndefined(ejInstance[0].props.id) && isNullOrUndefined(ejInstance[0].props.name)) {
7997
- this.element.setAttribute('name', ejInstance[0].props.id);
7998
- }
7999
- else {
8000
- this.element.setAttribute('name', 'UploadFiles');
8001
- }
7928
+ if (!inputElement.hasAttribute('name')) {
7929
+ inputElement.setAttribute('name', 'UploadFiles');
8002
7930
  }
8003
- if (isNullOrUndefined(this.element.getAttribute('name'))) {
8004
- this.element.setAttribute('name', this.element.getAttribute('id'));
7931
+ this.element.appendChild(inputElement);
7932
+ this.element = inputElement;
7933
+ setValue('ej2_instances', ejInstance, this.element);
7934
+ }
7935
+ /* istanbul ignore next */
7936
+ if (ejInstance[0].isPureReactComponent) {
7937
+ if (!isNullOrUndefined(ejInstance[0].props.name)) {
7938
+ this.element.setAttribute('name', ejInstance[0].props.name);
8005
7939
  }
8006
- if (!this.element.hasAttribute('type')) {
8007
- this.element.setAttribute('type', 'file');
7940
+ else if (!isNullOrUndefined(ejInstance[0].props.id) && isNullOrUndefined(ejInstance[0].props.name)) {
7941
+ this.element.setAttribute('name', ejInstance[0].props.id);
8008
7942
  }
8009
- this.updateDirectoryAttributes();
7943
+ else {
7944
+ this.element.setAttribute('name', 'UploadFiles');
7945
+ }
7946
+ }
7947
+ if (isNullOrUndefined(this.element.getAttribute('name'))) {
7948
+ this.element.setAttribute('name', this.element.getAttribute('id'));
8010
7949
  }
7950
+ if (!this.element.hasAttribute('type')) {
7951
+ this.element.setAttribute('type', 'file');
7952
+ }
7953
+ this.updateDirectoryAttributes();
8011
7954
  this.keyConfigs = {
8012
7955
  enter: 'enter'
8013
7956
  };
@@ -8058,29 +8001,16 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8058
8001
  * @returns {void}
8059
8002
  */
8060
8003
  Uploader.prototype.render = function () {
8061
- if (!this.isServerBlazor) {
8062
- this.renderBrowseButton();
8063
- this.initializeUpload();
8064
- this.updateHTMLAttrToWrapper();
8065
- this.wireEvents();
8066
- this.setMultipleSelection();
8067
- this.setExtensions(this.allowedExtensions);
8068
- this.setRTL();
8069
- this.renderPreLoadFiles();
8070
- this.setControlStatus();
8071
- this.setCSSClass();
8072
- }
8073
- else {
8074
- this.dropAreaWrapper = closest(this.element, '.' + DROP_WRAPPER);
8075
- this.uploadWrapper = closest(this.element, '.e-upload.e-control-wrapper');
8076
- this.browseButton = this.dropAreaWrapper.querySelector('button.e-upload-browse-btn');
8077
- this.setDropArea();
8078
- this.renderPreLoadFiles();
8079
- this.wireEvents();
8080
- }
8081
- if (this.isServerBlazor) {
8082
- this.renderComplete();
8083
- }
8004
+ this.renderBrowseButton();
8005
+ this.initializeUpload();
8006
+ this.updateHTMLAttrToWrapper();
8007
+ this.wireEvents();
8008
+ this.setMultipleSelection();
8009
+ this.setExtensions(this.allowedExtensions);
8010
+ this.setRTL();
8011
+ this.renderPreLoadFiles();
8012
+ this.setControlStatus();
8013
+ this.setCSSClass();
8084
8014
  };
8085
8015
  Uploader.prototype.renderBrowseButton = function () {
8086
8016
  this.browseButton = this.createElement('button', { className: 'e-css e-btn', attrs: { 'type': 'button' } });
@@ -8097,22 +8027,20 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8097
8027
  };
8098
8028
  Uploader.prototype.renderActionButtons = function () {
8099
8029
  this.element.setAttribute('tabindex', '-1');
8100
- if (!(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
8101
- this.actionButtons = this.createElement('div', { className: ACTION_BUTTONS });
8102
- this.uploadButton = this.createElement('button', { className: UPLOAD_BUTTONS,
8103
- attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
8104
- this.clearButton = this.createElement('button', { className: CLEAR_BUTTONS,
8105
- attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
8106
- this.actionButtons.appendChild(this.clearButton);
8107
- this.actionButtons.appendChild(this.uploadButton);
8108
- this.renderButtonTemplates();
8109
- this.uploadWrapper.appendChild(this.actionButtons);
8110
- this.browseButton.blur();
8111
- if (!this.isPreloadFiles) {
8112
- this.uploadButton.focus();
8113
- }
8114
- this.wireActionButtonEvents();
8030
+ this.actionButtons = this.createElement('div', { className: ACTION_BUTTONS });
8031
+ this.uploadButton = this.createElement('button', { className: UPLOAD_BUTTONS,
8032
+ attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
8033
+ this.clearButton = this.createElement('button', { className: CLEAR_BUTTONS,
8034
+ attrs: { 'type': 'button', 'tabindex': this.btnTabIndex } });
8035
+ this.actionButtons.appendChild(this.clearButton);
8036
+ this.actionButtons.appendChild(this.uploadButton);
8037
+ this.renderButtonTemplates();
8038
+ this.uploadWrapper.appendChild(this.actionButtons);
8039
+ this.browseButton.blur();
8040
+ if (!this.isPreloadFiles) {
8041
+ this.uploadButton.focus();
8115
8042
  }
8043
+ this.wireActionButtonEvents();
8116
8044
  };
8117
8045
  /* istanbul ignore next */
8118
8046
  Uploader.prototype.serverActionButtonsEventBind = function (element) {
@@ -8127,19 +8055,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8127
8055
  this.checkActionButtonStatus();
8128
8056
  }
8129
8057
  };
8130
- /* istanbul ignore next */
8131
- Uploader.prototype.serverUlElement = function (element) {
8132
- if (element) {
8133
- if (this.isBlazorSaveUrl || this.isBlazorTemplate) {
8134
- this.listParent = element;
8135
- this.fileList = [].slice.call(this.listParent.querySelectorAll('li'));
8136
- this.serverRemoveIconBindEvent();
8137
- if (!this.isForm) {
8138
- this.checkAutoUpload(this.filesData);
8139
- }
8140
- }
8141
- }
8142
- };
8143
8058
  Uploader.prototype.wireActionButtonEvents = function () {
8144
8059
  EventHandler.add(this.uploadButton, 'click', this.uploadButtonClick, this);
8145
8060
  EventHandler.add(this.clearButton, 'click', this.clearButtonClick, this);
@@ -8151,9 +8066,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8151
8066
  Uploader.prototype.removeActionButtons = function () {
8152
8067
  if (this.actionButtons) {
8153
8068
  this.unwireActionButtonEvents();
8154
- if (!(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
8155
- detach(this.actionButtons);
8156
- }
8069
+ detach(this.actionButtons);
8157
8070
  this.actionButtons = null;
8158
8071
  }
8159
8072
  };
@@ -8277,7 +8190,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8277
8190
  if (!dropTextArea) {
8278
8191
  this.createDropTextHint();
8279
8192
  }
8280
- else if (!this.isServerBlazor) {
8193
+ else {
8281
8194
  dropTextArea.innerHTML = this.localizedTexts('dropFilesHint');
8282
8195
  }
8283
8196
  }
@@ -8306,11 +8219,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8306
8219
  }
8307
8220
  };
8308
8221
  Uploader.prototype.createDropTextHint = function () {
8309
- if (!this.isServerBlazor) {
8310
- var fileDropArea = this.createElement('span', { className: DROP_AREA });
8311
- fileDropArea.innerHTML = this.localizedTexts('dropFilesHint');
8312
- this.dropAreaWrapper.appendChild(fileDropArea);
8313
- }
8222
+ var fileDropArea = this.createElement('span', { className: DROP_AREA });
8223
+ fileDropArea.innerHTML = this.localizedTexts('dropFilesHint');
8224
+ this.dropAreaWrapper.appendChild(fileDropArea);
8314
8225
  };
8315
8226
  Uploader.prototype.updateHTMLAttrToElement = function () {
8316
8227
  if (!isNullOrUndefined(this.htmlAttributes)) {
@@ -8603,9 +8514,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8603
8514
  return;
8604
8515
  }
8605
8516
  var selectedElement = args.target.parentElement;
8606
- if (this.isBlazorSaveUrl) {
8607
- this.fileList = [].slice.call(this.uploadWrapper.querySelectorAll('li'));
8608
- }
8609
8517
  var index = this.fileList.indexOf(selectedElement);
8610
8518
  var liElement = this.fileList[index];
8611
8519
  var formUpload = this.isFormUpload();
@@ -8647,27 +8555,20 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8647
8555
  if (isNullOrUndefined(selectedElement)) {
8648
8556
  return;
8649
8557
  }
8650
- if (!this.isBlazorSaveUrl) {
8651
- detach(selectedElement);
8652
- }
8558
+ detach(selectedElement);
8653
8559
  index = this.fileList.indexOf(selectedElement);
8654
8560
  this.fileList.splice(index, 1);
8655
8561
  this.filesData.splice(index, 1);
8656
- if (!this.isBlazorSaveUrl) {
8657
- if (this.fileList.length === 0 && !isNullOrUndefined(this.listParent)) {
8658
- detach(this.listParent);
8659
- this.listParent = null;
8660
- this.removeActionButtons();
8661
- }
8662
- if (this.sequentialUpload) {
8663
- /* istanbul ignore next */
8664
- if (index <= this.count) {
8665
- --this.count;
8666
- }
8667
- }
8562
+ if (this.fileList.length === 0 && !isNullOrUndefined(this.listParent)) {
8563
+ detach(this.listParent);
8564
+ this.listParent = null;
8565
+ this.removeActionButtons();
8668
8566
  }
8669
- else {
8670
- this.interopAdaptor.invokeMethodAsync('removeFileData', index);
8567
+ if (this.sequentialUpload) {
8568
+ /* istanbul ignore next */
8569
+ if (index <= this.count) {
8570
+ --this.count;
8571
+ }
8671
8572
  }
8672
8573
  };
8673
8574
  Uploader.prototype.removeUploadedFile = function (file, eventArgs, removeDirectly, custom) {
@@ -8678,14 +8579,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8678
8579
  var formData = new FormData();
8679
8580
  ajax.beforeSend = function (e) {
8680
8581
  eventArgs.currentRequest = ajax.httpRequest;
8681
- if (isBlazor()) {
8682
- if (_this.currentRequestHeader) {
8683
- _this.updateCustomheader(ajax.httpRequest, _this.currentRequestHeader);
8684
- }
8685
- if (_this.customFormDatas) {
8686
- _this.updateFormData(formData, _this.customFormDatas);
8687
- }
8688
- }
8689
8582
  if (!removeDirectly) {
8690
8583
  _this.trigger('removing', eventArgs, function (eventArgs) {
8691
8584
  if (eventArgs.cancel) {
@@ -8700,15 +8593,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8700
8593
  _this.removingEventCallback(eventArgs, formData, selectedFiles, file);
8701
8594
  }
8702
8595
  };
8703
- if (this.isServerBlazor) {
8704
- var name_1 = this.element.getAttribute('name');
8705
- if (!isNullOrUndefined(selectedFiles.rawFile) && selectedFiles.rawFile !== '') {
8706
- formData.append(name_1, selectedFiles.rawFile, selectedFiles.name);
8707
- }
8708
- else {
8709
- formData.append(name_1, selectedFiles.name);
8710
- }
8711
- }
8712
8596
  ajax.onLoad = function (e) {
8713
8597
  _this.removeCompleted(e, selectedFiles, custom);
8714
8598
  return {};
@@ -8732,15 +8616,13 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8732
8616
  createSpinner({ target: spinnerTarget, width: '20px' });
8733
8617
  showSpinner(spinnerTarget);
8734
8618
  }
8735
- if (!this.isServerBlazor) {
8736
- if (eventArgs.postRawFile && !isNullOrUndefined(selectedFiles.rawFile) && selectedFiles.rawFile !== '') {
8737
- formData.append(name, selectedFiles.rawFile, selectedFiles.name);
8738
- }
8739
- else {
8740
- formData.append(name, selectedFiles.name);
8741
- }
8742
- this.updateFormData(formData, eventArgs.customFormData);
8619
+ if (eventArgs.postRawFile && !isNullOrUndefined(selectedFiles.rawFile) && selectedFiles.rawFile !== '') {
8620
+ formData.append(name, selectedFiles.rawFile, selectedFiles.name);
8743
8621
  }
8622
+ else {
8623
+ formData.append(name, selectedFiles.name);
8624
+ }
8625
+ this.updateFormData(formData, eventArgs.customFormData);
8744
8626
  };
8745
8627
  /* istanbul ignore next */
8746
8628
  Uploader.prototype.updateFormData = function (formData, customData) {
@@ -9010,10 +8892,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9010
8892
  Uploader.prototype._internalRenderSelect = function (eventArgs, fileData) {
9011
8893
  if (!eventArgs.cancel) {
9012
8894
  /* istanbul ignore next */
9013
- if (isBlazor()) {
9014
- this.currentRequestHeader = eventArgs.currentRequest;
9015
- this.customFormDatas = eventArgs.customFormData;
9016
- }
9017
8895
  this.selectedFiles = this.selectedFiles.concat(fileData);
9018
8896
  this.btnTabIndex = this.disableKeyboardNavigation ? '-1' : '0';
9019
8897
  if (this.showFileList) {
@@ -9035,13 +8913,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9035
8913
  }
9036
8914
  else {
9037
8915
  this.createFileList(fileData, true);
9038
- if (!(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
9039
- this.filesData = this.filesData.concat(fileData);
9040
- }
8916
+ this.filesData = this.filesData.concat(fileData);
9041
8917
  if (!this.isForm || this.allowUpload()) {
9042
- if (!(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
9043
- this.checkAutoUpload(fileData);
9044
- }
8918
+ this.checkAutoUpload(fileData);
9045
8919
  }
9046
8920
  }
9047
8921
  if (!isNullOrUndefined(eventArgs.progressInterval) && eventArgs.progressInterval !== '') {
@@ -9050,9 +8924,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9050
8924
  }
9051
8925
  else {
9052
8926
  this.filesData = this.filesData.concat(fileData);
9053
- if (this.isBlazorSaveUrl) {
9054
- this.interopAdaptor.invokeMethodAsync('updateServerFileData', this.filesData, this.isForm);
9055
- }
9056
8927
  if (this.autoUpload) {
9057
8928
  this.upload(this.filesData, true);
9058
8929
  }
@@ -9077,7 +8948,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9077
8948
  return isFormUpload;
9078
8949
  };
9079
8950
  Uploader.prototype.clearData = function (singleUpload) {
9080
- if (!isNullOrUndefined(this.listParent) && !(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
8951
+ if (!isNullOrUndefined(this.listParent)) {
9081
8952
  detach(this.listParent);
9082
8953
  this.listParent = null;
9083
8954
  }
@@ -9086,12 +8957,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9086
8957
  }
9087
8958
  this.fileList = [];
9088
8959
  this.filesData = [];
9089
- if (this.isBlazorSaveUrl || this.isBlazorTemplate) {
9090
- this.interopAdaptor.invokeMethodAsync('clearAll');
9091
- }
9092
- else {
9093
- this.removeActionButtons();
9094
- }
8960
+ this.removeActionButtons();
9095
8961
  };
9096
8962
  Uploader.prototype.updateSortedFileList = function (filesData) {
9097
8963
  var previousListClone = this.createElement('div', { id: 'clonewrapper' });
@@ -9179,7 +9045,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9179
9045
  };
9180
9046
  Uploader.prototype.createCustomfileList = function (fileData) {
9181
9047
  this.createParentUL();
9182
- resetBlazorTemplate(this.element.id + 'Template', 'Template');
9183
9048
  for (var _i = 0, fileData_1 = fileData; _i < fileData_1.length; _i++) {
9184
9049
  var listItem = fileData_1[_i];
9185
9050
  var listElement = this.createElement('li', { className: FILE, attrs: { 'data-file-name': listItem.name } });
@@ -9208,7 +9073,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9208
9073
  this.fileList.push(listElement);
9209
9074
  }
9210
9075
  this.renderReactTemplates();
9211
- updateBlazorTemplate(this.element.id + 'Template', 'Template', this, false);
9212
9076
  };
9213
9077
  Uploader.prototype.createParentUL = function () {
9214
9078
  if (isNullOrUndefined(this.listParent)) {
@@ -9386,7 +9250,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9386
9250
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9387
9251
  Uploader.prototype.formCustomFileList = function (fileData, files) {
9388
9252
  this.createParentUL();
9389
- resetBlazorTemplate(this.element.id + 'Template', 'Template');
9390
9253
  var fileList = this.createElement('li', { className: FILE });
9391
9254
  fileList.setAttribute('data-files-count', fileData.length + '');
9392
9255
  this.setListToFileInfo(fileData, fileList);
@@ -9419,7 +9282,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9419
9282
  this.listParent.appendChild(fileList);
9420
9283
  this.fileList.push(fileList);
9421
9284
  this.renderReactTemplates();
9422
- updateBlazorTemplate(this.element.id + 'Template', 'Template', this, false);
9423
9285
  };
9424
9286
  /* eslint-disable valid-jsdoc, jsdoc/require-param */
9425
9287
  /**
@@ -9430,106 +9292,100 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9430
9292
  */
9431
9293
  Uploader.prototype.createFileList = function (fileData, isSelectedFile) {
9432
9294
  /* eslint-enable valid-jsdoc, jsdoc/require-param */
9433
- if (this.isBlazorSaveUrl || this.isBlazorTemplate) {
9434
- var fileListData = (isSelectedFile) ? this.filesData = this.filesData.concat(fileData) : fileData;
9435
- this.interopAdaptor.invokeMethodAsync('createFileList', fileListData, this.isForm);
9295
+ this.createParentUL();
9296
+ if (this.template !== '' && !isNullOrUndefined(this.template)) {
9297
+ if (this.isFormUpload()) {
9298
+ this.uploadWrapper.classList.add(FORM_UPLOAD);
9299
+ this.formCustomFileList(fileData, this.element.files);
9300
+ }
9301
+ else {
9302
+ this.createCustomfileList(fileData);
9303
+ }
9304
+ }
9305
+ else if (this.isFormUpload()) {
9306
+ this.uploadWrapper.classList.add(FORM_UPLOAD);
9307
+ this.formFileList(fileData, this.element.files);
9436
9308
  }
9437
9309
  else {
9438
- this.createParentUL();
9439
- if (this.template !== '' && !isNullOrUndefined(this.template)) {
9440
- if (this.isFormUpload()) {
9441
- this.uploadWrapper.classList.add(FORM_UPLOAD);
9442
- this.formCustomFileList(fileData, this.element.files);
9310
+ for (var _i = 0, fileData_7 = fileData; _i < fileData_7.length; _i++) {
9311
+ var listItem = fileData_7[_i];
9312
+ var liElement = this.createElement('li', {
9313
+ className: FILE,
9314
+ attrs: { 'data-file-name': listItem.name, 'data-files-count': '1' }
9315
+ });
9316
+ var textContainer = this.createElement('span', { className: TEXT_CONTAINER });
9317
+ var textElement = this.createElement('span', { className: FILE_NAME, attrs: { 'title': listItem.name } });
9318
+ textElement.innerHTML = this.getFileNameOnly(listItem.name);
9319
+ var fileExtension = this.createElement('span', { className: FILE_TYPE });
9320
+ var fileType = this.getFileType(listItem.name);
9321
+ fileExtension.innerHTML = '.' + fileType;
9322
+ if (!fileType) {
9323
+ fileExtension.classList.add('e-hidden');
9324
+ }
9325
+ if (!this.enableRtl) {
9326
+ textContainer.appendChild(textElement);
9327
+ textContainer.appendChild(fileExtension);
9443
9328
  }
9444
9329
  else {
9445
- this.createCustomfileList(fileData);
9330
+ var rtlContainer = this.createElement('span', { className: RTL_CONTAINER });
9331
+ rtlContainer.appendChild(fileExtension);
9332
+ rtlContainer.appendChild(textElement);
9333
+ textContainer.appendChild(rtlContainer);
9334
+ }
9335
+ var fileSize = this.createElement('span', { className: FILE_SIZE });
9336
+ fileSize.innerHTML = this.bytesToSize(listItem.size);
9337
+ textContainer.appendChild(fileSize);
9338
+ var statusElement = this.createElement('span', { className: STATUS });
9339
+ textContainer.appendChild(statusElement);
9340
+ statusElement.innerHTML = listItem.status;
9341
+ liElement.appendChild(textContainer);
9342
+ var iconElement = this.createElement('span', { className: ' e-icons',
9343
+ attrs: { 'tabindex': this.btnTabIndex } });
9344
+ /* istanbul ignore next */
9345
+ if (this.browserName === 'msie') {
9346
+ iconElement.classList.add('e-msie');
9347
+ }
9348
+ iconElement.setAttribute('title', this.localizedTexts('remove'));
9349
+ liElement.appendChild(iconElement);
9350
+ EventHandler.add(iconElement, 'click', this.removeFiles, this);
9351
+ if (listItem.statusCode === '2') {
9352
+ statusElement.classList.add(UPLOAD_SUCCESS);
9353
+ iconElement.classList.add(DELETE_ICON);
9354
+ iconElement.setAttribute('title', this.localizedTexts('delete'));
9355
+ }
9356
+ else if (listItem.statusCode !== '1') {
9357
+ statusElement.classList.remove(UPLOAD_SUCCESS);
9358
+ statusElement.classList.add(VALIDATION_FAILS);
9446
9359
  }
9447
- }
9448
- else if (this.isFormUpload()) {
9449
- this.uploadWrapper.classList.add(FORM_UPLOAD);
9450
- this.formFileList(fileData, this.element.files);
9451
- }
9452
- else {
9453
- for (var _i = 0, fileData_7 = fileData; _i < fileData_7.length; _i++) {
9454
- var listItem = fileData_7[_i];
9455
- var liElement = this.createElement('li', {
9456
- className: FILE,
9457
- attrs: { 'data-file-name': listItem.name, 'data-files-count': '1' }
9458
- });
9459
- var textContainer = this.createElement('span', { className: TEXT_CONTAINER });
9460
- var textElement = this.createElement('span', { className: FILE_NAME, attrs: { 'title': listItem.name } });
9461
- textElement.innerHTML = this.getFileNameOnly(listItem.name);
9462
- var fileExtension = this.createElement('span', { className: FILE_TYPE });
9463
- var fileType = this.getFileType(listItem.name);
9464
- fileExtension.innerHTML = '.' + fileType;
9465
- if (!fileType) {
9466
- fileExtension.classList.add('e-hidden');
9467
- }
9468
- if (!this.enableRtl) {
9469
- textContainer.appendChild(textElement);
9470
- textContainer.appendChild(fileExtension);
9471
- }
9472
- else {
9473
- var rtlContainer = this.createElement('span', { className: RTL_CONTAINER });
9474
- rtlContainer.appendChild(fileExtension);
9475
- rtlContainer.appendChild(textElement);
9476
- textContainer.appendChild(rtlContainer);
9477
- }
9478
- var fileSize = this.createElement('span', { className: FILE_SIZE });
9479
- fileSize.innerHTML = this.bytesToSize(listItem.size);
9480
- textContainer.appendChild(fileSize);
9481
- var statusElement = this.createElement('span', { className: STATUS });
9482
- textContainer.appendChild(statusElement);
9483
- statusElement.innerHTML = listItem.status;
9484
- liElement.appendChild(textContainer);
9485
- var iconElement = this.createElement('span', { className: ' e-icons',
9486
- attrs: { 'tabindex': this.btnTabIndex } });
9487
- /* istanbul ignore next */
9488
- if (this.browserName === 'msie') {
9489
- iconElement.classList.add('e-msie');
9490
- }
9491
- iconElement.setAttribute('title', this.localizedTexts('remove'));
9492
- liElement.appendChild(iconElement);
9493
- EventHandler.add(iconElement, 'click', this.removeFiles, this);
9494
- if (listItem.statusCode === '2') {
9495
- statusElement.classList.add(UPLOAD_SUCCESS);
9496
- iconElement.classList.add(DELETE_ICON);
9497
- iconElement.setAttribute('title', this.localizedTexts('delete'));
9498
- }
9499
- else if (listItem.statusCode !== '1') {
9500
- statusElement.classList.remove(UPLOAD_SUCCESS);
9501
- statusElement.classList.add(VALIDATION_FAILS);
9502
- }
9503
- if (this.autoUpload && listItem.statusCode === '1' && this.asyncSettings.saveUrl !== '') {
9504
- statusElement.innerHTML = '';
9505
- }
9506
- if (!iconElement.classList.contains(DELETE_ICON)) {
9507
- iconElement.classList.add(REMOVE_ICON);
9508
- }
9509
- var index = fileData.indexOf(listItem);
9510
- var eventArgs = {
9511
- element: liElement,
9512
- fileInfo: listItem,
9513
- index: index,
9514
- isPreload: this.isPreLoadFile(listItem)
9515
- };
9516
- var eventsArgs = {
9517
- element: liElement,
9518
- fileInfo: listItem,
9519
- index: index,
9520
- isPreload: this.isPreLoadFile(listItem)
9521
- };
9522
- this.trigger('rendering', eventArgs);
9523
- this.trigger('fileListRendering', eventsArgs);
9524
- this.listParent.appendChild(liElement);
9525
- this.fileList.push(liElement);
9526
- this.truncateName(textElement);
9527
- var preventActionComplete = this.flag;
9528
- if (this.isPreLoadFile(listItem)) {
9529
- this.flag = false;
9530
- this.checkActionComplete(true);
9531
- this.flag = preventActionComplete;
9532
- }
9360
+ if (this.autoUpload && listItem.statusCode === '1' && this.asyncSettings.saveUrl !== '') {
9361
+ statusElement.innerHTML = '';
9362
+ }
9363
+ if (!iconElement.classList.contains(DELETE_ICON)) {
9364
+ iconElement.classList.add(REMOVE_ICON);
9365
+ }
9366
+ var index = fileData.indexOf(listItem);
9367
+ var eventArgs = {
9368
+ element: liElement,
9369
+ fileInfo: listItem,
9370
+ index: index,
9371
+ isPreload: this.isPreLoadFile(listItem)
9372
+ };
9373
+ var eventsArgs = {
9374
+ element: liElement,
9375
+ fileInfo: listItem,
9376
+ index: index,
9377
+ isPreload: this.isPreLoadFile(listItem)
9378
+ };
9379
+ this.trigger('rendering', eventArgs);
9380
+ this.trigger('fileListRendering', eventsArgs);
9381
+ this.listParent.appendChild(liElement);
9382
+ this.fileList.push(liElement);
9383
+ this.truncateName(textElement);
9384
+ var preventActionComplete = this.flag;
9385
+ if (this.isPreLoadFile(listItem)) {
9386
+ this.flag = false;
9387
+ this.checkActionComplete(true);
9388
+ this.flag = preventActionComplete;
9533
9389
  }
9534
9390
  }
9535
9391
  }
@@ -9593,18 +9449,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9593
9449
  Uploader.prototype.updateStatus = function (files, status, statusCode, updateLiStatus) {
9594
9450
  if (updateLiStatus === void 0) { updateLiStatus = true; }
9595
9451
  if (!(status === '' || isNullOrUndefined(status)) && !(statusCode === '' || isNullOrUndefined(statusCode))) {
9596
- if (this.isBlazorSaveUrl) {
9597
- for (var i = 0; i < this.filesData.length; i++) {
9598
- if (this.filesData[i].name === files.name) {
9599
- this.filesData[i].status = status;
9600
- this.filesData[i].statusCode = statusCode;
9601
- }
9602
- }
9603
- }
9604
- else {
9605
- files.status = status;
9606
- files.statusCode = statusCode;
9607
- }
9452
+ files.status = status;
9453
+ files.statusCode = statusCode;
9608
9454
  }
9609
9455
  if (updateLiStatus) {
9610
9456
  var li = this.getLiElement(files);
@@ -9619,8 +9465,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9619
9465
  Uploader.prototype.getLiElement = function (files) {
9620
9466
  var index;
9621
9467
  for (var i = 0; i < this.filesData.length; i++) {
9622
- if ((!isNullOrUndefined(this.filesData[i].id) && !isNullOrUndefined(files.id)) ? (this.filesData[i].name === files.name &&
9623
- this.filesData[i].id === files.id) : this.filesData[i].name === files.name) {
9468
+ if (!isNullOrUndefined(files) && ((!isNullOrUndefined(this.filesData[i].id) &&
9469
+ !isNullOrUndefined(files.id)) ? (this.filesData[i].name === files.name &&
9470
+ this.filesData[i].id === files.id) : this.filesData[i].name === files.name)) {
9624
9471
  index = i;
9625
9472
  }
9626
9473
  }
@@ -9712,8 +9559,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9712
9559
  request.httpRequest.abort();
9713
9560
  var formData = new FormData();
9714
9561
  if (files.statusCode === '5') {
9715
- var name_2 = _this.element.getAttribute('name');
9716
- formData.append(name_2, files.name);
9562
+ var name_1 = _this.element.getAttribute('name');
9563
+ formData.append(name_1, files.name);
9717
9564
  formData.append('cancel-uploading', files.name);
9718
9565
  _this.updateFormData(formData, eventArgs.customFormData);
9719
9566
  var ajax = new Ajax(_this.asyncSettings.removeUrl, 'POST', true, null);
@@ -9821,19 +9668,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9821
9668
  };
9822
9669
  return response;
9823
9670
  };
9824
- /* istanbul ignore next */
9825
- Uploader.prototype.serverRemoveIconBindEvent = function () {
9826
- if (this.uploadWrapper && this.isBlazorSaveUrl) {
9827
- var iconElement = [].slice.call(this.uploadWrapper.querySelectorAll('ul li'));
9828
- for (var i = 0; i < iconElement.length; i++) {
9829
- var removeIconEle = (iconElement[i]) ? iconElement[i].querySelector('.e-icons') : null;
9830
- if (removeIconEle) {
9831
- EventHandler.remove(removeIconEle, 'click', this.removeFiles);
9832
- EventHandler.add(removeIconEle, 'click', this.removeFiles, this);
9833
- }
9834
- }
9835
- }
9836
- };
9837
9671
  Uploader.prototype.raiseSuccessEvent = function (e, file) {
9838
9672
  var _this = this;
9839
9673
  var response = e && e.currentTarget ? this.getResponse(e) : null;
@@ -9841,22 +9675,18 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9841
9675
  var args = {
9842
9676
  e: e, response: response, operation: 'upload', file: this.updateStatus(file, statusMessage, '2', false), statusText: statusMessage
9843
9677
  };
9844
- if (!this.isBlazorSaveUrl) {
9845
- var liElement = this.getLiElement(file);
9846
- if (!isNullOrUndefined(liElement)) {
9847
- var spinnerEle = liElement.querySelector('.' + SPINNER_PANE);
9848
- if (!isNullOrUndefined(spinnerEle)) {
9849
- hideSpinner(liElement);
9850
- detach(spinnerEle);
9851
- }
9678
+ var liElement = this.getLiElement(file);
9679
+ if (!isNullOrUndefined(liElement)) {
9680
+ var spinnerEle = liElement.querySelector('.' + SPINNER_PANE);
9681
+ if (!isNullOrUndefined(spinnerEle)) {
9682
+ hideSpinner(liElement);
9683
+ detach(spinnerEle);
9852
9684
  }
9853
9685
  }
9854
9686
  this.trigger('success', args, function (args) {
9855
9687
  _this.updateStatus(file, args.statusText, '2');
9856
9688
  _this.uploadedFilesData.push(file);
9857
- if (!_this.isBlazorSaveUrl) {
9858
- _this.trigger('change', { file: _this.uploadedFilesData });
9859
- }
9689
+ _this.trigger('change', { file: _this.uploadedFilesData });
9860
9690
  _this.checkActionButtonStatus();
9861
9691
  if (_this.fileList.length > 0) {
9862
9692
  if ((!(_this.getLiElement(file)).classList.contains(RESTRICT_RETRY))) {
@@ -10103,15 +9933,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10103
9933
  ajax.beforeSend = function (e) {
10104
9934
  eventArgs.currentRequest = ajax.httpRequest;
10105
9935
  eventArgs.currentChunkIndex = metaData.chunkIndex;
10106
- /* istanbul ignore next */
10107
- if (isBlazor()) {
10108
- if (_this.currentRequestHeader) {
10109
- _this.updateCustomheader(ajax.httpRequest, _this.currentRequestHeader);
10110
- }
10111
- if (_this.customFormDatas) {
10112
- _this.updateFormData(formData, _this.customFormDatas);
10113
- }
10114
- }
10115
9936
  if (eventArgs.currentChunkIndex === 0) {
10116
9937
  // This event is currently not required but to avoid breaking changes for previous customer, we have included.
10117
9938
  _this.trigger('uploading', eventArgs, function (eventArgs) {
@@ -10210,8 +10031,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10210
10031
  metaData.request.emitError = false;
10211
10032
  response.abort();
10212
10033
  var formData = new FormData();
10213
- var name_3 = _this.element.getAttribute('name');
10214
- formData.append(name_3, metaData.file.name);
10034
+ var name_2 = _this.element.getAttribute('name');
10035
+ formData.append(name_2, metaData.file.name);
10215
10036
  formData.append('cancel-uploading', metaData.file.name);
10216
10037
  formData.append('cancelUploading', metaData.file.name);
10217
10038
  _this.updateFormData(formData, eventArgs.customFormData);
@@ -10593,9 +10414,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10593
10414
  var sortedFileNames = fileNames.sort();
10594
10415
  var sortedFilesData = [];
10595
10416
  for (var _i = 0, sortedFileNames_1 = sortedFileNames; _i < sortedFileNames_1.length; _i++) {
10596
- var name_4 = sortedFileNames_1[_i];
10417
+ var name_3 = sortedFileNames_1[_i];
10597
10418
  for (var i = 0; i < files.length; i++) {
10598
- if (name_4 === files[i].name) {
10419
+ if (name_3 === files[i].name) {
10599
10420
  sortedFilesData.push(files[i]);
10600
10421
  }
10601
10422
  }
@@ -10612,9 +10433,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10612
10433
  Uploader.prototype.destroy = function () {
10613
10434
  this.element.value = null;
10614
10435
  this.clearTemplate();
10615
- if (!(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
10616
- this.clearAll();
10617
- }
10436
+ this.clearAll();
10618
10437
  this.unWireEvents();
10619
10438
  this.unBindDropEvents();
10620
10439
  if (this.multiple) {
@@ -10630,17 +10449,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10630
10449
  var key = attributes_2[_i];
10631
10450
  this.element.removeAttribute(key);
10632
10451
  }
10633
- if (!this.isServerBlazor) {
10634
- if (!isNullOrUndefined(this.uploadWrapper)) {
10635
- this.uploadWrapper.parentElement.appendChild(this.element);
10636
- detach(this.uploadWrapper);
10637
- }
10638
- this.uploadWrapper = null;
10639
- _super.prototype.destroy.call(this);
10640
- }
10641
- else {
10642
- this.uploadWrapper = null;
10452
+ if (!isNullOrUndefined(this.uploadWrapper)) {
10453
+ this.uploadWrapper.parentElement.appendChild(this.element);
10454
+ detach(this.uploadWrapper);
10643
10455
  }
10456
+ this.uploadWrapper = null;
10457
+ _super.prototype.destroy.call(this);
10644
10458
  };
10645
10459
  /**
10646
10460
  * Allows you to call the upload process manually by calling save URL action.
@@ -10666,11 +10480,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10666
10480
  };
10667
10481
  this.trigger('beforeUpload', eventArgs, function (eventArgs) {
10668
10482
  if (!eventArgs.cancel) {
10669
- if (isBlazor()) {
10670
- _this.currentRequestHeader = eventArgs.currentRequest ? eventArgs.currentRequest : _this.currentRequestHeader;
10671
- _this.customFormDatas = (eventArgs.customFormData && eventArgs.customFormData.length > 0) ?
10672
- eventArgs.customFormData : _this.customFormDatas;
10673
- }
10674
10483
  _this.uploadFiles(uploadFiles_1, custom);
10675
10484
  }
10676
10485
  });
@@ -10751,12 +10560,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10751
10560
  return this.filesData[index];
10752
10561
  };
10753
10562
  Uploader.prototype.uploadFiles = function (files, custom) {
10754
- var _this = this;
10755
10563
  var selectedFiles = [];
10756
10564
  if (this.asyncSettings.saveUrl === '' || isNullOrUndefined(this.asyncSettings.saveUrl)) {
10757
- if (this.isServerBlazor) {
10758
- this.interopAdaptor.invokeMethodAsync('GetFileDetails', files);
10759
- }
10760
10565
  return;
10761
10566
  }
10762
10567
  if (!custom || isNullOrUndefined(custom)) {
@@ -10772,60 +10577,25 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10772
10577
  else {
10773
10578
  selectedFiles = files;
10774
10579
  }
10775
- var _loop_5 = function (i) {
10776
- if (this_3.isServerBlazor && !this_3.checkChunkUpload()) {
10777
- /* istanbul ignore next */
10778
- if (selectedFiles[i] && selectedFiles[i].rawFile instanceof File) {
10779
- this_3.getBase64(selectedFiles[i].rawFile).then(function (data) {
10780
- _this.base64String.push(data);
10781
- _this.uploadFilesRequest(selectedFiles, i, custom);
10782
- });
10783
- }
10784
- }
10785
- else {
10786
- this_3.uploadFilesRequest(selectedFiles, i, custom);
10787
- }
10788
- };
10789
- var this_3 = this;
10790
10580
  for (var i = 0; i < selectedFiles.length; i++) {
10791
- _loop_5(i);
10581
+ this.uploadFilesRequest(selectedFiles, i, custom);
10792
10582
  }
10793
10583
  };
10794
10584
  Uploader.prototype.uploadFilesRequest = function (selectedFiles, i, custom) {
10795
10585
  var _this = this;
10796
- var cloneFiles = [];
10797
10586
  var chunkEnabled = this.checkChunkUpload();
10798
10587
  var ajax = new Ajax(this.asyncSettings.saveUrl, 'POST', true, null);
10799
10588
  ajax.emitError = false;
10800
- var getFileData;
10801
- /* istanbul ignore next */
10802
- if (this.isServerBlazor) {
10803
- getFileData = selectedFiles.slice(0);
10804
- cloneFiles.push(getFileData[i].rawFile);
10805
- }
10806
10589
  var eventArgs = {
10807
- fileData: (this.isServerBlazor) ? getFileData[i] : selectedFiles[i],
10590
+ fileData: selectedFiles[i],
10808
10591
  customFormData: [],
10809
10592
  cancel: false
10810
10593
  };
10811
10594
  var formData = new FormData();
10812
10595
  ajax.beforeSend = function (e) {
10813
10596
  eventArgs.currentRequest = ajax.httpRequest;
10814
- /* istanbul ignore next */
10815
- if (isBlazor()) {
10816
- eventArgs.fileData.rawFile = !chunkEnabled ? _this.base64String[i] : eventArgs.fileData.rawFile;
10817
- if (_this.currentRequestHeader) {
10818
- _this.updateCustomheader(ajax.httpRequest, _this.currentRequestHeader);
10819
- }
10820
- if (_this.customFormDatas) {
10821
- _this.updateFormData(formData, _this.customFormDatas);
10822
- }
10823
- }
10824
10597
  _this.trigger('uploading', eventArgs, function (eventArgs) {
10825
10598
  /* istanbul ignore next */
10826
- if (_this.isServerBlazor && !chunkEnabled) {
10827
- selectedFiles[i].rawFile = eventArgs.fileData.rawFile = cloneFiles[i];
10828
- }
10829
10599
  if (eventArgs.cancel) {
10830
10600
  _this.eventCancelByArgs(e, eventArgs, selectedFiles[i]);
10831
10601
  }
@@ -10833,14 +10603,14 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10833
10603
  });
10834
10604
  };
10835
10605
  if (selectedFiles[i].statusCode === '1') {
10836
- var name_5 = this.element.getAttribute('name');
10837
- formData.append(name_5, selectedFiles[i].rawFile, selectedFiles[i].name);
10606
+ var name_4 = this.element.getAttribute('name');
10607
+ formData.append(name_4, selectedFiles[i].rawFile, selectedFiles[i].name);
10838
10608
  if (chunkEnabled && selectedFiles[i].size > this.asyncSettings.chunkSize) {
10839
10609
  this.chunkUpload(selectedFiles[i], custom, i);
10840
10610
  }
10841
10611
  else {
10842
10612
  ajax.onLoad = function (e) {
10843
- if (eventArgs.cancel && _this.isServerBlazor) {
10613
+ if (eventArgs.cancel) {
10844
10614
  return {};
10845
10615
  }
10846
10616
  else {
@@ -10849,7 +10619,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10849
10619
  }
10850
10620
  };
10851
10621
  ajax.onUploadProgress = function (e) {
10852
- if (eventArgs.cancel && _this.isServerBlazor) {
10622
+ if (eventArgs.cancel) {
10853
10623
  return {};
10854
10624
  }
10855
10625
  else {
@@ -10911,11 +10681,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10911
10681
  };
10912
10682
  this.trigger('beforeRemove', beforeEventArgs, function (beforeEventArgs) {
10913
10683
  if (!beforeEventArgs.cancel) {
10914
- if (isBlazor()) {
10915
- _this.currentRequestHeader = beforeEventArgs.currentRequest;
10916
- _this.customFormDatas = beforeEventArgs.customFormData;
10917
- }
10918
- if (_this.isFormUpload() && !_this.isBlazorSaveUrl) {
10684
+ if (_this.isFormUpload()) {
10919
10685
  eventArgs.filesData = fileData;
10920
10686
  _this.trigger('removing', eventArgs, function (eventArgs) {
10921
10687
  if (!eventArgs.cancel) {
@@ -10942,8 +10708,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10942
10708
  }
10943
10709
  });
10944
10710
  }
10945
- else if (_this.isForm && (isNullOrUndefined(_this.asyncSettings.removeUrl) || _this.asyncSettings.removeUrl === '')
10946
- && !_this.isBlazorSaveUrl) {
10711
+ else if (_this.isForm && (isNullOrUndefined(_this.asyncSettings.removeUrl) || _this.asyncSettings.removeUrl === '')) {
10947
10712
  eventArgs.filesData = _this.getFilesData();
10948
10713
  _this.trigger('removing', eventArgs, function (eventArgs) {
10949
10714
  if (!eventArgs.cancel) {
@@ -10963,7 +10728,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10963
10728
  eventArgs.filesData = removeFiles;
10964
10729
  var removeUrl = _this.asyncSettings.removeUrl;
10965
10730
  var validUrl = (removeUrl === '' || isNullOrUndefined(removeUrl)) ? false : true;
10966
- var _loop_6 = function (files) {
10731
+ var _loop_5 = function (files) {
10967
10732
  var fileUploadedIndex = _this.uploadedFilesData.indexOf(files);
10968
10733
  if ((files.statusCode === '2' || files.statusCode === '4' || (files.statusCode === '0' &&
10969
10734
  fileUploadedIndex !== -1)) && validUrl) {
@@ -10987,7 +10752,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10987
10752
  };
10988
10753
  for (var _i = 0, removeFiles_1 = removeFiles; _i < removeFiles_1.length; _i++) {
10989
10754
  var files = removeFiles_1[_i];
10990
- _loop_6(files);
10755
+ _loop_5(files);
10991
10756
  }
10992
10757
  }
10993
10758
  }
@@ -11001,7 +10766,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11001
10766
  */
11002
10767
  Uploader.prototype.clearAll = function () {
11003
10768
  var _this = this;
11004
- if (isNullOrUndefined(this.listParent) && !(this.isBlazorSaveUrl || this.isBlazorTemplate)) {
10769
+ if (isNullOrUndefined(this.listParent)) {
11005
10770
  if (this.browserName !== 'msie') {
11006
10771
  this.element.value = '';
11007
10772
  }
@@ -11028,19 +10793,11 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11028
10793
  * @returns {FileInfo[]}
11029
10794
  */
11030
10795
  Uploader.prototype.getFilesData = function (index) {
11031
- if (!this.isServerBlazor) {
11032
- if (isNullOrUndefined(index)) {
11033
- return this.filesData;
11034
- }
11035
- else {
11036
- return this.getSelectedFiles(index);
11037
- }
10796
+ if (isNullOrUndefined(index)) {
10797
+ return this.filesData;
11038
10798
  }
11039
10799
  else {
11040
- for (var i = 0; i < this.filesData.length; i++) {
11041
- this.filesData[i].rawFile = this.base64String[i];
11042
- }
11043
- return this.filesData;
10800
+ return this.getSelectedFiles(index);
11044
10801
  }
11045
10802
  };
11046
10803
  /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
@@ -13342,72 +13099,70 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13342
13099
  return (!str || /^\s*$/.test(str));
13343
13100
  };
13344
13101
  TextBox.prototype.preRender = function () {
13345
- if (!(isBlazor() && this.isServerRendered)) {
13346
- this.cloneElement = this.element.cloneNode(true);
13347
- this.formElement = closest(this.element, 'form');
13348
- if (!isNullOrUndefined(this.formElement)) {
13349
- this.isForm = true;
13350
- }
13351
- /* istanbul ignore next */
13352
- if (this.element.tagName === 'EJS-TEXTBOX') {
13353
- var ejInstance = getValue('ej2_instances', this.element);
13354
- var inputElement = this.multiline ?
13355
- this.createElement('textarea') :
13356
- this.createElement('input');
13357
- var index = 0;
13358
- for (index; index < this.element.attributes.length; index++) {
13359
- var attributeName = this.element.attributes[index].nodeName;
13360
- if (attributeName !== 'id') {
13361
- inputElement.setAttribute(attributeName, this.element.attributes[index].nodeValue);
13362
- inputElement.innerHTML = this.element.innerHTML;
13363
- if (attributeName === 'name') {
13364
- this.element.removeAttribute('name');
13365
- }
13102
+ this.cloneElement = this.element.cloneNode(true);
13103
+ this.formElement = closest(this.element, 'form');
13104
+ if (!isNullOrUndefined(this.formElement)) {
13105
+ this.isForm = true;
13106
+ }
13107
+ /* istanbul ignore next */
13108
+ if (this.element.tagName === 'EJS-TEXTBOX') {
13109
+ var ejInstance = getValue('ej2_instances', this.element);
13110
+ var inputElement = this.multiline ?
13111
+ this.createElement('textarea') :
13112
+ this.createElement('input');
13113
+ var index = 0;
13114
+ for (index; index < this.element.attributes.length; index++) {
13115
+ var attributeName = this.element.attributes[index].nodeName;
13116
+ if (attributeName !== 'id') {
13117
+ inputElement.setAttribute(attributeName, this.element.attributes[index].nodeValue);
13118
+ inputElement.innerHTML = this.element.innerHTML;
13119
+ if (attributeName === 'name') {
13120
+ this.element.removeAttribute('name');
13366
13121
  }
13367
13122
  }
13368
- this.element.appendChild(inputElement);
13369
- this.element = inputElement;
13370
- setValue('ej2_instances', ejInstance, this.element);
13371
- }
13372
- this.updateHTMLAttrToElement();
13373
- this.checkAttributes(false);
13374
- if (this.element.tagName !== 'TEXTAREA') {
13375
- this.element.setAttribute('type', this.type);
13376
- }
13377
- this.element.setAttribute('role', 'textbox');
13378
- this.globalize = new Internationalization(this.locale);
13379
- var localeText = { placeholder: this.placeholder };
13380
- this.l10n = new L10n('textbox', localeText, this.locale);
13381
- if (this.l10n.getConstant('placeholder') !== '') {
13382
- this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
13383
- }
13384
- if (!this.element.hasAttribute('id')) {
13385
- this.element.setAttribute('id', getUniqueID('textbox'));
13386
13123
  }
13387
- if (!this.element.hasAttribute('name')) {
13388
- this.element.setAttribute('name', this.element.getAttribute('id'));
13389
- }
13390
- if (this.element.tagName === 'INPUT' && this.multiline) {
13391
- this.isHiddenInput = true;
13392
- this.textarea = this.createElement('textarea');
13393
- this.element.parentNode.insertBefore(this.textarea, this.element);
13394
- this.element.setAttribute('type', 'hidden');
13395
- this.textarea.setAttribute('name', this.element.getAttribute('name'));
13396
- this.element.removeAttribute('name');
13397
- this.textarea.setAttribute('role', this.element.getAttribute('role'));
13398
- this.element.removeAttribute('role');
13399
- this.textarea.setAttribute('id', getUniqueID('textarea'));
13400
- var apiAttributes = ['placeholder', 'disabled', 'value', 'readonly', 'type', 'autocomplete'];
13401
- for (var index = 0; index < this.element.attributes.length; index++) {
13402
- var attributeName = this.element.attributes[index].nodeName;
13403
- if (this.element.hasAttribute(attributeName) && containerAttr.indexOf(attributeName) < 0 &&
13404
- !(attributeName === 'id' || attributeName === 'type' || attributeName === 'e-mappinguid')) {
13405
- // e-mappinguid attribute is handled for Grid component.
13406
- this.textarea.setAttribute(attributeName, this.element.attributes[index].nodeValue);
13407
- if (apiAttributes.indexOf(attributeName) < 0) {
13408
- this.element.removeAttribute(attributeName);
13409
- index--;
13410
- }
13124
+ this.element.appendChild(inputElement);
13125
+ this.element = inputElement;
13126
+ setValue('ej2_instances', ejInstance, this.element);
13127
+ }
13128
+ this.updateHTMLAttrToElement();
13129
+ this.checkAttributes(false);
13130
+ if (this.element.tagName !== 'TEXTAREA') {
13131
+ this.element.setAttribute('type', this.type);
13132
+ }
13133
+ this.element.setAttribute('role', 'textbox');
13134
+ this.globalize = new Internationalization(this.locale);
13135
+ var localeText = { placeholder: this.placeholder };
13136
+ this.l10n = new L10n('textbox', localeText, this.locale);
13137
+ if (this.l10n.getConstant('placeholder') !== '') {
13138
+ this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
13139
+ }
13140
+ if (!this.element.hasAttribute('id')) {
13141
+ this.element.setAttribute('id', getUniqueID('textbox'));
13142
+ }
13143
+ if (!this.element.hasAttribute('name')) {
13144
+ this.element.setAttribute('name', this.element.getAttribute('id'));
13145
+ }
13146
+ if (this.element.tagName === 'INPUT' && this.multiline) {
13147
+ this.isHiddenInput = true;
13148
+ this.textarea = this.createElement('textarea');
13149
+ this.element.parentNode.insertBefore(this.textarea, this.element);
13150
+ this.element.setAttribute('type', 'hidden');
13151
+ this.textarea.setAttribute('name', this.element.getAttribute('name'));
13152
+ this.element.removeAttribute('name');
13153
+ this.textarea.setAttribute('role', this.element.getAttribute('role'));
13154
+ this.element.removeAttribute('role');
13155
+ this.textarea.setAttribute('id', getUniqueID('textarea'));
13156
+ var apiAttributes = ['placeholder', 'disabled', 'value', 'readonly', 'type', 'autocomplete'];
13157
+ for (var index = 0; index < this.element.attributes.length; index++) {
13158
+ var attributeName = this.element.attributes[index].nodeName;
13159
+ if (this.element.hasAttribute(attributeName) && containerAttr.indexOf(attributeName) < 0 &&
13160
+ !(attributeName === 'id' || attributeName === 'type' || attributeName === 'e-mappinguid')) {
13161
+ // e-mappinguid attribute is handled for Grid component.
13162
+ this.textarea.setAttribute(attributeName, this.element.attributes[index].nodeValue);
13163
+ if (apiAttributes.indexOf(attributeName) < 0) {
13164
+ this.element.removeAttribute(attributeName);
13165
+ index--;
13411
13166
  }
13412
13167
  }
13413
13168
  }
@@ -13470,37 +13225,22 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13470
13225
  if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
13471
13226
  updatedCssClassValue = this.getInputValidClassList(this.cssClass);
13472
13227
  }
13473
- if (!(isBlazor() && this.isServerRendered)) {
13474
- this.respectiveElement = (this.isHiddenInput) ? this.textarea : this.element;
13475
- this.textboxWrapper = Input.createInput({
13476
- element: this.respectiveElement,
13477
- floatLabelType: this.floatLabelType,
13478
- properties: {
13479
- enabled: this.enabled,
13480
- enableRtl: this.enableRtl,
13481
- cssClass: updatedCssClassValue,
13482
- readonly: this.readonly,
13483
- placeholder: this.placeholder,
13484
- showClearButton: this.showClearButton
13485
- }
13486
- });
13487
- this.updateHTMLAttrToWrapper();
13488
- if (this.isHiddenInput) {
13489
- this.respectiveElement.parentNode.insertBefore(this.element, this.respectiveElement);
13490
- }
13491
- }
13492
- else {
13493
- this.respectiveElement = this.element;
13494
- this.textboxWrapper = { container: this.element.parentElement };
13495
- if (this.showClearButton && !this.multiline) {
13496
- this.textboxWrapper.clearButton = this.textboxWrapper.container.querySelector('.e-clear-icon');
13497
- Input.wireClearBtnEvents(this.respectiveElement, this.textboxWrapper.clearButton, this.textboxWrapper.container);
13498
- }
13499
- if (this.floatLabelType === 'Auto') {
13500
- Input.wireFloatingEvents(this.respectiveElement);
13228
+ this.respectiveElement = (this.isHiddenInput) ? this.textarea : this.element;
13229
+ this.textboxWrapper = Input.createInput({
13230
+ element: this.respectiveElement,
13231
+ floatLabelType: this.floatLabelType,
13232
+ properties: {
13233
+ enabled: this.enabled,
13234
+ enableRtl: this.enableRtl,
13235
+ cssClass: updatedCssClassValue,
13236
+ readonly: this.readonly,
13237
+ placeholder: this.placeholder,
13238
+ showClearButton: this.showClearButton
13501
13239
  }
13502
- // eslint-disable-next-line max-len, @typescript-eslint/no-explicit-any
13503
- Input.bindInitialEvent({ element: this.respectiveElement, buttons: null, customTag: null, floatLabelType: this.floatLabelType, properties: this.properties });
13240
+ });
13241
+ this.updateHTMLAttrToWrapper();
13242
+ if (this.isHiddenInput) {
13243
+ this.respectiveElement.parentNode.insertBefore(this.element, this.respectiveElement);
13504
13244
  }
13505
13245
  this.wireEvents();
13506
13246
  if (!isNullOrUndefined(this.value)) {
@@ -13737,25 +13477,20 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13737
13477
  */
13738
13478
  TextBox.prototype.destroy = function () {
13739
13479
  this.unWireEvents();
13740
- if (!(isBlazor() && this.isServerRendered)) {
13741
- if (this.element.tagName === 'INPUT' && this.multiline) {
13742
- detach(this.textboxWrapper.container.getElementsByTagName('textarea')[0]);
13743
- this.respectiveElement = this.element;
13744
- this.element.removeAttribute('type');
13745
- }
13746
- this.respectiveElement.value = this.respectiveElement.defaultValue;
13747
- this.respectiveElement.classList.remove('e-input');
13748
- this.removeAttributes(['aria-placeholder', 'aria-disabled', 'aria-readonly', 'aria-labelledby']);
13749
- if (!isNullOrUndefined(this.textboxWrapper)) {
13750
- this.textboxWrapper.container.insertAdjacentElement('afterend', this.respectiveElement);
13751
- detach(this.textboxWrapper.container);
13752
- }
13753
- this.textboxWrapper = null;
13754
- _super.prototype.destroy.call(this);
13480
+ if (this.element.tagName === 'INPUT' && this.multiline) {
13481
+ detach(this.textboxWrapper.container.getElementsByTagName('textarea')[0]);
13482
+ this.respectiveElement = this.element;
13483
+ this.element.removeAttribute('type');
13755
13484
  }
13756
- else {
13757
- this.textboxWrapper = null;
13485
+ this.respectiveElement.value = this.respectiveElement.defaultValue;
13486
+ this.respectiveElement.classList.remove('e-input');
13487
+ this.removeAttributes(['aria-placeholder', 'aria-disabled', 'aria-readonly', 'aria-labelledby']);
13488
+ if (!isNullOrUndefined(this.textboxWrapper)) {
13489
+ this.textboxWrapper.container.insertAdjacentElement('afterend', this.respectiveElement);
13490
+ detach(this.textboxWrapper.container);
13758
13491
  }
13492
+ this.textboxWrapper = null;
13493
+ _super.prototype.destroy.call(this);
13759
13494
  };
13760
13495
  /**
13761
13496
  * Adding the icons to the TextBox component.