@senior-gestao-pessoas/payroll-core 9.3.0-4d39b464-875a-426e-94a5-e9a89ba0079c → 9.3.0-67156c70-a6d2-48ad-bbe1-7e90a9c21e6f
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 +53 -38
- 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 +3 -1
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +1 -0
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +32 -22
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +16 -19
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +40 -22
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +16 -19
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +45 -38
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +53 -38
- 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
|
@@ -9464,46 +9464,43 @@
|
|
|
9464
9464
|
if (rowData === void 0) { rowData = {}; }
|
|
9465
9465
|
return [
|
|
9466
9466
|
{
|
|
9467
|
-
visible: _this.isEditMode,
|
|
9468
9467
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9469
9468
|
command: function () {
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9469
|
+
if (_this.isAllowToViewHistorical) {
|
|
9470
|
+
rowData["index"] = key;
|
|
9471
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9472
|
+
_this.visible = true;
|
|
9473
|
+
}
|
|
9474
|
+
else {
|
|
9475
|
+
_this.visible = false;
|
|
9476
|
+
_this.isNotAllowMessage();
|
|
9477
|
+
}
|
|
9473
9478
|
},
|
|
9474
9479
|
},
|
|
9475
9480
|
{
|
|
9476
|
-
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9477
9481
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9478
9482
|
command: function () {
|
|
9479
|
-
if (_this.isAllowToEditHistorical
|
|
9483
|
+
if (_this.isAllowToEditHistorical) {
|
|
9480
9484
|
rowData["index"] = key;
|
|
9481
9485
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9482
9486
|
_this.visible = true;
|
|
9483
9487
|
}
|
|
9484
9488
|
else {
|
|
9485
|
-
_this.
|
|
9486
|
-
|
|
9487
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9488
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9489
|
-
});
|
|
9489
|
+
_this.visible = false;
|
|
9490
|
+
_this.isNotAllowMessage();
|
|
9490
9491
|
}
|
|
9491
9492
|
},
|
|
9492
9493
|
},
|
|
9493
9494
|
{
|
|
9494
|
-
visible: !_this.isEditMode,
|
|
9495
9495
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9496
9496
|
command: function () {
|
|
9497
|
-
if (_this.isAllowToDeleteHistorical
|
|
9497
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9498
9498
|
_this.loading = true;
|
|
9499
9499
|
_this.deleteAnnuityItem(key);
|
|
9500
9500
|
}
|
|
9501
9501
|
else {
|
|
9502
|
-
_this.
|
|
9503
|
-
|
|
9504
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9505
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9506
|
-
});
|
|
9502
|
+
_this.visible = false;
|
|
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,16 +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"]);
|
|
9739
|
+
},
|
|
9740
|
+
enumerable: true,
|
|
9741
|
+
configurable: true
|
|
9742
|
+
});
|
|
9743
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9744
|
+
get: function () {
|
|
9745
|
+
return (this.permission["visualizar"]);
|
|
9728
9746
|
},
|
|
9729
9747
|
enumerable: true,
|
|
9730
9748
|
configurable: true
|
|
@@ -10517,23 +10535,17 @@
|
|
|
10517
10535
|
{
|
|
10518
10536
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10519
10537
|
command: function () {
|
|
10520
|
-
if (_this.isAllowToViewHistorical
|
|
10538
|
+
if (_this.isAllowToViewHistorical) {
|
|
10521
10539
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10522
|
-
if (_this.withSidebar)
|
|
10540
|
+
if (_this.withSidebar)
|
|
10523
10541
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10524
10542
|
relativeTo: _this.activatedRoute,
|
|
10525
10543
|
});
|
|
10526
|
-
|
|
10527
|
-
else {
|
|
10544
|
+
else
|
|
10528
10545
|
_this.enableView.emit(dateChange);
|
|
10529
|
-
}
|
|
10530
10546
|
}
|
|
10531
10547
|
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
|
-
});
|
|
10548
|
+
_this.isNotAllowMessage();
|
|
10537
10549
|
}
|
|
10538
10550
|
},
|
|
10539
10551
|
},
|
|
@@ -10544,11 +10556,7 @@
|
|
|
10544
10556
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10545
10557
|
}
|
|
10546
10558
|
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
|
-
});
|
|
10559
|
+
_this.isNotAllowMessage();
|
|
10552
10560
|
}
|
|
10553
10561
|
},
|
|
10554
10562
|
},
|
|
@@ -10606,6 +10614,13 @@
|
|
|
10606
10614
|
});
|
|
10607
10615
|
}
|
|
10608
10616
|
};
|
|
10617
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10618
|
+
this.messageService.add({
|
|
10619
|
+
severity: "error",
|
|
10620
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10621
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10622
|
+
});
|
|
10623
|
+
};
|
|
10609
10624
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10610
10625
|
if (payload && payload.length) {
|
|
10611
10626
|
this.lastRecord = payload[0];
|
|
@@ -10613,21 +10628,21 @@
|
|
|
10613
10628
|
};
|
|
10614
10629
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10615
10630
|
get: function () {
|
|
10616
|
-
return (this.permission["
|
|
10631
|
+
return (this.permission["incluir"]);
|
|
10617
10632
|
},
|
|
10618
10633
|
enumerable: true,
|
|
10619
10634
|
configurable: true
|
|
10620
10635
|
});
|
|
10621
10636
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10622
10637
|
get: function () {
|
|
10623
|
-
return (this.permission["
|
|
10638
|
+
return (this.permission["excluir"]);
|
|
10624
10639
|
},
|
|
10625
10640
|
enumerable: true,
|
|
10626
10641
|
configurable: true
|
|
10627
10642
|
});
|
|
10628
10643
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10629
10644
|
get: function () {
|
|
10630
|
-
return (this.permission["
|
|
10645
|
+
return (this.permission["visualizar"]);
|
|
10631
10646
|
},
|
|
10632
10647
|
enumerable: true,
|
|
10633
10648
|
configurable: true
|