@syncfusion/ej2-form-renderer 34.2.2 → 34.2.4

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.
@@ -1868,7 +1868,7 @@ class CheckboxGroup {
1868
1868
  const optionLabel = typeof option === 'string'
1869
1869
  ? option
1870
1870
  : (option.label != null ? option.label : (option.value != null ? option.value : String(optionValue)));
1871
- const wrapper = document.createElement('div');
1871
+ const wrapper = document.createElement('input');
1872
1872
  itemsContainer.appendChild(wrapper);
1873
1873
  const checkBox = new CheckBox({
1874
1874
  label: optionLabel,
@@ -1962,7 +1962,7 @@ class CheckboxGroup {
1962
1962
  const optionLabel = typeof option === 'string'
1963
1963
  ? option
1964
1964
  : (option.label || option.value || String(optionValue));
1965
- const wrapper = document.createElement('div');
1965
+ const wrapper = document.createElement('input');
1966
1966
  this.itemsContainer.appendChild(wrapper);
1967
1967
  const checkBox = new CheckBox({
1968
1968
  label: optionLabel,
@@ -4818,6 +4818,11 @@ let FormRenderer = FormRenderer_1 = class FormRenderer extends Component {
4818
4818
  const rteInstance = getComponent(toolbarElement, 'toolbar');
4819
4819
  rteInstance.refresh();
4820
4820
  }
4821
+ if (component.type === 'tabs') {
4822
+ const tabElement = rendered.querySelector('.e-control.e-tab');
4823
+ const tabInstance = getComponent(tabElement, 'tab');
4824
+ tabInstance.refreshOverflow();
4825
+ }
4821
4826
  });
4822
4827
  if (this.created && !this.createdFired) {
4823
4828
  setTimeout(() => {
@@ -5844,6 +5849,9 @@ let FormRenderer = FormRenderer_1 = class FormRenderer extends Component {
5844
5849
  form.querySelectorAll('input[type="checkbox"]').forEach((cb) => {
5845
5850
  (cb.ej2_instances[0]).checked = false;
5846
5851
  });
5852
+ form.querySelectorAll('.e-control.e-multiselect.e-lib').forEach((cb) => {
5853
+ (cb.ej2_instances[0]).value = [];
5854
+ });
5847
5855
  }
5848
5856
  this.formState.values = {};
5849
5857
  form.reset();
@@ -6085,6 +6093,31 @@ let FormRenderer = FormRenderer_1 = class FormRenderer extends Component {
6085
6093
  myDeps.add(conditions.choiceBasedField.primaryFieldId);
6086
6094
  }
6087
6095
  }
6096
+ const collectMinMaxReferenceIds = (range) => {
6097
+ if (!range || range.enabled !== true) {
6098
+ return;
6099
+ }
6100
+ const collectFromBound = (bound) => {
6101
+ if (bound && typeof bound === 'object' && typeof bound.field === 'string') {
6102
+ triggers.add(bound.field);
6103
+ myDeps.add(bound.field);
6104
+ }
6105
+ };
6106
+ collectFromBound(range.minValue);
6107
+ collectFromBound(range.maxValue);
6108
+ };
6109
+ const minMaxRule = comp.minMaxRange;
6110
+ if (Array.isArray(minMaxRule)) {
6111
+ for (const range of minMaxRule) {
6112
+ collectMinMaxReferenceIds(range);
6113
+ }
6114
+ }
6115
+ const minMaxTimeRule = comp.minMaxTimeRange;
6116
+ if (Array.isArray(minMaxTimeRule)) {
6117
+ for (const range of minMaxTimeRule) {
6118
+ collectMinMaxReferenceIds(range);
6119
+ }
6120
+ }
6088
6121
  // ==========================================================
6089
6122
  // DataGrid remote datasource dependencies
6090
6123
  // Example: