mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-3401] refactoring - different way to call the facet parsers * [ADF-3401] fix duplicate search call * [ADF-3401] add new fields and buckets from the response - If a facet is already displayed, just update the bucket count, else add the new facet to the responseFields - this way any existing filters are preserved, the collapsed state is preserved, facet selection is preserved * [ADF-3401] reset & clear all selections buttons * [ADF-3401] delete facets that are not in the response - for better UX, prevent deletion of items from the category where there is a selected item - clean-up reset buttons * [ADF-3401] apply filters to the newly created items * [ADF-3401] update tests * [ADF-3401] fix after rebase * [ADF-3401] Code refactoring * [ADF-3401] show count value inside tooltip * [ADF-3401] translatable strings * [ADF-3401] move 'Clear all selections' button to search-chip-list * [ADF-3401] option to configure having a reset button for filters * [ADF-3401] code cleanup and improvements after review * Update lib/content-services/search/components/search-filter/search-filter.component.ts Co-Authored-By: suzanadirla <dirla.silvia.suzana@gmail.com> * [ADF-3401] Better namings * fix failing e2e tests on search radio * [ADF-3401] add documentation for search resetButton
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2019 Alfresco Software, Ltd.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
import { FilterQuery } from './filter-query.interface';
|
|
import { FacetQuery } from './facet-query.interface';
|
|
import { FacetField } from './facet-field.interface';
|
|
import { SearchCategory } from './search-category.interface';
|
|
import { SearchSortingDefinition } from './search-sorting-definition.interface';
|
|
|
|
export interface SearchConfiguration {
|
|
include?: string[];
|
|
fields?: string[];
|
|
categories: SearchCategory[];
|
|
filterQueries?: FilterQuery[];
|
|
filterWithContains?: boolean;
|
|
resetButton?: boolean;
|
|
facetQueries?: {
|
|
label?: string;
|
|
pageSize?: number;
|
|
expanded?: boolean;
|
|
mincount?: number;
|
|
queries: FacetQuery[];
|
|
};
|
|
facetFields?: {
|
|
expanded?: boolean;
|
|
fields: FacetField[];
|
|
};
|
|
facetIntervals?: {
|
|
expanded?: boolean;
|
|
intervals: FacetField[];
|
|
};
|
|
sorting?: {
|
|
options: SearchSortingDefinition[];
|
|
defaults: SearchSortingDefinition[];
|
|
};
|
|
}
|