@senior-gestao-pessoas/payroll-core 9.3.0-6fe87530-a4db-47c2-9330-935d415a90a5 → 9.3.0-7aaf9dac-728c-48d9-acf3-c7589164bebb
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 +55 -27
- 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 +6 -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 +39 -17
- 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 +39 -17
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +19 -13
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +55 -27
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +55 -27
- 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,10 @@ 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();
|
|
9271
9275
|
this.visibleChange = new EventEmitter();
|
|
9272
9276
|
this.ngUnsubscribe = new Subject();
|
|
9273
9277
|
this.orderBy = {
|
|
@@ -9307,11 +9311,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9307
9311
|
_this.visible = true;
|
|
9308
9312
|
}
|
|
9309
9313
|
else {
|
|
9310
|
-
_this.
|
|
9311
|
-
severity: "error",
|
|
9312
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
9313
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9314
|
-
});
|
|
9314
|
+
_this.isOnlyView.emit(true);
|
|
9315
9315
|
}
|
|
9316
9316
|
},
|
|
9317
9317
|
},
|
|
@@ -9320,16 +9320,19 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9320
9320
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9321
9321
|
command: function () {
|
|
9322
9322
|
if (_this.isAllowToEditHistorical) {
|
|
9323
|
+
console.log("ENTER IN isAllowToEditHistorical");
|
|
9323
9324
|
rowData["index"] = key;
|
|
9324
9325
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9325
9326
|
_this.visible = true;
|
|
9326
9327
|
}
|
|
9327
9328
|
else {
|
|
9328
|
-
_this.
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9329
|
+
_this.isOnlyEdit.emit(true);
|
|
9330
|
+
if (!_this.listDataReciever) {
|
|
9331
|
+
console.log("ENTER IN listDataReciever");
|
|
9332
|
+
rowData["index"] = key;
|
|
9333
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9334
|
+
_this.visible = true;
|
|
9335
|
+
}
|
|
9333
9336
|
}
|
|
9334
9337
|
},
|
|
9335
9338
|
},
|
|
@@ -9342,11 +9345,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9342
9345
|
_this.deleteAnnuityItem(key);
|
|
9343
9346
|
}
|
|
9344
9347
|
else {
|
|
9345
|
-
_this.
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
}
|
|
9348
|
+
_this.isOnlyDelete.emit(true);
|
|
9349
|
+
if (!_this.listDataReciever) {
|
|
9350
|
+
_this.loading = true;
|
|
9351
|
+
_this.deleteAnnuityItem(key);
|
|
9352
|
+
}
|
|
9350
9353
|
}
|
|
9351
9354
|
},
|
|
9352
9355
|
},
|
|
@@ -9413,6 +9416,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9413
9416
|
this.pixAccountItemInput = {};
|
|
9414
9417
|
this.visible = true;
|
|
9415
9418
|
};
|
|
9419
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9420
|
+
this.messageService.add({
|
|
9421
|
+
severity: "error",
|
|
9422
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9423
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9424
|
+
});
|
|
9425
|
+
};
|
|
9416
9426
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9417
9427
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9418
9428
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9643,6 +9653,18 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9643
9653
|
__decorate([
|
|
9644
9654
|
Input()
|
|
9645
9655
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9656
|
+
__decorate([
|
|
9657
|
+
Input()
|
|
9658
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
9659
|
+
__decorate([
|
|
9660
|
+
Output()
|
|
9661
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyView", void 0);
|
|
9662
|
+
__decorate([
|
|
9663
|
+
Output()
|
|
9664
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyEdit", void 0);
|
|
9665
|
+
__decorate([
|
|
9666
|
+
Output()
|
|
9667
|
+
], HistoricalPixAccountComponent.prototype, "isOnlyDelete", void 0);
|
|
9646
9668
|
__decorate([
|
|
9647
9669
|
Input()
|
|
9648
9670
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10307,6 +10329,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10307
10329
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10308
10330
|
this.keyPayload = "historicalEmployeePix";
|
|
10309
10331
|
this.withSidebar = true;
|
|
10332
|
+
this.isOnlyView = new EventEmitter();
|
|
10310
10333
|
this.enableView = new EventEmitter();
|
|
10311
10334
|
this.ngUnsubscribe = new Subject();
|
|
10312
10335
|
this.loading = true;
|
|
@@ -10376,19 +10399,18 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10376
10399
|
command: function () {
|
|
10377
10400
|
if (_this.isAllowToViewHistorical) {
|
|
10378
10401
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10379
|
-
if (_this.withSidebar)
|
|
10402
|
+
if (_this.withSidebar) {
|
|
10403
|
+
_this.isOnlyView.emit(true);
|
|
10380
10404
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10381
10405
|
relativeTo: _this.activatedRoute,
|
|
10382
10406
|
});
|
|
10383
|
-
|
|
10407
|
+
}
|
|
10408
|
+
else {
|
|
10384
10409
|
_this.enableView.emit(dateChange);
|
|
10410
|
+
}
|
|
10385
10411
|
}
|
|
10386
10412
|
else {
|
|
10387
|
-
_this.
|
|
10388
|
-
severity: "error",
|
|
10389
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10390
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10391
|
-
});
|
|
10413
|
+
_this.isNotAllowMessage();
|
|
10392
10414
|
}
|
|
10393
10415
|
},
|
|
10394
10416
|
},
|
|
@@ -10399,11 +10421,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10399
10421
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10400
10422
|
}
|
|
10401
10423
|
else {
|
|
10402
|
-
_this.
|
|
10403
|
-
severity: "error",
|
|
10404
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10405
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10406
|
-
});
|
|
10424
|
+
_this.isNotAllowMessage();
|
|
10407
10425
|
}
|
|
10408
10426
|
},
|
|
10409
10427
|
},
|
|
@@ -10461,6 +10479,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10461
10479
|
});
|
|
10462
10480
|
}
|
|
10463
10481
|
};
|
|
10482
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10483
|
+
this.messageService.add({
|
|
10484
|
+
severity: "error",
|
|
10485
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10486
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10487
|
+
});
|
|
10488
|
+
};
|
|
10464
10489
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10465
10490
|
if (payload && payload.length) {
|
|
10466
10491
|
this.lastRecord = payload[0];
|
|
@@ -10537,6 +10562,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10537
10562
|
__decorate([
|
|
10538
10563
|
Input()
|
|
10539
10564
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10565
|
+
__decorate([
|
|
10566
|
+
Output()
|
|
10567
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10540
10568
|
__decorate([
|
|
10541
10569
|
Output()
|
|
10542
10570
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|