@senior-gestao-pessoas/payroll-core 9.3.0-3956a1cf-41cb-4c73-952b-4f96be631787 → 9.3.0-4c27311d-4594-4495-a90c-0e9e0ba69675
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 +58 -26
- 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 +8 -3
- 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 +42 -16
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -13
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +42 -16
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -13
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +58 -26
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +58 -26
- 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.isOnlyView = new EventEmitter();
|
|
8538
|
+
this.isOnlyEdit = new EventEmitter();
|
|
8539
|
+
this.isOnlyDelete = new EventEmitter();
|
|
8540
|
+
this.listFromApp = [];
|
|
8536
8541
|
this.visibleChange = new EventEmitter();
|
|
8537
8542
|
this.ngUnsubscribe = new Subject();
|
|
8538
8543
|
this.orderBy = {
|
|
@@ -8562,7 +8567,6 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8562
8567
|
this.actions = (rowData = {}, key) => {
|
|
8563
8568
|
return [
|
|
8564
8569
|
{
|
|
8565
|
-
isNotAllowMessage: this.isNotAllowMessage(this.isAllowToViewHistorical),
|
|
8566
8570
|
visible: this.isEditMode,
|
|
8567
8571
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
8568
8572
|
command: () => {
|
|
@@ -8572,12 +8576,11 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8572
8576
|
this.visible = true;
|
|
8573
8577
|
}
|
|
8574
8578
|
else {
|
|
8575
|
-
|
|
8579
|
+
this.isOnlyView.emit(true);
|
|
8576
8580
|
}
|
|
8577
8581
|
},
|
|
8578
8582
|
},
|
|
8579
8583
|
{
|
|
8580
|
-
isNotAllowMessage: this.isNotAllowMessage(this.isAllowToEditHistorical),
|
|
8581
8584
|
visible: !!(!this.isEditMode && this.withSideBar),
|
|
8582
8585
|
label: this.translateService.instant("hcm.payroll.edit"),
|
|
8583
8586
|
command: () => {
|
|
@@ -8587,12 +8590,16 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8587
8590
|
this.visible = true;
|
|
8588
8591
|
}
|
|
8589
8592
|
else {
|
|
8590
|
-
|
|
8593
|
+
this.isOnlyEdit.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
|
+
}
|
|
8591
8599
|
}
|
|
8592
8600
|
},
|
|
8593
8601
|
},
|
|
8594
8602
|
{
|
|
8595
|
-
isNotAllowMessage: this.isNotAllowMessage(this.isAllowToDeleteHistorical),
|
|
8596
8603
|
visible: !this.isEditMode,
|
|
8597
8604
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
8598
8605
|
command: () => {
|
|
@@ -8601,7 +8608,11 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8601
8608
|
this.deleteAnnuityItem(key);
|
|
8602
8609
|
}
|
|
8603
8610
|
else {
|
|
8604
|
-
|
|
8611
|
+
this.isOnlyDelete.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,14 +8683,12 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8667
8683
|
this.pixAccountItemInput = {};
|
|
8668
8684
|
this.visible = true;
|
|
8669
8685
|
}
|
|
8670
|
-
isNotAllowMessage(
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
});
|
|
8677
|
-
}
|
|
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
|
+
});
|
|
8678
8692
|
}
|
|
8679
8693
|
deleteAnnuityItem(index) {
|
|
8680
8694
|
let newlist = [...this.getHistoricalPixAccountList()];
|
|
@@ -8861,6 +8875,18 @@ __decorate([
|
|
|
8861
8875
|
__decorate([
|
|
8862
8876
|
Input()
|
|
8863
8877
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
8878
|
+
__decorate([
|
|
8879
|
+
Input()
|
|
8880
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
8881
|
+
__decorate([
|
|
8882
|
+
Output()
|
|
8883
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
|
|
8884
|
+
__decorate([
|
|
8885
|
+
Output()
|
|
8886
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
|
|
8887
|
+
__decorate([
|
|
8888
|
+
Output()
|
|
8889
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
|
|
8864
8890
|
__decorate([
|
|
8865
8891
|
Input()
|
|
8866
8892
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -9489,6 +9515,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9489
9515
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
9490
9516
|
this.keyPayload = "historicalEmployeePix";
|
|
9491
9517
|
this.withSidebar = true;
|
|
9518
|
+
this.isOnlyView = new EventEmitter();
|
|
9492
9519
|
this.enableView = new EventEmitter();
|
|
9493
9520
|
this.ngUnsubscribe = new Subject();
|
|
9494
9521
|
this.loading = true;
|
|
@@ -9556,19 +9583,18 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9556
9583
|
command: () => {
|
|
9557
9584
|
if (this.isAllowToViewHistorical) {
|
|
9558
9585
|
const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
|
|
9559
|
-
if (this.withSidebar)
|
|
9586
|
+
if (this.withSidebar) {
|
|
9587
|
+
this.isOnlyView.emit(true);
|
|
9560
9588
|
this.router.navigate([`historical-pix-account/${dateChange}`], {
|
|
9561
9589
|
relativeTo: this.activatedRoute,
|
|
9562
9590
|
});
|
|
9563
|
-
|
|
9591
|
+
}
|
|
9592
|
+
else {
|
|
9564
9593
|
this.enableView.emit(dateChange);
|
|
9594
|
+
}
|
|
9565
9595
|
}
|
|
9566
9596
|
else {
|
|
9567
|
-
this.
|
|
9568
|
-
severity: "error",
|
|
9569
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9570
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9571
|
-
});
|
|
9597
|
+
this.isNotAllowMessage();
|
|
9572
9598
|
}
|
|
9573
9599
|
},
|
|
9574
9600
|
},
|
|
@@ -9579,11 +9605,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9579
9605
|
this.delete(rowData.id, rowData.dateChange);
|
|
9580
9606
|
}
|
|
9581
9607
|
else {
|
|
9582
|
-
this.
|
|
9583
|
-
severity: "error",
|
|
9584
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9585
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9586
|
-
});
|
|
9608
|
+
this.isNotAllowMessage();
|
|
9587
9609
|
}
|
|
9588
9610
|
},
|
|
9589
9611
|
},
|
|
@@ -9640,6 +9662,13 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
|
|
|
9640
9662
|
});
|
|
9641
9663
|
}
|
|
9642
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
|
+
}
|
|
9643
9672
|
onGridLoad(payload) {
|
|
9644
9673
|
if (payload && payload.length) {
|
|
9645
9674
|
this.lastRecord = payload[0];
|
|
@@ -9697,6 +9726,9 @@ __decorate([
|
|
|
9697
9726
|
__decorate([
|
|
9698
9727
|
Input()
|
|
9699
9728
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
9729
|
+
__decorate([
|
|
9730
|
+
Output()
|
|
9731
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
9700
9732
|
__decorate([
|
|
9701
9733
|
Output()
|
|
9702
9734
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|