@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.
@@ -9307,11 +9307,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9307
9307
  _this.visible = true;
9308
9308
  }
9309
9309
  else {
9310
- _this.messageService.add({
9311
- severity: "error",
9312
- summary: _this.translateService.instant("hcm.payroll.error"),
9313
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9314
- });
9310
+ _this.isNotAllowMessage();
9315
9311
  }
9316
9312
  },
9317
9313
  },
@@ -9325,11 +9321,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9325
9321
  _this.visible = true;
9326
9322
  }
9327
9323
  else {
9328
- _this.messageService.add({
9329
- severity: "error",
9330
- summary: _this.translateService.instant("hcm.payroll.error"),
9331
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9332
- });
9324
+ _this.isNotAllowMessage();
9333
9325
  }
9334
9326
  },
9335
9327
  },
@@ -9342,11 +9334,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9342
9334
  _this.deleteAnnuityItem(key);
9343
9335
  }
9344
9336
  else {
9345
- _this.messageService.add({
9346
- severity: "error",
9347
- summary: _this.translateService.instant("hcm.payroll.error"),
9348
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9349
- });
9337
+ _this.isNotAllowMessage();
9350
9338
  }
9351
9339
  },
9352
9340
  },
@@ -9413,6 +9401,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9413
9401
  this.pixAccountItemInput = {};
9414
9402
  this.visible = true;
9415
9403
  };
9404
+ HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
9405
+ this.messageService.add({
9406
+ severity: "error",
9407
+ summary: this.translateService.instant("hcm.payroll.error"),
9408
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9409
+ });
9410
+ };
9416
9411
  HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
9417
9412
  var newlist = __spread(this.getHistoricalPixAccountList());
9418
9413
  newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
@@ -10307,6 +10302,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10307
10302
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10308
10303
  this.keyPayload = "historicalEmployeePix";
10309
10304
  this.withSidebar = true;
10305
+ this.isOnlyView = new EventEmitter();
10310
10306
  this.enableView = new EventEmitter();
10311
10307
  this.ngUnsubscribe = new Subject();
10312
10308
  this.loading = true;
@@ -10374,21 +10370,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10374
10370
  {
10375
10371
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10376
10372
  command: function () {
10373
+ console.log('COMMAND CALLED');
10377
10374
  if (_this.isAllowToViewHistorical) {
10378
10375
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10379
- if (_this.withSidebar)
10376
+ if (_this.withSidebar) {
10380
10377
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10381
10378
  relativeTo: _this.activatedRoute,
10382
10379
  });
10383
- else
10380
+ }
10381
+ else {
10382
+ _this.isOnlyView.emit(true);
10384
10383
  _this.enableView.emit(dateChange);
10384
+ }
10385
10385
  }
10386
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
- });
10387
+ _this.isNotAllowMessage();
10392
10388
  }
10393
10389
  },
10394
10390
  },
@@ -10399,11 +10395,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10399
10395
  _this.delete(rowData.id, rowData.dateChange);
10400
10396
  }
10401
10397
  else {
10402
- _this.messageService.add({
10403
- severity: "error",
10404
- summary: _this.translateService.instant("hcm.payroll.error"),
10405
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10406
- });
10398
+ _this.isNotAllowMessage();
10407
10399
  }
10408
10400
  },
10409
10401
  },
@@ -10461,6 +10453,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10461
10453
  });
10462
10454
  }
10463
10455
  };
10456
+ HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
10457
+ this.messageService.add({
10458
+ severity: "error",
10459
+ summary: this.translateService.instant("hcm.payroll.error"),
10460
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10461
+ });
10462
+ };
10464
10463
  HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
10465
10464
  if (payload && payload.length) {
10466
10465
  this.lastRecord = payload[0];
@@ -10537,6 +10536,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10537
10536
  __decorate([
10538
10537
  Input()
10539
10538
  ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10539
+ __decorate([
10540
+ Output()
10541
+ ], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
10540
10542
  __decorate([
10541
10543
  Output()
10542
10544
  ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);