Updated projects to use query params components
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -4,19 +4,11 @@
|
||||
<mat-divider />
|
||||
|
||||
<div style="padding: 0 1rem">
|
||||
<mat-form-field style="width: 100%">
|
||||
<mat-label>Suche nach Namen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="search"
|
||||
[debounceTime]="300"
|
||||
[(debouncedValue)]="urlSearchTerm"
|
||||
(debouncedValueChange)="handleSearchTermChange($event)" />
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
<button matIconButton matSuffix (click)="clearSearchTerm()">
|
||||
<mat-icon>clear</mat-icon>
|
||||
</button>
|
||||
</mat-form-field>
|
||||
<app-query-param-input
|
||||
label="Suche nach Namen"
|
||||
[debounceTime]="400"
|
||||
queryParamKey="search">
|
||||
</app-query-param-input>
|
||||
|
||||
<div
|
||||
style="
|
||||
@@ -34,16 +26,13 @@
|
||||
</mat-chip-listbox>
|
||||
|
||||
<div class="sorting">
|
||||
<select (change)="handleSortFieldChange($event)" [value]="urlSortBy()">
|
||||
<option value="title">Name</option>
|
||||
</select>
|
||||
<app-query-param-selector
|
||||
[options]="sortingOptions"
|
||||
queryParamKey="sort_by" />
|
||||
|
||||
<select
|
||||
(change)="handleSortOrderChange($event)"
|
||||
[value]="urlSortingOrder()">
|
||||
<option value="desc">Absteigend</option>
|
||||
<option value="asc">Aufsteigend</option>
|
||||
</select>
|
||||
<app-query-param-selector
|
||||
[options]="sortingDirectionOptions"
|
||||
queryParamKey="sorting_order" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -102,11 +91,7 @@
|
||||
|
||||
<mat-divider />
|
||||
|
||||
<mat-paginator
|
||||
[length]="fundingProjectPageValue.total"
|
||||
[pageSize]="fundingProjectPageValue.size"
|
||||
[pageSizeOptions]="[10, 20, 50]"
|
||||
[pageIndex]="fundingProjectPageValue.page"
|
||||
(page)="handlePageChange($event)">
|
||||
</mat-paginator>
|
||||
<app-query-param-paginator
|
||||
[total]="fundingProjectPageValue.total || 0"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user