@senior-gestao-pessoas/payroll-core 9.3.0-06156ffc-852c-4f04-8482-5c4f9317ecff → 9.3.0-0a28751a-09d5-4c6f-ad82-be2566554925
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 +56 -33
- 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 +2 -0
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +36 -20
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -16
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +40 -20
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -16
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +52 -33
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +56 -33
- 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
|
@@ -8565,26 +8565,33 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8565
8565
|
visible: this.isEditMode,
|
|
8566
8566
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
8567
8567
|
command: () => {
|
|
8568
|
-
|
|
8569
|
-
this.
|
|
8570
|
-
|
|
8568
|
+
console.log('CAALING VIEW');
|
|
8569
|
+
if (this.isAllowToViewHistorical) {
|
|
8570
|
+
console.log('IS ALLOW TO VIEW');
|
|
8571
|
+
rowData["index"] = key;
|
|
8572
|
+
this.pixAccountItemInput = { currentItem: rowData, listData: this.listDataNoPage, isEditMode: false };
|
|
8573
|
+
this.visible = true;
|
|
8574
|
+
}
|
|
8575
|
+
else {
|
|
8576
|
+
console.log('IS NOT ALLOW TO VIEW');
|
|
8577
|
+
this.isNotAllowMessage();
|
|
8578
|
+
}
|
|
8571
8579
|
},
|
|
8572
8580
|
},
|
|
8573
8581
|
{
|
|
8574
8582
|
visible: !!(!this.isEditMode && this.withSideBar),
|
|
8575
8583
|
label: this.translateService.instant("hcm.payroll.edit"),
|
|
8576
8584
|
command: () => {
|
|
8577
|
-
|
|
8585
|
+
console.log('CAALING EDIT');
|
|
8586
|
+
if (this.isAllowToEditHistorical) {
|
|
8587
|
+
console.log('IS ALLOW TO EDIT');
|
|
8578
8588
|
rowData["index"] = key;
|
|
8579
8589
|
this.pixAccountItemInput = { currentItem: rowData, listData: this.listDataNoPage, isEditMode: true };
|
|
8580
8590
|
this.visible = true;
|
|
8581
8591
|
}
|
|
8582
8592
|
else {
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8586
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8587
|
-
});
|
|
8593
|
+
console.log('IS NOT ALLOW TO EDIT');
|
|
8594
|
+
this.isNotAllowMessage();
|
|
8588
8595
|
}
|
|
8589
8596
|
},
|
|
8590
8597
|
},
|
|
@@ -8592,16 +8599,15 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8592
8599
|
visible: !this.isEditMode,
|
|
8593
8600
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
8594
8601
|
command: () => {
|
|
8595
|
-
|
|
8602
|
+
console.log('CAALING DELETE');
|
|
8603
|
+
if (this.isAllowToDeleteHistorical) {
|
|
8604
|
+
console.log('IS ALLOW TO DELETE');
|
|
8596
8605
|
this.loading = true;
|
|
8597
8606
|
this.deleteAnnuityItem(key);
|
|
8598
8607
|
}
|
|
8599
8608
|
else {
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8603
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8604
|
-
});
|
|
8609
|
+
console.log('IS NOT ALLOW TO DELETE');
|
|
8610
|
+
this.isNotAllowMessage();
|
|
8605
8611
|
}
|
|
8606
8612
|
},
|
|
8607
8613
|
},
|
|
@@ -8667,6 +8673,13 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8667
8673
|
this.pixAccountItemInput = {};
|
|
8668
8674
|
this.visible = true;
|
|
8669
8675
|
}
|
|
8676
|
+
isNotAllowMessage() {
|
|
8677
|
+
this.messageService.add({
|
|
8678
|
+
severity: "error",
|
|
8679
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8680
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8681
|
+
});
|
|
8682
|
+
}
|
|
8670
8683
|
deleteAnnuityItem(index) {
|
|
8671
8684
|
let newlist = [...this.getHistoricalPixAccountList()];
|
|
8672
8685
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -8782,14 +8795,17 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8782
8795
|
getFormattedPercentage(value) {
|
|
8783
8796
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
8784
8797
|
}
|
|
8798
|
+
get isAllowToAddHistorical() {
|
|
8799
|
+
return (this.permission["incluir"]);
|
|
8800
|
+
}
|
|
8785
8801
|
get isAllowToDeleteHistorical() {
|
|
8786
|
-
return (this.permission["
|
|
8802
|
+
return (this.permission["excluir"]);
|
|
8787
8803
|
}
|
|
8788
8804
|
get isAllowToEditHistorical() {
|
|
8789
|
-
return (this.permission["
|
|
8805
|
+
return (this.permission["editar"]);
|
|
8790
8806
|
}
|
|
8791
8807
|
get isAllowToViewHistorical() {
|
|
8792
|
-
return (this.permission["
|
|
8808
|
+
return (this.permission["visualizar"]);
|
|
8793
8809
|
}
|
|
8794
8810
|
};
|
|
8795
8811
|
HistoricalPixAccountComponent.ctorParameters = () => [
|
|
@@ -9477,6 +9493,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9477
9493
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
9478
9494
|
this.keyPayload = "historicalEmployeePix";
|
|
9479
9495
|
this.withSidebar = true;
|
|
9496
|
+
this.isOnlyView = new EventEmitter();
|
|
9480
9497
|
this.enableView = new EventEmitter();
|
|
9481
9498
|
this.ngUnsubscribe = new Subject();
|
|
9482
9499
|
this.loading = true;
|
|
@@ -9542,10 +9559,10 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9542
9559
|
{
|
|
9543
9560
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9544
9561
|
command: () => {
|
|
9545
|
-
|
|
9546
|
-
if (this.isAllowToViewHistorical && rowData) {
|
|
9562
|
+
if (this.isAllowToViewHistorical) {
|
|
9547
9563
|
const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
|
|
9548
9564
|
if (this.withSidebar) {
|
|
9565
|
+
this.isOnlyView.emit(true);
|
|
9549
9566
|
this.router.navigate([`historical-pix-account/${dateChange}`], {
|
|
9550
9567
|
relativeTo: this.activatedRoute,
|
|
9551
9568
|
});
|
|
@@ -9555,11 +9572,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9555
9572
|
}
|
|
9556
9573
|
}
|
|
9557
9574
|
else {
|
|
9558
|
-
this.
|
|
9559
|
-
severity: "error",
|
|
9560
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9561
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9562
|
-
});
|
|
9575
|
+
this.isNotAllowMessage();
|
|
9563
9576
|
}
|
|
9564
9577
|
},
|
|
9565
9578
|
},
|
|
@@ -9570,11 +9583,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9570
9583
|
this.delete(rowData.id, rowData.dateChange);
|
|
9571
9584
|
}
|
|
9572
9585
|
else {
|
|
9573
|
-
this.
|
|
9574
|
-
severity: "error",
|
|
9575
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9576
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9577
|
-
});
|
|
9586
|
+
this.isNotAllowMessage();
|
|
9578
9587
|
}
|
|
9579
9588
|
},
|
|
9580
9589
|
},
|
|
@@ -9631,19 +9640,26 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9631
9640
|
});
|
|
9632
9641
|
}
|
|
9633
9642
|
}
|
|
9643
|
+
isNotAllowMessage() {
|
|
9644
|
+
this.messageService.add({
|
|
9645
|
+
severity: "error",
|
|
9646
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9647
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9648
|
+
});
|
|
9649
|
+
}
|
|
9634
9650
|
onGridLoad(payload) {
|
|
9635
9651
|
if (payload && payload.length) {
|
|
9636
9652
|
this.lastRecord = payload[0];
|
|
9637
9653
|
}
|
|
9638
9654
|
}
|
|
9639
9655
|
get isAllowToAddHistorical() {
|
|
9640
|
-
return (this.permission["
|
|
9656
|
+
return (this.permission["incluir"]);
|
|
9641
9657
|
}
|
|
9642
9658
|
get isAllowToDeleteHistorical() {
|
|
9643
|
-
return (this.permission["
|
|
9659
|
+
return (this.permission["excluir"]);
|
|
9644
9660
|
}
|
|
9645
9661
|
get isAllowToViewHistorical() {
|
|
9646
|
-
return (this.permission["
|
|
9662
|
+
return (this.permission["visualizar"]);
|
|
9647
9663
|
}
|
|
9648
9664
|
get scopedActions() {
|
|
9649
9665
|
return this.getMenuActions.bind(this);
|
|
@@ -9688,6 +9704,9 @@ __decorate([
|
|
|
9688
9704
|
__decorate([
|
|
9689
9705
|
Input()
|
|
9690
9706
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
9707
|
+
__decorate([
|
|
9708
|
+
Output()
|
|
9709
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
9691
9710
|
__decorate([
|
|
9692
9711
|
Output()
|
|
9693
9712
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|