@senior-gestao-pessoas/payroll-core 9.3.0-06538e11-08fa-4c6f-9e67-58f132131fe8 → 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.
@@ -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,12 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9307
9311
  _this.visible = true;
9308
9312
  }
9309
9313
  else {
9310
- _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
+ }
9311
9320
  }
9312
9321
  },
9313
9322
  },
@@ -9321,7 +9330,12 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9321
9330
  _this.visible = true;
9322
9331
  }
9323
9332
  else {
9324
- _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
+ }
9325
9339
  }
9326
9340
  },
9327
9341
  },
@@ -9334,7 +9348,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9334
9348
  _this.deleteAnnuityItem(key);
9335
9349
  }
9336
9350
  else {
9337
- _this.isNotAllowMessage();
9351
+ _this.isOnlyDelete.emit(true);
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);
@@ -10373,12 +10399,12 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10373
10399
  if (_this.isAllowToViewHistorical) {
10374
10400
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10375
10401
  if (_this.withSidebar) {
10402
+ _this.isOnlyView.emit(true);
10376
10403
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10377
10404
  relativeTo: _this.activatedRoute,
10378
10405
  });
10379
10406
  }
10380
10407
  else {
10381
- _this.isOnlyView.emit(true);
10382
10408
  _this.enableView.emit(dateChange);
10383
10409
  }
10384
10410
  }