From e913026f53873f175e1104bc1a497c5fe850f3e1 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Wed, 23 Jul 2025 10:58:34 -0500 Subject: [PATCH] changes to mobile version --- .../search-modal/search-modal.component.html | 412 +++--------------- .../search-modal/search-modal.component.ts | 8 +- 2 files changed, 69 insertions(+), 351 deletions(-) diff --git a/bizmatch/src/app/components/search-modal/search-modal.component.html b/bizmatch/src/app/components/search-modal/search-modal.component.html index a142c91..1332ffc 100644 --- a/bizmatch/src/app/components/search-modal/search-modal.component.html +++ b/bizmatch/src/app/components/search-modal/search-modal.component.html @@ -25,9 +25,7 @@
- @if(criteria){
- @if(criteria.criteriaType==='businessListings') {
@@ -68,9 +66,9 @@
- + - - +
@@ -78,21 +76,21 @@
- - +
- + - - +
@@ -101,63 +99,36 @@ type="text" id="title" [(ngModel)]="criteria.title" - (ngModelChange)="onCriteriaChange()" + (ngModelChange)="debouncedSearch()" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="e.g. Restaurant" />
-
- @for(tob of selectOptions.typesOfBusiness; track tob) { -
- - -
- } -
+
-
-
- - -
-
- - -
-
- - -
-
+
@@ -166,7 +137,7 @@ type="number" id="numberEmployees-from" [(ngModel)]="criteria.minNumberEmployees" - (ngModelChange)="onCriteriaChange()" + (ngModelChange)="debouncedSearch()" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-1/2 p-2.5" placeholder="From" /> @@ -175,7 +146,7 @@ type="number" id="numberEmployees-to" [(ngModel)]="criteria.maxNumberEmployees" - (ngModelChange)="onCriteriaChange()" + (ngModelChange)="debouncedSearch()" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-1/2 p-2.5" placeholder="To" /> @@ -188,7 +159,7 @@ type="number" id="establishedSince-From" [(ngModel)]="criteria.establishedSince" - (ngModelChange)="onCriteriaChange()" + (ngModelChange)="debouncedSearch()" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-1/2 p-2.5" placeholder="YYYY" /> @@ -197,7 +168,7 @@ type="number" id="establishedSince-To" [(ngModel)]="criteria.establishedUntil" - (ngModelChange)="onCriteriaChange()" + (ngModelChange)="debouncedSearch()" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-1/2 p-2.5" placeholder="YYYY" /> @@ -209,165 +180,50 @@ type="text" id="brokername" [(ngModel)]="criteria.brokerName" - (ngModelChange)="onCriteriaChange()" + (ngModelChange)="debouncedSearch()" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="e.g. Brokers Invest" />
- - - - - } + +
+ +
+ + State: {{ criteria.state }} + + + City: {{ criteria.city.name }} + + + Price: {{ criteria.minPrice || 'Any' }} - {{ criteria.maxPrice || 'Any' }} + + + Revenue: {{ criteria.minRevenue || 'Any' }} - {{ criteria.maxRevenue || 'Any' }} + + + Cashflow: {{ criteria.minCashFlow || 'Any' }} - {{ criteria.maxCashFlow || 'Any' }} + + + Categories: {{ criteria.types.join(', ') }} + + + Property Type: {{ getSelectedPropertyTypeName() }} + + + Employees: {{ criteria.minNumberEmployees || 'Any' }} - {{ criteria.maxNumberEmployees || 'Any' }} + + + Established: {{ criteria.establishedSince || 'Any' }} - {{ criteria.establishedUntil || 'Any' }} + + + Broker: {{ criteria.brokerName }} +
- }
+
- City: {{ criteria.city }} + City: {{ criteria.city.name }} Price: {{ criteria.minPrice || 'Any' }} - {{ criteria.maxPrice || 'Any' }} @@ -582,137 +438,5 @@ />
- - - - } diff --git a/bizmatch/src/app/components/search-modal/search-modal.component.ts b/bizmatch/src/app/components/search-modal/search-modal.component.ts index 2b36b78..d421da1 100644 --- a/bizmatch/src/app/components/search-modal/search-modal.component.ts +++ b/bizmatch/src/app/components/search-modal/search-modal.component.ts @@ -260,20 +260,14 @@ export class SearchModalComponent { } } clearFilter() { - //if (this.criteria.criteriaType === 'businessListings') { resetBusinessListingCriteria(this.criteria); - /* } else if (this.criteria.criteriaType === 'commercialPropertyListings') { - resetCommercialPropertyListingCriteria(this.criteria); - } else { - resetUserListingCriteria(this.criteria); - } */ + this.searchService.search(this.criteria); } close() { this.modalService.reject(this.backupCriteria); } onCheckboxChange(checkbox: string, value: boolean) { - // Deaktivieren Sie alle Checkboxes (this.criteria).realEstateChecked = false; (this.criteria).leasedLocation = false; (this.criteria).franchiseResale = false;