@syncfusion/ej2-inputs 24.2.3 → 24.2.5

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 (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +23 -0
  3. package/dist/ej2-inputs.min.js +2 -2
  4. package/dist/ej2-inputs.umd.min.js +2 -2
  5. package/dist/ej2-inputs.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es2015.js +16 -3
  7. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  8. package/dist/es6/ej2-inputs.es5.js +20 -7
  9. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  10. package/dist/global/ej2-inputs.min.js +2 -2
  11. package/dist/global/ej2-inputs.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +9 -9
  14. package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +3 -0
  15. package/src/uploader/uploader.d.ts +7 -0
  16. package/src/uploader/uploader.js +17 -7
  17. package/styles/bootstrap-dark.css +26 -22
  18. package/styles/bootstrap.css +26 -22
  19. package/styles/bootstrap4.css +26 -22
  20. package/styles/bootstrap5-dark.css +26 -22
  21. package/styles/bootstrap5.css +26 -22
  22. package/styles/data-form/_layout.scss +13 -2
  23. package/styles/data-form/bootstrap-dark.css +26 -22
  24. package/styles/data-form/bootstrap.css +26 -22
  25. package/styles/data-form/bootstrap4.css +26 -22
  26. package/styles/data-form/bootstrap5-dark.css +26 -22
  27. package/styles/data-form/bootstrap5.css +26 -22
  28. package/styles/data-form/fabric-dark.css +26 -22
  29. package/styles/data-form/fabric.css +26 -22
  30. package/styles/data-form/fluent-dark.css +26 -22
  31. package/styles/data-form/fluent.css +26 -22
  32. package/styles/data-form/highcontrast-light.css +26 -22
  33. package/styles/data-form/highcontrast.css +26 -22
  34. package/styles/data-form/material-dark.css +26 -22
  35. package/styles/data-form/material.css +26 -22
  36. package/styles/data-form/material3-dark.css +26 -22
  37. package/styles/data-form/material3.css +26 -22
  38. package/styles/data-form/tailwind-dark.css +26 -22
  39. package/styles/data-form/tailwind.css +26 -22
  40. package/styles/fabric-dark.css +26 -22
  41. package/styles/fabric.css +26 -22
  42. package/styles/fluent-dark.css +26 -22
  43. package/styles/fluent.css +26 -22
  44. package/styles/highcontrast-light.css +26 -22
  45. package/styles/highcontrast.css +26 -22
  46. package/styles/material-dark.css +26 -22
  47. package/styles/material.css +26 -22
  48. package/styles/material3-dark.css +26 -22
  49. package/styles/material3.css +26 -22
  50. package/styles/tailwind-dark.css +26 -22
  51. package/styles/tailwind.css +26 -22
@@ -3555,6 +3555,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3555
3555
  if (this.element.hasAttribute('id')) {
3556
3556
  this.element.removeAttribute('id');
3557
3557
  }
3558
+ if (this.element.hasAttribute('name')) {
3559
+ this.element.removeAttribute('name');
3560
+ }
3558
3561
  this.element.classList.remove('e-control', 'e-maskedtextbox');
3559
3562
  this.element.classList.add('e-mask-container');
3560
3563
  this.element.appendChild(input);
@@ -9283,7 +9286,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9283
9286
  }
9284
9287
  else {
9285
9288
  this.internalCreateFileList(fileData);
9286
- if (this.autoUpload && this.sequenceUpload && this.filesData.length > 0 && this.filesData[this.filesData.length - 1].statusCode !== '2' && this.filesData[this.filesData.length - 1].statusCode !== '0') {
9289
+ if (this.autoUpload && this.sequenceUpload && this.sequentialUpload && this.filesData.length > 0 && this.filesData[this.filesData.length - 1].statusCode !== '2' && this.filesData[this.filesData.length - 1].statusCode !== '0') {
9287
9290
  this.filesData = this.filesData.concat(fileData);
9288
9291
  return;
9289
9292
  }
@@ -9302,7 +9305,11 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9302
9305
  this.upload(this.filesData, true);
9303
9306
  }
9304
9307
  }
9305
- this.raiseActionComplete();
9308
+ for (var item = 0; item < this.filesData.length; item++) {
9309
+ if (this.filesData[item].statusCode === '0') {
9310
+ this.checkActionComplete(true);
9311
+ }
9312
+ }
9306
9313
  this.isFirstFileOnSelection = true;
9307
9314
  }
9308
9315
  };
@@ -9913,7 +9920,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9913
9920
  event: e,
9914
9921
  fileData: files,
9915
9922
  cancel: false,
9916
- customFormData: []
9923
+ customFormData: [],
9924
+ currentRequest: null
9917
9925
  };
9918
9926
  this.trigger('canceling', eventArgs, function (eventArgs) {
9919
9927
  if (eventArgs.cancel) {
@@ -9935,13 +9943,18 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9935
9943
  formData.append(name_1, files.name);
9936
9944
  formData.append('cancel-uploading', files.name);
9937
9945
  _this.updateFormData(formData, eventArgs.customFormData);
9938
- var ajax = new Ajax(_this.asyncSettings.removeUrl, 'POST', true, null);
9939
- ajax.emitError = false;
9940
- ajax.onLoad = function (e) {
9946
+ var ajax_1 = new Ajax(_this.asyncSettings.removeUrl, 'POST', true, null);
9947
+ ajax_1.emitError = false;
9948
+ ajax_1.beforeSend = function (e) {
9949
+ if (eventArgs.currentRequest) {
9950
+ _this.updateCustomheader(ajax_1.httpRequest, eventArgs.currentRequest);
9951
+ }
9952
+ };
9953
+ ajax_1.onLoad = function (e) {
9941
9954
  _this.removecanceledFile(e, files);
9942
9955
  return {};
9943
9956
  };
9944
- ajax.send(formData);
9957
+ ajax_1.send(formData);
9945
9958
  }
9946
9959
  }
9947
9960
  });