@senior-gestao-pessoas/payroll-core 9.3.0-06156ffc-852c-4f04-8482-5c4f9317ecff → 9.3.0-06538e11-08fa-4c6f-9e67-58f132131fe8
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 +47 -33
- 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 +2 -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 +27 -20
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -16
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +31 -20
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -16
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +43 -33
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +47 -33
- 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
|
@@ -9467,26 +9467,27 @@
|
|
|
9467
9467
|
visible: _this.isEditMode,
|
|
9468
9468
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9469
9469
|
command: function () {
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9470
|
+
if (_this.isAllowToViewHistorical) {
|
|
9471
|
+
rowData["index"] = key;
|
|
9472
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9473
|
+
_this.visible = true;
|
|
9474
|
+
}
|
|
9475
|
+
else {
|
|
9476
|
+
_this.isNotAllowMessage();
|
|
9477
|
+
}
|
|
9473
9478
|
},
|
|
9474
9479
|
},
|
|
9475
9480
|
{
|
|
9476
9481
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9477
9482
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9478
9483
|
command: function () {
|
|
9479
|
-
if (_this.isAllowToEditHistorical
|
|
9484
|
+
if (_this.isAllowToEditHistorical) {
|
|
9480
9485
|
rowData["index"] = key;
|
|
9481
9486
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9482
9487
|
_this.visible = true;
|
|
9483
9488
|
}
|
|
9484
9489
|
else {
|
|
9485
|
-
_this.
|
|
9486
|
-
severity: "error",
|
|
9487
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9488
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9489
|
-
});
|
|
9490
|
+
_this.isNotAllowMessage();
|
|
9490
9491
|
}
|
|
9491
9492
|
},
|
|
9492
9493
|
},
|
|
@@ -9494,16 +9495,12 @@
|
|
|
9494
9495
|
visible: !_this.isEditMode,
|
|
9495
9496
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9496
9497
|
command: function () {
|
|
9497
|
-
if (_this.isAllowToDeleteHistorical
|
|
9498
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9498
9499
|
_this.loading = true;
|
|
9499
9500
|
_this.deleteAnnuityItem(key);
|
|
9500
9501
|
}
|
|
9501
9502
|
else {
|
|
9502
|
-
_this.
|
|
9503
|
-
severity: "error",
|
|
9504
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9505
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9506
|
-
});
|
|
9503
|
+
_this.isNotAllowMessage();
|
|
9507
9504
|
}
|
|
9508
9505
|
},
|
|
9509
9506
|
},
|
|
@@ -9570,6 +9567,13 @@
|
|
|
9570
9567
|
this.pixAccountItemInput = {};
|
|
9571
9568
|
this.visible = true;
|
|
9572
9569
|
};
|
|
9570
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9571
|
+
this.messageService.add({
|
|
9572
|
+
severity: "error",
|
|
9573
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9574
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9575
|
+
});
|
|
9576
|
+
};
|
|
9573
9577
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9574
9578
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9575
9579
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9715,23 +9719,30 @@
|
|
|
9715
9719
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9716
9720
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9717
9721
|
};
|
|
9722
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9723
|
+
get: function () {
|
|
9724
|
+
return (this.permission["incluir"]);
|
|
9725
|
+
},
|
|
9726
|
+
enumerable: true,
|
|
9727
|
+
configurable: true
|
|
9728
|
+
});
|
|
9718
9729
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9719
9730
|
get: function () {
|
|
9720
|
-
return (this.permission["
|
|
9731
|
+
return (this.permission["excluir"]);
|
|
9721
9732
|
},
|
|
9722
9733
|
enumerable: true,
|
|
9723
9734
|
configurable: true
|
|
9724
9735
|
});
|
|
9725
9736
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9726
9737
|
get: function () {
|
|
9727
|
-
return (this.permission["
|
|
9738
|
+
return (this.permission["editar"]);
|
|
9728
9739
|
},
|
|
9729
9740
|
enumerable: true,
|
|
9730
9741
|
configurable: true
|
|
9731
9742
|
});
|
|
9732
9743
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9733
9744
|
get: function () {
|
|
9734
|
-
return (this.permission["
|
|
9745
|
+
return (this.permission["visualizar"]);
|
|
9735
9746
|
},
|
|
9736
9747
|
enumerable: true,
|
|
9737
9748
|
configurable: true
|
|
@@ -10457,6 +10468,7 @@
|
|
|
10457
10468
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10458
10469
|
this.keyPayload = "historicalEmployeePix";
|
|
10459
10470
|
this.withSidebar = true;
|
|
10471
|
+
this.isOnlyView = new core.EventEmitter();
|
|
10460
10472
|
this.enableView = new core.EventEmitter();
|
|
10461
10473
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10462
10474
|
this.loading = true;
|
|
@@ -10524,8 +10536,7 @@
|
|
|
10524
10536
|
{
|
|
10525
10537
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10526
10538
|
command: function () {
|
|
10527
|
-
|
|
10528
|
-
if (_this.isAllowToViewHistorical && rowData) {
|
|
10539
|
+
if (_this.isAllowToViewHistorical) {
|
|
10529
10540
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10530
10541
|
if (_this.withSidebar) {
|
|
10531
10542
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
@@ -10533,15 +10544,12 @@
|
|
|
10533
10544
|
});
|
|
10534
10545
|
}
|
|
10535
10546
|
else {
|
|
10547
|
+
_this.isOnlyView.emit(true);
|
|
10536
10548
|
_this.enableView.emit(dateChange);
|
|
10537
10549
|
}
|
|
10538
10550
|
}
|
|
10539
10551
|
else {
|
|
10540
|
-
_this.
|
|
10541
|
-
severity: "error",
|
|
10542
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10543
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10544
|
-
});
|
|
10552
|
+
_this.isNotAllowMessage();
|
|
10545
10553
|
}
|
|
10546
10554
|
},
|
|
10547
10555
|
},
|
|
@@ -10552,11 +10560,7 @@
|
|
|
10552
10560
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10553
10561
|
}
|
|
10554
10562
|
else {
|
|
10555
|
-
_this.
|
|
10556
|
-
severity: "error",
|
|
10557
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10558
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10559
|
-
});
|
|
10563
|
+
_this.isNotAllowMessage();
|
|
10560
10564
|
}
|
|
10561
10565
|
},
|
|
10562
10566
|
},
|
|
@@ -10614,6 +10618,13 @@
|
|
|
10614
10618
|
});
|
|
10615
10619
|
}
|
|
10616
10620
|
};
|
|
10621
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10622
|
+
this.messageService.add({
|
|
10623
|
+
severity: "error",
|
|
10624
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10625
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10626
|
+
});
|
|
10627
|
+
};
|
|
10617
10628
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10618
10629
|
if (payload && payload.length) {
|
|
10619
10630
|
this.lastRecord = payload[0];
|
|
@@ -10621,21 +10632,21 @@
|
|
|
10621
10632
|
};
|
|
10622
10633
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10623
10634
|
get: function () {
|
|
10624
|
-
return (this.permission["
|
|
10635
|
+
return (this.permission["incluir"]);
|
|
10625
10636
|
},
|
|
10626
10637
|
enumerable: true,
|
|
10627
10638
|
configurable: true
|
|
10628
10639
|
});
|
|
10629
10640
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10630
10641
|
get: function () {
|
|
10631
|
-
return (this.permission["
|
|
10642
|
+
return (this.permission["excluir"]);
|
|
10632
10643
|
},
|
|
10633
10644
|
enumerable: true,
|
|
10634
10645
|
configurable: true
|
|
10635
10646
|
});
|
|
10636
10647
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10637
10648
|
get: function () {
|
|
10638
|
-
return (this.permission["
|
|
10649
|
+
return (this.permission["visualizar"]);
|
|
10639
10650
|
},
|
|
10640
10651
|
enumerable: true,
|
|
10641
10652
|
configurable: true
|
|
@@ -10690,6 +10701,9 @@
|
|
|
10690
10701
|
__decorate([
|
|
10691
10702
|
core.Input()
|
|
10692
10703
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10704
|
+
__decorate([
|
|
10705
|
+
core.Output()
|
|
10706
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10693
10707
|
__decorate([
|
|
10694
10708
|
core.Output()
|
|
10695
10709
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|