-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(filter): date-range filter available for any field (#2307)
and refactoring of filter-component closes #2292
- Loading branch information
Showing
11 changed files
with
70 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/core/basic-datatypes/date/date-range-filter/date-range-filter.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
<ng-container *ngFor="let filter of filterSelections"> | ||
<app-list-filter | ||
*ngIf="filter.name !== 'date'" | ||
[filterConfig]="filter" | ||
[selectedOptions]="filter.selectedOptionValues" | ||
(selectedOptionChange)="filterOptionSelected(filter, $event)" | ||
angulartics2On="click" | ||
[angularticsCategory]="entityType?.ENTITY_TYPE" | ||
[angularticsAction]="'filter_' + urlPath" | ||
[angularticsLabel]="filter.label" | ||
> | ||
</app-list-filter> | ||
|
||
<app-date-range-filter | ||
*ngIf="filter.name === 'date'" | ||
[filterConfig]="filter" | ||
(selectedOptionChange)="filterOptionSelected(filter, $event)" | ||
> | ||
</app-date-range-filter> | ||
</ng-container> | ||
@for (filter of filterSelections; track filter.name) { | ||
<ng-container | ||
*ngComponentOutlet="filter.component; inputs: { filterConfig: filter }" | ||
/> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.