@senior-gestao-pessoas/payroll-core 9.3.0-99a8011c-ce6f-42d8-bae5-a9d40dcf3e7b → 9.3.0-ac36b888-edb7-44ba-bf81-c8f7ad64dd56

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,12 @@
9473
9477
  _this.visible = true;
9474
9478
  }
9475
9479
  else {
9476
- _this.isNotAllowMessage();
9480
+ _this.isOnlyView.emit(true);
9481
+ if (!_this.listDataReciever || _this.listDataReciever.length == 0) {
9482
+ rowData["index"] = key;
9483
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9484
+ _this.visible = true;
9485
+ }
9477
9486
  }
9478
9487
  },
9479
9488
  },
@@ -9487,7 +9496,12 @@
9487
9496
  _this.visible = true;
9488
9497
  }
9489
9498
  else {
9490
- _this.isNotAllowMessage();
9499
+ _this.isOnlyEdit.emit(true);
9500
+ if (!_this.listDataReciever || _this.listDataReciever.length == 0) {
9501
+ rowData["index"] = key;
9502
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9503
+ _this.visible = true;
9504
+ }
9491
9505
  }
9492
9506
  },
9493
9507
  },
@@ -9500,7 +9514,7 @@
9500
9514
  _this.deleteAnnuityItem(key);
9501
9515
  }
9502
9516
  else {
9503
- _this.isNotAllowMessage();
9517
+ _this.isOnlyDelete.emit(true);
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,11 +10562,8 @@
10536
10562
  {
10537
10563
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10538
10564
  command: function () {
10539
- console.log('COMMAND CALLED');
10540
- console.log('this.isAllowToViewHistorical', _this.isAllowToViewHistorical);
10541
10565
  if (_this.isAllowToViewHistorical) {
10542
10566
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10543
- console.log('withSidebar', _this.withSidebar);
10544
10567
  if (_this.withSidebar) {
10545
10568
  _this.isOnlyView.emit(true);
10546
10569
  _this.router.navigate(["historical-pix-account/" + dateChange], {