@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.
@@ -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 = {
@@ -9307,7 +9311,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9307
9311
  _this.visible = true;
9308
9312
  }
9309
9313
  else {
9310
- _this.isNotAllowMessage();
9314
+ _this.isOnlyView.emit(true);
9311
9315
  }
9312
9316
  },
9313
9317
  },
@@ -9321,7 +9325,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9321
9325
  _this.visible = true;
9322
9326
  }
9323
9327
  else {
9324
- _this.isNotAllowMessage();
9328
+ _this.isOnlyEdit.emit(true);
9329
+ console.log(_this.listDataReciever);
9330
+ if (!_this.listDataReciever) {
9331
+ rowData["index"] = key;
9332
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9333
+ _this.visible = true;
9334
+ }
9325
9335
  }
9326
9336
  },
9327
9337
  },
@@ -9334,7 +9344,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9334
9344
  _this.deleteAnnuityItem(key);
9335
9345
  }
9336
9346
  else {
9337
- _this.isNotAllowMessage();
9347
+ _this.isOnlyDelete.emit(true);
9348
+ if (!_this.listDataReciever) {
9349
+ _this.loading = true;
9350
+ _this.deleteAnnuityItem(key);
9351
+ }
9338
9352
  }
9339
9353
  },
9340
9354
  },
@@ -9638,6 +9652,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9638
9652
  __decorate([
9639
9653
  Input()
9640
9654
  ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9655
+ __decorate([
9656
+ Input()
9657
+ ], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
9658
+ __decorate([
9659
+ Output()
9660
+ ], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
9661
+ __decorate([
9662
+ Output()
9663
+ ], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
9664
+ __decorate([
9665
+ Output()
9666
+ ], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
9641
9667
  __decorate([
9642
9668
  Input()
9643
9669
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10370,16 +10396,15 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10370
10396
  {
10371
10397
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10372
10398
  command: function () {
10373
- console.log('COMMAND CALLED');
10374
10399
  if (_this.isAllowToViewHistorical) {
10375
10400
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10376
10401
  if (_this.withSidebar) {
10402
+ _this.isOnlyView.emit(true);
10377
10403
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10378
10404
  relativeTo: _this.activatedRoute,
10379
10405
  });
10380
10406
  }
10381
10407
  else {
10382
- _this.isOnlyView.emit(true);
10383
10408
  _this.enableView.emit(dateChange);
10384
10409
  }
10385
10410
  }