import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2 } from "@angular/core"; import { MatLegacyMenuTrigger as MatMenuTrigger } from "@angular/material/legacy-menu"; import { StarkMinimapItemProperties } from "./item-properties.intf"; import { AbstractStarkUiComponent } from "@nationalbankbelgium/stark-ui/src/internal-common"; import * as i0 from "@angular/core"; export type StarkMinimapComponentMode = "compact"; /** * Component to display a minimap which permits to toggle the visibility of passed elements. * The minimap shows the label of the elements to display with a checkbox to enable/disable the visibility */ export declare class StarkMinimapComponent extends AbstractStarkUiComponent implements AfterViewInit, OnDestroy { private cdRef; /** * Array of {@link StarkMinimapItemProperties} objects which define the items to display in the minimap. */ items: StarkMinimapItemProperties[]; /** * Array of names of the items that are visible. */ visibleItems: string[]; /** * the minimap mode we want to display */ mode?: StarkMinimapComponentMode; /** * Output that will emit the selected element to be shown/hidden */ readonly showHideItem: EventEmitter; menuTrigger: MatMenuTrigger; /** * Class constructor * @param renderer - Angular `Renderer2` wrapper for DOM manipulations. * @param elementRef - Reference to the DOM element where this component is attached to. * @param cdRef - Reference to the change detector attached to this component. */ constructor(renderer: Renderer2, elementRef: ElementRef, cdRef: ChangeDetectorRef); /** * Component lifecycle hook */ ngAfterViewInit(): void; /** * Component lifecycle hook */ ngOnDestroy(): void; /** * Return true/false if the given item is already visible or if the priority (if specified) for such item is not "hidden" * Otherwise, the item is considered to be hidden by default * @param item - The item whose visibility will be checked */ isItemVisible(item: StarkMinimapItemProperties): boolean; /** * Prevents click event from propagating (/closing the menu) and emits an event * @param event - The event that was triggered by default (and needs to be stopped) * @param item - The item that was clicked */ handleCheckboxClick(event: Event, item: StarkMinimapItemProperties): void; /** * @ignore */ trackItemFn(_index: number, item: StarkMinimapItemProperties): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }