@senior-gestao-pessoas/payroll-core 9.3.0-d3341f01-2532-4915-b7ea-ac938a442b19 → 9.3.0-d71ffa7e-4847-40d5-bab1-68cfbfa80b16

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 = {
@@ -9326,7 +9327,9 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9326
9327
  }
9327
9328
  else {
9328
9329
  _this.isOnlyEdit.emit(true);
9329
- if (!_this.listDataReciever && _this.listDataReciever.length == 0) {
9330
+ console.log('listFromApp', _this.listFromApp);
9331
+ if (_this.listFromApp.length == 0) {
9332
+ console.log('ENTER IN EDIT');
9330
9333
  rowData["index"] = key;
9331
9334
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9332
9335
  _this.visible = true;
@@ -9344,7 +9347,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9344
9347
  }
9345
9348
  else {
9346
9349
  _this.isOnlyDelete.emit(true);
9347
- if (!_this.listDataReciever && _this.listDataReciever.length == 0) {
9350
+ if (_this.listFromApp.length == 0) {
9348
9351
  _this.loading = true;
9349
9352
  _this.deleteAnnuityItem(key);
9350
9353
  }
@@ -9358,6 +9361,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9358
9361
  HistoricalPixAccountComponent.prototype.ngOnInit = function () {
9359
9362
  this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
9360
9363
  };
9364
+ HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
9365
+ if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
9366
+ console.log('changes', changes['listDataReciever'].currentValue);
9367
+ this.listFromApp = changes['listDataReciever'].currentValue;
9368
+ console.log('listFromApp', this.listFromApp);
9369
+ }
9370
+ };
9361
9371
  HistoricalPixAccountComponent.prototype.createFormGroup = function () {
9362
9372
  this.historicalPixAccountList = this.formBuilder.group({
9363
9373
  historicalPixAccountList: this.formBuilder.control(null),