@senior-gestao-pessoas/payroll-core 9.1.0 → 9.2.0

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 +1025 -0
  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 +75 -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/utils/format-utils/format-utils.service.d.ts +33 -0
  11. package/components/utils/generic-validators.d.ts +24 -0
  12. package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +340 -0
  13. package/esm2015/components/historical-pix-account/historical-pix-account.component.js +323 -0
  14. package/esm2015/components/historical-pix-account/historical-pix-account.module.js +58 -0
  15. package/esm2015/components/historical-pix-account/historical-pix-account.service.js +20 -0
  16. package/esm2015/components/historical-pix-account/index.js +4 -0
  17. package/esm2015/components/utils/format-utils/format-utils.service.js +96 -0
  18. package/esm2015/components/utils/generic-validators.js +164 -0
  19. package/esm2015/public_api.js +2 -1
  20. package/esm2015/senior-gestao-pessoas-payroll-core.js +2 -1
  21. package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +364 -0
  22. package/esm5/components/historical-pix-account/historical-pix-account.component.js +357 -0
  23. package/esm5/components/historical-pix-account/historical-pix-account.module.js +61 -0
  24. package/esm5/components/historical-pix-account/historical-pix-account.service.js +22 -0
  25. package/esm5/components/historical-pix-account/index.js +4 -0
  26. package/esm5/components/utils/format-utils/format-utils.service.js +100 -0
  27. package/esm5/components/utils/generic-validators.js +167 -0
  28. package/esm5/public_api.js +2 -1
  29. package/esm5/senior-gestao-pessoas-payroll-core.js +2 -1
  30. package/fesm2015/senior-gestao-pessoas-payroll-core.js +954 -1
  31. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  32. package/fesm5/senior-gestao-pessoas-payroll-core.js +1022 -1
  33. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  34. package/locale/en-US.json +26 -1
  35. package/locale/es-ES.json +26 -1
  36. package/locale/pt-BR.json +26 -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
@@ -9156,6 +9156,1027 @@ var FromToModule = /** @class */ (function () {
9156
9156
  return FromToModule;
9157
9157
  }());
9158
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.getFormattedTelephoneNumber = 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\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",
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
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "percentagePlaceholder", {
9907
+ get: function () {
9908
+ return "0" + (this.currency && this.currency.decimalSeparator) + "00";
9909
+ },
9910
+ enumerable: true,
9911
+ configurable: true
9912
+ });
9913
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "optionsPercentage", {
9914
+ get: function () {
9915
+ return __assign({}, this.getOptions(), { precision: 2 });
9916
+ },
9917
+ enumerable: true,
9918
+ configurable: true
9919
+ });
9920
+ HistoricalPixAccountFormComponent.prototype.getOptions = function () {
9921
+ return {
9922
+ prefix: "",
9923
+ thousands: this.currency.thousandsSeparator,
9924
+ decimal: this.currency.decimalSeparator,
9925
+ };
9926
+ };
9927
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "getListPixAccount", {
9928
+ /**
9929
+ * O Input que recebe a lista do component pai e chama o método de validação passando a lista recebida.
9930
+ * @param pixAccountList
9931
+ */
9932
+ set: function (pixAccountList) {
9933
+ if (pixAccountList) {
9934
+ this.setValidatorsAccordingList(pixAccountList);
9935
+ }
9936
+ else {
9937
+ this.resetForm();
9938
+ }
9939
+ },
9940
+ enumerable: true,
9941
+ configurable: true
9942
+ });
9943
+ /**
9944
+ * Recebe a lista de registros já inseridos na tabela adiciona em uma variável os valores que serão usados para
9945
+ * a validação dos campos "percentage" e "pixAccount".
9946
+ * 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
9947
+ * no array de comparação dos validators.
9948
+ * @param pixAccountList
9949
+ * @param index
9950
+ */
9951
+ HistoricalPixAccountFormComponent.prototype.setValidatorsAccordingList = function (pixAccountList, index) {
9952
+ if (index === void 0) { index = null; }
9953
+ this.pixAccountList = pixAccountList && pixAccountList.length ? __spread(pixAccountList) : [];
9954
+ var percentageIncluded = [];
9955
+ if (this.pixAccountList && this.pixAccountList.length) {
9956
+ this.pixAccountList.filter(function (field, key) {
9957
+ if (field["percentage"] && key != index) {
9958
+ percentageIncluded.push(field["percentage"]);
9959
+ }
9960
+ });
9961
+ }
9962
+ this.beforeSetPixKeyTypeValidator();
9963
+ this.setPixKeyValidators();
9964
+ this.validatePercentageValid(percentageIncluded);
9965
+ };
9966
+ /**
9967
+ * Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
9968
+ */
9969
+ HistoricalPixAccountFormComponent.prototype.setPixKeyValidators = function () {
9970
+ var genericPixKey = this.pixAccountFormGroup.get("pixKey");
9971
+ if (this.pixKeyType) {
9972
+ switch (this.pixKeyType) {
9973
+ case "TELEPHONE":
9974
+ genericPixKey.setValidators(Validators.compose([
9975
+ Validators.required, GenericValidator.isValidPhoneNumber,
9976
+ ]));
9977
+ break;
9978
+ case "EMAIL":
9979
+ genericPixKey.setValidators(Validators.compose([
9980
+ Validators.required, GenericValidator.isValidEmail,
9981
+ ]));
9982
+ break;
9983
+ case "CPF":
9984
+ genericPixKey.setValidators(Validators.compose([
9985
+ Validators.required, GenericValidator.isValidCpf,
9986
+ ]));
9987
+ break;
9988
+ case "CNPJ":
9989
+ genericPixKey.setValidators(Validators.compose([
9990
+ Validators.required, GenericValidator.isValidCnpj,
9991
+ ]));
9992
+ break;
9993
+ case "RANDOM_KEY":
9994
+ genericPixKey.setValidators(Validators.required);
9995
+ break;
9996
+ default:
9997
+ genericPixKey.setValidators(null);
9998
+ break;
9999
+ }
10000
+ genericPixKey.enable();
10001
+ genericPixKey.updateValueAndValidity();
10002
+ }
10003
+ };
10004
+ /**
10005
+ * Este método calcula as parcentagens que já foram inseridas, e seta a diferença para chegar em
10006
+ * 100% na validação do campo "percentage" como um novo maxValue;
10007
+ * @param listValue
10008
+ */
10009
+ HistoricalPixAccountFormComponent.prototype.validatePercentageValid = function (listValue) {
10010
+ var percentage = this.pixAccountFormGroup.get("percentage");
10011
+ this.maxValuePercentage = listValue
10012
+ .reduce(function (currentValue, total) { return currentValue - total; }, 100.00);
10013
+ percentage
10014
+ .setValidators(Validators.compose(__spread(this.initialValidatorOfPercentage, [
10015
+ Validators.max(this.maxValuePercentage),
10016
+ ])));
10017
+ percentage.updateValueAndValidity();
10018
+ };
10019
+ Object.defineProperty(HistoricalPixAccountFormComponent.prototype, "isViewMode", {
10020
+ set: function (condition) {
10021
+ this.isView = !!(condition && !this.withSideBar);
10022
+ this.configEnableFields(!this.isView);
10023
+ if (!this.isView)
10024
+ this.resetForm();
10025
+ },
10026
+ enumerable: true,
10027
+ configurable: true
10028
+ });
10029
+ HistoricalPixAccountFormComponent.prototype.phoneMask = function (event) {
10030
+ FormatUtilsService.formatTelephoneInputEvent(event);
10031
+ };
10032
+ HistoricalPixAccountFormComponent.prototype.setDefaultCpfPixKey = function () {
10033
+ var sheetDocument = this.paramsForm.get("sheetDocument");
10034
+ if (sheetDocument) {
10035
+ var cpf = sheetDocument.get("cpfNumber").value;
10036
+ if (cpf) {
10037
+ this.pixAccountFormGroup.get("pixKey").setValue(cpf);
10038
+ }
10039
+ }
10040
+ };
10041
+ HistoricalPixAccountFormComponent.prototype.beforeSetPixKeyTypeValidator = function () {
10042
+ var pixKeyType = this.pixAccountFormGroup.get("pixKeyType");
10043
+ if (this.pixAccountList && this.pixAccountList.length && pixKeyType) {
10044
+ pixKeyType
10045
+ .setValidators(Validators.compose([
10046
+ Validators.required,
10047
+ this.validateDuplicatePixKeyTypeBankAccount(this.pixAccountList),
10048
+ ]));
10049
+ }
10050
+ else {
10051
+ pixKeyType.setValidators(Validators.required);
10052
+ }
10053
+ };
10054
+ HistoricalPixAccountFormComponent.prototype.validateDuplicatePixKeyTypeBankAccount = function (listCompare) {
10055
+ return function (control) {
10056
+ var value = control && control.value;
10057
+ var condition = false;
10058
+ listCompare.filter(function (field) {
10059
+ if (value) {
10060
+ if (field["pixKeyType"].key === 'BANK_ACCOUNT' && value.key === field["pixKeyType"].key) {
10061
+ return condition = true;
10062
+ }
10063
+ }
10064
+ });
10065
+ if (condition) {
10066
+ return { pixKeyTypeBankAccountDuplicate: true };
10067
+ }
10068
+ else {
10069
+ return null;
10070
+ }
10071
+ };
10072
+ };
10073
+ HistoricalPixAccountFormComponent.ctorParameters = function () { return [
10074
+ { type: FormBuilder },
10075
+ { type: ChangeDetectorRef }
10076
+ ]; };
10077
+ __decorate([
10078
+ ViewChild(CustomFieldsComponent$1, { static: true })
10079
+ ], HistoricalPixAccountFormComponent.prototype, "customFields", void 0);
10080
+ __decorate([
10081
+ Input()
10082
+ ], HistoricalPixAccountFormComponent.prototype, "currency", void 0);
10083
+ __decorate([
10084
+ Input()
10085
+ ], HistoricalPixAccountFormComponent.prototype, "customEntity", void 0);
10086
+ __decorate([
10087
+ Input()
10088
+ ], HistoricalPixAccountFormComponent.prototype, "customService", void 0);
10089
+ __decorate([
10090
+ Input()
10091
+ ], HistoricalPixAccountFormComponent.prototype, "withSideBar", void 0);
10092
+ __decorate([
10093
+ Input()
10094
+ ], HistoricalPixAccountFormComponent.prototype, "isEditMode", void 0);
10095
+ __decorate([
10096
+ Input()
10097
+ ], HistoricalPixAccountFormComponent.prototype, "paramsForm", void 0);
10098
+ __decorate([
10099
+ Output()
10100
+ ], HistoricalPixAccountFormComponent.prototype, "visibleChange", void 0);
10101
+ __decorate([
10102
+ Output()
10103
+ ], HistoricalPixAccountFormComponent.prototype, "pixAccountItemToList", void 0);
10104
+ __decorate([
10105
+ Input()
10106
+ ], HistoricalPixAccountFormComponent.prototype, "visible", null);
10107
+ __decorate([
10108
+ Input()
10109
+ ], HistoricalPixAccountFormComponent.prototype, "isEditAndViewValue", null);
10110
+ __decorate([
10111
+ Input()
10112
+ ], HistoricalPixAccountFormComponent.prototype, "getListPixAccount", null);
10113
+ __decorate([
10114
+ Input()
10115
+ ], HistoricalPixAccountFormComponent.prototype, "isViewMode", null);
10116
+ HistoricalPixAccountFormComponent = __decorate([
10117
+ Component({
10118
+ selector: "pix-account",
10119
+ 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\"/>\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",
10120
+ 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}"]
10121
+ })
10122
+ ], HistoricalPixAccountFormComponent);
10123
+ return HistoricalPixAccountFormComponent;
10124
+ }());
10125
+
10126
+ var HistoricalPixAccountService = /** @class */ (function () {
10127
+ function HistoricalPixAccountService(http) {
10128
+ this.http = http;
10129
+ }
10130
+ HistoricalPixAccountService.prototype.query = function (path, body, service) {
10131
+ if (service === void 0) { service = ServiceType.PAYROLL; }
10132
+ return this.http.query(path, body, service);
10133
+ };
10134
+ HistoricalPixAccountService.ctorParameters = function () { return [
10135
+ { type: HttpClientService }
10136
+ ]; };
10137
+ HistoricalPixAccountService = __decorate([
10138
+ Injectable()
10139
+ ], HistoricalPixAccountService);
10140
+ return HistoricalPixAccountService;
10141
+ }());
10142
+
10143
+ var HistoricalPixAccountModule = /** @class */ (function () {
10144
+ function HistoricalPixAccountModule() {
10145
+ }
10146
+ HistoricalPixAccountModule = __decorate([
10147
+ NgModule({
10148
+ imports: [
10149
+ CommonModule,
10150
+ FormsModule,
10151
+ HttpClientModule,
10152
+ AutoCompleteModule,
10153
+ SharedModule,
10154
+ ReactiveFormsModule,
10155
+ TableModule,
10156
+ ButtonModule,
10157
+ TooltipModule,
10158
+ LoadingStateModule,
10159
+ SidebarModule,
10160
+ InputDateModule,
10161
+ ControlErrorsModule,
10162
+ InputRestAutoCompleteEnumModule,
10163
+ CurrencyMaskModule,
10164
+ InputRestAutoCompleteModule,
10165
+ InputTextModule,
10166
+ CoreDirectives,
10167
+ FieldsetModule,
10168
+ CustomFieldsModule$1,
10169
+ PanelModule,
10170
+ InputMaskModule,
10171
+ ],
10172
+ declarations: [HistoricalPixAccountComponent, HistoricalPixAccountFormComponent],
10173
+ providers: [HistoricalPixAccountService, ConfirmationService],
10174
+ exports: [HistoricalPixAccountComponent],
10175
+ })
10176
+ ], HistoricalPixAccountModule);
10177
+ return HistoricalPixAccountModule;
10178
+ }());
10179
+
9159
10180
  /*
9160
10181
  * Public API Surface of core
9161
10182
  */
@@ -9164,5 +10185,5 @@ var FromToModule = /** @class */ (function () {
9164
10185
  * Generated bundle index. Do not edit.
9165
10186
  */
9166
10187
 
9167
- 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 };
10188
+ 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 };
9168
10189
  //# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map