@senior-gestao-pessoas/payroll-core 9.3.0-06156ffc-852c-4f04-8482-5c4f9317ecff → 9.3.0-06538e11-08fa-4c6f-9e67-58f132131fe8
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 +47 -33
- 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/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +2 -0
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +27 -20
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -16
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +31 -20
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -16
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +43 -33
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +47 -33
- 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,26 +9301,27 @@ 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.isNotAllowMessage();
|
|
9311
|
+
}
|
|
9307
9312
|
},
|
|
9308
9313
|
},
|
|
9309
9314
|
{
|
|
9310
9315
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9311
9316
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9312
9317
|
command: function () {
|
|
9313
|
-
if (_this.isAllowToEditHistorical
|
|
9318
|
+
if (_this.isAllowToEditHistorical) {
|
|
9314
9319
|
rowData["index"] = key;
|
|
9315
9320
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9316
9321
|
_this.visible = true;
|
|
9317
9322
|
}
|
|
9318
9323
|
else {
|
|
9319
|
-
_this.
|
|
9320
|
-
severity: "error",
|
|
9321
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9322
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9323
|
-
});
|
|
9324
|
+
_this.isNotAllowMessage();
|
|
9324
9325
|
}
|
|
9325
9326
|
},
|
|
9326
9327
|
},
|
|
@@ -9328,16 +9329,12 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9328
9329
|
visible: !_this.isEditMode,
|
|
9329
9330
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9330
9331
|
command: function () {
|
|
9331
|
-
if (_this.isAllowToDeleteHistorical
|
|
9332
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9332
9333
|
_this.loading = true;
|
|
9333
9334
|
_this.deleteAnnuityItem(key);
|
|
9334
9335
|
}
|
|
9335
9336
|
else {
|
|
9336
|
-
_this.
|
|
9337
|
-
severity: "error",
|
|
9338
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9339
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9340
|
-
});
|
|
9337
|
+
_this.isNotAllowMessage();
|
|
9341
9338
|
}
|
|
9342
9339
|
},
|
|
9343
9340
|
},
|
|
@@ -9404,6 +9401,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9404
9401
|
this.pixAccountItemInput = {};
|
|
9405
9402
|
this.visible = true;
|
|
9406
9403
|
};
|
|
9404
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9405
|
+
this.messageService.add({
|
|
9406
|
+
severity: "error",
|
|
9407
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9408
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9409
|
+
});
|
|
9410
|
+
};
|
|
9407
9411
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9408
9412
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9409
9413
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9549,23 +9553,30 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9549
9553
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9550
9554
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9551
9555
|
};
|
|
9556
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9557
|
+
get: function () {
|
|
9558
|
+
return (this.permission["incluir"]);
|
|
9559
|
+
},
|
|
9560
|
+
enumerable: true,
|
|
9561
|
+
configurable: true
|
|
9562
|
+
});
|
|
9552
9563
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9553
9564
|
get: function () {
|
|
9554
|
-
return (this.permission["
|
|
9565
|
+
return (this.permission["excluir"]);
|
|
9555
9566
|
},
|
|
9556
9567
|
enumerable: true,
|
|
9557
9568
|
configurable: true
|
|
9558
9569
|
});
|
|
9559
9570
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9560
9571
|
get: function () {
|
|
9561
|
-
return (this.permission["
|
|
9572
|
+
return (this.permission["editar"]);
|
|
9562
9573
|
},
|
|
9563
9574
|
enumerable: true,
|
|
9564
9575
|
configurable: true
|
|
9565
9576
|
});
|
|
9566
9577
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9567
9578
|
get: function () {
|
|
9568
|
-
return (this.permission["
|
|
9579
|
+
return (this.permission["visualizar"]);
|
|
9569
9580
|
},
|
|
9570
9581
|
enumerable: true,
|
|
9571
9582
|
configurable: true
|
|
@@ -10291,6 +10302,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10291
10302
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10292
10303
|
this.keyPayload = "historicalEmployeePix";
|
|
10293
10304
|
this.withSidebar = true;
|
|
10305
|
+
this.isOnlyView = new EventEmitter();
|
|
10294
10306
|
this.enableView = new EventEmitter();
|
|
10295
10307
|
this.ngUnsubscribe = new Subject();
|
|
10296
10308
|
this.loading = true;
|
|
@@ -10358,8 +10370,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10358
10370
|
{
|
|
10359
10371
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10360
10372
|
command: function () {
|
|
10361
|
-
|
|
10362
|
-
if (_this.isAllowToViewHistorical && rowData) {
|
|
10373
|
+
if (_this.isAllowToViewHistorical) {
|
|
10363
10374
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10364
10375
|
if (_this.withSidebar) {
|
|
10365
10376
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
@@ -10367,15 +10378,12 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10367
10378
|
});
|
|
10368
10379
|
}
|
|
10369
10380
|
else {
|
|
10381
|
+
_this.isOnlyView.emit(true);
|
|
10370
10382
|
_this.enableView.emit(dateChange);
|
|
10371
10383
|
}
|
|
10372
10384
|
}
|
|
10373
10385
|
else {
|
|
10374
|
-
_this.
|
|
10375
|
-
severity: "error",
|
|
10376
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10377
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10378
|
-
});
|
|
10386
|
+
_this.isNotAllowMessage();
|
|
10379
10387
|
}
|
|
10380
10388
|
},
|
|
10381
10389
|
},
|
|
@@ -10386,11 +10394,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10386
10394
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10387
10395
|
}
|
|
10388
10396
|
else {
|
|
10389
|
-
_this.
|
|
10390
|
-
severity: "error",
|
|
10391
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10392
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10393
|
-
});
|
|
10397
|
+
_this.isNotAllowMessage();
|
|
10394
10398
|
}
|
|
10395
10399
|
},
|
|
10396
10400
|
},
|
|
@@ -10448,6 +10452,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10448
10452
|
});
|
|
10449
10453
|
}
|
|
10450
10454
|
};
|
|
10455
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10456
|
+
this.messageService.add({
|
|
10457
|
+
severity: "error",
|
|
10458
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10459
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10460
|
+
});
|
|
10461
|
+
};
|
|
10451
10462
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10452
10463
|
if (payload && payload.length) {
|
|
10453
10464
|
this.lastRecord = payload[0];
|
|
@@ -10455,21 +10466,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10455
10466
|
};
|
|
10456
10467
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10457
10468
|
get: function () {
|
|
10458
|
-
return (this.permission["
|
|
10469
|
+
return (this.permission["incluir"]);
|
|
10459
10470
|
},
|
|
10460
10471
|
enumerable: true,
|
|
10461
10472
|
configurable: true
|
|
10462
10473
|
});
|
|
10463
10474
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10464
10475
|
get: function () {
|
|
10465
|
-
return (this.permission["
|
|
10476
|
+
return (this.permission["excluir"]);
|
|
10466
10477
|
},
|
|
10467
10478
|
enumerable: true,
|
|
10468
10479
|
configurable: true
|
|
10469
10480
|
});
|
|
10470
10481
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10471
10482
|
get: function () {
|
|
10472
|
-
return (this.permission["
|
|
10483
|
+
return (this.permission["visualizar"]);
|
|
10473
10484
|
},
|
|
10474
10485
|
enumerable: true,
|
|
10475
10486
|
configurable: true
|
|
@@ -10524,6 +10535,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10524
10535
|
__decorate([
|
|
10525
10536
|
Input()
|
|
10526
10537
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10538
|
+
__decorate([
|
|
10539
|
+
Output()
|
|
10540
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10527
10541
|
__decorate([
|
|
10528
10542
|
Output()
|
|
10529
10543
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|