@senior-gestao-pessoas/payroll-core 9.3.0-fdc2ca03-c046-451a-bb4a-4d788fbde8cb → 9.4.0-a9314477-d301-4380-b67e-31e2d2abb4e5
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 +87 -32
- 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 +10 -2
- 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 +59 -21
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +28 -15
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +63 -21
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +28 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +83 -32
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +87 -32
- 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
|
@@ -9268,6 +9268,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9268
9268
|
this.isViewMode = false;
|
|
9269
9269
|
this.withSideBar = true;
|
|
9270
9270
|
this.defaultCpfNumber = null;
|
|
9271
|
+
this.listDataReciever = [];
|
|
9272
|
+
this.isViewModeActive = new EventEmitter();
|
|
9273
|
+
this.isEditModeActive = new EventEmitter();
|
|
9274
|
+
this.isDeleteModeActive = new EventEmitter();
|
|
9275
|
+
this.listFromApp = [];
|
|
9271
9276
|
this.visibleChange = new EventEmitter();
|
|
9272
9277
|
this.ngUnsubscribe = new Subject();
|
|
9273
9278
|
this.orderBy = {
|
|
@@ -9301,26 +9306,32 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9301
9306
|
visible: _this.isEditMode,
|
|
9302
9307
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9303
9308
|
command: function () {
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9309
|
+
if (_this.isAllowToViewHistorical) {
|
|
9310
|
+
rowData["index"] = key;
|
|
9311
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9312
|
+
_this.visible = true;
|
|
9313
|
+
}
|
|
9314
|
+
else {
|
|
9315
|
+
_this.isViewModeActive.emit(true);
|
|
9316
|
+
}
|
|
9307
9317
|
},
|
|
9308
9318
|
},
|
|
9309
9319
|
{
|
|
9310
9320
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9311
9321
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9312
9322
|
command: function () {
|
|
9313
|
-
if (_this.isAllowToEditHistorical
|
|
9323
|
+
if (_this.isAllowToEditHistorical) {
|
|
9314
9324
|
rowData["index"] = key;
|
|
9315
9325
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9316
9326
|
_this.visible = true;
|
|
9317
9327
|
}
|
|
9318
9328
|
else {
|
|
9319
|
-
_this.
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9329
|
+
_this.isEditModeActive.emit(true);
|
|
9330
|
+
if (_this.listFromApp.length == 0) {
|
|
9331
|
+
rowData["index"] = key;
|
|
9332
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9333
|
+
_this.visible = true;
|
|
9334
|
+
}
|
|
9324
9335
|
}
|
|
9325
9336
|
},
|
|
9326
9337
|
},
|
|
@@ -9328,16 +9339,16 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9328
9339
|
visible: !_this.isEditMode,
|
|
9329
9340
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9330
9341
|
command: function () {
|
|
9331
|
-
if (_this.isAllowToDeleteHistorical
|
|
9342
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9332
9343
|
_this.loading = true;
|
|
9333
9344
|
_this.deleteAnnuityItem(key);
|
|
9334
9345
|
}
|
|
9335
9346
|
else {
|
|
9336
|
-
_this.
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
}
|
|
9347
|
+
_this.isDeleteModeActive.emit(true);
|
|
9348
|
+
if (_this.listFromApp.length == 0) {
|
|
9349
|
+
_this.loading = true;
|
|
9350
|
+
_this.deleteAnnuityItem(key);
|
|
9351
|
+
}
|
|
9341
9352
|
}
|
|
9342
9353
|
},
|
|
9343
9354
|
},
|
|
@@ -9348,6 +9359,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9348
9359
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9349
9360
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9350
9361
|
};
|
|
9362
|
+
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9363
|
+
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9364
|
+
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9365
|
+
}
|
|
9366
|
+
};
|
|
9351
9367
|
HistoricalPixAccountComponent.prototype.createFormGroup = function () {
|
|
9352
9368
|
this.historicalPixAccountList = this.formBuilder.group({
|
|
9353
9369
|
historicalPixAccountList: this.formBuilder.control(null),
|
|
@@ -9404,6 +9420,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9404
9420
|
this.pixAccountItemInput = {};
|
|
9405
9421
|
this.visible = true;
|
|
9406
9422
|
};
|
|
9423
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9424
|
+
this.messageService.add({
|
|
9425
|
+
severity: "error",
|
|
9426
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9427
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9428
|
+
});
|
|
9429
|
+
};
|
|
9407
9430
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9408
9431
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9409
9432
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9549,23 +9572,30 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9549
9572
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9550
9573
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9551
9574
|
};
|
|
9575
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9576
|
+
get: function () {
|
|
9577
|
+
return (this.permission["incluir"]);
|
|
9578
|
+
},
|
|
9579
|
+
enumerable: true,
|
|
9580
|
+
configurable: true
|
|
9581
|
+
});
|
|
9552
9582
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9553
9583
|
get: function () {
|
|
9554
|
-
return (this.permission["
|
|
9584
|
+
return (this.permission["excluir"]);
|
|
9555
9585
|
},
|
|
9556
9586
|
enumerable: true,
|
|
9557
9587
|
configurable: true
|
|
9558
9588
|
});
|
|
9559
9589
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9560
9590
|
get: function () {
|
|
9561
|
-
return (this.permission["
|
|
9591
|
+
return (this.permission["editar"]);
|
|
9562
9592
|
},
|
|
9563
9593
|
enumerable: true,
|
|
9564
9594
|
configurable: true
|
|
9565
9595
|
});
|
|
9566
9596
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9567
9597
|
get: function () {
|
|
9568
|
-
return (this.permission["
|
|
9598
|
+
return (this.permission["visualizar"]);
|
|
9569
9599
|
},
|
|
9570
9600
|
enumerable: true,
|
|
9571
9601
|
configurable: true
|
|
@@ -9627,6 +9657,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9627
9657
|
__decorate([
|
|
9628
9658
|
Input()
|
|
9629
9659
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9660
|
+
__decorate([
|
|
9661
|
+
Input()
|
|
9662
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
9663
|
+
__decorate([
|
|
9664
|
+
Output()
|
|
9665
|
+
], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);
|
|
9666
|
+
__decorate([
|
|
9667
|
+
Output()
|
|
9668
|
+
], HistoricalPixAccountComponent.prototype, "isEditModeActive", void 0);
|
|
9669
|
+
__decorate([
|
|
9670
|
+
Output()
|
|
9671
|
+
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
9630
9672
|
__decorate([
|
|
9631
9673
|
Input()
|
|
9632
9674
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10291,6 +10333,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10291
10333
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10292
10334
|
this.keyPayload = "historicalEmployeePix";
|
|
10293
10335
|
this.withSidebar = true;
|
|
10336
|
+
this.isOnlyView = new EventEmitter();
|
|
10294
10337
|
this.enableView = new EventEmitter();
|
|
10295
10338
|
this.ngUnsubscribe = new Subject();
|
|
10296
10339
|
this.loading = true;
|
|
@@ -10358,14 +10401,20 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10358
10401
|
{
|
|
10359
10402
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10360
10403
|
command: function () {
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
_this.
|
|
10364
|
-
|
|
10365
|
-
|
|
10404
|
+
if (_this.isAllowToViewHistorical) {
|
|
10405
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10406
|
+
if (_this.withSidebar) {
|
|
10407
|
+
_this.isOnlyView.emit(true);
|
|
10408
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10409
|
+
relativeTo: _this.activatedRoute,
|
|
10410
|
+
});
|
|
10411
|
+
}
|
|
10412
|
+
else {
|
|
10413
|
+
_this.enableView.emit(dateChange);
|
|
10414
|
+
}
|
|
10366
10415
|
}
|
|
10367
10416
|
else {
|
|
10368
|
-
_this.
|
|
10417
|
+
_this.isNotAllowMessage();
|
|
10369
10418
|
}
|
|
10370
10419
|
},
|
|
10371
10420
|
},
|
|
@@ -10376,11 +10425,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10376
10425
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10377
10426
|
}
|
|
10378
10427
|
else {
|
|
10379
|
-
_this.
|
|
10380
|
-
severity: "error",
|
|
10381
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10382
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10383
|
-
});
|
|
10428
|
+
_this.isNotAllowMessage();
|
|
10384
10429
|
}
|
|
10385
10430
|
},
|
|
10386
10431
|
},
|
|
@@ -10438,6 +10483,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10438
10483
|
});
|
|
10439
10484
|
}
|
|
10440
10485
|
};
|
|
10486
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10487
|
+
this.messageService.add({
|
|
10488
|
+
severity: "error",
|
|
10489
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10490
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10491
|
+
});
|
|
10492
|
+
};
|
|
10441
10493
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10442
10494
|
if (payload && payload.length) {
|
|
10443
10495
|
this.lastRecord = payload[0];
|
|
@@ -10445,21 +10497,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10445
10497
|
};
|
|
10446
10498
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10447
10499
|
get: function () {
|
|
10448
|
-
return (this.permission["
|
|
10500
|
+
return (this.permission["incluir"]);
|
|
10449
10501
|
},
|
|
10450
10502
|
enumerable: true,
|
|
10451
10503
|
configurable: true
|
|
10452
10504
|
});
|
|
10453
10505
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10454
10506
|
get: function () {
|
|
10455
|
-
return (this.permission["
|
|
10507
|
+
return (this.permission["excluir"]);
|
|
10456
10508
|
},
|
|
10457
10509
|
enumerable: true,
|
|
10458
10510
|
configurable: true
|
|
10459
10511
|
});
|
|
10460
10512
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10461
10513
|
get: function () {
|
|
10462
|
-
return (this.permission["
|
|
10514
|
+
return (this.permission["visualizar"]);
|
|
10463
10515
|
},
|
|
10464
10516
|
enumerable: true,
|
|
10465
10517
|
configurable: true
|
|
@@ -10514,6 +10566,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10514
10566
|
__decorate([
|
|
10515
10567
|
Input()
|
|
10516
10568
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10569
|
+
__decorate([
|
|
10570
|
+
Output()
|
|
10571
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10517
10572
|
__decorate([
|
|
10518
10573
|
Output()
|
|
10519
10574
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|