@senior-gestao-pessoas/payroll-core 9.3.0-91e42bbe-0783-45c0-91c2-ac243803cb3c → 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.
@@ -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,12 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9321
9325
  _this.visible = true;
9322
9326
  }
9323
9327
  else {
9324
- _this.isNotAllowMessage();
9328
+ _this.isOnlyEdit.emit(true);
9329
+ if (!_this.listDataReciever) {
9330
+ rowData["index"] = key;
9331
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9332
+ _this.visible = true;
9333
+ }
9325
9334
  }
9326
9335
  },
9327
9336
  },
@@ -9334,7 +9343,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9334
9343
  _this.deleteAnnuityItem(key);
9335
9344
  }
9336
9345
  else {
9337
- _this.isNotAllowMessage();
9346
+ _this.isOnlyDelete.emit(true);
9347
+ if (!_this.listDataReciever) {
9348
+ _this.loading = true;
9349
+ _this.deleteAnnuityItem(key);
9350
+ }
9338
9351
  }
9339
9352
  },
9340
9353
  },
@@ -9638,6 +9651,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9638
9651
  __decorate([
9639
9652
  Input()
9640
9653
  ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9654
+ __decorate([
9655
+ Input()
9656
+ ], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
9657
+ __decorate([
9658
+ Output()
9659
+ ], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
9660
+ __decorate([
9661
+ Output()
9662
+ ], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
9663
+ __decorate([
9664
+ Output()
9665
+ ], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
9641
9666
  __decorate([
9642
9667
  Input()
9643
9668
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10302,6 +10327,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10302
10327
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10303
10328
  this.keyPayload = "historicalEmployeePix";
10304
10329
  this.withSidebar = true;
10330
+ this.isOnlyView = new EventEmitter();
10305
10331
  this.enableView = new EventEmitter();
10306
10332
  this.ngUnsubscribe = new Subject();
10307
10333
  this.loading = true;
@@ -10371,12 +10397,15 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10371
10397
  command: function () {
10372
10398
  if (_this.isAllowToViewHistorical) {
10373
10399
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10374
- if (_this.withSidebar)
10400
+ if (_this.withSidebar) {
10401
+ _this.isOnlyView.emit(true);
10375
10402
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10376
10403
  relativeTo: _this.activatedRoute,
10377
10404
  });
10378
- else
10405
+ }
10406
+ else {
10379
10407
  _this.enableView.emit(dateChange);
10408
+ }
10380
10409
  }
10381
10410
  else {
10382
10411
  _this.isNotAllowMessage();
@@ -10531,6 +10560,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10531
10560
  __decorate([
10532
10561
  Input()
10533
10562
  ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10563
+ __decorate([
10564
+ Output()
10565
+ ], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
10534
10566
  __decorate([
10535
10567
  Output()
10536
10568
  ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);