@senior-gestao-pessoas/payroll-core 9.3.0-4d39b464-875a-426e-94a5-e9a89ba0079c → 9.3.0-57601500-80d3-4392-a75e-35abea58468a
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 -31
- 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 +3 -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 +29 -19
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +22 -15
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +37 -19
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +22 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +48 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +56 -31
- 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,27 @@ 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
|
-
|
|
8570
|
-
|
|
8568
|
+
if (this.isAllowToViewHistorical) {
|
|
8569
|
+
rowData["index"] = key;
|
|
8570
|
+
this.pixAccountItemInput = { currentItem: rowData, listData: this.listDataNoPage, isEditMode: false };
|
|
8571
|
+
this.visible = true;
|
|
8572
|
+
}
|
|
8573
|
+
else {
|
|
8574
|
+
this.isNotAllowMessage();
|
|
8575
|
+
}
|
|
8571
8576
|
},
|
|
8572
8577
|
},
|
|
8573
8578
|
{
|
|
8574
8579
|
visible: !!(!this.isEditMode && this.withSideBar),
|
|
8575
8580
|
label: this.translateService.instant("hcm.payroll.edit"),
|
|
8576
8581
|
command: () => {
|
|
8577
|
-
if (this.isAllowToEditHistorical
|
|
8582
|
+
if (this.isAllowToEditHistorical) {
|
|
8578
8583
|
rowData["index"] = key;
|
|
8579
8584
|
this.pixAccountItemInput = { currentItem: rowData, listData: this.listDataNoPage, isEditMode: true };
|
|
8580
8585
|
this.visible = true;
|
|
8581
8586
|
}
|
|
8582
8587
|
else {
|
|
8583
|
-
this.
|
|
8584
|
-
severity: "error",
|
|
8585
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8586
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8587
|
-
});
|
|
8588
|
+
this.isNotAllowMessage();
|
|
8588
8589
|
}
|
|
8589
8590
|
},
|
|
8590
8591
|
},
|
|
@@ -8592,16 +8593,12 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8592
8593
|
visible: !this.isEditMode,
|
|
8593
8594
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
8594
8595
|
command: () => {
|
|
8595
|
-
if (this.isAllowToDeleteHistorical
|
|
8596
|
+
if (this.isAllowToDeleteHistorical) {
|
|
8596
8597
|
this.loading = true;
|
|
8597
8598
|
this.deleteAnnuityItem(key);
|
|
8598
8599
|
}
|
|
8599
8600
|
else {
|
|
8600
|
-
this.
|
|
8601
|
-
severity: "error",
|
|
8602
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8603
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8604
|
-
});
|
|
8601
|
+
this.isNotAllowMessage();
|
|
8605
8602
|
}
|
|
8606
8603
|
},
|
|
8607
8604
|
},
|
|
@@ -8667,6 +8664,13 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8667
8664
|
this.pixAccountItemInput = {};
|
|
8668
8665
|
this.visible = true;
|
|
8669
8666
|
}
|
|
8667
|
+
isNotAllowMessage() {
|
|
8668
|
+
this.messageService.add({
|
|
8669
|
+
severity: "error",
|
|
8670
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8671
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8672
|
+
});
|
|
8673
|
+
}
|
|
8670
8674
|
deleteAnnuityItem(index) {
|
|
8671
8675
|
let newlist = [...this.getHistoricalPixAccountList()];
|
|
8672
8676
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -8782,11 +8786,17 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8782
8786
|
getFormattedPercentage(value) {
|
|
8783
8787
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
8784
8788
|
}
|
|
8789
|
+
get isAllowToAddHistorical() {
|
|
8790
|
+
return (this.permission["incluir"]);
|
|
8791
|
+
}
|
|
8785
8792
|
get isAllowToDeleteHistorical() {
|
|
8786
|
-
return (this.permission["
|
|
8793
|
+
return (this.permission["excluir"]);
|
|
8787
8794
|
}
|
|
8788
8795
|
get isAllowToEditHistorical() {
|
|
8789
|
-
return (this.permission["
|
|
8796
|
+
return (this.permission["editar"]);
|
|
8797
|
+
}
|
|
8798
|
+
get isAllowToViewHistorical() {
|
|
8799
|
+
return (this.permission["visualizar"]);
|
|
8790
8800
|
}
|
|
8791
8801
|
};
|
|
8792
8802
|
HistoricalPixAccountComponent.ctorParameters = () => [
|
|
@@ -9474,6 +9484,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9474
9484
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
9475
9485
|
this.keyPayload = "historicalEmployeePix";
|
|
9476
9486
|
this.withSidebar = true;
|
|
9487
|
+
this.isOnlyView = new EventEmitter();
|
|
9477
9488
|
this.enableView = new EventEmitter();
|
|
9478
9489
|
this.ngUnsubscribe = new Subject();
|
|
9479
9490
|
this.loading = true;
|
|
@@ -9539,23 +9550,23 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9539
9550
|
{
|
|
9540
9551
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9541
9552
|
command: () => {
|
|
9542
|
-
|
|
9553
|
+
console.log('COMMAND CALLED');
|
|
9554
|
+
console.log('this.isAllowToViewHistorical', this.isAllowToViewHistorical);
|
|
9555
|
+
if (this.isAllowToViewHistorical) {
|
|
9543
9556
|
const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
|
|
9557
|
+
console.log('withSidebar', this.withSidebar);
|
|
9544
9558
|
if (this.withSidebar) {
|
|
9545
9559
|
this.router.navigate([`historical-pix-account/${dateChange}`], {
|
|
9546
9560
|
relativeTo: this.activatedRoute,
|
|
9547
9561
|
});
|
|
9548
9562
|
}
|
|
9549
9563
|
else {
|
|
9564
|
+
this.isOnlyView.emit(true);
|
|
9550
9565
|
this.enableView.emit(dateChange);
|
|
9551
9566
|
}
|
|
9552
9567
|
}
|
|
9553
9568
|
else {
|
|
9554
|
-
this.
|
|
9555
|
-
severity: "error",
|
|
9556
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9557
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9558
|
-
});
|
|
9569
|
+
this.isNotAllowMessage();
|
|
9559
9570
|
}
|
|
9560
9571
|
},
|
|
9561
9572
|
},
|
|
@@ -9566,11 +9577,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9566
9577
|
this.delete(rowData.id, rowData.dateChange);
|
|
9567
9578
|
}
|
|
9568
9579
|
else {
|
|
9569
|
-
this.
|
|
9570
|
-
severity: "error",
|
|
9571
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9572
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9573
|
-
});
|
|
9580
|
+
this.isNotAllowMessage();
|
|
9574
9581
|
}
|
|
9575
9582
|
},
|
|
9576
9583
|
},
|
|
@@ -9627,19 +9634,26 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9627
9634
|
});
|
|
9628
9635
|
}
|
|
9629
9636
|
}
|
|
9637
|
+
isNotAllowMessage() {
|
|
9638
|
+
this.messageService.add({
|
|
9639
|
+
severity: "error",
|
|
9640
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9641
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9642
|
+
});
|
|
9643
|
+
}
|
|
9630
9644
|
onGridLoad(payload) {
|
|
9631
9645
|
if (payload && payload.length) {
|
|
9632
9646
|
this.lastRecord = payload[0];
|
|
9633
9647
|
}
|
|
9634
9648
|
}
|
|
9635
9649
|
get isAllowToAddHistorical() {
|
|
9636
|
-
return (this.permission["
|
|
9650
|
+
return (this.permission["incluir"]);
|
|
9637
9651
|
}
|
|
9638
9652
|
get isAllowToDeleteHistorical() {
|
|
9639
|
-
return (this.permission["
|
|
9653
|
+
return (this.permission["excluir"]);
|
|
9640
9654
|
}
|
|
9641
9655
|
get isAllowToViewHistorical() {
|
|
9642
|
-
return (this.permission["
|
|
9656
|
+
return (this.permission["visualizar"]);
|
|
9643
9657
|
}
|
|
9644
9658
|
get scopedActions() {
|
|
9645
9659
|
return this.getMenuActions.bind(this);
|
|
@@ -9684,6 +9698,9 @@ __decorate([
|
|
|
9684
9698
|
__decorate([
|
|
9685
9699
|
Input()
|
|
9686
9700
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
9701
|
+
__decorate([
|
|
9702
|
+
Output()
|
|
9703
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
9687
9704
|
__decorate([
|
|
9688
9705
|
Output()
|
|
9689
9706
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|