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

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 +506 -471
  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/company-branch-indications/company-branch-indications-dto.d.ts +14 -0
  6. package/core/entities/company-branch-indications/company-branch-indications.d.ts +19 -0
  7. package/core/entities/company-branch-indications/company-branch-indications.module.d.ts +2 -0
  8. package/core/entities/company-branch-indications/company-branch-indications.service.d.ts +14 -0
  9. package/core/entities/company-branch-indications/index.d.ts +3 -0
  10. package/core/entities/e-001-pes/e-001-pes-dto.d.ts +0 -1
  11. package/core/entities/e-001-pes/e-001-pes.d.ts +0 -1
  12. package/core/entities/e-070-fil/e-070-fil.d.ts +2 -1
  13. package/core/entities/e-social-category/esocial-category.module.d.ts +2 -0
  14. package/core/index.d.ts +1 -0
  15. package/esm2015/core/core-lookup.module.js +3 -1
  16. package/esm2015/core/entities/company-branch-indications/company-branch-indications-dto.js +5 -0
  17. package/esm2015/core/entities/company-branch-indications/company-branch-indications.js +42 -0
  18. package/esm2015/core/entities/company-branch-indications/company-branch-indications.module.js +38 -0
  19. package/esm2015/core/entities/company-branch-indications/company-branch-indications.service.js +45 -0
  20. package/esm2015/core/entities/company-branch-indications/index.js +3 -0
  21. package/esm2015/core/entities/e-001-pes/e-001-pes-dto.js +1 -1
  22. package/esm2015/core/entities/e-001-pes/e-001-pes.js +1 -1
  23. package/esm2015/core/entities/e-070-fil/e-070-fil.js +6 -1
  24. package/esm2015/core/entities/e-social-category/esocial-category.module.js +24 -0
  25. package/esm2015/core/index.js +2 -1
  26. package/esm2015/lookups/esocial-category-lookup/esocial-category-lookup.module.js +4 -2
  27. package/esm2015/lookups/person-lookup/person-lookup.component.js +105 -24
  28. package/esm2015/lookups/person-lookup/person-lookup.module.js +8 -10
  29. package/esm2015/public-api.js +1 -2
  30. package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +28 -26
  31. package/esm5/core/core-lookup.module.js +3 -1
  32. package/esm5/core/entities/company-branch-indications/company-branch-indications-dto.js +5 -0
  33. package/esm5/core/entities/company-branch-indications/company-branch-indications.js +45 -0
  34. package/esm5/core/entities/company-branch-indications/company-branch-indications.module.js +41 -0
  35. package/esm5/core/entities/company-branch-indications/company-branch-indications.service.js +48 -0
  36. package/esm5/core/entities/company-branch-indications/index.js +3 -0
  37. package/esm5/core/entities/e-001-pes/e-001-pes-dto.js +1 -1
  38. package/esm5/core/entities/e-001-pes/e-001-pes.js +1 -1
  39. package/esm5/core/entities/e-070-fil/e-070-fil.js +6 -1
  40. package/esm5/core/entities/e-social-category/esocial-category.module.js +27 -0
  41. package/esm5/core/index.js +2 -1
  42. package/esm5/lookups/esocial-category-lookup/esocial-category-lookup.module.js +4 -2
  43. package/esm5/lookups/person-lookup/person-lookup.component.js +110 -25
  44. package/esm5/lookups/person-lookup/person-lookup.module.js +8 -10
  45. package/esm5/public-api.js +1 -2
  46. package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +28 -26
  47. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +466 -438
  48. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  49. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +478 -446
  50. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  51. package/lookups/person-lookup/person-lookup.component.d.ts +11 -6
  52. package/package.json +1 -1
  53. package/public-api.d.ts +0 -1
  54. package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +27 -25
  55. package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
  56. package/esm2015/lookups/person-lookup/person-lookup.service.js +0 -192
  57. package/esm5/lookups/person-lookup/person-lookup.service.js +0 -202
  58. package/lookups/person-lookup/person-lookup.service.d.ts +0 -25
@@ -5069,174 +5069,100 @@
5069
5069
  return E001PesService;
5070
5070
  }(EntityService));
5071
5071
 
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();
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;
5113
5089
  }
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 () {
5090
+ PersonLookupComponent.prototype.onPersonLookupRequest = function (value) {
5128
5091
  var _this = this;
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); },
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;
5155
5110
  });
5156
5111
  };
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); });
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;
5161
5118
  };
5162
- PersonLookupService.prototype.onPersonSearchRequestObservable = function (event, additionalFilter, companyIds, isDynamicForm) {
5119
+ PersonLookupComponent.prototype.onPersonSearchRequest = function (event) {
5163
5120
  var _this = this;
5164
- if (isDynamicForm === void 0) { isDynamicForm = false; }
5165
5121
  var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
5166
5122
  var page = first / rows;
5167
5123
  var sort = multiSortMeta;
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];
5124
+ var filterQuery = this.getPersonSearchFields()
5125
+ .filter(function (_a) {
5126
+ var name = _a.name;
5127
+ return filterData[name] != undefined && filterData[name] != "";
5209
5128
  })
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 })
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 + "'";
5146
+ })
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 })
5226
5151
  .pipe(operators.takeUntil(this.ngUnsubscribe))
5227
- .pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.lookupServiceConfig.lookupDisplayFields
5152
+ .pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.personLookupDisplayFields
5228
5153
  .map(function (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
- }
5154
+ if (field.indexOf(".") > 0)
5155
+ item[field] = getProp(item, field);
5236
5156
  return item[field];
5237
- }).join(_this.lookupServiceConfig.lookupSeparator) })); }) })); }));
5157
+ })
5158
+ .join(_this.personLookupSeparator) })); }) })); }))
5159
+ .subscribe(function (list) {
5160
+ _this.personSearchGridData = list.contents;
5161
+ _this.personSearchTotalRecords = list.totalElements;
5162
+ });
5238
5163
  };
5239
- PersonLookupService.prototype.getPersonSearchFields = function () {
5164
+ PersonLookupComponent.prototype.getPersonSearchFields = function () {
5165
+ var _a, _b, _c;
5240
5166
  return [
5241
5167
  new angularComponents.FormField({
5242
5168
  name: "codPes",
@@ -5247,68 +5173,31 @@
5247
5173
  name: "nomPes",
5248
5174
  label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_001_pes_nom"),
5249
5175
  type: angularComponents.FieldType.String,
5250
- })
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
+ }),
5251
5185
  ];
5252
5186
  };
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
- };
5301
5187
  PersonLookupComponent.ctorParameters = function () { return [
5302
5188
  { type: core$1.TranslateService },
5303
5189
  { type: core.ChangeDetectorRef },
5304
- { type: EntityLookupConfigService },
5305
5190
  { type: StructureFilterService },
5306
- { type: PersonLookupService }
5191
+ { type: E001PesService },
5192
+ { type: EntityLookupConfigService }
5307
5193
  ]; };
5194
+ __decorate([
5195
+ core.Input()
5196
+ ], PersonLookupComponent.prototype, "filters", void 0);
5308
5197
  PersonLookupComponent = __decorate([
5309
5198
  core.Component({
5310
5199
  selector: "fnd-person-lookup",
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"
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"
5312
5201
  })
5313
5202
  ], PersonLookupComponent);
5314
5203
  return PersonLookupComponent;
@@ -5319,19 +5208,18 @@
5319
5208
  }
5320
5209
  PersonLookupModule = __decorate([
5321
5210
  core.NgModule({
5322
- declarations: [
5323
- PersonLookupComponent,
5324
- ],
5325
- exports: [
5326
- PersonLookupComponent,
5327
- ],
5328
5211
  imports: [
5329
5212
  SharedModule,
5330
5213
  angularComponents.LoadingStateModule,
5331
5214
  ],
5215
+ exports: [
5216
+ PersonLookupComponent,
5217
+ ],
5332
5218
  providers: [
5333
- PersonLookupService,
5334
- E001PesService
5219
+ E001PesService,
5220
+ ],
5221
+ declarations: [
5222
+ PersonLookupComponent
5335
5223
  ],
5336
5224
  })
5337
5225
  ], PersonLookupModule);
@@ -6306,6 +6194,28 @@
6306
6194
  return ESocialCategoryService;
6307
6195
  }(EntityService));
6308
6196
 
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
+
6309
6219
  var ESocialCategoryLookupService = /** @class */ (function () {
6310
6220
  function ESocialCategoryLookupService(translate, configService, esocialCategoryService) {
6311
6221
  this.translate = translate;
@@ -6525,7 +6435,8 @@
6525
6435
  core.NgModule({
6526
6436
  imports: [
6527
6437
  SharedModule,
6528
- angularComponents.LoadingStateModule
6438
+ angularComponents.LoadingStateModule,
6439
+ ESocialCategoryModule
6529
6440
  ],
6530
6441
  exports: [
6531
6442
  ESocialCategoryLookupComponent,
@@ -7139,30 +7050,6 @@
7139
7050
  "hcm_contract.employment_additional_info.resignation_situation_type_all": "Todos"
7140
7051
  };
7141
7052
 
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
-
7166
7053
  var projectInfo = {
7167
7054
  app: "gestao-pessoas",
7168
7055
  domain: "hcm_entity",
@@ -7179,12 +7066,12 @@
7179
7066
  /*{CA:PACKAGE_IMPORTS:END}*/
7180
7067
  /*{CA:PROJECT_IMPORTS:START}*/
7181
7068
  /*{CA:PROJECT_IMPORTS:END}*/
7182
- var E030AgeService = /** @class */ (function (_super) {
7183
- __extends(E030AgeService, _super);
7069
+ var CompanyBranchIndicationsService = /** @class */ (function (_super) {
7070
+ __extends(CompanyBranchIndicationsService, _super);
7184
7071
  /*{CA:CLASS_ATTRIBUTES:START}*/
7185
7072
  /*{CA:CLASS_ATTRIBUTES:END}*/
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;
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;
7188
7075
  _this.http = http;
7189
7076
  _this.messageService = messageService;
7190
7077
  _this.translate = translate;
@@ -7193,23 +7080,23 @@
7193
7080
  /*{CA:CONSTRUCTOR_END:START}*/
7194
7081
  /*{CA:CONSTRUCTOR_END:END}*/
7195
7082
  }
7196
- E030AgeService.prototype.listExternalE030Age = function (listParams) {
7083
+ CompanyBranchIndicationsService.prototype.listExternalCompanyBranchIndications = function (listParams) {
7197
7084
  return this.http
7198
- .get("erpx_fnd/financeiro/entities/e030age", {
7085
+ .get("hcm_foundation/general/entities/companyBranchIndications", {
7199
7086
  params: this.getListQueryParams(listParams),
7200
7087
  })
7201
7088
  .pipe(this.defaultCatch());
7202
7089
  };
7203
- E030AgeService.ctorParameters = function () { return [
7090
+ CompanyBranchIndicationsService.ctorParameters = function () { return [
7204
7091
  { type: http.HttpClient },
7205
7092
  { type: api.MessageService },
7206
7093
  { type: core$1.TranslateService },
7207
7094
  { type: EntityLookupConfigService }
7208
7095
  ]; };
7209
- E030AgeService = __decorate([
7096
+ CompanyBranchIndicationsService = __decorate([
7210
7097
  core.Injectable()
7211
- ], E030AgeService);
7212
- return E030AgeService;
7098
+ ], CompanyBranchIndicationsService);
7099
+ return CompanyBranchIndicationsService;
7213
7100
  }(EntityService));
7214
7101
  /*{CA:FILE_CONTENTS:START}*/
7215
7102
  /*{CA:FILE_CONTENTS:END}*/
@@ -7218,22 +7105,22 @@
7218
7105
  /*{CA:PACKAGE_IMPORTS:END}*/
7219
7106
  /*{CA:PROJECT_IMPORTS:START}*/
7220
7107
  /*{CA:PROJECT_IMPORTS:END}*/
7221
- var E030AgeModule = /** @class */ (function () {
7222
- function E030AgeModule() {
7108
+ var CompanyBranchIndicationsModule = /** @class */ (function () {
7109
+ function CompanyBranchIndicationsModule() {
7223
7110
  }
7224
- E030AgeModule = __decorate([
7111
+ CompanyBranchIndicationsModule = __decorate([
7225
7112
  core.NgModule({
7226
7113
  imports: [
7227
7114
  platformComponents.PermissionsModule.forChild([
7228
7115
  {
7229
- name: "e030age",
7116
+ name: "companyBranchIndications",
7230
7117
  actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
7231
- uri: "res://senior.com.br/erpx_fnd/financeiro/entities/e030age",
7118
+ uri: "res://senior.com.br/hcm_contract/employment_contract/entities/companyBranchIndications",
7232
7119
  },
7233
7120
  ]),
7234
7121
  ],
7235
7122
  providers: [
7236
- E030AgeService,
7123
+ CompanyBranchIndicationsService,
7237
7124
  ],
7238
7125
  declarations: [
7239
7126
  /*{CA:MODULE_DECLARATIONS:START}*/
@@ -7244,15 +7131,114 @@
7244
7131
  /*{CA:MODULE_EXPORTS:END}*/
7245
7132
  ],
7246
7133
  })
7247
- ], E030AgeModule);
7248
- return E030AgeModule;
7134
+ ], CompanyBranchIndicationsModule);
7135
+ return CompanyBranchIndicationsModule;
7249
7136
  }());
7250
7137
  /*{CA:FILE_CONTENTS:START}*/
7251
7138
  /*{CA:FILE_CONTENTS:END}*/
7252
7139
 
7253
- /*{CA:PACKAGE_IMPORTS:START}*/
7254
- /*{CA:PACKAGE_IMPORTS:END}*/
7255
- /*{CA:PROJECT_IMPORTS:START}*/
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;
7235
+ }());
7236
+ /*{CA:FILE_CONTENTS:START}*/
7237
+ /*{CA:FILE_CONTENTS:END}*/
7238
+
7239
+ /*{CA:PACKAGE_IMPORTS:START}*/
7240
+ /*{CA:PACKAGE_IMPORTS:END}*/
7241
+ /*{CA:PROJECT_IMPORTS:START}*/
7256
7242
  /*{CA:PROJECT_IMPORTS:END}*/
7257
7243
  var E030BanService = /** @class */ (function (_super) {
7258
7244
  __extends(E030BanService, _super);
@@ -8077,6 +8063,7 @@
8077
8063
  CoreLookupModule = __decorate([
8078
8064
  core.NgModule({
8079
8065
  imports: [
8066
+ CompanyBranchIndicationsModule,
8080
8067
  E030AgeModule,
8081
8068
  E030BanModule,
8082
8069
  E044CcuModule,
@@ -8107,15 +8094,146 @@
8107
8094
  return CoreLookupModule;
8108
8095
  }());
8109
8096
 
8110
- var moment = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
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
8111
8229
  var E001Pes = /** @class */ (function () {
8112
8230
  function E001Pes() {
8113
8231
  this.excluido = false;
8114
8232
  }
8115
8233
  E001Pes.fromDto = function (e001PesDto, originEntity) {
8116
8234
  var model = __assign({}, e001PesDto);
8117
- model.createdDate = model.createdDate && moment(model.createdDate).toDate();
8118
- model.lastModifiedDate = model.lastModifiedDate && moment(model.lastModifiedDate).toDate();
8235
+ model.createdDate = model.createdDate && moment$2(model.createdDate).toDate();
8236
+ model.lastModifiedDate = model.lastModifiedDate && moment$2(model.lastModifiedDate).toDate();
8119
8237
  var lookupSeparator = " - ";
8120
8238
  var displayFields = ["nomPes"];
8121
8239
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -8123,8 +8241,8 @@
8123
8241
  };
8124
8242
  E001Pes.toDto = function (e001Pes, originEntity) {
8125
8243
  var dto = __assign({}, e001Pes);
8126
- dto.createdDate = dto.createdDate && moment(dto.createdDate).format();
8127
- dto.lastModifiedDate = dto.lastModifiedDate && moment(dto.lastModifiedDate).format();
8244
+ dto.createdDate = dto.createdDate && moment$2(dto.createdDate).format();
8245
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$2(dto.lastModifiedDate).format();
8128
8246
  delete dto.label;
8129
8247
  delete dto._discriminator;
8130
8248
  return dto;
@@ -8132,17 +8250,17 @@
8132
8250
  return E001Pes;
8133
8251
  }());
8134
8252
 
8135
- var moment$1 = moment$k;
8253
+ var moment$3 = moment$k;
8136
8254
  var Employee = /** @class */ (function () {
8137
8255
  function Employee() {
8138
8256
  this.deleted = false;
8139
8257
  }
8140
8258
  Employee.fromDto = function (employeeDto, originEntity) {
8141
8259
  var model = __assign({}, employeeDto);
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();
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();
8146
8264
  var lookupSeparator = " - ";
8147
8265
  var displayFields = [
8148
8266
  "id",
@@ -8166,10 +8284,10 @@
8166
8284
  };
8167
8285
  Employee.toDto = function (employee, originEntity) {
8168
8286
  var dto = __assign({}, employee);
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();
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();
8173
8291
  delete dto.label;
8174
8292
  delete dto._discriminator;
8175
8293
  delete dto.employer._discriminator;
@@ -8182,7 +8300,7 @@
8182
8300
  return Employee;
8183
8301
  }());
8184
8302
 
8185
- var moment$2 = moment$k;
8303
+ var moment$4 = moment$k;
8186
8304
  var Position = /** @class */ (function () {
8187
8305
  function Position() {
8188
8306
  this.deleted = false;
@@ -8193,8 +8311,8 @@
8193
8311
  /*{CA:CLASS_ATTRIBUTES:END}*/
8194
8312
  Position.fromDto = function (positionDto, originEntity) {
8195
8313
  var model = __assign({}, positionDto);
8196
- model.createdDate = model.createdDate && moment$2(model.createdDate).toDate();
8197
- model.lastModifiedDate = model.lastModifiedDate && moment$2(model.lastModifiedDate).toDate();
8314
+ model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
8315
+ model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
8198
8316
  var lookupSeparator = " - ";
8199
8317
  var displayFields = [
8200
8318
  "id",
@@ -8213,8 +8331,8 @@
8213
8331
  };
8214
8332
  Position.toDto = function (position, originEntity) {
8215
8333
  var dto = __assign({}, position);
8216
- dto.createdDate = dto.createdDate && moment$2(dto.createdDate).format();
8217
- dto.lastModifiedDate = dto.lastModifiedDate && moment$2(dto.lastModifiedDate).format();
8334
+ dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
8335
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
8218
8336
  delete dto.label;
8219
8337
  return dto;
8220
8338
  };
@@ -8223,14 +8341,14 @@
8223
8341
  /*{CA:FILE_CONTENTS:START}*/
8224
8342
  /*{CA:FILE_CONTENTS:END}*/
8225
8343
 
8226
- var moment$3 = moment$k;
8344
+ var moment$5 = moment$k;
8227
8345
  var JobPositionStructure = /** @class */ (function () {
8228
8346
  function JobPositionStructure() {
8229
8347
  }
8230
8348
  JobPositionStructure.fromDto = function (jobPositionStructureDto, originEntity) {
8231
8349
  var model = __assign({}, jobPositionStructureDto);
8232
- model.createdDate = model.createdDate && moment$3(model.createdDate).toDate();
8233
- model.lastModifiedDate = model.lastModifiedDate && moment$3(model.lastModifiedDate).toDate();
8350
+ model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
8351
+ model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
8234
8352
  var lookupSeparator = " - ";
8235
8353
  var displayFields = ["id", "code", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
8236
8354
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -8238,22 +8356,22 @@
8238
8356
  };
8239
8357
  JobPositionStructure.toDto = function (jobPositionStructure, originEntity) {
8240
8358
  var dto = __assign({}, jobPositionStructure);
8241
- dto.createdDate = dto.createdDate && moment$3(dto.createdDate).format();
8242
- dto.lastModifiedDate = dto.lastModifiedDate && moment$3(dto.lastModifiedDate).format();
8359
+ dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
8360
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
8243
8361
  delete dto.label;
8244
8362
  return dto;
8245
8363
  };
8246
8364
  return JobPositionStructure;
8247
8365
  }());
8248
8366
 
8249
- var moment$4 = moment$k;
8367
+ var moment$6 = moment$k;
8250
8368
  var JobPosition = /** @class */ (function () {
8251
8369
  function JobPosition() {
8252
8370
  }
8253
8371
  JobPosition.fromDto = function (jobPositionDto, originEntity) {
8254
8372
  var model = __assign({}, jobPositionDto);
8255
- model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
8256
- model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
8373
+ model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
8374
+ model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
8257
8375
  var lookupSeparator = " - ";
8258
8376
  var displayFields = [
8259
8377
  "id",
@@ -8275,8 +8393,8 @@
8275
8393
  };
8276
8394
  JobPosition.toDto = function (jobPosition, originEntity) {
8277
8395
  var dto = __assign({}, jobPosition);
8278
- dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
8279
- dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
8396
+ dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
8397
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
8280
8398
  delete dto.label;
8281
8399
  if (originEntity !== "JobPositionStructure" && dto.jobPositionStructure)
8282
8400
  dto.jobPositionStructure = JobPositionStructure.toDto(dto.jobPositionStructure, "JobPosition");
@@ -8285,14 +8403,14 @@
8285
8403
  return JobPosition;
8286
8404
  }());
8287
8405
 
8288
- var moment$5 = moment$k;
8406
+ var moment$7 = moment$k;
8289
8407
  var Syndicate = /** @class */ (function () {
8290
8408
  function Syndicate() {
8291
8409
  }
8292
8410
  Syndicate.fromDto = function (syndicateDto, originEntity) {
8293
8411
  var model = __assign({}, syndicateDto);
8294
- model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
8295
- model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
8412
+ model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
8413
+ model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
8296
8414
  var lookupSeparator = " - ";
8297
8415
  var displayFields = [
8298
8416
  "id",
@@ -8310,22 +8428,22 @@
8310
8428
  };
8311
8429
  Syndicate.toDto = function (syndicate, originEntity) {
8312
8430
  var dto = __assign({}, syndicate);
8313
- dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
8314
- dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
8431
+ dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
8432
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
8315
8433
  delete dto.label;
8316
8434
  return dto;
8317
8435
  };
8318
8436
  return Syndicate;
8319
8437
  }());
8320
8438
 
8321
- var moment$6 = moment$k;
8439
+ var moment$8 = moment$k;
8322
8440
  var EmploymentRelationship = /** @class */ (function () {
8323
8441
  function EmploymentRelationship() {
8324
8442
  }
8325
8443
  EmploymentRelationship.fromDto = function (employmentRelationshipDto, originEntity) {
8326
8444
  var model = __assign({}, employmentRelationshipDto);
8327
- model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
8328
- model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
8445
+ model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
8446
+ model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
8329
8447
  var lookupSeparator = " - ";
8330
8448
  var displayFields = [
8331
8449
  "id",
@@ -8343,23 +8461,23 @@
8343
8461
  };
8344
8462
  EmploymentRelationship.toDto = function (employmentRelationship, originEntity) {
8345
8463
  var dto = __assign({}, employmentRelationship);
8346
- dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
8347
- dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
8464
+ dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
8465
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
8348
8466
  delete dto.label;
8349
8467
  return dto;
8350
8468
  };
8351
8469
  return EmploymentRelationship;
8352
8470
  }());
8353
8471
 
8354
- var moment$7 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8472
+ var moment$9 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8355
8473
  var Workshift = /** @class */ (function () {
8356
8474
  function Workshift() {
8357
8475
  this.deleted = false;
8358
8476
  }
8359
8477
  Workshift.fromDto = function (workshiftDto, originEntity) {
8360
8478
  var model = __assign({}, workshiftDto);
8361
- model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
8362
- model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
8479
+ model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
8480
+ model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
8363
8481
  var lookupSeparator = " - ";
8364
8482
  var displayFields = [
8365
8483
  "id",
@@ -8379,8 +8497,8 @@
8379
8497
  };
8380
8498
  Workshift.toDto = function (workshift, originEntity) {
8381
8499
  var dto = __assign({}, workshift);
8382
- dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
8383
- dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
8500
+ dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
8501
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
8384
8502
  delete dto.label;
8385
8503
  delete dto._discriminator;
8386
8504
  return dto;
@@ -8388,16 +8506,16 @@
8388
8506
  return Workshift;
8389
8507
  }());
8390
8508
 
8391
- var moment$8 = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8509
+ var moment$a = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8392
8510
  var WorkshiftGroup = /** @class */ (function () {
8393
8511
  function WorkshiftGroup() {
8394
8512
  this.deleted = false;
8395
8513
  }
8396
8514
  WorkshiftGroup.fromDto = function (workshiftGroupDto, originEntity) {
8397
8515
  var model = __assign({}, workshiftGroupDto);
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();
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();
8401
8519
  var lookupSeparator = " - ";
8402
8520
  var displayFields = [
8403
8521
  "id",
@@ -8416,9 +8534,9 @@
8416
8534
  };
8417
8535
  WorkshiftGroup.toDto = function (workshiftGroup, originEntity) {
8418
8536
  var dto = __assign({}, workshiftGroup);
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();
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();
8422
8540
  delete dto.label;
8423
8541
  delete dto._discriminator;
8424
8542
  return dto;
@@ -8426,7 +8544,7 @@
8426
8544
  return WorkshiftGroup;
8427
8545
  }());
8428
8546
 
8429
- var moment$9 = moment$k;
8547
+ var moment$b = moment$k;
8430
8548
  var PositionActingType = /** @class */ (function () {
8431
8549
  function PositionActingType() {
8432
8550
  this.deleted = false;
@@ -8437,8 +8555,8 @@
8437
8555
  /*{CA:CLASS_ATTRIBUTES:END}*/
8438
8556
  PositionActingType.fromDto = function (positionActingTypeDto, originEntity) {
8439
8557
  var model = __assign({}, positionActingTypeDto);
8440
- model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
8441
- model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
8558
+ model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
8559
+ model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
8442
8560
  var lookupSeparator = " - ";
8443
8561
  var displayFields = [
8444
8562
  "id",
@@ -8457,8 +8575,8 @@
8457
8575
  };
8458
8576
  PositionActingType.toDto = function (positionActingType, originEntity) {
8459
8577
  var dto = __assign({}, positionActingType);
8460
- dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
8461
- dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
8578
+ dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
8579
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
8462
8580
  delete dto.label;
8463
8581
  return dto;
8464
8582
  };
@@ -8467,7 +8585,7 @@
8467
8585
  /*{CA:FILE_CONTENTS:START}*/
8468
8586
  /*{CA:FILE_CONTENTS:END}*/
8469
8587
 
8470
- var moment$a = moment$k;
8588
+ var moment$c = moment$k;
8471
8589
  var LocationStructure = /** @class */ (function () {
8472
8590
  function LocationStructure() {
8473
8591
  }
@@ -8475,8 +8593,8 @@
8475
8593
  /*{CA:CLASS_ATTRIBUTES:END}*/
8476
8594
  LocationStructure.fromDto = function (locationStructureDto, originEntity) {
8477
8595
  var model = __assign({}, locationStructureDto);
8478
- model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
8479
- model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
8596
+ model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
8597
+ model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
8480
8598
  var lookupSeparator = " - ";
8481
8599
  var displayFields = [
8482
8600
  "id",
@@ -8495,8 +8613,8 @@
8495
8613
  };
8496
8614
  LocationStructure.toDto = function (locationStructure, originEntity) {
8497
8615
  var dto = __assign({}, locationStructure);
8498
- dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
8499
- dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
8616
+ dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
8617
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
8500
8618
  delete dto.label;
8501
8619
  return dto;
8502
8620
  };
@@ -8505,7 +8623,7 @@
8505
8623
  /*{CA:FILE_CONTENTS:START}*/
8506
8624
  /*{CA:FILE_CONTENTS:END}*/
8507
8625
 
8508
- var moment$b = moment$k;
8626
+ var moment$d = moment$k;
8509
8627
  var Location = /** @class */ (function () {
8510
8628
  function Location() {
8511
8629
  }
@@ -8513,10 +8631,10 @@
8513
8631
  /*{CA:CLASS_ATTRIBUTES:END}*/
8514
8632
  Location.fromDto = function (locationDto, originEntity) {
8515
8633
  var model = __assign({}, locationDto);
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();
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();
8520
8638
  var lookupSeparator = " - ";
8521
8639
  var displayFields = [
8522
8640
  "id",
@@ -8539,10 +8657,10 @@
8539
8657
  };
8540
8658
  Location.toDto = function (location, originEntity) {
8541
8659
  var dto = __assign({}, location);
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();
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();
8546
8664
  delete dto.label;
8547
8665
  if (originEntity !== "LocationStructure" && dto.locationStructure)
8548
8666
  dto.locationStructure = LocationStructure.toDto(dto.locationStructure, "Location");
@@ -8553,7 +8671,7 @@
8553
8671
  /*{CA:FILE_CONTENTS:START}*/
8554
8672
  /*{CA:FILE_CONTENTS:END}*/
8555
8673
 
8556
- var moment$c = moment$k;
8674
+ var moment$e = moment$k;
8557
8675
  var E030Ban = /** @class */ (function () {
8558
8676
  function E030Ban() {
8559
8677
  this.excluido = false;
@@ -8564,8 +8682,8 @@
8564
8682
  /*{CA:CLASS_ATTRIBUTES:END}*/
8565
8683
  E030Ban.fromDto = function (e030BanDto, originEntity) {
8566
8684
  var model = __assign({}, e030BanDto);
8567
- model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
8568
- model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
8685
+ model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
8686
+ model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
8569
8687
  var lookupSeparator = " - ";
8570
8688
  var displayFields = [
8571
8689
  "id",
@@ -8585,8 +8703,8 @@
8585
8703
  };
8586
8704
  E030Ban.toDto = function (e030Ban, originEntity) {
8587
8705
  var dto = __assign({}, e030Ban);
8588
- dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
8589
- dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
8706
+ dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
8707
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
8590
8708
  delete dto.label;
8591
8709
  return dto;
8592
8710
  };
@@ -8595,7 +8713,7 @@
8595
8713
  /*{CA:FILE_CONTENTS:START}*/
8596
8714
  /*{CA:FILE_CONTENTS:END}*/
8597
8715
 
8598
- var moment$d = moment$k;
8716
+ var moment$f = moment$k;
8599
8717
  var E030Age = /** @class */ (function () {
8600
8718
  function E030Age() {
8601
8719
  this.excluido = false;
@@ -8606,8 +8724,8 @@
8606
8724
  /*{CA:CLASS_ATTRIBUTES:END}*/
8607
8725
  E030Age.fromDto = function (e030AgeDto, originEntity) {
8608
8726
  var model = __assign({}, e030AgeDto);
8609
- model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
8610
- model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
8727
+ model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
8728
+ model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
8611
8729
  var lookupSeparator = " - ";
8612
8730
  var displayFields = [
8613
8731
  "id",
@@ -8628,8 +8746,8 @@
8628
8746
  };
8629
8747
  E030Age.toDto = function (e030Age, originEntity) {
8630
8748
  var dto = __assign({}, e030Age);
8631
- dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
8632
- dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
8749
+ dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
8750
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
8633
8751
  delete dto.label;
8634
8752
  if (originEntity !== "E030Ban" && dto.e030ban)
8635
8753
  dto.e030ban = E030Ban.toDto(dto.e030ban, "E030Age");
@@ -8640,7 +8758,7 @@
8640
8758
  /*{CA:FILE_CONTENTS:START}*/
8641
8759
  /*{CA:FILE_CONTENTS:END}*/
8642
8760
 
8643
- var moment$e = moment$k;
8761
+ var moment$g = moment$k;
8644
8762
  var E044Ccu = /** @class */ (function () {
8645
8763
  function E044Ccu() {
8646
8764
  }
@@ -8648,8 +8766,8 @@
8648
8766
  /*{CA:CLASS_ATTRIBUTES:END}*/
8649
8767
  E044Ccu.fromDto = function (e044CcuDto, originEntity) {
8650
8768
  var model = __assign({}, e044CcuDto);
8651
- model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
8652
- model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
8769
+ model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
8770
+ model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
8653
8771
  var lookupSeparator = " - ";
8654
8772
  var displayFields = [
8655
8773
  "id",
@@ -8668,8 +8786,8 @@
8668
8786
  };
8669
8787
  E044Ccu.toDto = function (e044Ccu, originEntity) {
8670
8788
  var dto = __assign({}, e044Ccu);
8671
- dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
8672
- dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
8789
+ dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
8790
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
8673
8791
  delete dto.label;
8674
8792
  return dto;
8675
8793
  };
@@ -8678,7 +8796,7 @@
8678
8796
  /*{CA:FILE_CONTENTS:START}*/
8679
8797
  /*{CA:FILE_CONTENTS:END}*/
8680
8798
 
8681
- var moment$f = moment$k;
8799
+ var moment$h = moment$k;
8682
8800
  var E070Emp = /** @class */ (function () {
8683
8801
  function E070Emp() {
8684
8802
  this.excluido = false;
@@ -8689,8 +8807,8 @@
8689
8807
  /*{CA:CLASS_ATTRIBUTES:END}*/
8690
8808
  E070Emp.fromDto = function (e070EmpDto, originEntity) {
8691
8809
  var model = __assign({}, e070EmpDto);
8692
- model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
8693
- model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
8810
+ model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
8811
+ model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
8694
8812
  var lookupSeparator = " - ";
8695
8813
  var displayFields = [
8696
8814
  "id",
@@ -8709,8 +8827,8 @@
8709
8827
  };
8710
8828
  E070Emp.toDto = function (e070Emp, originEntity) {
8711
8829
  var dto = __assign({}, e070Emp);
8712
- dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
8713
- dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
8830
+ dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
8831
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
8714
8832
  delete dto.label;
8715
8833
  return dto;
8716
8834
  };
@@ -8719,7 +8837,7 @@
8719
8837
  /*{CA:FILE_CONTENTS:START}*/
8720
8838
  /*{CA:FILE_CONTENTS:END}*/
8721
8839
 
8722
- var moment$g = moment$k;
8840
+ var moment$i = moment$k;
8723
8841
  var E070Fil = /** @class */ (function () {
8724
8842
  function E070Fil() {
8725
8843
  this.deleted = false;
@@ -8730,8 +8848,8 @@
8730
8848
  /*{CA:CLASS_ATTRIBUTES:END}*/
8731
8849
  E070Fil.fromDto = function (e070FilDto, originEntity) {
8732
8850
  var model = __assign({}, e070FilDto);
8733
- model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
8734
- model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
8851
+ model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
8852
+ model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
8735
8853
  var lookupSeparator = " - ";
8736
8854
  var displayFields = [
8737
8855
  "id",
@@ -8748,15 +8866,19 @@
8748
8866
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
8749
8867
  if (originEntity !== "E070Emp" && model.e070emp)
8750
8868
  model.e070emp = E070Emp.fromDto(model.e070emp, "E070Fil");
8869
+ if (originEntity !== "CompanyBranchIndications" && model.companyBranchIndications)
8870
+ model.companyBranchIndications = CompanyBranchIndications.fromDto(model.companyBranchIndications, "E070Fil");
8751
8871
  return model;
8752
8872
  };
8753
8873
  E070Fil.toDto = function (e070Fil, originEntity) {
8754
8874
  var dto = __assign({}, e070Fil);
8755
- dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
8756
- dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
8875
+ dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
8876
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
8757
8877
  delete dto.label;
8758
8878
  if (originEntity !== "E070Emp" && dto.e070emp)
8759
8879
  dto.e070emp = E070Emp.toDto(dto.e070emp, "E070Fil");
8880
+ if (originEntity !== "CompanyBranchIndications" && dto.companyBranchIndications)
8881
+ dto.companyBranchIndications = CompanyBranchIndications.toDto(dto.companyBranchIndications, "E070Fil");
8760
8882
  return dto;
8761
8883
  };
8762
8884
  return E070Fil;
@@ -8764,96 +8886,6 @@
8764
8886
  /*{CA:FILE_CONTENTS:START}*/
8765
8887
  /*{CA:FILE_CONTENTS:END}*/
8766
8888
 
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
-
8857
8889
  /*{CA:PACKAGE_IMPORTS:START}*/
8858
8890
  var moment$j = moment$k; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8859
8891
  /*{CA:PROJECT_IMPORTS:START}*/
@@ -9119,6 +9151,8 @@
9119
9151
  exports.Characteristics = Characteristics;
9120
9152
  exports.CharacteristicsService = CharacteristicsService;
9121
9153
  exports.CollectiveHistoryFiltersService = CollectiveHistoryFiltersService;
9154
+ exports.CompanyBranchIndications = CompanyBranchIndications;
9155
+ exports.CompanyBranchIndicationsService = CompanyBranchIndicationsService;
9122
9156
  exports.CompanyBranchLookupModule = CompanyBranchLookupModule;
9123
9157
  exports.CompanyBranchLookupService = CompanyBranchLookupService;
9124
9158
  exports.CompanyLinkedLocation = CompanyLinkedLocation;
@@ -9177,7 +9211,6 @@
9177
9211
  exports.LocationLookupService = LocationLookupService;
9178
9212
  exports.LocationService = LocationService;
9179
9213
  exports.PersonLookupModule = PersonLookupModule;
9180
- exports.PersonLookupService = PersonLookupService;
9181
9214
  exports.PisPasepTaxationLookupComponent = PisPasepTaxationLookupComponent;
9182
9215
  exports.PisPasepTaxationLookupModule = PisPasepTaxationLookupModule;
9183
9216
  exports.PisPasepTaxationLookupService = PisPasepTaxationLookupService;
@@ -9224,34 +9257,36 @@
9224
9257
  exports.fallback = fallback;
9225
9258
  exports.ɵa = PisPasepTaxationService;
9226
9259
  exports.ɵb = EntityService;
9227
- exports.ɵba = CalculationDefinitionModule;
9228
- exports.ɵbb = EmploymentRelationshipModule;
9229
- exports.ɵbc = WageTypePayrollModule;
9230
- exports.ɵbd = CompanyLinkedLocationModule;
9260
+ exports.ɵba = SyndicateModule;
9261
+ exports.ɵbb = VariableEntryModule;
9262
+ exports.ɵbc = CalculationDefinitionModule;
9263
+ exports.ɵbd = EmploymentRelationshipModule;
9264
+ exports.ɵbe = WageTypePayrollModule;
9265
+ exports.ɵbf = CompanyLinkedLocationModule;
9231
9266
  exports.ɵc = SharedModule;
9232
9267
  exports.ɵd = CompanyBranchLookupComponent;
9233
9268
  exports.ɵe = PersonLookupComponent;
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;
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;
9255
9290
 
9256
9291
  Object.defineProperty(exports, '__esModule', { value: true });
9257
9292