ngx-render-material-forms 1.8.8 → 1.8.9

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.
@@ -3519,13 +3519,15 @@ class AddOnProductsComponent {
3519
3519
  });
3520
3520
  }
3521
3521
  handleDropdownFilter() {
3522
- var _a, _b, _c, _d, _e;
3523
- if (this.form.controls.dropdownLevel1.value !== '' || this.form.controls.searchProductName.value !== '') {
3524
- this.searchQuery = (_a = this.form.controls.searchProductName) === null || _a === void 0 ? void 0 : _a.value;
3525
- this.levelOneId = (_b = this.form.controls.dropdownLevel1.value) === null || _b === void 0 ? void 0 : _b.id;
3526
- this.levelTwoId = (_c = this.form.controls.dropdownLevel2.value) === null || _c === void 0 ? void 0 : _c.id;
3527
- this.levelThreeId = (_d = this.form.controls.dropdownLevel3.value) === null || _d === void 0 ? void 0 : _d.id;
3528
- this.levelFourId = (_e = this.form.controls.dropdownLevel4.value) === null || _e === void 0 ? void 0 : _e.id;
3522
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3523
+ const searchQuery = (_b = (_a = this.form.controls.searchProductName) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim(); // Trim to remove blank spaces
3524
+ const levelOneId = (_d = (_c = this.form.controls.dropdownLevel1) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.id;
3525
+ if ((searchQuery && searchQuery !== '') || (levelOneId && levelOneId !== null && levelOneId !== undefined)) {
3526
+ this.searchQuery = (_e = this.form.controls.searchProductName) === null || _e === void 0 ? void 0 : _e.value;
3527
+ this.levelOneId = (_f = this.form.controls.dropdownLevel1.value) === null || _f === void 0 ? void 0 : _f.id;
3528
+ this.levelTwoId = (_g = this.form.controls.dropdownLevel2.value) === null || _g === void 0 ? void 0 : _g.id;
3529
+ this.levelThreeId = (_h = this.form.controls.dropdownLevel3.value) === null || _h === void 0 ? void 0 : _h.id;
3530
+ this.levelFourId = (_j = this.form.controls.dropdownLevel4.value) === null || _j === void 0 ? void 0 : _j.id;
3529
3531
  this.getProducts(false);
3530
3532
  }
3531
3533
  }
@@ -4256,7 +4258,7 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
4256
4258
  No products found. Please add some products.
4257
4259
  </ng-container>
4258
4260
  <ng-container *ngIf="showNewProductPicker && isCustomerCountryFiltered">
4259
- No Product found with selected Customeer country.
4261
+ No Product found with selected Customer country.
4260
4262
  </ng-container>
4261
4263
  </div>
4262
4264
  </ng-template>
@@ -4398,7 +4400,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
4398
4400
  No products found. Please add some products.
4399
4401
  </ng-container>
4400
4402
  <ng-container *ngIf="showNewProductPicker && isCustomerCountryFiltered">
4401
- No Product found with selected Customeer country.
4403
+ No Product found with selected Customer country.
4402
4404
  </ng-container>
4403
4405
  </div>
4404
4406
  </ng-template>