@senior-gestao-pessoas/payroll-core 9.3.0-ee19ef91-03e0-4a39-923b-12f0b8cf42cc → 9.3.0-ef8c75b7-589a-43d7-bc32-754b1cc2c4b8

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.
@@ -9301,17 +9301,14 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9301
9301
  visible: _this.isEditMode,
9302
9302
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9303
9303
  command: function () {
9304
- if (_this.isAllowToViewHistorical && rowData) {
9304
+ if (_this.isAllowToViewHistorical) {
9305
9305
  rowData["index"] = key;
9306
9306
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9307
9307
  _this.visible = true;
9308
9308
  }
9309
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
- });
9310
+ _this.visible = false;
9311
+ _this.isNotAllowMessage();
9315
9312
  }
9316
9313
  },
9317
9314
  },
@@ -9319,17 +9316,14 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9319
9316
  visible: !!(!_this.isEditMode && _this.withSideBar),
9320
9317
  label: _this.translateService.instant("hcm.payroll.edit"),
9321
9318
  command: function () {
9322
- if (_this.isAllowToEditHistorical && rowData) {
9319
+ if (_this.isAllowToEditHistorical) {
9323
9320
  rowData["index"] = key;
9324
9321
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9325
9322
  _this.visible = true;
9326
9323
  }
9327
9324
  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
- });
9325
+ _this.visible = false;
9326
+ _this.isNotAllowMessage();
9333
9327
  }
9334
9328
  },
9335
9329
  },
@@ -9337,16 +9331,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9337
9331
  visible: !_this.isEditMode,
9338
9332
  label: _this.translateService.instant("hcm.payroll.delete"),
9339
9333
  command: function () {
9340
- if (_this.isAllowToDeleteHistorical && rowData) {
9334
+ if (_this.isAllowToDeleteHistorical) {
9341
9335
  _this.loading = true;
9342
9336
  _this.deleteAnnuityItem(key);
9343
9337
  }
9344
9338
  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
- });
9339
+ _this.visible = false;
9340
+ _this.isNotAllowMessage();
9350
9341
  }
9351
9342
  },
9352
9343
  },
@@ -9413,6 +9404,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9413
9404
  this.pixAccountItemInput = {};
9414
9405
  this.visible = true;
9415
9406
  };
9407
+ HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
9408
+ this.messageService.add({
9409
+ severity: "error",
9410
+ summary: this.translateService.instant("hcm.payroll.error"),
9411
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9412
+ });
9413
+ };
9416
9414
  HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
9417
9415
  var newlist = __spread(this.getHistoricalPixAccountList());
9418
9416
  newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
@@ -9558,23 +9556,30 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9558
9556
  HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
9559
9557
  return FormatUtilsService.getFormattedPercentage(value);
9560
9558
  };
9559
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
9560
+ get: function () {
9561
+ return (this.permission["incluir"]);
9562
+ },
9563
+ enumerable: true,
9564
+ configurable: true
9565
+ });
9561
9566
  Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
9562
9567
  get: function () {
9563
- return (this.permission["Excluir"]);
9568
+ return (this.permission["excluir"]);
9564
9569
  },
9565
9570
  enumerable: true,
9566
9571
  configurable: true
9567
9572
  });
9568
9573
  Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
9569
9574
  get: function () {
9570
- return (this.permission["Editar"]);
9575
+ return (this.permission["editar"]);
9571
9576
  },
9572
9577
  enumerable: true,
9573
9578
  configurable: true
9574
9579
  });
9575
9580
  Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
9576
9581
  get: function () {
9577
- return (this.permission["Visualizar"]);
9582
+ return (this.permission["visualizar"]);
9578
9583
  },
9579
9584
  enumerable: true,
9580
9585
  configurable: true
@@ -10367,23 +10372,17 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10367
10372
  {
10368
10373
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10369
10374
  command: function () {
10370
- if (_this.isAllowToViewHistorical && rowData) {
10375
+ if (_this.isAllowToViewHistorical) {
10371
10376
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10372
- if (_this.withSidebar) {
10377
+ if (_this.withSidebar)
10373
10378
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10374
10379
  relativeTo: _this.activatedRoute,
10375
10380
  });
10376
- }
10377
- else {
10381
+ else
10378
10382
  _this.enableView.emit(dateChange);
10379
- }
10380
10383
  }
10381
10384
  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"),
10386
- });
10385
+ _this.isNotAllowMessage();
10387
10386
  }
10388
10387
  },
10389
10388
  },
@@ -10394,11 +10393,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10394
10393
  _this.delete(rowData.id, rowData.dateChange);
10395
10394
  }
10396
10395
  else {
10397
- _this.messageService.add({
10398
- severity: "error",
10399
- summary: _this.translateService.instant("hcm.payroll.error"),
10400
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10401
- });
10396
+ _this.isNotAllowMessage();
10402
10397
  }
10403
10398
  },
10404
10399
  },
@@ -10456,6 +10451,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10456
10451
  });
10457
10452
  }
10458
10453
  };
10454
+ HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
10455
+ this.messageService.add({
10456
+ severity: "error",
10457
+ summary: this.translateService.instant("hcm.payroll.error"),
10458
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10459
+ });
10460
+ };
10459
10461
  HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
10460
10462
  if (payload && payload.length) {
10461
10463
  this.lastRecord = payload[0];
@@ -10463,21 +10465,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10463
10465
  };
10464
10466
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
10465
10467
  get: function () {
10466
- return (this.permission["Incluir"]);
10468
+ return (this.permission["incluir"]);
10467
10469
  },
10468
10470
  enumerable: true,
10469
10471
  configurable: true
10470
10472
  });
10471
10473
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10472
10474
  get: function () {
10473
- return (this.permission["Excluir"]);
10475
+ return (this.permission["excluir"]);
10474
10476
  },
10475
10477
  enumerable: true,
10476
10478
  configurable: true
10477
10479
  });
10478
10480
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
10479
10481
  get: function () {
10480
- return (this.permission["Visualizar"]);
10482
+ return (this.permission["visualizar"]);
10481
10483
  },
10482
10484
  enumerable: true,
10483
10485
  configurable: true