@senior-gestao-pessoas/payroll-core 9.3.0-8393e941-0066-4d0d-be1f-6186195edc89 → 9.3.0-89a3c031-8c8e-4d24-86ca-4d394889e31a

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.
@@ -9434,6 +9434,10 @@
9434
9434
  this.isViewMode = false;
9435
9435
  this.withSideBar = true;
9436
9436
  this.defaultCpfNumber = null;
9437
+ this.listDataReciever = [];
9438
+ this.isOnlyView = new core.EventEmitter();
9439
+ this.isOnlyEdit = new core.EventEmitter();
9440
+ this.isOnlyDelete = new core.EventEmitter();
9437
9441
  this.visibleChange = new core.EventEmitter();
9438
9442
  this.ngUnsubscribe = new rxjs.Subject();
9439
9443
  this.orderBy = {
@@ -9473,7 +9477,7 @@
9473
9477
  _this.visible = true;
9474
9478
  }
9475
9479
  else {
9476
- _this.isNotAllowMessage();
9480
+ _this.isOnlyView.emit(true);
9477
9481
  }
9478
9482
  },
9479
9483
  },
@@ -9487,7 +9491,13 @@
9487
9491
  _this.visible = true;
9488
9492
  }
9489
9493
  else {
9490
- _this.isNotAllowMessage();
9494
+ _this.isOnlyEdit.emit(true);
9495
+ console.log(_this.listDataReciever);
9496
+ if (!_this.listDataReciever) {
9497
+ rowData["index"] = key;
9498
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9499
+ _this.visible = true;
9500
+ }
9491
9501
  }
9492
9502
  },
9493
9503
  },
@@ -9500,7 +9510,11 @@
9500
9510
  _this.deleteAnnuityItem(key);
9501
9511
  }
9502
9512
  else {
9503
- _this.isNotAllowMessage();
9513
+ _this.isOnlyDelete.emit(true);
9514
+ if (!_this.listDataReciever) {
9515
+ _this.loading = true;
9516
+ _this.deleteAnnuityItem(key);
9517
+ }
9504
9518
  }
9505
9519
  },
9506
9520
  },
@@ -9804,6 +9818,18 @@
9804
9818
  __decorate([
9805
9819
  core.Input()
9806
9820
  ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9821
+ __decorate([
9822
+ core.Input()
9823
+ ], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
9824
+ __decorate([
9825
+ core.Output()
9826
+ ], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
9827
+ __decorate([
9828
+ core.Output()
9829
+ ], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
9830
+ __decorate([
9831
+ core.Output()
9832
+ ], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
9807
9833
  __decorate([
9808
9834
  core.Input()
9809
9835
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10536,16 +10562,15 @@
10536
10562
  {
10537
10563
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10538
10564
  command: function () {
10539
- console.log('COMMAND CALLED');
10540
10565
  if (_this.isAllowToViewHistorical) {
10541
10566
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10542
10567
  if (_this.withSidebar) {
10568
+ _this.isOnlyView.emit(true);
10543
10569
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10544
10570
  relativeTo: _this.activatedRoute,
10545
10571
  });
10546
10572
  }
10547
10573
  else {
10548
- _this.isOnlyView.emit(true);
10549
10574
  _this.enableView.emit(dateChange);
10550
10575
  }
10551
10576
  }