@senior-gestao-pessoas/payroll-core 9.3.0-d2f4baaf-da8f-4f6f-a650-fbfdeaed4657 → 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.
@@ -9434,6 +9434,11 @@
9434
9434
  this.isViewMode = false;
9435
9435
  this.withSideBar = true;
9436
9436
  this.defaultCpfNumber = null;
9437
+ this.listDataReciever = [];
9438
+ this.isOnlyView = new core.EventEmitter();
9439
+ this.isOnlyEdit = new core.EventEmitter();
9440
+ this.isOnlyDelete = new core.EventEmitter();
9441
+ this.listFromApp = [];
9437
9442
  this.visibleChange = new core.EventEmitter();
9438
9443
  this.ngUnsubscribe = new rxjs.Subject();
9439
9444
  this.orderBy = {
@@ -9473,7 +9478,7 @@
9473
9478
  _this.visible = true;
9474
9479
  }
9475
9480
  else {
9476
- _this.isNotAllowMessage();
9481
+ _this.isOnlyView.emit(true);
9477
9482
  }
9478
9483
  },
9479
9484
  },
@@ -9487,7 +9492,14 @@
9487
9492
  _this.visible = true;
9488
9493
  }
9489
9494
  else {
9490
- _this.isNotAllowMessage();
9495
+ _this.isOnlyEdit.emit(true);
9496
+ console.log('listFromApp', _this.listFromApp);
9497
+ if (_this.listFromApp.length == 0) {
9498
+ console.log('ENTER IN EDIT');
9499
+ rowData["index"] = key;
9500
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9501
+ _this.visible = true;
9502
+ }
9491
9503
  }
9492
9504
  },
9493
9505
  },
@@ -9500,7 +9512,11 @@
9500
9512
  _this.deleteAnnuityItem(key);
9501
9513
  }
9502
9514
  else {
9503
- _this.isNotAllowMessage();
9515
+ _this.isOnlyDelete.emit(true);
9516
+ if (_this.listFromApp.length == 0) {
9517
+ _this.loading = true;
9518
+ _this.deleteAnnuityItem(key);
9519
+ }
9504
9520
  }
9505
9521
  },
9506
9522
  },
@@ -9511,6 +9527,13 @@
9511
9527
  HistoricalPixAccountComponent.prototype.ngOnInit = function () {
9512
9528
  this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
9513
9529
  };
9530
+ HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
9531
+ if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
9532
+ console.log('changes', changes['listDataReciever'].currentValue);
9533
+ this.listFromApp = changes['listDataReciever'].currentValue;
9534
+ console.log('listFromApp', this.listFromApp);
9535
+ }
9536
+ };
9514
9537
  HistoricalPixAccountComponent.prototype.createFormGroup = function () {
9515
9538
  this.historicalPixAccountList = this.formBuilder.group({
9516
9539
  historicalPixAccountList: this.formBuilder.control(null),
@@ -9804,6 +9827,18 @@
9804
9827
  __decorate([
9805
9828
  core.Input()
9806
9829
  ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9830
+ __decorate([
9831
+ core.Input()
9832
+ ], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
9833
+ __decorate([
9834
+ core.Output()
9835
+ ], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
9836
+ __decorate([
9837
+ core.Output()
9838
+ ], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
9839
+ __decorate([
9840
+ core.Output()
9841
+ ], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
9807
9842
  __decorate([
9808
9843
  core.Input()
9809
9844
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10415,7 +10450,6 @@
10415
10450
  angularComponents.CustomFieldsModule,
10416
10451
  panel.PanelModule,
10417
10452
  inputmask.InputMaskModule,
10418
- confirmdialog.ConfirmDialogModule
10419
10453
  ],
10420
10454
  declarations: [HistoricalPixAccountComponent, HistoricalPixAccountFormComponent],
10421
10455
  providers: [HistoricalPixAccountService, api.ConfirmationService],
@@ -10469,6 +10503,7 @@
10469
10503
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10470
10504
  this.keyPayload = "historicalEmployeePix";
10471
10505
  this.withSidebar = true;
10506
+ this.isOnlyView = new core.EventEmitter();
10472
10507
  this.enableView = new core.EventEmitter();
10473
10508
  this.ngUnsubscribe = new rxjs.Subject();
10474
10509
  this.loading = true;
@@ -10538,12 +10573,15 @@
10538
10573
  command: function () {
10539
10574
  if (_this.isAllowToViewHistorical) {
10540
10575
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10541
- if (_this.withSidebar)
10576
+ if (_this.withSidebar) {
10577
+ _this.isOnlyView.emit(true);
10542
10578
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10543
10579
  relativeTo: _this.activatedRoute,
10544
10580
  });
10545
- else
10581
+ }
10582
+ else {
10546
10583
  _this.enableView.emit(dateChange);
10584
+ }
10547
10585
  }
10548
10586
  else {
10549
10587
  _this.isNotAllowMessage();
@@ -10698,6 +10736,9 @@
10698
10736
  __decorate([
10699
10737
  core.Input()
10700
10738
  ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10739
+ __decorate([
10740
+ core.Output()
10741
+ ], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
10701
10742
  __decorate([
10702
10743
  core.Output()
10703
10744
  ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);