diff --git a/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html b/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html index 634903ce4..661f7fb47 100644 --- a/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html +++ b/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html @@ -1,6 +1,8 @@ diff --git a/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts b/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts index 388ea2722..d5bb87d07 100644 --- a/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +++ b/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts @@ -40,6 +40,10 @@ export class FilterDropdownComponent implements OnInit { catchError(() => of([])) ) as Observable + selectedDateRange$ = this.selected$.pipe( + map((selectedDateRange) => selectedDateRange as DateRange) + ) as Observable + onSelectedValues(values: unknown[]) { this.fieldsService .buildFiltersFromFieldValues({ [this.fieldName]: values as FieldValue[] }) diff --git a/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.html b/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.html index 999830e5c..1ae135436 100644 --- a/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.html +++ b/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.html @@ -15,7 +15,15 @@ - - + + diff --git a/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts b/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts index 97d36d4ce..14f6c88ae 100644 --- a/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts +++ b/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts @@ -32,6 +32,8 @@ import { OverlayContainer } from '@angular/cdk/overlay' }) export class DateRangeDropdownComponent implements AfterViewChecked { @Input() title: string + @Input() startDate: Date + @Input() endDate: Date @Output() startDateChange = new EventEmitter() @Output() endDateChange = new EventEmitter()