@senior-gestao-pessoas/hcm-entity-lookups 4.1.2-develop-652f766c → 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 (58) hide show
  1. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +468 -503
  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/esocial-category-lookup/esocial-category-lookup.module.js +2 -4
  15. package/esm2015/lookups/person-lookup/person-lookup.component.js +24 -105
  16. package/esm2015/lookups/person-lookup/person-lookup.module.js +10 -8
  17. package/esm2015/lookups/person-lookup/person-lookup.service.js +192 -0
  18. package/esm2015/public-api.js +2 -1
  19. package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +26 -28
  20. package/esm5/core/core-lookup.module.js +1 -3
  21. package/esm5/core/entities/e-001-pes/e-001-pes-dto.js +1 -1
  22. package/esm5/core/entities/e-001-pes/e-001-pes.js +1 -1
  23. package/esm5/core/entities/e-070-fil/e-070-fil.js +1 -6
  24. package/esm5/core/index.js +1 -2
  25. package/esm5/lookups/esocial-category-lookup/esocial-category-lookup.module.js +2 -4
  26. package/esm5/lookups/person-lookup/person-lookup.component.js +25 -110
  27. package/esm5/lookups/person-lookup/person-lookup.module.js +10 -8
  28. package/esm5/lookups/person-lookup/person-lookup.service.js +202 -0
  29. package/esm5/public-api.js +2 -1
  30. package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +26 -28
  31. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +419 -447
  32. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  33. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +443 -475
  34. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  35. package/lookups/person-lookup/person-lookup.component.d.ts +6 -11
  36. package/lookups/person-lookup/person-lookup.service.d.ts +25 -0
  37. package/package.json +1 -1
  38. package/public-api.d.ts +1 -0
  39. package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +25 -27
  40. package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
  41. package/core/entities/company-branch-indications/company-branch-indications-dto.d.ts +0 -14
  42. package/core/entities/company-branch-indications/company-branch-indications.d.ts +0 -19
  43. package/core/entities/company-branch-indications/company-branch-indications.module.d.ts +0 -2
  44. package/core/entities/company-branch-indications/company-branch-indications.service.d.ts +0 -14
  45. package/core/entities/company-branch-indications/index.d.ts +0 -3
  46. package/core/entities/e-social-category/esocial-category.module.d.ts +0 -2
  47. package/esm2015/core/entities/company-branch-indications/company-branch-indications-dto.js +0 -5
  48. package/esm2015/core/entities/company-branch-indications/company-branch-indications.js +0 -42
  49. package/esm2015/core/entities/company-branch-indications/company-branch-indications.module.js +0 -38
  50. package/esm2015/core/entities/company-branch-indications/company-branch-indications.service.js +0 -45
  51. package/esm2015/core/entities/company-branch-indications/index.js +0 -3
  52. package/esm2015/core/entities/e-social-category/esocial-category.module.js +0 -24
  53. package/esm5/core/entities/company-branch-indications/company-branch-indications-dto.js +0 -5
  54. package/esm5/core/entities/company-branch-indications/company-branch-indications.js +0 -45
  55. package/esm5/core/entities/company-branch-indications/company-branch-indications.module.js +0 -41
  56. package/esm5/core/entities/company-branch-indications/company-branch-indications.service.js +0 -48
  57. package/esm5/core/entities/company-branch-indications/index.js +0 -3
  58. 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,
@@ -7050,6 +7139,30 @@
7050
7139
  "hcm_contract.employment_additional_info.resignation_situation_type_all": "Todos"
7051
7140
  };
7052
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
+
7053
7166
  var projectInfo = {
7054
7167
  app: "gestao-pessoas",
7055
7168
  domain: "hcm_entity",
@@ -7066,12 +7179,12 @@
7066
7179
  /*{CA:PACKAGE_IMPORTS:END}*/
7067
7180
  /*{CA:PROJECT_IMPORTS:START}*/
7068
7181
  /*{CA:PROJECT_IMPORTS:END}*/
7069
- var CompanyBranchIndicationsService = /** @class */ (function (_super) {
7070
- __extends(CompanyBranchIndicationsService, _super);
7182
+ var E030AgeService = /** @class */ (function (_super) {
7183
+ __extends(E030AgeService, _super);
7071
7184
  /*{CA:CLASS_ATTRIBUTES:START}*/
7072
7185
  /*{CA:CLASS_ATTRIBUTES:END}*/
7073
- function CompanyBranchIndicationsService(http, messageService, translate, configService) {
7074
- 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;
7075
7188
  _this.http = http;
7076
7189
  _this.messageService = messageService;
7077
7190
  _this.translate = translate;
@@ -7080,23 +7193,23 @@
7080
7193
  /*{CA:CONSTRUCTOR_END:START}*/
7081
7194
  /*{CA:CONSTRUCTOR_END:END}*/
7082
7195
  }
7083
- CompanyBranchIndicationsService.prototype.listExternalCompanyBranchIndications = function (listParams) {
7196
+ E030AgeService.prototype.listExternalE030Age = function (listParams) {
7084
7197
  return this.http
7085
- .get("hcm_foundation/general/entities/companyBranchIndications", {
7198
+ .get("erpx_fnd/financeiro/entities/e030age", {
7086
7199
  params: this.getListQueryParams(listParams),
7087
7200
  })
7088
7201
  .pipe(this.defaultCatch());
7089
7202
  };
7090
- CompanyBranchIndicationsService.ctorParameters = function () { return [
7203
+ E030AgeService.ctorParameters = function () { return [
7091
7204
  { type: http.HttpClient },
7092
7205
  { type: api.MessageService },
7093
7206
  { type: core$1.TranslateService },
7094
7207
  { type: EntityLookupConfigService }
7095
7208
  ]; };
7096
- CompanyBranchIndicationsService = __decorate([
7209
+ E030AgeService = __decorate([
7097
7210
  core.Injectable()
7098
- ], CompanyBranchIndicationsService);
7099
- return CompanyBranchIndicationsService;
7211
+ ], E030AgeService);
7212
+ return E030AgeService;
7100
7213
  }(EntityService));
7101
7214
  /*{CA:FILE_CONTENTS:START}*/
7102
7215
  /*{CA:FILE_CONTENTS:END}*/
@@ -7105,22 +7218,22 @@
7105
7218
  /*{CA:PACKAGE_IMPORTS:END}*/
7106
7219
  /*{CA:PROJECT_IMPORTS:START}*/
7107
7220
  /*{CA:PROJECT_IMPORTS:END}*/
7108
- var CompanyBranchIndicationsModule = /** @class */ (function () {
7109
- function CompanyBranchIndicationsModule() {
7221
+ var E030AgeModule = /** @class */ (function () {
7222
+ function E030AgeModule() {
7110
7223
  }
7111
- CompanyBranchIndicationsModule = __decorate([
7224
+ E030AgeModule = __decorate([
7112
7225
  core.NgModule({
7113
7226
  imports: [
7114
7227
  platformComponents.PermissionsModule.forChild([
7115
7228
  {
7116
- name: "companyBranchIndications",
7229
+ name: "e030age",
7117
7230
  actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7118
- uri: "res://senior.com.br/hcm_contract/employment_contract/entities/companyBranchIndications",
7231
+ uri: "res://senior.com.br/erpx_fnd/financeiro/entities/e030age",
7119
7232
  },
7120
7233
  ]),
7121
7234
  ],
7122
7235
  providers: [
7123
- CompanyBranchIndicationsService,
7236
+ E030AgeService,
7124
7237
  ],
7125
7238
  declarations: [
7126
7239
  /*{CA:MODULE_DECLARATIONS:START}*/
@@ -7131,107 +7244,8 @@
7131
7244
  /*{CA:MODULE_EXPORTS:END}*/
7132
7245
  ],
7133
7246
  })
7134
- ], CompanyBranchIndicationsModule);
7135
- return CompanyBranchIndicationsModule;
7136
- }());
7137
- /*{CA:FILE_CONTENTS:START}*/
7138
- /*{CA:FILE_CONTENTS:END}*/
7139
-
7140
- var E001PesModule = /** @class */ (function () {
7141
- function E001PesModule() {
7142
- }
7143
- E001PesModule = __decorate([
7144
- core.NgModule({
7145
- imports: [
7146
- platformComponents.PermissionsModule.forChild([
7147
- {
7148
- name: "e001pes",
7149
- actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7150
- uri: "res://senior.com.br/erpx_fnd/pessoa/entities/e001pes",
7151
- },
7152
- ]),
7153
- ],
7154
- providers: [
7155
- E001PesService,
7156
- ],
7157
- declarations: [],
7158
- exports: [],
7159
- })
7160
- ], E001PesModule);
7161
- return E001PesModule;
7162
- }());
7163
-
7164
- /*{CA:PACKAGE_IMPORTS:START}*/
7165
- /*{CA:PACKAGE_IMPORTS:END}*/
7166
- /*{CA:PROJECT_IMPORTS:START}*/
7167
- /*{CA:PROJECT_IMPORTS:END}*/
7168
- var E030AgeService = /** @class */ (function (_super) {
7169
- __extends(E030AgeService, _super);
7170
- /*{CA:CLASS_ATTRIBUTES:START}*/
7171
- /*{CA:CLASS_ATTRIBUTES:END}*/
7172
- function E030AgeService(http, messageService, translate, configService) {
7173
- 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;
7174
- _this.http = http;
7175
- _this.messageService = messageService;
7176
- _this.translate = translate;
7177
- _this.configService = configService;
7178
- return _this;
7179
- /*{CA:CONSTRUCTOR_END:START}*/
7180
- /*{CA:CONSTRUCTOR_END:END}*/
7181
- }
7182
- E030AgeService.prototype.listExternalE030Age = function (listParams) {
7183
- return this.http
7184
- .get("erpx_fnd/financeiro/entities/e030age", {
7185
- params: this.getListQueryParams(listParams),
7186
- })
7187
- .pipe(this.defaultCatch());
7188
- };
7189
- E030AgeService.ctorParameters = function () { return [
7190
- { type: http.HttpClient },
7191
- { type: api.MessageService },
7192
- { type: core$1.TranslateService },
7193
- { type: EntityLookupConfigService }
7194
- ]; };
7195
- E030AgeService = __decorate([
7196
- core.Injectable()
7197
- ], E030AgeService);
7198
- return E030AgeService;
7199
- }(EntityService));
7200
- /*{CA:FILE_CONTENTS:START}*/
7201
- /*{CA:FILE_CONTENTS:END}*/
7202
-
7203
- /*{CA:PACKAGE_IMPORTS:START}*/
7204
- /*{CA:PACKAGE_IMPORTS:END}*/
7205
- /*{CA:PROJECT_IMPORTS:START}*/
7206
- /*{CA:PROJECT_IMPORTS:END}*/
7207
- var E030AgeModule = /** @class */ (function () {
7208
- function E030AgeModule() {
7209
- }
7210
- E030AgeModule = __decorate([
7211
- core.NgModule({
7212
- imports: [
7213
- platformComponents.PermissionsModule.forChild([
7214
- {
7215
- name: "e030age",
7216
- actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7217
- uri: "res://senior.com.br/erpx_fnd/financeiro/entities/e030age",
7218
- },
7219
- ]),
7220
- ],
7221
- providers: [
7222
- E030AgeService,
7223
- ],
7224
- declarations: [
7225
- /*{CA:MODULE_DECLARATIONS:START}*/
7226
- /*{CA:MODULE_DECLARATIONS:END}*/
7227
- ],
7228
- exports: [
7229
- /*{CA:MODULE_EXPORTS:START}*/
7230
- /*{CA:MODULE_EXPORTS:END}*/
7231
- ],
7232
- })
7233
- ], E030AgeModule);
7234
- return E030AgeModule;
7247
+ ], E030AgeModule);
7248
+ return E030AgeModule;
7235
7249
  }());
7236
7250
  /*{CA:FILE_CONTENTS:START}*/
7237
7251
  /*{CA:FILE_CONTENTS:END}*/
@@ -8063,7 +8077,6 @@
8063
8077
  CoreLookupModule = __decorate([
8064
8078
  core.NgModule({
8065
8079
  imports: [
8066
- CompanyBranchIndicationsModule,
8067
8080
  E030AgeModule,
8068
8081
  E030BanModule,
8069
8082
  E044CcuModule,
@@ -8094,146 +8107,15 @@
8094
8107
  return CoreLookupModule;
8095
8108
  }());
8096
8109
 
8097
- var moment = moment$k;
8098
- var Holiday = /** @class */ (function () {
8099
- function Holiday() {
8100
- this.deleted = false;
8101
- /*{CA:CLASS_METHODS:START}*/
8102
- /*{CA:CLASS_METHODS:END}*/
8103
- }
8104
- /*{CA:CLASS_ATTRIBUTES:START}*/
8105
- /*{CA:CLASS_ATTRIBUTES:END}*/
8106
- Holiday.fromDto = function (holidayDto, originEntity) {
8107
- var model = __assign({}, holidayDto);
8108
- model.createdDate = model.createdDate && moment(model.createdDate).toDate();
8109
- model.lastModifiedDate = model.lastModifiedDate && moment(model.lastModifiedDate).toDate();
8110
- var lookupSeparator = " - ";
8111
- var displayFields = [
8112
- "id",
8113
- "name",
8114
- "day",
8115
- "month",
8116
- "year",
8117
- "deleted",
8118
- "extIntSts",
8119
- "extIntMsg",
8120
- "createdBy",
8121
- "createdDate",
8122
- "lastModifiedBy",
8123
- "lastModifiedDate",
8124
- ];
8125
- model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8126
- return model;
8127
- };
8128
- Holiday.toDto = function (holiday, originEntity) {
8129
- var dto = __assign({}, holiday);
8130
- dto.createdDate = dto.createdDate && moment(dto.createdDate).format();
8131
- dto.lastModifiedDate = dto.lastModifiedDate && moment(dto.lastModifiedDate).format();
8132
- delete dto.label;
8133
- return dto;
8134
- };
8135
- return Holiday;
8136
- }());
8137
- /*{CA:FILE_CONTENTS:START}*/
8138
- /*{CA:FILE_CONTENTS:END}*/
8139
-
8140
- var moment$1 = moment$k;
8141
- var HolidayGroup = /** @class */ (function () {
8142
- function HolidayGroup() {
8143
- this.deleted = false;
8144
- /*{CA:CLASS_METHODS:START}*/
8145
- /*{CA:CLASS_METHODS:END}*/
8146
- }
8147
- /*{CA:CLASS_ATTRIBUTES:START}*/
8148
- /*{CA:CLASS_ATTRIBUTES:END}*/
8149
- HolidayGroup.fromDto = function (holidayGroupDto, originEntity) {
8150
- var model = __assign({}, holidayGroupDto);
8151
- model.createdDate = model.createdDate && moment$1(model.createdDate).toDate();
8152
- model.lastModifiedDate = model.lastModifiedDate && moment$1(model.lastModifiedDate).toDate();
8153
- var lookupSeparator = " - ";
8154
- var displayFields = [
8155
- "id",
8156
- "code",
8157
- "name",
8158
- "deleted",
8159
- "extIntSts",
8160
- "extIntMsg",
8161
- "createdBy",
8162
- "createdDate",
8163
- "lastModifiedBy",
8164
- "lastModifiedDate",
8165
- ];
8166
- model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8167
- if (originEntity !== "Holiday" && model.holiday)
8168
- model.holiday = Object.values(model.holiday).map(function (item) { return Holiday.fromDto(item, "HolidayGroup"); });
8169
- return model;
8170
- };
8171
- HolidayGroup.toDto = function (holidayGroup, originEntity) {
8172
- var dto = __assign({}, holidayGroup);
8173
- dto.createdDate = dto.createdDate && moment$1(dto.createdDate).format();
8174
- dto.lastModifiedDate = dto.lastModifiedDate && moment$1(dto.lastModifiedDate).format();
8175
- delete dto.label;
8176
- if (originEntity !== "Holiday" && dto.holiday)
8177
- dto.holiday = Object.values(dto.holiday)
8178
- .map(function (item) { return Holiday.toDto(item, "HolidayGroup"); })
8179
- .filter(function (item) { return Object.keys(item).length; });
8180
- return dto;
8181
- };
8182
- return HolidayGroup;
8183
- }());
8184
- /*{CA:FILE_CONTENTS:START}*/
8185
- /*{CA:FILE_CONTENTS:END}*/
8186
-
8187
- /*{CA:PACKAGE_IMPORTS:START}*/
8188
- /*{CA:PACKAGE_IMPORTS:END}*/
8189
- /*{CA:PROJECT_IMPORTS:START}*/
8190
- /*{CA:PROJECT_IMPORTS:END}*/
8191
- var CompanyBranchIndications = /** @class */ (function () {
8192
- function CompanyBranchIndications() {
8193
- this.deleted = false;
8194
- /*{CA:CLASS_METHODS:START}*/
8195
- /*{CA:CLASS_METHODS:END}*/
8196
- }
8197
- /*{CA:CLASS_ATTRIBUTES:START}*/
8198
- /*{CA:CLASS_ATTRIBUTES:END}*/
8199
- CompanyBranchIndications.fromDto = function (companyBranchIndicationsDto, originEntity) {
8200
- var model = __assign({}, companyBranchIndicationsDto);
8201
- model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
8202
- model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
8203
- var lookupSeparator = " - ";
8204
- var displayFields = ["id", "deleted", "extIntSts", "extIntMsg", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
8205
- model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8206
- if (originEntity !== "HolidayGroup" && model.nightlyHolidayGroup)
8207
- model.nightlyHolidayGroup = HolidayGroup.fromDto(model.nightlyHolidayGroup, "CompanyBranchIndications");
8208
- if (originEntity !== "HolidayGroup" && model.daytimeHolidayGroup)
8209
- model.daytimeHolidayGroup = HolidayGroup.fromDto(model.daytimeHolidayGroup, "CompanyBranchIndications");
8210
- return model;
8211
- };
8212
- CompanyBranchIndications.toDto = function (companyBranchIndications, originEntity) {
8213
- var dto = __assign({}, companyBranchIndications);
8214
- dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
8215
- dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
8216
- delete dto.label;
8217
- if (originEntity !== "HolidayGroup" && dto.nightlyHolidayGroup)
8218
- dto.nightlyHolidayGroup = HolidayGroup.toDto(dto.nightlyHolidayGroup, "CompanyBranchIndications");
8219
- if (originEntity !== "HolidayGroup" && dto.daytimeHolidayGroup)
8220
- dto.daytimeHolidayGroup = HolidayGroup.toDto(dto.daytimeHolidayGroup, "CompanyBranchIndications");
8221
- return dto;
8222
- };
8223
- return CompanyBranchIndications;
8224
- }());
8225
- /*{CA:FILE_CONTENTS:START}*/
8226
- /*{CA:FILE_CONTENTS:END}*/
8227
-
8228
- 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
8229
8111
  var E001Pes = /** @class */ (function () {
8230
8112
  function E001Pes() {
8231
8113
  this.excluido = false;
8232
8114
  }
8233
8115
  E001Pes.fromDto = function (e001PesDto, originEntity) {
8234
8116
  var model = __assign({}, e001PesDto);
8235
- model.createdDate = model.createdDate && moment$2(model.createdDate).toDate();
8236
- 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();
8237
8119
  var lookupSeparator = " - ";
8238
8120
  var displayFields = ["nomPes"];
8239
8121
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -8241,8 +8123,8 @@
8241
8123
  };
8242
8124
  E001Pes.toDto = function (e001Pes, originEntity) {
8243
8125
  var dto = __assign({}, e001Pes);
8244
- dto.createdDate = dto.createdDate && moment$2(dto.createdDate).format();
8245
- 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();
8246
8128
  delete dto.label;
8247
8129
  delete dto._discriminator;
8248
8130
  return dto;
@@ -8250,17 +8132,17 @@
8250
8132
  return E001Pes;
8251
8133
  }());
8252
8134
 
8253
- var moment$3 = moment$k;
8135
+ var moment$1 = moment$k;
8254
8136
  var Employee = /** @class */ (function () {
8255
8137
  function Employee() {
8256
8138
  this.deleted = false;
8257
8139
  }
8258
8140
  Employee.fromDto = function (employeeDto, originEntity) {
8259
8141
  var model = __assign({}, employeeDto);
8260
- model.hireDate = model.hireDate && moment$3(model.hireDate).toDate();
8261
- model.dismissalDate = model.dismissalDate && moment$3(model.dismissalDate).toDate();
8262
- model.createdDate = model.createdDate && moment$3(model.createdDate).toDate();
8263
- 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();
8264
8146
  var lookupSeparator = " - ";
8265
8147
  var displayFields = [
8266
8148
  "id",
@@ -8284,10 +8166,10 @@
8284
8166
  };
8285
8167
  Employee.toDto = function (employee, originEntity) {
8286
8168
  var dto = __assign({}, employee);
8287
- dto.hireDate = dto.hireDate && moment$3(dto.hireDate).format("YYYY-MM-DD");
8288
- dto.dismissalDate = dto.dismissalDate && moment$3(dto.dismissalDate).format("YYYY-MM-DD");
8289
- dto.createdDate = dto.createdDate && moment$3(dto.createdDate).format();
8290
- 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();
8291
8173
  delete dto.label;
8292
8174
  delete dto._discriminator;
8293
8175
  delete dto.employer._discriminator;
@@ -8300,7 +8182,7 @@
8300
8182
  return Employee;
8301
8183
  }());
8302
8184
 
8303
- var moment$4 = moment$k;
8185
+ var moment$2 = moment$k;
8304
8186
  var Position = /** @class */ (function () {
8305
8187
  function Position() {
8306
8188
  this.deleted = false;
@@ -8311,8 +8193,8 @@
8311
8193
  /*{CA:CLASS_ATTRIBUTES:END}*/
8312
8194
  Position.fromDto = function (positionDto, originEntity) {
8313
8195
  var model = __assign({}, positionDto);
8314
- model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
8315
- 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();
8316
8198
  var lookupSeparator = " - ";
8317
8199
  var displayFields = [
8318
8200
  "id",
@@ -8331,8 +8213,8 @@
8331
8213
  };
8332
8214
  Position.toDto = function (position, originEntity) {
8333
8215
  var dto = __assign({}, position);
8334
- dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
8335
- 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();
8336
8218
  delete dto.label;
8337
8219
  return dto;
8338
8220
  };
@@ -8341,14 +8223,14 @@
8341
8223
  /*{CA:FILE_CONTENTS:START}*/
8342
8224
  /*{CA:FILE_CONTENTS:END}*/
8343
8225
 
8344
- var moment$5 = moment$k;
8226
+ var moment$3 = moment$k;
8345
8227
  var JobPositionStructure = /** @class */ (function () {
8346
8228
  function JobPositionStructure() {
8347
8229
  }
8348
8230
  JobPositionStructure.fromDto = function (jobPositionStructureDto, originEntity) {
8349
8231
  var model = __assign({}, jobPositionStructureDto);
8350
- model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
8351
- 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();
8352
8234
  var lookupSeparator = " - ";
8353
8235
  var displayFields = ["id", "code", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
8354
8236
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -8356,22 +8238,22 @@
8356
8238
  };
8357
8239
  JobPositionStructure.toDto = function (jobPositionStructure, originEntity) {
8358
8240
  var dto = __assign({}, jobPositionStructure);
8359
- dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
8360
- 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();
8361
8243
  delete dto.label;
8362
8244
  return dto;
8363
8245
  };
8364
8246
  return JobPositionStructure;
8365
8247
  }());
8366
8248
 
8367
- var moment$6 = moment$k;
8249
+ var moment$4 = moment$k;
8368
8250
  var JobPosition = /** @class */ (function () {
8369
8251
  function JobPosition() {
8370
8252
  }
8371
8253
  JobPosition.fromDto = function (jobPositionDto, originEntity) {
8372
8254
  var model = __assign({}, jobPositionDto);
8373
- model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
8374
- 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();
8375
8257
  var lookupSeparator = " - ";
8376
8258
  var displayFields = [
8377
8259
  "id",
@@ -8393,8 +8275,8 @@
8393
8275
  };
8394
8276
  JobPosition.toDto = function (jobPosition, originEntity) {
8395
8277
  var dto = __assign({}, jobPosition);
8396
- dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
8397
- 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();
8398
8280
  delete dto.label;
8399
8281
  if (originEntity !== "JobPositionStructure" && dto.jobPositionStructure)
8400
8282
  dto.jobPositionStructure = JobPositionStructure.toDto(dto.jobPositionStructure, "JobPosition");
@@ -8403,14 +8285,14 @@
8403
8285
  return JobPosition;
8404
8286
  }());
8405
8287
 
8406
- var moment$7 = moment$k;
8288
+ var moment$5 = moment$k;
8407
8289
  var Syndicate = /** @class */ (function () {
8408
8290
  function Syndicate() {
8409
8291
  }
8410
8292
  Syndicate.fromDto = function (syndicateDto, originEntity) {
8411
8293
  var model = __assign({}, syndicateDto);
8412
- model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
8413
- 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();
8414
8296
  var lookupSeparator = " - ";
8415
8297
  var displayFields = [
8416
8298
  "id",
@@ -8428,22 +8310,22 @@
8428
8310
  };
8429
8311
  Syndicate.toDto = function (syndicate, originEntity) {
8430
8312
  var dto = __assign({}, syndicate);
8431
- dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
8432
- 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();
8433
8315
  delete dto.label;
8434
8316
  return dto;
8435
8317
  };
8436
8318
  return Syndicate;
8437
8319
  }());
8438
8320
 
8439
- var moment$8 = moment$k;
8321
+ var moment$6 = moment$k;
8440
8322
  var EmploymentRelationship = /** @class */ (function () {
8441
8323
  function EmploymentRelationship() {
8442
8324
  }
8443
8325
  EmploymentRelationship.fromDto = function (employmentRelationshipDto, originEntity) {
8444
8326
  var model = __assign({}, employmentRelationshipDto);
8445
- model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
8446
- 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();
8447
8329
  var lookupSeparator = " - ";
8448
8330
  var displayFields = [
8449
8331
  "id",
@@ -8461,23 +8343,23 @@
8461
8343
  };
8462
8344
  EmploymentRelationship.toDto = function (employmentRelationship, originEntity) {
8463
8345
  var dto = __assign({}, employmentRelationship);
8464
- dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
8465
- 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();
8466
8348
  delete dto.label;
8467
8349
  return dto;
8468
8350
  };
8469
8351
  return EmploymentRelationship;
8470
8352
  }());
8471
8353
 
8472
- 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
8473
8355
  var Workshift = /** @class */ (function () {
8474
8356
  function Workshift() {
8475
8357
  this.deleted = false;
8476
8358
  }
8477
8359
  Workshift.fromDto = function (workshiftDto, originEntity) {
8478
8360
  var model = __assign({}, workshiftDto);
8479
- model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
8480
- 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();
8481
8363
  var lookupSeparator = " - ";
8482
8364
  var displayFields = [
8483
8365
  "id",
@@ -8497,8 +8379,8 @@
8497
8379
  };
8498
8380
  Workshift.toDto = function (workshift, originEntity) {
8499
8381
  var dto = __assign({}, workshift);
8500
- dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
8501
- 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();
8502
8384
  delete dto.label;
8503
8385
  delete dto._discriminator;
8504
8386
  return dto;
@@ -8506,16 +8388,16 @@
8506
8388
  return Workshift;
8507
8389
  }());
8508
8390
 
8509
- 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
8510
8392
  var WorkshiftGroup = /** @class */ (function () {
8511
8393
  function WorkshiftGroup() {
8512
8394
  this.deleted = false;
8513
8395
  }
8514
8396
  WorkshiftGroup.fromDto = function (workshiftGroupDto, originEntity) {
8515
8397
  var model = __assign({}, workshiftGroupDto);
8516
- model.baseDate = model.baseDate && moment$a(model.baseDate).toDate();
8517
- model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
8518
- 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();
8519
8401
  var lookupSeparator = " - ";
8520
8402
  var displayFields = [
8521
8403
  "id",
@@ -8534,9 +8416,9 @@
8534
8416
  };
8535
8417
  WorkshiftGroup.toDto = function (workshiftGroup, originEntity) {
8536
8418
  var dto = __assign({}, workshiftGroup);
8537
- dto.baseDate = dto.baseDate && moment$a(dto.baseDate).format("YYYY-MM-DD");
8538
- dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
8539
- 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();
8540
8422
  delete dto.label;
8541
8423
  delete dto._discriminator;
8542
8424
  return dto;
@@ -8544,7 +8426,7 @@
8544
8426
  return WorkshiftGroup;
8545
8427
  }());
8546
8428
 
8547
- var moment$b = moment$k;
8429
+ var moment$9 = moment$k;
8548
8430
  var PositionActingType = /** @class */ (function () {
8549
8431
  function PositionActingType() {
8550
8432
  this.deleted = false;
@@ -8555,8 +8437,8 @@
8555
8437
  /*{CA:CLASS_ATTRIBUTES:END}*/
8556
8438
  PositionActingType.fromDto = function (positionActingTypeDto, originEntity) {
8557
8439
  var model = __assign({}, positionActingTypeDto);
8558
- model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
8559
- 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();
8560
8442
  var lookupSeparator = " - ";
8561
8443
  var displayFields = [
8562
8444
  "id",
@@ -8575,8 +8457,8 @@
8575
8457
  };
8576
8458
  PositionActingType.toDto = function (positionActingType, originEntity) {
8577
8459
  var dto = __assign({}, positionActingType);
8578
- dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
8579
- 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();
8580
8462
  delete dto.label;
8581
8463
  return dto;
8582
8464
  };
@@ -8585,7 +8467,7 @@
8585
8467
  /*{CA:FILE_CONTENTS:START}*/
8586
8468
  /*{CA:FILE_CONTENTS:END}*/
8587
8469
 
8588
- var moment$c = moment$k;
8470
+ var moment$a = moment$k;
8589
8471
  var LocationStructure = /** @class */ (function () {
8590
8472
  function LocationStructure() {
8591
8473
  }
@@ -8593,8 +8475,8 @@
8593
8475
  /*{CA:CLASS_ATTRIBUTES:END}*/
8594
8476
  LocationStructure.fromDto = function (locationStructureDto, originEntity) {
8595
8477
  var model = __assign({}, locationStructureDto);
8596
- model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
8597
- 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();
8598
8480
  var lookupSeparator = " - ";
8599
8481
  var displayFields = [
8600
8482
  "id",
@@ -8613,8 +8495,8 @@
8613
8495
  };
8614
8496
  LocationStructure.toDto = function (locationStructure, originEntity) {
8615
8497
  var dto = __assign({}, locationStructure);
8616
- dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
8617
- 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();
8618
8500
  delete dto.label;
8619
8501
  return dto;
8620
8502
  };
@@ -8623,7 +8505,7 @@
8623
8505
  /*{CA:FILE_CONTENTS:START}*/
8624
8506
  /*{CA:FILE_CONTENTS:END}*/
8625
8507
 
8626
- var moment$d = moment$k;
8508
+ var moment$b = moment$k;
8627
8509
  var Location = /** @class */ (function () {
8628
8510
  function Location() {
8629
8511
  }
@@ -8631,10 +8513,10 @@
8631
8513
  /*{CA:CLASS_ATTRIBUTES:END}*/
8632
8514
  Location.fromDto = function (locationDto, originEntity) {
8633
8515
  var model = __assign({}, locationDto);
8634
- model.initialValidity = model.initialValidity && moment$d(model.initialValidity).toDate();
8635
- model.finalValidity = model.finalValidity && moment$d(model.finalValidity).toDate();
8636
- model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
8637
- 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();
8638
8520
  var lookupSeparator = " - ";
8639
8521
  var displayFields = [
8640
8522
  "id",
@@ -8657,10 +8539,10 @@
8657
8539
  };
8658
8540
  Location.toDto = function (location, originEntity) {
8659
8541
  var dto = __assign({}, location);
8660
- dto.initialValidity = dto.initialValidity && moment$d(dto.initialValidity).format("YYYY-MM-DD");
8661
- dto.finalValidity = dto.finalValidity && moment$d(dto.finalValidity).format("YYYY-MM-DD");
8662
- dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
8663
- 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();
8664
8546
  delete dto.label;
8665
8547
  if (originEntity !== "LocationStructure" && dto.locationStructure)
8666
8548
  dto.locationStructure = LocationStructure.toDto(dto.locationStructure, "Location");
@@ -8671,7 +8553,7 @@
8671
8553
  /*{CA:FILE_CONTENTS:START}*/
8672
8554
  /*{CA:FILE_CONTENTS:END}*/
8673
8555
 
8674
- var moment$e = moment$k;
8556
+ var moment$c = moment$k;
8675
8557
  var E030Ban = /** @class */ (function () {
8676
8558
  function E030Ban() {
8677
8559
  this.excluido = false;
@@ -8682,8 +8564,8 @@
8682
8564
  /*{CA:CLASS_ATTRIBUTES:END}*/
8683
8565
  E030Ban.fromDto = function (e030BanDto, originEntity) {
8684
8566
  var model = __assign({}, e030BanDto);
8685
- model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
8686
- 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();
8687
8569
  var lookupSeparator = " - ";
8688
8570
  var displayFields = [
8689
8571
  "id",
@@ -8703,8 +8585,8 @@
8703
8585
  };
8704
8586
  E030Ban.toDto = function (e030Ban, originEntity) {
8705
8587
  var dto = __assign({}, e030Ban);
8706
- dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
8707
- 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();
8708
8590
  delete dto.label;
8709
8591
  return dto;
8710
8592
  };
@@ -8713,7 +8595,7 @@
8713
8595
  /*{CA:FILE_CONTENTS:START}*/
8714
8596
  /*{CA:FILE_CONTENTS:END}*/
8715
8597
 
8716
- var moment$f = moment$k;
8598
+ var moment$d = moment$k;
8717
8599
  var E030Age = /** @class */ (function () {
8718
8600
  function E030Age() {
8719
8601
  this.excluido = false;
@@ -8724,8 +8606,8 @@
8724
8606
  /*{CA:CLASS_ATTRIBUTES:END}*/
8725
8607
  E030Age.fromDto = function (e030AgeDto, originEntity) {
8726
8608
  var model = __assign({}, e030AgeDto);
8727
- model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
8728
- 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();
8729
8611
  var lookupSeparator = " - ";
8730
8612
  var displayFields = [
8731
8613
  "id",
@@ -8746,8 +8628,8 @@
8746
8628
  };
8747
8629
  E030Age.toDto = function (e030Age, originEntity) {
8748
8630
  var dto = __assign({}, e030Age);
8749
- dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
8750
- 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();
8751
8633
  delete dto.label;
8752
8634
  if (originEntity !== "E030Ban" && dto.e030ban)
8753
8635
  dto.e030ban = E030Ban.toDto(dto.e030ban, "E030Age");
@@ -8758,7 +8640,7 @@
8758
8640
  /*{CA:FILE_CONTENTS:START}*/
8759
8641
  /*{CA:FILE_CONTENTS:END}*/
8760
8642
 
8761
- var moment$g = moment$k;
8643
+ var moment$e = moment$k;
8762
8644
  var E044Ccu = /** @class */ (function () {
8763
8645
  function E044Ccu() {
8764
8646
  }
@@ -8766,8 +8648,8 @@
8766
8648
  /*{CA:CLASS_ATTRIBUTES:END}*/
8767
8649
  E044Ccu.fromDto = function (e044CcuDto, originEntity) {
8768
8650
  var model = __assign({}, e044CcuDto);
8769
- model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
8770
- 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();
8771
8653
  var lookupSeparator = " - ";
8772
8654
  var displayFields = [
8773
8655
  "id",
@@ -8786,8 +8668,8 @@
8786
8668
  };
8787
8669
  E044Ccu.toDto = function (e044Ccu, originEntity) {
8788
8670
  var dto = __assign({}, e044Ccu);
8789
- dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
8790
- 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();
8791
8673
  delete dto.label;
8792
8674
  return dto;
8793
8675
  };
@@ -8796,7 +8678,7 @@
8796
8678
  /*{CA:FILE_CONTENTS:START}*/
8797
8679
  /*{CA:FILE_CONTENTS:END}*/
8798
8680
 
8799
- var moment$h = moment$k;
8681
+ var moment$f = moment$k;
8800
8682
  var E070Emp = /** @class */ (function () {
8801
8683
  function E070Emp() {
8802
8684
  this.excluido = false;
@@ -8807,8 +8689,8 @@
8807
8689
  /*{CA:CLASS_ATTRIBUTES:END}*/
8808
8690
  E070Emp.fromDto = function (e070EmpDto, originEntity) {
8809
8691
  var model = __assign({}, e070EmpDto);
8810
- model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
8811
- 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();
8812
8694
  var lookupSeparator = " - ";
8813
8695
  var displayFields = [
8814
8696
  "id",
@@ -8827,8 +8709,8 @@
8827
8709
  };
8828
8710
  E070Emp.toDto = function (e070Emp, originEntity) {
8829
8711
  var dto = __assign({}, e070Emp);
8830
- dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
8831
- 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();
8832
8714
  delete dto.label;
8833
8715
  return dto;
8834
8716
  };
@@ -8837,7 +8719,7 @@
8837
8719
  /*{CA:FILE_CONTENTS:START}*/
8838
8720
  /*{CA:FILE_CONTENTS:END}*/
8839
8721
 
8840
- var moment$i = moment$k;
8722
+ var moment$g = moment$k;
8841
8723
  var E070Fil = /** @class */ (function () {
8842
8724
  function E070Fil() {
8843
8725
  this.deleted = false;
@@ -8848,8 +8730,8 @@
8848
8730
  /*{CA:CLASS_ATTRIBUTES:END}*/
8849
8731
  E070Fil.fromDto = function (e070FilDto, originEntity) {
8850
8732
  var model = __assign({}, e070FilDto);
8851
- model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
8852
- 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();
8853
8735
  var lookupSeparator = " - ";
8854
8736
  var displayFields = [
8855
8737
  "id",
@@ -8866,19 +8748,15 @@
8866
8748
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8867
8749
  if (originEntity !== "E070Emp" && model.e070emp)
8868
8750
  model.e070emp = E070Emp.fromDto(model.e070emp, "E070Fil");
8869
- if (originEntity !== "CompanyBranchIndications" && model.companyBranchIndications)
8870
- model.companyBranchIndications = CompanyBranchIndications.fromDto(model.companyBranchIndications, "E070Fil");
8871
8751
  return model;
8872
8752
  };
8873
8753
  E070Fil.toDto = function (e070Fil, originEntity) {
8874
8754
  var dto = __assign({}, e070Fil);
8875
- dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
8876
- 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();
8877
8757
  delete dto.label;
8878
8758
  if (originEntity !== "E070Emp" && dto.e070emp)
8879
8759
  dto.e070emp = E070Emp.toDto(dto.e070emp, "E070Fil");
8880
- if (originEntity !== "CompanyBranchIndications" && dto.companyBranchIndications)
8881
- dto.companyBranchIndications = CompanyBranchIndications.toDto(dto.companyBranchIndications, "E070Fil");
8882
8760
  return dto;
8883
8761
  };
8884
8762
  return E070Fil;
@@ -8886,6 +8764,96 @@
8886
8764
  /*{CA:FILE_CONTENTS:START}*/
8887
8765
  /*{CA:FILE_CONTENTS:END}*/
8888
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
+
8889
8857
  /*{CA:PACKAGE_IMPORTS:START}*/
8890
8858
  var moment$j = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8891
8859
  /*{CA:PROJECT_IMPORTS:START}*/
@@ -9151,8 +9119,6 @@
9151
9119
  exports.Characteristics = Characteristics;
9152
9120
  exports.CharacteristicsService = CharacteristicsService;
9153
9121
  exports.CollectiveHistoryFiltersService = CollectiveHistoryFiltersService;
9154
- exports.CompanyBranchIndications = CompanyBranchIndications;
9155
- exports.CompanyBranchIndicationsService = CompanyBranchIndicationsService;
9156
9122
  exports.CompanyBranchLookupModule = CompanyBranchLookupModule;
9157
9123
  exports.CompanyBranchLookupService = CompanyBranchLookupService;
9158
9124
  exports.CompanyLinkedLocation = CompanyLinkedLocation;
@@ -9211,6 +9177,7 @@
9211
9177
  exports.LocationLookupService = LocationLookupService;
9212
9178
  exports.LocationService = LocationService;
9213
9179
  exports.PersonLookupModule = PersonLookupModule;
9180
+ exports.PersonLookupService = PersonLookupService;
9214
9181
  exports.PisPasepTaxationLookupComponent = PisPasepTaxationLookupComponent;
9215
9182
  exports.PisPasepTaxationLookupModule = PisPasepTaxationLookupModule;
9216
9183
  exports.PisPasepTaxationLookupService = PisPasepTaxationLookupService;
@@ -9257,36 +9224,34 @@
9257
9224
  exports.fallback = fallback;
9258
9225
  exports.ɵa = PisPasepTaxationService;
9259
9226
  exports.ɵb = EntityService;
9260
- exports.ɵba = SyndicateModule;
9261
- exports.ɵbb = VariableEntryModule;
9262
- exports.ɵbc = CalculationDefinitionModule;
9263
- exports.ɵbd = EmploymentRelationshipModule;
9264
- exports.ɵbe = WageTypePayrollModule;
9265
- exports.ɵbf = CompanyLinkedLocationModule;
9227
+ exports.ɵba = CalculationDefinitionModule;
9228
+ exports.ɵbb = EmploymentRelationshipModule;
9229
+ exports.ɵbc = WageTypePayrollModule;
9230
+ exports.ɵbd = CompanyLinkedLocationModule;
9266
9231
  exports.ɵc = SharedModule;
9267
9232
  exports.ɵd = CompanyBranchLookupComponent;
9268
9233
  exports.ɵe = PersonLookupComponent;
9269
- exports.ɵf = ESocialCategoryModule;
9270
- exports.ɵg = CompanyBranchIndicationsModule;
9271
- exports.ɵh = E030AgeModule;
9272
- exports.ɵi = E030BanModule;
9273
- exports.ɵj = E044CcuModule;
9274
- exports.ɵk = E070EmpModule;
9275
- exports.ɵl = E070FilModule;
9276
- exports.ɵm = HolidayModule;
9277
- exports.ɵn = HolidayGroupModule;
9278
- exports.ɵo = LocationModule;
9279
- exports.ɵp = LocationStructureModule;
9280
- exports.ɵq = LocationStructureService;
9281
- exports.ɵr = PositionActingTypeModule;
9282
- exports.ɵs = PositionModule;
9283
- exports.ɵt = E001PesModule;
9284
- exports.ɵu = EmployeeModule;
9285
- exports.ɵv = JobPositionModule;
9286
- exports.ɵw = WorkshiftModule;
9287
- exports.ɵx = WorkshiftGroupModule;
9288
- exports.ɵy = WageTypeModule;
9289
- 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;
9290
9255
 
9291
9256
  Object.defineProperty(exports, '__esModule', { value: true });
9292
9257