@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 35.1.37
3
+ * version : 35.1.42
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-form-renderer",
3
- "version": "35.1.37",
3
+ "version": "35.1.42",
4
4
  "description": "A package of Essential JS 2 Form Renderer which can render feature-rich Syncfusion components as a form.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,15 +8,15 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-form-renderer.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-buttons": "~35.1.37",
12
- "@syncfusion/ej2-calendars": "~35.1.37",
13
- "@syncfusion/ej2-dropdowns": "~35.1.37",
14
- "@syncfusion/ej2-grids": "~35.1.37",
11
+ "@syncfusion/ej2-buttons": "~35.1.41",
12
+ "@syncfusion/ej2-calendars": "~35.1.41",
13
+ "@syncfusion/ej2-dropdowns": "~35.1.42",
14
+ "@syncfusion/ej2-grids": "~35.1.42",
15
15
  "@syncfusion/ej2-image-editor": "~35.1.37",
16
- "@syncfusion/ej2-inputs": "~35.1.37",
17
- "@syncfusion/ej2-navigations": "~35.1.37",
16
+ "@syncfusion/ej2-inputs": "~35.1.42",
17
+ "@syncfusion/ej2-navigations": "~35.1.42",
18
18
  "@syncfusion/ej2-notifications": "~35.1.37",
19
- "@syncfusion/ej2-richtexteditor": "~35.1.37",
19
+ "@syncfusion/ej2-richtexteditor": "~35.1.42",
20
20
  "@syncfusion/ej2-splitbuttons": "~35.1.37"
21
21
  },
22
22
  "devDependencies": {},
@@ -975,7 +975,7 @@ var FormRenderer = /** @class */ (function (_super) {
975
975
  var renderedOut = compiled({
976
976
  fieldData: swappedComponent,
977
977
  value: formState ? formState.values[component.id] : undefined,
978
- }, this);
978
+ }, this, 'customWidgetTemplate' + component.id, (this.element.id || 'form-renderer') + 'customWidgetTemplate', this.isStringTemplate, undefined, fieldInput, this.root);
979
979
  var outList = void 0;
980
980
  if (renderedOut == null) {
981
981
  outList = [];
@@ -1364,6 +1364,12 @@ var FormRenderer = /** @class */ (function (_super) {
1364
1364
  form.querySelectorAll('.e-control.e-multiselect.e-lib').forEach(function (cb) {
1365
1365
  (cb.ej2_instances[0]).value = [];
1366
1366
  });
1367
+ form.querySelectorAll('.e-control.e-slider.e-lib').forEach(function (slider) {
1368
+ (slider.ej2_instances[0]).value = 0;
1369
+ });
1370
+ form.querySelectorAll('.e-control.e-uploader.e-lib').forEach(function (upload) {
1371
+ (upload.ej2_instances[0]).clearAll();
1372
+ });
1367
1373
  }
1368
1374
  _this.formState.values = {};
1369
1375
  form.reset();
@@ -1475,6 +1481,7 @@ var FormRenderer = /** @class */ (function (_super) {
1475
1481
  }
1476
1482
  var inputParent = inputElement.parentElement;
1477
1483
  var grandParent = inputParent.parentElement;
1484
+ var greatGrandParent = grandParent ? grandParent.parentElement : null;
1478
1485
  if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
1479
1486
  (inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
1480
1487
  inputParent.classList.remove('e-error');
@@ -1482,6 +1489,9 @@ var FormRenderer = /** @class */ (function (_super) {
1482
1489
  else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {
1483
1490
  grandParent.classList.remove('e-error');
1484
1491
  }
1492
+ else if ((greatGrandParent != null) && (greatGrandParent.classList.contains('e-control-wrapper') || greatGrandParent.classList.contains('e-wrapper'))) {
1493
+ greatGrandParent.classList.remove('e-error');
1494
+ }
1485
1495
  else {
1486
1496
  inputElement.classList.remove('e-error');
1487
1497
  }