@senior-gestao-pessoas/payroll-core 9.0.0 → 9.1.0-5e184124-4e09-4f1a-9bdd-3cc4483b1cbf

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.
Files changed (40) hide show
  1. package/bundles/senior-gestao-pessoas-payroll-core.umd.js +1015 -3
  2. package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
  5. package/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.d.ts +74 -0
  6. package/components/historical-pix-account/historical-pix-account.component.d.ts +74 -0
  7. package/components/historical-pix-account/historical-pix-account.module.d.ts +2 -0
  8. package/components/historical-pix-account/historical-pix-account.service.d.ts +8 -0
  9. package/components/historical-pix-account/index.d.ts +3 -0
  10. package/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.d.ts +5 -1
  11. package/components/utils/format-utils/format-utils.service.d.ts +33 -0
  12. package/components/utils/generic-validators.d.ts +24 -0
  13. package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +312 -0
  14. package/esm2015/components/historical-pix-account/historical-pix-account.component.js +323 -0
  15. package/esm2015/components/historical-pix-account/historical-pix-account.module.js +58 -0
  16. package/esm2015/components/historical-pix-account/historical-pix-account.service.js +20 -0
  17. package/esm2015/components/historical-pix-account/index.js +4 -0
  18. package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +21 -4
  19. package/esm2015/components/utils/format-utils/format-utils.service.js +96 -0
  20. package/esm2015/components/utils/generic-validators.js +164 -0
  21. package/esm2015/public_api.js +2 -1
  22. package/esm2015/senior-gestao-pessoas-payroll-core.js +2 -1
  23. package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +336 -0
  24. package/esm5/components/historical-pix-account/historical-pix-account.component.js +357 -0
  25. package/esm5/components/historical-pix-account/historical-pix-account.module.js +61 -0
  26. package/esm5/components/historical-pix-account/historical-pix-account.service.js +22 -0
  27. package/esm5/components/historical-pix-account/index.js +4 -0
  28. package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +22 -4
  29. package/esm5/components/utils/format-utils/format-utils.service.js +100 -0
  30. package/esm5/components/utils/generic-validators.js +167 -0
  31. package/esm5/public_api.js +2 -1
  32. package/esm5/senior-gestao-pessoas-payroll-core.js +2 -1
  33. package/fesm2015/senior-gestao-pessoas-payroll-core.js +943 -4
  34. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  35. package/fesm5/senior-gestao-pessoas-payroll-core.js +1012 -4
  36. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  37. package/package.json +1 -1
  38. package/public_api.d.ts +1 -0
  39. package/senior-gestao-pessoas-payroll-core.d.ts +1 -0
  40. package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
@@ -3364,8 +3364,9 @@ var InputRestAutoCompleteEmployeeModelService = /** @class */ (function () {
3364
3364
  }());
3365
3365
 
3366
3366
  var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3367
- function InputRestAutoCompleteEmployeeModelComponent(service) {
3367
+ function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
3368
3368
  this.service = service;
3369
+ this.activatedRoute = activatedRoute;
3369
3370
  this.forceSelection = true;
3370
3371
  this.keyName = 'name';
3371
3372
  this.onBlur = new EventEmitter();
@@ -3373,8 +3374,14 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3373
3374
  this.onClear = new EventEmitter();
3374
3375
  this.modelChange = new EventEmitter();
3375
3376
  this.suggestions = [];
3377
+ this.ngUnsubscribe = new Subject();
3376
3378
  }
3377
- InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () { };
3379
+ InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () {
3380
+ var _this = this;
3381
+ this.activatedRoute.data.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (data) {
3382
+ _this.useWorkflow = !!(data && data.useWorkflow);
3383
+ });
3384
+ };
3378
3385
  InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
3379
3386
  var _this = this;
3380
3387
  var query = event.query;
@@ -3434,6 +3441,13 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3434
3441
  if (this.employeeType) {
3435
3442
  returnFilter['employeeType'] = this.employeeType;
3436
3443
  }
3444
+ /**
3445
+ * If para uso do BPO
3446
+ * Serve para tirar os colaboradores demitidos do dropbox do autocomplete
3447
+ */
3448
+ if (this.useWorkflow) {
3449
+ returnFilter['timeTrackingResumeType'] = { key: "FIRED" };
3450
+ }
3437
3451
  return returnFilter;
3438
3452
  };
3439
3453
  /**
@@ -3462,7 +3476,8 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3462
3476
  configurable: true
3463
3477
  });
3464
3478
  InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
3465
- { type: InputRestAutoCompleteEmployeeModelService }
3479
+ { type: InputRestAutoCompleteEmployeeModelService },
3480
+ { type: ActivatedRoute }
3466
3481
  ]; };
3467
3482
  __decorate([
3468
3483
  Input()
@@ -9141,6 +9156,999 @@ var FromToModule = /** @class */ (function () {
9141
9156
  return FromToModule;
9142
9157
  }());
9143
9158
 
9159
+ var FormatUtilsService = /** @class */ (function () {
9160
+ function FormatUtilsService() {
9161
+ }
9162
+ /**
9163
+ * Retorna o CPF formatado
9164
+ * @param cpf CPF
9165
+ */
9166
+ FormatUtilsService.getFormattedCpf = function (cpf) {
9167
+ if (cpf) {
9168
+ return cpf
9169
+ .replace(/\D/g, "")
9170
+ .replace(/(\d{3})(\d)/, "$1.$2")
9171
+ .replace(/(\d{3})(\d)/, "$1.$2")
9172
+ .replace(/(\d{3})(\d)/, "$1-$2");
9173
+ }
9174
+ return null;
9175
+ };
9176
+ /**
9177
+ * Retorna o CNPJ formatado
9178
+ * @param cnpj CNPJ
9179
+ */
9180
+ FormatUtilsService.getFormattedCnpj = function (cnpj) {
9181
+ if (cnpj) {
9182
+ return cnpj
9183
+ .replace(/\D/g, "")
9184
+ .replace(/(\d{2})(\d)/, "$1.$2")
9185
+ .replace(/(\d{3})(\d)/, "$1.$2")
9186
+ .replace(/(\d{3})(\d)/, "$1/$2")
9187
+ .replace(/(\d{4})(\d)/, "$1-$2");
9188
+ }
9189
+ return null;
9190
+ };
9191
+ /**
9192
+ * Retorna a mascara do CPF/CNPJ
9193
+ * @param key Valores possíveis são CPF ou CNPJ
9194
+ */
9195
+ FormatUtilsService.getCpfCnpjMask = function (key) {
9196
+ switch (key) {
9197
+ case "CPF":
9198
+ return "999.999.999-99";
9199
+ case "CNPJ":
9200
+ return "99.999.999/9999-99";
9201
+ default:
9202
+ return "";
9203
+ }
9204
+ };
9205
+ /**
9206
+ * Metódo para formatar o número de telefone.
9207
+ * @param telephoneNumber String contendo o número de telefone.
9208
+ * @returns String formatada com o número de telefone.
9209
+ */
9210
+ FormatUtilsService.getFormattedTelephoneNumber = function (telephoneNumber) {
9211
+ var tel = telephoneNumber.replace(/\D/g, '');
9212
+ tel = tel.replace(/^0/, '');
9213
+ if (tel.length > 10) {
9214
+ // ########## -> (##) #####-####
9215
+ tel = tel.replace(/^(\d{2})?(\d{5})?(\d{4}).*/, '($1) $2-$3');
9216
+ }
9217
+ else if (tel.length > 9) {
9218
+ // AA######### -> (AA) ####-####
9219
+ tel = tel.replace(/^(\d{2})?(\d{4})?(\d{4}).*/, '($1) $2-$3');
9220
+ }
9221
+ else if (tel.length > 5) {
9222
+ // ####### -> (##) ####-#
9223
+ tel = tel.replace(/^(\d{2})?(\d{4})?(\d{0,4}).*/, '($1) $2-$3');
9224
+ }
9225
+ else if (tel.length > 1) {
9226
+ // #### -> (##) ##
9227
+ tel = tel.replace(/^(\d{2})?(\d{0,5}).*/, '($1) $2');
9228
+ }
9229
+ else {
9230
+ if (tel !== '') {
9231
+ tel = tel.replace(/^(\d*)/, '($1');
9232
+ }
9233
+ }
9234
+ return tel;
9235
+ };
9236
+ /**
9237
+ * Metódo para formatar o número de telefone de um campo Input.
9238
+ * @param event Evento do Input do campo de telefone.
9239
+ */
9240
+ FormatUtilsService.formatTelephoneInputEvent = function (event) {
9241
+ var telephoneNumber = event.target.value;
9242
+ // Permite Backspace para usuário remover ")" e "-"
9243
+ if (event.keyCode === 8 && (telephoneNumber.length === 9 || telephoneNumber.length === 4 || telephoneNumber.length === 3)) {
9244
+ return;
9245
+ }
9246
+ event.target.value = FormatUtilsService.getFormattedTelephoneNumber(telephoneNumber);
9247
+ };
9248
+ /**
9249
+ * Metódo para formatar a porcentagem para 2 casas decimais.
9250
+ * @param value Número a ser formatado.
9251
+ */
9252
+ FormatUtilsService.getFormattedPercentage = function (value) {
9253
+ return parseFloat(value).toFixed(2).replace('.', ',') + '%';
9254
+ };
9255
+ return FormatUtilsService;
9256
+ }());
9257
+
9258
+ var HistoricalPixAccountComponent = /** @class */ (function () {
9259
+ function HistoricalPixAccountComponent(translateService, cd, formBuilder) {
9260
+ var _this = this;
9261
+ this.translateService = translateService;
9262
+ this.cd = cd;
9263
+ this.formBuilder = formBuilder;
9264
+ this.recordByRow = 1;
9265
+ this.showDateChange = false;
9266
+ this.isEditMode = false;
9267
+ this.isViewMode = false;
9268
+ this.withSideBar = true;
9269
+ this.visibleChange = new EventEmitter();
9270
+ this.ngUnsubscribe = new Subject();
9271
+ this.orderBy = {
9272
+ field: "dateChange",
9273
+ direction: DirectionEnumeration.DESC,
9274
+ };
9275
+ this.pixAccountItemInput = {};
9276
+ this.totalRecords = 0;
9277
+ this.actionLabel = this.translateService.instant("hcm.payroll.entries_query_actions_total_title");
9278
+ this.loading = true;
9279
+ this.listData = [];
9280
+ this.listDataNoPage = [];
9281
+ this.cols = [
9282
+ {
9283
+ label: this.translateService.instant("hcm.payroll.employees_addition_pix_key_type"),
9284
+ field: "pixKeyType",
9285
+ },
9286
+ {
9287
+ label: this.translateService.instant("hcm.payroll.employees_addition_pix_key"),
9288
+ field: "pixKey",
9289
+ },
9290
+ {
9291
+ label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
9292
+ field: "percentage",
9293
+ },
9294
+ ];
9295
+ this.actions = function (rowData, key) {
9296
+ if (rowData === void 0) { rowData = {}; }
9297
+ return [
9298
+ {
9299
+ visible: _this.isEditMode,
9300
+ label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9301
+ command: function () {
9302
+ rowData["index"] = key;
9303
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9304
+ _this.visible = true;
9305
+ },
9306
+ },
9307
+ {
9308
+ visible: !!(!_this.isEditMode && _this.withSideBar),
9309
+ label: _this.translateService.instant("hcm.payroll.edit"),
9310
+ command: function () {
9311
+ rowData["index"] = key;
9312
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9313
+ _this.visible = true;
9314
+ },
9315
+ },
9316
+ {
9317
+ visible: !_this.isEditMode,
9318
+ label: _this.translateService.instant("hcm.payroll.delete"),
9319
+ command: function () {
9320
+ _this.loading = true;
9321
+ _this.deleteAnnuityItem(key);
9322
+ },
9323
+ },
9324
+ ];
9325
+ };
9326
+ this.createFormGroup();
9327
+ }
9328
+ HistoricalPixAccountComponent.prototype.ngOnInit = function () {
9329
+ this.formGroup.setControl(this.fieldFormGroup, this.historicalPixAccountList);
9330
+ };
9331
+ HistoricalPixAccountComponent.prototype.createFormGroup = function () {
9332
+ this.historicalPixAccountList = this.formBuilder.group({
9333
+ historicalPixAccountList: this.formBuilder.control(null),
9334
+ });
9335
+ };
9336
+ HistoricalPixAccountComponent.prototype.ngOnDestroy = function () {
9337
+ this.ngUnsubscribe.next();
9338
+ this.ngUnsubscribe.complete();
9339
+ };
9340
+ HistoricalPixAccountComponent.prototype.ngAfterViewInit = function () {
9341
+ this.cd.detectChanges();
9342
+ };
9343
+ HistoricalPixAccountComponent.prototype.onLazyLoad = function (event) {
9344
+ var _this = this;
9345
+ var first = event && event.first ? event.first : 0;
9346
+ var rows = event && event.rows ? event.rows : this.recordByRow;
9347
+ var arrList = this.getHistoricalPixAccountList();
9348
+ this.listData = [];
9349
+ this.totalRecords = null;
9350
+ if (event && event.multiSortMeta && event.multiSortMeta.length) {
9351
+ event.multiSortMeta.map(function (value) {
9352
+ _this.orderBy.field = value.field;
9353
+ _this.orderBy.direction = value.order === 1 ? DirectionEnumeration.ASC : DirectionEnumeration.DESC;
9354
+ });
9355
+ }
9356
+ if (arrList && arrList.length) {
9357
+ this.totalRecords = arrList.length;
9358
+ this.listData = arrList;
9359
+ this.listDataNoPage = __spread(arrList);
9360
+ this.listData.sort(compareValues(this.orderBy.field, this.orderBy.direction));
9361
+ this.listData = this.listData.slice(first, (first + rows));
9362
+ }
9363
+ else {
9364
+ this.listDataNoPage = [];
9365
+ }
9366
+ if (this.isEditMode || arrList && arrList.length === 1) {
9367
+ this.refreshCssInIE11();
9368
+ }
9369
+ this.loading = false;
9370
+ };
9371
+ /**
9372
+ * Um Bug de CSS que acontece nas linhas da tabela, que resolve só atualizando qualquer parte do CSS da pagina.
9373
+ */
9374
+ HistoricalPixAccountComponent.prototype.refreshCssInIE11 = function () {
9375
+ if (/msie\s|trident\/|edge\//i.test(window.navigator.userAgent)) {
9376
+ setTimeout(function () {
9377
+ var row = document.getElementsByClassName("row0");
9378
+ if (row && row[0])
9379
+ row[0].className = 'refresh';
9380
+ }, 1);
9381
+ }
9382
+ };
9383
+ HistoricalPixAccountComponent.prototype.add = function () {
9384
+ this.pixAccountItemInput = {};
9385
+ this.visible = true;
9386
+ };
9387
+ HistoricalPixAccountComponent.prototype.deleteAnnuityItem = function (index) {
9388
+ var newlist = __spread(this.getHistoricalPixAccountList());
9389
+ newlist.sort(compareValues(this.orderBy.field, this.orderBy.direction));
9390
+ delete newlist[index];
9391
+ newlist = newlist.filter(function (val) { return val; });
9392
+ this.historicalPixAccountList.get("historicalPixAccountList").setValue(newlist);
9393
+ this.verifyTotalPercentage();
9394
+ this.onLazyLoad();
9395
+ };
9396
+ HistoricalPixAccountComponent.prototype.getHistoricalPixAccountList = function () {
9397
+ if (this.historicalPixAccountList.get("historicalPixAccountList") &&
9398
+ this.historicalPixAccountList.get("historicalPixAccountList").value &&
9399
+ this.historicalPixAccountList.get("historicalPixAccountList").value.length)
9400
+ return this.historicalPixAccountList.get("historicalPixAccountList") && this.historicalPixAccountList.get("historicalPixAccountList").value;
9401
+ else
9402
+ return [];
9403
+ };
9404
+ HistoricalPixAccountComponent.prototype.addItemInList = function ($event) {
9405
+ var index = $event && $event.index >= 0 ? $event.index : null;
9406
+ var newDataList = this.getHistoricalPixAccountList() ? this.getHistoricalPixAccountList() : [];
9407
+ if (index != null) {
9408
+ newDataList[index] = $event;
9409
+ delete $event.index;
9410
+ }
9411
+ else {
9412
+ if (isValid($event["customFields"]) && Object.keys($event["customFields"]).length) {
9413
+ var customValue = mountCustomToSave($event["customFields"]);
9414
+ $event["customFields"] = __spread(customValue);
9415
+ }
9416
+ $event["dateChange"] = this.dateChange;
9417
+ newDataList.push($event);
9418
+ }
9419
+ this.historicalPixAccountList.get("historicalPixAccountList").setValue(newDataList);
9420
+ this.verifyTotalPercentage();
9421
+ this.onLazyLoad({ first: this.getNumberPageByIndex(index, newDataList) });
9422
+ };
9423
+ HistoricalPixAccountComponent.prototype.getNumberPageByIndex = function (index, list) {
9424
+ if (index) {
9425
+ var total = list.length;
9426
+ var sub = this.recordByRow - 1;
9427
+ return Math.ceil(total / this.recordByRow) * this.recordByRow - sub - 1;
9428
+ }
9429
+ return null;
9430
+ };
9431
+ HistoricalPixAccountComponent.prototype.verifyTotalPercentage = function () {
9432
+ var list = this.getHistoricalPixAccountList() ? this.getHistoricalPixAccountList() : [];
9433
+ var arrayPercentage = [];
9434
+ if (!list.length)
9435
+ return this.msgTotalLimitByPercentage = null;
9436
+ list.filter(function (item) { return arrayPercentage.push(item && item["percentage"]); });
9437
+ var sumPercentage = arrayPercentage.reduce(function (total, percentage) {
9438
+ return total + percentage;
9439
+ }, 0);
9440
+ if (sumPercentage === 100) {
9441
+ this.msgTotalLimitByPercentage = this.translateService.instant("hcm.payroll.historical_pix_account_msg_limit_total_by_percentage");
9442
+ }
9443
+ else {
9444
+ this.msgTotalLimitByPercentage = null;
9445
+ }
9446
+ };
9447
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "scopedActions", {
9448
+ get: function () {
9449
+ return this.actions.bind(this);
9450
+ },
9451
+ enumerable: true,
9452
+ configurable: true
9453
+ });
9454
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "recordsMessage", {
9455
+ get: function () {
9456
+ return (this.totalRecords || 0) + " " + (this.totalRecords === 1 ? this.translateService.instant("hcm.payroll.admission_register") : this.translateService.instant("hcm.payroll.admission_registers"));
9457
+ },
9458
+ enumerable: true,
9459
+ configurable: true
9460
+ });
9461
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "getTooltipAndDisableButtonAdd", {
9462
+ get: function () {
9463
+ return this.dateChange ? null : this.msgTooltipAdd;
9464
+ },
9465
+ enumerable: true,
9466
+ configurable: true
9467
+ });
9468
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "dateChange", {
9469
+ get: function () {
9470
+ return this._dateChange;
9471
+ },
9472
+ set: function (value) {
9473
+ var _this = this;
9474
+ this._dateChange = value;
9475
+ if (this._dateChange) {
9476
+ this.listData.filter(function (row) { return row["dateChange"] = _this._dateChange; });
9477
+ }
9478
+ },
9479
+ enumerable: true,
9480
+ configurable: true
9481
+ });
9482
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "displayDateChange", {
9483
+ get: function () {
9484
+ return this._displayDateChange;
9485
+ },
9486
+ set: function (value) {
9487
+ var _this = this;
9488
+ this._displayDateChange = value;
9489
+ if (this._displayDateChange) {
9490
+ this.listData.filter(function (row) { return row["displayDateChange"] = _this._displayDateChange; });
9491
+ }
9492
+ },
9493
+ enumerable: true,
9494
+ configurable: true
9495
+ });
9496
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "addListData", {
9497
+ set: function (list) {
9498
+ this.loading = true;
9499
+ this.historicalPixAccountList.get("historicalPixAccountList").patchValue(list);
9500
+ this.verifyTotalPercentage();
9501
+ this.onLazyLoad();
9502
+ },
9503
+ enumerable: true,
9504
+ configurable: true
9505
+ });
9506
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "visible", {
9507
+ get: function () {
9508
+ return this._visible;
9509
+ },
9510
+ set: function (value) {
9511
+ this._visible = value;
9512
+ this.visibleChange.emit(this.visible);
9513
+ },
9514
+ enumerable: true,
9515
+ configurable: true
9516
+ });
9517
+ HistoricalPixAccountComponent.prototype.close = function () {
9518
+ this.visible = false;
9519
+ };
9520
+ HistoricalPixAccountComponent.prototype.getFormattedCpfTelephoneNumber = function (telephoneNumber) {
9521
+ return FormatUtilsService.getFormattedTelephoneNumber(telephoneNumber);
9522
+ };
9523
+ HistoricalPixAccountComponent.prototype.getFormattedCpf = function (cpf) {
9524
+ return FormatUtilsService.getFormattedCpf(cpf);
9525
+ };
9526
+ HistoricalPixAccountComponent.prototype.getFormattedCnpj = function (cnpj) {
9527
+ return FormatUtilsService.getFormattedCnpj(cnpj);
9528
+ };
9529
+ HistoricalPixAccountComponent.prototype.getFormattedPercentage = function (value) {
9530
+ return FormatUtilsService.getFormattedPercentage(value);
9531
+ };
9532
+ HistoricalPixAccountComponent.ctorParameters = function () { return [
9533
+ { type: TranslateService },
9534
+ { type: ChangeDetectorRef },
9535
+ { type: FormBuilder }
9536
+ ]; };
9537
+ __decorate([
9538
+ ViewChild(CustomFieldsComponent$1, { static: false })
9539
+ ], HistoricalPixAccountComponent.prototype, "customFields", void 0);
9540
+ __decorate([
9541
+ Input()
9542
+ ], HistoricalPixAccountComponent.prototype, "formGroup", void 0);
9543
+ __decorate([
9544
+ Input()
9545
+ ], HistoricalPixAccountComponent.prototype, "fieldFormGroup", void 0);
9546
+ __decorate([
9547
+ Input()
9548
+ ], HistoricalPixAccountComponent.prototype, "_dateChange", void 0);
9549
+ __decorate([
9550
+ Input()
9551
+ ], HistoricalPixAccountComponent.prototype, "_displayDateChange", void 0);
9552
+ __decorate([
9553
+ Input()
9554
+ ], HistoricalPixAccountComponent.prototype, "recordByRow", void 0);
9555
+ __decorate([
9556
+ Input()
9557
+ ], HistoricalPixAccountComponent.prototype, "showDateChange", void 0);
9558
+ __decorate([
9559
+ Input()
9560
+ ], HistoricalPixAccountComponent.prototype, "msgTooltipAdd", void 0);
9561
+ __decorate([
9562
+ Input()
9563
+ ], HistoricalPixAccountComponent.prototype, "isEditMode", void 0);
9564
+ __decorate([
9565
+ Input()
9566
+ ], HistoricalPixAccountComponent.prototype, "isViewMode", void 0);
9567
+ __decorate([
9568
+ Input()
9569
+ ], HistoricalPixAccountComponent.prototype, "currency", void 0);
9570
+ __decorate([
9571
+ Input()
9572
+ ], HistoricalPixAccountComponent.prototype, "customEntity", void 0);
9573
+ __decorate([
9574
+ Input()
9575
+ ], HistoricalPixAccountComponent.prototype, "customService", void 0);
9576
+ __decorate([
9577
+ Input()
9578
+ ], HistoricalPixAccountComponent.prototype, "withSideBar", void 0);
9579
+ __decorate([
9580
+ Input()
9581
+ ], HistoricalPixAccountComponent.prototype, "paramsForm", void 0);
9582
+ __decorate([
9583
+ Input()
9584
+ ], HistoricalPixAccountComponent.prototype, "dateChange", null);
9585
+ __decorate([
9586
+ Input()
9587
+ ], HistoricalPixAccountComponent.prototype, "displayDateChange", null);
9588
+ __decorate([
9589
+ Input()
9590
+ ], HistoricalPixAccountComponent.prototype, "addListData", null);
9591
+ __decorate([
9592
+ Input()
9593
+ ], HistoricalPixAccountComponent.prototype, "visible", null);
9594
+ HistoricalPixAccountComponent = __decorate([
9595
+ Component({
9596
+ // tslint:disable-next-line:component-selector
9597
+ selector: "c-historical-pix-account",
9598
+ template: "<s-sidebar *ngIf=\"withSideBar\" [visible]=\"visible\" (visibleChange)=\"close()\"\n header=\"{{'hcm.payroll.historical_pix_account_title_form'|translate}}\">\n<pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"></pix-account>\n</s-sidebar>\n\n<div *ngIf=\"!withSideBar\">\n <pix-account [(visible)]=\"visible\"\n [isEditAndViewValue]=\"pixAccountItemInput\"\n [currency]=\"currency\"\n [customEntity]=\"customEntity\"\n [customService]=\"customService\"\n [getListPixAccount]=\"listDataNoPage\"\n [withSideBar]=\"false\"\n [isViewMode]=\"isViewMode\"\n [paramsForm]=\"paramsForm\"\n (pixAccountItemToList)=\"addItemInList($event)\"></pix-account>\n</div>\n\n<div class=\"ui-g-1\" *ngIf=\"withSideBar && !isEditMode\">\n <div class=\"form-group \">\n <s-button id=\"ta-addPayAnnuity\"\n [disabled]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n (onClick)=\"add()\"\n [pTooltip]=\"getTooltipAndDisableButtonAdd || msgTotalLimitByPercentage\"\n tooltipPosition=\"top\"\n label=\"{{'hcm.payroll.historical_pix_account_add'|translate}}\"></s-button>\n </div>\n</div>\n<div class=\"ui-g-12\">\n <p-table\n id=\"table-annuity\"\n [value]=\"listData\"\n [columns]=\"cols\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [sortMode]=\"'multiple'\"\n *sLoadingState=\"loading\"\n [rows]=\"recordByRow\"\n dataKey=\"id\">\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-m'\">\n <col [ngClass]=\"'col-default-s'\">\n <col [ngClass]=\"'col-action'\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th\n [pSortableColumn]=\"'pixKeyType'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\" id=\"table-0\">\n <span\n id=\"table-annuity-s-0\">{{ 'hcm.payroll.employees_addition_pix_key_type' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key_type' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'pixKey'\"\n [pTooltip]=\"'hcm.payroll.employees_addition_pix_key' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.employees_addition_pix_key' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.employees_addition_pix_key' | translate\"></p-sortIcon>\n </div>\n </th>\n\n <th\n [pSortableColumn]=\"'percentage'\"\n [pTooltip]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n >\n <div class=\"senior-header\">\n <span>{{ 'hcm.payroll.historical_pix_account_label_percentage' | translate }}</span>\n <p-sortIcon class=\"p-sorticon-status\"\n [field]=\"'hcm.payroll.historical_pix_account_label_percentage' | translate\"></p-sortIcon>\n </div>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\"></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n\n <tr [ngClass]=\"'row'+key\" [pSelectableRow]=\"rowData\">\n <td [pTooltip]=\"rowData?.pixKeyType.value\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <span>{{ rowData?.pixKeyType.value }}</span>\n </td>\n <td [pTooltip]=\"rowData?.pixKey\" tooltipPosition=\"top\"\n showDelay=\"500\">\n <ng-container [ngSwitch]=\"rowData?.pixKeyType.key\">\n <span *ngSwitchCase=\"'TELEPHONE'\">{{ getFormattedCpfTelephoneNumber(rowData?.pixKey) }}</span>\n <span *ngSwitchCase=\"'CPF'\">{{ getFormattedCpf(rowData?.pixKey) }}</span>\n <span *ngSwitchCase=\"'CNPJ'\">{{ getFormattedCnpj(rowData?.pixKey) }}</span>\n <span *ngSwitchDefault>{{ rowData?.pixKey }}</span>\n </ng-container>\n\n </td>\n <td [pTooltip]=\"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",
9599
+ 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}"]
9600
+ })
9601
+ ], HistoricalPixAccountComponent);
9602
+ return HistoricalPixAccountComponent;
9603
+ }());
9604
+
9605
+ var GenericValidator = /** @class */ (function () {
9606
+ function GenericValidator() {
9607
+ }
9608
+ /**
9609
+ * Valida o CEI (Cadastro específico de INSS) digitado.
9610
+ */
9611
+ GenericValidator.isValidCei = function (control) {
9612
+ var cei = control.value;
9613
+ if (!cei)
9614
+ return null;
9615
+ else if (cei.length != 11)
9616
+ return null;
9617
+ var multiplicadorBase = "3298765432";
9618
+ var total = 0;
9619
+ var resto = 0;
9620
+ var multiplicando = 0;
9621
+ var multiplicador = 0;
9622
+ if (cei.length !== 11 ||
9623
+ cei === "00000000000" ||
9624
+ cei === "11111111111" ||
9625
+ cei === "22222222222" ||
9626
+ cei === "33333333333" ||
9627
+ cei === "44444444444" ||
9628
+ cei === "55555555555" ||
9629
+ cei === "66666666666" ||
9630
+ cei === "77777777777" ||
9631
+ cei === "88888888888" ||
9632
+ cei === "99999999999")
9633
+ return { invalidCei: true };
9634
+ else {
9635
+ for (var i = 0; i < 10; i++) {
9636
+ multiplicando = parseInt(cei.substring(i, i + 1), 10);
9637
+ multiplicador = parseInt(multiplicadorBase.substring(i, i + 1), 10);
9638
+ total += multiplicando * multiplicador;
9639
+ }
9640
+ resto = 11 - (total % 11);
9641
+ resto = resto === 10 || resto === 11 ? 0 : resto;
9642
+ var digito = parseInt("" + cei.charAt(10), 10);
9643
+ return resto === digito ? null : { invalidCei: true };
9644
+ }
9645
+ };
9646
+ /**
9647
+ * Valida se o CPF é valido. Deve-se ser informado o cpf sem máscara.
9648
+ */
9649
+ GenericValidator.isValidCpf = function (control) {
9650
+ var cpf = control.value;
9651
+ if (cpf) {
9652
+ var numbers = void 0, digits = void 0, sum = void 0, i = void 0, result = void 0, equalDigits = void 0;
9653
+ equalDigits = 1;
9654
+ if (cpf.length < 11) {
9655
+ return null;
9656
+ }
9657
+ for (i = 0; i < cpf.length - 1; i++) {
9658
+ if (cpf.charAt(i) !== cpf.charAt(i + 1)) {
9659
+ equalDigits = 0;
9660
+ break;
9661
+ }
9662
+ }
9663
+ if (!equalDigits) {
9664
+ numbers = cpf.substring(0, 9);
9665
+ digits = cpf.substring(9);
9666
+ sum = 0;
9667
+ for (i = 10; i > 1; i--) {
9668
+ sum += numbers.charAt(10 - i) * i;
9669
+ }
9670
+ result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
9671
+ if (result !== Number(digits.charAt(0))) {
9672
+ return { cpfNotValid: true };
9673
+ }
9674
+ numbers = cpf.substring(0, 10);
9675
+ sum = 0;
9676
+ for (i = 11; i > 1; i--) {
9677
+ sum += numbers.charAt(11 - i) * i;
9678
+ }
9679
+ result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
9680
+ if (result !== Number(digits.charAt(1))) {
9681
+ return { cpfNotValid: true };
9682
+ }
9683
+ return null;
9684
+ }
9685
+ else {
9686
+ return { cpfNotValid: true };
9687
+ }
9688
+ }
9689
+ return null;
9690
+ };
9691
+ /**
9692
+ * Valida se o CNPJ é valido. Deve-se ser informado o cpf sem máscara.
9693
+ */
9694
+ GenericValidator.isValidCnpj = function (control) {
9695
+ var cnpj = control.value;
9696
+ if (cnpj) {
9697
+ var size = void 0, numbers = void 0, digits = void 0, sum = void 0, pos = void 0, result = void 0;
9698
+ cnpj = cnpj.replace(/[^\d]+/g, '');
9699
+ if (cnpj.length !== 14) {
9700
+ return null;
9701
+ }
9702
+ // Elimina CNPJs invalidos conhecidos
9703
+ if (cnpj === '00000000000000' ||
9704
+ cnpj === '11111111111111' ||
9705
+ cnpj === '22222222222222' ||
9706
+ cnpj === '33333333333333' ||
9707
+ cnpj === '44444444444444' ||
9708
+ cnpj === '55555555555555' ||
9709
+ cnpj === '66666666666666' ||
9710
+ cnpj === '77777777777777' ||
9711
+ cnpj === '88888888888888' ||
9712
+ cnpj === '99999999999999') {
9713
+ return { cnpjNotValid: true };
9714
+ }
9715
+ // Valida DVs
9716
+ size = cnpj.length - 2;
9717
+ numbers = cnpj.substring(0, size);
9718
+ digits = cnpj.substring(size);
9719
+ sum = 0;
9720
+ pos = size - 7;
9721
+ for (var i = size; i >= 1; i--) {
9722
+ sum += numbers.charAt(size - i) * pos--;
9723
+ if (pos < 2) {
9724
+ pos = 9;
9725
+ }
9726
+ }
9727
+ result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
9728
+ if (result !== Number(digits.charAt(0))) {
9729
+ return { cnpjNotValid: true };
9730
+ }
9731
+ size = size + 1;
9732
+ numbers = cnpj.substring(0, size);
9733
+ sum = 0;
9734
+ pos = size - 7;
9735
+ for (var i = size; i >= 1; i--) {
9736
+ sum += numbers.charAt(size - i) * pos--;
9737
+ if (pos < 2) {
9738
+ pos = 9;
9739
+ }
9740
+ }
9741
+ result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
9742
+ if (result !== Number(digits.charAt(1))) {
9743
+ return { cnpjNotValid: true };
9744
+ }
9745
+ return null;
9746
+ }
9747
+ return null;
9748
+ };
9749
+ /**
9750
+ * Válida o número de telefone da chave PIX.
9751
+ */
9752
+ GenericValidator.isValidPhoneNumber = function (control) {
9753
+ var cellPhoneKey = control.value || '';
9754
+ cellPhoneKey = cellPhoneKey.replace(/[\s()-]/g, '');
9755
+ var regexNumberTelephone = /^[1-9][\d]{1,2}\d{8,10}$/;
9756
+ var isValidNumberTelephone = regexNumberTelephone.test(cellPhoneKey);
9757
+ return isValidNumberTelephone ? null : { invalidPhoneNumber: true };
9758
+ };
9759
+ /**
9760
+ * Valida o email da chave PIX.
9761
+ */
9762
+ GenericValidator.isValidEmail = function (control) {
9763
+ var emailKey = control.value;
9764
+ var regexValidEmail = /^[\w-\.]+@[\w-]+(\.[\w-]{2,4}){1,2}$/;
9765
+ var isValidEmail = regexValidEmail.test(emailKey);
9766
+ return isValidEmail ? null : { invalidEmail: true };
9767
+ };
9768
+ return GenericValidator;
9769
+ }());
9770
+
9771
+ var HistoricalPixAccountFormComponent = /** @class */ (function () {
9772
+ function HistoricalPixAccountFormComponent(formBuilder, cd) {
9773
+ this.formBuilder = formBuilder;
9774
+ this.cd = cd;
9775
+ this.withSideBar = true;
9776
+ this.isEditMode = false;
9777
+ this.paramsForm = new FormGroup({});
9778
+ this.visibleChange = new EventEmitter();
9779
+ this.pixAccountItemToList = new EventEmitter();
9780
+ this.ngUnsubscribe = new Subject();
9781
+ this.initialValidatorOfPercentage = [Validators.required, Validators.min(0.01)];
9782
+ this.labelBtnAdd = "hcm.payroll.employees_add";
9783
+ this.maxValuePercentage = 100.00;
9784
+ this.visibleBtnSave = true;
9785
+ this.isView = false;
9786
+ this.isShowPixKeyFieldValidatorMessage = false;
9787
+ this.createFormGroup();
9788
+ this.registerSubjects();
9789
+ }
9790
+ HistoricalPixAccountFormComponent.prototype.ngOnInit = function () {
9791
+ };
9792
+ HistoricalPixAccountFormComponent.prototype.ngAfterViewInit = function () {
9793
+ this.cd.detectChanges();
9794
+ };
9795
+ HistoricalPixAccountFormComponent.prototype.ngOnDestroy = function () {
9796
+ this.ngUnsubscribe.next(true);
9797
+ this.ngUnsubscribe.unsubscribe();
9798
+ };
9799
+ HistoricalPixAccountFormComponent.prototype.registerSubjects = function () {
9800
+ };
9801
+ HistoricalPixAccountFormComponent.prototype.createFormGroup = function () {
9802
+ this.pixAccountFormGroup = this.formBuilder.group({
9803
+ id: this.formBuilder.control(null),
9804
+ index: this.formBuilder.control(null),
9805
+ employee: this.formBuilder.control({ value: { tableId: null }, disabled: true }),
9806
+ dateChange: this.formBuilder.control(null),
9807
+ pixKeyType: this.formBuilder.control(null, Validators.required),
9808
+ pixKey: this.formBuilder.control(null),
9809
+ percentage: this.formBuilder.control(null, Validators.compose(__spread(this.initialValidatorOfPercentage, [
9810
+ Validators.max(this.maxValuePercentage),
9811
+ ]))),
9812
+ customFields: this.formBuilder.control(null),
9813
+ });
9814
+ };
9815
+ HistoricalPixAccountFormComponent.prototype.onChangePixKeyType = function (item) {
9816
+ if (item.key) {
9817
+ this.pixKeyType = item.key;
9818
+ this.isShowPixKeyFieldValidatorMessage = true;
9819
+ this.pixAccountFormGroup.get("pixKey").reset();
9820
+ this.setPixKeyValidators();
9821
+ if (item.key === "CPF") {
9822
+ this.setDefaultCpfPixKey();
9823
+ }
9824
+ }
9825
+ };
9826
+ HistoricalPixAccountFormComponent.prototype.onClearPixKeyType = function () {
9827
+ this.isShowPixKeyFieldValidatorMessage = false;
9828
+ this.pixAccountFormGroup.get("pixKey").reset();
9829
+ };
9830
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "visible", {
9831
+ get: function () {
9832
+ return this._visible;
9833
+ },
9834
+ set: function (value) {
9835
+ this._visible = value;
9836
+ this.visibleChange.emit(this.visible);
9837
+ },
9838
+ enumerable: true,
9839
+ configurable: true
9840
+ });
9841
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", {
9842
+ set: function (value) {
9843
+ this.resetForm();
9844
+ this.visibleBtnSave = true;
9845
+ if (value && value.currentItem && Object.keys(value.currentItem).length) {
9846
+ this.pixAccountFormGroup.patchValue(this.convertDTOToShowWithCustomFields(__assign({}, value.currentItem)));
9847
+ this.labelBtnAdd = "hcm.payroll.employees_update";
9848
+ this.setValidatorsAccordingList(value.listData, value.currentItem["index"]);
9849
+ if (!this.isView) {
9850
+ this.configEnableFields(value && value["isEditMode"]);
9851
+ }
9852
+ }
9853
+ else {
9854
+ this.labelBtnAdd = "hcm.payroll.employees_add";
9855
+ }
9856
+ },
9857
+ enumerable: true,
9858
+ configurable: true
9859
+ });
9860
+ HistoricalPixAccountFormComponent.prototype.convertDTOToShowWithCustomFields = function (data) {
9861
+ var obj = __assign({}, data);
9862
+ obj["customFields"] = mountCustomToShow(obj["customFields"]);
9863
+ return obj;
9864
+ };
9865
+ HistoricalPixAccountFormComponent.prototype.configEnableFields = function (isEditMode) {
9866
+ this.visibleBtnSave = isEditMode;
9867
+ if (this.pixAccountFormGroup.get("pixKeyType").value) {
9868
+ this.pixKeyType = this.pixAccountFormGroup.get("pixKeyType").value.key;
9869
+ this.setPixKeyValidators();
9870
+ if (this.pixKeyType === "TELEPHONE") {
9871
+ this.pixAccountFormGroup.get("pixKey").setValue(FormatUtilsService.getFormattedTelephoneNumber(this.pixAccountFormGroup.get("pixKey").value));
9872
+ }
9873
+ }
9874
+ configEnabledFields(this.pixAccountFormGroup, isEditMode, [
9875
+ "pixKeyType",
9876
+ "pixKey",
9877
+ "percentage",
9878
+ "customFields",
9879
+ ], []);
9880
+ };
9881
+ HistoricalPixAccountFormComponent.prototype.close = function () {
9882
+ this.resetForm();
9883
+ this.visible = false;
9884
+ };
9885
+ HistoricalPixAccountFormComponent.prototype.addItem = function () {
9886
+ this.pixAccountFormGroup.updateValueAndValidity();
9887
+ verifyValidationsForm.call(this.pixAccountFormGroup);
9888
+ if (this.pixAccountFormGroup.valid) {
9889
+ if (this.employeeId) {
9890
+ this.pixAccountFormGroup.get("employee").setValue({
9891
+ tableId: this.employeeId,
9892
+ name: "",
9893
+ });
9894
+ }
9895
+ this.pixAccountItemToList.emit(this.pixAccountFormGroup.getRawValue());
9896
+ this.visible = false;
9897
+ this.resetForm();
9898
+ }
9899
+ };
9900
+ HistoricalPixAccountFormComponent.prototype.resetForm = function () {
9901
+ this.pixAccountFormGroup.reset();
9902
+ this.labelBtnAdd = "hcm.payroll.employees_add";
9903
+ if (this.customFields && this.customFields.formGroup)
9904
+ this.customFields.formGroup.reset();
9905
+ };
9906
+ HistoricalPixAccountFormComponent.prototype.getBankTableId = function () {
9907
+ return this.pixAccountFormGroup.controls.bank.value
9908
+ ? "'" + this.pixAccountFormGroup.controls.bank.value.tableId + "'"
9909
+ : null;
9910
+ };
9911
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "percentagePlaceholder", {
9912
+ get: function () {
9913
+ return "0" + (this.currency && this.currency.decimalSeparator) + "00";
9914
+ },
9915
+ enumerable: true,
9916
+ configurable: true
9917
+ });
9918
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "optionsPercentage", {
9919
+ get: function () {
9920
+ return __assign({}, this.getOptions(), { precision: 2 });
9921
+ },
9922
+ enumerable: true,
9923
+ configurable: true
9924
+ });
9925
+ HistoricalPixAccountFormComponent.prototype.getOptions = function () {
9926
+ return {
9927
+ prefix: "",
9928
+ thousands: this.currency.thousandsSeparator,
9929
+ decimal: this.currency.decimalSeparator,
9930
+ };
9931
+ };
9932
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "getListPixAccount", {
9933
+ /**
9934
+ * O Input que recebe a lista do component pai e chama o método de validação passando a lista recebida.
9935
+ * @param pixAccountList
9936
+ */
9937
+ set: function (pixAccountList) {
9938
+ if (pixAccountList) {
9939
+ this.setValidatorsAccordingList(pixAccountList);
9940
+ }
9941
+ else {
9942
+ this.resetForm();
9943
+ }
9944
+ },
9945
+ enumerable: true,
9946
+ configurable: true
9947
+ });
9948
+ /**
9949
+ * Recebe a lista de registros já inseridos na tabela adiciona em uma variável os valores que serão usados para
9950
+ * a validação dos campos "percentage" e "pixAccount".
9951
+ * 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
9952
+ * no array de comparação dos validators.
9953
+ * @param pixAccountList
9954
+ * @param index
9955
+ */
9956
+ HistoricalPixAccountFormComponent.prototype.setValidatorsAccordingList = function (pixAccountList, index) {
9957
+ if (index === void 0) { index = null; }
9958
+ this.pixAccountList = pixAccountList && pixAccountList.length ? __spread(pixAccountList) : [];
9959
+ var percentageIncluded = [];
9960
+ if (this.pixAccountList && this.pixAccountList.length) {
9961
+ this.pixAccountList.filter(function (field, key) {
9962
+ if (field["percentage"] && key != index) {
9963
+ percentageIncluded.push(field["percentage"]);
9964
+ }
9965
+ });
9966
+ }
9967
+ this.setPixKeyValidators();
9968
+ this.validatePercentageValid(percentageIncluded);
9969
+ };
9970
+ /**
9971
+ * Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
9972
+ */
9973
+ HistoricalPixAccountFormComponent.prototype.setPixKeyValidators = function () {
9974
+ var genericPixKey = this.pixAccountFormGroup.get("pixKey");
9975
+ if (this.pixKeyType) {
9976
+ switch (this.pixKeyType) {
9977
+ case "TELEPHONE":
9978
+ genericPixKey.setValidators(Validators.compose([
9979
+ Validators.required, GenericValidator.isValidPhoneNumber,
9980
+ ]));
9981
+ break;
9982
+ case "EMAIL":
9983
+ genericPixKey.setValidators(Validators.compose([
9984
+ Validators.required, GenericValidator.isValidEmail,
9985
+ ]));
9986
+ break;
9987
+ case "CPF":
9988
+ genericPixKey.setValidators(Validators.compose([
9989
+ Validators.required, GenericValidator.isValidCpf,
9990
+ ]));
9991
+ break;
9992
+ case "CNPJ":
9993
+ genericPixKey.setValidators(Validators.compose([
9994
+ Validators.required, GenericValidator.isValidCnpj,
9995
+ ]));
9996
+ break;
9997
+ case "RANDOM_KEY":
9998
+ genericPixKey.setValidators(Validators.required);
9999
+ break;
10000
+ default:
10001
+ genericPixKey.setValidators(null);
10002
+ break;
10003
+ }
10004
+ genericPixKey.enable();
10005
+ genericPixKey.updateValueAndValidity();
10006
+ }
10007
+ };
10008
+ /**
10009
+ * Este método calcula as parcentagens que já foram inseridas, e seta a diferença para chegar em
10010
+ * 100% na validação do campo "percentage" como um novo maxValue;
10011
+ * @param listValue
10012
+ */
10013
+ HistoricalPixAccountFormComponent.prototype.validatePercentageValid = function (listValue) {
10014
+ var percentage = this.pixAccountFormGroup.get("percentage");
10015
+ this.maxValuePercentage = listValue
10016
+ .reduce(function (currentValue, total) { return currentValue - total; }, 100.00);
10017
+ percentage
10018
+ .setValidators(Validators.compose(__spread(this.initialValidatorOfPercentage, [
10019
+ Validators.max(this.maxValuePercentage),
10020
+ ])));
10021
+ percentage.updateValueAndValidity();
10022
+ };
10023
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isViewMode", {
10024
+ set: function (condition) {
10025
+ this.isView = !!(condition && !this.withSideBar);
10026
+ this.configEnableFields(!this.isView);
10027
+ if (!this.isView)
10028
+ this.resetForm();
10029
+ },
10030
+ enumerable: true,
10031
+ configurable: true
10032
+ });
10033
+ HistoricalPixAccountFormComponent.prototype.phoneMask = function (event) {
10034
+ FormatUtilsService.formatTelephoneInputEvent(event);
10035
+ };
10036
+ HistoricalPixAccountFormComponent.prototype.setDefaultCpfPixKey = function () {
10037
+ var sheetDocument = this.paramsForm.get("sheetDocument");
10038
+ if (sheetDocument) {
10039
+ var cpf = sheetDocument.get("cpfNumber").value;
10040
+ if (cpf) {
10041
+ this.pixAccountFormGroup.get("pixKey").setValue(cpf);
10042
+ }
10043
+ }
10044
+ };
10045
+ HistoricalPixAccountFormComponent.ctorParameters = function () { return [
10046
+ { type: FormBuilder },
10047
+ { type: ChangeDetectorRef }
10048
+ ]; };
10049
+ __decorate([
10050
+ ViewChild(CustomFieldsComponent$1, { static: true })
10051
+ ], HistoricalPixAccountFormComponent.prototype, "customFields", void 0);
10052
+ __decorate([
10053
+ Input()
10054
+ ], HistoricalPixAccountFormComponent.prototype, "currency", void 0);
10055
+ __decorate([
10056
+ Input()
10057
+ ], HistoricalPixAccountFormComponent.prototype, "customEntity", void 0);
10058
+ __decorate([
10059
+ Input()
10060
+ ], HistoricalPixAccountFormComponent.prototype, "customService", void 0);
10061
+ __decorate([
10062
+ Input()
10063
+ ], HistoricalPixAccountFormComponent.prototype, "withSideBar", void 0);
10064
+ __decorate([
10065
+ Input()
10066
+ ], HistoricalPixAccountFormComponent.prototype, "isEditMode", void 0);
10067
+ __decorate([
10068
+ Input()
10069
+ ], HistoricalPixAccountFormComponent.prototype, "paramsForm", void 0);
10070
+ __decorate([
10071
+ Output()
10072
+ ], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
10073
+ __decorate([
10074
+ Output()
10075
+ ], HistoricalPixAccountFormComponent.prototype, "pixAccountItemToList", void 0);
10076
+ __decorate([
10077
+ Input()
10078
+ ], HistoricalPixAccountFormComponent.prototype, "visible", null);
10079
+ __decorate([
10080
+ Input()
10081
+ ], HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", null);
10082
+ __decorate([
10083
+ Input()
10084
+ ], HistoricalPixAccountFormComponent.prototype, "getListPixAccount", null);
10085
+ __decorate([
10086
+ Input()
10087
+ ], HistoricalPixAccountFormComponent.prototype, "isViewMode", null);
10088
+ HistoricalPixAccountFormComponent = __decorate([
10089
+ Component({
10090
+ selector: "pix-account",
10091
+ 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]=\"{ required: 'hcm.payroll.required' | translate }\">\n </s-control-errors>\n </div>\n <!--Chave Pix-->\n <div class=\"ui-md-6 ui-sm-12 required\">\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=\"'RANDOM_KEY'\"\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n <input *ngSwitchDefault disabled\n pInputText id=\"ta-pixKey\" name=\"pixKey\" formControlName=\"pixKey\"/>\n </ng-container>\n <s-control-errors *ngIf=\"isShowPixKeyFieldValidatorMessage\" id=\"er-pix-key\"\n [control]=\"pixAccountFormGroup.get('pixKey')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n invalidPhoneNumber: 'hcm.payroll.employees_addition_invalid_phone_number' | translate: { value: pixAccountFormGroup.get('pixKey').value },\n invalidEmail: 'hcm.payroll.employees_addition_email_invalid' | translate,\n cpfNotValid: 'hcm.payroll.employees_addition_cpf_error' | translate,\n cnpjNotValid: 'hcm.payroll.employees_addition_cnpj_error' | translate\n }\">\n </s-control-errors>\n </div>\n <!--Percentual-->\n <div class=\"ui-md-6 ui-sm-12 required\">\n <label id=\"lb-percentage\"\n for=\"ff-percentage\">{{ 'hcm.payroll.historical_bank_account_label_percentage' | translate }}</label>\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\">%</span>\n <input pInputText id=\"ff-percentage\" name=\"percentage\"\n formControlName=\"percentage\"\n currencyMask\n [options]=\"optionsPercentage\"\n [placeholder]=\"percentagePlaceholder\"/>\n </div>\n <s-control-errors [control]=\"pixAccountFormGroup.get('percentage')\"\n [errorMessages]=\"{\n required: 'hcm.payroll.required' | translate,\n maxlength: 'hcm.payroll.error_max_length' | translate: { value: '6' },\n max: 'hcm.payroll.error_max_value_number' | translate: { value: maxValuePercentage },\n min: 'hcm.payroll.error_min_value_number' | translate: { value: '0,01' }\n }\">\n </s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <p-fieldset\n legend=\"{{ 'hcm.payroll.custom_fields' | translate }}\"\n [attr.data-hidden]=\"!customFields || !customFields.fields.length\"\n >\n <s-custom-fields\n domain=\"hcm\"\n service=\"{{customService}}\"\n entity=\"{{customEntity}}\"\n formControlName=\"customFields\"\n [invalidErrorLabel]=\"'hcm.payroll.employees_invalid_field' | translate\"\n >\n </s-custom-fields>\n </p-fieldset>\n </div>\n </div>\n </div>\n </form>\n\n <div [ngClass]=\"withSideBar ? 'footer' : 'footer-s-border'\">\n <div class=\"form-group\">\n <s-button id=\"btn-save\" label=\"{{ labelBtnAdd | translate}}\" priority=\"primary\"\n (onClick)=\"addItem()\" *ngIf=\"visibleBtnSave && !this.isView\"></s-button>\n <s-button *ngIf=\"withSideBar\" id=\"btn-close\" label=\"{{'hcm.payroll.cancel'|translate}}\" priority=\"secondary\"\n priority=\"link\" (onClick)=\"close()\"></s-button>\n </div>\n </div>\n</div>\n",
10092
+ 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}"]
10093
+ })
10094
+ ], HistoricalPixAccountFormComponent);
10095
+ return HistoricalPixAccountFormComponent;
10096
+ }());
10097
+
10098
+ var HistoricalPixAccountService = /** @class */ (function () {
10099
+ function HistoricalPixAccountService(http) {
10100
+ this.http = http;
10101
+ }
10102
+ HistoricalPixAccountService.prototype.query = function (path, body, service) {
10103
+ if (service === void 0) { service = ServiceType.PAYROLL; }
10104
+ return this.http.query(path, body, service);
10105
+ };
10106
+ HistoricalPixAccountService.ctorParameters = function () { return [
10107
+ { type: HttpClientService }
10108
+ ]; };
10109
+ HistoricalPixAccountService = __decorate([
10110
+ Injectable()
10111
+ ], HistoricalPixAccountService);
10112
+ return HistoricalPixAccountService;
10113
+ }());
10114
+
10115
+ var HistoricalPixAccountModule = /** @class */ (function () {
10116
+ function HistoricalPixAccountModule() {
10117
+ }
10118
+ HistoricalPixAccountModule = __decorate([
10119
+ NgModule({
10120
+ imports: [
10121
+ CommonModule,
10122
+ FormsModule,
10123
+ HttpClientModule,
10124
+ AutoCompleteModule,
10125
+ SharedModule,
10126
+ ReactiveFormsModule,
10127
+ TableModule,
10128
+ ButtonModule,
10129
+ TooltipModule,
10130
+ LoadingStateModule,
10131
+ SidebarModule,
10132
+ InputDateModule,
10133
+ ControlErrorsModule,
10134
+ InputRestAutoCompleteEnumModule,
10135
+ CurrencyMaskModule,
10136
+ InputRestAutoCompleteModule,
10137
+ InputTextModule,
10138
+ CoreDirectives,
10139
+ FieldsetModule,
10140
+ CustomFieldsModule$1,
10141
+ PanelModule,
10142
+ InputMaskModule,
10143
+ ],
10144
+ declarations: [HistoricalPixAccountComponent, HistoricalPixAccountFormComponent],
10145
+ providers: [HistoricalPixAccountService, ConfirmationService],
10146
+ exports: [HistoricalPixAccountComponent],
10147
+ })
10148
+ ], HistoricalPixAccountModule);
10149
+ return HistoricalPixAccountModule;
10150
+ }());
10151
+
9144
10152
  /*
9145
10153
  * Public API Surface of core
9146
10154
  */
@@ -9149,5 +10157,5 @@ var FromToModule = /** @class */ (function () {
9149
10157
  * Generated bundle index. Do not edit.
9150
10158
  */
9151
10159
 
9152
- 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, 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 };
10160
+ export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricalPixAccountFormComponent as ɵr };
9153
10161
  //# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map