enhance filter layout and integrate component year range slider
This commit is contained in:
+28
-56
@@ -72,29 +72,22 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="weight-row filter-row pub-type-row" style="display: block">
|
||||
<div class="filter-fields">
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
style="width: 100%; margin-bottom: -1.25em">
|
||||
class="filter-field"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-icon matPrefix>article</mat-icon>
|
||||
<mat-label>Art der Work</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
[ngModel]="selectedPubTypes()"
|
||||
(ngModelChange)="onPubTypesChange($event)">
|
||||
<div class="pub-type-search">
|
||||
<mat-icon
|
||||
class="search-icon"
|
||||
style="
|
||||
margin-left: 16px;
|
||||
margin-right: 8px;
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
"
|
||||
>search</mat-icon
|
||||
>
|
||||
<mat-icon class="search-icon">search</mat-icon>
|
||||
<input
|
||||
matInput
|
||||
placeholder="Suchen..."
|
||||
style="flex: 1; outline: none; border: none; padding: 12px 0"
|
||||
[ngModel]="pubTypeSearchTerm()"
|
||||
(ngModelChange)="pubTypeSearchTerm.set($event)"
|
||||
(keydown)="onPubTypeKeydown($event)"
|
||||
@@ -116,12 +109,12 @@
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="weight-row filter-row keyword-operator-row"
|
||||
style="display: block">
|
||||
<mat-form-field appearance="outline" style="width: 100%">
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="filter-field"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-icon matPrefix>link</mat-icon>
|
||||
<mat-label>Keyword-Verknüpfung</mat-label>
|
||||
<mat-select
|
||||
[ngModel]="keywordOperator()"
|
||||
@@ -133,12 +126,12 @@
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="weight-row filter-row career-stage-row"
|
||||
style="display: block">
|
||||
<mat-form-field appearance="outline" style="width: 100%">
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="filter-field"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-icon matPrefix>trending_up</mat-icon>
|
||||
<mat-label>Karrierestufe</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
@@ -151,12 +144,12 @@
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="weight-row filter-row company-filter-row"
|
||||
style="display: block">
|
||||
<mat-form-field appearance="outline" style="width: 100%">
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="filter-field"
|
||||
subscriptSizing="dynamic">
|
||||
<mat-icon matPrefix>business</mat-icon>
|
||||
<mat-label>Unternehmen</mat-label>
|
||||
<mat-select
|
||||
[ngModel]="companyStatus()"
|
||||
@@ -168,36 +161,15 @@
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<div class="weight-row filter-row timespan-row">
|
||||
<div class="weight-label">
|
||||
<mat-icon class="icon-small">date_range</mat-icon>
|
||||
<span>Zeitraum</span>
|
||||
</div>
|
||||
|
||||
<div class="slider-container">
|
||||
<div class="slider-labels timespan-range-label">
|
||||
<span>{{ timespanFrom() }} – {{ timespanTo() }}</span>
|
||||
</div>
|
||||
<mat-slider
|
||||
class="timespan-slider"
|
||||
[min]="minYear"
|
||||
[max]="maxYear"
|
||||
[step]="1"
|
||||
discrete>
|
||||
<input
|
||||
matSliderStartThumb
|
||||
[value]="timespanFrom()"
|
||||
(valueChange)="timespanFrom.set($event)"
|
||||
(dragEnd)="onTimespanChange()" />
|
||||
<input
|
||||
matSliderEndThumb
|
||||
[value]="timespanTo()"
|
||||
(valueChange)="timespanTo.set($event)"
|
||||
(dragEnd)="onTimespanChange()" />
|
||||
</mat-slider>
|
||||
</div>
|
||||
<app-year-range-slider
|
||||
class="filter-field filter-field-year"
|
||||
[minYear]="minYear"
|
||||
[maxYear]="maxYear"
|
||||
[(startYear)]="timespanFrom"
|
||||
[(endYear)]="timespanTo"
|
||||
(startYearChange)="onTimespanChange()"
|
||||
(endYearChange)="onTimespanChange()" />
|
||||
</div>
|
||||
</section>
|
||||
</app-weights-sliders>
|
||||
|
||||
+28
-22
@@ -122,37 +122,43 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* divider between filter rows — not before the first one */
|
||||
::ng-deep .filter-section .filter-row + .filter-row {
|
||||
margin-top: 0.5rem;
|
||||
padding-top: 0.5rem;
|
||||
border-top: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08));
|
||||
}
|
||||
|
||||
::ng-deep .company-filter-row {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
TIMESPAN
|
||||
============================================================ */
|
||||
::ng-deep .timespan-range-label {
|
||||
justify-content: center !important;
|
||||
font-weight: 500;
|
||||
color: var(--sg-text-primary) !important;
|
||||
}
|
||||
|
||||
::ng-deep .timespan-slider {
|
||||
.filter-fields {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.filter-field {
|
||||
flex: 1 1 220px;
|
||||
min-width: 200px;
|
||||
|
||||
mat-icon[matPrefix] {
|
||||
margin-right: 0.4rem;
|
||||
color: var(--sg-text-secondary, rgba(0, 0, 0, 0.54));
|
||||
}
|
||||
}
|
||||
|
||||
.filter-field-year {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
::ng-deep .pub-type-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
background: white;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0.4rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,7 +7,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
@@ -21,6 +20,7 @@ import {
|
||||
WeightsSlidersValue,
|
||||
} from '../../../../shared/ui/weights-sliders/weights-sliders.component';
|
||||
import { QueryParamPaginatorComponent } from '../../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { YearRangeSliderComponent } from '../../../../shared/ui/year-range-slider/year-range-slider.component';
|
||||
|
||||
import {
|
||||
KeywordToAuthorRequest,
|
||||
@@ -40,13 +40,13 @@ import { SearchResultsStateService } from '../search-results-state.service';
|
||||
MatCardModule,
|
||||
MatCheckboxModule,
|
||||
MatIconModule,
|
||||
MatSliderModule,
|
||||
FormsModule,
|
||||
MatSelectModule,
|
||||
MatInputModule,
|
||||
MatFormFieldModule,
|
||||
QueryParamPaginatorComponent,
|
||||
WeightsSlidersComponent,
|
||||
YearRangeSliderComponent,
|
||||
],
|
||||
templateUrl: './persons-results.component.html',
|
||||
styleUrl: './persons-results.component.scss',
|
||||
|
||||
Reference in New Issue
Block a user