@senior-gestao-pessoas/payroll-core 9.3.0-8ebe41a8-581c-4d97-97b8-ab18d24ec02c → 9.3.0-96656ff7-d237-4819-9ab8-984d01f3ff5b

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,8 +9477,7 @@
9473
9477
  _this.visible = true;
9474
9478
  }
9475
9479
  else {
9476
- _this.visible = false;
9477
- _this.isNotAllowMessage();
9480
+ _this.isOnlyView.emit(true);
9478
9481
  }
9479
9482
  },
9480
9483
  },
@@ -9488,8 +9491,12 @@
9488
9491
  _this.visible = true;
9489
9492
  }
9490
9493
  else {
9491
- _this.visible = false;
9492
- _this.isNotAllowMessage();
9494
+ _this.isOnlyEdit.emit(true);
9495
+ if (!_this.listDataReciever) {
9496
+ rowData["index"] = key;
9497
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9498
+ _this.visible = true;
9499
+ }
9493
9500
  }
9494
9501
  },
9495
9502
  },
@@ -9502,8 +9509,11 @@
9502
9509
  _this.deleteAnnuityItem(key);
9503
9510
  }
9504
9511
  else {
9505
- _this.visible = false;
9506
- _this.isNotAllowMessage();
9512
+ _this.isOnlyDelete.emit(true);
9513
+ if (!_this.listDataReciever) {
9514
+ _this.loading = true;
9515
+ _this.deleteAnnuityItem(key);
9516
+ }
9507
9517
  }
9508
9518
  },
9509
9519
  },
@@ -9807,6 +9817,18 @@
9807
9817
  __decorate([
9808
9818
  core.Input()
9809
9819
  ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9820
+ __decorate([
9821
+ core.Input()
9822
+ ], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
9823
+ __decorate([
9824
+ core.Output()
9825
+ ], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
9826
+ __decorate([
9827
+ core.Output()
9828
+ ], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
9829
+ __decorate([
9830
+ core.Output()
9831
+ ], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
9810
9832
  __decorate([
9811
9833
  core.Input()
9812
9834
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10471,6 +10493,7 @@
10471
10493
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10472
10494
  this.keyPayload = "historicalEmployeePix";
10473
10495
  this.withSidebar = true;
10496
+ this.isOnlyView = new core.EventEmitter();
10474
10497
  this.enableView = new core.EventEmitter();
10475
10498
  this.ngUnsubscribe = new rxjs.Subject();
10476
10499
  this.loading = true;
@@ -10540,12 +10563,15 @@
10540
10563
  command: function () {
10541
10564
  if (_this.isAllowToViewHistorical) {
10542
10565
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10543
- if (_this.withSidebar)
10566
+ if (_this.withSidebar) {
10567
+ _this.isOnlyView.emit(true);
10544
10568
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10545
10569
  relativeTo: _this.activatedRoute,
10546
10570
  });
10547
- else
10571
+ }
10572
+ else {
10548
10573
  _this.enableView.emit(dateChange);
10574
+ }
10549
10575
  }
10550
10576
  else {
10551
10577
  _this.isNotAllowMessage();
@@ -10700,6 +10726,9 @@
10700
10726
  __decorate([
10701
10727
  core.Input()
10702
10728
  ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10729
+ __decorate([
10730
+ core.Output()
10731
+ ], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
10703
10732
  __decorate([
10704
10733
  core.Output()
10705
10734
  ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);