@senior-gestao-pessoas/payroll-core 9.3.0-784091e9-e857-4112-9344-e47026fdac80 → 9.3.0-8e3650be-79b5-4803-9eab-ad01b4739d46
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 +68 -13
- 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 +6 -1
- 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 +38 -8
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +21 -7
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +46 -8
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +25 -7
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +56 -13
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +68 -13
- 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
|
@@ -9422,11 +9422,12 @@
|
|
|
9422
9422
|
}());
|
|
9423
9423
|
|
|
9424
9424
|
var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
9425
|
-
function HistoricalPixAccountComponent(translateService, cd, formBuilder) {
|
|
9425
|
+
function HistoricalPixAccountComponent(translateService, cd, formBuilder, messageService) {
|
|
9426
9426
|
var _this = this;
|
|
9427
9427
|
this.translateService = translateService;
|
|
9428
9428
|
this.cd = cd;
|
|
9429
9429
|
this.formBuilder = formBuilder;
|
|
9430
|
+
this.messageService = messageService;
|
|
9430
9431
|
this.recordByRow = 1;
|
|
9431
9432
|
this.showDateChange = false;
|
|
9432
9433
|
this.isEditMode = false;
|
|
@@ -9475,17 +9476,35 @@
|
|
|
9475
9476
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9476
9477
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9477
9478
|
command: function () {
|
|
9478
|
-
rowData
|
|
9479
|
-
|
|
9480
|
-
|
|
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
|
+
}
|
|
9481
9491
|
},
|
|
9482
9492
|
},
|
|
9483
9493
|
{
|
|
9484
9494
|
visible: !_this.isEditMode,
|
|
9485
9495
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9486
9496
|
command: function () {
|
|
9487
|
-
_this.
|
|
9488
|
-
|
|
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
|
+
}
|
|
9489
9508
|
},
|
|
9490
9509
|
},
|
|
9491
9510
|
];
|
|
@@ -9696,10 +9715,25 @@
|
|
|
9696
9715
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9697
9716
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9698
9717
|
};
|
|
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
|
+
});
|
|
9699
9732
|
HistoricalPixAccountComponent.ctorParameters = function () { return [
|
|
9700
9733
|
{ type: core$1.TranslateService },
|
|
9701
9734
|
{ type: core.ChangeDetectorRef },
|
|
9702
|
-
{ type: forms.FormBuilder }
|
|
9735
|
+
{ type: forms.FormBuilder },
|
|
9736
|
+
{ type: api.MessageService }
|
|
9703
9737
|
]; };
|
|
9704
9738
|
__decorate([
|
|
9705
9739
|
core.ViewChild(angularComponents.CustomFieldsComponent, { static: false })
|
|
@@ -9749,6 +9783,9 @@
|
|
|
9749
9783
|
__decorate([
|
|
9750
9784
|
core.Input()
|
|
9751
9785
|
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
|
|
9786
|
+
__decorate([
|
|
9787
|
+
core.Input()
|
|
9788
|
+
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9752
9789
|
__decorate([
|
|
9753
9790
|
core.Input()
|
|
9754
9791
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10480,13 +10517,24 @@
|
|
|
10480
10517
|
{
|
|
10481
10518
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10482
10519
|
command: function () {
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
_this.
|
|
10486
|
-
|
|
10520
|
+
if (_this.isAllowToViewHistorical && rowData) {
|
|
10521
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10522
|
+
if (_this.withSidebar) {
|
|
10523
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10524
|
+
relativeTo: _this.activatedRoute,
|
|
10525
|
+
});
|
|
10526
|
+
}
|
|
10527
|
+
else {
|
|
10528
|
+
_this.enableView.emit(dateChange);
|
|
10529
|
+
}
|
|
10530
|
+
}
|
|
10531
|
+
else {
|
|
10532
|
+
_this.messageService.add({
|
|
10533
|
+
severity: "error",
|
|
10534
|
+
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10535
|
+
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10487
10536
|
});
|
|
10488
|
-
|
|
10489
|
-
_this.enableView.emit(dateChange);
|
|
10537
|
+
}
|
|
10490
10538
|
},
|
|
10491
10539
|
},
|
|
10492
10540
|
{
|
|
@@ -10577,6 +10625,13 @@
|
|
|
10577
10625
|
enumerable: true,
|
|
10578
10626
|
configurable: true
|
|
10579
10627
|
});
|
|
10628
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10629
|
+
get: function () {
|
|
10630
|
+
return (this.permission["visaulizar"]);
|
|
10631
|
+
},
|
|
10632
|
+
enumerable: true,
|
|
10633
|
+
configurable: true
|
|
10634
|
+
});
|
|
10580
10635
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
|
|
10581
10636
|
get: function () {
|
|
10582
10637
|
return this.getMenuActions.bind(this);
|