@senior-gestao-pessoas/payroll-core 9.4.0-1673d953-7827-4c17-8763-0a32e0cd5e71 → 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
|
@@ -9255,13 +9255,40 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9255
9255
|
return FormatUtilsService;
|
|
9256
9256
|
}());
|
|
9257
9257
|
|
|
9258
|
+
var SharedStateService = /** @class */ (function () {
|
|
9259
|
+
function SharedStateService() {
|
|
9260
|
+
this.hideFieldSubject = new BehaviorSubject(true);
|
|
9261
|
+
this.hideField$ = this.hideFieldSubject.asObservable();
|
|
9262
|
+
this.showButtonSubject = new BehaviorSubject(true);
|
|
9263
|
+
this.showButton$ = this.showButtonSubject.asObservable();
|
|
9264
|
+
this.saveButtonSubject = new BehaviorSubject(true);
|
|
9265
|
+
this.saveButton$ = this.saveButtonSubject.asObservable();
|
|
9266
|
+
}
|
|
9267
|
+
SharedStateService.prototype.setHideField = function (value) {
|
|
9268
|
+
this.hideFieldSubject.next(value);
|
|
9269
|
+
};
|
|
9270
|
+
SharedStateService.prototype.setShowButton = function (value) {
|
|
9271
|
+
this.showButtonSubject.next(value);
|
|
9272
|
+
};
|
|
9273
|
+
SharedStateService.prototype.setSaveButton = function (value) {
|
|
9274
|
+
this.saveButtonSubject.next(value);
|
|
9275
|
+
};
|
|
9276
|
+
SharedStateService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SharedStateService_Factory() { return new SharedStateService(); }, token: SharedStateService, providedIn: "root" });
|
|
9277
|
+
SharedStateService = __decorate([
|
|
9278
|
+
Injectable({
|
|
9279
|
+
providedIn: 'root',
|
|
9280
|
+
})
|
|
9281
|
+
], SharedStateService);
|
|
9282
|
+
return SharedStateService;
|
|
9283
|
+
}());
|
|
9284
|
+
|
|
9258
9285
|
var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
9259
|
-
function HistoricalPixAccountComponent(translateService, cd, formBuilder,
|
|
9286
|
+
function HistoricalPixAccountComponent(translateService, cd, formBuilder, sharedStateService) {
|
|
9260
9287
|
var _this = this;
|
|
9261
9288
|
this.translateService = translateService;
|
|
9262
9289
|
this.cd = cd;
|
|
9263
9290
|
this.formBuilder = formBuilder;
|
|
9264
|
-
this.
|
|
9291
|
+
this.sharedStateService = sharedStateService;
|
|
9265
9292
|
this.recordByRow = 1;
|
|
9266
9293
|
this.showDateChange = false;
|
|
9267
9294
|
this.isEditMode = false;
|
|
@@ -9285,6 +9312,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9285
9312
|
this.loading = true;
|
|
9286
9313
|
this.listData = [];
|
|
9287
9314
|
this.listDataNoPage = [];
|
|
9315
|
+
this.showButtonView = true;
|
|
9288
9316
|
this.cols = [
|
|
9289
9317
|
{
|
|
9290
9318
|
label: this.translateService.instant("hcm.payroll.employees_addition_pix_key_type"),
|
|
@@ -9317,7 +9345,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9317
9345
|
},
|
|
9318
9346
|
},
|
|
9319
9347
|
{
|
|
9320
|
-
visible: !!(_this.isEditMode && _this.withSideBar),
|
|
9348
|
+
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9321
9349
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9322
9350
|
command: function () {
|
|
9323
9351
|
if (_this.isAllowToEditHistorical) {
|
|
@@ -9357,7 +9385,11 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9357
9385
|
this.createFormGroup();
|
|
9358
9386
|
}
|
|
9359
9387
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9388
|
+
var _this = this;
|
|
9360
9389
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9390
|
+
this.sharedStateService.showButton$.subscribe(function (value) {
|
|
9391
|
+
_this.showButtonView = value;
|
|
9392
|
+
});
|
|
9361
9393
|
};
|
|
9362
9394
|
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9363
9395
|
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
@@ -9420,13 +9452,6 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9420
9452
|
this.pixAccountItemInput = {};
|
|
9421
9453
|
this.visible = true;
|
|
9422
9454
|
};
|
|
9423
|
-
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9424
|
-
this.messageService.add({
|
|
9425
|
-
severity: "error",
|
|
9426
|
-
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9427
|
-
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9428
|
-
});
|
|
9429
|
-
};
|
|
9430
9455
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
9431
9456
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
9432
9457
|
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
@@ -9604,7 +9629,7 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9604
9629
|
{ type: TranslateService },
|
|
9605
9630
|
{ type: ChangeDetectorRef },
|
|
9606
9631
|
{ type: FormBuilder },
|
|
9607
|
-
{ type:
|
|
9632
|
+
{ type: SharedStateService }
|
|
9608
9633
|
]; };
|
|
9609
9634
|
__decorate([
|
|
9610
9635
|
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
@@ -9685,8 +9710,8 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
|
9685
9710
|
Component({
|
|
9686
9711
|
// tslint:disable-next-line:component-selector
|
|
9687
9712
|
selector: "c-historical-pix-account",
|
|
9688
|
-
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\"
|
|
9689
|
-
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}"]
|
|
9713
|
+
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",
|
|
9714
|
+
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}"]
|
|
9690
9715
|
})
|
|
9691
9716
|
], HistoricalPixAccountComponent);
|
|
9692
9717
|
return HistoricalPixAccountComponent;
|
|
@@ -9859,9 +9884,10 @@ var GenericValidator = /** @class */ (function () {
|
|
|
9859
9884
|
}());
|
|
9860
9885
|
|
|
9861
9886
|
var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
9862
|
-
function HistoricalPixAccountFormComponent(formBuilder, cd) {
|
|
9887
|
+
function HistoricalPixAccountFormComponent(formBuilder, cd, sharedStateService) {
|
|
9863
9888
|
this.formBuilder = formBuilder;
|
|
9864
9889
|
this.cd = cd;
|
|
9890
|
+
this.sharedStateService = sharedStateService;
|
|
9865
9891
|
this.withSideBar = true;
|
|
9866
9892
|
this.isEditMode = false;
|
|
9867
9893
|
this.paramsForm = new FormGroup({});
|
|
@@ -9875,6 +9901,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9875
9901
|
this.visibleBtnSave = true;
|
|
9876
9902
|
this.isView = false;
|
|
9877
9903
|
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9904
|
+
this.hideFields = this.sharedStateService.hideField$;
|
|
9878
9905
|
this.createFormGroup();
|
|
9879
9906
|
this.registerSubjects();
|
|
9880
9907
|
}
|
|
@@ -10181,7 +10208,8 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10181
10208
|
};
|
|
10182
10209
|
HistoricalPixAccountFormComponent.ctorParameters = function () { return [
|
|
10183
10210
|
{ type: FormBuilder },
|
|
10184
|
-
{ type: ChangeDetectorRef }
|
|
10211
|
+
{ type: ChangeDetectorRef },
|
|
10212
|
+
{ type: SharedStateService }
|
|
10185
10213
|
]; };
|
|
10186
10214
|
__decorate([
|
|
10187
10215
|
ViewChild(CustomFieldsComponent$1, { static: true })
|
|
@@ -10228,8 +10256,8 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10228
10256
|
HistoricalPixAccountFormComponent = __decorate([
|
|
10229
10257
|
Component({
|
|
10230
10258
|
selector: "pix-account",
|
|
10231
|
-
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",
|
|
10232
|
-
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}"]
|
|
10259
|
+
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",
|
|
10260
|
+
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}"]
|
|
10233
10261
|
})
|
|
10234
10262
|
], HistoricalPixAccountFormComponent);
|
|
10235
10263
|
return HistoricalPixAccountFormComponent;
|
|
@@ -10322,7 +10350,7 @@ var HistoricalPixAccountListService = /** @class */ (function () {
|
|
|
10322
10350
|
|
|
10323
10351
|
var moment$e = moment_;
|
|
10324
10352
|
var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
10325
|
-
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
|
|
10353
|
+
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService, sharedStateService) {
|
|
10326
10354
|
this.confirmationService = confirmationService;
|
|
10327
10355
|
this.translateService = translateService;
|
|
10328
10356
|
this.activatedRoute = activatedRoute;
|
|
@@ -10330,11 +10358,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10330
10358
|
this.router = router;
|
|
10331
10359
|
this.messageService = messageService;
|
|
10332
10360
|
this.historicalPixAccountListService = historicalPixAccountListService;
|
|
10361
|
+
this.sharedStateService = sharedStateService;
|
|
10333
10362
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10334
10363
|
this.keyPayload = "historicalEmployeePix";
|
|
10335
10364
|
this.withSidebar = true;
|
|
10336
10365
|
this.isOnlyView = new EventEmitter();
|
|
10337
10366
|
this.enableView = new EventEmitter();
|
|
10367
|
+
this.isEditJudicialDependentPix = new EventEmitter();
|
|
10338
10368
|
this.ngUnsubscribe = new Subject();
|
|
10339
10369
|
this.loading = true;
|
|
10340
10370
|
this.columns = [
|
|
@@ -10342,18 +10372,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10342
10372
|
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
|
|
10343
10373
|
field: "dateChange",
|
|
10344
10374
|
},
|
|
10345
|
-
{
|
|
10346
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
|
|
10347
|
-
field: "pixKeyType.value",
|
|
10348
|
-
},
|
|
10349
|
-
{
|
|
10350
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
|
|
10351
|
-
field: "pixKey",
|
|
10352
|
-
},
|
|
10353
|
-
{
|
|
10354
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
10355
|
-
field: "percentage",
|
|
10356
|
-
},
|
|
10357
10375
|
{
|
|
10358
10376
|
label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
|
|
10359
10377
|
field: "numberOfPixAccount",
|
|
@@ -10366,6 +10384,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10366
10384
|
HistoricalPixAccountListComponent.prototype.ngOnDestroy = function () {
|
|
10367
10385
|
this.ngUnsubscribe.next();
|
|
10368
10386
|
this.ngUnsubscribe.complete();
|
|
10387
|
+
this.unsubscribe();
|
|
10369
10388
|
};
|
|
10370
10389
|
HistoricalPixAccountListComponent.prototype.ngAfterViewInit = function () {
|
|
10371
10390
|
this.cd.detectChanges();
|
|
@@ -10374,27 +10393,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10374
10393
|
var _this = this;
|
|
10375
10394
|
payload.forEach(function (value) {
|
|
10376
10395
|
value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
|
|
10377
|
-
value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
|
|
10378
|
-
value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
|
|
10379
10396
|
});
|
|
10380
10397
|
this.onGridLoad(payload);
|
|
10381
10398
|
this.loading = false;
|
|
10382
10399
|
};
|
|
10383
|
-
HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
|
|
10384
|
-
var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
|
|
10385
|
-
if (keyType === "TELEPHONE") {
|
|
10386
|
-
return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
|
|
10387
|
-
}
|
|
10388
|
-
else if (keyType === "CPF") {
|
|
10389
|
-
return FormatUtilsService.getFormattedCpf(pixKey);
|
|
10390
|
-
}
|
|
10391
|
-
else if (keyType === "CNPJ") {
|
|
10392
|
-
return FormatUtilsService.getFormattedCnpj(pixKey);
|
|
10393
|
-
}
|
|
10394
|
-
else {
|
|
10395
|
-
return pixKey;
|
|
10396
|
-
}
|
|
10397
|
-
};
|
|
10398
10400
|
HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
|
|
10399
10401
|
var _this = this;
|
|
10400
10402
|
return [
|
|
@@ -10402,6 +10404,8 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10402
10404
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10403
10405
|
command: function () {
|
|
10404
10406
|
if (_this.isAllowToViewHistorical) {
|
|
10407
|
+
_this.sharedStateService.setHideField(true);
|
|
10408
|
+
_this.sharedStateService.setShowButton(false);
|
|
10405
10409
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10406
10410
|
if (_this.withSidebar) {
|
|
10407
10411
|
_this.isOnlyView.emit(true);
|
|
@@ -10410,6 +10414,29 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10410
10414
|
});
|
|
10411
10415
|
}
|
|
10412
10416
|
else {
|
|
10417
|
+
_this.sharedStateService.setSaveButton(false);
|
|
10418
|
+
_this.enableView.emit(dateChange);
|
|
10419
|
+
}
|
|
10420
|
+
}
|
|
10421
|
+
else {
|
|
10422
|
+
_this.isNotAllowMessage();
|
|
10423
|
+
}
|
|
10424
|
+
},
|
|
10425
|
+
},
|
|
10426
|
+
{
|
|
10427
|
+
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10428
|
+
command: function () {
|
|
10429
|
+
if (_this.isAllowToEditHistorical) {
|
|
10430
|
+
_this.sharedStateService.setHideField(true);
|
|
10431
|
+
_this.sharedStateService.setShowButton(false);
|
|
10432
|
+
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10433
|
+
if (_this.withSidebar) {
|
|
10434
|
+
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10435
|
+
relativeTo: _this.activatedRoute,
|
|
10436
|
+
});
|
|
10437
|
+
}
|
|
10438
|
+
else {
|
|
10439
|
+
_this.sharedStateService.setSaveButton(true);
|
|
10413
10440
|
_this.enableView.emit(dateChange);
|
|
10414
10441
|
}
|
|
10415
10442
|
}
|
|
@@ -10495,6 +10522,24 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10495
10522
|
this.lastRecord = payload[0];
|
|
10496
10523
|
}
|
|
10497
10524
|
};
|
|
10525
|
+
HistoricalPixAccountListComponent.prototype.unsubscribe = function () {
|
|
10526
|
+
if (this._subscription) {
|
|
10527
|
+
this._subscription.unsubscribe();
|
|
10528
|
+
}
|
|
10529
|
+
};
|
|
10530
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", {
|
|
10531
|
+
set: function (subject) {
|
|
10532
|
+
var _this = this;
|
|
10533
|
+
this.unsubscribe();
|
|
10534
|
+
if (subject) {
|
|
10535
|
+
this._subscription = subject.subscribe(function (value) {
|
|
10536
|
+
_this.sharedStateService.setHideField(value);
|
|
10537
|
+
});
|
|
10538
|
+
}
|
|
10539
|
+
},
|
|
10540
|
+
enumerable: true,
|
|
10541
|
+
configurable: true
|
|
10542
|
+
});
|
|
10498
10543
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10499
10544
|
get: function () {
|
|
10500
10545
|
return (this.permission["incluir"]);
|
|
@@ -10502,6 +10547,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10502
10547
|
enumerable: true,
|
|
10503
10548
|
configurable: true
|
|
10504
10549
|
});
|
|
10550
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
|
|
10551
|
+
get: function () {
|
|
10552
|
+
return (this.permission["editar"]);
|
|
10553
|
+
},
|
|
10554
|
+
enumerable: true,
|
|
10555
|
+
configurable: true
|
|
10556
|
+
});
|
|
10505
10557
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10506
10558
|
get: function () {
|
|
10507
10559
|
return (this.permission["excluir"]);
|
|
@@ -10540,7 +10592,8 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10540
10592
|
{ type: ChangeDetectorRef },
|
|
10541
10593
|
{ type: Router },
|
|
10542
10594
|
{ type: MessageService },
|
|
10543
|
-
{ type: HistoricalPixAccountListService }
|
|
10595
|
+
{ type: HistoricalPixAccountListService },
|
|
10596
|
+
{ type: SharedStateService }
|
|
10544
10597
|
]; };
|
|
10545
10598
|
__decorate([
|
|
10546
10599
|
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
@@ -10566,12 +10619,21 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10566
10619
|
__decorate([
|
|
10567
10620
|
Input()
|
|
10568
10621
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10622
|
+
__decorate([
|
|
10623
|
+
Input()
|
|
10624
|
+
], HistoricalPixAccountListComponent.prototype, "hideField", void 0);
|
|
10569
10625
|
__decorate([
|
|
10570
10626
|
Output()
|
|
10571
10627
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10572
10628
|
__decorate([
|
|
10573
10629
|
Output()
|
|
10574
10630
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|
|
10631
|
+
__decorate([
|
|
10632
|
+
Output()
|
|
10633
|
+
], HistoricalPixAccountListComponent.prototype, "isEditJudicialDependentPix", void 0);
|
|
10634
|
+
__decorate([
|
|
10635
|
+
Input()
|
|
10636
|
+
], HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", null);
|
|
10575
10637
|
__decorate([
|
|
10576
10638
|
Input()
|
|
10577
10639
|
], HistoricalPixAccountListComponent.prototype, "reloadList", null);
|
|
@@ -10621,5 +10683,5 @@ var HistoricalPixAccountListModule = /** @class */ (function () {
|
|
|
10621
10683
|
* Generated bundle index. Do not edit.
|
|
10622
10684
|
*/
|
|
10623
10685
|
|
|
10624
|
-
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 };
|
|
10686
|
+
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, SharedStateService, 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 };
|
|
10625
10687
|
//# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map
|