@senior-gestao-pessoas/payroll-core 9.3.0-dfe04f23-c797-41a3-b912-c4cf9ef516cd → 9.3.0-ed0a821c-6503-4447-b346-cf05b6d53b8f
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 +83 -22
- 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 +9 -1
- 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 +51 -11
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -13
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +67 -11
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -13
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +67 -22
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +83 -22
- 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
|
@@ -9256,11 +9256,12 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9256
9256
|
}());
|
|
9257
9257
|
|
|
9258
9258
|
var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
9259
|
-
function HistoricalPixAccountComponent(translateService, cd, formBuilder) {
|
|
9259
|
+
function HistoricalPixAccountComponent(translateService, cd, formBuilder, messageService) {
|
|
9260
9260
|
var _this = this;
|
|
9261
9261
|
this.translateService = translateService;
|
|
9262
9262
|
this.cd = cd;
|
|
9263
9263
|
this.formBuilder = formBuilder;
|
|
9264
|
+
this.messageService = messageService;
|
|
9264
9265
|
this.recordByRow = 1;
|
|
9265
9266
|
this.showDateChange = false;
|
|
9266
9267
|
this.isEditMode = false;
|
|
@@ -9300,26 +9301,41 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9300
9301
|
visible: _this.isEditMode,
|
|
9301
9302
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9302
9303
|
command: function () {
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
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
|
+
}
|
|
9306
9312
|
},
|
|
9307
9313
|
},
|
|
9308
9314
|
{
|
|
9309
9315
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9310
9316
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9311
9317
|
command: function () {
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9318
|
+
if (_this.isAllowToEditHistorical) {
|
|
9319
|
+
rowData["index"] = key;
|
|
9320
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9321
|
+
_this.visible = true;
|
|
9322
|
+
}
|
|
9323
|
+
else {
|
|
9324
|
+
_this.isNotAllowMessage();
|
|
9325
|
+
}
|
|
9315
9326
|
},
|
|
9316
9327
|
},
|
|
9317
9328
|
{
|
|
9318
9329
|
visible: !_this.isEditMode,
|
|
9319
9330
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9320
9331
|
command: function () {
|
|
9321
|
-
_this.
|
|
9322
|
-
|
|
9332
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9333
|
+
_this.loading = true;
|
|
9334
|
+
_this.deleteAnnuityItem(key);
|
|
9335
|
+
}
|
|
9336
|
+
else {
|
|
9337
|
+
_this.isNotAllowMessage();
|
|
9338
|
+
}
|
|
9323
9339
|
},
|
|
9324
9340
|
},
|
|
9325
9341
|
];
|
|
@@ -9385,6 +9401,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9385
9401
|
this.pixAccountItemInput = {};
|
|
9386
9402
|
this.visible = true;
|
|
9387
9403
|
};
|
|
9404
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9405
|
+
return 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
|
+
};
|
|
9388
9411
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9389
9412
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9390
9413
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9530,10 +9553,39 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9530
9553
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9531
9554
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9532
9555
|
};
|
|
9556
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9557
|
+
get: function () {
|
|
9558
|
+
return (this.permission["incluir"]);
|
|
9559
|
+
},
|
|
9560
|
+
enumerable: true,
|
|
9561
|
+
configurable: true
|
|
9562
|
+
});
|
|
9563
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9564
|
+
get: function () {
|
|
9565
|
+
return (this.permission["excluir"]);
|
|
9566
|
+
},
|
|
9567
|
+
enumerable: true,
|
|
9568
|
+
configurable: true
|
|
9569
|
+
});
|
|
9570
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9571
|
+
get: function () {
|
|
9572
|
+
return (this.permission["editar"]);
|
|
9573
|
+
},
|
|
9574
|
+
enumerable: true,
|
|
9575
|
+
configurable: true
|
|
9576
|
+
});
|
|
9577
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9578
|
+
get: function () {
|
|
9579
|
+
return (this.permission["visualizar"]);
|
|
9580
|
+
},
|
|
9581
|
+
enumerable: true,
|
|
9582
|
+
configurable: true
|
|
9583
|
+
});
|
|
9533
9584
|
HistoricalPixAccountComponent.ctorParameters = function () { return [
|
|
9534
9585
|
{ type: TranslateService },
|
|
9535
9586
|
{ type: ChangeDetectorRef },
|
|
9536
|
-
{ type: FormBuilder }
|
|
9587
|
+
{ type: FormBuilder },
|
|
9588
|
+
{ type: MessageService }
|
|
9537
9589
|
]; };
|
|
9538
9590
|
__decorate([
|
|
9539
9591
|
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
@@ -9583,6 +9635,9 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9583
9635
|
__decorate([
|
|
9584
9636
|
Input()
|
|
9585
9637
|
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
|
|
9638
|
+
__decorate([
|
|
9639
|
+
Input()
|
|
9640
|
+
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9586
9641
|
__decorate([
|
|
9587
9642
|
Input()
|
|
9588
9643
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10247,6 +10302,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10247
10302
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10248
10303
|
this.keyPayload = "historicalEmployeePix";
|
|
10249
10304
|
this.withSidebar = true;
|
|
10305
|
+
this.isOnlyView = new EventEmitter();
|
|
10250
10306
|
this.enableView = new EventEmitter();
|
|
10251
10307
|
this.ngUnsubscribe = new Subject();
|
|
10252
10308
|
this.loading = true;
|
|
@@ -10316,19 +10372,18 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10316
10372
|
command: function () {
|
|
10317
10373
|
if (_this.isAllowToViewHistorical) {
|
|
10318
10374
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10319
|
-
if (_this.withSidebar)
|
|
10375
|
+
if (_this.withSidebar) {
|
|
10376
|
+
_this.isOnlyView.emit(true);
|
|
10320
10377
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10321
10378
|
relativeTo: _this.activatedRoute,
|
|
10322
10379
|
});
|
|
10323
|
-
|
|
10380
|
+
}
|
|
10381
|
+
else {
|
|
10324
10382
|
_this.enableView.emit(dateChange);
|
|
10383
|
+
}
|
|
10325
10384
|
}
|
|
10326
10385
|
else {
|
|
10327
|
-
_this.
|
|
10328
|
-
severity: "error",
|
|
10329
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10330
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10331
|
-
});
|
|
10386
|
+
_this.isNotAllowMessage();
|
|
10332
10387
|
}
|
|
10333
10388
|
},
|
|
10334
10389
|
},
|
|
@@ -10339,11 +10394,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10339
10394
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10340
10395
|
}
|
|
10341
10396
|
else {
|
|
10342
|
-
_this.
|
|
10343
|
-
severity: "error",
|
|
10344
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10345
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10346
|
-
});
|
|
10397
|
+
_this.isNotAllowMessage();
|
|
10347
10398
|
}
|
|
10348
10399
|
},
|
|
10349
10400
|
},
|
|
@@ -10401,6 +10452,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10401
10452
|
});
|
|
10402
10453
|
}
|
|
10403
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
|
+
};
|
|
10404
10462
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10405
10463
|
if (payload && payload.length) {
|
|
10406
10464
|
this.lastRecord = payload[0];
|
|
@@ -10477,6 +10535,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10477
10535
|
__decorate([
|
|
10478
10536
|
Input()
|
|
10479
10537
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10538
|
+
__decorate([
|
|
10539
|
+
Output()
|
|
10540
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10480
10541
|
__decorate([
|
|
10481
10542
|
Output()
|
|
10482
10543
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|