@senior-gestao-pessoas/payroll-core 9.3.0-fdc2ca03-c046-451a-bb4a-4d788fbde8cb → 9.4.0-a9314477-d301-4380-b67e-31e2d2abb4e5
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 +87 -32
- 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 +10 -2
- 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 +59 -21
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +28 -15
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +63 -21
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +28 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +83 -32
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +87 -32
- 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
|
@@ -8533,6 +8533,11 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8533
8533
|
this.isViewMode = false;
|
|
8534
8534
|
this.withSideBar = true;
|
|
8535
8535
|
this.defaultCpfNumber = null;
|
|
8536
|
+
this.listDataReciever = [];
|
|
8537
|
+
this.isViewModeActive = new EventEmitter();
|
|
8538
|
+
this.isEditModeActive = new EventEmitter();
|
|
8539
|
+
this.isDeleteModeActive = new EventEmitter();
|
|
8540
|
+
this.listFromApp = [];
|
|
8536
8541
|
this.visibleChange = new EventEmitter();
|
|
8537
8542
|
this.ngUnsubscribe = new Subject();
|
|
8538
8543
|
this.orderBy = {
|
|
@@ -8565,26 +8570,32 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8565
8570
|
visible: this.isEditMode,
|
|
8566
8571
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
8567
8572
|
command: () => {
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8573
|
+
if (this.isAllowToViewHistorical) {
|
|
8574
|
+
rowData["index"] = key;
|
|
8575
|
+
this.pixAccountItemInput = { currentItem: rowData, listData: this.listDataNoPage, isEditMode: false };
|
|
8576
|
+
this.visible = true;
|
|
8577
|
+
}
|
|
8578
|
+
else {
|
|
8579
|
+
this.isViewModeActive.emit(true);
|
|
8580
|
+
}
|
|
8571
8581
|
},
|
|
8572
8582
|
},
|
|
8573
8583
|
{
|
|
8574
8584
|
visible: !!(!this.isEditMode && this.withSideBar),
|
|
8575
8585
|
label: this.translateService.instant("hcm.payroll.edit"),
|
|
8576
8586
|
command: () => {
|
|
8577
|
-
if (this.isAllowToEditHistorical
|
|
8587
|
+
if (this.isAllowToEditHistorical) {
|
|
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
|
-
this.
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8593
|
+
this.isEditModeActive.emit(true);
|
|
8594
|
+
if (this.listFromApp.length == 0) {
|
|
8595
|
+
rowData["index"] = key;
|
|
8596
|
+
this.pixAccountItemInput = { currentItem: rowData, listData: this.listDataNoPage, isEditMode: true };
|
|
8597
|
+
this.visible = true;
|
|
8598
|
+
}
|
|
8588
8599
|
}
|
|
8589
8600
|
},
|
|
8590
8601
|
},
|
|
@@ -8592,16 +8603,16 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8592
8603
|
visible: !this.isEditMode,
|
|
8593
8604
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
8594
8605
|
command: () => {
|
|
8595
|
-
if (this.isAllowToDeleteHistorical
|
|
8606
|
+
if (this.isAllowToDeleteHistorical) {
|
|
8596
8607
|
this.loading = true;
|
|
8597
8608
|
this.deleteAnnuityItem(key);
|
|
8598
8609
|
}
|
|
8599
8610
|
else {
|
|
8600
|
-
this.
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
}
|
|
8611
|
+
this.isDeleteModeActive.emit(true);
|
|
8612
|
+
if (this.listFromApp.length == 0) {
|
|
8613
|
+
this.loading = true;
|
|
8614
|
+
this.deleteAnnuityItem(key);
|
|
8615
|
+
}
|
|
8605
8616
|
}
|
|
8606
8617
|
},
|
|
8607
8618
|
},
|
|
@@ -8612,6 +8623,11 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8612
8623
|
ngOnInit() {
|
|
8613
8624
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
8614
8625
|
}
|
|
8626
|
+
ngOnChanges(changes) {
|
|
8627
|
+
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
8628
|
+
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
8629
|
+
}
|
|
8630
|
+
}
|
|
8615
8631
|
createFormGroup() {
|
|
8616
8632
|
this.historicalPixAccountList = this.formBuilder.group({
|
|
8617
8633
|
historicalPixAccountList: this.formBuilder.control(null),
|
|
@@ -8667,6 +8683,13 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8667
8683
|
this.pixAccountItemInput = {};
|
|
8668
8684
|
this.visible = true;
|
|
8669
8685
|
}
|
|
8686
|
+
isNotAllowMessage() {
|
|
8687
|
+
this.messageService.add({
|
|
8688
|
+
severity: "error",
|
|
8689
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
8690
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
8691
|
+
});
|
|
8692
|
+
}
|
|
8670
8693
|
deleteAnnuityItem(index) {
|
|
8671
8694
|
let newlist = [...this.getHistoricalPixAccountList()];
|
|
8672
8695
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -8782,14 +8805,17 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8782
8805
|
getFormattedPercentage(value) {
|
|
8783
8806
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
8784
8807
|
}
|
|
8808
|
+
get isAllowToAddHistorical() {
|
|
8809
|
+
return (this.permission["incluir"]);
|
|
8810
|
+
}
|
|
8785
8811
|
get isAllowToDeleteHistorical() {
|
|
8786
|
-
return (this.permission["
|
|
8812
|
+
return (this.permission["excluir"]);
|
|
8787
8813
|
}
|
|
8788
8814
|
get isAllowToEditHistorical() {
|
|
8789
|
-
return (this.permission["
|
|
8815
|
+
return (this.permission["editar"]);
|
|
8790
8816
|
}
|
|
8791
8817
|
get isAllowToViewHistorical() {
|
|
8792
|
-
return (this.permission["
|
|
8818
|
+
return (this.permission["visualizar"]);
|
|
8793
8819
|
}
|
|
8794
8820
|
};
|
|
8795
8821
|
HistoricalPixAccountComponent.ctorParameters = () => [
|
|
@@ -8849,6 +8875,18 @@ __decorate([
|
|
|
8849
8875
|
__decorate([
|
|
8850
8876
|
Input()
|
|
8851
8877
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
8878
|
+
__decorate([
|
|
8879
|
+
Input()
|
|
8880
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
8881
|
+
__decorate([
|
|
8882
|
+
Output()
|
|
8883
|
+
], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);
|
|
8884
|
+
__decorate([
|
|
8885
|
+
Output()
|
|
8886
|
+
], HistoricalPixAccountComponent.prototype, "isEditModeActive", void 0);
|
|
8887
|
+
__decorate([
|
|
8888
|
+
Output()
|
|
8889
|
+
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
8852
8890
|
__decorate([
|
|
8853
8891
|
Input()
|
|
8854
8892
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -9477,6 +9515,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9477
9515
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
9478
9516
|
this.keyPayload = "historicalEmployeePix";
|
|
9479
9517
|
this.withSidebar = true;
|
|
9518
|
+
this.isOnlyView = new EventEmitter();
|
|
9480
9519
|
this.enableView = new EventEmitter();
|
|
9481
9520
|
this.ngUnsubscribe = new Subject();
|
|
9482
9521
|
this.loading = true;
|
|
@@ -9542,14 +9581,20 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9542
9581
|
{
|
|
9543
9582
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9544
9583
|
command: () => {
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
this.
|
|
9548
|
-
|
|
9549
|
-
|
|
9584
|
+
if (this.isAllowToViewHistorical) {
|
|
9585
|
+
const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
|
|
9586
|
+
if (this.withSidebar) {
|
|
9587
|
+
this.isOnlyView.emit(true);
|
|
9588
|
+
this.router.navigate([`historical-pix-account/${dateChange}`], {
|
|
9589
|
+
relativeTo: this.activatedRoute,
|
|
9590
|
+
});
|
|
9591
|
+
}
|
|
9592
|
+
else {
|
|
9593
|
+
this.enableView.emit(dateChange);
|
|
9594
|
+
}
|
|
9550
9595
|
}
|
|
9551
9596
|
else {
|
|
9552
|
-
this.
|
|
9597
|
+
this.isNotAllowMessage();
|
|
9553
9598
|
}
|
|
9554
9599
|
},
|
|
9555
9600
|
},
|
|
@@ -9560,11 +9605,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9560
9605
|
this.delete(rowData.id, rowData.dateChange);
|
|
9561
9606
|
}
|
|
9562
9607
|
else {
|
|
9563
|
-
this.
|
|
9564
|
-
severity: "error",
|
|
9565
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9566
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9567
|
-
});
|
|
9608
|
+
this.isNotAllowMessage();
|
|
9568
9609
|
}
|
|
9569
9610
|
},
|
|
9570
9611
|
},
|
|
@@ -9621,19 +9662,26 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9621
9662
|
});
|
|
9622
9663
|
}
|
|
9623
9664
|
}
|
|
9665
|
+
isNotAllowMessage() {
|
|
9666
|
+
this.messageService.add({
|
|
9667
|
+
severity: "error",
|
|
9668
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9669
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9670
|
+
});
|
|
9671
|
+
}
|
|
9624
9672
|
onGridLoad(payload) {
|
|
9625
9673
|
if (payload && payload.length) {
|
|
9626
9674
|
this.lastRecord = payload[0];
|
|
9627
9675
|
}
|
|
9628
9676
|
}
|
|
9629
9677
|
get isAllowToAddHistorical() {
|
|
9630
|
-
return (this.permission["
|
|
9678
|
+
return (this.permission["incluir"]);
|
|
9631
9679
|
}
|
|
9632
9680
|
get isAllowToDeleteHistorical() {
|
|
9633
|
-
return (this.permission["
|
|
9681
|
+
return (this.permission["excluir"]);
|
|
9634
9682
|
}
|
|
9635
9683
|
get isAllowToViewHistorical() {
|
|
9636
|
-
return (this.permission["
|
|
9684
|
+
return (this.permission["visualizar"]);
|
|
9637
9685
|
}
|
|
9638
9686
|
get scopedActions() {
|
|
9639
9687
|
return this.getMenuActions.bind(this);
|
|
@@ -9678,6 +9726,9 @@ __decorate([
|
|
|
9678
9726
|
__decorate([
|
|
9679
9727
|
Input()
|
|
9680
9728
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
9729
|
+
__decorate([
|
|
9730
|
+
Output()
|
|
9731
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
9681
9732
|
__decorate([
|
|
9682
9733
|
Output()
|
|
9683
9734
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|