@senior-gestao-pessoas/hcm-advanced-filter-general 1.0.2 → 1.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.
@@ -1103,7 +1103,7 @@
1103
1103
  AdvancedFilterDtoConverter.getValueByCondition = function (item) {
1104
1104
  var _a, _b;
1105
1105
  if ((item === null || item === void 0 ? void 0 : item.conditionType) === exports.ConditionType.EQUALS) {
1106
- return item.equals.map(function (value) { return value.id; }).join();
1106
+ return item.equals.map(function (value) { return value.id || value; }).join();
1107
1107
  }
1108
1108
  else {
1109
1109
  return ((_a = item === null || item === void 0 ? void 0 : item.startRange) === null || _a === void 0 ? void 0 : _a.id) + "&" + ((_b = item === null || item === void 0 ? void 0 : item.endRange) === null || _b === void 0 ? void 0 : _b.id);
@@ -1500,8 +1500,7 @@
1500
1500
  });
1501
1501
  }
1502
1502
  else {
1503
- this.advancedFilterEvent.emit(null);
1504
- this.filtersStorageService.removeFilter(this.KEY_STORAGE);
1503
+ this.resetAdvancedFilter();
1505
1504
  }
1506
1505
  };
1507
1506
  AdvancedFilterComponent.prototype.convertEntityToForm = function (data) {
@@ -1517,6 +1516,7 @@
1517
1516
  AdvancedFilterComponent.prototype.resetAdvancedFilter = function () {
1518
1517
  this.filterFields = [];
1519
1518
  this.formGroup.reset();
1519
+ this.entityData = null;
1520
1520
  this.advancedFilterEvent.emit(null);
1521
1521
  this.filtersStorageService.removeFilter(this.KEY_STORAGE);
1522
1522
  };