@senior-gestao-pessoas/payroll-core 9.8.0-feature-hcmgdp-12459-4d08efe5 → 9.9.0-feature-hcmgdp-12490-b88ad694

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 (34) hide show
  1. package/bundles/senior-gestao-pessoas-payroll-core.umd.js +531 -15
  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/transportation-voucher-scale-lookup/autocomplete.service.d.ts +31 -0
  6. package/components/transportation-voucher-scale-lookup/index.d.ts +5 -0
  7. package/components/transportation-voucher-scale-lookup/lookup.service.d.ts +47 -0
  8. package/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.component.d.ts +80 -0
  9. package/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.dto.d.ts +8 -0
  10. package/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.module.d.ts +2 -0
  11. package/esm2015/components/transportation-voucher-scale-lookup/autocomplete.service.js +114 -0
  12. package/esm2015/components/transportation-voucher-scale-lookup/index.js +6 -0
  13. package/esm2015/components/transportation-voucher-scale-lookup/lookup.service.js +147 -0
  14. package/esm2015/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.component.js +215 -0
  15. package/esm2015/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.dto.js +17 -0
  16. package/esm2015/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.module.js +31 -0
  17. package/esm2015/public_api.js +2 -1
  18. package/esm5/components/transportation-voucher-scale-lookup/autocomplete.service.js +128 -0
  19. package/esm5/components/transportation-voucher-scale-lookup/index.js +6 -0
  20. package/esm5/components/transportation-voucher-scale-lookup/lookup.service.js +152 -0
  21. package/esm5/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.component.js +223 -0
  22. package/esm5/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.dto.js +19 -0
  23. package/esm5/components/transportation-voucher-scale-lookup/transportation-voucher-scale-lookup.module.js +34 -0
  24. package/esm5/public_api.js +2 -1
  25. package/fesm2015/senior-gestao-pessoas-payroll-core.js +497 -17
  26. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  27. package/fesm5/senior-gestao-pessoas-payroll-core.js +528 -17
  28. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  29. package/locale/en-US.json +5 -1
  30. package/locale/es-ES.json +5 -1
  31. package/locale/pt-BR.json +5 -1
  32. package/package.json +1 -1
  33. package/public_api.d.ts +1 -0
  34. package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
@@ -12,7 +12,7 @@ import { DropdownModule } from 'primeng/dropdown';
12
12
  import { InputMaskModule } from 'primeng/inputmask';
13
13
  import { InputTextModule } from 'primeng/inputtext';
14
14
  import { SharedModule as SharedModule$1 } from 'primeng/shared';
15
- import { LocaleService, ButtonModule, LoadingStateModule, ObjectCardModule, ThumbnailModule, ImageCropperService, FieldType, DynamicFormModule, FormField, CustomFieldsComponent as CustomFieldsComponent$1, SidebarModule, ControlErrorsModule, CustomFieldsModule as CustomFieldsModule$1 } from '@seniorsistemas/angular-components';
15
+ import { LocaleService, ButtonModule, LoadingStateModule, ObjectCardModule, ThumbnailModule, ImageCropperService, FieldType, DynamicFormModule, FormField, LocaleModule, CustomFieldsComponent as CustomFieldsComponent$1, SidebarModule, ControlErrorsModule, CustomFieldsModule as CustomFieldsModule$1 } from '@seniorsistemas/angular-components';
16
16
  import * as moment_ from 'moment';
17
17
  import { now } from 'moment';
18
18
  import { Subject, throwError, forkJoin, Observable, BehaviorSubject } from 'rxjs';
@@ -7066,6 +7066,486 @@ WorkstationgroupLookupModule = __decorate([
7066
7066
  })
7067
7067
  ], WorkstationgroupLookupModule);
7068
7068
 
7069
+ const moment$c = moment_;
7070
+ let AutocompleteService$1 = class AutocompleteService {
7071
+ constructor(httpClienteService) {
7072
+ this.httpClienteService = httpClienteService;
7073
+ }
7074
+ getAutoComplete(entity, params, searchFields, codeIsString, service) {
7075
+ const getParams = this.generateGridParameters(params, searchFields, codeIsString);
7076
+ return this.httpClienteService.getAutoComplete(entity, getParams, service)
7077
+ .pipe(map((result) => result && result.contents));
7078
+ }
7079
+ getAutoCompleteQuery(query, params, service = ServiceType.PAYROLL) {
7080
+ return this.httpClienteService.query(query, params, service)
7081
+ .pipe(map((data) => data && data.result));
7082
+ }
7083
+ /**
7084
+ * Gera os parametros de pesquisa via pesquisa na grid
7085
+ * @param filterData
7086
+ */
7087
+ generateGridParameters(filterData, searchFields, codeIsString) {
7088
+ let gridParameters = "";
7089
+ Object.keys(filterData).forEach((attribute) => {
7090
+ const filterSearchField = searchFields && searchFields.filter(field => attribute === field.name)[0];
7091
+ let filterQueryString = null;
7092
+ let operatorsQuery = "";
7093
+ let searchField = filterSearchField && filterSearchField.type;
7094
+ if (!filterSearchField && attribute != CoreFieldType.searchValue)
7095
+ searchField = FieldType.String;
7096
+ if (!filterSearchField && attribute === CoreFieldType.searchValue)
7097
+ searchField = CoreFieldType.searchValue;
7098
+ if (gridParameters)
7099
+ operatorsQuery = " and ";
7100
+ filterQueryString = this.getParameterByType(searchField, attribute, filterData[attribute], codeIsString);
7101
+ if (filterQueryString)
7102
+ gridParameters += ` ${operatorsQuery} ${filterQueryString}`;
7103
+ });
7104
+ return gridParameters;
7105
+ }
7106
+ /**
7107
+ * Gera a string de consulta CRUD de um campo.
7108
+ * @param type Tipo do campo.
7109
+ * @param attribute Nome do atribute da entidade
7110
+ * @param value Valor do campo
7111
+ */
7112
+ getParameterByType(type, attribute, value, codeIsString) {
7113
+ if (!value && type != CoreFieldType.searchValue)
7114
+ return `${attribute} is null`;
7115
+ if (value && value === 'not null' && type != CoreFieldType.searchValue)
7116
+ return `${attribute} is not null`;
7117
+ switch (type) {
7118
+ case FieldType.Date:
7119
+ return `${attribute} eq '${moment$c(value).format('YYYY-MM-DD')}'`;
7120
+ case FieldType.Enum:
7121
+ return `${attribute} eq '${value}'`;
7122
+ case FieldType.Integer:
7123
+ return `${attribute} eq ${value}`;
7124
+ case FieldType.Autocomplete:
7125
+ return `${attribute} eq '${value.id}'`;
7126
+ case CoreFieldType.searchValue:
7127
+ return `${this.getParameterBySearchType(value, codeIsString)}`;
7128
+ default:
7129
+ return this.getSearchFilterString(attribute, value);
7130
+ }
7131
+ }
7132
+ /**
7133
+ * Retorna o filtro formatador para ser chamdo no endpoint
7134
+ * @param valueFilterSearch valor pra adicionar no filtro
7135
+ */
7136
+ getParameterBySearchType(valueFilterSearch, codeIsString) {
7137
+ let searchFilter = "";
7138
+ if (valueFilterSearch) {
7139
+ for (const [key, value] of Object.entries(valueFilterSearch)) {
7140
+ if (key === "code" && Number(value)) {
7141
+ const hasQuote = codeIsString ? "'" : "";
7142
+ if (searchFilter)
7143
+ searchFilter += ` or ${key} eq ${hasQuote}${value}${hasQuote}`;
7144
+ else
7145
+ searchFilter += `${key} eq ${hasQuote}${value}${hasQuote}`;
7146
+ }
7147
+ else if (key != "code") {
7148
+ if (searchFilter)
7149
+ searchFilter += ` or ${this.getSearchFilterString(key, value)}`;
7150
+ else
7151
+ searchFilter += this.getSearchFilterString(key, value);
7152
+ }
7153
+ }
7154
+ searchFilter = searchFilter ? `(${searchFilter})` : '';
7155
+ }
7156
+ return searchFilter;
7157
+ }
7158
+ /**
7159
+ * Formata o filtro quando for "Ou"
7160
+ * @param attribute Nome do atributo da entidade.
7161
+ * @param value Valor da propriedade do objeto.
7162
+ */
7163
+ getSearchFilterString(attribute, value) {
7164
+ return `contains(tolower(${attribute}), '${value.toLowerCase()}')`;
7165
+ }
7166
+ };
7167
+ AutocompleteService$1.ctorParameters = () => [
7168
+ { type: HttpClientService }
7169
+ ];
7170
+ AutocompleteService$1 = __decorate([
7171
+ Injectable()
7172
+ ], AutocompleteService$1);
7173
+
7174
+ const moment$d = moment_;
7175
+ let LookupService$2 = class LookupService {
7176
+ constructor(http, messageService, translateService) {
7177
+ this.http = http;
7178
+ this.messageService = messageService;
7179
+ this.translateService = translateService;
7180
+ }
7181
+ lookupRequestPost(httpPostParams, endpoint, concatFields = null, lookupDisplayField) {
7182
+ this.httpPostParams = httpPostParams;
7183
+ this.postConfigPageSize(httpPostParams);
7184
+ this.lookupDisplayField = lookupDisplayField;
7185
+ this.concatFields = concatFields;
7186
+ return this.postDataLookup(endpoint);
7187
+ }
7188
+ postConfigPageSize(httpPostParams) {
7189
+ if (httpPostParams) {
7190
+ this.httpPostParams.page.size = httpPostParams.page && httpPostParams.page.size ? httpPostParams.page.size : 10;
7191
+ this.httpPostParams.page.current = httpPostParams.page && httpPostParams.page.current ? httpPostParams.page.current : 0;
7192
+ }
7193
+ }
7194
+ /**
7195
+ * POST
7196
+ * @param endpoint Busca e faz o tratamento dos dados do lookup.
7197
+ * @param httpParams HttpParams
7198
+ */
7199
+ postDataLookup(endpoint) {
7200
+ return this.postUrlDataLookup(endpoint, this.httpPostParams).pipe(map((payload) => {
7201
+ const { contents } = payload;
7202
+ if (this.concatFields && this.concatFields.length) {
7203
+ contents.map(value => {
7204
+ if (this.concatOtherFields) {
7205
+ this.convertGridFieldValue(value);
7206
+ }
7207
+ value[this.lookupDisplayField] = this.generateDisplayFieldValue(Object.assign({}, value));
7208
+ });
7209
+ }
7210
+ return payload;
7211
+ }));
7212
+ }
7213
+ /**
7214
+ * Converte o valor do campo para apresentação no lookup.
7215
+ *
7216
+ * @param content Valor do campo para conversão.
7217
+ * @param field FormField do campo.
7218
+ */
7219
+ convertLookupFieldValue(content, field) {
7220
+ if (content) {
7221
+ switch (field.type) {
7222
+ case FieldType.Date:
7223
+ content = moment$d(content).format("L");
7224
+ break;
7225
+ case FieldType.Enum:
7226
+ const enumValue = field.options.filter((enumeration) => enumeration.value === content)[0];
7227
+ content = enumValue ? enumValue.label : content;
7228
+ break;
7229
+ }
7230
+ }
7231
+ return content;
7232
+ }
7233
+ /**
7234
+ * Converte os dados para visualização na grid
7235
+ * @param content
7236
+ */
7237
+ convertGridFieldValue(content) {
7238
+ if (content) {
7239
+ this.concatOtherFields.forEach((field) => {
7240
+ switch (field.type) {
7241
+ case FieldType.Enum:
7242
+ const enumValue = field.options.filter((enumeration) => enumeration.value === content[field.name])[0];
7243
+ content[field.name] = enumValue ? enumValue.label : content[field.name];
7244
+ break;
7245
+ }
7246
+ });
7247
+ }
7248
+ }
7249
+ /**
7250
+ * Faz a concatenação de valores do registro para ser apresentado no lookup ao selecionar o dado.
7251
+ * @param contentValue Valor do registro.
7252
+ */
7253
+ generateDisplayFieldValue(contentValue) {
7254
+ let displayField = "";
7255
+ this.concatFields.forEach((field) => {
7256
+ const fieldValue = this.convertLookupFieldValue(contentValue[field.name], field);
7257
+ if (fieldValue) {
7258
+ if (displayField) {
7259
+ displayField += ` - ${fieldValue}`;
7260
+ }
7261
+ else {
7262
+ displayField = fieldValue;
7263
+ }
7264
+ }
7265
+ });
7266
+ return displayField;
7267
+ }
7268
+ /**
7269
+ * Faz a requisição POST na URL do lookup.
7270
+ * @param endpoint - URL do endpoint.
7271
+ * @param httpParams - Parâmetros HTTP.
7272
+ */
7273
+ postUrlDataLookup(endpoint, httpParams) {
7274
+ if (httpParams) {
7275
+ return this.http.post(`${endpoint}`, Object.assign({}, httpParams)).pipe(catchError((exception) => {
7276
+ if (exception.status === 403) {
7277
+ this.messageService.add({
7278
+ severity: "error",
7279
+ summary: this.translateService.instant("hcm.payroll.error"),
7280
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
7281
+ sticky: true,
7282
+ });
7283
+ }
7284
+ return throwError(exception);
7285
+ }));
7286
+ }
7287
+ else {
7288
+ return this.http.post(`${endpoint}`, {}).pipe(catchError((exception) => {
7289
+ if (exception.status === 403) {
7290
+ this.messageService.add({
7291
+ severity: "error",
7292
+ summary: this.translateService.instant("hcm.payroll.error"),
7293
+ detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
7294
+ sticky: true,
7295
+ });
7296
+ }
7297
+ return throwError(exception);
7298
+ }));
7299
+ }
7300
+ }
7301
+ };
7302
+ LookupService$2.ctorParameters = () => [
7303
+ { type: HttpClient },
7304
+ { type: MessageService },
7305
+ { type: TranslateService }
7306
+ ];
7307
+ LookupService$2 = __decorate([
7308
+ Injectable()
7309
+ ], LookupService$2);
7310
+
7311
+ class TransportationVoucherScaleLookupDto {
7312
+ constructor(payload) {
7313
+ const { filterData } = payload;
7314
+ this.code = filterData.code || null;
7315
+ this.transportationVoucherScaleGroupId = filterData.transportationVoucherScaleGroup && filterData.transportationVoucherScaleGroup.id || null;
7316
+ this.searchText = filterData.searchText || null;
7317
+ this.page = {
7318
+ current: payload.first ? payload.first : 0,
7319
+ size: payload.rows ? payload.rows : 10
7320
+ } || null;
7321
+ }
7322
+ getToFilter() {
7323
+ const objDTO = this;
7324
+ return objDTO;
7325
+ }
7326
+ }
7327
+
7328
+ const moment$e = moment_;
7329
+ let TransportationVoucherScaleLookupComponent = class TransportationVoucherScaleLookupComponent {
7330
+ constructor(autocompleteService, lookupService, translate, cdr) {
7331
+ this.autocompleteService = autocompleteService;
7332
+ this.lookupService = lookupService;
7333
+ this.translate = translate;
7334
+ this.cdr = cdr;
7335
+ this.onSelect = new EventEmitter();
7336
+ this.onClear = new EventEmitter();
7337
+ this.onBlur = new EventEmitter();
7338
+ this.lookupSuggestions = [];
7339
+ this.searchGridData = [];
7340
+ this.suggestionsObservable = new BehaviorSubject([]);
7341
+ this.totalRecords = 0;
7342
+ this.concatFieldsName = [
7343
+ new FormField({
7344
+ name: "code",
7345
+ label: this.translate.instant("hcm.payroll.code"),
7346
+ type: FieldType.String,
7347
+ }),
7348
+ new FormField({
7349
+ name: "description",
7350
+ label: this.translate.instant("hcm.payroll.description"),
7351
+ type: FieldType.String,
7352
+ }),
7353
+ ];
7354
+ this.concatName = [
7355
+ new FormField({
7356
+ name: "code",
7357
+ label: this.translate.instant("hcm.payroll.code"),
7358
+ type: FieldType.Integer,
7359
+ }),
7360
+ ];
7361
+ this.gridFields = [
7362
+ new FormField({
7363
+ name: "displayField",
7364
+ label: this.translate.instant("hcm.payroll.transportation_voucher_scale"),
7365
+ type: FieldType.String,
7366
+ }),
7367
+ ];
7368
+ this.searchFields = [
7369
+ ...this.concatName,
7370
+ {
7371
+ name: "searchText",
7372
+ label: this.translate.instant("hcm.payroll.description"),
7373
+ type: FieldType.String,
7374
+ },
7375
+ {
7376
+ name: "transportationVoucherScaleGroup",
7377
+ type: FieldType.Autocomplete,
7378
+ label: this.translate.instant("hcm.payroll.grouper"),
7379
+ dataKey: "id",
7380
+ appendTo: "body",
7381
+ fullWidth: true,
7382
+ onSearch: (val) => {
7383
+ this.getAutocompleteQuery("autocompleteTransportationVoucherScaleGroupQuery", {
7384
+ searchText: val ? val : "",
7385
+ }, ServiceType.GENERAL_REGISTER);
7386
+ },
7387
+ suggestionsObservable: this.suggestionsObservable,
7388
+ displayField: "value",
7389
+ },
7390
+ ];
7391
+ this.transportationVoucherScaleFilterForm = new FormGroup({});
7392
+ this.unsubscribe = new Subject();
7393
+ this.initialLoad = true;
7394
+ }
7395
+ ngOnInit() {
7396
+ }
7397
+ ngAfterViewInit() {
7398
+ this.cdr.detectChanges();
7399
+ }
7400
+ ngOnDestroy() {
7401
+ this.unsubscribe.next();
7402
+ this.unsubscribe.complete();
7403
+ }
7404
+ /**
7405
+ * Evento disparado ao selecionar um item no lookup
7406
+ */
7407
+ selectOption(event) {
7408
+ if (event && event.code) {
7409
+ this.onSelect.emit(event);
7410
+ }
7411
+ }
7412
+ /**
7413
+ * Evento disparado ao limpar o campo
7414
+ */
7415
+ onClearItem(event) {
7416
+ this.onClear.emit(event);
7417
+ }
7418
+ /**
7419
+ * Requisição de busca no lookup
7420
+ */
7421
+ searchRequest($event) {
7422
+ const endpoint = "hcm/general_register/queries/transportationVoucherScaleFilterQuery";
7423
+ const isLookupOpen = $event && $event.filterData;
7424
+ $event = Object.assign({}, this.getValueEvent($event, isLookupOpen));
7425
+ const filter = new TransportationVoucherScaleLookupDto($event);
7426
+ this.lookupService
7427
+ .lookupRequestPost(filter.getToFilter(), endpoint, [...this.concatFieldsName], "displayField")
7428
+ .pipe(takeUntil(this.unsubscribe))
7429
+ .subscribe((data) => {
7430
+ if (isLookupOpen) {
7431
+ this.searchGridData = data && [...data.contents];
7432
+ }
7433
+ else {
7434
+ this.lookupSuggestions = data && [...data.contents];
7435
+ }
7436
+ this.totalRecords = data && data.totalElements;
7437
+ });
7438
+ }
7439
+ /**
7440
+ * Formata o evento de pesquisa
7441
+ */
7442
+ getValueEvent($event, isLookupOpen) {
7443
+ if (isLookupOpen) {
7444
+ return $event;
7445
+ }
7446
+ else {
7447
+ return {
7448
+ filterData: {
7449
+ searchText: $event
7450
+ },
7451
+ };
7452
+ }
7453
+ }
7454
+ /**
7455
+ * Busca dados do autocomplete
7456
+ */
7457
+ getAutoComplete(entity, params, code, displayField, filterParams = null, codeIsString = false, service = ServiceType.PAYROLL) {
7458
+ const searchFields = [
7459
+ { name: code, type: FieldType.Integer },
7460
+ { name: displayField, type: FieldType.String },
7461
+ ];
7462
+ const concatFields = Object.assign({ code: { searchValue: params } }, filterParams);
7463
+ this.autocompleteService
7464
+ .getAutoComplete(entity, concatFields, searchFields, codeIsString, service)
7465
+ .pipe(takeUntil(this.unsubscribe))
7466
+ .subscribe((data) => {
7467
+ this.suggestionsObservable.next(data || []);
7468
+ });
7469
+ }
7470
+ /**
7471
+ * Busca dados via query customizada
7472
+ */
7473
+ getAutocompleteQuery(query, params, service = ServiceType.PAYROLL) {
7474
+ this.autocompleteService
7475
+ .getAutoCompleteQuery(query, params, service)
7476
+ .pipe(takeUntil(this.unsubscribe))
7477
+ .subscribe((data) => {
7478
+ if (query === "autocompleteTransportationVoucherScaleGroupQuery") {
7479
+ data.forEach((item) => {
7480
+ if (item.fields && item.fields.length >= 2) {
7481
+ // Extrai o valor concatenado do segundo field (TransportationVoucherScaleGroupNameI18n)
7482
+ item["value"] = item.fields[1].value;
7483
+ // Extrai o id do tableId
7484
+ item["id"] = item.tableId;
7485
+ }
7486
+ });
7487
+ }
7488
+ this.suggestionsObservable.next(data || []);
7489
+ });
7490
+ }
7491
+ };
7492
+ TransportationVoucherScaleLookupComponent.ctorParameters = () => [
7493
+ { type: AutocompleteService$1 },
7494
+ { type: LookupService$2 },
7495
+ { type: TranslateService },
7496
+ { type: ChangeDetectorRef }
7497
+ ];
7498
+ __decorate([
7499
+ ViewChild("transportationVoucherScaleEl", { static: false })
7500
+ ], TransportationVoucherScaleLookupComponent.prototype, "transportationVoucherScaleEl", void 0);
7501
+ __decorate([
7502
+ Input()
7503
+ ], TransportationVoucherScaleLookupComponent.prototype, "required", void 0);
7504
+ __decorate([
7505
+ Input()
7506
+ ], TransportationVoucherScaleLookupComponent.prototype, "disabled", void 0);
7507
+ __decorate([
7508
+ Input()
7509
+ ], TransportationVoucherScaleLookupComponent.prototype, "form", void 0);
7510
+ __decorate([
7511
+ Input()
7512
+ ], TransportationVoucherScaleLookupComponent.prototype, "name", void 0);
7513
+ __decorate([
7514
+ Output()
7515
+ ], TransportationVoucherScaleLookupComponent.prototype, "onSelect", void 0);
7516
+ __decorate([
7517
+ Output()
7518
+ ], TransportationVoucherScaleLookupComponent.prototype, "onClear", void 0);
7519
+ __decorate([
7520
+ Output()
7521
+ ], TransportationVoucherScaleLookupComponent.prototype, "onBlur", void 0);
7522
+ TransportationVoucherScaleLookupComponent = __decorate([
7523
+ Component({
7524
+ // tslint:disable-next-line:component-selector
7525
+ selector: "c-transportation-voucher-scale-lookup",
7526
+ template: "<div [formGroup]=\"form\">\n <s-lookup\n #transportationVoucherScaleEl\n id=\"transportationVoucherScale\"\n dataKey=\"code\"\n (onSelect)=\"selectOption($event)\"\n (onClear)=\"onClearItem($event)\"\n [formControlName]=\"name\"\n (onLookupRequest)=\"searchRequest($event)\"\n (onSearchRequest)=\"searchRequest($event)\"\n filterTitle=\"{{ 'hcm.payroll.filters' | translate }}\"\n filterLabel=\"{{ 'hcm.payroll.filter' | translate }}\"\n clearLabel=\"{{ 'hcm.payroll.lookup_generic_clean_filter_label' | translate }}\"\n cancelLabel=\"{{ 'hcm.payroll.cancel' | translate }}\"\n selectLabel=\"{{ 'hcm.payroll.lookup_btn_select_label' | translate }}\"\n [disabled]=\"disabled\"\n [lookupSuggestions]=\"lookupSuggestions\"\n lookupEmptyMessage=\"{{ 'hcm.payroll.lookup_auto_complete_empty_message' | translate }}\"\n [searchGridData]=\"searchGridData\"\n [searchFields]=\"searchFields\"\n placeholder=\"{{'hcm.payroll.suggestions' | translate}}\"\n [searchTotalRecords]=\"totalRecords\"\n searchTotalRecordsLabel=\"{{ totalRecords }} {{\n 'hcm.payroll.admission_registers' | translate\n }}\"\n [searchGridFields]=\"gridFields\"\n searchTitle=\"{{ 'hcm.payroll.transportation_voucher_scale' | translate }}\"\n lookupDisplayField=\"displayField\"\n ></s-lookup>\n</div>\n"
7527
+ })
7528
+ ], TransportationVoucherScaleLookupComponent);
7529
+
7530
+ let TransportationVoucherScaleLookupModule = class TransportationVoucherScaleLookupModule {
7531
+ };
7532
+ TransportationVoucherScaleLookupModule = __decorate([
7533
+ NgModule({
7534
+ imports: [
7535
+ CommonModule,
7536
+ FormsModule,
7537
+ ReactiveFormsModule,
7538
+ TranslateModule,
7539
+ HttpClientModule,
7540
+ LocaleModule.forChild(),
7541
+ DynamicFormModule,
7542
+ ],
7543
+ declarations: [TransportationVoucherScaleLookupComponent],
7544
+ exports: [TransportationVoucherScaleLookupComponent],
7545
+ providers: [AutocompleteService$1, LookupService$2, MessageService],
7546
+ })
7547
+ ], TransportationVoucherScaleLookupModule);
7548
+
7069
7549
  let HistoricalBankAccountComponent = class HistoricalBankAccountComponent {
7070
7550
  constructor(confirmationService, translateService, activatedRoute, cd, formBuilder) {
7071
7551
  this.confirmationService = confirmationService;
@@ -7784,7 +8264,7 @@ HistoricalBankAccountListService = __decorate([
7784
8264
  Injectable()
7785
8265
  ], HistoricalBankAccountListService);
7786
8266
 
7787
- const moment$c = moment_;
8267
+ const moment$f = moment_;
7788
8268
  let HistoricalBankAccountListComponent = class HistoricalBankAccountListComponent {
7789
8269
  constructor(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalBankAccountListService) {
7790
8270
  this.confirmationService = confirmationService;
@@ -7839,7 +8319,7 @@ let HistoricalBankAccountListComponent = class HistoricalBankAccountListComponen
7839
8319
  }
7840
8320
  onLazyLoad(payload) {
7841
8321
  payload.forEach((value) => {
7842
- value.dateWhen = moment$c(value.dateWhen).format(this.dateFormat);
8322
+ value.dateWhen = moment$f(value.dateWhen).format(this.dateFormat);
7843
8323
  });
7844
8324
  this.onGridLoad(payload);
7845
8325
  this.loading = false;
@@ -7849,7 +8329,7 @@ let HistoricalBankAccountListComponent = class HistoricalBankAccountListComponen
7849
8329
  {
7850
8330
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
7851
8331
  command: () => {
7852
- const dateWhen = rowData && rowData.dateWhen && moment$c(rowData.dateWhen, this.dateFormat).format("YYYY-MM-DD");
8332
+ const dateWhen = rowData && rowData.dateWhen && moment$f(rowData.dateWhen, this.dateFormat).format("YYYY-MM-DD");
7853
8333
  if (this.withSidebar)
7854
8334
  this.router.navigate([`historical-bank-account/${dateWhen}`], {
7855
8335
  relativeTo: this.activatedRoute,
@@ -7877,7 +8357,7 @@ let HistoricalBankAccountListComponent = class HistoricalBankAccountListComponen
7877
8357
  }
7878
8358
  delete(id, dateWhen) {
7879
8359
  if (id === this.lastRecord.id) {
7880
- const dateWhenToDto = moment$c(dateWhen, this.dateFormat).format("YYYY-MM-DD");
8360
+ const dateWhenToDto = moment$f(dateWhen, this.dateFormat).format("YYYY-MM-DD");
7881
8361
  this.confirmationService.confirm({
7882
8362
  message: `${this.translateService.instant("hcm.payroll.employees_movimentation_historical_bank_account_question_confirm_delete")}?`,
7883
8363
  accept: () => {
@@ -8051,9 +8531,9 @@ class EntityODataParameter {
8051
8531
  }
8052
8532
  }
8053
8533
 
8054
- const moment$d = moment_;
8055
- const dateStartG5 = moment$d('31/12/1900', 'DD/MM/YYYY');
8056
- const dateEndG5 = moment$d('04/06/2080', 'DD/MM/YYYY');
8534
+ const moment$g = moment_;
8535
+ const dateStartG5 = moment$g('31/12/1900', 'DD/MM/YYYY');
8536
+ const dateEndG5 = moment$g('04/06/2080', 'DD/MM/YYYY');
8057
8537
  class DateValidator {
8058
8538
  constructor() { }
8059
8539
  /**
@@ -8068,7 +8548,7 @@ class DateValidator {
8068
8548
  const value = removeCharacteresSpecials(control.value);
8069
8549
  dateFormat = removeCharacteresSpecials(dateFormat);
8070
8550
  if (value && dateFormat && value.length === dateFormat.length && !control.value.includes('_')) {
8071
- const dateValue = moment$d(value, dateFormat);
8551
+ const dateValue = moment$g(value, dateFormat);
8072
8552
  const valid = dateValue.isValid();
8073
8553
  const isValidRange = useG5DateRange ? dateValue.isBetween(dateStartG5, dateEndG5, null, '[]') : true;
8074
8554
  return valid && isValidRange ? null : { invalidDate: true };
@@ -8102,8 +8582,8 @@ class DateValidator {
8102
8582
  const value = removeCharacteresSpecials(control.value);
8103
8583
  dateFormat = removeCharacteresSpecials(dateFormat);
8104
8584
  if (value && dateFormat && value.length === dateFormat.length && !control.value.includes('_')) {
8105
- const referenceDate = moment$d(value, dateFormat);
8106
- const compareTo = moment$d(compareToDate, dateFormat);
8585
+ const referenceDate = moment$g(value, dateFormat);
8586
+ const compareTo = moment$g(compareToDate, dateFormat);
8107
8587
  return this.dateCompare(referenceDate, compareTo, compareType, options);
8108
8588
  }
8109
8589
  return null;
@@ -9742,7 +10222,7 @@ HistoricalPixAccountListService = __decorate([
9742
10222
  Injectable()
9743
10223
  ], HistoricalPixAccountListService);
9744
10224
 
9745
- const moment$e = moment_;
10225
+ const moment$h = moment_;
9746
10226
  let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent {
9747
10227
  constructor(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
9748
10228
  this.confirmationService = confirmationService;
@@ -9784,7 +10264,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
9784
10264
  }
9785
10265
  onLazyLoad(payload) {
9786
10266
  payload.forEach((value) => {
9787
- value.dateChange = moment$e(value.dateChange).format(this.dateFormat);
10267
+ value.dateChange = moment$h(value.dateChange).format(this.dateFormat);
9788
10268
  });
9789
10269
  this.onGridLoad(payload);
9790
10270
  this.loading = false;
@@ -9795,7 +10275,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
9795
10275
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9796
10276
  command: () => {
9797
10277
  if (this.isAllowToViewHistorical) {
9798
- const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
10278
+ const dateChange = rowData && rowData.dateChange && moment$h(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
9799
10279
  if (this.withSidebar) {
9800
10280
  this.isOnlyView.emit(true);
9801
10281
  this.router.navigate([`historical-pix-account/${dateChange}`], {
@@ -9815,7 +10295,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
9815
10295
  label: this.translateService.instant("hcm.payroll.edit"),
9816
10296
  command: () => {
9817
10297
  if (this.isAllowToEditHistorical) {
9818
- const dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
10298
+ const dateChange = rowData && rowData.dateChange && moment$h(rowData.dateChange, this.dateFormat).format("YYYY-MM-DD");
9819
10299
  if (this.withSidebar) {
9820
10300
  this.isOnlyView.emit(false);
9821
10301
  this.isOnlyEdit.emit(true);
@@ -9847,7 +10327,7 @@ let HistoricalPixAccountListComponent = class HistoricalPixAccountListComponent
9847
10327
  }
9848
10328
  delete(id, dateChange) {
9849
10329
  if (id === this.lastRecord.id) {
9850
- const dateChangeToDto = moment$e(dateChange, this.dateFormat).format("YYYY-MM-DD");
10330
+ const dateChangeToDto = moment$h(dateChange, this.dateFormat).format("YYYY-MM-DD");
9851
10331
  this.confirmationService.confirm({
9852
10332
  message: `${this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_question_confirm_delete")}?`,
9853
10333
  accept: () => {
@@ -10019,5 +10499,5 @@ HistoricalPixAccountListModule = __decorate([
10019
10499
  * Generated bundle index. Do not edit.
10020
10500
  */
10021
10501
 
10022
- export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountListComponent, HistoricalPixAccountListModule, HistoricalPixAccountListService, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq, HistoricalPixAccountFormComponent as ɵr };
10502
+ export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, AutocompleteService$1 as AutocompleteService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HistoricalPixAccountComponent, HistoricalPixAccountListComponent, HistoricalPixAccountListModule, HistoricalPixAccountListService, HistoricalPixAccountModule, HistoricalPixAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, LookupService$2 as LookupService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TransportationVoucherScaleLookupComponent, TransportationVoucherScaleLookupDto, TransportationVoucherScaleLookupModule, 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 };
10023
10503
  //# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map