@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.
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js +41 -39
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
- package/components/historical-pix-account/historical-pix-account.component.d.ts +2 -0
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +1 -0
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +24 -23
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +16 -19
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +28 -23
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +16 -19
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +37 -39
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +41 -39
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -9467,17 +9467,14 @@
|
|
|
9467
9467
|
visible: _this.isEditMode,
|
|
9468
9468
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9469
9469
|
command: function () {
|
|
9470
|
-
if (_this.isAllowToViewHistorical
|
|
9470
|
+
if (_this.isAllowToViewHistorical) {
|
|
9471
9471
|
rowData["index"] = key;
|
|
9472
9472
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9473
9473
|
_this.visible = true;
|
|
9474
9474
|
}
|
|
9475
9475
|
else {
|
|
9476
|
-
_this.
|
|
9477
|
-
|
|
9478
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9479
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9480
|
-
});
|
|
9476
|
+
_this.visible = false;
|
|
9477
|
+
_this.isNotAllowMessage();
|
|
9481
9478
|
}
|
|
9482
9479
|
},
|
|
9483
9480
|
},
|
|
@@ -9485,17 +9482,14 @@
|
|
|
9485
9482
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9486
9483
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9487
9484
|
command: function () {
|
|
9488
|
-
if (_this.isAllowToEditHistorical
|
|
9485
|
+
if (_this.isAllowToEditHistorical) {
|
|
9489
9486
|
rowData["index"] = key;
|
|
9490
9487
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9491
9488
|
_this.visible = true;
|
|
9492
9489
|
}
|
|
9493
9490
|
else {
|
|
9494
|
-
_this.
|
|
9495
|
-
|
|
9496
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9497
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9498
|
-
});
|
|
9491
|
+
_this.visible = false;
|
|
9492
|
+
_this.isNotAllowMessage();
|
|
9499
9493
|
}
|
|
9500
9494
|
},
|
|
9501
9495
|
},
|
|
@@ -9503,16 +9497,13 @@
|
|
|
9503
9497
|
visible: !_this.isEditMode,
|
|
9504
9498
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9505
9499
|
command: function () {
|
|
9506
|
-
if (_this.isAllowToDeleteHistorical
|
|
9500
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9507
9501
|
_this.loading = true;
|
|
9508
9502
|
_this.deleteAnnuityItem(key);
|
|
9509
9503
|
}
|
|
9510
9504
|
else {
|
|
9511
|
-
_this.
|
|
9512
|
-
|
|
9513
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9514
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9515
|
-
});
|
|
9505
|
+
_this.visible = false;
|
|
9506
|
+
_this.isNotAllowMessage();
|
|
9516
9507
|
}
|
|
9517
9508
|
},
|
|
9518
9509
|
},
|
|
@@ -9579,6 +9570,13 @@
|
|
|
9579
9570
|
this.pixAccountItemInput = {};
|
|
9580
9571
|
this.visible = true;
|
|
9581
9572
|
};
|
|
9573
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9574
|
+
this.messageService.add({
|
|
9575
|
+
severity: "error",
|
|
9576
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9577
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9578
|
+
});
|
|
9579
|
+
};
|
|
9582
9580
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9583
9581
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9584
9582
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9724,23 +9722,30 @@
|
|
|
9724
9722
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9725
9723
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9726
9724
|
};
|
|
9725
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9726
|
+
get: function () {
|
|
9727
|
+
return (this.permission["incluir"]);
|
|
9728
|
+
},
|
|
9729
|
+
enumerable: true,
|
|
9730
|
+
configurable: true
|
|
9731
|
+
});
|
|
9727
9732
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9728
9733
|
get: function () {
|
|
9729
|
-
return (this.permission["
|
|
9734
|
+
return (this.permission["excluir"]);
|
|
9730
9735
|
},
|
|
9731
9736
|
enumerable: true,
|
|
9732
9737
|
configurable: true
|
|
9733
9738
|
});
|
|
9734
9739
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9735
9740
|
get: function () {
|
|
9736
|
-
return (this.permission["
|
|
9741
|
+
return (this.permission["editar"]);
|
|
9737
9742
|
},
|
|
9738
9743
|
enumerable: true,
|
|
9739
9744
|
configurable: true
|
|
9740
9745
|
});
|
|
9741
9746
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9742
9747
|
get: function () {
|
|
9743
|
-
return (this.permission["
|
|
9748
|
+
return (this.permission["visualizar"]);
|
|
9744
9749
|
},
|
|
9745
9750
|
enumerable: true,
|
|
9746
9751
|
configurable: true
|
|
@@ -10533,23 +10538,17 @@
|
|
|
10533
10538
|
{
|
|
10534
10539
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10535
10540
|
command: function () {
|
|
10536
|
-
if (_this.isAllowToViewHistorical
|
|
10541
|
+
if (_this.isAllowToViewHistorical) {
|
|
10537
10542
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10538
|
-
if (_this.withSidebar)
|
|
10543
|
+
if (_this.withSidebar)
|
|
10539
10544
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10540
10545
|
relativeTo: _this.activatedRoute,
|
|
10541
10546
|
});
|
|
10542
|
-
|
|
10543
|
-
else {
|
|
10547
|
+
else
|
|
10544
10548
|
_this.enableView.emit(dateChange);
|
|
10545
|
-
}
|
|
10546
10549
|
}
|
|
10547
10550
|
else {
|
|
10548
|
-
_this.
|
|
10549
|
-
severity: "error",
|
|
10550
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10551
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10552
|
-
});
|
|
10551
|
+
_this.isNotAllowMessage();
|
|
10553
10552
|
}
|
|
10554
10553
|
},
|
|
10555
10554
|
},
|
|
@@ -10560,11 +10559,7 @@
|
|
|
10560
10559
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10561
10560
|
}
|
|
10562
10561
|
else {
|
|
10563
|
-
_this.
|
|
10564
|
-
severity: "error",
|
|
10565
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10566
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10567
|
-
});
|
|
10562
|
+
_this.isNotAllowMessage();
|
|
10568
10563
|
}
|
|
10569
10564
|
},
|
|
10570
10565
|
},
|
|
@@ -10622,6 +10617,13 @@
|
|
|
10622
10617
|
});
|
|
10623
10618
|
}
|
|
10624
10619
|
};
|
|
10620
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10621
|
+
this.messageService.add({
|
|
10622
|
+
severity: "error",
|
|
10623
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10624
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10625
|
+
});
|
|
10626
|
+
};
|
|
10625
10627
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10626
10628
|
if (payload && payload.length) {
|
|
10627
10629
|
this.lastRecord = payload[0];
|
|
@@ -10629,21 +10631,21 @@
|
|
|
10629
10631
|
};
|
|
10630
10632
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10631
10633
|
get: function () {
|
|
10632
|
-
return (this.permission["
|
|
10634
|
+
return (this.permission["incluir"]);
|
|
10633
10635
|
},
|
|
10634
10636
|
enumerable: true,
|
|
10635
10637
|
configurable: true
|
|
10636
10638
|
});
|
|
10637
10639
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10638
10640
|
get: function () {
|
|
10639
|
-
return (this.permission["
|
|
10641
|
+
return (this.permission["excluir"]);
|
|
10640
10642
|
},
|
|
10641
10643
|
enumerable: true,
|
|
10642
10644
|
configurable: true
|
|
10643
10645
|
});
|
|
10644
10646
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10645
10647
|
get: function () {
|
|
10646
|
-
return (this.permission["
|
|
10648
|
+
return (this.permission["visualizar"]);
|
|
10647
10649
|
},
|
|
10648
10650
|
enumerable: true,
|
|
10649
10651
|
configurable: true
|