@senior-gestao-pessoas/payroll-core 9.3.0-4d39b464-875a-426e-94a5-e9a89ba0079c → 9.3.0-56ba6c21-b9f9-42a3-b8a4-a98934e9ccdf
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 +84 -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 +11 -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 +61 -20
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -15
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +69 -20
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +76 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +84 -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
|
@@ -9434,6 +9434,11 @@
|
|
|
9434
9434
|
this.isViewMode = false;
|
|
9435
9435
|
this.withSideBar = true;
|
|
9436
9436
|
this.defaultCpfNumber = null;
|
|
9437
|
+
this.listDataReciever = [];
|
|
9438
|
+
this.isViewModeActive = new core.EventEmitter();
|
|
9439
|
+
this.isEditModeActive = new core.EventEmitter();
|
|
9440
|
+
this.isDeleteModeActive = new core.EventEmitter();
|
|
9441
|
+
this.listFromApp = [];
|
|
9437
9442
|
this.visibleChange = new core.EventEmitter();
|
|
9438
9443
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
9439
9444
|
this.orderBy = {
|
|
@@ -9467,26 +9472,32 @@
|
|
|
9467
9472
|
visible: _this.isEditMode,
|
|
9468
9473
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9469
9474
|
command: function () {
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9475
|
+
if (_this.isAllowToViewHistorical) {
|
|
9476
|
+
rowData["index"] = key;
|
|
9477
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9478
|
+
_this.visible = true;
|
|
9479
|
+
}
|
|
9480
|
+
else {
|
|
9481
|
+
_this.isViewModeActive.emit(true);
|
|
9482
|
+
}
|
|
9473
9483
|
},
|
|
9474
9484
|
},
|
|
9475
9485
|
{
|
|
9476
9486
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9477
9487
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9478
9488
|
command: function () {
|
|
9479
|
-
if (_this.isAllowToEditHistorical
|
|
9489
|
+
if (_this.isAllowToEditHistorical) {
|
|
9480
9490
|
rowData["index"] = key;
|
|
9481
9491
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9482
9492
|
_this.visible = true;
|
|
9483
9493
|
}
|
|
9484
9494
|
else {
|
|
9485
|
-
_this.
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9495
|
+
_this.isEditModeActive.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
|
+
}
|
|
9490
9501
|
}
|
|
9491
9502
|
},
|
|
9492
9503
|
},
|
|
@@ -9494,16 +9505,16 @@
|
|
|
9494
9505
|
visible: !_this.isEditMode,
|
|
9495
9506
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9496
9507
|
command: function () {
|
|
9497
|
-
if (_this.isAllowToDeleteHistorical
|
|
9508
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9498
9509
|
_this.loading = true;
|
|
9499
9510
|
_this.deleteAnnuityItem(key);
|
|
9500
9511
|
}
|
|
9501
9512
|
else {
|
|
9502
|
-
_this.
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
}
|
|
9513
|
+
_this.isDeleteModeActive.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,6 +9586,13 @@
|
|
|
9570
9586
|
this.pixAccountItemInput = {};
|
|
9571
9587
|
this.visible = true;
|
|
9572
9588
|
};
|
|
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
|
+
});
|
|
9595
|
+
};
|
|
9573
9596
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9574
9597
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9575
9598
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9715,16 +9738,30 @@
|
|
|
9715
9738
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9716
9739
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9717
9740
|
};
|
|
9741
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9742
|
+
get: function () {
|
|
9743
|
+
return (this.permission["incluir"]);
|
|
9744
|
+
},
|
|
9745
|
+
enumerable: true,
|
|
9746
|
+
configurable: true
|
|
9747
|
+
});
|
|
9718
9748
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9719
9749
|
get: function () {
|
|
9720
|
-
return (this.permission["
|
|
9750
|
+
return (this.permission["excluir"]);
|
|
9721
9751
|
},
|
|
9722
9752
|
enumerable: true,
|
|
9723
9753
|
configurable: true
|
|
9724
9754
|
});
|
|
9725
9755
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9726
9756
|
get: function () {
|
|
9727
|
-
return (this.permission["
|
|
9757
|
+
return (this.permission["editar"]);
|
|
9758
|
+
},
|
|
9759
|
+
enumerable: true,
|
|
9760
|
+
configurable: true
|
|
9761
|
+
});
|
|
9762
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9763
|
+
get: function () {
|
|
9764
|
+
return (this.permission["visualizar"]);
|
|
9728
9765
|
},
|
|
9729
9766
|
enumerable: true,
|
|
9730
9767
|
configurable: true
|
|
@@ -9786,6 +9823,18 @@
|
|
|
9786
9823
|
__decorate([
|
|
9787
9824
|
core.Input()
|
|
9788
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, "isViewModeActive", void 0);
|
|
9832
|
+
__decorate([
|
|
9833
|
+
core.Output()
|
|
9834
|
+
], HistoricalPixAccountComponent.prototype, "isEditModeActive", void 0);
|
|
9835
|
+
__decorate([
|
|
9836
|
+
core.Output()
|
|
9837
|
+
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
9789
9838
|
__decorate([
|
|
9790
9839
|
core.Input()
|
|
9791
9840
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10450,6 +10499,7 @@
|
|
|
10450
10499
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10451
10500
|
this.keyPayload = "historicalEmployeePix";
|
|
10452
10501
|
this.withSidebar = true;
|
|
10502
|
+
this.isOnlyView = new core.EventEmitter();
|
|
10453
10503
|
this.enableView = new core.EventEmitter();
|
|
10454
10504
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10455
10505
|
this.loading = true;
|
|
@@ -10517,9 +10567,10 @@
|
|
|
10517
10567
|
{
|
|
10518
10568
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10519
10569
|
command: function () {
|
|
10520
|
-
if (_this.isAllowToViewHistorical
|
|
10570
|
+
if (_this.isAllowToViewHistorical) {
|
|
10521
10571
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10522
10572
|
if (_this.withSidebar) {
|
|
10573
|
+
_this.isOnlyView.emit(true);
|
|
10523
10574
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10524
10575
|
relativeTo: _this.activatedRoute,
|
|
10525
10576
|
});
|
|
@@ -10529,11 +10580,7 @@
|
|
|
10529
10580
|
}
|
|
10530
10581
|
}
|
|
10531
10582
|
else {
|
|
10532
|
-
_this.
|
|
10533
|
-
severity: "error",
|
|
10534
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10535
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10536
|
-
});
|
|
10583
|
+
_this.isNotAllowMessage();
|
|
10537
10584
|
}
|
|
10538
10585
|
},
|
|
10539
10586
|
},
|
|
@@ -10544,11 +10591,7 @@
|
|
|
10544
10591
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10545
10592
|
}
|
|
10546
10593
|
else {
|
|
10547
|
-
_this.
|
|
10548
|
-
severity: "error",
|
|
10549
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10550
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10551
|
-
});
|
|
10594
|
+
_this.isNotAllowMessage();
|
|
10552
10595
|
}
|
|
10553
10596
|
},
|
|
10554
10597
|
},
|
|
@@ -10606,6 +10649,13 @@
|
|
|
10606
10649
|
});
|
|
10607
10650
|
}
|
|
10608
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
|
+
};
|
|
10609
10659
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10610
10660
|
if (payload && payload.length) {
|
|
10611
10661
|
this.lastRecord = payload[0];
|
|
@@ -10613,21 +10663,21 @@
|
|
|
10613
10663
|
};
|
|
10614
10664
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10615
10665
|
get: function () {
|
|
10616
|
-
return (this.permission["
|
|
10666
|
+
return (this.permission["incluir"]);
|
|
10617
10667
|
},
|
|
10618
10668
|
enumerable: true,
|
|
10619
10669
|
configurable: true
|
|
10620
10670
|
});
|
|
10621
10671
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10622
10672
|
get: function () {
|
|
10623
|
-
return (this.permission["
|
|
10673
|
+
return (this.permission["excluir"]);
|
|
10624
10674
|
},
|
|
10625
10675
|
enumerable: true,
|
|
10626
10676
|
configurable: true
|
|
10627
10677
|
});
|
|
10628
10678
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10629
10679
|
get: function () {
|
|
10630
|
-
return (this.permission["
|
|
10680
|
+
return (this.permission["visualizar"]);
|
|
10631
10681
|
},
|
|
10632
10682
|
enumerable: true,
|
|
10633
10683
|
configurable: true
|
|
@@ -10682,6 +10732,9 @@
|
|
|
10682
10732
|
__decorate([
|
|
10683
10733
|
core.Input()
|
|
10684
10734
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10735
|
+
__decorate([
|
|
10736
|
+
core.Output()
|
|
10737
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10685
10738
|
__decorate([
|
|
10686
10739
|
core.Output()
|
|
10687
10740
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|