@senior-gestao-pessoas/payroll-core 9.4.0-f9d3c09b-0079-4f7c-94cf-dd79338e7089 → 9.5.0-d4960af2-4da8-48bf-aac1-4d553cb625ef
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 +1192 -778
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +16 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
- package/components/historical-pix-account/historical-pix-account-base.d.ts +27 -0
- package/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.d.ts +8 -40
- package/components/historical-pix-account/historical-pix-account.component.d.ts +38 -8
- package/components/historical-pix-account/historical-pix-account.service.d.ts +1 -0
- package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +10 -1
- package/components/shared/index.d.ts +1 -0
- package/components/shared/shared-state.service.d.ts +14 -0
- package/components/utils/format-utils/format-utils.service.d.ts +30 -3
- package/esm2015/components/historical-pix-account/historical-pix-account-base.js +173 -0
- package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +29 -187
- package/esm2015/components/historical-pix-account/historical-pix-account.component.js +223 -20
- package/esm2015/components/historical-pix-account/historical-pix-account.module.js +5 -1
- package/esm2015/components/historical-pix-account/historical-pix-account.service.js +8 -1
- package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +42 -4
- package/esm2015/components/shared/index.js +2 -0
- package/esm2015/components/shared/shared-state.service.js +36 -0
- package/esm2015/components/utils/format-utils/format-utils.service.js +88 -5
- package/esm2015/public_api.js +2 -1
- package/esm2015/senior-gestao-pessoas-payroll-core.js +3 -2
- package/esm5/components/historical-pix-account/historical-pix-account-base.js +186 -0
- package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +53 -201
- package/esm5/components/historical-pix-account/historical-pix-account.component.js +265 -49
- package/esm5/components/historical-pix-account/historical-pix-account.module.js +5 -1
- package/esm5/components/historical-pix-account/historical-pix-account.service.js +8 -1
- package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +47 -4
- package/esm5/components/shared/index.js +2 -0
- package/esm5/components/shared/shared-state.service.js +37 -0
- package/esm5/components/utils/format-utils/format-utils.service.js +88 -5
- package/esm5/public_api.js +2 -1
- package/esm5/senior-gestao-pessoas-payroll-core.js +3 -2
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +851 -478
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +1188 -775
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/package.json +2 -32
- package/public_api.d.ts +1 -0
- package/senior-gestao-pessoas-payroll-core.d.ts +2 -1
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate, __assign, __spread, __awaiter, __generator, __read, __values } from 'tslib';
|
|
1
|
+
import { __decorate, __assign, __spread, __awaiter, __generator, __read, __values, __extends } 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,6 +36,7 @@ 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';
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* Created by Bruno.Curioletti on 30/05/2017.
|
|
@@ -9173,6 +9174,25 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9173
9174
|
}
|
|
9174
9175
|
return null;
|
|
9175
9176
|
};
|
|
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
|
+
};
|
|
9176
9196
|
/**
|
|
9177
9197
|
* Retorna o CNPJ formatado
|
|
9178
9198
|
* @param cnpj CNPJ
|
|
@@ -9188,6 +9208,28 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9188
9208
|
}
|
|
9189
9209
|
return null;
|
|
9190
9210
|
};
|
|
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
|
+
};
|
|
9191
9233
|
/**
|
|
9192
9234
|
* Retorna a mascara do CPF/CNPJ
|
|
9193
9235
|
* @param key Valores possíveis são CPF ou CNPJ
|
|
@@ -9202,6 +9244,24 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9202
9244
|
return "";
|
|
9203
9245
|
}
|
|
9204
9246
|
};
|
|
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
|
+
};
|
|
9205
9265
|
/**
|
|
9206
9266
|
* Metódo para formatar o número de telefone.
|
|
9207
9267
|
* @param telephoneNumber String contendo o número de telefone.
|
|
@@ -9233,6 +9293,13 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9233
9293
|
}
|
|
9234
9294
|
return tel;
|
|
9235
9295
|
};
|
|
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
|
+
};
|
|
9236
9303
|
/**
|
|
9237
9304
|
* Metódo para formatar o número de telefone de um campo Input.
|
|
9238
9305
|
* @param event Evento do Input do campo de telefone.
|
|
@@ -9246,640 +9313,1106 @@ var FormatUtilsService = /** @class */ (function () {
|
|
|
9246
9313
|
event.target.value = FormatUtilsService.getFormattedTelephoneNumber(telephoneNumber);
|
|
9247
9314
|
};
|
|
9248
9315
|
/**
|
|
9249
|
-
*
|
|
9250
|
-
* @param
|
|
9316
|
+
* Formata o campo de input de CPF em tempo real.
|
|
9317
|
+
* @param event Evento do input
|
|
9251
9318
|
*/
|
|
9252
|
-
FormatUtilsService.
|
|
9253
|
-
|
|
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
|
|
9330
|
+
*/
|
|
9331
|
+
FormatUtilsService.formatCnpjInputEvent = function (event) {
|
|
9332
|
+
var cnpj = event.target.value;
|
|
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);
|
|
9254
9338
|
};
|
|
9255
9339
|
return FormatUtilsService;
|
|
9256
9340
|
}());
|
|
9257
9341
|
|
|
9258
|
-
var
|
|
9259
|
-
function
|
|
9260
|
-
|
|
9261
|
-
this.
|
|
9262
|
-
this.
|
|
9263
|
-
this.
|
|
9264
|
-
this.
|
|
9265
|
-
this.
|
|
9266
|
-
this.
|
|
9267
|
-
this.
|
|
9268
|
-
this.isViewMode = false;
|
|
9269
|
-
this.withSideBar = true;
|
|
9270
|
-
this.defaultCpfNumber = null;
|
|
9271
|
-
this.listDataReciever = [];
|
|
9272
|
-
this.isViewModeActive = new EventEmitter();
|
|
9273
|
-
this.isEditModeActive = new EventEmitter();
|
|
9274
|
-
this.isDeleteModeActive = new EventEmitter();
|
|
9275
|
-
this.listFromApp = [];
|
|
9276
|
-
this.visibleChange = new EventEmitter();
|
|
9277
|
-
this.ngUnsubscribe = new Subject();
|
|
9278
|
-
this.orderBy = {
|
|
9279
|
-
field: "dateChange",
|
|
9280
|
-
direction: DirectionEnumeration.DESC,
|
|
9281
|
-
};
|
|
9282
|
-
this.pixAccountItemInput = {};
|
|
9283
|
-
this.totalRecords = 0;
|
|
9284
|
-
this.actionLabel = this.translateService.instant("hcm.payroll.entries_query_actions_total_title");
|
|
9285
|
-
this.loading = true;
|
|
9286
|
-
this.listData = [];
|
|
9287
|
-
this.listDataNoPage = [];
|
|
9288
|
-
this.cols = [
|
|
9289
|
-
{
|
|
9290
|
-
label: this.translateService.instant("hcm.payroll.employees_addition_pix_key_type"),
|
|
9291
|
-
field: "pixKeyType",
|
|
9292
|
-
},
|
|
9293
|
-
{
|
|
9294
|
-
label: this.translateService.instant("hcm.payroll.employees_addition_pix_key"),
|
|
9295
|
-
field: "pixKey",
|
|
9296
|
-
},
|
|
9297
|
-
{
|
|
9298
|
-
label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
9299
|
-
field: "percentage",
|
|
9300
|
-
},
|
|
9301
|
-
];
|
|
9302
|
-
this.actions = function (rowData, key) {
|
|
9303
|
-
if (rowData === void 0) { rowData = {}; }
|
|
9304
|
-
return [
|
|
9305
|
-
{
|
|
9306
|
-
visible: _this.isEditMode,
|
|
9307
|
-
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9308
|
-
command: function () {
|
|
9309
|
-
if (_this.isAllowToViewHistorical) {
|
|
9310
|
-
rowData["index"] = key;
|
|
9311
|
-
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9312
|
-
_this.visible = true;
|
|
9313
|
-
}
|
|
9314
|
-
else {
|
|
9315
|
-
_this.isViewModeActive.emit(true);
|
|
9316
|
-
}
|
|
9317
|
-
},
|
|
9318
|
-
},
|
|
9319
|
-
{
|
|
9320
|
-
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9321
|
-
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9322
|
-
command: function () {
|
|
9323
|
-
if (_this.isAllowToEditHistorical) {
|
|
9324
|
-
rowData["index"] = key;
|
|
9325
|
-
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9326
|
-
_this.visible = true;
|
|
9327
|
-
}
|
|
9328
|
-
else {
|
|
9329
|
-
_this.isEditModeActive.emit(true);
|
|
9330
|
-
if (_this.listFromApp.length == 0) {
|
|
9331
|
-
rowData["index"] = key;
|
|
9332
|
-
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9333
|
-
_this.visible = true;
|
|
9334
|
-
}
|
|
9335
|
-
}
|
|
9336
|
-
},
|
|
9337
|
-
},
|
|
9338
|
-
{
|
|
9339
|
-
visible: !_this.isEditMode,
|
|
9340
|
-
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9341
|
-
command: function () {
|
|
9342
|
-
if (_this.isAllowToDeleteHistorical) {
|
|
9343
|
-
_this.loading = true;
|
|
9344
|
-
_this.deleteAnnuityItem(key);
|
|
9345
|
-
}
|
|
9346
|
-
else {
|
|
9347
|
-
_this.isDeleteModeActive.emit(true);
|
|
9348
|
-
if (_this.listFromApp.length == 0) {
|
|
9349
|
-
_this.loading = true;
|
|
9350
|
-
_this.deleteAnnuityItem(key);
|
|
9351
|
-
}
|
|
9352
|
-
}
|
|
9353
|
-
},
|
|
9354
|
-
},
|
|
9355
|
-
];
|
|
9356
|
-
};
|
|
9357
|
-
this.createFormGroup();
|
|
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();
|
|
9358
9352
|
}
|
|
9359
|
-
|
|
9360
|
-
this.
|
|
9361
|
-
};
|
|
9362
|
-
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9363
|
-
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9364
|
-
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9365
|
-
}
|
|
9353
|
+
SharedStateService.prototype.setHideField = function (value) {
|
|
9354
|
+
this.hideFieldSubject.next(value);
|
|
9366
9355
|
};
|
|
9367
|
-
|
|
9368
|
-
this.
|
|
9369
|
-
historicalPixAccountList: this.formBuilder.control(null),
|
|
9370
|
-
});
|
|
9356
|
+
SharedStateService.prototype.setShowButton = function (value) {
|
|
9357
|
+
this.showButtonSubject.next(value);
|
|
9371
9358
|
};
|
|
9372
|
-
|
|
9373
|
-
this.
|
|
9374
|
-
this.ngUnsubscribe.complete();
|
|
9359
|
+
SharedStateService.prototype.setSaveButton = function (value) {
|
|
9360
|
+
this.saveButtonSubject.next(value);
|
|
9375
9361
|
};
|
|
9376
|
-
|
|
9377
|
-
this.
|
|
9362
|
+
SharedStateService.prototype.setShowEditMode = function (value) {
|
|
9363
|
+
this.showEditMode.next(value);
|
|
9378
9364
|
};
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9365
|
+
SharedStateService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SharedStateService_Factory() { return new SharedStateService(); }, token: SharedStateService, providedIn: "root" });
|
|
9366
|
+
SharedStateService = __decorate([
|
|
9367
|
+
Injectable({
|
|
9368
|
+
providedIn: 'root',
|
|
9369
|
+
})
|
|
9370
|
+
], SharedStateService);
|
|
9371
|
+
return SharedStateService;
|
|
9372
|
+
}());
|
|
9373
|
+
|
|
9374
|
+
var GenericValidator = /** @class */ (function () {
|
|
9375
|
+
function GenericValidator() {
|
|
9376
|
+
}
|
|
9377
|
+
/**
|
|
9378
|
+
* Valida o CEI (Cadastro específico de INSS) digitado.
|
|
9379
|
+
*/
|
|
9380
|
+
GenericValidator.isValidCei = function (control) {
|
|
9381
|
+
var cei = control.value;
|
|
9382
|
+
if (!cei)
|
|
9383
|
+
return null;
|
|
9384
|
+
else if (cei.length != 11)
|
|
9385
|
+
return null;
|
|
9386
|
+
var multiplicadorBase = "3298765432";
|
|
9387
|
+
var total = 0;
|
|
9388
|
+
var resto = 0;
|
|
9389
|
+
var multiplicando = 0;
|
|
9390
|
+
var multiplicador = 0;
|
|
9391
|
+
if (cei.length !== 11 ||
|
|
9392
|
+
cei === "00000000000" ||
|
|
9393
|
+
cei === "11111111111" ||
|
|
9394
|
+
cei === "22222222222" ||
|
|
9395
|
+
cei === "33333333333" ||
|
|
9396
|
+
cei === "44444444444" ||
|
|
9397
|
+
cei === "55555555555" ||
|
|
9398
|
+
cei === "66666666666" ||
|
|
9399
|
+
cei === "77777777777" ||
|
|
9400
|
+
cei === "88888888888" ||
|
|
9401
|
+
cei === "99999999999")
|
|
9402
|
+
return { invalidCei: true };
|
|
9399
9403
|
else {
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
+
for (var i = 0; i < 10; i++) {
|
|
9405
|
+
multiplicando = parseInt(cei.substring(i, i + 1), 10);
|
|
9406
|
+
multiplicador = parseInt(multiplicadorBase.substring(i, i + 1), 10);
|
|
9407
|
+
total += multiplicando * multiplicador;
|
|
9408
|
+
}
|
|
9409
|
+
resto = 11 - (total % 11);
|
|
9410
|
+
resto = resto === 10 || resto === 11 ? 0 : resto;
|
|
9411
|
+
var digito = parseInt("" + cei.charAt(10), 10);
|
|
9412
|
+
return resto === digito ? null : { invalidCei: true };
|
|
9404
9413
|
}
|
|
9405
|
-
this.loading = false;
|
|
9406
9414
|
};
|
|
9407
9415
|
/**
|
|
9408
|
-
*
|
|
9416
|
+
* Valida se o CPF é valido. Deve-se ser informado o cpf sem máscara.
|
|
9409
9417
|
*/
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
var index = $event && $event.index >= 0 ? $event.index : null;
|
|
9449
|
-
var newDataList = this.getHistoricalPixAccountList() ? this.getHistoricalPixAccountList() : [];
|
|
9450
|
-
if (index != null) {
|
|
9451
|
-
newDataList[index] = $event;
|
|
9452
|
-
delete $event.index;
|
|
9453
|
-
}
|
|
9454
|
-
else {
|
|
9455
|
-
if (isValid($event["customFields"]) && Object.keys($event["customFields"]).length) {
|
|
9456
|
-
var customValue = mountCustomToSave($event["customFields"]);
|
|
9457
|
-
$event["customFields"] = __spread(customValue);
|
|
9418
|
+
GenericValidator.isValidCpf = function (control) {
|
|
9419
|
+
var cpf = control.value;
|
|
9420
|
+
if (cpf) {
|
|
9421
|
+
var numbers = void 0, digits = void 0, sum = void 0, i = void 0, result = void 0, equalDigits = void 0;
|
|
9422
|
+
equalDigits = 1;
|
|
9423
|
+
if (cpf.length < 11) {
|
|
9424
|
+
return null;
|
|
9425
|
+
}
|
|
9426
|
+
for (i = 0; i < cpf.length - 1; i++) {
|
|
9427
|
+
if (cpf.charAt(i) !== cpf.charAt(i + 1)) {
|
|
9428
|
+
equalDigits = 0;
|
|
9429
|
+
break;
|
|
9430
|
+
}
|
|
9431
|
+
}
|
|
9432
|
+
if (!equalDigits) {
|
|
9433
|
+
numbers = cpf.substring(0, 9);
|
|
9434
|
+
digits = cpf.substring(9);
|
|
9435
|
+
sum = 0;
|
|
9436
|
+
for (i = 10; i > 1; i--) {
|
|
9437
|
+
sum += numbers.charAt(10 - i) * i;
|
|
9438
|
+
}
|
|
9439
|
+
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9440
|
+
if (result !== Number(digits.charAt(0))) {
|
|
9441
|
+
return { cpfNotValid: true };
|
|
9442
|
+
}
|
|
9443
|
+
numbers = cpf.substring(0, 10);
|
|
9444
|
+
sum = 0;
|
|
9445
|
+
for (i = 11; i > 1; i--) {
|
|
9446
|
+
sum += numbers.charAt(11 - i) * i;
|
|
9447
|
+
}
|
|
9448
|
+
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9449
|
+
if (result !== Number(digits.charAt(1))) {
|
|
9450
|
+
return { cpfNotValid: true };
|
|
9451
|
+
}
|
|
9452
|
+
return null;
|
|
9453
|
+
}
|
|
9454
|
+
else {
|
|
9455
|
+
return { cpfNotValid: true };
|
|
9458
9456
|
}
|
|
9459
|
-
$event["dateChange"] = this.dateChange;
|
|
9460
|
-
newDataList.push($event);
|
|
9461
9457
|
}
|
|
9462
|
-
|
|
9463
|
-
this.verifyTotalPercentage();
|
|
9464
|
-
this.onLazyLoad({ first: this.getNumberPageByIndex(index, newDataList) });
|
|
9458
|
+
return null;
|
|
9465
9459
|
};
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9460
|
+
/**
|
|
9461
|
+
* Valida se o CNPJ é valido. Deve-se ser informado o cpf sem máscara.
|
|
9462
|
+
*/
|
|
9463
|
+
GenericValidator.isValidCnpj = function (control) {
|
|
9464
|
+
var cnpj = control.value;
|
|
9465
|
+
if (cnpj) {
|
|
9466
|
+
var size = void 0, numbers = void 0, digits = void 0, sum = void 0, pos = void 0, result = void 0;
|
|
9467
|
+
cnpj = cnpj.replace(/[^\d]+/g, '');
|
|
9468
|
+
if (cnpj.length !== 14) {
|
|
9469
|
+
return null;
|
|
9470
|
+
}
|
|
9471
|
+
// Elimina CNPJs invalidos conhecidos
|
|
9472
|
+
if (cnpj === '00000000000000' ||
|
|
9473
|
+
cnpj === '11111111111111' ||
|
|
9474
|
+
cnpj === '22222222222222' ||
|
|
9475
|
+
cnpj === '33333333333333' ||
|
|
9476
|
+
cnpj === '44444444444444' ||
|
|
9477
|
+
cnpj === '55555555555555' ||
|
|
9478
|
+
cnpj === '66666666666666' ||
|
|
9479
|
+
cnpj === '77777777777777' ||
|
|
9480
|
+
cnpj === '88888888888888' ||
|
|
9481
|
+
cnpj === '99999999999999') {
|
|
9482
|
+
return { cnpjNotValid: true };
|
|
9483
|
+
}
|
|
9484
|
+
// Valida DVs
|
|
9485
|
+
size = cnpj.length - 2;
|
|
9486
|
+
numbers = cnpj.substring(0, size);
|
|
9487
|
+
digits = cnpj.substring(size);
|
|
9488
|
+
sum = 0;
|
|
9489
|
+
pos = size - 7;
|
|
9490
|
+
for (var i = size; i >= 1; i--) {
|
|
9491
|
+
sum += numbers.charAt(size - i) * pos--;
|
|
9492
|
+
if (pos < 2) {
|
|
9493
|
+
pos = 9;
|
|
9494
|
+
}
|
|
9495
|
+
}
|
|
9496
|
+
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9497
|
+
if (result !== Number(digits.charAt(0))) {
|
|
9498
|
+
return { cnpjNotValid: true };
|
|
9499
|
+
}
|
|
9500
|
+
size = size + 1;
|
|
9501
|
+
numbers = cnpj.substring(0, size);
|
|
9502
|
+
sum = 0;
|
|
9503
|
+
pos = size - 7;
|
|
9504
|
+
for (var i = size; i >= 1; i--) {
|
|
9505
|
+
sum += numbers.charAt(size - i) * pos--;
|
|
9506
|
+
if (pos < 2) {
|
|
9507
|
+
pos = 9;
|
|
9508
|
+
}
|
|
9509
|
+
}
|
|
9510
|
+
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9511
|
+
if (result !== Number(digits.charAt(1))) {
|
|
9512
|
+
return { cnpjNotValid: true };
|
|
9513
|
+
}
|
|
9514
|
+
return null;
|
|
9471
9515
|
}
|
|
9472
9516
|
return null;
|
|
9473
9517
|
};
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
var
|
|
9481
|
-
|
|
9482
|
-
}
|
|
9483
|
-
|
|
9484
|
-
|
|
9518
|
+
/**
|
|
9519
|
+
* Válida o número de telefone da chave PIX.
|
|
9520
|
+
*/
|
|
9521
|
+
GenericValidator.isValidPhoneNumber = function (control) {
|
|
9522
|
+
var cellPhoneKey = control.value || '';
|
|
9523
|
+
cellPhoneKey = cellPhoneKey.replace(/[\s()-]/g, '');
|
|
9524
|
+
var regexNumberTelephone = /^[1-9][\d]{1,2}\d{8,10}$/;
|
|
9525
|
+
var isValidNumberTelephone = regexNumberTelephone.test(cellPhoneKey);
|
|
9526
|
+
return isValidNumberTelephone ? null : { invalidPhoneNumber: true };
|
|
9527
|
+
};
|
|
9528
|
+
/**
|
|
9529
|
+
* Valida o email da chave PIX.
|
|
9530
|
+
*/
|
|
9531
|
+
GenericValidator.isValidEmail = function (control) {
|
|
9532
|
+
var emailKey = control.value;
|
|
9533
|
+
var regexValidEmail = /^[\w-\.]+@[\w-]+(\.[\w-]{2,4}){1,2}$/;
|
|
9534
|
+
var isValidEmail = regexValidEmail.test(emailKey);
|
|
9535
|
+
return isValidEmail ? null : { invalidEmail: true };
|
|
9536
|
+
};
|
|
9537
|
+
return GenericValidator;
|
|
9538
|
+
}());
|
|
9539
|
+
|
|
9540
|
+
var HistoricakPixAccountBase = /** @class */ (function () {
|
|
9541
|
+
function HistoricakPixAccountBase(formBuilder) {
|
|
9542
|
+
this._paramsForm = new FormGroup({});
|
|
9543
|
+
this._defaultCpfNumber = null;
|
|
9544
|
+
this.initialValidatorOfPercentage = [Validators.required, Validators.min(0.01)];
|
|
9545
|
+
this.pixAccountList = [];
|
|
9546
|
+
this.maxValuePercentage = 100.0;
|
|
9547
|
+
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9548
|
+
this.formBuilder = formBuilder;
|
|
9549
|
+
this.createFormGroupBase();
|
|
9550
|
+
}
|
|
9551
|
+
HistoricakPixAccountBase.prototype.phoneMask = function (event) {
|
|
9552
|
+
FormatUtilsService.formatTelephoneInputEvent(event);
|
|
9553
|
+
};
|
|
9554
|
+
HistoricakPixAccountBase.prototype.cpfMask = function (event) {
|
|
9555
|
+
FormatUtilsService.formatCpfInputEvent(event);
|
|
9556
|
+
};
|
|
9557
|
+
HistoricakPixAccountBase.prototype.cnpjMask = function (event) {
|
|
9558
|
+
FormatUtilsService.formatCnpjInputEvent(event);
|
|
9559
|
+
};
|
|
9560
|
+
HistoricakPixAccountBase.prototype.onChangePixKeyType = function (item, form) {
|
|
9561
|
+
if (!item || !item.key)
|
|
9562
|
+
return;
|
|
9563
|
+
this.pixKeyType = item.key;
|
|
9564
|
+
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9565
|
+
? form
|
|
9566
|
+
: this.pixAccountFormGroup;
|
|
9567
|
+
this.isShowPixKeyFieldValidatorMessage = true;
|
|
9568
|
+
var pixKeyControl = targetForm.get("pixKey");
|
|
9569
|
+
if (pixKeyControl) {
|
|
9570
|
+
pixKeyControl.reset();
|
|
9571
|
+
}
|
|
9572
|
+
this.setPixKeyValidators(true, targetForm);
|
|
9573
|
+
if (item.key === "CPF") {
|
|
9574
|
+
this.setDefaultCpfPixKey(targetForm);
|
|
9575
|
+
}
|
|
9576
|
+
};
|
|
9577
|
+
HistoricakPixAccountBase.prototype.onClearPixKeyType = function (form) {
|
|
9578
|
+
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9579
|
+
? form
|
|
9580
|
+
: this.pixAccountFormGroup;
|
|
9581
|
+
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9582
|
+
if (targetForm.get("pixKey")) {
|
|
9583
|
+
targetForm.get("pixKey").reset();
|
|
9584
|
+
}
|
|
9585
|
+
};
|
|
9586
|
+
HistoricakPixAccountBase.prototype.setDefaultCpfPixKey = function (form) {
|
|
9587
|
+
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9588
|
+
? form
|
|
9589
|
+
: this.pixAccountFormGroup;
|
|
9590
|
+
if (this._defaultCpfNumber) {
|
|
9591
|
+
if (targetForm.get("pixKey")) {
|
|
9592
|
+
targetForm.get("pixKey").setValue(this._defaultCpfNumber);
|
|
9593
|
+
}
|
|
9485
9594
|
}
|
|
9486
9595
|
else {
|
|
9487
|
-
|
|
9596
|
+
var sheetDocument = this._paramsForm.get("sheetDocument");
|
|
9597
|
+
if (sheetDocument && sheetDocument.get("cpfNumber")) {
|
|
9598
|
+
var cpf = sheetDocument.get("cpfNumber").value;
|
|
9599
|
+
if (cpf && targetForm.get("pixKey")) {
|
|
9600
|
+
targetForm.get("pixKey").setValue(cpf);
|
|
9601
|
+
}
|
|
9602
|
+
}
|
|
9488
9603
|
}
|
|
9489
9604
|
};
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
}
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
var
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
this.listData.filter(function (row) { return row["dateChange"] = _this._dateChange; });
|
|
9605
|
+
HistoricakPixAccountBase.prototype.createFormGroupBase = function () {
|
|
9606
|
+
this.pixAccountFormGroup = this.formBuilder.group({
|
|
9607
|
+
id: this.formBuilder.control(null),
|
|
9608
|
+
index: this.formBuilder.control(null),
|
|
9609
|
+
employee: this.formBuilder.control({ value: { tableId: null }, disabled: true }),
|
|
9610
|
+
dateChange: this.formBuilder.control(null),
|
|
9611
|
+
pixKeyType: this.formBuilder.control(null, Validators.required),
|
|
9612
|
+
pixKey: this.formBuilder.control(null),
|
|
9613
|
+
percentage: this.formBuilder.control(null, Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9614
|
+
Validators.max(this.maxValuePercentage),
|
|
9615
|
+
]))),
|
|
9616
|
+
externalId: this.formBuilder.control(null),
|
|
9617
|
+
customFields: this.formBuilder.control(null),
|
|
9618
|
+
});
|
|
9619
|
+
};
|
|
9620
|
+
HistoricakPixAccountBase.prototype.setValidatorsAccordingList = function (pixAccountList, index, isEditMode, form) {
|
|
9621
|
+
if (index === void 0) { index = null; }
|
|
9622
|
+
if (isEditMode === void 0) { isEditMode = true; }
|
|
9623
|
+
var targetForm = (typeof form !== 'undefined' && form !== null)
|
|
9624
|
+
? form
|
|
9625
|
+
: this.pixAccountFormGroup;
|
|
9626
|
+
this.pixAccountList = (pixAccountList && pixAccountList.length > 0)
|
|
9627
|
+
? [].concat(pixAccountList)
|
|
9628
|
+
: [];
|
|
9629
|
+
var percentageIncluded = [];
|
|
9630
|
+
for (var i = 0; i < this.pixAccountList.length; i++) {
|
|
9631
|
+
var field = this.pixAccountList[i];
|
|
9632
|
+
if (field && field.percentage && i !== index) {
|
|
9633
|
+
percentageIncluded.push(field.percentage);
|
|
9520
9634
|
}
|
|
9521
|
-
}
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9635
|
+
}
|
|
9636
|
+
this.beforeSetPixKeyTypeValidator(targetForm);
|
|
9637
|
+
this.setPixKeyValidators(isEditMode, targetForm);
|
|
9638
|
+
this.validatePercentageValid(percentageIncluded, targetForm);
|
|
9639
|
+
};
|
|
9640
|
+
HistoricakPixAccountBase.prototype.beforeSetPixKeyTypeValidator = function (form) {
|
|
9641
|
+
var control = form.get("pixKeyType");
|
|
9642
|
+
if (this.pixAccountList && this.pixAccountList.length) {
|
|
9643
|
+
control.setValidators(Validators.compose([
|
|
9644
|
+
Validators.required,
|
|
9645
|
+
this.validateDuplicatePixKeyTypeBankAccount(this.pixAccountList),
|
|
9646
|
+
]));
|
|
9647
|
+
}
|
|
9648
|
+
else {
|
|
9649
|
+
control.setValidators(Validators.required);
|
|
9650
|
+
}
|
|
9651
|
+
control.updateValueAndValidity();
|
|
9652
|
+
};
|
|
9653
|
+
HistoricakPixAccountBase.prototype.setPixKeyValidators = function (isEditMode, form) {
|
|
9654
|
+
var pixKey = form.get("pixKey");
|
|
9655
|
+
switch (this.pixKeyType) {
|
|
9656
|
+
case "TELEPHONE":
|
|
9657
|
+
pixKey.setValidators(Validators.compose([Validators.required, GenericValidator.isValidPhoneNumber]));
|
|
9658
|
+
break;
|
|
9659
|
+
case "EMAIL":
|
|
9660
|
+
pixKey.setValidators(Validators.compose([Validators.required, GenericValidator.isValidEmail]));
|
|
9661
|
+
break;
|
|
9662
|
+
case "CPF":
|
|
9663
|
+
pixKey.setValidators(Validators.compose([Validators.required, GenericValidator.isValidCpf]));
|
|
9664
|
+
break;
|
|
9665
|
+
case "CNPJ":
|
|
9666
|
+
pixKey.setValidators(Validators.compose([Validators.required, GenericValidator.isValidCnpj]));
|
|
9667
|
+
break;
|
|
9668
|
+
case "RANDOM_KEY":
|
|
9669
|
+
pixKey.setValidators(Validators.required);
|
|
9670
|
+
break;
|
|
9671
|
+
default:
|
|
9672
|
+
pixKey.clearValidators();
|
|
9673
|
+
}
|
|
9674
|
+
if (isEditMode) {
|
|
9675
|
+
pixKey.enable();
|
|
9676
|
+
}
|
|
9677
|
+
pixKey.updateValueAndValidity();
|
|
9678
|
+
};
|
|
9679
|
+
HistoricakPixAccountBase.prototype.validatePercentageValid = function (listValue, form) {
|
|
9680
|
+
var percentage = form.get("percentage");
|
|
9681
|
+
this.maxValuePercentage = listValue.reduce(function (acc, val) { return acc - val; }, 100.0);
|
|
9682
|
+
percentage.setValidators(Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9683
|
+
Validators.max(this.maxValuePercentage),
|
|
9684
|
+
])));
|
|
9685
|
+
percentage.updateValueAndValidity();
|
|
9686
|
+
};
|
|
9687
|
+
HistoricakPixAccountBase.prototype.validateDuplicatePixKeyTypeBankAccount = function (listCompare) {
|
|
9688
|
+
return function (control) {
|
|
9689
|
+
var value = control.value;
|
|
9690
|
+
var isDuplicate = listCompare.some(function (field) {
|
|
9691
|
+
return value &&
|
|
9692
|
+
field.pixKeyType.key === "BANK_ACCOUNT" &&
|
|
9693
|
+
value.key === "BANK_ACCOUNT";
|
|
9694
|
+
});
|
|
9695
|
+
return isDuplicate ? { pixKeyTypeBankAccountDuplicate: true } : null;
|
|
9696
|
+
};
|
|
9697
|
+
};
|
|
9698
|
+
Object.defineProperty(HistoricakPixAccountBase.prototype, "paramsForm", {
|
|
9526
9699
|
get: function () {
|
|
9527
|
-
return this.
|
|
9700
|
+
return this._paramsForm;
|
|
9528
9701
|
},
|
|
9529
9702
|
set: function (value) {
|
|
9530
|
-
|
|
9531
|
-
this._displayDateChange = value;
|
|
9532
|
-
if (this._displayDateChange) {
|
|
9533
|
-
this.listData.filter(function (row) { return row["displayDateChange"] = _this._displayDateChange; });
|
|
9534
|
-
}
|
|
9535
|
-
},
|
|
9536
|
-
enumerable: true,
|
|
9537
|
-
configurable: true
|
|
9538
|
-
});
|
|
9539
|
-
Object.defineProperty(HistoricalPixAccountComponent.prototype, "addListData", {
|
|
9540
|
-
set: function (list) {
|
|
9541
|
-
this.loading = true;
|
|
9542
|
-
this.historicalPixAccountList.get("historicalPixAccountList").patchValue(list);
|
|
9543
|
-
this.verifyTotalPercentage();
|
|
9544
|
-
this.onLazyLoad();
|
|
9703
|
+
this._paramsForm = value;
|
|
9545
9704
|
},
|
|
9546
9705
|
enumerable: true,
|
|
9547
9706
|
configurable: true
|
|
9548
9707
|
});
|
|
9549
|
-
Object.defineProperty(
|
|
9708
|
+
Object.defineProperty(HistoricakPixAccountBase.prototype, "defaultCpfNumber", {
|
|
9550
9709
|
get: function () {
|
|
9551
|
-
return this.
|
|
9710
|
+
return this._defaultCpfNumber;
|
|
9552
9711
|
},
|
|
9553
9712
|
set: function (value) {
|
|
9554
|
-
this.
|
|
9555
|
-
this.visibleChange.emit(this.visible);
|
|
9713
|
+
this._defaultCpfNumber = value;
|
|
9556
9714
|
},
|
|
9557
9715
|
enumerable: true,
|
|
9558
9716
|
configurable: true
|
|
9559
9717
|
});
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
return FormatUtilsService.getFormattedCnpj(cnpj);
|
|
9718
|
+
return HistoricakPixAccountBase;
|
|
9719
|
+
}());
|
|
9720
|
+
|
|
9721
|
+
var HistoricalPixAccountService = /** @class */ (function () {
|
|
9722
|
+
function HistoricalPixAccountService(http) {
|
|
9723
|
+
this.http = http;
|
|
9724
|
+
}
|
|
9725
|
+
HistoricalPixAccountService.prototype.query = function (path, body, service) {
|
|
9726
|
+
if (service === void 0) { service = ServiceType.PAYROLL; }
|
|
9727
|
+
return this.http.query(path, body, service);
|
|
9571
9728
|
};
|
|
9572
|
-
|
|
9573
|
-
|
|
9729
|
+
HistoricalPixAccountService.prototype.enumQuery = function () {
|
|
9730
|
+
var path = 'enumQuery';
|
|
9731
|
+
var body = {
|
|
9732
|
+
names: ['PixKeyType']
|
|
9733
|
+
};
|
|
9734
|
+
return this.http.query(path, body, ServiceType.PAYROLL);
|
|
9574
9735
|
};
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
return (this.permission["incluir"]);
|
|
9578
|
-
},
|
|
9579
|
-
enumerable: true,
|
|
9580
|
-
configurable: true
|
|
9581
|
-
});
|
|
9582
|
-
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
9583
|
-
get: function () {
|
|
9584
|
-
return (this.permission["excluir"]);
|
|
9585
|
-
},
|
|
9586
|
-
enumerable: true,
|
|
9587
|
-
configurable: true
|
|
9588
|
-
});
|
|
9589
|
-
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
9590
|
-
get: function () {
|
|
9591
|
-
return (this.permission["editar"]);
|
|
9592
|
-
},
|
|
9593
|
-
enumerable: true,
|
|
9594
|
-
configurable: true
|
|
9595
|
-
});
|
|
9596
|
-
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
9597
|
-
get: function () {
|
|
9598
|
-
return (this.permission["visualizar"]);
|
|
9599
|
-
},
|
|
9600
|
-
enumerable: true,
|
|
9601
|
-
configurable: true
|
|
9602
|
-
});
|
|
9603
|
-
HistoricalPixAccountComponent.ctorParameters = function () { return [
|
|
9604
|
-
{ type: TranslateService },
|
|
9605
|
-
{ type: ChangeDetectorRef },
|
|
9606
|
-
{ type: FormBuilder },
|
|
9607
|
-
{ type: MessageService }
|
|
9736
|
+
HistoricalPixAccountService.ctorParameters = function () { return [
|
|
9737
|
+
{ type: HttpClientService }
|
|
9608
9738
|
]; };
|
|
9609
|
-
__decorate([
|
|
9610
|
-
|
|
9611
|
-
],
|
|
9612
|
-
|
|
9613
|
-
Input()
|
|
9614
|
-
], HistoricalPixAccountComponent.prototype, "formGroup", void 0);
|
|
9615
|
-
__decorate([
|
|
9616
|
-
Input()
|
|
9617
|
-
], HistoricalPixAccountComponent.prototype, "fieldFormGroup", void 0);
|
|
9618
|
-
__decorate([
|
|
9619
|
-
Input()
|
|
9620
|
-
], HistoricalPixAccountComponent.prototype, "_dateChange", void 0);
|
|
9621
|
-
__decorate([
|
|
9622
|
-
Input()
|
|
9623
|
-
], HistoricalPixAccountComponent.prototype, "_displayDateChange", void 0);
|
|
9624
|
-
__decorate([
|
|
9625
|
-
Input()
|
|
9626
|
-
], HistoricalPixAccountComponent.prototype, "recordByRow", void 0);
|
|
9627
|
-
__decorate([
|
|
9628
|
-
Input()
|
|
9629
|
-
], HistoricalPixAccountComponent.prototype, "showDateChange", void 0);
|
|
9630
|
-
__decorate([
|
|
9631
|
-
Input()
|
|
9632
|
-
], HistoricalPixAccountComponent.prototype, "msgTooltipAdd", void 0);
|
|
9633
|
-
__decorate([
|
|
9634
|
-
Input()
|
|
9635
|
-
], HistoricalPixAccountComponent.prototype, "isEditMode", void 0);
|
|
9636
|
-
__decorate([
|
|
9637
|
-
Input()
|
|
9638
|
-
], HistoricalPixAccountComponent.prototype, "isViewMode", void 0);
|
|
9639
|
-
__decorate([
|
|
9640
|
-
Input()
|
|
9641
|
-
], HistoricalPixAccountComponent.prototype, "currency", void 0);
|
|
9642
|
-
__decorate([
|
|
9643
|
-
Input()
|
|
9644
|
-
], HistoricalPixAccountComponent.prototype, "customEntity", void 0);
|
|
9645
|
-
__decorate([
|
|
9646
|
-
Input()
|
|
9647
|
-
], HistoricalPixAccountComponent.prototype, "customService", void 0);
|
|
9648
|
-
__decorate([
|
|
9649
|
-
Input()
|
|
9650
|
-
], HistoricalPixAccountComponent.prototype, "withSideBar", void 0);
|
|
9651
|
-
__decorate([
|
|
9652
|
-
Input()
|
|
9653
|
-
], HistoricalPixAccountComponent.prototype, "paramsForm", void 0);
|
|
9654
|
-
__decorate([
|
|
9655
|
-
Input()
|
|
9656
|
-
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", void 0);
|
|
9657
|
-
__decorate([
|
|
9658
|
-
Input()
|
|
9659
|
-
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
9660
|
-
__decorate([
|
|
9661
|
-
Input()
|
|
9662
|
-
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
9663
|
-
__decorate([
|
|
9664
|
-
Output()
|
|
9665
|
-
], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);
|
|
9666
|
-
__decorate([
|
|
9667
|
-
Output()
|
|
9668
|
-
], HistoricalPixAccountComponent.prototype, "isEditModeActive", void 0);
|
|
9669
|
-
__decorate([
|
|
9670
|
-
Output()
|
|
9671
|
-
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
9672
|
-
__decorate([
|
|
9673
|
-
Input()
|
|
9674
|
-
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
9675
|
-
__decorate([
|
|
9676
|
-
Input()
|
|
9677
|
-
], HistoricalPixAccountComponent.prototype, "displayDateChange", null);
|
|
9678
|
-
__decorate([
|
|
9679
|
-
Input()
|
|
9680
|
-
], HistoricalPixAccountComponent.prototype, "addListData", null);
|
|
9681
|
-
__decorate([
|
|
9682
|
-
Input()
|
|
9683
|
-
], HistoricalPixAccountComponent.prototype, "visible", null);
|
|
9684
|
-
HistoricalPixAccountComponent = __decorate([
|
|
9685
|
-
Component({
|
|
9686
|
-
// tslint:disable-next-line:component-selector
|
|
9687
|
-
selector: "c-historical-pix-account",
|
|
9688
|
-
template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div class=\"ui-g-12\">\n <p-table\n id=\"table-annuity\"\n [value]=\"listData\"\n [columns]=\"cols\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [sortMode]=\"'multiple'\"\n *sLoadingState=\"loading\"\n [rows]=\"recordByRow\"\n dataKey=\"id\">\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-s'\">\n <col [ngClass]=\"'col-action'\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th\n [pSortableColumn]=\"'pixKeyType'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\" id=\"table-0\">\n <span\n id=\"table-annuity-s-0\">{{ 'hcm.payroll.employees_addition_pix_key_type' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'pixKey'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.employees_addition_pix_key' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'percentage'\"\n [pTooltip]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.historical_pix_account_label_percentage' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"></p-sortIcon>\n </div>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <td *ngSwitchCase=\"'TELEPHONE'\"\n [pTooltip]=\"getFormattedTelephoneNumber(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedTelephoneNumber(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CPF'\"\n [pTooltip]=\"getFormattedCpf(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCpf(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchCase=\"'CNPJ'\"\n [pTooltip]=\"getFormattedCnpj(rowData?.pixKey)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n </td>\n <td *ngSwitchDefault\n [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKey }}</span>\n </td>\n </ng-container>\n <td [pTooltip]=\"getFormattedPercentage(rowData?.percentage)\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ getFormattedPercentage(rowData?.percentage) }}</span>\n </td>\n <td id=\"col-actions-{{key}}\" class=\"col-actions \"\n *ngIf=\"actions && actions(rowData, key)?.length\">\n <s-button id=\"table-admission-btn-actions-{{key}}\"\n *ngIf=\"actions(rowData, key).length > 1\" [label]=\"actionLabel\"\n priority=\"default\" [model]=\"scopedActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"table-admission-btn-action-{{key}}\"\n *ngIf=\"actions(rowData, key).length <= 1\"\n [label]=\"scopedActions(rowData, key)[0].label\"\n priority=\"default\"\n (click)=\"scopedActions(rowData, key)[0].command()\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length +2\">\n {{'hcm.payroll.admission_empty_message'|translate}}\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span *ngIf=\"totalRecords\">{{recordsMessage}}</span>\n </ng-template>\n </p-table>\n</div>\n",
|
|
9689
|
-
styles: [".refresh{width:100%!important}#table-annuity .col-default-s{width:10%}#table-annuity .col-default-m{width:12%}#table-annuity .col-default-l{width:16%}#table-annuity .col-action{width:10%}#table-annuity .icon-warning{text-align:center!important;color:#ff6d00c7!important}@media screen and (max-width:612px){#table-annuity .col-default-1,#table-annuity .col-default-2{width:16%}#table-annuity .col-default-3{width:26%}#table-annuity .col-icon{width:10%}#table-annuity .col-action{width:27%}}#main{display:-webkit-box;display:flex;height:100%;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}#main form{height:100%}#main .footer{border-top:1px solid #ccc;padding-top:15px;margin-top:15px;flex-shrink:0;margin-bottom:-18px}#main .footer-s-border{padding-left:7px;flex-shrink:0;margin-bottom:-18px}"]
|
|
9690
|
-
})
|
|
9691
|
-
], HistoricalPixAccountComponent);
|
|
9692
|
-
return HistoricalPixAccountComponent;
|
|
9739
|
+
HistoricalPixAccountService = __decorate([
|
|
9740
|
+
Injectable()
|
|
9741
|
+
], HistoricalPixAccountService);
|
|
9742
|
+
return HistoricalPixAccountService;
|
|
9693
9743
|
}());
|
|
9694
9744
|
|
|
9695
|
-
var
|
|
9696
|
-
|
|
9745
|
+
var HistoricalPixAccountComponent = /** @class */ (function (_super) {
|
|
9746
|
+
__extends(HistoricalPixAccountComponent, _super);
|
|
9747
|
+
function HistoricalPixAccountComponent(translateService, cd, formBuilder, sharedStateService, service) {
|
|
9748
|
+
var _this = _super.call(this, formBuilder) || this;
|
|
9749
|
+
_this.translateService = translateService;
|
|
9750
|
+
_this.cd = cd;
|
|
9751
|
+
_this.sharedStateService = sharedStateService;
|
|
9752
|
+
_this.service = service;
|
|
9753
|
+
_this.recordByRow = 1;
|
|
9754
|
+
_this.showDateChange = false;
|
|
9755
|
+
_this.isEditMode = false;
|
|
9756
|
+
_this.isViewMode = false;
|
|
9757
|
+
_this.withSideBar = true;
|
|
9758
|
+
_this.listDataReciever = [];
|
|
9759
|
+
_this.addExistentHistoricData = [];
|
|
9760
|
+
_this.getListPixAccount = [];
|
|
9761
|
+
_this.isEditModeForSave = false;
|
|
9762
|
+
_this.isViewModeActive = new EventEmitter();
|
|
9763
|
+
_this.isEditModeActive = new EventEmitter();
|
|
9764
|
+
_this.isDeleteModeActive = new EventEmitter();
|
|
9765
|
+
_this.isValidChangeForm = new EventEmitter();
|
|
9766
|
+
_this.listFromApp = [];
|
|
9767
|
+
_this.visibleChange = new EventEmitter();
|
|
9768
|
+
_this.ngUnsubscribe = new Subject();
|
|
9769
|
+
_this.orderBy = {
|
|
9770
|
+
field: "dateChange",
|
|
9771
|
+
direction: DirectionEnumeration.DESC,
|
|
9772
|
+
};
|
|
9773
|
+
_this.pixAccountItemInput = {};
|
|
9774
|
+
_this.totalRecords = 0;
|
|
9775
|
+
_this.actionLabel = _this.translateService.instant("hcm.payroll.entries_query_actions_total_title");
|
|
9776
|
+
_this.loading = true;
|
|
9777
|
+
_this.listData = [];
|
|
9778
|
+
_this.listDataNoPage = [];
|
|
9779
|
+
_this.showButtonView = true;
|
|
9780
|
+
_this.showEditMode = false;
|
|
9781
|
+
_this.hasRecordsPix = true;
|
|
9782
|
+
_this.maxValuePercentage = 100.00;
|
|
9783
|
+
_this.hideFields = _this.sharedStateService.hideField$;
|
|
9784
|
+
_this.suggestions = [];
|
|
9785
|
+
_this.formGroupByRow = {};
|
|
9786
|
+
_this.cols = [
|
|
9787
|
+
{
|
|
9788
|
+
label: _this.translateService.instant("hcm.payroll.employees_addition_pix_key_type"),
|
|
9789
|
+
field: "pixKeyType",
|
|
9790
|
+
orderBy: 'pixKeyType.key',
|
|
9791
|
+
},
|
|
9792
|
+
{
|
|
9793
|
+
label: _this.translateService.instant("hcm.payroll.employees_addition_pix_key"),
|
|
9794
|
+
field: "pixKey",
|
|
9795
|
+
orderBy: 'pixKey',
|
|
9796
|
+
},
|
|
9797
|
+
{
|
|
9798
|
+
label: _this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
|
|
9799
|
+
field: "percentage",
|
|
9800
|
+
orderBy: 'percentage',
|
|
9801
|
+
},
|
|
9802
|
+
{
|
|
9803
|
+
label: _this.translateService.instant("hcm.payroll.movimentation_generic_action"),
|
|
9804
|
+
field: "actions",
|
|
9805
|
+
orderBy: null,
|
|
9806
|
+
}
|
|
9807
|
+
];
|
|
9808
|
+
_this.actions = function (rowData, key) {
|
|
9809
|
+
if (rowData === void 0) { rowData = {}; }
|
|
9810
|
+
return [
|
|
9811
|
+
{
|
|
9812
|
+
visible: _this.isEditMode,
|
|
9813
|
+
label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
9814
|
+
command: function () {
|
|
9815
|
+
if (_this.isAllowToViewHistorical) {
|
|
9816
|
+
rowData["index"] = key;
|
|
9817
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
|
|
9818
|
+
_this.visible = true;
|
|
9819
|
+
}
|
|
9820
|
+
else {
|
|
9821
|
+
_this.isViewModeActive.emit(true);
|
|
9822
|
+
}
|
|
9823
|
+
},
|
|
9824
|
+
},
|
|
9825
|
+
{
|
|
9826
|
+
visible: !!(!_this.isEditMode && _this.withSideBar),
|
|
9827
|
+
label: _this.translateService.instant("hcm.payroll.edit"),
|
|
9828
|
+
command: function () {
|
|
9829
|
+
if (_this.isAllowToEditHistorical) {
|
|
9830
|
+
rowData["index"] = key;
|
|
9831
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9832
|
+
_this.visible = true;
|
|
9833
|
+
}
|
|
9834
|
+
else {
|
|
9835
|
+
_this.isEditModeActive.emit(true);
|
|
9836
|
+
if (_this.listFromApp.length == 0) {
|
|
9837
|
+
rowData["index"] = key;
|
|
9838
|
+
_this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
|
|
9839
|
+
_this.visible = true;
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
},
|
|
9843
|
+
},
|
|
9844
|
+
{
|
|
9845
|
+
visible: !_this.isEditMode || _this.showEditMode,
|
|
9846
|
+
label: _this.translateService.instant("hcm.payroll.delete"),
|
|
9847
|
+
command: function () {
|
|
9848
|
+
if (_this.isAllowToDeleteHistorical) {
|
|
9849
|
+
_this.loading = true;
|
|
9850
|
+
_this.deleteAnnuityItem(key);
|
|
9851
|
+
}
|
|
9852
|
+
else {
|
|
9853
|
+
_this.isDeleteModeActive.emit(true);
|
|
9854
|
+
if (_this.listFromApp.length == 0) {
|
|
9855
|
+
_this.loading = true;
|
|
9856
|
+
_this.deleteAnnuityItem(key);
|
|
9857
|
+
}
|
|
9858
|
+
}
|
|
9859
|
+
},
|
|
9860
|
+
},
|
|
9861
|
+
];
|
|
9862
|
+
};
|
|
9863
|
+
_this.createFormGroup();
|
|
9864
|
+
return _this;
|
|
9697
9865
|
}
|
|
9866
|
+
HistoricalPixAccountComponent.prototype.ngOnInit = function () {
|
|
9867
|
+
var _this = this;
|
|
9868
|
+
this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
|
|
9869
|
+
this.sharedStateService.showButton$.subscribe(function (value) {
|
|
9870
|
+
_this.showButtonView = value;
|
|
9871
|
+
});
|
|
9872
|
+
this.sharedStateService.showEditMode$.subscribe(function (value) {
|
|
9873
|
+
_this.showEditMode = value;
|
|
9874
|
+
_this.isEditModeForSave = value;
|
|
9875
|
+
});
|
|
9876
|
+
};
|
|
9877
|
+
HistoricalPixAccountComponent.prototype.ngOnChanges = function (changes) {
|
|
9878
|
+
if (changes['listDataReciever'] && changes['listDataReciever'].currentValue) {
|
|
9879
|
+
this.listFromApp = changes['listDataReciever'].currentValue;
|
|
9880
|
+
}
|
|
9881
|
+
if (changes['addExistentHistoricData'] && changes['addExistentHistoricData'].currentValue) {
|
|
9882
|
+
this.getHistoricalPixAccountList();
|
|
9883
|
+
}
|
|
9884
|
+
if (changes['addExistentHistoricData'] && changes['addExistentHistoricData'].currentValue) {
|
|
9885
|
+
var newData = changes['addExistentHistoricData'].currentValue;
|
|
9886
|
+
this.rebuildFormGroupMap(newData);
|
|
9887
|
+
}
|
|
9888
|
+
};
|
|
9889
|
+
HistoricalPixAccountComponent.prototype.createFormGroup = function () {
|
|
9890
|
+
this.historicalPixAccountList = this.formBuilder.group({
|
|
9891
|
+
historicalPixAccountList: this.formBuilder.control(null),
|
|
9892
|
+
});
|
|
9893
|
+
};
|
|
9894
|
+
HistoricalPixAccountComponent.prototype.ngOnDestroy = function () {
|
|
9895
|
+
this.ngUnsubscribe.next();
|
|
9896
|
+
this.ngUnsubscribe.complete();
|
|
9897
|
+
};
|
|
9898
|
+
HistoricalPixAccountComponent.prototype.ngAfterViewInit = function () {
|
|
9899
|
+
this.cd.detectChanges();
|
|
9900
|
+
};
|
|
9901
|
+
HistoricalPixAccountComponent.prototype.emitFormValidity = function () {
|
|
9902
|
+
var allValid = Object.values(this.formGroupByRow).every(function (fg) {
|
|
9903
|
+
fg.updateValueAndValidity();
|
|
9904
|
+
return fg.valid;
|
|
9905
|
+
});
|
|
9906
|
+
this.isValidChangeForm.emit(allValid);
|
|
9907
|
+
};
|
|
9908
|
+
HistoricalPixAccountComponent.prototype.filterPixKeyType = function (event) {
|
|
9909
|
+
var _this = this;
|
|
9910
|
+
var query = event.query;
|
|
9911
|
+
this.service.enumQuery().subscribe(function (response) {
|
|
9912
|
+
var pixKeyTypeEnum = response.results.find(function (result) { return result.enumName === 'PixKeyType'; });
|
|
9913
|
+
if (pixKeyTypeEnum) {
|
|
9914
|
+
_this.suggestions = pixKeyTypeEnum.items.filter(function (item) {
|
|
9915
|
+
return item.value.toLowerCase().includes(query.toLowerCase());
|
|
9916
|
+
});
|
|
9917
|
+
}
|
|
9918
|
+
else {
|
|
9919
|
+
_this.suggestions = [];
|
|
9920
|
+
}
|
|
9921
|
+
});
|
|
9922
|
+
};
|
|
9923
|
+
HistoricalPixAccountComponent.prototype.createPixRowFormGroup = function () {
|
|
9924
|
+
return this.formBuilder.group({
|
|
9925
|
+
pixKeyType: [null, Validators.required],
|
|
9926
|
+
pixKey: [null],
|
|
9927
|
+
percentage: [0, Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9928
|
+
Validators.max(this.maxValuePercentage),
|
|
9929
|
+
]))]
|
|
9930
|
+
});
|
|
9931
|
+
};
|
|
9932
|
+
HistoricalPixAccountComponent.prototype.onPixKeyInput = function (event, index) {
|
|
9933
|
+
var inputValue = event.target.value;
|
|
9934
|
+
var inputRawValue = inputValue.replace(/\D/g, '');
|
|
9935
|
+
var form = this.formGroupByRow[index];
|
|
9936
|
+
var pixKeyControl = form.get('pixKey');
|
|
9937
|
+
if (pixKeyControl) {
|
|
9938
|
+
pixKeyControl.setValue(inputRawValue, { emitEvent: false });
|
|
9939
|
+
pixKeyControl.markAsDirty();
|
|
9940
|
+
pixKeyControl.updateValueAndValidity();
|
|
9941
|
+
}
|
|
9942
|
+
this.setPixKeyValidators(true, form);
|
|
9943
|
+
this.emitFormValidity();
|
|
9944
|
+
};
|
|
9945
|
+
HistoricalPixAccountComponent.prototype.onBlurPixCpfAndCnpj = function (index) {
|
|
9946
|
+
var form = this.formGroupByRow[index];
|
|
9947
|
+
var pixKeyControl = form.get('pixKey');
|
|
9948
|
+
var pixKeyTypeControl = form.get('pixKeyType');
|
|
9949
|
+
if (!pixKeyControl || !pixKeyTypeControl)
|
|
9950
|
+
return;
|
|
9951
|
+
var currentValue = pixKeyControl.value;
|
|
9952
|
+
var pixKeyType = pixKeyTypeControl.value.key;
|
|
9953
|
+
var rawValue = (currentValue || '').replace(/\D/g, '');
|
|
9954
|
+
pixKeyControl.setValue(rawValue, { emitEvent: false });
|
|
9955
|
+
if (pixKeyControl.valid) {
|
|
9956
|
+
form.patchValue({
|
|
9957
|
+
pixKeyFormatted: FormatUtilsService.getFormattedSubscriptionNumber(rawValue, pixKeyType)
|
|
9958
|
+
});
|
|
9959
|
+
}
|
|
9960
|
+
this.emitFormValidity();
|
|
9961
|
+
};
|
|
9962
|
+
HistoricalPixAccountComponent.prototype.getFormattedPixKey = function (type, value) {
|
|
9963
|
+
return FormatUtilsService.getFormattedSubscriptionNumber(value, type);
|
|
9964
|
+
};
|
|
9965
|
+
HistoricalPixAccountComponent.prototype.syncPixDataToParentForm = function () {
|
|
9966
|
+
if (!this.isEditModeForSave)
|
|
9967
|
+
return;
|
|
9968
|
+
var values = Object.values(this.formGroupByRow).map(function (fg) {
|
|
9969
|
+
var value = fg.getRawValue();
|
|
9970
|
+
var pixKeyType = value.pixKeyType.key;
|
|
9971
|
+
if (pixKeyType === 'CPF' || pixKeyType === 'CNPJ') {
|
|
9972
|
+
value.pixKey = (value.pixKey || '').replace(/[.\-\/]/g, '');
|
|
9973
|
+
}
|
|
9974
|
+
else if (pixKeyType === 'TELEPHONE') {
|
|
9975
|
+
value.pixKey = (value.pixKey || '').replace(/[()\s\-]/g, '');
|
|
9976
|
+
}
|
|
9977
|
+
return value;
|
|
9978
|
+
});
|
|
9979
|
+
this.formGroup
|
|
9980
|
+
.get(this.fieldFormGroup)
|
|
9981
|
+
.get('historicalPixAccountList')
|
|
9982
|
+
.setValue(values);
|
|
9983
|
+
this.emitFormValidity();
|
|
9984
|
+
};
|
|
9985
|
+
HistoricalPixAccountComponent.prototype.syncResetPixFormToParent = function () {
|
|
9986
|
+
this.formGroupByRow = {};
|
|
9987
|
+
this.historicalPixAccountList.reset();
|
|
9988
|
+
this.historicalPixAccountList.get('historicalPixAccountList').setValue([]);
|
|
9989
|
+
if (this.addExistentHistoricData.length) {
|
|
9990
|
+
this.rebuildFormGroupMap(this.addExistentHistoricData);
|
|
9991
|
+
}
|
|
9992
|
+
};
|
|
9993
|
+
HistoricalPixAccountComponent.prototype.onLazyLoad = function (event) {
|
|
9994
|
+
var _this = this;
|
|
9995
|
+
var first = event && event.first ? event.first : 0;
|
|
9996
|
+
var rows = event && event.rows ? event.rows : this.recordByRow;
|
|
9997
|
+
var arrList = this.getHistoricalPixAccountList();
|
|
9998
|
+
this.listData = [];
|
|
9999
|
+
this.totalRecords = null;
|
|
10000
|
+
if (event && event.multiSortMeta && event.multiSortMeta.length) {
|
|
10001
|
+
event.multiSortMeta.map(function (value) {
|
|
10002
|
+
_this.orderBy.field = value.field;
|
|
10003
|
+
_this.orderBy.direction = value.order === 1 ? DirectionEnumeration.ASC : DirectionEnumeration.DESC;
|
|
10004
|
+
});
|
|
10005
|
+
}
|
|
10006
|
+
if (arrList && arrList.length) {
|
|
10007
|
+
this.totalRecords = arrList.length;
|
|
10008
|
+
this.listData = arrList;
|
|
10009
|
+
this.listDataNoPage = __spread(arrList);
|
|
10010
|
+
this.listData.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
10011
|
+
this.listData = this.listData.slice(first, (first + rows));
|
|
10012
|
+
}
|
|
10013
|
+
else {
|
|
10014
|
+
this.listDataNoPage = [];
|
|
10015
|
+
}
|
|
10016
|
+
if (this.isEditMode || arrList && arrList.length === 1) {
|
|
10017
|
+
this.refreshCssInIE11();
|
|
10018
|
+
}
|
|
10019
|
+
this.loading = false;
|
|
10020
|
+
this.cd.detectChanges();
|
|
10021
|
+
};
|
|
9698
10022
|
/**
|
|
9699
|
-
*
|
|
10023
|
+
* Um Bug de CSS que acontece nas linhas da tabela, que resolve só atualizando qualquer parte do CSS da pagina.
|
|
9700
10024
|
*/
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
10025
|
+
HistoricalPixAccountComponent.prototype.refreshCssInIE11 = function () {
|
|
10026
|
+
if (/msie\s|trident\/|edge\//i.test(window.navigator.userAgent)) {
|
|
10027
|
+
setTimeout(function () {
|
|
10028
|
+
var row = document.getElementsByClassName("row0");
|
|
10029
|
+
if (row && row[0])
|
|
10030
|
+
row[0].className = 'refresh';
|
|
10031
|
+
}, 1);
|
|
10032
|
+
}
|
|
10033
|
+
};
|
|
10034
|
+
HistoricalPixAccountComponent.prototype.add = function () {
|
|
10035
|
+
this.pixAccountItemInput = {};
|
|
10036
|
+
this.visible = true;
|
|
10037
|
+
};
|
|
10038
|
+
HistoricalPixAccountComponent.prototype.addPix = function () {
|
|
10039
|
+
var newItem = {
|
|
10040
|
+
pixKeyType: {},
|
|
10041
|
+
pixKey: '',
|
|
10042
|
+
percentage: 0
|
|
10043
|
+
};
|
|
10044
|
+
var index = this.addExistentHistoricData.length;
|
|
10045
|
+
this.addExistentHistoricData = __spread(this.addExistentHistoricData, [
|
|
10046
|
+
newItem
|
|
10047
|
+
]);
|
|
10048
|
+
this.formGroupByRow[index] = this.createPixRowFormGroup();
|
|
10049
|
+
this.setValidatorsAccordingList(this.addExistentHistoricData, index, true);
|
|
10050
|
+
this.emitFormValidity();
|
|
10051
|
+
};
|
|
10052
|
+
HistoricalPixAccountComponent.prototype.deletePix = function (index) {
|
|
10053
|
+
this.addExistentHistoricData = this.addExistentHistoricData.filter(function (_, i) { return i !== index; });
|
|
10054
|
+
this.rebuildFormGroupMap(this.addExistentHistoricData);
|
|
10055
|
+
this.emitFormValidity();
|
|
10056
|
+
};
|
|
10057
|
+
HistoricalPixAccountComponent.prototype.rebuildFormGroupMap = function (data) {
|
|
10058
|
+
var _this = this;
|
|
10059
|
+
this.formGroupByRow = {};
|
|
10060
|
+
data.forEach(function (item, index) {
|
|
10061
|
+
var form = _this.createPixRowFormGroup();
|
|
10062
|
+
var pixKeyType = item.pixKeyType.key;
|
|
10063
|
+
var pixKeyRaw = item.pixKey;
|
|
10064
|
+
if (pixKeyType === 'CPF' || pixKeyType === 'CNPJ') {
|
|
10065
|
+
item.pixKey = FormatUtilsService.getFormattedSubscriptionNumber(pixKeyRaw, pixKeyType);
|
|
10066
|
+
}
|
|
10067
|
+
if (pixKeyType === 'TELEPHONE') {
|
|
10068
|
+
item.pixKey = FormatUtilsService.getFormattedTelephoneNumber(pixKeyRaw);
|
|
10069
|
+
}
|
|
10070
|
+
form.patchValue(item);
|
|
10071
|
+
_this.formGroupByRow[index] = form;
|
|
10072
|
+
_this.setValidatorsAccordingList(data, index, _this.isEditMode);
|
|
10073
|
+
});
|
|
10074
|
+
this.emitFormValidity();
|
|
10075
|
+
};
|
|
10076
|
+
HistoricalPixAccountComponent.prototype.onPixKeyTypeChange = function (item, index) {
|
|
10077
|
+
var _this = this;
|
|
10078
|
+
var form = this.formGroupByRow[index];
|
|
10079
|
+
this.onChangePixKeyType(item, form);
|
|
10080
|
+
this.addExistentHistoricData[index].pixKey = '';
|
|
10081
|
+
setTimeout(function () {
|
|
10082
|
+
if (_this.dataListPix.editingCell) {
|
|
10083
|
+
_this.dataListPix.editingCell = null;
|
|
10084
|
+
}
|
|
10085
|
+
});
|
|
10086
|
+
this.cd.detectChanges();
|
|
10087
|
+
};
|
|
10088
|
+
HistoricalPixAccountComponent.prototype.onPixKeyTypeClear = function (index) {
|
|
10089
|
+
var form = this.formGroupByRow[index];
|
|
10090
|
+
this.onClearPixKeyType(form);
|
|
10091
|
+
};
|
|
10092
|
+
HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
|
|
10093
|
+
var newlist = __spread(this.getHistoricalPixAccountList());
|
|
10094
|
+
newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
|
|
10095
|
+
delete newlist[index];
|
|
10096
|
+
newlist = newlist.filter(function (val) { return val; });
|
|
10097
|
+
this.historicalPixAccountList.get("historicalPixAccountList").setValue(newlist);
|
|
10098
|
+
this.verifyTotalPercentage();
|
|
10099
|
+
this.onLazyLoad();
|
|
10100
|
+
};
|
|
10101
|
+
HistoricalPixAccountComponent.prototype.getHistoricalPixAccountList = function () {
|
|
10102
|
+
if (this.historicalPixAccountList.get("historicalPixAccountList") &&
|
|
10103
|
+
this.historicalPixAccountList.get("historicalPixAccountList").value &&
|
|
10104
|
+
this.historicalPixAccountList.get("historicalPixAccountList").value.length)
|
|
10105
|
+
return this.historicalPixAccountList.get("historicalPixAccountList") && this.historicalPixAccountList.get("historicalPixAccountList").value;
|
|
10106
|
+
else
|
|
10107
|
+
return [];
|
|
10108
|
+
};
|
|
10109
|
+
HistoricalPixAccountComponent.prototype.addItemInList = function ($event) {
|
|
10110
|
+
var index = $event && $event.index >= 0 ? $event.index : null;
|
|
10111
|
+
var newDataList = this.getHistoricalPixAccountList() ? this.getHistoricalPixAccountList() : [];
|
|
10112
|
+
if (index != null) {
|
|
10113
|
+
newDataList[index] = $event;
|
|
10114
|
+
delete $event.index;
|
|
10115
|
+
}
|
|
10116
|
+
else {
|
|
10117
|
+
if (isValid($event["customFields"]) && Object.keys($event["customFields"]).length) {
|
|
10118
|
+
var customValue = mountCustomToSave($event["customFields"]);
|
|
10119
|
+
$event["customFields"] = __spread(customValue);
|
|
10120
|
+
}
|
|
10121
|
+
$event["dateChange"] = this.dateChange;
|
|
10122
|
+
newDataList.push($event);
|
|
10123
|
+
}
|
|
10124
|
+
this.historicalPixAccountList.get("historicalPixAccountList").setValue(newDataList);
|
|
10125
|
+
this.verifyTotalPercentage();
|
|
10126
|
+
this.onLazyLoad({ first: this.getNumberPageByIndex(index, newDataList) });
|
|
10127
|
+
};
|
|
10128
|
+
HistoricalPixAccountComponent.prototype.getNumberPageByIndex = function (index, list) {
|
|
10129
|
+
if (index) {
|
|
10130
|
+
var total = list.length;
|
|
10131
|
+
var sub = this.recordByRow - 1;
|
|
10132
|
+
return Math.ceil(total / this.recordByRow) * this.recordByRow - sub - 1;
|
|
10133
|
+
}
|
|
10134
|
+
return null;
|
|
10135
|
+
};
|
|
10136
|
+
HistoricalPixAccountComponent.prototype.verifyTotalPercentage = function () {
|
|
10137
|
+
var list = this.getHistoricalPixAccountList() ? this.getHistoricalPixAccountList() : [];
|
|
10138
|
+
var arrayPercentage = [];
|
|
10139
|
+
if (!list.length)
|
|
10140
|
+
return this.msgTotalLimitByPercentage = null;
|
|
10141
|
+
list.filter(function (item) { return arrayPercentage.push(item && item["percentage"]); });
|
|
10142
|
+
var sumPercentage = arrayPercentage.reduce(function (total, percentage) {
|
|
10143
|
+
return total + percentage;
|
|
10144
|
+
}, 0);
|
|
10145
|
+
if (sumPercentage === 100) {
|
|
10146
|
+
this.msgTotalLimitByPercentage = this.translateService.instant("hcm.payroll.historical_pix_account_msg_limit_total_by_percentage");
|
|
10147
|
+
}
|
|
9724
10148
|
else {
|
|
9725
|
-
|
|
9726
|
-
multiplicando = parseInt(cei.substring(i, i + 1), 10);
|
|
9727
|
-
multiplicador = parseInt(multiplicadorBase.substring(i, i + 1), 10);
|
|
9728
|
-
total += multiplicando * multiplicador;
|
|
9729
|
-
}
|
|
9730
|
-
resto = 11 - (total % 11);
|
|
9731
|
-
resto = resto === 10 || resto === 11 ? 0 : resto;
|
|
9732
|
-
var digito = parseInt("" + cei.charAt(10), 10);
|
|
9733
|
-
return resto === digito ? null : { invalidCei: true };
|
|
10149
|
+
this.msgTotalLimitByPercentage = null;
|
|
9734
10150
|
}
|
|
9735
10151
|
};
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
var numbers = void 0, digits = void 0, sum = void 0, i = void 0, result = void 0, equalDigits = void 0;
|
|
9743
|
-
equalDigits = 1;
|
|
9744
|
-
if (cpf.length < 11) {
|
|
9745
|
-
return null;
|
|
9746
|
-
}
|
|
9747
|
-
for (i = 0; i < cpf.length - 1; i++) {
|
|
9748
|
-
if (cpf.charAt(i) !== cpf.charAt(i + 1)) {
|
|
9749
|
-
equalDigits = 0;
|
|
9750
|
-
break;
|
|
9751
|
-
}
|
|
9752
|
-
}
|
|
9753
|
-
if (!equalDigits) {
|
|
9754
|
-
numbers = cpf.substring(0, 9);
|
|
9755
|
-
digits = cpf.substring(9);
|
|
9756
|
-
sum = 0;
|
|
9757
|
-
for (i = 10; i > 1; i--) {
|
|
9758
|
-
sum += numbers.charAt(10 - i) * i;
|
|
9759
|
-
}
|
|
9760
|
-
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9761
|
-
if (result !== Number(digits.charAt(0))) {
|
|
9762
|
-
return { cpfNotValid: true };
|
|
9763
|
-
}
|
|
9764
|
-
numbers = cpf.substring(0, 10);
|
|
9765
|
-
sum = 0;
|
|
9766
|
-
for (i = 11; i > 1; i--) {
|
|
9767
|
-
sum += numbers.charAt(11 - i) * i;
|
|
9768
|
-
}
|
|
9769
|
-
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9770
|
-
if (result !== Number(digits.charAt(1))) {
|
|
9771
|
-
return { cpfNotValid: true };
|
|
9772
|
-
}
|
|
9773
|
-
return null;
|
|
9774
|
-
}
|
|
9775
|
-
else {
|
|
9776
|
-
return { cpfNotValid: true };
|
|
9777
|
-
}
|
|
10152
|
+
HistoricalPixAccountComponent.prototype.onSyncValue = function (field, index) {
|
|
10153
|
+
if (this.formGroupByRow &&
|
|
10154
|
+
this.formGroupByRow[index] &&
|
|
10155
|
+
this.formGroupByRow[index].get(field)) {
|
|
10156
|
+
var value = this.formGroupByRow[index].get(field).value;
|
|
10157
|
+
this.addExistentHistoricData[index][field] = value;
|
|
9778
10158
|
}
|
|
9779
|
-
|
|
10159
|
+
this.emitFormValidity();
|
|
9780
10160
|
};
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
for (var i = size; i >= 1; i--) {
|
|
9812
|
-
sum += numbers.charAt(size - i) * pos--;
|
|
9813
|
-
if (pos < 2) {
|
|
9814
|
-
pos = 9;
|
|
9815
|
-
}
|
|
9816
|
-
}
|
|
9817
|
-
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
9818
|
-
if (result !== Number(digits.charAt(0))) {
|
|
9819
|
-
return { cnpjNotValid: true };
|
|
9820
|
-
}
|
|
9821
|
-
size = size + 1;
|
|
9822
|
-
numbers = cnpj.substring(0, size);
|
|
9823
|
-
sum = 0;
|
|
9824
|
-
pos = size - 7;
|
|
9825
|
-
for (var i = size; i >= 1; i--) {
|
|
9826
|
-
sum += numbers.charAt(size - i) * pos--;
|
|
9827
|
-
if (pos < 2) {
|
|
9828
|
-
pos = 9;
|
|
9829
|
-
}
|
|
10161
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "scopedActions", {
|
|
10162
|
+
get: function () {
|
|
10163
|
+
return this.actions.bind(this);
|
|
10164
|
+
},
|
|
10165
|
+
enumerable: true,
|
|
10166
|
+
configurable: true
|
|
10167
|
+
});
|
|
10168
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "recordsMessage", {
|
|
10169
|
+
get: function () {
|
|
10170
|
+
return (this.totalRecords || 0) + " " + (this.totalRecords === 1 ? this.translateService.instant("hcm.payroll.admission_register") : this.translateService.instant("hcm.payroll.admission_registers"));
|
|
10171
|
+
},
|
|
10172
|
+
enumerable: true,
|
|
10173
|
+
configurable: true
|
|
10174
|
+
});
|
|
10175
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "getTooltipAndDisableButtonAdd", {
|
|
10176
|
+
get: function () {
|
|
10177
|
+
return this.dateChange ? null : this.msgTooltipAdd;
|
|
10178
|
+
},
|
|
10179
|
+
enumerable: true,
|
|
10180
|
+
configurable: true
|
|
10181
|
+
});
|
|
10182
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "dateChange", {
|
|
10183
|
+
get: function () {
|
|
10184
|
+
return this._dateChange;
|
|
10185
|
+
},
|
|
10186
|
+
set: function (value) {
|
|
10187
|
+
var _this = this;
|
|
10188
|
+
this._dateChange = value;
|
|
10189
|
+
if (this._dateChange) {
|
|
10190
|
+
this.listData.filter(function (row) { return row["dateChange"] = _this._dateChange; });
|
|
9830
10191
|
}
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
10192
|
+
},
|
|
10193
|
+
enumerable: true,
|
|
10194
|
+
configurable: true
|
|
10195
|
+
});
|
|
10196
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "displayDateChange", {
|
|
10197
|
+
get: function () {
|
|
10198
|
+
return this._displayDateChange;
|
|
10199
|
+
},
|
|
10200
|
+
set: function (value) {
|
|
10201
|
+
var _this = this;
|
|
10202
|
+
this._displayDateChange = value;
|
|
10203
|
+
if (this._displayDateChange) {
|
|
10204
|
+
this.listData.filter(function (row) { return row["displayDateChange"] = _this._displayDateChange; });
|
|
9834
10205
|
}
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
10206
|
+
},
|
|
10207
|
+
enumerable: true,
|
|
10208
|
+
configurable: true
|
|
10209
|
+
});
|
|
10210
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "addListData", {
|
|
10211
|
+
set: function (list) {
|
|
10212
|
+
this.loading = true;
|
|
10213
|
+
this.historicalPixAccountList.get("historicalPixAccountList").patchValue(list);
|
|
10214
|
+
this.verifyTotalPercentage();
|
|
10215
|
+
this.onLazyLoad();
|
|
10216
|
+
},
|
|
10217
|
+
enumerable: true,
|
|
10218
|
+
configurable: true
|
|
10219
|
+
});
|
|
10220
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "visible", {
|
|
10221
|
+
get: function () {
|
|
10222
|
+
return this._visible;
|
|
10223
|
+
},
|
|
10224
|
+
set: function (value) {
|
|
10225
|
+
this._visible = value;
|
|
10226
|
+
this.visibleChange.emit(this.visible);
|
|
10227
|
+
},
|
|
10228
|
+
enumerable: true,
|
|
10229
|
+
configurable: true
|
|
10230
|
+
});
|
|
10231
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "paramsForm", {
|
|
10232
|
+
set: function (value) {
|
|
10233
|
+
this._paramsForm = value;
|
|
10234
|
+
},
|
|
10235
|
+
enumerable: true,
|
|
10236
|
+
configurable: true
|
|
10237
|
+
});
|
|
10238
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "defaultCpfNumber", {
|
|
10239
|
+
set: function (value) {
|
|
10240
|
+
this._defaultCpfNumber = value;
|
|
10241
|
+
},
|
|
10242
|
+
enumerable: true,
|
|
10243
|
+
configurable: true
|
|
10244
|
+
});
|
|
10245
|
+
HistoricalPixAccountComponent.prototype.close = function () {
|
|
10246
|
+
this.visible = false;
|
|
9838
10247
|
};
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
*/
|
|
9842
|
-
GenericValidator.isValidPhoneNumber = function (control) {
|
|
9843
|
-
var cellPhoneKey = control.value || '';
|
|
9844
|
-
cellPhoneKey = cellPhoneKey.replace(/[\s()-]/g, '');
|
|
9845
|
-
var regexNumberTelephone = /^[1-9][\d]{1,2}\d{8,10}$/;
|
|
9846
|
-
var isValidNumberTelephone = regexNumberTelephone.test(cellPhoneKey);
|
|
9847
|
-
return isValidNumberTelephone ? null : { invalidPhoneNumber: true };
|
|
10248
|
+
HistoricalPixAccountComponent.prototype.getFormattedTelephoneNumber = function (telephoneNumber) {
|
|
10249
|
+
return FormatUtilsService.getFormattedTelephoneNumber(telephoneNumber);
|
|
9848
10250
|
};
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
*/
|
|
9852
|
-
GenericValidator.isValidEmail = function (control) {
|
|
9853
|
-
var emailKey = control.value;
|
|
9854
|
-
var regexValidEmail = /^[\w-\.]+@[\w-]+(\.[\w-]{2,4}){1,2}$/;
|
|
9855
|
-
var isValidEmail = regexValidEmail.test(emailKey);
|
|
9856
|
-
return isValidEmail ? null : { invalidEmail: true };
|
|
10251
|
+
HistoricalPixAccountComponent.prototype.getFormattedCpf = function (cpf) {
|
|
10252
|
+
return FormatUtilsService.getFormattedCpf(cpf);
|
|
9857
10253
|
};
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
9862
|
-
function HistoricalPixAccountFormComponent(formBuilder, cd) {
|
|
9863
|
-
this.formBuilder = formBuilder;
|
|
9864
|
-
this.cd = cd;
|
|
9865
|
-
this.withSideBar = true;
|
|
9866
|
-
this.isEditMode = false;
|
|
9867
|
-
this.paramsForm = new FormGroup({});
|
|
9868
|
-
this.defaultCpfNumber = null;
|
|
9869
|
-
this.visibleChange = new EventEmitter();
|
|
9870
|
-
this.pixAccountItemToList = new EventEmitter();
|
|
9871
|
-
this.ngUnsubscribe = new Subject();
|
|
9872
|
-
this.initialValidatorOfPercentage = [Validators.required, Validators.min(0.01)];
|
|
9873
|
-
this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
9874
|
-
this.maxValuePercentage = 100.00;
|
|
9875
|
-
this.visibleBtnSave = true;
|
|
9876
|
-
this.isView = false;
|
|
9877
|
-
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9878
|
-
this.createFormGroup();
|
|
9879
|
-
this.registerSubjects();
|
|
9880
|
-
}
|
|
9881
|
-
HistoricalPixAccountFormComponent.prototype.ngOnInit = function () {
|
|
10254
|
+
HistoricalPixAccountComponent.prototype.getFormattedCnpj = function (cnpj) {
|
|
10255
|
+
return FormatUtilsService.getFormattedCnpj(cnpj);
|
|
9882
10256
|
};
|
|
10257
|
+
HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
|
|
10258
|
+
return FormatUtilsService.getFormattedPercentage(value);
|
|
10259
|
+
};
|
|
10260
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToAddHistorical", {
|
|
10261
|
+
get: function () {
|
|
10262
|
+
return (this.permission["incluir"]);
|
|
10263
|
+
},
|
|
10264
|
+
enumerable: true,
|
|
10265
|
+
configurable: true
|
|
10266
|
+
});
|
|
10267
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
|
|
10268
|
+
get: function () {
|
|
10269
|
+
return (this.permission["excluir"]);
|
|
10270
|
+
},
|
|
10271
|
+
enumerable: true,
|
|
10272
|
+
configurable: true
|
|
10273
|
+
});
|
|
10274
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
|
|
10275
|
+
get: function () {
|
|
10276
|
+
return (this.permission["editar"]);
|
|
10277
|
+
},
|
|
10278
|
+
enumerable: true,
|
|
10279
|
+
configurable: true
|
|
10280
|
+
});
|
|
10281
|
+
Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
|
|
10282
|
+
get: function () {
|
|
10283
|
+
return (this.permission["visualizar"]);
|
|
10284
|
+
},
|
|
10285
|
+
enumerable: true,
|
|
10286
|
+
configurable: true
|
|
10287
|
+
});
|
|
10288
|
+
HistoricalPixAccountComponent.ctorParameters = function () { return [
|
|
10289
|
+
{ type: TranslateService },
|
|
10290
|
+
{ type: ChangeDetectorRef },
|
|
10291
|
+
{ type: FormBuilder },
|
|
10292
|
+
{ type: SharedStateService },
|
|
10293
|
+
{ type: HistoricalPixAccountService }
|
|
10294
|
+
]; };
|
|
10295
|
+
__decorate([
|
|
10296
|
+
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
10297
|
+
], HistoricalPixAccountComponent.prototype, "customFields", void 0);
|
|
10298
|
+
__decorate([
|
|
10299
|
+
ViewChild('dataListPix', { static: false })
|
|
10300
|
+
], HistoricalPixAccountComponent.prototype, "dataListPix", void 0);
|
|
10301
|
+
__decorate([
|
|
10302
|
+
Input()
|
|
10303
|
+
], HistoricalPixAccountComponent.prototype, "formGroup", void 0);
|
|
10304
|
+
__decorate([
|
|
10305
|
+
Input()
|
|
10306
|
+
], HistoricalPixAccountComponent.prototype, "fieldFormGroup", void 0);
|
|
10307
|
+
__decorate([
|
|
10308
|
+
Input()
|
|
10309
|
+
], HistoricalPixAccountComponent.prototype, "_dateChange", void 0);
|
|
10310
|
+
__decorate([
|
|
10311
|
+
Input()
|
|
10312
|
+
], HistoricalPixAccountComponent.prototype, "_displayDateChange", void 0);
|
|
10313
|
+
__decorate([
|
|
10314
|
+
Input()
|
|
10315
|
+
], HistoricalPixAccountComponent.prototype, "recordByRow", void 0);
|
|
10316
|
+
__decorate([
|
|
10317
|
+
Input()
|
|
10318
|
+
], HistoricalPixAccountComponent.prototype, "showDateChange", void 0);
|
|
10319
|
+
__decorate([
|
|
10320
|
+
Input()
|
|
10321
|
+
], HistoricalPixAccountComponent.prototype, "msgTooltipAdd", void 0);
|
|
10322
|
+
__decorate([
|
|
10323
|
+
Input()
|
|
10324
|
+
], HistoricalPixAccountComponent.prototype, "isEditMode", void 0);
|
|
10325
|
+
__decorate([
|
|
10326
|
+
Input()
|
|
10327
|
+
], HistoricalPixAccountComponent.prototype, "isViewMode", void 0);
|
|
10328
|
+
__decorate([
|
|
10329
|
+
Input()
|
|
10330
|
+
], HistoricalPixAccountComponent.prototype, "currency", void 0);
|
|
10331
|
+
__decorate([
|
|
10332
|
+
Input()
|
|
10333
|
+
], HistoricalPixAccountComponent.prototype, "customEntity", void 0);
|
|
10334
|
+
__decorate([
|
|
10335
|
+
Input()
|
|
10336
|
+
], HistoricalPixAccountComponent.prototype, "customService", void 0);
|
|
10337
|
+
__decorate([
|
|
10338
|
+
Input()
|
|
10339
|
+
], HistoricalPixAccountComponent.prototype, "withSideBar", void 0);
|
|
10340
|
+
__decorate([
|
|
10341
|
+
Input()
|
|
10342
|
+
], HistoricalPixAccountComponent.prototype, "permission", void 0);
|
|
10343
|
+
__decorate([
|
|
10344
|
+
Input()
|
|
10345
|
+
], HistoricalPixAccountComponent.prototype, "listDataReciever", void 0);
|
|
10346
|
+
__decorate([
|
|
10347
|
+
Input()
|
|
10348
|
+
], HistoricalPixAccountComponent.prototype, "addExistentHistoricData", void 0);
|
|
10349
|
+
__decorate([
|
|
10350
|
+
Input()
|
|
10351
|
+
], HistoricalPixAccountComponent.prototype, "getListPixAccount", void 0);
|
|
10352
|
+
__decorate([
|
|
10353
|
+
Input()
|
|
10354
|
+
], HistoricalPixAccountComponent.prototype, "isEditModeForSave", void 0);
|
|
10355
|
+
__decorate([
|
|
10356
|
+
Output()
|
|
10357
|
+
], HistoricalPixAccountComponent.prototype, "isViewModeActive", void 0);
|
|
10358
|
+
__decorate([
|
|
10359
|
+
Output()
|
|
10360
|
+
], HistoricalPixAccountComponent.prototype, "isEditModeActive", void 0);
|
|
10361
|
+
__decorate([
|
|
10362
|
+
Output()
|
|
10363
|
+
], HistoricalPixAccountComponent.prototype, "isDeleteModeActive", void 0);
|
|
10364
|
+
__decorate([
|
|
10365
|
+
Output()
|
|
10366
|
+
], HistoricalPixAccountComponent.prototype, "isValidChangeForm", void 0);
|
|
10367
|
+
__decorate([
|
|
10368
|
+
Input()
|
|
10369
|
+
], HistoricalPixAccountComponent.prototype, "dateChange", null);
|
|
10370
|
+
__decorate([
|
|
10371
|
+
Input()
|
|
10372
|
+
], HistoricalPixAccountComponent.prototype, "displayDateChange", null);
|
|
10373
|
+
__decorate([
|
|
10374
|
+
Input()
|
|
10375
|
+
], HistoricalPixAccountComponent.prototype, "addListData", null);
|
|
10376
|
+
__decorate([
|
|
10377
|
+
Input()
|
|
10378
|
+
], HistoricalPixAccountComponent.prototype, "visible", null);
|
|
10379
|
+
__decorate([
|
|
10380
|
+
Input()
|
|
10381
|
+
], HistoricalPixAccountComponent.prototype, "paramsForm", null);
|
|
10382
|
+
__decorate([
|
|
10383
|
+
Input()
|
|
10384
|
+
], HistoricalPixAccountComponent.prototype, "defaultCpfNumber", null);
|
|
10385
|
+
HistoricalPixAccountComponent = __decorate([
|
|
10386
|
+
Component({
|
|
10387
|
+
// tslint:disable-next-line:component-selector
|
|
10388
|
+
selector: "c-historical-pix-account",
|
|
10389
|
+
template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"\n [defaultCpfNumber]=\"defaultCpfNumber\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div *ngIf=\"!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=\"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 id=\"btn-save\" label=\"Adicionar\" priority=\"primary\" (onClick)=\"addPix()\"></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\" [pSortableColumn]=\"col.orderBy\">\n {{ col.label }}\n <p-sortIcon *ngIf=\"col.orderBy\" [field]=\"col.orderBy\"></p-sortIcon>\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=\"Selecione o tipo de chave\"\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 }}%\n </ng-template>\n </p-cellEditor>\n </td>\n\n <!-- Bot\u00E3o de excluir -->\n <td>\n <s-button id=\"btn-delete\" label=\"Excluir\" priority=\"default\" (onClick)=\"deletePix(rowIndex)\"></s-button>\n </td>\n </tr>\n </ng-container>\n </ng-template>\n </p-table>\n</div>\n",
|
|
10390
|
+
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}"]
|
|
10391
|
+
})
|
|
10392
|
+
], HistoricalPixAccountComponent);
|
|
10393
|
+
return HistoricalPixAccountComponent;
|
|
10394
|
+
}(HistoricakPixAccountBase));
|
|
10395
|
+
|
|
10396
|
+
var HistoricalPixAccountFormComponent = /** @class */ (function (_super) {
|
|
10397
|
+
__extends(HistoricalPixAccountFormComponent, _super);
|
|
10398
|
+
function HistoricalPixAccountFormComponent(formBuilder, cd, sharedStateService) {
|
|
10399
|
+
var _this = _super.call(this, formBuilder) || this;
|
|
10400
|
+
_this.cd = cd;
|
|
10401
|
+
_this.sharedStateService = sharedStateService;
|
|
10402
|
+
_this.withSideBar = true;
|
|
10403
|
+
_this.isEditMode = false;
|
|
10404
|
+
_this.visibleChange = new EventEmitter();
|
|
10405
|
+
_this.pixAccountItemToList = new EventEmitter();
|
|
10406
|
+
_this.ngUnsubscribe = new Subject();
|
|
10407
|
+
_this.labelBtnAdd = "hcm.payroll.employees_add";
|
|
10408
|
+
_this.visibleBtnSave = true;
|
|
10409
|
+
_this.isView = false;
|
|
10410
|
+
_this.isShowPixKeyFieldValidatorMessage = false;
|
|
10411
|
+
_this.hideFields = _this.sharedStateService.hideField$;
|
|
10412
|
+
_this.registerSubjects();
|
|
10413
|
+
return _this;
|
|
10414
|
+
}
|
|
10415
|
+
HistoricalPixAccountFormComponent.prototype.ngOnInit = function () { };
|
|
9883
10416
|
HistoricalPixAccountFormComponent.prototype.ngAfterViewInit = function () {
|
|
9884
10417
|
this.cd.detectChanges();
|
|
9885
10418
|
};
|
|
@@ -9887,38 +10420,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9887
10420
|
this.ngUnsubscribe.next(true);
|
|
9888
10421
|
this.ngUnsubscribe.unsubscribe();
|
|
9889
10422
|
};
|
|
9890
|
-
HistoricalPixAccountFormComponent.prototype.registerSubjects = function () {
|
|
9891
|
-
};
|
|
9892
|
-
HistoricalPixAccountFormComponent.prototype.createFormGroup = function () {
|
|
9893
|
-
this.pixAccountFormGroup = this.formBuilder.group({
|
|
9894
|
-
id: this.formBuilder.control(null),
|
|
9895
|
-
index: this.formBuilder.control(null),
|
|
9896
|
-
employee: this.formBuilder.control({ value: { tableId: null }, disabled: true }),
|
|
9897
|
-
dateChange: this.formBuilder.control(null),
|
|
9898
|
-
pixKeyType: this.formBuilder.control(null, Validators.required),
|
|
9899
|
-
pixKey: this.formBuilder.control(null),
|
|
9900
|
-
percentage: this.formBuilder.control(null, Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
9901
|
-
Validators.max(this.maxValuePercentage),
|
|
9902
|
-
]))),
|
|
9903
|
-
externalId: this.formBuilder.control(null),
|
|
9904
|
-
customFields: this.formBuilder.control(null),
|
|
9905
|
-
});
|
|
9906
|
-
};
|
|
9907
|
-
HistoricalPixAccountFormComponent.prototype.onChangePixKeyType = function (item) {
|
|
9908
|
-
if (item.key) {
|
|
9909
|
-
this.pixKeyType = item.key;
|
|
9910
|
-
this.isShowPixKeyFieldValidatorMessage = true;
|
|
9911
|
-
this.pixAccountFormGroup.get("pixKey").reset();
|
|
9912
|
-
this.setPixKeyValidators(true);
|
|
9913
|
-
if (item.key === "CPF") {
|
|
9914
|
-
this.setDefaultCpfPixKey();
|
|
9915
|
-
}
|
|
9916
|
-
}
|
|
9917
|
-
};
|
|
9918
|
-
HistoricalPixAccountFormComponent.prototype.onClearPixKeyType = function () {
|
|
9919
|
-
this.isShowPixKeyFieldValidatorMessage = false;
|
|
9920
|
-
this.pixAccountFormGroup.get("pixKey").reset();
|
|
9921
|
-
};
|
|
10423
|
+
HistoricalPixAccountFormComponent.prototype.registerSubjects = function () { };
|
|
9922
10424
|
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "visible", {
|
|
9923
10425
|
get: function () {
|
|
9924
10426
|
return this._visible;
|
|
@@ -9957,7 +10459,8 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9957
10459
|
});
|
|
9958
10460
|
HistoricalPixAccountFormComponent.prototype.formatPixKeyTelephoneNumber = function () {
|
|
9959
10461
|
if (this.pixKeyType === "TELEPHONE") {
|
|
9960
|
-
this.pixAccountFormGroup.get("pixKey")
|
|
10462
|
+
var pixKeyCtrl = this.pixAccountFormGroup.get("pixKey");
|
|
10463
|
+
pixKeyCtrl.setValue(FormatUtilsService.getFormattedTelephoneNumber(pixKeyCtrl.value));
|
|
9961
10464
|
}
|
|
9962
10465
|
};
|
|
9963
10466
|
HistoricalPixAccountFormComponent.prototype.convertDTOToShowWithCustomFields = function (data) {
|
|
@@ -9969,14 +10472,14 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9969
10472
|
this.visibleBtnSave = isEditMode;
|
|
9970
10473
|
if (this.pixAccountFormGroup.get("pixKeyType").value) {
|
|
9971
10474
|
this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
|
|
9972
|
-
this.setPixKeyValidators(isEditMode);
|
|
10475
|
+
this.setPixKeyValidators(isEditMode, this.pixAccountFormGroup);
|
|
9973
10476
|
this.formatPixKeyTelephoneNumber();
|
|
9974
10477
|
}
|
|
9975
10478
|
configEnabledFields(this.pixAccountFormGroup, isEditMode, [
|
|
9976
10479
|
"pixKeyType",
|
|
9977
10480
|
"pixKey",
|
|
9978
10481
|
"percentage",
|
|
9979
|
-
"customFields"
|
|
10482
|
+
"customFields"
|
|
9980
10483
|
], []);
|
|
9981
10484
|
};
|
|
9982
10485
|
HistoricalPixAccountFormComponent.prototype.close = function () {
|
|
@@ -9990,7 +10493,7 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
9990
10493
|
if (this.employeeId) {
|
|
9991
10494
|
this.pixAccountFormGroup.get("employee").setValue({
|
|
9992
10495
|
tableId: this.employeeId,
|
|
9993
|
-
name: ""
|
|
10496
|
+
name: ""
|
|
9994
10497
|
});
|
|
9995
10498
|
}
|
|
9996
10499
|
this.pixAccountItemToList.emit(this.pixAccountFormGroup.getRawValue());
|
|
@@ -10022,14 +10525,10 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10022
10525
|
return {
|
|
10023
10526
|
prefix: "",
|
|
10024
10527
|
thousands: this.currency.thousandsSeparator,
|
|
10025
|
-
decimal: this.currency.decimalSeparator
|
|
10528
|
+
decimal: this.currency.decimalSeparator
|
|
10026
10529
|
};
|
|
10027
10530
|
};
|
|
10028
10531
|
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "getListPixAccount", {
|
|
10029
|
-
/**
|
|
10030
|
-
* O Input que recebe a lista do component pai e chama o método de validação passando a lista recebida.
|
|
10031
|
-
* @param pixAccountList
|
|
10032
|
-
*/
|
|
10033
10532
|
set: function (pixAccountList) {
|
|
10034
10533
|
if (pixAccountList) {
|
|
10035
10534
|
this.setValidatorsAccordingList(pixAccountList, null, false);
|
|
@@ -10041,85 +10540,6 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10041
10540
|
enumerable: true,
|
|
10042
10541
|
configurable: true
|
|
10043
10542
|
});
|
|
10044
|
-
/**
|
|
10045
|
-
* Recebe a lista de registros já inseridos na tabela adiciona em uma variável os valores que serão usados para
|
|
10046
|
-
* a validação dos campos "percentage" e "pixAccount".
|
|
10047
|
-
* 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
|
|
10048
|
-
* no array de comparação dos validators.
|
|
10049
|
-
* @param pixAccountList
|
|
10050
|
-
* @param index
|
|
10051
|
-
*/
|
|
10052
|
-
HistoricalPixAccountFormComponent.prototype.setValidatorsAccordingList = function (pixAccountList, index, isEditMode) {
|
|
10053
|
-
if (index === void 0) { index = null; }
|
|
10054
|
-
if (isEditMode === void 0) { isEditMode = true; }
|
|
10055
|
-
this.pixAccountList = pixAccountList && pixAccountList.length ? __spread(pixAccountList) : [];
|
|
10056
|
-
var percentageIncluded = [];
|
|
10057
|
-
if (this.pixAccountList && this.pixAccountList.length) {
|
|
10058
|
-
this.pixAccountList.filter(function (field, key) {
|
|
10059
|
-
if (field["percentage"] && key != index) {
|
|
10060
|
-
percentageIncluded.push(field["percentage"]);
|
|
10061
|
-
}
|
|
10062
|
-
});
|
|
10063
|
-
}
|
|
10064
|
-
this.beforeSetPixKeyTypeValidator();
|
|
10065
|
-
this.setPixKeyValidators(isEditMode);
|
|
10066
|
-
this.validatePercentageValid(percentageIncluded);
|
|
10067
|
-
};
|
|
10068
|
-
/**
|
|
10069
|
-
* Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
|
|
10070
|
-
*/
|
|
10071
|
-
HistoricalPixAccountFormComponent.prototype.setPixKeyValidators = function (isEditMode) {
|
|
10072
|
-
var genericPixKey = this.pixAccountFormGroup.get("pixKey");
|
|
10073
|
-
if (this.pixKeyType) {
|
|
10074
|
-
switch (this.pixKeyType) {
|
|
10075
|
-
case "TELEPHONE":
|
|
10076
|
-
genericPixKey.setValidators(Validators.compose([
|
|
10077
|
-
Validators.required, GenericValidator.isValidPhoneNumber,
|
|
10078
|
-
]));
|
|
10079
|
-
break;
|
|
10080
|
-
case "EMAIL":
|
|
10081
|
-
genericPixKey.setValidators(Validators.compose([
|
|
10082
|
-
Validators.required, GenericValidator.isValidEmail,
|
|
10083
|
-
]));
|
|
10084
|
-
break;
|
|
10085
|
-
case "CPF":
|
|
10086
|
-
genericPixKey.setValidators(Validators.compose([
|
|
10087
|
-
Validators.required, GenericValidator.isValidCpf,
|
|
10088
|
-
]));
|
|
10089
|
-
break;
|
|
10090
|
-
case "CNPJ":
|
|
10091
|
-
genericPixKey.setValidators(Validators.compose([
|
|
10092
|
-
Validators.required, GenericValidator.isValidCnpj,
|
|
10093
|
-
]));
|
|
10094
|
-
break;
|
|
10095
|
-
case "RANDOM_KEY":
|
|
10096
|
-
genericPixKey.setValidators(Validators.required);
|
|
10097
|
-
break;
|
|
10098
|
-
default:
|
|
10099
|
-
genericPixKey.setValidators(null);
|
|
10100
|
-
break;
|
|
10101
|
-
}
|
|
10102
|
-
if (isEditMode) {
|
|
10103
|
-
genericPixKey.enable();
|
|
10104
|
-
}
|
|
10105
|
-
genericPixKey.updateValueAndValidity();
|
|
10106
|
-
}
|
|
10107
|
-
};
|
|
10108
|
-
/**
|
|
10109
|
-
* Este método calcula as parcentagens que já foram inseridas, e seta a diferença para chegar em
|
|
10110
|
-
* 100% na validação do campo "percentage" como um novo maxValue;
|
|
10111
|
-
* @param listValue
|
|
10112
|
-
*/
|
|
10113
|
-
HistoricalPixAccountFormComponent.prototype.validatePercentageValid = function (listValue) {
|
|
10114
|
-
var percentage = this.pixAccountFormGroup.get("percentage");
|
|
10115
|
-
this.maxValuePercentage = listValue
|
|
10116
|
-
.reduce(function (currentValue, total) { return currentValue - total; }, 100.00);
|
|
10117
|
-
percentage
|
|
10118
|
-
.setValidators(Validators.compose(__spread(this.initialValidatorOfPercentage, [
|
|
10119
|
-
Validators.max(this.maxValuePercentage),
|
|
10120
|
-
])));
|
|
10121
|
-
percentage.updateValueAndValidity();
|
|
10122
|
-
};
|
|
10123
10543
|
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isViewMode", {
|
|
10124
10544
|
set: function (condition) {
|
|
10125
10545
|
this.isView = !!(condition && !this.withSideBar);
|
|
@@ -10130,58 +10550,24 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10130
10550
|
enumerable: true,
|
|
10131
10551
|
configurable: true
|
|
10132
10552
|
});
|
|
10133
|
-
HistoricalPixAccountFormComponent.prototype
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
}
|
|
10148
|
-
}
|
|
10149
|
-
};
|
|
10150
|
-
HistoricalPixAccountFormComponent.prototype.beforeSetPixKeyTypeValidator = function () {
|
|
10151
|
-
var pixKeyType = this.pixAccountFormGroup.get("pixKeyType");
|
|
10152
|
-
if (this.pixAccountList && this.pixAccountList.length && pixKeyType) {
|
|
10153
|
-
pixKeyType
|
|
10154
|
-
.setValidators(Validators.compose([
|
|
10155
|
-
Validators.required,
|
|
10156
|
-
this.validateDuplicatePixKeyTypeBankAccount(this.pixAccountList),
|
|
10157
|
-
]));
|
|
10158
|
-
}
|
|
10159
|
-
else {
|
|
10160
|
-
pixKeyType.setValidators(Validators.required);
|
|
10161
|
-
}
|
|
10162
|
-
};
|
|
10163
|
-
HistoricalPixAccountFormComponent.prototype.validateDuplicatePixKeyTypeBankAccount = function (listCompare) {
|
|
10164
|
-
return function (control) {
|
|
10165
|
-
var value = control && control.value;
|
|
10166
|
-
var condition = false;
|
|
10167
|
-
listCompare.filter(function (field) {
|
|
10168
|
-
if (value) {
|
|
10169
|
-
if (field["pixKeyType"].key === 'BANK_ACCOUNT' && value.key === field["pixKeyType"].key) {
|
|
10170
|
-
return condition = true;
|
|
10171
|
-
}
|
|
10172
|
-
}
|
|
10173
|
-
});
|
|
10174
|
-
if (condition) {
|
|
10175
|
-
return { pixKeyTypeBankAccountDuplicate: true };
|
|
10176
|
-
}
|
|
10177
|
-
else {
|
|
10178
|
-
return null;
|
|
10179
|
-
}
|
|
10180
|
-
};
|
|
10181
|
-
};
|
|
10553
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "paramsForm", {
|
|
10554
|
+
set: function (value) {
|
|
10555
|
+
this._paramsForm = value;
|
|
10556
|
+
},
|
|
10557
|
+
enumerable: true,
|
|
10558
|
+
configurable: true
|
|
10559
|
+
});
|
|
10560
|
+
Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", {
|
|
10561
|
+
set: function (value) {
|
|
10562
|
+
this._defaultCpfNumber = value;
|
|
10563
|
+
},
|
|
10564
|
+
enumerable: true,
|
|
10565
|
+
configurable: true
|
|
10566
|
+
});
|
|
10182
10567
|
HistoricalPixAccountFormComponent.ctorParameters = function () { return [
|
|
10183
10568
|
{ type: FormBuilder },
|
|
10184
|
-
{ type: ChangeDetectorRef }
|
|
10569
|
+
{ type: ChangeDetectorRef },
|
|
10570
|
+
{ type: SharedStateService }
|
|
10185
10571
|
]; };
|
|
10186
10572
|
__decorate([
|
|
10187
10573
|
ViewChild(CustomFieldsComponent$1, { static: true })
|
|
@@ -10201,12 +10587,6 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10201
10587
|
__decorate([
|
|
10202
10588
|
Input()
|
|
10203
10589
|
], HistoricalPixAccountFormComponent.prototype, "isEditMode", void 0);
|
|
10204
|
-
__decorate([
|
|
10205
|
-
Input()
|
|
10206
|
-
], HistoricalPixAccountFormComponent.prototype, "paramsForm", void 0);
|
|
10207
|
-
__decorate([
|
|
10208
|
-
Input()
|
|
10209
|
-
], HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", void 0);
|
|
10210
10590
|
__decorate([
|
|
10211
10591
|
Output()
|
|
10212
10592
|
], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
|
|
@@ -10225,32 +10605,21 @@ var HistoricalPixAccountFormComponent = /** @class */ (function () {
|
|
|
10225
10605
|
__decorate([
|
|
10226
10606
|
Input()
|
|
10227
10607
|
], HistoricalPixAccountFormComponent.prototype, "isViewMode", null);
|
|
10608
|
+
__decorate([
|
|
10609
|
+
Input()
|
|
10610
|
+
], HistoricalPixAccountFormComponent.prototype, "paramsForm", null);
|
|
10611
|
+
__decorate([
|
|
10612
|
+
Input()
|
|
10613
|
+
], HistoricalPixAccountFormComponent.prototype, "defaultCpfNumber", null);
|
|
10228
10614
|
HistoricalPixAccountFormComponent = __decorate([
|
|
10229
10615
|
Component({
|
|
10230
10616
|
selector: "pix-account",
|
|
10231
|
-
template: "<div id=\"main\">\n <form [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"99.999.999/9999-99\" [unmask]=\"true\"></p-inputMask>\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"{{'hcm.payroll.employees_addition_email'|translate}}\"/>\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\" disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\" maxlength=\"100\" />\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
|
|
10617
|
+
template: "<div id=\"main\">\n <form *ngIf=\"!(hideFields | async)\" [formGroup]=\"pixAccountFormGroup\" autocomplete=\"off\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <!-- Tipo de chave -->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label>{{'hcm.payroll.employees_addition_pix_key_type'|translate}}</label>\n <input-rest-auto-complete-enum [dropdown]=\"true\" server=\"payroll\"\n enumeration=\"PixKeyType\"\n placeholder=\"{{'hcm.payroll.select' | translate}}\"\n name=\"pixKeyType\" [form]=\"pixAccountFormGroup\"\n (onSelect)=\"onChangePixKeyType($event)\"\n (onClear)=\"onClearPixKeyType()\"\n id=\"ta-pixKeyType\"></input-rest-auto-complete-enum>\n <s-control-errors [control]=\"pixAccountFormGroup.get('pixKeyType')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n pixKeyTypeBankAccountDuplicate: 'hcm.payroll.historical_pix_key_type_bank_account_duplicate' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12\" [ngClass]=\"{'required': pixKeyType !== 'BANK_ACCOUNT'}\">\n <label>{{'hcm.payroll.employees_addition_pix_key' | translate}}</label>\n <ng-container [ngSwitch]=\"pixKeyType\">\n <input *ngSwitchCase=\"'TELEPHONE'\" only-number\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n (keyup)=\"phoneMask($event)\" maxlength=\"15\"\n placeholder=\"(__) ____-____\">\n <p-inputMask *ngSwitchCase=\"'CPF'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"___.___.___-__\"\n mask=\"999.999.999-99\" [unmask]=\"true\"></p-inputMask>\n <p-inputMask *ngSwitchCase=\"'CNPJ'\"\n id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"__.___.___/____-__\"\n mask=\"99.999.999/9999-99\" [unmask]=\"true\"></p-inputMask>\n <input *ngSwitchCase=\"'EMAIL'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"\n placeholder=\"{{'hcm.payroll.employees_addition_email'|translate}}\"/>\n <input *ngSwitchCase=\"'BANK_ACCOUNT'\" disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\" maxlength=\"100\" />\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
|
|
10232
10618
|
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}"]
|
|
10233
10619
|
})
|
|
10234
10620
|
], HistoricalPixAccountFormComponent);
|
|
10235
10621
|
return HistoricalPixAccountFormComponent;
|
|
10236
|
-
}());
|
|
10237
|
-
|
|
10238
|
-
var HistoricalPixAccountService = /** @class */ (function () {
|
|
10239
|
-
function HistoricalPixAccountService(http) {
|
|
10240
|
-
this.http = http;
|
|
10241
|
-
}
|
|
10242
|
-
HistoricalPixAccountService.prototype.query = function (path, body, service) {
|
|
10243
|
-
if (service === void 0) { service = ServiceType.PAYROLL; }
|
|
10244
|
-
return this.http.query(path, body, service);
|
|
10245
|
-
};
|
|
10246
|
-
HistoricalPixAccountService.ctorParameters = function () { return [
|
|
10247
|
-
{ type: HttpClientService }
|
|
10248
|
-
]; };
|
|
10249
|
-
HistoricalPixAccountService = __decorate([
|
|
10250
|
-
Injectable()
|
|
10251
|
-
], HistoricalPixAccountService);
|
|
10252
|
-
return HistoricalPixAccountService;
|
|
10253
|
-
}());
|
|
10622
|
+
}(HistoricakPixAccountBase));
|
|
10254
10623
|
|
|
10255
10624
|
var HistoricalPixAccountModule = /** @class */ (function () {
|
|
10256
10625
|
function HistoricalPixAccountModule() {
|
|
@@ -10280,6 +10649,8 @@ var HistoricalPixAccountModule = /** @class */ (function () {
|
|
|
10280
10649
|
CustomFieldsModule$1,
|
|
10281
10650
|
PanelModule,
|
|
10282
10651
|
InputMaskModule,
|
|
10652
|
+
DropdownModule,
|
|
10653
|
+
TabViewModule,
|
|
10283
10654
|
],
|
|
10284
10655
|
declarations: [HistoricalPixAccountComponent, HistoricalPixAccountFormComponent],
|
|
10285
10656
|
providers: [HistoricalPixAccountService, ConfirmationService],
|
|
@@ -10322,7 +10693,7 @@ var HistoricalPixAccountListService = /** @class */ (function () {
|
|
|
10322
10693
|
|
|
10323
10694
|
var moment$e = moment_;
|
|
10324
10695
|
var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
10325
|
-
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
|
|
10696
|
+
function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService, sharedStateService) {
|
|
10326
10697
|
this.confirmationService = confirmationService;
|
|
10327
10698
|
this.translateService = translateService;
|
|
10328
10699
|
this.activatedRoute = activatedRoute;
|
|
@@ -10330,11 +10701,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10330
10701
|
this.router = router;
|
|
10331
10702
|
this.messageService = messageService;
|
|
10332
10703
|
this.historicalPixAccountListService = historicalPixAccountListService;
|
|
10704
|
+
this.sharedStateService = sharedStateService;
|
|
10333
10705
|
this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
|
|
10334
10706
|
this.keyPayload = "historicalEmployeePix";
|
|
10335
10707
|
this.withSidebar = true;
|
|
10336
10708
|
this.isOnlyView = new EventEmitter();
|
|
10709
|
+
this.isOnlyEdit = new EventEmitter();
|
|
10337
10710
|
this.enableView = new EventEmitter();
|
|
10711
|
+
this.isEditJudicialDependentPix = new EventEmitter();
|
|
10338
10712
|
this.ngUnsubscribe = new Subject();
|
|
10339
10713
|
this.loading = true;
|
|
10340
10714
|
this.columns = [
|
|
@@ -10354,6 +10728,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10354
10728
|
HistoricalPixAccountListComponent.prototype.ngOnDestroy = function () {
|
|
10355
10729
|
this.ngUnsubscribe.next();
|
|
10356
10730
|
this.ngUnsubscribe.complete();
|
|
10731
|
+
this.unsubscribe();
|
|
10357
10732
|
};
|
|
10358
10733
|
HistoricalPixAccountListComponent.prototype.ngAfterViewInit = function () {
|
|
10359
10734
|
this.cd.detectChanges();
|
|
@@ -10373,6 +10748,9 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10373
10748
|
label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
|
|
10374
10749
|
command: function () {
|
|
10375
10750
|
if (_this.isAllowToViewHistorical) {
|
|
10751
|
+
_this.sharedStateService.setHideField(true);
|
|
10752
|
+
_this.sharedStateService.setShowButton(false);
|
|
10753
|
+
_this.sharedStateService.setShowEditMode(false);
|
|
10376
10754
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10377
10755
|
if (_this.withSidebar) {
|
|
10378
10756
|
_this.isOnlyView.emit(true);
|
|
@@ -10381,6 +10759,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10381
10759
|
});
|
|
10382
10760
|
}
|
|
10383
10761
|
else {
|
|
10762
|
+
_this.sharedStateService.setSaveButton(false);
|
|
10384
10763
|
_this.enableView.emit(dateChange);
|
|
10385
10764
|
}
|
|
10386
10765
|
}
|
|
@@ -10393,14 +10772,17 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10393
10772
|
label: this.translateService.instant("hcm.payroll.edit"),
|
|
10394
10773
|
command: function () {
|
|
10395
10774
|
if (_this.isAllowToEditHistorical) {
|
|
10775
|
+
_this.sharedStateService.setHideField(true);
|
|
10776
|
+
_this.sharedStateService.setShowButton(false);
|
|
10777
|
+
_this.sharedStateService.setShowEditMode(true);
|
|
10396
10778
|
var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
|
|
10397
10779
|
if (_this.withSidebar) {
|
|
10398
|
-
_this.isOnlyView.emit(false);
|
|
10399
10780
|
_this.router.navigate(["historical-pix-account/" + dateChange], {
|
|
10400
10781
|
relativeTo: _this.activatedRoute,
|
|
10401
10782
|
});
|
|
10402
10783
|
}
|
|
10403
10784
|
else {
|
|
10785
|
+
_this.sharedStateService.setSaveButton(true);
|
|
10404
10786
|
_this.enableView.emit(dateChange);
|
|
10405
10787
|
}
|
|
10406
10788
|
}
|
|
@@ -10486,6 +10868,24 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10486
10868
|
this.lastRecord = payload[0];
|
|
10487
10869
|
}
|
|
10488
10870
|
};
|
|
10871
|
+
HistoricalPixAccountListComponent.prototype.unsubscribe = function () {
|
|
10872
|
+
if (this._subscription) {
|
|
10873
|
+
this._subscription.unsubscribe();
|
|
10874
|
+
}
|
|
10875
|
+
};
|
|
10876
|
+
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", {
|
|
10877
|
+
set: function (subject) {
|
|
10878
|
+
var _this = this;
|
|
10879
|
+
this.unsubscribe();
|
|
10880
|
+
if (subject) {
|
|
10881
|
+
this._subscription = subject.subscribe(function (value) {
|
|
10882
|
+
_this.sharedStateService.setHideField(value);
|
|
10883
|
+
});
|
|
10884
|
+
}
|
|
10885
|
+
},
|
|
10886
|
+
enumerable: true,
|
|
10887
|
+
configurable: true
|
|
10888
|
+
});
|
|
10489
10889
|
Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
|
|
10490
10890
|
get: function () {
|
|
10491
10891
|
return (this.permission["incluir"]);
|
|
@@ -10538,7 +10938,8 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10538
10938
|
{ type: ChangeDetectorRef },
|
|
10539
10939
|
{ type: Router },
|
|
10540
10940
|
{ type: MessageService },
|
|
10541
|
-
{ type: HistoricalPixAccountListService }
|
|
10941
|
+
{ type: HistoricalPixAccountListService },
|
|
10942
|
+
{ type: SharedStateService }
|
|
10542
10943
|
]; };
|
|
10543
10944
|
__decorate([
|
|
10544
10945
|
ViewChild(CustomFieldsComponent$1, { static: false })
|
|
@@ -10564,12 +10965,24 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
|
|
|
10564
10965
|
__decorate([
|
|
10565
10966
|
Input()
|
|
10566
10967
|
], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
|
|
10968
|
+
__decorate([
|
|
10969
|
+
Input()
|
|
10970
|
+
], HistoricalPixAccountListComponent.prototype, "hideField", void 0);
|
|
10567
10971
|
__decorate([
|
|
10568
10972
|
Output()
|
|
10569
10973
|
], HistoricalPixAccountListComponent.prototype, "isOnlyView", void 0);
|
|
10974
|
+
__decorate([
|
|
10975
|
+
Output()
|
|
10976
|
+
], HistoricalPixAccountListComponent.prototype, "isOnlyEdit", void 0);
|
|
10570
10977
|
__decorate([
|
|
10571
10978
|
Output()
|
|
10572
10979
|
], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
|
|
10980
|
+
__decorate([
|
|
10981
|
+
Output()
|
|
10982
|
+
], HistoricalPixAccountListComponent.prototype, "isEditJudicialDependentPix", void 0);
|
|
10983
|
+
__decorate([
|
|
10984
|
+
Input()
|
|
10985
|
+
], HistoricalPixAccountListComponent.prototype, "hideFieldsOnAdd$", null);
|
|
10573
10986
|
__decorate([
|
|
10574
10987
|
Input()
|
|
10575
10988
|
], HistoricalPixAccountListComponent.prototype, "reloadList", null);
|
|
@@ -10619,5 +11032,5 @@ var HistoricalPixAccountListModule = /** @class */ (function () {
|
|
|
10619
11032
|
* Generated bundle index. Do not edit.
|
|
10620
11033
|
*/
|
|
10621
11034
|
|
|
10622
|
-
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,
|
|
11035
|
+
export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountListComponent, HistoricalPixAccountListModule, HistoricalPixAccountListService, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SharedStateService, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricakPixAccountBase as ɵr, HistoricalPixAccountFormComponent as ɵs };
|
|
10623
11036
|
//# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map
|