@maplander/components 0.21.40 → 0.21.42

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.
@@ -2887,6 +2887,7 @@ var FiltersComponent = /** @class */ (function () {
2887
2887
  for (var _b = __values(this.stateOptions), _c = _b.next(); !_c.done; _c = _b.next()) {
2888
2888
  var stateOption = _c.value;
2889
2889
  if (stateOption.name === this._lastState) {
2890
+ this.propertyTotal = stateOption.total;
2890
2891
  this.filter.state = this._lastState;
2891
2892
  this.filtersForm.patchValue({
2892
2893
  state: this._lastState
@@ -3111,6 +3112,18 @@ var FiltersComponent = /** @class */ (function () {
3111
3112
  if (this.surfaceUnitSelected === 1) {
3112
3113
  filterToSearch.mainArea = filterToSearch.mainArea * this.METERS_TO_SQ;
3113
3114
  }
3115
+ if (!this.filtersForm.controls['minPrice'].value) {
3116
+ this.filtersForm.controls['minPrice'].reset(0);
3117
+ this.filtersForm.patchValue({
3118
+ minPrice: 0
3119
+ });
3120
+ }
3121
+ if (!this.filtersForm.controls['minPrice'].value) {
3122
+ this.filtersForm.controls['minPrice'].reset(0);
3123
+ this.filtersForm.patchValue({
3124
+ maxPrice: 0
3125
+ });
3126
+ }
3114
3127
  this.changeFilter.emit({ type: 'filter', payload: { filter: this.filter, value: filterToSearch } });
3115
3128
  };
3116
3129
  /**
@@ -3397,10 +3410,6 @@ var FiltersComponent = /** @class */ (function () {
3397
3410
  */
3398
3411
  function (value) {
3399
3412
  if (!value) {
3400
- _this.filtersForm.controls['minPrice'].reset(0);
3401
- _this.filtersForm.patchValue({
3402
- minPrice: 0
3403
- });
3404
3413
  return;
3405
3414
  }
3406
3415
  _this.maxPriceList = Object.assign([], _this._tmpMaxPriceList);
@@ -3416,10 +3425,6 @@ var FiltersComponent = /** @class */ (function () {
3416
3425
  */
3417
3426
  function (value) {
3418
3427
  if (!value) {
3419
- _this.filtersForm.controls['maxPrice'].reset(0);
3420
- _this.filtersForm.patchValue({
3421
- maxPrice: 0
3422
- });
3423
3428
  return;
3424
3429
  }
3425
3430
  _this.minPriceList = Object.assign([], _this._tmpMinPriceList);