@maplander/components 0.21.1 → 0.21.2

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.
@@ -2831,7 +2831,6 @@
2831
2831
  */
2832
2832
  var FiltersComponent = /** @class */ (function () {
2833
2833
  function FiltersComponent(_config, _render, _ref, _service, _formBuilder, _converter) {
2834
- var _this = this;
2835
2834
  this._config = _config;
2836
2835
  this._render = _render;
2837
2836
  this._ref = _ref;
@@ -2842,24 +2841,18 @@
2842
2841
  this.changeFilter = new core.EventEmitter();
2843
2842
  this.isOPI = this._config || false;
2844
2843
  this._subscription = new rxjs.Subscription();
2845
- /** @type {?} */
2846
- var items = [];
2847
- ConstantsComponents.PropertyTypeList.forEach((/**
2844
+ this.propertyTypeList = ConstantsComponents.PropertyTypeList.map((/**
2848
2845
  * @param {?} item
2849
2846
  * @return {?}
2850
2847
  */
2851
- function (item) {
2852
- if (_this.newFilters) {
2853
- if (item.value !== types.PropertyTypeEnum.ROOM && item.value !== types.PropertyTypeEnum.RESIDENTIAL) {
2854
- items.push(item);
2848
+ function (item) { return (__assign({}, item)); }));
2849
+ if (this.newFilters) {
2850
+ for (var i = 0; i < this.propertyTypeList.length; i++) {
2851
+ if (this.propertyTypeList[i].value === types.PropertyTypeEnum.ROOM || this.propertyTypeList[i].value === types.PropertyTypeEnum.RESIDENTIAL) {
2852
+ this.propertyTypeList.splice(i, 1);
2855
2853
  }
2856
2854
  }
2857
- }));
2858
- this.propertyTypeList = items.map((/**
2859
- * @param {?} item
2860
- * @return {?}
2861
- */
2862
- function (item) { return (__assign({}, item)); }));
2855
+ }
2863
2856
  this.bedroomsList = Object.assign([], ConstantsComponents.BedroomList);
2864
2857
  this.bathroomsList = Object.assign([], ConstantsComponents.BathroomList);
2865
2858
  this.parkingPlacesList = Object.assign([], ConstantsComponents.ParkingSpacesList);