@senior-gestao-pessoas/payroll-core 9.3.0-fdc2ca03-c046-451a-bb4a-4d788fbde8cb → 9.4.0-02f1998a-8c51-4317-9b38-c21241fa2248
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 +121 -63
- 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 +4 -1
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +60 -22
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +57 -46
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +64 -22
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +61 -46
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +113 -63
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +121 -63
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/locale/en-US.json +1 -1
- package/locale/es-ES.json +1 -1
- package/locale/pt-BR.json +1 -1
- package/package.json +2 -32
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -9434,6 +9434,11 @@
|
|
|
9434
9434
|
this.isViewMode = false;
|
|
9435
9435
|
this.withSideBar = true;
|
|
9436
9436
|
this.defaultCpfNumber = null;
|
|
9437
|
+
this.listDataReciever = [];
|
|
9438
|
+
this.isViewModeActive = new core.EventEmitter();
|
|
9439
|
+
this.isEditModeActive = new core.EventEmitter();
|
|
9440
|
+
this.isDeleteModeActive = new core.EventEmitter();
|
|
9441
|
+
this.listFromApp = [];
|
|
9437
9442
|
this.visibleChange = new core.EventEmitter();
|
|
9438
9443
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
9439
9444
|
this.orderBy = {
|
|
@@ -9467,26 +9472,32 @@
|
|
|
9467
9472
|
visible: _this.isEditMode,
|
|
9468
9473
|
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9469
9474
|
command: function () {
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9475
|
+
if (_this.isAllowToViewHistorical) {
|
|
9476
|
+
rowData["index"] = key;
|
|
9477
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9478
|
+
_this.visible = true;
|
|
9479
|
+
}
|
|
9480
|
+
else {
|
|
9481
|
+
_this.isViewModeActive.emit(true);
|
|
9482
|
+
}
|
|
9473
9483
|
},
|
|
9474
9484
|
},
|
|
9475
9485
|
{
|
|
9476
9486
|
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9477
9487
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9478
9488
|
command: function () {
|
|
9479
|
-
if (_this.isAllowToEditHistorical
|
|
9489
|
+
if (_this.isAllowToEditHistorical) {
|
|
9480
9490
|
rowData["index"] = key;
|
|
9481
9491
|
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9482
9492
|
_this.visible = true;
|
|
9483
9493
|
}
|
|
9484
9494
|
else {
|
|
9485
|
-
_this.
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9495
|
+
_this.isEditModeActive.emit(true);
|
|
9496
|
+
if (_this.listFromApp.length == 0) {
|
|
9497
|
+
rowData["index"] = key;
|
|
9498
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9499
|
+
_this.visible = true;
|
|
9500
|
+
}
|
|
9490
9501
|
}
|
|
9491
9502
|
},
|
|
9492
9503
|
},
|
|
@@ -9494,16 +9505,16 @@
|
|
|
9494
9505
|
visible: !_this.isEditMode,
|
|
9495
9506
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9496
9507
|
command: function () {
|
|
9497
|
-
if (_this.isAllowToDeleteHistorical
|
|
9508
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9498
9509
|
_this.loading = true;
|
|
9499
9510
|
_this.deleteAnnuityItem(key);
|
|
9500
9511
|
}
|
|
9501
9512
|
else {
|
|
9502
|
-
_this.
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
}
|
|
9513
|
+
_this.isDeleteModeActive.emit(true);
|
|
9514
|
+
if (_this.listFromApp.length == 0) {
|
|
9515
|
+
_this.loading = true;
|
|
9516
|
+
_this.deleteAnnuityItem(key);
|
|
9517
|
+
}
|
|
9507
9518
|
}
|
|
9508
9519
|
},
|
|
9509
9520
|
},
|
|
@@ -9514,6 +9525,11 @@
|
|
|
9514
9525
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9515
9526
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9516
9527
|
};
|
|
9528
|
+
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9529
|
+
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9530
|
+
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9531
|
+
}
|
|
9532
|
+
};
|
|
9517
9533
|
HistoricalPixAccountComponent.prototype.createFormGroup = function () {
|
|
9518
9534
|
this.historicalPixAccountList = this.formBuilder.group({
|
|
9519
9535
|
historicalPixAccountList: this.formBuilder.control(null),
|
|
@@ -9570,6 +9586,13 @@
|
|
|
9570
9586
|
this.pixAccountItemInput = {};
|
|
9571
9587
|
this.visible = true;
|
|
9572
9588
|
};
|
|
9589
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9590
|
+
this.messageService.add({
|
|
9591
|
+
severity: "error",
|
|
9592
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9593
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9594
|
+
});
|
|
9595
|
+
};
|
|
9573
9596
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9574
9597
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9575
9598
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9715,23 +9738,30 @@
|
|
|
9715
9738
|
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
9716
9739
|
return FormatUtilsService.getFormattedPercentage(value);
|
|
9717
9740
|
};
|
|
9741
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
9742
|
+
get: function () {
|
|
9743
|
+
return (this.permission["incluir"]);
|
|
9744
|
+
},
|
|
9745
|
+
enumerable: true,
|
|
9746
|
+
configurable: true
|
|
9747
|
+
});
|
|
9718
9748
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9719
9749
|
get: function () {
|
|
9720
|
-
return (this.permission["
|
|
9750
|
+
return (this.permission["excluir"]);
|
|
9721
9751
|
},
|
|
9722
9752
|
enumerable: true,
|
|
9723
9753
|
configurable: true
|
|
9724
9754
|
});
|
|
9725
9755
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9726
9756
|
get: function () {
|
|
9727
|
-
return (this.permission["
|
|
9757
|
+
return (this.permission["editar"]);
|
|
9728
9758
|
},
|
|
9729
9759
|
enumerable: true,
|
|
9730
9760
|
configurable: true
|
|
9731
9761
|
});
|
|
9732
9762
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9733
9763
|
get: function () {
|
|
9734
|
-
return (this.permission["
|
|
9764
|
+
return (this.permission["visualizar"]);
|
|
9735
9765
|
},
|
|
9736
9766
|
enumerable: true,
|
|
9737
9767
|
configurable: true
|
|
@@ -9793,6 +9823,18 @@
|
|
|
9793
9823
|
__decorate([
|
|
9794
9824
|
core.Input()
|
|
9795
9825
|
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9826
|
+
__decorate([
|
|
9827
|
+
core.Input()
|
|
9828
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
9829
|
+
__decorate([
|
|
9830
|
+
core.Output()
|
|
9831
|
+
], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);
|
|
9832
|
+
__decorate([
|
|
9833
|
+
core.Output()
|
|
9834
|
+
], HistoricalPixAccountComponent.prototype, "isEditModeActive", void 0);
|
|
9835
|
+
__decorate([
|
|
9836
|
+
core.Output()
|
|
9837
|
+
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
9796
9838
|
__decorate([
|
|
9797
9839
|
core.Input()
|
|
9798
9840
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -9809,7 +9851,7 @@
|
|
|
9809
9851
|
core.Component({
|
|
9810
9852
|
// tslint:disable-next-line:component-selector
|
|
9811
9853
|
selector: "c-historical-pix-account",
|
|
9812
|
-
template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div class=\"ui-g-12\">\n <p-table\n id=\"table-annuity\"\n [value]=\"listData\"\n [columns]=\"cols\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [sortMode]=\"'multiple'\"\n *sLoadingState=\"loading\"\n [rows]=\"recordByRow\"\n dataKey=\"id\">\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-s'\">\n <col [ngClass]=\"'col-action'\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th\n [pSortableColumn]=\"'pixKeyType'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\" id=\"table-0\">\n <span\n id=\"table-annuity-s-0\">{{ 'hcm.payroll.employees_addition_pix_key_type' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'pixKey'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.employees_addition_pix_key' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'percentage'\"\n [pTooltip]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.historical_pix_account_label_percentage' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"></p-sortIcon>\n </div>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n",
|
|
9854
|
+
template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div class=\"ui-g-12\">\n <p-table\n id=\"table-annuity\"\n [value]=\"listData\"\n [columns]=\"cols\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [sortMode]=\"'multiple'\"\n *sLoadingState=\"loading\"\n [rows]=\"recordByRow\"\n dataKey=\"id\">\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-s'\">\n <col [ngClass]=\"'col-action'\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th\n [pSortableColumn]=\"'pixKeyType'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\" id=\"table-0\">\n <span\n id=\"table-annuity-s-0\">{{ 'hcm.payroll.employees_addition_pix_key_type' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'pixKey'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.employees_addition_pix_key' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'percentage'\"\n [pTooltip]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.historical_pix_account_label_percentage' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"></p-sortIcon>\n </div>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"!isViewMode && actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"!isViewMode && actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n",
|
|
9813
9855
|
styles: [".refresh{width:100%!important}#table-annuity .col-default-s{width:10%}#table-annuity .col-default-m{width:12%}#table-annuity .col-default-l{width:16%}#table-annuity .col-action{width:10%}#table-annuity .icon-warning{text-align:center!important;color:#ff6d00c7!important}@media screen and (max-width:612px){#table-annuity .col-default-1,#table-annuity .col-default-2{width:16%}#table-annuity .col-default-3{width:26%}#table-annuity .col-icon{width:10%}#table-annuity .col-action{width:27%}}#main{display:-webkit-box;display:flex;height:100%;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}#main form{height:100%}#main .footer{border-top:1px solid #ccc;padding-top:15px;margin-top:15px;flex-shrink:0;margin-bottom:-18px}#main .footer-s-border{padding-left:7px;flex-shrink:0;margin-bottom:-18px}"]
|
|
9814
9856
|
})
|
|
9815
9857
|
], HistoricalPixAccountComponent);
|
|
@@ -10457,6 +10499,8 @@
|
|
|
10457
10499
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10458
10500
|
this.keyPayload = "historicalEmployeePix";
|
|
10459
10501
|
this.withSidebar = true;
|
|
10502
|
+
this.isOnlyView = new core.EventEmitter();
|
|
10503
|
+
this.isOnlyEdit = new core.EventEmitter();
|
|
10460
10504
|
this.enableView = new core.EventEmitter();
|
|
10461
10505
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10462
10506
|
this.loading = true;
|
|
@@ -10465,18 +10509,6 @@
|
|
|
10465
10509
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10466
10510
|
field: "dateChange",
|
|
10467
10511
|
},
|
|
10468
|
-
{
|
|
10469
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
10470
|
-
field: "pixKeyType.value",
|
|
10471
|
-
},
|
|
10472
|
-
{
|
|
10473
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
10474
|
-
field: "pixKey",
|
|
10475
|
-
},
|
|
10476
|
-
{
|
|
10477
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
10478
|
-
field: "percentage",
|
|
10479
|
-
},
|
|
10480
10512
|
{
|
|
10481
10513
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10482
10514
|
field: "numberOfPixAccount",
|
|
@@ -10497,41 +10529,51 @@
|
|
|
10497
10529
|
var _this = this;
|
|
10498
10530
|
payload.forEach(function (value) {
|
|
10499
10531
|
value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
|
|
10500
|
-
value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
|
|
10501
|
-
value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
|
|
10502
10532
|
});
|
|
10503
10533
|
this.onGridLoad(payload);
|
|
10504
10534
|
this.loading = false;
|
|
10505
10535
|
};
|
|
10506
|
-
HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
|
|
10507
|
-
var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
|
|
10508
|
-
if (keyType === "TELEPHONE") {
|
|
10509
|
-
return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
|
|
10510
|
-
}
|
|
10511
|
-
else if (keyType === "CPF") {
|
|
10512
|
-
return FormatUtilsService.getFormattedCpf(pixKey);
|
|
10513
|
-
}
|
|
10514
|
-
else if (keyType === "CNPJ") {
|
|
10515
|
-
return FormatUtilsService.getFormattedCnpj(pixKey);
|
|
10516
|
-
}
|
|
10517
|
-
else {
|
|
10518
|
-
return pixKey;
|
|
10519
|
-
}
|
|
10520
|
-
};
|
|
10521
10536
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10522
10537
|
var _this = this;
|
|
10523
10538
|
return [
|
|
10524
10539
|
{
|
|
10525
10540
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10526
10541
|
command: function () {
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
_this.
|
|
10530
|
-
|
|
10531
|
-
|
|
10542
|
+
if (_this.isAllowToViewHistorical) {
|
|
10543
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10544
|
+
if (_this.withSidebar) {
|
|
10545
|
+
_this.isOnlyView.emit(true);
|
|
10546
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10547
|
+
relativeTo: _this.activatedRoute,
|
|
10548
|
+
});
|
|
10549
|
+
}
|
|
10550
|
+
else {
|
|
10551
|
+
_this.enableView.emit(dateChange);
|
|
10552
|
+
}
|
|
10532
10553
|
}
|
|
10533
10554
|
else {
|
|
10534
|
-
_this.
|
|
10555
|
+
_this.isNotAllowMessage();
|
|
10556
|
+
}
|
|
10557
|
+
},
|
|
10558
|
+
},
|
|
10559
|
+
{
|
|
10560
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10561
|
+
command: function () {
|
|
10562
|
+
if (_this.isAllowToEditHistorical) {
|
|
10563
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10564
|
+
if (_this.withSidebar) {
|
|
10565
|
+
_this.isOnlyView.emit(false);
|
|
10566
|
+
_this.isOnlyEdit.emit(true);
|
|
10567
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10568
|
+
relativeTo: _this.activatedRoute,
|
|
10569
|
+
});
|
|
10570
|
+
}
|
|
10571
|
+
else {
|
|
10572
|
+
_this.enableView.emit(dateChange);
|
|
10573
|
+
}
|
|
10574
|
+
}
|
|
10575
|
+
else {
|
|
10576
|
+
_this.isNotAllowMessage();
|
|
10535
10577
|
}
|
|
10536
10578
|
},
|
|
10537
10579
|
},
|
|
@@ -10542,14 +10584,10 @@
|
|
|
10542
10584
|
_this.delete(rowData.id, rowData.dateChange);
|
|
10543
10585
|
}
|
|
10544
10586
|
else {
|
|
10545
|
-
_this.
|
|
10546
|
-
severity: "error",
|
|
10547
|
-
summary: _this.translateService.instant("hcm.payroll.error"),
|
|
10548
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10549
|
-
});
|
|
10587
|
+
_this.isNotAllowMessage();
|
|
10550
10588
|
}
|
|
10551
10589
|
},
|
|
10552
|
-
}
|
|
10590
|
+
}
|
|
10553
10591
|
];
|
|
10554
10592
|
};
|
|
10555
10593
|
HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
|
|
@@ -10604,6 +10642,13 @@
|
|
|
10604
10642
|
});
|
|
10605
10643
|
}
|
|
10606
10644
|
};
|
|
10645
|
+
HistoricalPixAccountListComponent.prototype.isNotAllowMessage = function () {
|
|
10646
|
+
this.messageService.add({
|
|
10647
|
+
severity: "error",
|
|
10648
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
10649
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
10650
|
+
});
|
|
10651
|
+
};
|
|
10607
10652
|
HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
|
|
10608
10653
|
if (payload && payload.length) {
|
|
10609
10654
|
this.lastRecord = payload[0];
|
|
@@ -10611,21 +10656,28 @@
|
|
|
10611
10656
|
};
|
|
10612
10657
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10613
10658
|
get: function () {
|
|
10614
|
-
return (this.permission["
|
|
10659
|
+
return (this.permission["incluir"]);
|
|
10615
10660
|
},
|
|
10616
10661
|
enumerable: true,
|
|
10617
10662
|
configurable: true
|
|
10618
10663
|
});
|
|
10619
10664
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10620
10665
|
get: function () {
|
|
10621
|
-
return (this.permission["
|
|
10666
|
+
return (this.permission["excluir"]);
|
|
10622
10667
|
},
|
|
10623
10668
|
enumerable: true,
|
|
10624
10669
|
configurable: true
|
|
10625
10670
|
});
|
|
10626
10671
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
|
|
10627
10672
|
get: function () {
|
|
10628
|
-
return (this.permission["
|
|
10673
|
+
return (this.permission["visualizar"]);
|
|
10674
|
+
},
|
|
10675
|
+
enumerable: true,
|
|
10676
|
+
configurable: true
|
|
10677
|
+
});
|
|
10678
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10679
|
+
get: function () {
|
|
10680
|
+
return (this.permission["editar"]);
|
|
10629
10681
|
},
|
|
10630
10682
|
enumerable: true,
|
|
10631
10683
|
configurable: true
|
|
@@ -10680,6 +10732,12 @@
|
|
|
10680
10732
|
__decorate([
|
|
10681
10733
|
core.Input()
|
|
10682
10734
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10735
|
+
__decorate([
|
|
10736
|
+
core.Output()
|
|
10737
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10738
|
+
__decorate([
|
|
10739
|
+
core.Output()
|
|
10740
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyEdit", void 0);
|
|
10683
10741
|
__decorate([
|
|
10684
10742
|
core.Output()
|
|
10685
10743
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|