UNPKG

@hmcts/media-viewer

Version:
60 lines 2.53 kB
import { SearchType } from './../toolbar-event.service'; import { RedactRectangle } from './redaction-search.model'; import { ElementRef, OnDestroy, OnInit } from '@angular/core'; import { ToolbarButtonVisibilityService } from '../toolbar-button-visibility.service'; import { ToolbarEventService } from '../toolbar-event.service'; import { Store } from '@ngrx/store'; import * as fromStore from '../../store/reducers/reducers'; import { HighlightCreateService } from '../../annotations/annotation-set/annotation-create/highlight-create/highlight-create.service'; import * as i0 from "@angular/core"; export declare class RedactionSearchBarComponent implements OnInit, OnDestroy { private store; readonly toolbarButtons: ToolbarButtonVisibilityService; readonly toolbarEvents: ToolbarEventService; readonly highlightService: HighlightCreateService; findInput: ElementRef<HTMLInputElement>; highlightAll: boolean; matchCase: boolean; wholeWord: boolean; resultsText: string; searchText: string; resultCount: number; redactElements: RedactRectangle[]; pageHeight: number; pageWidth: number; zoom: number; rotate: number; allPages: object; redactAll: boolean; openSearchModal: boolean; redactAllInProgress: boolean; redactAllText?: string; searchType: SearchType; inProgressText: string; titleText: string; private subscription; private documentId; advancedSearchVisible: boolean; constructor(store: Store<fromStore.State>, toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService); ngOnInit(): void; ngOnDestroy(): void; onWindowKeyDown(e: KeyboardEvent): void; search(reset?: boolean): void; modeText(): void; private saveRedaction; private existInRedactElements; onCloseSearchModal(): void; private setSearchResultsCount; private redactAllSearched; private redactAllSearchedTick; private cleanUpPostSave; private CreateRedactAllText; onEscapeKeyPress(e: KeyboardEvent): void; onEnterKeyPress(e: KeyboardEvent): void; toggleSearchBar(): void; private getRectangles; private createTextRectangle; static ɵfac: i0.ɵɵFactoryDeclaration<RedactionSearchBarComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<RedactionSearchBarComponent, "mv-redaction-search-bar", never, {}, {}, never, never, false, never>; } //# sourceMappingURL=redaction-search-bar.component.d.ts.map