@maplander/components 0.21.39 → 0.21.41
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 +12 -2
- 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 +13 -3
- package/esm5/lib/components/filters/filters.component.js +13 -3
- package/fesm2015/maplander-components.js +12 -2
- package/fesm2015/maplander-components.js.map +1 -1
- package/fesm5/maplander-components.js +12 -2
- package/fesm5/maplander-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -3111,6 +3111,18 @@ var FiltersComponent = /** @class */ (function () {
|
|
|
3111
3111
|
if (this.surfaceUnitSelected === 1) {
|
|
3112
3112
|
filterToSearch.mainArea = filterToSearch.mainArea * this.METERS_TO_SQ;
|
|
3113
3113
|
}
|
|
3114
|
+
if (!this.filtersForm.controls['minPrice'].value) {
|
|
3115
|
+
this.filtersForm.controls['minPrice'].reset(0);
|
|
3116
|
+
this.filtersForm.patchValue({
|
|
3117
|
+
minPrice: 0
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3120
|
+
if (!this.filtersForm.controls['minPrice'].value) {
|
|
3121
|
+
this.filtersForm.controls['minPrice'].reset(0);
|
|
3122
|
+
this.filtersForm.patchValue({
|
|
3123
|
+
maxPrice: 0
|
|
3124
|
+
});
|
|
3125
|
+
}
|
|
3114
3126
|
this.changeFilter.emit({ type: 'filter', payload: { filter: this.filter, value: filterToSearch } });
|
|
3115
3127
|
};
|
|
3116
3128
|
/**
|
|
@@ -3387,7 +3399,6 @@ var FiltersComponent = /** @class */ (function () {
|
|
|
3387
3399
|
*/
|
|
3388
3400
|
function (value) {
|
|
3389
3401
|
if (!value) {
|
|
3390
|
-
_this.filtersForm.controls['maxPrice'].reset(0);
|
|
3391
3402
|
return;
|
|
3392
3403
|
}
|
|
3393
3404
|
_this.setPrices((/** @type {?} */ (value.toString())));
|
|
@@ -3398,7 +3409,6 @@ var FiltersComponent = /** @class */ (function () {
|
|
|
3398
3409
|
*/
|
|
3399
3410
|
function (value) {
|
|
3400
3411
|
if (!value) {
|
|
3401
|
-
_this.filtersForm.controls['minPrice'].reset(0);
|
|
3402
3412
|
return;
|
|
3403
3413
|
}
|
|
3404
3414
|
_this.maxPriceList = Object.assign([], _this._tmpMaxPriceList);
|