[ACS-4125] Add support for the tags search facet (#8390)

* ACS-4125 Added changes needed to display facets for tags

* ACS-4125 Removed logs

* Add reordering of buckets and facets through configuration + unit tests

---------

Co-authored-by: Aleksander Sklorz <Aleksander.Sklorz@hyland.com>
This commit is contained in:
Thomas Hunter
2023-03-17 09:17:17 +00:00
committed by GitHub
parent 4180d9f69a
commit 1b2575b2db
5 changed files with 147 additions and 3 deletions

View File

@@ -40,4 +40,22 @@ export interface FacetFieldSettings {
allowUpdateOnChange?: boolean;
/* allow the user show/hide default search actions */
hideDefaultAction?: boolean;
/* a number to compare to other facets to determine the order in which they will appear */
facetOrder?: number;
/* the field used to sort the buckets */
bucketSortBy?: FacetBucketSortBy;
/* the direction in which the buckets are ordered */
bucketSortDirection?: FacetBucketSortDirection;
}
// eslint-disable-next-line no-shadow
export enum FacetBucketSortBy {
LABEL = 'LABEL',
COUNT = 'COUNT'
}
// eslint-disable-next-line no-shadow
export enum FacetBucketSortDirection {
ASCENDING = 'ASCENDING',
DESCENDING = 'DESCENDING'
}