@senior-gestao-pessoas/payroll-core 9.3.0-4d39b464-875a-426e-94a5-e9a89ba0079c → 9.3.0-6fe87530-a4db-47c2-9330-935d415a90a5
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 +36 -15
- 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 +2 -0
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +24 -9
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +7 -9
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +32 -9
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +7 -9
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +28 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +36 -15
- 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
|
@@ -9301,16 +9301,25 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9301
9301
|
visible: _this.isEditMode,
|
|
9302
9302
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9303
9303
|
command: function () {
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9304
|
+
if (_this.isAllowToViewHistorical) {
|
|
9305
|
+
rowData["index"] = key;
|
|
9306
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9307
|
+
_this.visible = true;
|
|
9308
|
+
}
|
|
9309
|
+
else {
|
|
9310
|
+
_this.messageService.add({
|
|
9311
|
+
severity: "error",
|
|
9312
|
+
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9313
|
+
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9314
|
+
});
|
|
9315
|
+
}
|
|
9307
9316
|
},
|
|
9308
9317
|
},
|
|
9309
9318
|
{
|
|
9310
9319
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9311
9320
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9312
9321
|
command: function () {
|
|
9313
|
-
if (_this.isAllowToEditHistorical
|
|
9322
|
+
if (_this.isAllowToEditHistorical) {
|
|
9314
9323
|
rowData["index"] = key;
|
|
9315
9324
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9316
9325
|
_this.visible = true;
|
|
@@ -9328,7 +9337,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9328
9337
|
visible: !_this.isEditMode,
|
|
9329
9338
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9330
9339
|
command: function () {
|
|
9331
|
-
if (_this.isAllowToDeleteHistorical
|
|
9340
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9332
9341
|
_this.loading = true;
|
|
9333
9342
|
_this.deleteAnnuityItem(key);
|
|
9334
9343
|
}
|
|
@@ -9549,16 +9558,30 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9549
9558
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9550
9559
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9551
9560
|
};
|
|
9561
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9562
|
+
get: function () {
|
|
9563
|
+
return (this.permission["incluir"]);
|
|
9564
|
+
},
|
|
9565
|
+
enumerable: true,
|
|
9566
|
+
configurable: true
|
|
9567
|
+
});
|
|
9552
9568
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9553
9569
|
get: function () {
|
|
9554
|
-
return (this.permission["
|
|
9570
|
+
return (this.permission["excluir"]);
|
|
9555
9571
|
},
|
|
9556
9572
|
enumerable: true,
|
|
9557
9573
|
configurable: true
|
|
9558
9574
|
});
|
|
9559
9575
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9560
9576
|
get: function () {
|
|
9561
|
-
return (this.permission["
|
|
9577
|
+
return (this.permission["editar"]);
|
|
9578
|
+
},
|
|
9579
|
+
enumerable: true,
|
|
9580
|
+
configurable: true
|
|
9581
|
+
});
|
|
9582
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9583
|
+
get: function () {
|
|
9584
|
+
return (this.permission["visualizar"]);
|
|
9562
9585
|
},
|
|
9563
9586
|
enumerable: true,
|
|
9564
9587
|
configurable: true
|
|
@@ -10351,16 +10374,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10351
10374
|
{
|
|
10352
10375
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10353
10376
|
command: function () {
|
|
10354
|
-
if (_this.isAllowToViewHistorical
|
|
10377
|
+
if (_this.isAllowToViewHistorical) {
|
|
10355
10378
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10356
|
-
if (_this.withSidebar)
|
|
10379
|
+
if (_this.withSidebar)
|
|
10357
10380
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10358
10381
|
relativeTo: _this.activatedRoute,
|
|
10359
10382
|
});
|
|
10360
|
-
|
|
10361
|
-
else {
|
|
10383
|
+
else
|
|
10362
10384
|
_this.enableView.emit(dateChange);
|
|
10363
|
-
}
|
|
10364
10385
|
}
|
|
10365
10386
|
else {
|
|
10366
10387
|
_this.messageService.add({
|
|
@@ -10447,21 +10468,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10447
10468
|
};
|
|
10448
10469
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10449
10470
|
get: function () {
|
|
10450
|
-
return (this.permission["
|
|
10471
|
+
return (this.permission["incluir"]);
|
|
10451
10472
|
},
|
|
10452
10473
|
enumerable: true,
|
|
10453
10474
|
configurable: true
|
|
10454
10475
|
});
|
|
10455
10476
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10456
10477
|
get: function () {
|
|
10457
|
-
return (this.permission["
|
|
10478
|
+
return (this.permission["excluir"]);
|
|
10458
10479
|
},
|
|
10459
10480
|
enumerable: true,
|
|
10460
10481
|
configurable: true
|
|
10461
10482
|
});
|
|
10462
10483
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10463
10484
|
get: function () {
|
|
10464
|
-
return (this.permission["
|
|
10485
|
+
return (this.permission["visualizar"]);
|
|
10465
10486
|
},
|
|
10466
10487
|
enumerable: true,
|
|
10467
10488
|
configurable: true
|