@senior-gestao-empresarial/erpx-components 3.4.0 → 3.4.1

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.
@@ -1203,7 +1203,7 @@
1203
1203
  _this.setRequired(tributo, true);
1204
1204
  }
1205
1205
  else if (item === 'beneficioFiscal') {
1206
- it.formGroup.controls[item].setValidators(forms.Validators.compose([]));
1206
+ it.formGroup.controls[item].setValidators(forms.Validators.compose([forms.Validators.required]));
1207
1207
  it.formGroup.controls[item].updateValueAndValidity({ emitEvent: false });
1208
1208
  _this.setRequired(tributo, true);
1209
1209
  }
@@ -3761,7 +3761,10 @@
3761
3761
  }));
3762
3762
  }
3763
3763
  else if (it.campo === exports.EnumCampoTributo.BeneficioFiscal) {
3764
- formGroup = __assign(__assign({}, formGroup), { beneficioFiscal: [{ value: null, disabled: false }, forms.Validators.compose([])] });
3764
+ formGroup = __assign(__assign({}, formGroup), { beneficioFiscal: [
3765
+ { value: null, disabled: false },
3766
+ forms.Validators.compose([forms.Validators.required])
3767
+ ] });
3765
3768
  formField.push(new angularComponents$1.FormField(__assign(__assign({}, _this.beneficioFiscalLookup.mountOptions({
3766
3769
  multiple: false,
3767
3770
  domain: _this.dominio,
@@ -3771,7 +3774,7 @@
3771
3774
  })), { onBlur: function () {
3772
3775
  _this.backValue();
3773
3776
  _this.setValidators(tributo);
3774
- }, label: _this.translate.instant('erpx.tributos.fields_beneficio_fiscal_label'), size: { sm: 12, md: 4, lg: 4, xl: 3 } })));
3777
+ }, required: function () { return true; }, label: _this.translate.instant('erpx.tributos.fields_beneficio_fiscal_label'), size: { sm: 12, md: 4, lg: 4, xl: 3 } })));
3775
3778
  }
3776
3779
  });
3777
3780
  if (this.sugestoes) {