TSK-1404 Improve sprint filter (#3164)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-05-11 14:26:17 +07:00
committed by GitHub
parent 2e6181acf1
commit bbf81ada7c
11 changed files with 339 additions and 74 deletions
+12 -2
View File
@@ -49,9 +49,19 @@ import type {
/**
* @public
*/
export interface KeyFilter {
export interface KeyFilterPreset {
_class: Ref<Class<Doc>>
key: string
attribute?: AnyAttribute
component: AnyComponent
label?: IntlString
icon?: Asset | AnySvelteComponent | undefined
}
/**
* @public
*/
export interface KeyFilter extends KeyFilterPreset {
attribute: AnyAttribute
component: AnyComponent
label: IntlString
@@ -102,7 +112,7 @@ export interface FilteredView extends Preference {
* @public
*/
export interface ClassFilters extends Class<Doc> {
filters: (KeyFilter | string)[]
filters: (KeyFilterPreset | string)[]
ignoreKeys?: string[]
// Ignore attributes not specified in the "filters" array