This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(filter): Refactor filter and toolbar (consumer) to accommodate th…
…e Planner UI
- Loading branch information
1 parent
4b3a333
commit 1679135
Showing
19 changed files
with
454 additions
and
345 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
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,15 +1,18 @@ | ||
import { Filter } from './filter'; | ||
import { FilterField } from './filter-field'; | ||
import { FilterQuery } from './filter-query'; | ||
|
||
/* | ||
* A filter event containing: | ||
* | ||
* appliedFilters - List of the currently applied filters | ||
* field - A filterable field | ||
* query - A filterable query | ||
* value - The filter input field value | ||
*/ | ||
export class FilterEvent { | ||
appliedFilters?: Filter[]; | ||
field?: FilterField; | ||
field: FilterField; | ||
query: FilterQuery; | ||
value?: string; | ||
} |
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,16 +1,18 @@ | ||
import { FilterQuery } from './filter-query'; | ||
|
||
/* | ||
* A filterable field containing: | ||
* | ||
* id - Optional unique Id for the filter field, useful for comparisons | ||
* title - The title to display for the filter field | ||
* placeholder - Optional text to display when no filter value has been entered | ||
* filterType - The filter input field type (any html input type, or 'select' for a select box) | ||
* filterValues - Optional list of values used when filterType is 'select' | ||
* queries - Optional list of filter queries used when filterType is 'select' | ||
* title - The title to display for the filter field | ||
* type - The filter input field type (any html input type, or 'select' for a select box) | ||
*/ | ||
export class FilterField { | ||
id?: string; | ||
title: string; | ||
placeholder?: string; | ||
filterType: string; | ||
filterValues?: string[]; | ||
queries?: FilterQuery[]; | ||
title: string; | ||
type: string; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* A filterable field containing: | ||
* | ||
* id - Optional unique Id for the filter field, useful for comparisons | ||
* value - Filter query value used when filterType is 'select' | ||
*/ | ||
export class FilterQuery { | ||
id?: string; | ||
value: string; | ||
} |
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.