mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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
37 lines
1.2 KiB
TypeScript
37 lines
1.2 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 { Component, ViewEncapsulation, Input } from '@angular/core';
|
|
import { SearchFilterComponent } from '../../components/search-filter/search-filter.component';
|
|
|
|
@Component({
|
|
selector: 'adf-search-chip-list',
|
|
templateUrl: './search-chip-list.component.html',
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: { class: 'adf-search-chip-list' }
|
|
})
|
|
export class SearchChipListComponent {
|
|
|
|
/** Search filter to supply the data for the chips. */
|
|
@Input()
|
|
searchFilter: SearchFilterComponent;
|
|
|
|
/** Flag used to enable the display of a clear-all-filters button. */
|
|
@Input()
|
|
clearAll: boolean = false;
|
|
}
|