@senior-gestao-pessoas/payroll-core 9.7.0-feature-hcmgdp-11851-0d47b4a9 → 9.7.0-feature-hcmgdp-11851-12103c19

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.
@@ -155,7 +155,7 @@ var CNPJValidator = /** @class */ (function () {
155
155
  }
156
156
  // Valida que dígitos verificadores são numéricos
157
157
  if (!/^\d$/.test(cnpj.charAt(12)) || !/^\d$/.test(cnpj.charAt(13))) {
158
- return { cnpjNotValid: true };
158
+ return false;
159
159
  }
160
160
  // Elimina CNPJs invalidos conhecidos
161
161
  if (cnpj === '00000000000000' ||
@@ -9564,6 +9564,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9564
9564
  this.paramsForm = new FormGroup({});
9565
9565
  this.defaultCpfNumber = null;
9566
9566
  this.permitsEditBankAccountForm = false;
9567
+ this.isAlphanumericCNPJ = false;
9567
9568
  this.visibleChange = new EventEmitter();
9568
9569
  this.pixAccountItemToList = new EventEmitter();
9569
9570
  this.ngUnsubscribe = new Subject();
@@ -9615,7 +9616,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9615
9616
  this.pixKeyType = item.key;
9616
9617
  this.isShowPixKeyFieldValidatorMessage = true;
9617
9618
  this.pixAccountFormGroup.get("pixKey").reset();
9618
- this.setPixKeyValidators(true);
9619
+ this.setPixKeyValidators(true, this.isAlphanumericCNPJ);
9619
9620
  if (item.key === "CPF") {
9620
9621
  this.setDefaultCpfPixKey();
9621
9622
  }
@@ -9678,7 +9679,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9678
9679
  this.visibleBtnSave = isEditMode;
9679
9680
  if (this.pixAccountFormGroup.get("pixKeyType").value) {
9680
9681
  this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
9681
- this.setPixKeyValidators(isEditMode);
9682
+ this.setPixKeyValidators(isEditMode, this.isAlphanumericCNPJ);
9682
9683
  this.formatPixKeyTelephoneNumber();
9683
9684
  }
9684
9685
  configEnabledFields(this.pixAccountFormGroup, isEditMode, [
@@ -9771,7 +9772,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9771
9772
  });
9772
9773
  }
9773
9774
  this.beforeSetPixKeyTypeValidator();
9774
- this.setPixKeyValidators(isEditMode);
9775
+ this.setPixKeyValidators(isEditMode, this.isAlphanumericCNPJ);
9775
9776
  this.validatePercentageValid(percentageIncluded);
9776
9777
  };
9777
9778
  /**
@@ -9935,6 +9936,9 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9935
9936
  __decorate([
9936
9937
  Input()
9937
9938
  ], HistoricalPixAccountFormComponent.prototype, "permitsEditBankAccountForm", void 0);
9939
+ __decorate([
9940
+ Input()
9941
+ ], HistoricalPixAccountFormComponent.prototype, "isAlphanumericCNPJ", void 0);
9938
9942
  __decorate([
9939
9943
  Output()
9940
9944
  ], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
@@ -9978,6 +9982,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9978
9982
  this.defaultCpfNumber = null;
9979
9983
  this.listDataReciever = [];
9980
9984
  this.showButtonEdit = false;
9985
+ this.isAlphanumericCNPJ = false;
9981
9986
  this.isViewModeActive = new EventEmitter();
9982
9987
  this.isEditModeActive = new EventEmitter();
9983
9988
  this.isDeleteModeActive = new EventEmitter();
@@ -10291,7 +10296,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
10291
10296
  return FormatUtilsService.getFormattedCpf(cpf);
10292
10297
  };
10293
10298
  HistoricalPixAccountComponent.prototype.getFormattedCnpj = function (cnpj) {
10294
- return FormatUtilsService.getFormattedCnpj(cnpj);
10299
+ return FormatUtilsService.getFormattedCnpj(cnpj, this.isAlphanumericCNPJ);
10295
10300
  };
10296
10301
  HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
10297
10302
  return FormatUtilsService.getFormattedPercentage(value);
@@ -10390,6 +10395,9 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
10390
10395
  __decorate([
10391
10396
  Input()
10392
10397
  ], HistoricalPixAccountComponent.prototype, "showButtonEdit", void 0);
10398
+ __decorate([
10399
+ Input()
10400
+ ], HistoricalPixAccountComponent.prototype, "isAlphanumericCNPJ", void 0);
10393
10401
  __decorate([
10394
10402
  Output()
10395
10403
  ], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);