@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.
@@ -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.employmentRelationshipSearchSubject.next({
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.employmentRelationshipLookupSubject.next([]);
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
- return new angularComponents.FormField(__assign(__assign({}, this.employeeService.getFormField(false, null, (_a = this.filtersByCompany) === null || _a === void 0 ? void 0 : _a.employeeFilter)), { onLookupRequest: function (event) { return _this.onEmployeeLookupRequest(event); }, onSearchRequest: function (event) { return _this.onEmployeeSearchRequest(event); } }));
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.onEmployeeSearchRequest(event, null, (_a = this.filtersByCompany) === null || _a === void 0 ? void 0 : _a.employeeFilter);
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.onEmployeeLookupRequest(value, null, (_a = this.filtersByCompany) === null || _a === void 0 ? void 0 : _a.employeeFilter);
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 () {