@senior-gestao-pessoas/payroll-core 9.4.0-09265079-8330-4f2f-92dd-7a1c127ae0ac → 9.4.0-0cf4358c-33d1-410a-9833-da0e4b763444

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.
@@ -10342,18 +10342,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10342
10342
  label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
10343
10343
  field: "dateChange",
10344
10344
  },
10345
- {
10346
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
10347
- field: "pixKeyType.value",
10348
- },
10349
- {
10350
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
10351
- field: "pixKey",
10352
- },
10353
- {
10354
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
10355
- field: "percentage",
10356
- },
10357
10345
  {
10358
10346
  label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
10359
10347
  field: "numberOfPixAccount",
@@ -10374,27 +10362,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10374
10362
  var _this = this;
10375
10363
  payload.forEach(function (value) {
10376
10364
  value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
10377
- value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
10378
- value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
10379
10365
  });
10380
10366
  this.onGridLoad(payload);
10381
10367
  this.loading = false;
10382
10368
  };
10383
- HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
10384
- var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
10385
- if (keyType === "TELEPHONE") {
10386
- return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
10387
- }
10388
- else if (keyType === "CPF") {
10389
- return FormatUtilsService.getFormattedCpf(pixKey);
10390
- }
10391
- else if (keyType === "CNPJ") {
10392
- return FormatUtilsService.getFormattedCnpj(pixKey);
10393
- }
10394
- else {
10395
- return pixKey;
10396
- }
10397
- };
10398
10369
  HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
10399
10370
  var _this = this;
10400
10371
  return [
@@ -10418,6 +10389,25 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10418
10389
  }
10419
10390
  },
10420
10391
  },
10392
+ {
10393
+ label: this.translateService.instant("hcm.payroll.edit"),
10394
+ command: function () {
10395
+ if (_this.isAllowToEditHistorical) {
10396
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10397
+ if (_this.withSidebar) {
10398
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10399
+ relativeTo: _this.activatedRoute,
10400
+ });
10401
+ }
10402
+ else {
10403
+ _this.enableView.emit(dateChange);
10404
+ }
10405
+ }
10406
+ else {
10407
+ _this.isNotAllowMessage();
10408
+ }
10409
+ },
10410
+ },
10421
10411
  {
10422
10412
  label: this.translateService.instant("hcm.payroll.delete"),
10423
10413
  command: function () {
@@ -10502,6 +10492,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10502
10492
  enumerable: true,
10503
10493
  configurable: true
10504
10494
  });
10495
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
10496
+ get: function () {
10497
+ return (this.permission["editar"]);
10498
+ },
10499
+ enumerable: true,
10500
+ configurable: true
10501
+ });
10505
10502
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10506
10503
  get: function () {
10507
10504
  return (this.permission["excluir"]);