@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
@@ -9857,7 +9857,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9857
9857
  else {
9858
9858
  if (this.pixAccountFormGroup.get("pixKeyType").value) {
9859
9859
  this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
9860
- this.formatPixKeyTelehponeNumber();
9860
+ this.formatPixKeyTelephoneNumber();
9861
9861
  }
9862
9862
  }
9863
9863
  }
@@ -9868,7 +9868,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9868
9868
  enumerable: true,
9869
9869
  configurable: true
9870
9870
  });
9871
- HistoricalPixAccountFormComponent.prototype.formatPixKeyTelehponeNumber = function () {
9871
+ HistoricalPixAccountFormComponent.prototype.formatPixKeyTelephoneNumber = function () {
9872
9872
  if (this.pixKeyType === "TELEPHONE") {
9873
9873
  this.pixAccountFormGroup.get("pixKey").setValue(FormatUtilsService.getFormattedTelephoneNumber(this.pixAccountFormGroup.get("pixKey").value));
9874
9874
  }
@@ -9883,7 +9883,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9883
9883
  if (this.pixAccountFormGroup.get("pixKeyType").value) {
9884
9884
  this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
9885
9885
  this.setPixKeyValidators(isEditMode);
9886
- this.formatPixKeyTelehponeNumber();
9886
+ this.formatPixKeyTelephoneNumber();
9887
9887
  }
9888
9888
  configEnabledFields(this.pixAccountFormGroup, isEditMode, [
9889
9889
  "pixKeyType",
@@ -10141,7 +10141,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
10141
10141
  HistoricalPixAccountFormComponent = __decorate([
10142
10142
  Component({
10143
10143
  selector: "pix-account",
10144
- 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",
10144
+ 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",
10145
10145
  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}"]
10146
10146
  })
10147
10147
  ], HistoricalPixAccountFormComponent);
@@ -10202,6 +10202,308 @@ var HistoricalPixAccountModule = /** @class */ (function () {
10202
10202
  return HistoricalPixAccountModule;
10203
10203
  }());
10204
10204
 
10205
+ var HistoricalPixAccountListService = /** @class */ (function () {
10206
+ function HistoricalPixAccountListService(http, httpClient) {
10207
+ this.http = http;
10208
+ this.httpClient = httpClient;
10209
+ }
10210
+ HistoricalPixAccountListService.prototype.remove = function (id, dateWhen, service, dependentId) {
10211
+ if (service === void 0) { service = ServiceType.PAYROLL; }
10212
+ if (service === ServiceType.DEPENDENT) {
10213
+ return this.httpClient
10214
+ .post("hcm/dependent/queries/historicalDependentJudicialPensionPixDelete", {
10215
+ dependentId: dependentId,
10216
+ dateWhen: dateWhen,
10217
+ });
10218
+ }
10219
+ else {
10220
+ return this.http.post("actions/historicalEmployeePixDelete", {
10221
+ employeeId: id,
10222
+ dateWhen: dateWhen
10223
+ });
10224
+ }
10225
+ };
10226
+ HistoricalPixAccountListService.ctorParameters = function () { return [
10227
+ { type: HttpClientService },
10228
+ { type: HttpClient }
10229
+ ]; };
10230
+ HistoricalPixAccountListService = __decorate([
10231
+ Injectable()
10232
+ ], HistoricalPixAccountListService);
10233
+ return HistoricalPixAccountListService;
10234
+ }());
10235
+
10236
+ var moment$e = moment_;
10237
+ var HistoricalPixAccountListComponent = /** @class */ (function () {
10238
+ function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
10239
+ this.confirmationService = confirmationService;
10240
+ this.translateService = translateService;
10241
+ this.activatedRoute = activatedRoute;
10242
+ this.cd = cd;
10243
+ this.router = router;
10244
+ this.messageService = messageService;
10245
+ this.historicalPixAccountListService = historicalPixAccountListService;
10246
+ this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10247
+ this.keyPayload = "historicalEmployeePix";
10248
+ this.withSidebar = true;
10249
+ this.enableView = new EventEmitter();
10250
+ this.ngUnsubscribe = new Subject();
10251
+ this.loading = true;
10252
+ this.columns = [
10253
+ {
10254
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
10255
+ field: "dateChange",
10256
+ },
10257
+ {
10258
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
10259
+ field: "pixKeyType.value",
10260
+ },
10261
+ {
10262
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
10263
+ field: "pixKey",
10264
+ },
10265
+ {
10266
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
10267
+ field: "percentage",
10268
+ },
10269
+ {
10270
+ label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
10271
+ field: "numberOfPixAccount",
10272
+ },
10273
+ ];
10274
+ }
10275
+ HistoricalPixAccountListComponent.prototype.ngOnInit = function () {
10276
+ this.initParameters = { employeeId: this.employeeId, dependentId: this.dependentId };
10277
+ };
10278
+ HistoricalPixAccountListComponent.prototype.ngOnDestroy = function () {
10279
+ this.ngUnsubscribe.next();
10280
+ this.ngUnsubscribe.complete();
10281
+ };
10282
+ HistoricalPixAccountListComponent.prototype.ngAfterViewInit = function () {
10283
+ this.cd.detectChanges();
10284
+ };
10285
+ HistoricalPixAccountListComponent.prototype.onLazyLoad = function (payload) {
10286
+ var _this = this;
10287
+ payload.forEach(function (value) {
10288
+ value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
10289
+ value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
10290
+ value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
10291
+ });
10292
+ this.onGridLoad(payload);
10293
+ this.loading = false;
10294
+ };
10295
+ HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
10296
+ var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
10297
+ if (keyType === "TELEPHONE") {
10298
+ return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
10299
+ }
10300
+ else if (keyType === "CPF") {
10301
+ return FormatUtilsService.getFormattedCpf(pixKey);
10302
+ }
10303
+ else if (keyType === "CNPJ") {
10304
+ return FormatUtilsService.getFormattedCnpj(pixKey);
10305
+ }
10306
+ else {
10307
+ return pixKey;
10308
+ }
10309
+ };
10310
+ HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
10311
+ var _this = this;
10312
+ return [
10313
+ {
10314
+ label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10315
+ command: function () {
10316
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10317
+ if (_this.withSidebar)
10318
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10319
+ relativeTo: _this.activatedRoute,
10320
+ });
10321
+ else
10322
+ _this.enableView.emit(dateChange);
10323
+ },
10324
+ },
10325
+ {
10326
+ label: this.translateService.instant("hcm.payroll.delete"),
10327
+ command: function () {
10328
+ if (_this.isAllowToDeleteHistorical && rowData) {
10329
+ _this.delete(rowData.id, rowData.dateChange);
10330
+ }
10331
+ else {
10332
+ _this.messageService.add({
10333
+ severity: "error",
10334
+ summary: _this.translateService.instant("hcm.payroll.error"),
10335
+ detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10336
+ });
10337
+ }
10338
+ },
10339
+ },
10340
+ ];
10341
+ };
10342
+ HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
10343
+ var _this = this;
10344
+ if (id === this.lastRecord.id) {
10345
+ var dateChangeToDto_1 = moment$e(dateChange, this.dateFormat).format("YYYY-MM-DD");
10346
+ this.confirmationService.confirm({
10347
+ message: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_question_confirm_delete") + "?",
10348
+ accept: function () {
10349
+ _this.loading = true;
10350
+ var service = _this.withSidebar ? ServiceType.PAYROLL : ServiceType.DEPENDENT;
10351
+ _this.historicalPixAccountListService
10352
+ .remove(_this.employeeId, dateChangeToDto_1, service, _this.dependentId)
10353
+ .pipe(takeUntil(_this.ngUnsubscribe))
10354
+ .subscribe(function () {
10355
+ _this.messageService.add({
10356
+ severity: "success",
10357
+ summary: _this.translateService.instant("hcm.payroll.success"),
10358
+ detail: _this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_remove"),
10359
+ });
10360
+ _this.parameters = (_this.parameters && __assign({}, _this.parameters)) || {};
10361
+ }, function () {
10362
+ _this.messageService.add({
10363
+ severity: "error",
10364
+ summary: _this.translateService.instant("hcm.payroll.error"),
10365
+ detail: _this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_error_remove"),
10366
+ });
10367
+ _this.loading = false;
10368
+ });
10369
+ },
10370
+ });
10371
+ }
10372
+ else {
10373
+ this.messageService.add({
10374
+ severity: "error",
10375
+ summary: this.translateService.instant("hcm.payroll.error"),
10376
+ detail: this.translateService.instant("hcm.payroll.not_allowed_delete_last"),
10377
+ });
10378
+ }
10379
+ };
10380
+ HistoricalPixAccountListComponent.prototype.add = function () {
10381
+ if (this.isAllowToAddHistorical) {
10382
+ this.router.navigate(["historical-pix-account-new"], {
10383
+ relativeTo: this.activatedRoute,
10384
+ });
10385
+ }
10386
+ else {
10387
+ this.messageService.add({
10388
+ severity: "error",
10389
+ summary: this.translateService.instant("hcm.payroll.error"),
10390
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10391
+ });
10392
+ }
10393
+ };
10394
+ HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
10395
+ if (payload && payload.length) {
10396
+ this.lastRecord = payload[0];
10397
+ }
10398
+ };
10399
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
10400
+ get: function () {
10401
+ return (this.permission["incluir"]);
10402
+ },
10403
+ enumerable: true,
10404
+ configurable: true
10405
+ });
10406
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10407
+ get: function () {
10408
+ return (this.permission["excluir"]);
10409
+ },
10410
+ enumerable: true,
10411
+ configurable: true
10412
+ });
10413
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
10414
+ get: function () {
10415
+ return this.getMenuActions.bind(this);
10416
+ },
10417
+ enumerable: true,
10418
+ configurable: true
10419
+ });
10420
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "reloadList", {
10421
+ set: function (condition) {
10422
+ if (condition) {
10423
+ this.loading = true;
10424
+ this.parameters = (this.parameters && __assign({}, this.parameters)) || {};
10425
+ }
10426
+ },
10427
+ enumerable: true,
10428
+ configurable: true
10429
+ });
10430
+ HistoricalPixAccountListComponent.ctorParameters = function () { return [
10431
+ { type: ConfirmationService },
10432
+ { type: TranslateService },
10433
+ { type: ActivatedRoute },
10434
+ { type: ChangeDetectorRef },
10435
+ { type: Router },
10436
+ { type: MessageService },
10437
+ { type: HistoricalPixAccountListService }
10438
+ ]; };
10439
+ __decorate([
10440
+ ViewChild(CustomFieldsComponent$1, { static: false })
10441
+ ], HistoricalPixAccountListComponent.prototype, "customFields", void 0);
10442
+ __decorate([
10443
+ Input()
10444
+ ], HistoricalPixAccountListComponent.prototype, "permission", void 0);
10445
+ __decorate([
10446
+ Input()
10447
+ ], HistoricalPixAccountListComponent.prototype, "employeeId", void 0);
10448
+ __decorate([
10449
+ Input()
10450
+ ], HistoricalPixAccountListComponent.prototype, "dependentId", void 0);
10451
+ __decorate([
10452
+ Input()
10453
+ ], HistoricalPixAccountListComponent.prototype, "dateFormat", void 0);
10454
+ __decorate([
10455
+ Input()
10456
+ ], HistoricalPixAccountListComponent.prototype, "endPoint", void 0);
10457
+ __decorate([
10458
+ Input()
10459
+ ], HistoricalPixAccountListComponent.prototype, "keyPayload", void 0);
10460
+ __decorate([
10461
+ Input()
10462
+ ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10463
+ __decorate([
10464
+ Output()
10465
+ ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
10466
+ __decorate([
10467
+ Input()
10468
+ ], HistoricalPixAccountListComponent.prototype, "reloadList", null);
10469
+ HistoricalPixAccountListComponent = __decorate([
10470
+ Component({
10471
+ // tslint:disable-next-line:component-selector
10472
+ selector: "c-historical-pix-account-list",
10473
+ 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",
10474
+ styles: [""]
10475
+ })
10476
+ ], HistoricalPixAccountListComponent);
10477
+ return HistoricalPixAccountListComponent;
10478
+ }());
10479
+
10480
+ var HistoricalPixAccountListModule = /** @class */ (function () {
10481
+ function HistoricalPixAccountListModule() {
10482
+ }
10483
+ HistoricalPixAccountListModule = __decorate([
10484
+ NgModule({
10485
+ imports: [
10486
+ CommonModule,
10487
+ FormsModule,
10488
+ HttpClientModule,
10489
+ AutoCompleteModule,
10490
+ SharedModule,
10491
+ ReactiveFormsModule,
10492
+ TableModule,
10493
+ ButtonModule,
10494
+ TooltipModule,
10495
+ LoadingStateModule,
10496
+ DataListRestModule,
10497
+ ConfirmDialogModule,
10498
+ ],
10499
+ declarations: [HistoricalPixAccountListComponent],
10500
+ providers: [HistoricalPixAccountListService],
10501
+ exports: [HistoricalPixAccountListComponent],
10502
+ })
10503
+ ], HistoricalPixAccountListModule);
10504
+ return HistoricalPixAccountListModule;
10505
+ }());
10506
+
10205
10507
  /*
10206
10508
  * Public API Surface of core
10207
10509
  */
@@ -10210,5 +10512,5 @@ var HistoricalPixAccountModule = /** @class */ (function () {
10210
10512
  * Generated bundle index. Do not edit.
10211
10513
  */
10212
10514
 
10213
- 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 };
10515
+ 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 };
10214
10516
  //# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map