@senior-gestao-pessoas/payroll-core 9.4.0-da523d13-bda8-40be-a1f7-c0d945546f1c → 9.4.0-f9d3c09b-0079-4f7c-94cf-dd79338e7089
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 +28 -30
- 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-list/historical-pix-account-list.component.d.ts +1 -1
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +25 -32
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +29 -32
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +24 -30
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +28 -30
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/locale/en-US.json +1 -1
- package/locale/es-ES.json +1 -1
- package/locale/pt-BR.json +1 -1
- package/package.json +32 -2
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -10508,18 +10508,6 @@
|
|
|
10508
10508
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10509
10509
|
field: "dateChange",
|
|
10510
10510
|
},
|
|
10511
|
-
{
|
|
10512
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
10513
|
-
field: "pixKeyType.value",
|
|
10514
|
-
},
|
|
10515
|
-
{
|
|
10516
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
10517
|
-
field: "pixKey",
|
|
10518
|
-
},
|
|
10519
|
-
{
|
|
10520
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
10521
|
-
field: "percentage",
|
|
10522
|
-
},
|
|
10523
10511
|
{
|
|
10524
10512
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10525
10513
|
field: "numberOfPixAccount",
|
|
@@ -10540,27 +10528,10 @@
|
|
|
10540
10528
|
var _this = this;
|
|
10541
10529
|
payload.forEach(function (value) {
|
|
10542
10530
|
value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
|
|
10543
|
-
value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
|
|
10544
|
-
value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
|
|
10545
10531
|
});
|
|
10546
10532
|
this.onGridLoad(payload);
|
|
10547
10533
|
this.loading = false;
|
|
10548
10534
|
};
|
|
10549
|
-
HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
|
|
10550
|
-
var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
|
|
10551
|
-
if (keyType === "TELEPHONE") {
|
|
10552
|
-
return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
|
|
10553
|
-
}
|
|
10554
|
-
else if (keyType === "CPF") {
|
|
10555
|
-
return FormatUtilsService.getFormattedCpf(pixKey);
|
|
10556
|
-
}
|
|
10557
|
-
else if (keyType === "CNPJ") {
|
|
10558
|
-
return FormatUtilsService.getFormattedCnpj(pixKey);
|
|
10559
|
-
}
|
|
10560
|
-
else {
|
|
10561
|
-
return pixKey;
|
|
10562
|
-
}
|
|
10563
|
-
};
|
|
10564
10535
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10565
10536
|
var _this = this;
|
|
10566
10537
|
return [
|
|
@@ -10584,6 +10555,26 @@
|
|
|
10584
10555
|
}
|
|
10585
10556
|
},
|
|
10586
10557
|
},
|
|
10558
|
+
{
|
|
10559
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10560
|
+
command: function () {
|
|
10561
|
+
if (_this.isAllowToEditHistorical) {
|
|
10562
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10563
|
+
if (_this.withSidebar) {
|
|
10564
|
+
_this.isOnlyView.emit(false);
|
|
10565
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10566
|
+
relativeTo: _this.activatedRoute,
|
|
10567
|
+
});
|
|
10568
|
+
}
|
|
10569
|
+
else {
|
|
10570
|
+
_this.enableView.emit(dateChange);
|
|
10571
|
+
}
|
|
10572
|
+
}
|
|
10573
|
+
else {
|
|
10574
|
+
_this.isNotAllowMessage();
|
|
10575
|
+
}
|
|
10576
|
+
},
|
|
10577
|
+
},
|
|
10587
10578
|
{
|
|
10588
10579
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
10589
10580
|
command: function () {
|
|
@@ -10594,7 +10585,7 @@
|
|
|
10594
10585
|
_this.isNotAllowMessage();
|
|
10595
10586
|
}
|
|
10596
10587
|
},
|
|
10597
|
-
}
|
|
10588
|
+
}
|
|
10598
10589
|
];
|
|
10599
10590
|
};
|
|
10600
10591
|
HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
|
|
@@ -10682,6 +10673,13 @@
|
|
|
10682
10673
|
enumerable: true,
|
|
10683
10674
|
configurable: true
|
|
10684
10675
|
});
|
|
10676
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10677
|
+
get: function () {
|
|
10678
|
+
return (this.permission["editar"]);
|
|
10679
|
+
},
|
|
10680
|
+
enumerable: true,
|
|
10681
|
+
configurable: true
|
|
10682
|
+
});
|
|
10685
10683
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
|
|
10686
10684
|
get: function () {
|
|
10687
10685
|
return this.getMenuActions.bind(this);
|