@senior-gestao-pessoas/payroll-core 9.3.0-f0e95122-ee14-4fff-b114-c382ed3407eb → 9.3.0-f4c7eb58-16d4-4081-9a44-5279fa97276a

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;
@@ -9301,53 +9300,26 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9301
9300
  visible: _this.isEditMode,
9302
9301
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9303
9302
  command: function () {
9304
- if (_this.isAllowToViewHistorical && rowData) {
9305
- rowData["index"] = key;
9306
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9307
- _this.visible = true;
9308
- }
9309
- else {
9310
- _this.messageService.add({
9311
- severity: "error",
9312
- summary: _this.translateService.instant("hcm.payroll.error"),
9313
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9314
- });
9315
- }
9303
+ rowData["index"] = key;
9304
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9305
+ _this.visible = true;
9316
9306
  },
9317
9307
  },
9318
9308
  {
9319
9309
  visible: !!(!_this.isEditMode && _this.withSideBar),
9320
9310
  label: _this.translateService.instant("hcm.payroll.edit"),
9321
9311
  command: function () {
9322
- if (_this.isAllowToEditHistorical && rowData) {
9323
- rowData["index"] = key;
9324
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9325
- _this.visible = true;
9326
- }
9327
- else {
9328
- _this.messageService.add({
9329
- severity: "error",
9330
- summary: _this.translateService.instant("hcm.payroll.error"),
9331
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9332
- });
9333
- }
9312
+ rowData["index"] = key;
9313
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9314
+ _this.visible = true;
9334
9315
  },
9335
9316
  },
9336
9317
  {
9337
9318
  visible: !_this.isEditMode,
9338
9319
  label: _this.translateService.instant("hcm.payroll.delete"),
9339
9320
  command: function () {
9340
- if (_this.isAllowToDeleteHistorical && rowData) {
9341
- _this.loading = true;
9342
- _this.deleteAnnuityItem(key);
9343
- }
9344
- else {
9345
- _this.messageService.add({
9346
- severity: "error",
9347
- summary: _this.translateService.instant("hcm.payroll.error"),
9348
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9349
- });
9350
- }
9321
+ _this.loading = true;
9322
+ _this.deleteAnnuityItem(key);
9351
9323
  },
9352
9324
  },
9353
9325
  ];
@@ -9558,32 +9530,10 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9558
9530
  HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
9559
9531
  return FormatUtilsService.getFormattedPercentage(value);
9560
9532
  };
9561
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
9562
- get: function () {
9563
- return (this.permission["Excluir"]);
9564
- },
9565
- enumerable: true,
9566
- configurable: true
9567
- });
9568
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
9569
- get: function () {
9570
- return (this.permission["Editar"]);
9571
- },
9572
- enumerable: true,
9573
- configurable: true
9574
- });
9575
- Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
9576
- get: function () {
9577
- return (this.permission["Visualizar"]);
9578
- },
9579
- enumerable: true,
9580
- configurable: true
9581
- });
9582
9533
  HistoricalPixAccountComponent.ctorParameters = function () { return [
9583
9534
  { type: TranslateService },
9584
9535
  { type: ChangeDetectorRef },
9585
- { type: FormBuilder },
9586
- { type: MessageService }
9536
+ { type: FormBuilder }
9587
9537
  ]; };
9588
9538
  __decorate([
9589
9539
  ViewChild(CustomFieldsComponent$1, { static: false })
@@ -9633,9 +9583,6 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9633
9583
  __decorate([
9634
9584
  Input()
9635
9585
  ], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
9636
- __decorate([
9637
- Input()
9638
- ], HistoricalPixAccountComponent.prototype, "permission", void 0);
9639
9586
  __decorate([
9640
9587
  Input()
9641
9588
  ], HistoricalPixAccountComponent.prototype, "dateChange", null);
@@ -10367,24 +10314,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10367
10314
  {
10368
10315
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10369
10316
  command: function () {
10370
- if (_this.isAllowToViewHistorical && rowData) {
10371
- var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10372
- if (_this.withSidebar) {
10373
- _this.router.navigate(["historical-pix-account/" + dateChange], {
10374
- relativeTo: _this.activatedRoute,
10375
- });
10376
- }
10377
- else {
10378
- _this.enableView.emit(dateChange);
10379
- }
10380
- }
10381
- else {
10382
- _this.messageService.add({
10383
- severity: "error",
10384
- summary: _this.translateService.instant("hcm.payroll.error"),
10385
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10317
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10318
+ if (_this.withSidebar)
10319
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10320
+ relativeTo: _this.activatedRoute,
10386
10321
  });
10387
- }
10322
+ else
10323
+ _this.enableView.emit(dateChange);
10388
10324
  },
10389
10325
  },
10390
10326
  {
@@ -10463,21 +10399,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10463
10399
  };
10464
10400
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
10465
10401
  get: function () {
10466
- return (this.permission["Incluir"]);
10402
+ return (this.permission["incluir"]);
10467
10403
  },
10468
10404
  enumerable: true,
10469
10405
  configurable: true
10470
10406
  });
10471
10407
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10472
10408
  get: function () {
10473
- return (this.permission["Excluir"]);
10474
- },
10475
- enumerable: true,
10476
- configurable: true
10477
- });
10478
- Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
10479
- get: function () {
10480
- return (this.permission["Visualizar"]);
10409
+ return (this.permission["excluir"]);
10481
10410
  },
10482
10411
  enumerable: true,
10483
10412
  configurable: true