@senior-gestao-pessoas/payroll-core 9.3.0-d99b0dbd-5fc0-4b98-979b-fe30c751fa36 → 9.3.0-e7358b40-0308-4e65-bc8c-f57b969edb86
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 -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 +11 -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 +64 -20
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -15
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +72 -20
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +79 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +87 -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
|
@@ -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.isOnlyView = new EventEmitter();
|
|
9273
|
+
this.isOnlyEdit = new EventEmitter();
|
|
9274
|
+
this.isOnlyDelete = new EventEmitter();
|
|
9275
|
+
this.listFromApp = [];
|
|
9271
9276
|
this.visibleChange = new EventEmitter();
|
|
9272
9277
|
this.ngUnsubscribe = new Subject();
|
|
9273
9278
|
this.orderBy = {
|
|
@@ -9301,26 +9306,33 @@ 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.isOnlyView.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.isOnlyEdit.emit(true);
|
|
9330
|
+
if (_this.listFromApp.length == 0) {
|
|
9331
|
+
console.log('ENTER IN EDIT');
|
|
9332
|
+
rowData["index"] = key;
|
|
9333
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9334
|
+
_this.visible = true;
|
|
9335
|
+
}
|
|
9324
9336
|
}
|
|
9325
9337
|
},
|
|
9326
9338
|
},
|
|
@@ -9328,16 +9340,16 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9328
9340
|
visible: !_this.isEditMode,
|
|
9329
9341
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9330
9342
|
command: function () {
|
|
9331
|
-
if (_this.isAllowToDeleteHistorical
|
|
9343
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9332
9344
|
_this.loading = true;
|
|
9333
9345
|
_this.deleteAnnuityItem(key);
|
|
9334
9346
|
}
|
|
9335
9347
|
else {
|
|
9336
|
-
_this.
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
}
|
|
9348
|
+
_this.isOnlyDelete.emit(true);
|
|
9349
|
+
if (_this.listFromApp.length == 0) {
|
|
9350
|
+
_this.loading = true;
|
|
9351
|
+
_this.deleteAnnuityItem(key);
|
|
9352
|
+
}
|
|
9341
9353
|
}
|
|
9342
9354
|
},
|
|
9343
9355
|
},
|
|
@@ -9348,6 +9360,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9348
9360
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9349
9361
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9350
9362
|
};
|
|
9363
|
+
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9364
|
+
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9365
|
+
console.log('changes', changes['listDataReciever'].currentValue);
|
|
9366
|
+
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9367
|
+
console.log('listFromApp', this.listFromApp);
|
|
9368
|
+
}
|
|
9369
|
+
};
|
|
9351
9370
|
HistoricalPixAccountComponent.prototype.createFormGroup = function () {
|
|
9352
9371
|
this.historicalPixAccountList = this.formBuilder.group({
|
|
9353
9372
|
historicalPixAccountList: this.formBuilder.control(null),
|
|
@@ -9404,6 +9423,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9404
9423
|
this.pixAccountItemInput = {};
|
|
9405
9424
|
this.visible = true;
|
|
9406
9425
|
};
|
|
9426
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9427
|
+
this.messageService.add({
|
|
9428
|
+
severity: "error",
|
|
9429
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9430
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9431
|
+
});
|
|
9432
|
+
};
|
|
9407
9433
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9408
9434
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9409
9435
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9549,16 +9575,30 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9549
9575
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9550
9576
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9551
9577
|
};
|
|
9578
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9579
|
+
get: function () {
|
|
9580
|
+
return (this.permission["incluir"]);
|
|
9581
|
+
},
|
|
9582
|
+
enumerable: true,
|
|
9583
|
+
configurable: true
|
|
9584
|
+
});
|
|
9552
9585
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9553
9586
|
get: function () {
|
|
9554
|
-
return (this.permission["
|
|
9587
|
+
return (this.permission["excluir"]);
|
|
9555
9588
|
},
|
|
9556
9589
|
enumerable: true,
|
|
9557
9590
|
configurable: true
|
|
9558
9591
|
});
|
|
9559
9592
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9560
9593
|
get: function () {
|
|
9561
|
-
return (this.permission["
|
|
9594
|
+
return (this.permission["editar"]);
|
|
9595
|
+
},
|
|
9596
|
+
enumerable: true,
|
|
9597
|
+
configurable: true
|
|
9598
|
+
});
|
|
9599
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9600
|
+
get: function () {
|
|
9601
|
+
return (this.permission["visualizar"]);
|
|
9562
9602
|
},
|
|
9563
9603
|
enumerable: true,
|
|
9564
9604
|
configurable: true
|
|
@@ -9620,6 +9660,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9620
9660
|
__decorate([
|
|
9621
9661
|
Input()
|
|
9622
9662
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9663
|
+
__decorate([
|
|
9664
|
+
Input()
|
|
9665
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
9666
|
+
__decorate([
|
|
9667
|
+
Output()
|
|
9668
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
|
|
9669
|
+
__decorate([
|
|
9670
|
+
Output()
|
|
9671
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
|
|
9672
|
+
__decorate([
|
|
9673
|
+
Output()
|
|
9674
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
|
|
9623
9675
|
__decorate([
|
|
9624
9676
|
Input()
|
|
9625
9677
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10284,6 +10336,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10284
10336
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10285
10337
|
this.keyPayload = "historicalEmployeePix";
|
|
10286
10338
|
this.withSidebar = true;
|
|
10339
|
+
this.isOnlyView = new EventEmitter();
|
|
10287
10340
|
this.enableView = new EventEmitter();
|
|
10288
10341
|
this.ngUnsubscribe = new Subject();
|
|
10289
10342
|
this.loading = true;
|
|
@@ -10351,9 +10404,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10351
10404
|
{
|
|
10352
10405
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10353
10406
|
command: function () {
|
|
10354
|
-
if (_this.isAllowToViewHistorical
|
|
10407
|
+
if (_this.isAllowToViewHistorical) {
|
|
10355
10408
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10356
10409
|
if (_this.withSidebar) {
|
|
10410
|
+
_this.isOnlyView.emit(true);
|
|
10357
10411
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10358
10412
|
relativeTo: _this.activatedRoute,
|
|
10359
10413
|
});
|
|
@@ -10363,11 +10417,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10363
10417
|
}
|
|
10364
10418
|
}
|
|
10365
10419
|
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
|
-
});
|
|
10420
|
+
_this.isNotAllowMessage();
|
|
10371
10421
|
}
|
|
10372
10422
|
},
|
|
10373
10423
|
},
|
|
@@ -10378,11 +10428,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10378
10428
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10379
10429
|
}
|
|
10380
10430
|
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
|
-
});
|
|
10431
|
+
_this.isNotAllowMessage();
|
|
10386
10432
|
}
|
|
10387
10433
|
},
|
|
10388
10434
|
},
|
|
@@ -10440,6 +10486,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10440
10486
|
});
|
|
10441
10487
|
}
|
|
10442
10488
|
};
|
|
10489
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10490
|
+
this.messageService.add({
|
|
10491
|
+
severity: "error",
|
|
10492
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10493
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10494
|
+
});
|
|
10495
|
+
};
|
|
10443
10496
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10444
10497
|
if (payload && payload.length) {
|
|
10445
10498
|
this.lastRecord = payload[0];
|
|
@@ -10447,21 +10500,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10447
10500
|
};
|
|
10448
10501
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10449
10502
|
get: function () {
|
|
10450
|
-
return (this.permission["
|
|
10503
|
+
return (this.permission["incluir"]);
|
|
10451
10504
|
},
|
|
10452
10505
|
enumerable: true,
|
|
10453
10506
|
configurable: true
|
|
10454
10507
|
});
|
|
10455
10508
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10456
10509
|
get: function () {
|
|
10457
|
-
return (this.permission["
|
|
10510
|
+
return (this.permission["excluir"]);
|
|
10458
10511
|
},
|
|
10459
10512
|
enumerable: true,
|
|
10460
10513
|
configurable: true
|
|
10461
10514
|
});
|
|
10462
10515
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10463
10516
|
get: function () {
|
|
10464
|
-
return (this.permission["
|
|
10517
|
+
return (this.permission["visualizar"]);
|
|
10465
10518
|
},
|
|
10466
10519
|
enumerable: true,
|
|
10467
10520
|
configurable: true
|
|
@@ -10516,6 +10569,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10516
10569
|
__decorate([
|
|
10517
10570
|
Input()
|
|
10518
10571
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10572
|
+
__decorate([
|
|
10573
|
+
Output()
|
|
10574
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10519
10575
|
__decorate([
|
|
10520
10576
|
Output()
|
|
10521
10577
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|