@senior-gestao-pessoas/payroll-core 9.4.0-09265079-8330-4f2f-92dd-7a1c127ae0ac → 9.4.0-0c5930a0-42b5-459f-90d0-a42c899218d2
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 +33 -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 +2 -1
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +30 -32
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +34 -32
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +29 -30
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +33 -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
|
@@ -10500,6 +10500,7 @@
|
|
|
10500
10500
|
this.keyPayload = "historicalEmployeePix";
|
|
10501
10501
|
this.withSidebar = true;
|
|
10502
10502
|
this.isOnlyView = new core.EventEmitter();
|
|
10503
|
+
this.isEditMode = new core.EventEmitter();
|
|
10503
10504
|
this.enableView = new core.EventEmitter();
|
|
10504
10505
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10505
10506
|
this.loading = true;
|
|
@@ -10508,18 +10509,6 @@
|
|
|
10508
10509
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10509
10510
|
field: "dateChange",
|
|
10510
10511
|
},
|
|
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
10512
|
{
|
|
10524
10513
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10525
10514
|
field: "numberOfPixAccount",
|
|
@@ -10540,27 +10529,10 @@
|
|
|
10540
10529
|
var _this = this;
|
|
10541
10530
|
payload.forEach(function (value) {
|
|
10542
10531
|
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
10532
|
});
|
|
10546
10533
|
this.onGridLoad(payload);
|
|
10547
10534
|
this.loading = false;
|
|
10548
10535
|
};
|
|
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
10536
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10565
10537
|
var _this = this;
|
|
10566
10538
|
return [
|
|
@@ -10584,6 +10556,27 @@
|
|
|
10584
10556
|
}
|
|
10585
10557
|
},
|
|
10586
10558
|
},
|
|
10559
|
+
{
|
|
10560
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10561
|
+
command: function () {
|
|
10562
|
+
if (_this.isAllowToEditHistorical) {
|
|
10563
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10564
|
+
if (_this.withSidebar) {
|
|
10565
|
+
_this.isOnlyView.emit(false);
|
|
10566
|
+
_this.isEditMode.emit(true);
|
|
10567
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10568
|
+
relativeTo: _this.activatedRoute,
|
|
10569
|
+
});
|
|
10570
|
+
}
|
|
10571
|
+
else {
|
|
10572
|
+
_this.enableView.emit(dateChange);
|
|
10573
|
+
}
|
|
10574
|
+
}
|
|
10575
|
+
else {
|
|
10576
|
+
_this.isNotAllowMessage();
|
|
10577
|
+
}
|
|
10578
|
+
},
|
|
10579
|
+
},
|
|
10587
10580
|
{
|
|
10588
10581
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
10589
10582
|
command: function () {
|
|
@@ -10594,7 +10587,7 @@
|
|
|
10594
10587
|
_this.isNotAllowMessage();
|
|
10595
10588
|
}
|
|
10596
10589
|
},
|
|
10597
|
-
}
|
|
10590
|
+
}
|
|
10598
10591
|
];
|
|
10599
10592
|
};
|
|
10600
10593
|
HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
|
|
@@ -10682,6 +10675,13 @@
|
|
|
10682
10675
|
enumerable: true,
|
|
10683
10676
|
configurable: true
|
|
10684
10677
|
});
|
|
10678
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10679
|
+
get: function () {
|
|
10680
|
+
return (this.permission["editar"]);
|
|
10681
|
+
},
|
|
10682
|
+
enumerable: true,
|
|
10683
|
+
configurable: true
|
|
10684
|
+
});
|
|
10685
10685
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
|
|
10686
10686
|
get: function () {
|
|
10687
10687
|
return this.getMenuActions.bind(this);
|
|
@@ -10735,6 +10735,9 @@
|
|
|
10735
10735
|
__decorate([
|
|
10736
10736
|
core.Output()
|
|
10737
10737
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10738
|
+
__decorate([
|
|
10739
|
+
core.Output()
|
|
10740
|
+
], HistoricalPixAccountListComponent.prototype, "isEditMode", void 0);
|
|
10738
10741
|
__decorate([
|
|
10739
10742
|
core.Output()
|
|
10740
10743
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|