added first BUND filters

This commit is contained in:
2026-07-24 02:02:52 +02:00
parent 10ceb60dce
commit d5cfb784c8
4 changed files with 16 additions and 10 deletions
@@ -27,5 +27,9 @@ export class PersonProjectsComponent {
path: 'eu',
label: 'EU-Projekte',
},
{
path: 'bund',
label: 'Bund-Projekte',
},
];
}
@@ -17,7 +17,7 @@ import { RouterModule } from '@angular/router';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { QueryParamPaginatorComponent } from '../query-param-paginator/query-param-paginator.component';
import { projectQueryParamKeys } from '../../../resolvers/dfg-projects.resolver';
import { dfgProjectQueryParamKeys } from '../../../resolvers/dfg-projects.resolver';
import { toSignal } from '@angular/core/rxjs-interop';
import { ActivatedRoute, Router } from '@angular/router';
import { DfgPersonSummary } from '../../../api/model/dfgPersonSummary';
@@ -52,7 +52,7 @@ export class DfgProjectTableComponent implements OnInit {
initialValue: this.activatedRoute.snapshot.queryParamMap,
});
queryParamKeys = projectQueryParamKeys;
queryParamKeys = dfgProjectQueryParamKeys;
total = computed(() => this.page().total ?? 0);
columns: GenericColumn<DfgProjectSummary>[] = [];
@@ -8,7 +8,7 @@ import { MatCardModule } from '@angular/material/card';
import { MatTabsModule } from '@angular/material/tabs';
import { ProjectFilterComponent } from '../project-filters/project-filters.component';
import { DfgProjectTableComponent } from '../dfg-project-table/dfg-project-table.component';
import { projectQueryParamKeys } from '../../../resolvers/dfg-projects.resolver';
import { dfgProjectQueryParamKeys } from '../../../resolvers/dfg-projects.resolver';
@Component({
selector: 'app-dfg-projects',
@@ -29,7 +29,7 @@ export class DfgProjectsComponent {
selectedTopicsPage = input.required<TopicPageV2>();
readonly dfgQueryParamKeys = projectQueryParamKeys;
readonly dfgQueryParamKeys = dfgProjectQueryParamKeys;
constructor(
private readonly router: Router,
@@ -45,15 +45,17 @@ import {
SelectedFiltersComponent,
} from '../selected-filters/selected-filters.component';
import { projectQueryParamKeys } from '../../../resolvers/dfg-projects.resolver';
import { dfgProjectQueryParamKeys } from '../../../resolvers/dfg-projects.resolver';
import { euProjectQueryParamKeys } from '../../../resolvers/eu-cordis-projects.resolver';
import { SearchableAuthorSelectComponent } from '../searchable-author-select/searchable-author-select.component';
import { bundProjectQueryParamKeys } from '../../../resolvers/bund-projects.resolver';
type ProjectFilterMode = 'dfg' | 'eu';
type ProjectFilterMode = 'dfg' | 'eu' | 'bund';
type ProjectQueryParamKeys =
| typeof projectQueryParamKeys
| typeof euProjectQueryParamKeys;
| typeof dfgProjectQueryParamKeys
| typeof euProjectQueryParamKeys
| typeof bundProjectQueryParamKeys;
@Component({
selector: 'app-project-filters',
@@ -81,11 +83,11 @@ export class ProjectFilterComponent {
filterMode = input<ProjectFilterMode>('dfg');
queryParamKeys = input<ProjectQueryParamKeys>(projectQueryParamKeys);
queryParamKeys = input<ProjectQueryParamKeys>(dfgProjectQueryParamKeys);
selectedDfgInstitutionsPage = input<DfgInstitutionSummaryPage>();
selectedEuInstitutionsPage = input<EuCordisOrganizationSelectorPage>();
selectedBundInstitutionsPage = input<DfgInstitutionSummaryPage>();
selectedDfgAuthorsPage = input<DfgPersonSummaryPage>();
selectedEuAuthorsPage = input<AuthorPage>();