@senior-gestao-pessoas/payroll-core 9.3.0-0a28751a-09d5-4c6f-ad82-be2566554925 → 9.3.0-11ecd384-3d65-4305-af51-72620b6bf7e1

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.
@@ -9268,6 +9268,10 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9268
9268
  this.isViewMode = false;
9269
9269
  this.withSideBar = true;
9270
9270
  this.defaultCpfNumber = null;
9271
+ this.listDataReciever = [];
9272
+ this.isOnlyView = new EventEmitter();
9273
+ this.isOnlyEdit = new EventEmitter();
9274
+ this.isOnlyDelete = new EventEmitter();
9271
9275
  this.visibleChange = new EventEmitter();
9272
9276
  this.ngUnsubscribe = new Subject();
9273
9277
  this.orderBy = {
@@ -9301,16 +9305,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9301
9305
  visible: _this.isEditMode,
9302
9306
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9303
9307
  command: function () {
9304
- console.log('CAALING VIEW');
9305
9308
  if (_this.isAllowToViewHistorical) {
9306
- console.log('IS ALLOW TO VIEW');
9307
9309
  rowData["index"] = key;
9308
9310
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9309
9311
  _this.visible = true;
9310
9312
  }
9311
9313
  else {
9312
- console.log('IS NOT ALLOW TO VIEW');
9313
- _this.isNotAllowMessage();
9314
+ _this.isOnlyView.emit(true);
9315
+ if (_this.listDataReciever.length == 0) {
9316
+ rowData["index"] = key;
9317
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9318
+ _this.visible = true;
9319
+ }
9314
9320
  }
9315
9321
  },
9316
9322
  },
@@ -9318,16 +9324,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9318
9324
  visible: !!(!_this.isEditMode && _this.withSideBar),
9319
9325
  label: _this.translateService.instant("hcm.payroll.edit"),
9320
9326
  command: function () {
9321
- console.log('CAALING EDIT');
9322
9327
  if (_this.isAllowToEditHistorical) {
9323
- console.log('IS ALLOW TO EDIT');
9324
9328
  rowData["index"] = key;
9325
9329
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9326
9330
  _this.visible = true;
9327
9331
  }
9328
9332
  else {
9329
- console.log('IS NOT ALLOW TO EDIT');
9330
- _this.isNotAllowMessage();
9333
+ _this.isOnlyEdit.emit(true);
9334
+ if (_this.listDataReciever.length == 0) {
9335
+ rowData["index"] = key;
9336
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9337
+ _this.visible = true;
9338
+ }
9331
9339
  }
9332
9340
  },
9333
9341
  },
@@ -9335,15 +9343,12 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9335
9343
  visible: !_this.isEditMode,
9336
9344
  label: _this.translateService.instant("hcm.payroll.delete"),
9337
9345
  command: function () {
9338
- console.log('CAALING DELETE');
9339
9346
  if (_this.isAllowToDeleteHistorical) {
9340
- console.log('IS ALLOW TO DELETE');
9341
9347
  _this.loading = true;
9342
9348
  _this.deleteAnnuityItem(key);
9343
9349
  }
9344
9350
  else {
9345
- console.log('IS NOT ALLOW TO DELETE');
9346
- _this.isNotAllowMessage();
9351
+ _this.isOnlyDelete.emit(true);
9347
9352
  }
9348
9353
  },
9349
9354
  },
@@ -9647,6 +9652,15 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9647
9652
  __decorate([
9648
9653
  Input()
9649
9654
  ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9655
+ __decorate([
9656
+ Output()
9657
+ ], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
9658
+ __decorate([
9659
+ Output()
9660
+ ], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
9661
+ __decorate([
9662
+ Output()
9663
+ ], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
9650
9664
  __decorate([
9651
9665
  Input()
9652
9666
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);