@senior-gestao-pessoas/hcm-entity-lookups 2.0.0 → 2.0.1
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.
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +2 -10
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js.map +1 -1
- package/esm2015/lookups/employee-lookup/employee-lookup.component.js +1 -6
- package/esm2015/lookups/employee-lookup/employee-lookup.service.js +3 -5
- package/esm5/lookups/employee-lookup/employee-lookup.component.js +1 -6
- package/esm5/lookups/employee-lookup/employee-lookup.service.js +3 -6
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +2 -9
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +2 -10
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/lookups/employee-lookup/employee-lookup.component.d.ts +0 -1
- package/lookups/employee-lookup/employee-lookup.service.d.ts +0 -1
- package/package.json +1 -1
- package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
|
@@ -2085,7 +2085,6 @@
|
|
|
2085
2085
|
this.employeeSearchSubject = new rxjs.Subject();
|
|
2086
2086
|
this.employeeLookupSubject = new rxjs.Subject();
|
|
2087
2087
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
2088
|
-
this.onlyDismissed = false;
|
|
2089
2088
|
}
|
|
2090
2089
|
EmployeeLookupService.prototype.updateSuggestions = function (value) {
|
|
2091
2090
|
var _a, _b;
|
|
@@ -2136,14 +2135,12 @@
|
|
|
2136
2135
|
});
|
|
2137
2136
|
};
|
|
2138
2137
|
EmployeeLookupService.prototype.getEmployeeSearchFields = function () {
|
|
2139
|
-
var _this = this;
|
|
2140
2138
|
return __spread(this.getEmployeeLookupFields(), [
|
|
2141
2139
|
new angularComponents.FormField({
|
|
2142
2140
|
label: this.translate
|
|
2143
2141
|
.instant(this.configService.getTranslationPrefix() + ".employee_situation"),
|
|
2144
2142
|
options: this.employeeService.situationOptions,
|
|
2145
|
-
defaultValue:
|
|
2146
|
-
visible: function () { return !_this.onlyDismissed; },
|
|
2143
|
+
defaultValue: SituationEmployee.WORKING,
|
|
2147
2144
|
name: "situation",
|
|
2148
2145
|
type: angularComponents.FieldType.Enum,
|
|
2149
2146
|
}),
|
|
@@ -2260,7 +2257,7 @@
|
|
|
2260
2257
|
EmployeeLookupService.prototype.getFilters = function (filterData, companyIds, situationEmployee) {
|
|
2261
2258
|
var filters = [];
|
|
2262
2259
|
var nowDate = moment$k().format('YYYY-MM-DD');
|
|
2263
|
-
if (situationEmployee == SituationEmployee.WORKING
|
|
2260
|
+
if (situationEmployee == SituationEmployee.WORKING) {
|
|
2264
2261
|
filters.push("(dismissalDate is null or dismissalDate gt '" + nowDate + "')");
|
|
2265
2262
|
}
|
|
2266
2263
|
else if (situationEmployee == SituationEmployee.DISMISSED) {
|
|
@@ -2290,12 +2287,10 @@
|
|
|
2290
2287
|
_this.configService = configService;
|
|
2291
2288
|
_this.structerService = structerService;
|
|
2292
2289
|
_this.employeeLookupService = employeeLookupService;
|
|
2293
|
-
_this.onlyDismissed = false;
|
|
2294
2290
|
_this.controlName = "employee";
|
|
2295
2291
|
return _this;
|
|
2296
2292
|
}
|
|
2297
2293
|
EmployeeLookupComponent.prototype.ngOnInit = function () {
|
|
2298
|
-
this.employeeLookupService.onlyDismissed = this.onlyDismissed;
|
|
2299
2294
|
this.employeeSearchFields = this.employeeLookupService.getEmployeeSearchFields();
|
|
2300
2295
|
this.employeeSearchGridFields = this.employeeLookupService.getEmployeeSearchFields();
|
|
2301
2296
|
};
|
|
@@ -2323,9 +2318,6 @@
|
|
|
2323
2318
|
{ type: StructureFilterService },
|
|
2324
2319
|
{ type: EmployeeLookupService }
|
|
2325
2320
|
]; };
|
|
2326
|
-
__decorate([
|
|
2327
|
-
core.Input()
|
|
2328
|
-
], EmployeeLookupComponent.prototype, "onlyDismissed", void 0);
|
|
2329
2321
|
EmployeeLookupComponent = __decorate([
|
|
2330
2322
|
core.Component({
|
|
2331
2323
|
selector: "fnd-employee-lookup",
|