@senior-gestao-pessoas/payroll-core 9.3.0-dfe04f23-c797-41a3-b912-c4cf9ef516cd → 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 +77 -20
- 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 +9 -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 +54 -11
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +10 -11
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +70 -11
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +10 -11
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +61 -20
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +77 -20
- 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;
|
|
@@ -9466,26 +9467,44 @@
|
|
|
9466
9467
|
visible: _this.isEditMode,
|
|
9467
9468
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9468
9469
|
command: function () {
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9470
|
+
if (_this.isAllowToViewHistorical) {
|
|
9471
|
+
rowData["index"] = key;
|
|
9472
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9473
|
+
_this.visible = true;
|
|
9474
|
+
}
|
|
9475
|
+
else {
|
|
9476
|
+
_this.visible = false;
|
|
9477
|
+
_this.isNotAllowMessage();
|
|
9478
|
+
}
|
|
9472
9479
|
},
|
|
9473
9480
|
},
|
|
9474
9481
|
{
|
|
9475
9482
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9476
9483
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9477
9484
|
command: function () {
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9485
|
+
if (_this.isAllowToEditHistorical) {
|
|
9486
|
+
rowData["index"] = key;
|
|
9487
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9488
|
+
_this.visible = true;
|
|
9489
|
+
}
|
|
9490
|
+
else {
|
|
9491
|
+
_this.visible = false;
|
|
9492
|
+
_this.isNotAllowMessage();
|
|
9493
|
+
}
|
|
9481
9494
|
},
|
|
9482
9495
|
},
|
|
9483
9496
|
{
|
|
9484
9497
|
visible: !_this.isEditMode,
|
|
9485
9498
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9486
9499
|
command: function () {
|
|
9487
|
-
_this.
|
|
9488
|
-
|
|
9500
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9501
|
+
_this.loading = true;
|
|
9502
|
+
_this.deleteAnnuityItem(key);
|
|
9503
|
+
}
|
|
9504
|
+
else {
|
|
9505
|
+
_this.visible = false;
|
|
9506
|
+
_this.isNotAllowMessage();
|
|
9507
|
+
}
|
|
9489
9508
|
},
|
|
9490
9509
|
},
|
|
9491
9510
|
];
|
|
@@ -9551,6 +9570,13 @@
|
|
|
9551
9570
|
this.pixAccountItemInput = {};
|
|
9552
9571
|
this.visible = true;
|
|
9553
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
|
+
};
|
|
9554
9580
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9555
9581
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9556
9582
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9696,10 +9722,39 @@
|
|
|
9696
9722
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9697
9723
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9698
9724
|
};
|
|
9725
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9726
|
+
get: function () {
|
|
9727
|
+
return (this.permission["incluir"]);
|
|
9728
|
+
},
|
|
9729
|
+
enumerable: true,
|
|
9730
|
+
configurable: true
|
|
9731
|
+
});
|
|
9732
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9733
|
+
get: function () {
|
|
9734
|
+
return (this.permission["excluir"]);
|
|
9735
|
+
},
|
|
9736
|
+
enumerable: true,
|
|
9737
|
+
configurable: true
|
|
9738
|
+
});
|
|
9739
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9740
|
+
get: function () {
|
|
9741
|
+
return (this.permission["editar"]);
|
|
9742
|
+
},
|
|
9743
|
+
enumerable: true,
|
|
9744
|
+
configurable: true
|
|
9745
|
+
});
|
|
9746
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9747
|
+
get: function () {
|
|
9748
|
+
return (this.permission["visualizar"]);
|
|
9749
|
+
},
|
|
9750
|
+
enumerable: true,
|
|
9751
|
+
configurable: true
|
|
9752
|
+
});
|
|
9699
9753
|
HistoricalPixAccountComponent.ctorParameters = function () { return [
|
|
9700
9754
|
{ type: core$1.TranslateService },
|
|
9701
9755
|
{ type: core.ChangeDetectorRef },
|
|
9702
|
-
{ type: forms.FormBuilder }
|
|
9756
|
+
{ type: forms.FormBuilder },
|
|
9757
|
+
{ type: api.MessageService }
|
|
9703
9758
|
]; };
|
|
9704
9759
|
__decorate([
|
|
9705
9760
|
core.ViewChild(angularComponents.CustomFieldsComponent, { static: false })
|
|
@@ -9749,6 +9804,9 @@
|
|
|
9749
9804
|
__decorate([
|
|
9750
9805
|
core.Input()
|
|
9751
9806
|
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
|
|
9807
|
+
__decorate([
|
|
9808
|
+
core.Input()
|
|
9809
|
+
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9752
9810
|
__decorate([
|
|
9753
9811
|
core.Input()
|
|
9754
9812
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10490,11 +10548,7 @@
|
|
|
10490
10548
|
_this.enableView.emit(dateChange);
|
|
10491
10549
|
}
|
|
10492
10550
|
else {
|
|
10493
|
-
_this.
|
|
10494
|
-
severity: "error",
|
|
10495
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10496
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10497
|
-
});
|
|
10551
|
+
_this.isNotAllowMessage();
|
|
10498
10552
|
}
|
|
10499
10553
|
},
|
|
10500
10554
|
},
|
|
@@ -10505,11 +10559,7 @@
|
|
|
10505
10559
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10506
10560
|
}
|
|
10507
10561
|
else {
|
|
10508
|
-
_this.
|
|
10509
|
-
severity: "error",
|
|
10510
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10511
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10512
|
-
});
|
|
10562
|
+
_this.isNotAllowMessage();
|
|
10513
10563
|
}
|
|
10514
10564
|
},
|
|
10515
10565
|
},
|
|
@@ -10567,6 +10617,13 @@
|
|
|
10567
10617
|
});
|
|
10568
10618
|
}
|
|
10569
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
|
+
};
|
|
10570
10627
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10571
10628
|
if (payload && payload.length) {
|
|
10572
10629
|
this.lastRecord = payload[0];
|