All files / src/app/shared/components/filter/filter-navigation-sidebar filter-navigation-sidebar.component.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 252x   2x               2x   7x         7x         7x    
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
 
import { FilterNavigation } from 'ish-core/models/filter-navigation/filter-navigation.model';
import { URLFormParams } from 'ish-core/utils/url-form-params';
 
@Component({
  selector: 'ish-filter-navigation-sidebar',
  templateUrl: './filter-navigation-sidebar.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FilterNavigationSidebarComponent {
  @Input({ required: true }) filterNavigation: FilterNavigation;
  @Output() applyFilter = new EventEmitter<{ searchParameter: URLFormParams }>();
 
  /**
   * keeps the collapsed state of sub components when changing filters
   */
  collapsedElements: { [id: string]: boolean } = {};
 
  /**
   * keeps the show all state of sub components when changing filters
   */
  showAllElements: { [id: string]: boolean } = {};
}