@senior-gestao-pessoas/payroll-core 9.1.0-e07567bf-636f-460a-96db-6e615ac66464 → 9.2.0-2878782e-f402-4a82-a001-6491bdb0f359
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 +360 -18
- 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-form/historical-pix-account-form.component.d.ts +5 -1
- package/components/historical-pix-account/historical-pix-account.component.d.ts +1 -0
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +49 -0
- package/components/historical-pix-account-list/historical-pix-account-list.module.d.ts +2 -0
- package/components/historical-pix-account-list/historical-pix-account-list.service.d.ts +9 -0
- package/components/historical-pix-account-list/index.d.ts +3 -0
- package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +72 -19
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +6 -2
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +215 -0
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.module.js +39 -0
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.service.js +35 -0
- package/esm2015/components/historical-pix-account-list/index.js +4 -0
- package/esm2015/public_api.js +2 -1
- package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +73 -19
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +6 -2
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +235 -0
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.module.js +42 -0
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.service.js +37 -0
- package/esm5/components/historical-pix-account-list/index.js +4 -0
- package/esm5/public_api.js +2 -1
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +332 -19
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +358 -19
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/locale/en-US.json +12 -4
- package/locale/es-ES.json +12 -4
- package/locale/pt-BR.json +9 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -8531,6 +8531,7 @@ let HistoricalPixAccountComponent = class HistoricalPixAccountComponent {
|
|
|
8531
8531
|
this.isEditMode = false;
|
|
8532
8532
|
this.isViewMode = false;
|
|
8533
8533
|
this.withSideBar = true;
|
|
8534
|
+
this.defaultCpfNumber = null;
|
|
8534
8535
|
this.visibleChange = new EventEmitter();
|
|
8535
8536
|
this.ngUnsubscribe = new Subject();
|
|
8536
8537
|
this.orderBy = {
|
|
@@ -8813,6 +8814,9 @@ __decorate([
|
|
|
8813
8814
|
__decorate([
|
|
8814
8815
|
Input()
|
|
8815
8816
|
], HistoricalPixAccountComponent.prototype, "paramsForm", void 0);
|
|
8817
|
+
__decorate([
|
|
8818
|
+
Input()
|
|
8819
|
+
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
|
|
8816
8820
|
__decorate([
|
|
8817
8821
|
Input()
|
|
8818
8822
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -8829,7 +8833,7 @@ HistoricalPixAccountComponent = __decorate([
|
|
|
8829
8833
|
Component({
|
|
8830
8834
|
// tslint:disable-next-line:component-selector
|
|
8831
8835
|
selector: "c-historical-pix-account",
|
|
8832
|
-
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)\"></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)\"></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",
|
|
8836
|
+
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",
|
|
8833
8837
|
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}"]
|
|
8834
8838
|
})
|
|
8835
8839
|
], HistoricalPixAccountComponent);
|
|
@@ -9005,6 +9009,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9005
9009
|
this.withSideBar = true;
|
|
9006
9010
|
this.isEditMode = false;
|
|
9007
9011
|
this.paramsForm = new FormGroup({});
|
|
9012
|
+
this.defaultCpfNumber = null;
|
|
9008
9013
|
this.visibleChange = new EventEmitter();
|
|
9009
9014
|
this.pixAccountItemToList = new EventEmitter();
|
|
9010
9015
|
this.ngUnsubscribe = new Subject();
|
|
@@ -9048,7 +9053,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9048
9053
|
this.pixKeyType = item.key;
|
|
9049
9054
|
this.isShowPixKeyFieldValidatorMessage = true;
|
|
9050
9055
|
this.pixAccountFormGroup.get("pixKey").reset();
|
|
9051
|
-
this.setPixKeyValidators();
|
|
9056
|
+
this.setPixKeyValidators(true);
|
|
9052
9057
|
if (item.key === "CPF") {
|
|
9053
9058
|
this.setDefaultCpfPixKey();
|
|
9054
9059
|
}
|
|
@@ -9071,15 +9076,26 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9071
9076
|
if (value && value.currentItem && Object.keys(value.currentItem).length) {
|
|
9072
9077
|
this.pixAccountFormGroup.patchValue(this.convertDTOToShowWithCustomFields(Object.assign({}, value.currentItem)));
|
|
9073
9078
|
this.labelBtnAdd = "hcm.payroll.employees_update";
|
|
9074
|
-
this.setValidatorsAccordingList(value.listData, value.currentItem["index"]);
|
|
9079
|
+
this.setValidatorsAccordingList(value.listData, value.currentItem["index"], value && value["isEditMode"]);
|
|
9075
9080
|
if (!this.isView) {
|
|
9076
9081
|
this.configEnableFields(value && value["isEditMode"]);
|
|
9077
9082
|
}
|
|
9083
|
+
else {
|
|
9084
|
+
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
9085
|
+
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
9086
|
+
this.formatPixKeyTelehponeNumber();
|
|
9087
|
+
}
|
|
9088
|
+
}
|
|
9078
9089
|
}
|
|
9079
9090
|
else {
|
|
9080
9091
|
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
9081
9092
|
}
|
|
9082
9093
|
}
|
|
9094
|
+
formatPixKeyTelehponeNumber() {
|
|
9095
|
+
if (this.pixKeyType === "TELEPHONE") {
|
|
9096
|
+
this.pixAccountFormGroup.get("pixKey").setValue(FormatUtilsService.getFormattedTelephoneNumber(this.pixAccountFormGroup.get("pixKey").value));
|
|
9097
|
+
}
|
|
9098
|
+
}
|
|
9083
9099
|
convertDTOToShowWithCustomFields(data) {
|
|
9084
9100
|
const obj = Object.assign({}, data);
|
|
9085
9101
|
obj["customFields"] = mountCustomToShow(obj["customFields"]);
|
|
@@ -9089,10 +9105,8 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9089
9105
|
this.visibleBtnSave = isEditMode;
|
|
9090
9106
|
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
9091
9107
|
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
9092
|
-
this.setPixKeyValidators();
|
|
9093
|
-
|
|
9094
|
-
this.pixAccountFormGroup.get("pixKey").setValue(FormatUtilsService.getFormattedTelephoneNumber(this.pixAccountFormGroup.get("pixKey").value));
|
|
9095
|
-
}
|
|
9108
|
+
this.setPixKeyValidators(isEditMode);
|
|
9109
|
+
this.formatPixKeyTelehponeNumber();
|
|
9096
9110
|
}
|
|
9097
9111
|
configEnabledFields(this.pixAccountFormGroup, isEditMode, [
|
|
9098
9112
|
"pixKeyType",
|
|
@@ -9145,7 +9159,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9145
9159
|
*/
|
|
9146
9160
|
set getListPixAccount(pixAccountList) {
|
|
9147
9161
|
if (pixAccountList) {
|
|
9148
|
-
this.setValidatorsAccordingList(pixAccountList);
|
|
9162
|
+
this.setValidatorsAccordingList(pixAccountList, null, false);
|
|
9149
9163
|
}
|
|
9150
9164
|
else {
|
|
9151
9165
|
this.resetForm();
|
|
@@ -9159,7 +9173,7 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9159
9173
|
* @param pixAccountList
|
|
9160
9174
|
* @param index
|
|
9161
9175
|
*/
|
|
9162
|
-
setValidatorsAccordingList(pixAccountList, index = null) {
|
|
9176
|
+
setValidatorsAccordingList(pixAccountList, index = null, isEditMode = true) {
|
|
9163
9177
|
this.pixAccountList = pixAccountList && pixAccountList.length ? [...pixAccountList] : [];
|
|
9164
9178
|
const percentageIncluded = [];
|
|
9165
9179
|
if (this.pixAccountList && this.pixAccountList.length) {
|
|
@@ -9169,13 +9183,14 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9169
9183
|
}
|
|
9170
9184
|
});
|
|
9171
9185
|
}
|
|
9172
|
-
this.
|
|
9186
|
+
this.beforeSetPixKeyTypeValidator();
|
|
9187
|
+
this.setPixKeyValidators(isEditMode);
|
|
9173
9188
|
this.validatePercentageValid(percentageIncluded);
|
|
9174
9189
|
}
|
|
9175
9190
|
/**
|
|
9176
9191
|
* Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
|
|
9177
9192
|
*/
|
|
9178
|
-
setPixKeyValidators() {
|
|
9193
|
+
setPixKeyValidators(isEditMode) {
|
|
9179
9194
|
const genericPixKey = this.pixAccountFormGroup.get("pixKey");
|
|
9180
9195
|
if (this.pixKeyType) {
|
|
9181
9196
|
switch (this.pixKeyType) {
|
|
@@ -9206,7 +9221,9 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9206
9221
|
genericPixKey.setValidators(null);
|
|
9207
9222
|
break;
|
|
9208
9223
|
}
|
|
9209
|
-
|
|
9224
|
+
if (isEditMode) {
|
|
9225
|
+
genericPixKey.enable();
|
|
9226
|
+
}
|
|
9210
9227
|
genericPixKey.updateValueAndValidity();
|
|
9211
9228
|
}
|
|
9212
9229
|
}
|
|
@@ -9236,14 +9253,51 @@ let HistoricalPixAccountFormComponent = class HistoricalPixAccountFormComponent
|
|
|
9236
9253
|
FormatUtilsService.formatTelephoneInputEvent(event);
|
|
9237
9254
|
}
|
|
9238
9255
|
setDefaultCpfPixKey() {
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9256
|
+
if (this.defaultCpfNumber) {
|
|
9257
|
+
this.pixAccountFormGroup.get("pixKey").setValue(this.defaultCpfNumber);
|
|
9258
|
+
}
|
|
9259
|
+
else {
|
|
9260
|
+
const sheetDocument = this.paramsForm.get("sheetDocument");
|
|
9261
|
+
if (sheetDocument) {
|
|
9262
|
+
const cpf = sheetDocument.get("cpfNumber").value;
|
|
9263
|
+
if (cpf) {
|
|
9264
|
+
this.pixAccountFormGroup.get("pixKey").setValue(cpf);
|
|
9265
|
+
}
|
|
9244
9266
|
}
|
|
9245
9267
|
}
|
|
9246
9268
|
}
|
|
9269
|
+
beforeSetPixKeyTypeValidator() {
|
|
9270
|
+
const pixKeyType = this.pixAccountFormGroup.get("pixKeyType");
|
|
9271
|
+
if (this.pixAccountList && this.pixAccountList.length && pixKeyType) {
|
|
9272
|
+
pixKeyType
|
|
9273
|
+
.setValidators(Validators.compose([
|
|
9274
|
+
Validators.required,
|
|
9275
|
+
this.validateDuplicatePixKeyTypeBankAccount(this.pixAccountList),
|
|
9276
|
+
]));
|
|
9277
|
+
}
|
|
9278
|
+
else {
|
|
9279
|
+
pixKeyType.setValidators(Validators.required);
|
|
9280
|
+
}
|
|
9281
|
+
}
|
|
9282
|
+
validateDuplicatePixKeyTypeBankAccount(listCompare) {
|
|
9283
|
+
return (control) => {
|
|
9284
|
+
const value = control && control.value;
|
|
9285
|
+
let condition = false;
|
|
9286
|
+
listCompare.filter((field) => {
|
|
9287
|
+
if (value) {
|
|
9288
|
+
if (field["pixKeyType"].key === 'BANK_ACCOUNT' && value.key === field["pixKeyType"].key) {
|
|
9289
|
+
return condition = true;
|
|
9290
|
+
}
|
|
9291
|
+
}
|
|
9292
|
+
});
|
|
9293
|
+
if (condition) {
|
|
9294
|
+
return { pixKeyTypeBankAccountDuplicate: true };
|
|
9295
|
+
}
|
|
9296
|
+
else {
|
|
9297
|
+
return null;
|
|
9298
|
+
}
|
|
9299
|
+
};
|
|
9300
|
+
}
|
|
9247
9301
|
};
|
|
9248
9302
|
HistoricalPixAccountFormComponent.ctorParameters = () => [
|
|
9249
9303
|
{ type: FormBuilder },
|
|
@@ -9270,6 +9324,9 @@ __decorate([
|
|
|
9270
9324
|
__decorate([
|
|
9271
9325
|
Input()
|
|
9272
9326
|
], HistoricalPixAccountFormComponent.prototype, "paramsForm", void 0);
|
|
9327
|
+
__decorate([
|
|
9328
|
+
Input()
|
|
9329
|
+
], HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", void 0);
|
|
9273
9330
|
__decorate([
|
|
9274
9331
|
Output()
|
|
9275
9332
|
], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
|
|
@@ -9291,7 +9348,7 @@ __decorate([
|
|
|
9291
9348
|
HistoricalPixAccountFormComponent = __decorate([
|
|
9292
9349
|
Component({
|
|
9293
9350
|
selector: "pix-account",
|
|
9294
|
-
template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{
|
|
9351
|
+
template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"99.999.999/9999-99\" [unmask]=\"true\"></p-inputMask>\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"{{'hcm.payroll.employees_addition_email'|translate}}\"/>\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\" disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
|
|
9295
9352
|
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}"]
|
|
9296
9353
|
})
|
|
9297
9354
|
], HistoricalPixAccountFormComponent);
|
|
@@ -9345,6 +9402,262 @@ HistoricalPixAccountModule = __decorate([
|
|
|
9345
9402
|
})
|
|
9346
9403
|
], HistoricalPixAccountModule);
|
|
9347
9404
|
|
|
9405
|
+
let HistoricalPixAccountListService = class HistoricalPixAccountListService {
|
|
9406
|
+
constructor(http, httpClient) {
|
|
9407
|
+
this.http = http;
|
|
9408
|
+
this.httpClient = httpClient;
|
|
9409
|
+
}
|
|
9410
|
+
remove(id, dateWhen, service = ServiceType.PAYROLL, dependentId) {
|
|
9411
|
+
if (service === ServiceType.DEPENDENT) {
|
|
9412
|
+
return this.httpClient
|
|
9413
|
+
.post("hcm/dependent/queries/historicalDependentJudicialPensionPixDelete", {
|
|
9414
|
+
dependentId: dependentId,
|
|
9415
|
+
dateWhen: dateWhen,
|
|
9416
|
+
});
|
|
9417
|
+
}
|
|
9418
|
+
else {
|
|
9419
|
+
return this.http.post("actions/historicalEmployeePixDelete", {
|
|
9420
|
+
employeeId: id,
|
|
9421
|
+
dateWhen: dateWhen
|
|
9422
|
+
});
|
|
9423
|
+
}
|
|
9424
|
+
}
|
|
9425
|
+
};
|
|
9426
|
+
HistoricalPixAccountListService.ctorParameters = () => [
|
|
9427
|
+
{ type: HttpClientService },
|
|
9428
|
+
{ type: HttpClient }
|
|
9429
|
+
];
|
|
9430
|
+
HistoricalPixAccountListService = __decorate([
|
|
9431
|
+
Injectable()
|
|
9432
|
+
], HistoricalPixAccountListService);
|
|
9433
|
+
|
|
9434
|
+
const moment$e = moment_;
|
|
9435
|
+
let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent {
|
|
9436
|
+
constructor(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
|
|
9437
|
+
this.confirmationService = confirmationService;
|
|
9438
|
+
this.translateService = translateService;
|
|
9439
|
+
this.activatedRoute = activatedRoute;
|
|
9440
|
+
this.cd = cd;
|
|
9441
|
+
this.router = router;
|
|
9442
|
+
this.messageService = messageService;
|
|
9443
|
+
this.historicalPixAccountListService = historicalPixAccountListService;
|
|
9444
|
+
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
9445
|
+
this.keyPayload = "historicalDependentJudicialPensionPix";
|
|
9446
|
+
this.withSidebar = true;
|
|
9447
|
+
this.enableView = new EventEmitter();
|
|
9448
|
+
this.ngUnsubscribe = new Subject();
|
|
9449
|
+
this.loading = true;
|
|
9450
|
+
this.columns = [
|
|
9451
|
+
{
|
|
9452
|
+
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
9453
|
+
field: "dateChange",
|
|
9454
|
+
},
|
|
9455
|
+
{
|
|
9456
|
+
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
9457
|
+
field: "pixKeyType.value",
|
|
9458
|
+
},
|
|
9459
|
+
{
|
|
9460
|
+
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
9461
|
+
field: "pixKey",
|
|
9462
|
+
},
|
|
9463
|
+
{
|
|
9464
|
+
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
9465
|
+
field: "percentage",
|
|
9466
|
+
},
|
|
9467
|
+
];
|
|
9468
|
+
}
|
|
9469
|
+
ngOnInit() {
|
|
9470
|
+
this.initParameters = { employeeId: this.employeeId, dependentId: this.dependentId };
|
|
9471
|
+
}
|
|
9472
|
+
ngOnDestroy() {
|
|
9473
|
+
this.ngUnsubscribe.next();
|
|
9474
|
+
this.ngUnsubscribe.complete();
|
|
9475
|
+
}
|
|
9476
|
+
ngAfterViewInit() {
|
|
9477
|
+
this.cd.detectChanges();
|
|
9478
|
+
}
|
|
9479
|
+
onLazyLoad(payload) {
|
|
9480
|
+
payload.forEach((value) => {
|
|
9481
|
+
value.dateChange = moment$e(value.dateChange).format(this.dateFormat);
|
|
9482
|
+
});
|
|
9483
|
+
this.onGridLoad(payload);
|
|
9484
|
+
this.loading = false;
|
|
9485
|
+
}
|
|
9486
|
+
getMenuActions(rowData) {
|
|
9487
|
+
return [
|
|
9488
|
+
{
|
|
9489
|
+
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9490
|
+
command: () => {
|
|
9491
|
+
const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
|
|
9492
|
+
if (this.withSidebar)
|
|
9493
|
+
this.router.navigate([`historical-pix-account/${dateChange}`], {
|
|
9494
|
+
relativeTo: this.activatedRoute,
|
|
9495
|
+
});
|
|
9496
|
+
else
|
|
9497
|
+
this.enableView.emit(dateChange);
|
|
9498
|
+
},
|
|
9499
|
+
},
|
|
9500
|
+
{
|
|
9501
|
+
label: this.translateService.instant("hcm.payroll.delete"),
|
|
9502
|
+
command: () => {
|
|
9503
|
+
if (this.isAllowToDeleteHistorical && rowData) {
|
|
9504
|
+
this.delete(rowData.id, rowData.dateChange);
|
|
9505
|
+
}
|
|
9506
|
+
else {
|
|
9507
|
+
this.messageService.add({
|
|
9508
|
+
severity: "error",
|
|
9509
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9510
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9511
|
+
});
|
|
9512
|
+
}
|
|
9513
|
+
},
|
|
9514
|
+
},
|
|
9515
|
+
];
|
|
9516
|
+
}
|
|
9517
|
+
delete(id, dateChange) {
|
|
9518
|
+
if (id === this.lastRecord.id) {
|
|
9519
|
+
const dateChangeToDto = moment$e(dateChange, this.dateFormat).format("YYYY-MM-DD");
|
|
9520
|
+
this.confirmationService.confirm({
|
|
9521
|
+
message: `${this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_question_confirm_delete")}?`,
|
|
9522
|
+
accept: () => {
|
|
9523
|
+
this.loading = true;
|
|
9524
|
+
const service = this.withSidebar ? ServiceType.PAYROLL : ServiceType.DEPENDENT;
|
|
9525
|
+
this.historicalPixAccountListService
|
|
9526
|
+
.remove(this.employeeId, dateChangeToDto, service, this.dependentId)
|
|
9527
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
9528
|
+
.subscribe(() => {
|
|
9529
|
+
this.messageService.add({
|
|
9530
|
+
severity: "success",
|
|
9531
|
+
summary: this.translateService.instant("hcm.payroll.success"),
|
|
9532
|
+
detail: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_remove"),
|
|
9533
|
+
});
|
|
9534
|
+
this.parameters = (this.parameters && Object.assign({}, this.parameters)) || {};
|
|
9535
|
+
}, () => {
|
|
9536
|
+
this.messageService.add({
|
|
9537
|
+
severity: "error",
|
|
9538
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9539
|
+
detail: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_error_remove"),
|
|
9540
|
+
});
|
|
9541
|
+
this.loading = false;
|
|
9542
|
+
});
|
|
9543
|
+
},
|
|
9544
|
+
});
|
|
9545
|
+
}
|
|
9546
|
+
else {
|
|
9547
|
+
this.messageService.add({
|
|
9548
|
+
severity: "error",
|
|
9549
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9550
|
+
detail: this.translateService.instant("hcm.payroll.not_allowed_delete_last"),
|
|
9551
|
+
});
|
|
9552
|
+
}
|
|
9553
|
+
}
|
|
9554
|
+
add() {
|
|
9555
|
+
if (this.isAllowToAddHistorical) {
|
|
9556
|
+
this.router.navigate(["historical-pix-account-new"], {
|
|
9557
|
+
relativeTo: this.activatedRoute,
|
|
9558
|
+
});
|
|
9559
|
+
}
|
|
9560
|
+
else {
|
|
9561
|
+
this.messageService.add({
|
|
9562
|
+
severity: "error",
|
|
9563
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9564
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9565
|
+
});
|
|
9566
|
+
}
|
|
9567
|
+
}
|
|
9568
|
+
onGridLoad(payload) {
|
|
9569
|
+
if (payload && payload.length) {
|
|
9570
|
+
this.lastRecord = payload[0];
|
|
9571
|
+
}
|
|
9572
|
+
}
|
|
9573
|
+
get isAllowToAddHistorical() {
|
|
9574
|
+
return (this.permission["incluir"]);
|
|
9575
|
+
}
|
|
9576
|
+
get isAllowToDeleteHistorical() {
|
|
9577
|
+
return (this.permission["excluir"]);
|
|
9578
|
+
}
|
|
9579
|
+
get scopedActions() {
|
|
9580
|
+
return this.getMenuActions.bind(this);
|
|
9581
|
+
}
|
|
9582
|
+
set reloadList(condition) {
|
|
9583
|
+
if (condition) {
|
|
9584
|
+
this.loading = true;
|
|
9585
|
+
this.parameters = (this.parameters && Object.assign({}, this.parameters)) || {};
|
|
9586
|
+
}
|
|
9587
|
+
}
|
|
9588
|
+
};
|
|
9589
|
+
HistoricalPixAccountListComponent.ctorParameters = () => [
|
|
9590
|
+
{ type: ConfirmationService },
|
|
9591
|
+
{ type: TranslateService },
|
|
9592
|
+
{ type: ActivatedRoute },
|
|
9593
|
+
{ type: ChangeDetectorRef },
|
|
9594
|
+
{ type: Router },
|
|
9595
|
+
{ type: MessageService },
|
|
9596
|
+
{ type: HistoricalPixAccountListService }
|
|
9597
|
+
];
|
|
9598
|
+
__decorate([
|
|
9599
|
+
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
9600
|
+
], HistoricalPixAccountListComponent.prototype, "customFields", void 0);
|
|
9601
|
+
__decorate([
|
|
9602
|
+
Input()
|
|
9603
|
+
], HistoricalPixAccountListComponent.prototype, "permission", void 0);
|
|
9604
|
+
__decorate([
|
|
9605
|
+
Input()
|
|
9606
|
+
], HistoricalPixAccountListComponent.prototype, "employeeId", void 0);
|
|
9607
|
+
__decorate([
|
|
9608
|
+
Input()
|
|
9609
|
+
], HistoricalPixAccountListComponent.prototype, "dependentId", void 0);
|
|
9610
|
+
__decorate([
|
|
9611
|
+
Input()
|
|
9612
|
+
], HistoricalPixAccountListComponent.prototype, "dateFormat", void 0);
|
|
9613
|
+
__decorate([
|
|
9614
|
+
Input()
|
|
9615
|
+
], HistoricalPixAccountListComponent.prototype, "endPoint", void 0);
|
|
9616
|
+
__decorate([
|
|
9617
|
+
Input()
|
|
9618
|
+
], HistoricalPixAccountListComponent.prototype, "keyPayload", void 0);
|
|
9619
|
+
__decorate([
|
|
9620
|
+
Input()
|
|
9621
|
+
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
9622
|
+
__decorate([
|
|
9623
|
+
Output()
|
|
9624
|
+
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|
|
9625
|
+
__decorate([
|
|
9626
|
+
Input()
|
|
9627
|
+
], HistoricalPixAccountListComponent.prototype, "reloadList", null);
|
|
9628
|
+
HistoricalPixAccountListComponent = __decorate([
|
|
9629
|
+
Component({
|
|
9630
|
+
// tslint:disable-next-line:component-selector
|
|
9631
|
+
selector: "c-historical-pix-account-list",
|
|
9632
|
+
template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <c-data-list-rest\n id=\"ta-historical-pix-account-list\"\n [columns]=\"columns\"\n actionLabel=\"{{ 'hcm.payroll.movimentation_generic_action' | translate }}\"\n emptyMessage=\"{{ 'hcm.payroll.admission_empty_message' | translate }}\"\n [endpoint]=\"endPoint\"\n singularMessageRecords=\"{{\n 'hcm.payroll.admission_register' | translate\n }}\"\n [actions]=\"scopedActions\"\n pluralMessageRecords=\"{{\n 'hcm.payroll.admission_registers' | translate\n }}\"\n [keyPayload]=\"keyPayload\"\n [lazy]=\"true\"\n (lazyLoad)=\"onLazyLoad($event)\"\n [(loading)]=\"loading\"\n [initParameters]=\"initParameters\"\n [parameters]=\"parameters\"\n [isSortable]=\"false\"\n ></c-data-list-rest>\n </div>\n</div>\n\n",
|
|
9633
|
+
styles: [""]
|
|
9634
|
+
})
|
|
9635
|
+
], HistoricalPixAccountListComponent);
|
|
9636
|
+
|
|
9637
|
+
let HistoricalPixAccountListModule = class HistoricalPixAccountListModule {
|
|
9638
|
+
};
|
|
9639
|
+
HistoricalPixAccountListModule = __decorate([
|
|
9640
|
+
NgModule({
|
|
9641
|
+
imports: [
|
|
9642
|
+
CommonModule,
|
|
9643
|
+
FormsModule,
|
|
9644
|
+
HttpClientModule,
|
|
9645
|
+
AutoCompleteModule,
|
|
9646
|
+
SharedModule,
|
|
9647
|
+
ReactiveFormsModule,
|
|
9648
|
+
TableModule,
|
|
9649
|
+
ButtonModule,
|
|
9650
|
+
TooltipModule,
|
|
9651
|
+
LoadingStateModule,
|
|
9652
|
+
DataListRestModule,
|
|
9653
|
+
ConfirmDialogModule,
|
|
9654
|
+
],
|
|
9655
|
+
declarations: [HistoricalPixAccountListComponent],
|
|
9656
|
+
providers: [HistoricalPixAccountListService],
|
|
9657
|
+
exports: [HistoricalPixAccountListComponent],
|
|
9658
|
+
})
|
|
9659
|
+
], HistoricalPixAccountListModule);
|
|
9660
|
+
|
|
9348
9661
|
/*
|
|
9349
9662
|
* Public API Surface of core
|
|
9350
9663
|
*/
|
|
@@ -9353,5 +9666,5 @@ HistoricalPixAccountModule = __decorate([
|
|
|
9353
9666
|
* Generated bundle index. Do not edit.
|
|
9354
9667
|
*/
|
|
9355
9668
|
|
|
9356
|
-
export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricalPixAccountFormComponent as ɵr };
|
|
9669
|
+
export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountListComponent, HistoricalPixAccountListModule, HistoricalPixAccountListService, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricalPixAccountFormComponent as ɵr };
|
|
9357
9670
|
//# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map
|