@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
|
@@ -9434,6 +9434,11 @@
|
|
|
9434
9434
|
this.isViewMode = false;
|
|
9435
9435
|
this.withSideBar = true;
|
|
9436
9436
|
this.defaultCpfNumber = null;
|
|
9437
|
+
this.listDataReciever = [];
|
|
9438
|
+
this.isOnlyView = new core.EventEmitter();
|
|
9439
|
+
this.isOnlyEdit = new core.EventEmitter();
|
|
9440
|
+
this.isOnlyDelete = new core.EventEmitter();
|
|
9441
|
+
this.listFromApp = [];
|
|
9437
9442
|
this.visibleChange = new core.EventEmitter();
|
|
9438
9443
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
9439
9444
|
this.orderBy = {
|
|
@@ -9464,7 +9469,6 @@
|
|
|
9464
9469
|
if (rowData === void 0) { rowData = {}; }
|
|
9465
9470
|
return [
|
|
9466
9471
|
{
|
|
9467
|
-
isNotAllowMessage: _this.isNotAllowMessage(_this.isAllowToViewHistorical),
|
|
9468
9472
|
visible: _this.isEditMode,
|
|
9469
9473
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9470
9474
|
command: function () {
|
|
@@ -9474,12 +9478,11 @@
|
|
|
9474
9478
|
_this.visible = true;
|
|
9475
9479
|
}
|
|
9476
9480
|
else {
|
|
9477
|
-
|
|
9481
|
+
_this.isOnlyView.emit(true);
|
|
9478
9482
|
}
|
|
9479
9483
|
},
|
|
9480
9484
|
},
|
|
9481
9485
|
{
|
|
9482
|
-
isNotAllowMessage: _this.isNotAllowMessage(_this.isAllowToEditHistorical),
|
|
9483
9486
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9484
9487
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9485
9488
|
command: function () {
|
|
@@ -9489,12 +9492,16 @@
|
|
|
9489
9492
|
_this.visible = true;
|
|
9490
9493
|
}
|
|
9491
9494
|
else {
|
|
9492
|
-
|
|
9495
|
+
_this.isOnlyEdit.emit(true);
|
|
9496
|
+
if (_this.listFromApp.length == 0) {
|
|
9497
|
+
rowData["index"] = key;
|
|
9498
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9499
|
+
_this.visible = true;
|
|
9500
|
+
}
|
|
9493
9501
|
}
|
|
9494
9502
|
},
|
|
9495
9503
|
},
|
|
9496
9504
|
{
|
|
9497
|
-
isNotAllowMessage: _this.isNotAllowMessage(_this.isAllowToDeleteHistorical),
|
|
9498
9505
|
visible: !_this.isEditMode,
|
|
9499
9506
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9500
9507
|
command: function () {
|
|
@@ -9503,7 +9510,11 @@
|
|
|
9503
9510
|
_this.deleteAnnuityItem(key);
|
|
9504
9511
|
}
|
|
9505
9512
|
else {
|
|
9506
|
-
|
|
9513
|
+
_this.isOnlyDelete.emit(true);
|
|
9514
|
+
if (_this.listFromApp.length == 0) {
|
|
9515
|
+
_this.loading = true;
|
|
9516
|
+
_this.deleteAnnuityItem(key);
|
|
9517
|
+
}
|
|
9507
9518
|
}
|
|
9508
9519
|
},
|
|
9509
9520
|
},
|
|
@@ -9514,6 +9525,11 @@
|
|
|
9514
9525
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9515
9526
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9516
9527
|
};
|
|
9528
|
+
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9529
|
+
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9530
|
+
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9531
|
+
}
|
|
9532
|
+
};
|
|
9517
9533
|
HistoricalPixAccountComponent.prototype.createFormGroup = function () {
|
|
9518
9534
|
this.historicalPixAccountList = this.formBuilder.group({
|
|
9519
9535
|
historicalPixAccountList: this.formBuilder.control(null),
|
|
@@ -9570,14 +9586,12 @@
|
|
|
9570
9586
|
this.pixAccountItemInput = {};
|
|
9571
9587
|
this.visible = true;
|
|
9572
9588
|
};
|
|
9573
|
-
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function (
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
});
|
|
9580
|
-
}
|
|
9589
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9590
|
+
this.messageService.add({
|
|
9591
|
+
severity: "error",
|
|
9592
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9593
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9594
|
+
});
|
|
9581
9595
|
};
|
|
9582
9596
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9583
9597
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
@@ -9809,6 +9823,18 @@
|
|
|
9809
9823
|
__decorate([
|
|
9810
9824
|
core.Input()
|
|
9811
9825
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9826
|
+
__decorate([
|
|
9827
|
+
core.Input()
|
|
9828
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
9829
|
+
__decorate([
|
|
9830
|
+
core.Output()
|
|
9831
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
|
|
9832
|
+
__decorate([
|
|
9833
|
+
core.Output()
|
|
9834
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
|
|
9835
|
+
__decorate([
|
|
9836
|
+
core.Output()
|
|
9837
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
|
|
9812
9838
|
__decorate([
|
|
9813
9839
|
core.Input()
|
|
9814
9840
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10473,6 +10499,7 @@
|
|
|
10473
10499
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10474
10500
|
this.keyPayload = "historicalEmployeePix";
|
|
10475
10501
|
this.withSidebar = true;
|
|
10502
|
+
this.isOnlyView = new core.EventEmitter();
|
|
10476
10503
|
this.enableView = new core.EventEmitter();
|
|
10477
10504
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10478
10505
|
this.loading = true;
|
|
@@ -10542,19 +10569,18 @@
|
|
|
10542
10569
|
command: function () {
|
|
10543
10570
|
if (_this.isAllowToViewHistorical) {
|
|
10544
10571
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10545
|
-
if (_this.withSidebar)
|
|
10572
|
+
if (_this.withSidebar) {
|
|
10573
|
+
_this.isOnlyView.emit(true);
|
|
10546
10574
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10547
10575
|
relativeTo: _this.activatedRoute,
|
|
10548
10576
|
});
|
|
10549
|
-
|
|
10577
|
+
}
|
|
10578
|
+
else {
|
|
10550
10579
|
_this.enableView.emit(dateChange);
|
|
10580
|
+
}
|
|
10551
10581
|
}
|
|
10552
10582
|
else {
|
|
10553
|
-
_this.
|
|
10554
|
-
severity: "error",
|
|
10555
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10556
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10557
|
-
});
|
|
10583
|
+
_this.isNotAllowMessage();
|
|
10558
10584
|
}
|
|
10559
10585
|
},
|
|
10560
10586
|
},
|
|
@@ -10565,11 +10591,7 @@
|
|
|
10565
10591
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10566
10592
|
}
|
|
10567
10593
|
else {
|
|
10568
|
-
_this.
|
|
10569
|
-
severity: "error",
|
|
10570
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10571
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10572
|
-
});
|
|
10594
|
+
_this.isNotAllowMessage();
|
|
10573
10595
|
}
|
|
10574
10596
|
},
|
|
10575
10597
|
},
|
|
@@ -10627,6 +10649,13 @@
|
|
|
10627
10649
|
});
|
|
10628
10650
|
}
|
|
10629
10651
|
};
|
|
10652
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10653
|
+
this.messageService.add({
|
|
10654
|
+
severity: "error",
|
|
10655
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10656
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10657
|
+
});
|
|
10658
|
+
};
|
|
10630
10659
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10631
10660
|
if (payload && payload.length) {
|
|
10632
10661
|
this.lastRecord = payload[0];
|
|
@@ -10703,6 +10732,9 @@
|
|
|
10703
10732
|
__decorate([
|
|
10704
10733
|
core.Input()
|
|
10705
10734
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10735
|
+
__decorate([
|
|
10736
|
+
core.Output()
|
|
10737
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10706
10738
|
__decorate([
|
|
10707
10739
|
core.Output()
|
|
10708
10740
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|