@senior-gestao-pessoas/payroll-core 9.5.0-fbdcba79-4ef6-4255-9628-f5e2e790112a → 9.5.0-feature-hcmgdp-11492-f438f1e4
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 +444 -881
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -16
- 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 +43 -10
- package/components/historical-pix-account/historical-pix-account.component.d.ts +13 -41
- package/components/historical-pix-account/historical-pix-account.service.d.ts +0 -1
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +2 -9
- package/components/utils/format-utils/format-utils.service.d.ts +3 -30
- package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +205 -34
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +43 -264
- package/esm2015/components/historical-pix-account/historical-pix-account.module.js +1 -5
- package/esm2015/components/historical-pix-account/historical-pix-account.service.js +1 -8
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +6 -44
- package/esm2015/components/utils/format-utils/format-utils.service.js +5 -88
- package/esm2015/public_api.js +1 -2
- package/esm2015/senior-gestao-pessoas-payroll-core.js +2 -3
- package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +220 -58
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +72 -306
- package/esm5/components/historical-pix-account/historical-pix-account.module.js +1 -5
- package/esm5/components/historical-pix-account/historical-pix-account.service.js +1 -8
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +6 -49
- package/esm5/components/utils/format-utils/format-utils.service.js +5 -88
- package/esm5/public_api.js +1 -2
- package/esm5/senior-gestao-pessoas-payroll-core.js +2 -3
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +388 -785
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +441 -877
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +0 -1
- package/senior-gestao-pessoas-payroll-core.d.ts +1 -2
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
- package/components/historical-pix-account/historical-pix-account-base.d.ts +0 -27
- package/components/shared/index.d.ts +0 -1
- package/components/shared/shared-state.service.d.ts +0 -24
- package/esm2015/components/historical-pix-account/historical-pix-account-base.js +0 -173
- package/esm2015/components/shared/index.js +0 -2
- package/esm2015/components/shared/shared-state.service.js +0 -54
- package/esm5/components/historical-pix-account/historical-pix-account-base.js +0 -186
- package/esm5/components/shared/index.js +0 -2
- package/esm5/components/shared/shared-state.service.js +0 -55
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate, __assign, __spread, __awaiter, __generator, __read, __values
|
|
1
|
+
import { __decorate, __assign, __spread, __awaiter, __generator, __read, __values } from 'tslib';
|
|
2
2
|
import { Input, Component, NgModule, EventEmitter, ViewChild, Output, ElementRef, HostListener, Directive, Injectable, ViewEncapsulation, ɵɵdefineInjectable, ɵɵinject, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { FormsModule, ReactiveFormsModule, FormGroup, FormArray, FormControl, Validators, FormBuilder } from '@angular/forms';
|
|
4
4
|
import { BlockUIModule } from 'primeng/blockui';
|
|
@@ -36,7 +36,6 @@ import { CurrencyMaskModule } from 'ng2-currency-mask';
|
|
|
36
36
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
37
37
|
import { PanelModule } from 'primeng/panel';
|
|
38
38
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
39
|
-
import { TabViewModule } from 'primeng/tabview';
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
41
|
* Created by Bruno.Curioletti on 30/05/2017.
|
|
@@ -9174,25 +9173,6 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9174
9173
|
}
|
|
9175
9174
|
return null;
|
|
9176
9175
|
};
|
|
9177
|
-
/**
|
|
9178
|
-
* Retorna o CPF formatado
|
|
9179
|
-
* @param cpf CPF
|
|
9180
|
-
*/
|
|
9181
|
-
FormatUtilsService.getFormattedCpfEdited = function (cpf) {
|
|
9182
|
-
if (!cpf)
|
|
9183
|
-
return '';
|
|
9184
|
-
cpf = cpf.replace(/\D/g, '').slice(0, 11);
|
|
9185
|
-
if (cpf.length > 9) {
|
|
9186
|
-
cpf = cpf.replace(/^(\d{3})(\d{3})(\d{3})(\d{2})$/, "$1.$2.$3-$4");
|
|
9187
|
-
}
|
|
9188
|
-
else if (cpf.length > 6) {
|
|
9189
|
-
cpf = cpf.replace(/^(\d{3})(\d{3})(\d{0,3})$/, "$1.$2.$3");
|
|
9190
|
-
}
|
|
9191
|
-
else if (cpf.length > 3) {
|
|
9192
|
-
cpf = cpf.replace(/^(\d{3})(\d{0,3})$/, "$1.$2");
|
|
9193
|
-
}
|
|
9194
|
-
return cpf;
|
|
9195
|
-
};
|
|
9196
9176
|
/**
|
|
9197
9177
|
* Retorna o CNPJ formatado
|
|
9198
9178
|
* @param cnpj CNPJ
|
|
@@ -9208,28 +9188,6 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9208
9188
|
}
|
|
9209
9189
|
return null;
|
|
9210
9190
|
};
|
|
9211
|
-
/**
|
|
9212
|
-
* Retorna o CNPJ formatado
|
|
9213
|
-
* @param cnpj CNPJ
|
|
9214
|
-
*/
|
|
9215
|
-
FormatUtilsService.getFormattedCnpjEdited = function (cnpj) {
|
|
9216
|
-
if (!cnpj)
|
|
9217
|
-
return '';
|
|
9218
|
-
cnpj = cnpj.replace(/\D/g, '').slice(0, 14);
|
|
9219
|
-
if (cnpj.length > 12) {
|
|
9220
|
-
cnpj = cnpj.replace(/^(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})$/, "$1.$2.$3/$4-$5");
|
|
9221
|
-
}
|
|
9222
|
-
else if (cnpj.length > 8) {
|
|
9223
|
-
cnpj = cnpj.replace(/^(\d{2})(\d{3})(\d{3})(\d{0,4})$/, "$1.$2.$3/$4");
|
|
9224
|
-
}
|
|
9225
|
-
else if (cnpj.length > 5) {
|
|
9226
|
-
cnpj = cnpj.replace(/^(\d{2})(\d{3})(\d{0,3})$/, "$1.$2.$3");
|
|
9227
|
-
}
|
|
9228
|
-
else if (cnpj.length > 2) {
|
|
9229
|
-
cnpj = cnpj.replace(/^(\d{2})(\d{0,3})$/, "$1.$2");
|
|
9230
|
-
}
|
|
9231
|
-
return cnpj;
|
|
9232
|
-
};
|
|
9233
9191
|
/**
|
|
9234
9192
|
* Retorna a mascara do CPF/CNPJ
|
|
9235
9193
|
* @param key Valores possíveis são CPF ou CNPJ
|
|
@@ -9244,24 +9202,6 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9244
9202
|
return "";
|
|
9245
9203
|
}
|
|
9246
9204
|
};
|
|
9247
|
-
/**
|
|
9248
|
-
* Método para formatar o número de inscrição do cliente.
|
|
9249
|
-
* @param subscriptionNumber
|
|
9250
|
-
* @param pixKeyType
|
|
9251
|
-
* @returns
|
|
9252
|
-
*/
|
|
9253
|
-
FormatUtilsService.getFormattedSubscriptionNumber = function (subscriptionNumber, pixKeyType) {
|
|
9254
|
-
if (!subscriptionNumber || !pixKeyType)
|
|
9255
|
-
return subscriptionNumber;
|
|
9256
|
-
switch (pixKeyType) {
|
|
9257
|
-
case 'CNPJ':
|
|
9258
|
-
return this.getFormattedCnpjEdited(subscriptionNumber);
|
|
9259
|
-
case 'CPF':
|
|
9260
|
-
return this.getFormattedCpfEdited(subscriptionNumber);
|
|
9261
|
-
default:
|
|
9262
|
-
return subscriptionNumber;
|
|
9263
|
-
}
|
|
9264
|
-
};
|
|
9265
9205
|
/**
|
|
9266
9206
|
* Metódo para formatar o número de telefone.
|
|
9267
9207
|
* @param telephoneNumber String contendo o número de telefone.
|
|
@@ -9293,13 +9233,6 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9293
9233
|
}
|
|
9294
9234
|
return tel;
|
|
9295
9235
|
};
|
|
9296
|
-
/**
|
|
9297
|
-
* Metódo para formatar a porcentagem para 2 casas decimais.
|
|
9298
|
-
* @param value Número a ser formatado.
|
|
9299
|
-
*/
|
|
9300
|
-
FormatUtilsService.getFormattedPercentage = function (value) {
|
|
9301
|
-
return parseFloat(value).toFixed(2).replace('.', ',') + '%';
|
|
9302
|
-
};
|
|
9303
9236
|
/**
|
|
9304
9237
|
* Metódo para formatar o número de telefone de um campo Input.
|
|
9305
9238
|
* @param event Evento do Input do campo de telefone.
|
|
@@ -9313,82 +9246,15 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9313
9246
|
event.target.value = FormatUtilsService.getFormattedTelephoneNumber(telephoneNumber);
|
|
9314
9247
|
};
|
|
9315
9248
|
/**
|
|
9316
|
-
*
|
|
9317
|
-
* @param
|
|
9318
|
-
*/
|
|
9319
|
-
FormatUtilsService.formatCpfInputEvent = function (event) {
|
|
9320
|
-
var cpf = event.target.value;
|
|
9321
|
-
// Permite apagar nos pontos sensíveis
|
|
9322
|
-
if (event.keyCode === 8 && (cpf.length === 4 || cpf.length === 8 || cpf.length === 12)) {
|
|
9323
|
-
return;
|
|
9324
|
-
}
|
|
9325
|
-
event.target.value = FormatUtilsService.getFormattedCpfEdited(cpf);
|
|
9326
|
-
};
|
|
9327
|
-
/**
|
|
9328
|
-
* Formata o campo de input de CNPJ em tempo real.
|
|
9329
|
-
* @param event Evento do input
|
|
9249
|
+
* Metódo para formatar a porcentagem para 2 casas decimais.
|
|
9250
|
+
* @param value Número a ser formatado.
|
|
9330
9251
|
*/
|
|
9331
|
-
FormatUtilsService.
|
|
9332
|
-
|
|
9333
|
-
// Permite apagar nos pontos sensíveis
|
|
9334
|
-
if (event.keyCode === 8 && (cnpj.length === 3 || cnpj.length === 7 || cnpj.length === 11 || cnpj.length === 16)) {
|
|
9335
|
-
return;
|
|
9336
|
-
}
|
|
9337
|
-
event.target.value = FormatUtilsService.getFormattedCnpjEdited(cnpj);
|
|
9252
|
+
FormatUtilsService.getFormattedPercentage = function (value) {
|
|
9253
|
+
return parseFloat(value).toFixed(2).replace('.', ',') + '%';
|
|
9338
9254
|
};
|
|
9339
9255
|
return FormatUtilsService;
|
|
9340
9256
|
}());
|
|
9341
9257
|
|
|
9342
|
-
var SharedStateService = /** @class */ (function () {
|
|
9343
|
-
function SharedStateService() {
|
|
9344
|
-
this.hideFieldSubject = new BehaviorSubject(true);
|
|
9345
|
-
this.hideField$ = this.hideFieldSubject.asObservable();
|
|
9346
|
-
this.showButtonSubject = new BehaviorSubject(true);
|
|
9347
|
-
this.showButton$ = this.showButtonSubject.asObservable();
|
|
9348
|
-
this.saveButtonSubject = new BehaviorSubject(true);
|
|
9349
|
-
this.saveButton$ = this.saveButtonSubject.asObservable();
|
|
9350
|
-
this.showEditMode = new BehaviorSubject(true);
|
|
9351
|
-
this.showEditMode$ = this.showEditMode.asObservable();
|
|
9352
|
-
this.activeValidatorsOnEditModalOpen = new Subject();
|
|
9353
|
-
this.activeValidatorsOnEditModalOpen$ = this.activeValidatorsOnEditModalOpen.asObservable();
|
|
9354
|
-
this.shouldReloadWindowOnlyEditMode = new BehaviorSubject(false);
|
|
9355
|
-
this.shouldReloadWindowOnlyEditMode$ = this.shouldReloadWindowOnlyEditMode.asObservable();
|
|
9356
|
-
this.hideBtnAddForViewMode = new BehaviorSubject(false);
|
|
9357
|
-
this.hideBtnAddForViewMode$ = this.hideBtnAddForViewMode.asObservable();
|
|
9358
|
-
}
|
|
9359
|
-
SharedStateService.prototype.setHideField = function (value) {
|
|
9360
|
-
this.hideFieldSubject.next(value);
|
|
9361
|
-
};
|
|
9362
|
-
SharedStateService.prototype.setShowButton = function (value) {
|
|
9363
|
-
this.showButtonSubject.next(value);
|
|
9364
|
-
};
|
|
9365
|
-
SharedStateService.prototype.setSaveButton = function (value) {
|
|
9366
|
-
this.saveButtonSubject.next(value);
|
|
9367
|
-
};
|
|
9368
|
-
SharedStateService.prototype.setShowEditMode = function (value) {
|
|
9369
|
-
this.showEditMode.next(value);
|
|
9370
|
-
};
|
|
9371
|
-
SharedStateService.prototype.setShouldReloadWindowOnlyEditMode = function (value) {
|
|
9372
|
-
this.shouldReloadWindowOnlyEditMode.next(value);
|
|
9373
|
-
};
|
|
9374
|
-
SharedStateService.prototype.triggerActiveValidatorsOnEditModalOpen = function () {
|
|
9375
|
-
this.activeValidatorsOnEditModalOpen.next();
|
|
9376
|
-
};
|
|
9377
|
-
SharedStateService.prototype.setHideBtnAddForViewMode = function (value) {
|
|
9378
|
-
this.hideBtnAddForViewMode.next(value);
|
|
9379
|
-
};
|
|
9380
|
-
SharedStateService.prototype.resetHideField = function () {
|
|
9381
|
-
this.hideFieldSubject.next(true);
|
|
9382
|
-
};
|
|
9383
|
-
SharedStateService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SharedStateService_Factory() { return new SharedStateService(); }, token: SharedStateService, providedIn: "root" });
|
|
9384
|
-
SharedStateService = __decorate([
|
|
9385
|
-
Injectable({
|
|
9386
|
-
providedIn: 'root',
|
|
9387
|
-
})
|
|
9388
|
-
], SharedStateService);
|
|
9389
|
-
return SharedStateService;
|
|
9390
|
-
}());
|
|
9391
|
-
|
|
9392
9258
|
var GenericValidator = /** @class */ (function () {
|
|
9393
9259
|
function GenericValidator() {
|
|
9394
9260
|
}
|
|
@@ -9555,72 +9421,47 @@ var GenericValidator = /** @class */ (function () {
|
|
|
9555
9421
|
return GenericValidator;
|
|
9556
9422
|
}());
|
|
9557
9423
|
|
|
9558
|
-
var
|
|
9559
|
-
function
|
|
9560
|
-
this.
|
|
9561
|
-
this.
|
|
9424
|
+
var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
9425
|
+
function HistoricalPixAccountFormComponent(formBuilder, cd) {
|
|
9426
|
+
this.formBuilder = formBuilder;
|
|
9427
|
+
this.cd = cd;
|
|
9428
|
+
this.withSideBar = true;
|
|
9429
|
+
this.isEditMode = false;
|
|
9430
|
+
this.paramsForm = new FormGroup({});
|
|
9431
|
+
this.defaultCpfNumber = null;
|
|
9432
|
+
this.permitsEditBankAccountForm = false;
|
|
9433
|
+
this.visibleChange = new EventEmitter();
|
|
9434
|
+
this.pixAccountItemToList = new EventEmitter();
|
|
9435
|
+
this.ngUnsubscribe = new Subject();
|
|
9562
9436
|
this.initialValidatorOfPercentage = [Validators.required, Validators.min(0.01)];
|
|
9563
|
-
this.
|
|
9564
|
-
this.maxValuePercentage = 100.
|
|
9437
|
+
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
9438
|
+
this.maxValuePercentage = 100.00;
|
|
9439
|
+
this.visibleBtnSave = true;
|
|
9440
|
+
this.isView = false;
|
|
9565
9441
|
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9566
|
-
this.
|
|
9567
|
-
this.
|
|
9442
|
+
this.createFormGroup();
|
|
9443
|
+
this.registerSubjects();
|
|
9568
9444
|
}
|
|
9569
|
-
|
|
9570
|
-
FormatUtilsService.formatTelephoneInputEvent(event);
|
|
9445
|
+
HistoricalPixAccountFormComponent.prototype.ngOnInit = function () {
|
|
9571
9446
|
};
|
|
9572
|
-
|
|
9573
|
-
|
|
9447
|
+
HistoricalPixAccountFormComponent.prototype.ngDoCheck = function () {
|
|
9448
|
+
if (this.pixAccountFormGroup && this.pixKeyType === "BANK_ACCOUNT") {
|
|
9449
|
+
var pixKeyControl = this.pixAccountFormGroup.get("pixKey");
|
|
9450
|
+
if (pixKeyControl && !pixKeyControl.disabled) {
|
|
9451
|
+
pixKeyControl.disable();
|
|
9452
|
+
}
|
|
9453
|
+
}
|
|
9574
9454
|
};
|
|
9575
|
-
|
|
9576
|
-
|
|
9455
|
+
HistoricalPixAccountFormComponent.prototype.ngAfterViewInit = function () {
|
|
9456
|
+
this.cd.detectChanges();
|
|
9577
9457
|
};
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
this.pixKeyType = item.key;
|
|
9582
|
-
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9583
|
-
? form
|
|
9584
|
-
: this.pixAccountFormGroup;
|
|
9585
|
-
this.isShowPixKeyFieldValidatorMessage = true;
|
|
9586
|
-
var pixKeyControl = targetForm.get("pixKey");
|
|
9587
|
-
if (pixKeyControl) {
|
|
9588
|
-
pixKeyControl.reset();
|
|
9589
|
-
}
|
|
9590
|
-
this.setPixKeyValidators(true, targetForm);
|
|
9591
|
-
if (item.key === "CPF") {
|
|
9592
|
-
this.setDefaultCpfPixKey(targetForm);
|
|
9593
|
-
}
|
|
9594
|
-
};
|
|
9595
|
-
HistoricakPixAccountBase.prototype.onClearPixKeyType = function (form) {
|
|
9596
|
-
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9597
|
-
? form
|
|
9598
|
-
: this.pixAccountFormGroup;
|
|
9599
|
-
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9600
|
-
if (targetForm.get("pixKey")) {
|
|
9601
|
-
targetForm.get("pixKey").reset();
|
|
9602
|
-
}
|
|
9458
|
+
HistoricalPixAccountFormComponent.prototype.ngOnDestroy = function () {
|
|
9459
|
+
this.ngUnsubscribe.next(true);
|
|
9460
|
+
this.ngUnsubscribe.unsubscribe();
|
|
9603
9461
|
};
|
|
9604
|
-
|
|
9605
|
-
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9606
|
-
? form
|
|
9607
|
-
: this.pixAccountFormGroup;
|
|
9608
|
-
if (this._defaultCpfNumber) {
|
|
9609
|
-
if (targetForm.get("pixKey")) {
|
|
9610
|
-
targetForm.get("pixKey").setValue(this._defaultCpfNumber);
|
|
9611
|
-
}
|
|
9612
|
-
}
|
|
9613
|
-
else {
|
|
9614
|
-
var sheetDocument = this._paramsForm.get("sheetDocument");
|
|
9615
|
-
if (sheetDocument && sheetDocument.get("cpfNumber")) {
|
|
9616
|
-
var cpf = sheetDocument.get("cpfNumber").value;
|
|
9617
|
-
if (cpf && targetForm.get("pixKey")) {
|
|
9618
|
-
targetForm.get("pixKey").setValue(cpf);
|
|
9619
|
-
}
|
|
9620
|
-
}
|
|
9621
|
-
}
|
|
9462
|
+
HistoricalPixAccountFormComponent.prototype.registerSubjects = function () {
|
|
9622
9463
|
};
|
|
9623
|
-
|
|
9464
|
+
HistoricalPixAccountFormComponent.prototype.createFormGroup = function () {
|
|
9624
9465
|
this.pixAccountFormGroup = this.formBuilder.group({
|
|
9625
9466
|
id: this.formBuilder.control(null),
|
|
9626
9467
|
index: this.formBuilder.control(null),
|
|
@@ -9635,192 +9476,391 @@ var HistoricakPixAccountBase = /** @class */ (function () {
|
|
|
9635
9476
|
customFields: this.formBuilder.control(null),
|
|
9636
9477
|
});
|
|
9637
9478
|
};
|
|
9638
|
-
|
|
9639
|
-
if (
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
: [];
|
|
9647
|
-
var percentageIncluded = [];
|
|
9648
|
-
for (var i = 0; i < this.pixAccountList.length; i++) {
|
|
9649
|
-
var field = this.pixAccountList[i];
|
|
9650
|
-
if (field && field.percentage && i !== index) {
|
|
9651
|
-
percentageIncluded.push(field.percentage);
|
|
9479
|
+
HistoricalPixAccountFormComponent.prototype.onChangePixKeyType = function (item) {
|
|
9480
|
+
if (item.key) {
|
|
9481
|
+
this.pixKeyType = item.key;
|
|
9482
|
+
this.isShowPixKeyFieldValidatorMessage = true;
|
|
9483
|
+
this.pixAccountFormGroup.get("pixKey").reset();
|
|
9484
|
+
this.setPixKeyValidators(true);
|
|
9485
|
+
if (item.key === "CPF") {
|
|
9486
|
+
this.setDefaultCpfPixKey();
|
|
9652
9487
|
}
|
|
9653
9488
|
}
|
|
9654
|
-
this.beforeSetPixKeyTypeValidator(targetForm);
|
|
9655
|
-
this.setPixKeyValidators(isEditMode, targetForm);
|
|
9656
|
-
this.validatePercentageValid(percentageIncluded, targetForm);
|
|
9657
9489
|
};
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
}
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9490
|
+
HistoricalPixAccountFormComponent.prototype.onClearPixKeyType = function () {
|
|
9491
|
+
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9492
|
+
this.pixAccountFormGroup.get("pixKey").reset();
|
|
9493
|
+
};
|
|
9494
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "visible", {
|
|
9495
|
+
get: function () {
|
|
9496
|
+
return this._visible;
|
|
9497
|
+
},
|
|
9498
|
+
set: function (value) {
|
|
9499
|
+
this._visible = value;
|
|
9500
|
+
this.visibleChange.emit(this.visible);
|
|
9501
|
+
},
|
|
9502
|
+
enumerable: true,
|
|
9503
|
+
configurable: true
|
|
9504
|
+
});
|
|
9505
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", {
|
|
9506
|
+
set: function (value) {
|
|
9507
|
+
this.resetForm();
|
|
9508
|
+
this.visibleBtnSave = true;
|
|
9509
|
+
if (value && value.permitsEditBankAccount) {
|
|
9510
|
+
this.permitsEditBankAccountForm = true;
|
|
9511
|
+
}
|
|
9512
|
+
if (value && value.currentItem && Object.keys(value.currentItem).length) {
|
|
9513
|
+
this.pixAccountFormGroup.patchValue(this.convertDTOToShowWithCustomFields(__assign({}, value.currentItem)));
|
|
9514
|
+
this.labelBtnAdd = "hcm.payroll.employees_update";
|
|
9515
|
+
this.setValidatorsAccordingList(value.listData, value.currentItem["index"], value && value["isEditMode"]);
|
|
9516
|
+
if (!this.isView) {
|
|
9517
|
+
this.configEnableFields(value && value["isEditMode"]);
|
|
9518
|
+
}
|
|
9519
|
+
else {
|
|
9520
|
+
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
9521
|
+
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
9522
|
+
this.formatPixKeyTelephoneNumber();
|
|
9523
|
+
}
|
|
9524
|
+
}
|
|
9525
|
+
}
|
|
9526
|
+
else {
|
|
9527
|
+
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
9528
|
+
}
|
|
9529
|
+
},
|
|
9530
|
+
enumerable: true,
|
|
9531
|
+
configurable: true
|
|
9532
|
+
});
|
|
9533
|
+
HistoricalPixAccountFormComponent.prototype.formatPixKeyTelephoneNumber = function () {
|
|
9534
|
+
if (this.pixKeyType === "TELEPHONE") {
|
|
9535
|
+
this.pixAccountFormGroup.get("pixKey").setValue(FormatUtilsService.getFormattedTelephoneNumber(this.pixAccountFormGroup.get("pixKey").value));
|
|
9691
9536
|
}
|
|
9692
|
-
|
|
9693
|
-
|
|
9537
|
+
};
|
|
9538
|
+
HistoricalPixAccountFormComponent.prototype.convertDTOToShowWithCustomFields = function (data) {
|
|
9539
|
+
var obj = __assign({}, data);
|
|
9540
|
+
obj["customFields"] = mountCustomToShow(obj["customFields"]);
|
|
9541
|
+
return obj;
|
|
9542
|
+
};
|
|
9543
|
+
HistoricalPixAccountFormComponent.prototype.configEnableFields = function (isEditMode) {
|
|
9544
|
+
this.visibleBtnSave = isEditMode;
|
|
9545
|
+
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
9546
|
+
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
9547
|
+
this.setPixKeyValidators(isEditMode);
|
|
9548
|
+
this.formatPixKeyTelephoneNumber();
|
|
9694
9549
|
}
|
|
9695
|
-
|
|
9550
|
+
configEnabledFields(this.pixAccountFormGroup, isEditMode, [
|
|
9551
|
+
"pixKeyType",
|
|
9552
|
+
"pixKey",
|
|
9553
|
+
"percentage",
|
|
9554
|
+
"customFields",
|
|
9555
|
+
], []);
|
|
9696
9556
|
};
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
this.
|
|
9700
|
-
percentage.setValidators(Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9701
|
-
Validators.max(this.maxValuePercentage),
|
|
9702
|
-
])));
|
|
9703
|
-
percentage.updateValueAndValidity();
|
|
9557
|
+
HistoricalPixAccountFormComponent.prototype.close = function () {
|
|
9558
|
+
this.resetForm();
|
|
9559
|
+
this.visible = false;
|
|
9704
9560
|
};
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9561
|
+
HistoricalPixAccountFormComponent.prototype.addItem = function () {
|
|
9562
|
+
this.pixAccountFormGroup.updateValueAndValidity();
|
|
9563
|
+
verifyValidationsForm.call(this.pixAccountFormGroup);
|
|
9564
|
+
if (this.pixAccountFormGroup.valid) {
|
|
9565
|
+
if (this.employeeId) {
|
|
9566
|
+
this.pixAccountFormGroup.get("employee").setValue({
|
|
9567
|
+
tableId: this.employeeId,
|
|
9568
|
+
name: "",
|
|
9569
|
+
});
|
|
9570
|
+
}
|
|
9571
|
+
this.pixAccountItemToList.emit(this.pixAccountFormGroup.getRawValue());
|
|
9572
|
+
this.visible = false;
|
|
9573
|
+
this.resetForm();
|
|
9574
|
+
}
|
|
9575
|
+
};
|
|
9576
|
+
HistoricalPixAccountFormComponent.prototype.resetForm = function () {
|
|
9577
|
+
this.pixAccountFormGroup.reset();
|
|
9578
|
+
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
9579
|
+
if (this.customFields && this.customFields.formGroup)
|
|
9580
|
+
this.customFields.formGroup.reset();
|
|
9715
9581
|
};
|
|
9716
|
-
Object.defineProperty(
|
|
9582
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "percentagePlaceholder", {
|
|
9717
9583
|
get: function () {
|
|
9718
|
-
return this.
|
|
9719
|
-
},
|
|
9720
|
-
set: function (value) {
|
|
9721
|
-
this._paramsForm = value;
|
|
9584
|
+
return "0" + (this.currency && this.currency.decimalSeparator) + "00";
|
|
9722
9585
|
},
|
|
9723
9586
|
enumerable: true,
|
|
9724
9587
|
configurable: true
|
|
9725
9588
|
});
|
|
9726
|
-
Object.defineProperty(
|
|
9589
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "optionsPercentage", {
|
|
9727
9590
|
get: function () {
|
|
9728
|
-
return this.
|
|
9591
|
+
return __assign({}, this.getOptions(), { precision: 2 });
|
|
9729
9592
|
},
|
|
9730
|
-
|
|
9731
|
-
|
|
9593
|
+
enumerable: true,
|
|
9594
|
+
configurable: true
|
|
9595
|
+
});
|
|
9596
|
+
HistoricalPixAccountFormComponent.prototype.getOptions = function () {
|
|
9597
|
+
return {
|
|
9598
|
+
prefix: "",
|
|
9599
|
+
thousands: this.currency.thousandsSeparator,
|
|
9600
|
+
decimal: this.currency.decimalSeparator,
|
|
9601
|
+
};
|
|
9602
|
+
};
|
|
9603
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "getListPixAccount", {
|
|
9604
|
+
/**
|
|
9605
|
+
* O Input que recebe a lista do component pai e chama o método de validação passando a lista recebida.
|
|
9606
|
+
* @param pixAccountList
|
|
9607
|
+
*/
|
|
9608
|
+
set: function (pixAccountList) {
|
|
9609
|
+
if (pixAccountList) {
|
|
9610
|
+
this.setValidatorsAccordingList(pixAccountList, null, false);
|
|
9611
|
+
}
|
|
9612
|
+
else {
|
|
9613
|
+
this.resetForm();
|
|
9614
|
+
}
|
|
9732
9615
|
},
|
|
9733
9616
|
enumerable: true,
|
|
9734
9617
|
configurable: true
|
|
9735
9618
|
});
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9619
|
+
/**
|
|
9620
|
+
* Recebe a lista de registros já inseridos na tabela adiciona em uma variável os valores que serão usados para
|
|
9621
|
+
* a validação dos campos "percentage" e "pixAccount".
|
|
9622
|
+
* Quando tem index significa que está em uma edição, os valores na posição do registro da edição (index) não serão adicionados
|
|
9623
|
+
* no array de comparação dos validators.
|
|
9624
|
+
* @param pixAccountList
|
|
9625
|
+
* @param index
|
|
9626
|
+
*/
|
|
9627
|
+
HistoricalPixAccountFormComponent.prototype.setValidatorsAccordingList = function (pixAccountList, index, isEditMode) {
|
|
9628
|
+
if (index === void 0) { index = null; }
|
|
9629
|
+
if (isEditMode === void 0) { isEditMode = true; }
|
|
9630
|
+
this.pixAccountList = pixAccountList && pixAccountList.length ? __spread(pixAccountList) : [];
|
|
9631
|
+
var percentageIncluded = [];
|
|
9632
|
+
if (this.pixAccountList && this.pixAccountList.length) {
|
|
9633
|
+
this.pixAccountList.filter(function (field, key) {
|
|
9634
|
+
if (field["percentage"] && key != index) {
|
|
9635
|
+
percentageIncluded.push(field["percentage"]);
|
|
9636
|
+
}
|
|
9637
|
+
});
|
|
9638
|
+
}
|
|
9639
|
+
this.beforeSetPixKeyTypeValidator();
|
|
9640
|
+
this.setPixKeyValidators(isEditMode);
|
|
9641
|
+
this.validatePercentageValid(percentageIncluded);
|
|
9642
|
+
};
|
|
9643
|
+
/**
|
|
9644
|
+
* Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
|
|
9645
|
+
*/
|
|
9646
|
+
HistoricalPixAccountFormComponent.prototype.setPixKeyValidators = function (isEditMode) {
|
|
9647
|
+
var genericPixKey = this.pixAccountFormGroup.get("pixKey");
|
|
9648
|
+
if (this.pixKeyType) {
|
|
9649
|
+
switch (this.pixKeyType) {
|
|
9650
|
+
case "TELEPHONE":
|
|
9651
|
+
genericPixKey.setValidators(Validators.compose([
|
|
9652
|
+
Validators.required, GenericValidator.isValidPhoneNumber,
|
|
9653
|
+
]));
|
|
9654
|
+
break;
|
|
9655
|
+
case "EMAIL":
|
|
9656
|
+
genericPixKey.setValidators(Validators.compose([
|
|
9657
|
+
Validators.required, GenericValidator.isValidEmail,
|
|
9658
|
+
]));
|
|
9659
|
+
break;
|
|
9660
|
+
case "CPF":
|
|
9661
|
+
genericPixKey.setValidators(Validators.compose([
|
|
9662
|
+
Validators.required, GenericValidator.isValidCpf,
|
|
9663
|
+
]));
|
|
9664
|
+
break;
|
|
9665
|
+
case "CNPJ":
|
|
9666
|
+
genericPixKey.setValidators(Validators.compose([
|
|
9667
|
+
Validators.required, GenericValidator.isValidCnpj,
|
|
9668
|
+
]));
|
|
9669
|
+
break;
|
|
9670
|
+
case "RANDOM_KEY":
|
|
9671
|
+
genericPixKey.setValidators(Validators.required);
|
|
9672
|
+
break;
|
|
9673
|
+
default:
|
|
9674
|
+
genericPixKey.setValidators(null);
|
|
9675
|
+
break;
|
|
9676
|
+
}
|
|
9677
|
+
if (isEditMode) {
|
|
9678
|
+
genericPixKey.enable();
|
|
9679
|
+
}
|
|
9680
|
+
genericPixKey.updateValueAndValidity();
|
|
9681
|
+
}
|
|
9682
|
+
};
|
|
9683
|
+
/**
|
|
9684
|
+
* Este método calcula as parcentagens que já foram inseridas, e seta a diferença para chegar em
|
|
9685
|
+
* 100% na validação do campo "percentage" como um novo maxValue;
|
|
9686
|
+
* @param listValue
|
|
9687
|
+
*/
|
|
9688
|
+
HistoricalPixAccountFormComponent.prototype.validatePercentageValid = function (listValue) {
|
|
9689
|
+
var percentage = this.pixAccountFormGroup.get("percentage");
|
|
9690
|
+
this.maxValuePercentage = listValue
|
|
9691
|
+
.reduce(function (currentValue, total) { return currentValue - total; }, 100.00);
|
|
9692
|
+
percentage
|
|
9693
|
+
.setValidators(Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9694
|
+
Validators.max(this.maxValuePercentage),
|
|
9695
|
+
])));
|
|
9696
|
+
percentage.updateValueAndValidity();
|
|
9697
|
+
};
|
|
9698
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isViewMode", {
|
|
9699
|
+
set: function (condition) {
|
|
9700
|
+
this.isView = !!(condition && !this.withSideBar);
|
|
9701
|
+
this.configEnableFields(!this.isView);
|
|
9702
|
+
if (!this.isView)
|
|
9703
|
+
this.resetForm();
|
|
9704
|
+
},
|
|
9705
|
+
enumerable: true,
|
|
9706
|
+
configurable: true
|
|
9707
|
+
});
|
|
9708
|
+
HistoricalPixAccountFormComponent.prototype.phoneMask = function (event) {
|
|
9709
|
+
FormatUtilsService.formatTelephoneInputEvent(event);
|
|
9746
9710
|
};
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9711
|
+
HistoricalPixAccountFormComponent.prototype.setDefaultCpfPixKey = function () {
|
|
9712
|
+
if (this.defaultCpfNumber) {
|
|
9713
|
+
this.pixAccountFormGroup.get("pixKey").setValue(this.defaultCpfNumber);
|
|
9714
|
+
}
|
|
9715
|
+
else {
|
|
9716
|
+
var sheetDocument = this.paramsForm.get("sheetDocument");
|
|
9717
|
+
if (sheetDocument) {
|
|
9718
|
+
var cpf = sheetDocument.get("cpfNumber").value;
|
|
9719
|
+
if (cpf) {
|
|
9720
|
+
this.pixAccountFormGroup.get("pixKey").setValue(cpf);
|
|
9721
|
+
}
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
};
|
|
9725
|
+
HistoricalPixAccountFormComponent.prototype.beforeSetPixKeyTypeValidator = function () {
|
|
9726
|
+
var pixKeyType = this.pixAccountFormGroup.get("pixKeyType");
|
|
9727
|
+
if (this.pixAccountList && this.pixAccountList.length && pixKeyType) {
|
|
9728
|
+
pixKeyType
|
|
9729
|
+
.setValidators(Validators.compose([
|
|
9730
|
+
Validators.required,
|
|
9731
|
+
this.validateDuplicatePixKeyTypeBankAccount(this.pixAccountList),
|
|
9732
|
+
]));
|
|
9733
|
+
}
|
|
9734
|
+
else {
|
|
9735
|
+
pixKeyType.setValidators(Validators.required);
|
|
9736
|
+
}
|
|
9737
|
+
};
|
|
9738
|
+
HistoricalPixAccountFormComponent.prototype.validateDuplicatePixKeyTypeBankAccount = function (listCompare) {
|
|
9739
|
+
var _this = this;
|
|
9740
|
+
return function (control) {
|
|
9741
|
+
var value = control && control.value;
|
|
9742
|
+
var condition = false;
|
|
9743
|
+
listCompare.filter(function (field) {
|
|
9744
|
+
if (value) {
|
|
9745
|
+
if (field["pixKeyType"].key === 'BANK_ACCOUNT' && value.key === field["pixKeyType"].key) {
|
|
9746
|
+
return condition = true;
|
|
9747
|
+
}
|
|
9748
|
+
}
|
|
9749
|
+
});
|
|
9750
|
+
if (condition && !_this.permitsEditBankAccountForm) {
|
|
9751
|
+
return { pixKeyTypeBankAccountDuplicate: true };
|
|
9752
|
+
}
|
|
9753
|
+
else {
|
|
9754
|
+
return null;
|
|
9755
|
+
}
|
|
9751
9756
|
};
|
|
9752
|
-
return this.http.query(path, body, ServiceType.PAYROLL);
|
|
9753
9757
|
};
|
|
9754
|
-
|
|
9755
|
-
{ type:
|
|
9758
|
+
HistoricalPixAccountFormComponent.ctorParameters = function () { return [
|
|
9759
|
+
{ type: FormBuilder },
|
|
9760
|
+
{ type: ChangeDetectorRef }
|
|
9756
9761
|
]; };
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
],
|
|
9760
|
-
|
|
9762
|
+
__decorate([
|
|
9763
|
+
ViewChild(CustomFieldsComponent$1, { static: true })
|
|
9764
|
+
], HistoricalPixAccountFormComponent.prototype, "customFields", void 0);
|
|
9765
|
+
__decorate([
|
|
9766
|
+
Input()
|
|
9767
|
+
], HistoricalPixAccountFormComponent.prototype, "currency", void 0);
|
|
9768
|
+
__decorate([
|
|
9769
|
+
Input()
|
|
9770
|
+
], HistoricalPixAccountFormComponent.prototype, "customEntity", void 0);
|
|
9771
|
+
__decorate([
|
|
9772
|
+
Input()
|
|
9773
|
+
], HistoricalPixAccountFormComponent.prototype, "customService", void 0);
|
|
9774
|
+
__decorate([
|
|
9775
|
+
Input()
|
|
9776
|
+
], HistoricalPixAccountFormComponent.prototype, "withSideBar", void 0);
|
|
9777
|
+
__decorate([
|
|
9778
|
+
Input()
|
|
9779
|
+
], HistoricalPixAccountFormComponent.prototype, "isEditMode", void 0);
|
|
9780
|
+
__decorate([
|
|
9781
|
+
Input()
|
|
9782
|
+
], HistoricalPixAccountFormComponent.prototype, "paramsForm", void 0);
|
|
9783
|
+
__decorate([
|
|
9784
|
+
Input()
|
|
9785
|
+
], HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", void 0);
|
|
9786
|
+
__decorate([
|
|
9787
|
+
Input()
|
|
9788
|
+
], HistoricalPixAccountFormComponent.prototype, "permitsEditBankAccountForm", void 0);
|
|
9789
|
+
__decorate([
|
|
9790
|
+
Output()
|
|
9791
|
+
], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
|
|
9792
|
+
__decorate([
|
|
9793
|
+
Output()
|
|
9794
|
+
], HistoricalPixAccountFormComponent.prototype, "pixAccountItemToList", void 0);
|
|
9795
|
+
__decorate([
|
|
9796
|
+
Input()
|
|
9797
|
+
], HistoricalPixAccountFormComponent.prototype, "visible", null);
|
|
9798
|
+
__decorate([
|
|
9799
|
+
Input()
|
|
9800
|
+
], HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", null);
|
|
9801
|
+
__decorate([
|
|
9802
|
+
Input()
|
|
9803
|
+
], HistoricalPixAccountFormComponent.prototype, "getListPixAccount", null);
|
|
9804
|
+
__decorate([
|
|
9805
|
+
Input()
|
|
9806
|
+
], HistoricalPixAccountFormComponent.prototype, "isViewMode", null);
|
|
9807
|
+
HistoricalPixAccountFormComponent = __decorate([
|
|
9808
|
+
Component({
|
|
9809
|
+
selector: "pix-account",
|
|
9810
|
+
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",
|
|
9811
|
+
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}"]
|
|
9812
|
+
})
|
|
9813
|
+
], HistoricalPixAccountFormComponent);
|
|
9814
|
+
return HistoricalPixAccountFormComponent;
|
|
9761
9815
|
}());
|
|
9762
9816
|
|
|
9763
|
-
var HistoricalPixAccountComponent = /** @class */ (function (
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
_this.reloadOnlyOnEdit = new EventEmitter();
|
|
9786
|
-
_this.listFromApp = [];
|
|
9787
|
-
_this.visibleChange = new EventEmitter();
|
|
9788
|
-
_this.ngUnsubscribe = new Subject();
|
|
9789
|
-
_this.orderBy = {
|
|
9817
|
+
var HistoricalPixAccountComponent = /** @class */ (function () {
|
|
9818
|
+
function HistoricalPixAccountComponent(translateService, cd, formBuilder, messageService) {
|
|
9819
|
+
var _this = this;
|
|
9820
|
+
this.translateService = translateService;
|
|
9821
|
+
this.cd = cd;
|
|
9822
|
+
this.formBuilder = formBuilder;
|
|
9823
|
+
this.messageService = messageService;
|
|
9824
|
+
this.recordByRow = 1;
|
|
9825
|
+
this.showDateChange = false;
|
|
9826
|
+
this.isEditMode = false;
|
|
9827
|
+
this.isViewMode = false;
|
|
9828
|
+
this.withSideBar = true;
|
|
9829
|
+
this.defaultCpfNumber = null;
|
|
9830
|
+
this.listDataReciever = [];
|
|
9831
|
+
this.showButtonEdit = false;
|
|
9832
|
+
this.isViewModeActive = new EventEmitter();
|
|
9833
|
+
this.isEditModeActive = new EventEmitter();
|
|
9834
|
+
this.isDeleteModeActive = new EventEmitter();
|
|
9835
|
+
this.listFromApp = [];
|
|
9836
|
+
this.visibleChange = new EventEmitter();
|
|
9837
|
+
this.ngUnsubscribe = new Subject();
|
|
9838
|
+
this.orderBy = {
|
|
9790
9839
|
field: "dateChange",
|
|
9791
9840
|
direction: DirectionEnumeration.DESC,
|
|
9792
9841
|
};
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
_this.hasRecordsPix = true;
|
|
9802
|
-
_this.hideFields = _this.sharedStateService.hideField$;
|
|
9803
|
-
_this.suggestions = [];
|
|
9804
|
-
_this.formGroupByRow = {};
|
|
9805
|
-
_this.cols = [
|
|
9842
|
+
this.pixAccountItemInput = {};
|
|
9843
|
+
this.totalRecords = 0;
|
|
9844
|
+
this.actionLabel = this.translateService.instant("hcm.payroll.entries_query_actions_total_title");
|
|
9845
|
+
this.loading = true;
|
|
9846
|
+
this.listData = [];
|
|
9847
|
+
this.listDataNoPage = [];
|
|
9848
|
+
this.permitsEditBankAccount = false;
|
|
9849
|
+
this.cols = [
|
|
9806
9850
|
{
|
|
9807
|
-
label:
|
|
9851
|
+
label: this.translateService.instant("hcm.payroll.employees_addition_pix_key_type"),
|
|
9808
9852
|
field: "pixKeyType",
|
|
9809
9853
|
},
|
|
9810
9854
|
{
|
|
9811
|
-
label:
|
|
9855
|
+
label: this.translateService.instant("hcm.payroll.employees_addition_pix_key"),
|
|
9812
9856
|
field: "pixKey",
|
|
9813
9857
|
},
|
|
9814
9858
|
{
|
|
9815
|
-
label:
|
|
9859
|
+
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
9816
9860
|
field: "percentage",
|
|
9817
9861
|
},
|
|
9818
|
-
{
|
|
9819
|
-
label: _this.translateService.instant("hcm.payroll.movimentation_generic_action"),
|
|
9820
|
-
field: "actions",
|
|
9821
|
-
}
|
|
9822
9862
|
];
|
|
9823
|
-
|
|
9863
|
+
this.actions = function (rowData, key) {
|
|
9824
9864
|
if (rowData === void 0) { rowData = {}; }
|
|
9825
9865
|
return [
|
|
9826
9866
|
{
|
|
@@ -9838,26 +9878,30 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
9838
9878
|
},
|
|
9839
9879
|
},
|
|
9840
9880
|
{
|
|
9841
|
-
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9881
|
+
visible: !!((!_this.isEditMode && _this.withSideBar) || _this.showButtonEdit),
|
|
9842
9882
|
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9843
9883
|
command: function () {
|
|
9884
|
+
_this.permitsEditBankAccount = true;
|
|
9844
9885
|
if (_this.isAllowToEditHistorical) {
|
|
9845
9886
|
rowData["index"] = key;
|
|
9846
|
-
_this.pixAccountItemInput = {
|
|
9887
|
+
_this.pixAccountItemInput = {
|
|
9888
|
+
currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true, permitsEditBankAccount: true
|
|
9889
|
+
};
|
|
9847
9890
|
_this.visible = true;
|
|
9848
9891
|
}
|
|
9849
9892
|
else {
|
|
9850
9893
|
_this.isEditModeActive.emit(true);
|
|
9851
9894
|
if (_this.listFromApp.length == 0) {
|
|
9852
9895
|
rowData["index"] = key;
|
|
9853
|
-
_this.pixAccountItemInput = {
|
|
9854
|
-
|
|
9896
|
+
_this.pixAccountItemInput = {
|
|
9897
|
+
currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true, permitsEditBankAccount: true
|
|
9898
|
+
};
|
|
9855
9899
|
}
|
|
9856
9900
|
}
|
|
9857
9901
|
},
|
|
9858
9902
|
},
|
|
9859
9903
|
{
|
|
9860
|
-
visible: !_this.isEditMode
|
|
9904
|
+
visible: !_this.isEditMode,
|
|
9861
9905
|
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9862
9906
|
command: function () {
|
|
9863
9907
|
if (_this.isAllowToDeleteHistorical) {
|
|
@@ -9875,51 +9919,17 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
9875
9919
|
},
|
|
9876
9920
|
];
|
|
9877
9921
|
};
|
|
9878
|
-
|
|
9879
|
-
return _this;
|
|
9922
|
+
this.createFormGroup();
|
|
9880
9923
|
}
|
|
9881
9924
|
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9882
|
-
var _this = this;
|
|
9883
|
-
this.showFields = this.showField;
|
|
9884
9925
|
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9885
|
-
this.sharedStateService.showButton$.subscribe(function (value) {
|
|
9886
|
-
_this.showButtonView = value;
|
|
9887
|
-
});
|
|
9888
|
-
this.sharedStateService.showEditMode$.subscribe(function (value) {
|
|
9889
|
-
_this.showEditMode = value;
|
|
9890
|
-
_this.isEditModeForSave = value;
|
|
9891
|
-
});
|
|
9892
|
-
this.sharedStateService.shouldReloadWindowOnlyEditMode$.subscribe(function (value) {
|
|
9893
|
-
_this.reloadOnlyOnEdit.emit(value);
|
|
9894
|
-
});
|
|
9895
|
-
this.sharedStateService.hideBtnAddForViewMode$.subscribe(function (value) {
|
|
9896
|
-
_this.hideBtnAddForViewMode = value;
|
|
9897
|
-
});
|
|
9898
|
-
this.sharedStateService.activeValidatorsOnEditModalOpen$
|
|
9899
|
-
.subscribe(function () {
|
|
9900
|
-
Object.values(_this.formGroupByRow).forEach(function (fg) {
|
|
9901
|
-
Object.values(fg.controls).forEach(function (control) {
|
|
9902
|
-
control.markAsTouched();
|
|
9903
|
-
control.updateValueAndValidity();
|
|
9904
|
-
});
|
|
9905
|
-
});
|
|
9906
|
-
_this.emitFormValidity();
|
|
9907
|
-
});
|
|
9908
9926
|
};
|
|
9909
9927
|
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9910
9928
|
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9911
9929
|
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9912
9930
|
}
|
|
9913
|
-
if (changes['
|
|
9914
|
-
this.
|
|
9915
|
-
}
|
|
9916
|
-
if (changes['addExistentHistoricData'] && changes['addExistentHistoricData'].currentValue) {
|
|
9917
|
-
var newData = changes['addExistentHistoricData'].currentValue;
|
|
9918
|
-
this.rebuildFormGroupMap(newData);
|
|
9919
|
-
}
|
|
9920
|
-
if (changes['isEditMode']) {
|
|
9921
|
-
this.isEditMode = changes['isEditMode'].currentValue;
|
|
9922
|
-
this.cd.detectChanges();
|
|
9931
|
+
if (changes['showButtonEdit'] && changes['showButtonEdit'].currentValue) {
|
|
9932
|
+
this.permitsEditBankAccount = changes['showButtonEdit'].currentValue;
|
|
9923
9933
|
}
|
|
9924
9934
|
};
|
|
9925
9935
|
HistoricalPixAccountComponent.prototype.createFormGroup = function () {
|
|
@@ -9934,98 +9944,6 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
9934
9944
|
HistoricalPixAccountComponent.prototype.ngAfterViewInit = function () {
|
|
9935
9945
|
this.cd.detectChanges();
|
|
9936
9946
|
};
|
|
9937
|
-
HistoricalPixAccountComponent.prototype.emitFormValidity = function () {
|
|
9938
|
-
var allValid = Object.values(this.formGroupByRow).every(function (fg) {
|
|
9939
|
-
fg.updateValueAndValidity();
|
|
9940
|
-
return fg.valid;
|
|
9941
|
-
});
|
|
9942
|
-
this.isValidChangeForm.emit(allValid);
|
|
9943
|
-
};
|
|
9944
|
-
HistoricalPixAccountComponent.prototype.filterPixKeyType = function (event) {
|
|
9945
|
-
var _this = this;
|
|
9946
|
-
var query = event.query;
|
|
9947
|
-
this.service.enumQuery().subscribe(function (response) {
|
|
9948
|
-
var pixKeyTypeEnum = response.results.find(function (result) { return result.enumName === 'PixKeyType'; });
|
|
9949
|
-
if (pixKeyTypeEnum) {
|
|
9950
|
-
_this.suggestions = pixKeyTypeEnum.items.filter(function (item) {
|
|
9951
|
-
return item.value.toLowerCase().includes(query.toLowerCase());
|
|
9952
|
-
});
|
|
9953
|
-
}
|
|
9954
|
-
else {
|
|
9955
|
-
_this.suggestions = [];
|
|
9956
|
-
}
|
|
9957
|
-
});
|
|
9958
|
-
};
|
|
9959
|
-
HistoricalPixAccountComponent.prototype.createPixRowFormGroup = function () {
|
|
9960
|
-
return this.formBuilder.group({
|
|
9961
|
-
pixKeyType: [null, Validators.required],
|
|
9962
|
-
pixKey: [null],
|
|
9963
|
-
percentage: [0, Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9964
|
-
Validators.max(this.maxValuePercentage),
|
|
9965
|
-
]))]
|
|
9966
|
-
});
|
|
9967
|
-
};
|
|
9968
|
-
HistoricalPixAccountComponent.prototype.onPixKeyInput = function (event, index) {
|
|
9969
|
-
var inputValue = event.target.value;
|
|
9970
|
-
var inputRawValue = inputValue.replace(/\D/g, '');
|
|
9971
|
-
var form = this.formGroupByRow[index];
|
|
9972
|
-
var pixKeyControl = form.get('pixKey');
|
|
9973
|
-
if (pixKeyControl) {
|
|
9974
|
-
pixKeyControl.setValue(inputRawValue, { emitEvent: false });
|
|
9975
|
-
pixKeyControl.markAsDirty();
|
|
9976
|
-
pixKeyControl.updateValueAndValidity();
|
|
9977
|
-
}
|
|
9978
|
-
this.setPixKeyValidators(true, form);
|
|
9979
|
-
this.emitFormValidity();
|
|
9980
|
-
};
|
|
9981
|
-
HistoricalPixAccountComponent.prototype.onBlurPixCpfAndCnpj = function (index) {
|
|
9982
|
-
var form = this.formGroupByRow[index];
|
|
9983
|
-
var pixKeyControl = form.get('pixKey');
|
|
9984
|
-
var pixKeyTypeControl = form.get('pixKeyType');
|
|
9985
|
-
if (!pixKeyControl || !pixKeyTypeControl)
|
|
9986
|
-
return;
|
|
9987
|
-
var currentValue = pixKeyControl.value;
|
|
9988
|
-
var pixKeyType = pixKeyTypeControl.value.key;
|
|
9989
|
-
var rawValue = (currentValue || '').replace(/\D/g, '');
|
|
9990
|
-
pixKeyControl.setValue(rawValue, { emitEvent: false });
|
|
9991
|
-
if (pixKeyControl.valid) {
|
|
9992
|
-
form.patchValue({
|
|
9993
|
-
pixKeyFormatted: FormatUtilsService.getFormattedSubscriptionNumber(rawValue, pixKeyType)
|
|
9994
|
-
});
|
|
9995
|
-
}
|
|
9996
|
-
this.emitFormValidity();
|
|
9997
|
-
};
|
|
9998
|
-
HistoricalPixAccountComponent.prototype.getFormattedPixKey = function (type, value) {
|
|
9999
|
-
return FormatUtilsService.getFormattedSubscriptionNumber(value, type);
|
|
10000
|
-
};
|
|
10001
|
-
HistoricalPixAccountComponent.prototype.syncPixDataToParentForm = function () {
|
|
10002
|
-
if (!this.isEditModeForSave)
|
|
10003
|
-
return;
|
|
10004
|
-
var values = Object.values(this.formGroupByRow).map(function (fg) {
|
|
10005
|
-
var value = fg.getRawValue();
|
|
10006
|
-
var pixKeyType = value.pixKeyType.key;
|
|
10007
|
-
if (pixKeyType === 'CPF' || pixKeyType === 'CNPJ') {
|
|
10008
|
-
value.pixKey = (value.pixKey || '').replace(/[.\-\/]/g, '');
|
|
10009
|
-
}
|
|
10010
|
-
else if (pixKeyType === 'TELEPHONE') {
|
|
10011
|
-
value.pixKey = (value.pixKey || '').replace(/[()\s\-]/g, '');
|
|
10012
|
-
}
|
|
10013
|
-
return value;
|
|
10014
|
-
});
|
|
10015
|
-
this.formGroup
|
|
10016
|
-
.get(this.fieldFormGroup)
|
|
10017
|
-
.get('historicalPixAccountList')
|
|
10018
|
-
.setValue(values);
|
|
10019
|
-
this.emitFormValidity();
|
|
10020
|
-
};
|
|
10021
|
-
HistoricalPixAccountComponent.prototype.syncResetPixFormToParent = function () {
|
|
10022
|
-
this.formGroupByRow = {};
|
|
10023
|
-
this.historicalPixAccountList.reset();
|
|
10024
|
-
this.historicalPixAccountList.get('historicalPixAccountList').setValue([]);
|
|
10025
|
-
if (this.addExistentHistoricData.length) {
|
|
10026
|
-
this.rebuildFormGroupMap(this.addExistentHistoricData);
|
|
10027
|
-
}
|
|
10028
|
-
};
|
|
10029
9947
|
HistoricalPixAccountComponent.prototype.onLazyLoad = function (event) {
|
|
10030
9948
|
var _this = this;
|
|
10031
9949
|
var first = event && event.first ? event.first : 0;
|
|
@@ -10053,7 +9971,6 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10053
9971
|
this.refreshCssInIE11();
|
|
10054
9972
|
}
|
|
10055
9973
|
this.loading = false;
|
|
10056
|
-
this.cd.detectChanges();
|
|
10057
9974
|
};
|
|
10058
9975
|
/**
|
|
10059
9976
|
* Um Bug de CSS que acontece nas linhas da tabela, que resolve só atualizando qualquer parte do CSS da pagina.
|
|
@@ -10071,68 +9988,12 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10071
9988
|
this.pixAccountItemInput = {};
|
|
10072
9989
|
this.visible = true;
|
|
10073
9990
|
};
|
|
10074
|
-
HistoricalPixAccountComponent.prototype.
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
};
|
|
10080
|
-
var index = this.addExistentHistoricData.length;
|
|
10081
|
-
this.addExistentHistoricData = __spread(this.addExistentHistoricData, [
|
|
10082
|
-
newItem
|
|
10083
|
-
]);
|
|
10084
|
-
this.formGroupByRow[index] = this.createPixRowFormGroup();
|
|
10085
|
-
this.setValidatorsAccordingList(this.addExistentHistoricData, index, true);
|
|
10086
|
-
this.emitFormValidity();
|
|
10087
|
-
};
|
|
10088
|
-
HistoricalPixAccountComponent.prototype.deletePix = function (index) {
|
|
10089
|
-
if (this.dataListPix.editingCell) {
|
|
10090
|
-
this.dataListPix.editingCell = null;
|
|
10091
|
-
}
|
|
10092
|
-
this.addExistentHistoricData = this.addExistentHistoricData.filter(function (_, i) { return i !== index; });
|
|
10093
|
-
this.rebuildFormGroupMap(this.addExistentHistoricData);
|
|
10094
|
-
this.emitFormValidity();
|
|
10095
|
-
};
|
|
10096
|
-
HistoricalPixAccountComponent.prototype.rebuildFormGroupMap = function (data) {
|
|
10097
|
-
var _this = this;
|
|
10098
|
-
this.formGroupByRow = {};
|
|
10099
|
-
data.forEach(function (item, index) {
|
|
10100
|
-
var form = _this.createPixRowFormGroup();
|
|
10101
|
-
var pixKeyType = item.pixKeyType.key;
|
|
10102
|
-
var pixKeyRaw = item.pixKey;
|
|
10103
|
-
if (pixKeyType === 'CPF' || pixKeyType === 'CNPJ') {
|
|
10104
|
-
item.pixKey = FormatUtilsService.getFormattedSubscriptionNumber(pixKeyRaw, pixKeyType);
|
|
10105
|
-
}
|
|
10106
|
-
if (pixKeyType === 'TELEPHONE') {
|
|
10107
|
-
item.pixKey = FormatUtilsService.getFormattedTelephoneNumber(pixKeyRaw);
|
|
10108
|
-
}
|
|
10109
|
-
form.patchValue(item);
|
|
10110
|
-
_this.formGroupByRow[index] = form;
|
|
10111
|
-
_this.pixKeyType = pixKeyType;
|
|
10112
|
-
_this.setPixKeyValidators(true, form);
|
|
10113
|
-
_this.setValidatorsAccordingList(data, index, _this.isEditMode);
|
|
10114
|
-
var listValues = data
|
|
10115
|
-
.filter(function (_, i) { return i !== index; })
|
|
10116
|
-
.map(function (row) { return row.percentage ? parseFloat(row.percentage) : 0; });
|
|
10117
|
-
_this.validatePercentageValid(listValues, form);
|
|
10118
|
-
});
|
|
10119
|
-
this.emitFormValidity();
|
|
10120
|
-
};
|
|
10121
|
-
HistoricalPixAccountComponent.prototype.onPixKeyTypeChange = function (item, index) {
|
|
10122
|
-
var _this = this;
|
|
10123
|
-
var form = this.formGroupByRow[index];
|
|
10124
|
-
this.onChangePixKeyType(item, form);
|
|
10125
|
-
this.addExistentHistoricData[index].pixKey = '';
|
|
10126
|
-
setTimeout(function () {
|
|
10127
|
-
if (_this.dataListPix.editingCell) {
|
|
10128
|
-
_this.dataListPix.editingCell = null;
|
|
10129
|
-
}
|
|
10130
|
-
});
|
|
10131
|
-
this.cd.detectChanges();
|
|
10132
|
-
};
|
|
10133
|
-
HistoricalPixAccountComponent.prototype.onPixKeyTypeClear = function (index) {
|
|
10134
|
-
var form = this.formGroupByRow[index];
|
|
10135
|
-
this.onClearPixKeyType(form);
|
|
9991
|
+
HistoricalPixAccountComponent.prototype.isNotAllowMessage = function () {
|
|
9992
|
+
this.messageService.add({
|
|
9993
|
+
severity: "error",
|
|
9994
|
+
summary: this.translateService.instant("hcm.payroll.error"),
|
|
9995
|
+
detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
9996
|
+
});
|
|
10136
9997
|
};
|
|
10137
9998
|
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
10138
9999
|
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
@@ -10166,6 +10027,10 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10166
10027
|
$event["dateChange"] = this.dateChange;
|
|
10167
10028
|
newDataList.push($event);
|
|
10168
10029
|
}
|
|
10030
|
+
if (this.formComponent) {
|
|
10031
|
+
this.formComponent.permitsEditBankAccountForm = false;
|
|
10032
|
+
this.cd.detectChanges();
|
|
10033
|
+
}
|
|
10169
10034
|
this.historicalPixAccountList.get("historicalPixAccountList").setValue(newDataList);
|
|
10170
10035
|
this.verifyTotalPercentage();
|
|
10171
10036
|
this.onLazyLoad({ first: this.getNumberPageByIndex(index, newDataList) });
|
|
@@ -10194,23 +10059,6 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10194
10059
|
this.msgTotalLimitByPercentage = null;
|
|
10195
10060
|
}
|
|
10196
10061
|
};
|
|
10197
|
-
HistoricalPixAccountComponent.prototype.onSyncValue = function (field, index) {
|
|
10198
|
-
if (this.formGroupByRow &&
|
|
10199
|
-
this.formGroupByRow[index] &&
|
|
10200
|
-
this.formGroupByRow[index].get(field)) {
|
|
10201
|
-
var control = this.formGroupByRow[index].get(field);
|
|
10202
|
-
var value = control.value;
|
|
10203
|
-
this.addExistentHistoricData[index][field] = value;
|
|
10204
|
-
control.markAsDirty();
|
|
10205
|
-
control.markAsTouched();
|
|
10206
|
-
control.updateValueAndValidity();
|
|
10207
|
-
var currentList = this.addExistentHistoricData.map(function (item, i) {
|
|
10208
|
-
return i === index ? 0 : item.percentage;
|
|
10209
|
-
});
|
|
10210
|
-
this.validatePercentageValid(currentList, this.formGroupByRow[index]);
|
|
10211
|
-
this.emitFormValidity();
|
|
10212
|
-
}
|
|
10213
|
-
};
|
|
10214
10062
|
Object.defineProperty(HistoricalPixAccountComponent.prototype, "scopedActions", {
|
|
10215
10063
|
get: function () {
|
|
10216
10064
|
return this.actions.bind(this);
|
|
@@ -10277,20 +10125,9 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10277
10125
|
set: function (value) {
|
|
10278
10126
|
this._visible = value;
|
|
10279
10127
|
this.visibleChange.emit(this.visible);
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
});
|
|
10284
|
-
Object.defineProperty(HistoricalPixAccountComponent.prototype, "paramsForm", {
|
|
10285
|
-
set: function (value) {
|
|
10286
|
-
this._paramsForm = value;
|
|
10287
|
-
},
|
|
10288
|
-
enumerable: true,
|
|
10289
|
-
configurable: true
|
|
10290
|
-
});
|
|
10291
|
-
Object.defineProperty(HistoricalPixAccountComponent.prototype, "defaultCpfNumber", {
|
|
10292
|
-
set: function (value) {
|
|
10293
|
-
this._defaultCpfNumber = value;
|
|
10128
|
+
if (!value) {
|
|
10129
|
+
this.pixAccountItemInput = {};
|
|
10130
|
+
}
|
|
10294
10131
|
},
|
|
10295
10132
|
enumerable: true,
|
|
10296
10133
|
configurable: true
|
|
@@ -10342,15 +10179,14 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10342
10179
|
{ type: TranslateService },
|
|
10343
10180
|
{ type: ChangeDetectorRef },
|
|
10344
10181
|
{ type: FormBuilder },
|
|
10345
|
-
{ type:
|
|
10346
|
-
{ type: HistoricalPixAccountService }
|
|
10182
|
+
{ type: MessageService }
|
|
10347
10183
|
]; };
|
|
10348
10184
|
__decorate([
|
|
10349
10185
|
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
10350
10186
|
], HistoricalPixAccountComponent.prototype, "customFields", void 0);
|
|
10351
10187
|
__decorate([
|
|
10352
|
-
ViewChild(
|
|
10353
|
-
], HistoricalPixAccountComponent.prototype, "
|
|
10188
|
+
ViewChild(HistoricalPixAccountFormComponent, { static: false })
|
|
10189
|
+
], HistoricalPixAccountComponent.prototype, "formComponent", void 0);
|
|
10354
10190
|
__decorate([
|
|
10355
10191
|
Input()
|
|
10356
10192
|
], HistoricalPixAccountComponent.prototype, "formGroup", void 0);
|
|
@@ -10392,22 +10228,19 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10392
10228
|
], HistoricalPixAccountComponent.prototype, "withSideBar", void 0);
|
|
10393
10229
|
__decorate([
|
|
10394
10230
|
Input()
|
|
10395
|
-
], HistoricalPixAccountComponent.prototype, "
|
|
10396
|
-
__decorate([
|
|
10397
|
-
Input()
|
|
10398
|
-
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
10231
|
+
], HistoricalPixAccountComponent.prototype, "paramsForm", void 0);
|
|
10399
10232
|
__decorate([
|
|
10400
10233
|
Input()
|
|
10401
|
-
], HistoricalPixAccountComponent.prototype, "
|
|
10234
|
+
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
|
|
10402
10235
|
__decorate([
|
|
10403
10236
|
Input()
|
|
10404
|
-
], HistoricalPixAccountComponent.prototype, "
|
|
10237
|
+
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
10405
10238
|
__decorate([
|
|
10406
10239
|
Input()
|
|
10407
|
-
], HistoricalPixAccountComponent.prototype, "
|
|
10240
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
10408
10241
|
__decorate([
|
|
10409
10242
|
Input()
|
|
10410
|
-
], HistoricalPixAccountComponent.prototype, "
|
|
10243
|
+
], HistoricalPixAccountComponent.prototype, "showButtonEdit", void 0);
|
|
10411
10244
|
__decorate([
|
|
10412
10245
|
Output()
|
|
10413
10246
|
], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);
|
|
@@ -10417,12 +10250,6 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10417
10250
|
__decorate([
|
|
10418
10251
|
Output()
|
|
10419
10252
|
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
10420
|
-
__decorate([
|
|
10421
|
-
Output()
|
|
10422
|
-
], HistoricalPixAccountComponent.prototype, "isValidChangeForm", void 0);
|
|
10423
|
-
__decorate([
|
|
10424
|
-
Output()
|
|
10425
|
-
], HistoricalPixAccountComponent.prototype, "reloadOnlyOnEdit", void 0);
|
|
10426
10253
|
__decorate([
|
|
10427
10254
|
Input()
|
|
10428
10255
|
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
@@ -10435,252 +10262,33 @@ var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
|
10435
10262
|
__decorate([
|
|
10436
10263
|
Input()
|
|
10437
10264
|
], HistoricalPixAccountComponent.prototype, "visible", null);
|
|
10438
|
-
__decorate([
|
|
10439
|
-
Input()
|
|
10440
|
-
], HistoricalPixAccountComponent.prototype, "paramsForm", null);
|
|
10441
|
-
__decorate([
|
|
10442
|
-
Input()
|
|
10443
|
-
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", null);
|
|
10444
10265
|
HistoricalPixAccountComponent = __decorate([
|
|
10445
10266
|
Component({
|
|
10446
10267
|
// tslint:disable-next-line:component-selector
|
|
10447
10268
|
selector: "c-historical-pix-account",
|
|
10448
|
-
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 [showField]=\"showFields\"\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<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode && !hideBtnAddForViewMode\">\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 *ngIf=\"showFields || !showEditMode || !(hideFields | async)\" 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 <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length && showButtonView\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"!isViewMode && actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"!isViewMode && actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n\n<!-- Template exlusivo para edi\u00E7\u00E3o de pix via modal-->\n<div *ngIf=\"!withSideBar && showEditMode && (hideFields | async)\" class=\"ui-g-12\">\n <!-- Bot\u00E3o Adicionar -->\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <s-button\n id=\"btn-save\"\n label=\"{{ 'hcm.payroll.historical_pix_account_add' | translate}}\"\n priority=\"primary\"\n (onClick)=\"addPix()\">\n </s-button>\n </div>\n </div>\n\n <!-- Tabela -->\n <p-table #dataListPix sortField=\"percentage\"\n [columns]=\"cols\"\n [value]=\"addExistentHistoricData\"\n [pageLinks]=\"3\"\n [paginator]=\"true\"\n [responsive]=\"true\"\n [rows]=\"10\"\n [resetPageOnSort]=\"false\"\n [tableStyle]=\"{'margin-top': '2rem'}\"\n [customSort]=\"true\">\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of cols\">\n {{ col.label }}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-item let-rowIndex=\"rowIndex\">\n <ng-container *ngIf=\"formGroupByRow[rowIndex]\" [formGroup]=\"formGroupByRow[rowIndex]\">\n <tr>\n <!-- Tipo de Chave -->\n <td class=\"ui-md-6 ui-sm-12 required\"\n [pEditableColumn]=\"item.pixKeyType\" pEditableColumnField=\"pixKeyType\">\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <div style=\"width: 100%; position: relative;\">\n <p-autoComplete\n [suggestions]=\"suggestions\"\n (completeMethod)=\"filterPixKeyType($event)\"\n formControlName=\"pixKeyType\"\n [dropdown]=\"true\"\n (onSelect)=\"onPixKeyTypeChange($event, rowIndex)\"\n (onClear)=\"onPixKeyTypeClear(rowIndex)\"\n (ngModelChange)=\"onSyncValue('pixKeyType', rowIndex)\"\n field=\"value\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n appendTo=\"body\"\n [panelStyle]=\"{ maxWidth: '300px', width: '100%' }\"\n [inputStyle]=\"{ width: '100%' }\"\n ></p-autoComplete>\n\n <s-control-errors [control]=\"formGroupByRow[rowIndex]?.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 </ng-template>\n <ng-template pTemplate=\"output\">\n {{ item.pixKeyType?.value }}\n </ng-template>\n </p-cellEditor>\n </td>\n\n <!-- Chave Pix -->\n <td class=\"ui-md-6 ui-sm-12 required\"\n [pEditableColumn]=\"item.pixKey\" pEditableColumnField=\"pixKey\"\n [ngClass]=\"{'required': item.pixKeyType.key !== 'BANK_ACCOUNT',\n 'disabled': item.pixKeyType && item.pixKeyType.key === 'BANK_ACCOUNT'\n }\">\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <ng-container [ngSwitch]=\"item.pixKeyType.key\">\n <input *ngSwitchCase=\"'TELEPHONE'\"\n only-number\n pInputText\n type=\"text\"\n formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\"\n (ngModelChange)=\"onSyncValue('pixKey', rowIndex)\"\n maxlength=\"15\"\n placeholder=\"(__) ____-____\" />\n\n <input *ngSwitchCase=\"'CPF'\"\n type=\"text\"\n pInputText\n formControlName=\"pixKey\"\n maxlength=\"14\"\n placeholder=\"___.___.___-__\"\n (input)=\"onPixKeyInput($event, rowIndex)\"\n (blur)=\"onBlurPixCpfAndCnpj(rowIndex)\"\n (keyup)=\"cpfMask($event)\"\n (ngModelChange)=\"onSyncValue('pixKey', rowIndex)\" />\n\n <input *ngSwitchCase=\"'CNPJ'\"\n type=\"text\"\n pInputText\n formControlName=\"pixKey\"\n maxlength=\"18\"\n placeholder=\"___.___.___/____-__\"\n (input)=\"onPixKeyInput($event, rowIndex)\"\n (blur)=\"onBlurPixCpfAndCnpj(rowIndex)\"\n (keyup)=\"cnpjMask($event)\"\n (ngModelChange)=\"onSyncValue('pixKey', rowIndex)\" />\n\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText\n type=\"email\"\n formControlName=\"pixKey\"\n (ngModelChange)=\"onSyncValue('pixKey', rowIndex)\"\n placeholder=\"{{ 'hcm.payroll.employees_addition_email' | translate }}\" />\n\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\"\n pInputText\n formControlName=\"pixKey\"\n (ngModelChange)=\"onSyncValue('pixKey', rowIndex)\"\n [disabled]=\"true\" />\n\n <input *ngSwitchDefault\n pInputText\n type=\"text\"\n formControlName=\"pixKey\"\n (ngModelChange)=\"onSyncValue('pixKey', rowIndex)\"\n maxlength=\"100\" />\n </ng-container>\n\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\"\n [control]=\"formGroupByRow[rowIndex]?.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: formGroupByRow[rowIndex]?.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 </ng-template>\n <ng-template pTemplate=\"output\">\n {{ getFormattedPixKey(item.pixKeyType?.key, item.pixKey) }}\n </ng-template>\n </p-cellEditor>\n </td>\n\n <!-- Percentual -->\n <td class=\"ui-md-6 ui-sm-12 required\"\n [pEditableColumn]=\"item.percentage\" pEditableColumnField=\"percentage\">\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText type=\"number\"\n formControlName=\"percentage\"\n (ngModelChange)=\"onSyncValue('percentage', rowIndex)\"\n >\n <s-control-errors\n [control]=\"formGroupByRow[rowIndex]?.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 </ng-template>\n <ng-template pTemplate=\"output\">\n {{ item.percentage?.toFixed(2).replace('.', ',') }}%\n </ng-template>\n </p-cellEditor>\n </td>\n\n <!-- Bot\u00E3o de excluir -->\n <td>\n <s-button\n id=\"btn-delete\"\n label=\"{{ 'hcm.payroll.delete' | translate }}\"\n priority=\"default\"\n (onClick)=\"deletePix(rowIndex)\">\n </s-button>\n </td>\n </tr>\n </ng-container>\n </ng-template>\n </p-table>\n</div>\n",
|
|
10269
|
+
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 && !isViewMode\">\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 [permitsEditBankAccountForm]=\"permitsEditBankAccount\"\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=\"!isViewMode\" [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=\"!isViewMode\" id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length && !isViewMode\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n",
|
|
10449
10270
|
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}"]
|
|
10450
10271
|
})
|
|
10451
10272
|
], HistoricalPixAccountComponent);
|
|
10452
10273
|
return HistoricalPixAccountComponent;
|
|
10453
|
-
}(
|
|
10454
|
-
|
|
10455
|
-
var
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
_this.isEditMode = false;
|
|
10463
|
-
_this.showField = false;
|
|
10464
|
-
_this.visibleChange = new EventEmitter();
|
|
10465
|
-
_this.pixAccountItemToList = new EventEmitter();
|
|
10466
|
-
_this.ngUnsubscribe = new Subject();
|
|
10467
|
-
_this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
10468
|
-
_this.visibleBtnSave = true;
|
|
10469
|
-
_this.isView = false;
|
|
10470
|
-
_this.isShowPixKeyFieldValidatorMessage = false;
|
|
10471
|
-
_this.hideFields = _this.sharedStateService.hideField$;
|
|
10472
|
-
_this.registerSubjects();
|
|
10473
|
-
return _this;
|
|
10474
|
-
}
|
|
10475
|
-
HistoricalPixAccountFormComponent.prototype.ngOnInit = function () { };
|
|
10476
|
-
HistoricalPixAccountFormComponent.prototype.ngAfterViewInit = function () {
|
|
10477
|
-
this.cd.detectChanges();
|
|
10478
|
-
};
|
|
10479
|
-
HistoricalPixAccountFormComponent.prototype.ngOnDestroy = function () {
|
|
10480
|
-
this.ngUnsubscribe.next(true);
|
|
10481
|
-
this.ngUnsubscribe.unsubscribe();
|
|
10482
|
-
};
|
|
10483
|
-
HistoricalPixAccountFormComponent.prototype.registerSubjects = function () { };
|
|
10484
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "visible", {
|
|
10485
|
-
get: function () {
|
|
10486
|
-
return this._visible;
|
|
10487
|
-
},
|
|
10488
|
-
set: function (value) {
|
|
10489
|
-
this._visible = value;
|
|
10490
|
-
this.visibleChange.emit(this.visible);
|
|
10491
|
-
},
|
|
10492
|
-
enumerable: true,
|
|
10493
|
-
configurable: true
|
|
10494
|
-
});
|
|
10495
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", {
|
|
10496
|
-
set: function (value) {
|
|
10497
|
-
this.resetForm();
|
|
10498
|
-
this.visibleBtnSave = true;
|
|
10499
|
-
if (value && value.currentItem && Object.keys(value.currentItem).length) {
|
|
10500
|
-
this.pixAccountFormGroup.patchValue(this.convertDTOToShowWithCustomFields(__assign({}, value.currentItem)));
|
|
10501
|
-
this.labelBtnAdd = "hcm.payroll.employees_update";
|
|
10502
|
-
this.setValidatorsAccordingList(value.listData, value.currentItem["index"], value && value["isEditMode"]);
|
|
10503
|
-
if (!this.isView) {
|
|
10504
|
-
this.configEnableFields(value && value["isEditMode"]);
|
|
10505
|
-
}
|
|
10506
|
-
else {
|
|
10507
|
-
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
10508
|
-
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
10509
|
-
this.formatPixKeyTelephoneNumber();
|
|
10510
|
-
}
|
|
10511
|
-
}
|
|
10512
|
-
}
|
|
10513
|
-
else {
|
|
10514
|
-
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
10515
|
-
}
|
|
10516
|
-
},
|
|
10517
|
-
enumerable: true,
|
|
10518
|
-
configurable: true
|
|
10519
|
-
});
|
|
10520
|
-
HistoricalPixAccountFormComponent.prototype.formatPixKeyTelephoneNumber = function () {
|
|
10521
|
-
if (this.pixKeyType === "TELEPHONE") {
|
|
10522
|
-
var pixKeyCtrl = this.pixAccountFormGroup.get("pixKey");
|
|
10523
|
-
pixKeyCtrl.setValue(FormatUtilsService.getFormattedTelephoneNumber(pixKeyCtrl.value));
|
|
10524
|
-
}
|
|
10525
|
-
};
|
|
10526
|
-
HistoricalPixAccountFormComponent.prototype.convertDTOToShowWithCustomFields = function (data) {
|
|
10527
|
-
var obj = __assign({}, data);
|
|
10528
|
-
obj["customFields"] = mountCustomToShow(obj["customFields"]);
|
|
10529
|
-
return obj;
|
|
10530
|
-
};
|
|
10531
|
-
HistoricalPixAccountFormComponent.prototype.configEnableFields = function (isEditMode) {
|
|
10532
|
-
this.visibleBtnSave = isEditMode;
|
|
10533
|
-
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
10534
|
-
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
10535
|
-
this.setPixKeyValidators(isEditMode, this.pixAccountFormGroup);
|
|
10536
|
-
this.formatPixKeyTelephoneNumber();
|
|
10537
|
-
}
|
|
10538
|
-
configEnabledFields(this.pixAccountFormGroup, isEditMode, [
|
|
10539
|
-
"pixKeyType",
|
|
10540
|
-
"pixKey",
|
|
10541
|
-
"percentage",
|
|
10542
|
-
"customFields"
|
|
10543
|
-
], []);
|
|
10544
|
-
};
|
|
10545
|
-
HistoricalPixAccountFormComponent.prototype.close = function () {
|
|
10546
|
-
this.resetForm();
|
|
10547
|
-
this.visible = false;
|
|
10548
|
-
};
|
|
10549
|
-
HistoricalPixAccountFormComponent.prototype.addItem = function () {
|
|
10550
|
-
if (this.pixAccountFormGroup.valid) {
|
|
10551
|
-
if (this.employeeId) {
|
|
10552
|
-
this.pixAccountFormGroup.get("employee").setValue({
|
|
10553
|
-
tableId: this.employeeId,
|
|
10554
|
-
name: ""
|
|
10555
|
-
});
|
|
10556
|
-
}
|
|
10557
|
-
this.pixAccountItemToList.emit(this.pixAccountFormGroup.getRawValue());
|
|
10558
|
-
this.visible = false;
|
|
10559
|
-
this.resetForm();
|
|
10560
|
-
}
|
|
10561
|
-
};
|
|
10562
|
-
HistoricalPixAccountFormComponent.prototype.resetForm = function () {
|
|
10563
|
-
this.pixAccountFormGroup.reset();
|
|
10564
|
-
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
10565
|
-
if (this.customFields && this.customFields.formGroup)
|
|
10566
|
-
this.customFields.formGroup.reset();
|
|
10567
|
-
};
|
|
10568
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "percentagePlaceholder", {
|
|
10569
|
-
get: function () {
|
|
10570
|
-
return "0" + (this.currency && this.currency.decimalSeparator) + "00";
|
|
10571
|
-
},
|
|
10572
|
-
enumerable: true,
|
|
10573
|
-
configurable: true
|
|
10574
|
-
});
|
|
10575
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "optionsPercentage", {
|
|
10576
|
-
get: function () {
|
|
10577
|
-
return __assign({}, this.getOptions(), { precision: 2 });
|
|
10578
|
-
},
|
|
10579
|
-
enumerable: true,
|
|
10580
|
-
configurable: true
|
|
10581
|
-
});
|
|
10582
|
-
HistoricalPixAccountFormComponent.prototype.getOptions = function () {
|
|
10583
|
-
return {
|
|
10584
|
-
prefix: "",
|
|
10585
|
-
thousands: this.currency.thousandsSeparator,
|
|
10586
|
-
decimal: this.currency.decimalSeparator
|
|
10587
|
-
};
|
|
10274
|
+
}());
|
|
10275
|
+
|
|
10276
|
+
var HistoricalPixAccountService = /** @class */ (function () {
|
|
10277
|
+
function HistoricalPixAccountService(http) {
|
|
10278
|
+
this.http = http;
|
|
10279
|
+
}
|
|
10280
|
+
HistoricalPixAccountService.prototype.query = function (path, body, service) {
|
|
10281
|
+
if (service === void 0) { service = ServiceType.PAYROLL; }
|
|
10282
|
+
return this.http.query(path, body, service);
|
|
10588
10283
|
};
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
if (pixAccountList) {
|
|
10592
|
-
this.setValidatorsAccordingList(pixAccountList, null, false);
|
|
10593
|
-
}
|
|
10594
|
-
else {
|
|
10595
|
-
this.resetForm();
|
|
10596
|
-
}
|
|
10597
|
-
},
|
|
10598
|
-
enumerable: true,
|
|
10599
|
-
configurable: true
|
|
10600
|
-
});
|
|
10601
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isViewMode", {
|
|
10602
|
-
set: function (condition) {
|
|
10603
|
-
this.isView = !!(condition && !this.withSideBar);
|
|
10604
|
-
this.configEnableFields(!this.isView);
|
|
10605
|
-
if (!this.isView)
|
|
10606
|
-
this.resetForm();
|
|
10607
|
-
},
|
|
10608
|
-
enumerable: true,
|
|
10609
|
-
configurable: true
|
|
10610
|
-
});
|
|
10611
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "paramsForm", {
|
|
10612
|
-
set: function (value) {
|
|
10613
|
-
this._paramsForm = value;
|
|
10614
|
-
},
|
|
10615
|
-
enumerable: true,
|
|
10616
|
-
configurable: true
|
|
10617
|
-
});
|
|
10618
|
-
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", {
|
|
10619
|
-
set: function (value) {
|
|
10620
|
-
this._defaultCpfNumber = value;
|
|
10621
|
-
},
|
|
10622
|
-
enumerable: true,
|
|
10623
|
-
configurable: true
|
|
10624
|
-
});
|
|
10625
|
-
HistoricalPixAccountFormComponent.ctorParameters = function () { return [
|
|
10626
|
-
{ type: FormBuilder },
|
|
10627
|
-
{ type: ChangeDetectorRef },
|
|
10628
|
-
{ type: SharedStateService }
|
|
10284
|
+
HistoricalPixAccountService.ctorParameters = function () { return [
|
|
10285
|
+
{ type: HttpClientService }
|
|
10629
10286
|
]; };
|
|
10630
|
-
__decorate([
|
|
10631
|
-
|
|
10632
|
-
],
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
], HistoricalPixAccountFormComponent.prototype, "currency", void 0);
|
|
10636
|
-
__decorate([
|
|
10637
|
-
Input()
|
|
10638
|
-
], HistoricalPixAccountFormComponent.prototype, "customEntity", void 0);
|
|
10639
|
-
__decorate([
|
|
10640
|
-
Input()
|
|
10641
|
-
], HistoricalPixAccountFormComponent.prototype, "customService", void 0);
|
|
10642
|
-
__decorate([
|
|
10643
|
-
Input()
|
|
10644
|
-
], HistoricalPixAccountFormComponent.prototype, "withSideBar", void 0);
|
|
10645
|
-
__decorate([
|
|
10646
|
-
Input()
|
|
10647
|
-
], HistoricalPixAccountFormComponent.prototype, "isEditMode", void 0);
|
|
10648
|
-
__decorate([
|
|
10649
|
-
Input()
|
|
10650
|
-
], HistoricalPixAccountFormComponent.prototype, "showField", void 0);
|
|
10651
|
-
__decorate([
|
|
10652
|
-
Output()
|
|
10653
|
-
], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
|
|
10654
|
-
__decorate([
|
|
10655
|
-
Output()
|
|
10656
|
-
], HistoricalPixAccountFormComponent.prototype, "pixAccountItemToList", void 0);
|
|
10657
|
-
__decorate([
|
|
10658
|
-
Input()
|
|
10659
|
-
], HistoricalPixAccountFormComponent.prototype, "visible", null);
|
|
10660
|
-
__decorate([
|
|
10661
|
-
Input()
|
|
10662
|
-
], HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", null);
|
|
10663
|
-
__decorate([
|
|
10664
|
-
Input()
|
|
10665
|
-
], HistoricalPixAccountFormComponent.prototype, "getListPixAccount", null);
|
|
10666
|
-
__decorate([
|
|
10667
|
-
Input()
|
|
10668
|
-
], HistoricalPixAccountFormComponent.prototype, "isViewMode", null);
|
|
10669
|
-
__decorate([
|
|
10670
|
-
Input()
|
|
10671
|
-
], HistoricalPixAccountFormComponent.prototype, "paramsForm", null);
|
|
10672
|
-
__decorate([
|
|
10673
|
-
Input()
|
|
10674
|
-
], HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", null);
|
|
10675
|
-
HistoricalPixAccountFormComponent = __decorate([
|
|
10676
|
-
Component({
|
|
10677
|
-
selector: "pix-account",
|
|
10678
|
-
template: "<div id=\"main\">\n <form *ngIf=\"showField || !(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",
|
|
10679
|
-
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}"]
|
|
10680
|
-
})
|
|
10681
|
-
], HistoricalPixAccountFormComponent);
|
|
10682
|
-
return HistoricalPixAccountFormComponent;
|
|
10683
|
-
}(HistoricakPixAccountBase));
|
|
10287
|
+
HistoricalPixAccountService = __decorate([
|
|
10288
|
+
Injectable()
|
|
10289
|
+
], HistoricalPixAccountService);
|
|
10290
|
+
return HistoricalPixAccountService;
|
|
10291
|
+
}());
|
|
10684
10292
|
|
|
10685
10293
|
var HistoricalPixAccountModule = /** @class */ (function () {
|
|
10686
10294
|
function HistoricalPixAccountModule() {
|
|
@@ -10710,8 +10318,6 @@ var HistoricalPixAccountModule = /** @class */ (function () {
|
|
|
10710
10318
|
CustomFieldsModule$1,
|
|
10711
10319
|
PanelModule,
|
|
10712
10320
|
InputMaskModule,
|
|
10713
|
-
DropdownModule,
|
|
10714
|
-
TabViewModule,
|
|
10715
10321
|
],
|
|
10716
10322
|
declarations: [HistoricalPixAccountComponent, HistoricalPixAccountFormComponent],
|
|
10717
10323
|
providers: [HistoricalPixAccountService, ConfirmationService],
|
|
@@ -10754,7 +10360,7 @@ var HistoricalPixAccountListService = /** @class */ (function () {
|
|
|
10754
10360
|
|
|
10755
10361
|
var moment$e = moment_;
|
|
10756
10362
|
var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
10757
|
-
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService
|
|
10363
|
+
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
|
|
10758
10364
|
this.confirmationService = confirmationService;
|
|
10759
10365
|
this.translateService = translateService;
|
|
10760
10366
|
this.activatedRoute = activatedRoute;
|
|
@@ -10762,14 +10368,13 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10762
10368
|
this.router = router;
|
|
10763
10369
|
this.messageService = messageService;
|
|
10764
10370
|
this.historicalPixAccountListService = historicalPixAccountListService;
|
|
10765
|
-
this.sharedStateService = sharedStateService;
|
|
10766
10371
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10767
10372
|
this.keyPayload = "historicalEmployeePix";
|
|
10768
10373
|
this.withSidebar = true;
|
|
10769
10374
|
this.isOnlyView = new EventEmitter();
|
|
10770
10375
|
this.isOnlyEdit = new EventEmitter();
|
|
10771
10376
|
this.enableView = new EventEmitter();
|
|
10772
|
-
this.
|
|
10377
|
+
this.enableEdit = new EventEmitter();
|
|
10773
10378
|
this.ngUnsubscribe = new Subject();
|
|
10774
10379
|
this.loading = true;
|
|
10775
10380
|
this.columns = [
|
|
@@ -10789,7 +10394,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10789
10394
|
HistoricalPixAccountListComponent.prototype.ngOnDestroy = function () {
|
|
10790
10395
|
this.ngUnsubscribe.next();
|
|
10791
10396
|
this.ngUnsubscribe.complete();
|
|
10792
|
-
this.unsubscribe();
|
|
10793
10397
|
};
|
|
10794
10398
|
HistoricalPixAccountListComponent.prototype.ngAfterViewInit = function () {
|
|
10795
10399
|
this.cd.detectChanges();
|
|
@@ -10809,20 +10413,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10809
10413
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10810
10414
|
command: function () {
|
|
10811
10415
|
if (_this.isAllowToViewHistorical) {
|
|
10812
|
-
_this.sharedStateService.setHideField(true);
|
|
10813
|
-
_this.sharedStateService.setShowButton(false);
|
|
10814
|
-
_this.sharedStateService.setShowEditMode(false);
|
|
10815
10416
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10816
10417
|
if (_this.withSidebar) {
|
|
10817
10418
|
_this.isOnlyView.emit(true);
|
|
10818
|
-
_this.isOnlyEdit.emit(false);
|
|
10819
|
-
_this.sharedStateService.setHideBtnAddForViewMode(true);
|
|
10820
10419
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10821
10420
|
relativeTo: _this.activatedRoute,
|
|
10822
10421
|
});
|
|
10823
10422
|
}
|
|
10824
10423
|
else {
|
|
10825
|
-
_this.sharedStateService.setSaveButton(false);
|
|
10826
10424
|
_this.enableView.emit(dateChange);
|
|
10827
10425
|
}
|
|
10828
10426
|
}
|
|
@@ -10835,25 +10433,16 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10835
10433
|
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10836
10434
|
command: function () {
|
|
10837
10435
|
if (_this.isAllowToEditHistorical) {
|
|
10838
|
-
_this.sharedStateService.setHideField(true);
|
|
10839
|
-
_this.sharedStateService.setShowButton(false);
|
|
10840
|
-
_this.sharedStateService.setShowEditMode(true);
|
|
10841
10436
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10842
10437
|
if (_this.withSidebar) {
|
|
10843
10438
|
_this.isOnlyView.emit(false);
|
|
10844
10439
|
_this.isOnlyEdit.emit(true);
|
|
10845
|
-
_this.sharedStateService.setHideBtnAddForViewMode(false);
|
|
10846
10440
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10847
10441
|
relativeTo: _this.activatedRoute,
|
|
10848
10442
|
});
|
|
10849
|
-
_this.sharedStateService.setShouldReloadWindowOnlyEditMode(true);
|
|
10850
10443
|
}
|
|
10851
10444
|
else {
|
|
10852
|
-
|
|
10853
|
-
_this.sharedStateService.triggerActiveValidatorsOnEditModalOpen();
|
|
10854
|
-
});
|
|
10855
|
-
_this.sharedStateService.setSaveButton(true);
|
|
10856
|
-
_this.enableView.emit(dateChange);
|
|
10445
|
+
_this.enableEdit.emit(dateChange);
|
|
10857
10446
|
}
|
|
10858
10447
|
}
|
|
10859
10448
|
else {
|
|
@@ -10938,24 +10527,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10938
10527
|
this.lastRecord = payload[0];
|
|
10939
10528
|
}
|
|
10940
10529
|
};
|
|
10941
|
-
HistoricalPixAccountListComponent.prototype.unsubscribe = function () {
|
|
10942
|
-
if (this._subscription) {
|
|
10943
|
-
this._subscription.unsubscribe();
|
|
10944
|
-
}
|
|
10945
|
-
};
|
|
10946
|
-
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", {
|
|
10947
|
-
set: function (subject) {
|
|
10948
|
-
var _this = this;
|
|
10949
|
-
this.unsubscribe();
|
|
10950
|
-
if (subject) {
|
|
10951
|
-
this._subscription = subject.subscribe(function (value) {
|
|
10952
|
-
_this.sharedStateService.setHideField(value);
|
|
10953
|
-
});
|
|
10954
|
-
}
|
|
10955
|
-
},
|
|
10956
|
-
enumerable: true,
|
|
10957
|
-
configurable: true
|
|
10958
|
-
});
|
|
10959
10530
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10960
10531
|
get: function () {
|
|
10961
10532
|
return (this.permission["incluir"]);
|
|
@@ -11008,8 +10579,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
11008
10579
|
{ type: ChangeDetectorRef },
|
|
11009
10580
|
{ type: Router },
|
|
11010
10581
|
{ type: MessageService },
|
|
11011
|
-
{ type: HistoricalPixAccountListService }
|
|
11012
|
-
{ type: SharedStateService }
|
|
10582
|
+
{ type: HistoricalPixAccountListService }
|
|
11013
10583
|
]; };
|
|
11014
10584
|
__decorate([
|
|
11015
10585
|
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
@@ -11035,9 +10605,6 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
11035
10605
|
__decorate([
|
|
11036
10606
|
Input()
|
|
11037
10607
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
11038
|
-
__decorate([
|
|
11039
|
-
Input()
|
|
11040
|
-
], HistoricalPixAccountListComponent.prototype, "hideField", void 0);
|
|
11041
10608
|
__decorate([
|
|
11042
10609
|
Output()
|
|
11043
10610
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
@@ -11049,10 +10616,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
11049
10616
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|
|
11050
10617
|
__decorate([
|
|
11051
10618
|
Output()
|
|
11052
|
-
], HistoricalPixAccountListComponent.prototype, "
|
|
11053
|
-
__decorate([
|
|
11054
|
-
Input()
|
|
11055
|
-
], HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", null);
|
|
10619
|
+
], HistoricalPixAccountListComponent.prototype, "enableEdit", void 0);
|
|
11056
10620
|
__decorate([
|
|
11057
10621
|
Input()
|
|
11058
10622
|
], HistoricalPixAccountListComponent.prototype, "reloadList", null);
|
|
@@ -11102,5 +10666,5 @@ var HistoricalPixAccountListModule = /** @class */ (function () {
|
|
|
11102
10666
|
* Generated bundle index. Do not edit.
|
|
11103
10667
|
*/
|
|
11104
10668
|
|
|
11105
|
-
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,
|
|
10669
|
+
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 };
|
|
11106
10670
|
//# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map
|