@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.
- package/bundles/maplander-components.umd.js +7 -14
- package/bundles/maplander-components.umd.js.map +1 -1
- package/bundles/maplander-components.umd.min.js +1 -1
- package/bundles/maplander-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/filters/filters.component.js +8 -14
- package/esm5/lib/components/filters/filters.component.js +8 -15
- package/fesm2015/maplander-components.js +7 -13
- package/fesm2015/maplander-components.js.map +1 -1
- package/fesm5/maplander-components.js +7 -14
- package/fesm5/maplander-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
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);
|