@senior-gestao-pessoas/payroll-core 9.3.0-8e3650be-79b5-4803-9eab-ad01b4739d46 → 9.3.0-dfe04f23-c797-41a3-b912-c4cf9ef516cd

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.
@@ -9422,12 +9422,11 @@
9422
9422
  }());
9423
9423
 
9424
9424
  var HistoricalPixAccountComponent = /** @class */ (function () {
9425
- function HistoricalPixAccountComponent(translateService, cd, formBuilder, messageService) {
9425
+ function HistoricalPixAccountComponent(translateService, cd, formBuilder) {
9426
9426
  var _this = this;
9427
9427
  this.translateService = translateService;
9428
9428
  this.cd = cd;
9429
9429
  this.formBuilder = formBuilder;
9430
- this.messageService = messageService;
9431
9430
  this.recordByRow = 1;
9432
9431
  this.showDateChange = false;
9433
9432
  this.isEditMode = false;
@@ -9476,35 +9475,17 @@
9476
9475
  visible: !!(!_this.isEditMode && _this.withSideBar),
9477
9476
  label: _this.translateService.instant("hcm.payroll.edit"),
9478
9477
  command: function () {
9479
- if (_this.isAllowToEditHistorical && rowData) {
9480
- rowData["index"] = key;
9481
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9482
- _this.visible = true;
9483
- }
9484
- else {
9485
- _this.messageService.add({
9486
- severity: "error",
9487
- summary: _this.translateService.instant("hcm.payroll.error"),
9488
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9489
- });
9490
- }
9478
+ rowData["index"] = key;
9479
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9480
+ _this.visible = true;
9491
9481
  },
9492
9482
  },
9493
9483
  {
9494
9484
  visible: !_this.isEditMode,
9495
9485
  label: _this.translateService.instant("hcm.payroll.delete"),
9496
9486
  command: function () {
9497
- if (_this.isAllowToDeleteHistorical && rowData) {
9498
- _this.loading = true;
9499
- _this.deleteAnnuityItem(key);
9500
- }
9501
- else {
9502
- _this.messageService.add({
9503
- severity: "error",
9504
- summary: _this.translateService.instant("hcm.payroll.error"),
9505
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9506
- });
9507
- }
9487
+ _this.loading = true;
9488
+ _this.deleteAnnuityItem(key);
9508
9489
  },
9509
9490
  },
9510
9491
  ];
@@ -9715,25 +9696,10 @@
9715
9696
  HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
9716
9697
  return FormatUtilsService.getFormattedPercentage(value);
9717
9698
  };
9718
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
9719
- get: function () {
9720
- return (this.permission["excluir"]);
9721
- },
9722
- enumerable: true,
9723
- configurable: true
9724
- });
9725
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
9726
- get: function () {
9727
- return (this.permission["editar"]);
9728
- },
9729
- enumerable: true,
9730
- configurable: true
9731
- });
9732
9699
  HistoricalPixAccountComponent.ctorParameters = function () { return [
9733
9700
  { type: core$1.TranslateService },
9734
9701
  { type: core.ChangeDetectorRef },
9735
- { type: forms.FormBuilder },
9736
- { type: api.MessageService }
9702
+ { type: forms.FormBuilder }
9737
9703
  ]; };
9738
9704
  __decorate([
9739
9705
  core.ViewChild(angularComponents.CustomFieldsComponent, { static: false })
@@ -9783,9 +9749,6 @@
9783
9749
  __decorate([
9784
9750
  core.Input()
9785
9751
  ], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
9786
- __decorate([
9787
- core.Input()
9788
- ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9789
9752
  __decorate([
9790
9753
  core.Input()
9791
9754
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10517,16 +10480,14 @@
10517
10480
  {
10518
10481
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10519
10482
  command: function () {
10520
- if (_this.isAllowToViewHistorical && rowData) {
10483
+ if (_this.isAllowToViewHistorical) {
10521
10484
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10522
- if (_this.withSidebar) {
10485
+ if (_this.withSidebar)
10523
10486
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10524
10487
  relativeTo: _this.activatedRoute,
10525
10488
  });
10526
- }
10527
- else {
10489
+ else
10528
10490
  _this.enableView.emit(dateChange);
10529
- }
10530
10491
  }
10531
10492
  else {
10532
10493
  _this.messageService.add({
@@ -10627,7 +10588,7 @@
10627
10588
  });
10628
10589
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
10629
10590
  get: function () {
10630
- return (this.permission["visaulizar"]);
10591
+ return (this.permission["visualizar"]);
10631
10592
  },
10632
10593
  enumerable: true,
10633
10594
  configurable: true