@senior-gestao-pessoas/payroll-core 9.3.0-0a28751a-09d5-4c6f-ad82-be2566554925 → 9.3.0-0c9b8608-8eb2-4a54-a822-926f0794fa8c

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 = {
@@ -9467,16 +9471,18 @@
9467
9471
  visible: _this.isEditMode,
9468
9472
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9469
9473
  command: function () {
9470
- console.log('CAALING VIEW');
9471
9474
  if (_this.isAllowToViewHistorical) {
9472
- console.log('IS ALLOW TO VIEW');
9473
9475
  rowData["index"] = key;
9474
9476
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9475
9477
  _this.visible = true;
9476
9478
  }
9477
9479
  else {
9478
- console.log('IS NOT ALLOW TO VIEW');
9479
- _this.isNotAllowMessage();
9480
+ _this.isOnlyView.emit(true);
9481
+ if (_this.listDataReciever.length == 0) {
9482
+ rowData["index"] = key;
9483
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9484
+ _this.visible = true;
9485
+ }
9480
9486
  }
9481
9487
  },
9482
9488
  },
@@ -9484,16 +9490,18 @@
9484
9490
  visible: !!(!_this.isEditMode && _this.withSideBar),
9485
9491
  label: _this.translateService.instant("hcm.payroll.edit"),
9486
9492
  command: function () {
9487
- console.log('CAALING EDIT');
9488
9493
  if (_this.isAllowToEditHistorical) {
9489
- console.log('IS ALLOW TO EDIT');
9490
9494
  rowData["index"] = key;
9491
9495
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9492
9496
  _this.visible = true;
9493
9497
  }
9494
9498
  else {
9495
- console.log('IS NOT ALLOW TO EDIT');
9496
- _this.isNotAllowMessage();
9499
+ _this.isOnlyEdit.emit(true);
9500
+ if (_this.listDataReciever.length == 0) {
9501
+ rowData["index"] = key;
9502
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9503
+ _this.visible = true;
9504
+ }
9497
9505
  }
9498
9506
  },
9499
9507
  },
@@ -9501,15 +9509,12 @@
9501
9509
  visible: !_this.isEditMode,
9502
9510
  label: _this.translateService.instant("hcm.payroll.delete"),
9503
9511
  command: function () {
9504
- console.log('CAALING DELETE');
9505
9512
  if (_this.isAllowToDeleteHistorical) {
9506
- console.log('IS ALLOW TO DELETE');
9507
9513
  _this.loading = true;
9508
9514
  _this.deleteAnnuityItem(key);
9509
9515
  }
9510
9516
  else {
9511
- console.log('IS NOT ALLOW TO DELETE');
9512
- _this.isNotAllowMessage();
9517
+ _this.isOnlyDelete.emit(true);
9513
9518
  }
9514
9519
  },
9515
9520
  },
@@ -9813,6 +9818,18 @@
9813
9818
  __decorate([
9814
9819
  core.Input()
9815
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);
9816
9833
  __decorate([
9817
9834
  core.Input()
9818
9835
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);