import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { GraphicSymbolOption, RecordStream } from '@dvl-fw/core'; import { Store } from '@ngrx/store'; import { DataService } from '../../data-view/shared/data.service'; import { DragDropEvent } from '../../drag-drop'; import { UpdateVisService } from '../../shared/services/update-vis/update-vis.service'; import { ModeType, Vis } from '../../shared/types'; import { SidenavState } from '../../toolbar/shared/store'; /** * Heirarchical record stream type for showing parent-child relationships between record-streams */ interface HeirarchicalRecordStream { recordStream: RecordStream; level: number; } /** * mav-selection-graphic-symbol-type component declaration, responsible for showing graphic-symbol selection options in mav-selection */ export declare class GraphicSymbolTypeComponent implements OnChanges { private updateService; private store; private dataService; /** * Input of active visualization */ activeVis: Vis; /** * Input of mode - add/edit */ mode: ModeType; /** * Output event-emitter of selected record-stream mapping i.e. Map */ recordStreamChange: EventEmitter>>; /** * Available graphic symbol options */ graphicSymbolOptions: GraphicSymbolOption[]; /** * Available heirarchical record streams */ heirarchicalRecordStreams: HeirarchicalRecordStream[]; /** * Mapping of selected record streams i.e. Map */ selectedRecordStreamMapping: Map; /** * css class to be applied to selectable record-streams */ selectionClass: string; /** * Creates an instance of graphic symbol type component. * @param updateService instance of UpdateVisService * @param store instance of Store * @param dataService instance of DataService */ constructor(updateService: UpdateVisService, store: Store, dataService: DataService); /** * on changes life-cycle hook for this component * @param changes The changed properties object */ ngOnChanges(changes: SimpleChanges): void; /** * Sets record streams and makes mappings in edit mode */ setRecordStreams(): void; /** * Callback for when records stream is dropped * @param recordStream dropped record-stream * @param graphicSymbolOption graphic-symbol-option on which the record-stream was dropped */ recordStreamDropped(recordStream: RecordStream, graphicSymbolOption: GraphicSymbolOption): void; /** * Unsets record stream when the cancel button is clicked * @param graphicSymbolOptionId id of the graphic-symbol-option whose record-stream is unset */ unsetRecordStream(graphicSymbolOptionId: string): void; /** * Clears global variables in graphic symbol type component */ clear(): void; /** * Callback for when any drag-drop event takes place * @param event instance of DragDropEvent */ onDragDropEvent(event: DragDropEvent): void; /** * Wrapper for lodash's capitalize in sentence case * @param text provided string * @returns capitalized string */ capitalize(text: string): string; } export {};