@senior-gestao-pessoas/hcm-entity-lookups 2.0.2 → 2.0.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 (25) hide show
  1. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +10 -10
  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/index.d.ts +1 -0
  6. package/esm2015/core/index.js +2 -1
  7. package/esm2015/lookups/calculation-definition-lookup/calculation-definition-lookup.component.js +3 -2
  8. package/esm2015/lookups/calculation-definition-lookup/calculation-definition-lookup.service.js +2 -2
  9. package/esm2015/lookups/variable-entry-lookup/variable-entry-lookup.component.js +3 -2
  10. package/esm2015/lookups/variable-entry-lookup/variable-entry-lookup.service.js +2 -2
  11. package/esm5/core/index.js +2 -1
  12. package/esm5/lookups/calculation-definition-lookup/calculation-definition-lookup.component.js +3 -2
  13. package/esm5/lookups/calculation-definition-lookup/calculation-definition-lookup.service.js +2 -2
  14. package/esm5/lookups/variable-entry-lookup/variable-entry-lookup.component.js +3 -2
  15. package/esm5/lookups/variable-entry-lookup/variable-entry-lookup.service.js +2 -2
  16. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +1 -1
  17. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  18. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +1 -1
  19. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  20. package/lookups/calculation-definition-lookup/calculation-definition-lookup.component.d.ts +3 -2
  21. package/lookups/calculation-definition-lookup/calculation-definition-lookup.service.d.ts +1 -1
  22. package/lookups/variable-entry-lookup/variable-entry-lookup.component.d.ts +2 -1
  23. package/lookups/variable-entry-lookup/variable-entry-lookup.service.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
@@ -1960,12 +1960,12 @@
1960
1960
  return CostCenterLookupModule;
1961
1961
  }());
1962
1962
 
1963
- var SituationEmployee;
1963
+
1964
1964
  (function (SituationEmployee) {
1965
1965
  SituationEmployee["WORKING"] = "WORKING";
1966
1966
  SituationEmployee["DISMISSED"] = "DISMISSED";
1967
1967
  SituationEmployee["EVERYONE"] = "EVERYONE";
1968
- })(SituationEmployee || (SituationEmployee = {}));
1968
+ })(exports.SituationEmployee || (exports.SituationEmployee = {}));
1969
1969
 
1970
1970
  var EmployeeService = /** @class */ (function (_super) {
1971
1971
  __extends(EmployeeService, _super);
@@ -2000,15 +2000,15 @@
2000
2000
  _this.situationOptions = [
2001
2001
  {
2002
2002
  label: _this.translate.instant(_this.configService.getTranslationPrefix() + ".resignation_situation_type_working"),
2003
- value: SituationEmployee.WORKING,
2003
+ value: exports.SituationEmployee.WORKING,
2004
2004
  },
2005
2005
  {
2006
2006
  label: _this.translate.instant(_this.configService.getTranslationPrefix() + ".resignation_situation_type_dismissed"),
2007
- value: SituationEmployee.DISMISSED,
2007
+ value: exports.SituationEmployee.DISMISSED,
2008
2008
  },
2009
2009
  {
2010
2010
  label: _this.translate.instant(_this.configService.getTranslationPrefix() + ".resignation_situation_type_all"),
2011
- value: SituationEmployee.EVERYONE,
2011
+ value: exports.SituationEmployee.EVERYONE,
2012
2012
  },
2013
2013
  ];
2014
2014
  _this.getLabelEmployeeRequest = function (list, displayFields, isDynamicForm) {
@@ -2140,7 +2140,7 @@
2140
2140
  label: this.translate
2141
2141
  .instant(this.configService.getTranslationPrefix() + ".employee_situation"),
2142
2142
  options: this.employeeService.situationOptions,
2143
- defaultValue: SituationEmployee.WORKING,
2143
+ defaultValue: exports.SituationEmployee.WORKING,
2144
2144
  name: "situation",
2145
2145
  type: angularComponents.FieldType.Enum,
2146
2146
  }),
@@ -2208,8 +2208,8 @@
2208
2208
  EmployeeLookupService.prototype.setSituationToEmployee = function (dismissalDate) {
2209
2209
  var nowDate = moment$k().format('YYYY-MM-DD');
2210
2210
  return (dismissalDate > nowDate || !dismissalDate)
2211
- ? SituationEmployee.WORKING
2212
- : SituationEmployee.DISMISSED;
2211
+ ? exports.SituationEmployee.WORKING
2212
+ : exports.SituationEmployee.DISMISSED;
2213
2213
  };
2214
2214
  EmployeeLookupService.prototype.getLabelForMaping = function (item) {
2215
2215
  var _this = this;
@@ -2257,10 +2257,10 @@
2257
2257
  EmployeeLookupService.prototype.getFilters = function (filterData, companyIds, situationEmployee) {
2258
2258
  var filters = [];
2259
2259
  var nowDate = moment$k().format('YYYY-MM-DD');
2260
- if (situationEmployee == SituationEmployee.WORKING) {
2260
+ if (situationEmployee == exports.SituationEmployee.WORKING) {
2261
2261
  filters.push("(dismissalDate is null or dismissalDate gt '" + nowDate + "')");
2262
2262
  }
2263
- else if (situationEmployee == SituationEmployee.DISMISSED) {
2263
+ else if (situationEmployee == exports.SituationEmployee.DISMISSED) {
2264
2264
  filters.push("(dismissalDate is not null and dismissalDate le '" + nowDate + "')");
2265
2265
  }
2266
2266
  (companyIds === null || companyIds === void 0 ? void 0 : companyIds.length) && filters.push("(employer.id in (" + companyIds.map(function (id) { return "'" + id + "'"; }) + "))");