@senior-gestao-pessoas/payroll-core 9.3.0-ac36b888-edb7-44ba-bf81-c8f7ad64dd56 → 9.3.0-b2587f77-b947-40a7-9008-40b2e83f2be9

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.
@@ -9272,6 +9272,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9272
9272
  this.isOnlyView = new EventEmitter();
9273
9273
  this.isOnlyEdit = new EventEmitter();
9274
9274
  this.isOnlyDelete = new EventEmitter();
9275
+ this.listFromApp = [];
9275
9276
  this.visibleChange = new EventEmitter();
9276
9277
  this.ngUnsubscribe = new Subject();
9277
9278
  this.orderBy = {
@@ -9312,11 +9313,6 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9312
9313
  }
9313
9314
  else {
9314
9315
  _this.isOnlyView.emit(true);
9315
- if (!_this.listDataReciever || _this.listDataReciever.length == 0) {
9316
- rowData["index"] = key;
9317
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9318
- _this.visible = true;
9319
- }
9320
9316
  }
9321
9317
  },
9322
9318
  },
@@ -9331,9 +9327,9 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9331
9327
  }
9332
9328
  else {
9333
9329
  _this.isOnlyEdit.emit(true);
9334
- if (!_this.listDataReciever || _this.listDataReciever.length == 0) {
9330
+ if (!_this.listFromApp) {
9335
9331
  rowData["index"] = key;
9336
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9332
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9337
9333
  _this.visible = true;
9338
9334
  }
9339
9335
  }
@@ -9349,6 +9345,10 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9349
9345
  }
9350
9346
  else {
9351
9347
  _this.isOnlyDelete.emit(true);
9348
+ if (!_this.listFromApp) {
9349
+ _this.loading = true;
9350
+ _this.deleteAnnuityItem(key);
9351
+ }
9352
9352
  }
9353
9353
  },
9354
9354
  },
@@ -9359,6 +9359,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9359
9359
  HistoricalPixAccountComponent.prototype.ngOnInit = function () {
9360
9360
  this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
9361
9361
  };
9362
+ HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
9363
+ if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
9364
+ this.listFromApp = changes['listDataReciever'].currentValue;
9365
+ }
9366
+ };
9362
9367
  HistoricalPixAccountComponent.prototype.createFormGroup = function () {
9363
9368
  this.historicalPixAccountList = this.formBuilder.group({
9364
9369
  historicalPixAccountList: this.formBuilder.control(null),