@senior-gestao-pessoas/payroll-core 9.3.0-4d39b464-875a-426e-94a5-e9a89ba0079c → 9.3.0-57601500-80d3-4392-a75e-35abea58468a
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 +56 -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/historical-pix-account.component.d.ts +3 -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 +29 -19
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +22 -15
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +37 -19
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +22 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +48 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +56 -31
- 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,16 +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"]);
|
|
9573
|
+
},
|
|
9574
|
+
enumerable: true,
|
|
9575
|
+
configurable: true
|
|
9576
|
+
});
|
|
9577
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9578
|
+
get: function () {
|
|
9579
|
+
return (this.permission["visualizar"]);
|
|
9562
9580
|
},
|
|
9563
9581
|
enumerable: true,
|
|
9564
9582
|
configurable: true
|
|
@@ -10284,6 +10302,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10284
10302
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10285
10303
|
this.keyPayload = "historicalEmployeePix";
|
|
10286
10304
|
this.withSidebar = true;
|
|
10305
|
+
this.isOnlyView = new EventEmitter();
|
|
10287
10306
|
this.enableView = new EventEmitter();
|
|
10288
10307
|
this.ngUnsubscribe = new Subject();
|
|
10289
10308
|
this.loading = true;
|
|
@@ -10351,23 +10370,23 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10351
10370
|
{
|
|
10352
10371
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10353
10372
|
command: function () {
|
|
10354
|
-
|
|
10373
|
+
console.log('COMMAND CALLED');
|
|
10374
|
+
console.log('this.isAllowToViewHistorical', _this.isAllowToViewHistorical);
|
|
10375
|
+
if (_this.isAllowToViewHistorical) {
|
|
10355
10376
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10377
|
+
console.log('withSidebar', _this.withSidebar);
|
|
10356
10378
|
if (_this.withSidebar) {
|
|
10357
10379
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10358
10380
|
relativeTo: _this.activatedRoute,
|
|
10359
10381
|
});
|
|
10360
10382
|
}
|
|
10361
10383
|
else {
|
|
10384
|
+
_this.isOnlyView.emit(true);
|
|
10362
10385
|
_this.enableView.emit(dateChange);
|
|
10363
10386
|
}
|
|
10364
10387
|
}
|
|
10365
10388
|
else {
|
|
10366
|
-
_this.
|
|
10367
|
-
severity: "error",
|
|
10368
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10369
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10370
|
-
});
|
|
10389
|
+
_this.isNotAllowMessage();
|
|
10371
10390
|
}
|
|
10372
10391
|
},
|
|
10373
10392
|
},
|
|
@@ -10378,11 +10397,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10378
10397
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10379
10398
|
}
|
|
10380
10399
|
else {
|
|
10381
|
-
_this.
|
|
10382
|
-
severity: "error",
|
|
10383
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10384
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10385
|
-
});
|
|
10400
|
+
_this.isNotAllowMessage();
|
|
10386
10401
|
}
|
|
10387
10402
|
},
|
|
10388
10403
|
},
|
|
@@ -10440,6 +10455,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10440
10455
|
});
|
|
10441
10456
|
}
|
|
10442
10457
|
};
|
|
10458
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10459
|
+
this.messageService.add({
|
|
10460
|
+
severity: "error",
|
|
10461
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10462
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10463
|
+
});
|
|
10464
|
+
};
|
|
10443
10465
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10444
10466
|
if (payload && payload.length) {
|
|
10445
10467
|
this.lastRecord = payload[0];
|
|
@@ -10447,21 +10469,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10447
10469
|
};
|
|
10448
10470
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10449
10471
|
get: function () {
|
|
10450
|
-
return (this.permission["
|
|
10472
|
+
return (this.permission["incluir"]);
|
|
10451
10473
|
},
|
|
10452
10474
|
enumerable: true,
|
|
10453
10475
|
configurable: true
|
|
10454
10476
|
});
|
|
10455
10477
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10456
10478
|
get: function () {
|
|
10457
|
-
return (this.permission["
|
|
10479
|
+
return (this.permission["excluir"]);
|
|
10458
10480
|
},
|
|
10459
10481
|
enumerable: true,
|
|
10460
10482
|
configurable: true
|
|
10461
10483
|
});
|
|
10462
10484
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10463
10485
|
get: function () {
|
|
10464
|
-
return (this.permission["
|
|
10486
|
+
return (this.permission["visualizar"]);
|
|
10465
10487
|
},
|
|
10466
10488
|
enumerable: true,
|
|
10467
10489
|
configurable: true
|
|
@@ -10516,6 +10538,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10516
10538
|
__decorate([
|
|
10517
10539
|
Input()
|
|
10518
10540
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10541
|
+
__decorate([
|
|
10542
|
+
Output()
|
|
10543
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10519
10544
|
__decorate([
|
|
10520
10545
|
Output()
|
|
10521
10546
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|