67 lines
2.0 KiB
HTML
67 lines
2.0 KiB
HTML
<div class="card-search">
|
|
<div class="card-search-filter">
|
|
@if (withSearch()) {
|
|
<app-query-param-input
|
|
[label]="searchLabel()"
|
|
[debounceTime]="400"
|
|
[queryParamKey]="searchQueryParamKey()"
|
|
style="width: 100%" />
|
|
}
|
|
@if (sortingOptions() && sortingOptions()!.length > 0) {
|
|
<app-query-param-selector
|
|
[options]="sortingOptions()!"
|
|
[queryParamKey]="sortByQueryParamKey()"
|
|
[label]="sortByLabel()" />
|
|
}
|
|
|
|
@if (sortingDirectionOptions() && sortingDirectionOptions()!.length > 0) {
|
|
<app-query-param-selector
|
|
[options]="sortingDirectionOptions()!"
|
|
[queryParamKey]="sortingDirectionQueryParamKey()"
|
|
[label]="sortingDirectionLabel()" />
|
|
}
|
|
</div>
|
|
@if (additionalFiltersTmp()) {
|
|
<ng-container [ngTemplateOutlet]="additionalFiltersTmp()"></ng-container>
|
|
}
|
|
@if (observers() && observers()!.length > 0) {
|
|
<app-selected-filters [observers]="observers()!" />
|
|
}
|
|
|
|
<mat-divider />
|
|
@let pageValue = page();
|
|
<div class="card-search-results">
|
|
@if (loading()) {
|
|
<div class="loading-overlay">
|
|
<mat-spinner diameter="36"></mat-spinner>
|
|
</div>
|
|
}
|
|
@if (pageValue.elements && pageValue.elements.length > 0) {
|
|
<div class="cards" [style.--card-min-width.px]="cardMinWidth()">
|
|
@for (element of pageValue.elements; track $index) {
|
|
<ng-container
|
|
[ngTemplateOutlet]="cardTmp()"
|
|
[ngTemplateOutletContext]="{ $implicit: element }">
|
|
</ng-container>
|
|
}
|
|
</div>
|
|
} @else {
|
|
@if (this.noResultsTmp()) {
|
|
<ng-container [ngTemplateOutlet]="noResultsTmp()"></ng-container>
|
|
} @else {
|
|
<div class="no-results">
|
|
<span>Keine Ergebnisse gefunden.</span>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
@if (pageValue.elements && pageValue.elements.length > 0) {
|
|
<mat-divider />
|
|
}
|
|
<div class="pagination">
|
|
<app-query-param-paginator
|
|
[pageSizeOptions]="[10, 25, 100]"
|
|
[total]="page().total" />
|
|
</div>
|
|
</div>
|