@senior-gestao-pessoas/payroll-core 9.3.0-d99b0dbd-5fc0-4b98-979b-fe30c751fa36 → 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.
@@ -9256,12 +9256,11 @@ var FormatUtilsService = /** @class */ (function () {
9256
9256
  }());
9257
9257
 
9258
9258
  var HistoricalPixAccountComponent = /** @class */ (function () {
9259
- function HistoricalPixAccountComponent(translateService, cd, formBuilder, messageService) {
9259
+ function HistoricalPixAccountComponent(translateService, cd, formBuilder) {
9260
9260
  var _this = this;
9261
9261
  this.translateService = translateService;
9262
9262
  this.cd = cd;
9263
9263
  this.formBuilder = formBuilder;
9264
- this.messageService = messageService;
9265
9264
  this.recordByRow = 1;
9266
9265
  this.showDateChange = false;
9267
9266
  this.isEditMode = false;
@@ -9310,35 +9309,17 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9310
9309
  visible: !!(!_this.isEditMode && _this.withSideBar),
9311
9310
  label: _this.translateService.instant("hcm.payroll.edit"),
9312
9311
  command: function () {
9313
- if (_this.isAllowToEditHistorical && rowData) {
9314
- rowData["index"] = key;
9315
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9316
- _this.visible = true;
9317
- }
9318
- else {
9319
- _this.messageService.add({
9320
- severity: "error",
9321
- summary: _this.translateService.instant("hcm.payroll.error"),
9322
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9323
- });
9324
- }
9312
+ rowData["index"] = key;
9313
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9314
+ _this.visible = true;
9325
9315
  },
9326
9316
  },
9327
9317
  {
9328
9318
  visible: !_this.isEditMode,
9329
9319
  label: _this.translateService.instant("hcm.payroll.delete"),
9330
9320
  command: function () {
9331
- if (_this.isAllowToDeleteHistorical && rowData) {
9332
- _this.loading = true;
9333
- _this.deleteAnnuityItem(key);
9334
- }
9335
- else {
9336
- _this.messageService.add({
9337
- severity: "error",
9338
- summary: _this.translateService.instant("hcm.payroll.error"),
9339
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9340
- });
9341
- }
9321
+ _this.loading = true;
9322
+ _this.deleteAnnuityItem(key);
9342
9323
  },
9343
9324
  },
9344
9325
  ];
@@ -9549,25 +9530,10 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9549
9530
  HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
9550
9531
  return FormatUtilsService.getFormattedPercentage(value);
9551
9532
  };
9552
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
9553
- get: function () {
9554
- return (this.permission["Excluir"]);
9555
- },
9556
- enumerable: true,
9557
- configurable: true
9558
- });
9559
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
9560
- get: function () {
9561
- return (this.permission["Editar"]);
9562
- },
9563
- enumerable: true,
9564
- configurable: true
9565
- });
9566
9533
  HistoricalPixAccountComponent.ctorParameters = function () { return [
9567
9534
  { type: TranslateService },
9568
9535
  { type: ChangeDetectorRef },
9569
- { type: FormBuilder },
9570
- { type: MessageService }
9536
+ { type: FormBuilder }
9571
9537
  ]; };
9572
9538
  __decorate([
9573
9539
  ViewChild(CustomFieldsComponent$1, { static: false })
@@ -9617,9 +9583,6 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9617
9583
  __decorate([
9618
9584
  Input()
9619
9585
  ], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
9620
- __decorate([
9621
- Input()
9622
- ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9623
9586
  __decorate([
9624
9587
  Input()
9625
9588
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10351,16 +10314,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10351
10314
  {
10352
10315
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10353
10316
  command: function () {
10354
- if (_this.isAllowToViewHistorical && rowData) {
10317
+ if (_this.isAllowToViewHistorical) {
10355
10318
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10356
- if (_this.withSidebar) {
10319
+ if (_this.withSidebar)
10357
10320
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10358
10321
  relativeTo: _this.activatedRoute,
10359
10322
  });
10360
- }
10361
- else {
10323
+ else
10362
10324
  _this.enableView.emit(dateChange);
10363
- }
10364
10325
  }
10365
10326
  else {
10366
10327
  _this.messageService.add({
@@ -10447,21 +10408,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10447
10408
  };
10448
10409
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
10449
10410
  get: function () {
10450
- return (this.permission["Incluir"]);
10411
+ return (this.permission["incluir"]);
10451
10412
  },
10452
10413
  enumerable: true,
10453
10414
  configurable: true
10454
10415
  });
10455
10416
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10456
10417
  get: function () {
10457
- return (this.permission["Excluir"]);
10418
+ return (this.permission["excluir"]);
10458
10419
  },
10459
10420
  enumerable: true,
10460
10421
  configurable: true
10461
10422
  });
10462
10423
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
10463
10424
  get: function () {
10464
- return (this.permission["Visualizar"]);
10425
+ return (this.permission["visualizar"]);
10465
10426
  },
10466
10427
  enumerable: true,
10467
10428
  configurable: true