@senior-gestao-pessoas/payroll-core 9.3.0-6fe87530-a4db-47c2-9330-935d415a90a5 → 9.3.0-8393e941-0066-4d0d-be1f-6186195edc89

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.
@@ -9473,11 +9473,7 @@
9473
9473
  _this.visible = true;
9474
9474
  }
9475
9475
  else {
9476
- _this.messageService.add({
9477
- severity: "error",
9478
- summary: _this.translateService.instant("hcm.payroll.error"),
9479
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9480
- });
9476
+ _this.isNotAllowMessage();
9481
9477
  }
9482
9478
  },
9483
9479
  },
@@ -9491,11 +9487,7 @@
9491
9487
  _this.visible = true;
9492
9488
  }
9493
9489
  else {
9494
- _this.messageService.add({
9495
- severity: "error",
9496
- summary: _this.translateService.instant("hcm.payroll.error"),
9497
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9498
- });
9490
+ _this.isNotAllowMessage();
9499
9491
  }
9500
9492
  },
9501
9493
  },
@@ -9508,11 +9500,7 @@
9508
9500
  _this.deleteAnnuityItem(key);
9509
9501
  }
9510
9502
  else {
9511
- _this.messageService.add({
9512
- severity: "error",
9513
- summary: _this.translateService.instant("hcm.payroll.error"),
9514
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9515
- });
9503
+ _this.isNotAllowMessage();
9516
9504
  }
9517
9505
  },
9518
9506
  },
@@ -9579,6 +9567,13 @@
9579
9567
  this.pixAccountItemInput = {};
9580
9568
  this.visible = true;
9581
9569
  };
9570
+ HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
9571
+ this.messageService.add({
9572
+ severity: "error",
9573
+ summary: this.translateService.instant("hcm.payroll.error"),
9574
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9575
+ });
9576
+ };
9582
9577
  HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
9583
9578
  var newlist = __spread(this.getHistoricalPixAccountList());
9584
9579
  newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
@@ -10473,6 +10468,7 @@
10473
10468
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10474
10469
  this.keyPayload = "historicalEmployeePix";
10475
10470
  this.withSidebar = true;
10471
+ this.isOnlyView = new core.EventEmitter();
10476
10472
  this.enableView = new core.EventEmitter();
10477
10473
  this.ngUnsubscribe = new rxjs.Subject();
10478
10474
  this.loading = true;
@@ -10540,21 +10536,21 @@
10540
10536
  {
10541
10537
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10542
10538
  command: function () {
10539
+ console.log('COMMAND CALLED');
10543
10540
  if (_this.isAllowToViewHistorical) {
10544
10541
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10545
- if (_this.withSidebar)
10542
+ if (_this.withSidebar) {
10546
10543
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10547
10544
  relativeTo: _this.activatedRoute,
10548
10545
  });
10549
- else
10546
+ }
10547
+ else {
10548
+ _this.isOnlyView.emit(true);
10550
10549
  _this.enableView.emit(dateChange);
10550
+ }
10551
10551
  }
10552
10552
  else {
10553
- _this.messageService.add({
10554
- severity: "error",
10555
- summary: _this.translateService.instant("hcm.payroll.error"),
10556
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10557
- });
10553
+ _this.isNotAllowMessage();
10558
10554
  }
10559
10555
  },
10560
10556
  },
@@ -10565,11 +10561,7 @@
10565
10561
  _this.delete(rowData.id, rowData.dateChange);
10566
10562
  }
10567
10563
  else {
10568
- _this.messageService.add({
10569
- severity: "error",
10570
- summary: _this.translateService.instant("hcm.payroll.error"),
10571
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10572
- });
10564
+ _this.isNotAllowMessage();
10573
10565
  }
10574
10566
  },
10575
10567
  },
@@ -10627,6 +10619,13 @@
10627
10619
  });
10628
10620
  }
10629
10621
  };
10622
+ HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
10623
+ this.messageService.add({
10624
+ severity: "error",
10625
+ summary: this.translateService.instant("hcm.payroll.error"),
10626
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10627
+ });
10628
+ };
10630
10629
  HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
10631
10630
  if (payload && payload.length) {
10632
10631
  this.lastRecord = payload[0];
@@ -10703,6 +10702,9 @@
10703
10702
  __decorate([
10704
10703
  core.Input()
10705
10704
  ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10705
+ __decorate([
10706
+ core.Output()
10707
+ ], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
10706
10708
  __decorate([
10707
10709
  core.Output()
10708
10710
  ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);