@senior-gestao-pessoas/payroll-core 9.4.0-a2b681f9-a571-4777-98be-54dae032ce6f → 9.4.0-ebf1efc2-fe91-41f8-a0c0-009bafadc393

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.
@@ -9317,7 +9317,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9317
9317
  },
9318
9318
  },
9319
9319
  {
9320
- visible: _this.isEditMode,
9320
+ visible: !!(!_this.isEditMode && _this.withSideBar),
9321
9321
  label: _this.translateService.instant("hcm.payroll.edit"),
9322
9322
  command: function () {
9323
9323
  if (_this.isAllowToEditHistorical) {
@@ -10418,6 +10418,25 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10418
10418
  }
10419
10419
  },
10420
10420
  },
10421
+ {
10422
+ label: this.translateService.instant("hcm.payroll.edit"),
10423
+ command: function () {
10424
+ if (_this.isAllowToEditHistorical) {
10425
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10426
+ if (_this.withSidebar) {
10427
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10428
+ relativeTo: _this.activatedRoute,
10429
+ });
10430
+ }
10431
+ else {
10432
+ _this.enableView.emit(dateChange);
10433
+ }
10434
+ }
10435
+ else {
10436
+ _this.isNotAllowMessage();
10437
+ }
10438
+ },
10439
+ },
10421
10440
  {
10422
10441
  label: this.translateService.instant("hcm.payroll.delete"),
10423
10442
  command: function () {
@@ -10502,6 +10521,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10502
10521
  enumerable: true,
10503
10522
  configurable: true
10504
10523
  });
10524
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
10525
+ get: function () {
10526
+ return (this.permission["editar"]);
10527
+ },
10528
+ enumerable: true,
10529
+ configurable: true
10530
+ });
10505
10531
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10506
10532
  get: function () {
10507
10533
  return (this.permission["excluir"]);