@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.
@@ -2819,7 +2819,6 @@ function CurrencyFilterValidator(controlName, controlName2) {
2819
2819
  */
2820
2820
  var FiltersComponent = /** @class */ (function () {
2821
2821
  function FiltersComponent(_config, _render, _ref, _service, _formBuilder, _converter) {
2822
- var _this = this;
2823
2822
  this._config = _config;
2824
2823
  this._render = _render;
2825
2824
  this._ref = _ref;
@@ -2830,24 +2829,18 @@ var FiltersComponent = /** @class */ (function () {
2830
2829
  this.changeFilter = new EventEmitter();
2831
2830
  this.isOPI = this._config || false;
2832
2831
  this._subscription = new Subscription();
2833
- /** @type {?} */
2834
- var items = [];
2835
- ConstantsComponents.PropertyTypeList.forEach((/**
2832
+ this.propertyTypeList = ConstantsComponents.PropertyTypeList.map((/**
2836
2833
  * @param {?} item
2837
2834
  * @return {?}
2838
2835
  */
2839
- function (item) {
2840
- if (_this.newFilters) {
2841
- if (item.value !== PropertyTypeEnum.ROOM && item.value !== PropertyTypeEnum.RESIDENTIAL) {
2842
- items.push(item);
2836
+ function (item) { return (__assign({}, item)); }));
2837
+ if (this.newFilters) {
2838
+ for (var i = 0; i < this.propertyTypeList.length; i++) {
2839
+ if (this.propertyTypeList[i].value === PropertyTypeEnum.ROOM || this.propertyTypeList[i].value === PropertyTypeEnum.RESIDENTIAL) {
2840
+ this.propertyTypeList.splice(i, 1);
2843
2841
  }
2844
2842
  }
2845
- }));
2846
- this.propertyTypeList = items.map((/**
2847
- * @param {?} item
2848
- * @return {?}
2849
- */
2850
- function (item) { return (__assign({}, item)); }));
2843
+ }
2851
2844
  this.bedroomsList = Object.assign([], ConstantsComponents.BedroomList);
2852
2845
  this.bathroomsList = Object.assign([], ConstantsComponents.BathroomList);
2853
2846
  this.parkingPlacesList = Object.assign([], ConstantsComponents.ParkingSpacesList);