@senior-gestao-pessoas/hcm-advanced-filter-general 4.2.2 → 4.2.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.
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.js +8 -5
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-hcm-advanced-filter-general.umd.min.js.map +1 -1
- package/esm2015/lib/advanced-filter/advanced-filter.component.js +9 -6
- package/esm5/lib/advanced-filter/advanced-filter.component.js +9 -6
- package/fesm2015/senior-gestao-pessoas-hcm-advanced-filter-general.js +8 -5
- package/fesm2015/senior-gestao-pessoas-hcm-advanced-filter-general.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-advanced-filter-general.js +8 -5
- package/fesm5/senior-gestao-pessoas-hcm-advanced-filter-general.js.map +1 -1
- package/package.json +1 -1
|
@@ -2237,7 +2237,7 @@
|
|
|
2237
2237
|
else {
|
|
2238
2238
|
var lookupDto = __assign(__assign({}, this.defaultLookupDto), { entity: "employmentRelationship", referenceDate: moment$2().format("YYYY-MM-DD") });
|
|
2239
2239
|
this.structureFilterService.showMessageToCompanyWithoutStructure(lookupDto, this.localeOptions);
|
|
2240
|
-
this.employmentRelationshipService.
|
|
2240
|
+
this.employmentRelationshipService.lookupServiceConfig.searchSubject.next({
|
|
2241
2241
|
gridData: [],
|
|
2242
2242
|
totalRecords: 0,
|
|
2243
2243
|
});
|
|
@@ -2252,7 +2252,7 @@
|
|
|
2252
2252
|
else {
|
|
2253
2253
|
var lookupDto = __assign(__assign({}, this.defaultLookupDto), { entity: "employmentRelationship", referenceDate: moment$2().format("YYYY-MM-DD") });
|
|
2254
2254
|
this.structureFilterService.showMessageToCompanyWithoutStructure(lookupDto, this.localeOptions);
|
|
2255
|
-
this.employmentRelationshipService.
|
|
2255
|
+
this.employmentRelationshipService.lookupServiceConfig.lookupSubject.next([]);
|
|
2256
2256
|
}
|
|
2257
2257
|
};
|
|
2258
2258
|
/**
|
|
@@ -2261,15 +2261,18 @@
|
|
|
2261
2261
|
AdvancedFilterComponent.prototype.createEmployeeFormField = function () {
|
|
2262
2262
|
var _this = this;
|
|
2263
2263
|
var _a;
|
|
2264
|
-
|
|
2264
|
+
this.employeeService.lookupServiceConfig.filters.additionalFilter = (_a = this.filtersByCompany) === null || _a === void 0 ? void 0 : _a.employeeFilter;
|
|
2265
|
+
return new angularComponents.FormField(__assign(__assign({}, this.employeeService._getFormField()), { onLookupRequest: function (event) { return _this.onEmployeeLookupRequest(event); }, onSearchRequest: function (event) { return _this.onEmployeeSearchRequest(event); } }));
|
|
2265
2266
|
};
|
|
2266
2267
|
AdvancedFilterComponent.prototype.onEmployeeSearchRequest = function (event) {
|
|
2267
2268
|
var _a;
|
|
2268
|
-
this.employeeService.
|
|
2269
|
+
this.employeeService.lookupServiceConfig.filters.additionalFilter = (_a = this.filtersByCompany) === null || _a === void 0 ? void 0 : _a.employeeFilter;
|
|
2270
|
+
this.employeeService.onEmployeeSearchRequest(event);
|
|
2269
2271
|
};
|
|
2270
2272
|
AdvancedFilterComponent.prototype.onEmployeeLookupRequest = function (value) {
|
|
2271
2273
|
var _a;
|
|
2272
|
-
this.employeeService.
|
|
2274
|
+
this.employeeService.lookupServiceConfig.filters.additionalFilter = (_a = this.filtersByCompany) === null || _a === void 0 ? void 0 : _a.employeeFilter;
|
|
2275
|
+
this.employeeService.onEmployeeLookupRequest(value);
|
|
2273
2276
|
};
|
|
2274
2277
|
AdvancedFilterComponent.prototype.onOpen = function () {
|
|
2275
2278
|
return __awaiter(this, void 0, void 0, function () {
|