@senior-gestao-pessoas/payroll-core 9.3.0-4d39b464-875a-426e-94a5-e9a89ba0079c → 9.3.0-56ba6c21-b9f9-42a3-b8a4-a98934e9ccdf
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 +84 -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 +61 -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 +69 -20
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -15
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +76 -31
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +84 -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.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,16 +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"]);
|
|
9592
|
+
},
|
|
9593
|
+
enumerable: true,
|
|
9594
|
+
configurable: true
|
|
9595
|
+
});
|
|
9596
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9597
|
+
get: function () {
|
|
9598
|
+
return (this.permission["visualizar"]);
|
|
9562
9599
|
},
|
|
9563
9600
|
enumerable: true,
|
|
9564
9601
|
configurable: true
|
|
@@ -9620,6 +9657,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9620
9657
|
__decorate([
|
|
9621
9658
|
Input()
|
|
9622
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);
|
|
9623
9672
|
__decorate([
|
|
9624
9673
|
Input()
|
|
9625
9674
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10284,6 +10333,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10284
10333
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10285
10334
|
this.keyPayload = "historicalEmployeePix";
|
|
10286
10335
|
this.withSidebar = true;
|
|
10336
|
+
this.isOnlyView = new EventEmitter();
|
|
10287
10337
|
this.enableView = new EventEmitter();
|
|
10288
10338
|
this.ngUnsubscribe = new Subject();
|
|
10289
10339
|
this.loading = true;
|
|
@@ -10351,9 +10401,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10351
10401
|
{
|
|
10352
10402
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10353
10403
|
command: function () {
|
|
10354
|
-
if (_this.isAllowToViewHistorical
|
|
10404
|
+
if (_this.isAllowToViewHistorical) {
|
|
10355
10405
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10356
10406
|
if (_this.withSidebar) {
|
|
10407
|
+
_this.isOnlyView.emit(true);
|
|
10357
10408
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10358
10409
|
relativeTo: _this.activatedRoute,
|
|
10359
10410
|
});
|
|
@@ -10363,11 +10414,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10363
10414
|
}
|
|
10364
10415
|
}
|
|
10365
10416
|
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
|
-
});
|
|
10417
|
+
_this.isNotAllowMessage();
|
|
10371
10418
|
}
|
|
10372
10419
|
},
|
|
10373
10420
|
},
|
|
@@ -10378,11 +10425,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10378
10425
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10379
10426
|
}
|
|
10380
10427
|
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
|
-
});
|
|
10428
|
+
_this.isNotAllowMessage();
|
|
10386
10429
|
}
|
|
10387
10430
|
},
|
|
10388
10431
|
},
|
|
@@ -10440,6 +10483,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10440
10483
|
});
|
|
10441
10484
|
}
|
|
10442
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
|
+
};
|
|
10443
10493
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10444
10494
|
if (payload && payload.length) {
|
|
10445
10495
|
this.lastRecord = payload[0];
|
|
@@ -10447,21 +10497,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10447
10497
|
};
|
|
10448
10498
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10449
10499
|
get: function () {
|
|
10450
|
-
return (this.permission["
|
|
10500
|
+
return (this.permission["incluir"]);
|
|
10451
10501
|
},
|
|
10452
10502
|
enumerable: true,
|
|
10453
10503
|
configurable: true
|
|
10454
10504
|
});
|
|
10455
10505
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10456
10506
|
get: function () {
|
|
10457
|
-
return (this.permission["
|
|
10507
|
+
return (this.permission["excluir"]);
|
|
10458
10508
|
},
|
|
10459
10509
|
enumerable: true,
|
|
10460
10510
|
configurable: true
|
|
10461
10511
|
});
|
|
10462
10512
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10463
10513
|
get: function () {
|
|
10464
|
-
return (this.permission["
|
|
10514
|
+
return (this.permission["visualizar"]);
|
|
10465
10515
|
},
|
|
10466
10516
|
enumerable: true,
|
|
10467
10517
|
configurable: true
|
|
@@ -10516,6 +10566,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10516
10566
|
__decorate([
|
|
10517
10567
|
Input()
|
|
10518
10568
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10569
|
+
__decorate([
|
|
10570
|
+
Output()
|
|
10571
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10519
10572
|
__decorate([
|
|
10520
10573
|
Output()
|
|
10521
10574
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|