@senior-gestao-pessoas/payroll-core 9.4.0-1673d953-7827-4c17-8763-0a32e0cd5e71 → 9.4.0-28b6cbf2-e2cf-4cd1-bc5d-accd5027b516
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 +34 -31
- 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/historical-pix-account.component.js +2 -2
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +30 -32
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +2 -2
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +34 -32
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +30 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +34 -31
- 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
|
@@ -9317,7 +9317,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9317
9317
|
},
|
|
9318
9318
|
},
|
|
9319
9319
|
{
|
|
9320
|
-
visible: !!(_this.isEditMode && _this.withSideBar),
|
|
9320
|
+
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9321
9321
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9322
9322
|
command: function () {
|
|
9323
9323
|
if (_this.isAllowToEditHistorical) {
|
|
@@ -10334,6 +10334,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10334
10334
|
this.keyPayload = "historicalEmployeePix";
|
|
10335
10335
|
this.withSidebar = true;
|
|
10336
10336
|
this.isOnlyView = new EventEmitter();
|
|
10337
|
+
this.isOnlyEdit = new EventEmitter();
|
|
10337
10338
|
this.enableView = new EventEmitter();
|
|
10338
10339
|
this.ngUnsubscribe = new Subject();
|
|
10339
10340
|
this.loading = true;
|
|
@@ -10342,18 +10343,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10342
10343
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10343
10344
|
field: "dateChange",
|
|
10344
10345
|
},
|
|
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
10346
|
{
|
|
10358
10347
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10359
10348
|
field: "numberOfPixAccount",
|
|
@@ -10374,27 +10363,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10374
10363
|
var _this = this;
|
|
10375
10364
|
payload.forEach(function (value) {
|
|
10376
10365
|
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
10366
|
});
|
|
10380
10367
|
this.onGridLoad(payload);
|
|
10381
10368
|
this.loading = false;
|
|
10382
10369
|
};
|
|
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
10370
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10399
10371
|
var _this = this;
|
|
10400
10372
|
return [
|
|
@@ -10418,6 +10390,27 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10418
10390
|
}
|
|
10419
10391
|
},
|
|
10420
10392
|
},
|
|
10393
|
+
{
|
|
10394
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10395
|
+
command: function () {
|
|
10396
|
+
if (_this.isAllowToEditHistorical) {
|
|
10397
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10398
|
+
if (_this.withSidebar) {
|
|
10399
|
+
_this.isOnlyView.emit(false);
|
|
10400
|
+
_this.isOnlyEdit.emit(true);
|
|
10401
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10402
|
+
relativeTo: _this.activatedRoute,
|
|
10403
|
+
});
|
|
10404
|
+
}
|
|
10405
|
+
else {
|
|
10406
|
+
_this.enableView.emit(dateChange);
|
|
10407
|
+
}
|
|
10408
|
+
}
|
|
10409
|
+
else {
|
|
10410
|
+
_this.isNotAllowMessage();
|
|
10411
|
+
}
|
|
10412
|
+
},
|
|
10413
|
+
},
|
|
10421
10414
|
{
|
|
10422
10415
|
label: this.translateService.instant("hcm.payroll.delete"),
|
|
10423
10416
|
command: function () {
|
|
@@ -10428,7 +10421,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10428
10421
|
_this.isNotAllowMessage();
|
|
10429
10422
|
}
|
|
10430
10423
|
},
|
|
10431
|
-
}
|
|
10424
|
+
}
|
|
10432
10425
|
];
|
|
10433
10426
|
};
|
|
10434
10427
|
HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
|
|
@@ -10516,6 +10509,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10516
10509
|
enumerable: true,
|
|
10517
10510
|
configurable: true
|
|
10518
10511
|
});
|
|
10512
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10513
|
+
get: function () {
|
|
10514
|
+
return (this.permission["editar"]);
|
|
10515
|
+
},
|
|
10516
|
+
enumerable: true,
|
|
10517
|
+
configurable: true
|
|
10518
|
+
});
|
|
10519
10519
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
|
|
10520
10520
|
get: function () {
|
|
10521
10521
|
return this.getMenuActions.bind(this);
|
|
@@ -10569,6 +10569,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10569
10569
|
__decorate([
|
|
10570
10570
|
Output()
|
|
10571
10571
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10572
|
+
__decorate([
|
|
10573
|
+
Output()
|
|
10574
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyEdit", void 0);
|
|
10572
10575
|
__decorate([
|
|
10573
10576
|
Output()
|
|
10574
10577
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|