@senior-gestao-pessoas/payroll-core 9.4.0-ebf1efc2-fe91-41f8-a0c0-009bafadc393 → 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 +8 -36
- 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 -2
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +6 -35
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +9 -38
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +5 -33
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +8 -36
- 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
|
@@ -10342,18 +10342,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10342
10342
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10343
10343
|
field: "dateChange",
|
|
10344
10344
|
},
|
|
10345
|
-
{
|
|
10346
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
10347
|
-
field: "pixKeyType.value",
|
|
10348
|
-
},
|
|
10349
|
-
{
|
|
10350
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
10351
|
-
field: "pixKey",
|
|
10352
|
-
},
|
|
10353
|
-
{
|
|
10354
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
10355
|
-
field: "percentage",
|
|
10356
|
-
},
|
|
10357
10345
|
{
|
|
10358
10346
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10359
10347
|
field: "numberOfPixAccount",
|
|
@@ -10374,27 +10362,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10374
10362
|
var _this = this;
|
|
10375
10363
|
payload.forEach(function (value) {
|
|
10376
10364
|
value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
|
|
10377
|
-
value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
|
|
10378
|
-
value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
|
|
10379
10365
|
});
|
|
10380
10366
|
this.onGridLoad(payload);
|
|
10381
10367
|
this.loading = false;
|
|
10382
10368
|
};
|
|
10383
|
-
HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
|
|
10384
|
-
var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
|
|
10385
|
-
if (keyType === "TELEPHONE") {
|
|
10386
|
-
return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
|
|
10387
|
-
}
|
|
10388
|
-
else if (keyType === "CPF") {
|
|
10389
|
-
return FormatUtilsService.getFormattedCpf(pixKey);
|
|
10390
|
-
}
|
|
10391
|
-
else if (keyType === "CNPJ") {
|
|
10392
|
-
return FormatUtilsService.getFormattedCnpj(pixKey);
|
|
10393
|
-
}
|
|
10394
|
-
else {
|
|
10395
|
-
return pixKey;
|
|
10396
|
-
}
|
|
10397
|
-
};
|
|
10398
10369
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10399
10370
|
var _this = this;
|
|
10400
10371
|
return [
|
|
@@ -10424,6 +10395,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10424
10395
|
if (_this.isAllowToEditHistorical) {
|
|
10425
10396
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10426
10397
|
if (_this.withSidebar) {
|
|
10398
|
+
_this.isOnlyView.emit(false);
|
|
10427
10399
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10428
10400
|
relativeTo: _this.activatedRoute,
|
|
10429
10401
|
});
|
|
@@ -10447,7 +10419,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10447
10419
|
_this.isNotAllowMessage();
|
|
10448
10420
|
}
|
|
10449
10421
|
},
|
|
10450
|
-
}
|
|
10422
|
+
}
|
|
10451
10423
|
];
|
|
10452
10424
|
};
|
|
10453
10425
|
HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
|
|
@@ -10521,23 +10493,23 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10521
10493
|
enumerable: true,
|
|
10522
10494
|
configurable: true
|
|
10523
10495
|
});
|
|
10524
|
-
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "
|
|
10496
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10525
10497
|
get: function () {
|
|
10526
|
-
return (this.permission["
|
|
10498
|
+
return (this.permission["excluir"]);
|
|
10527
10499
|
},
|
|
10528
10500
|
enumerable: true,
|
|
10529
10501
|
configurable: true
|
|
10530
10502
|
});
|
|
10531
|
-
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "
|
|
10503
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10532
10504
|
get: function () {
|
|
10533
|
-
return (this.permission["
|
|
10505
|
+
return (this.permission["visualizar"]);
|
|
10534
10506
|
},
|
|
10535
10507
|
enumerable: true,
|
|
10536
10508
|
configurable: true
|
|
10537
10509
|
});
|
|
10538
|
-
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "
|
|
10510
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10539
10511
|
get: function () {
|
|
10540
|
-
return (this.permission["
|
|
10512
|
+
return (this.permission["editar"]);
|
|
10541
10513
|
},
|
|
10542
10514
|
enumerable: true,
|
|
10543
10515
|
configurable: true
|