@hmcts/media-viewer 4.2.49-upgrade-angular-22 → 4.2.50-innerhtml-security-update

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2897 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, PipeTransform, QueryList, SimpleChanges } from "@angular/core";
3
- import { BehaviorSubject, Observable, Subject, Subscription } from "rxjs";
4
- import * as i25 from "@ngrx/store";
5
- import { Action } from "@ngrx/store";
6
- import "pdfjs-dist/web/pdf_viewer.mjs";
7
- import "pdfjs-dist/build/pdf.worker";
8
- import "pdfjs-dist/build/pdf.mjs";
9
- import { ArrayDataSource, SelectionModel } from "@angular/cdk/collections";
10
- import * as i28 from "@angular/cdk/tree";
11
- import { FlatTreeControl } from "@angular/cdk/tree";
12
- import * as i29 from "@angular/cdk/drag-drop";
13
- import { CdkDragDrop } from "@angular/cdk/drag-drop";
14
- import * as i6 from "@angular/common";
15
- import { DatePipe } from "@angular/common";
16
- import * as i25$1 from "@angular/common/http";
17
- import * as i10 from "@angular/cdk/overlay";
18
- import { ConnectionPositionPair } from "@angular/cdk/overlay";
19
- import * as i7 from "@angular/forms";
20
- import { FormGroup, UntypedFormControl, UntypedFormGroup } from "@angular/forms";
21
- import * as i8 from "@angular/router";
22
- import * as i12 from "rpx-xui-translation";
23
- import * as i22 from "@angular/cdk/a11y";
24
- import * as i26$1 from "mutable-div";
25
- import * as i27 from "ngx-chips";
26
- import * as i29$1 from "@swimlane/ngx-datatable";
27
- import * as i26 from "@ngrx/effects";
28
- interface User {
29
- forename: string;
30
- surname: string;
31
- email: string;
32
- }
33
- interface ApiPersisted {
34
- id: string;
35
- createdBy: string;
36
- createdByDetails: User;
37
- createdDate: string;
38
- lastModifiedBy: string;
39
- lastModifiedByDetails: User;
40
- lastModifiedDate: string;
41
- }
42
- interface Rectangle extends ApiPersisted {
43
- annotationId: string;
44
- height: number;
45
- width: number;
46
- x: number;
47
- y: number;
48
- }
49
- interface TagsModel {
50
- name: string;
51
- label: string;
52
- color?: string;
53
- id?: string;
54
- }
55
- interface Comment extends ApiPersisted {
56
- annotationId: string;
57
- content: string;
58
- tags: TagsModel[];
59
- page: number;
60
- pages: object;
61
- pageHeight: number;
62
- selected: boolean;
63
- editable: boolean;
64
- }
65
- interface Annotation extends ApiPersisted {
66
- annotationSetId?: string;
67
- annotationId?: string;
68
- page?: number;
69
- color?: string;
70
- comments?: Comment[];
71
- rectangles?: Rectangle[];
72
- type?: string;
73
- tags: TagsModel[];
74
- redactionId?: string;
75
- }
76
- interface AnnotationSet extends ApiPersisted {
77
- documentId: string;
78
- annotations: Annotation[];
79
- }
80
- interface RedactionSearch {
81
- page?: number;
82
- matchedIndex?: number;
83
- matchesCount?: number;
84
- }
85
- interface RedactRectangle {
86
- page?: number;
87
- matchedIndex?: number;
88
- rectangles?: Rectangle[];
89
- }
90
- interface SearchOperation {
91
- searchTerm: string;
92
- highlightAll: boolean;
93
- matchCase: boolean;
94
- wholeWord: boolean;
95
- previous: boolean;
96
- reset: boolean;
97
- }
98
- interface SearchResultsCount {
99
- current: number;
100
- total: number;
101
- isPrevious: boolean;
102
- }
103
- declare enum SearchType {
104
- Redact = "Redact",
105
- Highlight = "Highlight"
106
- }
107
- interface SearchMode {
108
- modeType: SearchType;
109
- isOpen: boolean;
110
- }
111
- declare class ToolbarEventService {
112
- private icpEventService;
113
- readonly highlightModeSubject: BehaviorSubject<boolean>;
114
- readonly highlightToolbarSubject: BehaviorSubject<boolean>;
115
- readonly drawModeSubject: BehaviorSubject<boolean>;
116
- readonly rotateSubject: Subject<number>;
117
- readonly searchSubject: Subject<SearchOperation>;
118
- readonly searchResultsCountSubject: Subject<SearchResultsCount>;
119
- readonly zoomSubject: Subject<number>;
120
- readonly stepZoomSubject: Subject<number>;
121
- readonly zoomValueSubject: BehaviorSubject<number>;
122
- readonly pageCountSubject: Subject<number>;
123
- readonly printSubject: Subject<void>;
124
- readonly downloadSubject: Subject<void>;
125
- readonly setCurrentPageSubject: Subject<number>;
126
- readonly setCurrentPageInputValueSubject: BehaviorSubject<number>;
127
- readonly changePageByDeltaSubject: Subject<number>;
128
- readonly showCommentSummary: BehaviorSubject<boolean>;
129
- readonly grabNDrag: BehaviorSubject<boolean>;
130
- readonly saveRotationSubject: Subject<void>;
131
- readonly redactionMode: BehaviorSubject<boolean>;
132
- readonly redactionPreview: Subject<boolean>;
133
- readonly applyRedactToDocument: Subject<void>;
134
- readonly clearAllRedactMarkers: Subject<void>;
135
- readonly redactWholePage: Subject<void>;
136
- readonly redactionSerachSubject: Subject<RedactionSearch>;
137
- readonly redactAllInProgressSubject: BehaviorSubject<boolean>;
138
- readonly openRedactionSearch: BehaviorSubject<SearchMode>;
139
- readonly sidebarOpen: BehaviorSubject<boolean>;
140
- readonly sidebarOutlineView: BehaviorSubject<boolean>;
141
- readonly searchBarHidden: BehaviorSubject<boolean>;
142
- readonly commentsPanelVisible: BehaviorSubject<boolean>;
143
- /**
144
- * Reset the stateful behaviour subjects
145
- */
146
- reset(): void;
147
- toggleHighlightMode(): void;
148
- toggleDrawMode(): void;
149
- toggleHighlightToolbar(): void;
150
- rotate(angle: number): void;
151
- search(phrase: SearchOperation): void;
152
- getSearchResultsCount(): Observable<SearchResultsCount>;
153
- zoom(value: number): void;
154
- stepZoom(value: number): void;
155
- getZoomValue(): Observable<number>;
156
- getPageCount(): Observable<number>;
157
- print(): void;
158
- download(): void;
159
- setPage(value: number): void;
160
- incrementPage(value: number): void;
161
- getCurrentPageNumber(): Observable<number>;
162
- getShowCommentSummary(): Observable<boolean>;
163
- toggleCommentsSummary(value: boolean): void;
164
- saveRotation(): void;
165
- toggleGrabNDrag(): void;
166
- toggleSideBar(toggle: boolean): void;
167
- toggleSideBarView(toggle: boolean): void;
168
- toggleRedactionMode(): void;
169
- toggleRedactionPreview(viewMode: boolean): void;
170
- unmarkAll(): void;
171
- applyRedactionToDocument(): void;
172
- redactPage(): void;
173
- toggleCommentsPanel(isVisible: boolean): void;
174
- toggleParticipantsList(isVisible: boolean): void;
175
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarEventService, never>;
176
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
177
- }
178
- export declare enum ResponseType {
179
- SUCCESS = "SUCCESS",
180
- FAILURE = "FAILURE",
181
- UNSUPPORTED = "UNSUPPORTED"
182
- }
183
- export interface ExceptionDetail {
184
- httpResponseCode?: string;
185
- message?: string;
186
- }
187
- export declare class ViewerException {
188
- exceptionType?: string;
189
- detail?: ExceptionDetail;
190
- constructor(exceptionType?: string, detail?: ExceptionDetail);
191
- }
192
- export declare class ToolbarButtonVisibilityService {
193
- showPrint: boolean;
194
- showDownload: boolean;
195
- showNavigation: boolean;
196
- showZoom: boolean;
197
- showRotate: boolean;
198
- showPresentationMode: boolean;
199
- showRedact: boolean;
200
- showOpenFile: boolean;
201
- showBookmark: boolean;
202
- showHighlightButton: boolean;
203
- showDrawButton: boolean;
204
- showSearchBar: boolean;
205
- showSidebar: boolean;
206
- showCommentSummary: boolean;
207
- showGrabNDragButton: boolean;
208
- showSaveRotationButton: boolean;
209
- /**
210
- * Reset the visibility of all buttons to false then set the value from the options
211
- */
212
- setup(options: Partial<ToolbarButtonVisibilityService>): void;
213
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarButtonVisibilityService, never>;
214
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
215
- }
216
- interface Outline {
217
- bold: boolean;
218
- color: Uint8ClampedArray;
219
- count: number | undefined;
220
- dest: string | Array<any> | null;
221
- italic: boolean;
222
- items: Outline[];
223
- newWindow: boolean | undefined;
224
- pageNumber?: number;
225
- title: string;
226
- unsafeUrl: string | undefined;
227
- url: string | null;
228
- }
229
- declare class HighlightCreateDirective implements OnInit, OnDestroy {
230
- private element;
231
- private toolbarEvents;
232
- private viewerEvents;
233
- private highlightService;
234
- private store;
235
- pageHeight: number;
236
- pageWidth: number;
237
- zoom: number;
238
- rotate: number;
239
- allPages: object;
240
- private $subscriptions;
241
- ngOnInit(): void;
242
- ngOnDestroy(): void;
243
- private focusWithoutScrolling;
244
- onMouseUp(mouseEvent: MouseEvent): void;
245
- onKeyboardSelectionConfirmed(): void;
246
- private getCurrentPageFromSelection;
247
- private getRectanglesFromSelection;
248
- onPdfViewerClick(event: MouseEvent): void;
249
- private getRectangles;
250
- private getSelectionRectangles;
251
- private createTextRectangle;
252
- private removeEnhancedTextModeStyling;
253
- private setPageProperties;
254
- private processClientRects;
255
- static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateDirective, never>;
256
- static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightCreateDirective, "[mvCreateTextHighlight]", never, {}, {}, never, never, false, never>;
257
- }
258
- declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestroy {
259
- private store;
260
- private icpStore;
261
- private readonly pdfJsWrapperFactory;
262
- private readonly printService;
263
- readonly toolbarEvents: ToolbarEventService;
264
- private readonly viewerEvents;
265
- private icpService;
266
- readonly toolbarButtons: ToolbarButtonVisibilityService;
267
- private readonly icpEventService;
268
- mediaLoadStatus: EventEmitter<ResponseType>;
269
- pdfViewerException: EventEmitter<ViewerException>;
270
- documentTitle: EventEmitter<string>;
271
- downloadUrl: string;
272
- url: string;
273
- downloadFileName: string;
274
- enableAnnotations: boolean;
275
- enableRedactions: boolean;
276
- enableICP: boolean;
277
- annotationSet: AnnotationSet | null;
278
- enableRedactSearch: AnnotationSet | null;
279
- height: string;
280
- pageHeights: any[];
281
- rotation: number;
282
- zoom: number;
283
- caseId: string;
284
- highlightMode: Observable<boolean>;
285
- drawMode: BehaviorSubject<boolean>;
286
- documentOutline: Outline[];
287
- loadingDocument: boolean;
288
- loadingDocumentProgress: number;
289
- errorMessage: string;
290
- hasDifferentPageSize: boolean;
291
- viewerContainer: ElementRef<HTMLDivElement>;
292
- pdfViewer: ElementRef<HTMLDivElement>;
293
- highlightCreateDirective: HighlightCreateDirective;
294
- private pdfWrapper;
295
- private $subscription;
296
- private viewerException;
297
- showCommentsPanel: boolean;
298
- showIcpParticipantsList: boolean;
299
- enableGrabNDrag: boolean;
300
- showSelectionStartCursor: boolean;
301
- selectionStartCursorX: number;
302
- selectionStartCursorY: number;
303
- showSelectionEndCursor: boolean;
304
- selectionEndCursorX: number;
305
- selectionEndCursorY: number;
306
- constructor();
307
- ngAfterContentInit(): Promise<void>;
308
- ngOnChanges(changes: SimpleChanges): Promise<void>;
309
- resetRotation(): void;
310
- ngOnDestroy(): void;
311
- private loadDocument;
312
- private onDocumentLoadProgress;
313
- private onDocumentLoaded;
314
- private onDocumentLoadFailed;
315
- private updatePages;
316
- set searchBarHidden(hidden: boolean);
317
- toggleCommentsSummary(): void;
318
- private rotateDocument;
319
- private initDocumentProgress;
320
- private setZoom;
321
- private stepZoom;
322
- setPageHeights(): void;
323
- calculateZoomValue(zoomValue: any, increment?: number): number;
324
- private goToDestination;
325
- private goToDestinationICP;
326
- getCurrentPageNumber(): number;
327
- onKeyboardTextSelectionConfirmed(): void;
328
- onKeyboardTextSelectionCancelled(): void;
329
- onSelectionStartCursorChanged(position: {
330
- x: number;
331
- y: number;
332
- visible: boolean;
333
- }): void;
334
- onSelectionEndCursorChanged(position: {
335
- x: number;
336
- y: number;
337
- visible: boolean;
338
- }): void;
339
- onViewerContainerFocusIn(event: FocusEvent): void;
340
- static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerComponent, never>;
341
- static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerComponent, "mv-pdf-viewer", never, {
342
- "downloadUrl": {
343
- "alias": "downloadUrl";
344
- "required": false;
345
- };
346
- "url": {
347
- "alias": "url";
348
- "required": false;
349
- };
350
- "downloadFileName": {
351
- "alias": "downloadFileName";
352
- "required": false;
353
- };
354
- "enableAnnotations": {
355
- "alias": "enableAnnotations";
356
- "required": false;
357
- };
358
- "enableRedactions": {
359
- "alias": "enableRedactions";
360
- "required": false;
361
- };
362
- "enableICP": {
363
- "alias": "enableICP";
364
- "required": false;
365
- };
366
- "annotationSet": {
367
- "alias": "annotationSet";
368
- "required": false;
369
- };
370
- "enableRedactSearch": {
371
- "alias": "enableRedactSearch";
372
- "required": false;
373
- };
374
- "height": {
375
- "alias": "height";
376
- "required": false;
377
- };
378
- "caseId": {
379
- "alias": "caseId";
380
- "required": false;
381
- };
382
- "searchBarHidden": {
383
- "alias": "searchBarHidden";
384
- "required": false;
385
- };
386
- }, {
387
- "mediaLoadStatus": "mediaLoadStatus";
388
- "pdfViewerException": "pdfViewerException";
389
- "documentTitle": "documentTitle";
390
- }, never, never, false, never>;
391
- }
392
- interface Bookmark$1 {
393
- id: string;
394
- documentId: string;
395
- name: string;
396
- pageNumber: number;
397
- xCoordinate: number;
398
- yCoordinate: number;
399
- zoom: number;
400
- parent: string;
401
- previous: string;
402
- children: Bookmark$1[];
403
- index: number;
404
- }
405
- interface BookmarkNode {
406
- id: string;
407
- name: string;
408
- children: string[];
409
- }
410
- interface DocumentState {
411
- convertedDocument: {
412
- url: string;
413
- error: string;
414
- };
415
- documentId: string;
416
- pdfPosition: PdfPosition;
417
- pages: {
418
- [id: string]: DocumentPages;
419
- };
420
- hasDifferentPageSize: boolean;
421
- rotation: number;
422
- rotationLoaded: boolean;
423
- loaded: boolean;
424
- loading: boolean;
425
- }
426
- interface DocumentPages {
427
- numberOfPages: number;
428
- styles: {
429
- left: number;
430
- height: number;
431
- width: number;
432
- };
433
- scaleRotation: {
434
- scale: string;
435
- rotation: string;
436
- };
437
- viewportScale: number;
438
- }
439
- interface PdfPosition {
440
- pageNumber: number;
441
- scale: number;
442
- top: number;
443
- left: number;
444
- rotation: number;
445
- }
446
- declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
447
- private store;
448
- set bookmarkNodes(value: Bookmark$1[]);
449
- get bookmarkNodes(): Bookmark$1[];
450
- zoom: number;
451
- rotate: number;
452
- parentScrollTop: number;
453
- goToDestination: EventEmitter<any[]>;
454
- treeHasChanged: EventEmitter<boolean>;
455
- private _bookmarkNodes;
456
- datasource: ArrayDataSource<Bookmark$1>;
457
- treeControl: FlatTreeControl<Bookmark$1>;
458
- hoveredNode: Bookmark$1;
459
- hoverHtmlElement: HTMLElement;
460
- expansionModel: SelectionModel<Bookmark$1>;
461
- isDraggingOn: boolean;
462
- isUserdragging: boolean;
463
- expandTimeout: any;
464
- expandDelay: number;
465
- dragNodeInsertToParent: boolean;
466
- pageLookup: {
467
- [pageId: number]: DocumentPages;
468
- };
469
- editableBookmark: string;
470
- BOOKMARK_CHAR_LIMIT: number;
471
- dragNode: any;
472
- dragNodeExpandOverWaitTimeMs: number;
473
- dragNodeExpandOverNode: any;
474
- dragNodeExpandOverTime: number;
475
- dragNodeExpandOverArea: number;
476
- options: {
477
- allowDrag: boolean;
478
- allowDrop: boolean;
479
- };
480
- $subscription: Subscription;
481
- private sortMode;
482
- private readonly _customSort;
483
- private readonly _positionSort;
484
- ngOnInit(): void;
485
- ngOnChanges(changes: SimpleChanges): void;
486
- ngOnDestroy(): void;
487
- editBookmark(id: any): void;
488
- onAddBookmarkClick(): void;
489
- deleteBookmark2(node: Bookmark$1): void;
490
- updateBookmark(bookmark: Bookmark$1, name: any): void;
491
- goToBookmark(bookmark: Bookmark$1): void;
492
- get customSort(): string;
493
- get positionSort(): string;
494
- sort(mode: string): void;
495
- private sortBookmarks;
496
- private positionSortBookmarks;
497
- private customSortBookmarks;
498
- private scaledY;
499
- hasChild: (_: number, node: Bookmark$1) => boolean;
500
- getNode(bookmarks: any, parentId: any): any;
501
- drop(event: CdkDragDrop<Bookmark$1>): void;
502
- private getSiblingFromAllSibliings;
503
- dragStart(): void;
504
- dragEnd(): void;
505
- dragHover(event: any, node: Bookmark$1): void;
506
- dragHoverEnd(event: any, node: Bookmark$1): void;
507
- onNodeExpand(node: Bookmark$1): "toggle-children-wrapper-expanded" | "toggle-children-wrapper-collapsed";
508
- visibleNodes(bookmarks: Bookmark$1[]): Bookmark$1[];
509
- findNodeSiblings(arr: Array<any>, id: string): Array<any>;
510
- rebuildTreeForData(data: any): void;
511
- isToNodeChildOfFromNode(fromNodeChildren: Bookmark$1[], toNode: Bookmark$1): boolean;
512
- static ɵfac: i0.ɵɵFactoryDeclaration<BookmarksComponent, never>;
513
- static ɵcmp: i0.ɵɵComponentDeclaration<BookmarksComponent, "mv-bookmarks", never, {
514
- "bookmarkNodes": {
515
- "alias": "bookmarkNodes";
516
- "required": false;
517
- };
518
- "zoom": {
519
- "alias": "zoom";
520
- "required": false;
521
- };
522
- "rotate": {
523
- "alias": "rotate";
524
- "required": false;
525
- };
526
- "parentScrollTop": {
527
- "alias": "parentScrollTop";
528
- "required": false;
529
- };
530
- }, {
531
- "goToDestination": "goToDestination";
532
- "treeHasChanged": "treeHasChanged";
533
- }, never, never, false, never>;
534
- }
535
- declare class SideBarComponent implements OnInit, OnChanges, OnDestroy {
536
- private viewerEvents;
537
- private store;
538
- private readonly toolbarEvents;
539
- annotationsEnabled: boolean;
540
- outline: Outline[];
541
- url: string;
542
- zoom: number;
543
- rotate: number;
544
- currentPageNumber: number;
545
- bookmarks: BookmarksComponent;
546
- treeChanged: boolean;
547
- selectedView: string;
548
- bookmarkNodes$: Observable<BookmarkNode[]>;
549
- scrollTop: any;
550
- sidebarOpen: any;
551
- private subscriptions;
552
- sidebarDiv: any;
553
- ngOnInit(): void;
554
- ngOnChanges(changes: SimpleChanges): void;
555
- ngOnDestroy(): void;
556
- onScroll(event: any): void;
557
- goToDestination(destination: any[]): void;
558
- hasTreeChanged(value: boolean): void;
559
- toggleSidebarView(sidebarView: string): void;
560
- isViewedItem(current: Outline, next: Outline): boolean;
561
- findEndPage(next: Outline): number;
562
- static ɵfac: i0.ɵɵFactoryDeclaration<SideBarComponent, never>;
563
- static ɵcmp: i0.ɵɵComponentDeclaration<SideBarComponent, "mv-side-bar", never, {
564
- "annotationsEnabled": {
565
- "alias": "annotationsEnabled";
566
- "required": false;
567
- };
568
- "outline": {
569
- "alias": "outline";
570
- "required": false;
571
- };
572
- "url": {
573
- "alias": "url";
574
- "required": false;
575
- };
576
- "zoom": {
577
- "alias": "zoom";
578
- "required": false;
579
- };
580
- "rotate": {
581
- "alias": "rotate";
582
- "required": false;
583
- };
584
- "currentPageNumber": {
585
- "alias": "currentPageNumber";
586
- "required": false;
587
- };
588
- }, {}, never, never, false, never>;
589
- }
590
- declare class OutlineItemComponent implements OnInit {
591
- outline: Outline;
592
- currentPageNumber: number;
593
- isCurrentSection: boolean;
594
- endPage: number;
595
- navigationEvent: EventEmitter<any>;
596
- showOutlineItems: boolean;
597
- ngOnInit(): void;
598
- goToDestination(destination: any): void;
599
- toggleOutline(): void;
600
- isViewedItem(current: Outline, next: Outline): boolean;
601
- findEndPage(next: Outline): number;
602
- showHighlightOutlineCss(): "highlightedOutlineItem" | "outlineItem";
603
- static ɵfac: i0.ɵɵFactoryDeclaration<OutlineItemComponent, never>;
604
- static ɵcmp: i0.ɵɵComponentDeclaration<OutlineItemComponent, "mv-outline-item", never, {
605
- "outline": {
606
- "alias": "outline";
607
- "required": false;
608
- };
609
- "currentPageNumber": {
610
- "alias": "currentPageNumber";
611
- "required": false;
612
- };
613
- "isCurrentSection": {
614
- "alias": "isCurrentSection";
615
- "required": false;
616
- };
617
- "endPage": {
618
- "alias": "endPage";
619
- "required": false;
620
- };
621
- }, {
622
- "navigationEvent": "navigationEvent";
623
- }, never, never, false, never>;
624
- }
625
- declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges {
626
- private store;
627
- private readonly printService;
628
- private readonly viewerUtilService;
629
- readonly toolbarEvents: ToolbarEventService;
630
- readonly toolbarButtons: ToolbarButtonVisibilityService;
631
- private viewerEvents;
632
- url: string;
633
- downloadFileName: string;
634
- enableAnnotations: boolean;
635
- annotationSet: AnnotationSet | null;
636
- height: string;
637
- mediaLoadStatus: EventEmitter<ResponseType>;
638
- imageViewerException: EventEmitter<ViewerException>;
639
- errorMessage: string;
640
- img: ElementRef;
641
- rotation: number;
642
- zoom: number;
643
- private subscriptions;
644
- private viewerException;
645
- private response;
646
- showCommentsPanel: boolean;
647
- enableGrabNDrag: boolean;
648
- imageHeight: number;
649
- imageWidth: number;
650
- imageLeft: number;
651
- imageTop: number;
652
- ngOnInit(): void;
653
- onImageViewerClick(event: MouseEvent): void;
654
- ngOnDestroy(): void;
655
- ngOnChanges(changes: SimpleChanges): void;
656
- private rotateImage;
657
- private setZoom;
658
- private stepZoom;
659
- private download;
660
- setZoomValue(zoomValue: any): Promise<unknown>;
661
- calculateZoomValue(zoomValue: any, increment?: number): number;
662
- onLoadError(url: any): void;
663
- onLoad(img: any): void;
664
- initAnnoPage(img: any): void;
665
- toggleCommentsSummary(): void;
666
- static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerComponent, never>;
667
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "mv-image-viewer", never, {
668
- "url": {
669
- "alias": "url";
670
- "required": false;
671
- };
672
- "downloadFileName": {
673
- "alias": "downloadFileName";
674
- "required": false;
675
- };
676
- "enableAnnotations": {
677
- "alias": "enableAnnotations";
678
- "required": false;
679
- };
680
- "annotationSet": {
681
- "alias": "annotationSet";
682
- "required": false;
683
- };
684
- "height": {
685
- "alias": "height";
686
- "required": false;
687
- };
688
- }, {
689
- "mediaLoadStatus": "mediaLoadStatus";
690
- "imageViewerException": "imageViewerException";
691
- }, never, never, false, never>;
692
- }
693
- declare class UnsupportedViewerComponent implements OnInit, OnDestroy {
694
- readonly toolbarEvents: ToolbarEventService;
695
- private readonly viewerUtilService;
696
- url: string;
697
- downloadFileName: string;
698
- typeException: boolean;
699
- loadStatus: EventEmitter<ResponseType>;
700
- unsupportedViewerException: EventEmitter<ViewerException>;
701
- downloadLink: ElementRef;
702
- private subscriptions;
703
- private viewerException;
704
- ngOnInit(): void;
705
- ngOnDestroy(): void;
706
- static ɵfac: i0.ɵɵFactoryDeclaration<UnsupportedViewerComponent, never>;
707
- static ɵcmp: i0.ɵɵComponentDeclaration<UnsupportedViewerComponent, "mv-unsupported-viewer", never, {
708
- "url": {
709
- "alias": "url";
710
- "required": false;
711
- };
712
- "downloadFileName": {
713
- "alias": "downloadFileName";
714
- "required": false;
715
- };
716
- "typeException": {
717
- "alias": "typeException";
718
- "required": false;
719
- };
720
- }, {
721
- "loadStatus": "loadStatus";
722
- "unsupportedViewerException": "unsupportedViewerException";
723
- }, never, never, false, never>;
724
- }
725
- declare class MultimediaPlayerComponent implements OnInit, OnChanges, OnDestroy {
726
- readonly toolbarEvents: ToolbarEventService;
727
- url: string;
728
- downloadFileName: string;
729
- multimediaOn: boolean;
730
- loadStatus: EventEmitter<ResponseType>;
731
- downloadLink: ElementRef;
732
- videoPlayer: ElementRef;
733
- playbackMsg: string;
734
- private subscription;
735
- ngOnInit(): void;
736
- ngOnChanges(changes: SimpleChanges): void;
737
- ngOnDestroy(): void;
738
- reloadVideo(): void;
739
- onSuccess(): void;
740
- onError(): void;
741
- static ɵfac: i0.ɵɵFactoryDeclaration<MultimediaPlayerComponent, never>;
742
- static ɵcmp: i0.ɵɵComponentDeclaration<MultimediaPlayerComponent, "mv-multimedia-player", never, {
743
- "url": {
744
- "alias": "url";
745
- "required": false;
746
- };
747
- "downloadFileName": {
748
- "alias": "downloadFileName";
749
- "required": false;
750
- };
751
- "multimediaOn": {
752
- "alias": "multimediaOn";
753
- "required": false;
754
- };
755
- }, {
756
- "loadStatus": "loadStatus";
757
- }, never, never, false, never>;
758
- }
759
- declare class IcpEventService {
760
- enabled: BehaviorSubject<boolean>;
761
- sessionLaunch: Subject<void>;
762
- becomingPresenter: Subject<void>;
763
- stoppingPresenting: Subject<void>;
764
- leavingSession: BehaviorSubject<boolean>;
765
- sessionExitConfirmed: Subject<void>;
766
- participantsListVisible: BehaviorSubject<boolean>;
767
- constructor();
768
- launchSession: () => void;
769
- enable: () => void;
770
- becomePresenter: () => void;
771
- stopPresenting: () => void;
772
- leaveSession: () => void;
773
- confirmExit: () => void;
774
- static ɵfac: i0.ɵɵFactoryDeclaration<IcpEventService, never>;
775
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
776
- }
777
- export declare class MediaViewerComponent implements OnChanges, OnDestroy, AfterContentInit, AfterViewChecked {
778
- private store;
779
- readonly toolbarButtons: ToolbarButtonVisibilityService;
780
- readonly toolbarEvents: ToolbarEventService;
781
- private readonly api;
782
- private readonly commentService;
783
- private elRef;
784
- private cdr;
785
- icpEventService: IcpEventService;
786
- viewerRef: ElementRef;
787
- url: any;
788
- downloadFileName: string;
789
- contentType: string;
790
- showToolbar: boolean;
791
- toolbarButtonOverrides: any;
792
- height: string;
793
- viewerHeight: string;
794
- width: string;
795
- mediaLoadStatus: EventEmitter<ResponseType>;
796
- viewerException: EventEmitter<ViewerException>;
797
- toolbarEventsOutput: EventEmitter<ToolbarEventService>;
798
- unsavedChanges: EventEmitter<boolean>;
799
- enableAnnotations: boolean;
800
- annotationApiUrl: any;
801
- enableRedactions: boolean;
802
- enableICP: boolean;
803
- multimediaPlayerEnabled: boolean;
804
- enableRedactSearch: boolean;
805
- caseId: string;
806
- multimediaContent: boolean;
807
- convertibleContent: boolean;
808
- unsupportedContent: boolean;
809
- documentTitle: string;
810
- showCommentSummary: boolean;
811
- annotationSet$: Observable<AnnotationSet | {}>;
812
- hasScrollBar: boolean;
813
- typeException: boolean;
814
- hasDifferentPageSize$: Observable<boolean>;
815
- documentId: string;
816
- private $subscriptions;
817
- private prevOffset;
818
- private currentRegionIndex;
819
- constructor();
820
- ngAfterContentInit(): void;
821
- ngAfterViewChecked(): void;
822
- ngOnChanges(changes: SimpleChanges): void;
823
- ngOnDestroy(): void;
824
- needsConverting(): boolean;
825
- isMultimedia(): boolean;
826
- isSupported(): boolean;
827
- onMediaLoad(status: ResponseType): void;
828
- setToolbarButtons(): void;
829
- onLoadException(exception: ViewerException): void;
830
- onCommentChange(changes: boolean): void;
831
- onDocumentTitleChange(title: string): void;
832
- private extractDMStoreDocId;
833
- detectOs(): void;
834
- skipToSidebar(event: Event): void;
835
- private openSidebarAndWait;
836
- skipToViewer(event: Event): void;
837
- handleF6Forward(event: KeyboardEvent): void;
838
- handleF6Backward(event: KeyboardEvent): void;
839
- private cycleRegion;
840
- private focusRegion;
841
- static ɵfac: i0.ɵɵFactoryDeclaration<MediaViewerComponent, never>;
842
- static ɵcmp: i0.ɵɵComponentDeclaration<MediaViewerComponent, "mv-media-viewer", never, {
843
- "url": {
844
- "alias": "url";
845
- "required": false;
846
- };
847
- "downloadFileName": {
848
- "alias": "downloadFileName";
849
- "required": false;
850
- };
851
- "contentType": {
852
- "alias": "contentType";
853
- "required": false;
854
- };
855
- "showToolbar": {
856
- "alias": "showToolbar";
857
- "required": false;
858
- };
859
- "toolbarButtonOverrides": {
860
- "alias": "toolbarButtonOverrides";
861
- "required": false;
862
- };
863
- "height": {
864
- "alias": "height";
865
- "required": false;
866
- };
867
- "width": {
868
- "alias": "width";
869
- "required": false;
870
- };
871
- "enableAnnotations": {
872
- "alias": "enableAnnotations";
873
- "required": false;
874
- };
875
- "annotationApiUrl": {
876
- "alias": "annotationApiUrl";
877
- "required": false;
878
- };
879
- "enableRedactions": {
880
- "alias": "enableRedactions";
881
- "required": false;
882
- };
883
- "enableICP": {
884
- "alias": "enableICP";
885
- "required": false;
886
- };
887
- "multimediaPlayerEnabled": {
888
- "alias": "multimediaPlayerEnabled";
889
- "required": false;
890
- };
891
- "enableRedactSearch": {
892
- "alias": "enableRedactSearch";
893
- "required": false;
894
- };
895
- "caseId": {
896
- "alias": "caseId";
897
- "required": false;
898
- };
899
- }, {
900
- "mediaLoadStatus": "mediaLoadStatus";
901
- "viewerException": "viewerException";
902
- "toolbarEventsOutput": "toolbarEventsOutput";
903
- "unsavedChanges": "unsavedChanges";
904
- }, never, never, false, never>;
905
- }
906
- declare class ConvertibleContentViewerComponent implements OnInit, OnDestroy, OnChanges {
907
- private store;
908
- originalUrl: any;
909
- downloadFileName: string;
910
- height: any;
911
- enableAnnotations: boolean;
912
- enableRedactions: boolean;
913
- annotationSet: AnnotationSet | null;
914
- mediaLoadStatus: EventEmitter<ResponseType>;
915
- viewerException: EventEmitter<ViewerException>;
916
- documentTitle: EventEmitter<string>;
917
- private $subscription;
918
- convertedUrl: string;
919
- ngOnInit(): void;
920
- ngOnChanges(changes: SimpleChanges): void;
921
- ngOnDestroy(): void;
922
- onMediaLoad(status: ResponseType): void;
923
- onLoadException(exception: ViewerException): void;
924
- onDocumentTitleChange(title: string): void;
925
- private extractDMStoreDocId;
926
- static ɵfac: i0.ɵɵFactoryDeclaration<ConvertibleContentViewerComponent, never>;
927
- static ɵcmp: i0.ɵɵComponentDeclaration<ConvertibleContentViewerComponent, "mv-conversion-viewer", never, {
928
- "originalUrl": {
929
- "alias": "originalUrl";
930
- "required": false;
931
- };
932
- "downloadFileName": {
933
- "alias": "downloadFileName";
934
- "required": false;
935
- };
936
- "height": {
937
- "alias": "height";
938
- "required": false;
939
- };
940
- "enableAnnotations": {
941
- "alias": "enableAnnotations";
942
- "required": false;
943
- };
944
- "enableRedactions": {
945
- "alias": "enableRedactions";
946
- "required": false;
947
- };
948
- "annotationSet": {
949
- "alias": "annotationSet";
950
- "required": false;
951
- };
952
- }, {
953
- "mediaLoadStatus": "mediaLoadStatus";
954
- "viewerException": "viewerException";
955
- "documentTitle": "documentTitle";
956
- }, never, never, false, never>;
957
- }
958
- declare class GrabNDragDirective {
959
- private el;
960
- originalPosition: {
961
- left: number;
962
- top: number;
963
- };
964
- private pointerDown;
965
- dragEnabled: boolean;
966
- dragX: Element;
967
- onPointerDown(event: PointerEvent): void;
968
- onPointerMove(event: PointerEvent): void;
969
- onWindowPointerUp(): void;
970
- static ɵfac: i0.ɵɵFactoryDeclaration<GrabNDragDirective, never>;
971
- static ɵdir: i0.ɵɵDirectiveDeclaration<GrabNDragDirective, "[mvGrabNDrag]", never, {
972
- "dragEnabled": {
973
- "alias": "dragEnabled";
974
- "required": false;
975
- };
976
- "dragX": {
977
- "alias": "dragX";
978
- "required": false;
979
- };
980
- }, {}, never, never, false, never>;
981
- }
982
- declare class RotationPersistDirective implements OnInit, OnDestroy {
983
- private el;
984
- private store;
985
- readonly toolbarButtons: ToolbarButtonVisibilityService;
986
- private toolbarEvents;
987
- documentId: string;
988
- rotation: number;
989
- savedRotation: number;
990
- $subscriptions: Subscription;
991
- ngOnInit(): void;
992
- ngOnDestroy(): void;
993
- onMediaLoad(status: ResponseType): void;
994
- private onRotate;
995
- private saveRotation;
996
- static ɵfac: i0.ɵɵFactoryDeclaration<RotationPersistDirective, never>;
997
- static ɵdir: i0.ɵɵDirectiveDeclaration<RotationPersistDirective, "[mvRotationPersist]", never, {}, {}, never, never, false, never>;
998
- }
999
- interface KeyboardTextHighlightEvent {
1000
- page: number;
1001
- startX: number;
1002
- startY: number;
1003
- endX: number;
1004
- endY: number;
1005
- }
1006
- interface CursorPosition$1 {
1007
- x: number;
1008
- y: number;
1009
- visible: boolean;
1010
- }
1011
- declare class KeyboardTextHighlightDirective implements OnDestroy {
1012
- private elementRef;
1013
- set enabled(value: boolean);
1014
- get enabled(): boolean;
1015
- private _enabled;
1016
- incrementSmall: number;
1017
- incrementMedium: number;
1018
- incrementLarge: number;
1019
- selectionStarted: EventEmitter<void>;
1020
- selectionUpdated: EventEmitter<KeyboardTextHighlightEvent>;
1021
- selectionConfirmed: EventEmitter<void>;
1022
- selectionCancelled: EventEmitter<void>;
1023
- cursorPositionChanged: EventEmitter<CursorPosition$1>;
1024
- selectionCursorPositionChanged: EventEmitter<CursorPosition$1>;
1025
- private isSelecting;
1026
- private cursorX;
1027
- private cursorY;
1028
- private showCursor;
1029
- private selectionStartX;
1030
- private selectionStartY;
1031
- private selectionEndX;
1032
- private selectionEndY;
1033
- private currentPage;
1034
- private lastValidEndNode;
1035
- private lastValidEndOffset;
1036
- private static lastInteractionWasKeyboard;
1037
- constructor();
1038
- private static onGlobalKeyDown;
1039
- private static onGlobalMouseDown;
1040
- ngOnDestroy(): void;
1041
- onKeyDown(event: KeyboardEvent): void;
1042
- onBlur(): void;
1043
- private moveCursor;
1044
- private startTextSelection;
1045
- private expandTextSelection;
1046
- private createTextSelectionAtPoint;
1047
- private updateTextSelection;
1048
- private confirmTextSelection;
1049
- private cancelTextSelection;
1050
- private hideCursor;
1051
- private cleanup;
1052
- private getCurrentPageNumber;
1053
- private emitCursorPosition;
1054
- private emitSelectionUpdated;
1055
- reset(): void;
1056
- static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardTextHighlightDirective, never>;
1057
- static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardTextHighlightDirective, "[mvKeyboardTextHighlight]", never, {
1058
- "enabled": {
1059
- "alias": "enabled";
1060
- "required": false;
1061
- };
1062
- "incrementSmall": {
1063
- "alias": "incrementSmall";
1064
- "required": false;
1065
- };
1066
- "incrementMedium": {
1067
- "alias": "incrementMedium";
1068
- "required": false;
1069
- };
1070
- "incrementLarge": {
1071
- "alias": "incrementLarge";
1072
- "required": false;
1073
- };
1074
- }, {
1075
- "selectionStarted": "selectionStarted";
1076
- "selectionUpdated": "selectionUpdated";
1077
- "selectionConfirmed": "selectionConfirmed";
1078
- "selectionCancelled": "selectionCancelled";
1079
- "cursorPositionChanged": "cursorPositionChanged";
1080
- "selectionCursorPositionChanged": "selectionCursorPositionChanged";
1081
- }, never, never, false, never>;
1082
- }
1083
- declare class ConfirmActionDialogComponent implements AfterViewInit {
1084
- private icpEventService;
1085
- modalContainer: ElementRef;
1086
- ngAfterViewInit(): void;
1087
- onCancel(): void;
1088
- onConfirm(): void;
1089
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmActionDialogComponent, never>;
1090
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmActionDialogComponent, "mv-confirm-action", never, {}, {}, never, never, false, never>;
1091
- }
1092
- interface SelectionAnnotation {
1093
- annotationId: string;
1094
- editable: boolean;
1095
- selected: boolean;
1096
- }
1097
- interface Redaction {
1098
- redactionId?: string;
1099
- documentId?: string;
1100
- page?: number;
1101
- rectangles?: Rectangle[];
1102
- }
1103
- declare class RedactionComponent implements OnInit, OnDestroy {
1104
- private store;
1105
- private readonly viewerEvents;
1106
- private toolbarEvents;
1107
- zoom: number;
1108
- rotate: number;
1109
- redactionsPerPage$: Observable<any>;
1110
- selectedRedaction$: Observable<SelectionAnnotation | {}>;
1111
- rectangles: Rectangle[];
1112
- drawMode: boolean;
1113
- documentId: string;
1114
- private $subscription;
1115
- ngOnInit(): void;
1116
- ngOnDestroy(): void;
1117
- markTextRedaction(highlight: any): void;
1118
- markBoxRedaction({ rectangles, page }: {
1119
- rectangles: any;
1120
- page: any;
1121
- }): void;
1122
- saveRedaction(page: number, rectangles: Rectangle[]): void;
1123
- onMarkerDelete(event: any): void;
1124
- selectRedaction(event: any): void;
1125
- onMarkerUpdate(redaction: Redaction): void;
1126
- downloadDocument({ blob, filename }: {
1127
- blob: any;
1128
- filename: any;
1129
- }): void;
1130
- static ɵfac: i0.ɵɵFactoryDeclaration<RedactionComponent, never>;
1131
- static ɵcmp: i0.ɵɵComponentDeclaration<RedactionComponent, "mv-redactions", never, {
1132
- "zoom": {
1133
- "alias": "zoom";
1134
- "required": false;
1135
- };
1136
- "rotate": {
1137
- "alias": "rotate";
1138
- "required": false;
1139
- };
1140
- }, {}, never, never, false, never>;
1141
- }
1142
- interface Bookmark {
1143
- id: string;
1144
- documentId: string;
1145
- name: string;
1146
- pageNumber: number;
1147
- xCoordinate: number;
1148
- yCoordinate: number;
1149
- children: any[];
1150
- previous: string;
1151
- index: number;
1152
- }
1153
- interface BookmarksPerPage {
1154
- bookmark: Bookmark[];
1155
- styles: {
1156
- left: number;
1157
- height: number;
1158
- width: number;
1159
- };
1160
- }
1161
- declare class BookmarkIconsComponent implements OnInit {
1162
- private store;
1163
- zoom: number;
1164
- rotate: number;
1165
- bookmarksPerPage$: Observable<BookmarksPerPage[]>;
1166
- bookmarks: Bookmark[];
1167
- documentId: string;
1168
- ngOnInit(): void;
1169
- static ɵfac: i0.ɵɵFactoryDeclaration<BookmarkIconsComponent, never>;
1170
- static ɵcmp: i0.ɵɵComponentDeclaration<BookmarkIconsComponent, "mv-bookmark-icons", never, {
1171
- "zoom": {
1172
- "alias": "zoom";
1173
- "required": false;
1174
- };
1175
- "rotate": {
1176
- "alias": "rotate";
1177
- "required": false;
1178
- };
1179
- }, {}, never, never, false, never>;
1180
- }
1181
- interface IcpState {
1182
- session: IcpSession;
1183
- presenter: IcpParticipant;
1184
- client: IcpParticipant;
1185
- participants: IcpParticipant[];
1186
- }
1187
- interface IcpSession {
1188
- sessionId: string;
1189
- documentId: string;
1190
- caseId: string;
1191
- dateOfHearing: Date;
1192
- connectionUrl: string;
1193
- }
1194
- interface IcpParticipant {
1195
- id: string;
1196
- username: string;
1197
- }
1198
- declare class ParticipantsListComponent implements OnInit, OnDestroy {
1199
- private readonly toolbarEvents;
1200
- private store;
1201
- private readonly icpEventService;
1202
- subscription: Subscription;
1203
- participants$: Observable<IcpParticipant[]>;
1204
- presenter$: Observable<IcpParticipant>;
1205
- isPresenter$: Observable<boolean>;
1206
- showParticipantsList: boolean;
1207
- ngOnInit(): void;
1208
- ngOnDestroy(): void;
1209
- static ɵfac: i0.ɵɵFactoryDeclaration<ParticipantsListComponent, never>;
1210
- static ɵcmp: i0.ɵɵComponentDeclaration<ParticipantsListComponent, "mv-participants-list", never, {}, {}, never, never, false, never>;
1211
- }
1212
- export declare class SearchBarComponent implements OnInit, OnDestroy, AfterViewInit {
1213
- readonly toolbarButtons: ToolbarButtonVisibilityService;
1214
- readonly toolbarEvents: ToolbarEventService;
1215
- findInput: ElementRef<HTMLInputElement>;
1216
- findNext: ElementRef<HTMLAnchorElement>;
1217
- highlightAll: boolean;
1218
- matchCase: boolean;
1219
- wholeWord: boolean;
1220
- resultsText: string;
1221
- searchText: string;
1222
- resultCount: number;
1223
- private subscriptions;
1224
- advancedSearchVisible: boolean;
1225
- ngOnInit(): void;
1226
- ngAfterViewInit(): void;
1227
- ngOnDestroy(): void;
1228
- onWindowKeyDown(e: KeyboardEvent): void;
1229
- searchNext(): void;
1230
- searchPrev(): void;
1231
- search(): void;
1232
- private setSearchResultsCount;
1233
- onEscapeKeyPress(e: KeyboardEvent): void;
1234
- onEnterKeyPress(e: KeyboardEvent): void;
1235
- toggleAdvancedSearch(): void;
1236
- toggleSearchBar(): void;
1237
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
1238
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "mv-search-bar", never, {}, {}, never, never, false, never>;
1239
- }
1240
- export declare class MainToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
1241
- readonly toolbarEvents: ToolbarEventService;
1242
- readonly toolbarButtons: ToolbarButtonVisibilityService;
1243
- private readonly cdr;
1244
- private readonly numberHelper;
1245
- private readonly icpEventService;
1246
- private readonly toolbarFocusService;
1247
- enableAnnotations: boolean;
1248
- enableRedactions: boolean;
1249
- enableICP: boolean;
1250
- contentType: any;
1251
- zoomSelect: ElementRef;
1252
- mvToolbarMain: ElementRef<HTMLElement>;
1253
- mvMenuItems: ElementRef<HTMLElement>;
1254
- private readonly subscriptions;
1255
- icpEnabled: boolean;
1256
- redactionEnabled: boolean;
1257
- showCommentsPanel: boolean;
1258
- redactAllInProgress: boolean;
1259
- pageNumber: number;
1260
- pageCount: number;
1261
- isDropdownMenuOpen: boolean;
1262
- isBookmarksOpen: boolean;
1263
- isIndexOpen: boolean;
1264
- isRedactOpen: boolean;
1265
- isCommentsOpen: boolean;
1266
- isHighlightOpen: boolean;
1267
- dropdownMenuPositions: ConnectionPositionPair[];
1268
- zoomScales: number[];
1269
- allButtonsWidth: number;
1270
- widthRequiredForBtn: {
1271
- [id: string]: number;
1272
- };
1273
- ngOnInit(): void;
1274
- ngOnDestroy(): void;
1275
- ngAfterViewInit(): void;
1276
- onResize(): void;
1277
- onControlPrint(event: KeyboardEvent): void;
1278
- onEscapeKey(event: KeyboardEvent): void;
1279
- private closeSearchBarAndFocus;
1280
- private isEventWithin;
1281
- onMoreOptionsKeyDown(event: KeyboardEvent): void;
1282
- onHighlightKeyDown(event: KeyboardEvent): void;
1283
- onClickHighlightToggle(): void;
1284
- private openHighlightToolbarAndFocus;
1285
- private focusHighlightButton;
1286
- onClickDrawToggle(): void;
1287
- toggleIndexSideBar(): void;
1288
- onToolBarOffSetChange(buttonId: string): "button-hidden-on-toolbar" | "button-hidden-on-dropdown";
1289
- toggleBookmarksSideBar(): void;
1290
- togglePresentBar(): void;
1291
- increasePageNumber(): void;
1292
- decreasePageNumber(): void;
1293
- onPageNumberInputChange(pageNumber: string): void;
1294
- private setCurrentPage;
1295
- rotate(rotation: number): void;
1296
- printFile(): void;
1297
- downloadFile(): void;
1298
- zoom(zoomFactor: string): void;
1299
- stepZoom(zoomFactor: number): void;
1300
- toggleCommentsPanel(): void;
1301
- toggleRedactBar(): void;
1302
- onRedactKeyDown(event: KeyboardEvent): void;
1303
- private openRedactToolbarAndFocus;
1304
- private focusRedactButton;
1305
- toggleGrabNDrag(): void;
1306
- isPdf(): boolean;
1307
- toggleSearchBar(): void;
1308
- toggleMoreOptions(): void;
1309
- static ɵfac: i0.ɵɵFactoryDeclaration<MainToolbarComponent, never>;
1310
- static ɵcmp: i0.ɵɵComponentDeclaration<MainToolbarComponent, "mv-main-toolbar", never, {
1311
- "enableAnnotations": {
1312
- "alias": "enableAnnotations";
1313
- "required": false;
1314
- };
1315
- "enableRedactions": {
1316
- "alias": "enableRedactions";
1317
- "required": false;
1318
- };
1319
- "enableICP": {
1320
- "alias": "enableICP";
1321
- "required": false;
1322
- };
1323
- "contentType": {
1324
- "alias": "contentType";
1325
- "required": false;
1326
- };
1327
- }, {}, never, never, false, never>;
1328
- }
1329
- export declare class RedactionToolbarComponent implements OnInit, OnDestroy {
1330
- readonly toolbarEventService: ToolbarEventService;
1331
- readonly toolbarButtons: ToolbarButtonVisibilityService;
1332
- private store;
1333
- private readonly toolbarFocusService;
1334
- showRedactSearch: boolean;
1335
- preview: boolean;
1336
- hasRedactions: boolean;
1337
- private subscriptions;
1338
- redactionAllInProgress: boolean;
1339
- ngOnInit(): void;
1340
- onRedactAllSearch(): void;
1341
- toggleTextRedactionMode(): void;
1342
- toggleDrawMode(): void;
1343
- togglePreview(): void;
1344
- unmarkAll(): void;
1345
- redact(): void;
1346
- toggleRedactBar(): void;
1347
- redactPage(): void;
1348
- onEscapeKey(event: KeyboardEvent): void;
1349
- onArrowUp(event: KeyboardEvent): void;
1350
- private returnFocusToMainToolbar;
1351
- ngOnDestroy(): void;
1352
- static ɵfac: i0.ɵɵFactoryDeclaration<RedactionToolbarComponent, never>;
1353
- static ɵcmp: i0.ɵɵComponentDeclaration<RedactionToolbarComponent, "mv-redaction-toolbar", never, {
1354
- "showRedactSearch": {
1355
- "alias": "showRedactSearch";
1356
- "required": false;
1357
- };
1358
- }, {}, never, never, false, never>;
1359
- }
1360
- export declare class IcpToolbarComponent implements OnInit, OnDestroy {
1361
- readonly toolbarEventService: ToolbarEventService;
1362
- private store;
1363
- readonly icpEventService: IcpEventService;
1364
- presenterName: string;
1365
- isPresenter: boolean;
1366
- private $subscription;
1367
- ngOnInit(): void;
1368
- ngOnDestroy(): void;
1369
- present(): void;
1370
- stopPresenting(): void;
1371
- leaveIcpSession(): void;
1372
- showParticipantsList(): void;
1373
- static ɵfac: i0.ɵɵFactoryDeclaration<IcpToolbarComponent, never>;
1374
- static ɵcmp: i0.ɵɵComponentDeclaration<IcpToolbarComponent, "mv-icp-toolbar", never, {}, {}, never, never, false, never>;
1375
- }
1376
- declare class HighlightCreateService {
1377
- private toolBarEvents;
1378
- private store;
1379
- saveAnnotation(rectangles: Rectangle[], page: number, annotationId?: string): void;
1380
- saveAnnotationSet(searchRectangles: RedactRectangle[]): void;
1381
- applyRotation(pageHeight: any, pageWidth: any, offsetHeight: any, offsetWidth: any, offsetTop: any, offsetLeft: any, rotate: any, zoom: any): any;
1382
- resetHighlight(): void;
1383
- static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateService, never>;
1384
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1385
- }
1386
- export declare class RedactionSearchBarComponent implements OnInit, OnDestroy {
1387
- private store;
1388
- readonly toolbarButtons: ToolbarButtonVisibilityService;
1389
- readonly toolbarEvents: ToolbarEventService;
1390
- readonly highlightService: HighlightCreateService;
1391
- findInput: ElementRef<HTMLInputElement>;
1392
- highlightAll: boolean;
1393
- matchCase: boolean;
1394
- wholeWord: boolean;
1395
- resultsText: string;
1396
- searchText: string;
1397
- resultCount: number;
1398
- redactElements: RedactRectangle[];
1399
- pageHeight: number;
1400
- pageWidth: number;
1401
- zoom: number;
1402
- rotate: number;
1403
- allPages: object;
1404
- redactAll: boolean;
1405
- openSearchModal: boolean;
1406
- redactAllInProgress: boolean;
1407
- redactAllText?: string;
1408
- searchType: SearchType;
1409
- inProgressText: string;
1410
- titleText: string;
1411
- private subscription;
1412
- private documentId;
1413
- advancedSearchVisible: boolean;
1414
- ngOnInit(): void;
1415
- ngOnDestroy(): void;
1416
- onWindowKeyDown(e: KeyboardEvent): void;
1417
- search(reset?: boolean): void;
1418
- modeText(): void;
1419
- private saveRedaction;
1420
- private existInRedactElements;
1421
- onCloseSearchModal(): void;
1422
- onSearchTextChange(value: string): void;
1423
- private setSearchResultsCount;
1424
- private redactAllSearched;
1425
- private redactAllSearchedTick;
1426
- private cleanUpPostSave;
1427
- private CreateRedactAllText;
1428
- onEscapeKeyPress(e: KeyboardEvent): void;
1429
- onEnterKeyPress(e: KeyboardEvent): void;
1430
- toggleSearchBar(): void;
1431
- private getRectangles;
1432
- private createTextRectangle;
1433
- static ɵfac: i0.ɵɵFactoryDeclaration<RedactionSearchBarComponent, never>;
1434
- static ɵcmp: i0.ɵɵComponentDeclaration<RedactionSearchBarComponent, "mv-redaction-search-bar", never, {}, {}, never, never, false, never>;
1435
- }
1436
- export declare class HighlightToolbarComponent implements OnInit, OnDestroy {
1437
- readonly toolbarEventService: ToolbarEventService;
1438
- readonly toolbarButtons: ToolbarButtonVisibilityService;
1439
- private readonly toolbarFocusService;
1440
- private subscriptions;
1441
- redactionAllInProgress: boolean;
1442
- ngOnInit(): void;
1443
- onAllSearch(): void;
1444
- onHighlight(): void;
1445
- onClickDrawToggle(): void;
1446
- onClose(): void;
1447
- onEscapeKey(event: KeyboardEvent): void;
1448
- onArrowUp(event: KeyboardEvent): void;
1449
- private closeAndReturnFocus;
1450
- private returnFocusToMainToolbar;
1451
- ngOnDestroy(): void;
1452
- static ɵfac: i0.ɵɵFactoryDeclaration<HighlightToolbarComponent, never>;
1453
- static ɵcmp: i0.ɵɵComponentDeclaration<HighlightToolbarComponent, "mv-highlight-toolbar", never, {}, {}, never, never, false, never>;
1454
- }
1455
- declare class TooltipDismissDirective {
1456
- private el;
1457
- onEscapeDismissTooltip(): void;
1458
- onShowTooltip(): void;
1459
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDismissDirective, never>;
1460
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDismissDirective, ".mv-tooltip, [mvTooltipDismiss]", never, {}, {}, never, never, false, never>;
1461
- }
1462
- declare class GovUkDateComponent {
1463
- config: {
1464
- id: string;
1465
- legend: string;
1466
- };
1467
- errorMessage: {
1468
- isInvalid: boolean;
1469
- messages: string[];
1470
- };
1471
- formGroup: any;
1472
- static ɵfac: i0.ɵɵFactoryDeclaration<GovUkDateComponent, never>;
1473
- static ɵcmp: i0.ɵɵComponentDeclaration<GovUkDateComponent, "mv-gov-uk-date", never, {
1474
- "config": {
1475
- "alias": "config";
1476
- "required": false;
1477
- };
1478
- "errorMessage": {
1479
- "alias": "errorMessage";
1480
- "required": false;
1481
- };
1482
- "formGroup": {
1483
- "alias": "formGroup";
1484
- "required": false;
1485
- };
1486
- }, {}, never, never, false, never>;
1487
- }
1488
- declare class GovUkErrorMessageComponent {
1489
- constructor();
1490
- config: {
1491
- id: string;
1492
- };
1493
- errorMessage: any;
1494
- static ɵfac: i0.ɵɵFactoryDeclaration<GovUkErrorMessageComponent, never>;
1495
- static ɵcmp: i0.ɵɵComponentDeclaration<GovUkErrorMessageComponent, " mv-gov-uk-error-message", never, {
1496
- "config": {
1497
- "alias": "config";
1498
- "required": false;
1499
- };
1500
- "errorMessage": {
1501
- "alias": "errorMessage";
1502
- "required": false;
1503
- };
1504
- }, {}, never, never, false, never>;
1505
- }
1506
- declare class GovUkFieldsetComponent {
1507
- config: {
1508
- legend: string;
1509
- classes: string;
1510
- id: string;
1511
- hint: string;
1512
- key: string;
1513
- };
1514
- isHeading: boolean;
1515
- errorMessage: string[];
1516
- setDescribedBy(): string;
1517
- static ɵfac: i0.ɵɵFactoryDeclaration<GovUkFieldsetComponent, never>;
1518
- static ɵcmp: i0.ɵɵComponentDeclaration<GovUkFieldsetComponent, "mv-gov-uk-fieldset", never, {
1519
- "config": {
1520
- "alias": "config";
1521
- "required": false;
1522
- };
1523
- "isHeading": {
1524
- "alias": "isHeading";
1525
- "required": false;
1526
- };
1527
- "errorMessage": {
1528
- "alias": "errorMessage";
1529
- "required": false;
1530
- };
1531
- }, {}, never, ["*"], false, never>;
1532
- }
1533
- declare class GovUkLabelComponent {
1534
- constructor();
1535
- config: {
1536
- label: string;
1537
- name: string;
1538
- id: string;
1539
- isPageHeading: any;
1540
- classes: string;
1541
- };
1542
- static ɵfac: i0.ɵɵFactoryDeclaration<GovUkLabelComponent, never>;
1543
- static ɵcmp: i0.ɵɵComponentDeclaration<GovUkLabelComponent, "mv-gov-label", never, {
1544
- "config": {
1545
- "alias": "config";
1546
- "required": false;
1547
- };
1548
- }, {}, never, never, false, never>;
1549
- }
1550
- type KeyboardNavOrientation = 'horizontal' | 'vertical';
1551
- declare class KeyboardNavDirective implements OnInit, OnDestroy {
1552
- private elementRef;
1553
- orientation: KeyboardNavOrientation;
1554
- itemFocused: EventEmitter<HTMLElement>;
1555
- itemActivated: EventEmitter<HTMLElement>;
1556
- private focusableItems;
1557
- private currentFocusIndex;
1558
- private mutationObserver;
1559
- private isUsingArrowKeys;
1560
- ngOnInit(): void;
1561
- ngOnDestroy(): void;
1562
- private setupMutationObserver;
1563
- private updateFocusableItems;
1564
- private isVisible;
1565
- private applyArrowKeyTabindex;
1566
- onKeyDown(event: KeyboardEvent): void;
1567
- private focusNext;
1568
- private focusPrevious;
1569
- private focusFirst;
1570
- private focusLast;
1571
- private focusItemAtIndex;
1572
- private activateItem;
1573
- static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardNavDirective, never>;
1574
- static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardNavDirective, "[mvKeyboardNav]", never, {
1575
- "orientation": {
1576
- "alias": "mvKeyboardNav";
1577
- "required": false;
1578
- };
1579
- }, {
1580
- "itemFocused": "itemFocused";
1581
- "itemActivated": "itemActivated";
1582
- }, never, never, false, never>;
1583
- }
1584
- declare class SharedModule {
1585
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
1586
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof GovUkDateComponent, typeof GovUkErrorMessageComponent, typeof GovUkFieldsetComponent, typeof GovUkLabelComponent, typeof KeyboardNavDirective], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i6.CommonModule, typeof i8.RouterModule], [typeof GovUkDateComponent, typeof GovUkErrorMessageComponent, typeof GovUkFieldsetComponent, typeof GovUkLabelComponent, typeof KeyboardNavDirective]>;
1587
- static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
1588
- }
1589
- export declare class ToolbarModule {
1590
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarModule, never>;
1591
- static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, [typeof SearchBarComponent, typeof MainToolbarComponent, typeof RedactionToolbarComponent, typeof IcpToolbarComponent, typeof RedactionSearchBarComponent, typeof HighlightToolbarComponent, typeof TooltipDismissDirective], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i10.OverlayModule, typeof i8.RouterModule, typeof i12.RpxTranslationModule, typeof SharedModule], [typeof MainToolbarComponent, typeof SearchBarComponent, typeof RedactionToolbarComponent, typeof IcpToolbarComponent, typeof RedactionSearchBarComponent, typeof HighlightToolbarComponent]>;
1592
- static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
1593
- }
1594
- interface Highlight {
1595
- page: number;
1596
- rectangles: Rectangle[];
1597
- }
1598
- declare class CtxToolbarComponent implements OnChanges {
1599
- readonly defaultHeight: any;
1600
- readonly defaultWidth: any;
1601
- toolbarContainer: ElementRef<HTMLDivElement>;
1602
- zoom: any;
1603
- rotate: any;
1604
- pageHeight: number;
1605
- pageWidth: number;
1606
- canHighlight: boolean;
1607
- canBookmark: boolean;
1608
- canComment: boolean;
1609
- canDelete: boolean;
1610
- createHighlightEvent: EventEmitter<any>;
1611
- deleteHighlightEvent: EventEmitter<any>;
1612
- addOrEditCommentEvent: EventEmitter<any>;
1613
- createBookmarkEvent: EventEmitter<Rectangle>;
1614
- cancelEvent: EventEmitter<any>;
1615
- rectangle: Rectangle;
1616
- _rectangles: Rectangle[];
1617
- top: number;
1618
- left: number;
1619
- constructor();
1620
- ngOnChanges(changes: SimpleChanges): void;
1621
- onEscapeKey(event: KeyboardEvent): void;
1622
- set rectangles(rectangles: Rectangle[]);
1623
- get rectangles(): Rectangle[];
1624
- createHighlight(): void;
1625
- deleteHighlight(): void;
1626
- addOrEditComment(): void;
1627
- createBookmark(): void;
1628
- setRectangle(): void;
1629
- popupTop(): any;
1630
- popupLeft(): number;
1631
- focusToolbar(): void;
1632
- static ɵfac: i0.ɵɵFactoryDeclaration<CtxToolbarComponent, never>;
1633
- static ɵcmp: i0.ɵɵComponentDeclaration<CtxToolbarComponent, "mv-ctx-toolbar", never, {
1634
- "zoom": {
1635
- "alias": "zoom";
1636
- "required": false;
1637
- };
1638
- "rotate": {
1639
- "alias": "rotate";
1640
- "required": false;
1641
- };
1642
- "pageHeight": {
1643
- "alias": "pageHeight";
1644
- "required": false;
1645
- };
1646
- "pageWidth": {
1647
- "alias": "pageWidth";
1648
- "required": false;
1649
- };
1650
- "canHighlight": {
1651
- "alias": "canHighlight";
1652
- "required": false;
1653
- };
1654
- "canBookmark": {
1655
- "alias": "canBookmark";
1656
- "required": false;
1657
- };
1658
- "canComment": {
1659
- "alias": "canComment";
1660
- "required": false;
1661
- };
1662
- "canDelete": {
1663
- "alias": "canDelete";
1664
- "required": false;
1665
- };
1666
- "rectangles": {
1667
- "alias": "rectangles";
1668
- "required": false;
1669
- };
1670
- }, {
1671
- "createHighlightEvent": "createHighlightEvent";
1672
- "deleteHighlightEvent": "deleteHighlightEvent";
1673
- "addOrEditCommentEvent": "addOrEditCommentEvent";
1674
- "createBookmarkEvent": "createBookmarkEvent";
1675
- "cancelEvent": "cancelEvent";
1676
- }, never, never, false, never>;
1677
- }
1678
- export declare class MetadataLayerComponent implements OnInit, OnDestroy {
1679
- private store;
1680
- private readonly highlightService;
1681
- private readonly toolbarEvents;
1682
- private readonly viewerEvents;
1683
- zoom: number;
1684
- rotate: number;
1685
- ctxToolbar: CtxToolbarComponent;
1686
- pages: any[];
1687
- annoPages$: Observable<any>;
1688
- drawMode: boolean;
1689
- highlightPage: number;
1690
- rectangles: Rectangle[];
1691
- private $subscriptions;
1692
- ngOnInit(): void;
1693
- ngOnDestroy(): void;
1694
- showContextToolbar(highlight: Highlight): void;
1695
- clearContextToolbar(): void;
1696
- cancelContextToolbar(): void;
1697
- createHighlight(): void;
1698
- createBookmark(rectangle: Rectangle): void;
1699
- saveAnnotation({ rectangles, page, annotationId }: {
1700
- rectangles: Rectangle[];
1701
- page: any;
1702
- annotationId?: string;
1703
- }): void;
1704
- static ɵfac: i0.ɵɵFactoryDeclaration<MetadataLayerComponent, never>;
1705
- static ɵcmp: i0.ɵɵComponentDeclaration<MetadataLayerComponent, "mv-metadata-layer", never, {
1706
- "zoom": {
1707
- "alias": "zoom";
1708
- "required": false;
1709
- };
1710
- "rotate": {
1711
- "alias": "rotate";
1712
- "required": false;
1713
- };
1714
- }, {}, never, never, false, never>;
1715
- }
1716
- export declare class AnnotationViewComponent implements OnDestroy {
1717
- private readonly toolbarEvents;
1718
- private store;
1719
- set annotation(value: any);
1720
- anno: Annotation;
1721
- selected: boolean;
1722
- isKeyboardMoving: boolean;
1723
- showToolbar: boolean;
1724
- private showToolbarSubject;
1725
- zoom: number;
1726
- rotate: number;
1727
- set selectedAnnoId(selectedId: {
1728
- annotationId: string;
1729
- });
1730
- pageHeight: number;
1731
- pageWidth: number;
1732
- update: EventEmitter<Annotation>;
1733
- delete: EventEmitter<Annotation>;
1734
- annotationClick: EventEmitter<SelectionAnnotation>;
1735
- container: ElementRef;
1736
- ctxToolbar: ElementRef<HTMLElement>;
1737
- private lastFocusedRectangle;
1738
- private nextTabTarget;
1739
- constructor();
1740
- ngOnDestroy(): void;
1741
- private setShowToolbar;
1742
- onSelect(): void;
1743
- onRectangleUpdate(rectangle: Rectangle): void;
1744
- deleteHighlight(): void;
1745
- addOrEditComment(): void;
1746
- onKeyboardMovingChange(isMoving: boolean): void;
1747
- onTabToToolbar(event: KeyboardEvent): void;
1748
- onToolbarKeydown(event: KeyboardEvent): void;
1749
- private getNextTabTarget;
1750
- private compareDocumentPosition;
1751
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationViewComponent, never>;
1752
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnotationViewComponent, "mv-annotation", never, {
1753
- "annotation": {
1754
- "alias": "annotation";
1755
- "required": false;
1756
- };
1757
- "zoom": {
1758
- "alias": "zoom";
1759
- "required": false;
1760
- };
1761
- "rotate": {
1762
- "alias": "rotate";
1763
- "required": false;
1764
- };
1765
- "selectedAnnoId": {
1766
- "alias": "selectedAnnoId";
1767
- "required": false;
1768
- };
1769
- "pageHeight": {
1770
- "alias": "pageHeight";
1771
- "required": false;
1772
- };
1773
- "pageWidth": {
1774
- "alias": "pageWidth";
1775
- "required": false;
1776
- };
1777
- }, {
1778
- "update": "update";
1779
- "delete": "delete";
1780
- "annotationClick": "annotationClick";
1781
- }, never, never, false, never>;
1782
- }
1783
- interface KeyboardBoxDrawEvent {
1784
- startX: number;
1785
- startY: number;
1786
- width: number;
1787
- height: number;
1788
- }
1789
- interface CursorPosition {
1790
- x: number;
1791
- y: number;
1792
- visible: boolean;
1793
- }
1794
- declare class KeyboardBoxDrawDirective implements OnDestroy {
1795
- private elementRef;
1796
- set enabled(value: boolean);
1797
- get enabled(): boolean;
1798
- private _enabled;
1799
- minBoxSize: number;
1800
- incrementSmall: number;
1801
- incrementMedium: number;
1802
- incrementLarge: number;
1803
- drawingStarted: EventEmitter<KeyboardBoxDrawEvent>;
1804
- drawingUpdated: EventEmitter<KeyboardBoxDrawEvent>;
1805
- drawingConfirmed: EventEmitter<KeyboardBoxDrawEvent>;
1806
- drawingCancelled: EventEmitter<void>;
1807
- cursorPositionChanged: EventEmitter<CursorPosition>;
1808
- private isDrawing;
1809
- private cursorX;
1810
- private cursorY;
1811
- private showCursor;
1812
- private drawStartX;
1813
- private drawStartY;
1814
- private currentWidth;
1815
- private currentHeight;
1816
- private static lastInteractionWasKeyboard;
1817
- constructor();
1818
- private static onGlobalKeyDown;
1819
- private static onGlobalMouseDown;
1820
- ngOnDestroy(): void;
1821
- private initializeCursorForKeyboard;
1822
- onKeyDown(event: KeyboardEvent): void;
1823
- onBlur(): void;
1824
- onFocus(): void;
1825
- private moveCursor;
1826
- private startDrawing;
1827
- private resizeBox;
1828
- private confirmDrawing;
1829
- private cancelDrawing;
1830
- private hideCursor;
1831
- private cleanup;
1832
- private emitCursorPosition;
1833
- private emitDrawingStarted;
1834
- private emitDrawingUpdated;
1835
- private emitDrawingConfirmed;
1836
- reset(): void;
1837
- static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardBoxDrawDirective, never>;
1838
- static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardBoxDrawDirective, "[mvKeyboardBoxDraw]", never, {
1839
- "enabled": {
1840
- "alias": "enabled";
1841
- "required": false;
1842
- };
1843
- "minBoxSize": {
1844
- "alias": "minBoxSize";
1845
- "required": false;
1846
- };
1847
- "incrementSmall": {
1848
- "alias": "incrementSmall";
1849
- "required": false;
1850
- };
1851
- "incrementMedium": {
1852
- "alias": "incrementMedium";
1853
- "required": false;
1854
- };
1855
- "incrementLarge": {
1856
- "alias": "incrementLarge";
1857
- "required": false;
1858
- };
1859
- }, {
1860
- "drawingStarted": "drawingStarted";
1861
- "drawingUpdated": "drawingUpdated";
1862
- "drawingConfirmed": "drawingConfirmed";
1863
- "drawingCancelled": "drawingCancelled";
1864
- "cursorPositionChanged": "cursorPositionChanged";
1865
- }, never, never, false, never>;
1866
- }
1867
- export declare class BoxHighlightCreateComponent implements OnInit, OnDestroy {
1868
- private readonly toolbarEvents;
1869
- private readonly highlightService;
1870
- page: number;
1871
- pageHeight: number;
1872
- pageWidth: number;
1873
- rotate: number;
1874
- zoom: number;
1875
- container: {
1876
- top: number;
1877
- left: number;
1878
- };
1879
- saveSelection: EventEmitter<{
1880
- rectangles: Rectangle[];
1881
- page: number;
1882
- annotationId?: string;
1883
- }>;
1884
- highlight: ElementRef;
1885
- drawingContainer: ElementRef;
1886
- drawStartX: number;
1887
- drawStartY: number;
1888
- top: number;
1889
- left: number;
1890
- height: number;
1891
- width: number;
1892
- display: string;
1893
- position: string;
1894
- backgroundColor: string;
1895
- drawMode: boolean;
1896
- defaultHeight: string;
1897
- defaultWidth: string;
1898
- wholePage: boolean;
1899
- isCurrentPage: boolean;
1900
- keyboardDrawingMode: boolean;
1901
- cursorX: number;
1902
- cursorY: number;
1903
- showCursor: boolean;
1904
- private subscriptions;
1905
- ngOnInit(): void;
1906
- ngOnDestroy(): void;
1907
- private isElementInViewport;
1908
- private focusDrawingContainer;
1909
- initHighlight(event: MouseEvent): void;
1910
- updateHighlight(event: MouseEvent): void;
1911
- createHighlight(): void;
1912
- onCursorPositionChanged(position: CursorPosition): void;
1913
- onDrawingStarted(event: KeyboardBoxDrawEvent): void;
1914
- onDrawingUpdated(event: KeyboardBoxDrawEvent): void;
1915
- onDrawingConfirmed(event: KeyboardBoxDrawEvent): void;
1916
- onDrawingCancelled(): void;
1917
- private adjustForRotation;
1918
- private resetHighlight;
1919
- private highlightPage;
1920
- static ɵfac: i0.ɵɵFactoryDeclaration<BoxHighlightCreateComponent, never>;
1921
- static ɵcmp: i0.ɵɵComponentDeclaration<BoxHighlightCreateComponent, "mv-box-highlight-create", never, {
1922
- "page": {
1923
- "alias": "page";
1924
- "required": false;
1925
- };
1926
- "pageHeight": {
1927
- "alias": "pageHeight";
1928
- "required": false;
1929
- };
1930
- "pageWidth": {
1931
- "alias": "pageWidth";
1932
- "required": false;
1933
- };
1934
- "rotate": {
1935
- "alias": "rotate";
1936
- "required": false;
1937
- };
1938
- "zoom": {
1939
- "alias": "zoom";
1940
- "required": false;
1941
- };
1942
- "container": {
1943
- "alias": "container";
1944
- "required": false;
1945
- };
1946
- }, {
1947
- "saveSelection": "saveSelection";
1948
- }, never, never, false, never>;
1949
- }
1950
- export declare class AnnotationSetComponent implements OnInit {
1951
- private store;
1952
- private readonly commentService;
1953
- page: number;
1954
- annotations: Annotation[];
1955
- zoom: number;
1956
- rotate: number;
1957
- pageHeight: number;
1958
- pageWidth: number;
1959
- selectedAnnotation$: Observable<SelectionAnnotation>;
1960
- ngOnInit(): void;
1961
- onAnnotationUpdate(annotation: Annotation): void;
1962
- onAnnotationDelete(annotation: Annotation): void;
1963
- selectAnnotation(selectedAnnotation: SelectionAnnotation): void;
1964
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationSetComponent, never>;
1965
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnotationSetComponent, "mv-annotation-set", never, {
1966
- "page": {
1967
- "alias": "page";
1968
- "required": false;
1969
- };
1970
- "annotations": {
1971
- "alias": "annotations";
1972
- "required": false;
1973
- };
1974
- "zoom": {
1975
- "alias": "zoom";
1976
- "required": false;
1977
- };
1978
- "rotate": {
1979
- "alias": "rotate";
1980
- "required": false;
1981
- };
1982
- "pageHeight": {
1983
- "alias": "pageHeight";
1984
- "required": false;
1985
- };
1986
- "pageWidth": {
1987
- "alias": "pageWidth";
1988
- "required": false;
1989
- };
1990
- }, {}, never, never, false, never>;
1991
- }
1992
- interface BoxMovementBounds {
1993
- containerWidth: number;
1994
- containerHeight: number;
1995
- }
1996
- declare class KeyboardBoxMoveDirective implements OnDestroy {
1997
- private elementRef;
1998
- enabled: boolean;
1999
- incrementSmall: number;
2000
- incrementLarge: number;
2001
- movementBounds: BoxMovementBounds;
2002
- keyboardMovingChange: EventEmitter<boolean>;
2003
- boxDelete: EventEmitter<void>;
2004
- private moveSubject;
2005
- private moveSubscription;
2006
- private isMoving;
2007
- constructor();
2008
- ngOnDestroy(): void;
2009
- onKeyDown(event: KeyboardEvent): void;
2010
- private moveBox;
2011
- private setMoving;
2012
- private emitStoppedEvent;
2013
- static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardBoxMoveDirective, never>;
2014
- static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardBoxMoveDirective, "[mvKeyboardBoxMove]", never, {
2015
- "enabled": {
2016
- "alias": "enabled";
2017
- "required": false;
2018
- };
2019
- "incrementSmall": {
2020
- "alias": "incrementSmall";
2021
- "required": false;
2022
- };
2023
- "incrementLarge": {
2024
- "alias": "incrementLarge";
2025
- "required": false;
2026
- };
2027
- "movementBounds": {
2028
- "alias": "movementBounds";
2029
- "required": false;
2030
- };
2031
- }, {
2032
- "keyboardMovingChange": "keyboardMovingChange";
2033
- "boxDelete": "boxDelete";
2034
- }, never, never, false, never>;
2035
- }
2036
- declare class RectangleComponent implements OnChanges, AfterViewInit, OnDestroy {
2037
- private readonly toolbarEvents;
2038
- private readonly highlightService;
2039
- color: String;
2040
- zoom: number;
2041
- rotate: number;
2042
- editable: boolean;
2043
- pageHeight: number;
2044
- pageWidth: number;
2045
- rectangleTabIndex: number;
2046
- selectEvent: EventEmitter<Rectangle>;
2047
- updateEvent: EventEmitter<Rectangle>;
2048
- deleteEvent: EventEmitter<Rectangle>;
2049
- keyboardMovingChange: EventEmitter<boolean>;
2050
- tabToToolbar: EventEmitter<KeyboardEvent>;
2051
- viewRect: ElementRef;
2052
- private subscriptions;
2053
- _selected: boolean;
2054
- enableGrabNDrag: boolean;
2055
- height: number;
2056
- width: number;
2057
- top: number;
2058
- left: number;
2059
- movementBounds: BoxMovementBounds;
2060
- _annoRect: Rectangle;
2061
- set annoRect(annoRect: Rectangle);
2062
- get annoRect(): Rectangle;
2063
- ngOnChanges(changes: SimpleChanges): void;
2064
- ngAfterViewInit(): void;
2065
- ngOnDestroy(): void;
2066
- set selected(selected: boolean);
2067
- get selected(): boolean;
2068
- onClick(): void;
2069
- onFocus(): void;
2070
- onUpdate(viewRect: any): void;
2071
- adjustForRotation(rotation: number): void;
2072
- hasRectangleChanged(viewRect: any): boolean;
2073
- private updateMovementBounds;
2074
- onKeyboardMovingChange(isMoving: boolean): void;
2075
- onDelete(): void;
2076
- onTab(event: KeyboardEvent): void;
2077
- private focusWithoutScrolling;
2078
- static ɵfac: i0.ɵɵFactoryDeclaration<RectangleComponent, never>;
2079
- static ɵcmp: i0.ɵɵComponentDeclaration<RectangleComponent, "mv-anno-rectangle", never, {
2080
- "color": {
2081
- "alias": "color";
2082
- "required": false;
2083
- };
2084
- "zoom": {
2085
- "alias": "zoom";
2086
- "required": false;
2087
- };
2088
- "rotate": {
2089
- "alias": "rotate";
2090
- "required": false;
2091
- };
2092
- "editable": {
2093
- "alias": "editable";
2094
- "required": false;
2095
- };
2096
- "pageHeight": {
2097
- "alias": "pageHeight";
2098
- "required": false;
2099
- };
2100
- "pageWidth": {
2101
- "alias": "pageWidth";
2102
- "required": false;
2103
- };
2104
- "rectangleTabIndex": {
2105
- "alias": "rectangleTabIndex";
2106
- "required": false;
2107
- };
2108
- "annoRect": {
2109
- "alias": "annoRect";
2110
- "required": false;
2111
- };
2112
- "selected": {
2113
- "alias": "selected";
2114
- "required": false;
2115
- };
2116
- }, {
2117
- "selectEvent": "selectEvent";
2118
- "updateEvent": "updateEvent";
2119
- "deleteEvent": "deleteEvent";
2120
- "keyboardMovingChange": "keyboardMovingChange";
2121
- "tabToToolbar": "tabToToolbar";
2122
- }, never, never, false, never>;
2123
- }
2124
- declare class CommentComponent implements OnInit, OnDestroy, AfterContentInit {
2125
- private store;
2126
- private readonly commentService;
2127
- private tagsServices;
2128
- CHAR_LIMIT: number;
2129
- lastUpdate: string;
2130
- originalComment: string;
2131
- fullComment: string;
2132
- author: User;
2133
- createdBy: string;
2134
- editor: User;
2135
- _comment: Comment;
2136
- _editable: boolean;
2137
- _rectangle: any;
2138
- totalPrevPagesHeight: number;
2139
- rectTop: any;
2140
- rectLeft: any;
2141
- pageHeight: number;
2142
- hasUnsavedChanges: boolean;
2143
- selected: boolean;
2144
- searchString: string;
2145
- tagItems: TagsModel[];
2146
- marginToComment$: Observable<boolean>;
2147
- commentClick: EventEmitter<SelectionAnnotation>;
2148
- renderComments: EventEmitter<Comment>;
2149
- delete: EventEmitter<Comment>;
2150
- updated: EventEmitter<{
2151
- comment: Comment;
2152
- tags: TagsModel[];
2153
- }>;
2154
- changes: EventEmitter<boolean>;
2155
- rotate: number;
2156
- zoom: number;
2157
- index: number;
2158
- page: number;
2159
- form: ElementRef;
2160
- editableComment: ElementRef<HTMLElement>;
2161
- private subscriptions;
2162
- ngOnInit(): void;
2163
- ngAfterContentInit(): void;
2164
- ngOnDestroy(): void;
2165
- set comment(comment: Comment);
2166
- get comment(): Comment;
2167
- set annotation(annotation: Annotation);
2168
- get editable(): boolean;
2169
- onCommentChange(updatedComment: any): void;
2170
- deleteOrCancel(): void;
2171
- editOrSave(): void;
2172
- onCommentClick(): void;
2173
- reRenderComments(): void;
2174
- get commentTop(): number;
2175
- get height(): number;
2176
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentComponent, never>;
2177
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentComponent, "mv-anno-comment", never, {
2178
- "rotate": {
2179
- "alias": "rotate";
2180
- "required": false;
2181
- };
2182
- "zoom": {
2183
- "alias": "zoom";
2184
- "required": false;
2185
- };
2186
- "index": {
2187
- "alias": "index";
2188
- "required": false;
2189
- };
2190
- "page": {
2191
- "alias": "page";
2192
- "required": false;
2193
- };
2194
- "comment": {
2195
- "alias": "comment";
2196
- "required": false;
2197
- };
2198
- "annotation": {
2199
- "alias": "annotation";
2200
- "required": false;
2201
- };
2202
- }, {
2203
- "commentClick": "commentClick";
2204
- "renderComments": "renderComments";
2205
- "delete": "delete";
2206
- "updated": "updated";
2207
- "changes": "changes";
2208
- }, never, never, false, never>;
2209
- }
2210
- export declare class CommentSetHeaderComponent implements OnInit, OnDestroy {
2211
- private store;
2212
- private commentService;
2213
- toolbarEvents: ToolbarEventService;
2214
- readonly icpEventService: IcpEventService;
2215
- showCommentSummary: boolean;
2216
- isHidden: boolean;
2217
- readonly showCommentSummaryDialog: EventEmitter<any>;
2218
- marginToComment: boolean;
2219
- tabs: {
2220
- isFiltered?: boolean;
2221
- label: string;
2222
- }[];
2223
- tabSelected: string;
2224
- isFiltered: boolean;
2225
- navigationList: Annotation[];
2226
- $subscriptions: Subscription;
2227
- ngOnInit(): void;
2228
- toggleCommentsSummary(): void;
2229
- selectTab(tab: string): void;
2230
- toggleCommentsPanel(): void;
2231
- ngOnDestroy(): void;
2232
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentSetHeaderComponent, never>;
2233
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentSetHeaderComponent, "mv-comment-set-header", never, {
2234
- "showCommentSummary": {
2235
- "alias": "showCommentSummary";
2236
- "required": false;
2237
- };
2238
- "isHidden": {
2239
- "alias": "isHidden";
2240
- "required": false;
2241
- };
2242
- }, {
2243
- "showCommentSummaryDialog": "showCommentSummaryDialog";
2244
- }, never, never, false, never>;
2245
- }
2246
- export declare class CommentSearchComponent implements AfterViewInit, OnDestroy {
2247
- private store;
2248
- annotations: Annotation[];
2249
- searchInput: ElementRef<HTMLInputElement>;
2250
- searchString: string;
2251
- searchResults: Annotation[];
2252
- searchIndex: number;
2253
- ngAfterViewInit(): void;
2254
- ngOnDestroy(): void;
2255
- searchComments(searchText: string): void;
2256
- clearSearch(): void;
2257
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentSearchComponent, never>;
2258
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentSearchComponent, "mv-comment-search", never, {
2259
- "annotations": {
2260
- "alias": "annotations";
2261
- "required": false;
2262
- };
2263
- }, {}, never, never, false, never>;
2264
- }
2265
- declare class TextHighlightDirective implements AfterViewChecked {
2266
- private element;
2267
- textToHighlight: string;
2268
- ngAfterViewChecked(): void;
2269
- highlightInputText(textToHighlight: string): void;
2270
- resetHighlight(): void;
2271
- private highlightPattern;
2272
- static ɵfac: i0.ɵɵFactoryDeclaration<TextHighlightDirective, never>;
2273
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextHighlightDirective, "[mvTextHighlight]", never, {
2274
- "textToHighlight": {
2275
- "alias": "textToHighlight";
2276
- "required": false;
2277
- };
2278
- }, {}, never, never, false, never>;
2279
- }
2280
- export declare class CommentSetComponent implements OnInit, OnDestroy, OnChanges {
2281
- private store;
2282
- private readonly commentService;
2283
- private readonly renderService;
2284
- private readonly toolbarEvents;
2285
- annotationSet: AnnotationSet;
2286
- zoom: number;
2287
- rotate: number;
2288
- height: number;
2289
- pageHeights: any[];
2290
- contentScrollTop: number;
2291
- comments: Comment[];
2292
- tags: TagsModel[];
2293
- private subscriptions;
2294
- comments$: Observable<Annotation[]>;
2295
- annoEntities$: Observable<{
2296
- [id: string]: Annotation;
2297
- }>;
2298
- container: ElementRef<HTMLDivElement>;
2299
- panel: ElementRef<HTMLDivElement>;
2300
- commentComponents: QueryList<CommentComponent>;
2301
- showCommentsPanel: boolean;
2302
- constructor();
2303
- ngOnInit(): void;
2304
- ngOnChanges(changes: SimpleChanges): void;
2305
- ngOnDestroy(): void;
2306
- onSelect(annotationId: SelectionAnnotation): void;
2307
- onCommentDelete(comment: Comment): void;
2308
- redrawComments(): void;
2309
- private rotateDocument;
2310
- onCommentUpdate(payload: {
2311
- comment: Comment;
2312
- tags: TagsModel[];
2313
- }): void;
2314
- onAnnotationUpdate(annotation: Annotation): void;
2315
- onContainerClick(e: any): void;
2316
- clearSelection(): void;
2317
- allCommentsSaved(): void;
2318
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentSetComponent, never>;
2319
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentSetComponent, "mv-comment-set", never, {
2320
- "annotationSet": {
2321
- "alias": "annotationSet";
2322
- "required": false;
2323
- };
2324
- "zoom": {
2325
- "alias": "zoom";
2326
- "required": false;
2327
- };
2328
- "rotate": {
2329
- "alias": "rotate";
2330
- "required": false;
2331
- };
2332
- "height": {
2333
- "alias": "height";
2334
- "required": false;
2335
- };
2336
- "pageHeights": {
2337
- "alias": "pageHeights";
2338
- "required": false;
2339
- };
2340
- "contentScrollTop": {
2341
- "alias": "contentScrollTop";
2342
- "required": false;
2343
- };
2344
- }, {}, never, never, false, never>;
2345
- }
2346
- declare class CommentsNavigateComponent implements OnChanges {
2347
- private store;
2348
- readonly toolbarEvents: ToolbarEventService;
2349
- annotationList: Annotation[];
2350
- autoSelect: boolean;
2351
- navigationList: any[];
2352
- index: number;
2353
- ngOnChanges(changes: SimpleChanges): void;
2354
- initNavigationList(): void;
2355
- sortComments(mappedCommentA: any, mappedCommentB: any): number;
2356
- nextItem(): void;
2357
- prevItem(): void;
2358
- upperRectangle(rectangles: Rectangle[]): {
2359
- x: number;
2360
- y: number;
2361
- };
2362
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentsNavigateComponent, never>;
2363
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentsNavigateComponent, "mv-comments-navigate", never, {
2364
- "annotationList": {
2365
- "alias": "annotationList";
2366
- "required": false;
2367
- };
2368
- "autoSelect": {
2369
- "alias": "autoSelect";
2370
- "required": false;
2371
- };
2372
- }, {}, never, never, false, never>;
2373
- }
2374
- declare class TextareaAutoExpandDirective implements AfterContentChecked {
2375
- private el;
2376
- ngAfterContentChecked(): void;
2377
- onMouseDown(): void;
2378
- adjustHeight(): void;
2379
- static ɵfac: i0.ɵɵFactoryDeclaration<TextareaAutoExpandDirective, never>;
2380
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextareaAutoExpandDirective, "[mvTextAreaAutoExpand]", never, {}, {}, never, never, false, never>;
2381
- }
2382
- export declare class CommentsSummaryComponent implements OnInit, OnDestroy {
2383
- private store;
2384
- private readonly printService;
2385
- private readonly toolbarEvents;
2386
- private fb;
2387
- title: string;
2388
- contentType: string;
2389
- container: ElementRef;
2390
- commentsTable: ElementRef;
2391
- comments$: Observable<any>;
2392
- filtersFg: FormGroup;
2393
- private $subscriptions;
2394
- allTags$: Observable<{
2395
- key: string;
2396
- length: number;
2397
- }[]>;
2398
- showFilters: boolean;
2399
- hasFilter: boolean;
2400
- fromFilterValid: boolean;
2401
- toFilterValid: boolean;
2402
- ngOnInit(): void;
2403
- buildCheckBoxForm(): void;
2404
- onClearFilters(): void;
2405
- onFilter(): void;
2406
- onFiltersToggle(): void;
2407
- onClose(): void;
2408
- onPrint(): void;
2409
- navigateToPage(pageNumber: number): void;
2410
- ngOnDestroy(): void;
2411
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentsSummaryComponent, never>;
2412
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentsSummaryComponent, "mv-comments-summary", never, {
2413
- "title": {
2414
- "alias": "title";
2415
- "required": false;
2416
- };
2417
- "contentType": {
2418
- "alias": "contentType";
2419
- "required": false;
2420
- };
2421
- }, {}, never, never, false, never>;
2422
- }
2423
- export declare class TagsComponent {
2424
- private tagsServices;
2425
- tagItems: TagsModel[];
2426
- userId: string;
2427
- editable: boolean;
2428
- annoId: string;
2429
- validators: (((control: UntypedFormControl) => {
2430
- minLength: boolean;
2431
- }) | ((control: UntypedFormControl) => {
2432
- maxLength20: boolean;
2433
- }))[];
2434
- errorMessages: {
2435
- [id: string]: string;
2436
- };
2437
- onUpdateTags(value: any): void;
2438
- requestAutocompleteItems: (text: string) => Observable<any[]>;
2439
- private minLength;
2440
- private maxLength20;
2441
- static ɵfac: i0.ɵɵFactoryDeclaration<TagsComponent, never>;
2442
- static ɵcmp: i0.ɵɵComponentDeclaration<TagsComponent, "mv-tags", never, {
2443
- "tagItems": {
2444
- "alias": "tagItems";
2445
- "required": false;
2446
- };
2447
- "userId": {
2448
- "alias": "userId";
2449
- "required": false;
2450
- };
2451
- "editable": {
2452
- "alias": "editable";
2453
- "required": false;
2454
- };
2455
- "annoId": {
2456
- "alias": "annoId";
2457
- "required": false;
2458
- };
2459
- }, {}, never, never, false, never>;
2460
- }
2461
- /**
2462
- * A moment timezone pipe to support parsing based on time zone abbreviations
2463
- * covers all cases of offset variation due to daylight saving.
2464
- *
2465
- * Same API as DatePipe with additional timezone abbreviation support
2466
- * Official date pipe dropped support for abbreviations names from Angular V5
2467
- */
2468
- export declare class MomentDatePipe extends DatePipe implements PipeTransform {
2469
- transform(value: string | Date, format?: string, timezone?: string): any;
2470
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDatePipe, never>;
2471
- static ɵpipe: i0.ɵɵPipeDeclaration<MomentDatePipe, "momentDate", false>;
2472
- }
2473
- export declare class CommentFilterComponent implements OnInit, OnDestroy {
2474
- private store;
2475
- private fb;
2476
- tagGroup: UntypedFormGroup;
2477
- $subscriptions: Subscription;
2478
- filter$: Observable<string[]>;
2479
- allTags$: Observable<any>;
2480
- searchValue: string;
2481
- isPreview: boolean;
2482
- ngOnInit(): void;
2483
- buildFrom(): void;
2484
- onClearFilters(): void;
2485
- ngOnDestroy(): void;
2486
- onRemoveFilter(tagName: any): void;
2487
- onToggleFilterView(): void;
2488
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentFilterComponent, never>;
2489
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentFilterComponent, "mv-comment-filter", never, {}, {}, never, never, false, never>;
2490
- }
2491
- export declare class FilterPipe implements PipeTransform {
2492
- transform(items: any[], searchText: string, fieldName: string): any[];
2493
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
2494
- static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", false>;
2495
- }
2496
- export declare class UnsnakePipe implements PipeTransform {
2497
- transform(items: string): string;
2498
- static ɵfac: i0.ɵɵFactoryDeclaration<UnsnakePipe, never>;
2499
- static ɵpipe: i0.ɵɵPipeDeclaration<UnsnakePipe, "unsnake", false>;
2500
- }
2501
- export declare class AnnotationsModule {
2502
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationsModule, never>;
2503
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnotationsModule, [typeof MetadataLayerComponent, typeof AnnotationViewComponent, typeof BoxHighlightCreateComponent, typeof AnnotationSetComponent, typeof RectangleComponent, typeof CommentComponent, typeof CommentSetHeaderComponent, typeof CommentSearchComponent, typeof TextHighlightDirective, typeof CtxToolbarComponent, typeof CommentSetComponent, typeof CommentsNavigateComponent, typeof TextareaAutoExpandDirective, typeof CommentsSummaryComponent, typeof TagsComponent, typeof MomentDatePipe, typeof CommentFilterComponent, typeof FilterPipe, typeof UnsnakePipe, typeof KeyboardBoxDrawDirective, typeof KeyboardBoxMoveDirective], [typeof i22.A11yModule, typeof i6.CommonModule, typeof i7.FormsModule, typeof i25$1.HttpClientModule, typeof i26$1.MutableDivModule, typeof i27.TagInputModule, typeof i8.RouterModule, typeof i7.ReactiveFormsModule, typeof i29$1.NgxDatatableModule, typeof SharedModule, typeof i12.RpxTranslationModule], [typeof AnnotationViewComponent, typeof BoxHighlightCreateComponent, typeof AnnotationSetComponent, typeof CommentSetComponent, typeof CommentSetHeaderComponent, typeof CommentSearchComponent, typeof CommentsSummaryComponent, typeof TagsComponent, typeof CommentFilterComponent, typeof MomentDatePipe, typeof FilterPipe, typeof UnsnakePipe, typeof MetadataLayerComponent]>;
2504
- static ɵinj: i0.ɵɵInjectorDeclaration<AnnotationsModule>;
2505
- }
2506
- export declare class MediaViewerModule {
2507
- static ɵfac: i0.ɵɵFactoryDeclaration<MediaViewerModule, never>;
2508
- static ɵmod: i0.ɵɵNgModuleDeclaration<MediaViewerModule, [typeof PdfViewerComponent, typeof SideBarComponent, typeof BookmarksComponent, typeof OutlineItemComponent, typeof ImageViewerComponent, typeof UnsupportedViewerComponent, typeof MultimediaPlayerComponent, typeof MediaViewerComponent, typeof ConvertibleContentViewerComponent, typeof GrabNDragDirective, typeof RotationPersistDirective, typeof HighlightCreateDirective, typeof KeyboardTextHighlightDirective, typeof ConfirmActionDialogComponent, typeof RedactionComponent, typeof BookmarkIconsComponent, typeof ParticipantsListComponent], [typeof i6.CommonModule, typeof i25$1.HttpClientModule, typeof ToolbarModule, typeof AnnotationsModule, typeof i27.TagInputModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.RouterModule, typeof i25.StoreFeatureModule, typeof i26.EffectsFeatureModule, typeof i26$1.MutableDivModule, typeof i28.CdkTreeModule, typeof i29.DragDropModule, typeof i12.RpxTranslationModule], [typeof MediaViewerComponent]>;
2509
- static ɵinj: i0.ɵɵInjectorDeclaration<MediaViewerModule>;
2510
- }
2511
- export declare class AnnotationApiService {
2512
- private readonly httpClient;
2513
- annotationApiUrl: string;
2514
- private annotationSetBaseUrl;
2515
- private annotationBaseUrl;
2516
- getAnnotationSet(documentId: string): Observable<any>;
2517
- postAnnotationSet(body: Partial<AnnotationSet>): Observable<AnnotationSet>;
2518
- getComments(annotationSet: Observable<AnnotationSet>): Observable<Comment[]>;
2519
- /**
2520
- * Sort the annotations in the response by page and then y position of their first rectangle
2521
- */
2522
- private sortAnnotations;
2523
- private extractComments;
2524
- deleteAnnotation(annotationId: string): Observable<null>;
2525
- postAnnotation(annotation: Partial<Annotation>): Observable<Annotation>;
2526
- get annotationSetsFullUrl(): string;
2527
- get annotationFullsUrl(): string;
2528
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationApiService, never>;
2529
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2530
- }
2531
- interface Filters {
2532
- tagFilters?: {
2533
- [key: string]: any;
2534
- };
2535
- dateRangeFrom?: number | null;
2536
- dateRangeTo?: number | null;
2537
- }
2538
- export declare const LOAD_ANNOTATION_SET = "[Annotations] Load Annotation Set";
2539
- export declare const LOAD_ANNOTATION_SET_SUCCESS = "[Annotations] Load Annotation Set Success";
2540
- export declare const LOAD_ANNOTATION_SET_FAIL = "[Annotations] Load Annotation Set Fail";
2541
- export declare const SAVE_ANNOTATION_SET = "[Annotations] Save Annotation Set";
2542
- export declare const SAVE_ANNOTATION_SET_SUCCESS = "[Annotations] Save Annotation Set Success";
2543
- export declare const SAVE_ANNOTATION_SET_FAIL = "[Annotations] Save Annotation Set Fail";
2544
- export declare const SAVE_ANNOTATION = "[Annotations] Save Annotation";
2545
- export declare const SAVE_ANNOTATION_SUCCESS = "[Annotations] Save Annotation Success";
2546
- export declare const SAVE_ANNOTATION_FAIL = "[Annotations] Save Annotation Fail";
2547
- export declare const ADD_OR_EDIT_COMMENT = "[Annotations] Add or Edit Comment";
2548
- export declare const DELETE_ANNOTATION = "[Annotations] Delete Annotation";
2549
- export declare const DELETE_ANNOTATION_SUCCESS = "[Annotations] Delete Annotation Success";
2550
- export declare const DELETE_ANNOTATION_FAIL = "[Annotations] Delete Annotation Fail";
2551
- export declare const SELECT_ANNOTATION = "[Annotations] Select Annotation";
2552
- export declare const SEARCH_COMMENT = "[Comments] Search Comments";
2553
- export declare const APPLY_COMMENT_SUMMARY_FILTER = "[Comments] Apply Comment Summary Filter";
2554
- export declare const CLEAR_COMMENT_SUMMARY_FILTER = "[Comments] Clear Comment Summary Filter";
2555
- export declare class LoadAnnotationSet implements Action {
2556
- payload: string;
2557
- readonly type = "[Annotations] Load Annotation Set";
2558
- constructor(payload: string);
2559
- }
2560
- export declare class SaveAnnotationSet implements Action {
2561
- payload: AnnotationSet;
2562
- readonly type = "[Annotations] Save Annotation Set";
2563
- constructor(payload: AnnotationSet);
2564
- }
2565
- export declare class LoadAnnotationSetSucess implements Action {
2566
- payload: {
2567
- status: number;
2568
- body: AnnotationSet;
2569
- };
2570
- readonly type = "[Annotations] Load Annotation Set Success";
2571
- constructor(payload: {
2572
- status: number;
2573
- body: AnnotationSet;
2574
- });
2575
- }
2576
- export declare class SaveAnnotationSetSuccess implements Action {
2577
- payload: AnnotationSet;
2578
- readonly type = "[Annotations] Save Annotation Set Success";
2579
- constructor(payload: AnnotationSet);
2580
- }
2581
- export declare class LoadAnnotationSetFail implements Action {
2582
- payload: {
2583
- status: number;
2584
- body: any;
2585
- };
2586
- readonly type = "[Annotations] Load Annotation Set Fail";
2587
- constructor(payload: {
2588
- status: number;
2589
- body: any;
2590
- });
2591
- }
2592
- export declare class SaveAnnotationSetFail implements Action {
2593
- payload: {
2594
- status: number;
2595
- body: any;
2596
- };
2597
- readonly type = "[Annotations] Save Annotation Set Fail";
2598
- constructor(payload: {
2599
- status: number;
2600
- body: any;
2601
- });
2602
- }
2603
- export declare class SaveAnnotation implements Action {
2604
- payload: Annotation;
2605
- autoSelect?: boolean;
2606
- readonly type = "[Annotations] Save Annotation";
2607
- constructor(payload: Annotation, autoSelect?: boolean);
2608
- }
2609
- export declare class SaveAnnotationSuccess implements Action {
2610
- payload: any;
2611
- readonly type = "[Annotations] Save Annotation Success";
2612
- constructor(payload: any);
2613
- }
2614
- export declare class SaveAnnotationFail implements Action {
2615
- payload: Error;
2616
- readonly type = "[Annotations] Save Annotation Fail";
2617
- constructor(payload: Error);
2618
- }
2619
- export declare class AddOrEditComment implements Action {
2620
- payload: Comment;
2621
- readonly type = "[Annotations] Add or Edit Comment";
2622
- constructor(payload: Comment);
2623
- }
2624
- export declare class DeleteAnnotation implements Action {
2625
- payload: string;
2626
- readonly type = "[Annotations] Delete Annotation";
2627
- constructor(payload: string);
2628
- }
2629
- export declare class DeleteAnnotationSuccess implements Action {
2630
- payload: string;
2631
- readonly type = "[Annotations] Delete Annotation Success";
2632
- constructor(payload: string);
2633
- }
2634
- export declare class DeleteAnnotationFail implements Action {
2635
- payload: Error;
2636
- readonly type = "[Annotations] Delete Annotation Fail";
2637
- constructor(payload: Error);
2638
- }
2639
- export declare class SelectedAnnotation implements Action {
2640
- payload: SelectionAnnotation;
2641
- readonly type = "[Annotations] Select Annotation";
2642
- constructor(payload: SelectionAnnotation);
2643
- }
2644
- export declare class SearchComment implements Action {
2645
- payload: string;
2646
- readonly type = "[Comments] Search Comments";
2647
- constructor(payload: string);
2648
- }
2649
- export declare class ApplyCommentSymmaryFilter implements Action {
2650
- payload: Filters;
2651
- readonly type = "[Comments] Apply Comment Summary Filter";
2652
- constructor(payload: Filters);
2653
- }
2654
- export declare class ClearCommentSummaryFilters implements Action {
2655
- readonly type = "[Comments] Clear Comment Summary Filter";
2656
- }
2657
- export type AnnotationsActions = LoadAnnotationSet | LoadAnnotationSetSucess | LoadAnnotationSetFail | SaveAnnotation | SaveAnnotationSuccess | SaveAnnotationFail | SaveAnnotationSetSuccess | AddOrEditComment | DeleteAnnotation | DeleteAnnotationSuccess | DeleteAnnotationFail | SelectedAnnotation | SearchComment | ApplyCommentSymmaryFilter | ClearCommentSummaryFilters;
2658
- export interface AnnotationSetState {
2659
- annotationSet: any;
2660
- annotationEntities: {
2661
- [id: string]: any;
2662
- };
2663
- annotationPageEntities: {
2664
- [id: string]: Annotation[];
2665
- };
2666
- commentEntities: {
2667
- [id: string]: Comment;
2668
- };
2669
- selectedAnnotation: SelectionAnnotation;
2670
- commentSearchQueries: {
2671
- commentSearch: string;
2672
- };
2673
- commentSummaryFilters: {
2674
- hasFilter: boolean;
2675
- filters: Filters;
2676
- };
2677
- loaded: boolean;
2678
- loading: boolean;
2679
- }
2680
- export declare const initialState: AnnotationSetState;
2681
- export declare function reducer(state: AnnotationSetState, action: AnnotationsActions): AnnotationSetState;
2682
- export declare const getAnnoSet: (state: AnnotationSetState) => any;
2683
- export declare const getCommentEnts: (state: AnnotationSetState) => {
2684
- [id: string]: Comment;
2685
- };
2686
- export declare const getAnnoPageEnt: (state: AnnotationSetState) => {
2687
- [id: string]: Annotation[];
2688
- };
2689
- export declare const getAnnoEnt: (state: AnnotationSetState) => {
2690
- [id: string]: any;
2691
- };
2692
- export declare const getSelectedAnno: (state: AnnotationSetState) => SelectionAnnotation;
2693
- export declare const commentSearchQ: (state: AnnotationSetState) => {
2694
- commentSearch: string;
2695
- };
2696
- export declare const getSummaryFilters: (state: AnnotationSetState) => {
2697
- hasFilter: boolean;
2698
- filters: Filters;
2699
- };
2700
- interface TagsState {
2701
- tagNameEnt: {
2702
- [id: string]: string[];
2703
- };
2704
- filteredComments: {
2705
- [id: string]: string[];
2706
- };
2707
- filteredPageEntities: {
2708
- [id: string]: Annotation[];
2709
- };
2710
- annotations: Annotation[];
2711
- formFilterState: {
2712
- [id: string]: boolean;
2713
- };
2714
- filters: string[];
2715
- }
2716
- interface BookmarksState {
2717
- bookmarks: Bookmark[];
2718
- bookmarkEntities: {
2719
- [id: string]: Bookmark;
2720
- };
2721
- bookmarkPageEntities: {
2722
- [id: string]: any;
2723
- };
2724
- editableBookmark: string;
2725
- loaded: boolean;
2726
- loading: boolean;
2727
- scrollTop?: number;
2728
- }
2729
- interface RedactionState {
2730
- redactionEntities: {
2731
- [id: string]: Redaction;
2732
- };
2733
- redactionPageEntities: {
2734
- [id: string]: any;
2735
- };
2736
- selectedRedaction: SelectionAnnotation | {};
2737
- redactedDocumentInfo: {
2738
- blob: Blob;
2739
- filename: string;
2740
- };
2741
- documentId: string;
2742
- }
2743
- interface State {
2744
- document: DocumentState;
2745
- annotations: AnnotationSetState;
2746
- tags: TagsState;
2747
- bookmarks: BookmarksState;
2748
- redactions: RedactionState;
2749
- icp: IcpState;
2750
- }
2751
- export declare const getAnnotationsSetState: import("@ngrx/store").MemoizedSelector<object, AnnotationSetState, (s1: State) => AnnotationSetState>;
2752
- export declare const getAnnotationEntities: import("@ngrx/store").MemoizedSelector<object, {
2753
- [id: string]: any;
2754
- }, (s1: AnnotationSetState) => {
2755
- [id: string]: any;
2756
- }>;
2757
- export declare const getSet: import("@ngrx/store").MemoizedSelector<object, any, (s1: AnnotationSetState) => any>;
2758
- export declare const getDocumentIdSetId: import("@ngrx/store").MemoizedSelector<object, {
2759
- documentId: any;
2760
- annotationSetId: any;
2761
- }, (s1: any) => {
2762
- documentId: any;
2763
- annotationSetId: any;
2764
- }>;
2765
- export declare const getAnnotationSet: import("@ngrx/store").MemoizedSelector<object, any, (s1: {
2766
- [id: string]: any;
2767
- }, s2: any) => any>;
2768
- export declare const getSelectedAnnotation: import("@ngrx/store").MemoizedSelector<object, SelectionAnnotation, (s1: AnnotationSetState) => SelectionAnnotation>;
2769
- export declare const getCommentEntities: import("@ngrx/store").MemoizedSelector<object, {
2770
- [id: string]: Comment;
2771
- }, (s1: AnnotationSetState) => {
2772
- [id: string]: Comment;
2773
- }>;
2774
- export declare const getPageEntities: import("@ngrx/store").MemoizedSelector<object, {
2775
- [id: string]: Annotation[];
2776
- }, (s1: AnnotationSetState) => {
2777
- [id: string]: Annotation[];
2778
- }>;
2779
- export declare const getComponentSearchQueries: import("@ngrx/store").MemoizedSelector<object, {
2780
- commentSearch: string;
2781
- }, (s1: AnnotationSetState) => {
2782
- commentSearch: string;
2783
- }>;
2784
- export declare const getComponentSearchText: import("@ngrx/store").MemoizedSelector<object, string, (s1: {
2785
- commentSearch: string;
2786
- }) => string>;
2787
- export declare const getCommentSummaryFilters: import("@ngrx/store").MemoizedSelector<object, {
2788
- hasFilter: boolean;
2789
- filters: Filters;
2790
- }, (s1: AnnotationSetState) => {
2791
- hasFilter: boolean;
2792
- filters: Filters;
2793
- }>;
2794
- export declare const getAnnoPerPage: import("@ngrx/store").MemoizedSelector<object, any[], (s1: {
2795
- [id: string]: DocumentPages;
2796
- }, s2: {
2797
- [id: string]: Annotation[];
2798
- }, s3: {
2799
- [id: string]: Annotation[];
2800
- }) => any[]>;
2801
- export declare const getCommentsArray: import("@ngrx/store").MemoizedSelector<object, {
2802
- page: any;
2803
- pages: {
2804
- [id: string]: DocumentPages;
2805
- };
2806
- annotationId: string;
2807
- content: string;
2808
- tags: TagsModel[];
2809
- pageHeight: number;
2810
- selected: boolean;
2811
- editable: boolean;
2812
- id: string;
2813
- createdBy: string;
2814
- createdByDetails: User;
2815
- createdDate: string;
2816
- lastModifiedBy: string;
2817
- lastModifiedByDetails: User;
2818
- lastModifiedDate: string;
2819
- }[], (s1: {
2820
- [id: string]: Comment;
2821
- }, s2: {
2822
- [id: string]: DocumentPages;
2823
- }, s3: {
2824
- [id: string]: any;
2825
- }, s4: {
2826
- [id: string]: string[];
2827
- }) => {
2828
- page: any;
2829
- pages: {
2830
- [id: string]: DocumentPages;
2831
- };
2832
- annotationId: string;
2833
- content: string;
2834
- tags: TagsModel[];
2835
- pageHeight: number;
2836
- selected: boolean;
2837
- editable: boolean;
2838
- id: string;
2839
- createdBy: string;
2840
- createdByDetails: User;
2841
- createdDate: string;
2842
- lastModifiedBy: string;
2843
- lastModifiedByDetails: User;
2844
- lastModifiedDate: string;
2845
- }[]>;
2846
- export declare const getCommentSummary: import("@ngrx/store").MemoizedSelector<object, {
2847
- page: number;
2848
- user: string;
2849
- date: string;
2850
- tags: TagsModel[];
2851
- comment: string;
2852
- }[], (s1: {
2853
- page: any;
2854
- pages: {
2855
- [id: string]: DocumentPages;
2856
- };
2857
- annotationId: string;
2858
- content: string;
2859
- tags: TagsModel[];
2860
- pageHeight: number;
2861
- selected: boolean;
2862
- editable: boolean;
2863
- id: string;
2864
- createdBy: string;
2865
- createdByDetails: User;
2866
- createdDate: string;
2867
- lastModifiedBy: string;
2868
- lastModifiedByDetails: User;
2869
- lastModifiedDate: string;
2870
- }[], s2: {
2871
- hasFilter: boolean;
2872
- filters: Filters;
2873
- }) => {
2874
- page: number;
2875
- user: string;
2876
- date: string;
2877
- tags: TagsModel[];
2878
- comment: string;
2879
- }[]>;
2880
- export declare const getFilteredAnnotations: import("@ngrx/store").MemoizedSelector<object, any[], (s1: {
2881
- [id: string]: any;
2882
- }, s2: {
2883
- [id: string]: string[];
2884
- }) => any[]>;
2885
- export declare class AnnotationEffects {
2886
- private actions$;
2887
- private annotationApiService;
2888
- loadAnnotation$: import("rxjs").Observable<LoadAnnotationSetSucess | LoadAnnotationSetFail> & import("@ngrx/effects").CreateEffectMetadata;
2889
- postAnnotation$: import("rxjs").Observable<SaveAnnotationSuccess | SaveAnnotationFail> & import("@ngrx/effects").CreateEffectMetadata;
2890
- deleteAnnotation$: import("rxjs").Observable<DeleteAnnotationSuccess | DeleteAnnotationFail> & import("@ngrx/effects").CreateEffectMetadata;
2891
- saveAnnotationSet$: import("rxjs").Observable<SaveAnnotationSetSuccess | SaveAnnotationSetFail> & import("@ngrx/effects").CreateEffectMetadata;
2892
- autoSelectAnnotation$: import("rxjs").Observable<SelectedAnnotation> & import("@ngrx/effects").CreateEffectMetadata;
2893
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationEffects, never>;
2894
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2895
- }
2896
- export {};
2897
- //# sourceMappingURL=hmcts-media-viewer.d.ts.map