@senior-gestao-pessoas/hcm-entity-lookups 4.1.2 → 4.1.3-develop-67992cf4

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 (63) hide show
  1. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +486 -510
  2. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js.map +1 -1
  5. package/core/entities/e-001-pes/e-001-pes-dto.d.ts +1 -0
  6. package/core/entities/e-001-pes/e-001-pes.d.ts +1 -0
  7. package/core/entities/e-070-fil/e-070-fil.d.ts +1 -2
  8. package/core/index.d.ts +0 -1
  9. package/esm2015/core/core-lookup.module.js +1 -3
  10. package/esm2015/core/entities/e-001-pes/e-001-pes-dto.js +1 -1
  11. package/esm2015/core/entities/e-001-pes/e-001-pes.js +1 -1
  12. package/esm2015/core/entities/e-070-fil/e-070-fil.js +1 -6
  13. package/esm2015/core/index.js +1 -2
  14. package/esm2015/lookups/administrative-judicial-case-lookup/administrative-judicial-case-lookup.component.js +12 -5
  15. package/esm2015/lookups/administrative-judicial-case-lookup/administrative-judicial-case-lookup.service.js +17 -13
  16. package/esm2015/lookups/esocial-category-lookup/esocial-category-lookup.module.js +2 -4
  17. package/esm2015/lookups/person-lookup/person-lookup.component.js +24 -105
  18. package/esm2015/lookups/person-lookup/person-lookup.module.js +10 -8
  19. package/esm2015/lookups/person-lookup/person-lookup.service.js +192 -0
  20. package/esm2015/public-api.js +2 -1
  21. package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +26 -28
  22. package/esm5/core/core-lookup.module.js +1 -3
  23. package/esm5/core/entities/e-001-pes/e-001-pes-dto.js +1 -1
  24. package/esm5/core/entities/e-001-pes/e-001-pes.js +1 -1
  25. package/esm5/core/entities/e-070-fil/e-070-fil.js +1 -6
  26. package/esm5/core/index.js +1 -2
  27. package/esm5/lookups/administrative-judicial-case-lookup/administrative-judicial-case-lookup.component.js +12 -5
  28. package/esm5/lookups/administrative-judicial-case-lookup/administrative-judicial-case-lookup.service.js +17 -13
  29. package/esm5/lookups/esocial-category-lookup/esocial-category-lookup.module.js +2 -4
  30. package/esm5/lookups/person-lookup/person-lookup.component.js +25 -110
  31. package/esm5/lookups/person-lookup/person-lookup.module.js +10 -8
  32. package/esm5/lookups/person-lookup/person-lookup.service.js +202 -0
  33. package/esm5/public-api.js +2 -1
  34. package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +26 -28
  35. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +445 -462
  36. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  37. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +461 -482
  38. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  39. package/lookups/administrative-judicial-case-lookup/administrative-judicial-case-lookup.service.d.ts +1 -1
  40. package/lookups/person-lookup/person-lookup.component.d.ts +6 -11
  41. package/lookups/person-lookup/person-lookup.service.d.ts +25 -0
  42. package/package.json +1 -1
  43. package/public-api.d.ts +1 -0
  44. package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +25 -27
  45. package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
  46. package/core/entities/company-branch-indications/company-branch-indications-dto.d.ts +0 -14
  47. package/core/entities/company-branch-indications/company-branch-indications.d.ts +0 -19
  48. package/core/entities/company-branch-indications/company-branch-indications.module.d.ts +0 -2
  49. package/core/entities/company-branch-indications/company-branch-indications.service.d.ts +0 -14
  50. package/core/entities/company-branch-indications/index.d.ts +0 -3
  51. package/core/entities/e-social-category/esocial-category.module.d.ts +0 -2
  52. package/esm2015/core/entities/company-branch-indications/company-branch-indications-dto.js +0 -5
  53. package/esm2015/core/entities/company-branch-indications/company-branch-indications.js +0 -42
  54. package/esm2015/core/entities/company-branch-indications/company-branch-indications.module.js +0 -38
  55. package/esm2015/core/entities/company-branch-indications/company-branch-indications.service.js +0 -45
  56. package/esm2015/core/entities/company-branch-indications/index.js +0 -3
  57. package/esm2015/core/entities/e-social-category/esocial-category.module.js +0 -24
  58. package/esm5/core/entities/company-branch-indications/company-branch-indications-dto.js +0 -5
  59. package/esm5/core/entities/company-branch-indications/company-branch-indications.js +0 -45
  60. package/esm5/core/entities/company-branch-indications/company-branch-indications.module.js +0 -41
  61. package/esm5/core/entities/company-branch-indications/company-branch-indications.service.js +0 -48
  62. package/esm5/core/entities/company-branch-indications/index.js +0 -3
  63. package/esm5/core/entities/e-social-category/esocial-category.module.js +0 -27
@@ -5069,100 +5069,174 @@
5069
5069
  return E001PesService;
5070
5070
  }(EntityService));
5071
5071
 
5072
- var PersonLookupComponent = /** @class */ (function (_super) {
5073
- __extends(PersonLookupComponent, _super);
5074
- function PersonLookupComponent(translate, cdRef, structerService, personService, configService) {
5075
- var _this = _super.call(this, translate, cdRef, configService, structerService) || this;
5076
- _this.translate = translate;
5077
- _this.cdRef = cdRef;
5078
- _this.structerService = structerService;
5079
- _this.personService = personService;
5080
- _this.configService = configService;
5081
- _this.filters = [];
5082
- _this.personAdvancedDisplayFields = ["id", "codPes", "nomPes", "datNas"];
5083
- _this.personLookupDisplayFields = ["codPes", "nomPes"];
5084
- _this.personLookupSeparator = " - ";
5085
- _this.controlName = "person";
5086
- _this.personSearchFields = _this.getPersonSearchFields();
5087
- _this.personSearchGridFields = _this.getPersonSearchFields();
5088
- return _this;
5072
+ var PersonLookupService = /** @class */ (function () {
5073
+ function PersonLookupService(translate, configService, personService) {
5074
+ this.translate = translate;
5075
+ this.configService = configService;
5076
+ this.personService = personService;
5077
+ this.lookupServiceConfig = {
5078
+ lookupDisplayFields: ["codPes", "nomPes"],
5079
+ lookupSeparator: " - ",
5080
+ searchSubject: new rxjs.Subject(),
5081
+ lookupSubject: new rxjs.Subject(),
5082
+ entityName: "e001Pes",
5083
+ dynamicFormOptions: {
5084
+ cancelLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".cancel"),
5085
+ clearLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".clear"),
5086
+ dataKey: "id",
5087
+ emptyFieldLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".list_grid_empty_field"),
5088
+ emptyMessage: this.translate.instant(this.configService.getTranslationPrefix() + ".empty_message_field"),
5089
+ filterLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".filter"),
5090
+ filterTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".filters"),
5091
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".company_linked_location"),
5092
+ lookupDisplayField: "label",
5093
+ multiple: false,
5094
+ name: "person",
5095
+ recordLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
5096
+ recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
5097
+ required: true,
5098
+ searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
5099
+ searchFields: this.getPersonSearchFields(),
5100
+ searchGridFields: this.getPersonSearchFields(),
5101
+ searchTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".company_linked_location_search_title"),
5102
+ selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
5103
+ visible: true,
5104
+ isCollective: false,
5105
+ },
5106
+ filters: {
5107
+ additionalFilter: undefined,
5108
+ initialFilter: undefined,
5109
+ companyIds: [],
5110
+ },
5111
+ };
5112
+ this.ngUnsubscribe = new rxjs.Subject();
5089
5113
  }
5090
- PersonLookupComponent.prototype.onPersonLookupRequest = function (value) {
5114
+ PersonLookupService.prototype.updateSuggestions = function (value) {
5115
+ if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
5116
+ value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
5117
+ if ((value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName].label.trim()) === this.lookupServiceConfig.lookupSeparator.trim()) {
5118
+ delete value[this.lookupServiceConfig.entityName].label;
5119
+ }
5120
+ }
5121
+ };
5122
+ PersonLookupService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
5123
+ return displayFields
5124
+ .map(function (field) { return getProp(value, ownerEntity + "." + field); })
5125
+ .reduce(function (acc, val) { return "" + acc + separator + val; });
5126
+ };
5127
+ PersonLookupService.prototype.getFormField = function () {
5091
5128
  var _this = this;
5092
- var sort = this.personLookupDisplayFields.map(function (field) { return ({
5093
- field: field,
5094
- order: 1,
5095
- }); });
5096
- var filterQuery = createLookupRequestFilter(value, this.getPersonSearchFields()); // NOSONAR
5097
- var displayFields = mergeUnique(this.personLookupDisplayFields, this.personAdvancedDisplayFields);
5098
- this.personService
5099
- .list({ sort: sort, filterQuery: this.buildFilterQueryWithFilters(filterQuery), displayFields: displayFields })
5100
- .pipe(operators.takeUntil(this.ngUnsubscribe))
5101
- .pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.personLookupDisplayFields.map(function (field) {
5102
- if (field.indexOf(".") > 0)
5103
- item[field] = getProp(item, field);
5104
- return item[field];
5105
- })
5106
- .join(_this.personLookupSeparator) })); }) })); }))
5107
- .subscribe(function (list) {
5108
- _this.personLookupSuggestions = list.contents;
5109
- _this.personSearchTotalRecords = list.totalElements;
5129
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
5130
+ return new angularComponents.FormField({
5131
+ cancelLabel: (_a = this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.cancelLabel,
5132
+ clearLabel: (_b = this.lookupServiceConfig.dynamicFormOptions) === null || _b === void 0 ? void 0 : _b.clearLabel,
5133
+ recordLabel: (_c = this.lookupServiceConfig.dynamicFormOptions) === null || _c === void 0 ? void 0 : _c.recordLabel,
5134
+ recordsLabel: (_d = this.lookupServiceConfig.dynamicFormOptions) === null || _d === void 0 ? void 0 : _d.recordsLabel,
5135
+ searchEmptyTitle: (_e = this.lookupServiceConfig.dynamicFormOptions) === null || _e === void 0 ? void 0 : _e.searchEmptyTitle,
5136
+ searchFields: (_f = this.lookupServiceConfig.dynamicFormOptions) === null || _f === void 0 ? void 0 : _f.searchFields,
5137
+ searchTitle: (_g = this.lookupServiceConfig.dynamicFormOptions) === null || _g === void 0 ? void 0 : _g.searchTitle,
5138
+ selectLabel: (_h = this.lookupServiceConfig.dynamicFormOptions) === null || _h === void 0 ? void 0 : _h.selectLabel,
5139
+ dataKey: (_j = this.lookupServiceConfig.dynamicFormOptions) === null || _j === void 0 ? void 0 : _j.dataKey,
5140
+ emptyFieldLabel: (_k = this.lookupServiceConfig.dynamicFormOptions) === null || _k === void 0 ? void 0 : _k.emptyFieldLabel,
5141
+ emptyMessage: (_l = this.lookupServiceConfig.dynamicFormOptions) === null || _l === void 0 ? void 0 : _l.emptyMessage,
5142
+ filterLabel: (_m = this.lookupServiceConfig.dynamicFormOptions) === null || _m === void 0 ? void 0 : _m.filterLabel,
5143
+ filterTitle: (_o = this.lookupServiceConfig.dynamicFormOptions) === null || _o === void 0 ? void 0 : _o.filterTitle,
5144
+ label: (_p = this.lookupServiceConfig.dynamicFormOptions) === null || _p === void 0 ? void 0 : _p.label,
5145
+ lookupDisplayField: (_q = this.lookupServiceConfig.dynamicFormOptions) === null || _q === void 0 ? void 0 : _q.lookupDisplayField,
5146
+ multiple: (_r = this.lookupServiceConfig.dynamicFormOptions) === null || _r === void 0 ? void 0 : _r.multiple,
5147
+ name: (_s = this.lookupServiceConfig.dynamicFormOptions) === null || _s === void 0 ? void 0 : _s.name,
5148
+ onLookupRequest: function (value) { return _this.onPersonLookupRequest(value); },
5149
+ onSearchRequest: function (event) { return _this.onPersonSearchRequest(event); },
5150
+ required: function () { var _a; return (_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.required; },
5151
+ searchObservable: this.lookupServiceConfig.searchSubject,
5152
+ suggestionsObservable: this.lookupServiceConfig.lookupSubject,
5153
+ type: angularComponents.FieldType.Lookup,
5154
+ visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); },
5110
5155
  });
5111
5156
  };
5112
- PersonLookupComponent.prototype.buildFilterQueryWithFilters = function (filterQuery) {
5113
- var _a;
5114
- if ((_a = this.filters) === null || _a === void 0 ? void 0 : _a.length) {
5115
- return __spread(this.filters, [filterQuery]).filter(function (it) { return it === null || it === void 0 ? void 0 : it.length; }).join(" and ");
5116
- }
5117
- return filterQuery;
5157
+ PersonLookupService.prototype.onPersonSearchRequest = function (event) {
5158
+ var _this = this;
5159
+ var _a, _b, _c, _d;
5160
+ this.onPersonSearchRequestObservable(event, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds, true).subscribe(function (data) { return _this.lookupServiceConfig.searchSubject.next(data); });
5118
5161
  };
5119
- PersonLookupComponent.prototype.onPersonSearchRequest = function (event) {
5162
+ PersonLookupService.prototype.onPersonSearchRequestObservable = function (event, additionalFilter, companyIds, isDynamicForm) {
5120
5163
  var _this = this;
5164
+ if (isDynamicForm === void 0) { isDynamicForm = false; }
5121
5165
  var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
5122
5166
  var page = first / rows;
5123
5167
  var sort = multiSortMeta;
5124
- var filterQuery = this.getPersonSearchFields()
5125
- .filter(function (_a) {
5126
- var name = _a.name;
5127
- return filterData[name] != undefined && filterData[name] != "";
5128
- })
5129
- .map(function (_a) {
5130
- var name = _a.name, type = _a.type;
5131
- var value = filterData[name];
5132
- if (typeof value == "number")
5133
- return name + " eq " + value;
5134
- else if (type == angularComponents.FieldType.Date)
5135
- return name + " eq '" + moment$k(value).format("YYYY-MM-DD") + "'";
5136
- else if (type == angularComponents.FieldType.Time)
5137
- return name + " eq '" + moment$k(value).format("HH:mm:ss") + "'";
5138
- else if (type == angularComponents.FieldType.DateTime)
5139
- return name + " eq '" + moment$k(value).format() + "'";
5140
- else if (type == angularComponents.FieldType.Enum)
5141
- return name + " eq '" + value + "'";
5142
- else if (type == angularComponents.FieldType.String)
5143
- return "containing(upper(" + name + "), upper('" + value.replace(/'/g, "\\'") + "'))";
5144
- else
5145
- return name + " eq '" + value + "'";
5168
+ var personFilterQuery = createSearchRequestFilter(filterData, this.getPersonSearchFields());
5169
+ personFilterQuery = this.getFiltersDefaultPerson(companyIds, personFilterQuery, additionalFilter);
5170
+ var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("e070emp"), __spread(this.lookupServiceConfig.lookupDisplayFields));
5171
+ return this.personService
5172
+ .list({ page: page, sort: sort, filterQuery: personFilterQuery, displayFields: displayFields })
5173
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5174
+ .pipe(operators.map(function (list) { return _this.mapToComponent(list, isDynamicForm); }));
5175
+ };
5176
+ PersonLookupService.prototype.getFiltersDefaultPerson = function (companyIds, filterData, additionalFilter) {
5177
+ var filters = [];
5178
+ additionalFilter && filters.push("(" + additionalFilter + ")");
5179
+ filterData && filters.push("(" + filterData + ")");
5180
+ (companyIds === null || companyIds === void 0 ? void 0 : companyIds.length) && filters.push("(e070emp.id in (" + companyIds.map(function (id) { return "'" + id + "'"; }) + "))");
5181
+ return filters.join(' and ');
5182
+ };
5183
+ PersonLookupService.prototype.mapToComponent = function (list, isDynamicForm) {
5184
+ var _this = this;
5185
+ if (isDynamicForm === void 0) { isDynamicForm = false; }
5186
+ if (isDynamicForm) {
5187
+ return ({
5188
+ gridData: list.contents
5189
+ .map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }),
5190
+ totalRecords: list === null || list === void 0 ? void 0 : list.totalElements,
5191
+ });
5192
+ }
5193
+ else {
5194
+ return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }) }));
5195
+ }
5196
+ };
5197
+ PersonLookupService.prototype.getLabelForMaping = function (item) {
5198
+ var _this = this;
5199
+ return this.lookupServiceConfig.lookupDisplayFields
5200
+ .map(function (field) {
5201
+ if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
5202
+ item.name = _this.translate
5203
+ .instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
5204
+ }
5205
+ if (field.indexOf(".") > 0) {
5206
+ return getProp(item, field);
5207
+ }
5208
+ return item[field];
5146
5209
  })
5147
- .join(" and ");
5148
- var displayFields = mergeUnique(this.personLookupDisplayFields, this.personAdvancedDisplayFields);
5149
- this.personService
5150
- .list({ page: page, sort: sort, filterQuery: this.buildFilterQueryWithFilters(filterQuery), displayFields: displayFields })
5210
+ .join(this.lookupServiceConfig.lookupSeparator);
5211
+ };
5212
+ PersonLookupService.prototype.onPersonLookupRequest = function (value) {
5213
+ var _this = this;
5214
+ var _a, _b, _c, _d;
5215
+ this.onPersonLookupRequestObservable(value, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds).subscribe(function (data) { return _this.lookupServiceConfig.lookupSubject.next(data.contents); });
5216
+ };
5217
+ PersonLookupService.prototype.onPersonLookupRequestObservable = function (value, additionalFilter, companyIds) {
5218
+ var _this = this;
5219
+ var sort = this.lookupServiceConfig.lookupDisplayFields
5220
+ .map(function (field) { return ({ field: field, order: 1 }); });
5221
+ var personFilterQuery = createLookupRequestFilter(value, this.getPersonSearchFields());
5222
+ personFilterQuery = this.getFiltersDefaultPerson(companyIds, personFilterQuery, additionalFilter);
5223
+ var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("e070emp"), __spread(this.lookupServiceConfig.lookupDisplayFields));
5224
+ return this.personService
5225
+ .list({ sort: sort, filterQuery: personFilterQuery, displayFields: displayFields })
5151
5226
  .pipe(operators.takeUntil(this.ngUnsubscribe))
5152
- .pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.personLookupDisplayFields
5227
+ .pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.lookupServiceConfig.lookupDisplayFields
5153
5228
  .map(function (field) {
5154
- if (field.indexOf(".") > 0)
5155
- item[field] = getProp(item, field);
5229
+ if (field === "name" && !item.name) {
5230
+ item.name = _this.translate
5231
+ .instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
5232
+ }
5233
+ if (field.indexOf(".") > 0) {
5234
+ return getProp(item, field);
5235
+ }
5156
5236
  return item[field];
5157
- })
5158
- .join(_this.personLookupSeparator) })); }) })); }))
5159
- .subscribe(function (list) {
5160
- _this.personSearchGridData = list.contents;
5161
- _this.personSearchTotalRecords = list.totalElements;
5162
- });
5237
+ }).join(_this.lookupServiceConfig.lookupSeparator) })); }) })); }));
5163
5238
  };
5164
- PersonLookupComponent.prototype.getPersonSearchFields = function () {
5165
- var _a, _b, _c;
5239
+ PersonLookupService.prototype.getPersonSearchFields = function () {
5166
5240
  return [
5167
5241
  new angularComponents.FormField({
5168
5242
  name: "codPes",
@@ -5173,31 +5247,68 @@
5173
5247
  name: "nomPes",
5174
5248
  label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_001_pes_nom"),
5175
5249
  type: angularComponents.FieldType.String,
5176
- }),
5177
- new angularComponents.FormField({
5178
- name: "datNas",
5179
- label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_001_pes_dat"),
5180
- type: angularComponents.FieldType.Date,
5181
- calendarLocaleOptions: (_a = this.locale) === null || _a === void 0 ? void 0 : _a.calendar,
5182
- dateFormat: (_c = (_b = this.locale) === null || _b === void 0 ? void 0 : _b.calendar) === null || _c === void 0 ? void 0 : _c.dateFormat,
5183
- appendTo: "body",
5184
- }),
5250
+ })
5185
5251
  ];
5186
5252
  };
5253
+ PersonLookupService.ctorParameters = function () { return [
5254
+ { type: core$1.TranslateService },
5255
+ { type: EntityLookupConfigService },
5256
+ { type: E001PesService }
5257
+ ]; };
5258
+ PersonLookupService = __decorate([
5259
+ core.Injectable()
5260
+ ], PersonLookupService);
5261
+ return PersonLookupService;
5262
+ }());
5263
+
5264
+ var PersonLookupComponent = /** @class */ (function (_super) {
5265
+ __extends(PersonLookupComponent, _super);
5266
+ function PersonLookupComponent(translate, cdRef, configService, structerService, personLookupService) {
5267
+ var _this = _super.call(this, translate, cdRef, configService, structerService) || this;
5268
+ _this.translate = translate;
5269
+ _this.cdRef = cdRef;
5270
+ _this.configService = configService;
5271
+ _this.structerService = structerService;
5272
+ _this.personLookupService = personLookupService;
5273
+ _this.controlName = "person";
5274
+ _this.entity = "e001Pes";
5275
+ _this.domain = "erpx_fnd";
5276
+ _this.service = "person";
5277
+ _this.useDateValidation = false;
5278
+ return _this;
5279
+ }
5280
+ PersonLookupComponent.prototype.ngOnInit = function () {
5281
+ this.personSearchFields = this.personLookupService.getPersonSearchFields();
5282
+ this.personSearchGridFields = this.personLookupService.getPersonSearchFields();
5283
+ };
5284
+ PersonLookupComponent.prototype.onPersonLookupRequest = function (value) {
5285
+ var _this = this;
5286
+ this.personLookupService
5287
+ .onPersonLookupRequestObservable(value, this.personLookupService.lookupServiceConfig.filters.additionalFilter, this.companyIds)
5288
+ .subscribe(function (list) {
5289
+ _this.personLookupSuggestions = list === null || list === void 0 ? void 0 : list.contents;
5290
+ });
5291
+ };
5292
+ PersonLookupComponent.prototype.onPersonSearchRequest = function (event) {
5293
+ var _this = this;
5294
+ this.personLookupService
5295
+ .onPersonSearchRequestObservable(event, this.personLookupService.lookupServiceConfig.filters.additionalFilter, this.companyIds)
5296
+ .subscribe(function (list) {
5297
+ _this.personSearchGridData = list === null || list === void 0 ? void 0 : list.contents;
5298
+ _this.personSearchTotalRecords = list === null || list === void 0 ? void 0 : list.totalElements;
5299
+ });
5300
+ };
5187
5301
  PersonLookupComponent.ctorParameters = function () { return [
5188
5302
  { type: core$1.TranslateService },
5189
5303
  { type: core.ChangeDetectorRef },
5304
+ { type: EntityLookupConfigService },
5190
5305
  { type: StructureFilterService },
5191
- { type: E001PesService },
5192
- { type: EntityLookupConfigService }
5306
+ { type: PersonLookupService }
5193
5307
  ]; };
5194
- __decorate([
5195
- core.Input()
5196
- ], PersonLookupComponent.prototype, "filters", void 0);
5197
5308
  PersonLookupComponent = __decorate([
5198
5309
  core.Component({
5199
5310
  selector: "fnd-person-lookup",
5200
- template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\"></s-loading-state>\n<form [formGroup]=\"formGroup\">\n <s-lookup id=\"ff-person-id\" dataKey=\"id\" name=\"personId\"\n lookupDisplayField=\"label\" [formControlName]=\"controlName\"\n [cancelLabel]=\"configService.getTranslationPrefix() + '.cancel' | translate\"\n [clearLabel]=\"configService.getTranslationPrefix() + '.clear' | translate\"\n [emptyFieldLabel]=\"configService.getTranslationPrefix() + '.nothing_found' | translate\"\n [filterLabel]=\"configService.getTranslationPrefix() + '.filter' | translate\"\n [filterTitle]=\"configService.getTranslationPrefix() + '.filters' | translate\"\n [lookupSuggestions]=\"personLookupSuggestions\"\n [searchEmptyTitle]=\"configService.getTranslationPrefix() + '.nothing_found' | translate\"\n [searchFields]=\"personSearchFields\" [searchGridData]=\"personSearchGridData\" [searchTitle]=\"\n configService.getTranslationPrefix() + '.data_person_id_lookup_title'\n | translate\" [searchTotalRecords]=\"personSearchTotalRecords\"\n [selectLabel]=\"configService.getTranslationPrefix() + '.select' | translate\" [showSearch]=\"true\"\n (onLookupRequest)=\"onPersonLookupRequest($event)\"\n [searchTotalRecordsLabel]=\"configService.getTranslationPrefix()\n + '.total_records' | translate: {value: personSearchTotalRecords}\"\n (onSearchRequest)=\"onPersonSearchRequest($event)\"></s-lookup>\n</form>\n"
5311
+ template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\"></s-loading-state>\n<form [formGroup]=\"formGroup\">\n <s-lookup dataKey=\"id\" id=\"person\" name=\"person\" [formControlName]=\"controlName\"\n [searchFields]=\"personSearchFields\"\n [searchGridFields]=\"personSearchGridFields\"\n [searchGridData]=\"personSearchGridData\"\n (onSelect)=\"selectOption($event)\"\n (onClear)=\"onClearItem($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"isDisabled\"\n [lookupSuggestions]=\"personLookupSuggestions\"\n (onLookupRequest)=\"onPersonLookupRequest($event)\"\n (onSearchRequest)=\"onPersonSearchRequest($event)\"\n lookupDisplayField=\"label\"\n [searchTotalRecords]=\"personSearchTotalRecords\"\n [searchTitle]=\"configService.getTranslationPrefix() \n + '.e_001_pes_search_title' | translate\"\n [searchEmptyTitle]=\"configService.getTranslationPrefix()\n + '.nothing_found' | translate\" [filterLabel]=\"configService.getTranslationPrefix()\n + '.filter' | translate\" [filterTitle]=\"configService.getTranslationPrefix()\n + '.filters' | translate\" [clearLabel]=\"configService.getTranslationPrefix()\n + '.clear' | translate\" [cancelLabel]=\"configService.getTranslationPrefix()\n + '.cancel' | translate\" [selectLabel]=\"configService.getTranslationPrefix()\n + '.select' | translate\" [searchTotalRecordsLabel]=\"configService.getTranslationPrefix()\n + '.total_records' | translate: {value: personSearchTotalRecords}\"></s-lookup>\n</form>\n"
5201
5312
  })
5202
5313
  ], PersonLookupComponent);
5203
5314
  return PersonLookupComponent;
@@ -5208,18 +5319,19 @@
5208
5319
  }
5209
5320
  PersonLookupModule = __decorate([
5210
5321
  core.NgModule({
5211
- imports: [
5212
- SharedModule,
5213
- angularComponents.LoadingStateModule,
5322
+ declarations: [
5323
+ PersonLookupComponent,
5214
5324
  ],
5215
5325
  exports: [
5216
5326
  PersonLookupComponent,
5217
5327
  ],
5218
- providers: [
5219
- E001PesService,
5328
+ imports: [
5329
+ SharedModule,
5330
+ angularComponents.LoadingStateModule,
5220
5331
  ],
5221
- declarations: [
5222
- PersonLookupComponent
5332
+ providers: [
5333
+ PersonLookupService,
5334
+ E001PesService
5223
5335
  ],
5224
5336
  })
5225
5337
  ], PersonLookupModule);
@@ -6194,28 +6306,6 @@
6194
6306
  return ESocialCategoryService;
6195
6307
  }(EntityService));
6196
6308
 
6197
- var ESocialCategoryModule = /** @class */ (function () {
6198
- function ESocialCategoryModule() {
6199
- }
6200
- ESocialCategoryModule = __decorate([
6201
- core.NgModule({
6202
- imports: [
6203
- platformComponents.PermissionsModule.forChild([
6204
- {
6205
- name: 'eSocialCategory',
6206
- actions: ['Visualizar', 'Incluir', 'Editar', 'Excluir'],
6207
- uri: "res://senior.com.br/tax_obligation/shared/entities/eSocialCategory",
6208
- },
6209
- ])
6210
- ],
6211
- providers: [
6212
- ESocialCategoryService
6213
- ]
6214
- })
6215
- ], ESocialCategoryModule);
6216
- return ESocialCategoryModule;
6217
- }());
6218
-
6219
6309
  var ESocialCategoryLookupService = /** @class */ (function () {
6220
6310
  function ESocialCategoryLookupService(translate, configService, esocialCategoryService) {
6221
6311
  this.translate = translate;
@@ -6435,8 +6525,7 @@
6435
6525
  core.NgModule({
6436
6526
  imports: [
6437
6527
  SharedModule,
6438
- angularComponents.LoadingStateModule,
6439
- ESocialCategoryModule
6528
+ angularComponents.LoadingStateModule
6440
6529
  ],
6441
6530
  exports: [
6442
6531
  ESocialCategoryLookupComponent,
@@ -6831,18 +6920,8 @@
6831
6920
  return item[field];
6832
6921
  }).join(_this.administrativeJudicialCaseLookupSeparator) })); }) })); }));
6833
6922
  };
6834
- AdministrativeJudicialCaseLookupService.prototype.getAdministrativeJudicialCaseSearchFields = function (caseClassificationType) {
6923
+ AdministrativeJudicialCaseLookupService.prototype.getAdministrativeJudicialCaseSearchFields = function (caseClassificationType, companyIds) {
6835
6924
  var searchFields = [
6836
- new angularComponents.FormField({
6837
- label: this.translate.instant(this.configService.getTranslationPrefix() + ".administrative_judicial_case_cod_emp"),
6838
- name: "company.codEmp",
6839
- type: angularComponents.FieldType.Integer,
6840
- }),
6841
- new angularComponents.FormField({
6842
- label: this.translate.instant(this.configService.getTranslationPrefix() + ".administrative_judicial_case_nom_emp"),
6843
- name: "company.nomEmp",
6844
- type: angularComponents.FieldType.String,
6845
- }),
6846
6925
  new angularComponents.FormField({
6847
6926
  type: angularComponents.FieldType.Enum,
6848
6927
  name: "caseType",
@@ -6857,7 +6936,21 @@
6857
6936
  label: this.translate.instant(this.configService.getTranslationPrefix() + ".administrative_judicial_case_case_number"),
6858
6937
  })
6859
6938
  ];
6860
- if (caseClassificationType) {
6939
+ if (!companyIds || companyIds.length === 0) {
6940
+ searchFields.unshift.apply(searchFields, __spread([
6941
+ new angularComponents.FormField({
6942
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".administrative_judicial_case_cod_emp"),
6943
+ name: "company.codEmp",
6944
+ type: angularComponents.FieldType.Integer,
6945
+ }),
6946
+ new angularComponents.FormField({
6947
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".administrative_judicial_case_nom_emp"),
6948
+ name: "company.nomEmp",
6949
+ type: angularComponents.FieldType.String,
6950
+ })
6951
+ ]));
6952
+ }
6953
+ if (!caseClassificationType) {
6861
6954
  searchFields.push(new angularComponents.FormField({
6862
6955
  type: angularComponents.FieldType.Enum,
6863
6956
  name: "caseClassificationType",
@@ -6897,11 +6990,18 @@
6897
6990
  return _this;
6898
6991
  }
6899
6992
  AdministrativeJudicialCaseLookupComponent.prototype.ngOnInit = function () {
6900
- this.administrativeJudicialCaseSearchFields = this.administrativeJudicialCaseLookupService.getAdministrativeJudicialCaseSearchFields(this.caseClassificationType);
6901
- this.administrativeJudicialCaseSearchGridFields = this.administrativeJudicialCaseLookupService.getAdministrativeJudicialCaseSearchFields(this.caseClassificationType);
6993
+ this.administrativeJudicialCaseSearchFields = this.administrativeJudicialCaseLookupService
6994
+ .getAdministrativeJudicialCaseSearchFields(this.caseClassificationType, this.companyIds);
6995
+ this.administrativeJudicialCaseSearchGridFields = this.administrativeJudicialCaseLookupService
6996
+ .getAdministrativeJudicialCaseSearchFields(this.caseClassificationType, this.companyIds);
6997
+ var filters = [];
6902
6998
  if (this.caseClassificationType) {
6903
- this.initialFilter = "caseClassificationType eq '" + this.caseClassificationType + "'";
6999
+ filters.push("caseClassificationType eq '" + this.caseClassificationType + "'");
6904
7000
  }
7001
+ if (this.companyIds && this.companyIds.length > 0) {
7002
+ filters.push("company in (" + this.companyIds.map(function (id) { return "'" + id + "'"; }).join(",") + ")");
7003
+ }
7004
+ this.initialFilter = filters.join(" and ");
6905
7005
  };
6906
7006
  AdministrativeJudicialCaseLookupComponent.prototype.onAdministrativeJudicialCaseLookupRequest = function (value) {
6907
7007
  var _this = this;
@@ -7039,6 +7139,30 @@
7039
7139
  "hcm_contract.employment_additional_info.resignation_situation_type_all": "Todos"
7040
7140
  };
7041
7141
 
7142
+ var E001PesModule = /** @class */ (function () {
7143
+ function E001PesModule() {
7144
+ }
7145
+ E001PesModule = __decorate([
7146
+ core.NgModule({
7147
+ imports: [
7148
+ platformComponents.PermissionsModule.forChild([
7149
+ {
7150
+ name: "e001pes",
7151
+ actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7152
+ uri: "res://senior.com.br/erpx_fnd/pessoa/entities/e001pes",
7153
+ },
7154
+ ]),
7155
+ ],
7156
+ providers: [
7157
+ E001PesService,
7158
+ ],
7159
+ declarations: [],
7160
+ exports: [],
7161
+ })
7162
+ ], E001PesModule);
7163
+ return E001PesModule;
7164
+ }());
7165
+
7042
7166
  var projectInfo = {
7043
7167
  app: "gestao-pessoas",
7044
7168
  domain: "hcm_entity",
@@ -7055,12 +7179,12 @@
7055
7179
  /*{CA:PACKAGE_IMPORTS:END}*/
7056
7180
  /*{CA:PROJECT_IMPORTS:START}*/
7057
7181
  /*{CA:PROJECT_IMPORTS:END}*/
7058
- var CompanyBranchIndicationsService = /** @class */ (function (_super) {
7059
- __extends(CompanyBranchIndicationsService, _super);
7182
+ var E030AgeService = /** @class */ (function (_super) {
7183
+ __extends(E030AgeService, _super);
7060
7184
  /*{CA:CLASS_ATTRIBUTES:START}*/
7061
7185
  /*{CA:CLASS_ATTRIBUTES:END}*/
7062
- function CompanyBranchIndicationsService(http, messageService, translate, configService) {
7063
- var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/companyBranchIndications", environment.project.domain + "/" + environment.project.service + "/actions", translate, configService) || this;
7186
+ function E030AgeService(http, messageService, translate, configService) {
7187
+ var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/e030age", environment.project.domain + "/" + environment.project.service + "/actions", translate, configService) || this;
7064
7188
  _this.http = http;
7065
7189
  _this.messageService = messageService;
7066
7190
  _this.translate = translate;
@@ -7069,122 +7193,23 @@
7069
7193
  /*{CA:CONSTRUCTOR_END:START}*/
7070
7194
  /*{CA:CONSTRUCTOR_END:END}*/
7071
7195
  }
7072
- CompanyBranchIndicationsService.prototype.listExternalCompanyBranchIndications = function (listParams) {
7196
+ E030AgeService.prototype.listExternalE030Age = function (listParams) {
7073
7197
  return this.http
7074
- .get("hcm_foundation/general/entities/companyBranchIndications", {
7198
+ .get("erpx_fnd/financeiro/entities/e030age", {
7075
7199
  params: this.getListQueryParams(listParams),
7076
7200
  })
7077
7201
  .pipe(this.defaultCatch());
7078
7202
  };
7079
- CompanyBranchIndicationsService.ctorParameters = function () { return [
7203
+ E030AgeService.ctorParameters = function () { return [
7080
7204
  { type: http.HttpClient },
7081
7205
  { type: api.MessageService },
7082
7206
  { type: core$1.TranslateService },
7083
7207
  { type: EntityLookupConfigService }
7084
7208
  ]; };
7085
- CompanyBranchIndicationsService = __decorate([
7209
+ E030AgeService = __decorate([
7086
7210
  core.Injectable()
7087
- ], CompanyBranchIndicationsService);
7088
- return CompanyBranchIndicationsService;
7089
- }(EntityService));
7090
- /*{CA:FILE_CONTENTS:START}*/
7091
- /*{CA:FILE_CONTENTS:END}*/
7092
-
7093
- /*{CA:PACKAGE_IMPORTS:START}*/
7094
- /*{CA:PACKAGE_IMPORTS:END}*/
7095
- /*{CA:PROJECT_IMPORTS:START}*/
7096
- /*{CA:PROJECT_IMPORTS:END}*/
7097
- var CompanyBranchIndicationsModule = /** @class */ (function () {
7098
- function CompanyBranchIndicationsModule() {
7099
- }
7100
- CompanyBranchIndicationsModule = __decorate([
7101
- core.NgModule({
7102
- imports: [
7103
- platformComponents.PermissionsModule.forChild([
7104
- {
7105
- name: "companyBranchIndications",
7106
- actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7107
- uri: "res://senior.com.br/hcm_contract/employment_contract/entities/companyBranchIndications",
7108
- },
7109
- ]),
7110
- ],
7111
- providers: [
7112
- CompanyBranchIndicationsService,
7113
- ],
7114
- declarations: [
7115
- /*{CA:MODULE_DECLARATIONS:START}*/
7116
- /*{CA:MODULE_DECLARATIONS:END}*/
7117
- ],
7118
- exports: [
7119
- /*{CA:MODULE_EXPORTS:START}*/
7120
- /*{CA:MODULE_EXPORTS:END}*/
7121
- ],
7122
- })
7123
- ], CompanyBranchIndicationsModule);
7124
- return CompanyBranchIndicationsModule;
7125
- }());
7126
- /*{CA:FILE_CONTENTS:START}*/
7127
- /*{CA:FILE_CONTENTS:END}*/
7128
-
7129
- var E001PesModule = /** @class */ (function () {
7130
- function E001PesModule() {
7131
- }
7132
- E001PesModule = __decorate([
7133
- core.NgModule({
7134
- imports: [
7135
- platformComponents.PermissionsModule.forChild([
7136
- {
7137
- name: "e001pes",
7138
- actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7139
- uri: "res://senior.com.br/erpx_fnd/pessoa/entities/e001pes",
7140
- },
7141
- ]),
7142
- ],
7143
- providers: [
7144
- E001PesService,
7145
- ],
7146
- declarations: [],
7147
- exports: [],
7148
- })
7149
- ], E001PesModule);
7150
- return E001PesModule;
7151
- }());
7152
-
7153
- /*{CA:PACKAGE_IMPORTS:START}*/
7154
- /*{CA:PACKAGE_IMPORTS:END}*/
7155
- /*{CA:PROJECT_IMPORTS:START}*/
7156
- /*{CA:PROJECT_IMPORTS:END}*/
7157
- var E030AgeService = /** @class */ (function (_super) {
7158
- __extends(E030AgeService, _super);
7159
- /*{CA:CLASS_ATTRIBUTES:START}*/
7160
- /*{CA:CLASS_ATTRIBUTES:END}*/
7161
- function E030AgeService(http, messageService, translate, configService) {
7162
- var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/e030age", environment.project.domain + "/" + environment.project.service + "/actions", translate, configService) || this;
7163
- _this.http = http;
7164
- _this.messageService = messageService;
7165
- _this.translate = translate;
7166
- _this.configService = configService;
7167
- return _this;
7168
- /*{CA:CONSTRUCTOR_END:START}*/
7169
- /*{CA:CONSTRUCTOR_END:END}*/
7170
- }
7171
- E030AgeService.prototype.listExternalE030Age = function (listParams) {
7172
- return this.http
7173
- .get("erpx_fnd/financeiro/entities/e030age", {
7174
- params: this.getListQueryParams(listParams),
7175
- })
7176
- .pipe(this.defaultCatch());
7177
- };
7178
- E030AgeService.ctorParameters = function () { return [
7179
- { type: http.HttpClient },
7180
- { type: api.MessageService },
7181
- { type: core$1.TranslateService },
7182
- { type: EntityLookupConfigService }
7183
- ]; };
7184
- E030AgeService = __decorate([
7185
- core.Injectable()
7186
- ], E030AgeService);
7187
- return E030AgeService;
7211
+ ], E030AgeService);
7212
+ return E030AgeService;
7188
7213
  }(EntityService));
7189
7214
  /*{CA:FILE_CONTENTS:START}*/
7190
7215
  /*{CA:FILE_CONTENTS:END}*/
@@ -8052,7 +8077,6 @@
8052
8077
  CoreLookupModule = __decorate([
8053
8078
  core.NgModule({
8054
8079
  imports: [
8055
- CompanyBranchIndicationsModule,
8056
8080
  E030AgeModule,
8057
8081
  E030BanModule,
8058
8082
  E044CcuModule,
@@ -8083,146 +8107,15 @@
8083
8107
  return CoreLookupModule;
8084
8108
  }());
8085
8109
 
8086
- var moment = moment$k;
8087
- var Holiday = /** @class */ (function () {
8088
- function Holiday() {
8089
- this.deleted = false;
8090
- /*{CA:CLASS_METHODS:START}*/
8091
- /*{CA:CLASS_METHODS:END}*/
8092
- }
8093
- /*{CA:CLASS_ATTRIBUTES:START}*/
8094
- /*{CA:CLASS_ATTRIBUTES:END}*/
8095
- Holiday.fromDto = function (holidayDto, originEntity) {
8096
- var model = __assign({}, holidayDto);
8097
- model.createdDate = model.createdDate && moment(model.createdDate).toDate();
8098
- model.lastModifiedDate = model.lastModifiedDate && moment(model.lastModifiedDate).toDate();
8099
- var lookupSeparator = " - ";
8100
- var displayFields = [
8101
- "id",
8102
- "name",
8103
- "day",
8104
- "month",
8105
- "year",
8106
- "deleted",
8107
- "extIntSts",
8108
- "extIntMsg",
8109
- "createdBy",
8110
- "createdDate",
8111
- "lastModifiedBy",
8112
- "lastModifiedDate",
8113
- ];
8114
- model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8115
- return model;
8116
- };
8117
- Holiday.toDto = function (holiday, originEntity) {
8118
- var dto = __assign({}, holiday);
8119
- dto.createdDate = dto.createdDate && moment(dto.createdDate).format();
8120
- dto.lastModifiedDate = dto.lastModifiedDate && moment(dto.lastModifiedDate).format();
8121
- delete dto.label;
8122
- return dto;
8123
- };
8124
- return Holiday;
8125
- }());
8126
- /*{CA:FILE_CONTENTS:START}*/
8127
- /*{CA:FILE_CONTENTS:END}*/
8128
-
8129
- var moment$1 = moment$k;
8130
- var HolidayGroup = /** @class */ (function () {
8131
- function HolidayGroup() {
8132
- this.deleted = false;
8133
- /*{CA:CLASS_METHODS:START}*/
8134
- /*{CA:CLASS_METHODS:END}*/
8135
- }
8136
- /*{CA:CLASS_ATTRIBUTES:START}*/
8137
- /*{CA:CLASS_ATTRIBUTES:END}*/
8138
- HolidayGroup.fromDto = function (holidayGroupDto, originEntity) {
8139
- var model = __assign({}, holidayGroupDto);
8140
- model.createdDate = model.createdDate && moment$1(model.createdDate).toDate();
8141
- model.lastModifiedDate = model.lastModifiedDate && moment$1(model.lastModifiedDate).toDate();
8142
- var lookupSeparator = " - ";
8143
- var displayFields = [
8144
- "id",
8145
- "code",
8146
- "name",
8147
- "deleted",
8148
- "extIntSts",
8149
- "extIntMsg",
8150
- "createdBy",
8151
- "createdDate",
8152
- "lastModifiedBy",
8153
- "lastModifiedDate",
8154
- ];
8155
- model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8156
- if (originEntity !== "Holiday" && model.holiday)
8157
- model.holiday = Object.values(model.holiday).map(function (item) { return Holiday.fromDto(item, "HolidayGroup"); });
8158
- return model;
8159
- };
8160
- HolidayGroup.toDto = function (holidayGroup, originEntity) {
8161
- var dto = __assign({}, holidayGroup);
8162
- dto.createdDate = dto.createdDate && moment$1(dto.createdDate).format();
8163
- dto.lastModifiedDate = dto.lastModifiedDate && moment$1(dto.lastModifiedDate).format();
8164
- delete dto.label;
8165
- if (originEntity !== "Holiday" && dto.holiday)
8166
- dto.holiday = Object.values(dto.holiday)
8167
- .map(function (item) { return Holiday.toDto(item, "HolidayGroup"); })
8168
- .filter(function (item) { return Object.keys(item).length; });
8169
- return dto;
8170
- };
8171
- return HolidayGroup;
8172
- }());
8173
- /*{CA:FILE_CONTENTS:START}*/
8174
- /*{CA:FILE_CONTENTS:END}*/
8175
-
8176
- /*{CA:PACKAGE_IMPORTS:START}*/
8177
- /*{CA:PACKAGE_IMPORTS:END}*/
8178
- /*{CA:PROJECT_IMPORTS:START}*/
8179
- /*{CA:PROJECT_IMPORTS:END}*/
8180
- var CompanyBranchIndications = /** @class */ (function () {
8181
- function CompanyBranchIndications() {
8182
- this.deleted = false;
8183
- /*{CA:CLASS_METHODS:START}*/
8184
- /*{CA:CLASS_METHODS:END}*/
8185
- }
8186
- /*{CA:CLASS_ATTRIBUTES:START}*/
8187
- /*{CA:CLASS_ATTRIBUTES:END}*/
8188
- CompanyBranchIndications.fromDto = function (companyBranchIndicationsDto, originEntity) {
8189
- var model = __assign({}, companyBranchIndicationsDto);
8190
- model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
8191
- model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
8192
- var lookupSeparator = " - ";
8193
- var displayFields = ["id", "deleted", "extIntSts", "extIntMsg", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
8194
- model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8195
- if (originEntity !== "HolidayGroup" && model.nightlyHolidayGroup)
8196
- model.nightlyHolidayGroup = HolidayGroup.fromDto(model.nightlyHolidayGroup, "CompanyBranchIndications");
8197
- if (originEntity !== "HolidayGroup" && model.daytimeHolidayGroup)
8198
- model.daytimeHolidayGroup = HolidayGroup.fromDto(model.daytimeHolidayGroup, "CompanyBranchIndications");
8199
- return model;
8200
- };
8201
- CompanyBranchIndications.toDto = function (companyBranchIndications, originEntity) {
8202
- var dto = __assign({}, companyBranchIndications);
8203
- dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
8204
- dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
8205
- delete dto.label;
8206
- if (originEntity !== "HolidayGroup" && dto.nightlyHolidayGroup)
8207
- dto.nightlyHolidayGroup = HolidayGroup.toDto(dto.nightlyHolidayGroup, "CompanyBranchIndications");
8208
- if (originEntity !== "HolidayGroup" && dto.daytimeHolidayGroup)
8209
- dto.daytimeHolidayGroup = HolidayGroup.toDto(dto.daytimeHolidayGroup, "CompanyBranchIndications");
8210
- return dto;
8211
- };
8212
- return CompanyBranchIndications;
8213
- }());
8214
- /*{CA:FILE_CONTENTS:START}*/
8215
- /*{CA:FILE_CONTENTS:END}*/
8216
-
8217
- var moment$2 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8110
+ var moment = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8218
8111
  var E001Pes = /** @class */ (function () {
8219
8112
  function E001Pes() {
8220
8113
  this.excluido = false;
8221
8114
  }
8222
8115
  E001Pes.fromDto = function (e001PesDto, originEntity) {
8223
8116
  var model = __assign({}, e001PesDto);
8224
- model.createdDate = model.createdDate && moment$2(model.createdDate).toDate();
8225
- model.lastModifiedDate = model.lastModifiedDate && moment$2(model.lastModifiedDate).toDate();
8117
+ model.createdDate = model.createdDate && moment(model.createdDate).toDate();
8118
+ model.lastModifiedDate = model.lastModifiedDate && moment(model.lastModifiedDate).toDate();
8226
8119
  var lookupSeparator = " - ";
8227
8120
  var displayFields = ["nomPes"];
8228
8121
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -8230,8 +8123,8 @@
8230
8123
  };
8231
8124
  E001Pes.toDto = function (e001Pes, originEntity) {
8232
8125
  var dto = __assign({}, e001Pes);
8233
- dto.createdDate = dto.createdDate && moment$2(dto.createdDate).format();
8234
- dto.lastModifiedDate = dto.lastModifiedDate && moment$2(dto.lastModifiedDate).format();
8126
+ dto.createdDate = dto.createdDate && moment(dto.createdDate).format();
8127
+ dto.lastModifiedDate = dto.lastModifiedDate && moment(dto.lastModifiedDate).format();
8235
8128
  delete dto.label;
8236
8129
  delete dto._discriminator;
8237
8130
  return dto;
@@ -8239,17 +8132,17 @@
8239
8132
  return E001Pes;
8240
8133
  }());
8241
8134
 
8242
- var moment$3 = moment$k;
8135
+ var moment$1 = moment$k;
8243
8136
  var Employee = /** @class */ (function () {
8244
8137
  function Employee() {
8245
8138
  this.deleted = false;
8246
8139
  }
8247
8140
  Employee.fromDto = function (employeeDto, originEntity) {
8248
8141
  var model = __assign({}, employeeDto);
8249
- model.hireDate = model.hireDate && moment$3(model.hireDate).toDate();
8250
- model.dismissalDate = model.dismissalDate && moment$3(model.dismissalDate).toDate();
8251
- model.createdDate = model.createdDate && moment$3(model.createdDate).toDate();
8252
- model.lastModifiedDate = model.lastModifiedDate && moment$3(model.lastModifiedDate).toDate();
8142
+ model.hireDate = model.hireDate && moment$1(model.hireDate).toDate();
8143
+ model.dismissalDate = model.dismissalDate && moment$1(model.dismissalDate).toDate();
8144
+ model.createdDate = model.createdDate && moment$1(model.createdDate).toDate();
8145
+ model.lastModifiedDate = model.lastModifiedDate && moment$1(model.lastModifiedDate).toDate();
8253
8146
  var lookupSeparator = " - ";
8254
8147
  var displayFields = [
8255
8148
  "id",
@@ -8273,10 +8166,10 @@
8273
8166
  };
8274
8167
  Employee.toDto = function (employee, originEntity) {
8275
8168
  var dto = __assign({}, employee);
8276
- dto.hireDate = dto.hireDate && moment$3(dto.hireDate).format("YYYY-MM-DD");
8277
- dto.dismissalDate = dto.dismissalDate && moment$3(dto.dismissalDate).format("YYYY-MM-DD");
8278
- dto.createdDate = dto.createdDate && moment$3(dto.createdDate).format();
8279
- dto.lastModifiedDate = dto.lastModifiedDate && moment$3(dto.lastModifiedDate).format();
8169
+ dto.hireDate = dto.hireDate && moment$1(dto.hireDate).format("YYYY-MM-DD");
8170
+ dto.dismissalDate = dto.dismissalDate && moment$1(dto.dismissalDate).format("YYYY-MM-DD");
8171
+ dto.createdDate = dto.createdDate && moment$1(dto.createdDate).format();
8172
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$1(dto.lastModifiedDate).format();
8280
8173
  delete dto.label;
8281
8174
  delete dto._discriminator;
8282
8175
  delete dto.employer._discriminator;
@@ -8289,7 +8182,7 @@
8289
8182
  return Employee;
8290
8183
  }());
8291
8184
 
8292
- var moment$4 = moment$k;
8185
+ var moment$2 = moment$k;
8293
8186
  var Position = /** @class */ (function () {
8294
8187
  function Position() {
8295
8188
  this.deleted = false;
@@ -8300,8 +8193,8 @@
8300
8193
  /*{CA:CLASS_ATTRIBUTES:END}*/
8301
8194
  Position.fromDto = function (positionDto, originEntity) {
8302
8195
  var model = __assign({}, positionDto);
8303
- model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
8304
- model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
8196
+ model.createdDate = model.createdDate && moment$2(model.createdDate).toDate();
8197
+ model.lastModifiedDate = model.lastModifiedDate && moment$2(model.lastModifiedDate).toDate();
8305
8198
  var lookupSeparator = " - ";
8306
8199
  var displayFields = [
8307
8200
  "id",
@@ -8320,8 +8213,8 @@
8320
8213
  };
8321
8214
  Position.toDto = function (position, originEntity) {
8322
8215
  var dto = __assign({}, position);
8323
- dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
8324
- dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
8216
+ dto.createdDate = dto.createdDate && moment$2(dto.createdDate).format();
8217
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$2(dto.lastModifiedDate).format();
8325
8218
  delete dto.label;
8326
8219
  return dto;
8327
8220
  };
@@ -8330,14 +8223,14 @@
8330
8223
  /*{CA:FILE_CONTENTS:START}*/
8331
8224
  /*{CA:FILE_CONTENTS:END}*/
8332
8225
 
8333
- var moment$5 = moment$k;
8226
+ var moment$3 = moment$k;
8334
8227
  var JobPositionStructure = /** @class */ (function () {
8335
8228
  function JobPositionStructure() {
8336
8229
  }
8337
8230
  JobPositionStructure.fromDto = function (jobPositionStructureDto, originEntity) {
8338
8231
  var model = __assign({}, jobPositionStructureDto);
8339
- model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
8340
- model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
8232
+ model.createdDate = model.createdDate && moment$3(model.createdDate).toDate();
8233
+ model.lastModifiedDate = model.lastModifiedDate && moment$3(model.lastModifiedDate).toDate();
8341
8234
  var lookupSeparator = " - ";
8342
8235
  var displayFields = ["id", "code", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
8343
8236
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -8345,22 +8238,22 @@
8345
8238
  };
8346
8239
  JobPositionStructure.toDto = function (jobPositionStructure, originEntity) {
8347
8240
  var dto = __assign({}, jobPositionStructure);
8348
- dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
8349
- dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
8241
+ dto.createdDate = dto.createdDate && moment$3(dto.createdDate).format();
8242
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$3(dto.lastModifiedDate).format();
8350
8243
  delete dto.label;
8351
8244
  return dto;
8352
8245
  };
8353
8246
  return JobPositionStructure;
8354
8247
  }());
8355
8248
 
8356
- var moment$6 = moment$k;
8249
+ var moment$4 = moment$k;
8357
8250
  var JobPosition = /** @class */ (function () {
8358
8251
  function JobPosition() {
8359
8252
  }
8360
8253
  JobPosition.fromDto = function (jobPositionDto, originEntity) {
8361
8254
  var model = __assign({}, jobPositionDto);
8362
- model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
8363
- model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
8255
+ model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
8256
+ model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
8364
8257
  var lookupSeparator = " - ";
8365
8258
  var displayFields = [
8366
8259
  "id",
@@ -8382,8 +8275,8 @@
8382
8275
  };
8383
8276
  JobPosition.toDto = function (jobPosition, originEntity) {
8384
8277
  var dto = __assign({}, jobPosition);
8385
- dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
8386
- dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
8278
+ dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
8279
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
8387
8280
  delete dto.label;
8388
8281
  if (originEntity !== "JobPositionStructure" && dto.jobPositionStructure)
8389
8282
  dto.jobPositionStructure = JobPositionStructure.toDto(dto.jobPositionStructure, "JobPosition");
@@ -8392,14 +8285,14 @@
8392
8285
  return JobPosition;
8393
8286
  }());
8394
8287
 
8395
- var moment$7 = moment$k;
8288
+ var moment$5 = moment$k;
8396
8289
  var Syndicate = /** @class */ (function () {
8397
8290
  function Syndicate() {
8398
8291
  }
8399
8292
  Syndicate.fromDto = function (syndicateDto, originEntity) {
8400
8293
  var model = __assign({}, syndicateDto);
8401
- model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
8402
- model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
8294
+ model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
8295
+ model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
8403
8296
  var lookupSeparator = " - ";
8404
8297
  var displayFields = [
8405
8298
  "id",
@@ -8417,22 +8310,22 @@
8417
8310
  };
8418
8311
  Syndicate.toDto = function (syndicate, originEntity) {
8419
8312
  var dto = __assign({}, syndicate);
8420
- dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
8421
- dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
8313
+ dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
8314
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
8422
8315
  delete dto.label;
8423
8316
  return dto;
8424
8317
  };
8425
8318
  return Syndicate;
8426
8319
  }());
8427
8320
 
8428
- var moment$8 = moment$k;
8321
+ var moment$6 = moment$k;
8429
8322
  var EmploymentRelationship = /** @class */ (function () {
8430
8323
  function EmploymentRelationship() {
8431
8324
  }
8432
8325
  EmploymentRelationship.fromDto = function (employmentRelationshipDto, originEntity) {
8433
8326
  var model = __assign({}, employmentRelationshipDto);
8434
- model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
8435
- model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
8327
+ model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
8328
+ model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
8436
8329
  var lookupSeparator = " - ";
8437
8330
  var displayFields = [
8438
8331
  "id",
@@ -8450,23 +8343,23 @@
8450
8343
  };
8451
8344
  EmploymentRelationship.toDto = function (employmentRelationship, originEntity) {
8452
8345
  var dto = __assign({}, employmentRelationship);
8453
- dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
8454
- dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
8346
+ dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
8347
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
8455
8348
  delete dto.label;
8456
8349
  return dto;
8457
8350
  };
8458
8351
  return EmploymentRelationship;
8459
8352
  }());
8460
8353
 
8461
- var moment$9 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8354
+ var moment$7 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8462
8355
  var Workshift = /** @class */ (function () {
8463
8356
  function Workshift() {
8464
8357
  this.deleted = false;
8465
8358
  }
8466
8359
  Workshift.fromDto = function (workshiftDto, originEntity) {
8467
8360
  var model = __assign({}, workshiftDto);
8468
- model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
8469
- model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
8361
+ model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
8362
+ model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
8470
8363
  var lookupSeparator = " - ";
8471
8364
  var displayFields = [
8472
8365
  "id",
@@ -8486,8 +8379,8 @@
8486
8379
  };
8487
8380
  Workshift.toDto = function (workshift, originEntity) {
8488
8381
  var dto = __assign({}, workshift);
8489
- dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
8490
- dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
8382
+ dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
8383
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
8491
8384
  delete dto.label;
8492
8385
  delete dto._discriminator;
8493
8386
  return dto;
@@ -8495,16 +8388,16 @@
8495
8388
  return Workshift;
8496
8389
  }());
8497
8390
 
8498
- var moment$a = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8391
+ var moment$8 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8499
8392
  var WorkshiftGroup = /** @class */ (function () {
8500
8393
  function WorkshiftGroup() {
8501
8394
  this.deleted = false;
8502
8395
  }
8503
8396
  WorkshiftGroup.fromDto = function (workshiftGroupDto, originEntity) {
8504
8397
  var model = __assign({}, workshiftGroupDto);
8505
- model.baseDate = model.baseDate && moment$a(model.baseDate).toDate();
8506
- model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
8507
- model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
8398
+ model.baseDate = model.baseDate && moment$8(model.baseDate).toDate();
8399
+ model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
8400
+ model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
8508
8401
  var lookupSeparator = " - ";
8509
8402
  var displayFields = [
8510
8403
  "id",
@@ -8523,9 +8416,9 @@
8523
8416
  };
8524
8417
  WorkshiftGroup.toDto = function (workshiftGroup, originEntity) {
8525
8418
  var dto = __assign({}, workshiftGroup);
8526
- dto.baseDate = dto.baseDate && moment$a(dto.baseDate).format("YYYY-MM-DD");
8527
- dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
8528
- dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
8419
+ dto.baseDate = dto.baseDate && moment$8(dto.baseDate).format("YYYY-MM-DD");
8420
+ dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
8421
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
8529
8422
  delete dto.label;
8530
8423
  delete dto._discriminator;
8531
8424
  return dto;
@@ -8533,7 +8426,7 @@
8533
8426
  return WorkshiftGroup;
8534
8427
  }());
8535
8428
 
8536
- var moment$b = moment$k;
8429
+ var moment$9 = moment$k;
8537
8430
  var PositionActingType = /** @class */ (function () {
8538
8431
  function PositionActingType() {
8539
8432
  this.deleted = false;
@@ -8544,8 +8437,8 @@
8544
8437
  /*{CA:CLASS_ATTRIBUTES:END}*/
8545
8438
  PositionActingType.fromDto = function (positionActingTypeDto, originEntity) {
8546
8439
  var model = __assign({}, positionActingTypeDto);
8547
- model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
8548
- model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
8440
+ model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
8441
+ model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
8549
8442
  var lookupSeparator = " - ";
8550
8443
  var displayFields = [
8551
8444
  "id",
@@ -8564,8 +8457,8 @@
8564
8457
  };
8565
8458
  PositionActingType.toDto = function (positionActingType, originEntity) {
8566
8459
  var dto = __assign({}, positionActingType);
8567
- dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
8568
- dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
8460
+ dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
8461
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
8569
8462
  delete dto.label;
8570
8463
  return dto;
8571
8464
  };
@@ -8574,7 +8467,7 @@
8574
8467
  /*{CA:FILE_CONTENTS:START}*/
8575
8468
  /*{CA:FILE_CONTENTS:END}*/
8576
8469
 
8577
- var moment$c = moment$k;
8470
+ var moment$a = moment$k;
8578
8471
  var LocationStructure = /** @class */ (function () {
8579
8472
  function LocationStructure() {
8580
8473
  }
@@ -8582,8 +8475,8 @@
8582
8475
  /*{CA:CLASS_ATTRIBUTES:END}*/
8583
8476
  LocationStructure.fromDto = function (locationStructureDto, originEntity) {
8584
8477
  var model = __assign({}, locationStructureDto);
8585
- model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
8586
- model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
8478
+ model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
8479
+ model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
8587
8480
  var lookupSeparator = " - ";
8588
8481
  var displayFields = [
8589
8482
  "id",
@@ -8602,8 +8495,8 @@
8602
8495
  };
8603
8496
  LocationStructure.toDto = function (locationStructure, originEntity) {
8604
8497
  var dto = __assign({}, locationStructure);
8605
- dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
8606
- dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
8498
+ dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
8499
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
8607
8500
  delete dto.label;
8608
8501
  return dto;
8609
8502
  };
@@ -8612,7 +8505,7 @@
8612
8505
  /*{CA:FILE_CONTENTS:START}*/
8613
8506
  /*{CA:FILE_CONTENTS:END}*/
8614
8507
 
8615
- var moment$d = moment$k;
8508
+ var moment$b = moment$k;
8616
8509
  var Location = /** @class */ (function () {
8617
8510
  function Location() {
8618
8511
  }
@@ -8620,10 +8513,10 @@
8620
8513
  /*{CA:CLASS_ATTRIBUTES:END}*/
8621
8514
  Location.fromDto = function (locationDto, originEntity) {
8622
8515
  var model = __assign({}, locationDto);
8623
- model.initialValidity = model.initialValidity && moment$d(model.initialValidity).toDate();
8624
- model.finalValidity = model.finalValidity && moment$d(model.finalValidity).toDate();
8625
- model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
8626
- model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
8516
+ model.initialValidity = model.initialValidity && moment$b(model.initialValidity).toDate();
8517
+ model.finalValidity = model.finalValidity && moment$b(model.finalValidity).toDate();
8518
+ model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
8519
+ model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
8627
8520
  var lookupSeparator = " - ";
8628
8521
  var displayFields = [
8629
8522
  "id",
@@ -8646,10 +8539,10 @@
8646
8539
  };
8647
8540
  Location.toDto = function (location, originEntity) {
8648
8541
  var dto = __assign({}, location);
8649
- dto.initialValidity = dto.initialValidity && moment$d(dto.initialValidity).format("YYYY-MM-DD");
8650
- dto.finalValidity = dto.finalValidity && moment$d(dto.finalValidity).format("YYYY-MM-DD");
8651
- dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
8652
- dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
8542
+ dto.initialValidity = dto.initialValidity && moment$b(dto.initialValidity).format("YYYY-MM-DD");
8543
+ dto.finalValidity = dto.finalValidity && moment$b(dto.finalValidity).format("YYYY-MM-DD");
8544
+ dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
8545
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
8653
8546
  delete dto.label;
8654
8547
  if (originEntity !== "LocationStructure" && dto.locationStructure)
8655
8548
  dto.locationStructure = LocationStructure.toDto(dto.locationStructure, "Location");
@@ -8660,7 +8553,7 @@
8660
8553
  /*{CA:FILE_CONTENTS:START}*/
8661
8554
  /*{CA:FILE_CONTENTS:END}*/
8662
8555
 
8663
- var moment$e = moment$k;
8556
+ var moment$c = moment$k;
8664
8557
  var E030Ban = /** @class */ (function () {
8665
8558
  function E030Ban() {
8666
8559
  this.excluido = false;
@@ -8671,8 +8564,8 @@
8671
8564
  /*{CA:CLASS_ATTRIBUTES:END}*/
8672
8565
  E030Ban.fromDto = function (e030BanDto, originEntity) {
8673
8566
  var model = __assign({}, e030BanDto);
8674
- model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
8675
- model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
8567
+ model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
8568
+ model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
8676
8569
  var lookupSeparator = " - ";
8677
8570
  var displayFields = [
8678
8571
  "id",
@@ -8692,8 +8585,8 @@
8692
8585
  };
8693
8586
  E030Ban.toDto = function (e030Ban, originEntity) {
8694
8587
  var dto = __assign({}, e030Ban);
8695
- dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
8696
- dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
8588
+ dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
8589
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
8697
8590
  delete dto.label;
8698
8591
  return dto;
8699
8592
  };
@@ -8702,7 +8595,7 @@
8702
8595
  /*{CA:FILE_CONTENTS:START}*/
8703
8596
  /*{CA:FILE_CONTENTS:END}*/
8704
8597
 
8705
- var moment$f = moment$k;
8598
+ var moment$d = moment$k;
8706
8599
  var E030Age = /** @class */ (function () {
8707
8600
  function E030Age() {
8708
8601
  this.excluido = false;
@@ -8713,8 +8606,8 @@
8713
8606
  /*{CA:CLASS_ATTRIBUTES:END}*/
8714
8607
  E030Age.fromDto = function (e030AgeDto, originEntity) {
8715
8608
  var model = __assign({}, e030AgeDto);
8716
- model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
8717
- model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
8609
+ model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
8610
+ model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
8718
8611
  var lookupSeparator = " - ";
8719
8612
  var displayFields = [
8720
8613
  "id",
@@ -8735,8 +8628,8 @@
8735
8628
  };
8736
8629
  E030Age.toDto = function (e030Age, originEntity) {
8737
8630
  var dto = __assign({}, e030Age);
8738
- dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
8739
- dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
8631
+ dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
8632
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
8740
8633
  delete dto.label;
8741
8634
  if (originEntity !== "E030Ban" && dto.e030ban)
8742
8635
  dto.e030ban = E030Ban.toDto(dto.e030ban, "E030Age");
@@ -8747,7 +8640,7 @@
8747
8640
  /*{CA:FILE_CONTENTS:START}*/
8748
8641
  /*{CA:FILE_CONTENTS:END}*/
8749
8642
 
8750
- var moment$g = moment$k;
8643
+ var moment$e = moment$k;
8751
8644
  var E044Ccu = /** @class */ (function () {
8752
8645
  function E044Ccu() {
8753
8646
  }
@@ -8755,8 +8648,8 @@
8755
8648
  /*{CA:CLASS_ATTRIBUTES:END}*/
8756
8649
  E044Ccu.fromDto = function (e044CcuDto, originEntity) {
8757
8650
  var model = __assign({}, e044CcuDto);
8758
- model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
8759
- model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
8651
+ model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
8652
+ model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
8760
8653
  var lookupSeparator = " - ";
8761
8654
  var displayFields = [
8762
8655
  "id",
@@ -8775,8 +8668,8 @@
8775
8668
  };
8776
8669
  E044Ccu.toDto = function (e044Ccu, originEntity) {
8777
8670
  var dto = __assign({}, e044Ccu);
8778
- dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
8779
- dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
8671
+ dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
8672
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
8780
8673
  delete dto.label;
8781
8674
  return dto;
8782
8675
  };
@@ -8785,7 +8678,7 @@
8785
8678
  /*{CA:FILE_CONTENTS:START}*/
8786
8679
  /*{CA:FILE_CONTENTS:END}*/
8787
8680
 
8788
- var moment$h = moment$k;
8681
+ var moment$f = moment$k;
8789
8682
  var E070Emp = /** @class */ (function () {
8790
8683
  function E070Emp() {
8791
8684
  this.excluido = false;
@@ -8796,8 +8689,8 @@
8796
8689
  /*{CA:CLASS_ATTRIBUTES:END}*/
8797
8690
  E070Emp.fromDto = function (e070EmpDto, originEntity) {
8798
8691
  var model = __assign({}, e070EmpDto);
8799
- model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
8800
- model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
8692
+ model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
8693
+ model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
8801
8694
  var lookupSeparator = " - ";
8802
8695
  var displayFields = [
8803
8696
  "id",
@@ -8816,8 +8709,8 @@
8816
8709
  };
8817
8710
  E070Emp.toDto = function (e070Emp, originEntity) {
8818
8711
  var dto = __assign({}, e070Emp);
8819
- dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
8820
- dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
8712
+ dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
8713
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
8821
8714
  delete dto.label;
8822
8715
  return dto;
8823
8716
  };
@@ -8826,7 +8719,7 @@
8826
8719
  /*{CA:FILE_CONTENTS:START}*/
8827
8720
  /*{CA:FILE_CONTENTS:END}*/
8828
8721
 
8829
- var moment$i = moment$k;
8722
+ var moment$g = moment$k;
8830
8723
  var E070Fil = /** @class */ (function () {
8831
8724
  function E070Fil() {
8832
8725
  this.deleted = false;
@@ -8837,8 +8730,8 @@
8837
8730
  /*{CA:CLASS_ATTRIBUTES:END}*/
8838
8731
  E070Fil.fromDto = function (e070FilDto, originEntity) {
8839
8732
  var model = __assign({}, e070FilDto);
8840
- model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
8841
- model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
8733
+ model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
8734
+ model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
8842
8735
  var lookupSeparator = " - ";
8843
8736
  var displayFields = [
8844
8737
  "id",
@@ -8855,19 +8748,15 @@
8855
8748
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8856
8749
  if (originEntity !== "E070Emp" && model.e070emp)
8857
8750
  model.e070emp = E070Emp.fromDto(model.e070emp, "E070Fil");
8858
- if (originEntity !== "CompanyBranchIndications" && model.companyBranchIndications)
8859
- model.companyBranchIndications = CompanyBranchIndications.fromDto(model.companyBranchIndications, "E070Fil");
8860
8751
  return model;
8861
8752
  };
8862
8753
  E070Fil.toDto = function (e070Fil, originEntity) {
8863
8754
  var dto = __assign({}, e070Fil);
8864
- dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
8865
- dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
8755
+ dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
8756
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
8866
8757
  delete dto.label;
8867
8758
  if (originEntity !== "E070Emp" && dto.e070emp)
8868
8759
  dto.e070emp = E070Emp.toDto(dto.e070emp, "E070Fil");
8869
- if (originEntity !== "CompanyBranchIndications" && dto.companyBranchIndications)
8870
- dto.companyBranchIndications = CompanyBranchIndications.toDto(dto.companyBranchIndications, "E070Fil");
8871
8760
  return dto;
8872
8761
  };
8873
8762
  return E070Fil;
@@ -8875,6 +8764,96 @@
8875
8764
  /*{CA:FILE_CONTENTS:START}*/
8876
8765
  /*{CA:FILE_CONTENTS:END}*/
8877
8766
 
8767
+ var moment$h = moment$k;
8768
+ var Holiday = /** @class */ (function () {
8769
+ function Holiday() {
8770
+ this.deleted = false;
8771
+ /*{CA:CLASS_METHODS:START}*/
8772
+ /*{CA:CLASS_METHODS:END}*/
8773
+ }
8774
+ /*{CA:CLASS_ATTRIBUTES:START}*/
8775
+ /*{CA:CLASS_ATTRIBUTES:END}*/
8776
+ Holiday.fromDto = function (holidayDto, originEntity) {
8777
+ var model = __assign({}, holidayDto);
8778
+ model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
8779
+ model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
8780
+ var lookupSeparator = " - ";
8781
+ var displayFields = [
8782
+ "id",
8783
+ "name",
8784
+ "day",
8785
+ "month",
8786
+ "year",
8787
+ "deleted",
8788
+ "extIntSts",
8789
+ "extIntMsg",
8790
+ "createdBy",
8791
+ "createdDate",
8792
+ "lastModifiedBy",
8793
+ "lastModifiedDate",
8794
+ ];
8795
+ model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8796
+ return model;
8797
+ };
8798
+ Holiday.toDto = function (holiday, originEntity) {
8799
+ var dto = __assign({}, holiday);
8800
+ dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
8801
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
8802
+ delete dto.label;
8803
+ return dto;
8804
+ };
8805
+ return Holiday;
8806
+ }());
8807
+ /*{CA:FILE_CONTENTS:START}*/
8808
+ /*{CA:FILE_CONTENTS:END}*/
8809
+
8810
+ var moment$i = moment$k;
8811
+ var HolidayGroup = /** @class */ (function () {
8812
+ function HolidayGroup() {
8813
+ this.deleted = false;
8814
+ /*{CA:CLASS_METHODS:START}*/
8815
+ /*{CA:CLASS_METHODS:END}*/
8816
+ }
8817
+ /*{CA:CLASS_ATTRIBUTES:START}*/
8818
+ /*{CA:CLASS_ATTRIBUTES:END}*/
8819
+ HolidayGroup.fromDto = function (holidayGroupDto, originEntity) {
8820
+ var model = __assign({}, holidayGroupDto);
8821
+ model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
8822
+ model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
8823
+ var lookupSeparator = " - ";
8824
+ var displayFields = [
8825
+ "id",
8826
+ "code",
8827
+ "name",
8828
+ "deleted",
8829
+ "extIntSts",
8830
+ "extIntMsg",
8831
+ "createdBy",
8832
+ "createdDate",
8833
+ "lastModifiedBy",
8834
+ "lastModifiedDate",
8835
+ ];
8836
+ model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8837
+ if (originEntity !== "Holiday" && model.holiday)
8838
+ model.holiday = Object.values(model.holiday).map(function (item) { return Holiday.fromDto(item, "HolidayGroup"); });
8839
+ return model;
8840
+ };
8841
+ HolidayGroup.toDto = function (holidayGroup, originEntity) {
8842
+ var dto = __assign({}, holidayGroup);
8843
+ dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
8844
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
8845
+ delete dto.label;
8846
+ if (originEntity !== "Holiday" && dto.holiday)
8847
+ dto.holiday = Object.values(dto.holiday)
8848
+ .map(function (item) { return Holiday.toDto(item, "HolidayGroup"); })
8849
+ .filter(function (item) { return Object.keys(item).length; });
8850
+ return dto;
8851
+ };
8852
+ return HolidayGroup;
8853
+ }());
8854
+ /*{CA:FILE_CONTENTS:START}*/
8855
+ /*{CA:FILE_CONTENTS:END}*/
8856
+
8878
8857
  /*{CA:PACKAGE_IMPORTS:START}*/
8879
8858
  var moment$j = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8880
8859
  /*{CA:PROJECT_IMPORTS:START}*/
@@ -9140,8 +9119,6 @@
9140
9119
  exports.Characteristics = Characteristics;
9141
9120
  exports.CharacteristicsService = CharacteristicsService;
9142
9121
  exports.CollectiveHistoryFiltersService = CollectiveHistoryFiltersService;
9143
- exports.CompanyBranchIndications = CompanyBranchIndications;
9144
- exports.CompanyBranchIndicationsService = CompanyBranchIndicationsService;
9145
9122
  exports.CompanyBranchLookupModule = CompanyBranchLookupModule;
9146
9123
  exports.CompanyBranchLookupService = CompanyBranchLookupService;
9147
9124
  exports.CompanyLinkedLocation = CompanyLinkedLocation;
@@ -9200,6 +9177,7 @@
9200
9177
  exports.LocationLookupService = LocationLookupService;
9201
9178
  exports.LocationService = LocationService;
9202
9179
  exports.PersonLookupModule = PersonLookupModule;
9180
+ exports.PersonLookupService = PersonLookupService;
9203
9181
  exports.PisPasepTaxationLookupComponent = PisPasepTaxationLookupComponent;
9204
9182
  exports.PisPasepTaxationLookupModule = PisPasepTaxationLookupModule;
9205
9183
  exports.PisPasepTaxationLookupService = PisPasepTaxationLookupService;
@@ -9246,36 +9224,34 @@
9246
9224
  exports.fallback = fallback;
9247
9225
  exports.ɵa = PisPasepTaxationService;
9248
9226
  exports.ɵb = EntityService;
9249
- exports.ɵba = SyndicateModule;
9250
- exports.ɵbb = VariableEntryModule;
9251
- exports.ɵbc = CalculationDefinitionModule;
9252
- exports.ɵbd = EmploymentRelationshipModule;
9253
- exports.ɵbe = WageTypePayrollModule;
9254
- exports.ɵbf = CompanyLinkedLocationModule;
9227
+ exports.ɵba = CalculationDefinitionModule;
9228
+ exports.ɵbb = EmploymentRelationshipModule;
9229
+ exports.ɵbc = WageTypePayrollModule;
9230
+ exports.ɵbd = CompanyLinkedLocationModule;
9255
9231
  exports.ɵc = SharedModule;
9256
9232
  exports.ɵd = CompanyBranchLookupComponent;
9257
9233
  exports.ɵe = PersonLookupComponent;
9258
- exports.ɵf = ESocialCategoryModule;
9259
- exports.ɵg = CompanyBranchIndicationsModule;
9260
- exports.ɵh = E030AgeModule;
9261
- exports.ɵi = E030BanModule;
9262
- exports.ɵj = E044CcuModule;
9263
- exports.ɵk = E070EmpModule;
9264
- exports.ɵl = E070FilModule;
9265
- exports.ɵm = HolidayModule;
9266
- exports.ɵn = HolidayGroupModule;
9267
- exports.ɵo = LocationModule;
9268
- exports.ɵp = LocationStructureModule;
9269
- exports.ɵq = LocationStructureService;
9270
- exports.ɵr = PositionActingTypeModule;
9271
- exports.ɵs = PositionModule;
9272
- exports.ɵt = E001PesModule;
9273
- exports.ɵu = EmployeeModule;
9274
- exports.ɵv = JobPositionModule;
9275
- exports.ɵw = WorkshiftModule;
9276
- exports.ɵx = WorkshiftGroupModule;
9277
- exports.ɵy = WageTypeModule;
9278
- exports.ɵz = AnnotationTypeModule;
9234
+ exports.ɵf = E030AgeModule;
9235
+ exports.ɵg = E030BanModule;
9236
+ exports.ɵh = E044CcuModule;
9237
+ exports.ɵi = E070EmpModule;
9238
+ exports.ɵj = E070FilModule;
9239
+ exports.ɵk = HolidayModule;
9240
+ exports.ɵl = HolidayGroupModule;
9241
+ exports.ɵm = LocationModule;
9242
+ exports.ɵn = LocationStructureModule;
9243
+ exports.ɵo = LocationStructureService;
9244
+ exports.ɵp = PositionActingTypeModule;
9245
+ exports.ɵq = PositionModule;
9246
+ exports.ɵr = E001PesModule;
9247
+ exports.ɵs = EmployeeModule;
9248
+ exports.ɵt = JobPositionModule;
9249
+ exports.ɵu = WorkshiftModule;
9250
+ exports.ɵv = WorkshiftGroupModule;
9251
+ exports.ɵw = WageTypeModule;
9252
+ exports.ɵx = AnnotationTypeModule;
9253
+ exports.ɵy = SyndicateModule;
9254
+ exports.ɵz = VariableEntryModule;
9279
9255
 
9280
9256
  Object.defineProperty(exports, '__esModule', { value: true });
9281
9257