import { EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/core'; import { BreakpointObserverService } from '../../services/break-point-observer.service'; import { Subject } from 'rxjs'; import { CheckboxOption, IconButton, SelectOption } from '@ieeesa-npm/models'; import { ChipOption, FilterOptionType } from '../../models/chip-option.model'; import { FiltersAndOptions } from '../../models/filters-options.model'; import { SelectComponent } from '../../components/select/select.component'; import { SelectOpenedState } from '../../models/select-opened-state.model'; import * as i0 from "@angular/core"; /** * Provides an implementation for group of filter. * @export * @class FilterComponent * @implements {OnDestroy} */ export declare class FilterComponent implements OnDestroy { private breakpointObserverService; private changeDetectorReference; constants: any; arrow: IconButton; check: IconButton; removeIcon: IconButton; isFilterOpened: boolean; selectedCheckboxes: CheckboxOption[]; onFilterToggle: boolean; isFilterActive: boolean; isMobileView: boolean; isApplyButtonDisabled: boolean; filtersAndOptions: Map; destroy$: Subject; recreateCheckboxOptionsControl: CheckboxOption[]; selectComponent: SelectComponent; private filteredTypeOptionsInfo; private selectedFilterOptionType; set filterOptionType(optionType: FilterOptionType); get filterOptionType(): FilterOptionType; optionsType: typeof FilterOptionType; set appliedFilterOptions(options: ChipOption[]); get appliedFilterOptions(): ChipOption[]; filterButton: IconButton; filters: ChipOption[]; canShowSelection: boolean; private selectedFilterOptionsList; selectedFilterDropDownList: SelectOption[]; defaultSelectedFilterDropDownOptions: SelectOption[]; selectedFilterId: string | number; prevSelectedFilterOptionsList: CheckboxOption[]; set selectedFilterOptions(options: CheckboxOption[]); get selectedFilterOptions(): CheckboxOption[]; selectedFilter: EventEmitter; filteredOptions: EventEmitter; removeFilteredOption: EventEmitter; filterDropdownSearch: EventEmitter; constructor(breakpointObserverService: BreakpointObserverService, changeDetectorReference: ChangeDetectorRef); /** * OnFilterSelected receives the selected filter from chip component, emits the selected filter and toggle the isFilterByOptionsVisible state. * @param {ChipOption} type * @memberof FilterComponent */ onFilterSelected(type: ChipOption): void; /** * OnRemovalOfFilteredOption method receives removed chip from chip component and emits the event with removed chip. * @param {ChipOption} option * @memberof FilterComponent */ onRemovalOfFilteredOption(option: ChipOption): void; getListOfSelectedCheckboxes(): FiltersAndOptions[]; /** * OnFilterApply toggles the isFilterByOptionsVisible state, emits the selected filter options and toggles the filter stateO * @memberof FilterComponent */ onFilterApply(): void; /** * SelectedFilterOptions method is called for every selection and deselection of filter option and stores the selected filter options. * @param {FiltersAndOptions[]} values * @memberof FilterComponent */ selectedFilterOptionsInfo(values: CheckboxOption[]): void; /** * OnFilterByIconClick method toggles the isFilterActive value. * @memberof FilterComponent */ onFilterByIconClick(): void; /** * NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed. * @memberof FilterComponent */ ngOnDestroy(): void; /** * OnDropdownSelectionChange() is called for every drop down selection changes and sets selectedFilterOptionsList. * @memberof FilterComponent */ onDropdownSelectionChange(option: SelectOption): void; /** * SetFilterSelectionOnOptionChange() called on every selection and deselection of filter option and sets canShowSelection flag to show or hide the tick mark of selected filter option. * @memberof FilterComponent */ setFilterSelectionOnOptionChange(): void; /** * Emits the filterDropdownSearch event with the searched text value. * @param {string} searchText * @memberof FilterComponent */ onDropdownSearch(searchText: string): void; /** * Emits filterDropdownSearch event to reset the dropdown options to default when the dropdown is closed and sets search term empty. * @param {SelectOpenedState} event * @memberof FilterComponent */ onDropdownOpenedChange(event: SelectOpenedState): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }