@syncfusion/ej2-form-renderer 35.1.37 → 35.1.42

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.
@@ -7374,7 +7374,7 @@ var FormRenderer = /** @__PURE__ @class */ (function (_super) {
7374
7374
  var renderedOut = compiled({
7375
7375
  fieldData: swappedComponent,
7376
7376
  value: formState ? formState.values[component.id] : undefined,
7377
- }, this);
7377
+ }, this, 'customWidgetTemplate' + component.id, (this.element.id || 'form-renderer') + 'customWidgetTemplate', this.isStringTemplate, undefined, fieldInput, this.root);
7378
7378
  var outList = void 0;
7379
7379
  if (renderedOut == null) {
7380
7380
  outList = [];
@@ -7763,6 +7763,12 @@ var FormRenderer = /** @__PURE__ @class */ (function (_super) {
7763
7763
  form.querySelectorAll('.e-control.e-multiselect.e-lib').forEach(function (cb) {
7764
7764
  (cb.ej2_instances[0]).value = [];
7765
7765
  });
7766
+ form.querySelectorAll('.e-control.e-slider.e-lib').forEach(function (slider) {
7767
+ (slider.ej2_instances[0]).value = 0;
7768
+ });
7769
+ form.querySelectorAll('.e-control.e-uploader.e-lib').forEach(function (upload) {
7770
+ (upload.ej2_instances[0]).clearAll();
7771
+ });
7766
7772
  }
7767
7773
  _this.formState.values = {};
7768
7774
  form.reset();
@@ -7874,6 +7880,7 @@ var FormRenderer = /** @__PURE__ @class */ (function (_super) {
7874
7880
  }
7875
7881
  var inputParent = inputElement.parentElement;
7876
7882
  var grandParent = inputParent.parentElement;
7883
+ var greatGrandParent = grandParent ? grandParent.parentElement : null;
7877
7884
  if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
7878
7885
  (inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7879
7886
  inputParent.classList.remove('e-error');
@@ -7881,6 +7888,9 @@ var FormRenderer = /** @__PURE__ @class */ (function (_super) {
7881
7888
  else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {
7882
7889
  grandParent.classList.remove('e-error');
7883
7890
  }
7891
+ else if ((greatGrandParent != null) && (greatGrandParent.classList.contains('e-control-wrapper') || greatGrandParent.classList.contains('e-wrapper'))) {
7892
+ greatGrandParent.classList.remove('e-error');
7893
+ }
7884
7894
  else {
7885
7895
  inputElement.classList.remove('e-error');
7886
7896
  }