@senior-gestao-pessoas/payroll-core 9.4.0-26524b61-00e1-4b7b-8ccd-373f06bffb80 → 9.4.0-7edf395b-4614-46bb-b8d5-62ac5f1423d5
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 +111 -48
- 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 +4 -1
- package/components/historical-pix-account/historical-pix-account.component.d.ts +4 -4
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +10 -2
- package/components/shared/index.d.ts +1 -0
- package/components/shared/shared-state.service.d.ts +11 -0
- package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +9 -5
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +12 -15
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +58 -33
- package/esm2015/components/shared/index.js +2 -0
- package/esm2015/components/shared/shared-state.service.js +31 -0
- package/esm2015/public_api.js +2 -1
- package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +9 -5
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +13 -15
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +67 -33
- package/esm5/components/shared/index.js +2 -0
- package/esm5/components/shared/shared-state.service.js +32 -0
- package/esm5/public_api.js +2 -1
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +100 -49
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +111 -49
- 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 +1 -1
- package/public_api.d.ts +1 -0
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -9421,13 +9421,40 @@
|
|
|
9421
9421
|
return FormatUtilsService;
|
|
9422
9422
|
}());
|
|
9423
9423
|
|
|
9424
|
+
var SharedStateService = /** @class */ (function () {
|
|
9425
|
+
function SharedStateService() {
|
|
9426
|
+
this.hideFieldSubject = new rxjs.BehaviorSubject(true);
|
|
9427
|
+
this.hideField$ = this.hideFieldSubject.asObservable();
|
|
9428
|
+
this.showButtonSubject = new rxjs.BehaviorSubject(true);
|
|
9429
|
+
this.showButton$ = this.showButtonSubject.asObservable();
|
|
9430
|
+
this.saveButtonSubject = new rxjs.BehaviorSubject(true);
|
|
9431
|
+
this.saveButton$ = this.saveButtonSubject.asObservable();
|
|
9432
|
+
}
|
|
9433
|
+
SharedStateService.prototype.setHideField = function (value) {
|
|
9434
|
+
this.hideFieldSubject.next(value);
|
|
9435
|
+
};
|
|
9436
|
+
SharedStateService.prototype.setShowButton = function (value) {
|
|
9437
|
+
this.showButtonSubject.next(value);
|
|
9438
|
+
};
|
|
9439
|
+
SharedStateService.prototype.setSaveButton = function (value) {
|
|
9440
|
+
this.saveButtonSubject.next(value);
|
|
9441
|
+
};
|
|
9442
|
+
SharedStateService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SharedStateService_Factory() { return new SharedStateService(); }, token: SharedStateService, providedIn: "root" });
|
|
9443
|
+
SharedStateService = __decorate([
|
|
9444
|
+
core.Injectable({
|
|
9445
|
+
providedIn: 'root',
|
|
9446
|
+
})
|
|
9447
|
+
], SharedStateService);
|
|
9448
|
+
return SharedStateService;
|
|
9449
|
+
}());
|
|
9450
|
+
|
|
9424
9451
|
var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
9425
|
-
function HistoricalPixAccountComponent(translateService, cd, formBuilder,
|
|
9452
|
+
function HistoricalPixAccountComponent(translateService, cd, formBuilder, sharedStateService) {
|
|
9426
9453
|
var _this = this;
|
|
9427
9454
|
this.translateService = translateService;
|
|
9428
9455
|
this.cd = cd;
|
|
9429
9456
|
this.formBuilder = formBuilder;
|
|
9430
|
-
this.
|
|
9457
|
+
this.sharedStateService = sharedStateService;
|
|
9431
9458
|
this.recordByRow = 1;
|
|
9432
9459
|
this.showDateChange = false;
|
|
9433
9460
|
this.isEditMode = false;
|
|
@@ -9451,6 +9478,7 @@
|
|
|
9451
9478
|
this.loading = true;
|
|
9452
9479
|
this.listData = [];
|
|
9453
9480
|
this.listDataNoPage = [];
|
|
9481
|
+
this.showButtonView = true;
|
|
9454
9482
|
this.cols = [
|
|
9455
9483
|
{
|
|
9456
9484
|
label: this.translateService.instant("hcm.payroll.employees_addition_pix_key_type"),
|
|
@@ -9483,7 +9511,7 @@
|
|
|
9483
9511
|
},
|
|
9484
9512
|
},
|
|
9485
9513
|
{
|
|
9486
|
-
visible:
|
|
9514
|
+
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9487
9515
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9488
9516
|
command: function () {
|
|
9489
9517
|
if (_this.isAllowToEditHistorical) {
|
|
@@ -9523,7 +9551,11 @@
|
|
|
9523
9551
|
this.createFormGroup();
|
|
9524
9552
|
}
|
|
9525
9553
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9554
|
+
var _this = this;
|
|
9526
9555
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9556
|
+
this.sharedStateService.showButton$.subscribe(function (value) {
|
|
9557
|
+
_this.showButtonView = value;
|
|
9558
|
+
});
|
|
9527
9559
|
};
|
|
9528
9560
|
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9529
9561
|
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
@@ -9586,13 +9618,6 @@
|
|
|
9586
9618
|
this.pixAccountItemInput = {};
|
|
9587
9619
|
this.visible = true;
|
|
9588
9620
|
};
|
|
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
|
-
};
|
|
9596
9621
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9597
9622
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9598
9623
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9770,7 +9795,7 @@
|
|
|
9770
9795
|
{ type: core$1.TranslateService },
|
|
9771
9796
|
{ type: core.ChangeDetectorRef },
|
|
9772
9797
|
{ type: forms.FormBuilder },
|
|
9773
|
-
{ type:
|
|
9798
|
+
{ type: SharedStateService }
|
|
9774
9799
|
]; };
|
|
9775
9800
|
__decorate([
|
|
9776
9801
|
core.ViewChild(angularComponents.CustomFieldsComponent, { static: false })
|
|
@@ -9851,8 +9876,8 @@
|
|
|
9851
9876
|
core.Component({
|
|
9852
9877
|
// tslint:disable-next-line:component-selector
|
|
9853
9878
|
selector: "c-historical-pix-account",
|
|
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\"
|
|
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}"]
|
|
9879
|
+
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 *ngIf=\"showButtonView\" [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 *ngIf=\"showButtonView\" 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 <!-- Campo pixKeyType -->\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\" showDelay=\"500\">\n <input type=\"text\" [(ngModel)]=\"rowData.pixKeyType.value\" class=\"editable-input\" />\n </td>\n\n <!-- Campo pixKey -->\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\" [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\" showDelay=\"500\">\n <input type=\"text\" [(ngModel)]=\"rowData.pixKey\" class=\"editable-input\" />\n </td>\n <td *ngSwitchCase=\"'CPF'\" [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\" showDelay=\"500\">\n <input type=\"text\" [(ngModel)]=\"rowData.pixKey\" class=\"editable-input\" />\n </td>\n <td *ngSwitchCase=\"'CNPJ'\" [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\" showDelay=\"500\">\n <input type=\"text\" [(ngModel)]=\"rowData.pixKey\" class=\"editable-input\" />\n </td>\n <td *ngSwitchDefault [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\" showDelay=\"500\">\n <input type=\"text\" [(ngModel)]=\"rowData.pixKey\" class=\"editable-input\" />\n </td>\n </ng-container>\n\n <!-- Campo percentage -->\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\" showDelay=\"500\">\n <input type=\"number\" [(ngModel)]=\"rowData.percentage\" class=\"editable-input\" />\n </td>\n </tr>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length && showButtonView\">\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\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",
|
|
9880
|
+
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}.editable-input{width:100%;border:1px solid #ccc;padding:8px;border-radius:4px;font-size:14px;box-sizing:border-box;height:36px}"]
|
|
9856
9881
|
})
|
|
9857
9882
|
], HistoricalPixAccountComponent);
|
|
9858
9883
|
return HistoricalPixAccountComponent;
|
|
@@ -10025,9 +10050,10 @@
|
|
|
10025
10050
|
}());
|
|
10026
10051
|
|
|
10027
10052
|
var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
10028
|
-
function HistoricalPixAccountFormComponent(formBuilder, cd) {
|
|
10053
|
+
function HistoricalPixAccountFormComponent(formBuilder, cd, sharedStateService) {
|
|
10029
10054
|
this.formBuilder = formBuilder;
|
|
10030
10055
|
this.cd = cd;
|
|
10056
|
+
this.sharedStateService = sharedStateService;
|
|
10031
10057
|
this.withSideBar = true;
|
|
10032
10058
|
this.isEditMode = false;
|
|
10033
10059
|
this.paramsForm = new forms.FormGroup({});
|
|
@@ -10041,6 +10067,7 @@
|
|
|
10041
10067
|
this.visibleBtnSave = true;
|
|
10042
10068
|
this.isView = false;
|
|
10043
10069
|
this.isShowPixKeyFieldValidatorMessage = false;
|
|
10070
|
+
this.hideFields = this.sharedStateService.hideField$;
|
|
10044
10071
|
this.createFormGroup();
|
|
10045
10072
|
this.registerSubjects();
|
|
10046
10073
|
}
|
|
@@ -10347,7 +10374,8 @@
|
|
|
10347
10374
|
};
|
|
10348
10375
|
HistoricalPixAccountFormComponent.ctorParameters = function () { return [
|
|
10349
10376
|
{ type: forms.FormBuilder },
|
|
10350
|
-
{ type: core.ChangeDetectorRef }
|
|
10377
|
+
{ type: core.ChangeDetectorRef },
|
|
10378
|
+
{ type: SharedStateService }
|
|
10351
10379
|
]; };
|
|
10352
10380
|
__decorate([
|
|
10353
10381
|
core.ViewChild(angularComponents.CustomFieldsComponent, { static: true })
|
|
@@ -10394,8 +10422,8 @@
|
|
|
10394
10422
|
HistoricalPixAccountFormComponent = __decorate([
|
|
10395
10423
|
core.Component({
|
|
10396
10424
|
selector: "pix-account",
|
|
10397
|
-
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\" maxlength=\"100\" />\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",
|
|
10398
|
-
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}"]
|
|
10425
|
+
template: "<div id=\"main\">\n <form *ngIf=\"!(hideFields | async)\" [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\" maxlength=\"100\" />\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",
|
|
10426
|
+
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}.editable-input{width:100%;border:1px solid #ccc;padding:8px;border-radius:4px;font-size:14px;box-sizing:border-box;height:36px}"]
|
|
10399
10427
|
})
|
|
10400
10428
|
], HistoricalPixAccountFormComponent);
|
|
10401
10429
|
return HistoricalPixAccountFormComponent;
|
|
@@ -10488,7 +10516,7 @@
|
|
|
10488
10516
|
|
|
10489
10517
|
var moment$e = moment_;
|
|
10490
10518
|
var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
10491
|
-
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
|
|
10519
|
+
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService, sharedStateService) {
|
|
10492
10520
|
this.confirmationService = confirmationService;
|
|
10493
10521
|
this.translateService = translateService;
|
|
10494
10522
|
this.activatedRoute = activatedRoute;
|
|
@@ -10496,11 +10524,13 @@
|
|
|
10496
10524
|
this.router = router;
|
|
10497
10525
|
this.messageService = messageService;
|
|
10498
10526
|
this.historicalPixAccountListService = historicalPixAccountListService;
|
|
10527
|
+
this.sharedStateService = sharedStateService;
|
|
10499
10528
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10500
10529
|
this.keyPayload = "historicalEmployeePix";
|
|
10501
10530
|
this.withSidebar = true;
|
|
10502
10531
|
this.isOnlyView = new core.EventEmitter();
|
|
10503
10532
|
this.enableView = new core.EventEmitter();
|
|
10533
|
+
this.isEditJudicialDependentPix = new core.EventEmitter();
|
|
10504
10534
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10505
10535
|
this.loading = true;
|
|
10506
10536
|
this.columns = [
|
|
@@ -10508,18 +10538,6 @@
|
|
|
10508
10538
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10509
10539
|
field: "dateChange",
|
|
10510
10540
|
},
|
|
10511
|
-
{
|
|
10512
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
10513
|
-
field: "pixKeyType.value",
|
|
10514
|
-
},
|
|
10515
|
-
{
|
|
10516
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
10517
|
-
field: "pixKey",
|
|
10518
|
-
},
|
|
10519
|
-
{
|
|
10520
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
10521
|
-
field: "percentage",
|
|
10522
|
-
},
|
|
10523
10541
|
{
|
|
10524
10542
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10525
10543
|
field: "numberOfPixAccount",
|
|
@@ -10532,6 +10550,7 @@
|
|
|
10532
10550
|
HistoricalPixAccountListComponent.prototype.ngOnDestroy = function () {
|
|
10533
10551
|
this.ngUnsubscribe.next();
|
|
10534
10552
|
this.ngUnsubscribe.complete();
|
|
10553
|
+
this.unsubscribe();
|
|
10535
10554
|
};
|
|
10536
10555
|
HistoricalPixAccountListComponent.prototype.ngAfterViewInit = function () {
|
|
10537
10556
|
this.cd.detectChanges();
|
|
@@ -10540,27 +10559,10 @@
|
|
|
10540
10559
|
var _this = this;
|
|
10541
10560
|
payload.forEach(function (value) {
|
|
10542
10561
|
value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
|
|
10543
|
-
value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
|
|
10544
|
-
value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
|
|
10545
10562
|
});
|
|
10546
10563
|
this.onGridLoad(payload);
|
|
10547
10564
|
this.loading = false;
|
|
10548
10565
|
};
|
|
10549
|
-
HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
|
|
10550
|
-
var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
|
|
10551
|
-
if (keyType === "TELEPHONE") {
|
|
10552
|
-
return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
|
|
10553
|
-
}
|
|
10554
|
-
else if (keyType === "CPF") {
|
|
10555
|
-
return FormatUtilsService.getFormattedCpf(pixKey);
|
|
10556
|
-
}
|
|
10557
|
-
else if (keyType === "CNPJ") {
|
|
10558
|
-
return FormatUtilsService.getFormattedCnpj(pixKey);
|
|
10559
|
-
}
|
|
10560
|
-
else {
|
|
10561
|
-
return pixKey;
|
|
10562
|
-
}
|
|
10563
|
-
};
|
|
10564
10566
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10565
10567
|
var _this = this;
|
|
10566
10568
|
return [
|
|
@@ -10568,6 +10570,8 @@
|
|
|
10568
10570
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10569
10571
|
command: function () {
|
|
10570
10572
|
if (_this.isAllowToViewHistorical) {
|
|
10573
|
+
_this.sharedStateService.setHideField(true);
|
|
10574
|
+
_this.sharedStateService.setShowButton(false);
|
|
10571
10575
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10572
10576
|
if (_this.withSidebar) {
|
|
10573
10577
|
_this.isOnlyView.emit(true);
|
|
@@ -10576,6 +10580,29 @@
|
|
|
10576
10580
|
});
|
|
10577
10581
|
}
|
|
10578
10582
|
else {
|
|
10583
|
+
_this.sharedStateService.setSaveButton(false);
|
|
10584
|
+
_this.enableView.emit(dateChange);
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10587
|
+
else {
|
|
10588
|
+
_this.isNotAllowMessage();
|
|
10589
|
+
}
|
|
10590
|
+
},
|
|
10591
|
+
},
|
|
10592
|
+
{
|
|
10593
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10594
|
+
command: function () {
|
|
10595
|
+
if (_this.isAllowToEditHistorical) {
|
|
10596
|
+
_this.sharedStateService.setHideField(true);
|
|
10597
|
+
_this.sharedStateService.setShowButton(false);
|
|
10598
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10599
|
+
if (_this.withSidebar) {
|
|
10600
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10601
|
+
relativeTo: _this.activatedRoute,
|
|
10602
|
+
});
|
|
10603
|
+
}
|
|
10604
|
+
else {
|
|
10605
|
+
_this.sharedStateService.setSaveButton(true);
|
|
10579
10606
|
_this.enableView.emit(dateChange);
|
|
10580
10607
|
}
|
|
10581
10608
|
}
|
|
@@ -10661,6 +10688,24 @@
|
|
|
10661
10688
|
this.lastRecord = payload[0];
|
|
10662
10689
|
}
|
|
10663
10690
|
};
|
|
10691
|
+
HistoricalPixAccountListComponent.prototype.unsubscribe = function () {
|
|
10692
|
+
if (this._subscription) {
|
|
10693
|
+
this._subscription.unsubscribe();
|
|
10694
|
+
}
|
|
10695
|
+
};
|
|
10696
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", {
|
|
10697
|
+
set: function (subject) {
|
|
10698
|
+
var _this = this;
|
|
10699
|
+
this.unsubscribe();
|
|
10700
|
+
if (subject) {
|
|
10701
|
+
this._subscription = subject.subscribe(function (value) {
|
|
10702
|
+
_this.sharedStateService.setHideField(value);
|
|
10703
|
+
});
|
|
10704
|
+
}
|
|
10705
|
+
},
|
|
10706
|
+
enumerable: true,
|
|
10707
|
+
configurable: true
|
|
10708
|
+
});
|
|
10664
10709
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10665
10710
|
get: function () {
|
|
10666
10711
|
return (this.permission["incluir"]);
|
|
@@ -10668,6 +10713,13 @@
|
|
|
10668
10713
|
enumerable: true,
|
|
10669
10714
|
configurable: true
|
|
10670
10715
|
});
|
|
10716
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10717
|
+
get: function () {
|
|
10718
|
+
return (this.permission["editar"]);
|
|
10719
|
+
},
|
|
10720
|
+
enumerable: true,
|
|
10721
|
+
configurable: true
|
|
10722
|
+
});
|
|
10671
10723
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10672
10724
|
get: function () {
|
|
10673
10725
|
return (this.permission["excluir"]);
|
|
@@ -10706,7 +10758,8 @@
|
|
|
10706
10758
|
{ type: core.ChangeDetectorRef },
|
|
10707
10759
|
{ type: router.Router },
|
|
10708
10760
|
{ type: api.MessageService },
|
|
10709
|
-
{ type: HistoricalPixAccountListService }
|
|
10761
|
+
{ type: HistoricalPixAccountListService },
|
|
10762
|
+
{ type: SharedStateService }
|
|
10710
10763
|
]; };
|
|
10711
10764
|
__decorate([
|
|
10712
10765
|
core.ViewChild(angularComponents.CustomFieldsComponent, { static: false })
|
|
@@ -10732,12 +10785,21 @@
|
|
|
10732
10785
|
__decorate([
|
|
10733
10786
|
core.Input()
|
|
10734
10787
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10788
|
+
__decorate([
|
|
10789
|
+
core.Input()
|
|
10790
|
+
], HistoricalPixAccountListComponent.prototype, "hideField", void 0);
|
|
10735
10791
|
__decorate([
|
|
10736
10792
|
core.Output()
|
|
10737
10793
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10738
10794
|
__decorate([
|
|
10739
10795
|
core.Output()
|
|
10740
10796
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|
|
10797
|
+
__decorate([
|
|
10798
|
+
core.Output()
|
|
10799
|
+
], HistoricalPixAccountListComponent.prototype, "isEditJudicialDependentPix", void 0);
|
|
10800
|
+
__decorate([
|
|
10801
|
+
core.Input()
|
|
10802
|
+
], HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", null);
|
|
10741
10803
|
__decorate([
|
|
10742
10804
|
core.Input()
|
|
10743
10805
|
], HistoricalPixAccountListComponent.prototype, "reloadList", null);
|
|
@@ -10860,6 +10922,7 @@
|
|
|
10860
10922
|
exports.PermissionService = PermissionService;
|
|
10861
10923
|
exports.ReportService = ReportService;
|
|
10862
10924
|
exports.ServicesModule = ServicesModule;
|
|
10925
|
+
exports.SharedStateService = SharedStateService;
|
|
10863
10926
|
exports.SpinnerLoaderComponent = SpinnerLoaderComponent;
|
|
10864
10927
|
exports.SpinnerLoaderModule = SpinnerLoaderModule;
|
|
10865
10928
|
exports.StringMethods = StringMethods;
|