@senior-gestao-pessoas/payroll-core 9.2.0-f1576e5d-10f9-432e-b073-1aa58ae3cbc8 → 9.3.0

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.
Files changed (29) hide show
  1. package/bundles/senior-gestao-pessoas-payroll-core.umd.js +309 -4
  2. package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
  5. package/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.d.ts +1 -1
  6. package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +50 -0
  7. package/components/historical-pix-account-list/historical-pix-account-list.module.d.ts +2 -0
  8. package/components/historical-pix-account-list/historical-pix-account-list.service.d.ts +9 -0
  9. package/components/historical-pix-account-list/index.d.ts +3 -0
  10. package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +5 -5
  11. package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +237 -0
  12. package/esm2015/components/historical-pix-account-list/historical-pix-account-list.module.js +39 -0
  13. package/esm2015/components/historical-pix-account-list/historical-pix-account-list.service.js +35 -0
  14. package/esm2015/components/historical-pix-account-list/index.js +4 -0
  15. package/esm2015/public_api.js +2 -1
  16. package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +5 -5
  17. package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +257 -0
  18. package/esm5/components/historical-pix-account-list/historical-pix-account-list.module.js +42 -0
  19. package/esm5/components/historical-pix-account-list/historical-pix-account-list.service.js +37 -0
  20. package/esm5/components/historical-pix-account-list/index.js +4 -0
  21. package/esm5/public_api.js +2 -1
  22. package/fesm2015/senior-gestao-pessoas-payroll-core.js +282 -5
  23. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  24. package/fesm5/senior-gestao-pessoas-payroll-core.js +307 -5
  25. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  26. package/locale/es-ES.json +1 -1
  27. package/package.json +1 -1
  28. package/public_api.d.ts +1 -0
  29. package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
@@ -9083,7 +9083,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
9083
9083
  else {
9084
9084
  if (this.pixAccountFormGroup.get("pixKeyType").value) {
9085
9085
  this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
9086
- this.formatPixKeyTelehponeNumber();
9086
+ this.formatPixKeyTelephoneNumber();
9087
9087
  }
9088
9088
  }
9089
9089
  }
@@ -9091,7 +9091,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
9091
9091
  this.labelBtnAdd = "hcm.payroll.employees_add";
9092
9092
  }
9093
9093
  }
9094
- formatPixKeyTelehponeNumber() {
9094
+ formatPixKeyTelephoneNumber() {
9095
9095
  if (this.pixKeyType === "TELEPHONE") {
9096
9096
  this.pixAccountFormGroup.get("pixKey").setValue(FormatUtilsService.getFormattedTelephoneNumber(this.pixAccountFormGroup.get("pixKey").value));
9097
9097
  }
@@ -9106,7 +9106,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
9106
9106
  if (this.pixAccountFormGroup.get("pixKeyType").value) {
9107
9107
  this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
9108
9108
  this.setPixKeyValidators(isEditMode);
9109
- this.formatPixKeyTelehponeNumber();
9109
+ this.formatPixKeyTelephoneNumber();
9110
9110
  }
9111
9111
  configEnabledFields(this.pixAccountFormGroup, isEditMode, [
9112
9112
  "pixKeyType",
@@ -9348,7 +9348,7 @@ __decorate([
9348
9348
  HistoricalPixAccountFormComponent = __decorate([
9349
9349
  Component({
9350
9350
  selector: "pix-account",
9351
- template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"99.999.999/9999-99\" [unmask]=\"true\"></p-inputMask>\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"{{'hcm.payroll.employees_addition_email'|translate}}\"/>\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\" disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
9351
+ template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"99.999.999/9999-99\" [unmask]=\"true\"></p-inputMask>\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"{{'hcm.payroll.employees_addition_email'|translate}}\"/>\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\" disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\" maxlength=\"100\" />\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
9352
9352
  styles: [".refresh{width:100%!important}#table-annuity .col-default-s{width:10%}#table-annuity .col-default-m{width:12%}#table-annuity .col-default-l{width:16%}#table-annuity .col-action{width:10%}#table-annuity .icon-warning{text-align:center!important;color:#ff6d00c7!important}@media screen and (max-width:612px){#table-annuity .col-default-1,#table-annuity .col-default-2{width:16%}#table-annuity .col-default-3{width:26%}#table-annuity .col-icon{width:10%}#table-annuity .col-action{width:27%}}#main{display:-webkit-box;display:flex;height:100%;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}#main form{height:100%}#main .footer{border-top:1px solid #ccc;padding-top:15px;margin-top:15px;flex-shrink:0;margin-bottom:-18px}#main .footer-s-border{padding-left:7px;flex-shrink:0;margin-bottom:-18px}"]
9353
9353
  })
9354
9354
  ], HistoricalPixAccountFormComponent);
@@ -9402,6 +9402,283 @@ HistoricalPixAccountModule = __decorate([
9402
9402
  })
9403
9403
  ], HistoricalPixAccountModule);
9404
9404
 
9405
+ let HistoricalPixAccountListService = class HistoricalPixAccountListService {
9406
+ constructor(http, httpClient) {
9407
+ this.http = http;
9408
+ this.httpClient = httpClient;
9409
+ }
9410
+ remove(id, dateWhen, service = ServiceType.PAYROLL, dependentId) {
9411
+ if (service === ServiceType.DEPENDENT) {
9412
+ return this.httpClient
9413
+ .post("hcm/dependent/queries/historicalDependentJudicialPensionPixDelete", {
9414
+ dependentId: dependentId,
9415
+ dateWhen: dateWhen,
9416
+ });
9417
+ }
9418
+ else {
9419
+ return this.http.post("actions/historicalEmployeePixDelete", {
9420
+ employeeId: id,
9421
+ dateWhen: dateWhen
9422
+ });
9423
+ }
9424
+ }
9425
+ };
9426
+ HistoricalPixAccountListService.ctorParameters = () => [
9427
+ { type: HttpClientService },
9428
+ { type: HttpClient }
9429
+ ];
9430
+ HistoricalPixAccountListService = __decorate([
9431
+ Injectable()
9432
+ ], HistoricalPixAccountListService);
9433
+
9434
+ const moment$e = moment_;
9435
+ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent {
9436
+ constructor(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
9437
+ this.confirmationService = confirmationService;
9438
+ this.translateService = translateService;
9439
+ this.activatedRoute = activatedRoute;
9440
+ this.cd = cd;
9441
+ this.router = router;
9442
+ this.messageService = messageService;
9443
+ this.historicalPixAccountListService = historicalPixAccountListService;
9444
+ this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
9445
+ this.keyPayload = "historicalEmployeePix";
9446
+ this.withSidebar = true;
9447
+ this.enableView = new EventEmitter();
9448
+ this.ngUnsubscribe = new Subject();
9449
+ this.loading = true;
9450
+ this.columns = [
9451
+ {
9452
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
9453
+ field: "dateChange",
9454
+ },
9455
+ {
9456
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
9457
+ field: "pixKeyType.value",
9458
+ },
9459
+ {
9460
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
9461
+ field: "pixKey",
9462
+ },
9463
+ {
9464
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
9465
+ field: "percentage",
9466
+ },
9467
+ {
9468
+ label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
9469
+ field: "numberOfPixAccount",
9470
+ },
9471
+ ];
9472
+ }
9473
+ ngOnInit() {
9474
+ this.initParameters = { employeeId: this.employeeId, dependentId: this.dependentId };
9475
+ }
9476
+ ngOnDestroy() {
9477
+ this.ngUnsubscribe.next();
9478
+ this.ngUnsubscribe.complete();
9479
+ }
9480
+ ngAfterViewInit() {
9481
+ this.cd.detectChanges();
9482
+ }
9483
+ onLazyLoad(payload) {
9484
+ payload.forEach((value) => {
9485
+ value.dateChange = moment$e(value.dateChange).format(this.dateFormat);
9486
+ value.pixKey = this.formatPixKeyByType(value.pixKeyType, value.pixKey);
9487
+ value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
9488
+ });
9489
+ this.onGridLoad(payload);
9490
+ this.loading = false;
9491
+ }
9492
+ formatPixKeyByType(pixKeyType, pixKey) {
9493
+ const keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
9494
+ if (keyType === "TELEPHONE") {
9495
+ return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
9496
+ }
9497
+ else if (keyType === "CPF") {
9498
+ return FormatUtilsService.getFormattedCpf(pixKey);
9499
+ }
9500
+ else if (keyType === "CNPJ") {
9501
+ return FormatUtilsService.getFormattedCnpj(pixKey);
9502
+ }
9503
+ else {
9504
+ return pixKey;
9505
+ }
9506
+ }
9507
+ getMenuActions(rowData) {
9508
+ return [
9509
+ {
9510
+ label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9511
+ command: () => {
9512
+ const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
9513
+ if (this.withSidebar)
9514
+ this.router.navigate([`historical-pix-account/${dateChange}`], {
9515
+ relativeTo: this.activatedRoute,
9516
+ });
9517
+ else
9518
+ this.enableView.emit(dateChange);
9519
+ },
9520
+ },
9521
+ {
9522
+ label: this.translateService.instant("hcm.payroll.delete"),
9523
+ command: () => {
9524
+ if (this.isAllowToDeleteHistorical && rowData) {
9525
+ this.delete(rowData.id, rowData.dateChange);
9526
+ }
9527
+ else {
9528
+ this.messageService.add({
9529
+ severity: "error",
9530
+ summary: this.translateService.instant("hcm.payroll.error"),
9531
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9532
+ });
9533
+ }
9534
+ },
9535
+ },
9536
+ ];
9537
+ }
9538
+ delete(id, dateChange) {
9539
+ if (id === this.lastRecord.id) {
9540
+ const dateChangeToDto = moment$e(dateChange, this.dateFormat).format("YYYY-MM-DD");
9541
+ this.confirmationService.confirm({
9542
+ message: `${this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_question_confirm_delete")}?`,
9543
+ accept: () => {
9544
+ this.loading = true;
9545
+ const service = this.withSidebar ? ServiceType.PAYROLL : ServiceType.DEPENDENT;
9546
+ this.historicalPixAccountListService
9547
+ .remove(this.employeeId, dateChangeToDto, service, this.dependentId)
9548
+ .pipe(takeUntil(this.ngUnsubscribe))
9549
+ .subscribe(() => {
9550
+ this.messageService.add({
9551
+ severity: "success",
9552
+ summary: this.translateService.instant("hcm.payroll.success"),
9553
+ detail: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_remove"),
9554
+ });
9555
+ this.parameters = (this.parameters && Object.assign({}, this.parameters)) || {};
9556
+ }, () => {
9557
+ this.messageService.add({
9558
+ severity: "error",
9559
+ summary: this.translateService.instant("hcm.payroll.error"),
9560
+ detail: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_error_remove"),
9561
+ });
9562
+ this.loading = false;
9563
+ });
9564
+ },
9565
+ });
9566
+ }
9567
+ else {
9568
+ this.messageService.add({
9569
+ severity: "error",
9570
+ summary: this.translateService.instant("hcm.payroll.error"),
9571
+ detail: this.translateService.instant("hcm.payroll.not_allowed_delete_last"),
9572
+ });
9573
+ }
9574
+ }
9575
+ add() {
9576
+ if (this.isAllowToAddHistorical) {
9577
+ this.router.navigate(["historical-pix-account-new"], {
9578
+ relativeTo: this.activatedRoute,
9579
+ });
9580
+ }
9581
+ else {
9582
+ this.messageService.add({
9583
+ severity: "error",
9584
+ summary: this.translateService.instant("hcm.payroll.error"),
9585
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9586
+ });
9587
+ }
9588
+ }
9589
+ onGridLoad(payload) {
9590
+ if (payload && payload.length) {
9591
+ this.lastRecord = payload[0];
9592
+ }
9593
+ }
9594
+ get isAllowToAddHistorical() {
9595
+ return (this.permission["incluir"]);
9596
+ }
9597
+ get isAllowToDeleteHistorical() {
9598
+ return (this.permission["excluir"]);
9599
+ }
9600
+ get scopedActions() {
9601
+ return this.getMenuActions.bind(this);
9602
+ }
9603
+ set reloadList(condition) {
9604
+ if (condition) {
9605
+ this.loading = true;
9606
+ this.parameters = (this.parameters && Object.assign({}, this.parameters)) || {};
9607
+ }
9608
+ }
9609
+ };
9610
+ HistoricalPixAccountListComponent.ctorParameters = () => [
9611
+ { type: ConfirmationService },
9612
+ { type: TranslateService },
9613
+ { type: ActivatedRoute },
9614
+ { type: ChangeDetectorRef },
9615
+ { type: Router },
9616
+ { type: MessageService },
9617
+ { type: HistoricalPixAccountListService }
9618
+ ];
9619
+ __decorate([
9620
+ ViewChild(CustomFieldsComponent$1, { static: false })
9621
+ ], HistoricalPixAccountListComponent.prototype, "customFields", void 0);
9622
+ __decorate([
9623
+ Input()
9624
+ ], HistoricalPixAccountListComponent.prototype, "permission", void 0);
9625
+ __decorate([
9626
+ Input()
9627
+ ], HistoricalPixAccountListComponent.prototype, "employeeId", void 0);
9628
+ __decorate([
9629
+ Input()
9630
+ ], HistoricalPixAccountListComponent.prototype, "dependentId", void 0);
9631
+ __decorate([
9632
+ Input()
9633
+ ], HistoricalPixAccountListComponent.prototype, "dateFormat", void 0);
9634
+ __decorate([
9635
+ Input()
9636
+ ], HistoricalPixAccountListComponent.prototype, "endPoint", void 0);
9637
+ __decorate([
9638
+ Input()
9639
+ ], HistoricalPixAccountListComponent.prototype, "keyPayload", void 0);
9640
+ __decorate([
9641
+ Input()
9642
+ ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
9643
+ __decorate([
9644
+ Output()
9645
+ ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
9646
+ __decorate([
9647
+ Input()
9648
+ ], HistoricalPixAccountListComponent.prototype, "reloadList", null);
9649
+ HistoricalPixAccountListComponent = __decorate([
9650
+ Component({
9651
+ // tslint:disable-next-line:component-selector
9652
+ selector: "c-historical-pix-account-list",
9653
+ template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <c-data-list-rest\n id=\"ta-historical-pix-account-list\"\n [columns]=\"columns\"\n actionLabel=\"{{ 'hcm.payroll.movimentation_generic_action' | translate }}\"\n emptyMessage=\"{{ 'hcm.payroll.admission_empty_message' | translate }}\"\n [endpoint]=\"endPoint\"\n singularMessageRecords=\"{{\n 'hcm.payroll.admission_register' | translate\n }}\"\n [actions]=\"scopedActions\"\n pluralMessageRecords=\"{{\n 'hcm.payroll.admission_registers' | translate\n }}\"\n [keyPayload]=\"keyPayload\"\n [lazy]=\"true\"\n (lazyLoad)=\"onLazyLoad($event)\"\n [(loading)]=\"loading\"\n [initParameters]=\"initParameters\"\n [parameters]=\"parameters\"\n [isSortable]=\"false\"\n ></c-data-list-rest>\n </div>\n</div>\n\n",
9654
+ styles: [""]
9655
+ })
9656
+ ], HistoricalPixAccountListComponent);
9657
+
9658
+ let HistoricalPixAccountListModule = class HistoricalPixAccountListModule {
9659
+ };
9660
+ HistoricalPixAccountListModule = __decorate([
9661
+ NgModule({
9662
+ imports: [
9663
+ CommonModule,
9664
+ FormsModule,
9665
+ HttpClientModule,
9666
+ AutoCompleteModule,
9667
+ SharedModule,
9668
+ ReactiveFormsModule,
9669
+ TableModule,
9670
+ ButtonModule,
9671
+ TooltipModule,
9672
+ LoadingStateModule,
9673
+ DataListRestModule,
9674
+ ConfirmDialogModule,
9675
+ ],
9676
+ declarations: [HistoricalPixAccountListComponent],
9677
+ providers: [HistoricalPixAccountListService],
9678
+ exports: [HistoricalPixAccountListComponent],
9679
+ })
9680
+ ], HistoricalPixAccountListModule);
9681
+
9405
9682
  /*
9406
9683
  * Public API Surface of core
9407
9684
  */
@@ -9410,5 +9687,5 @@ HistoricalPixAccountModule = __decorate([
9410
9687
  * Generated bundle index. Do not edit.
9411
9688
  */
9412
9689
 
9413
- export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricalPixAccountFormComponent as ɵr };
9690
+ export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountListComponent, HistoricalPixAccountListModule, HistoricalPixAccountListService, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricalPixAccountFormComponent as ɵr };
9414
9691
  //# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map